tb_core 1.2.4 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/admin/core/application.js +1 -2
  4. data/app/assets/javascripts/admin/core/editor.js +23 -67
  5. data/app/assets/libs/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  6. data/app/assets/libs/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  7. data/app/assets/libs/jquery-ui/images/ui-bg_flat_10_000000_40x100.png +0 -0
  8. data/app/assets/libs/jquery-ui/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  9. data/app/assets/libs/jquery-ui/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  10. data/app/assets/libs/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  11. data/app/assets/libs/jquery-ui/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  12. data/app/assets/libs/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  13. data/app/assets/libs/jquery-ui/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  14. data/app/assets/libs/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
  15. data/app/assets/libs/jquery-ui/images/ui-icons_228ef1_256x240.png +0 -0
  16. data/app/assets/libs/jquery-ui/images/ui-icons_ef8c08_256x240.png +0 -0
  17. data/app/assets/libs/jquery-ui/images/ui-icons_ffd27a_256x240.png +0 -0
  18. data/app/assets/libs/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
  19. data/app/assets/libs/jquery-ui/jquery-ui.css.scss +552 -0
  20. data/app/assets/libs/jquery-ui/jquery-ui.js +5468 -0
  21. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  22. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  23. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_flat_55_ffffff_40x100.png +0 -0
  24. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  25. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  27. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  28. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  29. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-icons_0073ea_256x240.png +0 -0
  30. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-icons_454545_256x240.png +0 -0
  31. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-icons_666666_256x240.png +0 -0
  32. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-icons_ff0084_256x240.png +0 -0
  33. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/images/ui-icons_ffffff_256x240.png +0 -0
  34. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/jquery-ui-1.9.1.custom.css +0 -0
  35. data/app/assets/libs/{jquery-ui → jquery-ui-old}/css/flick/jquery-ui-1.9.1.custom.min.css +0 -0
  36. data/app/assets/libs/{jquery-ui → jquery-ui-old}/js/jquery-ui-1.9.1.custom.js +0 -0
  37. data/app/assets/libs/{jquery-ui → jquery-ui-old}/js/jquery-ui-1.9.1.custom.min.js +0 -0
  38. data/app/assets/stylesheets/admin/core/application.css.scss +6 -2
  39. data/app/controllers/admin/application_controller.rb +1 -6
  40. data/app/controllers/spud/application_controller.rb +27 -9
  41. data/app/views/layouts/admin/error_page.html.erb +12 -0
  42. data/app/views/layouts/error_page.html.erb +6 -0
  43. data/lib/generators/spud/module_generator.rb +14 -0
  44. data/lib/generators/spud/templates/admin_controller.rb.erb +6 -3
  45. data/lib/generators/spud/templates/controller.rb.erb +2 -2
  46. data/lib/generators/spud/templates/views/admin/index.html.erb +7 -1
  47. data/lib/spud_core/belongs_to_app.rb +1 -1
  48. data/lib/spud_core/catch_all_route.rb +3 -0
  49. data/lib/spud_core/configuration.rb +1 -2
  50. data/lib/spud_core/engine.rb +9 -2
  51. data/lib/spud_core/errors.rb +29 -0
  52. data/lib/spud_core/version.rb +1 -1
  53. data/spec/controllers/admin/application_controller_spec.rb +2 -1
  54. data/spec/controllers/admin/users_controller_spec.rb +11 -7
  55. data/spec/controllers/sitemap_controllers_spec.rb +0 -6
  56. data/spec/controllers/spud/application_controller_spec.rb +1 -1
  57. metadata +45 -42
  58. data/app/assets/libs/tinymce/plugins/tableDropdown/editor_plugin.js +0 -140
  59. data/app/views/layouts/not_found.html.erb +0 -6
  60. data/lib/spud_core/exceptions.rb +0 -15
