|
|
@ -9,7 +9,6 @@ use Mojolicious::Lite; |
|
|
|
use Mojolicious::Plugin::Mail; |
|
|
|
use Mojolicious::Plugin::Mail; |
|
|
|
use Mojolicious::Plugin::Database; |
|
|
|
use Mojolicious::Plugin::Database; |
|
|
|
use Mojolicious::Plugin::StaticCompressor; |
|
|
|
use Mojolicious::Plugin::StaticCompressor; |
|
|
|
use Mojolicious::Plugin::RenderFile; |
|
|
|
|
|
|
|
use Vroom::Constants; |
|
|
|
use Vroom::Constants; |
|
|
|
use Vroom::Conf; |
|
|
|
use Vroom::Conf; |
|
|
|
use Crypt::SaltedHash; |
|
|
|
use Crypt::SaltedHash; |
|
|
@ -66,10 +65,12 @@ if ($config->{'etherpad.uri'} =~ m/https?:\/\/.*/ && $config->{'etherpad.api_key |
|
|
|
my $excel = eval { |
|
|
|
my $excel = eval { |
|
|
|
require File::Temp; |
|
|
|
require File::Temp; |
|
|
|
require Excel::Writer::XLSX; |
|
|
|
require Excel::Writer::XLSX; |
|
|
|
|
|
|
|
require Mojolicious::Plugin::RenderFile; |
|
|
|
}; |
|
|
|
}; |
|
|
|
if ($excel){ |
|
|
|
if ($excel){ |
|
|
|
import File::Temp; |
|
|
|
import File::Temp; |
|
|
|
import Excel::Writer::XLSX; |
|
|
|
import Excel::Writer::XLSX; |
|
|
|
|
|
|
|
import Mojolicious::Plugin::RenderFile; |
|
|
|
$optf->{excel} = 1; |
|
|
|
$optf->{excel} = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|