constructor-core 0.9.1 → 1.0.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/.keep +0 -0
  3. data/app/assets/javascripts/constructor_core/application.js.coffee +15 -18
  4. data/app/assets/javascripts/constructor_core/expandable_tree/hashchange.js.coffee +33 -0
  5. data/app/assets/javascripts/constructor_core/expandable_tree/initializer.js.coffee +106 -0
  6. data/app/assets/javascripts/constructor_core/expandable_tree/jquery.cookie.coffee +68 -0
  7. data/app/assets/javascripts/constructor_core/expandable_tree/restorable.js.coffee +122 -0
  8. data/app/assets/javascripts/constructor_core/jquery.ui.nestedSortable.js +429 -0
  9. data/app/assets/javascripts/constructor_core/jquery_bundle.js.coffee +2 -1
  10. data/app/assets/javascripts/constructor_core/render_tree_helper.js.coffee +82 -0
  11. data/app/assets/javascripts/constructor_core/sortable_tree/initializer.js.coffee +54 -0
  12. data/app/assets/stylesheets/constructor_core/application.css.scss +24 -1
  13. data/app/assets/stylesheets/constructor_core/framework/all.scss +4 -0
  14. data/app/assets/stylesheets/constructor_core/framework/classes.scss +4 -0
  15. data/app/assets/stylesheets/constructor_core/framework/globals.scss +49 -0
  16. data/app/assets/stylesheets/constructor_core/framework/grid.scss +33 -0
  17. data/app/assets/stylesheets/constructor_core/framework/mixin.scss +193 -0
  18. data/app/assets/stylesheets/constructor_core/project/blocks/b-button/_color/b-button_color_light.scss +12 -0
  19. data/app/assets/stylesheets/constructor_core/project/blocks/b-button/_size/b-button_size_small.scss +7 -0
  20. data/app/assets/stylesheets/constructor_core/project/blocks/b-button/b-button.scss +29 -0
  21. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__actions/b-form__actions.scss +3 -0
  22. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__field/b-form__field.scss +12 -0
  23. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__file/b-form__file.scss +12 -0
  24. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__label/b-form__label.scss +7 -0
  25. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/__row/b-form__row.scss +4 -0
  26. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-form.scss +1 -0
  27. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__icon/b-full-url__icon.scss +5 -0
  28. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__path/b-full-url__path.scss +4 -0
  29. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/__url/b-full-url__url.scss +8 -0
  30. data/app/assets/stylesheets/constructor_core/project/blocks/b-form/b-full-url/b-full-url.scss +11 -0
  31. data/app/assets/stylesheets/constructor_core/project/blocks/b-header/b-header.scss +6 -0
  32. data/app/assets/stylesheets/constructor_core/project/blocks/b-login/__field/b-login__field.scss +13 -0
  33. data/app/assets/stylesheets/constructor_core/project/blocks/b-login/__label/b-login__label.scss +6 -0
  34. data/app/assets/stylesheets/constructor_core/project/blocks/b-login/__remember/b-login__remember.scss +4 -0
  35. data/app/assets/stylesheets/constructor_core/project/blocks/b-login/b-login.scss +8 -0
  36. data/app/assets/stylesheets/constructor_core/project/blocks/b-logo/b-logo.scss +15 -0
  37. data/app/assets/stylesheets/constructor_core/project/blocks/b-menu/__item-icon/b-menu__item-icon.scss +3 -0
  38. data/app/assets/stylesheets/constructor_core/project/blocks/b-menu/__item-link/_active/b-menu__item-link_active.scss +10 -0
  39. data/app/assets/stylesheets/constructor_core/project/blocks/b-menu/__item-link/b-menu__item-link.scss +13 -0
  40. data/app/assets/stylesheets/constructor_core/project/blocks/b-menu/__item/b-menu__item.scss +4 -0
  41. data/app/assets/stylesheets/constructor_core/project/blocks/b-menu/b-menu.scss +5 -0
  42. data/app/assets/stylesheets/constructor_core/project/blocks/b-profile/b-profile.scss +3 -0
  43. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__expand/b-tree__expand.scss +10 -0
  44. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__handle/b-tree__handle.scss +8 -0
  45. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__item/b-tree__item.scss +5 -0
  46. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__li/b-tree__li.scss +4 -0
  47. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__link/b-tree__link.scss +14 -0
  48. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__nested-set/b-tree__nested-set.scss +6 -0
  49. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/__url/b-tree__url.scss +5 -0
  50. data/app/assets/stylesheets/constructor_core/project/blocks/b-tree/b-tree.scss +5 -0
  51. data/app/assets/stylesheets/constructor_core/project/layouts/l-all/l-all.scss +4 -0
  52. data/app/assets/stylesheets/constructor_core/project/layouts/l-content/l-content.scss +3 -0
  53. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__avatar/l-header__avatar.scss +5 -0
  54. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__email/l-header__email.scss +12 -0
  55. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__link-icon/l-header__link-icon.scss +4 -0
  56. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__link/l-header__link.scss +12 -0
  57. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__logout/l-header__logout.scss +11 -0
  58. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/__profile/l-header__profile.scss +4 -0
  59. data/app/assets/stylesheets/constructor_core/project/layouts/l-header/l-header.scss +7 -0
  60. data/app/assets/stylesheets/constructor_core/project/layouts/l-pages/l-pages.scss +3 -0
  61. data/app/assets/stylesheets/constructor_core/project/layouts/l-sidebar/l-sidebar.scss +7 -0
  62. data/app/controllers/constructor_core/sessions_controller.rb +1 -1
  63. data/app/helpers/constructor_core/application_helper.rb +6 -0
  64. data/app/helpers/render_expandable_tree_helper.rb +51 -0
  65. data/app/views/constructor_core/sessions/new.html.slim +11 -20
  66. data/app/views/constructor_core/users/profile.html.slim +11 -17
  67. data/app/views/layouts/constructor_core/application_core.html.slim +44 -70
  68. data/app/views/layouts/constructor_core/login.html.slim +27 -0
  69. data/config/locales/en.yml +3 -2
  70. data/config/locales/fr.yml +3 -2
  71. data/config/locales/ru.yml +2 -1
  72. data/constructor-core.gemspec +4 -3
  73. data/lib/constructor-core.rb +5 -2
  74. data/lib/constructor_core/version.rb +1 -1
  75. data/{app → vendor}/assets/javascripts/constructor_core/jquery.cookie.js +0 -0
  76. data/{app → vendor}/assets/javascripts/constructor_core/keys_snippet.js +0 -0
  77. data/{app → vendor}/assets/javascripts/constructor_core/retina.js +0 -0
  78. data/vendor/assets/stylesheets/constructor_core/framework/all.scss +4 -0
  79. data/vendor/assets/stylesheets/constructor_core/framework/classes.scss +4 -0
  80. data/vendor/assets/stylesheets/constructor_core/framework/globals.scss +49 -0
  81. data/vendor/assets/stylesheets/constructor_core/framework/grid.scss +33 -0
  82. data/vendor/assets/stylesheets/constructor_core/framework/mixin.scss +193 -0
  83. metadata +94 -45
  84. data/app/assets/images/constructor_core/glyphicons-halflings-white.png +0 -0
  85. data/app/assets/images/constructor_core/glyphicons-halflings.png +0 -0
  86. data/app/assets/images/constructor_core/minus.gif +0 -0
  87. data/app/assets/images/constructor_core/plus.gif +0 -0
  88. data/app/assets/images/constructor_core/rss.png +0 -0
  89. data/app/assets/images/constructor_core/treeview-black-line.gif +0 -0
  90. data/app/assets/images/constructor_core/treeview-black.gif +0 -0
  91. data/app/assets/images/constructor_core/treeview-default-line.gif +0 -0
  92. data/app/assets/images/constructor_core/treeview-default.gif +0 -0
  93. data/app/assets/images/constructor_core/treeview-famfamfam-line.gif +0 -0
  94. data/app/assets/images/constructor_core/treeview-famfamfam.gif +0 -0
  95. data/app/assets/images/constructor_core/treeview-gray-line.gif +0 -0
  96. data/app/assets/images/constructor_core/treeview-gray.gif +0 -0
  97. data/app/assets/images/constructor_core/treeview-red-line.gif +0 -0
  98. data/app/assets/images/constructor_core/treeview-red.gif +0 -0
  99. data/app/assets/images/constructor_core/twitter.png +0 -0
  100. data/app/assets/images/constructor_core/widgets.png +0 -0
  101. data/app/assets/javascripts/constructor_core/bootstrap.js +0 -2276
  102. data/app/assets/stylesheets/constructor_core/main.css.scss.erb +0 -233
  103. data/app/views/constructor_core/devise/confirmations/new.html.slim +0 -10
  104. data/app/views/constructor_core/devise/mailer/confirmation_instructions.html.slim +0 -5
  105. data/app/views/constructor_core/devise/mailer/reset_password_instructions.html.slim +0 -7
  106. data/app/views/constructor_core/devise/mailer/unlock_instructions.html.slim +0 -5
  107. data/app/views/constructor_core/devise/passwords/edit.html.slim +0 -21
  108. data/app/views/constructor_core/devise/passwords/new.html.slim +0 -13
  109. data/app/views/constructor_core/devise/registrations/edit.html.slim +0 -28
  110. data/app/views/constructor_core/devise/registrations/new.html.slim +0 -20
  111. data/app/views/constructor_core/devise/shared/_links.html.slim +0 -19
  112. data/app/views/constructor_core/devise/unlocks/new.html.slim +0 -9
