sbf-toolkit 3.3.0 → 3.4.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 37607314e0636bf20198c2950a99a2e37414a5e6
4
- data.tar.gz: 4ea814e83d21287fd577aeb05fddd081bdaffc22
2
+ SHA256:
3
+ metadata.gz: f5619a6473ba5ab99c9459423030c44cad70ea0235271f25caf369cc0787063e
4
+ data.tar.gz: 423b2b425055eb644bb5664d655a3529a27349e24abac6866170353e5fe725a3
5
5
  SHA512:
6
- metadata.gz: e6238fd3ce333e44d62133abbc828e392b7f86c763e7df89a3be6dfe7ddd86c0faa2bf1d37ec233e95a44a0e601ac7f0ff42b96fa0e46fd8e359872157d951d8
7
- data.tar.gz: ef1bce0d355ae7aa77ee7b916246c04ffe184c5265533fac5c3c01440c952d000f8fdf90d0f47ba2882c9f49b19da25fcb891484b7b0df1f02c0b87e0a265de2
6
+ metadata.gz: 5434ec85ac11cf94d6403faf79a930bb814b6521666d2a9bf87818b81037d4de8705012b56d6e909629ce7c87da201069ce7cd3eb6561985ca7bcf529e283b28
7
+ data.tar.gz: 2239b2d660e68ccd5b4e6e99219600566005f07f7e389212a2ea053889b77515752d6caa9d199db1eec0f2029f5ae8d20714ce55801d1a9be6c26cacb1f5e345
data/lib/sbf-toolkit.rb CHANGED
@@ -4,6 +4,7 @@ require 'sbf_toolkit/component'
4
4
  require 'sbf_toolkit/components/header'
5
5
  require 'sbf_toolkit/components/footer'
6
6
  require 'sbf_toolkit/components/overlay'
7
+ require 'sbf_toolkit/components/cms-tools'
7
8
 
8
9
  module SBFToolkit
9
10
  class << self
@@ -0,0 +1,7 @@
1
+ module SBFToolkit
2
+ module Components
3
+ class CMSTools < Component
4
+ template 'structures/cms-tools.mustache'
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module SBFToolkit
2
- VERSION = '3.3.0'.freeze
2
+ VERSION = '3.4.0.alpha1'.freeze
3
3
  end
