simple-admin 0.1.1.pre.alpha → 0.1.2.pre.alpha

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f937de7334f69d61e89fdf1405b70a48ae8cda8
4
- data.tar.gz: 9b9a0474794de4507d45ec27f54fbbf1523d2d68
3
+ metadata.gz: 8bf0afcf85c61c6204b30e4c54387fb396229cf7
4
+ data.tar.gz: fb1485737c969acd5bf3a4e7dad402cc55db903c
5
5
  SHA512:
6
- metadata.gz: 4698e81f3ed33ca8a2a146585ed8ff39787f284487f6ce0fce857119ed153dae1c4c041f66c193580eb03f197c3a110d6ec7779268fc8ca8fe29e488a5fed7ae
7
- data.tar.gz: 0c99c28bb2779024a35915a6e85dffeb3252ca3dfc82359e4f349f1c77e386e82daf8bea6b292d1edd3e44a1d7a500176f1111643ae926f549b95a25ea5b5c4a
6
+ metadata.gz: f62a4ff1b346e034c1e4999909d17965767305a80a0b6e21393082bb82a83925cf60d00e35f28b17625a0f7344ce937875422548e330932251801873c0495eaa
7
+ data.tar.gz: f017439734ea3a7989a7dab92b22c2fe84ce14b48bf52e63a1dc9d8d476b5ba429cb0c21bbc197749bc2bce802320e5725dd520ca313c5bf09ce423662fcb1f4
data/ISSUE_TEMPLATE.md ADDED
@@ -0,0 +1,19 @@
1
+ ## Precheck
2
+
3
+ - Do not use the issues tracker for help or support, try Stack Overflow.
4
+ - For bugs, do a quick search and make sure the bug has not yet been reported
5
+ - Finally, be nice and have fun!
6
+
7
+ ## Environment
8
+
9
+ - Ruby **[version]**
10
+ - Rails **[version]**
11
+ - SimpleAdmin **[version]**
12
+
13
+ ## Current behavior
14
+
15
+ Include code samples, errors, steps to reproduce the error and stacktraces if appropriate.
16
+
17
+ Will be even more helpful if you provide a sample application or a test case that reproduces the error.
18
+
19
+ ## Expected behavior
@@ -10,19 +10,7 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require rails-ujs
14
13
  //= require jquery
14
+ //= require jquery_ujs
15
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
- });
16
+ //= require simple_admin/core
@@ -0,0 +1,12 @@
1
+ $(document).ready(function() {
2
+ if (!!$('#tabs').length) {
3
+ $('#tabs').tabs();
4
+ }
5
+
6
+ if (!!$('#tags').length) {
7
+ $('#tags').tagsInput({
8
+ width: '100%',
9
+ height: '36px'
10
+ });
11
+ }
12
+ });
@@ -18,7 +18,7 @@
18
18
  <div class="block">
19
19
  <div class="block-content">
20
20
  <table class="table table-responsive table-striped table-borderless table-header-bg">
21
- <%= render 'simple_admin/admin/shared/collection/table_header', column_names: ['#', 'Model Class Name', 'Model Plural Name', 'Label', 'Status'] %>
21
+ <%= render 'simple_admin/admin/shared/collection/table_header', column_names: ['#', 'Model Class Name', 'Label', 'Status'] %>
22
22
 
23
23
  <tbody>
24
24
  <% @resources.each do |resource| %>
@@ -1,6 +1,6 @@
1
- <section class="field">
2
- <div class="field__title"><%= field.name %></div>
3
- <div class="field__content">
4
- <%= f.text_field field.name, class: 'input' %>
1
+ <div class="form-group">
2
+ <label class="col-xs-12" for="example-text-input"><%= field.label %></label>
3
+ <div class="col-sm-9">
4
+ <%= f.text_field field.name, class: 'form-control' %>
5
5
  </div>
6
- </section>
6
+ </div>
@@ -16,13 +16,6 @@ module SimpleAdmin
16
16
  )
17
17
  end
18
18
 
19
- def create_user_model
20
- copy_file(
21
- 'user.rb',
22
- 'app/models/simple_admin/user.rb'
23
- )
24
- end
25
-
26
19
  def create_views
27
20
  if defined?(Devise)
28
21
  create_devise_views!
@@ -1,3 +1,3 @@
1
1
  module SimpleAdmin
2
- VERSION = '0.1.1-alpha'.freeze
2
+ VERSION = '0.1.2-alpha'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre.alpha
4
+ version: 0.1.2.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Strukov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-02 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,11 +154,13 @@ files:
154
154
  - CODE_OF_CONDUCT.md
155
155
  - CONTRIBUTING.md
156
156
  - Gemfile
157
+ - ISSUE_TEMPLATE.md
157
158
  - LICENSE.txt
158
159
  - README.md
159
160
  - Rakefile
160
161
  - app/assets/fonts/Simple-Line-Icons.woff
161
162
  - app/assets/javascripts/simple_admin/application.js
163
+ - app/assets/javascripts/simple_admin/core.js
162
164
  - app/assets/stylesheets/simple_admin/application.scss
163
165
  - app/assets/stylesheets/simple_admin/global/buttons.css
164
166
  - app/assets/stylesheets/simple_admin/global/errors.css
@@ -254,7 +256,6 @@ files:
254
256
  - lib/generators/templates/migrations/core_migrations/entity_field_settings_migration.rb
255
257
  - lib/generators/templates/migrations/core_migrations/entity_field_types_migration.rb
256
258
  - lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb
257
- - lib/generators/templates/user.rb
258
259
  - lib/generators/templates/views/devise/registrations/new.html.erb
259
260
  - lib/generators/templates/views/devise/sessions/new.html.erb
260
261
  - lib/generators/templates/views/devise/shared/_footer.html.erb
@@ -1,24 +0,0 @@
1
- module SimpleAdmin
2
- class User < Base
3
- has_one :profile, dependent: :destroy
4
-
5
- has_many :posts
6
- has_many :comments
7
-
8
- accepts_nested_attributes_for :profile, update_only: true
9
- delegate :avatar, :first_name, :last_name, to: :profile, allow_nil: true
10
-
11
- after_create :create_profile!
12
-
13
- def full_name
14
- "#{first_name} #{last_name}"
15
- end
16
-
17
- private
18
-
19
- def create_profile!
20
- profile = build_profile
21
- profile.save
22
- end
23
- end
24
- end