fix: update svelte -> 5.43.8
This commit is contained in:
5 files changed
+11
-19
No files matched your search
@@ -30,7 +30,7 @@
|
|||||||
"openapi-fetch": "^0.14.0",
|
"openapi-fetch": "^0.14.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"prettier-plugin-svelte": "^3.4.0",
|
"prettier-plugin-svelte": "^3.4.0",
|
||||||
"svelte": "^5.39.2",
|
"svelte": "^5.43.8",
|
||||||
"svelte-adapter-bun-next": "^1.0.3",
|
"svelte-adapter-bun-next": "^1.0.3",
|
||||||
"svelte-check": "^4.3.1",
|
"svelte-check": "^4.3.1",
|
||||||
"svelte-floating-ui": "^1.6.2",
|
"svelte-floating-ui": "^1.6.2",
|
||||||
@@ -681,7 +681,7 @@
|
|||||||
|
|
||||||
"supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
|
"supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
|
||||||
|
|
||||||
"svelte": ["svelte@5.39.4", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", "esrap": "^2.1.0", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-VU729KzEau1l6d6d25EnRQhdkwwYdTQxQrF8gdUfjZ3dCjrG7VmRMylMxx92ayO9/z5PKWpDrShJdzc4PGW1uA=="],
|
"svelte": ["svelte@5.43.8", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", "esrap": "^2.1.0", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-d53/xClCjHsuFXuHsn7+F/0NKkkwgRv8kLg2his5YBYqVtfIrBqkvWd+5ZjYN6ryk/jv/rJF00vexXHkK8ofXA=="],
|
||||||
|
|
||||||
"svelte-adapter-bun-next": ["svelte-adapter-bun-next@1.0.3", "", { "dependencies": { "@t3-oss/env-core": "latest", "tiny-glob": "^0.2.9", "zod": "^3.24.2" } }, "sha512-OPKFTYMPDeshBaBqabx08e9G4q6GUfIGF9pZbKcZxlO2j2A6Tj0gFtvgAviz3K/nAJckLIxqgG5y5JZu+vg2SQ=="],
|
"svelte-adapter-bun-next": ["svelte-adapter-bun-next@1.0.3", "", { "dependencies": { "@t3-oss/env-core": "latest", "tiny-glob": "^0.2.9", "zod": "^3.24.2" } }, "sha512-OPKFTYMPDeshBaBqabx08e9G4q6GUfIGF9pZbKcZxlO2j2A6Tj0gFtvgAviz3K/nAJckLIxqgG5y5JZu+vg2SQ=="],
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
"openapi-fetch": "^0.14.0",
|
"openapi-fetch": "^0.14.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"prettier-plugin-svelte": "^3.4.0",
|
"prettier-plugin-svelte": "^3.4.0",
|
||||||
"svelte": "^5.39.2",
|
"svelte": "^5.43.8",
|
||||||
"svelte-adapter-bun-next": "^1.0.3",
|
"svelte-adapter-bun-next": "^1.0.3",
|
||||||
"svelte-check": "^4.3.1",
|
"svelte-check": "^4.3.1",
|
||||||
"svelte-floating-ui": "^1.6.2",
|
"svelte-floating-ui": "^1.6.2",
|
||||||
|
|||||||
Vendored
+1
-1
@@ -5888,7 +5888,7 @@ export interface components {
|
|||||||
}
|
}
|
||||||
PollVoteRequest: {
|
PollVoteRequest: {
|
||||||
post_id: number
|
post_id: number
|
||||||
choice_id: number
|
choice_id: number | number[]
|
||||||
}
|
}
|
||||||
PollVoteResponse: {
|
PollVoteResponse: {
|
||||||
banned_from_community: boolean
|
banned_from_community: boolean
|
||||||
|
|||||||
@@ -2463,7 +2463,7 @@ export interface PostEvent {
|
|||||||
|
|
||||||
export interface PollVote {
|
export interface PollVote {
|
||||||
post_id: number
|
post_id: number
|
||||||
choice_id: number
|
choice_id: number | number[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetNote {
|
export interface SetNote {
|
||||||
|
|||||||
@@ -53,18 +53,10 @@
|
|||||||
canVote = false
|
canVote = false
|
||||||
|
|
||||||
if (typeof id !== 'number') {
|
if (typeof id !== 'number') {
|
||||||
await Promise.all([
|
await api.voteOnPoll({
|
||||||
id.map((i) =>
|
post_id: post.id,
|
||||||
api
|
choice_id: id,
|
||||||
.voteOnPoll({
|
})
|
||||||
post_id: post.id,
|
|
||||||
choice_id: i,
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
throw err
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
])
|
|
||||||
} else {
|
} else {
|
||||||
await api.voteOnPoll({
|
await api.voteOnPoll({
|
||||||
post_id: post.id,
|
post_id: post.id,
|
||||||
@@ -89,7 +81,7 @@
|
|||||||
{#each options.toSorted((a, b) => a.sort_order - b.sort_order) as choice}
|
{#each options.toSorted((a, b) => a.sort_order - b.sort_order) as choice}
|
||||||
{@const active =
|
{@const active =
|
||||||
selected == choice.id ||
|
selected == choice.id ||
|
||||||
(typeof selected !== 'number' && selected?.includes(choice.id))}
|
(typeof selected !== 'number' && selected?.includes?.(choice.id))}
|
||||||
{@const percentage = Math.floor(
|
{@const percentage = Math.floor(
|
||||||
(choice.num_votes / totalVotes || 0) * 100,
|
(choice.num_votes / totalVotes || 0) * 100,
|
||||||
)}
|
)}
|
||||||
@@ -114,7 +106,7 @@
|
|||||||
></div>
|
></div>
|
||||||
{/if}
|
{/if}
|
||||||
<label
|
<label
|
||||||
class="px-4 py-2 w-full text-left flex flex-row gap-2 items-center"
|
class="px-4 py-2 w-full text-left flex flex-row gap-2 items-center relative"
|
||||||
>
|
>
|
||||||
{#if !multi}
|
{#if !multi}
|
||||||
<input
|
<input
|
||||||
|
|||||||
Reference in new issue
Block a user