constructor-core 1.0.0beta1 → 1.0.0beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adbea170d2a6f81a42d4484fff1dcbc4e784bd31
4
- data.tar.gz: fea77520947a5af5616c90751a35a8610b84919a
3
+ metadata.gz: 2c741ade729712c5353835535e9931c00f2269cc
4
+ data.tar.gz: d716d8090a2603bcd5896ad66e223990e60c776b
5
5
  SHA512:
6
- metadata.gz: 535db94846b950ba718ba22f09c1e90ec4bd9147fb404f77e759592645b3971af7a2c1ec406a73c3e6160b96152ecc5ed9eff25fd20bebca2e5664613f85a3b1
7
- data.tar.gz: 357b1052969eeaece2f5669aa67d6c81b0a904d4866630950c7f59d6c3ccbf8c642a0d45e3c76bc1b0a115f8938ce62be1ac1eb08aff4634cbe58b28b24581c0
6
+ metadata.gz: 36ef8227c340fb8a8dee79b50629cec8bdbb48162c009b77aac9cd41bbf685d0fddbb3079cbfba675993048d0a32cdcaf4281bd02d18f24b3e8a9cece958216b
7
+ data.tar.gz: 890529cfcb82df20bbe747be90be2dfb2d22b41a146946a2f3d458b8b95633d11f0e70844537533478132b76c780c5b632bd66de35e46ddd8acfbe8f8e836cd7
@@ -12,6 +12,8 @@ $(document).ready ->
12
12
  $('.auto_url').hide()
13
13
  $('#page_url').hide()
14
14
 
15
+ $('.js-sortable').sortable();
16
+
15
17
  auto_url = $('#page_auto_url').is(':checked')
16
18
 
17
19
  unless auto_url
@@ -19,7 +21,7 @@ $(document).ready ->
19
21
 
20
22
  $('#page_name').keyup -> $('.b-full-url__url').html(parameterize())
21
23
  $('#page_parent_id').change ->
22
- parent_full_url = $('#page_parent_id option:selected').data('b-full-url')
24
+ parent_full_url = $('#page_parent_id option:selected').data('full_url')
23
25
  if parent_full_url
24
26
  $('.b-full-url__path').html(parent_full_url)
25
27
  else
@@ -166,6 +166,7 @@
166
166
  }
167
167
 
168
168
  var newList = document.createElement(o.listType);
169
+ $(newList).addClass('b-tree__nested-set');
169
170
 
170
171
  this.beyondMaxLevels = 0;
171
172
 
