inertia_rails 3.3.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +6 -7
- data/lib/generators/inertia/controller/controller_generator.rb +18 -0
- data/lib/generators/inertia/controller/templates/controller.rb.tt +10 -0
- data/lib/generators/inertia/install/frameworks.yml +98 -0
- data/lib/generators/inertia/install/helpers.rb +51 -0
- data/lib/generators/inertia/install/install_generator.rb +291 -0
- data/lib/generators/inertia/install/js_package_manager.rb +50 -0
- data/lib/generators/inertia/install/templates/assets/inertia.svg +1 -0
- data/lib/generators/inertia/install/templates/assets/react.svg +1 -0
- data/lib/generators/inertia/install/templates/assets/svelte.svg +1 -0
- data/lib/generators/inertia/install/templates/assets/vite_ruby.svg +1 -0
- data/lib/generators/inertia/install/templates/assets/vue.svg +1 -0
- data/lib/generators/{inertia_rails/install → inertia/install/templates}/controller.rb +3 -1
- data/lib/generators/inertia/install/templates/dev +23 -0
- data/lib/generators/inertia/install/templates/initializer.rb +6 -0
- data/lib/generators/inertia/install/templates/react/InertiaExample.jsx +60 -0
- data/lib/generators/inertia/install/templates/react/InertiaExample.module.css +80 -0
- data/lib/generators/inertia/install/templates/react/InertiaExample.tsx +60 -0
- data/lib/generators/inertia/install/templates/react/inertia.js +45 -0
- data/lib/generators/inertia/install/templates/react/inertia.ts +51 -0
- data/lib/generators/inertia/install/templates/react/tsconfig.app.json +27 -0
- data/lib/generators/inertia/install/templates/react/tsconfig.json +11 -0
- data/lib/generators/inertia/install/templates/react/tsconfig.node.json +13 -0
- data/lib/generators/inertia/install/templates/react/vite-env.d.ts +1 -0
- data/lib/generators/inertia/install/templates/svelte/InertiaExample.svelte +112 -0
- data/lib/generators/inertia/install/templates/svelte/InertiaExample.ts.svelte +112 -0
- data/lib/generators/inertia/install/templates/svelte/inertia.js +44 -0
- data/lib/generators/inertia/install/templates/svelte/inertia.ts.tt +45 -0
- data/lib/generators/inertia/install/templates/svelte/svelte.config.js +7 -0
- data/lib/generators/inertia/install/templates/svelte/tsconfig.json +21 -0
- data/lib/generators/inertia/install/templates/svelte/tsconfig.node.json +12 -0
- data/lib/generators/inertia/install/templates/svelte/vite-env.d.ts +2 -0
- data/lib/generators/inertia/install/templates/svelte4/InertiaExample.svelte +116 -0
- data/lib/generators/inertia/install/templates/svelte4/InertiaExample.ts.svelte +116 -0
- data/lib/generators/inertia/install/templates/svelte4/inertia.js +43 -0
- data/lib/generators/inertia/install/templates/svelte4/inertia.ts.tt +44 -0
- data/lib/generators/inertia/install/templates/svelte4/svelte.config.js +7 -0
- data/lib/generators/inertia/install/templates/svelte4/tsconfig.json +21 -0
- data/lib/generators/inertia/install/templates/svelte4/tsconfig.node.json +12 -0
- data/lib/generators/inertia/install/templates/svelte4/vite-env.d.ts +2 -0
- data/lib/generators/inertia/install/templates/tailwind/application.css +13 -0
- data/lib/generators/inertia/install/templates/tailwind/postcss.config.js +6 -0
- data/lib/generators/inertia/install/templates/tailwind/tailwind.config.js.tt +18 -0
- data/lib/generators/inertia/install/templates/vue/InertiaExample.ts.vue +117 -0
- data/lib/generators/inertia/install/templates/vue/InertiaExample.vue +117 -0
- data/lib/generators/inertia/install/templates/vue/inertia.js +35 -0
- data/lib/generators/inertia/install/templates/vue/inertia.ts +35 -0
- data/lib/generators/inertia/install/templates/vue/tsconfig.app.json +24 -0
- data/lib/generators/inertia/install/templates/vue/tsconfig.json +11 -0
- data/lib/generators/inertia/install/templates/vue/tsconfig.node.json +22 -0
- data/lib/generators/inertia/install/templates/vue/vite-env.d.ts +1 -0
- data/lib/generators/inertia/scaffold/scaffold_generator.rb +16 -0
- data/lib/generators/inertia/scaffold_controller/scaffold_controller_generator.rb +60 -0
- data/lib/generators/inertia/scaffold_controller/templates/controller.rb.tt +100 -0
- data/lib/generators/inertia_templates/controller/controller_generator.rb +12 -0
- data/lib/generators/inertia_templates/controller/templates/react/view.jsx.tt +8 -0
- data/lib/generators/inertia_templates/controller/templates/react/view.tsx.tt +8 -0
- data/lib/generators/inertia_templates/controller/templates/svelte/view.svelte.tt +2 -0
- data/lib/generators/inertia_templates/controller/templates/svelte4/view.svelte.tt +2 -0
- data/lib/generators/inertia_templates/controller/templates/vue/view.vue.tt +4 -0
- data/lib/generators/inertia_templates/scaffold/scaffold_generator.rb +12 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Edit.jsx.tt +35 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Edit.tsx.tt +40 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Form.jsx.tt +111 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Form.tsx.tt +130 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Index.jsx.tt +26 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Index.tsx.tt +32 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/New.jsx.tt +27 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/New.tsx.tt +32 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/One.jsx.tt +26 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/One.tsx.tt +32 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Show.jsx.tt +32 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/Show.tsx.tt +38 -0
- data/lib/generators/inertia_templates/scaffold/templates/react/types.ts.tt +19 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Edit.svelte.tt +36 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Edit.ts.svelte.tt +37 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Form.svelte.tt +97 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Form.ts.svelte.tt +102 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Index.svelte.tt +35 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Index.ts.svelte.tt +39 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/New.svelte.tt +29 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/New.ts.svelte.tt +30 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/One.svelte.tt +28 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/One.ts.svelte.tt +30 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Show.svelte.tt +35 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/Show.ts.svelte.tt +39 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte/types.ts.tt +19 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.svelte.tt +37 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.ts.svelte.tt +38 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Form.svelte.tt +96 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Form.ts.svelte.tt +106 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Index.svelte.tt +36 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Index.ts.svelte.tt +37 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/New.svelte.tt +30 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/New.ts.svelte.tt +31 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/One.svelte.tt +28 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/One.ts.svelte.tt +30 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Show.svelte.tt +39 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/Show.ts.svelte.tt +40 -0
- data/lib/generators/inertia_templates/scaffold/templates/svelte4/types.ts.tt +19 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Edit.ts.vue.tt +37 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Edit.vue.tt +36 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Form.ts.vue.tt +101 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Form.vue.tt +94 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Index.ts.vue.tt +35 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Index.vue.tt +31 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/New.ts.vue.tt +30 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/New.vue.tt +29 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/One.ts.vue.tt +28 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/One.vue.tt +26 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Show.ts.vue.tt +41 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/Show.vue.tt +37 -0
- data/lib/generators/inertia_templates/scaffold/templates/vue/types.ts.tt +19 -0
- data/lib/generators/inertia_tw_templates/controller/controller_generator.rb +12 -0
- data/lib/generators/inertia_tw_templates/controller/templates/react/view.jsx.tt +8 -0
- data/lib/generators/inertia_tw_templates/controller/templates/react/view.tsx.tt +8 -0
- data/lib/generators/inertia_tw_templates/controller/templates/svelte/view.svelte.tt +2 -0
- data/lib/generators/inertia_tw_templates/controller/templates/svelte4/view.svelte.tt +2 -0
- data/lib/generators/inertia_tw_templates/controller/templates/vue/view.vue.tt +4 -0
- data/lib/generators/inertia_tw_templates/scaffold/scaffold_generator.rb +12 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Edit.jsx.tt +42 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Edit.tsx.tt +47 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Form.jsx.tt +122 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Form.tsx.tt +142 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Index.jsx.tt +43 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Index.tsx.tt +49 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/New.jsx.tt +30 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/New.tsx.tt +35 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/One.jsx.tt +26 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/One.tsx.tt +32 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Show.jsx.tt +47 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/Show.tsx.tt +53 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/react/types.ts.tt +19 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Edit.svelte.tt +44 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Edit.ts.svelte.tt +45 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Form.svelte.tt +118 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Form.ts.svelte.tt +123 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Index.svelte.tt +42 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Index.ts.svelte.tt +46 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.svelte.tt +32 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.ts.svelte.tt +33 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.svelte.tt +28 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.ts.svelte.tt +30 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.svelte.tt +50 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.ts.svelte.tt +54 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte/types.ts.tt +19 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.svelte.tt +45 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.ts.svelte.tt +46 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.svelte.tt +120 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.ts.svelte.tt +130 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.svelte.tt +43 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.ts.svelte.tt +44 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.svelte.tt +33 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.ts.svelte.tt +34 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.svelte.tt +28 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.ts.svelte.tt +30 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.svelte.tt +51 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.ts.svelte.tt +52 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/svelte4/types.ts.tt +19 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Edit.ts.vue.tt +45 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Edit.vue.tt +44 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.ts.vue.tt +134 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.vue.tt +127 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Index.ts.vue.tt +47 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Index.vue.tt +43 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/New.ts.vue.tt +33 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/New.vue.tt +32 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/One.ts.vue.tt +28 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/One.vue.tt +26 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Show.ts.vue.tt +53 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/Show.vue.tt +49 -0
- data/lib/generators/inertia_tw_templates/scaffold/templates/vue/types.ts.tt +19 -0
- data/lib/inertia_rails/action_filter.rb +27 -0
- data/lib/inertia_rails/always_prop.rb +6 -0
- data/lib/inertia_rails/base_prop.rb +14 -0
- data/lib/inertia_rails/configuration.rb +1 -1
- data/lib/inertia_rails/controller.rb +70 -15
- data/lib/inertia_rails/generators/controller_template_base.rb +63 -0
- data/lib/inertia_rails/generators/helper.rb +139 -0
- data/lib/inertia_rails/generators/scaffold_template_base.rb +45 -0
- data/lib/inertia_rails/inertia_rails.rb +18 -12
- data/lib/inertia_rails/lazy_prop.rb +20 -0
- data/lib/inertia_rails/renderer.rb +71 -17
- data/lib/inertia_rails/version.rb +1 -1
- data/lib/patches/better_errors.rb +10 -8
- data/lib/patches/debug_exceptions/patch-5-0.rb +7 -3
- data/lib/patches/debug_exceptions/patch-5-1.rb +7 -3
- data/lib/patches/mapper.rb +9 -5
- data/lib/patches/request.rb +10 -6
- metadata +192 -126
- data/.github/workflows/push.yml +0 -33
- data/.gitignore +0 -25
- data/.rspec +0 -3
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -7
- data/Rakefile +0 -6
- data/bin/console +0 -13
- data/bin/setup +0 -8
- data/inertia_rails.gemspec +0 -37
- data/lib/generators/inertia_rails/install/react/InertiaExample.jsx +0 -9
- data/lib/generators/inertia_rails/install/react/inertia.jsx +0 -17
- data/lib/generators/inertia_rails/install/svelte/InertiaExample.svelte +0 -11
- data/lib/generators/inertia_rails/install/svelte/inertia.js +0 -14
- data/lib/generators/inertia_rails/install/vue/InertiaExample.vue +0 -11
- data/lib/generators/inertia_rails/install/vue/inertia.js +0 -20
- data/lib/generators/inertia_rails/install_generator.rb +0 -84
- data/lib/inertia_rails/lazy.rb +0 -28
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inertia_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Knoles
|
8
8
|
- Brandon Shar
|
9
9
|
- Eugene Granovsky
|
10
10
|
autorequire:
|
11
|
-
bindir:
|
11
|
+
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -18,113 +18,16 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '6'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
29
|
-
-
|
30
|
-
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - "~>"
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '2.0'
|
36
|
-
type: :development
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - "~>"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2.0'
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rake
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '13.0'
|
50
|
-
type: :development
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - "~>"
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '13.0'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: rspec-rails
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - "~>"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '4.0'
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - "~>"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '4.0'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: rails-controller-testing
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '0'
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: sqlite3
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0'
|
92
|
-
type: :development
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '0'
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: responders
|
101
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '0'
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: debug
|
115
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
120
|
-
type: :development
|
121
|
-
prerelease: false
|
122
|
-
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
requirements:
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: '0'
|
127
|
-
description:
|
28
|
+
version: '6'
|
29
|
+
description: Quickly build modern single-page React, Vue and Svelte apps using classic
|
30
|
+
server-side routing and controllers.
|
128
31
|
email:
|
129
32
|
- brian@bellawatt.com
|
130
33
|
- brandon@bellawatt.com
|
@@ -133,35 +36,195 @@ executables: []
|
|
133
36
|
extensions: []
|
134
37
|
extra_rdoc_files: []
|
135
38
|
files:
|
136
|
-
- ".github/workflows/push.yml"
|
137
|
-
- ".gitignore"
|
138
|
-
- ".rspec"
|
139
39
|
- CHANGELOG.md
|
140
|
-
- CODE_OF_CONDUCT.md
|
141
|
-
- Gemfile
|
142
40
|
- LICENSE.txt
|
143
41
|
- README.md
|
144
|
-
- Rakefile
|
145
42
|
- app/controllers/inertia_rails/static_controller.rb
|
146
43
|
- app/views/inertia.html.erb
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
- lib/generators/
|
151
|
-
- lib/generators/
|
152
|
-
- lib/generators/
|
153
|
-
- lib/generators/
|
154
|
-
- lib/generators/
|
155
|
-
- lib/generators/
|
156
|
-
- lib/generators/
|
157
|
-
- lib/generators/
|
44
|
+
- lib/generators/inertia/controller/controller_generator.rb
|
45
|
+
- lib/generators/inertia/controller/templates/controller.rb.tt
|
46
|
+
- lib/generators/inertia/install/frameworks.yml
|
47
|
+
- lib/generators/inertia/install/helpers.rb
|
48
|
+
- lib/generators/inertia/install/install_generator.rb
|
49
|
+
- lib/generators/inertia/install/js_package_manager.rb
|
50
|
+
- lib/generators/inertia/install/templates/assets/inertia.svg
|
51
|
+
- lib/generators/inertia/install/templates/assets/react.svg
|
52
|
+
- lib/generators/inertia/install/templates/assets/svelte.svg
|
53
|
+
- lib/generators/inertia/install/templates/assets/vite_ruby.svg
|
54
|
+
- lib/generators/inertia/install/templates/assets/vue.svg
|
55
|
+
- lib/generators/inertia/install/templates/controller.rb
|
56
|
+
- lib/generators/inertia/install/templates/dev
|
57
|
+
- lib/generators/inertia/install/templates/initializer.rb
|
58
|
+
- lib/generators/inertia/install/templates/react/InertiaExample.jsx
|
59
|
+
- lib/generators/inertia/install/templates/react/InertiaExample.module.css
|
60
|
+
- lib/generators/inertia/install/templates/react/InertiaExample.tsx
|
61
|
+
- lib/generators/inertia/install/templates/react/inertia.js
|
62
|
+
- lib/generators/inertia/install/templates/react/inertia.ts
|
63
|
+
- lib/generators/inertia/install/templates/react/tsconfig.app.json
|
64
|
+
- lib/generators/inertia/install/templates/react/tsconfig.json
|
65
|
+
- lib/generators/inertia/install/templates/react/tsconfig.node.json
|
66
|
+
- lib/generators/inertia/install/templates/react/vite-env.d.ts
|
67
|
+
- lib/generators/inertia/install/templates/svelte/InertiaExample.svelte
|
68
|
+
- lib/generators/inertia/install/templates/svelte/InertiaExample.ts.svelte
|
69
|
+
- lib/generators/inertia/install/templates/svelte/inertia.js
|
70
|
+
- lib/generators/inertia/install/templates/svelte/inertia.ts.tt
|
71
|
+
- lib/generators/inertia/install/templates/svelte/svelte.config.js
|
72
|
+
- lib/generators/inertia/install/templates/svelte/tsconfig.json
|
73
|
+
- lib/generators/inertia/install/templates/svelte/tsconfig.node.json
|
74
|
+
- lib/generators/inertia/install/templates/svelte/vite-env.d.ts
|
75
|
+
- lib/generators/inertia/install/templates/svelte4/InertiaExample.svelte
|
76
|
+
- lib/generators/inertia/install/templates/svelte4/InertiaExample.ts.svelte
|
77
|
+
- lib/generators/inertia/install/templates/svelte4/inertia.js
|
78
|
+
- lib/generators/inertia/install/templates/svelte4/inertia.ts.tt
|
79
|
+
- lib/generators/inertia/install/templates/svelte4/svelte.config.js
|
80
|
+
- lib/generators/inertia/install/templates/svelte4/tsconfig.json
|
81
|
+
- lib/generators/inertia/install/templates/svelte4/tsconfig.node.json
|
82
|
+
- lib/generators/inertia/install/templates/svelte4/vite-env.d.ts
|
83
|
+
- lib/generators/inertia/install/templates/tailwind/application.css
|
84
|
+
- lib/generators/inertia/install/templates/tailwind/postcss.config.js
|
85
|
+
- lib/generators/inertia/install/templates/tailwind/tailwind.config.js.tt
|
86
|
+
- lib/generators/inertia/install/templates/vue/InertiaExample.ts.vue
|
87
|
+
- lib/generators/inertia/install/templates/vue/InertiaExample.vue
|
88
|
+
- lib/generators/inertia/install/templates/vue/inertia.js
|
89
|
+
- lib/generators/inertia/install/templates/vue/inertia.ts
|
90
|
+
- lib/generators/inertia/install/templates/vue/tsconfig.app.json
|
91
|
+
- lib/generators/inertia/install/templates/vue/tsconfig.json
|
92
|
+
- lib/generators/inertia/install/templates/vue/tsconfig.node.json
|
93
|
+
- lib/generators/inertia/install/templates/vue/vite-env.d.ts
|
94
|
+
- lib/generators/inertia/scaffold/scaffold_generator.rb
|
95
|
+
- lib/generators/inertia/scaffold_controller/scaffold_controller_generator.rb
|
96
|
+
- lib/generators/inertia/scaffold_controller/templates/controller.rb.tt
|
97
|
+
- lib/generators/inertia_templates/controller/controller_generator.rb
|
98
|
+
- lib/generators/inertia_templates/controller/templates/react/view.jsx.tt
|
99
|
+
- lib/generators/inertia_templates/controller/templates/react/view.tsx.tt
|
100
|
+
- lib/generators/inertia_templates/controller/templates/svelte/view.svelte.tt
|
101
|
+
- lib/generators/inertia_templates/controller/templates/svelte4/view.svelte.tt
|
102
|
+
- lib/generators/inertia_templates/controller/templates/vue/view.vue.tt
|
103
|
+
- lib/generators/inertia_templates/scaffold/scaffold_generator.rb
|
104
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Edit.jsx.tt
|
105
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Edit.tsx.tt
|
106
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Form.jsx.tt
|
107
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Form.tsx.tt
|
108
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Index.jsx.tt
|
109
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Index.tsx.tt
|
110
|
+
- lib/generators/inertia_templates/scaffold/templates/react/New.jsx.tt
|
111
|
+
- lib/generators/inertia_templates/scaffold/templates/react/New.tsx.tt
|
112
|
+
- lib/generators/inertia_templates/scaffold/templates/react/One.jsx.tt
|
113
|
+
- lib/generators/inertia_templates/scaffold/templates/react/One.tsx.tt
|
114
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Show.jsx.tt
|
115
|
+
- lib/generators/inertia_templates/scaffold/templates/react/Show.tsx.tt
|
116
|
+
- lib/generators/inertia_templates/scaffold/templates/react/types.ts.tt
|
117
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Edit.svelte.tt
|
118
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Edit.ts.svelte.tt
|
119
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Form.svelte.tt
|
120
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Form.ts.svelte.tt
|
121
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Index.svelte.tt
|
122
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Index.ts.svelte.tt
|
123
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/New.svelte.tt
|
124
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/New.ts.svelte.tt
|
125
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/One.svelte.tt
|
126
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/One.ts.svelte.tt
|
127
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Show.svelte.tt
|
128
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/Show.ts.svelte.tt
|
129
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte/types.ts.tt
|
130
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.svelte.tt
|
131
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Edit.ts.svelte.tt
|
132
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Form.svelte.tt
|
133
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Form.ts.svelte.tt
|
134
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Index.svelte.tt
|
135
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Index.ts.svelte.tt
|
136
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/New.svelte.tt
|
137
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/New.ts.svelte.tt
|
138
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/One.svelte.tt
|
139
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/One.ts.svelte.tt
|
140
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Show.svelte.tt
|
141
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/Show.ts.svelte.tt
|
142
|
+
- lib/generators/inertia_templates/scaffold/templates/svelte4/types.ts.tt
|
143
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Edit.ts.vue.tt
|
144
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Edit.vue.tt
|
145
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Form.ts.vue.tt
|
146
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Form.vue.tt
|
147
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Index.ts.vue.tt
|
148
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Index.vue.tt
|
149
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/New.ts.vue.tt
|
150
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/New.vue.tt
|
151
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/One.ts.vue.tt
|
152
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/One.vue.tt
|
153
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Show.ts.vue.tt
|
154
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/Show.vue.tt
|
155
|
+
- lib/generators/inertia_templates/scaffold/templates/vue/types.ts.tt
|
156
|
+
- lib/generators/inertia_tw_templates/controller/controller_generator.rb
|
157
|
+
- lib/generators/inertia_tw_templates/controller/templates/react/view.jsx.tt
|
158
|
+
- lib/generators/inertia_tw_templates/controller/templates/react/view.tsx.tt
|
159
|
+
- lib/generators/inertia_tw_templates/controller/templates/svelte/view.svelte.tt
|
160
|
+
- lib/generators/inertia_tw_templates/controller/templates/svelte4/view.svelte.tt
|
161
|
+
- lib/generators/inertia_tw_templates/controller/templates/vue/view.vue.tt
|
162
|
+
- lib/generators/inertia_tw_templates/scaffold/scaffold_generator.rb
|
163
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Edit.jsx.tt
|
164
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Edit.tsx.tt
|
165
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Form.jsx.tt
|
166
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Form.tsx.tt
|
167
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Index.jsx.tt
|
168
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Index.tsx.tt
|
169
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/New.jsx.tt
|
170
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/New.tsx.tt
|
171
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/One.jsx.tt
|
172
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/One.tsx.tt
|
173
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Show.jsx.tt
|
174
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/Show.tsx.tt
|
175
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/react/types.ts.tt
|
176
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Edit.svelte.tt
|
177
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Edit.ts.svelte.tt
|
178
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Form.svelte.tt
|
179
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Form.ts.svelte.tt
|
180
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Index.svelte.tt
|
181
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Index.ts.svelte.tt
|
182
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.svelte.tt
|
183
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/New.ts.svelte.tt
|
184
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.svelte.tt
|
185
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/One.ts.svelte.tt
|
186
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.svelte.tt
|
187
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/Show.ts.svelte.tt
|
188
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte/types.ts.tt
|
189
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.svelte.tt
|
190
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Edit.ts.svelte.tt
|
191
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.svelte.tt
|
192
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Form.ts.svelte.tt
|
193
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.svelte.tt
|
194
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Index.ts.svelte.tt
|
195
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.svelte.tt
|
196
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/New.ts.svelte.tt
|
197
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.svelte.tt
|
198
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/One.ts.svelte.tt
|
199
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.svelte.tt
|
200
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/Show.ts.svelte.tt
|
201
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/svelte4/types.ts.tt
|
202
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Edit.ts.vue.tt
|
203
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Edit.vue.tt
|
204
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.ts.vue.tt
|
205
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Form.vue.tt
|
206
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Index.ts.vue.tt
|
207
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Index.vue.tt
|
208
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/New.ts.vue.tt
|
209
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/New.vue.tt
|
210
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/One.ts.vue.tt
|
211
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/One.vue.tt
|
212
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Show.ts.vue.tt
|
213
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/Show.vue.tt
|
214
|
+
- lib/generators/inertia_tw_templates/scaffold/templates/vue/types.ts.tt
|
158
215
|
- lib/inertia_rails.rb
|
216
|
+
- lib/inertia_rails/action_filter.rb
|
217
|
+
- lib/inertia_rails/always_prop.rb
|
218
|
+
- lib/inertia_rails/base_prop.rb
|
159
219
|
- lib/inertia_rails/configuration.rb
|
160
220
|
- lib/inertia_rails/controller.rb
|
161
221
|
- lib/inertia_rails/engine.rb
|
222
|
+
- lib/inertia_rails/generators/controller_template_base.rb
|
223
|
+
- lib/inertia_rails/generators/helper.rb
|
224
|
+
- lib/inertia_rails/generators/scaffold_template_base.rb
|
162
225
|
- lib/inertia_rails/helper.rb
|
163
226
|
- lib/inertia_rails/inertia_rails.rb
|
164
|
-
- lib/inertia_rails/
|
227
|
+
- lib/inertia_rails/lazy_prop.rb
|
165
228
|
- lib/inertia_rails/middleware.rb
|
166
229
|
- lib/inertia_rails/renderer.rb
|
167
230
|
- lib/inertia_rails/rspec.rb
|
@@ -177,9 +240,12 @@ homepage: https://github.com/inertiajs/inertia-rails
|
|
177
240
|
licenses:
|
178
241
|
- MIT
|
179
242
|
metadata:
|
243
|
+
bug_tracker_uri: https://github.com/inertiajs/inertia-rails/issues
|
244
|
+
changelog_uri: https://github.com/inertiajs/inertia-rails/blob/master/CHANGELOG.md
|
245
|
+
documentation_uri: https://github.com/inertiajs/inertia-rails/blob/master/README.md
|
180
246
|
homepage_uri: https://github.com/inertiajs/inertia-rails
|
181
247
|
source_code_uri: https://github.com/inertiajs/inertia-rails
|
182
|
-
|
248
|
+
rubygems_mfa_required: 'true'
|
183
249
|
post_install_message:
|
184
250
|
rdoc_options: []
|
185
251
|
require_paths:
|
@@ -188,15 +254,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
188
254
|
requirements:
|
189
255
|
- - ">="
|
190
256
|
- !ruby/object:Gem::Version
|
191
|
-
version: '0'
|
257
|
+
version: '3.0'
|
192
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
259
|
requirements:
|
194
260
|
- - ">="
|
195
261
|
- !ruby/object:Gem::Version
|
196
262
|
version: '0'
|
197
263
|
requirements: []
|
198
|
-
rubygems_version: 3.5.
|
264
|
+
rubygems_version: 3.5.22
|
199
265
|
signing_key:
|
200
266
|
specification_version: 4
|
201
|
-
summary: Inertia adapter for Rails
|
267
|
+
summary: Inertia.js adapter for Rails
|
202
268
|
test_files: []
|
data/.github/workflows/push.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
name: Testing
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
test:
|
7
|
-
strategy:
|
8
|
-
fail-fast: false
|
9
|
-
matrix:
|
10
|
-
ruby: ['3.1', '3.2', '3.3']
|
11
|
-
rails: ['6.1', '7.0', '7.1']
|
12
|
-
|
13
|
-
runs-on: ubuntu-latest
|
14
|
-
name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
|
15
|
-
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v4
|
18
|
-
|
19
|
-
- name: Setup System
|
20
|
-
run: sudo apt-get install libsqlite3-dev
|
21
|
-
|
22
|
-
- name: Set up Ruby
|
23
|
-
uses: ruby/setup-ruby@v1
|
24
|
-
with:
|
25
|
-
ruby-version: ${{ matrix.ruby }}
|
26
|
-
bundler-cache: true
|
27
|
-
env:
|
28
|
-
RAILS_VERSION: ${{ matrix.rails }}
|
29
|
-
|
30
|
-
- name: Run tests
|
31
|
-
run: bundle exec rake
|
32
|
-
env:
|
33
|
-
RAILS_VERSION: ${{ matrix.rails }}
|
data/.gitignore
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/_yardoc/
|
4
|
-
/coverage/
|
5
|
-
/doc/
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/tmp/
|
9
|
-
/Gemfile.lock
|
10
|
-
|
11
|
-
/spec/dummy/db/*.sqlite3
|
12
|
-
/spec/dummy/db/*.sqlite3-journal
|
13
|
-
/spec/dummy/db/log/*.log
|
14
|
-
/spec/dummy/tmp/
|
15
|
-
/spec/dummy/.sass-cache
|
16
|
-
/spec/dummy/log/
|
17
|
-
|
18
|
-
# rspec failure tracking
|
19
|
-
.rspec_status
|
20
|
-
|
21
|
-
# Appraisal
|
22
|
-
gemfiles/*.gemfile.lock
|
23
|
-
|
24
|
-
# Local files, such as .env.development.local
|
25
|
-
*.local
|
data/.rspec
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at TODO: Write your email address. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "pathname"
|
4
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
5
|
-
Pathname.new(__FILE__).realpath)
|
6
|
-
|
7
|
-
require "rubygems"
|
8
|
-
require "bundler/setup"
|
9
|
-
require "rails/all"
|
10
|
-
require "inertia_rails"
|
11
|
-
|
12
|
-
require "irb"
|
13
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/inertia_rails.gemspec
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "inertia_rails/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "inertia_rails"
|
7
|
-
spec.version = InertiaRails::VERSION
|
8
|
-
spec.authors = ["Brian Knoles", "Brandon Shar", "Eugene Granovsky"]
|
9
|
-
spec.email = ["brian@bellawatt.com", "brandon@bellawatt.com", "eugene@bellawatt.com"]
|
10
|
-
|
11
|
-
spec.summary = %q{Inertia adapter for Rails}
|
12
|
-
spec.homepage = "https://github.com/inertiajs/inertia-rails"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
17
|
-
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
18
|
-
|
19
|
-
# Specify which files should be added to the gem when it is released.
|
20
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
22
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
-
end
|
24
|
-
spec.bindir = "exe"
|
25
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
-
spec.require_paths = ["lib"]
|
27
|
-
|
28
|
-
spec.add_runtime_dependency "railties", '>= 5'
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
31
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
32
|
-
spec.add_development_dependency "rspec-rails", "~> 4.0"
|
33
|
-
spec.add_development_dependency "rails-controller-testing"
|
34
|
-
spec.add_development_dependency "sqlite3"
|
35
|
-
spec.add_development_dependency "responders"
|
36
|
-
spec.add_development_dependency "debug"
|
37
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { App } from '@inertiajs/inertia-react';
|
2
|
-
import React from 'react';
|
3
|
-
import { render } from 'react-dom';
|
4
|
-
import { InertiaProgress } from '@inertiajs/progress';
|
5
|
-
|
6
|
-
document.addEventListener('DOMContentLoaded', () => {
|
7
|
-
InertiaProgress.init();
|
8
|
-
const el = document.getElementById('app')
|
9
|
-
|
10
|
-
render(
|
11
|
-
<App
|
12
|
-
initialPage={JSON.parse(el.dataset.page)}
|
13
|
-
resolveComponent={name => require(`../Pages/${name}`).default}
|
14
|
-
/>,
|
15
|
-
el
|
16
|
-
)
|
17
|
-
});
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { createInertiaApp } from '@inertiajs/inertia-svelte'
|
2
|
-
import { InertiaProgress } from '@inertiajs/progress'
|
3
|
-
|
4
|
-
document.addEventListener('DOMContentLoaded', () => {
|
5
|
-
InertiaProgress.init()
|
6
|
-
|
7
|
-
createInertiaApp({
|
8
|
-
id: 'app',
|
9
|
-
resolve: name => import(`../Pages/${name}.svelte`),
|
10
|
-
setup({ el, App, props }) {
|
11
|
-
new App({ target: el, props })
|
12
|
-
},
|
13
|
-
})
|
14
|
-
})
|