misskey/packages/frontend/src/widgets
Julia d10fdfe973
Merge commit from fork
* 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: dakkar <dakkar@thenautilus.net>
2025-04-29 08:15:54 +09:00
..
server-metric Merge commit from fork 2025-04-29 08:15:54 +09:00
WidgetActivity.calendar.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
WidgetActivity.chart.vue (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
WidgetActivity.vue enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
WidgetAichan.vue refactor(frontend): use useTemplateRef for DOM referencing 2025-03-19 18:46:03 +09:00
WidgetAiscript.vue enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
WidgetAiscriptApp.vue enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
WidgetBirthdayFollowings.vue enhance(frontend): improve ux for touch devices 2025-03-16 13:59:08 +09:00
WidgetButton.vue enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
WidgetCalendar.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetChat.vue feat(frontend): chat widget 2025-04-15 15:37:29 +09:00
WidgetClicker.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetClock.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetDigitalClock.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetFederation.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetInstanceCloud.vue refactor(frontend): use useTemplateRef for DOM referencing 2025-03-19 18:46:03 +09:00
WidgetInstanceInfo.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetJobQueue.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetMemo.vue refactor(frontend): rename pizzax fields 2025-03-10 10:51:54 +09:00
WidgetNotifications.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetOnlineUsers.vue refactor(frontend): refactor styles 2025-04-05 19:49:29 +09:00
WidgetPhotos.vue Merge commit from fork 2025-04-29 08:15:54 +09:00
WidgetPostForm.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetProfile.vue enhance(frontend): improve accounts management 2025-03-13 22:12:23 +09:00
WidgetRss.vue lint fixes 2025-03-20 19:00:09 +09:00
WidgetRssTicker.vue lint fixes 2025-03-20 19:00:09 +09:00
WidgetSlideshow.vue refactor(frontend): use useTemplateRef for DOM referencing 2025-03-19 18:46:03 +09:00
WidgetTimeline.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetTrends.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetUnixClock.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
WidgetUserList.vue refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00
index.ts feat(frontend): chat widget 2025-04-15 15:37:29 +09:00
widget.ts refactor(frontend): scripts -> utility 2025-03-09 14:28:01 +09:00