fl 0.3.0

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.
Files changed (137) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +44 -0
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +173 -0
  5. data/README.md +30 -0
  6. data/Rakefile +2 -0
  7. data/app/admin/options.rb +46 -0
  8. data/app/admin/pages.rb +55 -0
  9. data/app/admin/users.rb +34 -0
  10. data/app/assets/javascripts/active_admin.coffee.erb +20 -0
  11. data/app/assets/javascripts/application.coffee.erb +40 -0
  12. data/app/assets/javascripts/ckeditor/basepath.coffee.erb +21 -0
  13. data/app/assets/javascripts/ckeditor/config.coffee.erb +146 -0
  14. data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +232 -0
  15. data/app/assets/javascripts/ckeditor/plugins/autogrow/samples/autogrow.html +102 -0
  16. data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +158 -0
  17. data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/assets/sample.css +70 -0
  18. data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +85 -0
  19. data/app/assets/javascripts/ckeditor/skins/minimalist/dialog.css +5 -0
  20. data/app/assets/javascripts/ckeditor/skins/minimalist/dialog_ie.css +5 -0
  21. data/app/assets/javascripts/ckeditor/skins/minimalist/dialog_ie7.css +5 -0
  22. data/app/assets/javascripts/ckeditor/skins/minimalist/dialog_ie8.css +5 -0
  23. data/app/assets/javascripts/ckeditor/skins/minimalist/dialog_iequirks.css +5 -0
  24. data/app/assets/javascripts/ckeditor/skins/minimalist/editor.css +5 -0
  25. data/app/assets/javascripts/ckeditor/skins/minimalist/editor_gecko.css +5 -0
  26. data/app/assets/javascripts/ckeditor/skins/minimalist/editor_ie.css +5 -0
  27. data/app/assets/javascripts/ckeditor/skins/minimalist/editor_ie7.css +5 -0
  28. data/app/assets/javascripts/ckeditor/skins/minimalist/editor_ie8.css +5 -0
  29. data/app/assets/javascripts/ckeditor/skins/minimalist/editor_iequirks.css +5 -0
  30. data/app/assets/javascripts/ckeditor/skins/minimalist/icons.png +0 -0
  31. data/app/assets/javascripts/ckeditor/skins/minimalist/icons_hidpi.png +0 -0
  32. data/app/assets/javascripts/ckeditor/skins/minimalist/images/arrow.png +0 -0
  33. data/app/assets/javascripts/ckeditor/skins/minimalist/images/close.png +0 -0
  34. data/app/assets/javascripts/ckeditor/skins/minimalist/images/hidpi/close.png +0 -0
  35. data/app/assets/javascripts/ckeditor/skins/minimalist/images/hidpi/lock-open.png +0 -0
  36. data/app/assets/javascripts/ckeditor/skins/minimalist/images/hidpi/lock.png +0 -0
  37. data/app/assets/javascripts/ckeditor/skins/minimalist/images/hidpi/refresh.png +0 -0
  38. data/app/assets/javascripts/ckeditor/skins/minimalist/images/lock-open.png +0 -0
  39. data/app/assets/javascripts/ckeditor/skins/minimalist/images/lock.png +0 -0
  40. data/app/assets/javascripts/ckeditor/skins/minimalist/images/refresh.png +0 -0
  41. data/app/assets/javascripts/ckeditor/skins/minimalist/readme.md +7 -0
  42. data/app/assets/javascripts/ckeditor/skins/minimalist/skin.js +10 -0
  43. data/app/assets/javascripts/ckeditor/skins/moonocolor/dialog.css +5 -0
  44. data/app/assets/javascripts/ckeditor/skins/moonocolor/dialog_ie.css +5 -0
  45. data/app/assets/javascripts/ckeditor/skins/moonocolor/dialog_ie7.css +5 -0
  46. data/app/assets/javascripts/ckeditor/skins/moonocolor/dialog_ie8.css +5 -0
  47. data/app/assets/javascripts/ckeditor/skins/moonocolor/dialog_iequirks.css +5 -0
  48. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor.css +5 -0
  49. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_gecko.css +5 -0
  50. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie.css +5 -0
  51. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie7.css +5 -0
  52. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie8.css +5 -0
  53. data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_iequirks.css +5 -0
  54. data/app/assets/javascripts/ckeditor/skins/moonocolor/icons.png +0 -0
  55. data/app/assets/javascripts/ckeditor/skins/moonocolor/icons_hidpi.png +0 -0
  56. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/arrow.png +0 -0
  57. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/close.png +0 -0
  58. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/hidpi/close.png +0 -0
  59. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/hidpi/lock-open.png +0 -0
  60. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/hidpi/lock.png +0 -0
  61. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/hidpi/refresh.png +0 -0
  62. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/lock-open.png +0 -0
  63. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/lock.png +0 -0
  64. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/refresh.png +0 -0
  65. data/app/assets/javascripts/ckeditor/skins/moonocolor/images/spinner.gif +0 -0
  66. data/app/assets/javascripts/ckeditor/skins/moonocolor/readme.md +51 -0
  67. data/app/assets/javascripts/ckeditor/skins/moonocolor/skin.js +10 -0
  68. data/app/assets/javascripts/components/confirm.coffee +51 -0
  69. data/app/assets/javascripts/components/modals.coffee +29 -0
  70. data/app/assets/stylesheets/_defaults.yml +106 -0
  71. data/app/assets/stylesheets/_functions.sass.erb +75 -0
  72. data/app/assets/stylesheets/active_admin.sass +117 -0
  73. data/app/assets/stylesheets/application.sass.erb +46 -0
  74. data/app/assets/stylesheets/styles/reset.sass +139 -0
  75. data/app/assets/stylesheets/styles/structure.sass +69 -0
  76. data/app/assets/stylesheets/styles/ui/flash.sass +128 -0
  77. data/app/assets/stylesheets/styles/ui/fonts.sass +32 -0
  78. data/app/assets/stylesheets/styles/ui/modals.sass +61 -0
  79. data/app/assets/stylesheets/styles/ui/tooltips.sass +139 -0
  80. data/app/controllers/application_controller.rb +87 -0
  81. data/app/helpers/fl/application_helper.rb +53 -0
  82. data/app/helpers/fl/asset_helper.rb +50 -0
  83. data/app/helpers/fl/liquid_helper.rb +29 -0
  84. data/app/helpers/fl/meta_helper.rb +118 -0
  85. data/app/lib/active_record/concerns/base.rb +55 -0
  86. data/app/lib/active_record/concerns/seeds.rb +78 -0
  87. data/app/liquid/filters/meta_filter.rb +6 -0
  88. data/app/liquid/tags/google_analytics_tag.rb +32 -0
  89. data/app/liquid/tags/icon_tag.rb +37 -0
  90. data/app/liquid/tags/meta_tag.rb +120 -0
  91. data/app/mailers/application_mailer.rb +28 -0
  92. data/app/models/application_record.rb +3 -0
  93. data/app/models/asset.rb +95 -0
  94. data/app/models/association.rb +21 -0
  95. data/app/models/meta.rb +27 -0
  96. data/app/models/node.rb +59 -0
  97. data/app/models/profile.rb +49 -0
  98. data/app/models/user.rb +49 -0
  99. data/app/service/flash.rb +8 -0
  100. data/app/views/layouts/_admin.haml +6 -0
  101. data/app/views/layouts/_application.haml +17 -0
  102. data/app/views/layouts/base.haml +26 -0
  103. data/app/views/mailers/layouts/mailer.haml +8 -0
  104. data/app/views/mailers/layouts/mailer.text.erb +1 -0
  105. data/app/views/mailers/new_user.erb +4 -0
  106. data/bin/console +14 -0
  107. data/bin/setup +8 -0
  108. data/config/initializers/active_admin.rb +266 -0
  109. data/config/initializers/ckeditor.rb +63 -0
  110. data/config/initializers/devise.rb +279 -0
  111. data/config/initializers/friendly_id.rb +92 -0
  112. data/config/initializers/inflections.rb +20 -0
  113. data/config/initializers/liquid.rb +87 -0
  114. data/config/initializers/sass.rb +45 -0
  115. data/config/locales/devise.en.yml +62 -0
  116. data/config/locales/en.yml +13 -0
  117. data/config/puma.rb +59 -0
  118. data/config/routes.rb +56 -0
  119. data/db/migrate/20160616060637_create_nodes.rb +26 -0
  120. data/db/migrate/20160707080248_create_users.rb +52 -0
  121. data/db/migrate/20160707094704_create_slugs.rb +33 -0
  122. data/db/migrate/20160710095916_create_associations.rb +20 -0
  123. data/db/migrate/20160713061948_create_profiles.rb +27 -0
  124. data/db/migrate/20161115101221_create_assets.rb +25 -0
  125. data/db/migrate/20170725060408_create_active_admin_comments.rb +22 -0
  126. data/db/seeds.rb +81 -0
  127. data/fl.gemspec +73 -0
  128. data/lib/fl.rb +28 -0
  129. data/lib/fl/constants.rb +52 -0
  130. data/lib/fl/engine.rb +160 -0
  131. data/lib/fl/hash.rb +34 -0
  132. data/lib/generators/fl/sass_vars_generator.rb +16 -0
  133. data/lib/generators/fl/templates/sass.yml +56 -0
  134. data/lib/tasks/ckeditor.rake +37 -0
  135. data/lib/tasks/favicon.rake +37 -0
  136. data/readme/fl.jpg +0 -0
  137. metadata +416 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ba199f23df586bf033f5755d6c726aeec42cb426
