simple-admin 0.1.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +3 -0
  3. data/.gitattributes +1 -0
  4. data/.gitignore +17 -0
  5. data/.hound.yml +2 -0
  6. data/.inch.yml +4 -0
  7. data/.rspec +2 -0
  8. data/.rubocop.yml +68 -0
  9. data/.travis.yml +11 -0
  10. data/CODE_OF_CONDUCT.md +74 -0
  11. data/CONTRIBUTING.md +51 -0
  12. data/Gemfile +27 -0
  13. data/LICENSE.txt +21 -0
  14. data/README.md +87 -0
  15. data/Rakefile +20 -0
  16. data/app/assets/fonts/Simple-Line-Icons.woff +0 -0
  17. data/app/assets/javascripts/simple_admin/application.js +28 -0
  18. data/app/assets/stylesheets/simple_admin/application.scss +48 -0
  19. data/app/assets/stylesheets/simple_admin/global/buttons.css +473 -0
  20. data/app/assets/stylesheets/simple_admin/global/errors.css +12 -0
  21. data/app/assets/stylesheets/simple_admin/global/fontawesome-icons.css +3024 -0
  22. data/app/assets/stylesheets/simple_admin/global/fonts.css +560 -0
  23. data/app/assets/stylesheets/simple_admin/global/jquery.dataTables.css +169 -0
  24. data/app/assets/stylesheets/simple_admin/global/pagination.css +11 -0
  25. data/app/assets/stylesheets/simple_admin/global/reset.css +197 -0
  26. data/app/assets/stylesheets/simple_admin/global/simple-line-icons.css +672 -0
  27. data/app/assets/stylesheets/simple_admin/global/table.css +214 -0
  28. data/app/assets/stylesheets/simple_admin/global/tags.css +87 -0
  29. data/app/assets/stylesheets/simple_admin/page/aside.css +324 -0
  30. data/app/assets/stylesheets/simple_admin/page/header.css +332 -0
  31. data/app/assets/stylesheets/simple_admin/page/main-container.css +222 -0
  32. data/app/assets/stylesheets/simple_admin/page/sign_in.css +15 -0
  33. data/app/assets/stylesheets/simple_admin/tabs.css +26 -0
  34. data/app/controllers/simple_admin/admin/application_controller.rb +21 -0
  35. data/app/controllers/simple_admin/admin/search_controller.rb +29 -0
  36. data/app/controllers/simple_admin/admin/system/entities_controller.rb +37 -0
  37. data/app/controllers/simple_admin/admin/system/entity_field_types_controller.rb +31 -0
  38. data/app/controllers/simple_admin/admin/system/entity_fields_controller.rb +20 -0
  39. data/app/helpers/simple_admin_helper.rb +15 -0
  40. data/app/models/simple_admin/base.rb +14 -0
  41. data/app/models/simple_admin/entity.rb +50 -0
  42. data/app/models/simple_admin/entity_field.rb +77 -0
  43. data/app/models/simple_admin/entity_field_setting.rb +5 -0
  44. data/app/models/simple_admin/entity_field_type.rb +79 -0
  45. data/app/views/kaminari/_next_page.html.erb +5 -0
  46. data/app/views/kaminari/_page.html.erb +3 -0
  47. data/app/views/kaminari/_paginator.html.erb +26 -0
  48. data/app/views/kaminari/_prev_page.html.erb +5 -0
  49. data/app/views/layouts/devise.html.erb +11 -0
  50. data/app/views/layouts/simple_admin.html.erb +28 -0
  51. data/app/views/simple_admin/admin/resource/_form.html.erb +19 -0
  52. data/app/views/simple_admin/admin/resource/edit.html.erb +21 -0
  53. data/app/views/simple_admin/admin/resource/index.html.erb +13 -0
  54. data/app/views/simple_admin/admin/resource/new.html.erb +21 -0
  55. data/app/views/simple_admin/admin/search/index.html.erb +55 -0
  56. data/app/views/simple_admin/admin/shared/_aside.html.erb +46 -0
  57. data/app/views/simple_admin/admin/shared/_footer.html.erb +5 -0
  58. data/app/views/simple_admin/admin/shared/_header.html.erb +7 -0
  59. data/app/views/simple_admin/admin/shared/collection/_header.html.erb +12 -0
  60. data/app/views/simple_admin/admin/shared/collection/_table_body.html.erb +29 -0
  61. data/app/views/simple_admin/admin/shared/collection/_table_header.html.erb +11 -0
  62. data/app/views/simple_admin/admin/shared/components/_logout.html.erb +6 -0
  63. data/app/views/simple_admin/admin/shared/components/_search.html.erb +14 -0
  64. data/app/views/simple_admin/admin/shared/messages/_errors.html.erb +9 -0
  65. data/app/views/simple_admin/admin/shared/messages/_flash.html.erb +8 -0
  66. data/app/views/simple_admin/admin/system/entities/_form.html.erb +32 -0
  67. data/app/views/simple_admin/admin/system/entities/edit.html.erb +27 -0
  68. data/app/views/simple_admin/admin/system/entities/entity_fields/_form.html.erb +62 -0
  69. data/app/views/simple_admin/admin/system/entities/entity_fields/edit.html.erb +9 -0
  70. data/app/views/simple_admin/admin/system/entities/entity_fields/index.html.erb +39 -0
  71. data/app/views/simple_admin/admin/system/entities/entity_fields/new.html.erb +12 -0
  72. data/app/views/simple_admin/admin/system/entities/index.html.erb +59 -0
  73. data/app/views/simple_admin/admin/system/entities/new.html.erb +21 -0
  74. data/app/views/simple_admin/admin/system/entity_field_types/_form.html.erb +21 -0
  75. data/app/views/simple_admin/admin/system/entity_field_types/edit.html.erb +24 -0
  76. data/app/views/simple_admin/admin/system/entity_field_types/index.html.erb +55 -0
  77. data/app/views/simple_admin/admin/system/entity_field_types/new.html.erb +21 -0
  78. data/app/views/simple_admin/admin/system/entity_fields/create.js.erb +18 -0
  79. data/app/views/simple_admin/admin/system/entity_fields/destroy.js.erb +18 -0
  80. data/app/views/simple_admin/admin/system/entity_fields/update.js.erb +1 -0
  81. data/app/views/simple_admin/fields/boolean/_form.html.erb +6 -0
  82. data/app/views/simple_admin/fields/boolean/_index.html.erb +5 -0
  83. data/app/views/simple_admin/fields/image/_collection.html.erb +5 -0
  84. data/app/views/simple_admin/fields/image/_form.html.erb +6 -0
  85. data/app/views/simple_admin/fields/number/_collection.html.erb +5 -0
  86. data/app/views/simple_admin/fields/number/_form.html.erb +6 -0
  87. data/app/views/simple_admin/fields/password/_form.html.erb +6 -0
  88. data/app/views/simple_admin/fields/relation/_collection.html.erb +3 -0
  89. data/app/views/simple_admin/fields/relation/_form.html.erb +6 -0
  90. data/app/views/simple_admin/fields/select/_form.html.erb +8 -0
  91. data/app/views/simple_admin/fields/select/_index.html.erb +5 -0
  92. data/app/views/simple_admin/fields/string/_collection.html.erb +3 -0
  93. data/app/views/simple_admin/fields/string/_form.html.erb +6 -0
  94. data/app/views/simple_admin/fields/tags/_collection.html.erb +3 -0
  95. data/app/views/simple_admin/fields/tags/_form.html.erb +6 -0
  96. data/app/views/simple_admin/fields/text/_collection.html.erb +3 -0
  97. data/app/views/simple_admin/fields/text/_form.html.erb +6 -0
  98. data/bin/bundle +4 -0
  99. data/bin/rails +5 -0
  100. data/codecov.yml +21 -0
  101. data/config/locales/en.yml +23 -0
  102. data/config/locales/ru.yml +20 -0
  103. data/config/routes.rb +19 -0
  104. data/lib/generators/simple_admin/install_generator.rb +41 -0
  105. data/lib/generators/simple_admin/migration_generator.rb +24 -0
  106. data/lib/generators/templates/application_controller.rb +20 -0
  107. data/lib/generators/templates/initializers/simple_admin.rb.erb +3 -0
  108. data/lib/generators/templates/migrations/core_data_migration.rb +12 -0
  109. data/lib/generators/templates/migrations/core_migrations/entities_migration.rb +13 -0
  110. data/lib/generators/templates/migrations/core_migrations/entity_field_settings_migration.rb +12 -0
  111. data/lib/generators/templates/migrations/core_migrations/entity_field_types_migration.rb +12 -0
  112. data/lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb +18 -0
  113. data/lib/generators/templates/user.rb +24 -0
  114. data/lib/generators/templates/views/devise/registrations/new.html.erb +46 -0
  115. data/lib/generators/templates/views/devise/sessions/new.html.erb +35 -0
  116. data/lib/generators/templates/views/devise/shared/_footer.html.erb +3 -0
  117. data/lib/simple_admin.rb +39 -0
  118. data/lib/simple_admin/config.rb +19 -0
  119. data/lib/simple_admin/engine.rb +15 -0
  120. data/lib/simple_admin/helpers/boolean_helper.rb +36 -0
  121. data/lib/simple_admin/helpers/url_helper.rb +29 -0
  122. data/lib/simple_admin/refinements/boolean.rb +36 -0
  123. data/lib/simple_admin/resource_controller/actions_builder.rb +40 -0
  124. data/lib/simple_admin/resource_controller/controller_builder.rb +31 -0
  125. data/lib/simple_admin/resource_controller/crudify.rb +111 -0
  126. data/lib/simple_admin/resource_controller/crudify_dynamic_resource.rb +55 -0
  127. data/lib/simple_admin/resource_controller/dynamic_fields.rb +53 -0
  128. data/lib/simple_admin/search.rb +23 -0
  129. data/lib/simple_admin/version.rb +3 -0
  130. data/simple_admin.gemspec +38 -0
  131. data/vendor/assets/fonts/Simple-Line-Icons.eot +0 -0
  132. data/vendor/assets/fonts/Simple-Line-Icons.ttf +0 -0
  133. data/vendor/assets/fonts/Simple-Line-Icons.woff +0 -0
  134. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  135. data/vendor/assets/fonts/fontawesome-webfont.svg +2671 -0
  136. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  137. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  138. data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
  139. metadata +307 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5b81b47e64d398d477e30996174cb5e78d8ca81a
