inertia_rails-contrib 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -1
  3. data/README.md +16 -7
  4. data/lib/generators/inertia/install/frameworks.yml +66 -9
  5. data/lib/generators/inertia/install/install_generator.rb +61 -9
  6. data/lib/generators/inertia/install/templates/react/InertiaExample.tsx +60 -0
  7. data/lib/generators/inertia/install/templates/react/inertia.ts +36 -0
  8. data/lib/generators/inertia/install/templates/react/tsconfig.app.json +27 -0
  9. data/lib/generators/inertia/install/templates/react/tsconfig.json +11 -0
  10. data/lib/generators/inertia/install/templates/react/tsconfig.node.json +13 -0
  11. data/lib/generators/inertia/install/templates/react/vite-env.d.ts +1 -0
  12. data/lib/generators/inertia/install/templates/svelte/InertiaExample.svelte +3 -7
  13. data/lib/generators/inertia/install/templates/svelte/InertiaExample.ts.svelte +112 -0
  14. data/lib/generators/inertia/install/templates/svelte/inertia.js +4 -4
  15. data/lib/generators/inertia/install/templates/svelte/inertia.ts +30 -0
  16. data/lib/generators/inertia/install/templates/svelte/tsconfig.json +21 -0
  17. data/lib/generators/inertia/install/templates/svelte/tsconfig.node.json +12 -0
  18. data/lib/generators/inertia/install/templates/svelte/vite-env.d.ts +2 -0
  19. data/lib/generators/inertia/install/templates/svelte4/InertiaExample.svelte +116 -0
  20. data/lib/generators/inertia/install/templates/svelte4/InertiaExample.ts.svelte +116 -0
  21. data/lib/generators/inertia/install/templates/svelte4/inertia.js +29 -0
  22. data/lib/generators/inertia/install/templates/svelte4/inertia.ts +29 -0
  23. data/lib/generators/inertia/install/templates/svelte4/svelte.config.js +7 -0
  24. data/lib/generators/inertia/install/templates/svelte4/tsconfig.json +21 -0
  25. data/lib/generators/inertia/install/templates/svelte4/tsconfig.node.json +12 -0
  26. data/lib/generators/inertia/install/templates/svelte4/vite-env.d.ts +2 -0
  27. data/lib/generators/inertia/install/templates/vue/InertiaExample.ts.vue +117 -0
  28. data/lib/generators/inertia/install/templates/vue/inertia.js +1 -1
  29. data/lib/generators/inertia/install/templates/vue/inertia.ts +33 -0
  30. data/lib/generators/inertia/install/templates/vue/tsconfig.app.json +24 -0
  31. data/lib/generators/inertia/install/templates/vue/tsconfig.json +11 -0
  32. data/lib/generators/inertia/install/templates/vue/tsconfig.node.json +22 -0
  33. data/lib/generators/inertia/install/templates/vue/vite-env.d.ts +1 -0
  34. data/lib/generators/inertia_templates/controller/templates/svelte4/view.svelte.tt +2 -0
  35. data/lib/generators/inertia_templates/scaffold/templates/react/Form.jsx.tt +2 -2
  36. data/lib/generators/inertia_templates/scaffold/templates/svelte/Edit.svelte.tt +3 -4
  37. data/lib/generators/inertia_templates/scaffold/templates/svelte/Form.svelte.tt +12 -10
  38. data/lib/generators/inertia_templates/scaffold/templates/svelte/Index.svelte.tt +1 -8
  39. data/lib/generators/inertia_templates/scaffold/templates/svelte/New.svelte.tt +3 -4
  40. data/lib/generators/inertia_templates/scaffold/templates/svelte/One.svelte.tt +1 -1
  41. data/lib/generators/inertia_templates/scaffold/templates/svelte/Show.svelte.tt +4 -9
  42. data/lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.svelte.tt +37 -0
  43. data/lib/generators/inertia_templates/scaffold/templates/svelte4/Form.svelte.tt +96 -0
  44. data/lib/generators/inertia_templates/scaffold/templates/svelte4/Index.svelte.tt +36 -0
  45. data/lib/generators/inertia_templates/scaffold/templates/svelte4/New.svelte.tt +30 -0
  46. data/lib/generators/inertia_templates/scaffold/templates/svelte4/One.svelte.tt +28 -0
  47. data/lib/generators/inertia_templates/scaffold/templates/svelte4/Show.svelte.tt +46 -0
  48. data/lib/generators/inertia_templates/scaffold/templates/vue/Form.vue.tt +1 -1
  49. data/lib/generators/inertia_tw_templates/controller/templates/svelte4/view.svelte.tt +2 -0
  50. data/lib/generators/inertia_tw_templates/scaffold/templates/react/Form.jsx.tt +2 -2
  51. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Edit.svelte.tt +3 -4
  52. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Form.svelte.tt +12 -13
  53. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Index.svelte.tt +1 -8
  54. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.svelte.tt +3 -4
  55. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.svelte.tt +1 -1
  56. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.svelte.tt +7 -8
  57. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.svelte.tt +45 -0
  58. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.svelte.tt +120 -0
  59. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.svelte.tt +43 -0
  60. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.svelte.tt +33 -0
  61. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.svelte.tt +28 -0
  62. data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.svelte.tt +58 -0
  63. data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.vue.tt +2 -2
  64. data/lib/inertia_rails_contrib/generators_helper.rb +5 -4
  65. data/lib/inertia_rails_contrib/version.rb +1 -1
  66. metadata +42 -3
