Commit Graph

1013 Commits

Author SHA1 Message Date
EYHN
01b2339173 refactor(core): better block link (#8082) 2024-09-04 08:13:22 +00:00
EYHN
fb64bc7e55 feat(core): indexer upgrade (#8062) 2024-09-04 07:31:03 +00:00
EYHN
51f3566bec fix(core): fix menu bugs (#8074) 2024-09-04 07:19:09 +00:00
pengx17
2ac803c73f feat(mobile): sign in page (#8039)
fix AF-1237
2024-09-04 03:58:54 +00:00
pengx17
7dde509970 fix(core): page info modal styles (#8067) 2024-09-03 12:46:37 +00:00
Saul-Mirone
681f4561fb chore: bump bs (#8071) 2024-09-03 12:12:59 +00:00
pengx17
ae3b13bfb4 fix(electron): only the active view should respond to CMD+N (#8068) 2024-09-03 11:48:06 +00:00
fundon
98d9295259 feat(core): support block or element reference links (#7946)
Upstreams: https://github.com/toeverything/blocksuite/pull/8021

* open doc with mode
* monitor mode changes in query string
* scroll anchoring

https://github.com/user-attachments/assets/681abff8-e51b-47ea-bb71-447e8b312142

https://github.com/user-attachments/assets/e73ed4c0-4e33-45f8-9db4-d8eed3525d05
2024-09-03 09:49:15 +00:00
darkskygit
935771c8a8 feat(server): make captcha modular (#5961) 2024-09-03 09:03:51 +00:00
forehalo
52c9da67f0 refactor(auth): authenticate user in main window (#8032) 2024-09-03 09:03:47 +00:00
forehalo
e33aa35f7e refactor(core): auth (#7999)
closes AF-753 AF-1227
2024-09-03 09:03:43 +00:00
SOUMITRA-SAHA
bc306faa2c fix(core): handle text overflow styles for search box (#8054) 2024-09-03 16:47:29 +08:00
EYHN
a6484018ef refactor(core): refactor editor query string selector (#8058)
The editor selector is the information for locating a block, which can automatically focus on a certain content when a user opens a document.

```
export type EditorSelector = {
  blockIds?: string[];
  elementIds?: string[];
};
```

The selector can be set from multiple places, such as passing it in the center peek parameter, or passing it in the query part of the URL.

This pr decoupled the selector from the query string and now available at `editorService.editor.selector$`
2024-09-03 06:37:58 +00:00
fundon
f9d0a348c4 feat(core): add custom configuration to database options (#7933)
Upstreams: https://github.com/toeverything/blocksuite/pull/8022

* add custom configuration to database options
* add `Copy link to block` button to database options

<img width="518" alt="Screenshot 2024-09-03 at 08 57 59" src="https://github.com/user-attachments/assets/a421cd82-abd4-456e-af17-c4db6c4ff3ae">
2024-09-03 03:52:10 +00:00
fundon
c3ae219992 feat(core): add block and element toolbar widget custom config (#7886)
Upstreams: https://github.com/toeverything/blocksuite/pull/8001 https://github.com/toeverything/blocksuite/pull/7964

* add block/element toolbar widget config
* add `Copy link to block` to `more menu` on  block/element toolbar

<img width="376" alt="Screenshot 2024-08-16 at 16 20 08" src="https://github.com/user-attachments/assets/49b41de9-39d1-4f55-ac9b-445fe020187a">
2024-09-03 03:52:08 +00:00
CatsJuice
ad110078ac feat(mobile): setting page ui (#8048)
AF-1275
2024-09-03 03:27:18 +00:00
JimmFly
bea3d42f40 feat(core): add color picker ui to editor settings (#8053)
close AF-1306 AF-1280

![CleanShot 2024-09-03 at 00 23 10@2x](https://github.com/user-attachments/assets/46928c85-45ec-43b1-bbde-24beb7c5c580)
2024-09-03 03:14:50 +00:00
L-Sun
392fef663e chore: bump blocksuite (#8052)
## Features
- https://github.com/toeverything/BlockSuite/pull/8115 @EYHN

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/8119 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/8117 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/8114 @donteatfriedrice

## Misc
- https://github.com/toeverything/BlockSuite/pull/8106 @fundon
- https://github.com/toeverything/BlockSuite/pull/8116 @doodlewind
2024-09-02 15:25:26 +00:00
JimmFly
130e6ab4a3 chore: adjust custom font family style (#8040)
close AF-1302 AF-1301
2024-09-02 15:11:58 +00:00
akumatus
2e37ee0e33 feat(core): add actions to editor settings (#8030)
# What Changed?
- Add actions of following edgeless-elements editor settings:
  - note
  - connector
  - edgeless text
  - pen
2024-09-02 14:23:04 +00:00
Saul-Mirone
56f4634c1f chore: bump bs with new extension api (#8042) 2024-09-02 10:32:22 +00:00
pengx17
61e37d8873 test(mobile): basic e2e tests (#8031)
fix AF-1289

1. tested on 'webkit'
2. a few baseline test cases
2024-09-02 10:20:24 +00:00
JimmFly
a992376053 chore: modify the text content of share menu (#8026)
![CleanShot 2024-08-30 at 12 18 27@2x](https://github.com/user-attachments/assets/f43a6d31-1bdb-491c-95f6-4609973b84a6)
![CleanShot 2024-08-30 at 12 18 40@2x](https://github.com/user-attachments/assets/387d4523-d5fb-41d4-8b46-c278432db05e)
2024-09-02 09:56:17 +00:00
darkskygit
d93d39e29d feat: add editor record (#7938)
fix CLOUD-58, CLOUD-61, CLOUD-62, PD-1607, PD-1608
2024-09-02 09:37:39 +00:00
JimmFly
a802dc4fd6 chore: adjust experimental features text (#8044)
close AF-1313 AF-1312 AF-1311 AF-1310
2024-09-02 07:40:55 +00:00
pengx17
adf314d594 fix(mobile): adjust peek view style for mobile (#8003)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/c3a04128-0309-4df6-ab6d-0a5129483c73.png)
2024-08-29 16:45:22 +00:00
pengx17
7ae141bd9e feat(mobile): add mobile detail page (#7993)
fix AF-1241
2024-08-29 16:45:22 +00:00
CatsJuice
f1bb1fc9b8 feat(mobile): search page ui (#8012)
feat(mobile): search page ui

fix(core): quick search tags performance issue
2024-08-29 09:05:23 +00:00
JimmFly
5e8683c9be feat(core): add outgoing links to doc info (#7955)
close AF-1270

![CleanShot 2024-08-23 at 13 22 38@2x](https://github.com/user-attachments/assets/7eb21db5-ab33-41ad-a51a-fd2cf46a0e30)
2024-08-29 06:41:41 +00:00
CatsJuice
3ce92f2abc feat(mobile): all docs page ui impl (#7976) 2024-08-29 06:09:48 +00:00
CatsJuice
db76780bc9 feat(mobile): mobile index page UI (#7959) 2024-08-29 06:09:47 +00:00
CatsJuice
f37051dc87 feat(core): mobile renderer for explorer (#7942) 2024-08-29 06:09:45 +00:00
EYHN
b96ad57568 feat(core): import template (#8000) 2024-08-29 04:01:35 +00:00
JimmFly
4ec45a247e feat(core): add sign in button to shared doc (#7952)
![CleanShot 2024-08-23 at 12 05 12@2x](https://github.com/user-attachments/assets/2c146707-9551-4044-b289-0904653f30f2)
2024-08-29 02:44:06 +00:00
darkskygit
dde45748d9 feat: filter out empty workpace in sidebar list (#7960)
fix PD-1567
2024-08-28 08:43:44 +00:00
L-Sun
06685683ae fix(core): add mobile edit button (#7996) 2024-08-28 06:38:45 +00:00
JimmFly
65a87196d5 feat(core): impl the Doc Info and Bi-Directional Links display settings (#7991)
https://github.com/user-attachments/assets/a469254c-a2ea-4cf4-837e-f9a8bbe5b378
2024-08-28 02:35:29 +00:00
JimmFly
09ab922572 feat(core): add new doc default mode setting (#7990)
https://github.com/user-attachments/assets/523b14f3-ee42-4061-8ca2-221e071d5cc9
2024-08-28 02:35:28 +00:00
JimmFly
c53adbc7e8 chore: adjust font menu and slider style (#7989)
![CleanShot 2024-08-27 at 15 52 09@2x](https://github.com/user-attachments/assets/69c8a340-0d59-4d8d-846e-73dc81f2800a)
![CleanShot 2024-08-27 at 15 52 39@2x](https://github.com/user-attachments/assets/2177f267-bdc1-459b-b043-868642b08d9a)
2024-08-28 02:35:26 +00:00
JimmFly
03b2cda845 refactor(core): move fontFamily and fullWidthLayout to editor settings (#7988) 2024-08-28 02:35:24 +00:00
EYHN
3e810eb043 fix(core): no share page in desktop (#7983) 2024-08-27 12:37:30 +00:00
pengx17
611925fa10 fix(electron): adjust app-tabs-header styles (#7961)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/6dc54c24-e90f-4c3f-a743-ce7f4512e616.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/3cbfe8f8-d4b8-4167-b557-89184bdcce9c.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/28ba3ad1-22a7-487a-a9a4-d53a658457f9.png)

also fix PD-1631
2024-08-26 09:34:27 +00:00
EYHN
bc86f0a672 feat(core): editor setting service (#7956)
define editor setting schema in `packages/frontend/core/src/modules/editor-settting/schema.ts`

e.g.

```ts
const BSEditorSettingSchema = z.object({
  connector: z.object({
    stroke: z
      .union([
        z.string(),
        z.object({
          dark: z.string(),
          light: z.string(),
        }),
      ])
      .default('#000000'), // default is necessary
  }),
});
```

schema can be defined in a nested way. EditorSetting api is in flat way:

editorSetting api:

```ts
editorSetting.settings$ === {
  'connector.stroke': '#000000'
}
editorSetting.set('connector.stroke', '#000')
```

and use `expandFlattenObject` function can restore the flattened structure to a nested structure. nested structure is required by blocksuite

```ts
editorSetting.settings$.map(expandFlattenObject) === {
  connector: {
    stroke: '#000000'
  }
}
```
2024-08-26 08:19:24 +00:00
JimmFly
3c37006657 chore(core): add Display bi-directional links setting row ui (#7954)
close AF-1269

![CleanShot 2024-08-23 at 12 59 50@2x](https://github.com/user-attachments/assets/bcdc70c4-029e-4254-8367-a390a244e30b)
2024-08-26 06:25:32 +00:00
Don Isaac
dbcfd24ed8 fix: remove unused variables (#7968) 2024-08-26 14:23:56 +08:00
JimmFly
920afa7bf1 feat(core): adjust share menu ui (#7931)
https://github.com/user-attachments/assets/6538c046-3872-4c98-a389-81b86a2978a4
2024-08-23 02:07:51 +00:00
darkskygit
b57388fd85 feat: block slides insert before image load finished (#7948) 2024-08-22 17:46:06 +00:00
pengx17
5e555b3807 fix(electron): adjust app-tabs-header styles (#7947)
fix AF-1171
2024-08-22 13:10:27 +00:00
pengx17
2f02f0da2b fix(electron): should not send switchSplitView event when clicking on the active view (#7944) 2024-08-22 05:26:29 +00:00
JimmFly
20174b9cbe feat(core): add custom font family setting (#7924)
close AF-1255

https://github.com/user-attachments/assets/d44359b6-b75c-4883-a57b-1f226586feec
2024-08-22 04:24:44 +00:00