かっこかり
f74c38f313
enhance(frontend): URLプレビューをユーザーサイドで無効化できるように ( #16064 )
...
* enhance(frontend): URLプレビューをユーザーサイドで無効化できるように
* fix lint
* Update Changelog
* fix: 設定項目をデータセーバーに移動
2025-05-20 13:42:30 +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
f1f24e39d2
Feat: Chat ( #15686 )
...
* wip
* wip
* wip
* wip
* wip
* wip
* Update types.ts
* Create 1742203321812-chat.js
* wip
* wip
* Update room.vue
* Update home.vue
* Update home.vue
* Update ja-JP.yml
* Update index.d.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update CHANGELOG.md
* wip
* Update home.vue
* clean up
* Update misskey-js.api.md
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* lint fixes
* lint
* Update UserEntityService.ts
* search
* wip
* 🎨
* wip
* Update home.ownedRooms.vue
* wip
* Update CHANGELOG.md
* Update style.scss
* wip
* improve performance
* improve performance
* Update timeline.test.ts
2025-03-24 21:32:46 +09:00
syuilo
08f7e7d9b3
refactor(frontend): rename pizzax fields
2025-03-10 10:51:54 +09:00
syuilo
be7e3b9a0c
refactor(frontend): scripts -> utility
2025-03-09 14:28:01 +09:00
syuilo
d30ddd4c2e
Refine preferences ( #15597 )
...
* wip
* wip
* wip
* test
* wip rollup pluginでsearchIndexの情報生成
* wip
* SPDX
* wip: markerIdを自動付与
* rollupでビルド時・devモード時に毎回uuidを生成するように
* 開発サーバーでだけ必要な挙動は開発サーバーのみで
* 条件が逆
* wip: childrenの生成
* update comment
* update comment
* rename auto generated file
* hashをパスと行数から決定
* Update privacy.vue
* Update privacy.vue
* wip
* Update general.vue
* Update general.vue
* wip
* wip
* Update SearchMarker.vue
* wip
* Update profile.vue
* Update mute-block.vue
* Update mute-block.vue
* Update general.vue
* Update general.vue
* childrenがduplicate key errorを吐く問題をいったん解決
* マーカーの形を成形
* loggerを置きかえ
* とりあえず省略記法に対応
* Refactor and Format codes
* wip
* Update settings-search-index.ts
* wip
* wip
* とりあえず不確定要因の仮置きidを削除
* hashの生成を正規化(絶対パスになっていたのを緩和)
* pathの入力を省略可能に
* adminでもパス生成できるように
* Update settings-search-index.ts
* Update privacy.vue
* wip
* build searchIndex
* wip
* build
* Update general.vue
* build
* Update sounds.vue
* build
* build
* Update sounds.vue
* 🎨
* 🎨
* Update privacy.vue
* Update privacy.vue
* Update security.vue
* create-search-indexを多少改善
* build
* Update 2fa.vue
* wip
* 必ずtransformCodeCacheを利用するように, キャッシュの明確な受け渡しを定義
* キャッシュはdevServerでなくても更新
* Revert "wip"
This reverts commit 41bffd3a13
.
* inlining
* wip
* Update theme.vue
* 🎨
* wip normalize
* Update theme.vue
* キャッシュのパス変換
* build
* wip
* wip
* Update SearchMarker.vue
* i18n.ts['key'] の形式が取り出せない問題のFix
* build
* 仮でpath入れ
* 必ず絶対パスが使われるように
* wip
* 🎨
* storybookビルド時はcreateSearchIndexをしない
* inliningの構造化
* format code
* Update index.vue
* wip
* wip
* 🎨
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* clean up
* wip
* wip
* wip
* Update rollup-plugin-unwind-css-module-class-name.test.ts
* Update navbar.vue
* clean up
* wip
* wip
* wip
* wip
* wip
* Update preferences-backups.vue
* Update common.ts
* Update preferences.ts
* wip
* wip
* wip
* wip
* Update MkPreferenceContainer.vue
* Update MkPreferenceContainer.vue
* Update MkPreferenceContainer.vue
* enhance: 検索で上下矢印を使用することで検索結果を移動できるように
* Update main-boot.ts
* refactor
* wip
* Update sounds.vue
* fix(frontend): PageWindowでSearchMarkerが動作するように
* enhance(frontend): SearchMarkerの点滅を一定時間で止める
* wip
* lint fix
* fix: 子要素監視が抜けていたのを修正
* アニメーションの回数はCSSで制御するように
* refactor
* enhance(frontend): 検索インデックス作成時のログを削減
* revert
* fix
* fix
* Update preferences.ts
* Update preferences.ts
* wip
* Update preferences.ts
* wip
* 🎨
* wip
* Update MkPreferenceContainer.vue
* wip
* Update preferences.ts
* wip
* Update preferences.ts
* Update preferences.ts
* wip
* wip
* Update preferences.ts
* wip
* wip
* Update preferences.ts
* Update CHANGELOG.md
* Update preferences.ts
* Update deck-store.ts
* deckStoreをdefaultStoreに統合
* wip
* defaultStore -> store
* Update profile.ts
* wip
* refactor
* wip: plugin
* plugin
* plugin
* plugin
* Update plugin.ts
* wip
* Update plugin.vue
* Update preferences.ts
* Update main-boot.ts
* wip
* fix test
* Update plugin.vue
* Update plugin.vue
* Update utility.ts
* wip
* wip
* Update utility.ts
* wip
* wip
* clean up
* Update utility.ts
---------
Co-authored-by: tai-cha <dev@taichan.site>
Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
2025-03-09 12:34:08 +09:00
かっこかり
d1eddf0d88
fix(frontend): 埋め込みiframeから外部ページに移動できない問題を修正 ( #15453 )
...
* fix(frontend): 埋め込みiframeから外部ページに移動できない問題を修正
* Update Changelog
2025-02-11 03:33:15 +00:00
かっこかり
17d9aca5a7
refactor(frontend): asとanyをすぐなおせる範囲で除去 ( #14848 )
...
* refactor(frontend): できるだけanyを除去
* refactor
* lint
* fix
* remove unused
* Update packages/frontend/src/components/MkReactionsViewer.details.vue
* Update packages/frontend/src/components/MkUsersTooltip.vue
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-10-31 13:46:42 +09:00
syuilo
54849bde6c
clean up
2024-10-10 16:14:11 +09:00
syuilo
4a356f1ba7
refactor(frontend): prefix css variables ( #14725 )
...
* wip
* Update index.d.ts
* remove unnecessary codes
2024-10-09 18:08:14 +09:00
かっこかり
837a8e15d8
refactor(frontend): frontend-embed/src/to-be-sharedを共通化 ( #14536 )
...
* refactor(frontend): shouldCollapsedを共通化
* refactor(frontend): config.js, worker-multi-dispatch.js, intl-const.jsを共通化
* fix(frontend-shared): fix type error
* refactor(frontend): is-link.jsと、同一の振る舞いをする記述を共通化
* fix
* fix lint
* lint fixes
2024-09-10 18:39:53 +09:00
かっこかり
4f85b6aa91
fix(frontend): Twitchの埋め込みが開けない問題を修正 ( #14247 )
...
* fix(frontend): twitchの埋め込みが開けない問題を修正
* Update Changelog
* fix test
2024-07-18 15:41:32 +09:00
syuilo
6dd2e9fc0b
refactor(frontend): refactor popup api and make sure call dispose callback
...
Close #14122
2024-07-04 13:14:49 +09:00
tamaina
40bb6069ec
fix(frontend): URLプレビューのto/hrefがない問題を修正
...
Fix of 9ae577871b (diff-cfa02e203bdbd03dbf312a889f009ca7f9ebd8376334ebd74c4961b716b22d93)
2024-03-22 08:54:34 +09:00
おさむのひと
831c74a25b
fix: URLプレビューの動作改善+動作設定を可能にする ( #13579 )
...
* wip
* support new version
* URLプレビュー無効化時、フロント側も非表示にしてリクエストをしないようにする
* fix lint
* fix lint
* tweak preview request error handles
* fix: CHANGELOG.md
* fix
* fix
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-03-21 18:46:42 +09:00
tamaina
c1514ce91d
(re) update SPDX-FileCopyrightText
...
Fix #13290
2024-02-13 15:59:27 +00:00
tamaina
311c2172d7
Revert "update SPDX-FileCopyrightText"
...
This reverts commit 9b5aeb76d8
.
2024-02-13 15:50:11 +00:00
syuilo
9b5aeb76d8
update SPDX-FileCopyrightText
2024-02-12 11:37:45 +09:00
MeiMei
82c34f7f45
Fix: Summaly proxy利用時にプレイヤーが動作しないことがあるのを修正 ( #13196 )
...
* Fix: Summaly proxy利用時にプレイヤーが動作しないことがあるのを修正
* CHANGELOG
2024-02-08 13:16:22 +09:00
ikasoba
bc5aebe956
enhance(frontend): ページ遷移時にPlayerを閉じるように ( #13013 )
...
* なんかできた
* update changelog.md
* onDeactivatedを使うように
2024-01-17 13:26:36 +09:00
tamaina
2a33981811
chore: use summaly, browser-image-resizer, and sharp-read-bmp on registry.npmjs.org instead of git ( #12856 )
...
* chore: use @misskey-dev/summaly on registry.npmjs.org instead of git
* fix backend dependency
* fic backend dependency
* @misskey-dev/sharp-read-bmp
* fix
* use @misskey-dev/browser-image-resizer
2023-12-31 09:45:35 +09:00
zyoshoka
406b4bdbe7
refactor(frontend): 非推奨となったReactivity Transformを使わないように ( #12539 )
...
* refactor(frontend): 非推奨となったReactivity Transformを使わないように
* refactor: 不要な括弧を除去
* fix: 不要なアノテーションを除去
* fix: Refの配列をrefしている部分の対応
* refactor: 不要な括弧を除去
* fix: lint
* refactor: Ref、ShallowRef、ComputedRefの変数の宣言をletからconstに置換
* fix: type error
* chore: drop reactivity transform from eslint configuration
* refactor: remove unnecessary import
* fix: 対応漏れ
2023-12-07 14:42:09 +09:00
anatawa12
00b11b1f75
chore: hide thumbnail if website is sensitive ( #12581 )
2023-12-06 13:46:10 +09:00
かっこかり
5bf7813b2d
enhance/feat(frontend): データセーバーの改良・強化 ( #12526 )
...
* enhance(frontend): データセーバーを個別で設定できるように
* Update Changelog
* fix design
* (fix) 設定が当たらない
* fix test(無理やり感)
* (fix) 設定がない状態ですべて有効・向操作が効かない
* fix
* tweak
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-03 10:58:42 +09:00
y.takahashi
c6ed06d783
twitter埋め込みのsandbox属性にallow-popups-to-escape-sandboxを追加 ( #12400 )
...
Co-authored-by: unarist <m.unarist@gmail.com>
2023-11-22 10:19:30 +09:00
syuilo
e893494b48
Revert "fix: URLプレビューが表示されないのを修正 ( #12222 )"
...
This reverts commit 8366984b2b
.
2023-11-03 19:50:27 +09:00
ikasoba
8366984b2b
fix: URLプレビューが表示されないのを修正 ( #12222 )
...
* プレビューが表示されないのを修正
* 修正
* Update packages/frontend/src/components/MkUrlPreview.vue
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-03 19:44:17 +09:00
syuilo
b0f6c44f36
refactor(frontend): use ESM
2023-09-19 16:37:43 +09:00
かっこかり
c0838c473f
enhance(frontend): データセーバーモードで隠れる画像を増やす等 ( #11806 )
...
* enhance datasaver mode
* サムネイルがないとき変な角丸にならんようにする
* Avoid using wildcard selector
* Avoid wildcard
* Update MkMediaImage.vue
* (fix) ノートの画像プレビューがでない
* (fix) recent pages design
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-10 18:40:20 +09:00
syuilo
cd7ab326cd
Revert "enhance(frontend): データセーバーモードで隠れる画像を増やす等 ( #11779 )"
...
This reverts commit 22d966e92d
.
2023-09-08 14:15:35 +09:00
かっこかり
22d966e92d
enhance(frontend): データセーバーモードで隠れる画像を増やす等 ( #11779 )
...
* enhance datasaver mode
* サムネイルがないとき変な角丸にならんようにする
* Avoid using wildcard selector
* Avoid wildcard
* Update MkMediaImage.vue
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-06 17:36:14 +09:00
maguroshouta
cb80dff7df
x.comでも展開ができるように ( #11757 )
2023-08-22 15:56:36 +09:00
Kagami Sascha Rosylight
2896fc6cb4
fix(frontend/MkUrlPreview): allow fullscreen from tweets ( #11712 )
...
* fix(frontend/MkUrlPreview): allow fullscreen from tweets
* Update url-preview.test.ts
2023-08-13 12:29:13 +09:00
Ebise Lutica
007ed5c929
enhance(frontend): TwitterアイコンをXに変更 ( #11436 )
2023-07-31 17:05:40 +09:00
Shun Sakai
c2370a1be6
chore: 著作権とライセンスについての情報を各ファイルに追加する ( #11348 )
...
* chore: Add the SPDX information to each file
Add copyright and licensing information as defined in version 3.0 of
the REUSE Specification.
* tweak format
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-27 14:31:52 +09:00
woxtu
0d2e3df061
Hide action buttons on `MkUrlPreviewPopup` ( #11332 )
2023-07-21 09:57:21 +09:00
okayurisotto
c0dbc3b53f
refactor: `substr` -> `substring` ( #11273 )
2023-07-14 07:59:54 +09:00
Acid Chicken (硫酸鶏)
337dd97b49
perf( #10923 ): CSS Modules のクラス名をインライン化する ( #10930 )
...
* perf(#10923 ): unwind css module class name
* perf(#10923 ): support multiple components
* refactor: clean up
* refactor(#10923 ): avoid `useCssModule()`
* fix(#10923 ): allow direct literal class name
* fix(#10923 ): avoid computed class name
* fix(#10923 ): allow literal keys
* fix(#10923 ): typo
* fix(#10923 ): invalid class names
* chore: test
* revert: test
This reverts commit 5c7ef366ec
.
* fix(#10923 ): hidden tale
* perf(#10923 ): also unwind scoped css contained components
* perf(#10923 ): `normalizeClass` AOT compilation
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-06-01 17:19:46 +09:00
tamaina
dd60f1a533
fix(frontend/MkUrlPreview): summalyがエラーになった際の挙動を修正
2023-05-17 20:00:28 +00:00
Acid Chicken (硫酸鶏)
38d0b62167
build( #10336 ): Storybook & Chromatic & msw ( #10365 )
...
* build(#10336 ): init
* fix(#10336 ): invalid name conversion
* build(#10336 ): load locales and vite config
* refactor(#10336 ): remove unused imports
* build(#10336 ): separate definitions and generated codes
* refactor(#10336 ): remove hatches
* refactor(#10336 ): module semantics
* refactor(#10336 ): remove unused common preferences
* fix: typo
* build(#10336 ): mock assets
* build(#10336 ): impl `SatisfiesExpression`
* build(#10336 ): control themes
* refactor(#10336 ): semantics
* build(#10336 ): make .storybook as an individual TypeScript project
* style(#10336 ): use single quote
* build(#10336 ): avoid intrinsic component names
* chore: suppress linter
* style: typing
* build(#10336 ): update dependencies
* docs: note about Storybook
* build(#10336 ): sync
* build(#10336 ): full reload server on change
* chore: use defaultStore instead
* build(#10336 ): show popups on Story
* refactor(#10336 ): remove redundant div
* docs: fix
* build(#10336 ): interactions
* build(#10336 ): add an interaction test for `<MkA/>`
* build(#10336 ): bump storybook
* docs(#10336 ): mention to pre-build misskey-js
* build(#10336 ): write stories for `MkAcct`
* build(#10336 ): write stories for `MkAd`
* build(#10336 ): fix missing type definition
* build(#10336 ): use `toHaveTextContent`
* build(#10336 ): write some stories
* build(#10336 ): hide internal args
* build(#10336 ): generate `components/global` stories only
* build(#10336 ): write stories for `MkMisskeyFlavoredMarkdown`
* fix: conflict errors
* build(#10336 ): subcomponents on sidebar
* refactor: restore `SatisfiesExpression`
* docs(#10336 ): note development status
* build(#10336 ): use chokidar-cli
* docs(#10336 ): note chokidar-cli mode
* chore(#10336 ): untrack generated stories files
* fix: pointer handling
* build(#10336 ): finalize
* chore: add static option to `MkLoading`
* refactor(#10336 ): bind to local args
* fix: missing case
* revert: restore `SatisfiesExpression`
This reverts commit f246699f38
.
* build(#10336 ): make storybook buildable
* build(#10336 ): staticify assets
* build(#10336 ): staticified directory structure
* build(#10336 ): normalize path for Windows
* ci(#10336 ): create actions
* build(#10336 ): ignore tsc errors
* build(#10336 ): ignore tsc errors
* build(#10336 ): missing dependencies
* build(#10336 ): missing dependencies
* build(#10336 ): use fast-glob
* fix: invalid lockfile
* ci(#10336 ): increase heap size
* build(#10336 ): use unpkg for storybook tabler icons
* build(#10336 ): use unpkg for storybook twemojis
* build(#10336 ): disable `ProfilePageCat`
* build(#10336 ): blur `MkA` before interaction ends
* ci(#10336 ): stabilize
* ci(#10336 ): fetch-depth
* build(#10336 ): isChromatic
* ci(#10336 ): notify on changes
* ci(#10336 ): fix typo
* ci(#10336 ): missing working directory
* ci(#10336 ): skip build
* ci(#10336 ): fix path
* build(#10336 ): fails on Windows
* build(#10336 ): available on Windows
* ci(#10336 ): disable animation on chromatic
* ci(#10336 ): add static option to `PageHeader.tabs`
* chore: void
* ci(#10336 ): change parameters
* docs(#10336 ): update CONTRIBUTING
* docs(#10336 ): note about meta overriding and etc.
* ci(#10336 ): use Chromatic for checks
* ci(#10336 ): use `pull_request` instead of `pull_request_target` for now
* ci(#10336 ): use `exitOnceUploaded`
* ci(#10336 ): reuse built storybook
* ci(#10336 ): back to `pull_request_target`
* chore: unused dependencies
* style(#10336 ): reduce prettier indents
* style: note about `TSSatisfiesExpression`
2023-04-04 09:38:34 +09:00
syuilo
c823cbe63b
refactor(frontend): remove $store
2023-04-01 13:42:40 +09:00
Kagami Sascha Rosylight
c091d9e6d5
feat(frontend/MkUrlPreview): oEmbedのサポート ( #10306 )
...
* feat(frontend/MkUrlPreview): oEmbedのサポート
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* playerとoEmbedの統合
* Update CHANGELOG.md
* loading=lazyはここでは不要
* border: 0
* プレビュー直後にautoplayできる機能の復旧
* add test
* refactor test
* explain about cache
* expandPreviewはもう使わない
* summaly v4
* update summaly
* scrolling=no to fix pixiv
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-19 16:59:31 +09:00
taiy
8856d68571
enhance(client): MkUrlPreviewの閉じるボタンを見やすく ( #9913 )
...
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-24 14:38:47 +09:00
Kagami Sascha Rosylight
63df2c851e
refactor: remove all unused imports ( #9951 )
...
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-16 23:09:41 +09:00
syuilo
38f9d1e764
fix(client): validate urls to improve security
2023-02-04 14:20:07 +09:00
syuilo
788ae2f6ca
fix(client): validate urls to improve security
2023-02-04 09:10:01 +09:00
syuilo
30fc166c08
refactor(client): use css modules
2023-01-14 11:59:08 +09:00
tamaina
46c2706b7e
perf: use overflow: clip instead of overflow: hidden ( #9443 )
...
* use overflow: clip
* revert
2023-01-02 12:15:26 +09:00
tamaina
c3a36698e5
use Intl.DateTimeFormat and Intl.NumberFormat instead of toLocaleString ( #9444 )
2023-01-01 17:11:33 +09:00
syuilo
43fafc8d57
enhance(client): tweak url preview
2022-12-30 14:24:00 +09:00