lookbook 0.8.0 → 1.0.0.beta.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -830
- data/app/assets/lookbook/css/lookbook.css +55 -0
- data/app/assets/lookbook/css/themes/blue.css +42 -0
- data/app/assets/lookbook/css/themes/indigo.css +42 -0
- data/app/assets/lookbook/css/themes/zinc.css +42 -0
- data/app/assets/lookbook/css/{tooltip_theme.css → tooltip.css} +14 -8
- data/app/assets/lookbook/js/app.js +64 -61
- data/app/assets/lookbook/js/components/clipboard.js +47 -0
- data/app/assets/lookbook/js/components/tooltip.js +30 -0
- data/app/assets/lookbook/js/config.js +7 -4
- data/app/assets/lookbook/js/helpers/build.js +22 -0
- data/app/assets/lookbook/js/helpers/dom.js +45 -0
- data/app/assets/lookbook/js/helpers/layout.js +21 -0
- data/app/assets/lookbook/js/helpers/request.js +16 -0
- data/app/assets/lookbook/js/helpers/string.js +11 -0
- data/app/assets/lookbook/js/lib/socket.js +4 -3
- data/app/assets/lookbook/js/lib/tippy.js +8 -0
- data/app/assets/lookbook/js/lookbook.js +61 -0
- data/app/assets/lookbook/js/plugins/logger.js +39 -0
- data/app/assets/lookbook/js/stores/filter.js +2 -2
- data/app/assets/lookbook/js/stores/inspector.js +22 -16
- data/app/assets/lookbook/js/stores/layout.js +101 -5
- data/app/assets/lookbook/js/stores/nav.js +17 -16
- data/app/assets/lookbook/js/stores/pages.js +4 -2
- data/app/assets/lookbook/js/stores/settings.js +7 -0
- data/app/assets/lookbook/js/stores/workbench.js +29 -0
- data/app/components/lookbook/button/component.html.erb +28 -0
- data/app/components/lookbook/button/component.js +55 -0
- data/app/components/lookbook/button/component.rb +39 -0
- data/app/components/lookbook/button_group/component.html.erb +3 -0
- data/app/components/lookbook/button_group/component.rb +18 -0
- data/app/components/lookbook/code/component.css +57 -0
- data/app/components/lookbook/code/component.html.erb +10 -0
- data/app/components/lookbook/code/component.js +3 -0
- data/app/components/lookbook/code/component.rb +56 -0
- data/app/components/lookbook/code/highlight_github_light.css +217 -0
- data/app/components/lookbook/component.rb +41 -0
- data/app/components/lookbook/copy_button/component.html.erb +11 -0
- data/app/components/lookbook/copy_button/component.js +16 -0
- data/app/components/lookbook/copy_button/component.rb +23 -0
- data/app/components/lookbook/dimensions_display/component.html.erb +10 -0
- data/app/components/lookbook/dimensions_display/component.js +30 -0
- data/app/components/lookbook/dimensions_display/component.rb +18 -0
- data/app/components/lookbook/embed/component.html.erb +50 -0
- data/app/components/lookbook/embed/component.js +39 -0
- data/app/components/lookbook/embed/component.rb +22 -0
- data/app/components/lookbook/filter/component.html.erb +17 -0
- data/app/components/lookbook/filter/component.js +21 -0
- data/app/components/lookbook/filter/component.rb +15 -0
- data/app/components/lookbook/header/component.html.erb +79 -0
- data/app/components/lookbook/header/component.rb +9 -0
- data/app/components/lookbook/icon/component.css +11 -0
- data/app/components/lookbook/icon/component.html.erb +5 -0
- data/app/components/lookbook/icon/component.js +5 -0
- data/app/components/lookbook/icon/component.rb +23 -0
- data/app/components/lookbook/nav/component.html.erb +33 -0
- data/app/components/lookbook/nav/component.js +52 -0
- data/app/components/lookbook/nav/component.rb +37 -0
- data/app/components/lookbook/nav/item/component.html.erb +23 -0
- data/app/components/lookbook/nav/item/component.js +66 -0
- data/app/components/lookbook/nav/item/component.rb +84 -0
- data/app/components/lookbook/params_editor/component.html.erb +3 -0
- data/app/components/lookbook/params_editor/component.js +12 -0
- data/app/components/lookbook/params_editor/component.rb +11 -0
- data/app/components/lookbook/params_editor/field/component.html.erb +50 -0
- data/app/components/lookbook/params_editor/field/component.js +36 -0
- data/app/components/lookbook/params_editor/field/component.rb +41 -0
- data/app/components/lookbook/prose/component.css +12 -0
- data/app/components/lookbook/prose/component.html.erb +3 -0
- data/app/components/lookbook/prose/component.rb +26 -0
- data/app/components/lookbook/split_layout/component.html.erb +13 -0
- data/app/components/lookbook/split_layout/component.js +151 -0
- data/app/components/lookbook/split_layout/component.rb +11 -0
- data/app/components/lookbook/tabbed_content/component.html.erb +5 -0
- data/app/components/lookbook/tabbed_content/component.js +21 -0
- data/app/components/lookbook/tabbed_content/component.rb +20 -0
- data/app/components/lookbook/tabbed_content/section/component.html.erb +8 -0
- data/app/components/lookbook/tabbed_content/section/component.rb +9 -0
- data/app/components/lookbook/tabs/component.css +8 -0
- data/app/components/lookbook/tabs/component.html.erb +14 -0
- data/app/components/lookbook/tabs/component.js +107 -0
- data/app/components/lookbook/tabs/component.rb +30 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +14 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.rb +16 -0
- data/app/components/lookbook/tabs/tab/component.html.erb +18 -0
- data/app/components/lookbook/tabs/tab/component.rb +16 -0
- data/app/components/lookbook/tag_component.rb +29 -0
- data/app/components/lookbook/toolbar/component.css +16 -0
- data/app/components/lookbook/toolbar/component.html.erb +5 -0
- data/app/components/lookbook/toolbar/component.rb +26 -0
- data/app/components/lookbook/viewport/component.css +11 -0
- data/app/components/lookbook/viewport/component.html.erb +57 -0
- data/app/{assets/lookbook/js/components/preview-window.js → components/lookbook/viewport/component.js} +57 -14
- data/app/components/lookbook/viewport/component.rb +21 -0
- data/app/controllers/lookbook/application_controller.rb +16 -5
- data/app/controllers/lookbook/pages_controller.rb +18 -8
- data/app/controllers/lookbook/previews_controller.rb +60 -23
- data/app/helpers/lookbook/application_helper.rb +5 -1
- data/app/helpers/lookbook/component_helper.rb +22 -10
- data/app/helpers/lookbook/output_helper.rb +8 -4
- data/app/helpers/lookbook/page_helper.rb +13 -21
- data/app/views/layouts/lookbook/application.html.erb +76 -28
- data/app/views/layouts/lookbook/inspector.html.erb +7 -0
- data/app/views/layouts/lookbook/page.html.erb +53 -0
- data/app/views/layouts/lookbook/shell.html.erb +64 -0
- data/app/views/layouts/lookbook/skeleton.html.erb +27 -10
- data/app/views/layouts/lookbook/standalone.html.erb +5 -0
- data/app/views/lookbook/404.html.erb +15 -0
- data/app/views/lookbook/error.html.erb +34 -34
- data/app/views/lookbook/index.html.erb +11 -6
- data/app/views/lookbook/pages/show.html.erb +29 -67
- data/app/views/{layouts/lookbook → lookbook}/preview.html.erb +3 -5
- data/app/views/lookbook/previews/panels/_notes.html.erb +19 -25
- data/app/views/lookbook/previews/panels/_output.html.erb +7 -18
- data/app/views/lookbook/previews/panels/_params.html.erb +13 -15
- data/app/views/lookbook/previews/panels/_preview.html.erb +6 -52
- data/app/views/lookbook/previews/panels/_source.html.erb +7 -16
- data/app/views/lookbook/previews/show.html.erb +130 -24
- data/config/routes.rb +5 -5
- data/lib/lookbook/code_formatter.rb +37 -13
- data/lib/lookbook/collection.rb +19 -16
- data/lib/lookbook/config.rb +125 -0
- data/lib/lookbook/engine.rb +79 -74
- data/lib/lookbook/entity.rb +47 -0
- data/lib/lookbook/error.rb +1 -2
- data/lib/lookbook/features.rb +1 -1
- data/lib/lookbook/markdown.rb +3 -4
- data/lib/lookbook/page.rb +21 -12
- data/lib/lookbook/page_collection.rb +8 -0
- data/lib/lookbook/params.rb +15 -4
- data/lib/lookbook/preview.rb +15 -6
- data/lib/lookbook/preview_collection.rb +8 -0
- data/lib/lookbook/preview_controller.rb +6 -2
- data/lib/lookbook/preview_example.rb +5 -6
- data/lib/lookbook/preview_group.rb +4 -9
- data/lib/lookbook/{code_inspector.rb → source_inspector.rb} +2 -2
- data/lib/lookbook/theme.rb +22 -0
- data/lib/lookbook/utils.rb +10 -2
- data/lib/lookbook/version.rb +1 -1
- data/lib/lookbook.rb +4 -1
- data/lib/tasks/lookbook_tasks.rake +12 -0
- data/public/lookbook-assets/css/app.css +2340 -1
- data/public/lookbook-assets/css/app.css.map +11 -1
- data/public/lookbook-assets/css/lookbook.css +3040 -0
- data/public/lookbook-assets/css/lookbook.css.map +1 -0
- data/public/lookbook-assets/css/themes/blue.css +44 -0
- data/public/lookbook-assets/css/themes/blue.css.map +1 -0
- data/public/lookbook-assets/css/themes/indigo.css +44 -0
- data/public/lookbook-assets/css/themes/indigo.css.map +1 -0
- data/public/lookbook-assets/css/themes/zinc.css +44 -0
- data/public/lookbook-assets/css/themes/zinc.css.map +1 -0
- data/public/lookbook-assets/js/app.js +10861 -1
- data/public/lookbook-assets/js/app.js.map +2571 -1
- data/public/lookbook-assets/js/embed.js +895 -1
- data/public/lookbook-assets/js/embed.js.map +1 -1
- data/public/lookbook-assets/js/lookbook.js +13529 -0
- data/public/lookbook-assets/js/lookbook.js.map +1 -0
- metadata +127 -114
- data/app/assets/lookbook/css/app.css +0 -161
- data/app/assets/lookbook/css/code_theme.css +0 -214
- data/app/assets/lookbook/js/components/app.js +0 -55
- data/app/assets/lookbook/js/components/code.js +0 -5
- data/app/assets/lookbook/js/components/copy.js +0 -20
- data/app/assets/lookbook/js/components/embed.js +0 -89
- data/app/assets/lookbook/js/components/filter.js +0 -35
- data/app/assets/lookbook/js/components/inspector.js +0 -66
- data/app/assets/lookbook/js/components/nav-group.js +0 -47
- data/app/assets/lookbook/js/components/nav-item.js +0 -29
- data/app/assets/lookbook/js/components/nav.js +0 -28
- data/app/assets/lookbook/js/components/page.js +0 -25
- data/app/assets/lookbook/js/components/param.js +0 -34
- data/app/assets/lookbook/js/components/sidebar.js +0 -18
- data/app/assets/lookbook/js/components/sizes.js +0 -16
- data/app/assets/lookbook/js/components/splitter.js +0 -25
- data/app/assets/lookbook/js/components/tabs.js +0 -52
- data/app/assets/lookbook/js/lib/split.js +0 -15
- data/app/assets/lookbook/js/stores/sidebar.js +0 -26
- data/app/views/layouts/lookbook/basic.html.erb +0 -7
- data/app/views/lookbook/components/_branding.html.erb +0 -8
- data/app/views/lookbook/components/_code.html.erb +0 -17
- data/app/views/lookbook/components/_copy_button.html.erb +0 -11
- data/app/views/lookbook/components/_drawer.html.erb +0 -112
- data/app/views/lookbook/components/_embed.html.erb +0 -39
- data/app/views/lookbook/components/_errors.html.erb +0 -13
- data/app/views/lookbook/components/_filter.html.erb +0 -18
- data/app/views/lookbook/components/_header.html.erb +0 -6
- data/app/views/lookbook/components/_icon.html.erb +0 -5
- data/app/views/lookbook/components/_nav.html.erb +0 -16
- data/app/views/lookbook/components/_nav_collection.html.erb +0 -5
- data/app/views/lookbook/components/_nav_group.html.erb +0 -14
- data/app/views/lookbook/components/_nav_item.html.erb +0 -24
- data/app/views/lookbook/components/_nav_page.html.erb +0 -22
- data/app/views/lookbook/components/_nav_preview.html.erb +0 -13
- data/app/views/lookbook/components/_not_found.html.erb +0 -11
- data/app/views/lookbook/components/_param.html.erb +0 -21
- data/app/views/lookbook/components/_preview.html.erb +0 -77
- data/app/views/lookbook/components/_sidebar.html.erb +0 -69
- data/app/views/lookbook/pages/not_found.html.erb +0 -15
- data/app/views/lookbook/previews/error.html.erb +0 -1
- data/app/views/lookbook/previews/inputs/_select.html.erb +0 -7
- data/app/views/lookbook/previews/inputs/_text.html.erb +0 -8
- data/app/views/lookbook/previews/inputs/_textarea.html.erb +0 -8
- data/app/views/lookbook/previews/inputs/_toggle.html.erb +0 -13
- data/app/views/lookbook/previews/not_found.html.erb +0 -23
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actioncable
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activemodel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: railties
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,75 +137,19 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '1.3'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.4'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.4'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: shoulda
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '4.0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '4.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: warning
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.2'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.2'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: standard
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.1'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '1.1'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: capybara
|
140
|
+
name: htmlentities
|
183
141
|
requirement: !ruby/object:Gem::Requirement
|
184
142
|
requirements:
|
185
143
|
- - "~>"
|
186
144
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
188
|
-
type: :
|
145
|
+
version: 4.3.4
|
146
|
+
type: :runtime
|
189
147
|
prerelease: false
|
190
148
|
version_requirements: !ruby/object:Gem::Requirement
|
191
149
|
requirements:
|
192
150
|
- - "~>"
|
193
151
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
152
|
+
version: 4.3.4
|
195
153
|
description:
|
196
154
|
email:
|
197
155
|
executables: []
|
@@ -200,38 +158,102 @@ extra_rdoc_files: []
|
|
200
158
|
files:
|
201
159
|
- LICENSE.txt
|
202
160
|
- README.md
|
203
|
-
- app/assets/lookbook/css/
|
204
|
-
- app/assets/lookbook/css/
|
205
|
-
- app/assets/lookbook/css/
|
161
|
+
- app/assets/lookbook/css/lookbook.css
|
162
|
+
- app/assets/lookbook/css/themes/blue.css
|
163
|
+
- app/assets/lookbook/css/themes/indigo.css
|
164
|
+
- app/assets/lookbook/css/themes/zinc.css
|
165
|
+
- app/assets/lookbook/css/tooltip.css
|
206
166
|
- app/assets/lookbook/js/app.js
|
207
|
-
- app/assets/lookbook/js/components/
|
208
|
-
- app/assets/lookbook/js/components/
|
209
|
-
- app/assets/lookbook/js/components/copy.js
|
210
|
-
- app/assets/lookbook/js/components/embed.js
|
211
|
-
- app/assets/lookbook/js/components/filter.js
|
212
|
-
- app/assets/lookbook/js/components/inspector.js
|
213
|
-
- app/assets/lookbook/js/components/nav-group.js
|
214
|
-
- app/assets/lookbook/js/components/nav-item.js
|
215
|
-
- app/assets/lookbook/js/components/nav.js
|
216
|
-
- app/assets/lookbook/js/components/page.js
|
217
|
-
- app/assets/lookbook/js/components/param.js
|
218
|
-
- app/assets/lookbook/js/components/preview-window.js
|
219
|
-
- app/assets/lookbook/js/components/sidebar.js
|
220
|
-
- app/assets/lookbook/js/components/sizes.js
|
221
|
-
- app/assets/lookbook/js/components/splitter.js
|
222
|
-
- app/assets/lookbook/js/components/tabs.js
|
167
|
+
- app/assets/lookbook/js/components/clipboard.js
|
168
|
+
- app/assets/lookbook/js/components/tooltip.js
|
223
169
|
- app/assets/lookbook/js/config.js
|
224
170
|
- app/assets/lookbook/js/embed.js
|
171
|
+
- app/assets/lookbook/js/helpers/build.js
|
172
|
+
- app/assets/lookbook/js/helpers/dom.js
|
173
|
+
- app/assets/lookbook/js/helpers/layout.js
|
174
|
+
- app/assets/lookbook/js/helpers/request.js
|
175
|
+
- app/assets/lookbook/js/helpers/string.js
|
225
176
|
- app/assets/lookbook/js/lib/socket.js
|
226
|
-
- app/assets/lookbook/js/lib/
|
177
|
+
- app/assets/lookbook/js/lib/tippy.js
|
178
|
+
- app/assets/lookbook/js/lookbook.js
|
179
|
+
- app/assets/lookbook/js/plugins/logger.js
|
227
180
|
- app/assets/lookbook/js/stores/filter.js
|
228
181
|
- app/assets/lookbook/js/stores/inspector.js
|
229
182
|
- app/assets/lookbook/js/stores/layout.js
|
230
183
|
- app/assets/lookbook/js/stores/nav.js
|
231
184
|
- app/assets/lookbook/js/stores/pages.js
|
232
|
-
- app/assets/lookbook/js/stores/
|
185
|
+
- app/assets/lookbook/js/stores/settings.js
|
186
|
+
- app/assets/lookbook/js/stores/workbench.js
|
233
187
|
- app/channels/lookbook/connection.rb
|
234
188
|
- app/channels/lookbook/reload_channel.rb
|
189
|
+
- app/components/lookbook/button/component.html.erb
|
190
|
+
- app/components/lookbook/button/component.js
|
191
|
+
- app/components/lookbook/button/component.rb
|
192
|
+
- app/components/lookbook/button_group/component.html.erb
|
193
|
+
- app/components/lookbook/button_group/component.rb
|
194
|
+
- app/components/lookbook/code/component.css
|
195
|
+
- app/components/lookbook/code/component.html.erb
|
196
|
+
- app/components/lookbook/code/component.js
|
197
|
+
- app/components/lookbook/code/component.rb
|
198
|
+
- app/components/lookbook/code/highlight_github_light.css
|
199
|
+
- app/components/lookbook/component.rb
|
200
|
+
- app/components/lookbook/copy_button/component.html.erb
|
201
|
+
- app/components/lookbook/copy_button/component.js
|
202
|
+
- app/components/lookbook/copy_button/component.rb
|
203
|
+
- app/components/lookbook/dimensions_display/component.html.erb
|
204
|
+
- app/components/lookbook/dimensions_display/component.js
|
205
|
+
- app/components/lookbook/dimensions_display/component.rb
|
206
|
+
- app/components/lookbook/embed/component.html.erb
|
207
|
+
- app/components/lookbook/embed/component.js
|
208
|
+
- app/components/lookbook/embed/component.rb
|
209
|
+
- app/components/lookbook/filter/component.html.erb
|
210
|
+
- app/components/lookbook/filter/component.js
|
211
|
+
- app/components/lookbook/filter/component.rb
|
212
|
+
- app/components/lookbook/header/component.html.erb
|
213
|
+
- app/components/lookbook/header/component.rb
|
214
|
+
- app/components/lookbook/icon/component.css
|
215
|
+
- app/components/lookbook/icon/component.html.erb
|
216
|
+
- app/components/lookbook/icon/component.js
|
217
|
+
- app/components/lookbook/icon/component.rb
|
218
|
+
- app/components/lookbook/nav/component.html.erb
|
219
|
+
- app/components/lookbook/nav/component.js
|
220
|
+
- app/components/lookbook/nav/component.rb
|
221
|
+
- app/components/lookbook/nav/item/component.html.erb
|
222
|
+
- app/components/lookbook/nav/item/component.js
|
223
|
+
- app/components/lookbook/nav/item/component.rb
|
224
|
+
- app/components/lookbook/params_editor/component.html.erb
|
225
|
+
- app/components/lookbook/params_editor/component.js
|
226
|
+
- app/components/lookbook/params_editor/component.rb
|
227
|
+
- app/components/lookbook/params_editor/field/component.html.erb
|
228
|
+
- app/components/lookbook/params_editor/field/component.js
|
229
|
+
- app/components/lookbook/params_editor/field/component.rb
|
230
|
+
- app/components/lookbook/prose/component.css
|
231
|
+
- app/components/lookbook/prose/component.html.erb
|
232
|
+
- app/components/lookbook/prose/component.rb
|
233
|
+
- app/components/lookbook/split_layout/component.html.erb
|
234
|
+
- app/components/lookbook/split_layout/component.js
|
235
|
+
- app/components/lookbook/split_layout/component.rb
|
236
|
+
- app/components/lookbook/tabbed_content/component.html.erb
|
237
|
+
- app/components/lookbook/tabbed_content/component.js
|
238
|
+
- app/components/lookbook/tabbed_content/component.rb
|
239
|
+
- app/components/lookbook/tabbed_content/section/component.html.erb
|
240
|
+
- app/components/lookbook/tabbed_content/section/component.rb
|
241
|
+
- app/components/lookbook/tabs/component.css
|
242
|
+
- app/components/lookbook/tabs/component.html.erb
|
243
|
+
- app/components/lookbook/tabs/component.js
|
244
|
+
- app/components/lookbook/tabs/component.rb
|
245
|
+
- app/components/lookbook/tabs/dropdown_tab/component.html.erb
|
246
|
+
- app/components/lookbook/tabs/dropdown_tab/component.rb
|
247
|
+
- app/components/lookbook/tabs/tab/component.html.erb
|
248
|
+
- app/components/lookbook/tabs/tab/component.rb
|
249
|
+
- app/components/lookbook/tag_component.rb
|
250
|
+
- app/components/lookbook/toolbar/component.css
|
251
|
+
- app/components/lookbook/toolbar/component.html.erb
|
252
|
+
- app/components/lookbook/toolbar/component.rb
|
253
|
+
- app/components/lookbook/viewport/component.css
|
254
|
+
- app/components/lookbook/viewport/component.html.erb
|
255
|
+
- app/components/lookbook/viewport/component.js
|
256
|
+
- app/components/lookbook/viewport/component.rb
|
235
257
|
- app/controllers/lookbook/application_controller.rb
|
236
258
|
- app/controllers/lookbook/page_controller.rb
|
237
259
|
- app/controllers/lookbook/pages_controller.rb
|
@@ -242,38 +264,16 @@ files:
|
|
242
264
|
- app/helpers/lookbook/page_helper.rb
|
243
265
|
- app/helpers/lookbook/preview_helper.rb
|
244
266
|
- app/views/layouts/lookbook/application.html.erb
|
245
|
-
- app/views/layouts/lookbook/
|
246
|
-
- app/views/layouts/lookbook/
|
267
|
+
- app/views/layouts/lookbook/inspector.html.erb
|
268
|
+
- app/views/layouts/lookbook/page.html.erb
|
269
|
+
- app/views/layouts/lookbook/shell.html.erb
|
247
270
|
- app/views/layouts/lookbook/skeleton.html.erb
|
248
|
-
- app/views/lookbook/
|
249
|
-
- app/views/lookbook/
|
250
|
-
- app/views/lookbook/components/_copy_button.html.erb
|
251
|
-
- app/views/lookbook/components/_drawer.html.erb
|
252
|
-
- app/views/lookbook/components/_embed.html.erb
|
253
|
-
- app/views/lookbook/components/_errors.html.erb
|
254
|
-
- app/views/lookbook/components/_filter.html.erb
|
255
|
-
- app/views/lookbook/components/_header.html.erb
|
256
|
-
- app/views/lookbook/components/_icon.html.erb
|
257
|
-
- app/views/lookbook/components/_nav.html.erb
|
258
|
-
- app/views/lookbook/components/_nav_collection.html.erb
|
259
|
-
- app/views/lookbook/components/_nav_group.html.erb
|
260
|
-
- app/views/lookbook/components/_nav_item.html.erb
|
261
|
-
- app/views/lookbook/components/_nav_page.html.erb
|
262
|
-
- app/views/lookbook/components/_nav_preview.html.erb
|
263
|
-
- app/views/lookbook/components/_not_found.html.erb
|
264
|
-
- app/views/lookbook/components/_param.html.erb
|
265
|
-
- app/views/lookbook/components/_preview.html.erb
|
266
|
-
- app/views/lookbook/components/_sidebar.html.erb
|
271
|
+
- app/views/layouts/lookbook/standalone.html.erb
|
272
|
+
- app/views/lookbook/404.html.erb
|
267
273
|
- app/views/lookbook/error.html.erb
|
268
274
|
- app/views/lookbook/index.html.erb
|
269
|
-
- app/views/lookbook/pages/not_found.html.erb
|
270
275
|
- app/views/lookbook/pages/show.html.erb
|
271
|
-
- app/views/lookbook/
|
272
|
-
- app/views/lookbook/previews/inputs/_select.html.erb
|
273
|
-
- app/views/lookbook/previews/inputs/_text.html.erb
|
274
|
-
- app/views/lookbook/previews/inputs/_textarea.html.erb
|
275
|
-
- app/views/lookbook/previews/inputs/_toggle.html.erb
|
276
|
-
- app/views/lookbook/previews/not_found.html.erb
|
276
|
+
- app/views/lookbook/preview.html.erb
|
277
277
|
- app/views/lookbook/previews/panels/_notes.html.erb
|
278
278
|
- app/views/lookbook/previews/panels/_output.html.erb
|
279
279
|
- app/views/lookbook/previews/panels/_params.html.erb
|
@@ -283,9 +283,10 @@ files:
|
|
283
283
|
- config/routes.rb
|
284
284
|
- lib/lookbook.rb
|
285
285
|
- lib/lookbook/code_formatter.rb
|
286
|
-
- lib/lookbook/code_inspector.rb
|
287
286
|
- lib/lookbook/collection.rb
|
287
|
+
- lib/lookbook/config.rb
|
288
288
|
- lib/lookbook/engine.rb
|
289
|
+
- lib/lookbook/entity.rb
|
289
290
|
- lib/lookbook/error.rb
|
290
291
|
- lib/lookbook/features.rb
|
291
292
|
- lib/lookbook/lang.rb
|
@@ -299,16 +300,28 @@ files:
|
|
299
300
|
- lib/lookbook/preview_controller.rb
|
300
301
|
- lib/lookbook/preview_example.rb
|
301
302
|
- lib/lookbook/preview_group.rb
|
303
|
+
- lib/lookbook/source_inspector.rb
|
304
|
+
- lib/lookbook/theme.rb
|
302
305
|
- lib/lookbook/utils.rb
|
303
306
|
- lib/lookbook/version.rb
|
304
307
|
- lib/tasks/lookbook_tasks.rake
|
305
308
|
- public/lookbook-assets/css/app.css
|
306
309
|
- public/lookbook-assets/css/app.css.map
|
310
|
+
- public/lookbook-assets/css/lookbook.css
|
311
|
+
- public/lookbook-assets/css/lookbook.css.map
|
312
|
+
- public/lookbook-assets/css/themes/blue.css
|
313
|
+
- public/lookbook-assets/css/themes/blue.css.map
|
314
|
+
- public/lookbook-assets/css/themes/indigo.css
|
315
|
+
- public/lookbook-assets/css/themes/indigo.css.map
|
316
|
+
- public/lookbook-assets/css/themes/zinc.css
|
317
|
+
- public/lookbook-assets/css/themes/zinc.css.map
|
307
318
|
- public/lookbook-assets/feather-sprite.svg
|
308
319
|
- public/lookbook-assets/js/app.js
|
309
320
|
- public/lookbook-assets/js/app.js.map
|
310
321
|
- public/lookbook-assets/js/embed.js
|
311
322
|
- public/lookbook-assets/js/embed.js.map
|
323
|
+
- public/lookbook-assets/js/lookbook.js
|
324
|
+
- public/lookbook-assets/js/lookbook.js.map
|
312
325
|
homepage: https://github.com/allmarkedup/lookbook
|
313
326
|
licenses:
|
314
327
|
- MIT
|
@@ -324,9 +337,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
337
|
version: '0'
|
325
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
339
|
requirements:
|
327
|
-
- - "
|
340
|
+
- - ">"
|
328
341
|
- !ruby/object:Gem::Version
|
329
|
-
version:
|
342
|
+
version: 1.3.1
|
330
343
|
requirements: []
|
331
344
|
rubygems_version: 3.2.22
|
332
345
|
signing_key:
|
@@ -1,161 +0,0 @@
|
|
1
|
-
@import "tailwindcss/base";
|
2
|
-
@import "tailwindcss/components";
|
3
|
-
@import "tailwindcss/utilities";
|
4
|
-
@import "tippy.js/dist/tippy";
|
5
|
-
@import "tippy.js/dist/border";
|
6
|
-
@import "code_theme";
|
7
|
-
@import "tooltip_theme";
|
8
|
-
|
9
|
-
@layer base {
|
10
|
-
html {
|
11
|
-
scroll-behavior: smooth;
|
12
|
-
}
|
13
|
-
|
14
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
15
|
-
html {
|
16
|
-
scroll-behavior: auto;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
[x-cloak] {
|
21
|
-
display: none !important;
|
22
|
-
}
|
23
|
-
|
24
|
-
pre[class*="language-"] {
|
25
|
-
padding: 0 !important;
|
26
|
-
margin: 0 !important;
|
27
|
-
}
|
28
|
-
|
29
|
-
.feather {
|
30
|
-
width: 24px;
|
31
|
-
height: 24px;
|
32
|
-
stroke: currentColor;
|
33
|
-
stroke-width: 2;
|
34
|
-
stroke-linecap: round;
|
35
|
-
stroke-linejoin: round;
|
36
|
-
fill: none;
|
37
|
-
}
|
38
|
-
|
39
|
-
::-webkit-scrollbar {
|
40
|
-
width: 8px;
|
41
|
-
height: 8px;
|
42
|
-
}
|
43
|
-
|
44
|
-
::-webkit-scrollbar-track {
|
45
|
-
background: transparent;
|
46
|
-
}
|
47
|
-
|
48
|
-
::-webkit-scrollbar-thumb {
|
49
|
-
@apply bg-gray-300 transition-colors;
|
50
|
-
border-radius: 6px;
|
51
|
-
border: 2px solid transparent;
|
52
|
-
background-clip: content-box;
|
53
|
-
}
|
54
|
-
|
55
|
-
::-webkit-scrollbar-thumb:hover {
|
56
|
-
@apply bg-gray-400;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
@layer components {
|
61
|
-
.unsectioned > #nav > ul > li > div {
|
62
|
-
@apply py-1 border-b border-gray-300;
|
63
|
-
}
|
64
|
-
|
65
|
-
.nav-toggle {
|
66
|
-
@apply flex items-center cursor-pointer pr-3 hover:bg-gray-200 hover:bg-opacity-50;
|
67
|
-
}
|
68
|
-
|
69
|
-
.nav-label {
|
70
|
-
@apply truncate w-full whitespace-nowrap text-left select-none;
|
71
|
-
}
|
72
|
-
|
73
|
-
.code {
|
74
|
-
@apply font-mono;
|
75
|
-
}
|
76
|
-
|
77
|
-
.code pre {
|
78
|
-
@apply block;
|
79
|
-
}
|
80
|
-
|
81
|
-
.code.wrapped pre {
|
82
|
-
@apply whitespace-pre-wrap;
|
83
|
-
}
|
84
|
-
|
85
|
-
.code .line {
|
86
|
-
@apply leading-relaxed;
|
87
|
-
}
|
88
|
-
|
89
|
-
.code.numbered {
|
90
|
-
@apply relative;
|
91
|
-
}
|
92
|
-
|
93
|
-
.code.numbered:before {
|
94
|
-
content: "";
|
95
|
-
left: 2.7em;
|
96
|
-
@apply absolute top-0 bottom-0 border-r border-gray-200 z-10;
|
97
|
-
}
|
98
|
-
|
99
|
-
.code.numbered .line {
|
100
|
-
padding-left: calc(2.7em + 14px);
|
101
|
-
@apply relative;
|
102
|
-
}
|
103
|
-
|
104
|
-
.code .line-number {
|
105
|
-
display: inline-block;
|
106
|
-
width: calc(2.7em + 8px);
|
107
|
-
padding-top: 3px;
|
108
|
-
padding-bottom: 3px;
|
109
|
-
padding-right: 8px;
|
110
|
-
margin-right: 16px;
|
111
|
-
@apply font-mono text-right text-gray-400 flex-none text-xs absolute left-0;
|
112
|
-
}
|
113
|
-
|
114
|
-
.code .line-content {
|
115
|
-
@apply flex-none pr-4;
|
116
|
-
}
|
117
|
-
|
118
|
-
.code.focussed .line:not(.highlighted-line) *,
|
119
|
-
.code.focussed .line:not(.highlighted-line) .line-content * {
|
120
|
-
@apply !text-gray-700 !text-opacity-40;
|
121
|
-
}
|
122
|
-
|
123
|
-
.code.focussed .line:not(.highlighted-line) .line-number {
|
124
|
-
@apply !opacity-70;
|
125
|
-
}
|
126
|
-
|
127
|
-
.code.focussed .line.highlighted-line {
|
128
|
-
@apply bg-yellow-50;
|
129
|
-
}
|
130
|
-
|
131
|
-
.code.focussed .line.highlighted-line .line-number {
|
132
|
-
@apply text-gray-900;
|
133
|
-
}
|
134
|
-
|
135
|
-
.prose .code {
|
136
|
-
@apply !bg-white border border-gray-300 text-gray-600 my-8 rounded-md py-4 text-sm overflow-auto max-w-3xl w-full mx-auto;
|
137
|
-
}
|
138
|
-
|
139
|
-
.prose .code:not(.numbered) .line {
|
140
|
-
@apply px-4;
|
141
|
-
}
|
142
|
-
|
143
|
-
.prose .embed {
|
144
|
-
@apply my-8;
|
145
|
-
}
|
146
|
-
|
147
|
-
.resize-handle {
|
148
|
-
@apply flex items-center justify-center h-full w-full border-gray-300 bg-white hover:bg-indigo-100 hover:bg-opacity-20 text-gray-400 hover:text-gray-700 transition select-none touch-none;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
@layer utilities {
|
153
|
-
.form-input {
|
154
|
-
@apply border-gray-300 text-gray-700 focus:ring-indigo-300 focus:border-indigo-300 rounded-sm text-sm w-full;
|
155
|
-
}
|
156
|
-
|
157
|
-
.checked-bg {
|
158
|
-
background-color: #ffffff;
|
159
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23f3f3f3' fill-opacity='1'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
|
160
|
-
}
|
161
|
-
}
|
@@ -1,214 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* GitHub style for Pygments
|
3
|
-
* Courtesy of GitHub.com
|
4
|
-
*/
|
5
|
-
|
6
|
-
.highlight .hll {
|
7
|
-
background-color: #f8f8f8;
|
8
|
-
border: 1px solid #ccc;
|
9
|
-
padding: 6px 10px;
|
10
|
-
border-radius: 3px;
|
11
|
-
}
|
12
|
-
.highlight .c {
|
13
|
-
color: #999988;
|
14
|
-
font-style: italic;
|
15
|
-
}
|
16
|
-
.highlight .err {
|
17
|
-
color: #a61717;
|
18
|
-
background-color: #e3d2d2;
|
19
|
-
}
|
20
|
-
.highlight .k {
|
21
|
-
font-weight: bold;
|
22
|
-
}
|
23
|
-
.highlight .o {
|
24
|
-
font-weight: bold;
|
25
|
-
}
|
26
|
-
.highlight .cm {
|
27
|
-
color: #999988;
|
28
|
-
font-style: italic;
|
29
|
-
}
|
30
|
-
.highlight .cp {
|
31
|
-
color: #999999;
|
32
|
-
font-weight: bold;
|
33
|
-
}
|
34
|
-
.highlight .c1 {
|
35
|
-
color: #999988;
|
36
|
-
font-style: italic;
|
37
|
-
}
|
38
|
-
.highlight .cs {
|
39
|
-
color: #999999;
|
40
|
-
font-weight: bold;
|
41
|
-
font-style: italic;
|
42
|
-
}
|
43
|
-
.highlight .gd {
|
44
|
-
color: #000000;
|
45
|
-
background-color: #ffdddd;
|
46
|
-
}
|
47
|
-
.highlight .gd .x {
|
48
|
-
color: #000000;
|
49
|
-
background-color: #ffaaaa;
|
50
|
-
}
|
51
|
-
.highlight .ge {
|
52
|
-
font-style: italic;
|
53
|
-
}
|
54
|
-
.highlight .gr {
|
55
|
-
color: #aa0000;
|
56
|
-
}
|
57
|
-
.highlight .gh {
|
58
|
-
color: #999999;
|
59
|
-
}
|
60
|
-
.highlight .gi {
|
61
|
-
color: #000000;
|
62
|
-
background-color: #ddffdd;
|
63
|
-
}
|
64
|
-
.highlight .gi .x {
|
65
|
-
color: #000000;
|
66
|
-
background-color: #aaffaa;
|
67
|
-
}
|
68
|
-
.highlight .go {
|
69
|
-
color: #888888;
|
70
|
-
}
|
71
|
-
.highlight .gp {
|
72
|
-
color: #555555;
|
73
|
-
}
|
74
|
-
.highlight .gs {
|
75
|
-
font-weight: bold;
|
76
|
-
}
|
77
|
-
.highlight .gu {
|
78
|
-
color: #800080;
|
79
|
-
font-weight: bold;
|
80
|
-
}
|
81
|
-
.highlight .gt {
|
82
|
-
color: #aa0000;
|
83
|
-
}
|
84
|
-
.highlight .kc {
|
85
|
-
font-weight: bold;
|
86
|
-
}
|
87
|
-
.highlight .kd {
|
88
|
-
font-weight: bold;
|
89
|
-
}
|
90
|
-
.highlight .kn {
|
91
|
-
font-weight: bold;
|
92
|
-
}
|
93
|
-
.highlight .kp {
|
94
|
-
font-weight: bold;
|
95
|
-
}
|
96
|
-
.highlight .kr {
|
97
|
-
font-weight: bold;
|
98
|
-
}
|
99
|
-
.highlight .kt {
|
100
|
-
color: #445588;
|
101
|
-
font-weight: bold;
|
102
|
-
}
|
103
|
-
.highlight .m {
|
104
|
-
color: #009999;
|
105
|
-
}
|
106
|
-
.highlight .s {
|
107
|
-
color: #dd1144;
|
108
|
-
}
|
109
|
-
.highlight .n {
|
110
|
-
color: #333333;
|
111
|
-
}
|
112
|
-
.highlight .na {
|
113
|
-
color: teal;
|
114
|
-
}
|
115
|
-
.highlight .nb {
|
116
|
-
color: #0086b3;
|
117
|
-
}
|
118
|
-
.highlight .nc {
|
119
|
-
color: #445588;
|
120
|
-
font-weight: bold;
|
121
|
-
}
|
122
|
-
.highlight .no {
|
123
|
-
color: teal;
|
124
|
-
}
|
125
|
-
.highlight .ni {
|
126
|
-
color: purple;
|
127
|
-
}
|
128
|
-
.highlight .ne {
|
129
|
-
color: #990000;
|
130
|
-
font-weight: bold;
|
131
|
-
}
|
132
|
-
.highlight .nf {
|
133
|
-
color: #990000;
|
134
|
-
font-weight: bold;
|
135
|
-
}
|
136
|
-
.highlight .nn {
|
137
|
-
color: #555555;
|
138
|
-
}
|
139
|
-
.highlight .nt {
|
140
|
-
color: navy;
|
141
|
-
}
|
142
|
-
.highlight .nv {
|
143
|
-
color: teal;
|
144
|
-
}
|
145
|
-
.highlight .ow {
|
146
|
-
font-weight: bold;
|
147
|
-
}
|
148
|
-
.highlight .w {
|
149
|
-
color: #bbbbbb;
|
150
|
-
}
|
151
|
-
.highlight .mf {
|
152
|
-
color: #009999;
|
153
|
-
}
|
154
|
-
.highlight .mh {
|
155
|
-
color: #009999;
|
156
|
-
}
|
157
|
-
.highlight .mi {
|
158
|
-
color: #009999;
|
159
|
-
}
|
160
|
-
.highlight .mo {
|
161
|
-
color: #009999;
|
162
|
-
}
|
163
|
-
.highlight .sb {
|
164
|
-
color: #dd1144;
|
165
|
-
}
|
166
|
-
.highlight .sc {
|
167
|
-
color: #dd1144;
|
168
|
-
}
|
169
|
-
.highlight .sd {
|
170
|
-
color: #dd1144;
|
171
|
-
}
|
172
|
-
.highlight .s2 {
|
173
|
-
color: #dd1144;
|
174
|
-
}
|
175
|
-
.highlight .se {
|
176
|
-
color: #dd1144;
|
177
|
-
}
|
178
|
-
.highlight .sh {
|
179
|
-
color: #dd1144;
|
180
|
-
}
|
181
|
-
.highlight .si {
|
182
|
-
color: #dd1144;
|
183
|
-
}
|
184
|
-
.highlight .sx {
|
185
|
-
color: #dd1144;
|
186
|
-
}
|
187
|
-
.highlight .sr {
|
188
|
-
color: #009926;
|
189
|
-
}
|
190
|
-
.highlight .s1 {
|
191
|
-
color: #dd1144;
|
192
|
-
}
|
193
|
-
.highlight .ss {
|
194
|
-
color: #990073;
|
195
|
-
}
|
196
|
-
.highlight .bp {
|
197
|
-
color: #999999;
|
198
|
-
}
|
199
|
-
.highlight .vc {
|
200
|
-
color: teal;
|
201
|
-
}
|
202
|
-
.highlight .vg {
|
203
|
-
color: teal;
|
204
|
-
}
|
205
|
-
.highlight .vi {
|
206
|
-
color: teal;
|
207
|
-
}
|
208
|
-
.highlight .il {
|
209
|
-
color: #009999;
|
210
|
-
}
|
211
|
-
.highlight .gc {
|
212
|
-
color: #999;
|
213
|
-
background-color: #eaf2f5;
|
214
|
-
}
|