Marrrrrrrrry b806a36800 发送页登录引导卡片 + 预览 iframe sandbox 加固 (#13)
* fix: sandbox the media preview iframe fallback (security item 2)

The catch-all preview branch renders arbitrary file types in a
same-origin iframe. Add sandbox (no allow-scripts) so scripts inside
previewed documents never run, and no-referrer to avoid leaking the
retrieve URL to cross-origin file hosts. PDF preview is unaffected.

* feat: login-guide card on send page when guest upload is disabled

Guest upload off + no admin token now renders a login-guide card in
place of the upload form (entered page state, not a late alert); the
card links to /login?redirect=/send so users return to sending after
sign-in. Backend 403 fallback and select-time checks remain as the
second layer.
2026-09-20 02:55:20 +09:00
2024-09-25 19:09:53 +08:00
1
2024-10-07 15:37:08 +08:00
2024-11-23 21:50:46 +08:00
2024-09-25 19:09:53 +08:00
2026-07-11 21:48:38 +08:00
2026-07-11 21:48:38 +08:00
2025-06-19 22:05:34 +08:00
2025-06-19 22:05:34 +08:00
2024-09-25 19:09:53 +08:00
1
2024-10-07 00:41:58 +08:00
2024-09-25 19:09:53 +08:00
1
2024-09-25 23:13:29 +08:00

filecodeboxfronted

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

The frontend version comes from package.json. Production builds also embed the current Git commit. CI can override these values with VITE_APP_VERSION and VITE_GIT_COMMIT.

The FileCodeBox product release workflow builds the latest commit from this repository's default branch. Every push is also checked with a production build.

Type-Check, Compile and Minify for Production

pnpm build

Lint with ESLint

pnpm lint
S
Description
No description provided
Readme
1.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 50%
Vue 46.1%
JavaScript 3%
CSS 0.8%
HTML 0.1%