AFFiNE/packages/frontend/electron
liuyi fb3a0e7b8f
refactor(server): auth (#5895)
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.

## Server

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

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

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

## Client

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

## NOTE:

Tests will be adding in the future
2024-03-12 10:00:09 +00:00
..
resources fix(electron): update app icons (#4789) 2023-10-31 09:09:42 +00:00
scripts build: do not fail build for a non-fatal error (#6017) 2024-03-05 08:27:47 +00:00
src refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
test feat(core): split right sidebar (#5971) 2024-03-04 06:42:12 +00:00
.gitignore refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
dev-app-update.yml refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
forge.config.mjs fix(electron): linux login issues (#5821) 2024-02-19 14:24:59 +00:00
package.json feat: bump blocksuite (#6015) 2024-03-05 07:35:05 +00:00
project.json refactor(infra): remove old plugin system (#5411) 2023-12-27 02:49:59 +00:00
README.md refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
tsconfig.json refactor(infra): remove old plugin system (#5411) 2023-12-27 02:49:59 +00:00
tsconfig.node.json refactor(infra): remove old plugin system (#5411) 2023-12-27 02:49:59 +00:00
tsconfig.test.json refactor(electron): fix vitest and add behavior test (#4655) 2023-10-18 22:14:30 -05:00
vitest.config.ts chore: bump up vitest monorepo to v1 (major) (#5217) 2023-12-18 13:46:29 +00:00

AFFiNE Electron App

Development

To run AFFiNE Desktop Client Application locally, run the following commands:

# in repo root
yarn install
yarn workspace @affine/native build
yarn dev

# in packages/frontend/electron
yarn generate-assets
yarn dev # or yarn prod for production build

Troubleshooting

Credits

Most of the boilerplate code is generously borrowed from the following