summaryrefslogtreecommitdiff
path: root/packages (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(test): reset redis in e2e testsyuilo2022-06-031-0/+2
| | | | #7986
* fix(client): import shared ESLint config in client package (#8761)Andreas Nedbal2022-05-302-47/+59
|
* fix: add missing importJohann1502022-05-291-1/+1
| | | | fix #8756
* fix(client): fix popout url (#8494)futchitwo2022-05-292-3/+4
|
* refactor: improve code quality (#8751)Johann1502022-05-296-77/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unnecessary if `Array.prototype.some` already returns a boolean so an if to return true or false is completely unnecessary in this case. * perf: use count instead of find When using `count` instead of `findOneBy`, the data is not unnecessarily loaded. * remove duplicate null check The variable is checked for null in the lines above and the function returns if so. Therefore, it can not be null at this point. * simplify `getJsonSchema` Because the assigned value is `null` and the used keys are only shallow, use of `nestedProperty.set` seems inappropriate. Because the value is not read, the initial for loop can be replaced by a `for..in` loop. Since all keys will be assigned `null`, the condition of the ternary expression in the nested function will always be true. Therefore the recursion case will never happen. With this the nested function can be eliminated. * remove duplicate condition The code above already checks `dragging` and returns if it is truthy. Checking it again later is therefore unnecessary. To make this more obvious the `return` is removed in favour of using an if...else construct. * remove impossible "unknown" time The `ago` variable will always be a number and all non-negative numbers are already covered by other cases, the negative case is handled with `future` so there is no case when `unkown` could be achieved.
* fix(client): Vite related boot mechanism revision (#8753)tamaina2022-05-293-17/+14
| | | | | | | | | * preload app css * remove salt * APP_FETCH_FAILED error * set max-age to 15s
* preload app css (#8752)tamaina2022-05-293-15/+23
|
* chore: remove unused importsJohann1502022-05-281-3/+3
|
* fix: validate text is not emptyJohann1502022-05-281-1/+1
| | | fix #8747
* refactor: use css module at components/global/loading.vue (#8750)tamaina2022-05-291-31/+33
| | | | | * refactor: use css module at components/global/loading.vue * rename class name to "root"
* Fix theme import (#8749)tamaina2022-05-285-31/+46
|
* feat(tests): add e2e tests for widgets (#8735)Andreas Nedbal2022-05-2815-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test(e2e): add baseline for widget tests * chore(repo): enable test running in branch * fix(e2e): set viewport for widget tests * fix(client): add widget identifier classes to widgets * test(e2e): add memo widget test * fix(tests): force select value * fix(tests): force button press for widget addition * fix(tests): invoke select value differently * fix(tests): adjust widget submit * fix(tests): don't explicitly navigate for widget test * fix(tests): click label to hide select popup * fix(tests): just click modal background * fix(tests): adjust modal background selector * fix(tests): click all modal backgrounds * feat(e2e): add test for adding timeline widget * fix(client): add more widget identifier classes * feat(tests): add method abstraction for test cases * fix(tests): force-click overlays * fix(tests): force widget button press * fix(tests): remove timeout from final widget check * feat(tests): add widget removal test case * fix(client): use mk instead of msky as class prefix * fix(tests): check widgets for existence rather than visibility * chore(meta): don't run tests for specific feature branch
* enhance: replace signin CAPTCHA with rate limit (#8740)Johann1502022-05-285-57/+72
| | | | | | | | | | | | | | | | | | | | | | | * enhance: rate limit works without signed in user * fix: make limit key required for limiter As before the fallback limiter key will be set from the endpoint name. * enhance: use limiter for signin * Revert "CAPTCHA求めるのは2fa認証が無効になっているときだけにした" This reverts commit 02a43a310f6ad0cc9e9beccc26e51ab5b339e15f. * Revert "feat: make captcha required when signin to improve security" This reverts commit b21b0580058c14532ff3f4033e2a9147643bfca6. * fix undefined reference * fix: better error message * enhance: only handle prefix of IPv6
* fix(docs): correct information for drive upload (#8736)Johann1502022-05-271-2/+14
|
* fix lints (#8737)Johann1502022-05-2669-257/+255
| | | | | | | | | | | | | | | * fix: emits use ev instead of e * fix: errors use err instead of e * fix: replace use of data where possible * fix: events use evt instead of e * fix: use strict equals * fix: use emoji instead of e * fix: vue lints
* use http-signature module that supports hs2019 (#8635)Johann1502022-05-267-19/+19
|
* update depssyuilo2022-05-254-732/+608
|
* refactor: use ===syuilo2022-05-251-2/+2
|
* fix: assume remote users are following each other (#8734)Johann1502022-05-251-9/+15
| | | | | | Misskey does not know if two remote users are following each other. Because ActivityPub actions would otherwise fail on followers only notes, we have to assume that two remote users are following each other when an interaction about a remote note occurs.
* fix: activity widget used wrong variable nameJohann1502022-05-251-3/+3
|
* fix: server metrics widgetJohann1502022-05-251-4/+4
|
* refactor: temporary files (#8713)Johann1502022-05-2512-331/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify temporary files for thumbnails Because only a single file will be written to the directory, creating a separate directory seems unnecessary. If only a temporary file is created, the code from `createTemp` can be reused here as well. * refactor: deduplicate code for temporary files/directories To follow the DRY principle, the same code should not be duplicated across different files. Instead an already existing function is used. Because temporary directories are also create in multiple locations, a function for this is also newly added to reduce duplication. * fix: clean up identicon temp files The temporary files for identicons are not reused and can be deleted after they are fully read. This condition is met when the stream is closed and so the file can be cleaned up using the events API of the stream. * fix: ensure cleanup is called when download fails * fix: ensure cleanup is called in error conditions This covers import/export queue jobs and is mostly just wrapping all code in a try...finally statement where the finally runs the cleanup. * fix: use correct type instead of `any`
* Refactor widgets and fix lint issues (#8719)Andreas Nedbal2022-05-2526-313/+256
| | | | | | | | | * fix(client): refactor widgets and fix lint issues * Apply review suggestions from @Johann150 Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
* refactor(client): refactor admin/other-settings to use Composition API (#8667)Andreas Nedbal2022-05-251-39/+22
|
* Refactor admin/overview to use Composition API (#8674)Andreas Nedbal2022-05-251-79/+37
| | | | | * refactor(client): refactor admin/overview to use Composition API * fix(client): apply review suggestions
* Refactor my-antennas/edit to use Composition API (#8680)Andreas Nedbal2022-05-252-146/+96
| | | | | * refactor(client): refactor my-antennas/edit to use Composition API * fix(client): apply review suggestions
* Supports Unicode Emoji 14.0 (#8699)MeiMei2022-05-255-29/+60
| | | | | | | | | * Unicode 14.0 Emoji * mfm-js@0.22.0 * CHANGELOG Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix: wrong type for isVisibleForMeJohann1502022-05-242-2/+2
|
* fix(client): wrong scoping breaks 2FAJohann1502022-05-231-2/+2
|
* fix(client): fix undefined data value on 2FA settings (#8725)Andreas Nedbal2022-05-231-1/+1
|
* Update .mocharc.jsonsyuilo2022-05-211-1/+1
|
* lintsyuilo2022-05-2114-201/+201
|
* refactorsyuilo2022-05-211-4/+3
|
* Update utils.tssyuilo2022-05-211-1/+5
|
* Update utils.tssyuilo2022-05-211-37/+33
|
* chore(meta): add pixeldesu to patron list (#8714)Andreas Nedbal2022-05-211-0/+1
|
* fix(client): make emoji stand out more on reaction buttonsyuilo2022-05-191-4/+8
| | | | | | | Fix #8520 Close #8521 Co-Authored-By: Johann150 <20990607+Johann150@users.noreply.github.com>
* hotfix: uniform color migration fixJohann1502022-05-191-8/+6
|
* enhance: page image component with alt text (#8634)Johann1502022-05-191-20/+8
| | | | | | | | | | | | | * refactor to composition API * use existing image component This improves user experience because alt text is displayed correctly. * fix: correct image src * fix: defineProps * fix
* fix(activitypub): add authorization checks (#8534)Johann1502022-05-194-11/+20
| | | | | * fix spelling * fix(activitypub): add authorization checks
* enhance(MFM): limit large MFM (#8540)Johann1502022-05-192-6/+35
| | | | | | | | | | | * add CSS classes for zoom MFM * limit nesting of x2, x3, x4 MFM * simplify CSS calculation Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* fix: ↵xianon2022-05-192-2/+11
| | | | | | | ノート詳細ページの新しいノートを表示する機能の動作が正しくなるように修正する (#8607) * ノート詳細で新しいノートの表示が正しくないのを修正する * ノート詳細から別のノート詳細を表示した時に前後の表示をリセットする
* refactor(client): refactor admin/settings to use Composition API (#8678)Andreas Nedbal2022-05-191-141/+125
|
* Refactor pleaseLogin to show a sign-in dialog (#8630)Andreas Nedbal2022-05-193-195/+206
| | | | | | | | | | * refactor(client): refactor pleaseLogin to show a sign-in dialog * Apply review suggestions from @Johann150 Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(client): fix lint issues in Deck UI components (#8681)Andreas Nedbal2022-05-1911-34/+34
|
* chore(deps): bump async from 3.2.1 to 3.2.3 in /packages/client (#8707)dependabot[bot]2022-05-191-3/+3
| | | | | | | | | | | | | | | | Bumps [async](https://github.com/caolan/async) from 3.2.1 to 3.2.3. - [Release notes](https://github.com/caolan/async/releases) - [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md) - [Commits](https://github.com/caolan/async/compare/v3.2.1...v3.2.3) --- updated-dependencies: - dependency-name: async dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2022-05-195-11/+58
|\
| * enhance: uniform theme color (#8702)Johann1502022-05-193-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * enhance: make theme color format uniform All newly fetched instance theme colors will be uniformely formatted as hashtag followed by 6 hexadecimal digits. Colors are checked for validity and invalid colors are not handled. * better input validation for own theme color * migration to unify theme color formats Fixes theme colors of other instances as well as the local instance. * add changelog entry Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
| * fix: Unable to generate video thumbnails (#8696)MeiMei2022-05-191-1/+1
| | | | | | | | | | * fix: Unable to generate video thumbnails * CHANGELOG
| * fix: ↵xianon2022-05-191-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | ノートのインスタンス情報の文字に縁を付けて見やすくする (#8697) * ノートのインスタンス情報の背景色が反映されないことがあるのを修正する * ノートのインスタンス情報の文字に縁を付けて見やすくする * Revert "ノートのインスタンス情報の背景色が反映されないことがあるのを修正する" This reverts commit de920dfc537d1f2c68804d0d6930520f2b3cbce7. * ノートのインスタンス情報の文字の影の数を増やしてさらに見やすくする