33 lines
772 B
JavaScript
33 lines
772 B
JavaScript
// extension.js
|
||
// Point d’entrée de l’extension GNOME Shell Password Applet.
|
||
|
||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||
import * as ExtensionUtils from 'resource:///org/gnome/shell/misc/extensionUtils.js';
|
||
|
||
import { PasswordRepository } from './dbRepository.js';
|
||
import { PasswordApplet } from './uiComponents.js';
|
||
|
||
let applet;
|
||
let repository;
|
||
|
||
export function init() {
|
||
// Initialisation minimale
|
||
}
|
||
|
||
export function enable() {
|
||
repository = new PasswordRepository();
|
||
repository.init();
|
||
|
||
applet = new PasswordApplet(repository);
|
||
|
||
Main.panel.addToStatusArea('password-applet', applet, 1, 'right');
|
||
}
|
||
|
||
export function disable() {
|
||
if (applet) {
|
||
applet.destroy();
|
||
applet = null;
|
||
}
|
||
repository = null;
|
||
}
|