Skip to content

Commit

Permalink
migrate import to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
gilvbp committed Sep 20, 2023
1 parent 46c8d30 commit a55c098
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 6 additions & 2 deletions src/barLevel2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
* See <https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/3.38.1/COPYING> for details.
*/

const {Atk, Clutter, GObject, St} = imports.gi;
const Config = imports.misc.config;
import Clutter from 'gi://Clutter';
import Atk from 'gi://Atk';
import St from 'gi://St';
import GObject from 'gi://GObject';

import * as Config from 'resource:///org/gnome/shell/misc/config.js';

/* exported BarLevel2 */
var BarLevel2 = GObject.registerClass({
Expand Down
4 changes: 3 additions & 1 deletion src/prefs40/misc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const Gio = imports.gi.Gio;
import Gio from 'gi://Gio';



/* exported extensionUtils */
var extensionUtils = {
Expand Down
12 changes: 7 additions & 5 deletions src/slider2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
* See <https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/3.38.1/COPYING> for details.
*/

const {Atk, Clutter, GObject} = imports.gi;

const ExtensionUtils = imports.misc.extensionUtils;
const Config = imports.misc.config;
import Clutter from 'gi://Clutter';
import Atk from 'gi://Atk';
import St from 'gi://St';
import GObject from 'gi://GObject';

const Me = ExtensionUtils.getCurrentExtension();
const BarLevel2 = Me.imports.src.barLevel2;
import * as Config from 'resource:///org/gnome/shell/misc/config.js';


import { barLevel2 } from "./src/barLevel2.js"
/* exported Slider2 */
var Slider2 = GObject.registerClass({
GTypeName: "Slider2",
Expand Down

0 comments on commit a55c098

Please sign in to comment.