Compare commits
No commits in common. "31b39b8eb7003ecbf5a8ad80d3346fd53ec7b77b" and "168b509b2282a2658d0f803d62a75140235632d0" have entirely different histories.
31b39b8eb7
...
168b509b22
18
extension.js
18
extension.js
@ -28,16 +28,16 @@ let _httpSession;
|
||||
let _status;
|
||||
let _ok_text;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const Mainloop = imports.mainloop;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const PanelMenu = imports.ui.panelMenu;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
|
||||
const Gettext = imports.gettext.domain(GETTEXT_DOMAIN);
|
||||
const _ = Gettext.gettext;
|
||||
const Lang = imports.lang;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Main = imports.ui.main;
|
||||
const PanelMenu = imports.ui.panelMenu;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const Mainloop = imports.mainloop;
|
||||
|
||||
const { GObject, St, Clutter, Gio } = imports.gi;
|
||||
|
||||
@ -46,9 +46,9 @@ const SETTINGS_SCHEMA_ACCOUNT = "org.gnome.shell.extensions.monito.account";
|
||||
const SETTINGS_SCHEMA_ACCOUNT_PATH = "/org/gnome/shell/extensions/monito/account";
|
||||
|
||||
const Convenience = Me.imports.convenience;
|
||||
const Preferences = Me.imports.prefs;
|
||||
const Icinga = Me.imports.servers.icinga.Icinga;
|
||||
const Icinga2 = Me.imports.servers.icinga2.Icinga2;
|
||||
const Preferences = Me.imports.prefs;
|
||||
|
||||
let settings = Convenience.getSettings(SETTINGS_SCHEMA);
|
||||
let account_settings = [ ];
|
||||
|
@ -23,10 +23,10 @@
|
||||
const { Soup } = imports.gi;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Preferences = Me.imports.prefs;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
|
||||
let _httpSession;
|
||||
|
||||
@ -65,16 +65,9 @@ class Icinga {
|
||||
_httpSession.queue_message(message, Lang.bind
|
||||
(this, function(_httpSession, message)
|
||||
{
|
||||
log ( '>>> ' + message.status_code );
|
||||
|
||||
if ( message.status_code != Soup.Status.OK )
|
||||
{
|
||||
log ( '>>> error: ' + message.reason_phrase );
|
||||
Main.notify ( 'Monito: ' + name, message.reason_phrase );
|
||||
return;
|
||||
}
|
||||
|
||||
// log ( '>>> ' + message.response_body.data );
|
||||
let json = JSON.parse(message.response_body.data);
|
||||
|
||||
this.status = json.status;
|
||||
|
||||
extension.refreshUI ( this );
|
||||
|
@ -23,10 +23,10 @@
|
||||
const { Soup } = imports.gi;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Preferences = Me.imports.prefs;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
|
||||
let _httpSession;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user