merge with upsteam 16c08d841c

This commit is contained in:
sevichecc 2023-01-26 00:02:58 +08:00
parent 89671e6b1a
commit 5ea4b9a171
3 changed files with 297 additions and 262 deletions

View file

@ -35,24 +35,23 @@
"@iconify-json/uil": "^1.1.3", "@iconify-json/uil": "^1.1.3",
"@sveltejs/adapter-auto": "^1.0.0", "@sveltejs/adapter-auto": "^1.0.0",
"@sveltejs/adapter-netlify": "^1.0.0", "@sveltejs/adapter-netlify": "^1.0.0",
"@sveltejs/adapter-node": "^1.0.0", "@sveltejs/adapter-node": "^1.1.0",
"@sveltejs/adapter-static": "^1.0.0", "@sveltejs/adapter-static": "^1.0.1",
"@sveltejs/kit": "1.0.1", "@sveltejs/kit": "^1.0.7",
"@tailwindcss/typography": "^0.5.8", "@tailwindcss/typography": "^0.5.8",
"@types/node": "^18.11.15", "@types/node": "^18.11.18",
"@types/unist": "^2.0.6", "@types/unist": "^2.0.6",
"@types/workbox-build": "^5.0.1", "@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.46.1", "@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/parser": "^5.46.1", "@vite-pwa/sveltekit": "^0.1.2",
"@vite-pwa/sveltekit": "^0.1.1",
"autoprefixer": "^10.4.13", "autoprefixer": "^10.4.13",
"chalk": "^5.2.0", "chalk": "^5.2.0",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cssnano": "^5.1.14", "cssnano": "^5.1.14",
"daisyui": "^2.43.2", "daisyui": "^2.46.1",
"eslint": "^8.29.0", "eslint": "^8.31.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.6.0",
"eslint-plugin-svelte3": "^4.0.0", "eslint-plugin-svelte3": "^4.0.0",
"fenceparser": "^2.2.0", "fenceparser": "^2.2.0",
"fff-flavored-frontmatter": "~0.4.2", "fff-flavored-frontmatter": "~0.4.2",
@ -60,8 +59,8 @@
"mdast-util-to-string": "^3.1.0", "mdast-util-to-string": "^3.1.0",
"mdsvex": "^0.10.6", "mdsvex": "^0.10.6",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"postcss": "^8.4.20", "postcss": "^8.4.21",
"prettier": "^2.8.1", "prettier": "^2.8.2",
"prettier-plugin-svelte": "^2.9.0", "prettier-plugin-svelte": "^2.9.0",
"rehype-autolink-headings": "^6.1.1", "rehype-autolink-headings": "^6.1.1",
"rehype-external-links": "^2.0.1", "rehype-external-links": "^2.0.1",
@ -71,9 +70,9 @@
"remark-footnotes": "~2.0.0", "remark-footnotes": "~2.0.0",
"rollup": "^3.10.0", "rollup": "^3.10.0",
"shiki-twoslash": "^3.1.0", "shiki-twoslash": "^3.1.0",
"svelte": "^3.54.0", "svelte": "^3.55.0",
"svelte-bricks": "^0.1.7", "svelte-bricks": "^0.1.7",
"svelte-check": "^2.10.2", "svelte-check": "^2.10.3",
"svelte-preprocess": "^5.0.0", "svelte-preprocess": "^5.0.0",
"svelte-preprocess-import-assets": "^0.2.5", "svelte-preprocess-import-assets": "^0.2.5",
"svelte-typeahead": "^4.4.1", "svelte-typeahead": "^4.4.1",
@ -81,9 +80,10 @@
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "^4.9.4", "typescript": "^4.9.4",
"unocss": "^0.47.6", "unocss": "^0.47.6",
"vite": "^4.0.1", "vite": "^4.0.4",
"vite-imagetools": "^4.0.11", "vite-imagetools": "^4.0.13",
"vite-plugin-pwa": "^0.14.0", "vite-plugin-pwa": "^0.14.1",
"workbox-build": "^6.5.4",
"workbox-window": "^6.5.4" "workbox-window": "^6.5.4"
}, },
"dependencies": { "dependencies": {

File diff suppressed because it is too large Load diff

View file

@ -9,9 +9,10 @@
export let fs = true export let fs = true
export let loop = false export let loop = false
const src = `https://www.youtube.com/embed/${id}?${new URLSearchParams({ const src = `https://www.youtube.com/embed/${id}?${new URLSearchParams({
...(list ? { listType: 'playlist', list }: {}), ...(list ? { listType: 'playlist', list } : {}),
...(playlist ? { playlist } : {}), ...(playlist ? { playlist } : {}),
...(start ? { start } : {}), ...(start ? { start } : {}),
autoplay: autoplay ? '1' : '0',
disablekb: disablekb ? '1' : '0', disablekb: disablekb ? '1' : '0',
controls: controls ? '1' : '0', controls: controls ? '1' : '0',
fs: fs ? '1' : '0', fs: fs ? '1' : '0',