mirror of
https://github.com/Damillora/Rinze.git
synced 2024-11-23 12:17:33 +00:00
feat: update to svelte 5, sveltekit 2, and plachta 6
This commit is contained in:
parent
777a304541
commit
93ac2532bb
3635
package-lock.json
generated
3635
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -9,24 +9,25 @@
|
|||||||
"format": "prettier --write ."
|
"format": "prettier --write ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/kit": "^1.20.4",
|
"@sveltejs/adapter-node": "^5.2.9",
|
||||||
|
"@sveltejs/kit": "^2.5.27",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||||
"@typescript-eslint/parser": "^4.33.0",
|
"@typescript-eslint/parser": "^4.33.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-svelte": "^2.32.4",
|
"eslint-plugin-svelte": "^2.45.1",
|
||||||
"prettier": "~2.2.1",
|
"prettier": "^3.1.0",
|
||||||
"prettier-plugin-svelte": "^2.10.1",
|
"prettier-plugin-svelte": "^3.2.6",
|
||||||
"svelte": "^4.0.0",
|
"svelte": "^5.0.0",
|
||||||
"svelte-preprocess": "^5.0.3",
|
"svelte-preprocess": "^6.0.0",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.5.0",
|
||||||
"vite": "^4.1.1"
|
"vite": "^5.4.4"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@damillora/plachta": "^4.3.0",
|
"@damillora/plachta": "^6.2.0",
|
||||||
"@sveltejs/adapter-node": "^1.1.6",
|
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"howler": "^2.2.3",
|
"howler": "^2.2.3",
|
||||||
"sass": "^1.58.0"
|
"sass": "^1.58.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
export let value;
|
let { value = $bindable() } = $props();
|
||||||
let copyarea;
|
let copyarea = $state();
|
||||||
|
|
||||||
let copy = () => {
|
let copy = () => {
|
||||||
copyarea.select();
|
copyarea.select();
|
||||||
@ -9,10 +9,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<input type="text" class="copyarea" on:click={copy} bind:value={value} bind:this={copyarea} readonly/>
|
<input type="text" class="copyarea" onclick={copy} bind:value={value} bind:this={copyarea} readonly/>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "@damillora/plachta/dist/styles/global";
|
@use "@damillora/plachta/dist/styles/global" as *;
|
||||||
|
|
||||||
.copyarea {
|
.copyarea {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
|
@ -1,8 +1,19 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
import { Card, CardContent, CardTitle, CardDescription } from '@damillora/plachta';
|
import { Card, CardContent, CardTitle, CardDescription } from '@damillora/plachta';
|
||||||
|
|
||||||
export let title, location, date;
|
interface Props {
|
||||||
export let link = "";
|
title: any;
|
||||||
|
location: any;
|
||||||
|
date: any;
|
||||||
|
link?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
let {
|
||||||
|
title,
|
||||||
|
location,
|
||||||
|
date,
|
||||||
|
link = ""
|
||||||
|
}: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
@ -30,7 +41,7 @@
|
|||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '@damillora/plachta/dist/styles/global';
|
@use '@damillora/plachta/dist/styles/global' as *;
|
||||||
|
|
||||||
.dj-item {
|
.dj-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="floating-yuriko hvr-float" on:click={yurikoSound}>
|
<div class="floating-yuriko hvr-float" onclick={yurikoSound}>
|
||||||
<img src="/yuriko-smol.png" alt="Yuriko" />
|
<img src="/yuriko-smol.png" alt="Yuriko" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,11 +1,25 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
import { Card, CardContent, CardDescription, CardTitle } from '@damillora/plachta';
|
import { Card, CardContent, CardDescription, CardTitle } from '@damillora/plachta';
|
||||||
|
|
||||||
import CopyArea from '$lib/components/CopyArea.svelte';
|
import CopyArea from '$lib/components/CopyArea.svelte';
|
||||||
|
|
||||||
export let name, link, gameid, playername;
|
interface Props {
|
||||||
export let reviewlink = null;
|
name: any;
|
||||||
export let version = null;
|
link: any;
|
||||||
|
gameid: any;
|
||||||
|
playername: any;
|
||||||
|
reviewlink?: any;
|
||||||
|
version?: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
let {
|
||||||
|
name,
|
||||||
|
link,
|
||||||
|
gameid,
|
||||||
|
playername,
|
||||||
|
reviewlink = null,
|
||||||
|
version = null
|
||||||
|
}: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
import { Card, CardContent, CardTitle, CardDescription } from '@damillora/plachta';
|
import { Card, CardContent, CardTitle, CardDescription } from '@damillora/plachta';
|
||||||
|
|
||||||
export let title, link, description;
|
let { title, link, description } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
import { PostCard } from '@damillora/plachta';
|
import { PostCard } from '@damillora/plachta';
|
||||||
|
|
||||||
export let codename, name, description;
|
let { codename, name, description } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<PostCard
|
<PostCard
|
||||||
|
@ -5,16 +5,20 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Header>
|
<Header>
|
||||||
<svelte:fragment slot="title">
|
{#snippet title()}
|
||||||
<a href="/"> <strong>Damillora</strong></a>
|
|
||||||
</svelte:fragment>
|
<a href="/"> <strong>Damillora</strong></a>
|
||||||
<svelte:fragment slot="nav">
|
|
||||||
<NavMenu label="About" url="/about" />
|
{/snippet}
|
||||||
<NavMenu label="Software" url="/projects" />
|
{#snippet nav()}
|
||||||
<NavMenu label="DJ Damillora" url="/dj" />
|
|
||||||
<NavMenu label="Game Profile" url="/games" />
|
<NavMenu label="About" url="/about" />
|
||||||
<NavMenu label="Contact" url="/contact" />
|
<NavMenu label="Software" url="/projects" />
|
||||||
<NavMenu label="Blog" url="/blog" />
|
<NavMenu label="DJ Damillora" url="/dj" />
|
||||||
<NavDarkMode />
|
<NavMenu label="Game Profile" url="/games" />
|
||||||
</svelte:fragment>
|
<NavMenu label="Contact" url="/contact" />
|
||||||
|
<NavMenu label="Blog" url="/blog" />
|
||||||
|
<NavDarkMode />
|
||||||
|
|
||||||
|
{/snippet}
|
||||||
</Header>
|
</Header>
|
@ -1,4 +1,5 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
|
import type { Snippet } from 'svelte';
|
||||||
import {
|
import {
|
||||||
Base,
|
Base,
|
||||||
Header,
|
Header,
|
||||||
@ -9,13 +10,19 @@
|
|||||||
import FloatingYuriko from '$lib/components/FloatingYuriko.svelte';
|
import FloatingYuriko from '$lib/components/FloatingYuriko.svelte';
|
||||||
import { isYurikoBirthday } from '$lib/yuriko-birthday.js';
|
import { isYurikoBirthday } from '$lib/yuriko-birthday.js';
|
||||||
import SiteHeader from '$lib/components/SiteHeader.svelte';
|
import SiteHeader from '$lib/components/SiteHeader.svelte';
|
||||||
|
interface Props {
|
||||||
|
children?: Snippet;
|
||||||
|
}
|
||||||
|
|
||||||
|
let { children }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Base>
|
<Base>
|
||||||
<SiteHeader />
|
<SiteHeader />
|
||||||
|
|
||||||
<Hero background="/images/bg/283-yuika/bg-xxl.jpg" />
|
<Hero background="/images/bg/283-yuika/bg-xxl.jpg" />
|
||||||
<slot />
|
|
||||||
|
{@render children?.()}
|
||||||
|
|
||||||
<Footer>
|
<Footer>
|
||||||
<p>Copyright (c) 2024 Damillora</p>
|
<p>Copyright (c) 2024 Damillora</p>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2020"
|
"es2020"
|
||||||
@ -10,7 +10,6 @@
|
|||||||
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
||||||
to enforce using \`import type\` instead of \`import\` for Types.
|
to enforce using \`import type\` instead of \`import\` for Types.
|
||||||
*/
|
*/
|
||||||
"importsNotUsedAsValues": "error",
|
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
/**
|
/**
|
||||||
@ -21,17 +20,8 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"baseUrl": ".",
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"paths": {
|
|
||||||
"$lib": [
|
|
||||||
"src/lib"
|
|
||||||
],
|
|
||||||
"$lib/*": [
|
|
||||||
"src/lib/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.d.ts",
|
"src/**/*.d.ts",
|
||||||
@ -40,4 +30,4 @@
|
|||||||
"src/**/*.svelte"
|
"src/**/*.svelte"
|
||||||
],
|
],
|
||||||
"extends": "./.svelte-kit/tsconfig.json"
|
"extends": "./.svelte-kit/tsconfig.json"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user