svelte-on-rails 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97f95713831cb35b5ba7ff76b63f320be3a5f7ef682844c65523728f78455c90
4
- data.tar.gz: 9501a5d850b4d5451dbc98055fbf4c21fd2b617dfdc2cc971c26cf02cbe6738e
3
+ metadata.gz: 8263684fe285763605b75de1b9b4d4e72f6c3292742fb9eebb551a708b13f323
4
+ data.tar.gz: 6f10c28aca7e69a0b3a6cf73f0900aedd667388420bda2bc80d80d531c84c2f8
5
5
  SHA512:
6
- metadata.gz: bc4a71238b2d358d38f616081ed56d1143f8745729d7fc80dfc4b1ceba85f70b0be542c760fdbc16095833eb88dfc7485ce22c73a76f940254de97e3c3af463c
7
- data.tar.gz: 16870d9e12978fc0e111b2fa380b09bb65b7d824f34b1a7e715d60b4e32414a7f07de824b92c6d0d5be3ef1888f492235d1a3dc231ba46dfae265bf1242ab741
6
+ metadata.gz: 518c1924296b238f4ac82606b5b9ab4d8afe83c15e78b37269ed02d0e3e029b97daf088a3b7b0ba40232792295bef45f77e5db001b5074eab0adf3db97a30800
7
+ data.tar.gz: 0f7c0baf8700d6ca0c812f9537d2aa97421d04626e27e9288ba3d96425f9546e1e53bbd575b6efa77b12c27878d67d76350d0d00fd658d2b849a56643e75a1a6
@@ -8,9 +8,13 @@
8
8
  </script>
9
9
 
10
10
  <span class="svelte-component-wrapper">
11
- <h1>Greetings from svelte!</h1>
11
+ <h1>Svelte is here!</h1>
12
+
13
+ <hr/>
14
+ <p>click the button and check if the component is alive</p>
12
15
  <button on:click={increment}>Increment: {count}</button>
13
16
 
17
+ <hr/>
14
18
  <ul>
15
19
  {#each items as item}
16
20
  <li>{item}</li>
@@ -26,14 +30,15 @@
26
30
  border: none;
27
31
  cursor: pointer;
28
32
  }
33
+
29
34
  .svelte-component-wrapper {
30
35
  border: 1px solid black;
31
36
  padding: 10px;
32
37
  margin: 10px;
33
38
  background-color: #efefef;
34
39
  display: inline-block;
35
- box-shadow: 2px 3px 16px -1px rgba(0,0,0,0.75);
36
- -webkit-box-shadow: 2px 3px 16px -1px rgba(0,0,0,0.75);
37
- -moz-box-shadow: 2px 3px 16px -1px rgba(0,0,0,0.75);
40
+ box-shadow: 2px 3px 16px -1px rgba(0, 0, 0, 0.75);
41
+ -webkit-box-shadow: 2px 3px 16px -1px rgba(0, 0, 0, 0.75);
42
+ -moz-box-shadow: 2px 3px 16px -1px rgba(0, 0, 0, 0.75);
38
43
  }
39
44
  </style>
@@ -1,3 +1,3 @@
1
1
  %p Example view
2
2
 
3
- = svelte_component "SvelteOnRailsHelloWorld", items: ['item-1', 'item-2', 'item-3']
3
+ = svelte_component "SvelteOnRailsHelloWorld", items: ['attributes', 'are', 'parsed']
@@ -17,7 +17,6 @@ namespace :svelte_on_rails do
17
17
  puts '-' * 80
18
18
  puts 'STARTING SVELTE-ON-RAILS INSTALLATION'
19
19
 
20
-
21
20
  # vite
22
21
 
23
22
  vite_i = SvelteOnRails::Installer::Vite
@@ -45,7 +44,7 @@ namespace :svelte_on_rails do
45
44
  tr_pkg = '@hotwired/turbo-rails'
46
45
 
47
46
  npm_i.install_or_update_package(tr_pkg)
48
-
47
+
49
48
  js_i = SvelteOnRails::Installer::Javascript
50
49
  js_i.append_import_statement(application_js_path, tr_pkg, "import '#{tr_pkg}';")
51
50
 
@@ -91,8 +90,8 @@ namespace :svelte_on_rails do
91
90
  desc "Removes the Hello World component"
92
91
  task :remove_hello_world do
93
92
 
94
- hw_i = SvelteOnRails::Installer::HelloWorld
95
- hw_i.remove_hello_world
93
+ hw_i = SvelteOnRails::Installer::HelloWorld
94
+ hw_i.remove_hello_world
96
95
 
97
96
  end
98
97
 
@@ -100,11 +99,9 @@ namespace :svelte_on_rails do
100
99
  task :add_hello_world do
101
100
 
102
101
  puts '-' * 80
103
- if utils.ask_yn('Do you want to install the Hello World component?')
104
- hw_i = SvelteOnRails::Installer::HelloWorld
105
- hello_world_path = hw_i.install_hello_world
106
- puts "You can now see the Hello World component on: #{hello_world_path}."
107
- end
102
+ hw_i = SvelteOnRails::Installer::HelloWorld
103
+ hello_world_path = hw_i.install_hello_world
104
+ puts "You can now see the Hello World component on: #{hello_world_path}."
108
105
 
109
106
  end
110
107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svelte-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair