Ado

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    in which some fields are not available.
  - Improved Ado::Control::require_formats(@formats).
  - Improved Ado::Model::Users::by_group_name($group, $limit, $offset).
  - TODO: Improve Test Coverage.


0.69 2014-10-26
  - $CODENAME changed to
    "Живете" - U+2C06 GLAGOLITIC CAPITAL LETTER ZHIVETE (Ⰶ)
  - Switched from favicon.ico to favicon.png for better quality.
  - Fixed popup positioning and appearance of the logo in the main menu.
  - Added the condition 'ingroup' to Ado::Plugin::Auth.
  - Implemented Ado::Model::Users::by_group_name($group, $limit, $offset).

0.68 2014-10-25
  - Upgraded to Mojolicious 5.54.
  - Added templates/not_found.html.ep.
  - Upgraded to DBD::SQLite 1.44.
  - Dramatic performance improvement with 'PRAGMA synchronous = OFF' and
    'PRAGMA journal_mode=WAL'.
  - Improved Ado::Command::adduser documentation.

lib/Ado/Plugin/AdoHelpers.pm  view on Meta::CPAN

later renders assets (links to files and code-snippets) to
C<$c-E<gt>stash('head_css')> and C<app-E<gt>stash('head_javascript')>. The new
assets are only appended if they are not already present in the corresponding
list of assets. The defaults are populated in C<etc/ado.conf>. See also:
L<Mojolicious/defaults>; L<Mojolicious::Plugin::AssetPack>.

  #in a template:
  #append
  <%
    head_css([
      'vendor/SemanticUI/components/popup.min.css'
      '#myid { font-size:xx-small }'
    ]);
    head_javascript([
      'vendor/SemanticUI/components/popup.min.js'
      'jQuery( function($){ $('#ado-img').popup() })'
    ]);
  %>
  <!-- or -->
      # or
  % head_javascript begin
      jQuery( function($){ $('#ado-img').popup() });
  % end;

  # render in templates/partials/head.html.ep
  %== head_css;
  <link href="css/ado.css" rel='stylesheet' type='text/css' />
  <link href='//fonts.googleapis.com/css?family=Ubuntu&amp;subset=latin,cyrillic'
    rel='stylesheet' type='text/css' />
  %== head_javascript;

=head2 to_json

public/css/ado.css  view on Meta::CPAN

  color: rgb(0, 159, 218);
  text-decoration: none;
}

a.footnote {
  vertical-align: super;
  font-size: 0.8em;
  font-weight: bolder;
}

a.icon.ado.popup.visible {
  font-family: FreeSerif;  
}
i.icon.ado{
  font-family: FreeSerif;
  text-shadow:2px 2px 2px #aaa;
  font-weight: bolder;
}
i.icon.ado:before {
  content: "â°Š";
}

templates/default/index.html.ep  view on Meta::CPAN

% title('Ado');
<%
head_css([
    $sui_path.'/header.min.css',
    $sui_path.'/icon.min.css', $sui_path.'/image.min.css',
    $sui_path.'/divider.min.css',
]);
head_javascript([$sui_path.'/popup.min.js']);
%>
<main class="ui">
<article class="ui main container">
% if(flash 'error'){
  <div class="ui error message">
    <div class="header">Error!</div><p><%= flash 'error'%></p>
  </div>
% }
% if(flash 'login_message'){
  <div class="ui success huge center message"><i class="close icon"></i>
%= flash 'login_message' 
  </div>
% }
  <h1><%= l 'hello', user->name %></h1>
%= include 'default/index_text', home => app->home, variant => $language;
</article> 
</main>
<script type="text/javascript">
  $('#ado-img').popup();
  $('.success.huge.message .close').on('click', function() {
    $(this).closest('.message').fadeOut();
  });
</script>

templates/partials/adobar.html.ep  view on Meta::CPAN

%# adobar.html.ep
  <nav id="adobar" class="ui borderless inverted fixed menu">
    <%= include 'partials/logo' %>
  % # 'popup' related js and css strings are just for test coverage
  % head_css([$sui_path.'/menu.min.css']);
  % head_css begin
  /* content for head_css */
  % end;
  % head_javascript begin
  //content for head_javascript
  $(function(){
    $('#adobar a.popup').popup({position : 'bottom left'})
  });
  % end ;
    <a class="popup icon book item" href="<%=url_for('/perldoc')%>"
      data-content="Manual"><i class="book icon"></i></a>
    <a class="popup icon help item" data-content="About"
      href="<%=url_for("/help/$language/cover.md")%>"><i class="icon help"></i></a>
    <a class="popup icon github item" data-content="View project on Github" 
      href="https://github.com/kberov/Ado" target="_blank">
      <i class="icon github"></i>
    </a>
    <a class="popup icon item" href="https://metacpan.org/release/Ado"
    data-content="CPAN"><b>:&nbsp;:</b></a>


    %# Some plugins may include adobar in layouts and push items to the adobar
    % foreach my $link ( @{session->{adobar_links}} ) {
    <a class="popup item" data-content="<%= $link->{text} ? l($link->{text}) : '' %>" 
      href="<%= $link->{href} ? $link->{href}:'' %>" target="<%= $link->{target} ? $link->{target} : '' %>">
      <i class="icon <%= $link->{icon} %>"></i>
    </a>
    % }
    %= include 'partials/authbar' unless current_route =~ m'login'
    %= include 'partials/language_menu'
  </nav>

templates/partials/logo.html.ep  view on Meta::CPAN

% head_css([
%    $sui_path.'/popup.min.css',$sui_path.'/icon.min.css',$sui_path.'/item.min.css']);
% head_javascript($sui_path.'/popup.min.js');
<a class="popup icon ado item" data-content="<%= $self->generator %>"
  href="<%=url_for('/')%>"><i class="icon ado"></i></a>



( run in 0.995 second using v1.01-cache-2.11-cpan-364913b4093 )