Compare commits

...

2114 Commits

Author SHA1 Message Date
Alex Yang
7b2acec7c3 v0.7.0-canary.31 2023-07-03 23:14:38 +08:00
Alex Yang
f1adf23631 chore: bump version (#2989) 2023-07-03 14:51:49 +00:00
Alex Yang
a5d2fafad6 refactor: remove legacy cloud (#2987) 2023-07-03 14:29:37 +00:00
xiaodong zuo
3d0a907b49 fix: dark mode export PDF leaves margin and notification (#2978) 2023-07-03 12:11:07 +00:00
LongYinan
bacd00655d ci: reduce yarn cache (#2983) 2023-07-03 11:09:17 +00:00
Peng Xiao
08e003b0f6 fix: potential updater issue (#2973) 2023-07-03 11:04:45 +00:00
Alex Yang
0f1c5163a1 feat: remove old setting page by default (#2980) 2023-07-03 10:59:23 +00:00
JimmFly
18874d0d1e chore: add import to sidebar (#2981) 2023-07-03 10:51:28 +00:00
Peng Xiao
7f0a74c694 fix: some potential tests issue (#2982) 2023-07-03 10:46:47 +00:00
Peng Xiao
901fc87716 fix: potential race condition on app load when migration (#2977)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-07-03 09:40:02 +00:00
Alex Yang
ee2ab4086f fix(web): hydration issue (#2974) 2023-07-03 09:06:12 +00:00
JimmFly
af94674c18 style: adjust icon button hover color (#2976) 2023-07-03 08:46:16 +00:00
Alex Yang
262289a398 chore: add affine-cloud build config (#2971) 2023-07-03 07:25:14 +00:00
Alex Yang
467eab4ddf build: update build config (#2967) 2023-07-03 06:17:13 +00:00
Alex Yang
63517e4912 chore: update 'lint-staged' rules (#2969) 2023-07-03 06:00:50 +00:00
JimmFly
6f9487deb7 style: adjust copilot chat style (#2915) 2023-07-03 05:57:30 +00:00
JimmFly
8d0edd5255 i18n: update translation resources (#2968) 2023-07-03 05:15:46 +00:00
Qi
bdea153c82 feat: modify preloading data (#2947) 2023-07-03 02:49:55 +00:00
Alex Yang
d447883b7d v0.7.0-canary.30 2023-07-02 14:18:33 +08:00
Alex Yang
03ec51a96c chore: bump version 2023-07-02 14:17:22 +08:00
Alex Yang
0adf18f5e6 v0.7.0-canary.29 2023-07-02 14:06:14 +08:00
Alex Yang
5e7dc9ff21 chore: bump version (#2960) 2023-07-02 05:26:47 +00:00
Alex Yang
33097382c6 chore: replace 'eslint-plugin-import' (#2957) 2023-07-01 16:35:16 +00:00
Alex Yang
b9df2cdabb ci: update labeler.yml 2023-07-01 23:13:35 +08:00
Alex Yang
158338508a ci: use yarn run test 2023-07-01 23:08:14 +08:00
Alex Yang
640967d9ae v0.7.0-canary.28 2023-07-01 21:35:05 +08:00
Alex Yang
ec973395da fix: remove export script 2023-07-01 21:34:24 +08:00
Alex Yang
b35d99d935 v0.7.0-canary.27 2023-07-01 21:29:11 +08:00
Alex Yang
c0f6e751d2 build: update nx.json 2023-07-01 18:58:14 +08:00
Alex Yang
6af454ceed chore: improve ci build speed (#2953) 2023-07-01 10:47:26 +00:00
Alex Yang
ed829dd43b build: update nx.json 2023-07-01 16:54:21 +08:00
Alex Yang
a9adb4dda2 build: fix nx.json (#2951) 2023-07-01 16:34:30 +08:00
Alex Yang
54a7eeda37 chore: bump version (#2950) 2023-07-01 16:26:43 +08:00
Alex Yang
711e683c6f build: skip type check in next.js build (#2952) 2023-07-01 16:22:21 +08:00
Alex Yang
81c5e6d3d2 build: enhance nx build (#2948) 2023-07-01 01:17:31 +08:00
3720
7a5a5d503a chore: adjust icon and style (#2949) 2023-06-30 23:38:47 +08:00
Alex Yang
b597dbd80f docs: update react badge 2023-06-30 18:03:20 +08:00
Alex Yang
ebdf724012 v0.7.0-canary.26 2023-06-30 17:39:42 +08:00
Alex Yang
14f63e91a9 ci: fix build desktop 2023-06-30 17:39:11 +08:00
Alex Yang
ad218ec65d ci: update paths-ignore 2023-06-30 17:39:11 +08:00
Alex Yang
9fda82564b ci: chmod 777 on output directory 2023-06-30 17:39:11 +08:00
Alex Yang
a52fc54d80 v0.7.0-canary.25 2023-06-30 16:27:59 +08:00
Alex Yang
524c342b5e chore: bump blocksuite to '0.0.0-20230630081054-55a25248-nightly' (#2944) 2023-06-30 16:27:38 +08:00
regischen
f4fc084a0a fix(web): migrate connector (#2941)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-30 16:11:04 +08:00
Alex Yang
38a2aa9d17 build(electron): use nx (#2942) 2023-06-30 16:10:35 +08:00
Peng Xiao
9e90242ddb fix: disable sqlite blob storage (#2943) 2023-06-30 16:09:43 +08:00
Alex Yang
fd0c1da608 fix(cli): run dev-web crash 2023-06-30 15:58:13 +08:00
Alex Yang
68c4fccf98 ci: cancel previous build (#2794) 2023-06-30 07:39:27 +00:00
Alex Yang
3c93f4162d build: remove unused package (#2937) 2023-06-30 07:09:12 +00:00
Alex Yang
b6c314e180 refactor(cli): use typescript (#2938) 2023-06-30 06:58:57 +00:00
Alex Yang
62b465a889 ci: build infra code before build layers 2023-06-30 15:20:36 +08:00
3720
9d0db78f64 feat: support for view management (#2892) 2023-06-30 05:40:00 +00:00
Fangdun Tsai
d3393cb0fc feat: expose clipboard apis (#2932) 2023-06-30 04:47:30 +00:00
Alex Yang
79cded302f chore: bump blocksuite to 0.0.0-20230629103121-76e6587d-nightly (#2931) 2023-06-30 04:36:56 +00:00
Alex Yang
53d90a11de chore: tag deprecated files (#2936) 2023-06-30 04:01:14 +00:00
Alex Yang
271ad57160 feat: special ip address 'localhost' (#2935) 2023-06-30 03:54:24 +00:00
Alex Yang
4adbe64a54 fix(web): disable notification center (#2934) 2023-06-30 03:29:05 +00:00
DarkSky
50a8a147fd ci: make helm release only on bump version (#2928) 2023-06-30 02:02:46 +00:00
Ikko Eltociear Ashimine
eaea8e9368 refactor: fix typo in notification-center/index.tsx (#2929) 2023-06-30 09:55:09 +08:00
Hyden Liu
9873baae9f fix: z-index on app sidebar (#2761)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-30 01:14:44 +00:00
xiaodong zuo
bc3ce7395e feat: export page as file (#2923) 2023-06-29 21:58:02 +00:00
Alex Yang
8a7908c692 fix(electron): window only ui (#2926) 2023-06-29 16:15:44 +00:00
LongYinan
8021efd81a build: affine Node.js server charts (#2895) 2023-06-29 14:02:46 +00:00
Qi
d7fcad2d0d feat: add and modify test case for new settings modal (#2925) 2023-06-29 12:54:45 +00:00
Alex Yang
b1d2d77263 docs: set nodejs version to 18.16.1 2023-06-29 20:00:57 +08:00
Alex Yang
2c772bd81b v0.7.0-canary.24 2023-06-29 18:50:48 +08:00
JimmFly
7f00011542 chore: update changelog link and remove obsolete changelog components (#2918) 2023-06-29 10:19:26 +00:00
Alex Yang
f76d8b8818 chore: bump blocksuite to 0.0.0-20230629084521-542de4e8-nightly (#2921) 2023-06-29 09:42:47 +00:00
Alex Yang
1d6b39dec9 ci: allow codecov upload failure (#2922) 2023-06-29 09:39:16 +00:00
Qi
5cfdf6c7e2 fix: a serise of ui issues of new setting (#2920)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-29 09:25:42 +00:00
Alex Yang
8410d83744 refactor: rootWorkspacesMetadataAtom loading logic (#2882) 2023-06-29 08:48:12 +00:00
DarkSky
8a2dac9718 fix: incorrect formatting (#2917) 2023-06-29 08:25:43 +00:00
JimmFly
5ad2908760 chore: update translation (#2916)
Co-authored-by: zuozijian3720 <zuozijian1994@gmail.com>
2023-06-29 08:20:25 +00:00
Alex Yang
5b8771485e docs: add apps/README.md 2023-06-29 16:07:30 +08:00
Alex Yang
ed8480caf0 ci: split migration test 2023-06-29 15:11:16 +08:00
Alex Yang
42ef3c0fc2 test: migration test in real world (#2885) 2023-06-29 06:50:26 +00:00
Alex Yang
e08ee9b7ff ci: add prettier format check (#2908) 2023-06-29 04:13:35 +00:00
liuyi
2c95bfcc3d feat(storage): binding jwst storage to node (#2808) 2023-06-29 01:45:45 +00:00
Alex Yang
86616e152d build: disable sqlite provider in canary 2023-06-29 10:00:41 +08:00
Peng Xiao
b1f478ee5e fix: updater color updates (#2913) 2023-06-28 17:21:07 +00:00
DarkSky
6b0f9fbdad feat: add deployment guide & fix pod label (#2912) 2023-06-28 17:12:23 +00:00
Alex Yang
da3f2b784a ci: fix output variable 2023-06-29 01:20:35 +08:00
Alex Yang
acb140ab78 v0.7.0-canary.23 2023-06-29 00:40:50 +08:00
Alex Yang
0b74bd9bfe ci: use production environment 2023-06-29 00:40:50 +08:00
Alex Yang
acfc030d16 ci: fix package version output 2023-06-29 00:40:50 +08:00
Alex Yang
d0d04ce376 v0.7.0-canary.22 2023-06-29 00:27:17 +08:00
Alex Yang
2250f42d2a ci: fix tag version 2023-06-29 00:26:48 +08:00
Alex Yang
887434fea4 v0.7.0-canary.21 2023-06-29 00:23:06 +08:00
Alex Yang
9b817c4b79 ci: automatically build canary release (#2911) 2023-06-28 15:53:32 +00:00
Alex Yang
ea03bbfb2d ci: add codeql check to merge group (#2909) 2023-06-28 15:07:27 +00:00
Qi
db40cd35c6 feat: migrate workspace setting with new design to setting modal (#2900)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-28 14:45:33 +00:00
Alex Yang
aabac9e921 chore: bump typescript version (#2906) 2023-06-28 12:57:33 +00:00
Alex Yang
0a91c41e0a chore: codesandbox setup (#2907) 2023-06-28 12:32:56 +00:00
DarkSky
d6addc0d0b docs: improve helm ci & document (#2902) 2023-06-28 12:30:02 +00:00
Alex Yang
91d3b76be5 refactor(storybook): move to apps folder (#2901) 2023-06-28 12:29:52 +00:00
Alex Yang
3eed009270 feat: add rule 'sonarjs/no-identical-functions' (#2905) 2023-06-28 12:29:12 +00:00
Alex Yang
bc14d54cfa chore: update pre-commit hook (#2904) 2023-06-28 11:24:37 +00:00
Alex Yang
5496969e58 refactor: environment setup (#2898)
Co-authored-by: Simon He <57086651+Simon-He95@users.noreply.github.com>
2023-06-28 11:19:19 +00:00
Alex Yang
80c2a78273 fix(web): bypass adapter list error (#2903) 2023-06-28 11:06:13 +00:00
Alex Yang
92f378aefc test(server): watch mode (#2893) 2023-06-28 10:00:06 +00:00
Alex Yang
877ceee698 ci: enable merge group (#2899) 2023-06-28 09:56:02 +00:00
Alex Yang
7960b6a22e feat: update migration test page (#2871) 2023-06-28 16:46:08 +08:00
Alex Yang
fa45d8a718 build: unify build flags (#2891) 2023-06-28 16:45:05 +08:00
Alex Yang
87574c9993 build: fix i18n output (#2896) 2023-06-28 16:40:41 +08:00
Alex Yang
2dd62f7603 v0.7.0-canary.20 2023-06-28 16:03:21 +08:00
Peng Xiao
79b3b1dabc fix: disable sqlite provider (#2888)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-28 15:01:15 +08:00
regischen
fd0aa4a2ee fix: migration props:elements (#2889) 2023-06-28 14:24:14 +08:00
3720
da57fbeadd fix: database migration (#2887) 2023-06-28 13:44:11 +08:00
JimmFly
3f12e4925f style: remove switch button shadow (#2890) 2023-06-28 05:07:33 +00:00
Alex Yang
21cb05a30c build(web): fix debug local (#2886) 2023-06-28 11:43:13 +08:00
Kushagra Singh
7a8ff2c489 docs: update CLA.md (#2884) 2023-06-28 03:12:15 +08:00
Alex Yang
d108434881 fix: preloading page (#2876)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
2023-06-28 03:11:14 +08:00
Alex Yang
20fd9b6574 feat: upload 0.7.0-canary.18 static output (#2883) 2023-06-28 03:10:08 +08:00
Alex Yang
26ac56e163 test: remove deprecated test (#2880) 2023-06-28 00:53:04 +08:00
Alex Yang
78b74d5b15 feat(docs): update document (#2877) 2023-06-28 00:52:42 +08:00
DarkSky
1556167262 feat: add helm releaser (#2875) 2023-06-28 00:16:40 +08:00
Alex Yang
5186710f84 v0.7.0-canary.19 2023-06-27 23:13:01 +08:00
JimmFly
c7f25e8fe3 fix: incorrect scrollbar position when opening full width layout (#2869)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-27 14:15:34 +00:00
Alex Yang
ab703fe3ae test: fix image preview (#2874) 2023-06-27 21:05:24 +08:00
DarkSky
5275ff5493 feat: add affine cloud helm config (#2870) 2023-06-27 21:00:41 +08:00
Alex Yang
4fad21fe5c fix: remove preloading page (#2873) 2023-06-27 20:00:06 +08:00
JimmFly
eec2074b88 style: add hover style for filter item (#2868) 2023-06-27 19:02:46 +08:00
LongYinan
dd58b1bbf6 build: docker images (#2860) 2023-06-27 17:23:19 +08:00
Peng Xiao
05452bb297 feat: sqlite subdocument (#2816)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-27 07:40:37 +00:00
danielchim
4307e1eb6b fix: image preview (#2818) 2023-06-27 15:26:57 +08:00
JimmFly
10c7f93a85 style: add hover style for scrollbar (#2867) 2023-06-27 15:26:13 +08:00
Alex Yang
adca2a7225 chore: bump version (#2866) 2023-06-27 13:23:54 +08:00
Alex Yang
eb3f160a64 chore: bump version (#2862) 2023-06-27 11:32:24 +08:00
Alex Yang
53488a1498 build: remove image preview config (#2861) 2023-06-27 10:59:24 +08:00
DarkSky
d46b6c4863 feat: new workspace apis (#2825) 2023-06-26 22:12:58 +08:00
Alex Yang
e3ffd04804 feat(docs): bootstrapping using blocksuite (#2859) 2023-06-26 21:39:07 +08:00
Alex Yang
bddcfe1b8b chore: bump version (#2858) 2023-06-26 17:58:24 +08:00
Believerd
f18d07a4a2 docs: added note for building native dependencies (#2851) 2023-06-26 17:34:48 +08:00
Alex Yang
44166f7256 fix(docs): defer entry js (#2856) 2023-06-26 16:59:42 +08:00
Alex Yang
8e82d1e02c feat: support migration (#2852) 2023-06-26 15:55:44 +08:00
JimmFly
002e64c819 style: add scrollbar (#2826) 2023-06-26 15:12:44 +08:00
Alex Yang
773d92760e feat: add migration test page (#2855) 2023-06-26 13:42:07 +08:00
Mirone
84c8828e8c feat: add migration script for database (#2854) 2023-06-26 12:16:30 +08:00
himself65
fb6de18b2f feat(docs): update home page 2023-06-25 22:25:13 +08:00
Alex Yang
d525bd9113 feat: init @affine/docs (#2849) 2023-06-25 21:18:23 +08:00
Alex Yang
d8bb51a222 chore: bump version (#2848) 2023-06-25 18:37:20 +08:00
Alex Yang
da4d89275f chore: bump version (#2847) 2023-06-25 17:47:48 +08:00
Alex Yang
9bf5ea3e56 chore: bump version (#2846) 2023-06-25 17:16:03 +08:00
Alex Yang
7fcc5e599e feat!: upgrade blocksuite version (#2833) 2023-06-25 01:16:46 +08:00
Qi
aa86d3a2ee feat: new setting modal (#2834)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-21 19:57:59 +08:00
LongYinan
9a90ce694c chore(server): commit server generated gql file to prevent build fail (#2835) 2023-06-21 07:22:47 +00:00
LongYinan
9b3fa43b81 feat(server): auth server (#2773) 2023-06-21 06:08:32 +00:00
himself65
2698e7fd0d fix(y-indexeddb): remove .js suffix 2023-06-21 11:25:14 +08:00
Alex Yang
58fd3857c0 fix(y-indexeddb): test cases (#2832) 2023-06-20 22:01:47 +08:00
Peng Xiao
3755661ff6 fix: incorrect bookmark toast text (#2815)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-20 19:14:15 +08:00
himself65
c649995a7a build: update changelogUrl 2023-06-20 18:58:05 +08:00
himself65
448d3731e5 build: update nx.json 2023-06-20 18:08:48 +08:00
3720
019a2f57cb fix: e2e test (#2828)
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-06-20 17:15:49 +08:00
himself65
6f9bb024be build: update nx.json 2023-06-20 13:41:58 +08:00
Mirone
707d585698 feat: add subdoc migration script (#2820)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-20 11:20:12 +08:00
Alex Yang
b73c75182f refactor: simplify rpc code (#2823) 2023-06-19 23:27:27 +08:00
Alex Yang
775d6212d3 build: fix nx config (#2824) 2023-06-19 23:07:40 +08:00
Alex Yang
357ff9853d fix: native build (#2822) 2023-06-19 18:21:34 +08:00
DarkSky
cd7892b7ed chore: update nx cloud read only token (#2821) 2023-06-19 17:38:26 +08:00
himself65
9512964366 build: fix publish.sh 2023-06-19 11:18:54 +08:00
Alex Yang
5473a12c0e build: fix nx output (#2817) 2023-06-19 11:13:59 +08:00
Alex Yang
c249cdf76a build: enable nx cloud (#2812) 2023-06-17 19:36:55 +08:00
Alex Yang
0e01094ffd ci: use nx on rust build (#2811) 2023-06-17 17:49:07 +08:00
Alex Yang
c68220166a feat(y-indexeddb): remove id (#2810) 2023-06-17 13:58:48 +08:00
Alex Yang
deeafb3a12 chore: bump version (#2799) 2023-06-17 13:52:07 +08:00
himself65
4d44542ca6 ci: update BUG-REPORT.yml 2023-06-16 15:18:18 +08:00
JimmFly
f83c92cb87 style: temporarily adjust the style of the co-pilot (#2804) 2023-06-16 15:12:59 +08:00
himself65
03c0b6b364 build: fix publish.sh 2023-06-16 15:00:06 +08:00
himself65
c5eb16139f build: update nx.json 2023-06-16 14:50:42 +08:00
himself65
bfb9e9b5c5 ci: update release-desktop-app.yml 2023-06-16 14:44:45 +08:00
himself65
af4de0b14f ci: update nightly-build.yml 2023-06-16 14:38:15 +08:00
Peng Xiao
0553ca3c02 docs: update building.md for electron (#2800) 2023-06-16 13:15:42 +08:00
himself65
9422b93857 fix(copilot): idb upgrade 2023-06-16 11:15:51 +08:00
himself65
951f5540a3 v0.7.0-canary.18 2023-06-15 21:56:22 +08:00
himself65
2b9929222c build: update change log url 2023-06-15 21:54:06 +08:00
Peng Xiao
b1c64a5f7e fix: missing updater (#2796) 2023-06-15 20:48:10 +08:00
Himself65
5164c8c1f9 chore: bump version (#2787) 2023-06-15 15:03:20 +08:00
himself65
18fad62f5c v0.7.0-canary.17 2023-06-15 14:34:11 +08:00
JimmFly
7eaff644e3 fix: electron cannot be started in Windows (#2784) 2023-06-15 06:16:27 +00:00
JimmFly
9fd4818d81 fix: window control not work (#2790) 2023-06-15 06:09:46 +00:00
himself65
d144c9f6f5 build(y-indexeddb): update package.json 2023-06-15 14:04:39 +08:00
JimmFly
a6752bb49c test: add basic test for link page and database (#2775) 2023-06-15 13:58:43 +08:00
danielchim
ae7da1b018 fix: image preview (#2786)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-15 13:55:17 +08:00
JimmFly
3819342ff2 fix: add guide to the other page (#2779) 2023-06-15 12:46:56 +08:00
himself65
3058c56394 v0.7.0-canary.16 2023-06-15 01:14:45 +08:00
himself65
afad85f4a4 ci: enable image preview 2023-06-15 01:13:58 +08:00
himself65
557a7c3360 v0.7.0-canary.15 2023-06-15 00:44:08 +08:00
Himself65
44580f6af0 fix(electron): bookmark plugin wound not work (#2776) 2023-06-15 00:43:28 +08:00
Himself65
5d75ceeeb5 feat: support sub-doc feature (#2774) 2023-06-14 23:22:35 +08:00
himself65
8d5330df74 v0.7.0-canary.14 2023-06-14 18:41:11 +08:00
Himself65
761965240d fix: build layer (#2769) 2023-06-14 18:40:13 +08:00
danielchim
ad32ed5dd5 feat: image-preview (#2720)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-14 04:20:29 +00:00
LongYinan
6a4f70cf43 fix(electron): install missing dependencies (#2765) 2023-06-14 11:11:45 +08:00
LongYinan
3996955e3b fix: add eslint-plugin-sonarjs and rules (#2767) 2023-06-14 10:45:14 +08:00
LongYinan
1c8f1a05d0 fix: add @typescript-eslint/no-floating-promises rule (#2764)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-13 06:55:23 +00:00
Flrande
bbac03107e fix: preloading gif order (#2760)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-13 14:46:52 +08:00
himself65
32f064c2de v0.7.0-canary.13 2023-06-13 14:13:38 +08:00
himself65
39704bc812 build: fix generate-assets.mjs 2023-06-13 14:12:08 +08:00
Himself65
a421265483 fix: remove unused hooks (#2762) 2023-06-13 12:18:32 +08:00
himself65
e6214cb6ec v0.7.0-canary.12 2023-06-13 11:00:39 +08:00
himself65
ba7d34bce5 docs: update thanks section in README.md 2023-06-13 10:45:52 +08:00
Himself65
ace3c37fcc feat: improve copilot (#2758) 2023-06-13 10:29:04 +08:00
Peng Xiao
5ba2dff008 feat: add helper process (#2753) 2023-06-13 10:01:43 +08:00
Himself65
dff8a0db7d fix: nx build input (#2755) 2023-06-12 13:06:23 +08:00
himself65
ccda45bdd2 build: fix nx.json 2023-06-12 12:05:00 +08:00
Himself65
eeb536d460 feat: use nx to manage monorepo (#2748) 2023-06-10 00:46:24 +08:00
Peng Xiao
1e6e0336c3 fix: electron dev crash (#2746) 2023-06-09 08:47:14 +00:00
Himself65
f2ac2e5b84 feat: isolated plugin system (#2742) 2023-06-09 16:43:46 +08:00
Himself65
af6f431c15 fix: replace noop function (#2744) 2023-06-09 16:00:44 +08:00
Peng Xiao
01ae21e1fa feat: add kalam font (#2743) 2023-06-09 15:48:30 +08:00
LongYinan
34141958eb style: remove some verbose codes (#2741) 2023-06-09 14:55:41 +08:00
JimmFly
c194cff0bd chore: remove en.json code owner (#2740) 2023-06-09 13:24:25 +08:00
Himself65
6b6f2d6910 chore: upgrade yarn (#2739) 2023-06-09 12:33:52 +08:00
LongYinan
2e975e79dd style: add ban-ts-comment rule (#2738) 2023-06-09 11:55:23 +08:00
Himself65
c5a295a87b chore: bump typescript to 5.1.3 (#2735)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-06-09 11:42:54 +08:00
himself65
119b4cdf10 v0.7.0-canary.11 2023-06-09 11:30:51 +08:00
Himself65
bf6af934f6 fix: regression on the database and bookmark block (#2737) 2023-06-09 11:29:52 +08:00
Himself65
1971749449 test: add test cases for page setting atom (#2736) 2023-06-09 02:00:09 +08:00
Himself65
b383ce36cd build: enhance tsconfig type check (#2732) 2023-06-09 01:42:58 +08:00
Himself65
fc9a9f479b fix: page meta is undefined (#2734) 2023-06-09 01:19:16 +08:00
himself65
227174db1b build: fix eslint config 2023-06-09 01:11:53 +08:00
Himself65
9f129075dd feat: add page setting atom (#2725) 2023-06-09 00:58:46 +08:00
Peng Xiao
935b4f847c fix: potential flaky issues (#2733) 2023-06-09 00:20:12 +08:00
Whitewater
ec99a0ce05 feat: update desc for empty page (#2710) 2023-06-08 20:28:37 +08:00
Himself65
7ba5f82aef chore: bump blocksuite to 0.0.0-20230607055421-9b20fcaf-nightly (#2731) 2023-06-08 20:27:12 +08:00
Peng Xiao
546d5764e6 fix: a potential crash on fav list (#2716) 2023-06-08 20:06:15 +08:00
himself65
6f411bd459 v0.7.0-canary.10 2023-06-08 18:33:14 +08:00
JimmFly
29d8f61c90 feat: add date picker (#2644)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-08 17:55:16 +08:00
Peng Xiao
bedf838fe5 feat: add new rule for floating promise (#2726)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-08 17:54:25 +08:00
Qi
fda89b05e7 feat: replace electron to puppeteer (#2700)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-08 17:51:45 +08:00
himself65
de8af5f114 revert: page jump once 2023-06-08 16:54:42 +08:00
himself65
14db45ae95 build: fix the directory path on webstorm 2023-06-08 16:26:09 +08:00
Himself65
27b14af388 test: fix flaky on local-first-workspace-list.spec.ts (#2727) 2023-06-08 16:18:10 +08:00
LongYinan
18dc427bc3 style: enable no-non-null-assertion rule (#2723)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-06-08 07:23:20 +00:00
Himself65
1ad2e629ac refactor: project tsconfig & abstract infra type (#2721) 2023-06-08 12:41:47 +08:00
Himself65
05288be934 fix: flaky when drag workspace list (#2724) 2023-06-08 11:51:02 +08:00
Himself65
05b73a59be fix: first page default mode (#2719)
Co-authored-by: tzhangchi <c@affine.pro>
2023-06-08 10:17:27 +08:00
Himself65
f3fd5ff76b feat: add infra code (#2718) 2023-06-08 09:41:20 +08:00
Himself65
4958d096b0 fix: move workspace to top level (#2717) 2023-06-07 23:20:35 +08:00
Himself65
7f2006488e fix: type import (#2715) 2023-06-07 22:47:02 +08:00
Peng Xiao
008a05a470 fix(electron): should not continue pull when db closed (#2709) 2023-06-07 18:01:59 +08:00
himself65
3d7721d59d v0.7.0-canary.9 2023-06-07 17:59:55 +08:00
Flrande
35fb10c95b feat: add preloading template (#2655)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-07 17:31:54 +08:00
Himself65
c4c4ec6a67 refactor: split storybook (#2706) 2023-06-07 16:55:06 +08:00
Himself65
f4be15baec fix: package affine/env modules (#2707) 2023-06-07 16:31:05 +08:00
himself65
17b40b68df docs: update README.md 2023-06-07 16:29:37 +08:00
Himself65
cd5c4b5cb7 fix: remove dependencies in @affine/debug (#2708) 2023-06-07 15:41:42 +08:00
LongYinan
d28c887237 feat(native): move sqlite operation into Rust (#2497)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-06-07 14:52:19 +08:00
himself65
541011ba90 build: remove unused reference 2023-06-07 14:21:21 +08:00
wonderl17
fc658f4a95 fix: add bookmark operation flag for ts check (#2699) 2023-06-07 10:18:19 +08:00
Peng Xiao
84f68fc2c0 fix: import workspace may only show default preload page (#2685) 2023-06-06 14:42:50 +08:00
JimmFly
f78760cb83 fix: empty svg color missing (#2692) 2023-06-06 04:45:34 +00:00
Himself65
8f6db00402 feat: init window.affine (#2682) 2023-06-06 11:43:34 +08:00
Peng Xiao
d00d0bd951 fix: the top padding should be draggable (#2688) 2023-06-06 11:12:00 +08:00
Peng Xiao
8f5cd13e78 fix: do not show deleted reference (#2689) 2023-06-06 10:36:58 +08:00
Whitewater
3b4cfc642f fix: overflow in radio button group (#2687) 2023-06-05 10:18:53 +00:00
JimmFly
5807f34935 fix: empty icon color error (#2686) 2023-06-05 10:06:17 +00:00
Whitewater
efae4cccd6 feat: sticky table head in page list (#2668)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-06-05 07:43:24 +00:00
Himself65
b461a684ad chore: bump version (#2681) 2023-06-05 01:00:41 +08:00
3720
b95808a052 test: add some e2e tests for all pages filter (#2674) 2023-06-04 23:34:16 +08:00
Himself65
1716e7a397 fix: use react-resizable-panels (#2679) 2023-06-04 23:33:36 +08:00
Himself65
acda594cba refactor: use esbuild instead of vite (#2672) 2023-06-02 13:22:09 +00:00
Himself65
94d20f1bdc feat: plugin system with isolated bundles (#2660) 2023-06-02 16:28:47 +08:00
Vlad Cuciureanu
f9079bb681 fix: README typo 2023-06-02 15:47:09 +08:00
himself65
0d07ff2390 v0.7.0-canary.8 2023-06-02 13:02:48 +08:00
xiaodong zuo
42bab6990e fix: update version bump-blocksuite (#2658) 2023-06-02 11:16:31 +08:00
fourdim
89a566a645 fix: pdf export in client and hide png export (#2604) 2023-06-01 13:26:57 +00:00
LongYinan
7af5bd3894 v0.7.0-canary.7 2023-06-01 19:11:12 +08:00
Peng Xiao
a57c27679d chore: bump blocksuite (#2652) 2023-06-01 10:55:10 +00:00
JimmFly
68a72b2dfc chore: update whats new link (#2651) 2023-06-01 17:59:30 +08:00
LongYinan
602f795133 build: prevent tsconfig includes sources outside (#2643) 2023-06-01 17:08:14 +08:00
himself65
5df89a925b v0.7.0-canary.6 2023-06-01 15:34:08 +07:00
Whitewater
23126e1ff6 fix: show table head when no item in page list (#2642) 2023-06-01 16:31:51 +08:00
xiaodong zuo
e1f715f837 chore: update blocksuite to 0.0.0-20230601062752-68dbf1a4-nightly (#2641) 2023-06-01 16:25:54 +08:00
himself65
fbcaed40e7 fix: block hub not working in the editor 2023-06-01 14:32:41 +08:00
JimmFly
88757ce488 chore: update all page style (#2638) 2023-06-01 12:38:14 +08:00
Simon He
fc9462eee9 perf: getEnvironment() -> env (#2636) 2023-06-01 03:23:38 +00:00
Qi
e1314730be feat: support get dynamic page meta data (#2632) 2023-06-01 11:03:16 +08:00
Peng Xiao
36978dbed6 fix: plugin bootstrap (#2631)
Co-authored-by: himself65 <himself65@outlook.com>
2023-06-01 01:14:37 +08:00
Whitewater
53d1991211 chore: update page group naming (#2628) 2023-05-31 16:41:25 +00:00
LongYinan
1ea445ab15 build: perform TypeCheck for all packages (#2573)
Co-authored-by: himself65 <himself65@outlook.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-05-31 12:49:56 +00:00
Himself65
78410f531a chore: bump version (#2627) 2023-05-31 18:16:18 +08:00
himself65
96c0321696 v0.7.0-canary.5 2023-05-31 17:34:21 +08:00
himself65
0895f1fb30 ci: enable bookmark block in canary 2023-05-31 17:33:11 +08:00
himself65
b6188f4b11 docs: update logo in README.md 2023-05-31 17:23:01 +08:00
JimmFly
2ed1a7b219 chore: update filter style (#2625) 2023-05-31 17:20:18 +08:00
Himself65
9bee6bd5cc docs: update logo (#2626) 2023-05-31 17:16:50 +08:00
himself65
198f30c86d docs: update README.md 2023-05-31 17:12:27 +08:00
Himself65
454f1887cf feat: add @affine/bookmark-block plugin (#2618) 2023-05-31 17:08:03 +08:00
himself65
4e1e4e9435 v0.7.0-canary.4 2023-05-31 16:47:16 +08:00
3720
f7768563e1 fix: wrong use of dayjs (#2624) 2023-05-31 16:46:36 +08:00
Himself65
6aa0e71b84 chore: bump blocksuite to 0.0.0-20230531080915-ca9c55a2-nightly (#2622) 2023-05-31 16:32:35 +08:00
himself65
f1b3a10969 test: fix mouse click down timeout 2023-05-31 16:22:43 +08:00
Whitewater
90e70ed986 fix: drag delay (#2621) 2023-05-31 16:21:50 +08:00
xiaodong zuo
094a479c2a fix: remove the feature of exporting pdf/png (#2619)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-31 16:20:42 +08:00
Whitewater
20f1d487c8 feat: add page preview (#2620) 2023-05-31 08:18:48 +00:00
himself65
4c9bda1406 v0.7.0-canary.3 2023-05-31 15:41:52 +08:00
JimmFly
d5debc0bf5 chore: update filter style (#2617)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-31 15:41:16 +08:00
Peng Xiao
f5aee7c360 fix: unify sidebar switch (#2616) 2023-05-31 07:06:13 +00:00
Himself65
248cd9a8ab chore: prohibit import package itself (#2612)
Co-authored-by: Whitewater <me@waterwater.moe>
2023-05-31 15:00:50 +08:00
Himself65
06abb702f5 refactor: remove deprecated atoms (#2615) 2023-05-31 14:54:59 +08:00
Himself65
ee289706ec refactor: move affine utils into @affine/workspace (#2611) 2023-05-31 13:13:59 +08:00
Himself65
6cbf310a5a chore: bump blocksuite to 0.0.0-20230531040027-44cd9d8e-nightly (#2610) 2023-05-31 13:10:41 +08:00
Whitewater
855fd8a73a feat: page list supports preview (#2606) 2023-05-31 04:24:55 +00:00
Himself65
8dbd354659 fix: logic after delete all workspaces (#2587)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-05-31 12:24:14 +08:00
Himself65
1c7ae04f4f feat: update filter button (#2609) 2023-05-31 11:26:20 +08:00
Whitewater
0bb6e362bf feat: add page mode filter (#2601)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-31 11:15:23 +08:00
Peng Xiao
617350fc7d fix: optimize DB pull (#2589) 2023-05-31 11:09:18 +08:00
Hyden Liu
2713340532 fix(web): header div props error (#2607) 2023-05-31 10:34:42 +08:00
Whitewater
31d552ab7e fix: update breakpoint in all page (#2602) 2023-05-30 18:27:42 +08:00
Himself65
e11326f05f feat: add hook useBlockSuitePagePreview (#2603) 2023-05-30 18:26:13 +08:00
Himself65
6648fe4dcc feat: init @affine/copilot (#2511) 2023-05-30 18:02:49 +08:00
Peng Xiao
f669164674 fix: popover may not be closable (#2598) 2023-05-30 17:29:00 +08:00
JimmFly
c6d8904ca2 fix: quick search result missing title (#2594) 2023-05-30 16:45:00 +08:00
3720
8c5a1e2de3 test: add some tests for page filter (#2593) 2023-05-30 16:39:14 +08:00
himself65
395414c336 v0.7.0-canary.2 2023-05-30 15:17:35 +08:00
xiaodong zuo
96f653ea19 chore: bump blocksuit to 0.0.0-20230530061436-d0702cc0-nightly (#2590) 2023-05-30 15:13:54 +08:00
fourdim
fa089de40d feat: add support for exporting pdf and png (#2588)
This closes #2583.
2023-05-30 14:04:35 +08:00
Doma
4175f5391e feat(web): drag page to trash folder (#2385)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-30 13:14:10 +08:00
Himself65
61c417992a feat: init support for multiple tiles (#2585) 2023-05-30 12:27:38 +08:00
Himself65
befae6bc9b feat: page view persistence (#2581) 2023-05-30 00:21:21 +08:00
himself65
e7eb13e966 v0.7.0-canary.1 2023-05-30 00:19:05 +08:00
Whitewater
88eaaf9ce4 feat: add radio group (#2572) 2023-05-29 23:15:22 +08:00
Himself65
20cc082a02 refactor: abstract header adapter (#2580) 2023-05-29 22:52:04 +08:00
Qi
402d12a0e1 fix: bookmark popper menu only display after pasted (#2578) 2023-05-29 14:25:30 +00:00
Himself65
58ba11e13c refactor: ui adapter (#2577) 2023-05-29 21:56:00 +08:00
Horus
cb6ca52b03 fix: replace windows installer loading gif (#2575) 2023-05-29 21:36:08 +08:00
Himself65
cd2ab73e5d chore: bump blocksuite to 0.0.0-20230529102007-5ac37643-nightly (#2569) 2023-05-29 18:51:33 +08:00
JimmFly
b16e725514 chore: adjust switch style (#2570) 2023-05-29 18:40:47 +08:00
JimmFly
004fcc8e80 fix: updater button text overflow (#2571) 2023-05-29 18:39:47 +08:00
Hyden Liu
a01a3ef011 fix: dropdown menu entire right can be pulled down (#2568)
Co-authored-by: Whitewater <me@waterwater.moe>
2023-05-29 07:03:26 +00:00
Peng Xiao
20cf45270d refactor(electron): sqlite db data workflow (remove symlink & fs watcher) (#2491) 2023-05-29 12:53:15 +08:00
3720
f3ac12254c feat: headless filter in all pages tab (#2566)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-29 04:06:40 +00:00
himself65
e0eb216b9b chore: revert @vanilla-extract/next-plugin to 2.1.2 2023-05-27 21:36:24 +08:00
Himself65
90afed1e74 feat: add build flag enableAllPageFilter (#2562) 2023-05-27 16:35:07 +08:00
Himself65
83d2ed8ace chore: bump version (#2559) 2023-05-27 16:08:07 +08:00
himself65
a0b64ca3e3 docs: update releases.md 2023-05-26 16:12:53 +08:00
himself65
b9fc5ad769 v0.7.0-canary.0 2023-05-26 15:50:00 +08:00
Himself65
ef1a44a413 chore: bump version (#2542) 2023-05-26 15:47:45 +08:00
xiaodong zuo
798dc49da4 feat: the UI of importing Html/Markdown/Notion (#2533)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-26 15:30:39 +08:00
himself65
902081d44e ci: remove concurrency in languages-sync.yml 2023-05-26 15:26:12 +08:00
Whitewater
7969b73979 chore: tweak all page styles (#2540) 2023-05-26 15:13:50 +08:00
Himself65
c8734bd6ee chore: bump blocksuite to 0.0.0-20230526024755-74df4d56-nightly (#2541) 2023-05-26 15:13:00 +08:00
Qi
6d3c273ffd feat: support bookmark (#2458)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-26 06:52:36 +00:00
Himself65
f4b3830a0e feat(component): init notification center (#2426)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-05-26 14:32:01 +08:00
Whitewater
36534f1915 feat: add storybook i18n decorator (#2538)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-26 14:28:11 +08:00
Whitewater
7dcbe64d4e feat: group all page by date (#2532)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-26 05:23:51 +00:00
Himself65
60057c666d fix: cannot delete last workspace (#2537) 2023-05-26 13:04:20 +08:00
JimmFly
60a83f4907 chore: update user guide style (#2536) 2023-05-26 12:55:06 +08:00
Horus
b11ce2c8d2 docs: add native build command to readme (#2535) 2023-05-26 10:29:30 +08:00
Whitewater
3b8f2c1ac3 refactor: use date obj in all pages (#2523) 2023-05-25 18:22:57 +08:00
Whitewater
be065e2de3 fix: sort in desc based update date by default (#2510) 2023-05-25 15:33:02 +08:00
Horus
675c737e48 fix: replace new windows install loading gif (#2513) 2023-05-25 14:30:52 +08:00
himself65
1255384cab v0.6.0-canary.8 2023-05-25 14:13:32 +08:00
Himself65
3d423c3299 fix: dispose on editor props.onInit (#2521) 2023-05-25 14:13:06 +08:00
ShortCipher5
ad4737850d chore: update pre-load content (#2518) 2023-05-25 05:41:49 +00:00
Himself65
9dcacd413c chore: bump blocksuite to 0.0.0-20230525011821-20259c76-nightly (#2515) 2023-05-25 13:04:18 +08:00
JimmFly
c1998eddf3 chore: bump electron (#2516) 2023-05-25 03:46:34 +00:00
himself65
db3f63e8f2 v0.6.0-canary.7 2023-05-25 09:17:21 +08:00
JimmFly
e562ca1011 chore: update download tip link (#2509) 2023-05-24 16:43:45 +08:00
fourdim
f6adf93f90 feat: add simple support for pdf (#2503) 2023-05-24 16:40:20 +08:00
Chi Zhang
053eba5d98 docs: update README.md (#2506) 2023-05-24 14:46:26 +08:00
Himself65
49f1ba676f fix: regression on toast component (#2502) 2023-05-24 13:10:25 +08:00
Aditya Sharma
48c109e149 feat(component): keyboard navigation for image-viewer (#2334)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-23 09:35:11 +00:00
LongYinan
259d7988d9 chore(native): upgrade notify to v6 (#2489) 2023-05-22 22:45:43 +08:00
fourdim
0a49258ddd docs: update build guideline (#2434)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-22 12:18:43 +00:00
himself65
fd35d3427e fix: make editor width to 800px
Fixes: https://github.com/toeverything/AFFiNE/issues/2486
2023-05-22 17:40:51 +08:00
Himself65
ef0a20b358 fix: use data-testid (#2487) 2023-05-22 17:36:52 +08:00
Himself65
f01997f8ee refactor: remove unused code (#2484) 2023-05-22 17:11:18 +08:00
Whitewater
281a068cfb chore(i18n): remove unused dependencies (#2485) 2023-05-22 17:03:55 +08:00
Whitewater
fe5be0cb47 fix: flatten i18n keys (#2483) 2023-05-22 08:08:43 +00:00
himself65
8aab1d6459 docs: add comment on legacy affine adapter 2023-05-22 16:02:05 +08:00
Himself65
2eaaeef4a7 fix: use hook with first render (#2481) 2023-05-22 15:58:13 +08:00
Himself65
5fbfabb3b2 refactor: rename plugins to adapters (#2480) 2023-05-22 15:48:01 +08:00
himself65
ec64260b6a v0.6.0-canary.6 2023-05-22 14:25:20 +08:00
LongYinan
2e23a4830b ci: add circular import detect (#2475)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-22 04:53:55 +00:00
Himself65
41a3d6f62f fix: wrap all workspaces with Suspense (#2477) 2023-05-22 12:39:07 +08:00
Peng Xiao
752bc9ca0e fix: fav reference style issue (#2476) 2023-05-22 12:01:03 +08:00
Himself65
c08f6fdba4 chore: update blocksuite to 0.0.0-20230519102837-01acd96b-nightly (#2472) 2023-05-22 02:27:03 +00:00
Geoffrey Biggs
b23b7e896b docs: correct spelling (#2469) 2023-05-22 07:26:30 +08:00
Whitewater
d68b421a4b feat: add responvise page view (#2453) 2023-05-22 07:25:25 +08:00
Horus
1f510799e2 fix: add windows install loading gif (#2462) 2023-05-21 16:03:48 +08:00
Peng Xiao
66ea97c7c9 fix: adjust some windows style issues (#2454) 2023-05-19 09:39:51 -07:00
Shishu
ee300e7b60 docs: sign CLA (#2457) 2023-05-19 08:40:59 -07:00
Peng Xiao
ef2d135e9b fix: optimize app updater (#2452) 2023-05-19 00:07:07 -07:00
JimmFly
c82fb89d57 chore: remove unused i18n key (#2451) 2023-05-19 03:38:48 +00:00
himself65
725bf63a32 ci: remove add-to-project.yml 2023-05-18 18:35:19 -07:00
himself65
c1ca578f7d docs: add download count 2023-05-18 13:12:26 -07:00
Whitewater
530dd5ff7f feat: add new page button (#2417) 2023-05-18 13:07:05 -07:00
Himself65
11370bc07e chore: bump version (#2444) 2023-05-18 11:43:45 -07:00
JimmFly
1c53daf1c4 chore: bump icon version (#2441) 2023-05-18 10:37:40 -07:00
Peng Xiao
b2556db33b fix: adjust some styles (#2438) 2023-05-18 09:24:23 +00:00
JimmFly
89310c9b97 chore: adjust delete description style (#2437) 2023-05-18 09:17:38 +00:00
JimmFly
8e09af910f fix: create workspace card responsive (#2435) 2023-05-18 09:11:15 +00:00
himself65
885aea3425 v0.6.0-canary.5 2023-05-18 01:21:25 -07:00
ShortCipher5
a616150f2d chore: update pre-load content (#2432) 2023-05-18 00:08:35 -07:00
Himself65
d80dae8a89 fix: open non-trash page when open (#2431) 2023-05-17 23:22:31 -07:00
Himself65
34ff08b92b chore: bump blocksuite to 0.0.0-20230518051344-45970a96-nightly (#2430) 2023-05-17 22:30:45 -07:00
Peng Xiao
2f7b51d7ff feat: fav page references (#2422)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-17 22:18:40 -07:00
ShortCipher5
b7cee3185e chore: update pre-loading page (#2429) 2023-05-17 22:16:19 -07:00
JimmFly
1c5455e6ed chore: adjust copywriting for onboarding (#2428) 2023-05-17 22:15:01 -07:00
himself65
2d303fd5d3 v0.6.0-canary.4 2023-05-17 17:46:39 -07:00
himself65
fbe2543c03 fix: version check 2023-05-17 17:44:58 -07:00
Himself65
d6b640726e refactor: remove unused code (#2425) 2023-05-17 17:15:12 -07:00
Peng Xiao
f875b37641 fix: configurable changelog url (#2418) 2023-05-17 16:16:22 -07:00
Himself65
53c4fc6dfa fix: sidebar fallback ui position (#2424) 2023-05-17 15:49:55 -07:00
Himself65
6c310249d9 chore: bump version (#2423) 2023-05-17 15:02:55 -07:00
Horus
02e1f528bf fix: add workflow to check release version match with package.json (#2420) 2023-05-17 10:37:28 -07:00
Peng Xiao
c870104370 chore: bump blocksuite to 0.0.0-20230517102216-36bda4ab-nightly (#2411) 2023-05-17 10:09:29 -07:00
himself65
627d8ef787 v0.6.0-canary.3 2023-05-17 09:48:51 -07:00
LongYinan
5563823a7a build: missing build native step in nightly build (#2421) 2023-05-17 23:52:32 +08:00
JimmFly
d6804bb0fd chore: update prompt (#2410) 2023-05-17 17:52:57 +08:00
LongYinan
1350633690 build: fix electron release build process (#2408) 2023-05-17 17:22:49 +08:00
JimmFly
50196d8fde chore: update preloading page (#2409) 2023-05-17 09:16:07 +00:00
Peng Xiao
2e0ccb53ec feat: update button enhancements (#2401) 2023-05-17 16:58:14 +08:00
Whitewater
1498ee405b feat: add dropdown button (#2407) 2023-05-17 16:32:37 +08:00
Peng Xiao
cb863c4afa chore: disable image modal by default (#2400) 2023-05-16 23:14:31 -07:00
Himself65
2629d39501 fix: infinite reloading (#2405) 2023-05-17 13:58:34 +08:00
Himself65
38305cd984 fix: hydration error (#2404) 2023-05-17 05:23:55 +00:00
LongYinan
93116c24f2 feat(electron): use affine native (#2329) 2023-05-17 12:36:51 +08:00
Whitewater
017b9c8615 feat: add block card component (#2398) 2023-05-16 18:19:28 +08:00
Whitewater
9ce3a96862 fix: unexpected undefined class in popup (#2394) 2023-05-16 10:01:27 +00:00
Peng Xiao
a0ff520ba4 fix: some style updates (#2396) 2023-05-16 09:46:51 +00:00
Whitewater
a8b8986d89 chore: disable confused storybook backgrounds addon (#2395) 2023-05-16 17:46:35 +08:00
JimmFly
8ffc096fee fix: text overflows in the header option menu (#2393) 2023-05-16 17:35:57 +08:00
JimmFly
7e457f7b4c chore: add responsive styles for workspace card (#2390) 2023-05-16 16:51:46 +08:00
xiaodong zuo
aedf2d339e Update jobs.md
Added a job posting for a full-time or internship engineer.
2023-05-16 15:35:23 +08:00
JimmFly
ffd5ae52b3 feat: add Japanese support and update translation (#2388) 2023-05-16 14:21:51 +08:00
DiamondThree
3093194da8 docs: update jobs.md (#2389) 2023-05-15 22:24:27 -07:00
Horus
68b4f792f0 fix: app updater not working for internal release (#2377) 2023-05-15 20:34:54 -07:00
himself65
e2c6e4f9fc ci: use samver 2023-05-15 09:34:04 -07:00
Whitewater
9ff7dbffb7 feat: supports sort all page (#2356) 2023-05-15 08:50:43 -07:00
JimmFly
0c561da061 chore: remove favorite page (#2372) 2023-05-15 08:41:38 -07:00
JimmFly
06951319a6 chore: remove quick search tips (#2375) 2023-05-15 08:41:10 -07:00
JimmFly
0bfcab4067 chore: add animation for tour modal (#2365) 2023-05-15 16:48:52 +08:00
himself65
2c4db4fa16 v0.6.0-canary.2 2023-05-14 23:14:36 -07:00
Himself65
23b4f9ee12 feat(electron): track router history (#2336)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-05-14 23:13:30 -07:00
himself65
e5330b1917 build: add app bundle id for internal 2023-05-14 22:35:40 -07:00
Peng Xiao
183611a556 fix: some style updates (#2348) 2023-05-14 21:58:13 -07:00
Himself65
7786456ba4 chore: update blocksuite to 0.0.0-20230514141009-705c0fac-nightly (#2357) 2023-05-14 19:32:27 -07:00
Ikko Eltociear Ashimine
f4bf7e3ddf fix: typo in AFFiNE-Docs.md (#2355) 2023-05-13 22:37:42 -07:00
Doma
05d88215d1 feat(electron): app menu item and hotkey for creating new page (#2267)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-05-13 15:45:12 +00:00
Himself65
b240a70e51 chore: update blocksuite to 0.0.0-20230512192655-e61e272b-nightly (#2352) 2023-05-12 15:39:05 -05:00
LongYinan
00fd468e9b chore(server): remove bcrypt to avoid node-gyp usage (#2349) 2023-05-12 13:48:38 -05:00
Himself65
b5a7f8b7eb chore: bump version (#2331) 2023-05-12 13:47:14 -05:00
himself65
f03277fd17 v0.6.0-canary.1 2023-05-12 01:30:54 -05:00
himself65
ee93071149 chore: update icons 2023-05-12 01:06:05 -05:00
Himself65
21fdced2bd fix: correct router logic (#2342) 2023-05-12 00:55:45 -05:00
Peng Xiao
10b4558947 feat: new sidebar (app shell) styles (#2303) 2023-05-11 22:13:51 -05:00
Himself65
0fbed5d9d6 ci: collect test coverage on electron (#2335) 2023-05-11 20:51:13 -05:00
Himself65
8d117123d7 fix: remove useEffect on router sync with atoms (#2241) 2023-05-11 16:37:42 -05:00
Himself65
063ffda09d refactor: rename WorkspacePlugin to WorkspaceAdapter (#2330) 2023-05-11 12:43:39 -05:00
Himself65
39c83bd25b fix: delay setAom on rootWorkspacesMetadataAtom (#2271) 2023-05-11 15:03:11 +00:00
Peng Xiao
4444c3d1a6 fix: updater issue 2023-05-11 14:44:54 +08:00
LongYinan
717dd93f37 fix(electron): close db before move db file 2023-05-11 14:41:51 +08:00
LongYinan
c58673c55f chore(native): license 2023-05-11 14:41:51 +08:00
LongYinan
768e55072d ci: rust build config 2023-05-11 14:41:51 +08:00
LongYinan
8c84daec2b feat(native): NotifyEvent types 2023-05-11 14:41:51 +08:00
LongYinan
e54a5b6128 feat(native): provide FSWatcher 2023-05-11 14:41:51 +08:00
LongYinan
ee1e50f391 refactor(native): rename folder name 2023-05-11 14:41:51 +08:00
himself65
268636c440 v0.6.0-canary.0 2023-05-11 01:09:21 -05:00
Peng Xiao
06fa0cdb60 fix: should not show open folder if it is not moved (#2299) 2023-05-11 05:36:22 +00:00
Himself65
73dbb39009 feat(component): improve fallback skeleton (#2323) 2023-05-11 00:35:42 -05:00
JimmFly
47848cb5da fix: delete modal on confirm does not close (#2322) 2023-05-11 05:19:11 +00:00
JimmFly
eff6a03a51 chore: update AFFiNE Cloud prompt (#2321) 2023-05-11 00:18:12 -05:00
himself65
08f6a41ef4 ci: fix set version scripts 2023-05-10 23:00:36 -05:00
himself65
6d1345ffe5 build: replace version 2023-05-10 22:24:34 -05:00
Himself65
689f615b11 chore: bump version (#2310) 2023-05-10 21:43:14 -05:00
Himself65
f82ea5d9c4 build(electron): add internal release channel (#2309) 2023-05-10 21:42:56 -05:00
himself65
dc4979a80c fix(electron): remove unused code 2023-05-10 15:04:13 -05:00
JimmFly
1f48bc4301 refactor: tour modal (#2297) 2023-05-10 08:11:42 +00:00
himself65
beabd1e050 v0.5.4-canary.31 2023-05-10 00:56:04 -05:00
Himself65
19e20a6a20 fix(component): toast too many times when switch page mode (#2296) 2023-05-10 00:50:51 -05:00
Peng Xiao
e4f13ddae4 fix: try to fix updater not working (#2294)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-10 00:40:22 -05:00
Himself65
752d0545ca feat: enhance root div styles (#2295) 2023-05-10 00:39:51 -05:00
himself65
08341d3d6c ci: remove master branch build 2023-05-09 23:11:46 -05:00
himself65
ef665df330 ci: add nightly-build.yml 2023-05-09 23:04:24 -05:00
Himself65
b38017cd23 feat(component): add skeleton in page detail (#2292) 2023-05-09 22:38:30 -05:00
Peng Xiao
0c550a2827 fix: theme not being persisted issue (#2283) 2023-05-09 22:04:36 -05:00
Chi Zhang
87ffdad862 docs: update README.md (#2291) 2023-05-09 21:51:44 -05:00
himself65
c6e8024e16 ci: disable fall-test in desktop-test 2023-05-09 21:13:33 -05:00
himself65
4200b3c3e5 ci: build staging and release branches 2023-05-09 20:27:07 -05:00
Himself65
10976a9257 chore: bump version (#2287) 2023-05-09 15:40:36 -05:00
himself65
b81b5439ae v0.5.4-canary.30 2023-05-09 15:02:14 -05:00
Himself65
a84ca43ce2 fix(component): input style (#2285) 2023-05-09 15:01:29 -05:00
JimmFly
b978bb171a feat: add download tips banner (#2151) 2023-05-09 11:07:34 -05:00
JimmFly
b937c1b5f6 chore: replace lang icon (#2281) 2023-05-09 15:27:05 +00:00
himself65
3c97e01513 v0.5.4-canary.29 2023-05-09 02:30:43 -05:00
Peng Xiao
7c2574b1ca feat: create workspace from loading existing exported file (#2122)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-09 02:30:01 -05:00
himself65
5432aae85c v0.5.4-canary.28 2023-05-09 01:58:58 -05:00
Himself65
be41c99602 chore: bump version (#2279) 2023-05-09 01:35:49 -05:00
Himself65
c41718e80d feat(component): support image preview by double click (#2198) 2023-05-09 01:09:39 -05:00
Himself65
242e074ae6 feat: add suspense fallback for editor (#2278) 2023-05-08 23:57:36 -05:00
Himself65
793b689b81 fix(component): updated at in page meta (#2277) 2023-05-09 03:54:07 +00:00
Himself65
53db6a6e9d refactor(component): input component (#2275) 2023-05-09 02:39:39 +00:00
Fangdun Tsai
cba3293326 fix: width of cmd-item button on quick-search modal (#2273) 2023-05-08 21:13:11 -05:00
Fangdun Tsai
11d1d773ff fix: vertical alignment of item on share menu (#2274) 2023-05-08 21:12:19 -05:00
Fangdun Tsai
f071361347 fix: kebab-case warning for CSS properties in dev mode (#2276) 2023-05-08 21:03:32 -05:00
himself65
2c18fadb2d build: commit after the set version 2023-05-08 18:31:16 -05:00
Himself65
1e8c5a4482 fix(electron): self-update is pending (#2272) 2023-05-08 18:16:07 -05:00
Himself65
4f99ad2db4 feat: forced file naming format (#2270) 2023-05-08 17:37:07 -05:00
Himself65
95bc5cac49 refactor: remove sync storage (#2269) 2023-05-08 17:21:42 -05:00
himself65
3a6be4510b v0.5.4-canary.27 2023-05-08 16:33:44 -05:00
Horus
41d4af1dc1 feat: implement latest version updater for macos (#2214)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-08 13:21:15 -05:00
Doma
d1457075b3 feat(web): improve keyboard navigation in RootAppSidebar (#2256)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-08 09:57:14 -05:00
Fangdun Tsai
d040a7fb50 fix: background color on shortcuts header (#2264) 2023-05-08 09:53:53 -05:00
Himself65
f1c3d575ad fix: dispatch workspace change event (#2261) 2023-05-08 14:47:47 +08:00
Fangdun Tsai
a942add87a fix: width of new page button (#2258) 2023-05-08 01:06:00 -05:00
himself65
d408a8bbb1 v0.5.4-canary.26 2023-05-07 23:44:02 -05:00
Himself65
4298ff7c7c chore: bump version (#2255) 2023-05-07 23:43:33 -05:00
Himself65
c55bfcc1fc refactor: remove @toeverything/theme (#2254) 2023-05-08 03:41:29 +00:00
Himself65
d795fb6b37 chore: bump version (#2253) 2023-05-08 03:23:55 +00:00
JimmFly
29cbbf5c97 chore: add border for header when in edgeless page (#2239) 2023-05-06 19:00:04 -05:00
JimmFly
aaa4b4f0cb fix: wrong menu position (#2238) 2023-05-06 18:58:41 -05:00
himself65
10cd000822 v0.5.4-canary.25 2023-05-05 23:57:10 -05:00
Himself65
496225a92e chore: bump version (#2249) 2023-05-05 23:41:51 -05:00
JimmFly
1ef408c9ad chore: update the style of help island in edgeless mode (#2244) 2023-05-05 15:35:05 -05:00
JimmFly
8d8119b39b chore: update theme color (#2242) 2023-05-05 15:34:01 -05:00
JimmFly
80c1f9e546 chore: disable navigation path (#2243) 2023-05-05 15:33:36 -05:00
Whitewater
dbd3249ae5 chore: clean all page list (#2245) 2023-05-05 14:46:58 -05:00
himself65
fbbcb4bad9 v0.5.4-canary.24 2023-05-04 23:30:02 -05:00
himself65
33069c87d0 build(theme): generate css file 2023-05-04 23:29:32 -05:00
himself65
637b8203d3 v0.5.4-canary.23 2023-05-04 23:20:02 -05:00
阿良仔
92859bf8b9 perf: remove data-testid in production (#2228)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-05 04:18:54 +00:00
夏宇航
8a617f91e6 style: fix popover z-index (#2215) 2023-05-05 04:13:56 +00:00
Whitewater
84b36c1d35 refactor: clean all pages component (#2176)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-04 22:59:16 -05:00
三咲智子 Kevin Deng
2c49c774af feat(y-indexeddb): add connected (#2208)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-05 03:42:49 +00:00
JimmFly
de0b300aca chore: optimize onboarding component style (#2235) 2023-05-04 22:26:40 -05:00
Himself65
4a50fe584c fix(electron): system theme (#2237) 2023-05-05 03:22:53 +00:00
Himself65
f7d1d922fa fix: cleanup page id in time (#2236) 2023-05-04 22:22:11 -05:00
Himself65
1b12972afd fix(electron): theme sync (#2231) 2023-05-04 21:00:05 -05:00
himself65
33c48eed79 v0.5.4-canary.22 2023-05-04 18:50:20 -05:00
Himself65
9631c99f7b chore: bump version (#2229) 2023-05-04 18:49:08 -05:00
Himself65
097cce34b5 fix: reduce useState and useEffect (#2223) 2023-05-04 17:53:52 -05:00
三咲智子 Kevin Deng
52b9734a7b feat(y-indexeddb): cleanup (#2207)
Co-authored-by: himself65 <himself65@outlook.com>
2023-05-04 20:25:58 +00:00
JimmFly
6d7f06c1c3 feat: add onboarding for client (#2144)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-04 15:29:16 +08:00
Fangdun Tsai
238f69b4e7 fix(component): click area of the item (#2221)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-05-04 05:46:56 +00:00
Himself65
3d43e61087 feat(i18n): static type on i18n (#2225) 2023-05-04 05:35:09 +00:00
Himself65
66c3b09c67 fix(hooks): reduce unused assertExists (#2224) 2023-05-04 03:55:45 +00:00
Himself65
1e84ad1484 fix: reduce pageMeta instance (#2222) 2023-05-03 22:09:43 -05:00
himself65
b3a3911cea v0.5.4-canary.21 2023-05-03 18:58:22 -05:00
Himself65
86988bd6e8 fix: dock to blocksuite latest API (#2219) 2023-05-03 18:57:59 -05:00
Himself65
9096ac2960 refactor: workspace provider (#2218) 2023-05-03 18:16:22 -05:00
himself65
ec39c23fb7 fix(web): add meta description 2023-05-03 18:15:52 -05:00
himself65
b036fe8502 chore: add codecov.yml 2023-05-03 00:47:43 -05:00
himself65
71142a3f1d v0.5.4-canary.20 2023-05-03 00:29:58 -05:00
Himself65
aace740df5 fix: prohibit delete last workspace (#2212) 2023-05-03 04:31:04 +00:00
Horus
f42d656cfa feat: add mac release zip file and release info yml (#2185) 2023-05-03 12:13:40 +08:00
Himself65
88124994e1 chore: bump version (#2211) 2023-05-02 22:40:53 -05:00
Fangdun Tsai
5a881ec223 fix(electron): ignore .DS_Store on MacOS (#2203) 2023-05-03 03:00:09 +00:00
Himself65
12b61d34c3 chore: bump version (#2210) 2023-05-02 16:50:58 -05:00
三咲智子 Kevin Deng
4eff5f3c38 chore: upgrade jotai devtools (#2209) 2023-05-02 21:27:01 +00:00
Himself65
648fad65e0 chore: bump version (#2206) 2023-04-30 20:03:40 -05:00
himself65
a2844e54d2 chore(y-indexeddb): add types fields 2023-04-30 18:40:34 -05:00
Fangdun Tsai
850cfe1187 fix: theme button width (#2202) 2023-04-30 01:51:33 -05:00
himself65
9030767d16 v0.5.4-canary.19 2023-04-29 05:23:48 -05:00
LongYinan
a4e7d0d0c3 fix(electron): remove disableHardwareAcceleration (#2199) 2023-04-29 05:22:59 -05:00
himself65
99898b2260 v0.5.4-canary.18 2023-04-28 16:00:57 -05:00
Himself65
1031fbc7ec refactor: guide atoms (#2196) 2023-04-28 15:59:59 -05:00
Himself65
31cccafb40 fix: sidebar regression (#2195) 2023-04-28 15:02:47 -05:00
Himself65
73a7c01580 revert: resize in app sidebar (#2193) 2023-04-28 05:41:17 -05:00
Whitewater
f9b012cac9 feat: add breakpoints (#2191) 2023-04-28 05:21:14 -05:00
himself65
101cd18067 v0.5.4-canary.17 2023-04-28 04:31:29 -05:00
Himself65
2c466617de fix: remove shake in first render (#2190) 2023-04-28 04:31:01 -05:00
JimmFly
2ff5ef9d5d feat: move theme switch and language switch to editor option menu (#2025)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-28 04:28:51 -05:00
Himself65
903b6eaf30 revert: lastVersionAtom atom (#2188) 2023-04-28 08:53:23 +00:00
Himself65
fd4b664e4f chore: bump version (#2187) 2023-04-28 02:39:21 -05:00
himself65
51a4bdc5e4 fix: state in lastVersionAtom 2023-04-28 02:27:31 -05:00
Himself65
ee695bbcb9 fix: shadow theme (#2186) 2023-04-28 01:53:20 -05:00
Himself65
ef0521fa2a test(electron): theme check (#2182) 2023-04-28 06:40:44 +00:00
Himself65
73d5b2081a feat(electron): enable disable cloud alert (#2184) 2023-04-28 06:26:14 +00:00
Himself65
70fbbb39c1 chore: enable no-unused vars (#2181) 2023-04-28 00:41:06 -05:00
JimmFly
b6ca2aa063 chore: update menu placement (#2183) 2023-04-28 00:40:37 -05:00
himself65
b3c1434055 v0.5.4-canary.16 2023-04-28 00:37:43 -05:00
himself65
4599a9a601 fix: remove min width in the main container 2023-04-28 00:34:05 -05:00
himself65
549dddc65f v0.5.4-canary.15 2023-04-27 23:50:26 -05:00
himself65
9f8b38f9f3 fix(electron): drag window behavior in header 2023-04-27 23:18:00 -05:00
Himself65
3a5a66a5a3 feat: init auth service (#2180) 2023-04-27 22:49:44 -05:00
liuyi
b4bb57b2a5 feat(server): port resolvers to node server (#2026)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-27 18:02:05 -05:00
Himself65
3df3498523 chore: bump version (#2178) 2023-04-27 17:59:54 -05:00
himself65
567092a1ff v0.5.4-canary.14 2023-04-27 16:54:12 -05:00
himself65
f3e1c1eb08 docs: update releases.md 2023-04-27 16:53:20 -05:00
himself65
a04cfe2b68 chore: update desktop icons 2023-04-27 16:52:21 -05:00
Himself65
c1a65b6b76 feat(component): init app sidebar (#2135) 2023-04-27 16:46:08 -05:00
JimmFly
f3cbe54625 chore: update menu background color (#2170) 2023-04-27 18:06:17 +00:00
JimmFly
dcf7e83eec chore: update shadow and color (#2171) 2023-04-27 12:57:25 -05:00
JimmFly
50006efb57 chore: update workspace setting button color (#2169) 2023-04-27 12:55:58 -05:00
Himself65
606f6652ac chore: bump version (#2162) 2023-04-27 00:23:34 -05:00
himself65
afff15c435 fix: background warning color syntax 2023-04-26 22:30:33 -05:00
himself65
f7b8797bb2 v0.5.4-canary.13 2023-04-26 19:33:41 -05:00
Whitewater
2b05a1254b chore: hide pinboard (#2149)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-26 19:31:01 -05:00
himself65
40e7074475 fix(component): remove css import from blocksuite 2023-04-26 02:29:34 -05:00
himself65
e1ad3e38b9 v0.5.4-canary.12 2023-04-26 01:55:32 -05:00
himself65
f03fdde770 chore(electron): update canary icons 2023-04-26 01:55:05 -05:00
Himself65
d2eba54550 chore: bump version (#2146) 2023-04-26 01:54:44 -05:00
himself65
fa7baaf5c1 docs: add the ecosystem section in README.md 2023-04-25 19:22:47 -05:00
himself65
a4d8b65eef v0.5.4-canary.11 2023-04-25 19:00:03 -05:00
himself65
83dafa149c build: add set-version.sh 2023-04-25 18:59:37 -05:00
himself65
3a25f13734 docs: download page redirect to affine.pro 2023-04-25 18:48:39 -05:00
Himself65
db52c63d25 feat: init @toeverything/theme (#2136) 2023-04-25 18:44:17 -05:00
himself65
80f4578f76 v0.5.4-canary.10 2023-04-25 11:44:23 -05:00
JimmFly
15a7e93058 fix: text overflow problem in <a> tag (#2126) 2023-04-25 11:40:14 -05:00
JimmFly
1c41731b4e fix: theme color (#2124) 2023-04-25 11:37:22 -05:00
Himself65
a807647639 fix(component): editor component style (#2120) 2023-04-25 01:58:30 -05:00
JimmFly
3f1293ca3c chore: add changeLog to storybook (#2118)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-25 06:24:46 +00:00
Himself65
ad58b4d1e9 feat: improve build config (#2115) 2023-04-24 22:33:09 -05:00
Himself65
7e61708850 test: move playwright test suite to top level (#2113) 2023-04-24 22:12:48 -05:00
LongYinan
5c673a8ffc feat(graphql): generate types from graphql files (#2014)
Co-authored-by: forehalo <forehalo@gmail.com>
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-25 10:13:52 +08:00
himself65
4528df07a5 v0.5.4-canary.9 2023-04-24 19:59:21 -05:00
himself65
b6eb017bd4 docs: add linux badge 2023-04-24 19:55:05 -05:00
Himself65
9d3b9e9848 chore: bump version (#2111) 2023-04-24 19:46:46 -05:00
himself65
04fc619f52 test: fix flaky 2023-04-24 19:33:35 -05:00
himself65
06ef6da370 ci: remove unused 2023-04-24 19:26:30 -05:00
Himself65
d3ce90e721 test: add electron test (#1840) 2023-04-24 18:53:36 -05:00
himself65
9c94d05dd8 docs: format jobs.md 2023-04-24 17:47:41 -05:00
Himself65
ef8dea8cb2 test: fix flaky in customElements (#2109) 2023-04-24 13:18:37 -05:00
Peng Xiao
c27c241482 fix: some improvements to electron app (#2089) 2023-04-24 12:53:21 -05:00
Flrande
b73e9189ef chore: fix color (#2083)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-24 11:49:34 -05:00
JimmFly
c95b8e9d71 fix: incorrect text color (#2107) 2023-04-24 11:49:22 -05:00
Peng Xiao
ab8669882a fix: closing modal sometimes covered by header (#2097) 2023-04-23 23:43:40 -05:00
himself65
7ff12a6d0f build: reduce the sample rate to 0.1 2023-04-23 23:40:59 -05:00
himself65
339b133e3f v0.5.4-canary.8 2023-04-23 21:41:43 -05:00
Peng Xiao
be9095ec19 build: fix electron build gain focus on reloading in dev (#2088) 2023-04-23 01:42:52 -05:00
Himself65
33261558f6 chore: bump version (#2087) 2023-04-23 01:42:27 -05:00
Himself65
2ad1b770d0 fix(y-indexeddb): alert user when write operation unfinished (#2085) 2023-04-22 17:32:57 -05:00
Himself65
74e21311dc refactor(y-indexeddb): move migrate function separate (#2086) 2023-04-22 17:25:25 -05:00
Chi Zhang
bf83bfcf63 feat: add short cuts for sidebar (#2075) 2023-04-22 17:24:44 -05:00
Chi Zhang
70d8f9a0a7 feat: add shared page empty tip (#2077)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-22 17:24:18 -05:00
Moeyua Evod
7d246f87e7 docs: sign CLA (#2079) 2023-04-22 00:05:13 -05:00
Himself65
1ca9fb8ff4 fix(workspace): check affine login auth (#2070) 2023-04-21 20:44:29 -05:00
Moeyua Evod
2c95a0a757 feat: center align button text (#2056)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-21 19:45:23 -05:00
himself65
a49d5ea1e2 fix(workspace): load first workspace in index page 2023-04-21 13:46:01 -05:00
三咲智子 Kevin Deng
84e2710e87 docs: fix typo (#2063) 2023-04-21 12:07:44 -05:00
Peng Xiao
044e6da00d build: beta build (#2069) 2023-04-21 11:52:55 -05:00
himself65
023cbc30ea fix(workspace): cloud workspace blob uploading 2023-04-21 11:34:18 -05:00
Peng Xiao
7094385d8b fix: try to sign macos (#2066) 2023-04-21 23:30:49 +08:00
himself65
f66d402cf7 v0.5.4-beta.0 2023-04-21 06:09:38 -05:00
Peng Xiao
971e256cd3 fix: osxSign in build 2023-04-21 18:25:46 +08:00
Peng Xiao
88a297c3c1 chore: bump version 0.5.4-canary.7 2023-04-21 18:10:12 +08:00
Peng Xiao
4bb50e8c25 feat: store local data to local db (#2037) 2023-04-21 18:06:54 +08:00
zuomeng wang
acc5afdd4f fix(web): remove edgeless mode padding (#2061) 2023-04-21 17:56:29 +08:00
Qi
9ec6768272 fix: modify with new blocksuite version about subpage (#2060) 2023-04-21 08:34:32 +00:00
Peng Xiao
5a124831b8 fix: some minor ui issues (#2058) 2023-04-21 00:56:42 -05:00
Flrande
01115f8957 fix: color variable (#2059) 2023-04-20 23:41:43 -05:00
Qi
a5a6203a95 feat: replace react-dnd to dnd-kit (#2028)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-20 23:27:32 -05:00
himself65
4a473f5518 Revert "chore: bump version"
This reverts commit 44011b4695.
2023-04-20 22:53:32 -05:00
himself65
6cddacb953 Revert "fix: api compatibility with blocksuite"
This reverts commit 00f44c72ce.
2023-04-20 22:53:32 -05:00
himself65
00f44c72ce fix: api compatibility with blocksuite 2023-04-20 22:29:11 -05:00
himself65
44011b4695 chore: bump version 2023-04-20 21:58:09 -05:00
himself65
e0cd2e780b v0.5.4-canary.7 2023-04-20 18:09:53 -05:00
himself65
985bb55d82 build(y-indexeddb): fix vite config 2023-04-20 18:08:33 -05:00
himself65
66d0640042 ci: fix release.yml 2023-04-20 17:50:29 -05:00
himself65
e399682cad ci: add release.yml 2023-04-20 17:47:06 -05:00
himself65
c4e90f2d8b v0.5.4-canary.6 2023-04-20 17:29:49 -05:00
himself65
b38b01fc98 docs: fix script 2023-04-20 17:27:30 -05:00
Himself65
0a0f825a15 fix: remove mui theme provider (#2055) 2023-04-20 14:31:54 -05:00
Himself65
d24c43e750 chore: bump version (#2054) 2023-04-20 12:25:12 -05:00
ʀᴀʏ
90b51031d2 chore: correct action name (#2053) 2023-04-20 11:32:44 -05:00
himself65
1e771131b0 docs: format releases.md 2023-04-20 11:32:17 -05:00
himself65
4d7a3e5bf1 docs: add releases.md 2023-04-20 11:27:52 -05:00
himself65
92b1244fd7 v0.5.4-canary.5 2023-04-20 11:08:10 -05:00
himself65
d6b1b9f6cf ci: use RELEASE_TOKEN 2023-04-20 10:34:35 -05:00
Flrande
b2e93433e1 chore: fix color (#2049)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-04-20 09:13:20 -05:00
Chi Zhang
97b1a31f8d Update README.md 2023-04-20 21:38:00 +08:00
Qi
4a1c15c1e9 feat: modify default avatar (#2034) 2023-04-20 17:41:29 +08:00
himself65
f8d1513bb6 chore: release 0.5.4-canary.4 2023-04-20 03:34:00 -05:00
Flrande
372377dd6b feat: upgrate to new theme (#2027)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-20 03:31:19 -05:00
Himself65
63f7b2556e feat: init affine blob storage (#2045) 2023-04-20 03:23:41 -05:00
himself65
c08c587efb fix: max length of input 2023-04-20 02:36:25 -05:00
JimmFly
65c1bee7f0 chore: update temp disable affine cloud modal style (#2046) 2023-04-20 02:27:26 -05:00
howarddo
227f59cadc docs: add more instruction for yarn (#2042) 2023-04-20 00:25:10 -05:00
JimmFly
031ab2cfa2 chore: improve disable legacy cloud (#2041) 2023-04-20 12:25:45 +08:00
Chi Zhang
9f33e73429 Update package.json 2023-04-19 14:30:28 +08:00
himself65
f1670af15d ci: fix working-directory 2023-04-18 18:33:46 -05:00
himself65
0d7f65ab36 test(server): fix script 2023-04-18 18:24:35 -05:00
Himself65
3a053af50c feat(server): init user module (#2018) 2023-04-18 18:14:25 -05:00
himself65
c6be29f944 fix: disable legacy cloud in header 2023-04-18 15:01:19 -05:00
Peng Xiao
9ffe45102b fix: macos build 2023-04-19 00:43:51 +08:00
Peng Xiao
6448b6a515 fix: release app workflow (#2017) 2023-04-19 00:21:44 +08:00
Peng Xiao
ba462fb79b fix: artifacts in release (#2016) 2023-04-18 22:20:34 +08:00
Peng Xiao
f36d415c3d build: optimize release app workflow (#2011) 2023-04-18 17:50:29 +08:00
Himself65
f6fb049ff2 feat: support disable legacy cloud (#2006) 2023-04-18 02:23:00 -05:00
JimmFly
94063352f5 chore: disable slider bar link item drag (#2010) 2023-04-18 02:16:38 -05:00
Himself65
c895c18deb ci: collect server coverage report (#2002) 2023-04-18 01:01:14 -05:00
JimmFly
346484ed44 chore: add translation (#2001) 2023-04-18 00:34:21 -05:00
Himself65
18223c22ef test(server): migrate to node internal test (#2000) 2023-04-18 00:07:03 -05:00
himself65
ea9861bfa0 ci: update labeler.yml 2023-04-17 23:13:10 -05:00
Himself65
7be96a2e41 build: remove unused config (#1990) 2023-04-17 23:11:46 -05:00
LongYinan
91c3040db7 feat(server): init nestjs server (#1997)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-17 22:24:44 -05:00
himself65
a92d0fff4a docs: update badge in README.md 2023-04-17 21:06:29 -05:00
Jordy Delgado
64e5d65eb3 docs: sign CLA (#1995) 2023-04-17 21:03:15 -05:00
Peng Xiao
11de3a681f build: add canary build (#1986)
Co-authored-by: Himself65 <himself65@outlook.com>
Co-authored-by: Horus <lhlxtl@gmail.com>
2023-04-17 11:32:10 -05:00
hehe
54a30bbf20 chore: remove absolete module-resolve (#1991) 2023-04-17 15:02:22 +00:00
usedtobe
6c77006bcc docs: fix typo (#1984) 2023-04-17 08:34:50 -05:00
Qi
143a55a6e8 fix: error style of sidebar (#1981) 2023-04-17 06:52:04 +00:00
Qi
19894aad5a feat: modify empty text & style of favorite & pinboard (#1977)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-17 13:41:07 +08:00
JimmFly
f534e4a6dd chore: update change log link (#1973)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-16 21:48:29 -05:00
Himself65
3d70a36dd3 refactor: remove null type in hooks (#1955) 2023-04-16 21:36:32 -05:00
Himself65
9c517907eb fix: first binary on y-indexeddb (#1972) 2023-04-16 21:33:54 -05:00
Himself65
4cb6b8fdc8 chore: bump version (#1970) 2023-04-16 20:36:59 -05:00
Horus
134e1e8668 feat: support release windows installer with squirrel (#1965)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-16 19:28:29 -05:00
Himself65
c76bbeab67 ci: add sentry in desktop release (#1914) 2023-04-16 21:22:48 +00:00
himself65
ec50d721ea chore: release 0.5.3 2023-04-16 16:04:21 -05:00
Himself65
7bbe67af43 refactor: workspace loading logic (#1966) 2023-04-16 16:02:41 -05:00
Himself65
caa292e097 test: mark public single page as fail (#1967) 2023-04-16 09:45:50 -05:00
HeJiachen-PM
73b8b805c6 Rewrite section 2.3 2023-04-16 15:19:22 +08:00
HeJiachen-PM
084d4e043a Add summery to subsections in section 2 2023-04-16 15:09:08 +08:00
HeJiachen-PM
69a9c34f11 Rewrite the third section 2023-04-16 04:37:35 +08:00
Himself65
d742cab1d5 fix: hydration error (#1961) 2023-04-15 13:10:24 -05:00
Horus
8b3c1fb363 fix: force to use powershell on windows to fix zx script crash (#1962) 2023-04-15 12:24:57 -05:00
Horus
ec445207d6 fix: fix windows build client error and release cannot open (#1959) 2023-04-16 00:00:47 +08:00
HeJiachen-PM
49281e68a6 Rewrite the second section 2023-04-15 15:31:56 +08:00
HeJiachen-PM
a918d6e14c Proofreading introduction 2023-04-15 15:27:09 +08:00
Himself65
7cf7187893 docs: add behind-the-code.md (#1957) 2023-04-15 00:19:13 -05:00
Himself65
2383165470 refactor: remove NoSsr on top level (#1951) 2023-04-14 17:07:41 -05:00
Himself65
43a96fe8e3 fix: move suspense to the correct place (#1954) 2023-04-14 15:44:23 -05:00
Himself65
b771a2504b test: fix flaky (#1953) 2023-04-14 15:03:16 -05:00
himself65
8d2fefb5f8 ci: fix labeler.yml 2023-04-14 14:14:58 -05:00
himself65
c71e5f1c96 fix(cli): run dev server at 8080 2023-04-14 11:06:22 -05:00
Skye Sun
5b96fb0db3 docs: update CLA.md (#1950) 2023-04-14 08:02:21 -05:00
Peng Xiao
46cd0c5c9a fix: share url (#1948) 2023-04-14 08:01:31 -05:00
Qi
261a41f8da feat: add history back & forward for desktop app (#1926) 2023-04-14 09:19:52 +00:00
Himself65
bd387f6551 fix: theme color (#1944) 2023-04-14 02:13:14 -05:00
JimmFly
5335118e93 chore: add translation (#1946) 2023-04-14 15:02:43 +08:00
Himself65
70313eb5ee chore: bump version (#1943) 2023-04-14 01:57:54 -05:00
himself65
ccd2b79d20 docs: update logo in README.md 2023-04-14 00:38:35 -05:00
Himself65
5ca94db5d2 fix: effect deps (#1940) 2023-04-14 00:24:44 -05:00
Himself65
d58f9db289 docs: update BUG-REPORT.yml (#1941) 2023-04-13 22:27:01 -05:00
Chi Zhang
93e78c315c Update jobs.md 2023-04-14 10:27:45 +08:00
himself65
3954f309aa chore: fix packages version 2023-04-13 18:33:21 -05:00
himself65
f902d0c324 ci: fix cache in build-master.yml 2023-04-13 18:22:20 -05:00
Himself65
e79fb1ae3a build: add log when coverage (#1933) 2023-04-13 18:20:41 -05:00
Himself65
08d67b316c docs: update README.md (#1931) 2023-04-13 17:54:20 -05:00
himself65
d12c00d5cb ci: fix coverage report 2023-04-13 17:53:34 -05:00
himself65
68bb538dd1 ci: remove version tag in release 2023-04-13 16:39:50 -05:00
himself65
b394764b1c ci: fix upload-artifact path 2023-04-13 16:33:12 -05:00
Himself65
01a686dc28 feat: enable share menu (#1883)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-04-13 16:22:49 -05:00
Simon He
32b206a137 chore: add lint cache (#1917) 2023-04-13 20:30:18 +00:00
Peng Xiao
42756045bb fix: failed to load blobs in electron (#1927) 2023-04-13 15:14:46 +00:00
Peng Xiao
934e242116 fix: electron sourcemap issues (#1919) 2023-04-13 08:37:50 -05:00
Qi
6571ec2df6 fix: pinboard operation menu disappear inexplicably when hover to menu from button, fixed #1898 (#1922) 2023-04-13 07:58:22 -05:00
Qi
7d64815aca feat: add navigation path in quick search (#1920) 2023-04-13 16:31:28 +08:00
Himself65
f20a151e57 fix(y-indexeddb): migration in firefox (#1904) 2023-04-12 22:42:17 -05:00
Himself65
6180a4c3cb fix: wrap React.lazy with Suspense (#1915) 2023-04-12 22:33:31 -05:00
Himself65
2bcda973d3 build: support sourcemap in sentry (#1910) 2023-04-12 21:26:06 -05:00
Himself65
1162bffb30 build: support sentry replay (#1908) 2023-04-12 21:18:41 -05:00
Himself65
2a2d682211 fix: cannot update a component while rendering a different component (#1907) 2023-04-12 16:46:29 -05:00
Sirocco
8f53043100 fix: improve UX of dropdown (#1905)
Removed the logic of onMouseLeave. The logic of clicking to open and clicking to close is clearer.

Fixes: #1898
2023-04-12 15:35:41 -05:00
Himself65
6d5b101bb3 fix: use startTransition (#1903) 2023-04-12 12:06:22 -05:00
Himself65
8bcef957fc refactor: remove next/dynamic (#1901) 2023-04-12 11:08:50 -05:00
Peng Xiao
d9c4fc3a9e fix: cors header handling (#1900) 2023-04-13 00:05:54 +08:00
Peng Xiao
407c72ba2c fix: try fix electron build (#1899) 2023-04-12 23:23:47 +08:00
Peng Xiao
95aa86cdf0 fix: ws prefix url in electron (#1896) 2023-04-12 14:11:47 +00:00
TimLi
25d7f7c848 fix: export to html/markdown (#1892)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-12 14:11:03 +00:00
Yifeng Wang
23e33a6061 chore: enable databse feature flag (#1895) 2023-04-12 19:23:46 +08:00
Peng Xiao
f647fb6070 fix: update app icons (#1893) 2023-04-12 16:04:45 +08:00
Qi
af04c1b889 feat: refactor trash, page would delete from its parent's subpageIds after move to trash (#1871) 2023-04-12 01:14:57 -05:00
Peng Xiao
ba4a2fc9d2 fix: API server address in electron (#1888)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-12 00:26:42 -05:00
Himself65
fb0d2992c2 chore: bump version (#1890) 2023-04-12 00:19:12 -05:00
himself65
ea00c208e6 fix: set affine loading speed to 2 2023-04-11 23:54:15 -05:00
DarkSky
6ce270bffd feat: update favicon & manifest (#1889) 2023-04-11 23:52:38 -05:00
Himself65
9dcb96839b fix(component): affine loading (#1887) 2023-04-11 23:48:42 -05:00
Himself65
5535440c55 docs(y-indexeddb): add README.md (#1886) 2023-04-11 23:37:24 -05:00
himself65
db8fe4e09a feat: add new affine loading component 2023-04-11 22:57:20 -05:00
Chi Zhang
07a11ed767 Update package.json 2023-04-12 10:55:00 +08:00
Himself65
a06113d48c refactor: workspace header (#1880) 2023-04-11 21:39:39 -05:00
JimmFly
2e823c2fee feat: single page sharing support (#1805)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-11 17:58:11 -05:00
Himself65
f3af128baf perf(y-indexeddb): improve boost and loading time (#1879) 2023-04-11 17:29:44 -05:00
Himself65
a599364218 fix(y-indexeddb): migration for once (#1868) 2023-04-11 14:30:36 -05:00
Horus
c0669359ed feat: support google cloud login in client (#1822)
Co-authored-by: Himself65 <himself65@outlook.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-04-11 18:42:36 +00:00
Himself65
024c469a2c chore: bump version (#1873) 2023-04-11 09:47:46 -05:00
Qi
f5e51bb471 feat: ensure subpage is appended in its parent after subpageLinked (#1872) 2023-04-11 09:43:35 -05:00
Himself65
778f76dfed feat: add affine next theme (#1867) 2023-04-10 23:43:24 -05:00
Chi Zhang
b2ff6e379c docs: make intro,badge,desc align center (#1866) 2023-04-10 22:12:36 -05:00
Zhilin Liu
cc4e48e5bb fix: update i18n (#1860) 2023-04-10 22:08:04 -05:00
Chi Zhang
7afc61ac36 docs: remove the global center style (#1865) 2023-04-11 11:02:38 +08:00
Chi Zhang
537200c064 docs: thanks to all contributors, update the readme (#1864) 2023-04-10 21:55:53 -05:00
Himself65
d95dbd5af4 chore: bump version (#1863) 2023-04-10 17:41:07 -05:00
Himself65
7fea55d81f feat: support page sharing by meta (#1858) 2023-04-10 17:13:44 -05:00
Qi
ea2a146c82 feat: connect pinboard and reference link (#1859) 2023-04-10 11:49:51 -05:00
HeJiachen-PM
9acbba7016 Replaced obsolete pics and updated READ.me
Pics are now replaced by more intuitive gifs. description are fixed accordingly.
2023-04-10 19:34:55 +08:00
Himself65
401cad799e refactor: move non-affine hooks (#1857) 2023-04-09 17:15:07 -05:00
Horus
d9e42d6a0f ci: fix windows build artifacts path name error (#1856) 2023-04-09 14:11:34 -05:00
Zhilin Liu
73a1a979f9 docs: sign CLA (#1855) 2023-04-09 08:42:27 -05:00
Himself65
626b906bc0 ci: build macos on pull request (#1854) 2023-04-08 20:44:47 -05:00
Himself65
889503d1cc docs: add contributing tutorial (#1851) 2023-04-08 16:33:58 -05:00
Himself65
20e56cc474 fix: revalidate user token with no refresh page (#1842) 2023-04-07 17:51:51 -05:00
Qi
e50bf9fbfe feat: add root pinboard & rename pivots to pinboard (#1843) 2023-04-07 21:55:59 +00:00
Peng Xiao
d4b2b9ab44 fix: dnd workspace list will cause page to reload (#1848) 2023-04-07 11:48:37 -05:00
JimmFly
ea06df4386 chore: update change log style (#1846) 2023-04-07 06:24:29 -05:00
Yifeng Wang
fd34a99665 build: update env template 2023-04-07 16:03:49 +08:00
Yifeng Wang
5a1e8b0c93 chore: update blocksuite (#1845) 2023-04-07 15:46:37 +08:00
Flrande
74657c2fa1 fix: enable autofocus in blocksuite editor (#1844) 2023-04-07 06:28:21 +00:00
Flrande
7d55d0ea0b feat: update code-block background color (#1841) 2023-04-07 03:51:13 +00:00
Himself65
efe5444816 fix: reload the page when login token expired (#1839) 2023-04-06 18:26:53 -05:00
Himself65
5ac36b6f0a refactor: add workspace events (#1838) 2023-04-06 16:14:23 -05:00
Himself65
b6bdf257e4 feat(component): support sort workspace card (#1837) 2023-04-06 13:21:45 -05:00
Himself65
773554bbac ci: add pr header check (#1836) 2023-04-06 13:12:43 -05:00
Himself65
2e354ae59e refactor(component): editor component (#1834) 2023-04-06 11:14:25 -05:00
himself65
999796f988 ci: fix typo in labeler.yml 2023-04-06 11:03:27 -05:00
Himself65
17fa77e5ae ci(storybook): wait for 6006 (#1833) 2023-04-06 10:01:16 -05:00
himself65
2601b26c16 ci: update labeler.yml 2023-04-06 09:56:32 -05:00
Himself65
1ad4b0fc89 feat: single page API in public workspace (#1794) 2023-04-06 09:20:36 -05:00
Himself65
0577298344 test: compare public page json (#1793) 2023-04-06 09:01:44 -05:00
Qi
88447b438b feat: modify pivot operation menu (#1786)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-06 08:37:49 -05:00
JimmFly
0956b5ccc7 chore: update change log style (#1832) 2023-04-06 08:34:57 -05:00
Himself65
69cc0f5cb9 chore: bump version (#1830) 2023-04-05 23:12:32 -05:00
himself65
fe60318d7a docs: update badge in README.md 2023-04-05 22:53:34 -05:00
Himself65
d8931db300 chore: bump version (#1829) 2023-04-05 22:44:38 -05:00
Himself65
c209aa1d15 ci: use cloud-self-hosted:nightly-latest (#1828) 2023-04-05 21:14:21 -05:00
Himself65
164d357487 fix: indexeddb provider (#1827) 2023-04-05 21:01:12 -05:00
himself65
ee8f6a760e ci: add labeler.yml 2023-04-05 20:14:11 -05:00
Himself65
76c0d01640 fix: remove unused hook useFeatureFlag (#1826) 2023-04-05 19:57:15 -05:00
Aditya Sharma
0c87bf36ca feat: add toast for workspace deletion (#1825)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-05 08:47:14 -05:00
Himself65
116caff3c7 chore: bump version (#1820) 2023-04-04 17:08:48 -05:00
Himself65
ae4339ea28 refactor: use radix ui on workspace avatar (#1819) 2023-04-04 16:14:51 -05:00
Himself65
a24b747ee8 chore: bump version (#1818) 2023-04-04 14:41:25 -05:00
himself65
3e3386d24a ci: fix storybook test 2023-04-04 13:09:15 -05:00
Himself65
89f53190db fix: workspace avatar url won't update (#1817) 2023-04-04 12:46:33 -05:00
himself65
37169ae37d ci: use PERFSEE_TOKEN 2023-04-04 11:52:38 -05:00
Himself65
02a8daad5f refactor: remove unused package desktop (#1815) 2023-04-04 10:32:09 -05:00
Himself65
69cd22a3b8 chore: bump version (#1812) 2023-04-04 08:46:53 -05:00
Peng Xiao
5bd3aa4a80 fix: cleanup electron build script (#1813) 2023-04-04 07:40:07 -05:00
Peng Xiao
c023d0a2b8 fix: improve sidebar animation (#1814) 2023-04-04 09:14:44 +00:00
Himself65
5129ab3db8 refactor: abstract workspace provider (#1809) 2023-04-03 23:28:00 -05:00
JimmFly
67a5d1520d chore: update sentence (#1808) 2023-04-04 04:01:56 +00:00
Himself65
215bb24ec4 feat(component): improve storybook (#1804) 2023-04-03 18:42:36 -05:00
himself65
2f3a13c439 build: improve logs 2023-04-03 18:40:07 -05:00
Himself65
9a20f50b05 refactor: move WorkspaceCard (#1803) 2023-04-03 18:13:43 -05:00
Himself65
dbcadbaf60 refactor: move useBlockSuiteWorkspaceAvatarUrl (#1802) 2023-04-03 17:35:57 -05:00
Himself65
5c46c7d9fc ci: check all install deps (#1801) 2023-04-03 17:04:01 -05:00
Aditya Sharma
cd089ed64a feat: shortcut for expand/collapse of sidebar (#1797)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-03 16:39:45 -05:00
Peng Xiao
b1618e9ce1 build: MacOS code signing (#1795)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-04-03 16:39:25 -05:00
Himself65
b36588714e build(component): fix storybook config (#1798) 2023-04-03 16:18:46 -05:00
Himself65
83000fa832 build: fix docker setup (#1799) 2023-04-03 16:09:41 -05:00
Himself65
5dbbabae57 feat: add public workspace page api (#1791) 2023-04-03 06:15:39 -05:00
JimmFly
196b9f2dbb chore: add build flag for change log (#1792) 2023-04-03 11:13:43 +00:00
Himself65
fcf5d5602d feat: init @toeverything/hooks package (#1788) 2023-04-03 04:32:52 -05:00
Himself65
89c1e4c205 build: fix reference (#1787) 2023-04-03 04:32:43 -05:00
Himself65
06a69b0767 fix: api compatibility with OctoBase (#1790) 2023-04-03 03:50:04 -05:00
Peng Xiao
2cf8ab434e fix: give electron app with minWidth = 640px (#1785) 2023-04-03 07:20:58 +00:00
Peng Xiao
487ef35563 fix: some minor ui issues (#1783) 2023-04-03 00:24:53 -05:00
Himself65
95879cc1d0 feat: support revert changes (#1782) 2023-04-02 16:28:45 -05:00
Peng Xiao
e0eecffb2f feat: optimize electron macos header style (#1774)
Co-authored-by: himself65 <himself65@outlook.com>
2023-04-02 14:01:22 -05:00
Himself65
fa150a93a0 feat: support create milestone from yDoc (#1781) 2023-04-02 05:53:01 -05:00
himself65
20a7a35e96 docs: add FUNDING.yml 2023-04-02 05:52:21 -05:00
Himself65
ed8f07f102 refactor: remove y-indexeddb (#1771) 2023-04-02 02:57:50 -05:00
Himself65
f5574c68fe test: improve coverage (#1780) 2023-04-02 02:16:53 -05:00
Himself65
60324b8967 refactor: move local workspace CRUD (#1778) 2023-04-02 01:34:57 -05:00
Himself65
5e56728dbc test: coverage on atomWithSyncStorage (#1779) 2023-04-02 01:30:58 -05:00
Himself65
e02ab36aae chore: bump version (#1775) 2023-04-01 20:24:13 -05:00
himself65
cf56fc9551 build: improve logs
Fixes: https://github.com/toeverything/AFFiNE/issues/1768
2023-03-31 16:43:52 -05:00
himself65
676a5793e2 build: fix script 2023-03-31 16:14:10 -05:00
Peng Xiao
7299efe16a fix: first workspace create logic (#1773) 2023-03-31 12:40:30 -05:00
himself65
fd65dd66a1 fix: use assertExists 2023-03-31 00:15:40 -05:00
Himself65
b0d13fbabe feat: add hook setPageTitle (#1769) 2023-03-31 00:06:56 -05:00
Peng Xiao
5717d126ee fix: blockhub position (#1767) 2023-03-31 04:10:25 +00:00
Himself65
bd67554f5e test: increase retries times to 3 (#1763) 2023-03-30 21:00:19 -05:00
Peng Xiao
c55d61a641 feat: responsive ui above 640px (#1741) 2023-03-30 20:12:18 -05:00
himself65
bdb1264f09 test: add timeout for page list 2023-03-30 19:59:56 -05:00
himself65
acac585eb2 fix: use access_token 2023-03-30 18:35:01 -05:00
himself65
f935bbaf5d fix: update channel message schema 2023-03-30 18:33:09 -05:00
Himself65
bb1224f9ee feat: add affine global channel (#1762) 2023-03-30 18:21:26 -05:00
Himself65
3fa7d17dca refactor: use keck from OctoBase (#1761) 2023-03-30 16:52:11 -05:00
JimmFly
c9bd4e34b3 feat: add change log (#1734)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-30 15:17:36 -05:00
Himself65
91c32b6715 fix: lint issue (#1760) 2023-03-30 13:43:29 -05:00
Qi
b6ded30770 feat: support pivots menu (#1755) 2023-03-30 17:37:41 +08:00
Himself65
4dd1490eef test: sync provider (#1754) 2023-03-30 03:22:26 -05:00
Himself65
d8d965b9b8 test: fix collaborative (#1750) 2023-03-30 12:21:26 +08:00
Himself65
14f073c8ea fix: prohibit create first page besides local workspace (#1751) 2023-03-29 23:07:29 -05:00
Himself65
94d284d841 feat: add test environment for mock user (#1748) 2023-03-29 20:44:51 -05:00
Himself65
79128a3c3e fix: fallback to all page (#1749) 2023-03-29 20:10:47 -05:00
Himself65
127e9bdba2 feat: add getUsage api (#1744) 2023-03-29 19:00:52 -05:00
Fangdun Tsai
3180d961dd fix: trim git info (#1746) 2023-03-29 17:56:44 -05:00
Himself65
926bf49b26 test: add coverage on collaborative editing (#1747) 2023-03-29 17:49:13 -05:00
himself65
5500b3b1ed docs: update badge links in README.md 2023-03-29 17:40:24 -05:00
Himself65
68144fb2dc test: health check (#1743) 2023-03-29 15:46:10 -05:00
Himself65
9cd59d9146 test: throw no permission when download failed (#1742) 2023-03-29 13:42:55 -05:00
Himself65
8a03f9ff1f chore: bump version (#1737) 2023-03-29 13:35:42 -05:00
Himself65
9c6fb82c82 feat: detect if blob too large (#1738) 2023-03-29 02:39:23 -05:00
himself65
c1e8818db4 docs: update badges in README.md 2023-03-29 02:39:02 -05:00
Himself65
eb33289f98 fix: do not reconnect server if fail to many times (#1735) 2023-03-28 22:50:01 -05:00
Himself65
998587b3b8 test: open public workspace (#1736) 2023-03-28 22:49:46 -05:00
Himself65
62955e7de4 test: coverage on enable public workspace (#1733) 2023-03-28 20:57:50 -05:00
Himself65
f18127dfd6 fix(component): toast duration (#1732) 2023-03-28 14:58:51 -05:00
Himself65
6917d2100f fix(web): css in mobile (#1731) 2023-03-28 14:42:30 -05:00
Himself65
5faa2760cd refactor: remove sidebar in public workspace (#1730) 2023-03-28 14:30:29 -05:00
himself65
f9811c85bc ci: fix artifact name 2023-03-28 14:08:19 -05:00
Himself65
c9318d3790 feat: support sentry report (#1729) 2023-03-28 14:06:16 -05:00
Himself65
c87aad436f ci: improve storybook build (#1728) 2023-03-28 13:55:35 -05:00
himself65
e19c32aa5d ci: boost up next build time 2023-03-28 12:48:40 -05:00
Himself65
dbbc05e5f0 test: improve coverage on affine api (#1727) 2023-03-28 12:42:40 -05:00
Qi
751ad9716f feat: modify pivot style & add operation menu to pivot item (#1726) 2023-03-28 10:16:47 +00:00
Peng Xiao
99be6183e6 fix: yarn config in electron app (#1724) 2023-03-28 09:33:53 +00:00
himself65
abdee7fac2 fix: fatal error on iOS Chrome 2023-03-28 04:13:03 -05:00
himself65
7d3ae9a0c9 fix: size of svg image 2023-03-28 03:17:08 -05:00
Himself65
600adb3dd7 test: improve coverage on @affine/debug (#1723) 2023-03-28 02:07:26 -05:00
himself65
995504d1f6 docs: update codecov link 2023-03-28 01:47:17 -05:00
Peng Xiao
595de24cfd ci: should install electron workspace in cross-platform builds (#1719) 2023-03-28 01:08:17 -05:00
Himself65
69b13aa30f refactor(web): move contact modal to component (#1718) 2023-03-28 01:07:53 -05:00
JimmFly
edf7913e12 chore: update theme color (#1717)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-28 00:43:29 -05:00
Peng Xiao
5a508b1fe4 fix: windows rust cache (#1710) 2023-03-28 05:25:16 +00:00
Himself65
26b030ecda fix(web): async load images (#1714) 2023-03-27 23:35:33 -05:00
Himself65
f478c9ce9e ci: disable playwright install by default (#1715) 2023-03-27 23:21:51 -05:00
himself65
3e10f49fc7 ci: cleanup cache when pr merged 2023-03-27 23:17:06 -05:00
Himself65
316223b784 test: fix flaky in theme.spec.ts (#1708) 2023-03-27 23:11:31 -05:00
himself65
4c6505cdf2 build: use PerfseePlugin only when token provided 2023-03-27 23:05:56 -05:00
Himself65
7fb5b1f65b ci: disable electron workspace by default (#1713) 2023-03-28 04:02:57 +00:00
Himself65
79fc59248f ci: use standard pull_request event (#1712) 2023-03-28 03:52:19 +00:00
himself65
8578ff9714 build: fix workspaces in package.json 2023-03-27 22:36:53 -05:00
himself65
f00eda2568 ci: fix working-directory 2023-03-27 22:31:36 -05:00
himself65
bf85db1952 feat: move electron a single package 2023-03-27 22:30:03 -05:00
himself65
bdc29fc5f8 ci: fix build.yml override_pr 2023-03-27 22:15:41 -05:00
Himself65
c9ea53c2d5 fix: use the latest docker service (#1711) 2023-03-27 22:08:40 -05:00
himself65
1f005bba9b build: ignore electron 2023-03-27 22:07:36 -05:00
Himself65
427a5e7545 fix: quick search in public workspace (#1706) 2023-03-27 19:30:27 -05:00
himself65
2fba1fa7c8 ci: speed up yarn install 2023-03-27 19:28:05 -05:00
himself65
93fd8aedb3 ci: setup cache for yarn 2023-03-27 18:09:48 -05:00
Peng Xiao
dc768e0ba9 build: fix arm64 mac build (#1704) 2023-03-27 18:03:11 -05:00
himself65
d780e90d88 ci: improve build-master.yml 2023-03-27 17:58:44 -05:00
himself65
a1600a3671 build: run all-contributors generate 2023-03-27 17:52:26 -05:00
Himself65
ed29c5fbd9 refactor: remove package @affine/datacenter (#1705) 2023-03-27 17:48:22 -05:00
Himself65
021bf6534b feat(workspace): handle error on apis (#1700) 2023-03-27 15:25:30 -05:00
Qi
628ce08d8d feat: modify sidebar style (#1703) 2023-03-27 18:41:04 +00:00
Peng Xiao
c2b1a9b118 feat(client): add octobase-node to electron (#1672)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-27 01:59:36 -05:00
Qi
449ffbc73f feat: refactor the usage of toast (#1699) 2023-03-27 05:24:14 +00:00
Himself65
66dec34209 ci: reduce unused steps (#1696) 2023-03-27 00:15:04 -05:00
Aditya Sharma
b01deaa786 style: show interaction when active (#1692)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-27 04:04:03 +00:00
himself65
0968a26a84 test: ignore coverage on data-center package
It will be removed soon.
2023-03-25 02:09:35 -05:00
Himself65
d8e48ef6aa test: support e2e in storybook (#1533) 2023-03-24 22:25:27 -05:00
Qi
6d13716e97 fix: center toast in main content (#1683) 2023-03-24 17:22:10 +00:00
DarkSky
40903a9070 chore: cleanup outdated actions 2023-03-24 23:58:28 +08:00
LongYinan
3c04588110 ci: simplify the CI (#1684) 2023-03-24 23:44:14 +08:00
Himself65
bb1f197d1c chore: bump version (#1681) 2023-03-24 04:31:02 +00:00
Himself65
3e299b97c3 fix: infinite loading when no workspaces (#1679) 2023-03-24 03:46:17 +00:00
Himself65
9eec8d0f1e refactor: test directory structure (#1677) 2023-03-23 17:15:40 -05:00
Himself65
56acb2bdeb refactor: login method (#1676) 2023-03-23 16:29:29 -05:00
himself65
a415e4aa5c ci: enable octobase server in unit test 2023-03-23 16:05:53 -05:00
Himself65
3eba199aca build: remove unused files (#1675) 2023-03-23 13:55:52 -05:00
himself65
dd3f9709c2 ci: fix build.yml env variable 2023-03-23 13:47:52 -05:00
himself65
5a7a59afea ci: improve build.yml output 2023-03-23 13:45:22 -05:00
Himself65
d13174cedf fix: overflow when title length too large (#1673) 2023-03-23 12:03:12 -05:00
himself65
e75750d587 ci: fix checkout ref in build.yml 2023-03-23 11:50:55 -05:00
himself65
1886606f96 fix: type error 2023-03-23 11:29:21 -05:00
Himself65
69721f2a61 refactor: init package @affine/workspace (#1661) 2023-03-23 16:17:38 +00:00
himself65
84d27e939d fix: add enableSubpage in mock 2023-03-23 11:07:37 -05:00
Qi
4aea39fb94 fix: createPage error (#1668) 2023-03-23 18:01:58 +08:00
Yifeng Wang
6be94ca906 chore: update blocksuite (#1667) 2023-03-23 17:09:21 +08:00
Qi
6a7b5601aa feat: support subpage (#1663) 2023-03-23 13:47:07 +08:00
Himself65
2551785451 fix: patch refresh token logic (#1665) 2023-03-23 00:12:20 -05:00
Himself65
059d9e5de2 test: assert current workspace flavour (#1664) 2023-03-23 04:22:29 +00:00
Himself65
35d4560e9f fix: login and upload affine workspace in one run (#1662) 2023-03-22 22:29:25 -05:00
DarkSky
8ed40bfae9 chore: fix doc link 2023-03-23 01:44:35 +08:00
Himself65
e8b7ff527c fix: flash screen when creating new page (#1657) 2023-03-22 07:36:49 +00:00
Himself65
17e29f50ab chore: bump version (#1656) 2023-03-22 01:59:16 -05:00
himself65
cc8c069f57 ci: correct name check_suites 2023-03-22 01:54:53 -05:00
himself65
237756ddc5 ci: add merge-check.yml 2023-03-22 01:12:43 -05:00
Himself65
156edb1d4b feat: improve dev mode for local blocksuite (#1654) 2023-03-22 06:09:30 +00:00
Whitewater
ba2295c426 fix: remove duplicated link css (#1631) 2023-03-22 01:02:57 -05:00
Himself65
40e167aecc build: fix debug local with blocksutie (#1653) 2023-03-22 05:17:57 +00:00
Himself65
80b04fe97f fix: lint-staged for .mjs (#1652) 2023-03-21 23:59:01 -05:00
Himself65
e2395af827 fix: patch package y-indexeddb (#1651) 2023-03-22 04:39:37 +00:00
himself65
180382daf5 fix(cli): remove unused variables 2023-03-21 23:31:29 -05:00
himself65
eb7d5fd7a1 fix(cli): pass PATH into child process 2023-03-21 23:00:54 -05:00
Fangdun Tsai
215db27cd6 feat: block-hub in edgeless mode (#1634) 2023-03-22 03:41:54 +00:00
himself65
64dac7cc1c ci: improve build.yml 2023-03-21 22:33:41 -05:00
himself65
7ccde4b272 ci: fix permissions in build.yml 2023-03-21 21:30:35 -05:00
Himself65
12c6b67f68 fix: build.yml checks (#1649) 2023-03-21 21:20:30 -05:00
himself65
9c9021cbbc fix: cannot convert to edgeless mode 2023-03-21 21:07:25 -05:00
Himself65
45260543e1 fix: remove pageMode from pageMeta (#1647) 2023-03-21 19:45:54 -05:00
Himself65
e7d6bda7a5 ci: enable test by comment trigger (#1648) 2023-03-21 19:25:17 -05:00
Himself65
a8540cceae feat: init package cli (#1646) 2023-03-21 17:39:13 -05:00
Himself65
33320bd38e ci: fix workflow secure in build.yml (#1644) 2023-03-21 08:46:31 -05:00
Aditya Sharma
6a0209dde2 docs: update CLA.md (#1643) 2023-03-21 08:17:22 -05:00
Yifeng Wang
a558d0c868 build: add bump:nightly script (#1632) 2023-03-21 08:24:32 +00:00
Himself65
05ac48b693 docs: update build guideline (#1630) 2023-03-21 00:12:42 -05:00
Himself65
ee8303e5f0 docs: update LICENSE copyright name (#1627) 2023-03-20 22:35:19 -05:00
Himself65
0e52d8ca2b fix: test issue (#1629) 2023-03-20 22:26:05 -05:00
Himself65
1ba750d89c fix: test error (#1628) 2023-03-21 10:58:23 +08:00
Himself65
b3206b1682 test: enable affine workspace test (#1625) 2023-03-20 15:34:48 -05:00
Himself65
a8ca92e34a ci: fix grammar issue (#1626) 2023-03-21 04:24:21 +08:00
Himself65
82fa9b1d81 ci: refactor build&test logic (#1624) 2023-03-21 04:10:40 +08:00
Himself65
3aec87b02d ci: use pull_request_target (#1623) 2023-03-20 13:45:40 -05:00
Himself65
45761f0250 build: lazy load lottie-web (#1622) 2023-03-20 02:55:09 -05:00
Himself65
cf3230c1ff fix: new page logic (#1621) 2023-03-20 07:39:18 +00:00
Himself65
fe2d244460 refactor: use yarn (#1619) 2023-03-20 02:05:02 -05:00
Himself65
f6c1423361 chore: bump version (#1618) 2023-03-20 00:07:54 -05:00
Himself65
4e7ff3862f fix: vitest.config.ts error (#1615) 2023-03-19 19:45:40 -05:00
Himself65
1bbb0aee4b fix: autofocus (#1614)
Co-authored-by: VictorNanka <victornanka@gmail.com>
2023-03-19 19:40:29 -05:00
Himself65
c00d39f929 chore: bump version (#1609) 2023-03-19 16:50:31 +08:00
Horus
bb5916ae02 fix: fix windows release not found (#1613) 2023-03-19 16:44:52 +08:00
Peng Xiao
f428c7e251 fix: window release (#1612) 2023-03-19 01:23:10 +08:00
Horus
56ce99a5dd feat: make electron windows build (#1611) 2023-03-18 21:43:39 +08:00
Himself65
473076b603 ci: run octobase service (#1608) 2023-03-18 01:00:52 -05:00
Himself65
37a135d49e fix: warning on bypass visible value in switch button (#1607) 2023-03-18 00:03:32 -05:00
Himself65
74fc43020a fix: side bar favorited list cannot scroll (#1606)
Co-authored-by: sheben404 <sheben404@gmail.com>
2023-03-17 19:32:00 -04:00
Peng Xiao
b6407f99c4 fix: electron preload issue (#1603) 2023-03-17 08:23:58 +00:00
Himself65
94d535f72b test: support test e2e with OctoBase (#1593)
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-03-17 03:51:00 -04:00
VictorNanka
110cec7bf6 fix: trash restore (#1446)
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-16 22:55:35 -04:00
VictorNanka
d1722bc235 refactor: use explicit memo import (#1596)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-16 22:27:37 -04:00
ShortCipher5
5a9498fe9b docs: update README.md (#1559) 2023-03-16 22:13:57 -04:00
Himself65
953188e76b chore: bump version (#1597) 2023-03-16 22:07:57 -04:00
Peng Xiao
88f662e6f6 feat: electron app (#1586) 2023-03-16 22:58:21 +08:00
Himself65
6ae06d5609 feat: add is-valid-ip-address (#1591) 2023-03-16 00:59:02 -04:00
hanchayi
1a0abbf76e fix: globalThis.editor is undefined (#1590) 2023-03-16 03:35:37 +00:00
Himself65
efcf1fcaa0 style: restrict type import (#1589) 2023-03-15 11:58:43 -05:00
Qi
6ab2f83e13 fix: error icon color in sidebar (#1550) 2023-03-15 11:41:57 -05:00
Whitewater
bc32b07bf0 fix: quick search tips follow when resize (#1580)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-15 16:27:38 +00:00
JimmFly
5ac6632276 chore: update quick search style (#1565) 2023-03-15 02:15:13 -05:00
Yifeng Wang
45ab08b459 chore: add story label in issue template (#1579) 2023-03-14 19:15:28 +08:00
Yifeng Wang
3961f9f3e0 chore: update template placeholder (#1577) 2023-03-14 18:03:44 +08:00
Yifeng Wang
06f97b5139 chore: remove redundant issue template label (#1576) 2023-03-14 17:59:58 +08:00
Yifeng Wang
c746fa8c79 chore: remove legacy issue template (#1575) 2023-03-14 17:43:14 +08:00
Yifeng Wang
546ea6b5ad chore: update template title config (#1574) 2023-03-14 17:34:37 +08:00
Yifeng Wang
98138e1e3b chore: update template format (#1558) 2023-03-14 10:30:50 +08:00
ShortCipher5
757025f2cb docs: github issue templates (#1551) 2023-03-13 22:26:51 +08:00
Yifeng Wang
aae10d44e8 chore: update blocksuite (#1553) 2023-03-13 18:19:18 +08:00
Qi
d4006f0693 fix: duplicate enable cloud confirm modal after enable (#1552) 2023-03-13 10:08:21 +00:00
Yifeng Wang
e5173d04ab chore: update blocksuite (#1545) 2023-03-13 13:40:37 +08:00
Qi
4e0fd93a28 fix: error initial style when first in dark mode (#1543) 2023-03-12 19:51:19 +08:00
Horus
2502ff7e32 feat: modify tauri client release workflow (#1532) 2023-03-11 20:35:38 +08:00
DarkSky
d32cdb881c docs: merge jobs (#1536) 2023-03-11 17:39:41 +08:00
DarkSky
49ed15f82a chore: format docs by vscode 2023-03-11 16:59:10 +08:00
Sg
9161f2da3d docs: fix a typo (#1535) 2023-03-11 16:54:48 +08:00
Himself65
9a04a1e34f feat: split components (#1530) 2023-03-10 23:15:19 -06:00
Himself65
a795000363 test: add test case for blocksuite editor (#1528) 2023-03-10 17:45:10 -06:00
sheben
1c89841d6f fix: solved the issue of the sidebar favoritedList not being fully displayed (#1523)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-10 18:40:38 +00:00
Himself65
f47a23b0b5 fix: force page mode in public workspace (#1527) 2023-03-10 12:39:03 -06:00
JimmFly
21bfec3402 fix: wrong OS judgment (#1525) 2023-03-10 12:06:40 -06:00
Himself65
1239957446 fix: lottie import logic (#1526) 2023-03-10 12:06:27 -06:00
Qi
9043081b8d fix: setting entry only show when hover on workspace card (#1515) 2023-03-10 18:07:30 +08:00
Yifeng Wang
a3ed8f6774 chore: update blocksuite (#1516) 2023-03-10 18:02:16 +08:00
JimmFly
f54e0567d6 refactor: quick search input and result (#1512) 2023-03-10 18:00:16 +08:00
Qi
e578721cce fix: title not align center in head (#1513) 2023-03-10 17:53:25 +08:00
Yifeng Wang
93e0d5ce3b chore: update blocksuite (#1511) 2023-03-10 17:13:35 +08:00
Qi
bd98746557 feat: update @blocksuite/icons (#1510) 2023-03-10 17:11:40 +08:00
Qi
a20368c491 feat: modify sidebar style (#1508) 2023-03-10 16:52:25 +08:00
JimmFly
5e73f02b43 fix: omit items when quick search items are too long (#1505) 2023-03-10 08:46:36 +00:00
Qi
3b4966b7b8 feat: center title (#1504) 2023-03-10 08:36:07 +00:00
Qi
d60120ddf1 feat: modify workspace modal style & add workspace setting entry to worksapce card (#1498) 2023-03-10 02:34:45 -06:00
Himself65
16cbf85bf4 fix: remove cache when enable cloud (#1507) 2023-03-10 02:32:44 -06:00
Qi
b6a9366684 feat: modify option menu style (#1506) 2023-03-10 16:26:54 +08:00
Himself65
eb0d6ee08e fix: syncing images (#1501) 2023-03-10 02:21:12 -06:00
Yifeng Wang
b20be2a747 chore: update blocksuite (#1497) 2023-03-10 14:56:54 +08:00
Qi
7eeff9d470 feat: add animation to mode switch when hover (#1489)
Co-authored-by: Yifeng Wang <doodlewind@toeverything.info>
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-10 06:44:33 +00:00
Peng Xiao
afd113b1f1 fix: add back quick search button to page title (#1495) 2023-03-10 00:37:09 -06:00
JimmFly
3ef8e2db83 feat: add novice guide for quick search arrow button (#1493) 2023-03-10 06:17:26 +00:00
ShortCipher5
7a54e97823 docs: pre-load content update image (#1494) 2023-03-10 05:46:13 +00:00
JimmFly
fd6abfa8ce chore: add null check for create new page with title (#1490) 2023-03-09 21:48:12 -06:00
JimmFly
356181881b fix: recent still show when recent is empty (#1487) 2023-03-09 21:45:20 -06:00
Himself65
81641ed7a7 feat: add message center (#1486) 2023-03-09 21:17:44 -06:00
Himself65
74dd5e8afc feat: add sync panel (#1485) 2023-03-09 20:51:37 -06:00
Yifeng Wang
d9bae4a853 fix: support min width for workspace list table (#1473) 2023-03-10 09:55:39 +08:00
Himself65
a0fd890def fix: init workspace logic (#1471) 2023-03-09 19:45:42 -06:00
hehe
047adde310 chore: replace cross-env with shell-emulator & misc (#1464) 2023-03-10 09:16:25 +08:00
sheben
d0c1b4508e fix: text being squeezed in the sidebar animation (#1470) 2023-03-09 13:44:22 -06:00
ShortCipher5
87a4874df3 docs: update preload content (#1461) 2023-03-09 18:40:21 +08:00
Qi
1a7a7ab6ba fix: issues (#1460) 2023-03-09 18:15:26 +08:00
JimmFly
ca603336b2 fix: can't open quick search without cursor (#1457) 2023-03-09 17:56:53 +08:00
JimmFly
cebdcfa7ed chore: update preloading article (#1459) 2023-03-09 09:55:03 +00:00
Qi
921061eeb6 Feat/sidebar&top bar (#1454) 2023-03-09 17:08:23 +08:00
Qi
31d2e522eb feat: modify delete workspace flow (#1408) 2023-03-09 08:54:29 +00:00
Himself65
b3659d6a95 fix: hook useRecentlyViewed (#1430)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-03-09 08:53:56 +00:00
Yifeng Wang
423ca95298 chore: update blocksuite (#1455) 2023-03-09 16:24:30 +08:00
Qi
33dee8daf7 fix: theme color error (#1427) 2023-03-09 08:18:44 +00:00
ShortCipher5
11f6525c0e docs: preload content update (#1444)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-03-09 16:13:26 +08:00
DarkSky
10d54b0c7b feat: run unit & e2e test on master (#1383) 2023-03-09 16:10:49 +08:00
Himself65
373953b8ae fix: create a new page when refresh (#1440) 2023-03-09 08:10:02 +00:00
Yifeng Wang
6594d2d47b docs: expose collaboration part in feature desc (#1453) 2023-03-09 15:51:13 +08:00
Yifeng Wang
7671361485 docs: optimize README style (#1452) 2023-03-09 15:48:21 +08:00
VictorNanka
016dcf22e0 docs: sign CLA (#1451) 2023-03-09 15:47:46 +08:00
x1a0t
ce37b5a8c3 fix: hide blockHub in edgeless mode (#1447)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-09 15:29:58 +08:00
Himself65
6b533c44be fix: check if login when enable affine cloud (#1445) 2023-03-09 01:26:07 -06:00
JimmFly
b23547f4bd fix: create page with title (#1449)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-09 15:25:31 +08:00
Himself65
ce8539b414 fix: cleanup data when logout (#1443) 2023-03-09 00:38:16 -06:00
Peng Xiao
a7a8ac0882 docs: add dev/build docs for tauri app (#1437) 2023-03-09 14:36:51 +08:00
Himself65
8168a09d6f fix: theme color (#1438) 2023-03-09 04:50:07 +00:00
Himself65
1011088248 fix: infinite workspace loading (#1432) 2023-03-08 22:31:01 -06:00
Himself65
0f11b73d93 chore: version fix (#1433) 2023-03-08 21:58:49 -06:00
Himself65
f459b07fa2 fix: ignore trash (#1426) 2023-03-08 18:07:37 -06:00
Himself65
0c811f1420 chore: update .eslintignore (#1425) 2023-03-08 17:11:49 -06:00
sheben
8dc022c808 refactor: use useRouterHelper (#1422)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-08 22:58:20 +00:00
Alberto de la Cruz
7f77619515 feat: new pop message on details page (#1392)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-08 13:24:56 -06:00
Qi
0db7868a6a feat: open last workspace when back or refresh affine (#1413)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-08 18:40:25 +00:00
Qi
867ea9cf2b feat: modify theme colors (#1421) 2023-03-08 12:29:56 -06:00
Jeff Wen
dc319f664f fix: button "jumps" between workplace settings tabs (#1399) 2023-03-08 10:07:15 +00:00
Himself65
ac9adcb7b2 chore: bump version (#1404) 2023-03-08 09:50:58 +00:00
Himself65
049d6dd83f feat: support code coverage (#1414) 2023-03-08 02:29:50 -06:00
Himself65
75a7e2339c fix: first workspace name (#1411) 2023-03-08 01:44:50 -06:00
Himself65
6d435398e3 feat: create first page (#1410) 2023-03-08 01:26:37 -06:00
Himself65
6281122394 refactor: remove react-helmet-async (#1409) 2023-03-08 01:08:24 -06:00
Himself65
b8e45d059c refactor: add hook transform workspace (#1407) 2023-03-08 00:21:01 -06:00
Himself65
f172831733 feat: publish local workspace (#1406) 2023-03-07 23:31:22 -06:00
Qi
88967a1dbe fix: ui issues (#1401) 2023-03-07 21:07:52 -06:00
Himself65
b976ac8084 fix: css hydration error (#1397) 2023-03-07 17:08:33 -06:00
Himself65
e5e3dceee8 fix: next router throw error (#1396) 2023-03-07 16:26:39 -06:00
Himself65
e90d06edfa fix: add invitation page (#1395) 2023-03-07 16:13:56 -06:00
Himself65
d565f71939 fix: theme button (#1394) 2023-03-07 14:45:19 -06:00
Himself65
1362584880 fix: add key 'Move to Trash' (#1391) 2023-03-07 14:21:59 -06:00
sheben
3b8f7536f3 fix: add missing trashDate field whenever a page is moved to the trash. (#1389)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-07 19:30:25 +00:00
Alberto de la Cruz
b7b946f002 fix: updated delete page popup message (#1390) 2023-03-07 19:18:11 +00:00
Qi
3fba384ef5 fix: ui issues (#1371) 2023-03-07 11:39:12 +00:00
Yifeng Wang
af6efbed7a chore: update blocksuite (#1378)
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-03-07 11:36:52 +00:00
JimmFly
83e1cd9274 chore: update quick search style (#1376) 2023-03-07 11:30:58 +00:00
Himself65
bc9d470d08 ci: remove self-host in build.yml (#1363)
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-03-07 19:24:41 +08:00
Himself65
e0dd94ae41 fix: public workspace state (#1366) 2023-03-06 22:01:57 -06:00
Himself65
33fb20e5cb chore: bump version (#1364) 2023-03-06 20:11:49 -06:00
Himself65
7ae8cfc0f5 fix: ui bugs in public workspace (#1362) 2023-03-06 18:29:10 -06:00
Himself65
76a83fd60b fix: prefix url (#1361) 2023-03-06 18:28:49 -06:00
Alberto de la Cruz
0f82851766 fix: update title on tab (#1360) 2023-03-06 17:17:51 -06:00
Himself65
98ccf17196 feat: modify prefixUrl in params (#1335) 2023-03-06 14:59:49 -06:00
Himself65
a3e825c216 fix: about us modal (#1358) 2023-03-06 12:21:51 -06:00
JimmFly
776d30613f feat: add recentlyViewed (#1357)
Co-authored-by: himself65 <himself65@outlook.com>
2023-03-06 18:02:50 +00:00
LongYinan
2a08e0b704 ci: remove perfsee upload step on CI (#1356) 2023-03-06 21:51:21 +08:00
Himself65
5760c41cd0 fix: preview page (#1355) 2023-03-06 03:06:11 -06:00
Himself65
78fdaf140d feat: add og and twitter preview support (#1350) 2023-03-06 08:52:39 +00:00
DarkSky
b8904a0aec chore: add brotli size in size calcaution (#1339) 2023-03-06 01:20:42 -06:00
Himself65
061ceaa9fe feat: lazy load modal components (#1337) 2023-03-06 00:05:25 -06:00
Himself65
d9b5744148 refactor: move component into UI part (#1333) 2023-03-05 23:42:09 -06:00
Himself65
45630669c7 chore: version fix (#1338) 2023-03-06 05:26:00 +00:00
Himself65
e8cde2c3cc ci: fix compressed-size.yml (#1334) 2023-03-05 22:35:10 -06:00
Himself65
bf6d4e1fed ci: add compressed-size.yml (#1328) 2023-03-05 15:47:28 -06:00
Himself65
e8dc9809e2 docs: update README.md (#1327) 2023-03-05 12:18:56 -06:00
Zhizhen He
3a55f5f798 docs: fix typo (#1326) 2023-03-06 01:50:40 +08:00
DarkSky
dd1842647a chore: remove useless changesets workflow (#1325) 2023-03-05 11:01:07 -06:00
Himself65
5b75d32a8a fix: page crash in public workspace (#1324) 2023-03-05 02:29:02 -06:00
Himself65
bd4977e94e feat: support offline mode for affine workspace (#1322) 2023-03-05 01:51:08 -06:00
Himself65
3e131603dd fix: always show workspace list modal when no workspaces (#1321) 2023-03-05 00:51:29 -06:00
Himself65
1e11f727fd fix: avoid avatar flickering (#1319) 2023-03-05 13:52:18 +08:00
Himself65
f63d54a9de chore: fix peer dependencies (#1317) 2023-03-04 20:24:57 -06:00
Himself65
9a199eb9a1 refactor: support suspense mode in workspaces (#1304) 2023-03-04 20:11:15 -06:00
Himself65
dd6bee68cb chore: bump version (#1313) 2023-03-04 13:46:50 -06:00
Himself65
28f0027de6 ci: add label-checker.yml (#1314) 2023-03-04 12:56:27 -06:00
Alessio Gravili
c6b48dd3ef chore: add default formatter for vscode (#1309) 2023-03-04 11:48:37 -06:00
Alessio Gravili
ff3cabaf17 chore: add launch.json for vscode (#1307) 2023-03-04 11:48:29 -06:00
Alessio Gravili
392867781f docs: sign CLA (#1308) 2023-03-04 16:09:36 +00:00
Himself65
8ce4fa85f7 fix: remove unused log (#1305) 2023-03-04 03:56:01 -06:00
Himself65
4e9f0c97a1 refactor: unify theme (#1303) 2023-03-04 01:36:20 -06:00
DarkSky
fe0d78b2d6 fix: cloudflare buinding 2023-03-04 14:10:32 +08:00
hehe
693e7b204b ci: revise workflows to use .nvmrc (node 18) (#1290) 2023-03-04 14:07:09 +08:00
Yifeng Wang
b6480bf8a6 chore: remove redundant config 2023-03-04 04:18:45 +08:00
Yifeng Wang
205092180b chore: bump blocksuite (#1298)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-04 04:17:06 +08:00
Himself65
50ff9b0c5c refactor: unify synced and un-synced affine workspace (#1299) 2023-03-03 13:58:15 -06:00
Himself65
296cd215c1 refactor: remove sync binary (#1297) 2023-03-03 13:36:42 -06:00
github-actions[bot]
fd510834ed Bump blocksuite to 0.5.0-20230302205056-4385b7a (#1286)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Himself65 <himself65@outlook.com>
2023-03-02 23:17:40 -06:00
Himself65
4d8d128539 fix: blob fetch and state syncing between tabs (#1287) 2023-03-02 21:48:35 -06:00
Himself65
2a955d1391 feat: improve provider testing (#1280) 2023-03-02 20:00:56 -06:00
Himself65
1e2f91fe21 feat: add hook useBlockSuiteWorkspaceName (#1281) 2023-03-02 20:00:42 -06:00
Himself65
9d46b358d4 feat: add list skeleton in public workspace (#1278) 2023-03-02 15:11:37 -06:00
Himself65
0507300a29 chore: bump version (#1275) 2023-03-02 14:52:41 -06:00
Himself65
67c0d84d97 feat(storybook): enable dark mode toggle (#1016) 2023-03-02 14:45:40 -06:00
Himself65
ec5d8ca179 fix: multiple yjs in debug local mode (#1276) 2023-03-02 13:50:23 -06:00
LongYinan
6c4def18a6 build: dedupe packages in lockfile (#1259) 2023-03-02 18:44:48 +00:00
hehe
a61bb4f8bc chore: update lint script to include the .mjs (#1267) 2023-03-02 18:01:09 +00:00
Himself65
eeb636e81c fix: title behavior on BlockSuite editor (#1264) 2023-03-02 17:38:17 +00:00
Yifeng Wang
32a1b7b8a3 fix: bump to migratable blocksuite (#1263) 2023-03-02 18:55:22 +08:00
Yifeng Wang
205b4a5d54 chore: update blocksuite 0.5 (#1260) 2023-03-02 18:48:40 +08:00
LongYinan
6138fefa9e ci: setup pnpm from corepack config to avoid flaky lockfile (#1258) 2023-03-02 18:21:55 +08:00
LongYinan
a4892e5992 build(web): introduce Perfsee (#1256) 2023-03-02 16:49:33 +08:00
Himself65
855588ca8b fix: reduce error message (#1254) 2023-03-02 07:11:36 +00:00
Himself65
68b33cbdbd fix: editor overflow (#1253) 2023-03-02 00:39:49 -06:00
Himself65
f34a64a82a test: add test case for upload image (#1250) 2023-03-02 05:51:15 +00:00
DarkSky
e5a6fd8f6c Revert "Bump blocksuite to 0.5.0-20230301172958-2384904" (#1251) 2023-03-02 12:28:03 +08:00
Himself65
e67411aea4 fix: workspace image flickering (#1247) 2023-03-02 11:25:16 +08:00
github-actions[bot]
1a72640a9b Bump blocksuite to 0.5.0-20230301172958-2384904 (#1246)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-02 11:23:40 +08:00
Himself65
a099ed5f29 feat: use @affine/debug (#1244) 2023-03-01 20:13:45 -06:00
Himself65
1abab690af feat: init @affine/env (#1243) 2023-03-01 19:26:55 -06:00
Himself65
71a0951c77 feat: add helper function for debug (#1241) 2023-03-01 16:33:52 -06:00
Himself65
5cda4a5ebc chore: remove next-i18next (#1242) 2023-03-01 16:11:24 -06:00
Himself65
3afecc8ee7 fix: enable vitest (#1238) 2023-03-01 14:46:20 -06:00
Himself65
f817d41d1c chore: remove unused code (#1236) 2023-03-01 19:54:42 +00:00
Himself65
6128338adb docs: update README.md (#1232) 2023-03-02 03:48:38 +08:00
Himself65
c79651ee90 feat: add broad cast channel provider (#1237) 2023-03-02 03:47:09 +08:00
Himself65
0df288ba2c refactor: use nano id (#1234) 2023-03-01 12:16:36 -06:00
Himself65
f888a9e6e0 fix: set BlockSuite flags (#1231) 2023-03-02 01:15:30 +08:00
Himself65
f6a620e0ac fix: favorite button will not work (#1228) 2023-03-01 16:50:23 +00:00
Himself65
e0481d29ad refactor!: next generation AFFiNE code structure (#1176) 2023-03-01 15:40:01 +08:00
Chi Zhang
2dcccc772c Update affine-designer.md 2023-03-01 15:15:20 +08:00
Chi Zhang
1c0a0cf803 Update summary.md 2023-03-01 15:14:57 +08:00
Chi Zhang
8ff37afe28 Create affine-designer.md 2023-03-01 14:57:55 +08:00
lin onetwo
b575094f4b feat: basic app menu (#1207) 2023-03-01 12:37:53 +08:00
Whitewater
c096fa156b chore: add timed update workflow (#1214) 2023-03-01 12:23:54 +08:00
Qi
c81a24224e fix: always show email tip (#1213) 2023-02-28 07:43:38 +00:00
m1212e
138dd98c0c fix: search hotkey prevent default (#1195) 2023-02-27 19:25:33 +08:00
Whitewater
b6cb52f702 refactor: search input (#1205) 2023-02-27 18:08:06 +08:00
ShortCipher5
b41c8130bf docs: update readme (#1204) 2023-02-27 16:30:29 +08:00
Qi
1e4d475327 feat: modify contact modal (#1203) 2023-02-27 08:14:13 +00:00
Himself65
f2ce1ae662 feat: connect firebase emulator (#1196) 2023-02-24 11:59:53 -06:00
Qi
da1d00d9bf fix: stay loading when refresh token fail (#1194) 2023-02-24 09:16:21 +00:00
Qi
28a6c46605 feat: support sidebar zoom (#1190) 2023-02-23 12:32:02 -06:00
Qi
d84b47f226 fix: modify icons (#1184) 2023-02-23 19:37:09 +08:00
zqran
8ee5d422cb feat: set the correct mode when loading the page (#1069)
Co-authored-by: Himself65 <himself65@outlook.com>
2023-02-23 16:22:00 +08:00
DarkSky
dcd11aa782 chore: bump core (#1180) 2023-02-23 07:07:46 +00:00
JimmFly
6908298fcc fix: wrong workspace name when deleting workspace (#1177) 2023-02-22 14:18:25 +08:00
Qi
7163ea6c4b fix: detail reduction of UI (#1131) 2023-02-22 11:12:34 +08:00
Himself65
0b072da346 revert: loadWorkspace unexpected behavior (#1172) 2023-02-22 10:44:18 +08:00
Peng Xiao
86346b284e feat: debug logger with levels (#1165) 2023-02-21 19:23:53 +08:00
Himself65
11ade8aeaf fix: use css first-child (#1145) 2023-02-21 15:59:26 +08:00
zqran
41aec24f9b fix: flickering animation on switching between Edgeless and Paper mode (#1151) 2023-02-21 15:52:07 +08:00
Peng Xiao
fd47fe3fc1 fix: user info not be revived after refresh (#1157) 2023-02-21 00:06:06 -06:00
Himself65
1731db833d fix: load page on first render (#1155) 2023-02-21 05:18:30 +00:00
Himself65
edd8f347bc chore(desktop): simplify code (#1146) 2023-02-21 13:15:40 +08:00
Himself65
ed4d1e8bcd fix: public workspace loading (#1144) 2023-02-21 10:32:32 +08:00
Yifeng Wang
8c492d2a83 docs: update deps callout (#1141) 2023-02-20 17:52:37 +08:00
Himself65
6ce877bd94 fix: remove duplicated nullish coalescing (#1132) 2023-02-20 16:53:21 +08:00
zqran
6806702e29 feat: change "Settings" to "Workspace Settings" (#1138) 2023-02-20 16:48:43 +08:00
ShortCipher5
1c8622432b Update README.md (#1130) 2023-02-20 15:49:55 +08:00
Himself65
e583725cd2 refactor: init hook useRouterTargetWorkspace (#1127) 2023-02-20 07:37:18 +00:00
Himself65
54963842ed fix(desktop): remove shadow lockfile (#1126) 2023-02-20 03:29:43 +08:00
Whitewater
497e8570db chore: remove workaround margin (#1124) 2023-02-19 17:16:12 +08:00
Himself65
ae4105e961 chore: unify version (#1123) 2023-02-19 08:40:39 +00:00
Himself65
aa1de57d96 feat: read local theme on page load (#1114)
Co-authored-by: zqran <uuxnet@gmail.com>
2023-02-19 16:38:43 +08:00
Himself65
736fbff41a chore: enable react strict mode (#1125) 2023-02-19 15:41:00 +08:00
Himself65
b1298c4d3e refactor(store): move datacenter into global (#1118) 2023-02-19 15:35:18 +08:00
Vivek
d7bbb0978f chore: typo fix (#1121) 2023-02-19 05:30:51 +00:00
Himself65
4aebdfc81a fix: stop hydration in workspace (#1117) 2023-02-19 03:03:20 +00:00
Himself65
47f9ae2e11 chore: bump version (#1116) 2023-02-19 09:06:12 +08:00
Himself65
8335cd7423 chore: bump version (#1115) 2023-02-19 02:47:23 +08:00
x1a0t
5812100fc6 chore: bump version (#1110) 2023-02-18 09:28:40 +00:00
Himself65
9d21c3efbb refactor: extract store package (#1109) 2023-02-18 16:41:22 +08:00
Himself65
af28418e61 fix: remove dynamic import on theme provider (#1111) 2023-02-18 13:49:25 +08:00
Himself65
462a859afe style: remove unused import (#1113) 2023-02-18 04:52:14 +00:00
Himself65
6378547a0e style: enable react/react-in-jsx-scope lint rule (#1107) 2023-02-18 10:09:52 +08:00
Himself65
5f0015f522 chore: simplify tsconfig.json (#1108) 2023-02-18 10:08:52 +08:00
Himself65
4647d44972 refactor(data-center): remove side effect in affine provider (#1106) 2023-02-18 06:25:08 +08:00
x1a0t
7849254785 chore: bump BlockSuite version (#1102) 2023-02-17 10:16:06 +00:00
Qi
67fe1871da feat: modify invite page & 404 page (#1097) 2023-02-17 09:44:48 +00:00
Himself65
5e6366ba44 chore: strict eslint check (#1084) 2023-02-17 15:33:32 +08:00
danielchim
191c36c6fb fix: submenu dark theme hover background theming (#744) 2023-02-17 07:20:11 +00:00
zqran
590ff6ffa7 fix: zh-Hans i18n fails on page reload (#1092)
Co-authored-by: himself65 <himself65@outlook.com>
2023-02-17 06:47:49 +00:00
Himself65
25ac0f700b fix: jump to 404 when be removed from page (#1090) 2023-02-17 14:33:36 +08:00
zqran
b6906467be feat: update list when deleting a page from all pages (#1086) 2023-02-16 23:45:31 -06:00
Peng Xiao
5aa835deb6 fix: some responsiveness issues (#1088) 2023-02-16 23:30:19 -06:00
Peng Xiao
cbdc751be1 fix: on token invalidation it shall be redirected to home page (#1087) 2023-02-17 11:53:22 +08:00
DarkSky
0d1590f251 chore: skip pnpm cache 2023-02-17 11:23:07 +08:00
Qi
cc1323f5cc feat: add MessageCenterHandler (#770)
Co-authored-by: Peng Xiao <pengxiao@freewheel.tv>
2023-02-16 21:02:10 -06:00
Himself65
f68b4934c6 fix(web): remove pwa support (#1078) 2023-02-17 02:57:30 +00:00
Himself65
6f6921079e refactor: remove esm module (#1077) 2023-02-17 10:43:52 +08:00
Himself65
1d0bf58109 fix: infinite loading on public workspace (#1074) 2023-02-17 05:56:23 +08:00
zqran
6fa04622ce fix: Button UI issues (#1070) 2023-02-16 18:11:14 +00:00
Peng Xiao
c69637fe98 fix: should show sync tab for cloud workspace (#1072) 2023-02-17 01:53:03 +08:00
Qi
121ac152fa fix: open deleted page when open workspace,fixed #1067 (#1068) 2023-02-16 16:58:24 +00:00
Chi Zhang
50352e0f82 chore: cleanup old codes (#1071) 2023-02-17 00:51:32 +08:00
Qi
9db80fde37 Fix: slde bar style (#1058) 2023-02-16 22:29:10 +08:00
Qi
07401d1810 Fix: workspace card style (#1059) 2023-02-16 22:28:30 +08:00
Qi
27b1196111 Fix: invite (#1064) 2023-02-16 12:22:38 +00:00
Qi
657681e5e1 Fix: modify tip in sign out modal (#1057) 2023-02-16 20:20:24 +08:00
Fangdun Tsai
88a690a7d1 fix: position is set to relative is needed in wrapper of editor-container (#1060) 2023-02-16 10:04:02 +00:00
JimmFly
b94c0df49e chore: change default Workspace name to "Demo Workspace" (#1054) 2023-02-16 17:55:54 +08:00
x1a0t
714665a202 chore: bump BlockSuite version (#1062) 2023-02-16 17:55:03 +08:00
Peng Xiao
13e2537dfb fix: userinfo issue after state refactor (#1061) 2023-02-16 09:54:40 +00:00
Yifeng Wang
1034b6d517 ci: optimize add-to-project behavior for forks (#1053) 2023-02-16 15:39:32 +08:00
Himself65
f6378e8c3b fix: use push when switch workspace (#1049) 2023-02-16 06:23:49 +00:00
x1a0t
fe8831f7ae feat: theme for dark mode (#982)
Co-authored-by: QiShaoXuan <qishaoxuan777@gmail.com>
2023-02-16 06:23:24 +00:00
JimmFly
520076b31d fix: assert error when toolWrapper is null (#1048) 2023-02-15 23:38:33 -06:00
Yifeng Wang
e2b17bc310 ci: simplify project automation (#1046) 2023-02-16 12:28:03 +08:00
Himself65
8774df46f9 fix: import useCallback (#1045) 2023-02-16 04:13:40 +00:00
Himself65
cdc2b449a9 refactor(store): extract workspace out of AppState (#1037) 2023-02-16 11:41:43 +08:00
Himself65
a4d0813354 fix(editor): multiple block hub when switching pages (#1042) 2023-02-16 11:33:30 +08:00
Himself65
6e2161277c chore: bump version (#1040) 2023-02-16 11:32:30 +08:00
Yifeng Wang
7d096ba90e ci: auto assign on draft PRs (#1039) 2023-02-16 09:04:56 +08:00
Yifeng Wang
9a1123239f ci: add to project setup (#1038) 2023-02-16 08:46:17 +08:00
DarkSky
8b617abead chore: bump blocksuite version (#1036) 2023-02-16 01:19:01 +08:00
Qi
8ead48a6d8 feat: modify interaction of new workspace (#1031) 2023-02-16 00:45:05 +08:00
Qi
a360e30073 fix: add composition checkout when input create workspace name, fixed… (#1035) 2023-02-15 22:29:07 +08:00
Qi
4b92ad6a22 fix: long text in slide bar not show ellipsis, fixed #980 (#1033) 2023-02-15 22:28:01 +08:00
Qi
885e99ddad fix: modify workspace type text, fixed #979 (#1034) 2023-02-15 22:27:39 +08:00
Qi
8ed62d7692 feat: add offline detector, fixed #989 (#1032) 2023-02-15 14:20:41 +00:00
Chi Zhang
ed26ae088a Create README.md 2023-02-15 20:41:15 +08:00
Qi
d40bdb9699 Fix: remove member issues (#1026) 2023-02-15 18:07:47 +08:00
Qi
c65adc5e25 fix: ui issues (#1023) 2023-02-15 09:07:09 +00:00
Himself65
34a3a99d62 refactor: use suspense in AppDefender (#1020) 2023-02-15 16:51:44 +08:00
Qi
eb1d4fe1f6 feat: interaction change (#788) 2023-02-15 15:21:29 +08:00
ShortCipher5
ce24174971 docs: preload content update (#1014) 2023-02-15 13:48:46 +08:00
Himself65
6a8aff9e56 refactor(store): port to useGlobalState with zustand (#1012) 2023-02-14 23:38:21 -06:00
Himself65
2b3ec1240a feat(component): init BlockSuiteErrorBoundary (#1015) 2023-02-15 05:33:40 +00:00
Himself65
6906d6ba7a build(desktop): fix typescript error (#1013) 2023-02-15 13:25:30 +08:00
lin onetwo
5c505807b4 chore: assign target for rust-cache (#1005)
Co-authored-by: himself65 <himself65@outlook.com>
Co-authored-by: Whitewater <me@waterwater.moe>
2023-02-14 22:45:19 -06:00
Himself65
5a0e4895cd refactor: extract useBlockSuite from useAppState (#1001) 2023-02-14 21:12:35 -06:00
Yifeng Wang
6c0db247b7 ci: support pr auto assign (#1004) 2023-02-15 09:18:07 +08:00
Peng Xiao
5f4071652f fix: some login & enable affine cloud issues (#999)
Co-authored-by: himself65 <himself65@outlook.com>
2023-02-14 19:12:39 -06:00
Himself65
78c164463f refactor: hooks useConfirm (#998) 2023-02-15 08:49:18 +08:00
DarkSky
3b9caadaac chore: fix cache path (#1000) 2023-02-14 14:29:50 -06:00
DarkSky
61fc9bc222 chore: rename workflows 2023-02-15 02:52:45 +08:00
Qi
5a3e6aa041 refactor: public workspace (#996)
Co-authored-by: himself65 <himself65@outlook.com>
2023-02-14 11:39:53 -06:00
lin onetwo
0370ec67df docs: sign CLA (#994) 2023-02-15 01:15:37 +08:00
Himself65
2196379798 fix: editor cannot directly import (#995) 2023-02-15 00:43:26 +08:00
lin onetwo
8dac464b61 chore: upload to release on git tag Or output artifact path on nightly (#993) 2023-02-14 23:18:47 +08:00
DarkSky
6fd1ad7434 chore: preloading page (#981)
Co-authored-by: ShortCipher5 <me@shortcipher.me>
2023-02-14 16:05:13 +08:00
lin onetwo
79506f1ce2 fix: client not saving avatar blob on first creating workspace (#974) 2023-02-14 15:47:10 +08:00
lin onetwo
b69eb3437b fix: tauri npm scripts (#955) 2023-02-14 06:51:05 +00:00
Qi
36e6da52a5 feat: modify blockhub & help island interation (#960)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-02-14 11:22:39 +08:00
Himself65
a47b612a2c refactor: use storybook v7 (#951) 2023-02-14 11:18:43 +08:00
DarkSky
2fdbb1909d fix: upload artifacts 2023-02-14 00:21:16 +08:00
DarkSky
3792b05741 fix: resolve new deps 2023-02-14 00:07:37 +08:00
DarkSky
db68fe8f46 chore: fix lock 2023-02-14 00:04:58 +08:00
Qi
dbf6dd5a6c feat: add animation to tab button (#965) 2023-02-13 15:56:25 +00:00
DarkSky
c0813156a1 fix: typo 2023-02-13 22:33:49 +08:00
DarkSky
b8f550f069 chore cleanup ci 2023-02-13 21:37:13 +08:00
DarkSky
6faaae8728 chore: fix env 2023-02-13 20:58:47 +08:00
JimmFly
9495432714 chore: update translation (#967) 2023-02-13 18:13:11 +08:00
Peng Xiao
b38fc8d7e5 fix: hide sync tab for web version (#966) 2023-02-13 17:47:50 +08:00
Peng Xiao
298f2c1feb fix: should show workspace avatar using blob url (#949) 2023-02-13 17:43:44 +08:00
Peng Xiao
98ceb082fc fix: userInfo being initialized correctly (#963) 2023-02-13 16:56:32 +08:00
JimmFly
49e60737a8 chore: update translation (#952) 2023-02-13 15:08:26 +08:00
DarkSky
6e2f1070b9 feat: remove submodules 2023-02-11 00:44:00 +08:00
Qi
d5f4c4210d Fix/UI issue (#946)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-02-10 16:19:21 +00:00
DarkSky
8a7393a961 chore: move client folders (#948) 2023-02-10 12:41:01 +00:00
Qi
cb118149f3 fix: can not limit Chinese input lenth correctly (#947) 2023-02-10 20:35:12 +08:00
DarkSky
7890219e29 chore: update reference icon 2023-02-10 19:56:59 +08:00
DarkSky
5847599112 chore: update icons 2023-02-10 19:53:21 +08:00
DarkSky
2962b9e256 Merge pull request #935 from toeverything/feat/client-app
feat: tauri desktop client app
2023-02-10 19:38:44 +08:00
DarkSky
69f19886fb chore: remove useless modules 2023-02-10 19:37:15 +08:00
linonetwo
525b8b5007 Merge branch 'master' into feat/client-app 2023-02-10 19:20:30 +08:00
x1a0t
31878d7fe0 fix: disable blockHub in an invitation page (#945) 2023-02-10 17:41:16 +08:00
linonetwo
6296cb0910 fix: deepscan issues 2023-02-10 17:33:47 +08:00
linonetwo
ed1a917dc1 fix: ipc provider tests 2023-02-10 17:24:32 +08:00
linonetwo
d060e77cfa fix: patch tauri api for lacked window undefined check 2023-02-10 17:03:29 +08:00
Himself65
6057c5637c feat(component): enhance storybook preview (#943) 2023-02-10 15:14:10 +08:00
DarkSky
a6a8493c35 Merge pull request #936 from toeverything/token-refactor
refactor: token handling
2023-02-10 15:12:28 +08:00
Peng Xiao
be27b30b01 fix: rename token.ts to auth.ts to make it clear of usage 2023-02-10 14:21:53 +08:00
JimmFly
8615d4b3af chore: update skiped test (#933) 2023-02-10 12:04:03 +08:00
Whitewater
944c455c3d feat: enable slash menu by default (#939) 2023-02-10 12:03:37 +08:00
Himself65
094e73b7fb refactor: use zustand in global modal (#940) 2023-02-10 12:03:15 +08:00
x1a0t
323d7c96f7 chore: bump BlockSuite version & remove old edgeless toolbar (#941) 2023-02-10 12:02:52 +08:00
Himself65
26c308147c feat: add exportWorkspaceYDoc (#942) 2023-02-10 12:01:10 +08:00
Peng Xiao
7bd69809e9 fix: html tag should have correct lang attr (#884) 2023-02-10 12:00:36 +08:00
Himself65
02aea468ca chore: bump version (#938) 2023-02-09 19:31:46 -06:00
Himself65
1824ce1e80 chore: bump version (#937) 2023-02-09 13:46:25 -06:00
x1a0t
d524fe3c6c chore: bump BlockSuite version (#910)
Co-authored-by: QiShaoXuan <qishaoxuan777@gmail.com>
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-02-10 03:09:05 +08:00
Whitewater
9b427efb88 chore: remove custom vscode settings 2023-02-09 23:41:09 +08:00
Peng Xiao
385e9afba6 fix: token exp 2023-02-09 23:12:36 +08:00
Peng Xiao
ee2e1687df fix: store user info locally 2023-02-09 23:10:52 +08:00
linonetwo
f412a453f2 chore: remove useless configurations from the client-app directory 2023-02-09 23:09:17 +08:00
linonetwo
5acc9388cc fix: don't update octobase on release action 2023-02-09 22:56:39 +08:00
linonetwo
69805faa17 fix: merge issue 2023-02-09 22:43:41 +08:00
linonetwo
6b31af0854 Merge branch 'master' into feat/client-app 2023-02-09 22:39:08 +08:00
linonetwo
9bd6bcaf65 fix: white screen after build 2023-02-09 22:27:36 +08:00
linonetwo
d1f2b3f8af fix: getUserInfo from tauri instead from affine cloud in app 2023-02-09 21:13:31 +08:00
linonetwo
85431de42b chore: don't need build web 2023-02-09 21:06:17 +08:00
linonetwo
9df5b553b2 fix: using public as dist 2023-02-09 20:41:36 +08:00
linonetwo
cee05b13e8 fix: user_id is string now 2023-02-09 20:01:11 +08:00
linonetwo
ca060dbf7a refactor: remove unused app pages 2023-02-09 19:53:52 +08:00
linonetwo
483d1d67c6 fix: user id is now string, we need to get default on local 2023-02-09 19:51:56 +08:00
linonetwo
fccf7e2f12 chore: update octobase 2023-02-09 18:39:30 +08:00
linonetwo
42f8247599 fix: adapt latest blocksuite 2023-02-09 18:31:12 +08:00
linonetwo
5d40c93db7 fix: adapt latest octobase id type 2023-02-09 18:08:42 +08:00
linonetwo
3d78301805 fix: build preload before first run 2023-02-09 18:08:31 +08:00
Yifeng Wang
18e1eecefc docs: cleanup cla format (#934) 2023-02-09 17:52:00 +08:00
DarkSky
a5216bf01c chore: fix format 2023-02-09 17:42:40 +08:00
DarkSky
a3eb4a4279 chore: update cla description 2023-02-09 17:40:13 +08:00
JimmFly
7ab0040810 feat: update language (#929) 2023-02-09 17:31:21 +08:00
DiamondThree
3d6d8694ba feat: add create workspace test (#914) 2023-02-09 08:28:01 +00:00
zuomeng wang
5a93b26cc3 fix: duplicate api call for cloud workspace (#928) 2023-02-09 15:53:46 +08:00
JimmFly
718322ec65 chore: replace all "favourite" with "favorite" (#927) 2023-02-09 07:46:59 +00:00
Chi Zhang
2fd4dc5201 Update README.md 2023-02-09 15:39:07 +08:00
Chi Zhang
b9544e1022 Update README.md 2023-02-09 15:37:22 +08:00
Chi Zhang
044eb8976a Update README.md 2023-02-09 15:37:07 +08:00
Chi Zhang
1777b4f91e Update BUILDING.md 2023-02-09 15:34:54 +08:00
Chi Zhang
233793cecb Create BUILDING.md 2023-02-09 15:34:43 +08:00
DarkSky
eb47794e98 chore: renew dev server 2023-02-09 15:25:06 +08:00
DiamondThree
f47d1c2f7b fix: local will request api/token (#924) 2023-02-09 06:59:18 +00:00
DiamondThree
6327b5864d fix: localworkspace will request blob (#925) 2023-02-09 06:59:02 +00:00
JimmFly
2bde086e28 chore: update font size of quick search (#919) 2023-02-09 13:54:55 +08:00
DarkSky
c129c92e39 chore: cleanup useless path 2023-02-09 13:50:13 +08:00
DarkSky
c3dc92d920 chore: add storybook build cmd 2023-02-09 12:33:56 +08:00
Himself65
cc605251a8 refactor: move component into a single package (#898) 2023-02-09 12:19:11 +08:00
Peng Xiao
0984c37cad fix: add page titles (#883) 2023-02-09 11:30:57 +08:00
JimmFly
0ccaf2bc45 fix: infinite call of useEffect on 404 page (#913) 2023-02-09 11:29:53 +08:00
zuomeng wang
5323f659c8 fix: only owner can set workspace avatar (#882)
Co-authored-by: Qi <474021214@qq.com>
2023-02-09 11:29:04 +08:00
linonetwo
c61b689d1b chore: upgrade octobase to latest master 2023-02-09 10:55:28 +08:00
Himself65
8297259f7e refactor: remove babel (#911) 2023-02-09 10:51:10 +08:00
linonetwo
c29b2975c5 fix: merge issue 2023-02-09 10:24:30 +08:00
zuomeng wang
9d350059d9 fix: add collabration name (#879) 2023-02-09 10:15:30 +08:00
linonetwo
4735fdbd2b Merge branch 'master'
Conflicts:
	.vscode/settings.json
	package.json
	packages/data-center/package.json
	pnpm-lock.yaml
2023-02-09 10:13:15 +08:00
JimmFly
53d60a13b2 fix: retrieve lost cursor after closing search (#899) 2023-02-08 16:05:15 -06:00
Flrande
7583205011 build: use swc (#839) 2023-02-08 14:53:30 -06:00
DarkSky
75435e1c69 Merge pull request #886 from toeverything/feat/sync-status
fix: logout will jump to 404 error
2023-02-08 23:22:10 +08:00
DarkSky
4d689529b9 Merge pull request #881 from toeverything/fix-workspace-type
fix: workspace type wrong
2023-02-08 23:21:08 +08:00
DarkSky
eba1962cd5 Merge pull request #885 from toeverything/fix-invite-loading
fix: inviting page add loading to wait request
2023-02-08 23:18:23 +08:00
linonetwo
5176d57d28 fix: preload script in tauri should not have export 2023-02-08 23:16:12 +08:00
DarkSky
e111d5e6ef Merge pull request #909 from toeverything/feat/e2etest-20230208
test: make workspace list tests stable
2023-02-08 22:30:59 +08:00
linonetwo
f01e0cd733 fix: build affine before build tauri 2023-02-08 21:41:48 +08:00
Qi
23ff52b93d Merge pull request #878 from toeverything/feat/new-setting-page
feat: setting page with new design
2023-02-08 18:47:46 +08:00
QiShaoXuan
f8995e8a87 fix: i18n word 2023-02-08 18:38:28 +08:00
Qi
a3a94a9d0f Update packages/i18n/src/resources/en.json
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
2023-02-08 18:33:06 +08:00
QiShaoXuan
7ff63cfb5f fix: lint error 2023-02-08 18:20:51 +08:00
QiShaoXuan
2ec5f6fb60 feat: setting page with new design 2023-02-08 18:11:27 +08:00
tzhangchi
6fa0820734 test: make workspace list tests stable 2023-02-08 17:48:03 +08:00
DarkSky
6d28081afa Merge pull request #887 from toeverything/fix-remove-unused-code
fix: remove unused code
2023-02-08 17:13:07 +08:00
DarkSky
4e1f812160 Merge pull request #905 from toeverything/fix-token-parsing
fix: token parsing
2023-02-08 16:57:37 +08:00
linonetwo
0c21ccb04b fix: store full state as update as solution for serialization 2023-02-08 15:36:04 +08:00
Peng Xiao
9c2c8aed6c fix: token parsing 2023-02-08 15:04:23 +08:00
QiShaoXuan
2405744566 Merge branch 'master' of github.com:toeverything/AFFiNE into feat/new-setting-page 2023-02-08 14:35:04 +08:00
linonetwo
b1943aaad9 fix: preload compile needs correct type extension on window 2023-02-08 10:23:52 +08:00
alt0
ef4a25d82b fix: workspace router 2023-02-07 22:46:40 +08:00
DiamondThree
731deda1e1 fix: logout jump to 404 2023-02-07 22:14:49 +08:00
DiamondThree
d9d60197f2 fix:delete workspace will jump to 404 2023-02-07 20:01:25 +08:00
alt0
84906e1ff8 fix: remove unused code 2023-02-07 19:19:06 +08:00
DiamondThree
028fdae8b1 fix: logout will jump to 404 error 2023-02-07 19:18:28 +08:00
DarkSky
d135bcb2fd Merge pull request #864 from toeverything/feat/sync-status
Feat/sync status
2023-02-07 19:06:52 +08:00
alt0
40b74a8e66 fix: inviting page add loading to wait request 2023-02-07 19:06:43 +08:00
DiamondThree
a0f5d089d1 fix: appState dependency 2023-02-07 18:48:55 +08:00
alt0
0566c07e39 fix: remove unused variables 2023-02-07 18:42:28 +08:00
alt0
38b4ab41a5 fix: remove unused variables 2023-02-07 18:40:09 +08:00
alt0
72d28867aa fix: workspace type wrong 2023-02-07 18:29:09 +08:00
QiShaoXuan
aac9cb8b23 fix: modify slide bar font size, fixed #812 2023-02-07 17:49:16 +08:00
Qi
8f2d6b2160 Merge pull request #829 from toeverything/fix/downhill-bugs
Fix/downhill bugs
2023-02-07 17:37:31 +08:00
DiamondThree
28d2fd13d5 fix: sync status error 2023-02-07 17:32:15 +08:00
Qi
94c16b6380 Merge pull request #872 from toeverything/feat/modify-ui
feat: modify style
2023-02-07 17:25:35 +08:00
QiShaoXuan
de963fe13b fix: remove css variable lineHeightBase 2023-02-07 17:20:08 +08:00
zuomeng wang
036e514eb5 fix: add collabration cursor (#865) 2023-02-07 17:10:39 +08:00
QiShaoXuan
e1f4b6f8f2 feat: modify style 2023-02-07 17:10:15 +08:00
zuomeng wang
285b535a54 fix: local cache not work in creation (#859) 2023-02-07 08:52:55 +00:00
DiamondThree
0441c17e1d fix: pagelist is null 2023-02-07 16:45:58 +08:00
DiamondThree
ab059fcb2b fix: logout status error 2023-02-07 16:45:16 +08:00
JimmFly
18f63443e3 Merge pull request #856 from toeverything/fix/language-menu-ui
fix: retrieves missing default language
2023-02-07 16:23:57 +08:00
JimmFly
3750c8ef8d Merge pull request #852 from toeverything/fix/update-search-ui
fix: update search UI in public page
2023-02-07 16:12:59 +08:00
JimmFly
9e15f1add9 Merge branch 'master' into fix/update-search-ui 2023-02-07 16:07:43 +08:00
JimmFly
1ea0e29d93 test: add test case for language menu 2023-02-07 15:21:34 +08:00
JimmFly
9807f9af1d fix: retrieves missing default language 2023-02-07 14:57:04 +08:00
DiamondThree
a6100a6ae2 fix: logout will set status about workspace (#830) 2023-02-07 06:40:06 +00:00
QiShaoXuan
8589a8c718 fix: lint error 2023-02-07 14:17:10 +08:00
QiShaoXuan
1455bb8555 Merge branch 'master' of github.com:toeverything/AFFiNE into fix/downhill-bugs 2023-02-07 14:15:06 +08:00
QiShaoXuan
285651fba8 fix: default workspace name, fixed #813 2023-02-07 14:13:00 +08:00
QiShaoXuan
3c5a98ff7c fix: uniform workspace name length limit, fixed #810 2023-02-07 14:00:33 +08:00
JimmFly
8e7e25829b test: add test case for quick search 2023-02-07 13:56:58 +08:00
JimmFly
3b8c4db8fb test: add test case for 404 search 2023-02-07 13:21:42 +08:00
JimmFly
e559ae3490 Disable quicksearch on 404 page 2023-02-07 13:14:19 +08:00
JimmFly
10c082b8e3 Merge branch 'master' into fix/update-search-ui 2023-02-07 13:06:32 +08:00
JimmFly
fd72f69303 chore: update style 2023-02-07 12:31:06 +08:00
JimmFly
d7cb1b5c0a Merge pull request #846 from toeverything/fix/quick-search-input
fix: update quick search close function
2023-02-07 12:15:17 +08:00
JimmFly
a54bc69d46 fix: add public page search ui 2023-02-07 12:09:09 +08:00
Himself65
b52f6ed63b fix: import blocksuite twice (#847) 2023-02-07 11:55:39 +08:00
JimmFly
c0e0629659 test: update quick-search test case 2023-02-07 11:12:01 +08:00
JimmFly
c0a36d36cc fix: update quick search close function 2023-02-07 11:07:52 +08:00
DarkSky
6072de82ff Merge pull request #845 from toeverything/himself65/bump
chore: bump version
2023-02-07 11:00:54 +08:00
JimmFly
4d5213608b Merge branch 'master' into fix/quick-search-input 2023-02-07 10:41:53 +08:00
JimmFly
a220e63184 Merge pull request #822 from toeverything/fix/lost-entrance-of-quick-search
fix: retrieve lost entrance of quick search
2023-02-07 10:20:53 +08:00
QiShaoXuan
c953e82234 fix: modify header sync icon, fixed #794 2023-02-07 10:19:41 +08:00
JimmFly
e2df32724a Merge branch 'master' into fix/lost-entrance-of-quick-search 2023-02-07 10:15:30 +08:00
JimmFly
e207aa1cb5 test: update quick-search test case 2023-02-07 10:14:23 +08:00
himself65
79a9f0ee46 chore: bump version 2023-02-06 13:52:55 -06:00
DarkSky
fdaefccdb0 Merge pull request #841 from toeverything/feat/e2etest-20230206
Feat/e2etest 20230206
2023-02-07 02:00:09 +08:00
DarkSky
d2e672ae92 Merge pull request #844 from toeverything/test/github-report
feat: enable github reporter
2023-02-07 01:46:37 +08:00
DarkSky
b0bbe0eff3 chore: temporarily disable unstable test 2023-02-07 01:42:40 +08:00
DarkSky
aaaca538d1 Merge pull request #843 from toeverything/himself65/alias
fix: alias
2023-02-07 01:38:44 +08:00
linonetwo
dc72b2ea11 refactor: try merge update before output and after input 2023-02-07 01:32:51 +08:00
lawvs
ad3e18cb1a feat: enable github reporter 2023-02-07 01:22:39 +08:00
himself65
392c9cc0d6 fix: alias 2023-02-06 10:59:47 -06:00
DarkSky
e397fe09c7 chore: remove duplicate tests 2023-02-06 23:44:34 +08:00
DarkSky
efb5e8a504 chore: unit test & failure record 2023-02-06 23:21:23 +08:00
tzhangchi
4fed0de502 feat: make 404 route faster 2023-02-06 22:36:40 +08:00
tzhangchi
9548cc1ed1 feat: add e2e test for creating multi workspaces 2023-02-06 22:26:01 +08:00
DarkSky
3daf8c00a4 Merge pull request #840 from toeverything/bugfix/public-workspace-error
fix: delete useless tips
2023-02-06 22:15:11 +08:00
tzhangchi
274505590c feat: update the default workspace nameto AFFiNE Test and add e2e test for it 2023-02-06 21:58:41 +08:00
DiamondThree
1379094f4d delete useless tips 2023-02-06 20:13:39 +08:00
QiShaoXuan
801fc4e00c fix: modify text, fixed #826 2023-02-06 18:30:54 +08:00
QiShaoXuan
ab4feb04ba fix: limit workspace name length when created, fixed #809 2023-02-06 18:23:38 +08:00
JimmFly
6bdaee66cf test: fix quick search test case 2023-02-06 18:06:30 +08:00
DarkSky
22ba80c95d Merge pull request #825 from toeverything/bugfix/delete-member
fix: workspace owner will delete himself
2023-02-06 18:06:25 +08:00
DarkSky
b28668d947 Merge pull request #833 from toeverything/feat/emotion-babel-plugin
feat: add @emotion/babel-plugin
2023-02-06 17:47:11 +08:00
lawvs
759ec6707a feat: add @emotion/babel-plugin 2023-02-06 17:37:47 +08:00
QiShaoXuan
de43f3f0e2 fix: long text style error in workspace card, fixed #811 2023-02-06 17:27:26 +08:00
JimmFly
dd127bc68d test: update quick-search test case 2023-02-06 17:24:30 +08:00
DarkSky
a11e400fca Merge pull request #828 from toeverything/bump_version
chore: bump ts & blocksuite
2023-02-06 17:22:30 +08:00
DarkSky
a5e0fbae9e chore: move docs to folder 2023-02-06 17:13:39 +08:00
DarkSky
be3158d529 chore: bump ts & blocksuite 2023-02-06 17:07:48 +08:00
DiamondThree
0e5ef7844c Merge branch 'master' into bugfix/delete-member 2023-02-06 17:00:41 +08:00
JimmFly
66d2033cda test: update visit 404 page test case 2023-02-06 17:00:21 +08:00
QiShaoXuan
56f10bbf50 fix: refactor login button, fixed #793 2023-02-06 16:55:54 +08:00
JimmFly
6f71198f04 Merge branch 'master' into fix/lost-entrance-of-quick-search 2023-02-06 16:53:03 +08:00
DarkSky
b0e586d02b fix: use self hosted runner 2023-02-06 16:51:35 +08:00
QiShaoXuan
f47af2d546 fix: add hint in sinout button, fixed #790 2023-02-06 16:34:14 +08:00
QiShaoXuan
dd19c947a9 fix: text is not center in login button, fixed #789 2023-02-06 16:33:45 +08:00
DiamondThree
ebca34c9e5 fix: workspace owner will delete himself 2023-02-06 16:33:07 +08:00
JimmFly
010c7b68d4 chore: remove unused import 2023-02-06 15:50:53 +08:00
JimmFly
2a17c32779 fix: find the lost setting entry of quick search 2023-02-06 15:45:20 +08:00
JimmFly
a013de8adf fix: retrieve lost quick search entries 2023-02-06 15:35:15 +08:00
DarkSky
d359823f8e Merge pull request #781 from toeverything/feature/refresh
feat: refresh can jump first workspace
2023-02-06 01:58:56 +08:00
Chi Zhang
952de71601 Update README.md 2023-02-05 22:34:40 +08:00
DarkSky
497dfa3fb5 Merge pull request #787 from toeverything/test-coverage
chore: add test coverage check
2023-02-05 20:01:18 +08:00
DarkSky
21c9725f62 fix: coverage on ci 2023-02-05 19:53:30 +08:00
DarkSky
1d1f211d37 chore: export coverage report 2023-02-05 19:05:43 +08:00
DarkSky
e4905b317a fix: test order 2023-02-05 18:57:55 +08:00
DarkSky
3e5b135ceb chore: split e2e & unit test 2023-02-05 18:56:50 +08:00
DarkSky
65652d0d06 feat: upload code coverage report 2023-02-05 18:47:01 +08:00
DarkSky
c4d34ddfea feat: basic test coverage 2023-02-05 18:41:18 +08:00
DarkSky
dd9d30de37 chore: skip outdated case 2023-02-05 17:59:38 +08:00
DarkSky
6f0bded0a2 Revert "fix:test case (#763)"
This reverts commit c0b410a1b2.
2023-02-05 17:53:14 +08:00
DarkSky
35ca8a8fb0 chore: introduction text 2023-02-05 17:45:28 +08:00
Yifeng Wang
1a2f7b8478 chore: add community link to template (#786) 2023-02-05 08:32:51 +08:00
Yifeng Wang
675e51f906 chore: remove redundant issue template config (#785) 2023-02-05 08:11:04 +08:00
Yifeng Wang
89663bc72a chore: simplify issue template (#784) 2023-02-05 08:00:15 +08:00
DarkSky
e3011c3aa6 Merge pull request #782 from toeverything/bugfix/20230203
refactor: The implementation of the _handlerAffineListMessage functio…
2023-02-04 15:40:03 +08:00
Yifeng Wang
a0b30db810 Merge pull request #783 from toeverything/document-bump 2023-02-04 11:40:15 +08:00
himself65
1dcc6ac613 docs: update 2023-02-03 14:08:13 -06:00
himself65
d67ddc37b4 docs: add bump blocksuite guideline 2023-02-03 13:57:09 -06:00
tzhangchi
9a315ed994 fix: make remove workspace logic correct 2023-02-03 23:57:24 +08:00
tzhangchi
b102e234e3 refactor: The implementation of the _handlerAffineListMessage function has been improved to make the code for synchronising the latest number and status of workspaces more readable and easier to understand, 2023-02-03 23:25:44 +08:00
DiamondThree
3f794a959b feat: refresh can jump first workspace 2023-02-03 17:57:07 +08:00
DarkSky
7522b76089 Merge pull request #779 from toeverything/bugfix/compatible
fix:commpatible old workspace
2023-02-03 17:50:41 +08:00
DarkSky
540048eadf chore: reset lock 2023-02-03 17:50:27 +08:00
DarkSky
115a13a6fa Merge pull request #780 from toeverything/0203-blockhub-fix-theme
fix: blockhub theme
2023-02-03 17:49:33 +08:00
x1a0t
18c4abca2e fix: blockhub theme 2023-02-03 16:11:34 +08:00
DiamondThree
5e6f5d5df9 fix:commpatible old workspace 2023-02-03 15:46:48 +08:00
DiamondThree
76d52bd2fd fix: style error about model close icon button postion (#777) 2023-02-03 06:16:48 +00:00
DarkSky
7a7a339938 Merge pull request #776 from toeverything/bugfix/enable-workspace-style
Bugfix/enable workspace style
2023-02-03 11:54:09 +08:00
DarkSky
58f8a93ae1 Merge pull request #774 from toeverything/bump
chore: bump blocksuite version
2023-02-03 11:52:08 +08:00
DiamondThree
61c5ddea5e fix:delete unuse icon 2023-02-03 11:48:23 +08:00
DiamondThree
32d6c07450 fix: close icon postion error 2023-02-03 11:47:04 +08:00
DiamondThree
189f51df25 fix: close icon postion error (#775) 2023-02-03 03:32:20 +00:00
himself65
181786eeea fix: theme 2023-02-02 21:30:23 -06:00
DiamondThree
efddd3ddb5 fix: close icon postion error 2023-02-03 11:24:06 +08:00
himself65
2c84f3979d chore: bump blocksuite version 2023-02-02 21:12:30 -06:00
DarkSky
c61be05944 Merge pull request #772 from toeverything/bugfix/enable-workspace
fix:enable workspace style add loading status
2023-02-03 11:04:38 +08:00
linonetwo
765cd983fc feat: try use a yrs doc to merge state before store to sqlite, but not working 2023-02-03 10:55:56 +08:00
DarkSky
4a963321b1 Merge pull request #769 from toeverything/bugfix/upload-blob
fix: add token and api to blocksuitWorkspace
2023-02-02 21:43:03 +08:00
DarkSky
081bf2cc25 Merge branch 'master' into bugfix/upload-blob 2023-02-02 21:37:55 +08:00
DarkSky
5af42d3784 Merge pull request #771 from toeverything/fix-deletedb-error
fix: delete db cause page reload
2023-02-02 21:30:36 +08:00
DiamondThree
e306408b56 fix: enable workspace upload avatar 2023-02-02 19:48:02 +08:00
DiamondThree
8141ef1f91 fix: delete db cause page reload 2023-02-02 19:17:07 +08:00
DiamondThree
cf65f0ad0d fix:enable workspace style add loading status 2023-02-02 19:12:42 +08:00
alt0
19b2794e2d fix: delete db cause page reload 2023-02-02 18:45:00 +08:00
DiamondThree
fca165c672 fix: add gettoken on affine provider 2023-02-02 18:30:36 +08:00
DiamondThree
82c261767f fix: add token and api to blocksuitWorkspace 2023-02-02 16:00:21 +08:00
DarkSky
6cc39171eb Merge pull request #768 from toeverything/feat/hide-feature
feat: Hide some unimplemented functions
2023-02-02 14:41:27 +08:00
DarkSky
a507e9aa6d chore: reset lock file 2023-02-02 14:41:06 +08:00
DiamondThree
4c94730bff feat: hide download all date feature 2023-02-02 14:23:26 +08:00
DiamondThree
299a17a874 feat: hide some unimplemented functions 2023-02-02 14:12:16 +08:00
DarkSky
5763baf8cd Merge pull request #759 from toeverything/feat/ui
Feat/UI
2023-02-01 23:50:02 +08:00
DarkSky
55f9a8bd63 Merge pull request #764 from toeverything/fix/menu
fix: menu not hide when click over
2023-02-01 23:49:48 +08:00
DarkSky
d067250a04 fix: pwa cache 2023-02-01 23:43:54 +08:00
Chi Zhang
8287733263 Merge pull request #766 from toeverything/fix/typo-of-downhills
fix: fix the typo of downhills
2023-02-01 22:48:02 +08:00
tzhangchi
fe261388a3 fix: fix the typo of downhills 2023-02-01 22:03:37 +08:00
DarkSky
cb2e6f97d0 Merge pull request #761 from toeverything/feat/datacenter
feat: sync features with new data center
2023-02-01 21:32:15 +08:00
DiamondThree
af6381314c bugfix: fix lint about svg attr name (#765) 2023-02-01 13:17:17 +00:00
DiamondThree
c0b410a1b2 fix:test case (#763) 2023-02-01 13:07:35 +00:00
QiShaoXuan
5261ef960e fix: menu not hide when click over 2023-02-01 20:48:39 +08:00
DiamondThree
57f3cd652a Feat/blocksuit version (#760) 2023-02-01 12:21:45 +00:00
QiShaoXuan
48d9aec4fb Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/ui 2023-02-01 18:01:26 +08:00
QiShaoXuan
cf2767c568 feat: adjust layout 2023-02-01 17:59:46 +08:00
DarkSky
2fb7217f03 Merge remote-tracking branch 'origin/master' into feat/datacenter 2023-02-01 16:01:59 +08:00
QiShaoXuan
9f69acc990 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/ui 2023-02-01 14:09:46 +08:00
JimmFly
bbaabfeea4 Merge pull request #739 from toeverything/feat/datacenter-published-search
feat: add nav bar to the public page
2023-02-01 13:51:32 +08:00
JimmFly
6068d995af Merge pull request #756 from toeverything/feat/datacenter-i18n
feat: update translation
2023-02-01 13:40:27 +08:00
zuomeng wang
2a400a103a fix: after enabled cloud sync, we should migrate blob db (#757) 2023-02-01 05:27:24 +00:00
JimmFly
a2ce1dd924 Merge branch 'feat/datacenter' into feat/datacenter-i18n 2023-02-01 13:04:52 +08:00
Qi
01310e1650 Feat/UI (#751) 2023-02-01 02:46:59 +00:00
JimmFly
20ffbe348a fix: closeButton not work 2023-02-01 10:37:30 +08:00
JimmFly
720aa6e6b0 Merge branch 'feat/datacenter' into feat/datacenter-i18n 2023-02-01 10:25:02 +08:00
linonetwo
c4c6844fbe chore: install concurrently 2023-02-01 08:55:30 +08:00
linonetwo
c064006c02 chore: auto run affine before client dev 2023-02-01 08:55:13 +08:00
linonetwo
97994b81c6 feat: generate types from rs 2023-01-31 22:31:34 +08:00
linonetwo
a3aac7fe86 feat: update to latest master of octobase 2023-01-31 22:30:53 +08:00
linonetwo
88203a8d60 refactor: adapt latest octobase 2023-01-31 22:30:34 +08:00
linonetwo
44d9fbf264 refactor: adapt latest octobase 2023-01-31 22:29:21 +08:00
QiShaoXuan
4545c4b56f fix: can not close workspace modal 2023-01-31 19:02:11 +08:00
QiShaoXuan
5fb22d5b65 fix: workspace modal style error 2023-01-31 19:00:11 +08:00
QiShaoXuan
38d66fb529 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/ui 2023-01-31 18:45:43 +08:00
JimmFly
08ce7d5322 feat: update i18n keys 2023-01-31 18:34:50 +08:00
JimmFly
a9bbaed22c chore: add translation function 2023-01-31 18:34:18 +08:00
DiamondThree
d7e3d524e5 fix: userInfo name conversion encoding format (#755) 2023-01-31 10:07:55 +00:00
Qi
94bebdc491 Merge pull request #747 from toeverything/feat/style-error
Feat/style error
2023-01-31 17:14:32 +08:00
ShortCipher5
9f900f0cd2 Merge pull request #754 from toeverything/updateReadMe
Update ReadMe
2023-01-31 17:02:20 +08:00
DiamondThree
79f1ca494d fix: lint style 2023-01-31 16:53:16 +08:00
ShortCipher5
65935eb8a1 Update README.md 2023-01-31 16:50:34 +08:00
ShortCipher5
b3be064432 Update README.md 2023-01-31 16:48:39 +08:00
JimmFly
e501026d28 feat: update i18n keys 2023-01-31 15:29:35 +08:00
JimmFly
65f4f05c04 chore: add translation function 2023-01-31 15:29:04 +08:00
ShortCipher5
2413e47d41 Merge pull request #753 from toeverything/ShortCipher5-patch-1
Update README.md
2023-01-31 14:32:52 +08:00
ShortCipher5
822b6c9bb1 Update README.md 2023-01-31 14:16:30 +08:00
ShortCipher5
be4135f6ba Merge pull request #752 from JackiePengp/patch-1
Update types-of-contributions.md
2023-01-31 14:08:22 +08:00
Pengyang(jackie)
f5521eb91a Update types-of-contributions.md 2023-01-31 13:56:43 +08:00
QiShaoXuan
2f5724578f feat: modify Content component 2023-01-31 13:18:37 +08:00
QiShaoXuan
c11f257943 fix: lint error 2023-01-31 12:28:32 +08:00
QiShaoXuan
0e115b9296 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/ui 2023-01-31 12:22:31 +08:00
QiShaoXuan
44d569ca66 feat: add FlexWrapper in layout component 2023-01-31 12:22:00 +08:00
JimmFly
24b1bd3f39 Merge pull request #750 from toeverything/ShortCipher5-patch-1
Update CONTRIBUTING.md
2023-01-31 11:44:45 +08:00
ShortCipher5
9e1edc9cee Update CONTRIBUTING.md
Update branch information
2023-01-31 11:30:27 +08:00
Qi
61b8299e3e Merge pull request #748 from toeverything/feat/ui
Feat/UI
2023-01-30 19:11:01 +08:00
JimmFly
9ee78221a7 chore: fix deepScan warning 2023-01-30 19:06:52 +08:00
JimmFly
5bd95f68c2 feat: add public page navigation bar 2023-01-30 19:04:36 +08:00
JimmFly
fec1944fa9 chore: modify the breadcrumb style 2023-01-30 19:03:52 +08:00
QiShaoXuan
4b0ed65f45 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/ui 2023-01-30 18:31:01 +08:00
QiShaoXuan
2dba0927ef feat: refact workspace modal 2023-01-30 18:30:25 +08:00
QiShaoXuan
056c657721 feat: add positionAbsolute in style helper 2023-01-30 18:29:46 +08:00
QiShaoXuan
0636622158 feat: support new feature in button component 2023-01-30 18:29:00 +08:00
QiShaoXuan
bf6545af7a feat: limit tooltip max width 2023-01-30 18:28:16 +08:00
QiShaoXuan
56d43fb88a feat: modify i18n 2023-01-30 18:27:55 +08:00
QiShaoXuan
42fb945d02 feat: modify Modal component style 2023-01-30 18:27:06 +08:00
DiamondThree
be35e2beac fix: delete no-used 2023-01-30 16:11:02 +08:00
DiamondThree
05aa532d58 fix: delete import 2023-01-30 15:51:27 +08:00
QiShaoXuan
980786c821 chore: unified mui compoent entry to ui file 2023-01-30 14:59:32 +08:00
JimmFly
8574ba596b feat: add breadcrumb ui component 2023-01-30 14:49:09 +08:00
DiamondThree
f28a1df624 fix: lint erroe 2023-01-30 12:44:38 +08:00
JimmFly
e69eafdd50 Merge branch 'feat/datacenter' into feat/datacenter-published-search 2023-01-30 12:38:10 +08:00
DiamondThree
152093e7d8 fix: publish status error and delete export tab 2023-01-30 12:37:28 +08:00
DarkSky
23b9ff1ce6 fix: lock file corruption 2023-01-30 11:59:15 +08:00
linonetwo
7b6addbe28 fix: merge issue 2023-01-30 11:15:20 +08:00
linonetwo
1d4be5a290 Merge remote-tracking branch 'refs/remotes/origin/feat/datacenter'
Conflicts:
	packages/app/src/components/workspace-modal/languageMenu.tsx
	packages/data-center/package.json
	pnpm-lock.yaml
2023-01-30 11:00:31 +08:00
linonetwo
bef1c78879 fix: try avoid import code using window during test 2023-01-30 10:58:52 +08:00
linonetwo
1f63662960 feat: add test about tauri ipc provider 2023-01-30 10:57:27 +08:00
Chi Zhang
a36588f75c Update README.md 2023-01-29 22:09:17 +08:00
Chi Zhang
401a2ed076 Update README.md 2023-01-29 22:06:44 +08:00
DarkSky
5c8041a8d4 Merge pull request #740 from toeverything/fix/logout
fix: fix logout
2023-01-27 03:27:01 +08:00
Yifeng Wang
9c9ce0280f Merge pull request #746 from toeverything/20230123-fix-title 2023-01-24 08:09:27 +08:00
himself65
60f8366f00 fix: listen 2023-01-23 13:56:22 -06:00
himself65
3325a1bfe2 fix: import 2023-01-23 13:53:22 -06:00
himself65
746a6d9ab5 fix: listen on title change 2023-01-23 13:52:40 -06:00
DarkSky
d5503a2298 Merge pull request #742 from toeverything/feat/style-workspaces
Feat/style workspaces
2023-01-23 13:28:35 +08:00
DiamondThree
bccb0cc5ff feat: svg lint 2023-01-23 11:58:51 +08:00
DiamondThree
77b1dff68b feat: avatar upload 2023-01-23 11:50:04 +08:00
DiamondThree
9a717f7ed2 feat: rewrite async style 2023-01-23 11:36:04 +08:00
DiamondThree
0fa44f82dd feat: rewrite publish style 2023-01-23 11:23:41 +08:00
DiamondThree
6d41090e27 feat: rewrite enable affile cloud 2023-01-23 10:38:05 +08:00
DiamondThree
ba7a4378ad fix: rewrite member style 2023-01-23 10:26:51 +08:00
DiamondThree
7e23aa4618 fix: rewrite workspacesetting layout 2023-01-23 09:46:12 +08:00
DiamondThree
e53119fc20 feat: logout style and finish logout process 2023-01-22 17:41:51 +08:00
DiamondThree
f67d0011d2 Merge branch 'feat/datacenter' into feat/style-workspaces 2023-01-22 16:57:27 +08:00
JimmFly
ab73745ec0 Merge pull request #743 from toeverything/feat/datacenter-settings-style
feat:add datacenter settings style
2023-01-19 15:39:45 +08:00
JimmFly
e8a472a1fe chore: update membersPage font-size 2023-01-18 16:18:10 +08:00
DiamondThree
b39acf42e6 feat: create workspace 2023-01-18 16:11:51 +08:00
JimmFly
72b5dcb930 chore: remove empty tag 2023-01-18 16:04:19 +08:00
JimmFly
e352dc7f61 chore: update membersPage style 2023-01-18 16:01:39 +08:00
JimmFly
9702e9e380 chore: update settings page style 2023-01-18 16:01:11 +08:00
JimmFly
09fb0f8dfc chore: update syncPage style 2023-01-18 16:00:41 +08:00
JimmFly
5006c2360a chore: update publishPage style 2023-01-18 16:00:23 +08:00
JimmFly
48ac7aad60 chore: update General delete button style 2023-01-18 16:00:00 +08:00
JimmFly
74d7b7ab9d chore: update button ui component 2023-01-18 15:58:24 +08:00
JimmFly
69b396b9d4 chore: update confirm ui component 2023-01-18 15:54:56 +08:00
JimmFly
4401f083f2 chore: update input ui component 2023-01-18 15:31:34 +08:00
JimmFly
32babd8026 chore: update General style 2023-01-18 15:30:03 +08:00
JimmFly
68dc20cd2e chore: add themeModeSwitch to default Item 2023-01-18 15:27:54 +08:00
DiamondThree
e8a5d9b784 feat: login style 2023-01-18 02:12:51 +08:00
DiamondThree
de9248b784 feat:workspaces list style 2023-01-18 01:27:31 +08:00
JimmFly
d64ae51c94 chore: remove setting tabs icon 2023-01-17 17:46:34 +08:00
JimmFly
21f9f87cb2 chore: optimize code 2023-01-17 10:41:53 +08:00
MingLiang Wang
84dd82aa96 feat: improve clear logic 2023-01-17 10:26:50 +08:00
MingLiang Wang
cc00f2cb2d fix: fix logout 2023-01-16 18:23:09 +08:00
JimmFly
d9ad8ee608 fix: deepScan warning 2023-01-16 17:43:37 +08:00
JimmFly
743c7212fe feat: adapt the quick search to the public page 2023-01-16 17:40:14 +08:00
tzhangchi
c7c8ea7103 chore: remove unused code 2023-01-14 10:12:38 +08:00
tzhangchi
af23591541 chore: support 4 environments for developers 2023-01-14 10:08:06 +08:00
tzhangchi
e629aac0ad feat: make import button visible 2023-01-14 10:05:40 +08:00
tzhangchi
7de8ac53d1 chore: translate comments in css files 2023-01-14 10:00:18 +08:00
tzhangchi
49a8be3ce6 chore: add enough message for assert 2023-01-14 09:58:25 +08:00
tzhangchi
cd2495e4e0 feat: add page loading for public workspace page view 2023-01-13 23:43:09 +08:00
tzhangchi
2870972b49 feat: upgrade preloading page to Downhill 2023-01-13 23:29:15 +08:00
tzhangchi
9415f46ce5 feat: console.error when firebase configed error 2023-01-13 22:34:11 +08:00
tzhangchi
863ebf8360 feat: add loading for PublishPage 2023-01-13 22:17:10 +08:00
tzhangchi
772a5adbc9 feat: add temporary loading 2023-01-13 22:03:45 +08:00
tzhangchi
d6007a54e7 feat: add danger to sign out button 2023-01-13 21:21:20 +08:00
tzhangchi
e1234df141 feat: throw error if user not found 2023-01-13 21:06:10 +08:00
zuomeng wang
b8efa9aa25 fix: change request baseUrl to dynamic (#737) 2023-01-13 10:42:37 +00:00
zuomeng wang
a739c1f773 fix: @blocksuite/store was already imported. This breaks constructor … (#736)
…checks and will lead to issues
2023-01-13 10:29:02 +00:00
DiamondThree
911cc3e217 Fix/publish style (#732) 2023-01-13 09:41:13 +00:00
MingLiang Wang
c95667eafb fix: fix reconnect logic (#730) 2023-01-13 09:16:15 +00:00
zuomeng wang
2c1eee1194 fix: websocket should be link to blocksuiteWorkspace, not workspace id (#735) 2023-01-13 09:10:08 +00:00
DarkSky
c045c35842 Merge pull request #725 from toeverything/feat/contributors-add
docs: add contributors
2023-01-13 16:54:27 +08:00
DarkSky
e3332b8f19 Merge pull request #734 from toeverything/0113-update-blocksuite
chore: update blocksuite including providing fetching header
2023-01-13 16:53:39 +08:00
x1a0t
fabd76edbe chore: update blocksuite including providing fetching header 2023-01-13 16:01:07 +08:00
zuomeng wang
21d24ad542 fix: deepscan error (#733) 2023-01-13 07:54:21 +00:00
zuomeng wang
ba9a57d4ae fix: error TS2742: The inferred type of 'bareClient' cannot be name (#731) 2023-01-13 07:33:42 +00:00
DiamondThree
7fb5aae8b5 fix: deepscan error and warning (#728) 2023-01-13 07:25:33 +00:00
zuomeng wang
03ff4c3e3d fix: upload origin doc when enable cloud (#729) 2023-01-13 07:09:56 +00:00
zuomeng wang
3efc4b554b Merge remote-tracking branch 'origin/master' into feat/datacenter (#727) 2023-01-13 06:50:15 +00:00
JimmFly
94cad8b080 Merge pull request #724 from toeverything/feat/add-language-switch
feat: add language switch in workspace modal
2023-01-13 14:33:23 +08:00
tzhangchi
693a59c446 docs: add contributors 2023-01-13 14:31:05 +08:00
DiamondThree
d1c9a40705 fix: lint error 2023-01-13 14:11:29 +08:00
JimmFly
b57d8d3529 chore: remove unused variable 2023-01-13 14:08:12 +08:00
JimmFly
8f38504009 chore: remove unused function 2023-01-13 14:07:33 +08:00
DiamondThree
5988777baf feat:merge dev 2023-01-13 14:07:17 +08:00
JimmFly
fd853a7b0c feat: add language switch in workspace modal 2023-01-13 14:02:37 +08:00
DiamondThree
f892af6dcd fix:workspace avatar 2023-01-13 09:59:44 +08:00
linonetwo
d9278fcc16 fix: return type 2023-01-13 00:30:08 +08:00
linonetwo
3ab34de1e1 fix: seriailize update as list, not merge then on yrs side, which is broken 2023-01-12 23:29:23 +08:00
alt0
048beb60c2 Merge remote-tracking branch 'origin/feat/datacenter-dev' into feat/datacenter-dev 2023-01-12 19:51:00 +08:00
alt0
cea3d13805 fix: workspace avatar 2023-01-12 19:50:26 +08:00
JimmFly
5df735db48 Merge pull request #719 from toeverything/feat/datacenter-i18n
feat: merge master for update i18n
2023-01-12 19:04:07 +08:00
DarkSky
d09d70abfe Merge pull request #718 from toeverything/0112-fix-update-script
fix: remove redundant package in data-center
2023-01-12 19:02:01 +08:00
JimmFly
c8fb986888 chore: update translation 2023-01-12 18:57:55 +08:00
DiamondThree
475566fa20 fix: add error catch 2023-01-12 18:37:43 +08:00
DiamondThree
32a5788504 feat: add invite info 2023-01-12 18:36:57 +08:00
JimmFly
e909141759 Merge branch 'chore/master-i18n' into feat/datacenter-i18n 2023-01-12 18:30:34 +08:00
DiamondThree
826a4bf381 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-12 18:23:21 +08:00
MingLiang Wang
cf47098631 feat: fix access permission api 2023-01-12 18:13:44 +08:00
x1a0t
f78ee0670e fix: remove redundant package in data-center 2023-01-12 18:05:00 +08:00
JimmFly
cf6b1731b0 chore: update translation 2023-01-12 17:53:11 +08:00
JimmFly
dedf03ae50 feat: add temporary language switch button 2023-01-12 17:47:46 +08:00
linonetwo
532d7c8a72 feat: add drag handle 2023-01-12 17:39:44 +08:00
MingLiang Wang
0b623a522b feat: add remove workspace by ids 2023-01-12 17:38:18 +08:00
linonetwo
d6a589b766 fix: update dep 2023-01-12 17:34:22 +08:00
linonetwo
c5a0643448 fix: use yrs 2023-01-12 17:34:06 +08:00
DiamondThree
a0c9f9a49c feat: add backhome 2023-01-12 17:33:12 +08:00
JimmFly
03a827e759 chore: update searchArrowButton style 2023-01-12 17:28:18 +08:00
linonetwo
9a2b48541b chore: fix octobase 2023-01-12 17:25:53 +08:00
linonetwo
1b3bdda061 fix: merge issue 2023-01-12 17:22:13 +08:00
DarkSky
f9654ce31c Merge pull request #717 from toeverything/chore/update-searchArrowButton-style
chore: remove hover tips of searchArrowButton
2023-01-12 17:21:57 +08:00
DarkSky
9088ab03a3 Merge pull request #716 from toeverything/0112-chore-update-blocksuite
chore: update BlockSuite version including introducing feature flag, adding upgrade npm script
2023-01-12 17:21:28 +08:00
MingLiang Wang
11edef1bbd feat: add new workspaces by arrays 2023-01-12 17:18:40 +08:00
DiamondThree
251cfc2340 fix: message in affine 2023-01-12 17:16:44 +08:00
DiamondThree
20e4686851 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-12 17:15:52 +08:00
linonetwo
1a82fdb8b3 fix: merge issue 2023-01-12 17:14:57 +08:00
linonetwo
6a9b3b2fd3 Merge remote-tracking branch 'refs/remotes/origin/feat/datacenter-dev'
Conflicts:
	packages/app/src/components/create-workspace/index.tsx
	packages/data-center/package.json
	packages/data-center/src/index.ts
	pnpm-lock.yaml
2023-01-12 17:11:27 +08:00
DiamondThree
4fe2febda3 feat:add isOwner 2023-01-12 17:06:54 +08:00
JimmFly
69e30ba888 chore: remove hover tip 2023-01-12 17:02:45 +08:00
JimmFly
d8a580dfae Merge branch 'feat/poc' into feat/datacenter 2023-01-12 16:38:54 +08:00
linonetwo
06be432b5a fix: assign name and avatar 2023-01-12 16:35:18 +08:00
linonetwo
921561eade feat: open devtool on dev 2023-01-12 16:19:30 +08:00
linonetwo
235bfe646d fix: merge issue 2023-01-12 16:19:11 +08:00
x1a0t
a45040a956 fix: deleting bash script, using npm script to be cross platform compatible 2023-01-12 16:18:05 +08:00
linonetwo
4be968c421 fix: create yDoc for workspace created during createUser 2023-01-12 16:17:30 +08:00
DiamondThree
ede7a6bdaa feat:add leave workspace 2023-01-12 15:52:07 +08:00
MingLiang Wang
819ab74178 feat: add cause of Request error 2023-01-12 15:24:40 +08:00
DarkSky
da1926e1ab Merge pull request #715 from toeverything/feat/add-sync-language
feat: add i18n keys auto sync
2023-01-12 15:15:45 +08:00
MingLiang Wang
9ae9bb8092 feat: add affine request error msg 2023-01-12 15:11:49 +08:00
JimmFly
3d6361ba3d feat: add en.json codeOwners 2023-01-12 15:02:23 +08:00
x1a0t
13de557d24 chore: update BlockSuite version including introducing feature flag, adding upgrade npm script 2023-01-12 14:59:44 +08:00
DiamondThree
14c665757e fix: delete mock data 2023-01-12 14:59:13 +08:00
JimmFly
082894d08c chore: restore en.json 2023-01-12 14:52:07 +08:00
DiamondThree
1eb3553504 fix: delete mock data 2023-01-12 14:40:33 +08:00
DiamondThree
bb3ff8edc7 fix: remove unused variable references 2023-01-12 14:32:55 +08:00
JimmFly
b855f71ebf test: test ci 2023-01-12 14:32:45 +08:00
JimmFly
b2f44f9fab chore: update readme 2023-01-12 14:29:18 +08:00
JimmFly
2867cb07c5 feat: add push and pr events 2023-01-12 14:16:49 +08:00
DiamondThree
45f4c9e0e9 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-12 14:10:13 +08:00
JimmFly
89866378ef feat: add i18n keys auto sync 2023-01-12 13:02:32 +08:00
alt0
034e460701 fix: merge two empty doc, no udpate event trigger 2023-01-12 12:08:37 +08:00
DiamondThree
1b544463c2 fix: login when no user. enabled on member 2023-01-12 11:50:49 +08:00
alt0
48d355ee72 fix: after load workspace, we need to close other workspace, not detory. 2023-01-12 10:01:09 +08:00
DarkSky
ae6fc7bb18 Merge pull request #714 from toeverything/suport-flags
feat: support flags in workspace
2023-01-12 01:01:14 +08:00
himself65
1d3dd8aa77 feat: support flags in workspace 2023-01-12 00:53:53 +08:00
DiamondThree
c28cca1a13 fix: nextconfig dev url 2023-01-11 23:59:06 +08:00
linonetwo
ac1ddba094 fix: merge issue 2023-01-11 23:57:54 +08:00
DiamondThree
c014818114 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-11 23:56:35 +08:00
DiamondThree
753c59b534 feat: add publish workspace page list and workspace page 2023-01-11 23:54:25 +08:00
alt0
c7f974ed77 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-11 23:18:23 +08:00
alt0
8e4585495f refactor: create and load workspace will return workspaceUnit 2023-01-11 23:14:13 +08:00
DiamondThree
d979acbba7 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 22:56:18 +08:00
MingLiang Wang
2fe58960f3 feat: fix type 2023-01-11 22:49:52 +08:00
DiamondThree
79b0bb9de9 Merge branch 'feat/datacenter-dev' of https://github.com/toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 22:42:10 +08:00
xiaodong zuo
0325f3f041 fix: add public-doc api 2023-01-11 22:23:03 +08:00
DiamondThree
1e8a704261 Merge branch 'feat/datacenter-dev' of https://github.com/toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 22:00:16 +08:00
DiamondThree
9d431dbc18 feat:add logout 2023-01-11 21:44:32 +08:00
QiShaoXuan
004a13576a Merge branch 'feat/datacenter-dev' of github.com:toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 21:44:06 +08:00
QiShaoXuan
d438b77a1b Merge branch 'feat/cloud-sync-saika' of github.com:toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 21:43:54 +08:00
MingLiang Wang
49eff042fe feat: add accept invite 2023-01-11 21:35:40 +08:00
DiamondThree
0f982ef4ba Merge branch 'feat/datacenter-dev' of https://github.com/toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 21:26:14 +08:00
QiShaoXuan
af93c6e6c0 Merge branch 'feat/cloud-sync-saika' of github.com:toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 21:24:40 +08:00
QiShaoXuan
2caa0fcb95 Merge branch 'feat/datacenter-dev' of github.com:toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 21:23:56 +08:00
QiShaoXuan
0152172dd1 feat: connect with datacenter invite function 2023-01-11 21:23:41 +08:00
MingLiang Wang
932f5f02c4 feat: fix users list 2023-01-11 21:10:31 +08:00
MingLiang Wang
fc2a5879bd feat: add channel for get new affine list 2023-01-11 20:57:56 +08:00
DiamondThree
a0b9ae538a Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 20:57:27 +08:00
alt0
15bdd2f31e fix: getBlocksuiteWorkspace remove check 2023-01-11 20:55:08 +08:00
alt0
2d1fd3a083 fix: add param for download public workspace 2023-01-11 20:53:53 +08:00
DiamondThree
179de80c83 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 20:46:34 +08:00
alt0
bda94bb865 fix: public workspace don't need to check permission 2023-01-11 20:46:04 +08:00
DiamondThree
a4284d56f8 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 20:45:58 +08:00
alt0
362b6f4238 fix: multiple add same workspace error 2023-01-11 20:43:19 +08:00
DarkSky
cb7d16fe1f Merge pull request #709 from toeverything/feat/sync-languages
feat: add sync i18n resource script
2023-01-11 20:36:24 +08:00
DiamondThree
ca9f66ce99 fix: add publick worksapce 2023-01-11 20:25:52 +08:00
alt0
8b757f538e feat: temporary support loading data for public workspace 2023-01-11 20:20:48 +08:00
JimmFly
7831a65cbe chore: update readme 2023-01-11 19:35:11 +08:00
JimmFly
af4262020b Merge branch 'master' into feat/sync-languages 2023-01-11 18:45:43 +08:00
JimmFly
af92417c81 chore: delete workflow action 2023-01-11 18:43:19 +08:00
DarkSky
257744f98b Merge pull request #711 from toeverything/chore/remove-searchArrowButton
chore: remove searchArrowButton
2023-01-11 18:37:48 +08:00
linonetwo
107419cb8d Merge remote-tracking branch 'refs/remotes/origin/feat/cloud-sync-saika'
Conflicts:
	packages/data-center/package.json
	packages/data-center/src/datacenter.ts
	packages/data-center/src/index.ts
	pnpm-lock.yaml
2023-01-11 18:30:57 +08:00
JimmFly
51db32c29b Merge branch 'master' into chore/remove-searchArrowButton 2023-01-11 18:28:14 +08:00
linonetwo
2c06dbf2aa feat: open affine dev by default 2023-01-11 18:27:37 +08:00
JimmFly
5749b5f711 test: skip cloud sync 2023-01-11 18:26:58 +08:00
JimmFly
8cdfb2edba chore: update json 2023-01-11 18:19:01 +08:00
DarkSky
724ad7dee6 Merge pull request #712 from toeverything/chore/update-Copyright-year
chore: update copyright year
2023-01-11 18:09:28 +08:00
JimmFly
3357c3d43b test: skip cloud sync 2023-01-11 18:03:29 +08:00
linonetwo
0b2ab4f9a4 feat: create user if not exist 2023-01-11 17:54:26 +08:00
DarkSky
fdee279150 Merge pull request #710 from toeverything/0111-style-fix
chore: adding code block background color, line number color, fixing landing page case sensitivity
2023-01-11 17:48:44 +08:00
JimmFly
fe189e383b chore: remove unused import 2023-01-11 17:44:21 +08:00
JimmFly
a7e6d16930 chore: add date 2023-01-11 17:43:14 +08:00
JimmFly
66a208ebaf chore: remove unused import 2023-01-11 17:39:14 +08:00
MingLiang Wang
7e77175679 feat: update invite function name 2023-01-11 17:30:16 +08:00
JimmFly
2c32d4614f chore: update words 2023-01-11 17:26:39 +08:00
JimmFly
18ecf52f62 chore: remove searchArrowButton 2023-01-11 17:26:06 +08:00
JimmFly
0be59eef60 test: skip searchArrowButton test case 2023-01-11 17:25:16 +08:00
MingLiang Wang
62826f7ab7 feat: add channel 2023-01-11 17:21:41 +08:00
DiamondThree
e2a9c6c552 Merge branch 'feat/datacenter-dev' of https://github.com/toeverything/AFFiNE into feat/datacenter-dev 2023-01-11 17:14:05 +08:00
DiamondThree
60246f3a23 fix: back blocksuit version 2023-01-11 17:13:49 +08:00
JimmFly
9c2afb2a7b feat: add auto download 2023-01-11 16:51:45 +08:00
alt0
6459faeeb9 fix: local provider save workspaces info 2023-01-11 16:50:40 +08:00
DarkSky
4e25fa3054 chore: disable outdated feature 2023-01-11 16:40:46 +08:00
QiShaoXuan
423f0e8e96 fix: type error 2023-01-11 16:37:41 +08:00
QiShaoXuan
b6b1ae0224 feat: add interaction to search button 2023-01-11 16:34:41 +08:00
QiShaoXuan
926bb7fd14 chore: remove currentWorkspaceId & currentMetaWorkspace 2023-01-11 16:33:25 +08:00
JimmFly
e3469b435f chore: update workflow 2023-01-11 16:19:46 +08:00
DiamondThree
8e8e18fdf9 change workspacetype to worksopace until 2023-01-11 16:04:38 +08:00
x1a0t
93ef92e15b chore: adding code block background color, line number color, fixing landing page case sensitivity 2023-01-11 16:01:27 +08:00
JimmFly
abc7494586 chore: test workflow 2023-01-11 15:55:50 +08:00
JimmFly
ad73c41483 feat: add workflow to auto update i18n json 2023-01-11 15:46:43 +08:00
alt0
250ac0e2ea fix: setBlob and getBlob use WorkspaceUnit 2023-01-11 15:36:13 +08:00
QiShaoXuan
1395506b69 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/datacenter 2023-01-11 15:32:07 +08:00
JimmFly
41174c74d7 chore: sync resources 2023-01-11 15:29:32 +08:00
DiamondThree
e9b38a2380 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 15:28:34 +08:00
JimmFly
bad5dda67e fix: module not find 2023-01-11 15:28:34 +08:00
JimmFly
98692ba790 feat: add ts-node 2023-01-11 15:27:45 +08:00
alt0
a11f411f6c fix: enable and update workspace use workspaceUnit as params 2023-01-11 15:27:31 +08:00
alt0
7e608e48ec fix: workspace unit setBlocksuiteWorkspace support null 2023-01-11 15:23:03 +08:00
DiamondThree
0023593128 Merge branch 'feat/cloud-sync-saika' into feat/datacenter-dev 2023-01-11 15:16:45 +08:00
alt0
8e091a37e2 fix: workspace unit type 2023-01-11 15:14:17 +08:00
QiShaoXuan
c3d68a44ce feat: add interaction to search button 2023-01-11 15:12:18 +08:00
DiamondThree
4f56cc9ec9 Merge conflict 2023-01-11 15:11:34 +08:00
alt0
db74706eca refactor: datacenter only export workspaceUnit 2023-01-11 15:07:04 +08:00
alt0
122cce042c Merge remote-tracking branch 'origin/master' into feat/cloud-sync-saika 2023-01-11 15:01:35 +08:00
DiamondThree
cb86e8b801 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-11 14:57:50 +08:00
DiamondThree
e3dc089d51 feat:member list init 2023-01-11 14:57:36 +08:00
QiShaoXuan
27754833cf :Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/datacenter 2023-01-11 14:55:44 +08:00
QiShaoXuan
97b8456eac chore: remove usePageMetaList 2023-01-11 14:55:12 +08:00
DiamondThree
b837126cea Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-11 14:52:38 +08:00
DiamondThree
a0c333f823 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-11 14:51:41 +08:00
DiamondThree
3159d6ff1b fixed memeber init 2023-01-11 14:48:50 +08:00
JimmFly
dae7f99fe8 chore: rename dir 2023-01-11 14:39:57 +08:00
JimmFly
635216194f feat: add readme for i18n 2023-01-11 14:39:39 +08:00
JimmFly
807762cf1a feat: add sync scripts 2023-01-11 14:39:19 +08:00
DiamondThree
3f6af0a964 feat:member list 2023-01-11 14:35:14 +08:00
alt0
57b204b6e2 test: fix test case 2023-01-11 13:52:56 +08:00
xiaodong zuo
65f767e35a fix: modify dev location 2023-01-11 12:57:27 +08:00
DarkSky
b49a32c9c7 fix: dev server endpoint fix 2023-01-11 12:53:54 +08:00
MingLiang Wang
48264edf91 feat: add query members 2023-01-11 12:34:57 +08:00
linonetwo
cdc196322c fix: tauri loading and method loading 2023-01-11 12:14:07 +08:00
DiamondThree
ee6138134d feat: publish workspace 2023-01-11 12:12:12 +08:00
linonetwo
6aa679365a refactor: clean unused files 2023-01-11 12:09:50 +08:00
DiamondThree
eef467558e fix: lint error and build error 2023-01-10 23:13:22 +08:00
MingLiang Wang
cdf07fd7c2 feat: remove workspaces pool 2023-01-10 23:01:50 +08:00
MingLiang Wang
eab86dffb8 feat: add logout 2023-01-10 22:44:49 +08:00
DiamondThree
d7e6654965 Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 22:01:43 +08:00
DiamondThree
30679763ab feat: change workspaceInfo type 2023-01-10 21:59:09 +08:00
MingLiang Wang
ad5e7cb2f4 feat: fix data center 2023-01-10 21:44:40 +08:00
MingLiang Wang
412d5205c8 feat: add a time out 2023-01-10 21:35:22 +08:00
DiamondThree
c4a484bbce Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 21:24:48 +08:00
DiamondThree
8fcb24a6ba Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 21:24:31 +08:00
QiShaoXuan
1bf7a4a4fe Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/datacenter 2023-01-10 21:10:03 +08:00
QiShaoXuan
2780beddbb feat: refactor user & login function 2023-01-10 21:09:38 +08:00
DiamondThree
7909e03cef t :Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 21:08:46 +08:00
DiamondThree
ed46eb58fd fix: ensure return activeWorkspaceId 2023-01-10 21:08:28 +08:00
QiShaoXuan
b86a03642a fix: add judgement of currentWorkspace 2023-01-10 20:42:00 +08:00
alt0
7e60b750d1 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-10 20:22:35 +08:00
alt0
b111c411bd fix: local provider create workspace should wait sync to idb 2023-01-10 20:22:14 +08:00
MingLiang Wang
104693916f feat: change the order of load workspaces 2023-01-10 20:11:46 +08:00
DiamondThree
f1ea2ee691 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 20:10:34 +08:00
DiamondThree
3be4e4015e feat: enable workspace cloud 2023-01-10 20:08:31 +08:00
DarkSky
55d160afd6 Merge pull request #703 from toeverything/0110-update-blocksuite-version
chore: update BlockSuite version
2023-01-10 19:44:29 +08:00
DarkSky
16611b9934 Merge pull request #702 from toeverything/feat/language-to-localstorage
feat: language local storage support
2023-01-10 19:43:57 +08:00
QiShaoXuan
e8431122c9 feat: refactor provider logic 2023-01-10 19:41:19 +08:00
x1a0t
6c792d0e61 chore: update BlockSuite version 2023-01-10 19:31:57 +08:00
QiShaoXuan
33400f1c5a feat: modify loading style 2023-01-10 19:15:56 +08:00
JimmFly
c8ac8c5738 chore: update json 2023-01-10 19:05:55 +08:00
JimmFly
5189086c1b chore: update keys 2023-01-10 19:03:20 +08:00
JimmFly
7860c563c7 chore: update i18n json 2023-01-10 18:49:04 +08:00
JimmFly
d0d0955c0e feat: add language local storage 2023-01-10 18:47:13 +08:00
JimmFly
b3e703b656 chore: remove language detector 2023-01-10 18:45:48 +08:00
linonetwo
005d3bbaa9 fix: merge issue 2023-01-10 18:40:36 +08:00
alt0
b4571539ac Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-10 18:37:43 +08:00
alt0
e13d27ad9c refactor: add workspace unit 2023-01-10 18:37:24 +08:00
QiShaoXuan
b2fe31dc02 feat: modify style 2023-01-10 18:34:26 +08:00
MingLiang Wang
2260696675 feat: remove not used 2023-01-10 18:32:06 +08:00
linonetwo
6645e98a1b Merge remote-tracking branch 'refs/remotes/origin/feat/datacenter'
Conflicts:
	package.json
	packages/app/src/components/create-workspace/index.tsx
	packages/app/src/components/workspace-modal/index.tsx
	packages/app/src/components/workspace-modal/languageMenu.tsx
	packages/app/src/components/workspace-slider-bar/WorkspaceSelector/SelectorPopperContent.tsx
	packages/app/src/components/workspace-slider-bar/index.tsx
	packages/app/src/pages/_app.tsx
	pnpm-lock.yaml
2023-01-10 18:23:25 +08:00
MingLiang Wang
c28407f77d feat: synced socket upload 2023-01-10 18:19:40 +08:00
linonetwo
abc895c6b2 fix: merge issue 2023-01-10 18:15:02 +08:00
JimmFly
d0da2a16c3 feat: init languageDetector 2023-01-10 18:14:17 +08:00
JimmFly
dc4a69593b feat: export Trans component 2023-01-10 18:11:28 +08:00
linonetwo
09e900b1f7 feat: implement load and warp workspace in ipc provider 2023-01-10 17:54:00 +08:00
DiamondThree
8f18048254 Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 17:21:29 +08:00
DiamondThree
c723c18086 feat: enable workspace cloud 2023-01-10 17:20:21 +08:00
MingLiang Wang
5723117cb8 feat: return name 2023-01-10 17:10:04 +08:00
linonetwo
876f3d235e Merge remote-tracking branch 'refs/remotes/origin/feat/cloud-sync-saika'
Conflicts:
	package.json
	packages/app/src/components/workspace-slider-bar/index.tsx
	packages/app/src/libs/i18n/resources/bn.json
	packages/app/src/libs/i18n/resources/fr.json
	packages/app/src/libs/i18n/resources/sr.json
	packages/app/src/libs/i18n/resources/zh-Hans.json
	packages/app/src/libs/i18n/resources/zh-Hant.json
	packages/app/src/pages/_app.tsx
	packages/data-center/src/datacenter.ts
	pnpm-lock.yaml
2023-01-10 17:08:57 +08:00
DiamondThree
60b379fcad Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 17:07:44 +08:00
MingLiang Wang
209184327b feat: fix path 2023-01-10 17:06:54 +08:00
DiamondThree
255e09480a Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 17:02:25 +08:00
MingLiang Wang
0f2af25249 feat: fix path 2023-01-10 17:00:18 +08:00
linonetwo
a76fadb1bc feat: load workspace in ipc provider 2023-01-10 16:55:23 +08:00
DiamondThree
bfcd53f39f Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 16:51:02 +08:00
DiamondThree
fe3c7b446f feat: enable workspace cloud 2023-01-10 16:50:25 +08:00
DiamondThree
223f08c439 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 16:29:48 +08:00
DiamondThree
49dd21de57 feat: update avatar 2023-01-10 16:29:37 +08:00
QiShaoXuan
16cb413ace feat: refactor setting page 2023-01-10 16:10:27 +08:00
QiShaoXuan
c474775982 Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/datacenter 2023-01-10 15:43:41 +08:00
QiShaoXuan
469931a61f feat: reset quick search 2023-01-10 15:43:21 +08:00
MingLiang Wang
31d3a012f9 feat: add message center 2023-01-10 15:39:24 +08:00
DiamondThree
890e353dc7 feat: setting style 2023-01-10 15:35:07 +08:00
DiamondThree
64e90640b9 feat:update workspace avatar 2023-01-10 15:20:54 +08:00
alt0
ecec2d6efe test: fix test case 2023-01-10 15:07:50 +08:00
DiamondThree
51e6f4344a fix: setting style and replace refer 2023-01-10 15:06:55 +08:00
linonetwo
6c784184b1 fix: reset submodule 2023-01-10 15:04:49 +08:00
alt0
42261a7f41 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-10 15:04:15 +08:00
alt0
ff63de2aa5 refactor: workspaces -> workspaceMetaCollection 2023-01-10 15:03:28 +08:00
linonetwo
a9f258a199 fix: merged 2023-01-10 14:57:30 +08:00
MingLiang Wang
aeb1b1688d fix: fix avatar id 2023-01-10 14:56:53 +08:00
JimmFly
5774956175 chore: update i18n keys 2023-01-10 14:53:27 +08:00
linonetwo
145dd71f97 fix: doc folder not found 2023-01-10 14:48:40 +08:00
JimmFly
9fe4b066f9 chore: update i18n keys 2023-01-10 14:29:18 +08:00
DiamondThree
b281b86c84 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 14:28:15 +08:00
DiamondThree
9395b8989d fix: replace react-i18n with affine/i18n 2023-01-10 14:27:57 +08:00
linonetwo
2cc83e1032 feat: use new branch of octobase 2023-01-10 14:24:58 +08:00
QiShaoXuan
67c5a622ec Merge branch 'feat/datacenter' of github.com:toeverything/AFFiNE into feat/datacenter 2023-01-10 14:22:28 +08:00
QiShaoXuan
e208ab6033 fix: type error 2023-01-10 14:22:08 +08:00
DiamondThree
f251ae7437 Merge branch 'feat/cloud-sync-saika' into feat/datacenter 2023-01-10 14:12:55 +08:00
DiamondThree
84b62e474a feat: add updateWorkspace function 2023-01-10 14:12:24 +08:00
MingLiang Wang
8c1636f1a2 feat: fix set name 2023-01-10 13:13:31 +08:00
MingLiang Wang
44e20cec3c feat: fix api name and params 2023-01-10 12:21:05 +08:00
MingLiang Wang
7a0e205ff8 Merge remote-tracking branch 'origin' into feat/cloud-sync-saika 2023-01-10 12:20:27 +08:00
DiamondThree
710d740f30 feat: replease type Workspace with WorkspaceInfo 2023-01-10 12:06:17 +08:00
alt0
b0d68dadcb refactor: optimize createWorkspaceInfo 2023-01-10 11:55:50 +08:00
DiamondThree
a80e15042a feat: add workspace-setting active 2023-01-10 11:45:34 +08:00
alt0
2da463b501 test: fix test case 2023-01-10 11:44:33 +08:00
DiamondThree
779463dada feat: add workspace route 2023-01-10 11:43:21 +08:00
alt0
39f0b1b252 refactor: optimize setDefaultAvatar in provider 2023-01-10 11:34:05 +08:00
alt0
dcfe8237ef fix: create workspace optimize 2023-01-10 11:25:57 +08:00
alt0
d3012de9d6 fix: create workspace optimize 2023-01-10 11:23:00 +08:00
MingLiang Wang
9b875d19d2 feat: add ws link 2023-01-10 11:18:04 +08:00
DiamondThree
030ec9fa88 Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-10 11:04:45 +08:00
DiamondThree
d9e339c3c0 fix: change blocksuit version number 2023-01-10 11:04:31 +08:00
DiamondThree
c819d1f87c Merge branch 'master' into feat/datacenter 2023-01-10 10:57:52 +08:00
QiShaoXuan
76a039c885 fix: error reference 2023-01-10 10:12:25 +08:00
alt0
4b39acbba2 fix: affine provider init 2023-01-10 09:58:46 +08:00
DarkSky
76af339b12 fix: type export 2023-01-10 00:36:32 +08:00
DiamondThree
eea6662d7f fix: clear any 2023-01-10 00:13:05 +08:00
DiamondThree
e91ea0d34b fix: clear any 2023-01-10 00:05:26 +08:00
DiamondThree
e410b3e961 fix: datacenter type error 2023-01-09 23:58:59 +08:00
DiamondThree
b1f14c0f71 fix: datacenter type error 2023-01-09 23:57:53 +08:00
DiamondThree
833df7be3c fix: datacenter type error 2023-01-09 23:55:34 +08:00
DiamondThree
c1261e7977 fix: lint error 2023-01-09 23:42:38 +08:00
DiamondThree
319a5e4dc1 fix: lint error 2023-01-09 23:41:46 +08:00
DiamondThree
bc6cf648f6 Merge branch 'feat/datacenter' into feat/poc 2023-01-09 23:25:10 +08:00
DiamondThree
5cda71f433 fix: lint error 2023-01-09 23:22:09 +08:00
DiamondThree
550e7f765f fix: lint error 2023-01-09 22:30:23 +08:00
DiamondThree
1e5e61ab51 Merge branch 'feat/poc' into feat/datacenter 2023-01-09 22:00:09 +08:00
DiamondThree
f547e5f314 Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 21:59:52 +08:00
MingLiang Wang
79a760a042 feat: logout 2023-01-09 21:59:19 +08:00
MingLiang Wang
f4eb4740d8 feat: fix auth 2023-01-09 21:56:24 +08:00
DiamondThree
48940b746e Merge branch 'feat/poc' into feat/datacenter 2023-01-09 21:43:50 +08:00
DiamondThree
8360e14b01 Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 21:42:34 +08:00
DiamondThree
f6826d73fa feat: user login 2023-01-09 21:41:55 +08:00
MingLiang Wang
8b95f13076 feat: remove affine 2023-01-09 21:40:57 +08:00
DiamondThree
054e1f78e1 feat: workspace setting 2023-01-09 21:19:02 +08:00
MingLiang Wang
ab4d4c0a96 fix: fix link to indexDB 2023-01-09 21:18:11 +08:00
DiamondThree
10072148d1 feat: workspace setting 2023-01-09 21:13:23 +08:00
alt0
0a4a9fcdb1 refactor: rename BlocksuiteWorkspace and WorkspaceInfo 2023-01-09 21:10:04 +08:00
QiShaoXuan
a6f81e2359 feat: refactor provider 2023-01-09 21:06:02 +08:00
alt0
72a39f67c0 fix: types; empty check 2023-01-09 20:48:50 +08:00
DiamondThree
93866e56d2 feat: active workspace when created workspace 2023-01-09 20:35:12 +08:00
DiamondThree
9ef0fe9d06 feat: switch workspace 2023-01-09 20:15:05 +08:00
linonetwo
36a10ebfa9 feat: ipc get_workspace 2023-01-09 19:50:27 +08:00
alt0
ee8da42c41 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-09 18:53:52 +08:00
alt0
9316bb4222 test: add test case for affine 2023-01-09 18:53:15 +08:00
DiamondThree
bcb8b9f211 feat: confilict 2023-01-09 18:50:37 +08:00
DiamondThree
bf61fbc057 feat:add loadWorkspace 2023-01-09 18:46:36 +08:00
JimmFly
d83693af93 Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 18:10:41 +08:00
MingLiang Wang
bd5f0ad7c1 feat: add disconnect ws 2023-01-09 17:52:38 +08:00
DiamondThree
5687fa211e feat: add workspace-help 2023-01-09 17:51:12 +08:00
alt0
5095e2f27d refactor: inject apis to affine 2023-01-09 17:41:03 +08:00
MingLiang Wang
d10affb413 feat: disable local cache of affine provider 2023-01-09 17:27:08 +08:00
DiamondThree
740500716e Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter 2023-01-09 17:25:17 +08:00
DiamondThree
d6640e0793 feat: add createWoresapce function 2023-01-09 17:25:00 +08:00
MingLiang Wang
0b5cc1beda feat: fix 2023-01-09 17:18:58 +08:00
alt0
dacfdfa57f refactor: remove unused files 2023-01-09 17:15:19 +08:00
alt0
4400871959 fix: remove type error 2023-01-09 17:05:10 +08:00
alt0
f7ff8f29b8 fix: test case for delete workspace 2023-01-09 17:04:31 +08:00
QiShaoXuan
15f06fe85e feat: add workspace change event handler 2023-01-09 16:51:52 +08:00
MingLiang Wang
3e9304fb05 feat: cache workspace instances 2023-01-09 16:45:26 +08:00
DarkSky
7437a7f849 Merge pull request #696 from toeverything/feat/extract-i18n
feat: extract i18n into a package
2023-01-09 16:45:20 +08:00
QiShaoXuan
28b2943dc6 feat: refactor app state provider 2023-01-09 16:40:23 +08:00
linonetwo
e9ee729b5d feat: getWorkspaces ipc 2023-01-09 16:27:09 +08:00
alt0
dee6355b29 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika 2023-01-09 15:49:23 +08:00
Lin Onetwo
a409009d65 Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/client-app 2023-01-09 15:48:09 +08:00
JimmFly
efb23968e8 feat: add types/prettier to i18n package 2023-01-09 15:45:05 +08:00
alt0
b4ea9ae02c Merge remote-tracking branch 'origin/master' into feat/cloud-sync-saika 2023-01-09 15:38:25 +08:00
JimmFly
ce9dc37217 fix: add return type 2023-01-09 15:37:50 +08:00
linonetwo
707bc1f6ed refactor: move blob related jsb to IPCBlobProvider 2023-01-09 15:28:29 +08:00
MingLiang Wang
b46a7fc8ce fix: fix init head icon 2023-01-09 15:26:30 +08:00
JimmFly
36a96b23e6 chore: update i18n keys 2023-01-09 15:19:20 +08:00
linonetwo
b663e92be8 fix: reset submodule 2023-01-09 15:12:21 +08:00
linonetwo
51a427496c fix: update octobase and fix type mismatching 2023-01-09 15:09:49 +08:00
JimmFly
13cb76321d fix: add prettier 2023-01-09 15:06:47 +08:00
linonetwo
5513cbf724 fix: merge issue 2023-01-09 15:01:35 +08:00
linonetwo
5daae7e3eb Merge remote-tracking branch 'refs/remotes/origin/feat/poc'
Conflicts:
	package.json
	packages/data-center/package.json
	pnpm-lock.yaml
2023-01-09 14:59:34 +08:00
JimmFly
270c3f5a6a chore: update import package name 2023-01-09 14:57:49 +08:00
DiamondThree
761345a226 fix: reference file name 2023-01-09 14:56:14 +08:00
JimmFly
047537101c feat: extract i18n into a package 2023-01-09 14:55:38 +08:00
DiamondThree
6c6eb619ea Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 14:55:12 +08:00
DiamondThree
51129bf14d Merge remote-tracking branch 'origin' into feat/cloud-sync-saika 2023-01-09 14:46:05 +08:00
QiShaoXuan
ae88dbd717 feat: add pacakge module 2023-01-09 14:23:01 +08:00
DarkSky
20e2984c04 feat: add extensions recommendations 2023-01-09 14:11:19 +08:00
DarkSky
20cef6e54a fix: skip some test for outdated ux 2023-01-09 14:08:11 +08:00
DiamondThree
a3deb954af Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 14:06:27 +08:00
DarkSky
da983b5006 Merge pull request #693 from toeverything/0109/landing-page
0109/landing page
2023-01-09 14:04:20 +08:00
DarkSky
c4df4da082 Merge pull request #695 from suyanhanx/component-file-name-unify
chore: TSX file name unify
2023-01-09 14:03:48 +08:00
DarkSky
da36e20301 Merge pull request #692 from toeverything/chore/remove-jest
chore: remove jest; using playwright over whole project
2023-01-09 14:01:57 +08:00
DiamondThree
57591ff6ca Merge branch 'feat/poc' of https://github.com/toeverything/AFFiNE into feat/poc 2023-01-09 14:01:50 +08:00
MingLiang Wang
2ff46fa831 feat: fix type problem 2023-01-09 13:58:53 +08:00
han
92d5f8f7c9 chore: components file name unify 2023-01-09 13:50:27 +08:00
DarkSky
1cb83e4bdb fix: esm test case 2023-01-09 12:20:53 +08:00
JimmFly
7f8a577bd2 chore: update i18n keys 2023-01-09 12:07:17 +08:00
DiamondThree
4c2bca1404 Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 12:05:49 +08:00
DiamondThree
72bb172b6c Merge remote-tracking branch 'origin' into feat/poc 2023-01-09 12:04:58 +08:00
linonetwo
1caaa79878 Merge remote-tracking branch 'refs/remotes/origin/feat/cloud-sync-saika'
Conflicts:
	packages/data-center/src/datacenter.ts
2023-01-09 12:04:43 +08:00
linonetwo
6544d41188 feat: latest provider for ipc provider 2023-01-09 12:04:07 +08:00
MingLiang Wang
84bea54916 feat: rm business 2023-01-09 12:02:09 +08:00
DarkSky
79d247ca04 Merge pull request #694 from toeverything/chore/move-i18n-ci-scripts
chore: move i18n ci scripts to scripts
2023-01-09 12:01:13 +08:00
DarkSky
c7409bef84 fix: deps 2023-01-09 12:00:16 +08:00
DarkSky
b531ee1bf6 Merge branch 'master' into chore/remove-jest 2023-01-09 11:54:00 +08:00
DarkSky
05f14d0010 Merge remote-tracking branch 'origin/chore/move-i18n-ci-scripts' into chore/remove-jest 2023-01-09 11:52:44 +08:00
DarkSky
225dc61521 chore: cleanup jest config 2023-01-09 11:52:28 +08:00
DarkSky
7a5786f2a2 feat: update deps 2023-01-09 11:49:37 +08:00
alt0
974fabb2af chore: move i18n ci scripts to scripts 2023-01-09 11:45:56 +08:00
MingLiang Wang
e46cf6c543 feat: add blob apis 2023-01-09 11:34:26 +08:00
x1a0t
c8dde3b3ca feat: update Hyperlink prompt 2023-01-09 11:32:33 +08:00
alt0
0179ad567e chore: move ci.js to ci.cjs 2023-01-09 11:32:00 +08:00
linonetwo
28a50aed6b fix: merge issue 2023-01-09 11:24:15 +08:00
linonetwo
9e1fc9a3b8 Merge remote-tracking branch 'refs/remotes/origin/feat/cloud-sync-saika'
Conflicts:
	package.json
	packages/data-center/src/datacenter.ts
	packages/data-center/src/provider/base.ts
	pnpm-lock.yaml
2023-01-09 11:23:30 +08:00
alt0
cc5c16623a chore: remove jest; using playwright over whole project 2023-01-09 11:18:47 +08:00
x1a0t
4684548ad8 feat: update landing page 2023-01-09 11:18:00 +08:00
linonetwo
e45f271671 Merge branch 'master'
Conflicts:
	.vscode/settings.json
	package.json
	packages/data-center/package.json
	packages/data-center/src/datacenter.ts
	pnpm-lock.yaml
2023-01-09 11:11:36 +08:00
DiamondThree
316e6f8c74 Merge branch 'feat/cloud-sync-saika' into feat/poc 2023-01-09 11:00:57 +08:00
MingLiang Wang
dd529f8035 feat: change new data center 2023-01-09 10:53:18 +08:00
MingLiang Wang
bf3621eaef Merge remote-tracking branch 'origin' into feat/cloud-sync-saika 2023-01-09 10:46:15 +08:00
MingLiang Wang
1124d14055 feat: remove current workspaces 2023-01-09 10:37:40 +08:00
linonetwo
928d878240 feat: create affine folder in user/document 2023-01-09 10:36:01 +08:00
alt0
c8101dfa4c refactor: rename defaultProvider -> mainProvider 2023-01-09 01:07:09 +08:00
alt0
59fc773174 test: add workspaces unit test 2023-01-09 01:03:10 +08:00
alt0
e1e1d0c964 test: add local provider test 2023-01-09 00:48:54 +08:00
alt0
055b63382b refactor: workspace crud 2023-01-09 00:41:29 +08:00
DiamondThree
090890a94d fix: build lint error 2023-01-08 19:37:15 +08:00
DiamondThree
231615b134 fix: lint error 2023-01-08 19:25:12 +08:00
DiamondThree
e0d31659d9 fix: hooks error 2023-01-08 19:15:25 +08:00
alt0
d75e5fff92 fix: module path 2023-01-08 19:14:21 +08:00
DiamondThree
17c79eebe4 fix: publish style 2023-01-08 19:12:02 +08:00
MingLiang Wang
375b5197da feat: add default head img 2023-01-08 18:42:35 +08:00
MingLiang Wang
512c0a791e feat: add clear all workspaces 2023-01-08 17:43:42 +08:00
MingLiang Wang
d154a28ad1 feat: add publish workspace 2023-01-08 17:09:45 +08:00
MingLiang Wang
153150cd3b feat/add get workspaces 2023-01-08 16:48:28 +08:00
alt0
7140d41296 fix: optimize datacenter folder structure 2023-01-08 16:14:02 +08:00
MingLiang Wang
aed2b482ea fix/ file path 2023-01-07 21:46:43 +08:00
MingLiang Wang
6518aaccc2 feat: data center change 2023-01-07 21:44:10 +08:00
tzhangchi
4e3af83bbf feat: Make software interaction more natural 2023-01-06 18:54:07 +08:00
tzhangchi
8fa9669aa8 feat: support enter to create workspace 2023-01-06 18:46:07 +08:00
tzhangchi
2b8b1c1f38 feat: Hide obvious page hints 2023-01-06 18:39:35 +08:00
DiamondThree
3e76a94730 fix: lint warning 2023-01-06 16:58:21 +08:00
DiamondThree
78facb2fe6 fix: fix filename and tabname 2023-01-06 16:45:34 +08:00
DiamondThree
726c8c54ab feat: use provied 2023-01-06 16:14:10 +08:00
QiShaoXuan
0346b22bdd fix: temporary helper error 2023-01-06 16:01:12 +08:00
DiamondThree
03419fc27a feat: mock login 2023-01-06 15:32:18 +08:00
DiamondThree
8d9838614e feat: mock login 2023-01-06 15:30:59 +08:00
JimmFly
2c4cefff97 chore: remove unused style 2023-01-06 15:05:07 +08:00
JimmFly
df25adad70 Merge branches 'feat/poc' and 'feat/poc' of github.com:toeverything/AFFiNE into feat/poc 2023-01-06 15:04:16 +08:00
JimmFly
3d5f239e4e feat: add language switch 2023-01-06 15:00:42 +08:00
Lin Onetwo
75c07d9d46 fix: merge issue 2023-01-06 14:50:36 +08:00
Lin Onetwo
2a7e1839da docs: comment for ipc 2023-01-06 14:50:27 +08:00
Lin Onetwo
e6abaf7aa4 refactor: connectDocToIPC 2023-01-06 14:50:12 +08:00
DiamondThree
97567e2e1f feat: mock login 2023-01-06 14:42:19 +08:00
DiamondThree
e7564b2e71 feat: mock sync 2023-01-06 14:26:18 +08:00
Lin Onetwo
614199a981 Merge remote-tracking branch 'origin/feat/cloud-sync' into feat/client-app 2023-01-06 14:04:21 +08:00
JimmFly
334aaa2d87 Merge branch 'feat/cloud-sync' into feat/poc 2023-01-06 13:27:29 +08:00
tzhangchi
7bbf1d28ea feat: add code tag 2023-01-06 09:51:20 +08:00
tzhangchi
6891e586bc refactor: create public component for workspace avatar 2023-01-06 09:44:42 +08:00
tzhangchi
74900b1341 feat: add export tab 2023-01-06 01:38:20 +08:00
tzhangchi
8b9dccd887 feat: update ui icon 2023-01-06 01:33:55 +08:00
tzhangchi
5e6c4872c2 chore: better style code 2023-01-06 01:29:08 +08:00
tzhangchi
57067b43b3 feat: avatar 2023-01-06 01:25:38 +08:00
tzhangchi
67ef5099dd feat: ui 2023-01-06 01:20:51 +08:00
tzhangchi
fb292b5423 test: skip avatar test 2023-01-06 01:13:57 +08:00
tzhangchi
40d0935792 feat: global avatar 2023-01-06 01:13:02 +08:00
tzhangchi
eb2d3d5d40 feat: add letter avatar 2023-01-06 01:04:52 +08:00
tzhangchi
900d95fa87 feat: more fluent 2023-01-06 00:51:43 +08:00
tzhangchi
76f75faf6c feat: more fluent 2023-01-06 00:49:04 +08:00
tzhangchi
8ebed0b92e feat: more fluent 2023-01-06 00:48:09 +08:00
tzhangchi
1da1293789 feat: add removeMember api 2023-01-06 00:18:43 +08:00
tzhangchi
e2293ffc44 feat: add api names 2023-01-05 23:58:17 +08:00
DiamondThree
dd149474d9 feat: mock sync 2023-01-05 23:33:13 +08:00
MingLiang Wang
27aaf2de1a feat: add api state 2023-01-05 22:55:41 +08:00
DiamondThree
c0c167fea8 feat: mock invite 2023-01-05 22:32:58 +08:00
MingLiang Wang
46792e5757 feat: data center business apis 2023-01-05 22:20:40 +08:00
Lin Onetwo
b9c0669a15 feat: use ipc provider when client app's preload script inject the global flag. 2023-01-05 20:47:10 +08:00
Lin Onetwo
c83537aac6 feat: update yrs doc using ipc from yjs doc 2023-01-05 20:43:35 +08:00
DiamondThree
e3c1e6a5da fix:member init 2023-01-05 19:30:16 +08:00
DiamondThree
c6d6a09abf Merge branch 'feat/poc' of github.com:toeverything/AFFiNE into feat/poc 2023-01-05 19:21:49 +08:00
DiamondThree
b6542b0245 feat: member init 2023-01-05 19:21:35 +08:00
QiShaoXuan
45ce9875b7 Merge branch 'feat/poc' of github.com:toeverything/AFFiNE into feat/poc 2023-01-05 19:15:24 +08:00
QiShaoXuan
9424cfb865 feat: add useTemporaryHelper 2023-01-05 19:14:41 +08:00
DiamondThree
2773b3e489 fix:delete bugs 2023-01-05 19:07:14 +08:00
DiamondThree
855ad54fe1 Merge branch 'feat/poc' of github.com:toeverything/AFFiNE into feat/poc 2023-01-05 19:04:38 +08:00
DiamondThree
955558b0d0 feat: mock delete 2023-01-05 19:04:16 +08:00
Lin Onetwo
92ea3ee2a8 Merge remote-tracking branch 'refs/remotes/origin/feat/cloud-sync'
Conflicts:
	packages/data-center/src/provider/base.ts
2023-01-05 18:50:13 +08:00
Lin Onetwo
070e8d191e feat: provider id 2023-01-05 18:46:54 +08:00
Lin Onetwo
646fcea816 feat: add some ipc provider method 2023-01-05 18:38:05 +08:00
QiShaoXuan
b53f61483d Merge branch 'feat/poc' of github.com:toeverything/AFFiNE into feat/poc 2023-01-05 18:34:15 +08:00
QiShaoXuan
27b7c4e8fb chore: remove useless file & code 2023-01-05 18:33:17 +08:00
tzhangchi
1c19611add feat: add icons 2023-01-05 17:55:00 +08:00
tzhangchi
08beb6fa95 feat: improve the ui of workspace item 2023-01-05 17:40:00 +08:00
tzhangchi
3cb91c0f68 feat: improve the ui of workspace item 2023-01-05 17:38:23 +08:00
DiamondThree
3d2da085e7 feat: mock login 2023-01-05 17:32:39 +08:00
tzhangchi
55dbc8ad3b feat: adjust modal height 2023-01-05 17:11:24 +08:00
DiamondThree
4dc61165b2 feat:mock workspace-setting 2023-01-05 16:05:54 +08:00
Lin Onetwo
1cd17ea31b chore: build rs-type before start dev 2023-01-05 14:57:40 +08:00
Lin Onetwo
d6dfd9b6ac fix: type folder location 2023-01-05 14:57:10 +08:00
Lin Onetwo
55f8f910fa feat: auto generate tauri ipc interfaces 2023-01-05 14:53:39 +08:00
Lin Onetwo
20002785e9 refactor: move ipc method and types to data-center folder 2023-01-05 14:53:02 +08:00
tzhangchi
5f729464a2 feat: learn poc 2023-01-04 21:49:56 +08:00
Lin Onetwo
c732520182 feat: directly open affine page on production 2023-01-04 21:11:26 +08:00
Lin Onetwo
cf56292484 fix: rust on nested folder 2023-01-04 21:11:26 +08:00
Lin Onetwo
4adf4f886f feat: client dev landing page 2023-01-04 21:11:26 +08:00
Lin Onetwo
fae43e90da feat: build affine dist html 2023-01-04 21:11:26 +08:00
Lin Onetwo
ef9d017572 Create src-OctoBase 2023-01-04 21:11:26 +08:00
Lin Onetwo
2bf5824aa3 feat: add different size of icons used by client app 2023-01-04 21:11:26 +08:00
Lin Onetwo
64ca6a6b35 feat: add basic tauri client app 2023-01-04 21:11:26 +08:00
DiamondThree
c6657e7a9b feat: mock workspace process 2023-01-04 18:08:11 +08:00
1277 changed files with 116244 additions and 25962 deletions

View File

@@ -53,10 +53,80 @@
]
},
{
"login": "DiamondThree",
"name": "DiamondThree",
"avatar_url": "https://avatars.githubusercontent.com/u/24630517?v=4",
"profile": "https://github.com/DiamondThree",
"login": "Brooooooklyn",
"name": "LongYinan",
"avatar_url": "https://avatars.githubusercontent.com/u/3468483?v=4",
"profile": "https://github.com/Brooooooklyn",
"contributions": [
"code",
"doc"
]
},
{
"login": "hwangdev97",
"name": "Hwang",
"avatar_url": "https://avatars.githubusercontent.com/u/24713927?v=4",
"profile": "https://github.com/hwangdev97",
"contributions": [
"code",
"doc"
]
},
{
"login": "kobeshanks",
"name": "kobeshanks",
"avatar_url": "https://avatars.githubusercontent.com/u/82570088?v=4",
"profile": "https://github.com/kobeshanks",
"contributions": [
"code",
"doc"
]
},
{
"login": "pengx17",
"name": "Peng Xiao",
"avatar_url": "https://avatars.githubusercontent.com/u/584378?v=4",
"profile": "https://pengx17.vercel.app/",
"contributions": [
"code",
"doc"
]
},
{
"login": "Saul-Mirone",
"name": "Mirone",
"avatar_url": "https://avatars.githubusercontent.com/u/10047788?v=4",
"profile": "https://mirone.me/",
"contributions": [
"code",
"doc"
]
},
{
"login": "zqran",
"name": "zqran",
"avatar_url": "https://avatars.githubusercontent.com/u/15389209?v=4",
"profile": "https://github.com/zqran",
"contributions": [
"code",
"doc"
]
},
{
"login": "SuneBear",
"name": "Shule Hsiung",
"avatar_url": "https://avatars.githubusercontent.com/u/7693264?v=4",
"profile": "https://sunebear.com/",
"contributions": [
"code",
"doc"
]
},
{
"login": "fundon",
"name": "Fangdun Tsai",
"avatar_url": "https://avatars.githubusercontent.com/u/27926?v=4",
"profile": "https://fundon.viz.rs/",
"contributions": [
"code",
"doc"
@@ -93,10 +163,10 @@
]
},
{
"login": "SaikaSakura",
"name": "MingLIang Wang",
"avatar_url": "https://avatars.githubusercontent.com/u/11530942?v=4",
"profile": "https://github.com/SaikaSakura",
"login": "DiamondThree",
"name": "DiamondThree",
"avatar_url": "https://avatars.githubusercontent.com/u/24630517?v=4",
"profile": "https://github.com/DiamondThree",
"contributions": [
"code",
"doc"
@@ -113,20 +183,20 @@
]
},
{
"login": "linonetwo",
"name": "lin onetwo",
"avatar_url": "https://avatars.githubusercontent.com/u/3746270?v=4",
"profile": "https://onetwo.ren/wiki",
"login": "colelawrence",
"name": "Cole Lawrence",
"avatar_url": "https://avatars.githubusercontent.com/u/2925395?v=4",
"profile": "https://colelawrence.com/",
"contributions": [
"code",
"doc"
]
},
{
"login": "colelawrence",
"name": "Cole Lawrence",
"avatar_url": "https://avatars.githubusercontent.com/u/2925395?v=4",
"profile": "https://colelawrence.com/",
"login": "linonetwo",
"name": "lin onetwo",
"avatar_url": "https://avatars.githubusercontent.com/u/3746270?v=4",
"profile": "https://onetwo.ren/wiki",
"contributions": [
"code",
"doc"
@@ -189,15 +259,6 @@
"design"
]
},
{
"login": "fanjing22",
"name": "fanjing22",
"avatar_url": "https://avatars.githubusercontent.com/u/109729699?v=4",
"profile": "https://github.com/fanjing22",
"contributions": [
"design"
]
},
{
"login": "xell",
"name": "Guozhu Liu",
@@ -292,13 +353,33 @@
"doc"
]
},
{
"login": "SaikaSakura",
"name": "MingLIang Wang",
"avatar_url": "https://avatars.githubusercontent.com/u/11530942?v=4",
"profile": "https://github.com/SaikaSakura",
"contributions": [
"code",
"doc"
]
},
{
"login": "fanjing22",
"name": "fanjing22",
"avatar_url": "https://avatars.githubusercontent.com/u/109729699?v=4",
"profile": "https://github.com/fanjing22",
"contributions": [
"design"
]
},
{
"login": "pointmax",
"name": "pointmax",
"avatar_url": "https://avatars.githubusercontent.com/u/49361135?v=4",
"profile": "https://github.com/pointmax",
"contributions": [
"doc"
"doc",
"code"
]
},
{
@@ -334,7 +415,8 @@
"avatar_url": "https://avatars.githubusercontent.com/u/67266933?v=4",
"profile": "https://quavo.vercel.app/",
"contributions": [
"doc"
"doc",
"code"
]
},
{
@@ -416,7 +498,8 @@
"avatar_url": "https://avatars.githubusercontent.com/u/92734739?v=4",
"profile": "https://github.com/MuhammedFaraz",
"contributions": [
"doc"
"doc",
"code"
]
},
{
@@ -436,6 +519,123 @@
"contributions": [
"code"
]
},
{
"login": "hezhizhen",
"name": "Zhizhen He",
"avatar_url": "https://avatars.githubusercontent.com/u/7611700?v=4",
"profile": "https://t.me/littlepoint",
"contributions": [
"code"
]
},
{
"login": "AkaraChen",
"name": "AkaraChen",
"avatar_url": "https://avatars.githubusercontent.com/u/85140972?v=4",
"profile": "https://akr.moe/",
"contributions": [
"code"
]
},
{
"login": "suyanhanx",
"name": "Suyan",
"avatar_url": "https://avatars.githubusercontent.com/u/24221472?v=4",
"profile": "https://github.com/suyanhanx",
"contributions": [
"code"
]
},
{
"login": "hehex9",
"name": "hehe",
"avatar_url": "https://avatars.githubusercontent.com/u/9209882?v=4",
"profile": "https://github.com/hehex9",
"contributions": [
"code"
]
},
{
"login": "albertodlc",
"name": "Alberto de la Cruz",
"avatar_url": "https://avatars.githubusercontent.com/u/32411964?v=4",
"profile": "https://github.com/albertodlc",
"contributions": [
"code"
]
},
{
"login": "AlessioGr",
"name": "Alessio Gravili",
"avatar_url": "https://avatars.githubusercontent.com/u/70709113?v=4",
"profile": "https://github.com/AlessioGr",
"contributions": [
"code"
]
},
{
"login": "lzlme",
"name": "Zhilin Liu",
"avatar_url": "https://avatars.githubusercontent.com/u/117659326?v=4",
"profile": "https://github.com/lzlme",
"contributions": [
"code"
]
},
{
"login": "suica",
"name": "Sg",
"avatar_url": "https://avatars.githubusercontent.com/u/8041462?v=4",
"profile": "https://github.com/suica",
"contributions": [
"code"
]
},
{
"login": "sinchang",
"name": "Jeff Wen",
"avatar_url": "https://avatars.githubusercontent.com/u/3297859?v=4",
"profile": "https://sinchang.me/",
"contributions": [
"code"
]
},
{
"login": "m1212e",
"name": "m1212e",
"avatar_url": "https://avatars.githubusercontent.com/u/14091540?v=4",
"profile": "https://m1212e.github.io/portfolio/",
"contributions": [
"code"
]
},
{
"login": "adityash1",
"name": "Aditya Sharma",
"avatar_url": "https://avatars.githubusercontent.com/u/65771169?v=4",
"profile": "https://adityash1.github.io/",
"contributions": [
"code"
]
},
{
"login": "sheben404",
"name": "Kehan Wang",
"avatar_url": "https://avatars.githubusercontent.com/u/61317160?v=4",
"profile": "https://github.com/sheben404",
"contributions": [
"code"
]
},
{
"login": "VictorNanka",
"name": "VictorNanka",
"avatar_url": "https://avatars.githubusercontent.com/u/30154366?v=4",
"profile": "https://github.com/VictorNanka",
"contributions": [
"code"
]
}
]
}

View File

@@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

View File

@@ -1,11 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "feat/master",
"updateInternalDependencies": "patch",
"ignore": []
}

20
.codesandbox/task.json Normal file
View File

@@ -0,0 +1,20 @@
{
"$schema": "https://codesandbox.io/schemas/tasks.json",
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
"tasks": {
"start-web": {
"name": "Start Web",
"command": "yarn nx dev @affine/web --port 8080",
"runAtStart": true,
"preview": {
"port": 8080
}
}
}
}

29
.commitlintrc.json Normal file
View File

@@ -0,0 +1,29 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"scope-enum": [
2,
"always",
[
"electron",
"server",
"web",
"docs",
"storybook",
"component",
"workspace",
"env",
"graphql",
"cli",
"hooks",
"i18n",
"jotai",
"native",
"templates",
"y-indexeddb",
"debug",
"storage"
]
]
}
}

View File

@@ -1,8 +1,10 @@
**/webpack.config.js
**/jest.config.js
**/scripts/*.js
**/node_modules/**
.github/**
**/__tests__/**
**/tests/**
node_modules
dist
.next
out
storybook-static
affine-out
_next
lib
.eslintrc.js
packages/i18n/src/i18n-generated.ts

226
.eslintrc.js Normal file
View File

@@ -0,0 +1,226 @@
const { resolve } = require('node:path');
const createPattern = packageName => [
{
group: ['**/dist', '**/dist/**'],
message: 'Do not import from dist',
allowTypeImports: false,
},
{
group: ['**/src', '**/src/**'],
message: 'Do not import from src',
allowTypeImports: false,
},
{
group: [`@affine/${packageName}`],
message: 'Do not import package itself',
allowTypeImports: false,
},
{
group: [`@toeverything/${packageName}`],
message: 'Do not import package itself',
allowTypeImports: false,
},
];
const allPackages = [
'packages/cli',
'packages/component',
'packages/debug',
'packages/env',
'packages/graphql',
'packages/hooks',
'packages/i18n',
'packages/jotai',
'packages/native',
'packages/plugin-infra',
'packages/templates',
'packages/theme',
'packages/workspace',
'packages/y-indexeddb',
'apps/web',
'apps/server',
'apps/electron',
'apps/storybook',
'plugins/copilot',
'plugins/bookmark-block',
];
/**
* @type {import('eslint').Linter.Config}
*/
const config = {
root: true,
settings: {
react: {
version: 'detect',
},
next: {
rootDir: 'apps/web',
},
},
extends: [
'eslint:recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
globalReturn: false,
impliedStrict: true,
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
project: resolve(__dirname, './tsconfig.eslint.json'),
},
plugins: [
'react',
'@typescript-eslint',
'simple-import-sort',
'sonarjs',
'i',
'unused-imports',
'unicorn',
],
rules: {
'array-callback-return': 'error',
'no-undef': 'off',
'no-empty': 'off',
'no-func-assign': 'off',
'no-cond-assign': 'off',
'no-constant-binary-expression': 'error',
'no-constructor-return': 'error',
'react/prop-types': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'unused-imports/no-unused-imports': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': 'allow-with-description',
'ts-ignore': true,
'ts-nocheck': true,
'ts-check': false,
},
],
'@typescript-eslint/no-restricted-imports': [
'error',
{
patterns: [
{
group: ['**/dist'],
message: "Don't import from dist",
allowTypeImports: false,
},
{
group: ['**/src'],
message: "Don't import from src",
allowTypeImports: false,
},
],
},
],
'unicorn/filename-case': [
'error',
{
case: 'kebabCase',
ignore: ['^\\[[a-zA-Z0-9-_]+\\]\\.tsx$'],
},
],
'sonarjs/no-all-duplicated-branches': 'error',
'sonarjs/no-element-overwrite': 'error',
'sonarjs/no-empty-collection': 'error',
'sonarjs/no-extra-arguments': 'error',
'sonarjs/no-identical-conditions': 'error',
'sonarjs/no-identical-expressions': 'error',
'sonarjs/no-ignored-return': 'error',
'sonarjs/no-one-iteration-loop': 'error',
'sonarjs/no-use-of-empty-return-value': 'error',
'sonarjs/non-existent-operator': 'error',
'sonarjs/no-collapsible-if': 'error',
'sonarjs/no-same-line-conditional': 'error',
'sonarjs/no-duplicated-branches': 'error',
'sonarjs/no-collection-size-mischeck': 'error',
'sonarjs/no-useless-catch': 'error',
'sonarjs/no-identical-functions': 'error',
},
overrides: [
{
files: 'apps/server/**/*.ts',
rules: {
'@typescript-eslint/consistent-type-imports': 0,
},
},
{
files: '*.cjs',
rules: {
'@typescript-eslint/no-var-requires': 0,
},
},
...allPackages.map(pkg => ({
files: [`${pkg}/src/**/*.ts`, `${pkg}/src/**/*.tsx`],
parserOptions: {
project: resolve(__dirname, './tsconfig.eslint.json'),
},
rules: {
'@typescript-eslint/no-restricted-imports': [
'error',
{
patterns: createPattern(pkg),
},
],
'@typescript-eslint/no-floating-promises': [
'error',
{
ignoreVoid: false,
ignoreIIFE: false,
},
],
},
})),
{
files: [
'**/__tests__/**/*',
'**/*.stories.tsx',
'**/*.spec.ts',
'**/tests/**/*',
'scripts/**/*',
'**/benchmark/**/*',
'**/__debug__/**/*',
'**/e2e/**/*',
],
rules: {
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': false,
'ts-ignore': true,
'ts-nocheck': true,
'ts-check': false,
},
],
'@typescript-eslint/no-floating-promises': 0,
},
},
],
};
module.exports = config;

62
.github/CLA.md vendored Normal file
View File

@@ -0,0 +1,62 @@
<!-- To indicate your agreement, simply edit this file and submit a pull request. -->
# AFFiNE Contributor License Agreement
To clarify the intellectual property license granted with contributions from any person or entity, AFFiNE must have on file a signed Contributor License Agreement ("CLA") from each contributor, indicating agreement with the license terms below. This agreement is for your protection as a contributor as well as the protection of the AFFiNE and its users; it does not change your rights to use your own contributions for any other purpose.
You accept and agree to the following terms and conditions for your past, present and future contributions submitted to AFFiNE. You should sign this agreement before submitting your first contribution. Except for the license granted herein to AFFiNE and recipients of software distributed by AFFiNE, You reserve all right, title, and interest in and to Your Contributions.
1. Parties.
(a) "AFFiNE" refers to the project's operator, TOEVERYTHING PTE. LTD registered in Republic of Singapore.
(b) "You" (or "Your") means the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with AFFiNE.
2. Definitions. "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to AFFiNE for inclusion in, or documentation of, any of the products owned or managed by AFFiNE (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to AFFiNE or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, AFFiNE for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution".
3. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to AFFiNE and to recipients of software distributed by AFFiNE a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to use, copy, reproduce, prepare derivative works of, distribute, sublicense, and publicly perform and display the Contribution and such derivative works on any licensing terms, including without limitation open source licenses and binary, proprietary, or commercial licenses.
4. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to AFFiNE and to recipients of software distributed by AFFiNE a perpetual, irrevocable, non-exclusive, worldwide, no-charge, royalty-free patent license to make, have made, use, sell, offer to sell, import, and otherwise transfer your Contribution in whole or in part, alone or in combination with or included in any product, work or materials arising out of the project to which your contribution was submitted, and to sublicense these same rights to third parties through multiple levels of sublicensees or other licensing arrangements.
5. Except as set out above, You keep all right, title, and interest in your contribution. The rights that you grant to AFFiNE under these terms are effective on the date you first submitted a contribution to AFFiNE, even if your submission took place before the date you sign these terms.
6. You promise that:
- Each of Your Contributions is Your original work and that you are legally entitled to grant the above license.
- Each of Your Contributions does not to the best of your knowledge violate any third party's copyrights, trademarks, patents, or other intellectual property rights;
- Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
- If You are an individual and if your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to AFFiNE, or that your employer has executed a separate Corporate CLA with AFFiNE.
7. You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
8. You agree to notify AFFiNE of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
9. This Agreement will be governed by the laws of Republic of Singapore without reference to conflict of laws principles.
## List of Contributors
The below-signed are contributors to a code repository that is part of the project named "AFFiNE". Each below-signed contributor has read, understand and agrees to the terms above in the section within this document entitled "AFFiNE Contributor License Agreement" as of the date beside their real name (or entity name) and GitHub account name.
---
<!--
Example:
- Dark Sky, @darkskygit, 2022/07/22
-->
- Dark Sky, @darkskygit, 2022/07/22
- Lin Onetwo, @linonetwo, 2022/02/14
- zqran, @zqran, 2023/02/17
- Alessio Gravili, @AlessioGr, 2023/03/04
- Victor Nanka, @victornanka, 2023/03/09
- Aditya Sharma, @adityash1, 2023/03/21
- Fangdun Tsai, @fundon, 2023/03/21
- Zhilin Liu, @lzlme, 2023/04/09
- Skye Sun, @skyesun, 2023/04/14
- Jordy Delgado, @Jdelgad8, 2023/04/17
- Howard Do, @howarddo2208, 2023/04/20
- 三咲智子 Kevin Deng, @sxzz, 2023/04/21
- Moeyua, @moeyua, 2023/04/22
- Shishu, @shishudesu, 2023/05/19
- Kushagra Singh, @kush002, 2023/06/28

2
.github/CODEOWNERS vendored
View File

@@ -1,2 +0,0 @@
**/project.json @darkskygit
**/pnpm-lock.yaml @darkskygit

1
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1 @@
github: [toeverything]

63
.github/ISSUE_TEMPLATE/BUG-REPORT.yml vendored Normal file
View File

@@ -0,0 +1,63 @@
name: Bug Report
description: File a bug report
title: "\u200b"
labels: ['bug']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
validations:
required: true
- type: dropdown
id: version
attributes:
label: Distribution version
description: What version of AFFiNE are you using?
options:
- macOS x64
- macOS ARM 64
- Windows x64
- Linux
- Web (app.affine.pro)
- Web (stage.affine.pro)
- Web (dev.affine.live)
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on if you're using web version?
multiple: true
options:
- Chrome
- Microsoft Edge
- Firefox
- Safari
- Other
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images here
- type: checkboxes
attributes:
label: Are you willing to submit a PR?
description: >
(Optional) We encourage you to submit a [Pull Request](https://github.com/toeverything/affine/pulls) (PR) to help improve AFFiNE for everyone, especially if you have a good understanding of how to implement a fix or feature.
See the AFFiNE [Contributing Guide](https://github.com/toeverything/affine/blob/master/CONTRIBUTING.md) to get started.
options:
- label: Yes I'd like to help by submitting a PR!

View File

@@ -0,0 +1,36 @@
name: Feature Request
description: Suggest a feature or improvement
title: "\u200b"
labels: ['feat', 'story']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature suggestion!
- type: textarea
id: description
attributes:
label: Description
description: What would you like to see added to AFFiNE?
placeholder: Please explain in details the feature and improvements you'd like to see.
validations:
required: true
- type: textarea
attributes:
label: Use case
description: |
How might this feature be used and who might use it.
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the idea you have!
Tip: You can attach images here
- type: checkboxes
attributes:
label: Are you willing to submit a PR?
description: >
(Optional) We encourage you to submit a [Pull Request](https://github.com/toeverything/affine/pulls) (PR) to help improve AFFiNE for everyone, especially if you have a good understanding of how to implement a fix or feature.
See the AFFiNE [Contributing Guide](https://github.com/toeverything/affine/blob/master/CONTRIBUTING.md) to get started.
options:
- label: Yes I'd like to help by submitting a PR!

View File

@@ -1,45 +0,0 @@
name: 🐛 Bug report (Alpha)
description: "Report a reproducible bug or regression for https://pathfinder.affine.pro"
title: "[bug]: "
labels: ["bug", "alpha"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this bug report!
- type: input
id: description
attributes:
label: Describe the bug
placeholder: A clear and concise description of what the bug is.
- type: textarea
id: reproduce
attributes:
label: To Reproduce
placeholder: "Steps to reproduce the behavior\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error"
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
placeholder: If applicable, add screenshots to help explain your problem.
- type: textarea
id: expected
attributes:
label: Expected behavior
placeholder: A clear and concise description of what you expected to happen.
- type: input
id: platform
attributes:
label: Platform
placeholder: e.g. MacOS, Windows10...
- type: input
id: browser
attributes:
label: Browser
placeholder: e.g. Chrome, Safari
- type: textarea
id: additional
attributes:
label: Additional context
placeholder: Add any other context about the problem here.

View File

@@ -1,45 +0,0 @@
name: 🐛 Bug report (Pre-Alpha)
description: "Report a reproducible bug or regression for https://livedemo.affine.pro"
title: "[bug]: "
labels: ["bug", "pre-alpha"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this bug report!
- type: input
id: description
attributes:
label: Describe the bug
placeholder: A clear and concise description of what the bug is.
- type: textarea
id: reproduce
attributes:
label: To Reproduce
placeholder: "Steps to reproduce the behavior\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error"
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
placeholder: If applicable, add screenshots to help explain your problem.
- type: textarea
id: expected
attributes:
label: Expected behavior
placeholder: A clear and concise description of what you expected to happen.
- type: input
id: platform
attributes:
label: Platform
placeholder: e.g. MacOS, Windows10...
- type: input
id: browser
attributes:
label: Browser
placeholder: e.g. Chrome, Safari
- type: textarea
id: additional
attributes:
label: Additional context
placeholder: Add any other context about the problem here.

View File

@@ -1,11 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 💭 Questions and Help - Reddit
url: https://www.reddit.com/r/Affine/
about: Please ask and answer questions here.
- name: 💬 Questions and Help - Telegram
url: https://t.me/affineworkos
about: Please ask and answer questions here.
- name: 🗯 Questions and Help - Discord
url: https://discord.gg/yz6tGVsf5p
about: Please ask and answer questions here.
- name: Something else?
url: https://github.com/toeverything/AFFiNE/discussions
about: Feel free to ask and answer questions over in GitHub Discussions
- name: AFFiNE Community Support
url: https://community.affine.pro
about: AFFiNE Community - a place to ask, learn and engage with others

View File

@@ -1,31 +0,0 @@
name: ✨ Feature request
description: An idea or request for new functionality
title: "[feature]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this feature request!
- type: textarea
id: description
attributes:
label: 1~3 main use cases of the proposed feature
description: e.g. As a ..., I have many tasks scattered across documents, and I want to have a unified entry to view these tasks.
placeholder: e.g. As a ...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Ideas for solution
placeholder: e.g. A task view can be added to view all tasks.
- type: input
id: userType
attributes:
label: what types of users can benefit from using your proposed feature
placeholder: busy student
- type: textarea
id: additional
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the feature request here.

View File

@@ -1,31 +0,0 @@
name: 🪄 Improvement request
description: An improvement to existing functionality
title: "[improvement]: "
labels: ["improvement"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this improvement request!
- type: textarea
id: description
attributes:
label: 1~3 main use cases of the proposed improvement
description: e.g. As a ..., I have many tasks scattered across documents, and I want to have a unified entry to view these tasks.
placeholder: e.g. As a ...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Ideas for solution
placeholder: e.g. A task view can be added to view all tasks.
- type: input
id: userType
attributes:
label: what types of users can benefit from using your proposed improvement
placeholder: busy student
- type: textarea
id: additional
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the improvement request here.

View File

@@ -1,7 +0,0 @@
---
name: I have a question
about: Feel free to ask us your questions!
title: '[Question]'
labels: ''
assignees: ''
---

60
.github/actions/build-rust/action.yml vendored Normal file
View File

@@ -0,0 +1,60 @@
name: 'AFFiNE Rust build'
description: 'Rust build setup, including cache configuration'
inputs:
target:
description: 'Cargo target'
required: true
nx_token:
description: 'Nx Cloud access token'
required: false
runs:
using: 'composite'
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ inputs.target }}
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo-cache
target/${{ inputs.target }}
key: stable-${{ inputs.target }}-cargo-cache
- name: Build
if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }}
shell: bash
run: |
yarn nx build @affine/native --target ${{ inputs.target }}
env:
NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
- name: Build
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}
run: |
export CC=x86_64-unknown-linux-gnu-gcc
export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc
yarn nx build @affine/native --target ${{ inputs.target }}
chmod -R 777 node_modules/.cache
chmod -R 777 target
- name: Build
if: ${{ inputs.target == 'aarch64-unknown-linux-gnu' }}
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}
run: |
yarn nx build @affine/native --target ${{ inputs.target }}
chmod -R 777 node_modules/.cache
chmod -R 777 target

123
.github/actions/setup-node/action.yml vendored Normal file
View File

@@ -0,0 +1,123 @@
name: 'AFFiNE Node.js Setup'
description: 'Node.js setup for CI, including cache configuration'
inputs:
extra-flags:
description: 'Extra flags to pass to the yarn install.'
required: false
default: '--immutable --inline-builds'
package-install:
description: 'Run the install step.'
required: false
default: 'true'
playwright-install:
description: 'Run the install step for Playwright.'
required: false
default: 'false'
electron-install:
description: 'Download the Electron binary'
required: false
default: 'true'
npm-token:
description: 'The NPM token to use for private packages.'
required: false
default: ''
hard-link-nm:
description: 'set nmMode to hardlinks-local in .yarnrc.yml'
required: false
default: 'true'
runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'yarn'
- name: Set nmMode
if: ${{ inputs.hard-link-nm == 'true' }}
shell: bash
run: yarn config set nmMode hardlinks-local
- name: yarn install
if: ${{ inputs.package-install == 'true' }}
continue-on-error: true
shell: bash
run: yarn install ${{ inputs.extra-flags }}
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
- name: yarn install (try again)
if: ${{ steps.install.outcome == 'failure' }}
shell: bash
run: yarn install ${{ inputs.extra-flags }}
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
- name: Get installed Playwright version
id: playwright-version
if: ${{ inputs.playwright-install == 'true' }}
shell: bash
run: echo "version=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://' | head -n 1)" >> $GITHUB_OUTPUT
# Attempt to restore the correct Playwright browser binaries based on the
# currently installed version of Playwright (The browser binary versions
# may change with Playwright versions).
# Note: Playwright's cache directory is hard coded because that's what it
# says to do in the docs. There doesn't appear to be a command that prints
# it out for us.
- uses: actions/cache@v3
id: playwright-cache
if: ${{ inputs.playwright-install == 'true' }}
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
# As a fallback, if the Playwright version has changed, try use the
# most recently cached version. There's a good chance that at least one
# of the browser binary versions haven't been updated, so Playwright can
# skip installing that in the next step.
# Note: When falling back to an old cache, `cache-hit` (used below)
# will be `false`. This allows us to restore the potentially out of
# date cache, but still let Playwright decide if it needs to download
# new binaries or not.
restore-keys: |
${{ runner.os }}-playwright-
# If the Playwright browser binaries weren't able to be restored, we tell
# paywright to install everything for us.
- name: Install Playwright's dependencies
shell: bash
if: inputs.playwright-install == 'true' && steps.playwright-cache.outputs.cache-hit != 'true'
run: yarn playwright install --with-deps
- name: Get installed Electron version
id: electron-version
if: ${{ inputs.electron-install == 'true' }}
shell: bash
run: |
echo "version=$(yarn why --json electron | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://' | head -n 1)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: electron-cache
if: ${{ inputs.electron-install == 'true' }}
with:
path: 'node_modules/.cache/electron'
key: '${{ runner.os }}-electron-${{ steps.electron-version.outputs.version }}'
restore-keys: |
${{ runner.os }}-electron-
- name: Install Electron binary
shell: bash
if: inputs.electron-install == 'true'
run: node apps/electron/node_modules/electron/install.js
env:
ELECTRON_OVERRIDE_DIST_PATH: ./node_modules/.cache/electron

31
.github/actions/setup-rust/action.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: 'AFFiNE Rust setup'
description: 'Rust setup, including cache configuration'
inputs:
target:
description: 'Cargo target'
required: true
toolchain:
description: 'Rustup toolchain'
required: false
default: 'stable'
runs:
using: 'composite'
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ inputs.toolchain }}
targets: ${{ inputs.target }}
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-cache-${{ runner.os }}-${{ inputs.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-cache-${{ runner.os }}-${{ inputs.toolchain }}-

10
.github/auto_assign.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
# This is used for tracking in GitHub project.
# See https://github.com/marketplace/actions/auto-assign-action
# Set to true to add reviewers to pull requests
addReviewers: false
# Set to true to add assignees to pull requests
addAssignees: author
runOnDraft: true

View File

@@ -1,40 +0,0 @@
:80 {
root /* ./dist
file_server {
# precompressed br
}
encode {
zstd
gzip 9
}
header {
# 7 days
Cache-Control "public, max-age=86400, must-revalidate"
}
handle /api/* {
reverse_proxy {$API_SERVER} {
health_uri /api/healthz
@error status 500 502 503 503
handle_response @error {
root * /dist
rewrite * /50x.html
file_server
}
}
}
@notStatic {
not path /_next/static/*
}
handle @notStatic {
header {
Cache-Control "no-cache, no-store, must-revalidate"
}
try_files {path} /index.html
}
}

View File

@@ -1,13 +0,0 @@
FROM node:16-alpine as relocate
WORKDIR /app
COPY ./packages/app/out ./dist
COPY ./.github/deployment/Caddyfile ./Caddyfile
FROM caddy:2.6.2-alpine
ARG API_SERVER
WORKDIR /app
COPY --from=relocate /app .
EXPOSE 80
ENV API_SERVER=$API_SERVER
CMD ["caddy", "run"]

11
.github/deployment/front/Dockerfile vendored Normal file
View File

@@ -0,0 +1,11 @@
FROM openresty/openresty:1.21.4.1-0-buster
WORKDIR /app
COPY ./apps/web/out ./dist
COPY ./.github/deployment/front/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
COPY ./.github/deployment/front/affine.nginx.conf /etc/nginx/conf.d/affine.nginx.conf
RUN mkdir -p /var/log/nginx && \
rm /etc/nginx/conf.d/default.conf
EXPOSE 8080
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]

View File

@@ -0,0 +1,13 @@
server {
listen 8080;
root /app/dist;
location / {
try_files $uri $uri/index.html $uri.html =404;
}
error_page 404 /404.html;
location = /404.html {
internal;
}
}

14
.github/deployment/front/nginx.conf vendored Normal file
View File

@@ -0,0 +1,14 @@
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pcre_jit on;
events {
worker_connections 1024;
}
http {
include mime.types;
log_format main '$remote_addr [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
include /etc/nginx/conf.d/*.conf;
}

10
.github/deployment/node/Dockerfile vendored Normal file
View File

@@ -0,0 +1,10 @@
FROM node:18-bookworm-slim
COPY ./apps/server /app
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends openssl && \
rm -rf /var/lib/apt/lists/*
CMD ["node", "--es-module-specifier-resolution=node", "./dist/index.js"]

1
.github/helm/affine-cloud/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
charts/

23
.github/helm/affine-cloud/.helmignore vendored Normal file
View File

@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

6
.github/helm/affine-cloud/Chart.lock vendored Normal file
View File

@@ -0,0 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.5.8
digest: sha256:c91c0dc1370e879538dc9d6e435e731a726ef99d6a3b081372318483792b48a7
generated: "2023-06-27T18:34:12.683806+08:00"

12
.github/helm/affine-cloud/Chart.yaml vendored Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v2
name: affine-cloud
description: A Helm chart for AFFiNE Cloud
type: application
version: 0.6.1
appVersion: '0.6.1'
dependencies:
- name: postgresql
version: 12.5.8
repository: https://charts.bitnami.com/bitnami

30
.github/helm/affine-cloud/readme.md vendored Normal file
View File

@@ -0,0 +1,30 @@
# Helm Chart Configuration
The following table lists the configurable parameters of this Helm chart and their default values.
## AFFiNE Cloud Server parameters
| Parameter | Description | Default |
| ------------------------------ | -------------------------------------------------- | ------------------ |
| `affineCloud.tag` | The Docker tag of the AffineCloud image to be used | `'nightly-latest'` |
| `affineCloud.resources.cpu` | The CPU resources allocated for AffineCloud | `'250m'` |
| `affineCloud.resources.memory` | The memory resources allocated for AffineCloud | `'0.5Gi'` |
| `affineCloud.signKey` | The key used to sign the JWT tokens | `'c2VjcmV0'` |
| `affineCloud.service.type` | The type of the Kubernetes service | `'ClusterIP'` |
| `affineCloud.service.port` | The port of the Kubernetes service | `'http'` |
| `affineCloud.mail.account` | The email account used to send emails | `''` |
| `affineCloud.mail.password` | The password of the email account | `''` |
## PostgreSQL parameters
| Parameter | Description | Default |
| -------------------------------------------- | ------------------------------------------------------------------------------------- | ------------ |
| `postgresql.auth.username` | Username for the PostgreSQL database | `'affine'` |
| `postgresql.auth.password` | Password for the PostgreSQL database. Please change this for production environments. | `'password'` |
| `postgresql.auth.database` | The name of the default database that will be created on image startup | `'affine'` |
| `postgresql.primary.resources.limits.cpu` | The CPU resources allocated for the PostgreSQL primary node | `'500m'` |
| `postgresql.primary.resources.limits.memory` | The memory resources allocated for the PostgreSQL primary node | `'0.5Gi'` |
For more postgres parameters, please refer to: https://artifacthub.io/packages/helm/bitnami/postgresql
Please note that for the `postgresql.auth.password`, you should provide your own password for production environments. The default value is provided only for demonstration purposes.

View File

@@ -0,0 +1,51 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "affine-cloud.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "affine-cloud.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "affine-cloud.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "affine-cloud.labels" -}}
helm.sh/chart: {{ include "affine-cloud.chart" . }}
{{ include "affine-cloud.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "affine-cloud.selectorLabels" -}}
app.kubernetes.io/name: {{ include "affine-cloud.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

View File

@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ include "affine-cloud.fullname" . }}"
labels:
{{- include "affine-cloud.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "affine-cloud.selectorLabels" . | nindent 6 }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 2
template:
metadata:
labels:
{{- include "affine-cloud.selectorLabels" . | nindent 8 }}
spec:
restartPolicy: Always
containers:
- name: affine-cloud
image: "ghcr.io/toeverything/cloud-self-hosted:{{ .Values.affineCloud.tag | default .Chart.AppVersion }}"
env:
- name: PG_USER
value: "{{ .Values.postgresql.auth.username }}"
- name: PG_PASS
value: "{{ .Values.postgresql.auth.password }}"
- name: PG_DATABASE
value: "{{ .Values.postgresql.auth.database }}"
- name: PG_HOST
value: "{{ .Values.postgresql.fullnameOverride | default (printf "%s-postgresql" .Release.Name) }}"
- name: DATABASE_URL
value: "{{ .Values.affineCloud.databaseUrl | default "postgresql://$(PG_USER):$(PG_PASS)@$(PG_HOST)/$(PG_DATABASE)" }}"
envFrom:
- secretRef:
name: affine-cloud-secret
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /api/healthz
port: 3000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
resources:
limits:
cpu: "{{ .Values.affineCloud.resources.cpu }}"
memory: "{{ .Values.affineCloud.resources.memory }}"

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: affine-cloud-secret
type: Opaque
data:
SIGN_KEY: "{{ .Values.affineCloud.signKey }}"
MAIL_ACCOUNT: "{{ .Values.affineCloud.mail.account }}"
MAIL_PASSWORD: "{{ .Values.affineCloud.mail.password }}"

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: "{{ include "affine-cloud.fullname" . }}"
labels:
{{- include "affine-cloud.labels" . | nindent 4 }}
spec:
type: "{{ .Values.affineCloud.service.type }}"
ports:
- name: http
protocol: TCP
port: {{ .Values.affineCloud.service.port }}
targetPort: 3000
selector:
{{- include "affine-cloud.selectorLabels" . | nindent 4 }}

30
.github/helm/affine-cloud/values.yaml vendored Normal file
View File

@@ -0,0 +1,30 @@
affineCloud:
tag: 'canary-5e0d5e0cc65ea46f326fdde12658bfac59b38c9f-0949'
# databaseUrl: 'postgresql://affine:password@affine-cloud-postgresql:5432/affine'
signKey: TUFtdFdzQTJhdGJuem01TA==
mail:
account: ''
password: ''
service:
type: ClusterIP
port: 80
resources:
cpu: '250m'
memory: 0.5Gi
postgresql:
fullnameOverride: tcp-postgresql
auth:
# only for demo, please modify it at prod env
username: affine
password: password
database: affine
primary:
initdb:
scripts:
01-init.sql: |
CREATE DATABASE affine_binary;
GRANT ALL PRIVILEGES ON DATABASE affine_binary TO affine;
resources:
limits:
cpu: '500m'
memory: 0.5Gi

23
.github/helm/affine/.helmignore vendored Normal file
View File

@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

6
.github/helm/affine/Chart.yaml vendored Normal file
View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: affine
description: AFFiNE cloud chart
type: application
version: 0.0.0
appVersion: '0.7.0-canary.18'

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: graphql
description: AFFiNE GraphQL server
type: application
version: 0.0.0
appVersion: '0.7.0-canary.18'

View File

@@ -0,0 +1,16 @@
1. Get the application URL by running these commands:
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "graphql.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "graphql.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "graphql.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "graphql.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}

View File

@@ -0,0 +1,132 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "graphql.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "graphql.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "graphql.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "graphql.labels" -}}
helm.sh/chart: {{ include "graphql.chart" . }}
{{ include "graphql.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "graphql.selectorLabels" -}}
app.kubernetes.io/name: {{ include "graphql.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "graphql.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "graphql.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{{- define "jwt.key" -}}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.app.jwt.secretName -}}
{{- if and $secret $secret.data.private -}}
{{/*
Reusing existing secret data
*/}}
key: {{ $secret.data.private }}
{{- else -}}
{{/*
Generate new data
*/}}
key: {{ genPrivateKey "ecdsa" | b64enc }}
{{- end -}}
{{- end -}}
{{- define "objectStorage.r2" -}}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.app.objectStorage.r2.secretName -}}
{{- if $secret -}}
{{/*
Reusing existing secret data
*/}}
accountId: {{ $secret.data.accountId }}
accessKeyId: {{ $secret.data.accessKeyId }}
secretAccessKey: {{ $secret.data.secretAccessKey }}
bucket: {{ $secret.data.bucket }}
{{- else -}}
{{/*
Generate new data
*/}}
accountId: {{ .Values.app.objectStorage.r2.accountId | b64enc }}
accessKeyId: {{ .Values.app.objectStorage.r2.accessKeyId | b64enc }}
secretAccessKey: {{ .Values.app.objectStorage.r2.secretAccessKey | b64enc }}
bucket: {{ .Values.app.objectStorage.r2.bucket | b64enc }}
{{- end -}}
{{- end -}}
{{- define "objectStorage.oauth.google" -}}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.app.oauth.google.secretName -}}
{{- if $secret -}}
{{/*
Reusing existing secret data
*/}}
clientId: {{ $secret.data.clientId }}
clientSecret: {{ $secret.data.clientSecret }}
{{- else -}}
{{/*
Generate new data
*/}}
clientId: "{{ .Values.app.oauth.google.clientId | b64enc }}"
clientSecret: "{{ .Values.app.oauth.google.clientSecret | b64enc }}"
{{- end -}}
{{- end -}}
{{- define "objectStorage.oauth.github" -}}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.app.oauth.github.secretName -}}
{{- if $secret -}}
{{/*
Reusing existing secret data
*/}}
clientId: {{ $secret.data.clientId }}
clientSecret: {{ $secret.data.clientSecret }}
{{- else -}}
{{/*
Generate new data
*/}}
clientId: "{{ .Values.app.oauth.github.clientId | b64enc }}"
clientSecret: "{{ .Values.app.oauth.github.clientSecret | b64enc }}"
{{- end -}}
{{- end -}}

View File

@@ -0,0 +1,126 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "graphql.fullname" . }}
labels:
{{- include "graphql.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "graphql.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "graphql.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "graphql.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: AUTH_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: "{{ .Values.app.jwt.secretName }}"
key: key
- name: NODE_ENV
value: "{{ .Values.env }}"
- name: DATABSE_PASSWORD
valueFrom:
secretKeyRef:
name: pg-postgresql
key: postgres-password
- name: DATABASE_URL
value: postgres://{{ .Values.database.user }}:$(DATABSE_PASSWORD)@{{ .Values.database.url }}:{{ .Values.database.port }}/{{ .Values.database.name }}
- name: AFFINE_SERVER_PORT
value: "{{ .Values.service.port }}"
- name: AFFINE_SERVER_SUB_PATH
value: "{{ .Values.app.path }}"
- name: AFFINE_SERVER_HOST
value: "{{ .Values.app.host }}"
- name: ENABLE_R2_OBJECT_STORAGE
value: "{{ .Values.app.objectStorage.r2.enabled }}"
{{ if .Values.app.objectStorage.r2.enabled }}
- name: R2_OBJECT_STORAGE_ACCOUNT_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.app.objectStorage.r2.secretName }}"
key: accountId
- name: R2_OBJECT_STORAGE_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.app.objectStorage.r2.secretName }}"
key: accessKeyId
- name: R2_OBJECT_STORAGE_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: "{{ .Values.app.objectStorage.r2.secretName }}"
key: secretAccessKey
- name: R2_OBJECT_STORAGE_BUCKET
valueFrom:
secretKeyRef:
name: "{{ .Values.app.objectStorage.r2.secretName }}"
key: bucket
{{ end }}
{{ if .Values.app.oauth.google.enabled }}
- name: OAUTH_GOOGLE_CLIENT_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.app.oauth.google.secretName }}"
key: clientId
- name: OAUTH_GOOGLE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: "{{ .Values.app.oauth.google.secretName }}"
key: clientSecret
{{ end }}
{{ if .Values.app.oauth.github.enabled }}
- name: OAUTH_GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.app.oauth.github.secretName }}"
key: clientId
- name: OAUTH_GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: "{{ .Values.app.oauth.github.secretName }}"
key: clientSecret
{{ end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Values.app.jwt.secretName }}"
type: Opaque
data:
{{- ( include "jwt.key" . ) | indent 2 -}}

View File

@@ -0,0 +1,34 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "graphql.fullname" . }}-database-migration
labels:
{{- include "graphql.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
template:
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: ["yarn", "prisma", "migrate", "deploy"]
env:
- name: NODE_ENV
value: "{{ .Values.env }}"
- name: DATABSE_PASSWORD
valueFrom:
secretKeyRef:
name: pg-postgresql
key: postgres-password
- name: DATABASE_URL
value: postgres://{{ .Values.database.user }}:$(DATABSE_PASSWORD)@{{ .Values.database.url }}:{{ .Values.database.port }}/{{ .Values.database.name }}
resources:
requests:
cpu: '100m'
memory: '200Mi'
restartPolicy: Never
backoffLimit: 1

View File

@@ -0,0 +1,10 @@
{{- if .Values.app.oauth.github.enabled -}}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Values.app.oauth.github.secretName }}"
type: Opaque
data:
{{- ( include "objectStorage.oauth.github" . ) | indent 2 -}}
{{- end }}

View File

@@ -0,0 +1,10 @@
{{- if .Values.app.oauth.google.enabled -}}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Values.app.oauth.google.secretName }}"
type: Opaque
data:
{{- ( include "objectStorage.oauth.google" . ) | indent 2 -}}
{{- end }}

View File

@@ -0,0 +1,9 @@
{{- if .Values.app.objectStorage.r2.enabled -}}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Values.app.objectStorage.r2.secretName }}"
type: Opaque
data:
{{- ( include "objectStorage.r2" . ) | indent 2 -}}
{{- end }}

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "graphql.fullname" . }}
labels:
{{- include "graphql.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "graphql.selectorLabels" . | nindent 4 }}

View File

@@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "graphql.serviceAccountName" . }}
labels:
{{- include "graphql.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "graphql.fullname" . }}-test-connection"
labels:
{{- include "graphql.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "graphql.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@@ -0,0 +1,69 @@
replicaCount: 1
image:
repository: ghcr.io/toeverything/affine-graphql
pullPolicy: IfNotPresent
tag: ''
imagePullSecrets: []
nameOverride: ''
fullnameOverride: ''
# map to NODE_ENV environment variable
env: 'production'
database:
user: 'postgres'
url: 'pg-postgresql'
port: '5432'
name: 'affine'
app:
# AFFINE_SERVER_SUB_PATH
path: ''
# AFFINE_SERVER_HOST
host: '0.0.0.0'
jwt:
secretName: jwt-private-key
# base64 encoded ecdsa private key
privateKey: ''
objectStorage:
r2:
enabled: false
secretName: r2
accountId: ''
accessKeyId: ''
secretAccessKey: ''
bucket: ''
oauth:
google:
enabled: false
secretName: oauth-google
clientId: ''
clientSecret: ''
github:
enabled: false
secretName: oauth-github
clientId: ''
clientSecret: ''
serviceAccount:
create: true
annotations: {}
name: 'affine-graphql'
podAnnotations: {}
podSecurityContext:
fsGroup: 2000
resources:
limits:
cpu: '2000m'
memory: 4Gi
requests:
cpu: '1000m'
memory: 2Gi
probe:
initialDelaySeconds: 20
nodeSelector: {}
tolerations: []
affinity: {}

View File

@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: web
description: A Helm chart for Kubernetes
type: application
version: 0.0.0
appVersion: "0.7.0-canary.18"

View File

@@ -0,0 +1,16 @@
1. Get the application URL by running these commands:
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "web.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "web.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "web.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "web.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}

View File

@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "web.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "web.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "web.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "web.labels" -}}
helm.sh/chart: {{ include "web.chart" . }}
{{ include "web.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "web.selectorLabels" -}}
app.kubernetes.io/name: {{ include "web.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "web.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "web.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "web.fullname" . }}
labels:
{{- include "web.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "web.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "web.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "web.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "web.fullname" . }}
labels:
{{- include "web.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "web.selectorLabels" . | nindent 4 }}

View File

@@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "web.serviceAccountName" . }}
labels:
{{- include "web.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "web.fullname" . }}-test-connection"
labels:
{{- include "web.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "web.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@@ -0,0 +1,37 @@
replicaCount: 1
image:
repository: ghcr.io/toeverything/affine-front
pullPolicy: IfNotPresent
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
create: true
annotations: {}
name: "affine-web"
podAnnotations: {}
podSecurityContext:
fsGroup: 2000
resources:
limits:
cpu: '500m'
memory: 2Gi
requests:
cpu: '500m'
memory: 2Gi
nodeSelector: {}
tolerations: []
affinity: {}
probe:
initialDelaySeconds: 1

View File

@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "affine.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "affine.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "affine.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "affine.labels" -}}
helm.sh/chart: {{ include "affine.chart" . }}
{{ include "affine.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "affine.selectorLabels" -}}
app.kubernetes.io/name: {{ include "affine.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "affine.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "affine.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,64 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "affine.fullname" . -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "affine.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
- host: "{{ .Values.ingress.host }}"
http:
paths:
- path: /graphql
pathType: Prefix
backend:
service:
name: affine-graphql
port:
number: {{ .Values.graphql.service.port }}
- path: /api
pathType: Prefix
backend:
service:
name: affine-graphql
port:
number: {{ .Values.graphql.service.port }}
- path: /
pathType: Prefix
backend:
service:
name: affine-web
port:
number: {{ .Values.web.service.port }}
{{- end }}

17
.github/helm/affine/values.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
ingress:
enabled: false
className: ''
annotations:
kubernetes.io/ingress.class: nginx
host: affine.pro
tls: []
graphql:
service:
type: ClusterIP
port: 3000
web:
service:
type: ClusterIP
port: 8080

60
.github/helm/deployment_guide.md vendored Normal file
View File

@@ -0,0 +1,60 @@
# Cluster Deployment Guide
This document provides a step-by-step guide for developers on how to deploy services in a Kubernetes cluster. The following content assumes that the reader already has a basic understanding of Kubernetes concepts and operations.
### 1. Configure Service Mesh (Optional)
In the Kubernetes cluster, we optionally use Service Mesh (like Istio and Anthos Service Mesh) to manage the network interactions of microservices. If Service Mesh is already deployed on your cluster or do not need to use the service network, you can skip this step. In this step, we assume that you are using Google Kubernetes Engine (GKE) and have already installed Anthos Service Mesh on your cluster, if you wish to use another Ingress Controller, please refer to the relevant documentation.
To configure your kubectl context to interact with your Kubernetes cluster using the gcloud tool, you need to execute the following commands:
```sh
export CLUSTER_NAME=your_cluster_name
export REGION=your_cluster_region
export PROJECT=your_project_id
gcloud container clusters get-credentials $CLUSTER_NAME --region $REGION --project $PROJECT
```
In this command, you should replace `CLUSTER_NAME`, `REGION` and `PROJECT` with the actual name, region and project id of your Kubernetes cluster. This command retrieves the access credentials for your Kubernetes cluster and automatically configures kubectl to use these credentials.
Now, to inject Service Mesh for a specific Namespace, first, set the environment variable `NAMESPACE` that should correspond to your target Kubernetes Namespace. In this example, we use `prod` as the target Namespace:
```sh
export NAMESPACE=prod
```
Then, we label the Namespace which will enable Istio to automatically inject the sidecar container for all new Pods under this Namespace:
```sh
kubectl label namespace $NAMESPACE istio-injection- istio.io/rev=asm-managed --overwrite
```
Finally, we trigger the Kubernetes Deployment restart mechanism to allow existing Pods to also obtain sidecar container injection:
```sh
kubectl rollout restart deployment -n $NAMESPACE
```
### 2. Deploying the Application
Next, we will deploy our application in the Kubernetes cluster through Helm. First, set relevant environment variables:
```sh
export NAMESPACE=prod
export RELEASE=affine-cloud-prod
export PATH=.github/helm/affine-cloud
```
- `NAMESPACE` should be consistent with the first step, indicating your target Kubernetes Namespace.
- `RELEASE` is the name of your Helm release.
- `PATH` is the location of your Helm chart in your file system.
Finally, use the `helm upgrade --install` command to deploy or upgrade your application:
```sh
helm upgrade --namespace $NAMESPACE --create-namespace --install $RELEASE $PATH
```
This command creates (if it doesn't already exist) and deploys your Helm chart in the specified Namespace. If the release already exists, it will be upgraded.
The above are the complete steps for deploying an application in a Kubernetes cluster. Make sure all prerequisites are met before deploying, and also ensure that you have the correct permissions for operations in Kubernetes.

2
.github/helm/releaser.yaml vendored Normal file
View File

@@ -0,0 +1,2 @@
owner: toeverything
git-repo: helm-charts

62
.github/labeler.yml vendored Normal file
View File

@@ -0,0 +1,62 @@
docs:
- 'docs/**/*'
- '**/README.md'
- 'packages/templates/**/*'
test:
- 'tests/**/*'
- '**/tests/**/*'
- '**/__tests__/**/*'
mod:dev:
- 'scripts/**/*'
- 'packages/cli/**/*'
- 'packages/debug/**/*'
mod:plugin:
- 'plugins/**/*'
plugin:bookmark-block:
- 'plugins/bookmark-block/**/*'
plugin:copilot:
- 'plugins/copilot/**/*'
mod:plugin-infra:
- 'packages/plugin-infra/**/*'
mod:workspace: 'packages/workspace/**/*'
mod:i18n: 'packages/i18n/**/*'
mod:env: 'packages/env/**/*'
mod:hooks: 'packages/hooks/**/*'
mod:component: 'packages/component/**/*'
mod:storage: 'packages/storage/**/*'
mod:native: 'packages/native/**/*'
mod:store:
- 'packages/jotai/**/*'
- '**/atoms/**/*'
rust:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/rust-toolchain'
- '**/rust-toolchain.toml'
- '**/rustfmt.toml'
package:y-indexeddb: 'packages/y-indexeddb/**/*'
app:web: 'apps/web/**/*'
app:electron: 'apps/electron/**/*'
app:server: 'apps/server/**/*'
app:docs: 'apps/docs/**/*'

12
.github/workflows/auto-labeler.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: 'Pull Request Labeler'
on:
- pull_request_target
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4

View File

@@ -1,132 +0,0 @@
name: Build Pathfinder LiveDemo Test Version
on:
workflow_dispatch:
inputs:
tag:
description: 'Custom Tag. Set nightly-latest will publish to development.'
required: true
type: string
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Lint and Build
runs-on: self-hosted
environment: development
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.js
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Lint
run: |
pnpm lint --max-warnings=0
# - name: Test
# run: pnpm test
- name: Build
run: pnpm build
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Export
run: pnpm export
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./packages/app/out
push_to_registry:
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: 'toeverything/affine-pathfinder-testing'
IMAGE_TAG: canary-${{ github.sha }}
IMAGE_TAG_LATEST: nightly-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/out/
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.IMAGE_TAG }}
${{ inputs.tag }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ./.github/deployment/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,328 +1,504 @@
name: Build Pathfinder
name: Build & Test
on:
push:
branches: [master]
branches:
- master
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/build.yml'
- '!.github/actions/build-rust/action.yml'
- '!.github/actions/setup-node/action.yml'
pull_request:
branches: [master]
merge_group:
branches:
- master
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/build.yml'
- '!.github/actions/build-rust/action.yml'
- '!.github/actions/setup-node/action.yml'
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
env:
DEBUG: napi:*
BUILD_TYPE: canary
APP_NAME: affine
COVERAGE: true
MACOSX_DEPLOYMENT_TARGET: '10.13'
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
build:
name: Build on Pull Request
if: github.ref != 'refs/heads/master'
runs-on: self-hosted
environment: development
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Build
run: pnpm install && pnpm build
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Export
run: pnpm export
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./packages/app/.next
lint:
name: Lint and E2E Test
name: Lint
runs-on: ubuntu-latest
environment: development
needs: build
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/.next/
- name: Lint & E2E Test
electron-install: false
- name: Run i18n codegen
run: yarn i18n-codegen gen
- name: Run Type Check
run: yarn typecheck
- name: Run ESLint
run: yarn lint --max-warnings=0 --cache
- name: Run Prettier
# Set nmMode in `actions/setup-node` will modify the .yarnrc.yml
run: |
pnpm lint --max-warnings=0
PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
PLAYWRIGHT_BROWSERS_PATH=0 pnpm test
PLAYWRIGHT_BROWSERS_PATH=0 pnpm test:dc
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
git checkout .yarnrc.yml
yarn prettier . --ignore-unknown --cache --check
- name: Run circular
run: yarn circular
- name: Upload server dist
uses: actions/upload-artifact@v3
with:
name: server-dist
path: ./apps/server/dist
if-no-files-found: error
build-community:
name: Build Community
if: github.ref == 'refs/heads/master'
runs-on: self-hosted
build-docs:
name: Build Docs
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install
electron-install: false
- run: yarn nx build @affine/docs
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Build
run: pnpm build
build-storybook:
name: Build Storybook
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-install: false
- run: yarn nx build @affine/storybook
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Upload storybook artifact
uses: actions/upload-artifact@v3
with:
name: storybook
path: ./apps/storybook/storybook-static
if-no-files-found: error
- name: Export
run: pnpm export
build-web:
name: Build @affine/web
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Build Web
run: yarn nx build @affine/web
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./packages/app/out
name: next-js-static
path: ./apps/web/out
if-no-files-found: error
publish-community:
name: Push Community Image
if: github.ref == 'refs/heads/master'
server-test:
name: Server Test
runs-on: ubuntu-latest
needs: build-community
environment: development
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: affine
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Initialize database
run: |
psql -h localhost -U postgres -c "CREATE DATABASE affine;"
psql -h localhost -U postgres -c "CREATE USER affine WITH PASSWORD 'affine';"
psql -h localhost -U postgres -c "ALTER USER affine WITH SUPERUSER;"
env:
PGPASSWORD: affine
- name: Generate prisma client
run: |
yarn exec prisma generate
yarn exec prisma db push
working-directory: apps/server
env:
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
- name: Run init-db script
run: yarn exec ts-node-esm ./scripts/init-db.ts
working-directory: apps/server
env:
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
target: 'x86_64-unknown-linux-gnu'
- name: Build Storage
run: yarn build:storage
- name: Run server tests
run: yarn test:coverage
working-directory: apps/server
env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
- name: Upload storage.node
uses: actions/upload-artifact@v3
with:
name: storage.node
path: ./packages/storage/storage.node
if-no-files-found: error
- name: Upload server test coverage results
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./apps/server/.coverage/lcov.info
flags: server-test
name: affine
fail_ci_if_error: false
permissions:
contents: read
packages: write
storybook-test:
name: Storybook Test
runs-on: ubuntu-latest
environment: development
needs: [build-storybook]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
- name: Download storybook artifact
uses: actions/download-artifact@v3
with:
name: storybook
path: ./apps/storybook/storybook-static
- name: Run storybook tests
working-directory: ./apps/storybook
run: |
yarn exec concurrently -k -s first -n "SB,TEST" -c "magenta,blue" "yarn exec serve ./storybook-static -l 6006" "yarn exec wait-on tcp:6006 && yarn test"
env:
REGISTRY: ghcr.io
IMAGE_NAME: 'toeverything/affine-pathfinder-community'
IMAGE_TAG: canary-${{ github.sha }}
IMAGE_TAG_LATEST: nightly-latest
e2e-test:
name: E2E Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5]
environment: development
needs: build-web
steps:
- name: Check out the repo
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/out/
name: next-js-static
path: ./apps/web/out
- name: Log in to Docker Hub
- name: Run playwright tests
run: yarn e2e --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }}
env:
COVERAGE: true
- name: Collect code coverage report
run: yarn exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov
- name: Upload e2e test coverage results
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage/lcov.info
flags: e2etest
name: affine
fail_ci_if_error: false
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results-e2e-${{ matrix.shard }}
path: ./test-results
if-no-files-found: ignore
e2e-migration-test:
name: E2E Migration Test
runs-on: ubuntu-latest
environment: development
needs: [build-web]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
- name: Download next static
uses: actions/download-artifact@v3
with:
name: next-js-static
path: ./apps/web/out
- name: Unzip
run: yarn unzip
working-directory: ./tests/affine-legacy/0.7.0-canary.18
- name: Run legacy playwright tests
run: yarn e2e --forbid-only
working-directory: ./tests/affine-legacy/0.7.0-canary.18
- name: Run vitest
run: yarn test
working-directory: ./tests/affine-legacy/0.7.0-canary.18
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results-e2e-migration
path: ./tests/affine-legacy/0.7.0-canary.18/test-results
if-no-files-found: ignore
desktop-test:
name: Desktop Test
runs-on: ${{ matrix.spec.os }}
environment: development
strategy:
fail-fast: false
# all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64
matrix:
spec:
- {
os: macos-latest,
platform: macos,
arch: x64,
target: x86_64-apple-darwin,
test: true,
}
- {
os: macos-latest,
platform: macos,
arch: arm64,
target: aarch64-apple-darwin,
test: false,
}
- {
os: ubuntu-latest,
platform: linux,
arch: x64,
target: x86_64-unknown-linux-gnu,
test: true,
}
- {
os: windows-latest,
platform: windows,
arch: x64,
target: x86_64-pc-windows-msvc,
test: true,
}
needs: [build-web]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
hard-link-nm: false
- name: Build AFFiNE native
uses: ./.github/actions/build-rust
with:
target: ${{ matrix.spec.target }}
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Run unit tests
if: ${{ matrix.spec.test }}
shell: bash
run: yarn nx test @affine/monorepo
env:
NATIVE_TEST: 'true'
- name: Build Infra
run: yarn run build:infra
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn workspace @affine/electron build
- name: Download static resource artifact
uses: actions/download-artifact@v3
with:
name: next-js-static
path: ./apps/electron/resources/web-static
- name: Run desktop tests
if: ${{ matrix.spec.test && matrix.spec.os == 'ubuntu-latest' }}
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn workspace @affine/electron test
env:
COVERAGE: true
- name: Run desktop tests
if: ${{ matrix.spec.test && matrix.spec.os != 'ubuntu-latest' }}
run: yarn workspace @affine/electron test
env:
COVERAGE: true
- name: Collect code coverage report
if: ${{ matrix.spec.test }}
run: yarn exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov
- name: Upload e2e test coverage results
if: ${{ matrix.spec.test }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage/lcov.info
flags: e2etest-${{ matrix.spec.os }}-${{ matrix.spec.arch }}
name: affine
fail_ci_if_error: false
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results-e2e-${{ matrix.spec.os }}-${{ matrix.spec.arch }}
path: ./test-results
if-no-files-found: ignore
unit-test:
name: Unit Test
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-install: false
- name: Build Infra
run: yarn run build:infra
- name: Unit Test
run: yarn nx test:coverage @affine/monorepo
- name: Upload unit test coverage results
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage/store/lcov.info
flags: unittest
name: affine
fail_ci_if_error: false
build-docker:
if: github.ref == 'refs/heads/master'
name: Build Docker
needs:
- lint
- desktop-test
- server-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download next static
uses: actions/download-artifact@v3
with:
name: next-js-static
path: ./apps/web/out
- name: Download server dist
uses: actions/download-artifact@v3
with:
name: server-dist
path: ./apps/server/dist
- name: Download storage.node
uses: actions/download-artifact@v3
with:
name: storage.node
path: ./apps/server
- name: Setup Git short hash
run: |
echo "GIT_SHORT_HASH=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
logout: false
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.IMAGE_TAG }}
${{ env.IMAGE_TAG_LATEST }}
- name: Build Docker image
uses: docker/build-push-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build front Dockerfile
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./.github/deployment/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
platforms: linux/amd64,linux/arm64
provenance: true
file: .github/deployment/front/Dockerfile
tags: ghcr.io/toeverything/affine-front:${{ env.GIT_SHORT_HASH }},ghcr.io/toeverything/affine-front:latest
build-livedemo:
name: Build LiveDemo
if: github.ref == 'refs/heads/master'
runs-on: self-hosted
environment: development
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
# setup node without cache configuration
# Prisma cache is not compatible with docker build cache
- name: Setup Node.js
uses: actions/setup-node@v3
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.js
- name: Install Node.js dependencies
run: yarn workspaces focus @affine/server --production
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Generate Prisma client
run: yarn workspace @affine/server prisma generate
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Build
run: pnpm build
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Export
run: pnpm export
publish-livedemo:
name: Push Livedemo Image
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: build-livedemo
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: 'toeverything/affine-pathfinder'
IMAGE_TAG: canary-${{ github.sha }}
IMAGE_TAG_LATEST: nightly-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/out/
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.IMAGE_TAG }}
${{ env.IMAGE_TAG_LATEST }}
- name: Build Docker image
uses: docker/build-push-action@v3
- name: Build graphql Dockerfile
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./.github/deployment/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
platforms: linux/amd64,linux/arm64
provenance: true
file: .github/deployment/node/Dockerfile
tags: ghcr.io/toeverything/affine-graphql:${{ env.GIT_SHORT_HASH }},ghcr.io/toeverything/affine-graphql:latest

36
.github/workflows/cache-cleanup.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
name: Cleanup caches for closed branches
on:
pull_request:
types:
- closed
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

18
.github/workflows/cancel.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Cancel
on:
pull_request_target:
types:
- edited
- synchronize
jobs:
cancel:
name: 'Cancel Previous Runs'
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
# See https://api.github.com/repos/toeverything/AFFiNE/actions/workflows
workflow_id: 44038251, 61883931
access_token: ${{ github.token }}

View File

@@ -1,45 +0,0 @@
name: Pathfinder changelog
on:
workflow_dispatch:
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: publish changelog
runs-on: self-hosted
environment: development
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Create changelog
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -15,6 +15,7 @@ on:
push:
branches: [master]
pull_request:
merge_group:
# The branches below must be a subset of the branches above
branches: [master]

66
.github/workflows/helm-releaser.yml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: Release Charts
on:
push:
branches: [master]
paths:
- '.github/helm/**/Chart.yml'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout Helm chart repo
uses: actions/checkout@v3
with:
repository: toeverything/helm-charts
path: .helm-chart-repo
ref: gh-pages
token: ${{ secrets.HELM_RELEASER_TOKEN }}
- name: Install Helm
uses: azure/setup-helm@v3
- name: Install chart releaser
run: |
set -e
arch="$(dpkg --print-architecture)"
curl -s https://api.github.com/repos/helm/chart-releaser/releases/latest \
| yq --indent 0 --no-colors --input-format json --unwrapScalar \
".assets[] | select(.name | test("\""^chart-releaser_.+_linux_${arch}\.tar\.gz$"\"")) | .browser_download_url" \
| xargs curl -SsL \
| tar zxf - -C /usr/local/bin
- name: Package charts
working-directory: .helm-chart-repo
run: |
mkdir -p .cr-index
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm dependencies build ../.github/helm/affine
helm dependencies build ../.github/helm/affine-cloud
cr package ../.github/helm/affine
cr package ../.github/helm/affine-cloud
- name: Publish charts
working-directory: .helm-chart-repo
run: |
set -ex
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
owner=$(cut -d '/' -f 1 <<< '${{ github.repository }}')
repo=helm-charts
git_hash=$(git rev-parse HEAD)
cr upload --commit "$git_hash" \
--git-repo "$repo" --owner "$owner" \
--token '${{ secrets.HELM_RELEASER_TOKEN }}' \
--skip-existing
cr index --git-repo "$repo" --owner "$owner" \
--token '${{ secrets.HELM_RELEASER_TOKEN }}' \
--index-path .cr-index --push

19
.github/workflows/label-checker.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Label Checker
on:
pull_request:
types:
- opened
- labeled
- unlabeled
branches:
- master
jobs:
check_labels:
name: PR should not have a blocked label
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
none_of: blocked
repo_token: ${{ secrets.GITHUB_TOKEN }}

37
.github/workflows/languages-sync.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Languages Sync
on:
push:
branches: ['master']
paths:
- 'packages/i18n/**'
- '.github/workflows/languages-sync.yml'
- '!.github/actions/setup-node/action.yml'
pull_request_target:
branches: ['master']
paths:
- 'packages/i18n/**'
- '.github/workflows/languages-sync.yml'
- '!.github/actions/setup-node/action.yml'
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Check Language Key
if: github.ref != 'refs/heads/master'
working-directory: ./packages/i18n
run: yarn run sync-languages:check
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
- name: Sync Languages
if: github.ref == 'refs/heads/master'
working-directory: ./packages/i18n
run: yarn run sync-languages
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}

228
.github/workflows/nightly-build.yml vendored Normal file
View File

@@ -0,0 +1,228 @@
name: Build Canary Desktop App on Staging Branch
on:
push:
branches:
# 0.6.x-staging
- v[0-9]+.[0-9]+.x-staging
# 0.6.1-staging
- v[0-9]+.[0-9]+.[0-9]+-staging
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/nightly-build.yml'
- '!.github/actions/build-rust/action.yml'
- '!.github/actions/setup-rust/action.yml'
- '!.github/actions/setup-node/action.yml'
permissions:
actions: write
contents: write
security-events: write
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
env:
BUILD_TYPE: internal
jobs:
set-build-version:
runs-on: ubuntu-latest
environment: production
outputs:
version: 0.0.0-${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: toeverything/set-build-version@latest
- id: version
run: echo ::set-output name=version::${{ env.BUILD_VERSION }}
before-make:
runs-on: ubuntu-latest
environment: production
needs:
- set-build-version
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Replace Version
run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
- name: generate-assets
working-directory: apps/electron
run: yarn generate-assets
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
RELEASE_VERSION: ${{ needs.set-build-version.outputs.version }}
- name: Upload Artifact (web-static)
uses: actions/upload-artifact@v3
with:
name: before-make-web-static
path: apps/electron/resources/web-static
make-distribution:
environment: production
strategy:
# all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64
matrix:
spec:
- {
os: macos-latest,
platform: darwin,
arch: x64,
target: x86_64-apple-darwin,
}
- {
os: macos-latest,
platform: darwin,
arch: arm64,
target: aarch64-apple-darwin,
}
- {
os: ubuntu-latest,
platform: linux,
arch: x64,
target: x86_64-unknown-linux-gnu,
}
- {
os: windows-latest,
platform: win32,
arch: x64,
target: x86_64-pc-windows-msvc,
}
runs-on: ${{ matrix.spec.os }}
needs:
- before-make
- set-build-version
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
SKIP_GENERATE_ASSETS: 1
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Build AFFiNE native
uses: ./.github/actions/build-rust
with:
target: ${{ matrix.spec.target }}
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Replace Version
run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
- uses: actions/download-artifact@v3
with:
name: before-make-web-static
path: apps/electron/resources/web-static
- name: Build Infra
run: yarn run build:infra
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn workspace @affine/electron build
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: make
run: yarn workspace @affine/electron make --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
- name: Save artifacts (mac)
if: ${{ matrix.spec.platform == 'darwin' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/*.dmg ./builds/affine-${{ env.BUILD_TYPE }}-macos-${{ matrix.spec.arch }}.dmg
mv apps/electron/out/*/make/zip/darwin/${{ matrix.spec.arch }}/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-macos-${{ matrix.spec.arch }}.zip
- name: Save artifacts (windows)
if: ${{ matrix.spec.platform == 'win32' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/zip/win32/x64/AFFiNE*-win32-x64-*.zip ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.zip
mv apps/electron/out/*/make/squirrel.windows/x64/*.exe ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.exe
mv apps/electron/out/*/make/squirrel.windows/x64/*.msi ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.msi
mv apps/electron/out/*/make/squirrel.windows/x64/*.nupkg ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.nupkg
- name: Save artifacts (linux)
if: ${{ matrix.spec.platform == 'linux' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/zip/linux/x64/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-linux-x64.zip
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: affine-${{ matrix.spec.platform }}-${{ matrix.spec.arch }}-builds
path: builds
release:
needs:
- make-distribution
- set-build-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Artifacts (macos-x64)
uses: actions/download-artifact@v3
with:
name: affine-darwin-x64-builds
path: ./
- name: Download Artifacts (macos-arm64)
uses: actions/download-artifact@v3
with:
name: affine-darwin-arm64-builds
path: ./
- name: Download Artifacts (windows-x64)
uses: actions/download-artifact@v3
with:
name: affine-win32-x64-builds
path: ./
- name: Download Artifacts (linux-x64)
uses: actions/download-artifact@v3
with:
name: affine-linux-x64-builds
path: ./
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Generate Release yml
run: |
cp ./apps/electron/scripts/generate-yml.js .
node generate-yml.js
env:
RELEASE_VERSION: ${{ needs.set-build-version.outputs.version }}
- name: Create Release Draft
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
repository: 'toeverything/AFFiNE-Releases'
name: ${{ needs.set-build-version.outputs.version }}
tag_name: ${{ needs.set-build-version.outputs.version }}
prerelease: true
files: |
./VERSION
./*.zip
./*.dmg
./*.exe
./*.nupkg
./RELEASES
./*.AppImage
./*.apk
./*.yml

54
.github/workflows/nx.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: NX
on:
push:
branches:
- master
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/nx.yml'
- '!.github/actions/build-rust/action.yml'
- '!.github/actions/setup-node/action.yml'
pull_request:
merge_group:
branches:
- master
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/nx.yml'
- '!.github/actions/build-rust/action.yml'
- '!.github/actions/setup-node/action.yml'
jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
with:
runs-on: macos-latest
main-branch-name: master
number-of-agents: 5
init-commands: |
yarn exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
environment-variables: |
BUILD_TYPE=canary
parallel-commands: |
yarn exec nx-cloud record -- yarn exec nx format:check
parallel-commands-on-agents: |
yarn exec nx affected --target=build --parallel=5
timeout: 60
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
with:
runs-on: macos-latest
number-of-agents: 5
environment-variables: |
BUILD_TYPE=canary
timeout: 60

12
.github/workflows/pr-auto-assign.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: Pull request auto assign
# on: pull_request
on:
pull_request:
types: [opened, ready_for_review]
jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.2.4

23
.github/workflows/pr-title-lint.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: PR Title Lint
on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- master
permissions:
contents: read
jobs:
check-pull-request-title:
name: Check pull request title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- run: echo "${{ github.event.pull_request.title }}" | npx commitlint -g ./.commitlintrc.json

View File

@@ -1,114 +0,0 @@
name: Build Pathfinder Self-hosted
on:
workflow_dispatch:
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build-self-hosted:
name: Build Community
if: github.ref == 'refs/heads/master'
runs-on: self-hosted
environment: development
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Build
run: pnpm build
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Export
run: pnpm export
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./packages/app/out
publish-self-hosted:
name: Push Community Image
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: build-self-hosted
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: 'toeverything/affine-static'
IMAGE_TAG_LATEST: abbey-wood
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/out/
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAG_LATEST }}
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ./.github/deployment/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -0,0 +1,225 @@
name: Release Desktop App
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'
workflow_dispatch:
inputs:
version:
description: App Version
required: true
default: 0.0.0
is-draft:
description: 'Draft Release?'
type: boolean
required: true
default: true
is-pre-release:
description: 'Pre Release? (labeled as "PreRelease")'
type: boolean
required: true
default: true
build-type:
description: 'Build Type (canary, beta or stable)'
type: string
required: true
default: canary
permissions:
actions: write
contents: write
security-events: write
env:
BUILD_TYPE: ${{ github.event.inputs.build-type || (github.ref_type == 'tag' && contains(github.ref, 'canary') && 'canary') }}
DEBUG: napi:*
APP_NAME: affine
MACOSX_DEPLOYMENT_TARGET: '10.13'
jobs:
before-make:
runs-on: ubuntu-latest
environment: production
outputs:
RELEASE_VERSION: ${{ steps.get-canary-version.outputs.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Get canary version
id: get-canary-version
if: ${{ github.ref_type == 'tag' }}
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
PACKAGE_VERSION=$(node -p "require('./apps/electron/package.json').version")
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
echo "Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"
exit 1
fi
echo "RELEASE_VERSION=$(node -p "require('./apps/electron/package.json').version")" >> $GITHUB_OUTPUT
- name: generate-assets
run: yarn workspace @affine/electron generate-assets
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
RELEASE_VERSION: ${{ github.event.inputs.version || steps.get-canary-version.outputs.RELEASE_VERSION }}
- name: Upload Artifact (web-static)
uses: actions/upload-artifact@v3
with:
name: before-make-web-static
path: apps/electron/resources/web-static
make-distribution:
environment: production
strategy:
# all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64
matrix:
spec:
- {
os: macos-latest,
platform: darwin,
arch: x64,
target: x86_64-apple-darwin,
}
- {
os: macos-latest,
platform: darwin,
arch: arm64,
target: aarch64-apple-darwin,
}
- {
os: ubuntu-latest,
platform: linux,
arch: x64,
target: x86_64-unknown-linux-gnu,
}
- {
os: windows-latest,
platform: win32,
arch: x64,
target: x86_64-pc-windows-msvc,
}
runs-on: ${{ matrix.spec.os }}
needs: before-make
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
SKIP_GENERATE_ASSETS: 1
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Build AFFiNE native
uses: ./.github/actions/build-rust
with:
target: ${{ matrix.spec.target }}
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- uses: actions/download-artifact@v3
with:
name: before-make-web-static
path: apps/electron/resources/web-static
- name: Build Infra
run: yarn run build:infra
- name: Build Plugins
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn workspace @affine/electron build
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: make
run: yarn workspace @affine/electron make --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
- name: Save artifacts (mac)
if: ${{ matrix.spec.platform == 'darwin' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/*.dmg ./builds/affine-${{ env.BUILD_TYPE }}-macos-${{ matrix.spec.arch }}.dmg
mv apps/electron/out/*/make/zip/darwin/${{ matrix.spec.arch }}/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-macos-${{ matrix.spec.arch }}.zip
- name: Save artifacts (windows)
if: ${{ matrix.spec.platform == 'win32' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/zip/win32/x64/AFFiNE*-win32-x64-*.zip ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.zip
mv apps/electron/out/*/make/squirrel.windows/x64/*.exe ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.exe
mv apps/electron/out/*/make/squirrel.windows/x64/*.msi ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.msi
mv apps/electron/out/*/make/squirrel.windows/x64/*.nupkg ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.nupkg
- name: Save artifacts (linux)
if: ${{ matrix.spec.platform == 'linux' }}
run: |
mkdir -p builds
mv apps/electron/out/*/make/zip/linux/x64/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-linux-x64.zip
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: affine-${{ matrix.spec.platform }}-${{ matrix.spec.arch }}-builds
path: builds
release:
needs: [before-make, make-distribution]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Artifacts (macos-x64)
uses: actions/download-artifact@v3
with:
name: affine-darwin-x64-builds
path: ./
- name: Download Artifacts (macos-arm64)
uses: actions/download-artifact@v3
with:
name: affine-darwin-arm64-builds
path: ./
- name: Download Artifacts (windows-x64)
uses: actions/download-artifact@v3
with:
name: affine-win32-x64-builds
path: ./
- name: Download Artifacts (linux-x64)
uses: actions/download-artifact@v3
with:
name: affine-linux-x64-builds
path: ./
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Generate Release yml
run: |
cp ./apps/electron/scripts/generate-yml.js .
node generate-yml.js
env:
RELEASE_VERSION: ${{ github.event.inputs.version || needs.before-make.outputs.RELEASE_VERSION }}
- name: Create Release Draft
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
name: ${{ github.event.inputs.version || needs.before-make.outputs.RELEASE_VERSION }}
body: ''
draft: ${{ github.event.inputs.is-draft || true }}
prerelease: ${{ github.event.inputs.is-pre-release || needs.before-make.outputs.version }}
files: |
./VERSION
./*.zip
./*.dmg
./*.exe
./*.nupkg
./RELEASES
./*.AppImage
./*.apk
./*.yml

19
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Try publishing npm@latest release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Try publishing to NPM
run: ./scripts/publish.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,48 +0,0 @@
name: Unit Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.js
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Install Playwright browsers
run: npx playwright install chromium
# - name: Run E2E tests
# run: pnpm run test:e2e
# env:
# NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
# NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
# NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
# NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
# NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
# NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
# NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
- name: Run Unit tests
run: pnpm run test:unit

29
.gitignore vendored
View File

@@ -1,9 +1,18 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
.yarn/versions
# compiled output
*dist
/tmp
/out-tsc
.nyc_output
.coverage
# dependencies
node_modules
@@ -19,21 +28,22 @@ node_modules
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/settings.template.json
!.vscode/launch.template.json
!.vscode/extensions.json
# misc
/.sass-cache
/connect.lock
/coverage
coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
.pnpm-debug.log
/typings
tsconfig.tsbuildinfo
# System Files
.DS_Store
@@ -45,12 +55,23 @@ Thumbs.db
.history
.next
.vercel
out/
storybook-static
i18n-generated.ts
module-resolve.js
/test-results/
/playwright-report/
/playwright/.cache/
# Cache
.eslintcache
next-env.d.ts
.rollup.cache
# Rust
target
*.node
tsconfig.node.tsbuildinfo
lib
affine.db

View File

@@ -1,4 +1,11 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec lint-staged
# check lockfile is up to date
yarn install --mode=update-lockfile
# lint staged files
yarn exec lint-staged
# type check
yarn typecheck

21
.i18n-codegen.json Normal file
View File

@@ -0,0 +1,21 @@
{
"$schema": "./node_modules/@magic-works/i18n-codegen/schema.json",
"version": 1,
"list": [
{
"input": "./packages/i18n/src/resources/en.json",
"output": "./packages/i18n/src/i18n-generated",
"parser": {
"type": "i18next",
"contextSeparator": "$",
"pluralSeparator": "_"
},
"generator": {
"type": "i18next/react-hooks",
"hooks": "useAFFiNEI18N",
"emitTS": true,
"shouldUnescape": true
}
}
]
}

2
.npmrc Normal file
View File

@@ -0,0 +1,2 @@
shell-emulator=true
electron_mirror="https://cdn.npmmirror.com/binaries/electron/"

2
.nvmrc
View File

@@ -1 +1 @@
16
18

View File

@@ -1,28 +0,0 @@
const fs = require('fs');
function getCustomize() {
const customed = fs.existsSync('./module-resolve.js');
if (!customed) {
return null;
}
const script = require('./module-resolve.js');
return script && script.resolve;
}
const customize = getCustomize();
function readPackage(pkg) {
if (!customize) {
return pkg;
}
const customizedPkg = customize(pkg);
return customizedPkg;
}
module.exports = {
hooks: {
readPackage,
},
};

View File

@@ -1 +1,12 @@
pnpm-lock.yaml
yarn.lock
target
lib
test-results
packages/i18n/src/i18n-generated.ts
packages/graphql/src/graphql/index.ts
.next
out
dist
.yarn
tests/affine-legacy/0.7.0-canary.18/static
.github/helm

View File

@@ -1,6 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"arrowParens": "avoid"
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"arrowParens": "avoid"
}

9
.taplo.toml Normal file
View File

@@ -0,0 +1,9 @@
exclude = ["node_modules/**/*.toml"]
[[rule]]
keys = ["dependencies", "*-dependencies"]
[rule.formatting]
align_entries = true
indent_tables = true
reorder_keys = true

View File

@@ -1,3 +1,8 @@
{
"recommendations": ["ms-playwright.playwright", "esbenp.prettier-vscode"]
"recommendations": [
"ms-playwright.playwright",
"esbenp.prettier-vscode",
"deepscan.vscode-deepscan",
"streetsidesoftware.code-spell-checker"
]
}

17
.vscode/launch.template.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "yarn run dev",
"name": "Run Dev",
"request": "launch",
"type": "node-terminal"
},
{
"command": "yarn run dev:local",
"name": "Run Dev Locally",
"request": "launch",
"type": "node-terminal"
}
]
}

14
.vscode/settings.json vendored
View File

@@ -1,14 +0,0 @@
{
"eslint.packageManager": "pnpm",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"cSpell.words": [
"blocksuite",
"datacenter",
"livedemo",
"pnpm",
"selfhosted",
"testid"
]
}

44
.vscode/settings.template.json vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"eslint.packageManager": "yarn",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"cSpell.words": [
"blocksuite",
"livedemo",
"yarn",
"jwst",
"testid",
"octobase",
"selfhosted",
"testid",
"schemars"
],
"explorer.fileNesting.patterns": {
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts, ${capture}.d.ts.map",
"package.json": ".browserslist*, .circleci*, .codecov, .commitlint*, .cz-config.js, .czrc, .dlint.json, .dprint.json, .editorconfig, .eslint*, .firebase*, .flowconfig, .github*, .gitlab*, .gitpod*, .huskyrc*, .jslint*, .lighthouserc.*, .lintstagedrc*, .markdownlint*, .mocha*, .node-version, .nodemon*, .npm*, .nvmrc, .pm2*, .pnp.*, .pnpm*, .prettier*, .releaserc*, .sentry*, .stackblitz*, .styleci*, .stylelint*, .tazerc*, .textlint*, .tool-versions, .travis*, .versionrc*, .vscode*, .watchman*, .xo-config*, .yamllint*, .yarnrc*, Procfile, api-extractor.json, apollo.config.*, appveyor*, ava.config.*, azure-pipelines*, bower.json, build.config.*, commitlint*, crowdin*, cypress.*, dangerfile*, dlint.json, dprint.json, firebase.json, grunt*, gulp*, histoire.config.*, jasmine.*, jenkins*, jest.config.*, jsconfig.*, karma*, lerna*, lighthouserc.*, lint-staged*, nest-cli.*, netlify*, nodemon*, nx.*, package-lock.json, package.nls*.json, phpcs.xml, playwright.config.*, pm2.*, pnpm*, prettier*, pullapprove*, puppeteer.config.*, pyrightconfig.json, release-tasks.sh, renovate*, rollup.config.*, stylelint*, tsconfig.*, tsdoc.*, tslint*, tsup.config.*, turbo*, typedoc*, unlighthouse*, vercel*, vetur.config.*, vitest.config.*, webpack*, workspace.json, xo.config.*, yarn*, babel.*, .babelrc, project.json",
"Cargo.toml": "Cargo.lock",
"README.md": "LICENSE, CHANGELOG.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md"
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vitest.include": [
"packages/**/*.spec.ts",
"packages/**/*.spec.tsx",
"apps/web/**/*.spec.ts",
"apps/web/**/*.spec.tsx",
"apps/electron/src/**/*.spec.ts",
"tests/unit/**/*.spec.ts",
"tests/unit/**/*.spec.tsx"
],
"rust-analyzer.check.extraEnv": {
"DATABASE_URL": "sqlite:affine.db"
}
}

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More