Skip to content

Commit c82445b

Browse files
authored
Align with current generator output (#274)
1 parent 29b658a commit c82445b

40 files changed

Lines changed: 400 additions & 457 deletions

.github/dependabot.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ updates:
55
schedule:
66
interval: weekly
77
open-pull-requests-limit: 10
8-
- package-ecosystem: npm
8+
- package-ecosystem: github-actions
99
directory: "/"
1010
schedule:
1111
interval: weekly
1212
open-pull-requests-limit: 10
13-
- package-ecosystem: github-actions
13+
- package-ecosystem: npm
1414
directory: "/"
1515
schedule:
1616
interval: weekly
17-
open-pull-requests-limit: 10

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535

3636
# Vite
3737
/public/vite*
38+
/ssr
3839
node_modules
3940
*.local
40-

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Ignore artifacts:
21
build
32
coverage
4-
53
app/javascript/routes

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ GEM
8787
bindex (0.8.1)
8888
bootsnap (1.24.6)
8989
msgpack (~> 1.2)
90-
brakeman (8.0.4)
90+
brakeman (8.0.5)
9191
racc
9292
builder (3.3.0)
9393
bundler-audit (0.9.3)
@@ -107,9 +107,9 @@ GEM
107107
capybara (>= 3.0)
108108
childprocess (5.1.0)
109109
logger (~> 1.5)
110-
concurrent-ruby (1.3.6)
110+
concurrent-ruby (1.3.7)
111111
connection_pool (3.0.2)
112-
crass (1.0.6)
112+
crass (1.0.7)
113113
date (3.5.1)
114114
debug (1.11.1)
115115
irb (~> 1.10)
@@ -176,8 +176,8 @@ GEM
176176
minitest (6.0.6)
177177
drb (~> 2.0)
178178
prism (~> 1.5)
179-
msgpack (1.8.1)
180-
net-imap (0.6.4)
179+
msgpack (1.8.3)
180+
net-imap (0.6.4.1)
181181
date
182182
net-protocol
183183
net-pop (0.1.2)
@@ -192,19 +192,19 @@ GEM
192192
net-protocol
193193
net-ssh (7.3.2)
194194
nio4r (2.7.5)
195-
nokogiri (1.19.3-aarch64-linux-gnu)
195+
nokogiri (1.19.4-aarch64-linux-gnu)
196196
racc (~> 1.4)
197-
nokogiri (1.19.3-aarch64-linux-musl)
197+
nokogiri (1.19.4-aarch64-linux-musl)
198198
racc (~> 1.4)
199-
nokogiri (1.19.3-arm-linux-gnu)
199+
nokogiri (1.19.4-arm-linux-gnu)
200200
racc (~> 1.4)
201-
nokogiri (1.19.3-arm-linux-musl)
201+
nokogiri (1.19.4-arm-linux-musl)
202202
racc (~> 1.4)
203-
nokogiri (1.19.3-arm64-darwin)
203+
nokogiri (1.19.4-arm64-darwin)
204204
racc (~> 1.4)
205-
nokogiri (1.19.3-x86_64-linux-gnu)
205+
nokogiri (1.19.4-x86_64-linux-gnu)
206206
racc (~> 1.4)
207-
nokogiri (1.19.3-x86_64-linux-musl)
207+
nokogiri (1.19.4-x86_64-linux-musl)
208208
racc (~> 1.4)
209209
ostruct (0.6.3)
210210
parallel (2.1.0)

Rakefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ if Rails.env.local?
1313

1414
task default: %i[rubocop:autocorrect]
1515
end
16-
17-
# Update js-routes file before javascript build
18-
task "assets:precompile" => "js:routes"

app/assets/images/.keep

Whitespace-only changes.

app/controllers/identity/password_resets_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class Identity::PasswordResetsController < InertiaController
44
skip_before_action :authenticate
55

6-
before_action :set_user, only: %i[ edit update ]
6+
before_action :set_user, only: %i[edit update]
77

88
def new
99
end

app/controllers/sessions_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
class SessionsController < InertiaController
4-
skip_before_action :authenticate, only: %i[ new create ]
5-
before_action :require_no_authentication, only: %i[ new create ]
4+
skip_before_action :authenticate, only: %i[new create]
5+
before_action :require_no_authentication, only: %i[new create]
66
before_action :set_session, only: :destroy
77

88
def new

app/javascript/components/app-shell.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
import { useState } from "react"
22

33
import { SidebarProvider } from "@/components/ui/sidebar"
4+
import * as storage from "@/lib/storage"
45

56
interface AppShellProps {
67
children: React.ReactNode
78
variant?: "header" | "sidebar"
89
}
910

1011
export function AppShell({ children, variant = "header" }: AppShellProps) {
11-
const [isOpen, setIsOpen] = useState(() =>
12-
typeof window !== "undefined"
13-
? localStorage.getItem("sidebar") !== "false"
14-
: true,
12+
const [isOpen, setIsOpen] = useState(
13+
() => storage.getItem("sidebar") !== "false",
1514
)
1615

1716
const handleSidebarChange = (open: boolean) => {
1817
setIsOpen(open)
19-
20-
if (typeof window !== "undefined") {
21-
localStorage.setItem("sidebar", String(open))
22-
}
18+
storage.setItem("sidebar", String(open))
2319
}
2420

2521
if (variant === "header") {

app/javascript/components/input-error.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)