type_station 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/type_station/editables/file_editor.js.coffee +5 -1
  3. data/app/assets/javascripts/type_station/editables/text_html_editor.js.coffee +3 -3
  4. data/app/controllers/type_station/file_controller.rb +15 -0
  5. data/app/presenters/type_station/base_presenter.rb +5 -4
  6. data/app/presenters/type_station/content_presenter.rb +17 -1
  7. data/app/presenters/type_station/presenter.rb +2 -2
  8. data/config/routes.rb +2 -0
  9. data/lib/type_station/blocks/field.rb +2 -1
  10. data/lib/type_station/version.rb +2 -2
  11. data/spec/dummy/app/views/pages/index_other.html.erb +6 -0
  12. data/spec/dummy/log/development.log +4708 -0
  13. data/spec/dummy/tmp/cache/assets/development/sprockets/1057bd97781bd01e53c6be1c18815331 +0 -0
  14. data/spec/dummy/tmp/cache/assets/development/sprockets/2f14bda8290314a0fd6c175fcad55e69 +0 -0
  15. data/spec/dummy/tmp/cache/assets/development/sprockets/3203d681677ab8bf95858a71dca72ad1 +0 -0
  16. data/spec/dummy/tmp/cache/assets/development/sprockets/4c48023968030daffd8c05e4e1ea78bf +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/6694f57666543a152f6f95b772233bd3 +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/722eee3ce416c20905dda68eab3d517e +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/82cfb0f0bcd16b930ec1befc0d5cd8b8 +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/83c193129690d0c85c5370d822c4da82 +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/9a5b201b4dddc98127641bcf852a4ea8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/a0c3540cd0a5390bd8985db285d1574f +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/aa9f5420651d522078eadd9de8350d35 +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/afa9de4377b9615980b737000fc68a2a +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/b3b877cfd5c63c892cfe8c6248e3d003 +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/bb1b5b9fd84c67b2b994666f8162e79b +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/bf1e850366946d51a864f66042acb16d +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/c4b181c541556124b2275b0ae4a94461 +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/cf6bd170bc3f231ca9da6434bd53359b +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/ddf237d5e172776d2061090bbf8fc6a5 +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/e1bc9024b810c879e24aa1de0f013358 +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/ea306a2a3565b22cd16bf45555e751b5 +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/f8a56681cc92b0dba2c2fdb753933a8b +0 -0
  34. data/vendor/assets/javascripts/medium-editor.js +6640 -2088
  35. data/vendor/assets/stylesheets/medium-editor/medium-editor.css +154 -136
  36. data/vendor/assets/stylesheets/medium-editor/medium-editor.min.css +1 -1
  37. data/vendor/assets/stylesheets/medium-editor/themes/beagle.css +78 -0
  38. data/vendor/assets/stylesheets/medium-editor/themes/beagle.min.css +1 -0
  39. data/vendor/assets/stylesheets/medium-editor/themes/bootstrap.css +17 -17
  40. data/vendor/assets/stylesheets/medium-editor/themes/bootstrap.min.css +1 -1
  41. data/vendor/assets/stylesheets/medium-editor/themes/default.css +25 -25
  42. data/vendor/assets/stylesheets/medium-editor/themes/default.min.css +1 -1
  43. data/vendor/assets/stylesheets/medium-editor/themes/flat.css +1 -0
  44. data/vendor/assets/stylesheets/medium-editor/themes/flat.min.css +1 -1
  45. data/vendor/assets/stylesheets/medium-editor/themes/mani.css +5 -4
  46. data/vendor/assets/stylesheets/medium-editor/themes/mani.min.css +1 -1
  47. data/vendor/assets/stylesheets/medium-editor/themes/roman.css +7 -6
  48. data/vendor/assets/stylesheets/medium-editor/themes/roman.min.css +1 -1
  49. data/vendor/assets/stylesheets/medium-editor/themes/tim.css +67 -0
  50. data/vendor/assets/stylesheets/medium-editor/themes/tim.min.css +1 -0
  51. metadata +7 -2
@@ -1,12 +1,13 @@
1
- .medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
1
+ .medium-toolbar-arrow-under:after,
2
+ .medium-toolbar-arrow-over:before {
2
3
  display: none; }
3
4
 