4
+ data.tar.gz: 348f7d18e44a1cdb23cbfd77622e630e33fe910a
5
+ SHA512:
6
+ metadata.gz: d4a9ccba441ccb594f107811cdd327eb95228f6a047239120f0c3790ddcc353dea9219c1ade1924acf350a2ac1ba8cd7f6c05c4894ce1c04eebc229ab4e1170e
7
+ data.tar.gz: cdd71a8dd0059bb17b84a669448d8e5a96189f4ec07530022c518c021bcaae9e7f7ecf2fb0d5d824b65a4075c6a372d97673bd80ad6e1f7617bff2e582a8c7d2
data/.gitignore ADDED
@@ -0,0 +1,44 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ /log
5
+ /tmp
6
+ /db/*.sqlite3
7
+ /db/*.sqlite3-journal
8
+ /public/system
9
+ /coverage/
10
+ /spec/tmp
11
+ *.orig
12
+ rerun.txt
13
+ pickle-email-*.html
14
+
15
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
16
+ config/initializers/secret_token.rb
17
+
18
+ # Only include if you have production secrets in this file, which is no longer a Rails default
19
+ # config/secrets.yml
20
+
21
+ # dotenv
22
+ # TODO Comment out this rule if environment variables can be committed
23
+ .env
24
+
25
+ ## Environment normalization:
26
+ /.bundle
27
+ /vendor/bundle
28
+
29
+ # these should all be checked in to normalize the environment:
30
+ # Gemfile.lock, .ruby-version, .ruby-gemset
31
+
32
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
33
+ .rvmrc
34
+
35
+ # if using bower-rails ignore default bower_components path bower.json files
36
+ /vendor/assets/bower_components
37
+ *.bowerrc
38
+ bower.json
39
+
40
+ # Ignore pow environment settings
41
+ .powenv
42
+
43
+ # Ignore Byebug command history file.
44
+ .byebug_history
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+ source 'https://rails-assets.org'
3
+
4
+ # Specify your gem's dependencies in fl.gemspec
5
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,173 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fl (0.2.5)
5
+ autoprefixer-rails
6
+ devise
7
+ exception_handler
8
+ font-awesome-rails
9
+ friendly_id
10
+ nilify_blanks
11
+ paperclip
12
+ rails (>= 5)
13
+ rails-assets-animate-css
14
+ responders
15
+ rmagick
16
+
17
+ GEM
18
+ remote: https://rubygems.org/
19
+ remote: https://rails-assets.org/
20
+ specs:
21
+ actioncable (5.0.1)
22
+ actionpack (= 5.0.1)
23
+ nio4r (~> 1.2)
24
+ websocket-driver (~> 0.6.1)
25
+ actionmailer (5.0.1)
26
+ actionpack (= 5.0.1)
27
+ actionview (= 5.0.1)
28
+ activejob (= 5.0.1)
29
+ mail (~> 2.5, >= 2.5.4)
30
+ rails-dom-testing (~> 2.0)
31
+ actionpack (5.0.1)
32
+ actionview (= 5.0.1)
33
+ activesupport (= 5.0.1)
34
+ rack (~> 2.0)
35
+ rack-test (~> 0.6.3)
36
+ rails-dom-testing (~> 2.0)
37
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
38
+ actionview (5.0.1)
39
+ activesupport (= 5.0.1)
40
+ builder (~> 3.1)
41
+ erubis (~> 2.7.0)
42
+ rails-dom-testing (~> 2.0)
43
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
44
+ activejob (5.0.1)
45
+ activesupport (= 5.0.1)
46
+ globalid (>= 0.3.6)
47
+ activemodel (5.0.1)
48
+ activesupport (= 5.0.1)
49
+ activerecord (5.0.1)
50
+ activemodel (= 5.0.1)
51
+ activesupport (= 5.0.1)
52
+ arel (~> 7.0)
53
+ activesupport (5.0.1)
54
+ concurrent-ruby (~> 1.0, >= 1.0.2)
55
+ i18n (~> 0.7)
56
+ minitest (~> 5.1)
57
+ tzinfo (~> 1.1)
58
+ arel (7.1.4)
59
+ autoprefixer-rails (6.6.1)
60
+ execjs
61
+ bcrypt (3.1.11-x64-mingw32)
62
+ better_errors (2.1.1)
63
+ coderay (>= 1.0.0)
64
+ erubis (>= 2.6.6)
65
+ rack (>= 0.9.0)
66
+ builder (3.2.3)
67
+ climate_control (0.1.0)
68
+ cocaine (0.5.8)
69
+ climate_control (>= 0.0.3, < 1.0)
70
+ coderay (1.1.1)
71
+ concurrent-ruby (1.0.4)
72
+ devise (4.2.0)
73
+ bcrypt (~> 3.0)
74
+ orm_adapter (~> 0.1)
75
+ railties (>= 4.1.0, < 5.1)
76
+ responders
77
+ warden (~> 1.2.3)
78
+ erubis (2.7.0)
79
+ exception_handler (0.7.0)
80
+ bundler (~> 1.6)
81
+ rails (>= 4.2.0)
82
+ responders
83
+ execjs (2.7.0)
84
+ font-awesome-rails (4.7.0.1)
85
+ railties (>= 3.2, < 5.1)
86
+ friendly_id (5.2.0)
87
+ activerecord (>= 4.0.0)
88
+ globalid (0.3.7)
89
+ activesupport (>= 4.1.0)
90
+ i18n (0.7.0)
91
+ loofah (2.0.3)
92
+ nokogiri (>= 1.5.9)
93
+ mail (2.6.4)
94
+ mime-types (>= 1.16, < 4)
95
+ method_source (0.8.2)
96
+ mime-types (3.1)
97
+ mime-types-data (~> 3.2015)
98
+ mime-types-data (3.2016.0521)
99
+ mimemagic (0.3.2)
100
+ mini_portile2 (2.1.0)
101
+ minitest (5.10.1)
102
+ nilify_blanks (1.2.1)
103
+ activerecord (>= 3.0.0)
104
+ activesupport (>= 3.0.0)
105
+ nio4r (1.2.1)
106
+ nokogiri (1.7.0.1-x64-mingw32)
107
+ mini_portile2 (~> 2.1.0)
108
+ orm_adapter (0.5.0)
109
+ paperclip (5.1.0)
110
+ activemodel (>= 4.2.0)
111
+ activesupport (>= 4.2.0)
112
+ cocaine (~> 0.5.5)
113
+ mime-types
114
+ mimemagic (~> 0.3.0)
115
+ rack (2.0.1)
116
+ rack-test (0.6.3)
117
+ rack (>= 1.0)
118
+ rails (5.0.1)
119
+ actioncable (= 5.0.1)
120
+ actionmailer (= 5.0.1)
121
+ actionpack (= 5.0.1)
122
+ actionview (= 5.0.1)
123
+ activejob (= 5.0.1)
124
+ activemodel (= 5.0.1)
125
+ activerecord (= 5.0.1)
126
+ activesupport (= 5.0.1)
127
+ bundler (>= 1.3.0, < 2.0)
128
+ railties (= 5.0.1)
129
+ sprockets-rails (>= 2.0.0)
130
+ rails-assets-animate-css (3.5.2)
131
+ rails-dom-testing (2.0.2)
132
+ activesupport (>= 4.2.0, < 6.0)
133
+ nokogiri (~> 1.6)
134
+ rails-html-sanitizer (1.0.3)
135
+ loofah (~> 2.0)
136
+ railties (5.0.1)
137
+ actionpack (= 5.0.1)
138
+ activesupport (= 5.0.1)
139
+ method_source
140
+ rake (>= 0.8.7)
141
+ thor (>= 0.18.1, < 2.0)
142
+ rake (10.5.0)
143
+ responders (2.3.0)
144
+ railties (>= 4.2.0, < 5.1)
145
+ rmagick (2.16.0)
146
+ sprockets (3.7.1)
147
+ concurrent-ruby (~> 1.0)
148
+ rack (> 1, < 3)
149
+ sprockets-rails (3.2.0)
150
+ actionpack (>= 4.0)
151
+ activesupport (>= 4.0)
152
+ sprockets (>= 3.0.0)
153
+ thor (0.19.4)
154
+ thread_safe (0.3.5)
155
+ tzinfo (1.2.2)
156
+ thread_safe (~> 0.1)
157
+ warden (1.2.6)
158
+ rack (>= 1.0)
159
+ websocket-driver (0.6.4)
160
+ websocket-extensions (>= 0.1.0)
161
+ websocket-extensions (0.1.2)
162
+
163
+ PLATFORMS
164
+ x64-mingw32
165
+
166
+ DEPENDENCIES
167
+ better_errors
168
+ bundler (~> 1.12)
169
+ fl!
170
+ rake (~> 10.0)
171
+
172
+ BUNDLED WITH
173
+ 1.13.7
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ <!-- ################################### -->
2
+ <!-- ################################### -->
3
+
4
+
5
+ # FL
6
+
7
+
8
+ ---
9
+
10
+ ©️ <a href="http://www.fl.co.uk" title="Frontline Utilities LTD"><img src="readme/fl.jpg" align="absmiddle" /></a> <a href="https://www.github.com/richpeck" title="Richard Peck"><img src="https://avatars2.githubusercontent.com/u/1104431?v=3&s=460" height="22" align="absmiddle" /></a>
11
+
12
+
13
+ <!-- ################################### -->
14
+ <!-- ################################### -->
15
+
16
+
17
+ <!-- ################################### -->
18
+ <!-- ################################### -->
19
+
20
+ <!-- Links -->
21
+ [fl]: https://www.fl.co.uk
22
+ [flcleaner]: https://www.flcleaner.com
23
+ [pcfixes]: https://www.pcfixes.com
24
+ [fusion]: https://www.frontlinefusion.com
25
+ [support]: #support
26
+
27
+ <!-- Images -->
28
+
29
+ <!-- ################################### -->
30
+ <!-- ################################### -->
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,46 @@
1
+ ############################################################
2
+ ############################################################
3
+
4
+ ## Vars ##
5
+ item = File.basename(__FILE__, ".*").singularize.titleize
6
+ model = ["Meta", item].join("::")
7
+
8
+ ## Check ##
9
+ unless (model.constantize rescue nil).nil?
10
+
11
+ ############################################################
12
+ ############################################################
13
+
14
+ ActiveAdmin.register model.constantize, as: item.to_s do
15
+
16
+ ##################################
17
+ ##################################
18
+
19
+ # => Menu
20
+ menu priority: 2, label: -> { ["📋", model.constantize.model_name.human(count: 2)].join(" ") }
21
+
22
+ # => Strong Params
23
+ permit_params :slug, :ref, :val
24
+
25
+ ##################################
26
+ ##################################
27
+
28
+ # => Index
29
+ index do
30
+ selectable_column
31
+ column :ref
32
+ column :val
33
+ column :created_at
34
+ column :updated_at
35
+ actions
36
+ end
37
+
38
+ ##################################
39
+ ##################################
40
+
41
+ end
42
+
43
+ ############################################################
44
+ ############################################################
45
+
46
+ end
@@ -0,0 +1,55 @@
1
+ ############################################################
2
+ ############################################################
3
+
4
+ ## Vars ##
5
+ item = File.basename(__FILE__, ".*").singularize.titleize
6
+ model = ["Meta", item].join("::")
7
+
8
+ ## Check ##
9
+ unless (model.constantize rescue nil).nil?
10
+
11
+ ############################################################
12
+ ############################################################
13
+
14
+ ActiveAdmin.register model.constantize, as: item.to_s do
15
+
16
+ ##################################
17
+ ##################################
18
+
19
+ menu priority: 3, label: -> { "📝 " + model.constantize.model_name.human(count: 2) }
20
+
21
+ ##################################
22
+ ##################################
23
+
24
+ # => Strong Params
25
+ permit_params :slug, :ref, :val
26
+
27
+ ##################################
28
+ ##################################
29
+
30
+
31
+
32
+ ##################################
33
+ ##################################
34
+
35
+ # => Form
36
+ form do |f|
37
+ f.inputs 'Details' do
38
+ f.input :slug
39
+ f.input :ref
40
+ f.input :val, as: :ckeditor
41
+ end
42
+
43
+ f.actions
44
+ end
45
+
46
+ ##################################
47
+ ##################################
48
+
49
+
50
+ end
51
+
52
+ ############################################################
53
+ ############################################################
54
+
55
+ end
@@ -0,0 +1,34 @@
1
+ ActiveAdmin.register User do
2
+
3
+ ##################################
4
+ ##################################
5
+
6
+ # => Menu
7
+ menu priority: 1, label: -> { "🔑" + User.model_name.human(count: 2) }
8
+
9
+ # => Params
10
+ permit_params :email, :password, :password_confirmation
11
+
12
+ ##################################
13
+ ##################################
14
+
15
+ # => Index
16
+ index do
17
+ column :email
18
+ column :current_sign_in_at
19
+ column :last_sign_in_at
20
+ column :sign_in_count
21
+ actions
22
+ end
23
+
24
+ filter :email
25
+
26
+ form do |f|
27
+ f.inputs "Admin Details" do
28
+ f.input :email
29
+ f.input :password
30
+ f.input :password_confirmation
31
+ end
32
+ f.actions
33
+ end
34
+ end
@@ -0,0 +1,20 @@
1
+ ############################################
2
+ ############################################
3
+ ## ___ _ _ ##
4
+ ## / _ \ | | (_) ##
5
+ ## / /_\ \ __| |_ __ ___ _ _ __ ##
6
+ ## | _ |/ _` | '_ ` _ \| | '_ \ ##
7
+ ## | | | | (_| | | | | | | | | | | ##
8
+ ## \_| |_/\__,_|_| |_| |_|_|_| |_| ##
9
+ ## ##
10
+ ############################################
11
+ ############################################
12
+
13
+ #= require active_admin/base
14
+
15
+ <% if Gem.loaded_specs.has_key? "ckeditor" %>
16
+ #= require ckeditor/init
17
+ <% end %>
18
+
19
+ ############################################
20
+ ############################################
@@ -0,0 +1,40 @@
1
+ #########################################################
2
+ #########################################################
3
+ ## ___ _ _ _ _ ##
4
+ ## / _ \ | (_) | | (_) ##
5
+ ## / /_\ \_ __ _ __ | |_ ___ __ _| |_ _ ___ _ __ ##
6
+ ## | _ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ \ ##
7
+ ## | | | | |_) | |_) | | | (_| (_| | |_| | (_) | | | | ##
8
+ ## \_| |_/ .__/| .__/|_|_|\___\__,_|\__|_|\___/|_| |_| ##
9
+ ## | | | | ##
10
+ ## |_| |_| ##
11
+ ## ##
12
+ #########################################################
13
+ #########################################################
14
+
15
+ ## Dependencies ##
16
+ <% %w(jquery jquery_ujs popper bootstrap/util bootstrap/tooltip turbolinks).each do |library| %>
17
+ #= require <%= library %>
18
+ <% end %>
19
+
20
+ ## Extras ##
21
+ #= require_tree ./components
22
+
23
+ ############################################
24
+ # Mobile
25
+ # http://stackoverflow.com/a/3540295/1143732
26
+ ############################################
27
+
28
+ ## Mobile ##
29
+ if !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
30
+
31
+ # => Tooltip
32
+ # => Bootstrap
33
+ $(document).tooltip
34
+ selector: "[title]"
35
+ container: "body"
36
+ trigger: "hover"
37
+ constraints: [{ to: 'scrollParent', attachment: 'together', pin: 'true' }]
38
+
39
+ #########################################################
40
+ #########################################################