Commit Graph

20538 Commits

Author SHA1 Message Date
ThatOneCalculator
6dc161534a Change browser-image-resizer 2022-05-30 20:45:54 -07:00
Andreas Nedbal
7261baa7dc chore(meta): label Pull Requests containing tests (#8768) 2022-05-31 11:38:52 +09:00
ThatOneCalculator
a1227da807 🍀 2022-05-30 17:35:28 -07:00
ThatOneCalculator
6e16bed0a8 More yarn workspaces stuff 2022-05-30 17:31:24 -07:00
ThatOneCalculator
10a73439a9 tbh 2022-05-30 15:02:52 -07:00
ThatOneCalculator
caa9905c7d tbh 2022-05-30 15:02:31 -07:00
tamaina
d1a90695a2 chore: fix import tinycolor 2022-05-30 12:09:22 +00:00
tamaina
db26061f90 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2022-05-30 05:53:40 +00:00
tamaina
3d33296741 chore: remove packages/sw/webpack.config.js 2022-05-30 05:53:36 +00:00
ThatOneCalculator
f325574ca1 fix the code that depends on node_modules 2022-05-29 22:19:40 -07:00
Kainoa Kanter
60dc890593 Update CHANGELOG.md 2022-05-29 20:29:32 -07:00
ThatOneCalculator
b98bd10265 corepack enable for mocha/e2e 2022-05-29 20:26:38 -07:00
ThatOneCalculator
c7f0af59c3 yarn lint my beloved 2022-05-29 20:19:03 -07:00
ThatOneCalculator
605fff5296 Fix workflow! 2022-05-29 20:10:30 -07:00
Kainoa Kanter
cc72e7bc39 Merge branch 'misskey-dev:develop' into yarn-3 2022-05-29 19:43:38 -07:00
Andreas Nedbal
3b0e1037f5 fix(client): import shared ESLint config in client package (#8761) 2022-05-30 11:37:34 +09:00
Kainoa Kanter
79d2a425ef Update lint.yml
🤔
2022-05-29 19:06:52 -07:00
Kainoa Kanter
50046c454d 🙏 2022-05-29 19:03:59 -07:00
ThatOneCalculator
889b3c67f5 Regenerate yarn.lock 2022-05-29 18:44:10 -07:00
ThatOneCalculator
86a660209a Add eslint 2022-05-29 18:42:19 -07:00
Kainoa Kanter
fc4488bf64 Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-05-29 18:39:49 -07:00
Kainoa Kanter
c2f018b86b Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-05-29 18:39:44 -07:00
ThatOneCalculator
c469cbd010 Improve lint workflow 2022-05-29 18:28:01 -07:00
ThatOneCalculator
1ea6311341 Merge branch 'yarn-3' of https://github.com/ThatOneCalculator/misskey into yarn-3 2022-05-29 18:19:39 -07:00
ThatOneCalculator
e50e8b98a1 Remove packages/*/yarn.lock 2022-05-29 18:19:30 -07:00
Kainoa Kanter
630163ff79 corepack enable for linting 2022-05-29 18:11:20 -07:00
ThatOneCalculator
871174c185 Typo 2022-05-29 17:16:31 -07:00
ThatOneCalculator
f94381a784 Replace install-packages.js with workspaces 2022-05-29 17:15:11 -07:00
ThatOneCalculator
30396139bc Replace install-packages.js with workspaces 2022-05-29 17:14:52 -07:00
ThatOneCalculator
eb9fbc99e1 use "packageManager" 2022-05-29 17:08:57 -07:00
ThatOneCalculator
f8477b9277 Proper upgrade to yarn 2022-05-29 13:13:27 -07:00
Kainoa Kanter
83803083cd Update Dockerfile 2022-05-29 12:48:03 -07:00
Kainoa Kanter
482ffd9288 Mention in CHANGELOG 2022-05-29 12:47:19 -07:00
Kainoa Kanter
d3244a8fbd Add .yarn to dockerignore 2022-05-29 12:46:23 -07:00
ThatOneCalculator
daa6ae548d Yarn berry 2022-05-29 12:40:08 -07:00
Johann150
3b970aae8a fix: add missing import
fix #8756
2022-05-29 14:33:42 +02:00
Johann150
47b80744e8 enhance(dev): ask for log snippets 2022-05-29 14:26:29 +02:00
futchitwo
eb3a114027 fix(client): fix popout url (#8494) 2022-05-29 12:21:36 +02:00
Johann150
ec47b46423 refactor: improve code quality (#8751)
* 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.
2022-05-29 15:15:52 +09:00
tamaina
1fe73d31ad fix(client): Vite related boot mechanism revision (#8753)
* preload app css

* remove salt

* APP_FETCH_FAILED error

* set max-age to 15s
2022-05-29 10:58:54 +09:00
tamaina
86e6126dd7 preload app css (#8752) 2022-05-29 10:57:06 +09:00
Johann150
fef27a1e92 chore: remove unused imports 2022-05-28 21:17:23 +02:00
Johann150
4a8ea6f2d1 fix: validate text is not empty
fix #8747
2022-05-28 17:26:17 +02:00
tamaina
82331575cf refactor: use css module at components/global/loading.vue (#8750)
* refactor: use css module at components/global/loading.vue

* rename class name to "root"
2022-05-29 00:15:32 +09:00
tamaina
6e4cb0d639 Fix theme import (#8749) 2022-05-28 21:59:23 +09:00
Andreas Nedbal
06ea19ed3a feat(tests): add e2e tests for widgets (#8735)
* 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
2022-05-28 14:28:12 +09:00
Kainoa Kanter
ae8d4a0827 Remove require captcha from signin from CHANGELOG (#8748) 2022-05-28 05:49:34 +02:00
Johann150
0738a65a78 enhance: replace signin CAPTCHA with rate limit (#8740)
* 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
2022-05-28 12:06:47 +09:00
Johann150
9382d11867 enhance: clearly link documentation
fix #8744
2022-05-27 23:21:12 +02:00
Johann150
7a65931b28 fix(docs): correct information for drive upload (#8736) 2022-05-27 22:03:25 +09:00