4
5
  .medium-editor-toolbar {
5
6
  border: 1px solid #cdd6e0;
6
7
  background-color: #dee7f0;
7
8
  background-color: rgba(222, 231, 240, 0.95);
8
- background: -webkit-linear-gradient(bottom, #dee7f0, #ffffff);
9
- background: linear-gradient(to bottom, #dee7f0, #ffffff);
9
+ background: -webkit-linear-gradient(bottom, #dee7f0, white);
10
+ background: linear-gradient(to top, #dee7f0, white);
10
11
  border-radius: 2px;
11
12
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
12
13
  .medium-editor-toolbar li button {
@@ -32,7 +33,7 @@
32
33
  background-color: #5c90c7;
33
34
  background-color: rgba(92, 144, 199, 0.45);
34
35
  color: #000;
35
- background: -webkit-linear-gradient(bottom, #dee7f0, rgba(0, 0, 0, 0.1));
36
+ background: -webkit-linear-gradient(top, #dee7f0, rgba(0, 0, 0, 0.1));
36
37
  background: linear-gradient(to bottom, #dee7f0, rgba(0, 0, 0, 0.1)); }
37
38
 
38
39
  .medium-editor-toolbar-form {
@@ -1 +1 @@
1
- .medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{border:1px solid #cdd6e0;background:-webkit-linear-gradient(bottom,#dee7f0,#fff);background:linear-gradient(to bottom,#dee7f0,#fff);border-radius:2px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #cdd6e0;background-color:transparent;color:#40648a;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#5c90c7;background-color:rgba(92,144,199,.45);color:#fff}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:2px;border-bottom-left-radius:2px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:2px;border-bottom-right-radius:2px}.medium-editor-toolbar li .medium-editor-button-active{color:#000;background:-webkit-linear-gradient(bottom,#dee7f0,rgba(0,0,0,.1));background:linear-gradient(to bottom,#dee7f0,rgba(0,0,0,.1))}.medium-editor-toolbar-form{background:#dee7f0;color:#999;border-radius:2px}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:50px;background:#dee7f0;color:#40648a;box-sizing:border-box}.medium-editor-toolbar-form a{color:#40648a}.medium-editor-toolbar-anchor-preview{background:#dee7f0;color:#40648a;border-radius:2px}.medium-editor-placeholder:after{color:#cdd6e0}
1
+ .medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{border:1px solid #cdd6e0;background-color:#dee7f0;background-color:rgba(222,231,240,.95);background:-webkit-linear-gradient(bottom,#dee7f0,#fff);background:linear-gradient(to top,#dee7f0,#fff);border-radius:2px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #cdd6e0;background-color:transparent;color:#40648a;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#5c90c7;background-color:rgba(92,144,199,.45);color:#fff}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:2px;border-bottom-left-radius:2px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:2px;border-bottom-right-radius:2px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#5c90c7;background-color:rgba(92,144,199,.45);color:#000;background:-webkit-linear-gradient(top,#dee7f0,rgba(0,0,0,.1));background:linear-gradient(to bottom,#dee7f0,rgba(0,0,0,.1))}.medium-editor-toolbar-form{background:#dee7f0;color:#999;border-radius:2px}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:50px;background:#dee7f0;color:#40648a;box-sizing:border-box}.medium-editor-toolbar-form a{color:#40648a}.medium-editor-toolbar-anchor-preview{background:#dee7f0;color:#40648a;border-radius:2px}.medium-editor-placeholder:after{color:#cdd6e0}
@@ -1,4 +1,5 @@
1
- .medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
1
+ .medium-toolbar-arrow-under:after,
2
+ .medium-toolbar-arrow-over:before {
2
3
  display: none; }
3
4
 
4
5
  .medium-editor-toolbar {
@@ -14,14 +15,14 @@
14
15
  background-color: transparent;
15
16
  color: #889aac;
16
17
  box-shadow: inset 0 0 3px #f8f8e6;
17
- background: -webkit-linear-gradient(top, #fff, rgba(0, 0, 0, 0.1));
18
- background: linear-gradient(to top, #fff, rgba(0, 0, 0, 0.1));
18
+ background: -webkit-linear-gradient(top, #fff, rgba(0, 0, 0, 0.2));
19
+ background: linear-gradient(to bottom, #fff, rgba(0, 0, 0, 0.2));
19
20
  text-shadow: 1px 4px 6px #def, 0 0 0 #000, 1px 4px 6px #def;
20
21
  -webkit-transition: background-color .2s ease-in;
21
22
  transition: background-color .2s ease-in; }
22
23
  .medium-editor-toolbar li button:hover {
23
24
  background-color: #fff;
24
- color: #000;
25
+ color: #fff;
25
26
  color: rgba(0, 0, 0, 0.8); }
26
27
  .medium-editor-toolbar li .medium-editor-button-first {
27
28
  border-top-left-radius: 5px;
@@ -33,8 +34,8 @@
33
34
  background-color: #ccc;
34
35
  color: #000;
35
36
  color: rgba(0, 0, 0, 0.8);
36
- background: -webkit-linear-gradient(bottom, #fff, rgba(0, 0, 0, 0.2));
37
- background: linear-gradient(to bottom, #fff, rgba(0, 0, 0, 0.2)); }
37
+ background: -webkit-linear-gradient(bottom, #fff, rgba(0, 0, 0, 0.1));
38
+ background: linear-gradient(to top, #fff, rgba(0, 0, 0, 0.1)); }
38
39
 
39
40
  .medium-editor-toolbar-form {
40
41
  background: #fff;
@@ -1 +1 @@
1
- .medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{background-color:#fff;background-color:rgba(255,255,255,.95);border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #a8a8a8;color:#889aac;box-shadow:inset 0 0 3px #f8f8e6;background:-webkit-linear-gradient(top,#fff,rgba(0,0,0,.1));background:linear-gradient(to top,#fff,rgba(0,0,0,.1));text-shadow:1px 4px 6px #def,0 0 0 #000,1px 4px 6px #def;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#fff;color:#000;color:rgba(0,0,0,.8)}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{color:#000;color:rgba(0,0,0,.8);background:-webkit-linear-gradient(bottom,#fff,rgba(0,0,0,.2));background:linear-gradient(to bottom,#fff,rgba(0,0,0,.2))}.medium-editor-toolbar-form{background:#fff;color:#999;border-radius:5px}.medium-editor-toolbar-form .medium-editor-toolbar-input{margin:0;height:50px;background:#fff;color:#a8a8a8}.medium-editor-toolbar-form a{color:#889aac}.medium-editor-toolbar-anchor-preview{background:#fff;color:#889aac;border-radius:5px}.medium-editor-placeholder:after{color:#a8a8a8}
1
+ .medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{background-color:#fff;background-color:rgba(255,255,255,.95);border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #a8a8a8;background-color:transparent;color:#889aac;box-shadow:inset 0 0 3px #f8f8e6;background:-webkit-linear-gradient(top,#fff,rgba(0,0,0,.2));background:linear-gradient(to bottom,#fff,rgba(0,0,0,.2));text-shadow:1px 4px 6px #def,0 0 0 #000,1px 4px 6px #def;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#fff;color:#fff;color:rgba(0,0,0,.8)}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#ccc;color:#000;color:rgba(0,0,0,.8);background:-webkit-linear-gradient(bottom,#fff,rgba(0,0,0,.1));background:linear-gradient(to top,#fff,rgba(0,0,0,.1))}.medium-editor-toolbar-form{background:#fff;color:#999;border-radius:5px}.medium-editor-toolbar-form .medium-editor-toolbar-input{margin:0;height:50px;background:#fff;color:#a8a8a8}.medium-editor-toolbar-form a{color:#889aac}.medium-editor-toolbar-anchor-preview{background:#fff;color:#889aac;border-radius:5px}.medium-editor-placeholder:after{color:#a8a8a8}
@@ -0,0 +1,67 @@
1
+ .medium-toolbar-arrow-under:after {
2
+ border-color: #2f1e07 transparent transparent transparent;
3
+ top: 60px; }
4
+
5
+ .medium-toolbar-arrow-over:before {
6
+ border-color: transparent transparent #2f1e07 transparent; }
7
+
8
+ .medium-editor-toolbar {
9
+ background-color: #2f1e07;
10
+ border: 1px solid #5b3a0e;
11
+ border-radius: 6px; }
12
+ .medium-editor-toolbar li button {
13
+ background-color: transparent;
14
+ border: none;
15
+ border-right: 1px solid #5b3a0e;
16
+ box-sizing: border-box;
17
+ color: #ffedd5;
18
+ height: 60px;
19
+ min-width: 60px;
20
+ -webkit-transition: background-color .2s ease-in, color .2s ease-in;
21
+ transition: background-color .2s ease-in, color .2s ease-in; }
22
+ .medium-editor-toolbar li button:hover {
23
+ background-color: #030200;
24
+ color: #ffedd5; }
25
+ .medium-editor-toolbar li .medium-editor-button-first {
26
+ border-bottom-left-radius: 6px;
27
+ border-top-left-radius: 6px; }
28
+ .medium-editor-toolbar li .medium-editor-button-last {
29
+ border-bottom-right-radius: 6px;
30
+ border-right: none;
31
+ border-top-right-radius: 6px; }
32
+ .medium-editor-toolbar li .medium-editor-button-active {
33
+ background-color: #030200;
34
+ color: #ffedd5; }
35
+
36
+ .medium-editor-toolbar-form {
37
+ background: #2f1e07;
38
+ border-radius: 6px;
39
+ color: #ffedd5; }
40
+ .medium-editor-toolbar-form .medium-editor-toolbar-input {
41
+ background: #2f1e07;
42
+ color: #ffedd5;
43
+ height: 60px; }
44
+ .medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder {
45
+ color: #ffedd5;
46
+ color: rgba(255, 237, 213, 0.8); }
47
+ .medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder {
48
+ /* Firefox 18- */
49
+ color: #ffedd5;
50
+ color: rgba(255, 237, 213, 0.8); }
51
+ .medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder {
52
+ /* Firefox 19+ */
53
+ color: #ffedd5;
54
+ color: rgba(255, 237, 213, 0.8); }
55
+ .medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder {
56
+ color: #ffedd5;
57
+ color: rgba(255, 237, 213, 0.8); }
58
+ .medium-editor-toolbar-form a {
59
+ color: #ffedd5; }
60
+
61
+ .medium-editor-toolbar-anchor-preview {
62
+ background: #2f1e07;
63
+ border-radius: 6px;
64
+ color: #ffedd5; }
65
+
66
+ .medium-editor-placeholder:after {
67
+ color: #5b3a0e; }
@@ -0,0 +1 @@
1
+ .medium-toolbar-arrow-under:after{border-color:#2f1e07 transparent transparent;top:60px}.medium-toolbar-arrow-over:before{border-color:transparent transparent #2f1e07}.medium-editor-toolbar{background-color:#2f1e07;border:1px solid #5b3a0e;border-radius:6px}.medium-editor-toolbar li button{background-color:transparent;border:none;border-right:1px solid #5b3a0e;box-sizing:border-box;color:#ffedd5;height:60px;min-width:60px;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .2s ease-in}.medium-editor-toolbar li .medium-editor-button-active,.medium-editor-toolbar li button:hover{background-color:#030200;color:#ffedd5}.medium-editor-toolbar li .medium-editor-button-first{border-bottom-left-radius:6px;border-top-left-radius:6px}.medium-editor-toolbar li .medium-editor-button-last{border-bottom-right-radius:6px;border-right:none;border-top-right-radius:6px}.medium-editor-toolbar-form{background:#2f1e07;border-radius:6px;color:#ffedd5}.medium-editor-toolbar-form .medium-editor-toolbar-input{background:#2f1e07;color:#ffedd5;height:60px}.medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder{color:#ffedd5;color:rgba(255,237,213,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder{color:#ffedd5;color:rgba(255,237,213,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder{color:#ffedd5;color:rgba(255,237,213,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder{color:#ffedd5;color:rgba(255,237,213,.8)}.medium-editor-toolbar-form a{color:#ffedd5}.medium-editor-toolbar-anchor-preview{background:#2f1e07;border-radius:6px;color:#ffedd5}.medium-editor-placeholder:after{color:#5b3a0e}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: type_station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Adams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-12 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -302,6 +302,7 @@ files:
302
302
  - app/controllers/type_station/admin/pages_controller.rb
303
303
  - app/controllers/type_station/admin_controller.rb
304
304
  - app/controllers/type_station/application_controller.rb
305
+ - app/controllers/type_station/file_controller.rb
305
306
  - app/controllers/type_station/pages_controller.rb
306
307
  - app/helpers/type_station/application_helper.rb
307
308
  - app/models/type_station/content.rb
@@ -525,6 +526,8 @@ files:
525
526
  - vendor/assets/stylesheets/jquery.textcomplete.css
526
527
  - vendor/assets/stylesheets/medium-editor/medium-editor.css
527
528
  - vendor/assets/stylesheets/medium-editor/medium-editor.min.css
529
+ - vendor/assets/stylesheets/medium-editor/themes/beagle.css
530
+ - vendor/assets/stylesheets/medium-editor/themes/beagle.min.css
528
531
  - vendor/assets/stylesheets/medium-editor/themes/bootstrap.css
529
532
  - vendor/assets/stylesheets/medium-editor/themes/bootstrap.min.css
530
533
  - vendor/assets/stylesheets/medium-editor/themes/default.css
@@ -535,6 +538,8 @@ files:
535
538
  - vendor/assets/stylesheets/medium-editor/themes/mani.min.css
536
539
  - vendor/assets/stylesheets/medium-editor/themes/roman.css
537
540
  - vendor/assets/stylesheets/medium-editor/themes/roman.min.css
541
+ - vendor/assets/stylesheets/medium-editor/themes/tim.css
542
+ - vendor/assets/stylesheets/medium-editor/themes/tim.min.css
538
543
  - vendor/assets/stylesheets/vex-theme-os.css
539
544
  - vendor/assets/stylesheets/vex.css
540
545
  homepage: http://madwire.co.uk