mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#3558 removes unused code (#3561)
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
@@ -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 [];
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
export default [
|
||||
['plugin_browser_update_dialog_title', 'Производится обновление...'],
|
||||
['plugin_browser_update_dialog_message', 'Новая версия CloudBeaver доступна. Хотите обновить?'],
|
||||
];
|
||||
export default [];
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
export default [
|
||||
['plugin_browser_update_dialog_title', '正在进行更新...'],
|
||||
['plugin_browser_update_dialog_message', 'CloudBeaver新版本可用,是否更新?'],
|
||||
];
|
||||
export default [];
|
||||
|
||||
@@ -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)],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user