@@ -1,140 +0,0 @@
1
- /*
2
- *
3
- * Table Dropdown Plugin for TinyMCE
4
- *
5
- * Copyright 2011 Cory LaViska for A Beautiful Site, LLC. — www.abeautifulsite.net
6
- *
7
- * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
8
- *
9
- */
10
- (function() {
11
-
12
- tinymce.create('tinymce.plugins.TableDropdown', {
13
-
14
- createControl: function(n, cm) {
15
-
16
- switch( n ) {
17
-
18
- case 'tableDropdown':
19
-
20
- var c = cm.createSplitButton('tableDropdown', {
21
- title : 'table.desc',
22
- 'class': 'mce_table',
23
- onclick: function() {
24
- tinymce.activeEditor.execCommand('mceInsertTable');
25
- }
26
- });
27
-
28
- c.onRenderMenu.add(function(c, m) {
29
-
30
- m.add({
31
- title: 'table.desc',
32
- icon: 'table',
33
- cmd: 'mceInsertTable'
34
- });
35
-
36
- m.add({
37
- title: 'table.del',
38
- icon: 'delete_table',
39
- cmd: 'mceTableDelete'
40
- });
41
-
42
- m.addSeparator();
43
-
44
- m.add({
45
- title: 'table.row_desc',
46
- icon: 'row_props',
47
- cmd: 'mceTableRowProps'
48
- });
49
-
50
- m.add({
51
- title: 'table.cell_desc',
52
- icon: 'cell_props',
53
- cmd: 'mceTableCellProps'
54
- });
55
-
56
- m.addSeparator();
57
-
58
- m.add({
59
- title: 'table.row_before_desc',
60
- icon: 'row_before',
61
- cmd: 'mceTableInsertRowBefore'
62
- });
63
-
64
- m.add({
65
- title: 'table.row_after_desc',
66
- icon: 'row_after',
67
- cmd: 'mceTableInsertRowAfter'
68
- });
69
-
70
- m.add({
71
- title: 'table.delete_row_desc',
72
- icon: 'delete_row',
73
- cmd: 'mceTableDeleteRow'
74
- });
75
-
76
- m.addSeparator();
77
-
78
- m.add({
79
- title: 'table.col_before_desc',
80
- icon: 'col_before',
81
- cmd: 'mceTableInsertColBefore'
82
- });
83
-
84
- m.add({
85
- title: 'table.col_after_desc',
86
- icon: 'col_after',
87
- cmd: 'mceTableInsertColAfter'
88
- });
89
-
90
- m.add({
91
- title: 'table.delete_col_desc',
92
- icon: 'delete_col',
93
- cmd: 'mceTableDeleteCol'
94
- });
95
-
96
- m.addSeparator();
97
-
98
- m.add({
99
- title: 'table.merge_cells_desc',
100
- icon: 'merge_cells',
101
- cmd: 'mceTableMergeCells'
102
- });
103
-
104
- m.add({
105
- title: 'table.split_cells_desc',
106
- icon: 'split_cells',
107
- cmd: 'mceTableSplitCells'
108
- });
109
-
110
- // Enable/disable menu items on node change
111
- c.editor.onNodeChange.add( function(ed, cm, n, co) {
112
- var items = items = ed.controlManager.controls[ed.id + '_tableDropdown'].menu.items,
113
- p = ed.dom.getParent(ed.selection.getStart(), 'td,th,caption');
114
- if( p && p.nodeName === 'CAPTION' ) p = 0;
115
- tinymce.each(items, function(t) {
116
- if( t.settings.icon === 'table' ) return;
117
- t.setDisabled(!p);
118
- });
119
- });
120
-
121
- // This really needs to be done with a callback, but there
122
- // doesn't seem to be one that works in the wiki
123
- setTimeout( function() {
124
- c.editor.nodeChanged();
125
- }, 50);
126
-
127
- });
128
-
129
- return c;
130
- }
131
-
132
- return null;
133
-
134
- }
135
- });
136
-
137
- // Register plugin
138
- tinymce.PluginManager.add('tableDropdown', tinymce.plugins.TableDropdown);
139
-
140
- })();
@@ -1,6 +0,0 @@
1
- <%= content_for :body do %>
2
- <h1>404: Not Found!</h1>
3
- <p>The <%= @exception.item %> you requested could not be found.</p>
4
- <p>Requested URL: <%= @exception.request_url %></p>
5
- <% end %>
6
- <%= render :template => 'layouts/application' %>
@@ -1,15 +0,0 @@
1
- class Spud::AccessDeniedError < StandardError
2
-
3
- end
4
-
5
- class Spud::NotFoundError < StandardError
6
-
7
- attr_accessor :request_url, :item, :template
8
-
9
- def initialize(opts={})
10
- @item = opts[:item] || 'page'
11
- @template = opts[:template] || nil
12
- super("The #{item.downcase} you were looking for could not be found.")
13
- end
14
-
15
- end