alist-org / alist-web Goto Github PK
View Code? Open in Web Editor NEW🗂️ The front end of Alist V3 (A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs)
Home Page: https://alist.pages.dev
🗂️ The front end of Alist V3 (A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs)
Home Page: https://alist.pages.dev
index.html 加入
<script>
window.ALIST = {
cdn: undefined,
monaco_cdn: undefined,
base_path: undefined,
api: 'https://qc.xx.cn/file/',
main_color: undefined,
}
window.dynamic_base = 'https://qc.xx.cn/xx'
</script>
但是网页上会出现file的这个路由,并且在增加文件时会出现file这个文件夹
我也想部署到pages上,但是怎么弄都不行,能出个教程吗?谢谢。
✓ 51 modules transformed.
x Build failed in 1.20s
error during build:
Error: [commonjs--resolver] Missing "./lib" specifier in "solid-icons" package
at e (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:47581:25)
at n (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:47581:627)
at o (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:47581:1297)
at resolveExportsOrImports (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:48271:20)
at resolveDeepImport (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:48290:31)
at tryNodeResolve (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:48015:20)
at Object.resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:47765:28)
at file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:19563:40
at async PluginDriver.hookFirstAndGetPlugin (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:19463:28)
at async resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:18144:26)
at async ModuleLoader.resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:18547:15)
at async Object.resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/vite/dist/node/chunks/dep-B-u6xNiR.js:8237:10)
at async PluginDriver.hookFirstAndGetPlugin (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:19463:28)
at async resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:18144:26)
at async ModuleLoader.resolveId (file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:18547:15)
at async file:///D:/Sam/FamilyApp/alist/web/node_modules/rollup/dist/es/shared/node-entry.js:18851:50
正常情况下没有问题,如果放在二级路由下,就会出现问题
我在分支和tag没有找到
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @motionone/solid |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
rehype-katex
, remark-gfm
, remark-math
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/build.yml
actions/setup-node v4
pnpm/action-setup v4
actions/checkout v4
actions/checkout v4
.github/workflows/format.yml
actions/checkout v4
pnpm/action-setup v4
actions/setup-node v4
stefanzweifel/git-auto-commit-action v4
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
pnpm/action-setup v4
actions/checkout v4
actions/checkout v4
softprops/action-gh-release v1
package.json
@egjs/view360 4.0.0-beta.7
@github/webauthn-json ^2.1.1
@hope-ui/solid 0.6.7
@monaco-editor/loader ^1.4.0
@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
@viselect/vanilla ^3.5.0
aplayer ^1.10.1
artplayer ^5.0.9
artplayer-plugin-danmuku ^5.0.1
asciinema-player ^3.6.3
axios ^1.0.0
clsx ^2.0.0
copy-to-clipboard ^3.3.2
crypto-js ^4.2.0
flv.js ^1.6.2
hls.js ^1.2.1
just-once ^2.2.0
libass-wasm ^4.1.0
lightgallery ^2.5.0
mark.js ^8.11.1
mitt ^3.0.0
rehype-katex ^6.0.3
rehype-raw ^6.1.1
remark-gfm ^3.0.1
remark-math ^5.1.1
seemly ^0.3.6
sha256 ^0.2.0
solid-contextmenu 0.0.2
solid-icons ^1.0.1
solid-js ^1.4.8
solid-markdown ^1.2.0
solid-transition-group ^0.0.12
streamsaver ^2.0.6
typescript-natural-sort ^0.7.2
@crowdin/cli ^3.7.10
@hrgui/libass-wasm-ts ^1.0.3
@types/mark.js ^8.11.8
@types/node ^20.0.0
@types/sha256 ^0.2.0
@types/streamsaver ^2.0.1
@vitejs/plugin-legacy ^2.0.1
husky ^8.0.2
lint-staged ^13.0.4
prettier 3.1.1
rollup-plugin-copy ^3.5.0
terser ^5.14.2
typescript ^4.7.4
vite ^3.0.8
vite-plugin-dynamic-base ^0.4.4
vite-plugin-solid ^2.3.0
pnpm 8.6.10
index.tsx:15 error TypeError: route.outlet is not a function
at get children (components.tsx:140:64)
at Object.fn (chunk-AEQI6GRA.js?v=67c196e6:1182:37)
at runComputation (chunk-AEQI6GRA.js?v=67c196e6:809:22)
at updateComputation (chunk-AEQI6GRA.js?v=67c196e6:788:3)
at createMemo (chunk-AEQI6GRA.js?v=67c196e6:273:5)
at children (chunk-AEQI6GRA.js?v=67c196e6:668:21)
at chunk-AEQI6GRA.js?v=67c196e6:1182:16
at untrack (chunk-AEQI6GRA.js?v=67c196e6:513:12)
at Object.fn (chunk-AEQI6GRA.js?v=67c196e6:1177:19)
at runComputation (chunk-AEQI6GRA.js?v=67c196e6:809:22)
自带的文本编辑功能挺好用,有时网不好没保存上。
希望在更改后为保存或者api没响应时,阻止刷新事件,时提示尚未保存,是否确认刷新
执行npm install
报错:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/solid-transition-group
npm ERR! solid-transition-group@"^0.0.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer solid-transition-group@"^0.0.10" from @hope-ui/[email protected]
npm ERR! node_modules/@hope-ui/solid
npm ERR! @hope-ui/solid@"0.6.7" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
如果npm install --legacy-peer-deps
强制安装, npm run build
则会报错:
[vite:esbuild-transpile] Transform failed with 1 error:
assets/Upload.2d6e03b0.js:4:0: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
1 | import { b6 as instance, _ as _password, o as objStore, d as useT, u as useRouter, e as createSignal, bw as createStore, f as createComponent, m as Show, a0 as HStack, B as Button, v as For, I as Input, W as VStack, a7 as getMainColor, n as notify, bf as Heading, Y as Box, aP as SelectWrapper, a6 as IconButton, bv as Checkbox, bc as Text, bx as Badge, t as createMemo, by as getFileSize, bz as Progress, bA as ProgressIndicator, p as pathJoin } from './index.db59f15c.js';
2 | import { a as RiDocumentFolderUploadFill, b as RiDocumentFileUploadFill } from './index.8a3582fc.js';
3 |
| ^
4 | async function* asyncPool(poolLimit, array, iteratorFn) {
| ^
5 | const executing = /* @__PURE__ */ new Set();
error during build:
Error: Transform failed with 1 error:
assets/Upload.2d6e03b0.js:4:0: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
> [email protected] build
> vite build
vite v3.2.5 building for production...
✓ 595 modules transformed.
而使用pnpm install
时, npm run build
构建成功, 显示vite版本:
> [email protected] build
> vite build
vite v3.0.8 building for production...
✓ 595 modules transformed.
应该是package.json
的依赖版本问题, 不过回溯几个commit都有相同问题
Alist-Web版本:v3.0.1
环境信息:
系统版本:Centos 7.6.1810
nodejs版本:v16.15.0
gcc版本:9.3.1
git版本::1.8.3.1
go版本:1.19.1
pnpm版本:7.12.1
yarn版本: 8.5.5
npm版本:1.22.19
报错内容:
vite v3.1.3 building for production...
✓ 5 modules transformed.
[vite:load-fallback] Could not load /root/alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/root/alist/alist-web/solid-router/src'
error during build:
Error: Could not load /root/alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/root/alist/alist-web/solid-router/src'
把solid-router拉下来放进去也是报错这样,npm、yarn、pnpm都是这样报错,请指导;谢谢
.[vite:esbuild-transpile] Transform failed with 1 error:
assets/Upload.cfde3bad.js:4:0: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
当Alist配置https后,就没法再通过直连(存储设置中关闭Web代理)的方式下载文件了,尤其是存储后端是另一个Alist实例时。
具体现象为点击文件的下载按钮,新窗口一闪而过,什么事情都没有发生,也没有开始下载。必须要手动复制链接,然后粘贴到新页面里才能下载。
Chrome控制台此时会显示以下的错误:
Mixed Content: The site at 'https://xxx.com/' was loaded over a secure connection, but the file at 'https://xxx.com/xxx' was redirected through an insecure connection. This file should be served over HTTPS. See https://blog.chromium.org/2020/02/protecting-users-from-insecure.html for more details.
这个问题仅在Chrome浏览器上发现,Edge暂时可以正常下载。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.