misskey/packages/frontend
あわわわとーにゅ 695bbf02ca
Merge commit from fork
(cherry picked from commit d10fdfe9738b17a9d81037c031b40a2cc4cb8038)

* SP-2025-03.1 always wrap icon&thumbnail URLs

if they're not HTTP URLs, the frontend won't be able to display them
anyway (`<img src="mailto:…">` or '<div stile="background-image:
url(nntp:…)">` aren't going to work!), so let's always run them through the
media proxy, which will fail harder (fetching a `javascript:` URL
won't do anything in the backend, might do something in the frontend)
and will always protect the client's address in cases like `gemini:`
where the browser could try to fetch

* SP-2025-03.2 use object binding for more styles

interpolating a random (remote-controlled!) string into a `style`
attribute is a bad idea; using VueJS object binding, we should get
proper quoting and therefore safe parse failures instead of CSS
injections / XSS

* SP-2025-03.3 slightly more robust "self" URL handling

parse URLs instead of treating them as strings; this is still not
perfect, but the `URL` class only handles full URLs, not relative
ones, so there's so way to ask it "give me a URL object that
represents this resource relative to this base URL"

notice that passing very weird URLs to `MkUrl` and `MkUrlPreview` will
break the frontend (in dev mode) because there's an untrapped `new
URL(…)` that may explode; production builds seem to safely ignore the
error, though

---------

Co-authored-by: Julia <julia@insertdomain.name>
Co-authored-by: dakkar <dakkar@thenautilus.net>
2025-05-01 21:29:39 +09:00
..
.storybook fix(MisskeyIO#927): tabler-icons-filledのフォントを参照できない問題を修正 (MisskeyIO#929) 2025-02-02 02:15:09 +09:00
.vscode test(#10336): add components/Mk[A-B].* stories (#10475) 2023-04-13 12:20:39 +09:00
@types update deps (MisskeyIO#950) 2025-03-31 08:05:23 +09:00
assets MSKY-77 (MisskeyIO#947) 2025-03-28 20:24:37 +09:00
lib (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
public (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
src Merge commit from fork 2025-05-01 21:29:39 +09:00
test code cleanup (MisskeyIO#825) 2024-11-27 05:48:25 +09:00
.eslintrc.cjs refactor(frontend): 非推奨となったReactivity Transformを使わないように (#12539) 2023-12-07 14:42:09 +09:00
.gitignore build(#10336): Storybook & Chromatic & msw (#10365) 2023-04-04 09:38:34 +09:00
package.json update deps (MisskeyIO#978) 2025-04-22 05:56:50 +09:00
tsconfig.json update deps (MisskeyIO#887) 2025-01-14 02:19:05 +09:00
vite.config.ts revert(dev): フロントエンド・バックエンドを分離する開発モードを廃止 2025-01-26 06:47:36 +09:00
vite.json5.ts Fix type errors from vite.json5.ts (#9936) 2023-02-15 17:14:47 +09:00
vue-shims.d.ts feat(analytics): Google Analytics・同意モード・一部機能のトラッキング実装 (MisskeyIO#784) 2024-11-06 01:28:14 +09:00