constructor-core 1.0.0beta1 → 1.0.0beta2
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 +4 -4
- data/app/assets/javascripts/constructor_core/application.js.coffee +3 -1
- data/app/assets/javascripts/constructor_core/jquery.ui.nestedSortable.js +1 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__list/b-form__list.scss +4 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/{b-form/b-full-url → b-full-url}/__icon/b-full-url__icon.scss +0 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/b-full-url/__path/b-full-url__path.scss +3 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/{b-form/b-full-url → b-full-url}/__url/b-full-url__url.scss +1 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/{b-form/b-full-url → b-full-url}/b-full-url.scss +4 -0
- data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__link/b-tree__link.scss +3 -2
- data/app/controllers/constructor_core/application_controller.rb +1 -28
- data/app/controllers/constructor_core/sessions_controller.rb +0 -2
- data/app/controllers/constructor_core/users_controller.rb +0 -2
- data/app/helpers/render_expandable_tree_helper.rb +0 -8
- data/app/models/constructor_core/user.rb +0 -2
- data/app/views/layouts/constructor_core/{application_core.html.slim → application.html.slim} +0 -0
- data/constructor-core.gemspec +1 -1
- data/lib/constructor_core/version.rb +1 -1
- metadata +10 -9
- data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__path/b-full-url__path.scss +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c741ade729712c5353835535e9931c00f2269cc
|
4
|
+
data.tar.gz: d716d8090a2603bcd5896ad66e223990e60c776b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
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
|
File without changes
|
@@ -1,10 +1,11 @@
|
|
1
1
|
.b-tree__link {
|
2
2
|
display: block;
|
3
|
-
|
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:
|
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
|
-
|
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,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
|
data/app/views/layouts/constructor_core/{application_core.html.slim → application.html.slim}
RENAMED
File without changes
|
data/constructor-core.gemspec
CHANGED
@@ -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.
|
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'
|
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.
|
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-
|
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.
|
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.
|
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-
|
143
|
-
- app/assets/stylesheets/constructor_core/project/blocks/b-
|
144
|
-
- app/assets/stylesheets/constructor_core/project/blocks/b-
|
145
|
-
- app/assets/stylesheets/constructor_core/project/blocks/b-
|
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/
|
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
|