JimmFly
2df2003bd7
fix(core): handle composition event for Input component ( #8351 )
...
close AF-1065
2024-09-25 02:02:23 +00:00
forehalo
a387e4ac07
refactor: migrate environment to BUILD_CONFIG ( #8206 )
2024-09-13 07:58:20 +00:00
JimmFly
8e71815e46
fix(component): windows client does not have app controls on some pages ( #8176 )
...
close AF-1266
2024-09-12 06:35:55 +00:00
EYHN
2524491bd1
fix(env): is mobile flag ( #8005 )
...
only 'mobile' entry has isMobile = true flag
2024-09-04 09:21:36 +00:00
pengx17
2ac803c73f
feat(mobile): sign in page ( #8039 )
...
fix AF-1237
2024-09-04 03:58:54 +00:00
forehalo
e33aa35f7e
refactor(core): auth ( #7999 )
...
closes AF-753 AF-1227
2024-09-03 09:03:43 +00:00
Don Isaac
dbcfd24ed8
fix: remove unused variables ( #7968 )
2024-08-26 14:23:56 +08:00
forehalo
0ba516866f
fix(server): change password with token should be public ( #7855 )
2024-08-14 03:34:35 +00:00
pengx17
00ee2a8852
fix(electron): always show traffic light for mac ( #7773 )
...
fix AF-1209, fix PD-1550
2024-08-07 08:44:35 +00:00
CatsJuice
3d855647c7
refactor(component): refactor the implementation of Button and IconButton ( #7716 )
...
## Button
- Remove props withoutHoverStyle
refactor hover impl with independent layer, so that hover-color won't affect the background even if is overridden outside
- Update `type` (renamed to `variant`):
- remove `processing` and `warning`
- rename `default` with `secondary`
- Remove `shape` props
- Remove `icon` and `iconPosition`, replaced with `prefix: ReactNode` and `suffix: ReactNode`
- Integrate tooltip for more convenient usage
- New Storybook document
- Focus style
## IconButton
- A Wrapper base on `<Button />`
- Override Button size and variant
- size: `'12' | '14' | '16' | '20' | '24' | number`
These presets size are referenced from the design system.
- variant: `'plain' | 'solid' | 'danger' | 'custom'`
- Inset icon via Button 's prefix
## Fix
- fix some button related issues
- close AF-1159, AF-1160, AF-1161, AF-1162, AF-1163, AF-1158, AF-1157
## Storybook
![CleanShot 2024-08-03 at 14.57.20@2x.png ](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/f5a76110-35d0-4082-a940-efc12bed87b0.png )
2024-08-05 02:57:23 +00:00
pengx17
1efc1d0f5b
feat(electron): multi tabs support ( #7440 )
...
use https://www.electronjs.org/docs/latest/api/web-contents-view to serve different tab views
added tabs view manager in electron to handle multi-view actions and events.
fix AF-1111
fix AF-999
fix PD-1459
fix AF-964
PD-1458
2024-07-29 11:05:22 +00:00
EYHN
7c0a686cd9
refactor(i18n): new hook api ( #7273 )
...
# NEW HOOK API
`useI18n`: same as `useAFFiNEI18N`, with additional APIs
```ts
import { useI18n } from '@affine/i18n'
const i18n = useI18n()
i18n['hello world']() -> 你好世界
```
# NEW GLOBAL i18n Instance
`I18n`: use i18n capabilities outside of React
```ts
import { I18n } from '@affine/i18n'
I18n['hello world']() -> 你好世界
```
# NEW TYPES
`I18nKeys` -> all i18n keys
`I18nString` -> An i18n message (key&options)
transfer and store i18n text outside of React
```ts
const msg: I18nString = {
key: 'helloworld',
options: {
arg1: '123'
}
}
I18n.t(msg) -> 你好世界123
```
before:
```ts
registerCommand('open-page', {
name: t('command.open-page')
// ^- translation happens here,
})
```
after:
```ts
registerCommand('open-page', {
name: { key: 'command.open-page' }
// ^- store I18nString here, translate when the command render to UI
})
```
2024-06-20 02:19:41 +00:00
L-Sun
09201d42a0
chore: bump up @blocksuite/icons version ( #7233 )
2024-06-18 17:07:11 +08:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08:00
JimmFly
6ea20e477b
feat(core): add sign in to not found page ( #6496 )
...
close AFF-211
2024-04-10 07:27:02 +00:00
EYHN
939fa9cef0
fix(component): sign up password max length notify ( #6467 )
...
The input `maxLength` causes password to be automatically truncated without notice user.
2024-04-10 06:20:21 +00:00
CatsJuice
9127bfae67
refactor(core): replace all notification relies on jotai ( #6417 )
...
- remove all notification that implemented with jotai and replaced with new `notify`
- Add some notify presets:
- `notify.error`
- `notify.success`
- `notify.warning`
2024-04-02 03:19:07 +00:00
fundon
8ee9f6ec05
chore: improve password error message ( #6255 )
...
chore: improve error message
chore: add password minlength & maxlength i18n
chore: check max length
fix: i18n variables
feat: add CredentialsRequirementType
2024-03-26 07:15:06 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates ( #6279 )
2024-03-25 03:55:33 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth ( #5895 )
...
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
2024-03-12 10:00:09 +00:00
JimmFly
0be62d892d
refactor(core): use custom scrollbar for editor and adjust shared page style ( #5752 )
...
Close TOV-481
- Use a custom scrollbar component for editor
- Modified the header of the share page and added a new footer
2024-02-26 08:54:52 +00:00
Peng Xiao
7d951a975f
fix(core): replace most --affine with cssVar ( #5728 )
...
using a [babel plugin](https://gist.github.com/pengx17/49e24ae8a5a609bdaff122ee8c679d1c ) to transform all var(--affine-xxx) to cssVar
Some issues:
- tried ast-grep but it seems to be not easy to add imports conditionally
- current work does not work well with ts with types because babel will strip them out
2024-02-01 09:33:11 +00:00
JimmFly
353b27d796
refactor(component): adapt the questionnaire component to the desktop client ( #5514 )
...
close TOV-240
Windows desktop:
<img width="1145" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/6b12a6bd-c020-4d02-a366-e97e1afd1e10 ">
MacOS desktop:
<img width="1187" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/9a3c909c-b283-4ddc-a187-3db12b26a7f5 ">
Web:
<img width="1438" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/e8e04258-9275-470d-a3f8-5d18f5b29eb3 ">
2024-01-19 10:07:18 +00:00
liuyi
b9f20877d0
feat(core): make password sigin default if user has one ( #5577 )
2024-01-17 11:13:58 +00:00
JimmFly
f25814b31c
chore(core): add background color to questionnaire ( #5396 )
2023-12-26 07:13:44 +00:00
DarkSky
33a589a8ba
feat: onboarding electron redirect ( #5327 )
2023-12-19 13:54:43 +00:00
DarkSky
8ea910a2bb
feat: onboarding page ( #5277 )
2023-12-19 13:54:41 +00:00
JimmFly
38617abc17
fix(component): fix incorrect input component width and height styling ( #5292 )
...
after:
https://github.com/toeverything/AFFiNE/assets/102217452/5d8f51c5-c7a6-4ec8-b2b0-7f1391f045c7
2023-12-19 08:27:46 +00:00
JimmFly
7ec8e49b3b
feat(core): add responsive styles to registration page ( #5044 )
...
The responsive style of the login and registration page has been adjusted, with special treatment given to the input.
work for #4843
2023-12-06 10:43:14 +00:00
Cats Juice
9c50dbc362
feat(core): remove all imports from design/component ( #5078 )
...
feat(core): remove all imports from design/component
feat(plugin): remove imports from design-components
feat(storybook): remove design-components imoprts
feat(core): remove
fix(component): remove design/component import in local-demo-tip
2023-12-04 08:32:16 +00:00
LongYinan
7f09652cca
fix(core): handle the getSession network error properly ( #4909 )
...
If network offline or API error happens, the `session` returned by the `useSession` hook will be null, so we can't assume it is not null.
There should be following changes:
1. create a page in ErrorBoundary to let the user refetch the session.
2. The `SessionProvider` stop to pull the new session once the session is null, we need to figure out a way to pull the new session when the network is back or the user click the refetch button.
2023-11-20 11:04:39 +08:00
Joooye_34
af72bf0f69
feat(core): support signup set password before goto stripe payment url ( #4892 )
2023-11-09 11:58:16 +00:00
Joooye_34
bed9310519
refactor(infra): directory structure ( #4615 )
2023-10-18 15:30:08 +00:00