lookbook 0.8.3 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +90 -795
- 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 +23 -17
- 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 +11 -0
- data/app/components/lookbook/dimensions_display/component.js +37 -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/page_tabs/component.html.erb +18 -0
- data/app/components/lookbook/page_tabs/component.rb +19 -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/tab_panels/component.html.erb +5 -0
- data/app/components/lookbook/tab_panels/component.js +25 -0
- data/app/components/lookbook/tab_panels/component.rb +20 -0
- data/app/components/lookbook/tab_panels/panel/component.html.erb +8 -0
- data/app/components/lookbook/tab_panels/panel/component.rb +9 -0
- data/app/components/lookbook/tabs/component.css +8 -0
- data/app/components/lookbook/tabs/component.html.erb +20 -0
- data/app/components/lookbook/tabs/component.js +115 -0
- data/app/components/lookbook/tabs/component.rb +28 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +20 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.rb +17 -0
- data/app/components/lookbook/tabs/tab/component.html.erb +24 -0
- data/app/components/lookbook/tabs/tab/component.rb +17 -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 +19 -8
- data/app/controllers/lookbook/previews_controller.rb +131 -90
- 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 +38 -66
- data/app/views/{layouts/lookbook → lookbook}/preview.html.erb +6 -8
- data/app/views/lookbook/previews/panels/_content.html.erb +13 -0
- 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 +6 -15
- data/app/views/lookbook/previews/show.html.erb +133 -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 +180 -0
- data/lib/lookbook/engine.rb +66 -59
- 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 +52 -20
- data/lib/lookbook/page_collection.rb +8 -0
- data/lib/lookbook/page_section.rb +31 -0
- data/lib/lookbook/params.rb +14 -3
- data/lib/lookbook/preview.rb +16 -7
- 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/store.rb +36 -0
- data/lib/lookbook/theme.rb +29 -0
- data/lib/lookbook/utils.rb +11 -3
- data/lib/lookbook/version.rb +1 -1
- data/lib/lookbook.rb +6 -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 +3069 -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 +13541 -0
- data/public/lookbook-assets/js/lookbook.js.map +1 -0
- metadata +133 -115
- 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.1
|
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-06-
|
11
|
+
date: 2022-06-16 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:
|
140
|
+
name: htmlentities
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
132
|
-
type: :
|
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
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '3.3'
|
188
|
-
type: :development
|
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,104 @@ 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/page_tabs/component.html.erb
|
225
|
+
- app/components/lookbook/page_tabs/component.rb
|
226
|
+
- app/components/lookbook/params_editor/component.html.erb
|
227
|
+
- app/components/lookbook/params_editor/component.js
|
228
|
+
- app/components/lookbook/params_editor/component.rb
|
229
|
+
- app/components/lookbook/params_editor/field/component.html.erb
|
230
|
+
- app/components/lookbook/params_editor/field/component.js
|
231
|
+
- app/components/lookbook/params_editor/field/component.rb
|
232
|
+
- app/components/lookbook/prose/component.css
|
233
|
+
- app/components/lookbook/prose/component.html.erb
|
234
|
+
- app/components/lookbook/prose/component.rb
|
235
|
+
- app/components/lookbook/split_layout/component.html.erb
|
236
|
+
- app/components/lookbook/split_layout/component.js
|
237
|
+
- app/components/lookbook/split_layout/component.rb
|
238
|
+
- app/components/lookbook/tab_panels/component.html.erb
|
239
|
+
- app/components/lookbook/tab_panels/component.js
|
240
|
+
- app/components/lookbook/tab_panels/component.rb
|
241
|
+
- app/components/lookbook/tab_panels/panel/component.html.erb
|
242
|
+
- app/components/lookbook/tab_panels/panel/component.rb
|
243
|
+
- app/components/lookbook/tabs/component.css
|
244
|
+
- app/components/lookbook/tabs/component.html.erb
|
245
|
+
- app/components/lookbook/tabs/component.js
|
246
|
+
- app/components/lookbook/tabs/component.rb
|
247
|
+
- app/components/lookbook/tabs/dropdown_tab/component.html.erb
|
248
|
+
- app/components/lookbook/tabs/dropdown_tab/component.rb
|
249
|
+
- app/components/lookbook/tabs/tab/component.html.erb
|
250
|
+
- app/components/lookbook/tabs/tab/component.rb
|
251
|
+
- app/components/lookbook/tag_component.rb
|
252
|
+
- app/components/lookbook/toolbar/component.css
|
253
|
+
- app/components/lookbook/toolbar/component.html.erb
|
254
|
+
- app/components/lookbook/toolbar/component.rb
|
255
|
+
- app/components/lookbook/viewport/component.css
|
256
|
+
- app/components/lookbook/viewport/component.html.erb
|
257
|
+
- app/components/lookbook/viewport/component.js
|
258
|
+
- app/components/lookbook/viewport/component.rb
|
235
259
|
- app/controllers/lookbook/application_controller.rb
|
236
260
|
- app/controllers/lookbook/page_controller.rb
|
237
261
|
- app/controllers/lookbook/pages_controller.rb
|
@@ -242,38 +266,17 @@ files:
|
|
242
266
|
- app/helpers/lookbook/page_helper.rb
|
243
267
|
- app/helpers/lookbook/preview_helper.rb
|
244
268
|
- app/views/layouts/lookbook/application.html.erb
|
245
|
-
- app/views/layouts/lookbook/
|
246
|
-
- app/views/layouts/lookbook/
|
269
|
+
- app/views/layouts/lookbook/inspector.html.erb
|
270
|
+
- app/views/layouts/lookbook/page.html.erb
|
271
|
+
- app/views/layouts/lookbook/shell.html.erb
|
247
272
|
- 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
|
273
|
+
- app/views/layouts/lookbook/standalone.html.erb
|
274
|
+
- app/views/lookbook/404.html.erb
|
267
275
|
- app/views/lookbook/error.html.erb
|
268
276
|
- app/views/lookbook/index.html.erb
|
269
|
-
- app/views/lookbook/pages/not_found.html.erb
|
270
277
|
- app/views/lookbook/pages/show.html.erb
|
271
|
-
- app/views/lookbook/
|
272
|
-
- app/views/lookbook/previews/
|
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
|
278
|
+
- app/views/lookbook/preview.html.erb
|
279
|
+
- app/views/lookbook/previews/panels/_content.html.erb
|
277
280
|
- app/views/lookbook/previews/panels/_notes.html.erb
|
278
281
|
- app/views/lookbook/previews/panels/_output.html.erb
|
279
282
|
- app/views/lookbook/previews/panels/_params.html.erb
|
@@ -283,15 +286,17 @@ files:
|
|
283
286
|
- config/routes.rb
|
284
287
|
- lib/lookbook.rb
|
285
288
|
- lib/lookbook/code_formatter.rb
|
286
|
-
- lib/lookbook/code_inspector.rb
|
287
289
|
- lib/lookbook/collection.rb
|
290
|
+
- lib/lookbook/config.rb
|
288
291
|
- lib/lookbook/engine.rb
|
292
|
+
- lib/lookbook/entity.rb
|
289
293
|
- lib/lookbook/error.rb
|
290
294
|
- lib/lookbook/features.rb
|
291
295
|
- lib/lookbook/lang.rb
|
292
296
|
- lib/lookbook/markdown.rb
|
293
297
|
- lib/lookbook/page.rb
|
294
298
|
- lib/lookbook/page_collection.rb
|
299
|
+
- lib/lookbook/page_section.rb
|
295
300
|
- lib/lookbook/params.rb
|
296
301
|
- lib/lookbook/parser.rb
|
297
302
|
- lib/lookbook/preview.rb
|
@@ -299,16 +304,29 @@ files:
|
|
299
304
|
- lib/lookbook/preview_controller.rb
|
300
305
|
- lib/lookbook/preview_example.rb
|
301
306
|
- lib/lookbook/preview_group.rb
|
307
|
+
- lib/lookbook/source_inspector.rb
|
308
|
+
- lib/lookbook/store.rb
|
309
|
+
- lib/lookbook/theme.rb
|
302
310
|
- lib/lookbook/utils.rb
|
303
311
|
- lib/lookbook/version.rb
|
304
312
|
- lib/tasks/lookbook_tasks.rake
|
305
313
|
- public/lookbook-assets/css/app.css
|
306
314
|
- public/lookbook-assets/css/app.css.map
|
315
|
+
- public/lookbook-assets/css/lookbook.css
|
316
|
+
- public/lookbook-assets/css/lookbook.css.map
|
317
|
+
- public/lookbook-assets/css/themes/blue.css
|
318
|
+
- public/lookbook-assets/css/themes/blue.css.map
|
319
|
+
- public/lookbook-assets/css/themes/indigo.css
|
320
|
+
- public/lookbook-assets/css/themes/indigo.css.map
|
321
|
+
- public/lookbook-assets/css/themes/zinc.css
|
322
|
+
- public/lookbook-assets/css/themes/zinc.css.map
|
307
323
|
- public/lookbook-assets/feather-sprite.svg
|
308
324
|
- public/lookbook-assets/js/app.js
|
309
325
|
- public/lookbook-assets/js/app.js.map
|
310
326
|
- public/lookbook-assets/js/embed.js
|
311
327
|
- public/lookbook-assets/js/embed.js.map
|
328
|
+
- public/lookbook-assets/js/lookbook.js
|
329
|
+
- public/lookbook-assets/js/lookbook.js.map
|
312
330
|
homepage: https://github.com/allmarkedup/lookbook
|
313
331
|
licenses:
|
314
332
|
- MIT
|
@@ -321,12 +339,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
321
339
|
requirements:
|
322
340
|
- - ">="
|
323
341
|
- !ruby/object:Gem::Version
|
324
|
-
version:
|
342
|
+
version: '0'
|
325
343
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
344
|
requirements:
|
327
|
-
- - "
|
345
|
+
- - ">"
|
328
346
|
- !ruby/object:Gem::Version
|
329
|
-
version:
|
347
|
+
version: 1.3.1
|
330
348
|
requirements: []
|
331
349
|
rubygems_version: 3.2.22
|
332
350
|
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
|
-
}
|