@@ -1,233 +0,0 @@
1
- @import 'bootstrap';
2
- @import 'font-awesome';
3
-
4
- $red: #ED2B00;
5
- $yellow: #FFC404;
6
- $green: #2AB500;
7
- $violet: #8E0BD6;
8
- $blue: #0D98FF;
9
-
10
- $redDark: #B82100;
11
- $yellowDark: #D9A603;
12
- $greenDark: #218F00;
13
- $violetDark: #6B08A1;
14
- $blueDark: #0A7BCF;
15
-
16
- body {
17
- min-width: 950px;
18
- color: $gray;
19
- }
20
-
21
- a {
22
- &:link {
23
- color: $blue;
24
- }
25
-
26
- &:active, &:hover, &:focus {
27
- color: $red;
28
- }
29
- }
30
-
31
-
32
- h3 {
33
- font-weight: normal;
34
- }
35
-
36
- .text-right {
37
- text-align: right;
38
- }
39
-
40
- .avatar {
41
- @include border-radius(2px);
42
- }
43
-
44
- .form-actions {
45
- background-color: rgba(245,245,245,0.4);
46
- }
47
-
48
- .navbar-constructor > .navbar-inner {
49
- padding: 5px;
50
- background-color: rgba(245,245,245,0.7);
51
- background-image: none;
52
- @include border-radius(0);
53
- @include box-shadow(none);
54
- border: none;
55
- border-bottom: 1px solid #ddd;
56
- }
57
-
58
- .navbar .nav > li > a {
59
- &:hover { color: $red }
60
- }
61
-
62
- .btn {
63
- @include buttonBackground(#fff, #eee, $grayDark);
64
- background-color: $grayLighter;
65
- color: $gray;
66
- border: 1px solid #ddd;
67
- text-shadow: none;
68
- font-weight: normal;
69
- @include box-shadow(none);
70
-
71
- &:active, &:link, &:hover, &:focus {
72
- color: $gray;
73
- }
74
-
75
- &.btn-link {
76
- background-image: none;
77
- color: $blue;
78
- border: none;
79
- background-color: transparent;
80
-
81
- &:link {
82
- color: $blue
83
- }
84
-
85
- &:active, &:hover, &:focus {
86
- color: $red;
87
- text-decoration: none;
88
- }
89
- }
90
-
91
- &.btn-danger {
92
- background-image: none;
93
- border: none;
94
- color: $red;
95
- background-color: transparent;
96
-
97
-
98
- &:link {
99
- color: $red;
100
- }
101
-
102
- &:active, &:hover, &:focus {
103
- background-color: $red;
104
- color: $white;
105
- }
106
- }
107
-
108
- &.btn-primary {
109
- background-image: none;
110
- border: none;
111
- background-color: $blueDark;
112
- color: $white;
113
-
114
- &:link {
115
- color: $white;
116
- }
117
-
118
- &:active, &:hover, &:focus {}
119
- }
120
-
121
- &.btn-success {
122
- background-image: none;
123
- border: none;
124
- background-color: $green;
125
- color: $white;
126
-
127
- &:link {
128
- color: $white;
129
- }
130
-
131
- &:active, &:hover, &:focus {}
132
- }
133
-
134
- &.btn-large { font-size: $baseFontSize*1.5 }
135
- }
136
-
137
- .images_controls {
138
- float: left;
139
- overflow: hidden;
140
- display: inline-block;
141
- width: 180px;
142
- margin-bottom: 20px;
143
-
144
- .actions {
145
- margin-top: 5px;
146
- margin-left: 28px;
147
- }
148
- }
149
-
150
- .sizes .controls {
151
- margin-bottom: 30px;
152
- }
153
-
154
- .url {
155
- font-size: 12px;
156
-
157
- .full_url {
158
- margin-top: 6px;
159
- float: left;
160
- }
161
-
162
- .icon-pencil {
163
- margin-top: 10px;
164
- margin-left: 3px;
165
- }
166
-
167
- .address {
168
- font-weight: bold;
169
-
170
- &:hover {
171
- background-color: #ffa;
172
- }
173
- }
174
- }
175
-
176
- .url .icon-pencil {
177
- display: none;
178
- }
179
-
180
- .url:hover .icon-pencil {
181
- display: inline-block;
182
- }
183
-
184
- .b-tree {
185
- ul {
186
- list-style: none;
187
- margin-left: 60px;
188
-
189
- &:first-child {
190
- margin-left: 0;
191
- padding-left: 0;
192
- }
193
-
194
- li {
195
- margin-top: 10px;
196
- padding-top: 10px;
197
- border-top: 1px solid #eee;
198
-
199
-
200
- .btn-group {
201
- margin-right: 5px;
202
-
203
- > .btn {
204
- margin-right: 0;
205
- }
206
- }
207
-
208
- .btn {
209
- margin-right: 5px;
210
- }
211
-
212
- .btn-danger {
213
- margin-top: 4px;
214
- }
215
-
216
- &:hover {
217
- > .b-tree__buttons {
218
- visibility: visible;
219
- }
220
- }
221
- }
222
- }
223
- }
224
-
225
- .b-tree__buttons {
226
- @include ie7-inline-block();
227
- display: inline;
228
- visibility: hidden;
229
- }
230
-
231
- <% (1..10).each do |i| %>
232
- <%= ".level#{i} { margin-left: #{i*45}px }" %>
233
- <% end %>
@@ -1,10 +0,0 @@
1
- h2 Отправить инструкцию активации
2
- = form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
3
- = devise_error_messages!
4
- p
5
- = f.label :email
6
- br
7
- = f.email_field :email
8
- p= f.submit 'Отправить'
9
- = render partial: 'devise/shared/links'
10
-
@@ -1,5 +0,0 @@
1
- p
2
- | Добро пожаловать, #{@resource.email}!
3
- p Для того чтобы подтвердить ваш аккаунт, пройдите по следующей ссылке:
4
- p= link_to 'Подтвердить аккаунт', confirmation_url(@resource, confirmation_token: @resource.confirmation_token)
5
-
@@ -1,7 +0,0 @@
1
- p
2
- | Привет, #{@resource.email}!
3
- p Вы сделали запрос на смену пароля. Для того чтобы изменить пароль пройдите по следующей ссылке:
4
- p= link_to 'Изменить пароль', edit_password_url(@resource, reset_password_token: @resource.reset_password_token)
5
- p Если Вы не делали запрос на изменение пароля, то проигнорируйте это письмо.
6
- p Ваш пароль останется прежним до тех пор пока вы не пройдете по ссылке.
7
-
@@ -1,5 +0,0 @@
1
- p
2
- | Hello #{@resource.email}!
3
- p Your account has been locked due to an excessive amount of unsuccessful sign in attempts.
4
- p Click the link below to unlock your account:
5
- p= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @resource.unlock_token)
@@ -1,21 +0,0 @@
1
- - content_for :page_title do
2
- | Смена пароля
3
-
4
- = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
5
- = devise_error_messages!
6
- = f.hidden_field :reset_password_token
7
- .clearfix
8
- = f.label :password, 'Новый пароль'
9
- .input
10
- = f.password_field :password
11
- .clearfix
12
- = f.label :password_confirmation, 'Еще раз'
13
- .input
14
- = f.password_field :password_confirmation
15
- .clearfix
16
- .input
17
- = f.submit 'Сменить пароль', class: 'btn primary'
18
-
19
- - content_for :sidebar do
20
- = render partial: 'devise/shared/links'
21
-
@@ -1,13 +0,0 @@
1
- - content_for :page_title do
2
- | Восстановить пароль
3
-
4
- = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
5
- = devise_error_messages!
6
- .clearfix
7
- = f.label :email, 'Электропочта'
8
- .input
9
- = f.email_field :email
10
- .clearfix
11
- .input
12
- = f.submit 'Отправить', class: 'btn primary'
13
-
@@ -1,28 +0,0 @@
1
- h2
2
- | Редактивароние аккаунта #{resource_name.to_s.humanize}
3
- = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
4
- = devise_error_messages!
5
- p
6
- = f.label :email
7
- br
8
- = f.email_field :email
9
- p
10
- = f.label :password
11
- i (оставьте пустым, если хотите сохранить пароль прежним)
12
- br
13
- = f.password_field :password
14
- p
15
- = f.label :password_confirmation
16
- br
17
- = f.password_field :password_confirmation
18
- p
19
- = f.label :current_password
20
- i (необходимо ввести ваш текущий пароль для подтверждения изменений)
21
- br
22
- = f.password_field :current_password
23
- p= f.submit 'Сохранить'
24
- h3 Удалить мой аккаунт
25
- p
26
- | #{link_to 'Удалить', registration_path(resource_name), confirm: 'Вы уверены?', method: :delete}.
27
- = link_to 'Назад', :back
28
-
@@ -1,20 +0,0 @@
1
- .register_form
2
- h2 Регистрация
3
- = form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
4
- = devise_error_messages!
5
- p.email
6
- = f.label :email
7
- br
8
- = f.email_field :email
9
- p
10
- = f.label :password
11
- br
12
- = f.password_field :password
13
- p
14
- = f.label :password_confirmation
15
- br
16
- = f.password_field :password_confirmation
17
- p.button= f.submit 'Зарегистрироваться'
18
-
19
- .links
20
- = render partial: 'devise/shared/links'
@@ -1,19 +0,0 @@
1
- - if controller_name != 'sessions'
2
- = link_to 'Вход с паролем', auth.new_session_path(resource_name)
3
- br
4
- - if devise_mapping.registerable? && controller_name != 'registrations'
5
- = link_to 'Регистрация', auth.new_registration_path(resource_name)
6
- br
7
- - if devise_mapping.recoverable? && controller_name != 'passwords'
8
- = link_to 'Восстановление пароля', auth.new_password_path(resource_name)
9
- br
10
- - if devise_mapping.confirmable? && controller_name != 'confirmations'
11
- = link_to 'Если вы не получили инструкцию о том как подтвердить адрес электронной почты', new_confirmation_path(resource_name)
12
- br
13
- - if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
14
- = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
15
- br
16
- - if devise_mapping.omniauthable?
17
- - resource_class.omniauth_providers.each do |provider|
18
- = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
19
- br
@@ -1,9 +0,0 @@
1
- h2 Resend unlock instructions
2
- = form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
3
- = devise_error_messages!
4
- p
5
- = f.label :email
6
- br
7
- = f.email_field :email
8
- p= f.submit 'Resend unlock instructions'
9
- = render partial: 'devise/shared/links'