@@ -0,0 +1,45 @@
1
+ <script>
2
+ import { Link } from '@inertiajs/svelte'
3
+ import Form from './Form.svelte'
4
+
5
+ export let <%= singular_table_name %>
6
+
7
+ const handleSubmit = (e) => {
8
+ const { form } = e.detail
9
+ form.transform((data) => ({ <%= singular_table_name %>: data }))
10
+ <% if attributes.any?(&:attachments?) -%>
11
+ form.post(`<%= js_resource_path %>`, {
12
+ headers: { 'X-HTTP-METHOD-OVERRIDE': 'put' },
13
+ })
14
+ <% else -%>
15
+ form.patch(`<%= js_resource_path %>`)
16
+ <% end -%>
17
+ }
18
+ </script>
19
+
20
+ <svelte:head>
21
+ <title>Editing <%= human_name.downcase %></title>
22
+ </svelte:head>
23
+
24
+ <div class="mx-auto md:w-2/3 w-full px-8 pt-8">
25
+ <h1 class="font-bold text-4xl">Editing <%= human_name.downcase %></h1>
26
+
27
+ <Form
28
+ {<%= singular_table_name %>}
29
+ submitText="Update <%= human_name.downcase %>"
30
+ on:submit={handleSubmit}
31
+ />
32
+
33
+ <Link
34
+ href={`<%= js_resource_path %>`}
35
+ class="mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
36
+ >
37
+ Show this <%= human_name.downcase %>
38
+ </Link>
39
+ <Link
40
+ href="<%= js_resources_path %>"
41
+ class="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
42
+ >
43
+ Back to <%= human_name.pluralize.downcase %>
44
+ </Link>
45
+ </div>
@@ -0,0 +1,120 @@
1
+ <script>
2
+ import { useForm } from '@inertiajs/svelte'
3
+ import { createEventDispatcher } from 'svelte'
4
+
5
+ const dispatch = createEventDispatcher()
6
+
7
+ export let <%= singular_table_name %>
8
+ export let submitText
9
+
10
+ const form = useForm({
11
+ <% attributes.each do |attribute| -%>
12
+ <% if attribute.password_digest? -%>
13
+ password: '',
14
+ password_confirmation: '',
15
+ <% else -%>
16
+ <%= attribute.column_name %>: <%= singular_table_name %>.<%= attribute.column_name %> || <%= default_value(attribute) %>,
17
+ <% end -%>
18
+ <% end -%>
19
+ })
20
+ </script>
21
+
22
+ <form
23
+ class="contents"
24
+ on:submit|preventDefault={dispatch('submit', { form: $form })}
25
+ >
26
+ <% attributes.each do |attribute| -%>
27
+ <div class="my-5">
28
+ <% if attribute.password_digest? -%>
29
+ <label for="password">Password</label>
30
+ <input
31
+ type="password"
32
+ name="password"
33
+ id="password"
34
+ bind:value={$form.password}
35
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
36
+ />
37
+ {#if $form.errors.password}
38
+ <div class="text-red-500 px-3 py-2 font-medium">
39
+ {$form.errors.password.join(', ')}
40
+ </div>
41
+ {/if}
42
+ </div>
43
+
44
+ <div class="my-5">
45
+ <label for="password_confirmation">Password Confirmation</label>
46
+ <input
47
+ type="password"
48
+ name="password_confirmation"
49
+ id="password_confirmation"
50
+ bind:value={$form.password_confirmation}
51
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
52
+ />
53
+ {#if $form.errors.password_confirmation}
54
+ <div class="text-red-500 px-3 py-2 font-medium">
55
+ {$form.errors.password_confirmation.join(', ')}
56
+ </div>
57
+ {/if}
58
+ <% else -%>
59
+ <label for="<%= attribute.singular_name %>"><%= attribute.human_name %></label>
60
+ <% if input_type(attribute) == "text_area" -%>
61
+ <textarea
62
+ name="<%= attribute.singular_name %>"
63
+ id="<%= attribute.singular_name %>"
64
+ bind:value={$form.<%= attribute.column_name %>}
65
+ rows="4"
66
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
67
+ />
68
+ <% elsif attribute.attachment? -%>
69
+ <input
70
+ type="file"
71
+ name="<%= attribute.singular_name %>"
72
+ id="<%= attribute.singular_name %>"
73
+ on:input={(e) => ($form.<%= attribute.column_name %> = e.target.files[0])}
74
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
75
+ />
76
+ <% elsif attribute.attachments? -%>
77
+ <input
78
+ type="file"
79
+ multiple
80
+ name="<%= attribute.singular_name %>[]"
81
+ id="<%= attribute.singular_name %>"
82
+ on:input={(e) => ($form.<%= attribute.column_name %> = Array.from(e.target.files))}
83
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
84
+ />
85
+ <% elsif input_type(attribute) == "checkbox" -%>
86
+ <input
87
+ type="<%= input_type(attribute) %>"
88
+ name="<%= attribute.singular_name %>"
89
+ id="<%= attribute.singular_name %>"
90
+ bind:checked={$form.<%= attribute.column_name %>}
91
+ class="block mt-2 h-5 w-5"
92
+ />
93
+ <% else -%>
94
+ <input
95
+ type="<%= input_type(attribute) %>"
96
+ name="<%= attribute.singular_name %>"
97
+ id="<%= attribute.singular_name %>"
98
+ bind:value={$form.<%= attribute.column_name %>}
99
+ class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
100
+ />
101
+ <% end -%>
102
+ {#if $form.errors.<%= attribute.column_name %>}
103
+ <div class="text-red-500 px-3 py-2 font-medium">
104
+ {$form.errors.<%= attribute.column_name %>.join(', ')}
105
+ </div>
106
+ {/if}
107
+ <% end -%>
108
+ </div>
109
+
110
+ <% end -%>
111
+ <div class="inline">
112
+ <button
113
+ type="submit"
114
+ disabled={$form.processing}
115
+ class="rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer"
116
+ >
117
+ {submitText}
118
+ </button>
119
+ </div>
120
+ </form>
@@ -0,0 +1,43 @@
1
+ <script>
2
+ import { Link } from '@inertiajs/svelte'
3
+ import <%= inertia_component_name %> from './<%= inertia_component_name %>.svelte'
4
+
5
+ export let <%= plural_table_name %>
6
+ export let flash
7
+ </script>
8
+
9
+ <svelte:head>
10
+ <title><%= human_name.pluralize %></title>
11
+ </svelte:head>
12
+
13
+ <div class="mx-auto md:w-2/3 w-full px-8 pt-8">
14
+ {#if flash.notice}
15
+ <p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block">
16
+ {flash.notice}
17
+ </p>
18
+ {/if}
19
+
20
+ <div class="flex justify-between items-center">
21
+ <h1 class="font-bold text-4xl"><%= human_name.pluralize %></h1>
22
+ <Link
23
+ href="<%= js_new_resource_path %>"
24
+ class="rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium"
25
+ >
26
+ New <%= human_name.downcase %>
27
+ </Link>
28
+ </div>
29
+
30
+ <div class="min-w-full">
31
+ {#each <%= plural_table_name %> as <%= singular_table_name %> (<%= singular_table_name %>.id)}
32
+ <<%= inertia_component_name %> {<%= singular_table_name %>} />
33
+ <p>
34
+ <Link
35
+ href={`<%= js_resource_path %>`}
36
+ class="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
37
+ >
38
+ Show this <%= human_name.downcase %>
39
+ </Link>
40
+ </p>
41
+ {/each}
42
+ </div>
43
+ </div>
@@ -0,0 +1,33 @@
1
+ <script>
2
+ import { Link } from '@inertiajs/svelte'
3
+ import Form from './Form.svelte'
4
+
5
+ export let <%= singular_table_name %>
6
+
7
+ const handleSubmit = (e) => {
8
+ const { form } = e.detail
9
+ form.transform((data) => ({ <%= singular_table_name %>: data }))
10
+ form.post('<%= js_resources_path %>')
11
+ }
12
+ </script>
13
+
14
+ <svelte:head>
15
+ <title>New <%= human_name.downcase %></title>
16
+ </svelte:head>
17
+
18
+ <div class="mx-auto md:w-2/3 w-full px-8 pt-8">
19
+ <h1 class="font-bold text-4xl">New <%= human_name.downcase %></h1>
20
+
21
+ <Form
22
+ {<%= singular_table_name %>}
23
+ submitText="Create <%= human_name.downcase %>"
24
+ on:submit={handleSubmit}
25
+ />
26
+
27
+ <Link
28
+ href="<%= js_resources_path %>"
29
+ class="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
30
+ >
31
+ Back to <%= human_name.pluralize.downcase %>
32
+ </Link>
33
+ </div>
@@ -0,0 +1,28 @@
1
+ <script>
2
+ export let <%= singular_table_name %>
3
+ </script>
4
+
5
+ <div>
6
+ <% attributes.reject(&:password_digest?).each do |attribute| -%>
7
+ <p class="my-5">
8
+ <strong class="block font-medium mb-1"><%= attribute.human_name %>:</strong>
9
+ <% if attribute.attachment? -%>
10
+ {#if <%= singular_table_name %>.<%= attribute.column_name %>}
11
+ <a href={<%= singular_table_name %>.<%= attribute.column_name %>.url}>
12
+ {<%= singular_table_name %>.<%= attribute.column_name %>.filename}
13
+ </a>
14
+ {/if}
15
+ </p>
16
+ <% elsif attribute.attachments? -%>
17
+ </p>
18
+ {#each <%= singular_table_name %>.<%= attribute.column_name %> as { url, filename }}
19
+ <div>
20
+ <a href={url}>{filename}</a>
21
+ </div>
22
+ {/each}
23
+ <% else -%>
24
+ {<%= singular_table_name %>.<%= attribute.column_name %>}
25
+ </p>
26
+ <% end -%>
27
+ <% end -%>
28
+ </div>
@@ -0,0 +1,58 @@
1
+ <script>
2
+ import { inertia, Link } from '@inertiajs/svelte'
3
+ import <%= inertia_component_name %> from './<%= inertia_component_name %>.svelte'
4
+
5
+ export let <%= singular_table_name %>
6
+ export let flash
7
+
8
+ const onDestroy = (e) => {
9
+ if (!confirm('Are you sure you want to delete this <%= human_name.downcase %>?')) {
10
+ e.preventDefault()
11
+ }
12
+ }
13
+ </script>
14
+
15
+ <svelte:head>
16
+ <title><%= human_name %> #{<%= singular_table_name %>.id}</title>
17
+ </svelte:head>
18
+
19
+ <div class="mx-auto md:w-2/3 w-full px-8 pt-8">
20
+ <div class="mx-auto">
21
+ {#if flash.notice}
22
+ <p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block">
23
+ {flash.notice}
24
+ </p>
25
+ {/if}
26
+
27
+ <h1 class="font-bold text-4xl"><%= human_name %> #{<%= singular_table_name %>.id}</h1>
28
+
29
+ <<%= inertia_component_name %> {<%= singular_table_name %>} />
30
+
31
+ <Link
32
+ href={`<%= js_edit_resource_path %>`}
33
+ class="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
34
+ >
35
+ Edit this <%= human_name.downcase %>
36
+ </Link>
37
+ <Link
38
+ href="<%= js_resources_path %>"
39
+ class="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium"
40
+ >
41
+ Back to <%= human_name.pluralize.downcase %>
42
+ </Link>
43
+ <div class="inline-block ml-2">
44
+ <button
45
+ use:inertia={{ href: `<%= js_resource_path %>`, method: 'delete' }}
46
+ on:click={onDestroy}
47
+ type="button"
48
+ class="mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium"
49
+ >
50
+ Destroy this <%= human_name.downcase %>
51
+ </button>
52
+ </div>
53
+ </div>
54
+ </div>
55
+
56
+
57
+
58
+
@@ -57,13 +57,13 @@
57
57
  <% elsif attribute.attachments? -%>
58
58
  <input
59
59
  type="file"
60
- multiple="multiple"
60
+ multiple
61
61
  name="<%= attribute.singular_name %>[]"
62
62
  id="<%= attribute.singular_name %>"
63
63
  @input="form.<%= attribute.column_name %> = Array.from($event.target.files)"
64
64
  class="block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full"
65
65
  />
66
- <% elsif attribute.field_type == :check_box -%>
66
+ <% elsif input_type(attribute) == "checkbox" -%>
67
67
  <input
68
68
  type="<%= input_type(attribute) %>"
69
69
  name="<%= attribute.singular_name %>"
@@ -1,20 +1,21 @@
1
1
  module InertiaRailsContrib
2
2
  module GeneratorsHelper
3
3
  def self.guess_the_default_framework
4
- case Rails.root.join("package.json").read
4
+ package = Rails.root.join("package.json").read
5
+ case package
5
6
  when /@inertiajs\/react/
6
7
  "react"
7
8
  when /@inertiajs\/svelte/
8
- "svelte"
9
+ package.match?(/"svelte": "\^5/) ? "svelte" : "svelte4"
9
10
  when /@inertiajs\/vue3/
10
11
  "vue"
11
12
  else
12
- say_error "Could not determine the Inertia.js framework you are using."
13
+ Thor::Shell::Basic.new.say_error "Could not determine the Inertia.js framework you are using."
13
14
  end
14
15
  end
15
16
 
16
17
  def self.guess_inertia_template
17
- if Rails.root.join("tailwind.config.js").exist?
18
+ if Rails.root.join("tailwind.config.js").exist? || Rails.root.join("tailwind.config.ts").exist?
18
19
  "inertia_tw_templates"
19
20
  else
20
21
  "inertia_templates"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InertiaRailsContrib
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_rails-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-11 00:00:00.000000000 Z
11
+ date: 2024-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -63,21 +63,47 @@ files:
63
63
  - lib/generators/inertia/install/templates/initializer.rb
64
64
  - lib/generators/inertia/install/templates/react/InertiaExample.jsx
65
65
  - lib/generators/inertia/install/templates/react/InertiaExample.module.css
66
+ - lib/generators/inertia/install/templates/react/InertiaExample.tsx
66
67
  - lib/generators/inertia/install/templates/react/inertia.js
68
+ - lib/generators/inertia/install/templates/react/inertia.ts
69
+ - lib/generators/inertia/install/templates/react/tsconfig.app.json
70
+ - lib/generators/inertia/install/templates/react/tsconfig.json
71
+ - lib/generators/inertia/install/templates/react/tsconfig.node.json
72
+ - lib/generators/inertia/install/templates/react/vite-env.d.ts
67
73
  - lib/generators/inertia/install/templates/svelte/InertiaExample.svelte
74
+ - lib/generators/inertia/install/templates/svelte/InertiaExample.ts.svelte
68
75
  - lib/generators/inertia/install/templates/svelte/inertia.js
76
+ - lib/generators/inertia/install/templates/svelte/inertia.ts
69
77
  - lib/generators/inertia/install/templates/svelte/svelte.config.js
78
+ - lib/generators/inertia/install/templates/svelte/tsconfig.json
79
+ - lib/generators/inertia/install/templates/svelte/tsconfig.node.json
80
+ - lib/generators/inertia/install/templates/svelte/vite-env.d.ts
81
+ - lib/generators/inertia/install/templates/svelte4/InertiaExample.svelte
82
+ - lib/generators/inertia/install/templates/svelte4/InertiaExample.ts.svelte
83
+ - lib/generators/inertia/install/templates/svelte4/inertia.js
84
+ - lib/generators/inertia/install/templates/svelte4/inertia.ts
85
+ - lib/generators/inertia/install/templates/svelte4/svelte.config.js
86
+ - lib/generators/inertia/install/templates/svelte4/tsconfig.json
87
+ - lib/generators/inertia/install/templates/svelte4/tsconfig.node.json
88
+ - lib/generators/inertia/install/templates/svelte4/vite-env.d.ts
70
89
  - lib/generators/inertia/install/templates/tailwind/application.css
71
90
  - lib/generators/inertia/install/templates/tailwind/postcss.config.js
72
91
  - lib/generators/inertia/install/templates/tailwind/tailwind.config.js.tt
92
+ - lib/generators/inertia/install/templates/vue/InertiaExample.ts.vue
73
93
  - lib/generators/inertia/install/templates/vue/InertiaExample.vue
74
94
  - lib/generators/inertia/install/templates/vue/inertia.js
95
+ - lib/generators/inertia/install/templates/vue/inertia.ts
96
+ - lib/generators/inertia/install/templates/vue/tsconfig.app.json
97
+ - lib/generators/inertia/install/templates/vue/tsconfig.json
98
+ - lib/generators/inertia/install/templates/vue/tsconfig.node.json
99
+ - lib/generators/inertia/install/templates/vue/vite-env.d.ts
75
100
  - lib/generators/inertia/scaffold/scaffold_generator.rb
76
101
  - lib/generators/inertia/scaffold_controller/scaffold_controller_generator.rb
77
102
  - lib/generators/inertia/scaffold_controller/templates/controller.rb.tt
78
103
  - lib/generators/inertia_templates/controller/controller_generator.rb
79
104
  - lib/generators/inertia_templates/controller/templates/react/view.jsx.tt
80
105
  - lib/generators/inertia_templates/controller/templates/svelte/view.svelte.tt
106
+ - lib/generators/inertia_templates/controller/templates/svelte4/view.svelte.tt
81
107
  - lib/generators/inertia_templates/controller/templates/vue/view.vue.tt
82
108
  - lib/generators/inertia_templates/scaffold/scaffold_generator.rb
83
109
  - lib/generators/inertia_templates/scaffold/templates/react/Edit.jsx.tt
@@ -92,6 +118,12 @@ files:
92
118
  - lib/generators/inertia_templates/scaffold/templates/svelte/New.svelte.tt
93
119
  - lib/generators/inertia_templates/scaffold/templates/svelte/One.svelte.tt
94
120
  - lib/generators/inertia_templates/scaffold/templates/svelte/Show.svelte.tt
121
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.svelte.tt
122
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/Form.svelte.tt
123
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/Index.svelte.tt
124
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/New.svelte.tt
125
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/One.svelte.tt
126
+ - lib/generators/inertia_templates/scaffold/templates/svelte4/Show.svelte.tt
95
127
  - lib/generators/inertia_templates/scaffold/templates/vue/Edit.vue.tt
96
128
  - lib/generators/inertia_templates/scaffold/templates/vue/Form.vue.tt
97
129
  - lib/generators/inertia_templates/scaffold/templates/vue/Index.vue.tt
@@ -101,6 +133,7 @@ files:
101
133
  - lib/generators/inertia_tw_templates/controller/controller_generator.rb
102
134
  - lib/generators/inertia_tw_templates/controller/templates/react/view.jsx.tt
103
135
  - lib/generators/inertia_tw_templates/controller/templates/svelte/view.svelte.tt
136
+ - lib/generators/inertia_tw_templates/controller/templates/svelte4/view.svelte.tt
104
137
  - lib/generators/inertia_tw_templates/controller/templates/vue/view.vue.tt
105
138
  - lib/generators/inertia_tw_templates/scaffold/scaffold_generator.rb
106
139
  - lib/generators/inertia_tw_templates/scaffold/templates/react/Edit.jsx.tt
@@ -115,6 +148,12 @@ files:
115
148
  - lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.svelte.tt
116
149
  - lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.svelte.tt
117
150
  - lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.svelte.tt
151
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.svelte.tt
152
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.svelte.tt
153
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.svelte.tt
154
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.svelte.tt
155
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.svelte.tt
156
+ - lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.svelte.tt
118
157
  - lib/generators/inertia_tw_templates/scaffold/templates/vue/Edit.vue.tt
119
158
  - lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.vue.tt
120
159
  - lib/generators/inertia_tw_templates/scaffold/templates/vue/Index.vue.tt
@@ -152,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
191
  - !ruby/object:Gem::Version
153
192
  version: '0'
154
193
  requirements: []
155
- rubygems_version: 3.5.7
194
+ rubygems_version: 3.5.17
156
195
  signing_key:
157
196
  specification_version: 4
158
197
  summary: A collection of extensions and developer tools for Rails Inertia adapter