Group
Extension

Matches 6

Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/File.pm ( view source; MetaCPAN )
ext::files( $dir ) : undef;

  $self->on( json => sub {
    my ($ws, $data) = @_;
    my $list = _get_list( $iter, $dir, $data->{limit} );
    $ws->send({ json => $list });
  });
}

sub _get_list {
  
Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/Command/setup.pm ( view source; MetaCPAN )
se 'Mojolicious::Command';

use Mojolicious::Command::daemon;

use Mojolicious::Routes;
use Mojo::JSON 'j';

has description => "Configure your Galileo CMS via a web interface\n";

sub run {
  my ($se
tore_config' => sub {
    my $self = shift;
    my $names = $self->req->params->names;

    # map JSON keys to Perl data
    my %params = map { $_ => scalar $self->param($_) } @$names;
    foreach my 
Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/Admin.pm ( view source; MetaCPAN )
 { shift->render }
sub user  { shift->render }

sub store_user {
  my $self = shift;
  $self->on( json => sub {
    my ($self, $data) = @_;

    my $pass1 = delete $data->{pass1};
    my $pass2 = dele
>{pass2};
    if ( $pass1 or $pass2 ) {
      unless ( $pass1 eq $pass2 ) {
        $self->send({ json => {
          message => 'Not saved! Passwords do not match',
          success => \0,
        }
;
    unless ( $rs->single({ name => $data->{name} }) or $data->{password}) {
      $self->send({ json => {
        message => 'Cannot create user without a password',
        success => \0,
      } }
Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/Page.pm ( view source; MetaCPAN )

  my $self = shift;
  $self->on( json => sub {
    my ($self, $data) = @_;

    my $schema = $self->schema;

    unless ( $data->{title} ) {
      $self->send({ json => {
        message => 'Not save
te_or_create(
      $data, {key => 'pages_name'},
    );
    $self->memorize->expire('main');
    $self->send({ json => {
      message => 'Changes saved',
      success => \1,
    } });
  });
}

1;

Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/DB/Deploy.pm ( view source; MetaCPAN )
 'DBIx::Class::DeploymentHandler' }

# A wrapper class for DBICDH for use with Galileo

use Mojo::JSON 'j';

use File::ShareDir qw/dist_dir/;
use File::Spec;
use File::Temp ();
use File::Copy::Recursi
Galileo ( J/JB/JBERGER/Galileo-0.043.tar.gz, JBERGER, 2020; MetaCPAN )
Galileo/lib/Galileo/Menu.pm ( view source; MetaCPAN )
package Galileo::Menu;
use Mojo::Base 'Mojolicious::Controller';

use Mojo::JSON 'j';
use Mojo::ByteStream 'b';

sub edit {
  my $self = shift;
  my $name = 'main';
  my $schema = $self->schema;

  my
Mojo::ByteStream->new( join '', @inactive ),
  );
}

sub store {
  my $self = shift;
  $self->on( json => sub {
    my ($self, $data) = @_;
    my $name = $data->{name};
    my $list = $data->{list};
f->memorize->expire($name);
    my $content = $self->include('nav_menu') || '';
    $self->send({ json => {
      message => 'Changes saved',
      success => \1,
      content => b($content)->trim,
 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.