, "C");
use Mojo::Base 'Mojolicious';
use Mojolicious::Plugin::Qooxdoo;
use Mojo::URL;
use Mojo::JSON;
use Mojo::Util qw(hmac_sha1_sum);
use Mojo::File qw(path);
use File::Basename;
use CallBackery::
head></head><body></body></html>
HTML
});
$app->plugin('qooxdoo',{
path => '/QX-JSON-RPC',
namespace => $app->rpcServiceNamespace,
controller => $app->rpcServiceContr
ractTable';
use CallBackery::Translate qw(trm);
use CallBackery::Exception qw(mkerror);
use Mojo::JSON qw(true false);
=head1 NAME
CallBackery::GuiPlugin::Users - User Plugin
=head1 SYNOPSIS
use
w(croak confess);
use Mojo::Util qw(b64_decode b64_encode secure_compare);
use Mojo::JSON qw(encode_json decode_json);
use CallBackery::Exception qw(mkerror);
use Time::HiRes qw(gettimeofday);
use Moj
t.});
return {};
}
my $conf = eval {
local $SIG{__DIE__};
decode_json(b64_decode($data))
};
if ($@){
$self->log->debug("Invalid cookie structure in '$d
lf = shift;
my $timeout = shift;
my $now = gettimeofday;
my $conf = b64_encode(encode_json({
u => $self->userId,
t => $now,
}));
$conf =~ s/\s+//g;
my $secret =
ie;
use File::Spec;
use Locale::PO;
use Mojo::Promise;
use Mojo::Loader qw(load_class);
use Mojo::JSON qw(true false);
use Mojo::Exception;
use Scalar::Util qw(blessed);
# use Devel::Cycle;
=head2 fi
item *
L<CallBackery::Cfg> - the configuration Syntax
=item *
L<CallBackery::RpcService> - the json rpc api
=item *
L<CallBackery::GuiPlugin::Abstract> - the gui base class
=item *
L<CallBacker
package CallBackery::Model::ConfigJsonSchema;
=head1 NAME
CallBackery::Model::ConfigJsonSchema - get parse configuration file for CallBackery
=head1 SYNOPSIS
use CallBackery::Model::ConfigYAML;
:Config', -signatures;
use JSON::Validator;
use Mojo::Exception;
use Mojo::Util qw(dumper);
use Mojo::Loader qw(data_section);
use YAML::XS qw(LoadFile Load);
use Mojo::JSON qw(true false);
use CallBa
ckery::Translate qw(trm);
$YAML::XS::Boolean = 'JSON::PP';
=head2 cfgHash
a hash containing the data from the config file
=cut
my $walker;
$walker = sub ($data, $cb, $path='' ) {
if (ref $dat
n::Qooxdoo::JsonRpcController),
-signatures,-async_await;
use CallBackery::Exception qw(mkerror);
use CallBackery::Translate qw(trm);
use Mojo::JSON qw(encode_json decode_json from_json);
use Synt
$self->tx->remote_address;
$self->log->debug("[$userId|$remoteAddr] CALL $method(".encode_json($data).")");
}
else {
$self->SUPER::logRpcCall(@_);
}
}
=head2 logRpcReturn
ddr = $self->tx->remote_address;
$self->log->debug("[$userId|$remoteAddr] RETURN ".encode_json($data).")");
}
else {
$self->SUPER::logRpcReturn(@_);
}
}
=head2 ping()
ch
late qw(trm);
use CallBackery::Exception qw(mkerror);
use Mojo::Util qw(hmac_sha1_sum);
use Mojo::JSON qw(true false);
=head1 NAME
CallBackery::GuiPlugin::UserForm - UserForm Plugin
=head1 SYNOPSIS
y::Translate qw(trm);
use CallBackery::Exception qw(mkerror);
use Mojo::Promise;
use Mojo::JSON qw(encode_json);
use Mojo::Util qw(dumper);
=head1 NAME
CallBackery::GuiPlugin::AbstractAction - actio
>{PLUGIN}{prototype}{$name}) {
my $newCfg = encode_json($button->{backend});
my $oldCfg = encode_json($cfg->{PLUGIN}{prototype}{$name}{backend});
if ($o
en3;
use POSIX qw<F_SETFD F_GETFD FD_CLOEXEC>;
use Time::HiRes qw(usleep);
use Mojo::JSON qw(encode_json decode_json true false);
use Mojo::File;
use Scalar::Util 'weaken';
# disable warnings below, o
=> 'Title of the Plugin Tab'
},
};
};
=head2 schema
A very simple minded grammar to json-schema convertor with no magic.
Better supply a proper schema.
=cut
has schema => sub {
my
and removes all occurrences of the given
key.
CODE references get turned into 'true' values and JSON true/false get
passed on.
=cut
sub filterHashKey {
my $self = shift;
my $data = shift;
w(trm);
use CallBackery::Exception qw(mkerror);
use Text::CSV;
use Excel::Writer::XLSX;
use Mojo::JSON qw(true false);
use Time::Piece;
=head1 NAME
CallBackery::GuiPlugin::AbstractTable - Base Class
arp croak);
use CallBackery::Translate qw(trm);
use CallBackery::Exception qw(mkerror);
use Mojo::JSON qw(true false);
use POSIX qw(strftime);
=head1 NAME
CallBackery::GuiPlugin::AbstractCardlist -
he current package, we then get to use the overload code
on stringification AND Mojo::JSON gets to use the TO_JSON method when
converting this into something to be transported to the frontend.
=cut
ine $line";
}
"$_"
} @args];
}
=head2 $str->TO_JSON
Help L<Mojo::JSON> encode us into JSON.
=cut
sub TO_JSON ($self) {
my $ret = $#$self == 0 ? $self->[0] : [@$self];
r