Commit Graph

293 Commits

Author SHA1 Message Date
syuilo 86996d9563 🎨 2025-05-07 13:41:51 +09:00
syuilo 181f68e14e 🎨 2025-05-07 10:44:43 +09:00
syuilo cdd131d542 🎨 2025-05-07 08:55:42 +09:00
syuilo 921b13c26f 🎨 2025-05-06 21:49:10 +09:00
syuilo 95a1d17cf6 🎨 2025-05-06 20:41:51 +09:00
syuilo 925dd76f00 🎨 2025-05-06 16:51:01 +09:00
syuilo 1d79fc9092 🎨 2025-05-06 16:16:22 +09:00
syuilo 8959bfa1c0
refactor(frontend): 空/エラー結果表示をコンポーネント化 (#15963)
* wip

* wip

* wip

* wip

* wip

* Update MkResult.vue

* Add storybook story for MkResult (#15964)

* Update MkResult.vue

---------

Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
2025-05-06 14:41:31 +09:00
syuilo ef79cc290f perf(frontend): tweak PageWithHeader 2025-05-03 20:15:18 +09:00
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
syuilo e5fcb5b53f enhance(frontend): disable router view transition
Fix #15723
2025-04-28 21:25:47 +09:00
syuilo 0a1ff77f23 perf(frontend): use css-native implementation for spacer rather than vue component 2025-04-27 19:55:56 +09:00
syuilo 0f9dff0521 enhance(frontend): improve usability 2025-04-27 17:43:30 +09:00
syuilo 14d3439a42 enhance(frontend): タイムラインをスワイプで切り替えられるように
Resolve #15722
2025-04-27 17:38:48 +09:00
syuilo e24a2362fd refactor(frontend): PageWithHeaderにMkSwiperを持たせるように 2025-04-27 17:16:51 +09:00
かっこかり 6a69e4180b
fix(frontend): PageWithHeaderからPageHeaderに全Propsが伝わっていなかった問題を修正 (#15858) 2025-04-27 10:46:55 +09:00
syuilo 17e7340933 enhance(frontend): テーマでページヘッダーの色を変更できるように 2025-04-16 10:59:05 +09:00
syuilo 6d90e09a58 enhance(frontend): タイムライン以外でもスクロール位置の保持を試みるように 2025-04-16 10:35:05 +09:00
syuilo 3d206d2a0f enhance(frontend): 設定検索時に対象が含まれるMkFolderを自動で開いておくように 2025-04-08 08:43:56 +09:00
syuilo 278629046a 🎨 2025-04-08 08:31:52 +09:00
syuilo 3374a587a1 refactor 2025-04-08 08:28:17 +09:00
syuilo 3a8d015194 enhance(frontend): improve search index 2025-04-07 17:03:43 +09:00
anatawa12 22f874c81d
fix: chromatic failure (#15757) 2025-04-05 08:46:48 +09:00
syuilo 165c7993e6 fix(frontend): fix PageWithAnimBg style 2025-04-01 13:28:13 +09:00
syuilo 6e929ece6f fix(frontend): suppress inject warn 2025-03-30 18:13:08 +09:00
syuilo aeda34e5e7 fix(frontend): 広告が無い場合の表示を修正 2025-03-30 09:11:59 +09:00
syuilo 7d842c1a95 fix(frontend): avoid naming confliction of MkAd 2025-03-30 09:07:15 +09:00
syuilo fb1542429f 🎨 2025-03-29 18:03:31 +09:00
syuilo 25db8c2fa9 🎨 2025-03-29 17:59:09 +09:00
syuilo d9d796b204 lint fixes 2025-03-29 16:09:27 +09:00
syuilo e5e4390494 fix(frontend): suppress inject warn 2025-03-29 16:01:51 +09:00
syuilo 1af4081090 enhance(frontend): disable horizontal swipe for timeline/notifications to improve ux 2025-03-29 15:00:29 +09:00
syuilo 61e09d483e refactor 2025-03-28 09:22:37 +09:00
syuilo 22f99b42f6 enhance(frontend): refactor and improve ux 2025-03-25 18:30:28 +09:00
syuilo 0471e457fe fix(frontend): fix broken styles 2025-03-23 21:23:52 +09:00
syuilo b5f86e5210 refactor(frontend): refactor page styles 2025-03-22 18:25:45 +09:00
syuilo 96a7c4a568 fix(frontend): チャンネルのフッターが表示されない問題を修正 2025-03-21 21:04:38 +09:00
syuilo ce858a676b refactor(frontend): use PageWithHeader instead of MkStickyContainer+MkPageHeader combination 2025-03-20 21:04:37 +09:00
syuilo 6015254e59 lint fixes 2025-03-20 19:00:09 +09:00
syuilo abddd40c09 enhance(frontend): 通常のRouterViewにTransitionを追加 2025-03-20 18:55:32 +09:00
syuilo 7f534a41a6 fix lint 2025-03-20 16:07:52 +09:00
syuilo 7b323031b7 refactor(frontend): use useTemplateRef for DOM referencing 2025-03-19 18:46:03 +09:00
syuilo 81ac71f7e5 refactor(frontend): router refactoring 2025-03-19 18:06:22 +09:00
syuilo 409cd4fbd3 refactor(frontend): router refactoring 2025-03-19 15:54:30 +09:00
syuilo 7d4045e8b4 refactor(frontend): router refactoring 2025-03-19 15:24:56 +09:00
syuilo bdc72e5817 clean up 2025-03-19 15:17:41 +09:00
syuilo 11378b17c5 🎨 2025-03-19 09:31:01 +09:00
syuilo 62bf0d53d3 🎨 2025-03-18 22:21:28 +09:00
syuilo 05391f59a5 enhance(frontend): improve StackingRouterView 2025-03-18 20:55:19 +09:00
syuilo d609f41f61 🎨 2025-03-18 17:31:25 +09:00