Commit Graph

73 Commits

Author SHA1 Message Date
Brooooooklyn
0fe672efa5
feat(admin): init project (#7197) 2024-06-18 06:01:13 +00:00
EYHN
20116eb940
chore: remove unused y-indexeddb (#6728) 2024-04-29 09:14:42 +00:00
EYHN
4b933466f4
fix(storybook): remove storybook testing (#6595)
remove tests/storybook

@affine/components storybook still exists
2024-04-17 17:27:33 +08:00
EYHN
06fda3b62c
feat(infra): framework 2024-04-17 15:09:09 +08:00
Brooooooklyn
c1eb7b657a
fix(templates): missing deps (#6396) 2024-03-29 06:56:52 +00:00
Brooooooklyn
6467e10690
ci: fix lint oom (#6295) 2024-03-25 07:11:49 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates (#6279) 2024-03-25 03:55:33 +00:00
EYHN
2b42a75e5a
style: enable rxjs/finnish (#6276)
chore(infra): use finnish notation for observables

do rename
2024-03-24 17:04:51 +00:00
EYHN
34703a3b7d
feat(infra): new doc sync engine (#6205)
https://github.com/toeverything/AFFiNE/blob/eyhn/feat/new-sync/packages/common/infra/src/workspace/engine/doc/README.md
2024-03-22 16:43:26 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth (#5895)
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.

## Server

- [x] tokens
  - [x] function
  - [x] encryption

- [x] AuthController
  - [x] /api/auth/sign-in
  - [x] /api/auth/sign-out
  - [x] /api/auth/session
  - [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)

- [x] OAuthPlugin
  - [x] OAuthController
  - [x] /oauth/login
  - [x] /oauth/callback
  - [x] Providers
    - [x] Google
    - [x] GitHub

## Client

- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut

## NOTE:

Tests will be adding in the future
2024-03-12 10:00:09 +00:00
EYHN
329fc19852
refactor(infra): migrate to new infra (#5565) 2024-01-30 07:16:39 +00:00
LongYinan
fa8655e43e
style: apply prefer-node-protocol lint rule (#5627)
it makes it perfectly clear that the package is a Node.js builtin module.
2024-01-19 03:47:08 +00:00
EYHN
4b217e6b89
refactor(core): move hooks to core (#5458)
* move @toeverything/hooks -> @affine/core/hooks
* delete @toeverything/hooks

hooks are all business-related logic and are deeply coupled with other parts.

Move them into the core and then reconstruct them by feature.
2024-01-02 08:05:46 +00:00
EYHN
265ee81666
refactor(infra): remove old plugin system (#5411)
plugin system need redesign
2023-12-27 02:49:59 +00:00
LongYinan
7a7cbc45d7
fix: add prefer-readonly rule (#5122) 2023-11-29 15:19:00 +08:00
LongYinan
e9ea67bd38
fix: add prefer-for-of rule (#5121) 2023-11-29 15:18:52 +08:00
LongYinan
acf2de813a
fix: add unified-signatures rule (#5120) 2023-11-29 04:44:18 +00:00
LongYinan
db3039fbf4
fix: add require-array-sort-compare rule (#5119) 2023-11-29 04:44:14 +00:00
LongYinan
eadf8a085b
fix: add prefer-blob-reading-methods rule (#5118) 2023-11-29 04:44:10 +00:00
LongYinan
cb2c659f52
fix: add no-new-array rule (#5117) 2023-11-29 04:44:06 +00:00
LongYinan
68caf5027d
fix: add new-for-builtins rule (#5116) 2023-11-29 04:44:02 +00:00
LongYinan
19c61e051d
fix: add no-typeof-undefined rule (#5114) 2023-11-29 04:43:59 +00:00
LongYinan
bd488262fa
fix: add prefer-date-now rule (#5113) 2023-11-29 04:43:55 +00:00
LongYinan
4dddbbdaee
fix: add prefer-dom-node-remove rule (#5112) 2023-11-29 04:43:51 +00:00
LongYinan
45690c2756
fix: add no-useless-promise-resolve-reject rule (#5111) 2023-11-29 04:43:47 +00:00
LongYinan
d267029761
fix: add prefer-array-some rule (#5109) 2023-11-29 04:43:43 +00:00
LongYinan
23cfc58fe2
fix: add prefer-dom-node-append rule (#5108) 2023-11-29 04:43:39 +00:00
LongYinan
123f091e5b
fix: add prefer-dom-node-dataset rule (#5107) 2023-11-29 04:43:35 +00:00
LongYinan
923844f302
fix: add eqeqeq lint rule (#5106) 2023-11-29 04:43:31 +00:00
LongYinan
a843dcd851
fix: resolve cycle imports and prevent it by oxlint (#5103) 2023-11-29 04:43:27 +00:00
LongYinan
c1cf25d2d5
style: add no-self-compare rule (#5092) 2023-11-28 08:55:50 +00:00
Joooye_34
30bac7dce2
ci(core): eslint errors for core (#4662) 2023-11-10 10:25:59 +00:00
EYHN
ecd5db2952
ci: add oxlint (#4867) 2023-11-08 17:54:41 +08:00
Joooye_34
bed9310519
refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
Alex Yang
d05897b724
chore: prohibit unnecessary await (#4586) 2023-10-12 05:04:58 +00:00
LongYinan
b1eb926b7b
style: enable no-extraneous-dependencies lint rule (#4575) 2023-10-10 17:51:47 +00:00
Peng Xiao
eea38a08c5
fix: add platform selector to storybook (#4380) 2023-09-15 08:59:29 +00:00
LongYinan
1aec1ce7d0
test(server): move tests out of src folder (#4366) 2023-09-15 07:34:14 +00:00
Alex Yang
162016884c
refactor: remove unused package (#4291) 2023-09-09 00:00:26 +00:00
Alex Yang
517f4afb31
fix(core): refresh metadata after refresh (#4054) 2023-08-30 21:22:34 +00:00
Alex Yang
2f6c4e3696
feat!: affine cloud support (#3813)
Co-authored-by: Hongtao Lye <codert.sn@gmail.com>
Co-authored-by: liuyi <forehalo@gmail.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: X1a0t <405028157@qq.com>
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
Co-authored-by: xiaodong zuo <53252747+zuoxiaodong0815@users.noreply.github.com>
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: Qi <474021214@qq.com>
Co-authored-by: danielchim <kahungchim@gmail.com>
2023-08-29 05:07:05 -05:00
Alex Yang
9639143df4
chore: prohibit using mergeUpdates (#3701) 2023-08-11 15:55:17 +00:00
Peng Xiao
45ffad45b0
fix: eslint stack overflow issue (#3601) 2023-08-07 07:00:57 +00:00
LongYinan
5795020403
style: add no-misused-promises rule (#3547)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-08-04 08:08:10 +00:00
Alex Yang
0e32803247
refactor: merge plugin-infra into infra (#3540) 2023-08-03 08:48:59 +00:00
Alex Yang
b47fbde479
fix: improve navigate (#3420) 2023-07-27 18:06:30 +00:00
Alex Yang
ec87864c34
refactor: simplify code (#3015) 2023-07-04 17:34:22 +00:00
Peng Xiao
7f0a74c694
fix: some potential tests issue (#2982) 2023-07-03 10:46:47 +00:00
Alex Yang
33097382c6
chore: replace 'eslint-plugin-import' (#2957) 2023-07-01 16:35:16 +00:00
Alex Yang
e08ee9b7ff
ci: add prettier format check (#2908) 2023-06-29 04:13:35 +00:00