constructor-core 0.3.3 → 0.4.0

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.
Files changed (29) hide show
  1. data/app/assets/stylesheets/constructor_core/application.css.scss +1 -56
  2. data/app/assets/stylesheets/constructor_core/main.css.scss +200 -0
  3. data/app/controllers/constructor_core/application_controller.rb +7 -0
  4. data/app/controllers/constructor_core/sessions_controller.rb +2 -2
  5. data/app/helpers/constructor_core/application_helper.rb +29 -0
  6. data/app/models/constructor_core/user.rb +0 -2
  7. data/app/views/constructor_core/sessions/new.html.haml +3 -6
  8. data/app/views/layouts/constructor_core/application_admin.haml +36 -19
  9. data/config/environments/production.rb +0 -2
  10. data/config/initializers/devise.rb +2 -203
  11. data/config/locales/en.yml +10 -0
  12. data/config/locales/ru.yml +11 -1
  13. data/config/routes.rb +10 -5
  14. data/constructor-core.gemspec +2 -0
  15. data/lib/constructor-core.rb +2 -0
  16. data/lib/constructor_core/version.rb +1 -1
  17. metadata +38 -14
  18. data/app/assets/fonts/FontAwesome.otf +0 -0
  19. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  20. data/app/assets/fonts/fontawesome-webfont.svg +0 -339
  21. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  22. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  23. data/app/assets/stylesheets/constructor_core/bootstrap-responsive.css +0 -1109
  24. data/app/assets/stylesheets/constructor_core/bootstrap.css +0 -6158
  25. data/app/assets/stylesheets/constructor_core/font-awesome.css +0 -1268
  26. data/app/assets/stylesheets/constructor_core/jquery.treeview.css +0 -73
  27. data/app/controllers/constructor_core/admin_controller.rb +0 -6
  28. data/app/helpers/constructor_core/devise_helper.rb +0 -24
  29. data/config/environments/development.rb +0 -4
@@ -1,73 +0,0 @@
1
- .treeview, .treeview ul {
2
- padding: 0;
3
- margin: 0;
4
- list-style: none;
5
- }
6
-
7
- .treeview ul {
8
- margin-top: 4px;
9
- }
10
-
11
- .treeview .hitarea {
12
- background: url(/assets/constructor_core/treeview-default.gif) -64px -25px no-repeat;
13
- height: 16px;
14
- width: 16px;
15
- margin-left: -16px;
16
- float: left;
17
- cursor: pointer;
18
- }
19
- /* fix for IE6 */
20
- * html .hitarea {
21
- display: inline;
22
- float:none;
23
- }
24
-
25
- .treeview li {
26
- margin: 0;
27
- padding: 3px 0pt 10px 16px;
28
- }
29
-
30
- .treeview a.selected {
31
- background-color: #eee;
32
- }
33
-
34
- #treecontrol { margin: 1em 0; display: none; }
35
-
36
- .treeview .hover { cursor: pointer; }
37
-
38
- .treeview li { background: url(/assets/constructor_core/treeview-default-line.gif) 0 0 no-repeat; }
39
- .treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
40
-
41
- .treeview .expandable-hitarea { background-position: -80px -3px; }
42
-
43
- .treeview li.last { background-position: 0 -1766px }
44
- .treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(/assets/constructor_core/treeview-default.gif); }
45
- .treeview li.lastCollapsable { background-position: 0 -111px }
46
- .treeview li.lastExpandable { background-position: -32px -67px }
47
-
48
- .treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
49
-
50
- .treeview-red li { background-image: url(/assets/constructor_core/treeview-red-line.gif); }
51
- .treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(/assets/constructor_core/treeview-red.gif); }
52
-
53
- .treeview-black li { background-image: url(/assets/constructor_core/treeview-black-line.gif); }
54
- .treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(/assets/constructor_core/treeview-black.gif); }
55
-
56
- .treeview-gray li { background-image: url(/assets/constructor_core/treeview-gray-line.gif); }
57
- .treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(/assets/constructor_core/treeview-gray.gif); }
58
-
59
- .treeview-famfamfam li { background-image: url(/assets/constructor_core/treeview-famfamfam-line.gif); }
60
- .treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(/assets/constructor_core/treeview-famfamfam.gif); }
61
-
62
- .treeview .placeholder {
63
- background: url(/assets/constructor_core/ajax-loader.gif) 0 0 no-repeat;
64
- height: 16px;
65
- width: 16px;
66
- display: block;
67
- }
68
-
69
- .filetree li { padding: 3px 0 2px 16px; }
70
- .filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
71
- .filetree span.folder { background: url(/assets/constructor_core/folder.gif) 0 0 no-repeat; }
72
- .filetree li.expandable span.folder { background: url(/assets/constructor_core/folder-closed.gif) 0 0 no-repeat; }
73
- .filetree span.file { background: url(/assets/constructor_core/file.gif) 0 0 no-repeat; }
@@ -1,6 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module ConstructorCore
4
- class AdminController < ApplicationController
5
- end
6
- end
@@ -1,24 +0,0 @@
1
- module ConstructorCore
2
- # TODO
3
- module DeviseHelper
4
- def authenticate_user!
5
- warden.authenticate!
6
- end
7
-
8
- def user_signed_in?
9
- !!current_user
10
- end
11
-
12
- def current_user
13
- @current_user ||= warden.authenticate(:scope => :constructor_auth_user)
14
- end
15
-
16
- def user_session
17
- current_user && warden.session(:constructor_auth_user)
18
- end
19
-
20
- def warden
21
- request.env['warden']
22
- end
23
- end
24
- end
@@ -1,4 +0,0 @@
1
- Rails.application.class.configure do
2
- config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
3
- config.assets.precompile += %w( .svg .eot .woff .ttf )
4
- end