2018-12-02 16:38:27 +01:00
|
|
|
'use strict'
|
2018-12-02 15:00:58 +01:00
|
|
|
|
2021-02-19 05:29:21 +01:00
|
|
|
/* global require, App, dojo */
|
2020-06-04 22:27:22 +02:00
|
|
|
|
|
|
|
/* exported Plugins */
|
2018-12-03 08:51:14 +01:00
|
|
|
const Plugins = {};
|
|
|
|
|
2018-12-02 19:52:50 +01:00
|
|
|
require(["dojo/_base/kernel",
|
|
|
|
"dojo/_base/declare",
|
|
|
|
"dojo/ready",
|
|
|
|
"dojo/parser",
|
2020-06-04 21:19:23 +02:00
|
|
|
"fox/App",
|
2018-12-02 19:52:50 +01:00
|
|
|
"dojo/_base/loader",
|
|
|
|
"dojo/_base/html",
|
|
|
|
"dojo/query",
|
|
|
|
"dijit/ProgressBar",
|
|
|
|
"dijit/ColorPalette",
|
|
|
|
"dijit/Dialog",
|
|
|
|
"dijit/form/Button",
|
|
|
|
"dijit/form/ComboButton",
|
|
|
|
"dijit/form/CheckBox",
|
|
|
|
"dijit/form/DropDownButton",
|
|
|
|
"dijit/form/FilteringSelect",
|
|
|
|
"dijit/form/Form",
|
|
|
|
"dijit/form/RadioButton",
|
|
|
|
"dijit/form/Select",
|
|
|
|
"dijit/form/MultiSelect",
|
|
|
|
"dijit/form/SimpleTextarea",
|
|
|
|
"dijit/form/TextBox",
|
|
|
|
"dijit/form/ComboBox",
|
|
|
|
"dijit/form/ValidationTextBox",
|
|
|
|
"dijit/InlineEditBox",
|
|
|
|
"dijit/layout/AccordionContainer",
|
|
|
|
"dijit/layout/BorderContainer",
|
|
|
|
"dijit/layout/ContentPane",
|
|
|
|
"dijit/layout/TabContainer",
|
|
|
|
"dijit/PopupMenuItem",
|
|
|
|
"dijit/Menu",
|
|
|
|
"dijit/Toolbar",
|
|
|
|
"dijit/Tree",
|
|
|
|
"dijit/tree/dndSource",
|
|
|
|
"dijit/tree/ForestStoreModel",
|
|
|
|
"dojo/data/ItemFileWriteStore",
|
2018-12-03 07:33:44 +01:00
|
|
|
"fox/PluginHost",
|
2018-12-02 19:52:50 +01:00
|
|
|
"fox/CommonFilters",
|
2018-12-03 07:33:44 +01:00
|
|
|
"fox/CommonDialogs",
|
2018-12-02 19:52:50 +01:00
|
|
|
"fox/Feeds",
|
|
|
|
"fox/Headlines",
|
|
|
|
"fox/Article",
|
|
|
|
"fox/FeedStoreModel",
|
2019-04-07 12:21:52 +02:00
|
|
|
"fox/FeedTree",
|
2019-04-13 22:36:15 +02:00
|
|
|
"fox/Toolbar",
|
2021-02-12 13:22:10 +01:00
|
|
|
"fox/SingleUseDialog",
|
2020-02-28 12:04:29 +01:00
|
|
|
"fox/form/ValidationTextArea",
|
2019-04-13 22:36:15 +02:00
|
|
|
"fox/form/Select",
|
|
|
|
"fox/form/ComboButton",
|
2020-06-04 21:19:23 +02:00
|
|
|
"fox/form/DropDownButton"], function (dojo, declare, ready, parser) {
|
2018-12-02 19:52:50 +01:00
|
|
|
|
|
|
|
ready(function () {
|
|
|
|
try {
|
2020-06-04 21:19:23 +02:00
|
|
|
App.init(parser, false);
|
2018-12-02 19:52:50 +01:00
|
|
|
} catch (e) {
|
2020-06-04 21:19:23 +02:00
|
|
|
if (typeof App != "undefined" && App.Error)
|
2019-12-14 07:39:44 +01:00
|
|
|
App.Error.report(e);
|
|
|
|
else
|
|
|
|
alert(e + "\n\n" + e.stack);
|
2008-05-15 18:27:11 +02:00
|
|
|
}
|
2018-12-02 19:52:50 +01:00
|
|
|
});
|
|
|
|
});
|
2010-02-18 14:05:35 +01:00
|
|
|
|
2020-06-04 22:27:22 +02:00
|
|
|
/* exported hash_get */
|
2013-02-28 10:06:54 +01:00
|
|
|
function hash_get(key) {
|
2021-02-19 04:35:37 +01:00
|
|
|
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
|
|
|
return obj[key];
|
2013-02-28 10:06:54 +01:00
|
|
|
}
|
2018-12-01 09:18:35 +01:00
|
|
|
|
2020-06-04 22:27:22 +02:00
|
|
|
/* exported hash_set */
|
2013-02-28 10:06:54 +01:00
|
|
|
function hash_set(key, value) {
|
2021-02-19 04:35:37 +01:00
|
|
|
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
|
|
|
obj[key] = value;
|
|
|
|
window.location.hash = dojo.objectToQuery(obj);
|
2013-02-28 10:06:54 +01:00
|
|
|
}
|