Commit Graph

20196 Commits

Author SHA1 Message Date
ThatOneCalculator
5cf5a836df 🍀 2022-05-30 17:35:28 -07:00
ThatOneCalculator
95aff06dfc More yarn workspaces stuff 2022-05-30 17:31:24 -07:00
ThatOneCalculator
d76ec576b6 tbh 2022-05-30 15:02:52 -07:00
ThatOneCalculator
299ec96e0e tbh 2022-05-30 15:02:31 -07:00
ThatOneCalculator
dd1bfae823 fix the code that depends on node_modules 2022-05-29 22:19:40 -07:00
Kainoa Kanter
88c7594d2d
Update CHANGELOG.md 2022-05-29 20:29:32 -07:00
ThatOneCalculator
bc94eb8baf corepack enable for mocha/e2e 2022-05-29 20:26:38 -07:00
ThatOneCalculator
44c42f1715 yarn lint my beloved 2022-05-29 20:19:03 -07:00
ThatOneCalculator
db86110b97 Fix workflow! 2022-05-29 20:10:30 -07:00
Kainoa Kanter
c05cc01191
Merge branch 'misskey-dev:develop' into yarn-3 2022-05-29 19:43:38 -07:00
Andreas Nedbal
3905185463
fix(client): import shared ESLint config in client package (#8761) 2022-05-30 11:37:34 +09:00
Kainoa Kanter
6f2a9d567d
Update lint.yml
🤔
2022-05-29 19:06:52 -07:00
Kainoa Kanter
39f8cb3006
🙏 2022-05-29 19:03:59 -07:00
ThatOneCalculator
322fe727cb Regenerate yarn.lock 2022-05-29 18:44:10 -07:00
ThatOneCalculator
4970befc10 Add eslint 2022-05-29 18:42:19 -07:00
Kainoa Kanter
3208a2ef94
Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-05-29 18:39:49 -07:00
Kainoa Kanter
ff99a92f4d
Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-05-29 18:39:44 -07:00
ThatOneCalculator
6254a1e163 Improve lint workflow 2022-05-29 18:28:01 -07:00
ThatOneCalculator
f035817489 Merge branch 'yarn-3' of https://github.com/ThatOneCalculator/misskey into yarn-3 2022-05-29 18:19:39 -07:00
ThatOneCalculator
7bd65cf986 Remove packages/*/yarn.lock 2022-05-29 18:19:30 -07:00
Kainoa Kanter
7df83d7252
corepack enable for linting 2022-05-29 18:11:20 -07:00
ThatOneCalculator
9afb41042c Typo 2022-05-29 17:16:31 -07:00
ThatOneCalculator
6ba6dd1720 Replace install-packages.js with workspaces 2022-05-29 17:15:11 -07:00
ThatOneCalculator
fd8170f1dc Replace install-packages.js with workspaces 2022-05-29 17:14:52 -07:00
ThatOneCalculator
9d1c8b4f00 use "packageManager" 2022-05-29 17:08:57 -07:00
ThatOneCalculator
3140a3f9a2 Proper upgrade to yarn 2022-05-29 13:13:27 -07:00
Kainoa Kanter
9652183eff
Update Dockerfile 2022-05-29 12:48:03 -07:00
Kainoa Kanter
ea7d5353ca
Mention in CHANGELOG 2022-05-29 12:47:19 -07:00
Kainoa Kanter
76e399cd81
Add .yarn to dockerignore 2022-05-29 12:46:23 -07:00
ThatOneCalculator
5c7fca456c Yarn berry 2022-05-29 12:40:08 -07:00
Johann150
ebc2566130
fix: add missing import
fix #8756
2022-05-29 14:33:42 +02:00
Johann150
feba678e03
enhance(dev): ask for log snippets 2022-05-29 14:26:29 +02:00
futchitwo
d2784030ec
fix(client): fix popout url (#8494) 2022-05-29 12:21:36 +02:00
Johann150
804fa33535
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
f1d2398eac
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
4917961736
preload app css (#8752) 2022-05-29 10:57:06 +09:00
Johann150
e54aa56ee1
chore: remove unused imports 2022-05-28 21:17:23 +02:00
Johann150
21d54f2758
fix: validate text is not empty
fix #8747
2022-05-28 17:26:17 +02:00
tamaina
abc8998b48
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
4a50c49211
Fix theme import (#8749) 2022-05-28 21:59:23 +09:00
Andreas Nedbal
708fba989a
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
1c057818c6
Remove require captcha from signin from CHANGELOG (#8748) 2022-05-28 05:49:34 +02:00
Johann150
161659de5c
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 02a43a310f.

* Revert "feat: make captcha required when signin to improve security"

This reverts commit b21b058005.

* fix undefined reference

* fix: better error message

* enhance: only handle prefix of IPv6
2022-05-28 12:06:47 +09:00
Johann150
cec3dcec8a
enhance: clearly link documentation
fix #8744
2022-05-27 23:21:12 +02:00
Johann150
63a814c70e
fix(docs): correct information for drive upload (#8736) 2022-05-27 22:03:25 +09:00
Johann150
3dae18b93c
fix lints (#8737)
* 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
2022-05-26 22:53:09 +09:00
Johann150
9c80403072
use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00
syuilo
b3ad04fcb0 update deps 2022-05-25 23:28:56 +09:00
syuilo
3c3140a100 refactor: use === 2022-05-25 23:19:39 +09:00
Johann150
8d5c9e96e4
fix: assume remote users are following each other (#8734)
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.
2022-05-25 23:17:00 +09:00