mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 19:40:30 +08:00
fix: disable default save page as (#6548)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -26,6 +26,7 @@ type Copilot {
|
|||||||
type CopilotHistories {
|
type CopilotHistories {
|
||||||
"""An mark identifying which view to use to display the session"""
|
"""An mark identifying which view to use to display the session"""
|
||||||
action: String
|
action: String
|
||||||
|
createdAt: DateTime!
|
||||||
messages: [ChatMessage!]!
|
messages: [ChatMessage!]!
|
||||||
sessionId: String!
|
sessionId: String!
|
||||||
|
|
||||||
|
|||||||
@@ -238,6 +238,22 @@ export function useRegisterBlocksuiteEditorCommands() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsubs.push(
|
||||||
|
registerAffineCommand({
|
||||||
|
id: 'alert-ctrl-s',
|
||||||
|
category: 'affine:general',
|
||||||
|
preconditionStrategy: PreconditionStrategy.Never,
|
||||||
|
keyBinding: {
|
||||||
|
binding: '$mod+s',
|
||||||
|
},
|
||||||
|
label: '',
|
||||||
|
icon: null,
|
||||||
|
run() {
|
||||||
|
toast(t['Save']());
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
unsubs.forEach(unsub => unsub());
|
unsubs.forEach(unsub => unsub());
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ query getCopilotHistories($workspaceId: String!, $docId: String, $options: Query
|
|||||||
sessionId
|
sessionId
|
||||||
tokens
|
tokens
|
||||||
action
|
action
|
||||||
|
createdAt
|
||||||
messages {
|
messages {
|
||||||
role
|
role
|
||||||
content
|
content
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ export type GetCopilotHistoriesQuery = {
|
|||||||
sessionId: string;
|
sessionId: string;
|
||||||
tokens: number;
|
tokens: number;
|
||||||
action: string | null;
|
action: string | null;
|
||||||
|
createdAt: string;
|
||||||
messages: Array<{
|
messages: Array<{
|
||||||
__typename?: 'ChatMessage';
|
__typename?: 'ChatMessage';
|
||||||
role: string;
|
role: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user