misskey/packages/frontend/src/components/global
あわわわとーにゅ 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
..
I18n.vue chore: add missing SPDX ID and workflow check (#13570) 2024-03-13 22:37:18 +09:00
MkA.stories.impl.ts test(frontend): Chromaticテストが落ちるのを修正 (#13448) 2024-02-25 18:06:40 +09:00
MkA.vue refactor(frontend): provide linkNavigationBehavior 2024-05-06 20:37:04 +09:00
MkAcct.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkAcct.vue update deps (MisskeyIO#833) 2024-12-19 05:35:13 +09:00
MkAd.stories.impl.ts fix(frontend): fix Chromatic test fails (#13826) 2024-05-18 12:42:26 +09:00
MkAd.vue feat(analytics): Google Analytics・同意モード・一部機能のトラッキング実装 (MisskeyIO#784) 2024-11-06 01:28:14 +09:00
MkAvatar.stories.impl.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkAvatar.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkCondensedLine.stories.impl.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkCondensedLine.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkCustomEmoji.stories.impl.ts fix(frontend): MkCustomEmojiでフォールバックをテキストか画像か選べるように 2024-03-02 07:05:17 +00:00
MkCustomEmoji.vue fix(frontend/customemoji): リアクション以外の部分ではフォールバック画像にならないように (MisskeyIO#769) 2024-10-21 09:34:14 +09:00
MkEllipsis.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkEllipsis.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkEmoji.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkEmoji.vue fix(frontend): ピン留め or 履歴に表示されるカスタム絵文字がサーバから削除されるとリアクションが出来なくなる (#13486) 2024-03-02 13:28:10 +09:00
MkError.stories.impl.ts build: upgrade Storybook to 8 beta (#13297) 2024-02-14 18:48:25 +09:00
MkError.stories.meta.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkError.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkFooterSpacer.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkLazy.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkLoading.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkLoading.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkMisskeyFlavoredMarkdown.stories.impl.ts build: upgrade Storybook to 8 beta (#13297) 2024-02-14 18:48:25 +09:00
MkMisskeyFlavoredMarkdown.ts Merge remote-tracking branch 'misskey-dev/develop' into io 2024-05-09 00:21:37 +09:00
MkPageHeader.stories.impl.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkPageHeader.tabs.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkPageHeader.tabs.vue Merge remote-tracking branch 'misskey-dev/develop' into io 2024-05-04 12:34:38 +09:00
MkPageHeader.vue fix(frontend/pageMetadata): ページタイトルが更新されない問題 (#13289) 2024-02-16 16:17:09 +09:00
MkSpacer.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkStickyContainer.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkStickyContainer.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
MkTime.stories.impl.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkTime.vue refactor(general): use Date.now() instead of creating a new Date instance (#13671) 2024-04-07 21:14:13 +09:00
MkUrl.stories.impl.ts build: upgrade Storybook to 8 beta (#13297) 2024-02-14 18:48:25 +09:00
MkUrl.vue Merge commit from fork 2025-05-01 21:29:39 +09:00
MkUserName.stories.impl.ts fix(frontend): fix Storybook type errors (#13779) 2024-05-01 16:39:16 +09:00
MkUserName.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
RouterView.stories.impl.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
RouterView.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00