lookbook 0.5.0.beta.2 → 0.5.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 +30 -18
- data/app/assets/lookbook/js/components/copy.js +4 -2
- data/app/assets/lookbook/js/components/inspector.js +15 -7
- data/app/assets/lookbook/js/config.js +3 -2
- data/app/assets/lookbook/js/stores/inspector.js +3 -2
- data/app/controllers/lookbook/app_controller.rb +23 -11
- data/app/views/layouts/lookbook/app.html.erb +3 -1
- data/app/views/lookbook/components/_drawer.html.erb +38 -35
- data/app/views/lookbook/components/_header.html.erb +2 -2
- data/app/views/lookbook/components/_nav_preview.html.erb +4 -2
- data/app/views/lookbook/components/_preview.html.erb +65 -46
- data/app/views/lookbook/panels/_output.html.erb +1 -1
- data/app/views/lookbook/panels/_preview.html.erb +52 -0
- data/app/views/lookbook/show.html.erb +5 -54
- data/lib/lookbook/features.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/app.css +1 -1
- data/public/lookbook-assets/css/app.css.map +1 -1
- data/public/lookbook-assets/js/app.js +1 -1
- data/public/lookbook-assets/js/app.js.map +1 -1
- metadata +5 -5
- data/app/views/lookbook/components/_copy.html.erb +0 -14
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.5.0
|
4
|
+
version: 0.5.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:
|
11
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -221,7 +221,6 @@ files:
|
|
221
221
|
- app/views/layouts/lookbook/app.html.erb
|
222
222
|
- app/views/layouts/lookbook/preview.html.erb
|
223
223
|
- app/views/lookbook/components/_code.html.erb
|
224
|
-
- app/views/lookbook/components/_copy.html.erb
|
225
224
|
- app/views/lookbook/components/_drawer.html.erb
|
226
225
|
- app/views/lookbook/components/_filter.html.erb
|
227
226
|
- app/views/lookbook/components/_header.html.erb
|
@@ -243,6 +242,7 @@ files:
|
|
243
242
|
- app/views/lookbook/panels/_notes.html.erb
|
244
243
|
- app/views/lookbook/panels/_output.html.erb
|
245
244
|
- app/views/lookbook/panels/_params.html.erb
|
245
|
+
- app/views/lookbook/panels/_preview.html.erb
|
246
246
|
- app/views/lookbook/panels/_source.html.erb
|
247
247
|
- app/views/lookbook/show.html.erb
|
248
248
|
- config/routes.rb
|
@@ -282,9 +282,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
282
|
version: '0'
|
283
283
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
284
|
requirements:
|
285
|
-
- - "
|
285
|
+
- - ">="
|
286
286
|
- !ruby/object:Gem::Version
|
287
|
-
version:
|
287
|
+
version: '0'
|
288
288
|
requirements: []
|
289
289
|
rubygems_version: 3.2.22
|
290
290
|
signing_key:
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<button
|
2
|
-
class="text-gray-400 transition"
|
3
|
-
x-data="copy('<%= target %>')"
|
4
|
-
x-tooltip.theme.lookbook="done ? 'copied!' : 'copy to clipboard'"
|
5
|
-
@click="save"
|
6
|
-
:class="{'!text-green-600 hover:text-green-600': done, 'hover:text-indigo-500': !done}"
|
7
|
-
data-tippy-placement="left"
|
8
|
-
<% if defined?(show) %>
|
9
|
-
x-show="<%= show %>"
|
10
|
-
x-cloak
|
11
|
-
<% end %>
|
12
|
-
>
|
13
|
-
<%= icon "${done ? 'check' : 'clipboard'}", size: 4 %>
|
14
|
-
</button>
|