mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user