@@ -0,0 +1,223 @@
1
+ <!-- begin tools -->
2
+ <form action="#" method="get" style="display: none;">
3
+ <input type="hidden" id="sbf-ce-page-id" value="{{ page_id }}">
4
+ </form>
5
+
6
+ <div id="sbf-ce-tools">
7
+ <div id="sbf-ce-tools-menu" class="sbf-ce-toolpanel">
8
+
9
+ {{^draft_mode}}
10
+
11
+ <a href="https://{{ host }}{{ base_url }}&draft_mode=1" class="sbf-ce-button">Edit This Page</a>
12
+
13
+ {{/draft_mode}}
14
+ {{#draft_mode}}
15
+
16
+ <button id="sbf-ce-tools-viewlive" rel="{{ base_url }}" class="sbf-ce-button">View Live</button>
17
+
18
+ <button id="sbf-ce-tools-delete" class="sbf-ce-button">Delete Draft</button>
19
+
20
+ <button id="sbf-ce-tools-save" class="sbf-ce-button">Save Draft</button>
21
+
22
+ <button id="sbf-ce-tools-publish" class="sbf-ce-button">Publish</button>
23
+
24
+ <button class="sbf-ce-button sbf-ce-button-dropdown" id="sbf-ce-show-tools-dropdown">
25
+ Tools &#9660;<!--
26
+ -->
27
+ <ul class="sbf-ce-dropdown-menu" style="width: 170px; right: 0px;">
28
+ <li><a href="#" data-sbf-ce-rel="#sbf-ce-tools-sections"><span class="sbf-ce-show-or-hide">Hide</span> Editable Sections</a></li>
29
+ <li><a href="#" data-sbf-ce-rel="#sbf-ce-tools-insert"><span class="sbf-ce-show-or-hide">Hide</span> Insert</a></li>
30
+ <li><a href="#" data-sbf-ce-rel="#sbf-ce-tools-properties"><span class="sbf-ce-show-or-hide">Hide</span> Properties</a></li>
31
+ <li><a href="#" data-sbf-ce-rel="#sbf-ce-tools-markup"><span class="sbf-ce-show-or-hide">Hide</span> Markup Editor</a></li>
32
+ <li><a href="#" data-sbf-ce-rel="#sbf-ce-tools-meta"><span class="sbf-ce-show-or-hide">Hide</span> Meta Info</a></li>
33
+ </ul>
34
+ </button>
35
+
36
+ <img id="sbf-ce-tools-spinner" src="/a/img/spinner-inverse.gif" width="24px">
37
+
38
+ {{/draft_mode}}
39
+ </div>
40
+
41
+ {{#draft_mode}}
42
+ <div id="sbf-ce-tools-sections" class="sbf-ce-toolpanel sbf-ce-toolpanel-draggable">
43
+ <a class="sbf-ce-toolpanel-dock" href="#" title="Hide">–</a>
44
+
45
+ <h1>Editable Sections</h1>
46
+ <ul></ul>
47
+ </div>
48
+
49
+ <div id="sbf-ce-tools-insert" class="sbf-ce-toolpanel sbf-ce-toolpanel-draggable">
50
+ <a class="sbf-ce-toolpanel-dock" href="#" title="Hide">–</a>
51
+
52
+ <h1>Insert</h1>
53
+
54
+ <button class="sbf-ce-button" data-sbf-ce-element-type="heading">Heading</button>
55
+ <button class="sbf-ce-button" data-sbf-ce-element-type="paragraph">Paragraph</button>
56
+ <button class="sbf-ce-button" data-sbf-ce-insert-mode="append" data-sbf-ce-element-type="link">Link</button>
57
+ <button class="sbf-ce-button" data-sbf-ce-insert-mode="append" data-sbf-ce-element-type="link.button">Button</button>
58
+ <button class="sbf-ce-button" data-sbf-ce-element-type="list">List</button>
59
+
60
+ </div>
61
+
62
+ <div id="sbf-ce-tools-properties" class="sbf-ce-toolpanel sbf-ce-toolpanel-draggable">
63
+ <a class="sbf-ce-toolpanel-dock" href="#" title="Hide">–</a>
64
+
65
+ <h1>Properties</h1>
66
+
67
+ <div id="sbf-ce-tools-properties-formatting">
68
+ <button class="sbf-ce-button sbf-ce-format-style-button" style="font-family: serif" data-sbf-ce-format-style="bold"><strong>B</strong>
69
+ </button>
70
+ <button class="sbf-ce-button sbf-ce-format-style-button" style="font-family: serif" data-sbf-ce-format-style="italic"><em>I</em></button>
71
+
72
+ </div>
73
+
74
+ <div id="sbf-ce-tools-properties-heading">
75
+ <span class="divider"></span>
76
+
77
+ <h2>Heading Type</h2>
78
+
79
+ <select id="sbf-ce-tools-heading-type-select" class="no-custom-select">
80
+ <option value="h1_heavy">Level 1 Heavy (xl, centered)</option>
81
+ <option value="h1">Level 1</option>
82
+ <option value="h2">Level 2</option>
83
+ <option value="h3">Level 3</option>
84
+ <option value="h4">Level 4</option>
85
+ <option value="h5">Level 5</option>
86
+ <option value="h6">Level 6</option>
87
+ </select>
88
+
89
+ <label for="sbf-ce-tools-heading-serif">
90
+ <input type="checkbox" id="sbf-ce-tools-heading-serif" name="sbf-ce-tools-heading-serif">
91
+ Serif Font
92
+ </label>
93
+ </div>
94
+
95
+ <div id="sbf-ce-tools-properties-link">
96
+ <span class="divider"></span>
97
+
98
+ <h2><strong>Link/Button</strong></h2>
99
+ <label>URL <input type="url" id="sbf-ce-tools-properties-link-input" placeholder="http://"></label>
100
+
101
+ <label>Style
102
+ <select id="sbf-ce-tools-properties-link-style" class="no-custom-select">
103
+ <option value="link">Plain Link</option>
104
+ <option value="button">Button (gray)</option>
105
+ <option value="button.primary">Button - Primary (dark blue)</option>
106
+ <option value="button.info">Button - Info (light blue)</option>
107
+ <option value="button.success">Button - Success (green)</option>
108
+ <option value="button.warning">Button - Warning (orange)</option>
109
+ <option value="button.danger">Button - Danger (red)</option>
110
+ <option value="button.inverse">Button - Inverse (black)</option>
111
+ </select>
112
+ </label>
113
+
114
+ <label>Size
115
+ <select id="sbf-ce-tools-properties-button-size" class="no-custom-select">
116
+ <option value="xl">Extra Large</option>
117
+ <option value="large">Large</option>
118
+ <option value="normal" SELECTED>Normal</option>
119
+ <option value="small">Small</option>
120
+ <option value="mini">Mini</option>
121
+ </select>
122
+ </label>
123
+
124
+ </div>
125
+
126
+ <div id="sbf-ce-tools-properties-list">
127
+ <span class="divider"></span>
128
+
129
+ <h2><strong>List Type</strong></h2>
130
+ <input type="radio" name="list-type" id="sbf-ce-list-type-ol" value="ol"> <label for="sbf-ce-list-type-ol">Ordered</label>
131
+ <input type="radio" name="list-type" id="sbf-ce-list-type-ul" value="ul"> <label for="sbf-ce-list-type-ul">Unordered</label>
132
+ </div>
133
+ </div>
134
+
135
+ <div id="sbf-ce-tools-markup" class="sbf-ce-toolpanel sbf-ce-toolpanel-draggable">
136
+ <a class="sbf-ce-toolpanel-dock" href="#" title="Hide">—</a>
137
+
138
+ <h1>Markup Editor</h1>
139
+ <textarea id="sbf-ce-tools-markup-textarea"></textarea>
140
+ </div>
141
+
142
+ <div id="sbf-ce-tools-meta" class="sbf-ce-toolpanel sbf-ce-toolpanel-draggable sbf-ce-toolpanel-docked">
143
+ <a class="sbf-ce-toolpanel-dock" href="#" title="Hide">–</a>
144
+
145
+ <h1>Page Title and Meta Tags</h1>
146
+
147
+ <form action="#" method="get" id="sbf-ce-meta-form">
148
+
149
+ <input type="hidden" name="page_id" value="{{ page_id }}">
150
+
151
+ <fieldset style="margin-bottom: 0;">
152
+
153
+ <label>
154
+ <span>Page Title</span>
155
+ <input type="text" id="sbf-ce-meta-page-title" name="page_title" value="{{ page_title }}">
156
+ </label>
157
+
158
+ </fieldset>
159
+
160
+ <span class="divider"></span>
161
+
162
+ <fieldset style="margin-bottom: 12px;">
163
+ <label>
164
+ <span>Add a meta tag:</span>
165
+ <select id="sbf-ce-meta-type-selector" class="no-custom-select">
166
+ <option value="description">Description</option>
167
+ <option value="keywords">Keywords</option>
168
+ <option value="og:image">Open Graph: Image</option>
169
+ <option value="og:title">Open Graph: Title</option>
170
+ <option value="og:url">Open Graph: URL</option>
171
+ <option value="og:site_name">Open Graph: Site Name</option>
172
+ <option value="og:type">Open Graph: Type</option>
173
+ <option value="og:description">Open Graph: Description</option>
174
+ <option value="fb:admins">Facebook Admins</option>
175
+ <option value="twitter:url">Twitter URL</option>
176
+ <option value="twitter:title">Twitter Title</option>
177
+ <option value="twitter:description">Twitter Description</option>
178
+ <option value="twitter:image">Twitter Image</option>
179
+ <option value="custom">[ADD CUSTOM...]</option>
180
+ </select>
181
+ </label>
182
+ <button type="button" id="sbf-ce-meta-add-button" class="sbf-ce-button">Add</button>
183
+ </fieldset>
184
+
185
+ <div id="sbf-ce-meta-tags-list" style="max-height: 240px; overflow: auto; overflow-x: hidden; margin-bottom: 6px;">
186
+
187
+ {{#raw_meta}}
188
+ <fieldset class="sbf-meta-tag-fieldset">
189
+ <label>
190
+ <span>{{title}}</span>
191
+ <textarea name="meta[{{title}}]">{{content}}</textarea>
192
+ </label>
193
+ <a href="#" title="remove this meta tag" class="sbf-ce-meta-remove" type="button" style="background: none; border: none; box-shadow: none; padding: 0 4px; margin-right: 12px;">&times;</a>
194
+ </fieldset>
195
+ {{/raw_meta}}
196
+
197
+ </div>
198
+ <!-- scroller thingy -->
199
+
200
+ <div style="text-align:right">
201
+ <button class="sbf-ce-button">Publish Meta Data</button>
202
+ </div>
203
+
204
+ </form>
205
+
206
+ </div>
207
+
208
+ <div id="sbf-meta-tag-template" style="display:none">
209
+ {{=<% %>=}}
210
+ <fieldset class="sbf-meta-tag-fieldset">
211
+ <label>
212
+ <span>{{title}}</span>
213
+ <textarea name="meta[{{title}}]"></textarea>
214
+ </label>
215
+ <a href="#" title="remove this meta tag" class="sbf-ce-meta-remove" type="button" style="background: none; border: none; box-shadow: none; padding: 0 4px; margin-right: 12px;">&times;</a>
216
+ </fieldset>
217
+ <%={{ }}=%>
218
+ </div>
219
+
220
+ {{/draft_mode}}
221
+
222
+ </div>
223
+ <!-- end tools -->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbf-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-21 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,11 +89,13 @@ files:
89
89
  - lib/README.md
90
90
  - lib/sbf-toolkit.rb
91
91
  - lib/sbf_toolkit/component.rb
92
+ - lib/sbf_toolkit/components/cms-tools.rb
92
93
  - lib/sbf_toolkit/components/footer.rb
93
94
  - lib/sbf_toolkit/components/header.rb
94
95
  - lib/sbf_toolkit/components/overlay.rb
95
96
  - lib/sbf_toolkit/version.rb
96
97
  - src/assets/toolkit/templates/components/button.mustache
98
+ - src/assets/toolkit/templates/structures/cms-tools.mustache
97
99
  - src/assets/toolkit/templates/structures/dashboard-link.mustache
98
100
  - src/assets/toolkit/templates/structures/footer.mustache
99
101
  - src/assets/toolkit/templates/structures/header.mustache
@@ -112,12 +114,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
114
  version: '0'
113
115
  required_rubygems_version: !ruby/object:Gem::Requirement
114
116
  requirements:
115
- - - ">="
117
+ - - ">"
116
118
  - !ruby/object:Gem::Version
117
- version: '0'
119
+ version: 1.3.1
118
120
  requirements: []
119
121
  rubyforge_project:
120
- rubygems_version: 2.6.12
122
+ rubygems_version: 2.7.4
121
123
  signing_key:
122
124
  specification_version: 4
123
125
  summary: St. Baldrick's Foundation Ruby UI Toolkit Library