{
// noop
}).catch(err => {
@@ -147,13 +148,13 @@ function onDrop(ev: DragEvent) {
case 'detected-circular-definition':
os.alert({
title: i18n.ts.unableToProcess,
- text: i18n.ts.circularReferenceFolder
+ text: i18n.ts.circularReferenceFolder,
});
break;
default:
os.alert({
type: 'error',
- text: i18n.ts.somethingHappened
+ text: i18n.ts.somethingHappened,
});
}
});
@@ -186,19 +187,19 @@ function rename() {
os.inputText({
title: i18n.ts.renameFolder,
placeholder: i18n.ts.inputNewFolderName,
- default: props.folder.name
+ default: props.folder.name,
}).then(({ canceled, result: name }) => {
if (canceled) return;
os.api('drive/folders/update', {
folderId: props.folder.id,
- name: name
+ name: name,
});
});
}
function deleteFolder() {
os.api('drive/folders/delete', {
- folderId: props.folder.id
+ folderId: props.folder.id,
}).then(() => {
if (defaultStore.state.uploadFolder === props.folder.id) {
defaultStore.set('uploadFolder', null);
@@ -209,13 +210,13 @@ function deleteFolder() {
os.alert({
type: 'error',
title: i18n.ts.unableToDelete,
- text: i18n.ts.hasChildFilesOrFolders
+ text: i18n.ts.hasChildFilesOrFolders,
});
break;
default:
os.alert({
type: 'error',
- text: i18n.ts.unableToDelete
+ text: i18n.ts.unableToDelete,
});
}
});
@@ -230,11 +231,11 @@ function onContextmenu(ev: MouseEvent) {
text: i18n.ts.openInWindow,
icon: 'fas fa-window-restore',
action: () => {
- os.popup(defineAsyncComponent(() => import('./drive-window.vue')), {
- initialFolder: props.folder
+ os.popup(defineAsyncComponent(() => import('@/components/MkDriveWindow.vue')), {
+ initialFolder: props.folder,
}, {
}, 'closed');
- }
+ },
}, null, {
text: i18n.ts.rename,
icon: 'fas fa-i-cursor',
diff --git a/packages/client/src/components/drive.nav-folder.vue b/packages/client/src/components/MkDrive.navFolder.vue
similarity index 100%
rename from packages/client/src/components/drive.nav-folder.vue
rename to packages/client/src/components/MkDrive.navFolder.vue
diff --git a/packages/client/src/components/drive.vue b/packages/client/src/components/MkDrive.vue
similarity index 99%
rename from packages/client/src/components/drive.vue
rename to packages/client/src/components/MkDrive.vue
index 9e2ef1b93..9f0016adc 100644
--- a/packages/client/src/components/drive.vue
+++ b/packages/client/src/components/MkDrive.vue
@@ -90,10 +90,10 @@
diff --git a/packages/client/src/components/formula-core.vue b/packages/client/src/components/MkFormulaCore.vue
similarity index 100%
rename from packages/client/src/components/formula-core.vue
rename to packages/client/src/components/MkFormulaCore.vue
diff --git a/packages/client/src/components/gallery-post-preview.vue b/packages/client/src/components/MkGalleryPostPreview.vue
similarity index 84%
rename from packages/client/src/components/gallery-post-preview.vue
rename to packages/client/src/components/MkGalleryPostPreview.vue
index 082ac669d..2afc8536e 100644
--- a/packages/client/src/components/gallery-post-preview.vue
+++ b/packages/client/src/components/MkGalleryPostPreview.vue
@@ -14,26 +14,14 @@
-
diff --git a/packages/client/src/components/ripple.vue b/packages/client/src/components/MkRipple.vue
similarity index 52%
rename from packages/client/src/components/ripple.vue
rename to packages/client/src/components/MkRipple.vue
index 401e78e30..9d93211d5 100644
--- a/packages/client/src/components/ripple.vue
+++ b/packages/client/src/components/MkRipple.vue
@@ -1,8 +1,9 @@
-
+