Commit Graph

136 Commits

Author SHA1 Message Date
syuilo 2c606028b3 :art 2023-05-05 08:05:04 +09:00
Acid Chicken (硫酸鶏) 47c7b4b9cc
fix(#10609): remove isChromatic on real build (#10613)
* perf: remove isChromatic on real build

* revert: Revert #10475 in MkTime

This reverts commit 7d11cf8ec9.

* @rollup/plugin-replace as dependencies

* fix pnpm-lock,yaml

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-04-13 23:23:11 +09:00
tamaina 7d11cf8ec9 Revert #10475 in MkTime 2023-04-13 03:38:43 +00:00
Acid Chicken (硫酸鶏) 9bb6c536c0
test(#10336): add `components/Mk[A-B].*` stories (#10475)
* chore(#10336): register snippets

* test(#10336): add `components/Mk[A-B].*` stories

* build: desynced lockfile

* ci(#10336): preload assets

* ci(#10336): use pull_request

* build: update lockfile

* fix: reactivity transform

* chore: track upstream changes

* refactor: avoid temporary previous tapping declarations

* revert: avoid temporary previous tapping declarations

This reverts commit e649b1b1e6771bee674f2dfb044e0efd72d0be5d.

* test: flaky snapshots

* style: import
2023-04-13 12:20:39 +09:00
tamaina 81d2c5a4a7
enhance: カスタム絵文字関連の変更 (#9794)
* PackedNoteなどのemojisはプロキシしていないURLを返すように

* MFMでx3/x4もしくはscale.x/yが2.5以上に指定されていた場合にはオリジナル品質の絵文字を使用する

* update CHANGELOG.md

* fix changelog

* ??

* wip

* fix

* merge

* Update packages/frontend/src/scripts/media-proxy.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* merge

* calc scale

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-12 10:58:56 +09:00
syuilo 29c9a7d71a enhance(frontend): 常に広告を見られるオプションを追加 2023-04-10 10:22:25 +09:00
Acid Chicken (硫酸鶏) 33e9428510
chore: disable sampling for cat ears (#10513)
* chore: sample 3px for cat ears

* fix: typo

* chore: disable avatar plot for cat ears
2023-04-08 06:22:39 +00:00
Acid Chicken (硫酸鶏) abda3b6c8c
ci(#10336): use TurboSnap (#10494)
* ci(#10336): use TurboSnap

* build: fix version

* ci(#10336): update build dir

* chore(#10336): fire changes

* chore: stabilize icon width on `PageHeader`

* chore: fire changes

* ci: invalid ignore

* ci: trace logs

* chore: debug

* revert: debug

This reverts commit 2329165e252640504ef17e97389e0460ada83e70.

* chore: do not reuse build dir

* build: scripts

* ci: tweak

* revert: re-revert debug

This reverts commit 596ef05d9eabe11c0ec3125fa4a87071d59b9b2f.

* chore: detect changes manually

* fix: syntax

* ci: do not use only-changed

* ci: fix command

* revert: re-re-revert debug

This reverts commit b027170d7504277006ce9abac386df8c38d55fd2.

* ci: use build dir

* revert: re-re-re-revert debug

This reverts commit 529ab126ed63ec10eeeaaee3e9ef581b75e739c9.

* ci: fix path

* revert: re-re-re-re-revert debug

This reverts commit 0b0c0b9ea48d37d617b777e9f602ccf8a2400381.

* ci: fix typo

* ci: only show story files

* revert: re-re-re-re-re-revert debug

This reverts commit 9f5b88df3225f23efd72bb099cfebe359af7acdb.

* ci: skip when no stories found

* ci: use skip

* revert: re-re-re-re-re-re-revert debug

This reverts commit 0df4bdc30bbf425c8682594d500a6d986517e721.

* ci: fix micromatch version

* revert: re-re-re-re-re-re-re-revert debug

This reverts commit 63063b02bbcb37e85b93afe3f919b185425ddcf0.

* revert: re-re-re-re-re-re-re-re-revert debug

This reverts commit 01d9669e2a2c758c478bad5379fe19768e2096bc.

* chore: pin tabler icon width globally

* ci: notify when Chromatic skips

* ci: fix endpoint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-07 20:34:23 +09:00
Acid Chicken (硫酸鶏) 3b3f683f8c
feat(#8149): respect nsfw settings on gallery list (#10481)
* feat(#8149): respect nsfw settings on gallery list

* ci(#10336): use pull_request

* test(#8149): add interaction tests

* test(#10336): use `waitFor`

* chore: transition
2023-04-06 08:19:49 +09:00
Acid Chicken (硫酸鶏) 41aafdea00
test(#10336): stabilize `MkError` stories 2023-04-06 03:10:45 +09: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
Acid Chicken (硫酸鶏) 8a9847b06a
Merge branch 'develop' into acid-chicken-patch-1 2023-04-03 13:01:15 +09:00
syuilo 9224b6635f refactor(frontend): remove $ts and $t 2023-04-01 14:01:57 +09:00
syuilo c823cbe63b refactor(frontend): remove $store 2023-04-01 13:42:40 +09:00
Acid Chicken (硫酸鶏) 14977ed2b7
fix: the avatar in the title bar is clipped 2023-03-31 07:47:03 +00:00
Acid Chicken (硫酸鶏) 13a406b6cf
Merge branch 'develop' into acid-chicken-patch-1 2023-03-31 16:41:55 +09:00
tamaina 6a4d56c81c fix(client): set overflow: clip to page header title container
#10413
2023-03-31 07:38:28 +00:00
Acid Chicken (硫酸鶏) 49d4c538fe
fix: typo 2023-03-29 23:37:43 +09:00
Acid Chicken (硫酸鶏) 4d3f0be419
chore: respect the animation preference 2023-03-27 05:16:39 +00:00
Acid Chicken (硫酸鶏) 07cfab0489
fix: add tight state to cat ears for workarounds 2023-03-26 09:36:46 +00:00
Acid Chicken (硫酸鶏) 453574644c
fix: add workaround for cat ears on iOS Safari 2023-03-26 09:25:51 +00:00
Acid Chicken (硫酸鶏) 7f9a41b05c
fix: redesign cat ears (#10039)
* fix: viewing disgusting objects when user is a cat with having transparent avatar

* chore: mask cat ears when useBlurEffect is enabled

* fix: typo

* style: add comment

* chore: shrink mask

* chore: blur mask

* refactor: minify

* chore: use SVG to determine ear color

* style: comment

* refactor: use `<component>`

* refactor: separate cat definitions

* refactor: use singleton SVG definitions

* perf: use CSS instead of SVG

* refactor: unused definer

* refactor: not used anymore

* refactor: minify

* refactor: minify

* fix: import
2023-03-23 18:06:26 +09:00
Kagami Sascha Rosylight 0d2bee787d
fix(frontend/XHome): fall back to user.uri if user.url does not exist (#10313)
* fix(frontend/XHome): fall back to user.uri if user.url does not exist

* Update CHANGELOG.md
2023-03-13 09:46:33 +09:00
syuilo 6607b39235 fix(client): ロールで広告を無効にするとadmin/adsでプレビューがでてこない
Fix #10272
2023-03-09 12:28:40 +09:00
syuilo 3066a133ac fix(client): prevent null reference error 2023-03-03 11:43:53 +09:00
syuilo ebd7b27075 clean up 2023-03-02 18:40:55 +09:00
syuilo dad915e522 enhance(client): provide sticktyFooter 2023-03-02 18:40:43 +09:00
syuilo 24553eb69a 🎨 2023-02-25 18:03:16 +09:00
tamaina 5c989ed18f
fix/refaftor(client): MkTime.vueの変更 (#10061)
* fix(client): MkTime.timeにstringでもDateでない値が入った場合、?を表示

* fix(client): MkTimeを改良

* numberを許容

* falsyな値もとる

* 不明

* ありません

* fix
2023-02-24 16:21:49 +09:00
syuilo c174f23389 chore(client): tweak custom emoji size 2023-02-23 15:42:57 +09:00
syuilo 0fb9c372dd lint 2023-02-22 15:28:17 +09:00
syuilo b5fa8767da 🎨 2023-02-20 17:28:09 +09:00
Kagami Sascha Rosylight 7c5fc2c423
style(frontend): fix autofixable eslint errors (#9968) 2023-02-17 10:56:23 +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 56c7359a0c refactor 2023-02-12 16:51:45 +09:00
tamaina 5d02405a98 🎨 2023-02-11 13:07:09 +00:00
tamaina 998c2b692a 🎨 2023-02-11 11:35:28 +00:00
tamaina 9349f72227
refactor(client): Refactor MkPageHeader #9869 (#9878)
* disable animation

* refactor(client): MkPageHeaderのタブをMkPageHeader.tabsに分離
animationをフォローするように

* update CHANGELOG.md

* remove unnecessary props
2023-02-11 16:04:45 +09:00
tamaina 0138c3b00e
enhance(client): ヘッダー(MkPageHeader)関連 (#9869)
* MkPageHeader大改造

* ユーザーページのノート一覧をタブにするなど

* ✌️

* 🎨

* fix

* wheel

* clean up

* 🎨

* 🎨

* remove console.log

* update CHANGELOG.md

* fix

* fix

* fix

* ✌️

* header avatar clickable

* !hideTitle

* Revert "!hideTitle"

This reverts commit 19cad428c906f555b73730d602e401a1e943cdef.

* fix changelog
2023-02-11 13:08:18 +09:00
Acid Chicken (硫酸鶏) 686a709e87
chore: determine dimensions of the helix of cat ears based on the size of avatars (#9836)
* chore: determine dimensions of the helix of cat ears based on the size of avatars

* Update MkAvatar.vue

* Update packages/frontend/src/components/global/MkAvatar.vue

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-10 00:36:05 +09:00
syuilo 73f06e591a revert: 650187deaf 2023-02-08 20:07:19 +09:00
syuilo 650187deaf perf(client): do not render custom emojis in user names
#9778
2023-02-08 17:48:02 +09:00
syuilo 788ae2f6ca fix(client): validate urls to improve security 2023-02-04 09:10:01 +09:00
tamaina d78e15cc1a fix(client): カスタム絵文字にアニメーション画像を再生しない設定が適用されていない問題を修正 2023-02-03 20:37:15 +00:00
syuilo 88c3957085 enhance(client): hidden ads when canHideAds is true 2023-02-03 14:03:34 +09:00
syuilo 452bd6db25 tweak custom emoji handling
Close #9721
2023-01-26 15:48:12 +09:00
tamaina 605b0f27e4 Merge branch 'develop' into emoji-re 2023-01-25 14:22:26 +00:00
tamaina 5f49ac1b11 fix(client): アニメーションをオフに設定しても絵文字のアニメーションが止まらない
Fix #9720
2023-01-25 06:21:08 +00:00
tamaina 0d44129ae3 remove console.log 2023-01-22 17:20:53 +00:00
tamaina d347f0a087 wip 2023-01-22 16:07:17 +00:00
tamaina a5f54580a9 fix 2023-01-22 12:57:51 +00:00
syuilo aa339be2ab fix(client): リアクションのカスタム絵文字が表示されないことがあるのを修正
Fix #9683
2023-01-22 07:04:20 +09:00
syuilo 957eff0e63 fix(client): リアクションのカスタム絵文字が表示されないのを修正
Fix #9682
2023-01-22 05:39:33 +09:00
syuilo 363d727c55 refactor 2023-01-22 05:33:26 +09:00
syuilo 3e112da486 ローカルのカスタム絵文字については直接オリジナルURLにリクエストするように 2023-01-21 20:40:09 +09:00
syuilo fe4fbafcf0 存在しないカスタム絵文字をテキストで表示するように
Resolve #9516
2023-01-17 15:58:12 +09:00
syuilo 77e491f52c refactor 2023-01-16 14:18:11 +09:00
syuilo fe0bb21b37 enhance(client): make possible to hide ads
Resolve #9590
Resolve #8996
2023-01-16 11:21:04 +09:00
tamaina 7e5f3dbf11
set -webkit-touch-callout (#9447) 2023-01-16 03:38:16 +09:00
tamaina 9385767b12 fix(client): add :disable-link="true" to some <MkAvatar /> Fix #9606 2023-01-15 16:32:24 +00:00
Masaya Suzuki 67d366c3ca
fix(client): エラー画像表示崩れ修正 (#9599) 2023-01-15 21:58:09 +09:00
syuilo 5da74897ae refactor(client): use css modules 2023-01-14 12:43:54 +09:00
syuilo 4b1009b34e refactor(client): use css modules 2023-01-14 12:30:32 +09:00
syuilo 203a7ad073 refactor(client): use css modules 2023-01-14 12:15:02 +09:00
syuilo ce5506f331 refactor(client): use css modules 2023-01-14 11:23:02 +09:00
syuilo 3f033d6ab7 refactor(client): use css modules 2023-01-10 11:15:29 +09:00
syuilo eac6ebb239 refactor(client): use css modules 2023-01-10 05:48:00 +09:00
syuilo 06f55ffb37 refactor(client): use css modules 2023-01-10 05:17:54 +09:00
syuilo ecd6fc1db8 🎨 2023-01-07 11:49:04 +09:00
syuilo 457670e730 Update MkTime.vue 2023-01-06 16:58:43 +09:00
syuilo 697836c17c perf(client): improve MkTime performance 2023-01-04 08:54:54 +09:00
syuilo 6c10588e77 refactor(client): refactor and performance improve of MkSpacer 2023-01-03 10:46:56 +09:00
syuilo 2184240ef1 perf(client): use shallowRef for html element ref 2023-01-03 10:12:37 +09:00
syuilo 70ce129478 🎨 2023-01-02 16:41:09 +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 3e508d7540 🎨 2022-12-31 20:14:24 +09:00
syuilo d147181a82 🎨 2022-12-30 15:40:29 +09:00
syuilo 93d3cc310d 🎨 2022-12-30 13:52:40 +09:00
syuilo 632c7d2ac6 refactor 2022-12-30 13:37:14 +09:00
tamaina 8b46edeccf
enhance: Proxy custom emojis to reduce image size and accelerate the frontend (#9431)
* fix(server): /emoji to accept `@.` host expression

* fix(client): use MkEmoji for custom emoji in MkEmojiPicker

* change convertToWebp

* nanka iroiro

* remove

* fix

* nearLosslessは労多くして益少なしなのでやめる

* do not cleanup tmp for development

* update sharp.js to 0.31.3

* mixed: true

* fix MkAutocomplete of 912791b3ab

* clean up

* https://github.com/misskey-dev/misskey/pull/9431#discussion_r1059215943
2022-12-30 12:00:50 +09:00
syuilo dcfc526453 fix 912791b3ab 2022-12-30 08:41:22 +09:00
syuilo 912791b3ab
refactor: 絵文字URLを引き回すのをやめる (#9423) 2022-12-29 10:14:44 +09:00
syuilo 4f15b6f7c2 Revert "perf?(client): remove needless scoped annotation for style"
This reverts commit ada04c1932.
2022-12-27 18:29:39 +09:00
syuilo ada04c1932 perf?(client): remove needless scoped annotation for style 2022-12-27 18:01:06 +09:00
syuilo 9384f5399d rename: client -> frontend 2022-12-27 14:36:33 +09:00