Update to SvelteKit 3
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
This is a full SvelteKit 3 migration, not a first-issue. After the listed TypeScript/Vite upgrades, run npx sv migrate sveltekit-3, then follow the checklists: move adapter and vitePreprocess into vite.config.ts, retarget tsconfig.json extends, and rename $lib/$app imports. Touch the named call sites for goto/invalidateAll/handleError in src/hooks.server.ts, storage pages, and src/lib/storage/*.svelte.ts, then update AGENTS.md and helm env docs. Done when the app builds, env/zod, OIDC redirects, and forms behave under the new APIs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[!CAUTION]
This is not a complete list
And we should also wait for a few svelte patches before migrating
Prerequisit upgrades
- TypeScript 5 to 6+
- Vite 7 to 8
Auto migration
- Run
npx sv migrate sveltekit-3
Configuration
- Delete
svelte.config.jsand moveadapter()andvitePreprocess()
into thesveltekit({ ... })plugin options invite.config.ts -
tsconfig.json: change"extends"from"./.svelte-kit/tsconfig.json"to"$app/tsconfig"
Module aliases and imports
-
$lib→#lib -
$app/environment→$app/env— 15 refs on main, 25 on the S3 branch
Environment variables
- Rework all ENV vars to conform to the new env convention
- Add zod schemas for every env
Navigation, forms and errors
-
goto()optioninvalidateAll→refreshAll,replaceState→replace. Affected:
src/routes/(app)/storage/[bucket]/[...prefix]/+page.svelte:28on main; on the S3 branch also
storage/browse/[connection]/[bucket]/[...prefix]/+page.svelte:61,84andstorage/+layout.svelte:53 - Standalone
invalidateAll()→refreshAll():src/lib/storage/state.svelte.ts:188,337,359
plusarchive.svelte.ts:236and other call sites - Rework
handleErroratsrc/hooks.server.ts:94— it now receives all errors including
expectederror()throws, so every 404/403 would currently be logged aterrorlevel and have
its message replaced with "An unexpected error occurred". Discriminate onkind. - Review
use:enhanceforms — cross-pageactionnow navigates automatically, and enhanced
responses use thefail()status instead of always 200 - Check external redirects still work — they now need
{ external: true }or an origin allowlist
(relevant to the OIDC flow insrc/routes/auth/) -
$app/paths: Pathnames no longer start with/, which affects the
PUBLIC_PATHSprefix matching insrc/hooks.server.ts:46-55
Documentation
- Update
AGENTS.md— it documents$libpaths, the$env/process.envlogging setup and the
superforms rule, all of which change - Update
deploy/helm/cockpitREADME and any env-var documentation
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 0
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stackabletech/cockpit
-
Remove unused dependenciesCó thể đã có người làm @Bohreromir đã nhận 19 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
stackabletech/cockpit#101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
localStorage InterfaceĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
stackabletech/cockpit#379 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DocumentationĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
stackabletech/cockpit#378 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add DB vars to helm chartĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
stackabletech/cockpit#377 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
stackabletech/cockpit#376 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stackabletech/cockpit
Issue tương tự
-
chore v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5115 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
beginner bug good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
philaconvalley/website#168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
oss-slu/lrda_mobile#294 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hatchet-dev/hatchet#5179 ·
Maintainer thường phản hồi trong vòng 1 ngày