feat(android): ai chat scaffold (#11124)

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: eyhn <cneyhn@gmail.com>
This commit is contained in:
Aki Chang
2025-04-14 14:05:47 +08:00
committed by GitHub
parent 08dbaae19b
commit 00bd05897e
58 changed files with 3049 additions and 2168 deletions

View File

@@ -92,17 +92,20 @@ function KeyboardToolbarExtension(framework: FrameworkProvider): ExtensionType {
}
if ('show' in affineVirtualKeyboardProvider) {
return class BSVirtualKeyboardWithActionService
const providerWithAction = affineVirtualKeyboardProvider;
class BSVirtualKeyboardServiceWithShowAndHide
extends BSVirtualKeyboardService
implements VirtualKeyboardProviderWithAction
{
show() {
affineVirtualKeyboardProvider.show();
providerWithAction.show();
}
hide() {
affineVirtualKeyboardProvider.hide();
providerWithAction.hide();
}
};
}
return BSVirtualKeyboardServiceWithShowAndHide;
}
return BSVirtualKeyboardService;

View File

@@ -97,7 +97,7 @@ class CloudWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
readonly flavour = this.server.id;
DocStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocStorage
: IndexedDBDocStorage;
DocStorageV1Type = BUILD_CONFIG.isElectron
@@ -106,7 +106,7 @@ class CloudWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
? IndexedDBV1DocStorage
: undefined;
BlobStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteBlobStorage
: IndexedDBBlobStorage;
BlobStorageV1Type = BUILD_CONFIG.isElectron
@@ -115,11 +115,11 @@ class CloudWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
? IndexedDBV1BlobStorage
: undefined;
DocSyncStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocSyncStorage
: IndexedDBDocSyncStorage;
BlobSyncStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteBlobSyncStorage
: IndexedDBBlobSyncStorage;

View File

@@ -82,7 +82,7 @@ class LocalWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
);
DocStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocStorage
: IndexedDBDocStorage;
DocStorageV1Type = BUILD_CONFIG.isElectron
@@ -91,7 +91,7 @@ class LocalWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
? IndexedDBV1DocStorage
: undefined;
BlobStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteBlobStorage
: IndexedDBBlobStorage;
BlobStorageV1Type = BUILD_CONFIG.isElectron
@@ -100,11 +100,11 @@ class LocalWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
? IndexedDBV1BlobStorage
: undefined;
DocSyncStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteDocSyncStorage
: IndexedDBDocSyncStorage;
BlobSyncStorageType =
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS
BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid
? SqliteBlobSyncStorage
: IndexedDBBlobSyncStorage;