From cb4ee2177db4a92ce832e03eb45d71292f792445 Mon Sep 17 00:00:00 2001 From: IlaBot Date: Thu, 12 Oct 2023 12:59:48 +0000 Subject: [PATCH 01/11] chore: auto update i18n file --- src/lang/en/drivers.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lang/en/drivers.json b/src/lang/en/drivers.json index e852ca258..889ed9ebc 100755 --- a/src/lang/en/drivers.json +++ b/src/lang/en/drivers.json @@ -2,6 +2,8 @@ "115 Cloud": { "cookie": "Cookie", "cookie-tips": "one of QR code token and cookie required", + "limit_rate": "Limit rate", + "limit_rate-tips": "limit all api request rate (1r/[limit_rate]s)", "page_size": "Page size", "page_size-tips": "list api per page size of 115 driver", "qrcode_token": "Qrcode token", @@ -791,4 +793,4 @@ "WoPan": "WoPan", "YandexDisk": "YandexDisk" } -} +} \ No newline at end of file From 04d98e9cbb404f9f08ae51d6fae90a888f44709c Mon Sep 17 00:00:00 2001 From: Isla Date: Thu, 12 Oct 2023 13:00:33 +0000 Subject: [PATCH 02/11] style: format code with prettier --- src/lang/en/drivers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/en/drivers.json b/src/lang/en/drivers.json index 889ed9ebc..1628d3f1f 100755 --- a/src/lang/en/drivers.json +++ b/src/lang/en/drivers.json @@ -793,4 +793,4 @@ "WoPan": "WoPan", "YandexDisk": "YandexDisk" } -} \ No newline at end of file +} From ab6701c50c88f8439464bf598788d1a01f4253c3 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sun, 22 Oct 2023 19:05:48 +0800 Subject: [PATCH 03/11] feat: add shortcut for text save (close alist-org/alist#5396) --- package.json | 1 + pnpm-lock.yaml | 40 +++++++++++++++++++++++++ src/pages/home/previews/text-editor.tsx | 24 +++++++-------- 3 files changed, 52 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 5608cb7ce..ef5c0c629 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "@monaco-editor/loader": "^1.3.2", "@motionone/solid": "^10.14.1", "@solid-primitives/i18n": "^1.1.0", + "@solid-primitives/keyboard": "^1.2.5", "@solid-primitives/storage": "^1.3.1", "@stitches/core": "^1.2.8", "aplayer": "^1.10.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5a0744e1..452ccdf5e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ dependencies: '@solid-primitives/i18n': specifier: ^1.1.0 version: 1.1.0(solid-js@1.4.8) + '@solid-primitives/keyboard': + specifier: ^1.2.5 + version: 1.2.5(solid-js@1.4.8) '@solid-primitives/storage': specifier: ^1.3.1 version: 1.3.1(solid-js@1.4.8) @@ -627,6 +630,15 @@ packages: tslib: 2.4.0 dev: false + /@solid-primitives/event-listener@2.3.0(solid-js@1.4.8): + resolution: {integrity: sha512-0DS7DQZvCExWSpurVZC9/wjI8RmkhuOtWOy6Pp1Woq9ElMT9/bfjNpkwXsOwisLpcTqh9eUs17kp7jtpWcC20w==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.4.8) + solid-js: 1.4.8 + dev: false + /@solid-primitives/i18n@1.1.0(solid-js@1.4.8): resolution: {integrity: sha512-aqJttEb8rmsQTU5VqfBfaeHFMIqKu1eXHVEahtW4DGKYBz/CDis5V25psQEyspuVTmPs7RpX99Whe9jV7ib4pg==} peerDependencies: @@ -635,6 +647,17 @@ packages: solid-js: 1.4.8 dev: false + /@solid-primitives/keyboard@1.2.5(solid-js@1.4.8): + resolution: {integrity: sha512-1axfWM1T4ASzZp4D91vLtxARevlBuOQ6yFHr1/IkuM/7OhMLo/BrO2CcDu3vSwCPVOSiZ2P875bTiqVWQV6e5g==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/event-listener': 2.3.0(solid-js@1.4.8) + '@solid-primitives/rootless': 1.4.2(solid-js@1.4.8) + '@solid-primitives/utils': 6.2.1(solid-js@1.4.8) + solid-js: 1.4.8 + dev: false + /@solid-primitives/props@2.2.2(solid-js@1.4.8): resolution: {integrity: sha512-vjRRoi/z3S2ylIJKCs+mN07oxDmt2S9gPCbTqkEx8jYHnvzocpt34UQdglLoSklTE6jI37JhW3g/Cs8Qr/peHg==} peerDependencies: @@ -644,6 +667,15 @@ packages: solid-js: 1.4.8 dev: false + /@solid-primitives/rootless@1.4.2(solid-js@1.4.8): + resolution: {integrity: sha512-ynI/2aEOPyc14IKCX6yDBqnsAYCoLbaP9V/jejEWMVKOT2ZdV2ZxdftaLimOpWPpvjyti5DUJIGTOfLaNb7jlg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.4.8) + solid-js: 1.4.8 + dev: false + /@solid-primitives/storage@1.3.1(solid-js@1.4.8): resolution: {integrity: sha512-3By9cxqCGGkXrw3gYj7h2c5SCWxiDIYc2C3O6GLVyzN4JCIKzcMlm3HLK0gKMUbR/MzAs265XyAc3rqsMq1ixw==} peerDependencies: @@ -660,6 +692,14 @@ packages: solid-js: 1.4.8 dev: false + /@solid-primitives/utils@6.2.1(solid-js@1.4.8): + resolution: {integrity: sha512-TsecNzxiO5bLfzqb4OOuzfUmdOROcssuGqgh5rXMMaasoFZ3GoveUgdY1wcf17frMJM7kCNGNuK34EjErneZkg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + solid-js: 1.4.8 + dev: false + /@stitches/core@1.2.8: resolution: {integrity: sha512-Gfkvwk9o9kE9r9XNBmJRfV8zONvXThnm1tcuojL04Uy5uRyqg93DC83lDebl0rocZCfKSjUv+fWYtMQmEDJldg==} dev: false diff --git a/src/pages/home/previews/text-editor.tsx b/src/pages/home/previews/text-editor.tsx index 1e910cf0f..b74441cf0 100644 --- a/src/pages/home/previews/text-editor.tsx +++ b/src/pages/home/previews/text-editor.tsx @@ -6,6 +6,7 @@ import { useFetch, useFetchText, useParseText, useRouter, useT } from "~/hooks" import { objStore, userCan } from "~/store" import { PEmptyResp } from "~/types" import { handleResp, notify, r } from "~/utils" +import { createShortcut } from "@solid-primitives/keyboard" function Editor(props: { data?: string | ArrayBuffer; contentType?: string }) { const { colorMode } = useColorMode() @@ -33,6 +34,15 @@ function Editor(props: { data?: string | ArrayBuffer; contentType?: string }) { }), ) + async function onSave() { + const resp = await save() + handleResp(resp, () => { + notify.success(t("global.save_success")) + }) + } + + createShortcut(["Control", "S"], onSave) + return ( @@ -47,19 +57,7 @@ function Editor(props: { data?: string | ArrayBuffer; contentType?: string }) { }} /> - From d7febf8e0e4d4cd311ce0e2948ab29680b9b31b3 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sun, 22 Oct 2023 20:39:01 +0800 Subject: [PATCH 04/11] fix: missing font of katex (close alist-org/alist#5417) --- package.json | 1 + pnpm-lock.yaml | 7 + src/components/Markdown.tsx | 11 +- src/components/katex.css | 1128 ----------------------------------- 4 files changed, 18 insertions(+), 1129 deletions(-) delete mode 100644 src/components/katex.css diff --git a/package.json b/package.json index ef5c0c629..142c93aee 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "copy-to-clipboard": "^3.3.2", "flv.js": "^1.6.2", "hls.js": "^1.2.1", + "just-once": "^2.2.0", "lightgallery": "^2.5.0", "mark.js": "^8.11.1", "mitt": "^3.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 452ccdf5e..1bf5bc198 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,6 +53,9 @@ dependencies: hls.js: specifier: ^1.2.1 version: 1.2.1 + just-once: + specifier: ^2.2.0 + version: 2.2.0 lightgallery: specifier: ^2.5.0 version: 2.5.0 @@ -1788,6 +1791,10 @@ packages: hasBin: true dev: true + /just-once@2.2.0: + resolution: {integrity: sha512-Wo547FgUOUZ98jbrZ1KX8nRezdEdtgIlC2NK1u1RvR1oZ/WoU++FjprP8J8hRbaox776MHyeMZZED4DvhhHVjg==} + dev: false + /katex@0.16.8: resolution: {integrity: sha512-ftuDnJbcbOckGY11OO+zg3OofESlbR5DRl2cmN8HeWeeFIV7wTXvAOx8kEjZjobhA+9wh2fbKeO6cdcA9Mnovg==} hasBin: true diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index 4c2b48bf7..4ba9da562 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -6,12 +6,20 @@ import rehypeRaw from "rehype-raw" import reMarkMath from "remark-math" import rehypeKatex from "rehype-katex" import "./markdown.css" -import "./katex.css" import { Show, createEffect, createMemo, createSignal, on } from "solid-js" import { clsx } from "clsx" import { Box } from "@hope-ui/solid" import { useParseText } from "~/hooks" import { EncodingSelect } from "." +import once from "just-once" + +const insertKatexCSS = once(() => { + const link = document.createElement("link") + link.rel = "stylesheet" + link.href = + "https://registry.npmmirror.com/katex/0.16.8/files/dist/katex.min.css" + document.head.appendChild(link) +}) export const Markdown = (props: { children?: string | ArrayBuffer @@ -31,6 +39,7 @@ export const Markdown = (props: { createEffect( on(md, () => { setShow(false) + insertKatexCSS() setTimeout(() => { setShow(true) hljs.highlightAll() diff --git a/src/components/katex.css b/src/components/katex.css deleted file mode 100644 index 5d27ae178..000000000 --- a/src/components/katex.css +++ /dev/null @@ -1,1128 +0,0 @@ -@font-face { - font-family: KaTeX_AMS; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"), - url(fonts/KaTeX_AMS-Regular.woff) format("woff"), - url(fonts/KaTeX_AMS-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Caligraphic; - font-style: normal; - font-weight: 700; - src: - url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"), - url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"), - url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Caligraphic; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"), - url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Fraktur; - font-style: normal; - font-weight: 700; - src: - url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"), - url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"), - url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Fraktur; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"), - url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Main; - font-style: normal; - font-weight: 700; - src: - url(fonts/KaTeX_Main-Bold.woff2) format("woff2"), - url(fonts/KaTeX_Main-Bold.woff) format("woff"), - url(fonts/KaTeX_Main-Bold.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Main; - font-style: italic; - font-weight: 700; - src: - url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"), - url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"), - url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Main; - font-style: italic; - font-weight: 400; - src: - url(fonts/KaTeX_Main-Italic.woff2) format("woff2"), - url(fonts/KaTeX_Main-Italic.woff) format("woff"), - url(fonts/KaTeX_Main-Italic.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Main; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Main-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Main-Regular.woff) format("woff"), - url(fonts/KaTeX_Main-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Math; - font-style: italic; - font-weight: 700; - src: - url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"), - url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"), - url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Math; - font-style: italic; - font-weight: 400; - src: - url(fonts/KaTeX_Math-Italic.woff2) format("woff2"), - url(fonts/KaTeX_Math-Italic.woff) format("woff"), - url(fonts/KaTeX_Math-Italic.ttf) format("truetype"); -} -@font-face { - font-family: "KaTeX_SansSerif"; - font-style: normal; - font-weight: 700; - src: - url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"), - url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"), - url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype"); -} -@font-face { - font-family: "KaTeX_SansSerif"; - font-style: italic; - font-weight: 400; - src: - url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"), - url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"), - url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype"); -} -@font-face { - font-family: "KaTeX_SansSerif"; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"), - url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"), - url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Script; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Script-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Script-Regular.woff) format("woff"), - url(fonts/KaTeX_Script-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Size1; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Size1-Regular.woff) format("woff"), - url(fonts/KaTeX_Size1-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Size2; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Size2-Regular.woff) format("woff"), - url(fonts/KaTeX_Size2-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Size3; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Size3-Regular.woff) format("woff"), - url(fonts/KaTeX_Size3-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Size4; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Size4-Regular.woff) format("woff"), - url(fonts/KaTeX_Size4-Regular.ttf) format("truetype"); -} -@font-face { - font-family: KaTeX_Typewriter; - font-style: normal; - font-weight: 400; - src: - url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"), - url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"), - url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype"); -} -.katex { - text-rendering: auto; - font: - normal 1.21em KaTeX_Main, - Times New Roman, - serif; - line-height: 1.2; - text-indent: 0; -} -.katex * { - -ms-high-contrast-adjust: none !important; - border-color: currentColor; -} -.katex .katex-version:after { - content: "0.16.0"; -} -.katex .katex-mathml { - clip: rect(1px, 1px, 1px, 1px); - border: 0; - height: 1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} -.katex .katex-html > .newline { - display: block; -} -.katex .base { - position: relative; - white-space: nowrap; - width: -webkit-min-content; - width: -moz-min-content; - width: min-content; -} -.katex .base, -.katex .strut { - display: inline-block; -} -.katex .textbf { - font-weight: 700; -} -.katex .textit { - font-style: italic; -} -.katex .textrm { - font-family: KaTeX_Main; -} -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .texttt { - font-family: KaTeX_Typewriter; -} -.katex .mathnormal { - font-family: KaTeX_Math; - font-style: italic; -} -.katex .mathit { - font-family: KaTeX_Main; - font-style: italic; -} -.katex .mathrm { - font-style: normal; -} -.katex .mathbf { - font-family: KaTeX_Main; - font-weight: 700; -} -.katex .boldsymbol { - font-family: KaTeX_Math; - font-style: italic; - font-weight: 700; -} -.katex .amsrm, -.katex .mathbb, -.katex .textbb { - font-family: KaTeX_AMS; -} -.katex .mathcal { - font-family: KaTeX_Caligraphic; -} -.katex .mathfrak, -.katex .textfrak { - font-family: KaTeX_Fraktur; -} -.katex .mathtt { - font-family: KaTeX_Typewriter; -} -.katex .mathscr, -.katex .textscr { - font-family: KaTeX_Script; -} -.katex .mathsf, -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .mathboldsf, -.katex .textboldsf { - font-family: KaTeX_SansSerif; - font-weight: 700; -} -.katex .mathitsf, -.katex .textitsf { - font-family: KaTeX_SansSerif; - font-style: italic; -} -.katex .mainrm { - font-family: KaTeX_Main; - font-style: normal; -} -.katex .vlist-t { - border-collapse: collapse; - display: inline-table; - table-layout: fixed; -} -.katex .vlist-r { - display: table-row; -} -.katex .vlist { - display: table-cell; - position: relative; - vertical-align: bottom; -} -.katex .vlist > span { - display: block; - height: 0; - position: relative; -} -.katex .vlist > span > span { - display: inline-block; -} -.katex .vlist > span > .pstrut { - overflow: hidden; - width: 0; -} -.katex .vlist-t2 { - margin-right: -2px; -} -.katex .vlist-s { - display: table-cell; - font-size: 1px; - min-width: 2px; - vertical-align: bottom; - width: 2px; -} -.katex .vbox { - align-items: baseline; - display: inline-flex; - flex-direction: column; -} -.katex .hbox { - width: 100%; -} -.katex .hbox, -.katex .thinbox { - display: inline-flex; - flex-direction: row; -} -.katex .thinbox { - max-width: 0; - width: 0; -} -.katex .msupsub { - text-align: left; -} -.katex .mfrac > span > span { - text-align: center; -} -.katex .mfrac .frac-line { - border-bottom-style: solid; - display: inline-block; - width: 100%; -} -.katex .hdashline, -.katex .hline, -.katex .mfrac .frac-line, -.katex .overline .overline-line, -.katex .rule, -.katex .underline .underline-line { - min-height: 1px; -} -.katex .mspace { - display: inline-block; -} -.katex .clap, -.katex .llap, -.katex .rlap { - position: relative; - width: 0; -} -.katex .clap > .inner, -.katex .llap > .inner, -.katex .rlap > .inner { - position: absolute; -} -.katex .clap > .fix, -.katex .llap > .fix, -.katex .rlap > .fix { - display: inline-block; -} -.katex .llap > .inner { - right: 0; -} -.katex .clap > .inner, -.katex .rlap > .inner { - left: 0; -} -.katex .clap > .inner > span { - margin-left: -50%; - margin-right: 50%; -} -.katex .rule { - border: 0 solid; - display: inline-block; - position: relative; -} -.katex .hline, -.katex .overline .overline-line, -.katex .underline .underline-line { - border-bottom-style: solid; - display: inline-block; - width: 100%; -} -.katex .hdashline { - border-bottom-style: dashed; - display: inline-block; - width: 100%; -} -.katex .sqrt > .root { - margin-left: 0.27777778em; - margin-right: -0.55555556em; -} -.katex .fontsize-ensurer.reset-size1.size1, -.katex .sizing.reset-size1.size1 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size1.size2, -.katex .sizing.reset-size1.size2 { - font-size: 1.2em; -} -.katex .fontsize-ensurer.reset-size1.size3, -.katex .sizing.reset-size1.size3 { - font-size: 1.4em; -} -.katex .fontsize-ensurer.reset-size1.size4, -.katex .sizing.reset-size1.size4 { - font-size: 1.6em; -} -.katex .fontsize-ensurer.reset-size1.size5, -.katex .sizing.reset-size1.size5 { - font-size: 1.8em; -} -.katex .fontsize-ensurer.reset-size1.size6, -.katex .sizing.reset-size1.size6 { - font-size: 2em; -} -.katex .fontsize-ensurer.reset-size1.size7, -.katex .sizing.reset-size1.size7 { - font-size: 2.4em; -} -.katex .fontsize-ensurer.reset-size1.size8, -.katex .sizing.reset-size1.size8 { - font-size: 2.88em; -} -.katex .fontsize-ensurer.reset-size1.size9, -.katex .sizing.reset-size1.size9 { - font-size: 3.456em; -} -.katex .fontsize-ensurer.reset-size1.size10, -.katex .sizing.reset-size1.size10 { - font-size: 4.148em; -} -.katex .fontsize-ensurer.reset-size1.size11, -.katex .sizing.reset-size1.size11 { - font-size: 4.976em; -} -.katex .fontsize-ensurer.reset-size2.size1, -.katex .sizing.reset-size2.size1 { - font-size: 0.83333333em; -} -.katex .fontsize-ensurer.reset-size2.size2, -.katex .sizing.reset-size2.size2 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size2.size3, -.katex .sizing.reset-size2.size3 { - font-size: 1.16666667em; -} -.katex .fontsize-ensurer.reset-size2.size4, -.katex .sizing.reset-size2.size4 { - font-size: 1.33333333em; -} -.katex .fontsize-ensurer.reset-size2.size5, -.katex .sizing.reset-size2.size5 { - font-size: 1.5em; -} -.katex .fontsize-ensurer.reset-size2.size6, -.katex .sizing.reset-size2.size6 { - font-size: 1.66666667em; -} -.katex .fontsize-ensurer.reset-size2.size7, -.katex .sizing.reset-size2.size7 { - font-size: 2em; -} -.katex .fontsize-ensurer.reset-size2.size8, -.katex .sizing.reset-size2.size8 { - font-size: 2.4em; -} -.katex .fontsize-ensurer.reset-size2.size9, -.katex .sizing.reset-size2.size9 { - font-size: 2.88em; -} -.katex .fontsize-ensurer.reset-size2.size10, -.katex .sizing.reset-size2.size10 { - font-size: 3.45666667em; -} -.katex .fontsize-ensurer.reset-size2.size11, -.katex .sizing.reset-size2.size11 { - font-size: 4.14666667em; -} -.katex .fontsize-ensurer.reset-size3.size1, -.katex .sizing.reset-size3.size1 { - font-size: 0.71428571em; -} -.katex .fontsize-ensurer.reset-size3.size2, -.katex .sizing.reset-size3.size2 { - font-size: 0.85714286em; -} -.katex .fontsize-ensurer.reset-size3.size3, -.katex .sizing.reset-size3.size3 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size3.size4, -.katex .sizing.reset-size3.size4 { - font-size: 1.14285714em; -} -.katex .fontsize-ensurer.reset-size3.size5, -.katex .sizing.reset-size3.size5 { - font-size: 1.28571429em; -} -.katex .fontsize-ensurer.reset-size3.size6, -.katex .sizing.reset-size3.size6 { - font-size: 1.42857143em; -} -.katex .fontsize-ensurer.reset-size3.size7, -.katex .sizing.reset-size3.size7 { - font-size: 1.71428571em; -} -.katex .fontsize-ensurer.reset-size3.size8, -.katex .sizing.reset-size3.size8 { - font-size: 2.05714286em; -} -.katex .fontsize-ensurer.reset-size3.size9, -.katex .sizing.reset-size3.size9 { - font-size: 2.46857143em; -} -.katex .fontsize-ensurer.reset-size3.size10, -.katex .sizing.reset-size3.size10 { - font-size: 2.96285714em; -} -.katex .fontsize-ensurer.reset-size3.size11, -.katex .sizing.reset-size3.size11 { - font-size: 3.55428571em; -} -.katex .fontsize-ensurer.reset-size4.size1, -.katex .sizing.reset-size4.size1 { - font-size: 0.625em; -} -.katex .fontsize-ensurer.reset-size4.size2, -.katex .sizing.reset-size4.size2 { - font-size: 0.75em; -} -.katex .fontsize-ensurer.reset-size4.size3, -.katex .sizing.reset-size4.size3 { - font-size: 0.875em; -} -.katex .fontsize-ensurer.reset-size4.size4, -.katex .sizing.reset-size4.size4 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size4.size5, -.katex .sizing.reset-size4.size5 { - font-size: 1.125em; -} -.katex .fontsize-ensurer.reset-size4.size6, -.katex .sizing.reset-size4.size6 { - font-size: 1.25em; -} -.katex .fontsize-ensurer.reset-size4.size7, -.katex .sizing.reset-size4.size7 { - font-size: 1.5em; -} -.katex .fontsize-ensurer.reset-size4.size8, -.katex .sizing.reset-size4.size8 { - font-size: 1.8em; -} -.katex .fontsize-ensurer.reset-size4.size9, -.katex .sizing.reset-size4.size9 { - font-size: 2.16em; -} -.katex .fontsize-ensurer.reset-size4.size10, -.katex .sizing.reset-size4.size10 { - font-size: 2.5925em; -} -.katex .fontsize-ensurer.reset-size4.size11, -.katex .sizing.reset-size4.size11 { - font-size: 3.11em; -} -.katex .fontsize-ensurer.reset-size5.size1, -.katex .sizing.reset-size5.size1 { - font-size: 0.55555556em; -} -.katex .fontsize-ensurer.reset-size5.size2, -.katex .sizing.reset-size5.size2 { - font-size: 0.66666667em; -} -.katex .fontsize-ensurer.reset-size5.size3, -.katex .sizing.reset-size5.size3 { - font-size: 0.77777778em; -} -.katex .fontsize-ensurer.reset-size5.size4, -.katex .sizing.reset-size5.size4 { - font-size: 0.88888889em; -} -.katex .fontsize-ensurer.reset-size5.size5, -.katex .sizing.reset-size5.size5 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size5.size6, -.katex .sizing.reset-size5.size6 { - font-size: 1.11111111em; -} -.katex .fontsize-ensurer.reset-size5.size7, -.katex .sizing.reset-size5.size7 { - font-size: 1.33333333em; -} -.katex .fontsize-ensurer.reset-size5.size8, -.katex .sizing.reset-size5.size8 { - font-size: 1.6em; -} -.katex .fontsize-ensurer.reset-size5.size9, -.katex .sizing.reset-size5.size9 { - font-size: 1.92em; -} -.katex .fontsize-ensurer.reset-size5.size10, -.katex .sizing.reset-size5.size10 { - font-size: 2.30444444em; -} -.katex .fontsize-ensurer.reset-size5.size11, -.katex .sizing.reset-size5.size11 { - font-size: 2.76444444em; -} -.katex .fontsize-ensurer.reset-size6.size1, -.katex .sizing.reset-size6.size1 { - font-size: 0.5em; -} -.katex .fontsize-ensurer.reset-size6.size2, -.katex .sizing.reset-size6.size2 { - font-size: 0.6em; -} -.katex .fontsize-ensurer.reset-size6.size3, -.katex .sizing.reset-size6.size3 { - font-size: 0.7em; -} -.katex .fontsize-ensurer.reset-size6.size4, -.katex .sizing.reset-size6.size4 { - font-size: 0.8em; -} -.katex .fontsize-ensurer.reset-size6.size5, -.katex .sizing.reset-size6.size5 { - font-size: 0.9em; -} -.katex .fontsize-ensurer.reset-size6.size6, -.katex .sizing.reset-size6.size6 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size6.size7, -.katex .sizing.reset-size6.size7 { - font-size: 1.2em; -} -.katex .fontsize-ensurer.reset-size6.size8, -.katex .sizing.reset-size6.size8 { - font-size: 1.44em; -} -.katex .fontsize-ensurer.reset-size6.size9, -.katex .sizing.reset-size6.size9 { - font-size: 1.728em; -} -.katex .fontsize-ensurer.reset-size6.size10, -.katex .sizing.reset-size6.size10 { - font-size: 2.074em; -} -.katex .fontsize-ensurer.reset-size6.size11, -.katex .sizing.reset-size6.size11 { - font-size: 2.488em; -} -.katex .fontsize-ensurer.reset-size7.size1, -.katex .sizing.reset-size7.size1 { - font-size: 0.41666667em; -} -.katex .fontsize-ensurer.reset-size7.size2, -.katex .sizing.reset-size7.size2 { - font-size: 0.5em; -} -.katex .fontsize-ensurer.reset-size7.size3, -.katex .sizing.reset-size7.size3 { - font-size: 0.58333333em; -} -.katex .fontsize-ensurer.reset-size7.size4, -.katex .sizing.reset-size7.size4 { - font-size: 0.66666667em; -} -.katex .fontsize-ensurer.reset-size7.size5, -.katex .sizing.reset-size7.size5 { - font-size: 0.75em; -} -.katex .fontsize-ensurer.reset-size7.size6, -.katex .sizing.reset-size7.size6 { - font-size: 0.83333333em; -} -.katex .fontsize-ensurer.reset-size7.size7, -.katex .sizing.reset-size7.size7 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size7.size8, -.katex .sizing.reset-size7.size8 { - font-size: 1.2em; -} -.katex .fontsize-ensurer.reset-size7.size9, -.katex .sizing.reset-size7.size9 { - font-size: 1.44em; -} -.katex .fontsize-ensurer.reset-size7.size10, -.katex .sizing.reset-size7.size10 { - font-size: 1.72833333em; -} -.katex .fontsize-ensurer.reset-size7.size11, -.katex .sizing.reset-size7.size11 { - font-size: 2.07333333em; -} -.katex .fontsize-ensurer.reset-size8.size1, -.katex .sizing.reset-size8.size1 { - font-size: 0.34722222em; -} -.katex .fontsize-ensurer.reset-size8.size2, -.katex .sizing.reset-size8.size2 { - font-size: 0.41666667em; -} -.katex .fontsize-ensurer.reset-size8.size3, -.katex .sizing.reset-size8.size3 { - font-size: 0.48611111em; -} -.katex .fontsize-ensurer.reset-size8.size4, -.katex .sizing.reset-size8.size4 { - font-size: 0.55555556em; -} -.katex .fontsize-ensurer.reset-size8.size5, -.katex .sizing.reset-size8.size5 { - font-size: 0.625em; -} -.katex .fontsize-ensurer.reset-size8.size6, -.katex .sizing.reset-size8.size6 { - font-size: 0.69444444em; -} -.katex .fontsize-ensurer.reset-size8.size7, -.katex .sizing.reset-size8.size7 { - font-size: 0.83333333em; -} -.katex .fontsize-ensurer.reset-size8.size8, -.katex .sizing.reset-size8.size8 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size8.size9, -.katex .sizing.reset-size8.size9 { - font-size: 1.2em; -} -.katex .fontsize-ensurer.reset-size8.size10, -.katex .sizing.reset-size8.size10 { - font-size: 1.44027778em; -} -.katex .fontsize-ensurer.reset-size8.size11, -.katex .sizing.reset-size8.size11 { - font-size: 1.72777778em; -} -.katex .fontsize-ensurer.reset-size9.size1, -.katex .sizing.reset-size9.size1 { - font-size: 0.28935185em; -} -.katex .fontsize-ensurer.reset-size9.size2, -.katex .sizing.reset-size9.size2 { - font-size: 0.34722222em; -} -.katex .fontsize-ensurer.reset-size9.size3, -.katex .sizing.reset-size9.size3 { - font-size: 0.40509259em; -} -.katex .fontsize-ensurer.reset-size9.size4, -.katex .sizing.reset-size9.size4 { - font-size: 0.46296296em; -} -.katex .fontsize-ensurer.reset-size9.size5, -.katex .sizing.reset-size9.size5 { - font-size: 0.52083333em; -} -.katex .fontsize-ensurer.reset-size9.size6, -.katex .sizing.reset-size9.size6 { - font-size: 0.5787037em; -} -.katex .fontsize-ensurer.reset-size9.size7, -.katex .sizing.reset-size9.size7 { - font-size: 0.69444444em; -} -.katex .fontsize-ensurer.reset-size9.size8, -.katex .sizing.reset-size9.size8 { - font-size: 0.83333333em; -} -.katex .fontsize-ensurer.reset-size9.size9, -.katex .sizing.reset-size9.size9 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size9.size10, -.katex .sizing.reset-size9.size10 { - font-size: 1.20023148em; -} -.katex .fontsize-ensurer.reset-size9.size11, -.katex .sizing.reset-size9.size11 { - font-size: 1.43981481em; -} -.katex .fontsize-ensurer.reset-size10.size1, -.katex .sizing.reset-size10.size1 { - font-size: 0.24108004em; -} -.katex .fontsize-ensurer.reset-size10.size2, -.katex .sizing.reset-size10.size2 { - font-size: 0.28929605em; -} -.katex .fontsize-ensurer.reset-size10.size3, -.katex .sizing.reset-size10.size3 { - font-size: 0.33751205em; -} -.katex .fontsize-ensurer.reset-size10.size4, -.katex .sizing.reset-size10.size4 { - font-size: 0.38572806em; -} -.katex .fontsize-ensurer.reset-size10.size5, -.katex .sizing.reset-size10.size5 { - font-size: 0.43394407em; -} -.katex .fontsize-ensurer.reset-size10.size6, -.katex .sizing.reset-size10.size6 { - font-size: 0.48216008em; -} -.katex .fontsize-ensurer.reset-size10.size7, -.katex .sizing.reset-size10.size7 { - font-size: 0.57859209em; -} -.katex .fontsize-ensurer.reset-size10.size8, -.katex .sizing.reset-size10.size8 { - font-size: 0.69431051em; -} -.katex .fontsize-ensurer.reset-size10.size9, -.katex .sizing.reset-size10.size9 { - font-size: 0.83317261em; -} -.katex .fontsize-ensurer.reset-size10.size10, -.katex .sizing.reset-size10.size10 { - font-size: 1em; -} -.katex .fontsize-ensurer.reset-size10.size11, -.katex .sizing.reset-size10.size11 { - font-size: 1.19961427em; -} -.katex .fontsize-ensurer.reset-size11.size1, -.katex .sizing.reset-size11.size1 { - font-size: 0.20096463em; -} -.katex .fontsize-ensurer.reset-size11.size2, -.katex .sizing.reset-size11.size2 { - font-size: 0.24115756em; -} -.katex .fontsize-ensurer.reset-size11.size3, -.katex .sizing.reset-size11.size3 { - font-size: 0.28135048em; -} -.katex .fontsize-ensurer.reset-size11.size4, -.katex .sizing.reset-size11.size4 { - font-size: 0.32154341em; -} -.katex .fontsize-ensurer.reset-size11.size5, -.katex .sizing.reset-size11.size5 { - font-size: 0.36173633em; -} -.katex .fontsize-ensurer.reset-size11.size6, -.katex .sizing.reset-size11.size6 { - font-size: 0.40192926em; -} -.katex .fontsize-ensurer.reset-size11.size7, -.katex .sizing.reset-size11.size7 { - font-size: 0.48231511em; -} -.katex .fontsize-ensurer.reset-size11.size8, -.katex .sizing.reset-size11.size8 { - font-size: 0.57877814em; -} -.katex .fontsize-ensurer.reset-size11.size9, -.katex .sizing.reset-size11.size9 { - font-size: 0.69453376em; -} -.katex .fontsize-ensurer.reset-size11.size10, -.katex .sizing.reset-size11.size10 { - font-size: 0.83360129em; -} -.katex .fontsize-ensurer.reset-size11.size11, -.katex .sizing.reset-size11.size11 { - font-size: 1em; -} -.katex .delimsizing.size1 { - font-family: KaTeX_Size1; -} -.katex .delimsizing.size2 { - font-family: KaTeX_Size2; -} -.katex .delimsizing.size3 { - font-family: KaTeX_Size3; -} -.katex .delimsizing.size4 { - font-family: KaTeX_Size4; -} -.katex .delimsizing.mult .delim-size1 > span { - font-family: KaTeX_Size1; -} -.katex .delimsizing.mult .delim-size4 > span { - font-family: KaTeX_Size4; -} -.katex .nulldelimiter { - display: inline-block; - width: 0.12em; -} -.katex .delimcenter, -.katex .op-symbol { - position: relative; -} -.katex .op-symbol.small-op { - font-family: KaTeX_Size1; -} -.katex .op-symbol.large-op { - font-family: KaTeX_Size2; -} -.katex .accent > .vlist-t, -.katex .op-limits > .vlist-t { - text-align: center; -} -.katex .accent .accent-body { - position: relative; -} -.katex .accent .accent-body:not(.accent-full) { - width: 0; -} -.katex .overlay { - display: block; -} -.katex .mtable .vertical-separator { - display: inline-block; - min-width: 1px; -} -.katex .mtable .arraycolsep { - display: inline-block; -} -.katex .mtable .col-align-c > .vlist-t { - text-align: center; -} -.katex .mtable .col-align-l > .vlist-t { - text-align: left; -} -.katex .mtable .col-align-r > .vlist-t { - text-align: right; -} -.katex .svg-align { - text-align: left; -} -.katex svg { - fill: currentColor; - stroke: currentColor; - fill-rule: nonzero; - fill-opacity: 1; - stroke-width: 1; - stroke-linecap: butt; - stroke-linejoin: miter; - stroke-miterlimit: 4; - stroke-dasharray: none; - stroke-dashoffset: 0; - stroke-opacity: 1; - display: block; - height: inherit; - position: absolute; - width: 100%; -} -.katex svg path { - stroke: none; -} -.katex img { - border-style: none; - max-height: none; - max-width: none; - min-height: 0; - min-width: 0; -} -.katex .stretchy { - display: block; - overflow: hidden; - position: relative; - width: 100%; -} -.katex .stretchy:after, -.katex .stretchy:before { - content: ""; -} -.katex .hide-tail { - overflow: hidden; - position: relative; - width: 100%; -} -.katex .halfarrow-left { - left: 0; - overflow: hidden; - position: absolute; - width: 50.2%; -} -.katex .halfarrow-right { - overflow: hidden; - position: absolute; - right: 0; - width: 50.2%; -} -.katex .brace-left { - left: 0; - overflow: hidden; - position: absolute; - width: 25.1%; -} -.katex .brace-center { - left: 25%; - overflow: hidden; - position: absolute; - width: 50%; -} -.katex .brace-right { - overflow: hidden; - position: absolute; - right: 0; - width: 25.1%; -} -.katex .x-arrow-pad { - padding: 0 0.5em; -} -.katex .cd-arrow-pad { - padding: 0 0.55556em 0 0.27778em; -} -.katex .mover, -.katex .munder, -.katex .x-arrow { - text-align: center; -} -.katex .boxpad { - padding: 0 0.3em; -} -.katex .fbox, -.katex .fcolorbox { - border: 0.04em solid; - box-sizing: border-box; -} -.katex .cancel-pad { - padding: 0 0.2em; -} -.katex .cancel-lap { - margin-left: -0.2em; - margin-right: -0.2em; -} -.katex .sout { - border-bottom-style: solid; - border-bottom-width: 0.08em; -} -.katex .angl { - border-right: 0.049em solid; - border-top: 0.049em solid; - box-sizing: border-box; - margin-right: 0.03889em; -} -.katex .anglpad { - padding: 0 0.03889em; -} -.katex .eqn-num:before { - content: "(" counter(katexEqnNo) ")"; - counter-increment: katexEqnNo; -} -.katex .mml-eqn-num:before { - content: "(" counter(mmlEqnNo) ")"; - counter-increment: mmlEqnNo; -} -.katex .mtr-glue { - width: 50%; -} -.katex .cd-vert-arrow { - display: inline-block; - position: relative; -} -.katex .cd-label-left { - display: inline-block; - position: absolute; - right: calc(50% + 0.3em); - text-align: left; -} -.katex .cd-label-right { - display: inline-block; - left: calc(50% + 0.3em); - position: absolute; - text-align: right; -} -.katex-display { - display: block; - margin: 1em 0; - text-align: center; -} -.katex-display > .katex { - display: block; - text-align: center; - white-space: nowrap; -} -.katex-display > .katex > .katex-html { - display: block; - position: relative; -} -.katex-display > .katex > .katex-html > .tag { - position: absolute; - right: 0; -} -.katex-display.leqno > .katex > .katex-html > .tag { - left: 0; - right: auto; -} -.katex-display.fleqn > .katex { - padding-left: 2em; - text-align: left; -} -body { - counter-reset: katexEqnNo mmlEqnNo; -} From 4f7d9c8e533a261a2aa37059d78a50e81251f81e Mon Sep 17 00:00:00 2001 From: IlaBot Date: Thu, 26 Oct 2023 11:23:31 +0000 Subject: [PATCH 05/11] chore: auto update i18n file --- src/lang/en/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lang/en/settings.json b/src/lang/en/settings.json index 0b2591ea5..4b2be0cde 100755 --- a/src/lang/en/settings.json +++ b/src/lang/en/settings.json @@ -23,6 +23,7 @@ }, "home_icon": "Home icon", "iframe_previews": "Iframe previews", + "ignore_direct_link_params": "Ignore direct link params", "ignore_paths": "Ignore paths", "ignore_paths-tips": "one path per line", "image_types": "Image types", @@ -88,4 +89,4 @@ "video_autoplay": "Video autoplay", "video_types": "Video types", "webauthn_login_enabled": "Webauthn login enabled" -} +} \ No newline at end of file From 1243b9fb719fbc5e1989e811cd0b9516218ba7a3 Mon Sep 17 00:00:00 2001 From: Isla Date: Thu, 26 Oct 2023 11:24:14 +0000 Subject: [PATCH 06/11] style: format code with prettier --- src/lang/en/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/en/settings.json b/src/lang/en/settings.json index 4b2be0cde..de5b48263 100755 --- a/src/lang/en/settings.json +++ b/src/lang/en/settings.json @@ -89,4 +89,4 @@ "video_autoplay": "Video autoplay", "video_types": "Video types", "webauthn_login_enabled": "Webauthn login enabled" -} \ No newline at end of file +} From 82869dd2eb85e064990f00b302f35ae966852508 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Thu, 26 Oct 2023 19:25:16 +0800 Subject: [PATCH 07/11] chore: change ts query key --- src/utils/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/api.ts b/src/utils/api.ts index 478a0b0ff..390ab5fc9 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -125,7 +125,7 @@ export const fetchText = async ( responseType: "blob", params: ts ? { - ts: new Date().getTime(), + alist_ts: new Date().getTime(), } : undefined, }) From d34ada4f46a12954c8455d9310e9a5aee55b7b14 Mon Sep 17 00:00:00 2001 From: IlaBot Date: Sat, 4 Nov 2023 05:37:23 +0000 Subject: [PATCH 08/11] chore: auto update i18n file --- src/lang/en/drivers.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lang/en/drivers.json b/src/lang/en/drivers.json index 1628d3f1f..dccb3a1f5 100755 --- a/src/lang/en/drivers.json +++ b/src/lang/en/drivers.json @@ -245,6 +245,7 @@ "address": "Address", "cookie": "Cookie", "custom_ua": "Custom ua", + "enable_thumb_and_folder_size": "Enable thumb and folder size", "password": "Password", "root_folder_path": "Root folder path", "username": "Username" @@ -793,4 +794,4 @@ "WoPan": "WoPan", "YandexDisk": "YandexDisk" } -} +} \ No newline at end of file From 9007f34d876ba42bdda769744a5c7cfe5505529a Mon Sep 17 00:00:00 2001 From: Isla Date: Sat, 4 Nov 2023 05:38:03 +0000 Subject: [PATCH 09/11] style: format code with prettier --- src/lang/en/drivers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/en/drivers.json b/src/lang/en/drivers.json index dccb3a1f5..a29617f7c 100755 --- a/src/lang/en/drivers.json +++ b/src/lang/en/drivers.json @@ -794,4 +794,4 @@ "WoPan": "WoPan", "YandexDisk": "YandexDisk" } -} \ No newline at end of file +} From 1e539c910498933f3927531aa439fbc8e90a6bd9 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sun, 5 Nov 2023 22:26:05 +0800 Subject: [PATCH 10/11] fix: package download setting does not take effect (close alist-org/alist#5478) --- src/pages/home/toolbar/Download.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/home/toolbar/Download.tsx b/src/pages/home/toolbar/Download.tsx index aa2372888..70471203d 100644 --- a/src/pages/home/toolbar/Download.tsx +++ b/src/pages/home/toolbar/Download.tsx @@ -59,6 +59,7 @@ export const PackageDownloadModal = () => { const t = useT() const handler = (name: string) => { if (name === "package_download") { + if (!getSettingBool("package_download")) return onOpen() } } From 243416a5c5e9ea4dc646633ef8079bb165f4db6c Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:31:17 +0800 Subject: [PATCH 11/11] feat: audio player use list order by default (#115) --- src/pages/home/previews/audio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/previews/audio.tsx b/src/pages/home/previews/audio.tsx index d34641cc1..d23d3ca61 100644 --- a/src/pages/home/previews/audio.tsx +++ b/src/pages/home/previews/audio.tsx @@ -39,7 +39,7 @@ const Preview = () => { mini: false, autoplay: getSettingBool("audio_autoplay"), loop: "all", - order: "random", + order: "list", preload: "auto", volume: 0.7, mutex: true,