4
+ data.tar.gz: d93cbc834166e61d9c4b05538b311f4044f7f467
5
+ SHA512:
6
+ metadata.gz: f9f1a88c2270019052872f04feeb26aadf1f8e6e4dad977a8d92ea156d362bbf5d988d44432a40ee914d2e1817e8a5fe12f86f6e2d10c1f8fb27707d6632116f
7
+ data.tar.gz: d06e12db1fc280e4f48b5e276a4f7119a094df1717f1959d0e65bfc3fa63cd885d2f49cef653878918e6f76c9bc3b160779abdefe69acc6647d0e8b1ff553145
@@ -0,0 +1,3 @@
1
+ engines:
2
+ csslint:
3
+ enabled: false
@@ -0,0 +1 @@
1
+ app/assets/stylesheets/* linguist-vendored
@@ -0,0 +1,17 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /spec/example_app/log
10
+ /spec/example_app/log/*
11
+ /spec/example_app/public/*
12
+ /spec/example_app/tmp
13
+ /tmp/
14
+
15
+ # rspec failure tracking
16
+ .rspec_status
17
+ .idea/
@@ -0,0 +1,2 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
@@ -0,0 +1,4 @@
1
+ files:
2
+ excluded:
3
+ - lib/generators/**/*.rb
4
+ - app/**/*.rb
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,68 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'vendor/**/*'
4
+ - 'spec/fixtures/**/*'
5
+ - 'spec/example_app/**/*'
6
+ - 'lib/generators/**/*'
7
+ - 'tmp/**/*'
8
+ - 'bin/*'
9
+ - 'spec/support'
10
+ - 'spec/factories'
11
+ - 'spec/fixtures'
12
+ - 'spec/support/*'
13
+ - 'spec/spec_helper.rb'
14
+ - 'spec/rails_helper.rb'
15
+ - 'db/schema.rb'
16
+ - 'db/migrate/*'
17
+ - 'config/*'
18
+ - 'app/controllers/users/base_controller.rb'
19
+ - 'app/controllers/users/base_controller.rb'
20
+ TargetRubyVersion: 2.3
21
+ DisplayCopNames: true
22
+
23
+ Style/Encoding:
24
+ Enabled: false
25
+
26
+ Style/Documentation:
27
+ Enabled: false
28
+
29
+ Style/SpaceAroundEqualsInParameterDefault:
30
+ EnforcedStyle: no_space
31
+
32
+ Style/ParallelAssignment:
33
+ Enabled: false
34
+
35
+ Style/FrozenStringLiteralComment:
36
+ Enabled: false
37
+
38
+ Style/GuardClause:
39
+ Enabled: false
40
+
41
+ Metrics/ModuleLength:
42
+ Exclude:
43
+ - "**/*_spec.rb"
44
+
45
+ Metrics/BlockLength:
46
+ Exclude:
47
+ - "**/*_spec.rb"
48
+
49
+ Metrics/LineLength:
50
+ Max: 130
51
+
52
+ Metrics/MethodLength:
53
+ Max: 25
54
+
55
+ Metrics/AbcSize:
56
+ Max: 30
57
+
58
+ Metrics/CyclomaticComplexity:
59
+ Max: 10
60
+
61
+ Metrics/BlockLength:
62
+ Max: 75
63
+
64
+ Style/IndentationConsistency:
65
+ Enabled: false
66
+
67
+ Style/ClassAndModuleChildren:
68
+ Enabled: false
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.4.1
5
+
6
+ services:
7
+ - postgresql
8
+
9
+ before_script:
10
+ - psql -c 'create database simpleadmin_prototype_test;' -U postgres
11
+ - bundle exec rake db:migrate
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at strukov@charmerstudio.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,51 @@
1
+ Simple Admin is an open source project and we would love you to help us make it better.
2
+
3
+ ## Reporting Issues
4
+
5
+ A well formatted issue is appreciated, and goes a long way in helping us help you.
6
+
7
+ * Make sure you have a [GitHub account](https://github.com/signup/free)
8
+ * Submit a [Github issue](./issues) by:
9
+ * Clearly describing the issue
10
+ * Provide a descriptive summary
11
+ * Explain the expected behavior
12
+ * Explain the actual behavior
13
+ * Provide steps to reproduce the actual behavior
14
+ * Provide your application's complete `Gemfile.lock` as text (in a [Gist](https://gist.github.com) for bonus points)
15
+ * Any relevant stack traces
16
+
17
+ If you provide code, make sure it is formatted with the triple backticks (\`).
18
+
19
+ At this point, we'd love to tell you how long it will take for us to respond,
20
+ but we just don't know.
21
+
22
+ ## Pull requests
23
+
24
+ We accept pull requests to Simple Admin for:
25
+
26
+ * Adding documentation
27
+ * Fixing bugs
28
+ * Adding new features
29
+
30
+ Not all features proposed will be added but we are open to having a conversation
31
+ about a feature you are championing.
32
+
33
+ Here's a quick guide:
34
+
35
+ 1. Fork the repo.
36
+
37
+ 2. Run the tests. This is to make sure your starting point works. Tests can be
38
+ run via `rake`
39
+
40
+ 3. Create a new branch and make your changes. This includes tests for features!
41
+
42
+ 4. Push to your fork and submit a pull request. For more information, see
43
+ [Github's pull request help section](https://help.github.com/articles/using-pull-requests/).
44
+
45
+ At this point you're waiting on us. Expect a conversation regarding your pull
46
+ request; Questions, clarifications, and so on.
47
+
48
+ Some things that will increase the chance that your pull request is accepted:
49
+
50
+ * Include tests that fail without your code, and pass with it
51
+ * Update the documentation, guides, etc.
data/Gemfile ADDED
@@ -0,0 +1,27 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ ruby '2.4.1'
6
+
7
+ gem 'rails', '~> 5.0.0'
8
+
9
+ gem 'pg'
10
+ gem 'rdoc', require: false
11
+
12
+ group :development, :test do
13
+ gem 'factory_bot_rails'
14
+ gem 'rspec-rails'
15
+ end
16
+
17
+ group :test do
18
+ gem 'codecov', require: false
19
+ gem 'simplecov', require: false
20
+
21
+ gem 'database_cleaner'
22
+ gem 'faker'
23
+ gem 'rails-controller-testing'
24
+ gem 'sprockets-rails', require: 'sprockets/railtie'
25
+
26
+ gem 'pry'
27
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Dmitriy Strukov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,87 @@
1
+ # SimpleAdmin
2
+
3
+ [![Build Status](https://travis-ci.org/evil-raccoon/simple_admin.svg?branch=master)](https://travis-ci.org/evil-raccoon/simple_admin)
4
+ [![codecov](https://codecov.io/gh/evil-raccoon/simple_admin/branch/master/graph/badge.svg)](https://codecov.io/gh/evil-raccoon/simple_admin)
5
+ [![Inline docs](http://inch-ci.org/github/evil-raccoon/simple_admin.svg)](http://inch-ci.org/github/evil-raccoon/simple_admin)
6
+
7
+ A framework for creating admin dashboards in an instant. Try the demo.
8
+ [Try the demo][demo].
9
+
10
+ ## Getting started
11
+ Add SimpleAdmin to your Gemfile and run bundle:
12
+
13
+ ![simple_admin](https://i.imgur.com/s1fGVRq.png)
14
+
15
+ ```ruby
16
+ gem 'simple_admin', git: 'https://github.com/evil-raccoon/simple_admin.git'
17
+ ```
18
+
19
+ The following generators will create rolify initializer and core migrations.
20
+
21
+ ```ruby
22
+ rails generate simple_admin:install
23
+ rails generate simple_admin:migration
24
+
25
+ rails db:migrate
26
+ ```
27
+
28
+ Restart your server, and visit [http://localhost:3000/admin/system/entities](http://localhost:3000/admin/system/entities) for authentication.
29
+
30
+ ### Authentication
31
+
32
+ Simple admin is very flexible solution, so you can use any gems for that purposes, all you need is just create `app/controllers/simple_admin/admin/application_controller.rb` and remove current_user and authenticate_user! methods with `raise NotImplemented` error and keep the following.
33
+
34
+ ```ruby
35
+ # app/controllers/simple_admin/admin/application_controller.rb
36
+
37
+ module SimpleAdmin
38
+ module Admin
39
+ class ApplicationController < ActionController::Base
40
+ layout 'simple_admin'
41
+
42
+ # use here you authentication before action
43
+ end
44
+ end
45
+ end
46
+ ```
47
+
48
+ After that create next partial:
49
+
50
+ ```ruby
51
+ # app/views/simple_admin/admin/shared/components/_logout.html.erb
52
+
53
+ <ul class="nav-header pull-right">
54
+ <li>
55
+ <%= link_to t('simple_admin.actions.logout'), destroy_user_session_path, method: :delete %>
56
+ </li>
57
+ </ul>
58
+ ```
59
+
60
+ ## Dependencies
61
+
62
+ We try to minimize the use of third-party libraries, but Simple Admin built with the following open source projects:
63
+
64
+ Tool | Description
65
+ --------------------- | -----------
66
+ [Kaminari] | Paginator for Ruby webapps
67
+
68
+ [Kaminari]: https://github.com/kaminari/kaminari
69
+
70
+ ## Contributing
71
+
72
+ 1. Fork it ( https://github.com/evil-raccoon/simple_admin/fork )
73
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
74
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
75
+ 4. Push to the branch (`git push origin my-new-feature`)
76
+ 5. Create a new Pull Request
77
+
78
+
79
+ [CanCanCan]: https://github.com/CanCanCommunity/cancancan
80
+
81
+ ## Copyright
82
+
83
+ Released under MIT License.
84
+
85
+ Copyright © 2017 Evil Raccoon.
86
+
87
+ [demo]: https://simpleadmin.herokuapp.com
@@ -0,0 +1,20 @@
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 File.expand_path('../spec/example_app/config/application', __FILE__)
8
+
9
+ Bundler::GemHelper.install_tasks
10
+
11
+ Rails.application.load_tasks
12
+ task(:default).clear
13
+ task default: [:spec]
14
+
15
+ if defined? RSpec
16
+ task(:spec).clear
17
+ RSpec::Core::RakeTask.new(:spec) do |t|
18
+ t.verbose = false
19
+ end
20
+ end
@@ -0,0 +1,28 @@
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 rails-ujs
14
+ //= require jquery
15
+ //= require jquery-ui/widgets/tabs
16
+
17
+ $(document).ready(function() {
18
+ if (!!$('#tabs').length) {
19
+ $('#tabs').tabs();
20
+ }
21
+
22
+ if (!!$('#tags').length) {
23
+ $('#tags').tagsInput({
24
+ width: '100%',
25
+ height: '36px'
26
+ });
27
+ }
28
+ });