From 9355e23a909a7801b3ccdf68ee05b3480be42407 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 08:29:37 +0200 Subject: Adding upstream version 4.7. Signed-off-by: Daniel Baumann --- content/manager/accountManager.js | 140 ++++++ content/manager/accountManager.xhtml | 27 ++ content/manager/accounts.js | 498 +++++++++++++++++++++ content/manager/accounts.xhtml | 119 +++++ content/manager/addonoptions.xhtml | 15 + content/manager/catman.xhtml | 25 ++ content/manager/editAccount.js | 391 ++++++++++++++++ content/manager/editAccount.xhtml | 87 ++++ content/manager/eventlog/eventlog.js | 158 +++++++ content/manager/eventlog/eventlog.xhtml | 21 + content/manager/help.xhtml | 58 +++ content/manager/installProvider.xhtml | 35 ++ content/manager/manageProvider.js | 40 ++ content/manager/manager.css | 38 ++ content/manager/missingProvider.xhtml | 21 + content/manager/noaccounts.xhtml | 17 + .../manager/support-wizard/support-wizard.xhtml | 44 ++ content/manager/supporter.xhtml | 77 ++++ 18 files changed, 1811 insertions(+) create mode 100644 content/manager/accountManager.js create mode 100644 content/manager/accountManager.xhtml create mode 100644 content/manager/accounts.js create mode 100644 content/manager/accounts.xhtml create mode 100644 content/manager/addonoptions.xhtml create mode 100644 content/manager/catman.xhtml create mode 100644 content/manager/editAccount.js create mode 100644 content/manager/editAccount.xhtml create mode 100644 content/manager/eventlog/eventlog.js create mode 100644 content/manager/eventlog/eventlog.xhtml create mode 100644 content/manager/help.xhtml create mode 100644 content/manager/installProvider.xhtml create mode 100644 content/manager/manageProvider.js create mode 100644 content/manager/manager.css create mode 100644 content/manager/missingProvider.xhtml create mode 100644 content/manager/noaccounts.xhtml create mode 100644 content/manager/support-wizard/support-wizard.xhtml create mode 100644 content/manager/supporter.xhtml (limited to 'content/manager') diff --git a/content/manager/accountManager.js b/content/manager/accountManager.js new file mode 100644 index 0000000..d442222 --- /dev/null +++ b/content/manager/accountManager.js @@ -0,0 +1,140 @@ +/* + * This file is part of TbSync. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + "use strict"; + +var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); +var { TbSync } = ChromeUtils.import("chrome://tbsync/content/tbsync.jsm"); + +var tbSyncAccountManager = { + + onloadoptions: function () { + window.close(); + }, + + onunloadoptions: function () { + TbSync.manager.openManagerWindow(0); + }, + + onload: function () { + TbSync.AccountManagerTabs = ["accounts.xhtml", "catman.xhtml", "supporter.xhtml", "help.xhtml"]; + tbSyncAccountManager.selectTab(0); + }, + + onunload: function () { + TbSync.manager.prefWindowObj = null; + }, + + selectTab: function (t) { + const LOAD_FLAGS_NONE = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE; + + //set active tab (css selector for background color) + for (let i=0; i + + + + + + + + + + + + + + + + +