Coder Social home page Coder Social logo

alist-org / alist-web Goto Github PK

View Code? Open in Web Editor NEW
333.0 5.0 377.0 7.39 MB

🗂️ 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

HTML 2.69% TypeScript 61.06% CSS 3.63% JavaScript 32.54% Shell 0.09%

alist-web's Introduction

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm dev or npm start

Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)

alist-web's People

Contributors

a57495681800 avatar anwen-anyi avatar boyanzh avatar coldice8 avatar diyanqi avatar fengkx avatar flashlab avatar hsubot avatar huelse avatar itshenry35 avatar j2rong4cn avatar jiz4oh avatar journey-ad avatar laoshubaby avatar liuycy avatar msterzhang avatar orangejx avatar panici4 avatar potoo0 avatar qilme avatar rektyfikowany avatar renovate[bot] avatar topjohncian avatar varg1714 avatar waiwaib avatar xfoxfu avatar xhofe avatar youshandefeiyang avatar zxdstyle avatar zzc10086 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alist-web's Issues

V3.0.1前端编译报错,请指导

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都是这样报错,请指导;谢谢

npm install error

执行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

复现#55, #2833中的问题, 此时vite版本:

> [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都有相同问题

when npm run build

.[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

npm run build报错,望指导!

✓ 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

Chrome浏览器不允许从https站点下载http链接

当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暂时可以正常下载。

编辑文本时未保存提示

自带的文本编辑功能挺好用,有时网不好没保存上。

希望在更改后为保存或者api没响应时,阻止刷新事件,时提示尚未保存,是否确认刷新

Dependency Dashboard

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 Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/sha256 to v0.2.2
  • chore(deps): update dependency @types/streamsaver to v2.0.4
  • chore(deps): update dependency husky to v8.0.3
  • chore(deps): update dependency vite-plugin-dynamic-base to v0.4.9
  • fix(deps): update dependency @solid-primitives/keyboard to v1.2.8
  • fix(deps): update dependency @solid-primitives/storage to v1.3.11
  • fix(deps): update dependency @viselect/vanilla to v3.5.1
  • fix(deps): update dependency copy-to-clipboard to v3.3.3
  • fix(deps): update dependency mitt to v3.0.1
  • fix(deps): update dependency seemly to v0.3.8
  • fix(deps): update dependency solid-markdown to v1.2.2
  • chore(deps): update dependency @crowdin/cli to v3.19.4
  • chore(deps): update dependency @types/node to v18.19.39
  • chore(deps): update dependency @vitejs/plugin-legacy to v2.3.1
  • chore(deps): update dependency lint-staged to v13.3.0
  • chore(deps): update dependency prettier to v3.3.3
  • chore(deps): update dependency terser to v5.31.2
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update dependency vite to v3.2.10
  • chore(deps): update dependency vite-plugin-solid to v2.10.2
  • fix(deps): update dependency @motionone/solid to v10.16.4
  • fix(deps): update dependency @solid-primitives/i18n to v1.4.1
  • fix(deps): update dependency artplayer to v5.1.6
  • fix(deps): update dependency artplayer-plugin-danmuku to v5.1.4
  • fix(deps): update dependency asciinema-player to v3.8.0
  • fix(deps): update dependency axios to v1.7.2
  • fix(deps): update dependency clsx to v2.1.1
  • fix(deps): update dependency hls.js to v1.5.13
  • fix(deps): update dependency lightgallery to v2.7.2
  • fix(deps): update dependency solid-icons to v1.1.0
  • fix(deps): update dependency solid-js to v1.8.18
  • chore(deps): update dependency @crowdin/cli to v4
  • chore(deps): update dependency husky to v9
  • chore(deps): update pnpm to v9
  • chore(deps): update softprops/action-gh-release action to v2
  • chore(deps): update stefanzweifel/git-auto-commit-action action to v5
  • fix(deps): update dependency @solid-primitives/i18n to v2
  • fix(deps): update dependency @solid-primitives/storage to v3
  • fix(deps): update dependency rehype-raw to v7
  • fix(deps): update dependency solid-markdown to v2
  • fix(deps): update remark (major) (rehype-katex, remark-gfm, remark-math)
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/setup-node v3
  • pnpm/action-setup v4
  • actions/checkout v4
  • actions/checkout v4
.github/workflows/format.yml
  • actions/checkout v4
  • pnpm/action-setup v4
  • actions/setup-node v3
  • stefanzweifel/git-auto-commit-action v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v3
  • pnpm/action-setup v4
  • actions/checkout v4
  • actions/checkout v4
  • softprops/action-gh-release v1
npm
package.json
  • @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 ^18.7.5
  • @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

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.