Convert to use ESM modules

See: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1499
This commit is contained in:
2023-09-25 12:59:10 -04:00
parent 9a32a113b2
commit 22cb8cd311
7 changed files with 63 additions and 42 deletions

View File

@ -1,7 +1,11 @@
const { Clutter, GObject, Shell, St } = imports.gi;
const PanelMenu = imports.ui.panelMenu;
import Clutter from 'gi://Clutter';
import GObject from 'gi://GObject';
import Shell from 'gi://Shell';
import St from 'gi://St';
var RealmPanelIndicator = GObject.registerClass(
import * as PanelMenu from '../panelMenu.js';
export const RealmPanelIndicator = GObject.registerClass(
class RealmPanelIndicator extends PanelMenu.Button {
_init() {
super._init(0.5, "Current Realm");