diff --git a/webapp/packages/plugin-browser/src/PluginBrowserBootstrap.ts b/webapp/packages/plugin-browser/src/PluginBrowserBootstrap.ts deleted file mode 100644 index 6764e85a17..0000000000 --- a/webapp/packages/plugin-browser/src/PluginBrowserBootstrap.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * CloudBeaver - Cloud Database Manager - * Copyright (C) 2020-2024 DBeaver Corp and others - * - * Licensed under the Apache License, Version 2.0. - * you may not use this file except in compliance with the License. - */ -import { Bootstrap, injectable } from '@cloudbeaver/core-di'; - -@injectable() -export class PluginBrowserBootstrap extends Bootstrap { - constructor() { - super(); - } - override register(): void { - // TODO: notification appears in unexpected moment - // this.serviceWorkerService.onUpdate.addHandler(({ type, progress }) => { - // progress = progress || 0; - // switch (type) { - // case 'installing': - // break; - // case 'updating': - // if (!this.notification) { - // this.notification = this.notificationService.processNotification( - // () => ProcessSnackbar, - // {}, - // { - // title: 'plugin_browser_update_dialog_title', - // message: this.localizationService.translate('plugin_browser_update_dialog_message', undefined, { progress: '0%' }), - // }, - // ); - // } - // this.notification.controller.setMessage( - // this.localizationService.translate('plugin_browser_update_dialog_message', undefined, { progress: (progress * 100).toFixed(0) + '%' }), - // ); - // break; - // case 'finished': - // this.notification?.notification.close(); - // this.notification = null; - // break; - // } - // }); - } -} diff --git a/webapp/packages/plugin-browser/src/locales/en.ts b/webapp/packages/plugin-browser/src/locales/en.ts index 414aedaf79..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/en.ts +++ b/webapp/packages/plugin-browser/src/locales/en.ts @@ -1,5 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', 'Installing application...'], - ['plugin_browser_update_dialog_title', 'Installing an update...'], - ['plugin_browser_update_dialog_message', 'Application will be restarted automatically \n{arg:progress}'], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/locales/fr.ts b/webapp/packages/plugin-browser/src/locales/fr.ts index c36d16d6d9..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/fr.ts +++ b/webapp/packages/plugin-browser/src/locales/fr.ts @@ -1,5 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', "Installation de l'application..."], - ['plugin_browser_update_dialog_title', "Installation d'une mise à jour..."], - ['plugin_browser_update_dialog_message', "L'application sera redémarrée automatiquement \n{arg:progress}"], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/locales/it.ts b/webapp/packages/plugin-browser/src/locales/it.ts index 112351c82e..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/it.ts +++ b/webapp/packages/plugin-browser/src/locales/it.ts @@ -1,4 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', 'Update in progress...'], - ['plugin_browser_update_dialog_message', 'New version of CloudBeaver is available. Do you want to update?'], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/locales/ru.ts b/webapp/packages/plugin-browser/src/locales/ru.ts index 3b23d02f14..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/ru.ts +++ b/webapp/packages/plugin-browser/src/locales/ru.ts @@ -1,4 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', 'Производится обновление...'], - ['plugin_browser_update_dialog_message', 'Новая версия CloudBeaver доступна. Хотите обновить?'], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/locales/vi.ts b/webapp/packages/plugin-browser/src/locales/vi.ts index f263cb20bb..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/vi.ts +++ b/webapp/packages/plugin-browser/src/locales/vi.ts @@ -1,5 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', 'Đang cài đặt ứng dụng...'], - ['plugin_browser_update_dialog_title', 'Đang cài đặt bản cập nhật...'], - ['plugin_browser_update_dialog_message', 'Ứng dụng sẽ tự động khởi động lại \n{arg:progress}'], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/locales/zh.ts b/webapp/packages/plugin-browser/src/locales/zh.ts index c1bb52cae7..d6d1738de6 100644 --- a/webapp/packages/plugin-browser/src/locales/zh.ts +++ b/webapp/packages/plugin-browser/src/locales/zh.ts @@ -1,4 +1 @@ -export default [ - ['plugin_browser_update_dialog_title', '正在进行更新...'], - ['plugin_browser_update_dialog_message', 'CloudBeaver新版本可用,是否更新?'], -]; +export default []; diff --git a/webapp/packages/plugin-browser/src/manifest.ts b/webapp/packages/plugin-browser/src/manifest.ts index 378f833644..6aaae5133d 100644 --- a/webapp/packages/plugin-browser/src/manifest.ts +++ b/webapp/packages/plugin-browser/src/manifest.ts @@ -1,6 +1,6 @@ /* * CloudBeaver - Cloud Database Manager - * Copyright (C) 2020-2024 DBeaver Corp and others + * Copyright (C) 2020-2025 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. @@ -10,8 +10,5 @@ import type { PluginManifest } from '@cloudbeaver/core-di'; export const browserPlugin: PluginManifest = { info: { name: 'Browser plugin' }, preload: [() => import('./PluginBrowserPreloadingBootstrap.js').then(m => m.PluginBrowserPreloadingBootstrap)], - providers: [ - () => import('./PluginBrowserBootstrap.js').then(m => m.PluginBrowserBootstrap), - () => import('./LocaleService.js').then(m => m.LocaleService), - ], + providers: [() => import('./LocaleService.js').then(m => m.LocaleService)], };