sync(upstream): ⬆️ deps, style and feat

This commit is contained in:
Hubert Chen 2024-03-11 07:25:56 +08:00
parent 14fcfbfef5
commit 92d4c6c5bd
Signed by: trle5
GPG Key ID: 2935B4DE0D6F7720
8 changed files with 1348 additions and 1076 deletions

2
.nvmrc
View File

@ -1 +1 @@
v18.8.0
v21.6.1

View File

@ -3,6 +3,5 @@ command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm build"
publish = "build"
[build.environment]
NPM_FLAGS = "--version"
AWS_LAMBDA_JS_RUNTIME = "nodejs16.x"
[functions]
node_bundler = "esbuild"
node_bundler = "esbuild"

View File

@ -7,6 +7,7 @@
"homepage": "https://github.com/importantimport/urara",
"bugs": "https://github.com/importantimport/urara/issues",
"author": "藍+85CD",
"packageManager": "pnpm@8.14.1",
"scripts": {
"clean": "node urara.js clean",
"tsc": "tsc -p tsconfig.node.json",
@ -26,39 +27,40 @@
"format": "prettier --write --plugin-search-dir=. ."
},
"devDependencies": {
"@iconify-json/heroicons-outline": "^1.1.7",
"@iconify-json/heroicons-solid": "^1.1.8",
"@iconify-json/heroicons-outline": "^1.1.10",
"@iconify-json/heroicons-solid": "^1.1.11",
"@iconify-json/simple-icons": "^1.1.40",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/adapter-vercel": "^2.4.3",
"@sveltejs/kit": "^1.25.0",
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/adapter-netlify": "^4.1.0",
"@sveltejs/adapter-node": "^4.0.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/adapter-vercel": "^5.1.0",
"@sveltejs/kit": "^2.5.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.6.0",
"@types/unist": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@types/node": "^20.11.17",
"@types/unist": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.7.0",
"@unocss/extractor-svelte": "^0.55.7",
"@vite-pwa/sveltekit": "^0.1.3",
"chalk": "^5.3.0",
"chokidar": "^3.5.3",
"chokidar": "^3.6.0",
"cross-env": "^7.0.3",
"daisyui": "^3.7.3",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.33.1",
"daisyui": "^4.6.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"fenceparser": "^2.2.0",
"fff-flavored-frontmatter": "1.0.0-alpha.1",
"github-slugger": "^2.0.0",
"mdast-util-to-string": "^3.2.0",
"mdsvex": "^0.11.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.29",
"postcss": "^8.4.35",
"postcss-lightningcss": "^0.7.0",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.1.2",
"rehype-autolink-headings": "^6.1.1",
"rehype-external-links": "^2.1.0",
"rehype-slug": "^5.1.0",
@ -66,25 +68,20 @@
"remark-fff": "1.0.0-alpha.1",
"remark-footnotes": "~2.0.0",
"shiki-twoslash": "^3.1.2",
"svelte": "^4.2.0",
"svelte": "^4.2.10",
"svelte-bricks": "^0.2.0",
"svelte-check": "^3.5.1",
"svelte-eslint-parser": "^0.33.0",
"svelte-preprocess": "^5.0.4",
"svelte-check": "^3.6.4",
"svelte-eslint-parser": "^0.33.1",
"svelte-preprocess": "^5.1.3",
"sveltekit-embed": "^0.0.14",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.4.1",
"tslib": "^2.6.2",
"typescript": "^4.9.5",
"typescript": "^5.3.3",
"unist-util-visit": "^4.1.2",
"unocss": "^0.55.7",
"vite": "^4.4.9",
"vite-plugin-pwa": "^0.14.7",
"workbox-build": "^6.6.0",
"workbox-window": "^6.6.0"
},
"pnpm": {
"overrides": {
"vite>rollup": "^3.10.0"
}
"unocss": "^0.58.5",
"vite": "^5.1.1",
"vite-plugin-pwa": "^0.17.5",
"workbox-build": "^7.0.0",
"workbox-window": "^7.0.0"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -169,7 +169,8 @@ pre.twoslash:hover data-lsp {
}
pre.twoslash data-lsp:hover::before {
@apply content-[attr(lsp)] absolute rounded translate-y-5 bg-neutral-focus text-neutral-content font-mono whitespace-pre-wrap transition-all px-2 py-1 z-50;
/* https://daisyui.com/blog/how-to-update-daisyui-4/#3-all--focus-colors-are-removed */
@apply content-[attr(lsp)] absolute rounded translate-y-5 bg-[color-mix(in_oklab,oklch(var(--n)),black_7%)] text-neutral-content font-mono whitespace-pre-wrap transition-all px-2 py-1 z-50;
}
/* your code here */

View File

@ -129,7 +129,7 @@
: 'btn-ghost bg-base-100/30 md:bg-base-200/30'}"
class:opacity-100={scrollY}>
<div
class="radial-progress text-accent transition-all duration-500 ease-in-out group-hover:text-accent-focus col-start-1 row-start-1"
class="radial-progress text-accent transition-all duration-500 ease-in-out group-hover:text-[color-mix(in_oklab,oklch(var(--a)),black_7%)] col-start-1 row-start-1"
style={`--size:4rem; --thickness: 0.25rem; --value:${percent};`} />
<div
class:border-transparent={percent > 95}

View File

@ -14,17 +14,20 @@
{#if config?.use.length > 0}
<div id="post-comment" class="card card-body">
{#if config.use.length > 1}
<div class="tabs w-full mb-8" class:tabs-boxed={config?.['style'] === 'boxed'}>
<div
class="tabs w-full mb-8"
class:tabs-boxed={config?.['style'] === 'boxed'}
class:tab-bordered={config?.['style'] === 'bordered'}
class:tab-lifted={config?.['style'] === 'lifted'}>
{#each config.use as name}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span
on:click={() => {
currentComment = toSnake(name)
localStorage.setItem('comment', toSnake(name))
}}
class="flex-1 tab transition-all"
class:tab-bordered={config?.['style'] === 'bordered'}
class:tab-lifted={config?.['style'] === 'lifted'}
class:tab-active={currentComment === toSnake(name)}>
{name}
</span>

View File

@ -5,7 +5,7 @@ import adapterStatic from '@sveltejs/adapter-static'
// svelte preprocessor
import { mdsvex } from 'mdsvex'
import mdsvexConfig from './mdsvex.config.js'
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
const adapter = {
auto: adapterAuto(),
@ -22,10 +22,10 @@ export default {
extensions: ['.svelte', ...mdsvexConfig.extensions],
preprocess: [mdsvex(mdsvexConfig), vitePreprocess()],
kit: {
adapter:
adapter:
process.env.ADAPTER
? adapter[process.env.ADAPTER.toLowerCase()]
: Object.keys(process.env).some(key => ['VERCEL', 'CF_PAGES', 'NETLIFY', 'GITHUB_ACTION_REPOSITORY', 'SST'].includes(key))
: Object.keys(process.env).some(key => ['VERCEL', 'NETLIFY'].includes(key))
? adapter['auto']
: adapter['static'],
prerender: {
@ -38,4 +38,4 @@ export default {
}
}
}
}
}