@@ -0,0 +1,4 @@
1
+ .b-form__list {
2
+ list-style: none;
3
+ padding-left: 0;
4
+ }
@@ -1,6 +1,7 @@
1
1
  .b-full-url__url {
2
2
  font-weight: 400;
3
3
  font-size: 14px;
4
+ color: #333;
4
5
 
5
6
  &:hover {
6
7
  background: #eee;
@@ -1,4 +1,8 @@
1
1
  .b-full-url {
2
+ font-weight: 300;
3
+ font-size: 13px;
4
+ color: #555;
5
+
2
6
  .fa-pencil {
3
7
  display: none;
4
8
  }
@@ -1,10 +1,11 @@
1
1
  .b-tree__link {
2
2
  display: block;
3
- padding: 10px 10px 10px 0;
3
+ height: 41px;
4
+ padding: 0 10px 0 0;
4
5
  color: #333;
5
6
  font-weight: 300 !important;
6
7
  font-size: 14px !important;
7
- line-height: 150%;
8
+ line-height: 42px;
8
9
  margin-left: 40px;
9
10
  text-decoration: none !important;
10
11
 
@@ -1,32 +1,5 @@
1
- # encoding: utf-8
2
-
3
1
  module ConstructorCore
4
2
  class ApplicationController < ::ApplicationController
5
- layout 'constructor_core/application_core'
6
- before_filter :authenticate_user!, :except => [:show, :search]
7
-
8
- helper_method :current_user
9
-
10
- private
11
-
12
- def authenticate_user!
13
- warden.authenticate!
14
- end
15
-
16
- def user_signed_in?
17
- !!current_user
18
- end
19
-
20
- def current_user
21
- @current_user ||= warden.authenticate
22
- end
23
-
24
- def user_session
25
- current_user && warden.session
26
- end
27
-
28
- def warden
29
- request.env['warden']
30
- end
3
+ before_filter :authenticate_user!
31
4
  end
32
5
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module ConstructorCore
4
2
  class SessionsController < Devise::SessionsController
5
3
  layout 'constructor_core/login'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module ConstructorCore
4
2
  class UsersController < ConstructorCore::ApplicationController
5
3
  def profile
@@ -1,11 +1,3 @@
1
- # DOC:
2
- # We use Helper Methods for tree building,
3
- # because it's faster than View Templates and Partials
4
-
5
- # SECURITY note
6
- # Prepare your data on server side for rendering
7
- # or use h.html_escape(node.content)
8
- # for escape potentially dangerous content
9
1
  module RenderExpandableTreeHelper
10
2
  module Render
11
3
  class << self
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module ConstructorCore
4
2
  class User < ActiveRecord::Base
5
3
  devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :token_authenticatable, :timeoutable, :registerable #:confirmable, :omniauthable, :lockable, :encryptable
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.test_files = `git ls-files -- spec/*`.split("\n")
18
18
 
19
- s.add_dependency 'rails', '~> 4.0.2'
19
+ s.add_dependency 'rails', '~> 4.0.3'
20
20
  s.add_dependency 'devise', '~> 3.0.0.rc'
21
21
  s.add_dependency 'slim'
22
22
  s.add_dependency 'jquery-ui-rails'
@@ -1,3 +1,3 @@
1
1
  module ConstructorCore
2
- VERSION = '1.0.0beta1'
2
+ VERSION = '1.0.0beta2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0beta1
4
+ version: 1.0.0beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-14 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.2
19
+ version: 4.0.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.2
26
+ version: 4.0.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: devise
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -137,12 +137,13 @@ files:
137
137
  - app/assets/stylesheets/constructor_core/project/blocks/b-form/__field/b-form__field.scss
138
138
  - app/assets/stylesheets/constructor_core/project/blocks/b-form/__file/b-form__file.scss
139
139
  - app/assets/stylesheets/constructor_core/project/blocks/b-form/__label/b-form__label.scss
140
+ - app/assets/stylesheets/constructor_core/project/blocks/b-form/__list/b-form__list.scss
140
141
  - app/assets/stylesheets/constructor_core/project/blocks/b-form/__row/b-form__row.scss
141
142
  - app/assets/stylesheets/constructor_core/project/blocks/b-form/b-form.scss
142
- - app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__icon/b-full-url__icon.scss
143
- - app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__path/b-full-url__path.scss
144
- - app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__url/b-full-url__url.scss
145
- - app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/b-full-url.scss
143
+ - app/assets/stylesheets/constructor_core/project/blocks/b-full-url/__icon/b-full-url__icon.scss
144
+ - app/assets/stylesheets/constructor_core/project/blocks/b-full-url/__path/b-full-url__path.scss
145
+ - app/assets/stylesheets/constructor_core/project/blocks/b-full-url/__url/b-full-url__url.scss
146
+ - app/assets/stylesheets/constructor_core/project/blocks/b-full-url/b-full-url.scss
146
147
  - app/assets/stylesheets/constructor_core/project/blocks/b-header/b-header.scss
147
148
  - app/assets/stylesheets/constructor_core/project/blocks/b-login/__field/b-login__field.scss
148
149
  - app/assets/stylesheets/constructor_core/project/blocks/b-login/__label/b-login__label.scss
@@ -182,7 +183,7 @@ files:
182
183
  - app/models/constructor_core/user.rb
183
184
  - app/views/constructor_core/sessions/new.html.slim
184
185
  - app/views/constructor_core/users/profile.html.slim
185
- - app/views/layouts/constructor_core/application_core.html.slim
186
+ - app/views/layouts/constructor_core/application.html.slim
186
187
  - app/views/layouts/constructor_core/login.html.slim
187
188
  - config/environments/production.rb
188
189
  - config/initializers/devise.rb
@@ -1,4 +0,0 @@
1
- .b-full-url__path {
2
- font-size: 13px;
3
- color: #555;
4
- }