rails_mdl_admin 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7d062a89c32b088bd10bdbe0a7a8ec80c18975e6
4
+ data.tar.gz: 84d9415e6367fe494f3ea64a4955530ef94e4c38
5
+ SHA512:
6
+ metadata.gz: d06cd3910de043e69dbfb41ead1ed9097b899b96700712ff974e12fa66b1651a9fef4ba9a5aea1292c03f92d0b29ccaa81d43adedbeeefd4b9e6458aeefd3d5a
7
+ data.tar.gz: 1ff504ca51eab80e26d997332676e79600be8dff0608e53056ce35910e83e3acad12894678262b030a3533d3350c01f100270a9e7fd8a55f5cb917729eea1ac4
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 tackeyy
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # RailsMdlAdmin
2
+
3
+ A gemified version of [Google's Material Design Lite](http://www.getmdl.io/) library.
4
+
5
+ [![https://gyazo.com/318e79e1128ad9ed5b8fbab94641248f](https://i.gyazo.com/318e79e1128ad9ed5b8fbab94641248f.png)](https://gyazo.com/318e79e1128ad9ed5b8fbab94641248f)
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'rails_mdl_admin'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install rails_mdl_admin
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ### Install rails_mdl_admin
27
+
28
+ ```bash
29
+ $ rails generate rails_mdl_admin:install
30
+ ```
31
+
32
+ ### Require or impote rails_mdl_admin style
33
+
34
+ ```css
35
+ *= require rails_mdl_admin/styles
36
+ ```
37
+
38
+ ```scss
39
+ @import "rails_mdl_admin/styles";
40
+ ```
41
+
42
+ ## Example
43
+
44
+ 1. AdminUser CRUD
45
+
46
+ ```bash
47
+ $ rails g scaffold AdminUser name:string
48
+ $ rake db:migrate
49
+ ```
50
+
51
+ 2. Install rails_mdl_admin and style sheet
52
+
53
+ ```bash
54
+ $ rails generate rails_mdl_admin:install
55
+ ```
56
+
57
+ ```css
58
+ *= require rails_mdl_admin/styles
59
+ ```
60
+
61
+ ```bash
62
+ $ rails s
63
+ # then, access localhost:3000/admin_users
64
+ ```
65
+
66
+ ## TODO
67
+ - [ ] Add test.
68
+ - [ ] Add sigin in/up form.
69
+ - [ ] Add generator which provide user with admin CRUD.
70
+ - [ ] Support haml and slim.
71
+ - [ ] Support devise and sorcery.
72
+
73
+ ## Contributing
74
+ - TODO
75
+
76
+ ## License
77
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,36 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'RailsMdlAdmin'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ require 'bundler/gem_tasks'
26
+
27
+ require 'rake/testtask'
28
+
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'test'
31
+ t.pattern = 'test/**/*_test.rb'
32
+ t.verbose = false
33
+ end
34
+
35
+
36
+ task default: :test
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/rails_mdl_admin .js
2
+ //= link_directory ../stylesheets/rails_mdl_admin .css
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ module RailsMdlAdmin
2
+ class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module RailsMdlAdmin
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module RailsMdlAdmin
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module RailsMdlAdmin
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: 'from@example.com'
4
+ layout 'mailer'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module RailsMdlAdmin
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rails mdl admin</title>
5
+ <%= stylesheet_link_tag "rails_mdl_admin/application", media: "all" %>
6
+ <%= javascript_include_tag "rails_mdl_admin/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ RailsMdlAdmin::Engine.routes.draw do
2
+ end
@@ -0,0 +1 @@
1
+ hogehoge
@@ -0,0 +1,17 @@
1
+ module RailsMdlAdmin
2
+ class InstallGenerator < ::Rails::Generators::Base
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def add_view_file
6
+ copy_file 'rails_mdl_admin.html.erb', 'app/views/layouts/rails_mdl_admin.html.erb'
7
+ copy_file '_rails_mdl_admin_header.html.erb', 'app/views/layouts/_rails_mdl_admin_header.html.erb'
8
+ copy_file '_rails_mdl_admin_sidebar.html.erb', 'app/views/layouts/_rails_mdl_admin_sidebar.html.erb'
9
+ end
10
+
11
+ def change_layout
12
+ if yes?('Add layout to ApplicationController ? (y/n) ')
13
+ inject_into_file 'app/controllers/application_controller.rb', "\n layout 'rails_mdl_admin'\n", after: 'class ApplicationController < ActionController::Base'
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,23 @@
1
+ <header class="demo-header mdl-layout__header mdl-color--grey-100 mdl-color-text--grey-600">
2
+ <div class="mdl-layout__header-row">
3
+ <span class="mdl-layout-title"><%= yield :title || 'Home' %></span>
4
+ <div class="mdl-layout-spacer"></div>
5
+ <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable">
6
+ <label class="mdl-button mdl-js-button mdl-button--icon" for="search">
7
+ <i class="material-icons">search</i>
8
+ </label>
9
+ <div class="mdl-textfield__expandable-holder">
10
+ <input class="mdl-textfield__input" type="text" id="search">
11
+ <label class="mdl-textfield__label" for="search">Enter your query...</label>
12
+ </div>
13
+ </div>
14
+ <button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon" id="hdrbtn">
15
+ <i class="material-icons">more_vert</i>
16
+ </button>
17
+ <ul class="mdl-menu mdl-js-menu mdl-js-ripple-effect mdl-menu--bottom-right" for="hdrbtn">
18
+ <li class="mdl-menu__item">About</li>
19
+ <li class="mdl-menu__item">Contact</li>
20
+ <li class="mdl-menu__item">Legal information</li>
21
+ </ul>
22
+ </div>
23
+ </header>
@@ -0,0 +1,31 @@
1
+ <div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50">
2
+ <header class="demo-drawer-header">
3
+ <img src="/assets/user.jpg" class="demo-avatar">
4
+ <div class="demo-avatar-dropdown">
5
+ <span>hello@example.com</span>
6
+ <div class="mdl-layout-spacer"></div>
7
+ <button id="accbtn" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
8
+ <i class="material-icons" role="presentation">arrow_drop_down</i>
9
+ <span class="visuallyhidden">Accounts</span>
10
+ </button>
11
+ <ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="accbtn">
12
+ <li class="mdl-menu__item">hello@example.com</li>
13
+ <li class="mdl-menu__item">info@example.com</li>
14
+ <li class="mdl-menu__item"><i class="material-icons">add</i>Add another account...</li>
15
+ </ul>
16
+ </div>
17
+ </header>
18
+ <nav class="demo-navigation mdl-navigation mdl-color--blue-grey-800">
19
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">home</i>Home</a>
20
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">inbox</i>Inbox</a>
21
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">delete</i>Trash</a>
22
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">report</i>Spam</a>
23
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">forum</i>Forums</a>
24
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">flag</i>Updates</a>
25
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_offer</i>Promos</a>
26
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">shopping_cart</i>Purchases</a>
27
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">people</i>Social</a>
28
+ <div class="mdl-layout-spacer"></div>
29
+ <a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">help_outline</i><span class="visuallyhidden">Help</span></a>
30
+ </nav>
31
+ </div>
@@ -0,0 +1,192 @@
1
+ <!doctype html>
2
+ <!--
3
+ Material Design Lite
4
+ Copyright 2015 Google Inc. All rights reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ https://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License
17
+ -->
18
+ <html lang="en">
19
+ <head>
20
+ <meta charset="utf-8">
21
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
22
+ <meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
23
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
24
+ <title>Material Design Lite</title>
25
+
26
+ <!-- Add to homescreen for Chrome on Android -->
27
+ <meta name="mobile-web-app-capable" content="yes">
28
+ <link rel="icon" sizes="192x192" href="images/android-desktop.png">
29
+
30
+ <!-- Add to homescreen for Safari on iOS -->
31
+ <meta name="apple-mobile-web-app-capable" content="yes">
32
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
33
+ <meta name="apple-mobile-web-app-title" content="Material Design Lite">
34
+ <link rel="apple-touch-icon-precomposed" href="images/ios-desktop.png">
35
+
36
+ <!-- Tile icon for Win8 (144x144 + tile color) -->
37
+ <meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
38
+ <meta name="msapplication-TileColor" content="#3372DF">
39
+
40
+ <link rel="shortcut icon" href="images/favicon.png">
41
+
42
+ <!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
43
+ <!--
44
+ <link rel="canonical" href="http://www.example.com/">
45
+ -->
46
+
47
+ <%= csrf_meta_tags %>
48
+
49
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
50
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
51
+
52
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en">
53
+ <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
54
+ <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.cyan-light_blue.min.css">
55
+
56
+ </head>
57
+ <body>
58
+ <div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header">
59
+ <%= render 'layouts/rails_mdl_admin_header' %>
60
+ <%= render 'layouts/rails_mdl_admin_sidebar' %>
61
+
62
+ <main class="mdl-layout__content mdl-color--grey-100">
63
+ <div class="mdl-grid demo-content">
64
+ <div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
65
+ <svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
66
+ <use xlink:href="#piechart" mask="url(#piemask)" />
67
+ <text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">82<tspan font-size="0.2" dy="-0.07">%</tspan></text>
68
+ </svg>
69
+ <svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
70
+ <use xlink:href="#piechart" mask="url(#piemask)" />
71
+ <text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">82<tspan dy="-0.07" font-size="0.2">%</tspan></text>
72
+ </svg>
73
+ <svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
74
+ <use xlink:href="#piechart" mask="url(#piemask)" />
75
+ <text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">82<tspan dy="-0.07" font-size="0.2">%</tspan></text>
76
+ </svg>
77
+ <svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
78
+ <use xlink:href="#piechart" mask="url(#piemask)" />
79
+ <text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">82<tspan dy="-0.07" font-size="0.2">%</tspan></text>
80
+ </svg>
81
+ </div>
82
+ <div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
83
+ <svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
84
+ <use xlink:href="#chart" />
85
+ </svg>
86
+ <svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
87
+ <use xlink:href="#chart" />
88
+ </svg>
89
+ </div>
90
+ <div class="demo-cards mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-grid mdl-grid--no-spacing">
91
+ <div class="demo-updates mdl-card mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--12-col-desktop">
92
+ <div class="mdl-card__title mdl-card--expand mdl-color--teal-300">
93
+ <h2 class="mdl-card__title-text">Updates</h2>
94
+ </div>
95
+ <div class="mdl-card__supporting-text mdl-color-text--grey-600">
96
+ Non dolore elit adipisicing ea reprehenderit consectetur culpa.
97
+ </div>
98
+ <div class="mdl-card__actions mdl-card--border">
99
+ <a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">Read More</a>
100
+ </div>
101
+ </div>
102
+ <div class="demo-separator mdl-cell--1-col"></div>
103
+ <div class="demo-options mdl-card mdl-color--deep-purple-500 mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--3-col-tablet mdl-cell--12-col-desktop">
104
+ <div class="mdl-card__supporting-text mdl-color-text--blue-grey-50">
105
+ <h3>View options</h3>
106
+ <ul>
107
+ <li>
108
+ <label for="chkbox1" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
109
+ <input type="checkbox" id="chkbox1" class="mdl-checkbox__input">
110
+ <span class="mdl-checkbox__label">Click per object</span>
111
+ </label>
112
+ </li>
113
+ <li>
114
+ <label for="chkbox2" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
115
+ <input type="checkbox" id="chkbox2" class="mdl-checkbox__input">
116
+ <span class="mdl-checkbox__label">Views per object</span>
117
+ </label>
118
+ </li>
119
+ <li>
120
+ <label for="chkbox3" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
121
+ <input type="checkbox" id="chkbox3" class="mdl-checkbox__input">
122
+ <span class="mdl-checkbox__label">Objects selected</span>
123
+ </label>
124
+ </li>
125
+ <li>
126
+ <label for="chkbox4" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
127
+ <input type="checkbox" id="chkbox4" class="mdl-checkbox__input">
128
+ <span class="mdl-checkbox__label">Objects viewed</span>
129
+ </label>
130
+ </li>
131
+ </ul>
132
+ </div>
133
+ <div class="mdl-card__actions mdl-card--border">
134
+ <a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--blue-grey-50">Change location</a>
135
+ <div class="mdl-layout-spacer"></div>
136
+ <i class="material-icons">location_on</i>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </main>
142
+ </div>
143
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" style="position: fixed; left: -1000px; height: -1000px;">
144
+ <defs>
145
+ <mask id="piemask" maskContentUnits="objectBoundingBox">
146
+ <circle cx=0.5 cy=0.5 r=0.49 fill="white" />
147
+ <circle cx=0.5 cy=0.5 r=0.40 fill="black" />
148
+ </mask>
149
+ <g id="piechart">
150
+ <circle cx=0.5 cy=0.5 r=0.5 />
151
+ <path d="M 0.5 0.5 0.5 0 A 0.5 0.5 0 0 1 0.95 0.28 z" stroke="none" fill="rgba(255, 255, 255, 0.75)" />
152
+ </g>
153
+ </defs>
154
+ </svg>
155
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 250" style="position: fixed; left: -1000px; height: -1000px;">
156
+ <defs>
157
+ <g id="chart">
158
+ <g id="Gridlines">
159
+ <line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="27.3" x2="468.3" y2="27.3" />
160
+ <line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="66.7" x2="468.3" y2="66.7" />
161
+ <line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="105.3" x2="468.3" y2="105.3" />
162
+ <line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="144.7" x2="468.3" y2="144.7" />
163
+ <line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3" />
164
+ </g>
165
+ <g id="Numbers">
166
+ <text transform="matrix(1 0 0 1 485 29.3333)" fill="#888888" font-family="'Roboto'" font-size="9">500</text>
167
+ <text transform="matrix(1 0 0 1 485 69)" fill="#888888" font-family="'Roboto'" font-size="9">400</text>
168
+ <text transform="matrix(1 0 0 1 485 109.3333)" fill="#888888" font-family="'Roboto'" font-size="9">300</text>
169
+ <text transform="matrix(1 0 0 1 485 149)" fill="#888888" font-family="'Roboto'" font-size="9">200</text>
170
+ <text transform="matrix(1 0 0 1 485 188.3333)" fill="#888888" font-family="'Roboto'" font-size="9">100</text>
171
+ <text transform="matrix(1 0 0 1 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1</text>
172
+ <text transform="matrix(1 0 0 1 78 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">2</text>
173
+ <text transform="matrix(1 0 0 1 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">3</text>
174
+ <text transform="matrix(1 0 0 1 232.1667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">4</text>
175
+ <text transform="matrix(1 0 0 1 309 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">5</text>
176
+ <text transform="matrix(1 0 0 1 386.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">6</text>
177
+ <text transform="matrix(1 0 0 1 464.3333 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">7</text>
178
+ </g>
179
+ <g id="Layer_5">
180
+ <polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
181
+ 294.5,80.5 380,165.2 437,75.5 469.5,223.3 "/>
182
+ </g>
183
+ <g id="Layer_4">
184
+ <polygon stroke-miterlimit="10" points="469.3,222.7 1,222.7 48.7,166.7 155.7,188.3 212,132.7
185
+ 296.7,128 380.7,184.3 436.7,125 "/>
186
+ </g>
187
+ </g>
188
+ </defs>
189
+ </svg>
190
+ <script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
191
+ </body>
192
+ </html>
@@ -0,0 +1,5 @@
1
+ require "rails_mdl_admin/engine"
2
+
3
+ module RailsMdlAdmin
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,5 @@
1
+ module RailsMdlAdmin
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace RailsMdlAdmin
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module RailsMdlAdmin
2
+ VERSION = '0.1.1'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :rails_mdl_admin do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_mdl_admin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - tackeyy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Description of Rails::Mdl::Admin.
14
+ email:
15
+ - mailto.takita.yusuke@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - MIT-LICENSE
21
+ - README.md
22
+ - Rakefile
23
+ - app/assets/config/rails_mdl_admin_manifest.js
24
+ - app/assets/javascripts/rails_mdl_admin/application.js
25
+ - app/assets/stylesheets/rails_mdl_admin/application.css
26
+ - app/controllers/rails_mdl_admin/application_controller.rb
27
+ - app/helpers/rails_mdl_admin/application_helper.rb
28
+ - app/jobs/rails_mdl_admin/application_job.rb
29
+ - app/mailers/rails_mdl_admin/application_mailer.rb
30
+ - app/models/rails_mdl_admin/application_record.rb
31
+ - app/views/layouts/rails_mdl_admin/application.html.erb
32
+ - config/routes.rb
33
+ - lib/generators/rails_mdl_admin/install/USAGE
34
+ - lib/generators/rails_mdl_admin/install/install_generator.rb
35
+ - lib/generators/rails_mdl_admin/install/templates/_rails_mdl_admin_header.html.erb
36
+ - lib/generators/rails_mdl_admin/install/templates/_rails_mdl_admin_sidebar.html.erb
37
+ - lib/generators/rails_mdl_admin/install/templates/rails_mdl_admin.html.erb
38
+ - lib/rails_mdl_admin.rb
39
+ - lib/rails_mdl_admin/engine.rb
40
+ - lib/rails_mdl_admin/version.rb
41
+ - lib/tasks/rails_mdl_admin_tasks.rake
42
+ homepage: https://github.com/tackeyy/rails_mdl_admin
43
+ licenses:
44
+ - MIT
45
+ metadata: {}
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.11
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Summary of Rails::Mdl::Admin.
66
+ test_files: []