2018-12-02 15:38:27 +00:00
|
|
|
'use strict'
|
2018-12-02 14:00:58 +00:00
|
|
|
|
2021-02-12 16:02:09 +00:00
|
|
|
/* global require, App, $H */
|
2020-06-04 20:27:22 +00:00
|
|
|
|
|
|
|
/* exported Plugins */
|
2018-12-03 07:51:14 +00:00
|
|
|
const Plugins = {};
|
|
|
|
|
2018-12-02 18:52:50 +00:00
|
|
|
require(["dojo/_base/kernel",
|
|
|
|
"dojo/_base/declare",
|
|
|
|
"dojo/ready",
|
|
|
|
"dojo/parser",
|
2020-06-04 19:19:23 +00:00
|
|
|
"fox/App",
|
2018-12-02 18:52:50 +00: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 06:33:44 +00:00
|
|
|
"fox/PluginHost",
|
2018-12-02 18:52:50 +00:00
|
|
|
"fox/CommonFilters",
|
2018-12-03 06:33:44 +00:00
|
|
|
"fox/CommonDialogs",
|
2018-12-02 18:52:50 +00:00
|
|
|
"fox/Feeds",
|
|
|
|
"fox/Headlines",
|
|
|
|
"fox/Article",
|
|
|
|
"fox/FeedStoreModel",
|
2019-04-07 10:21:52 +00:00
|
|
|
"fox/FeedTree",
|
2019-04-13 20:36:15 +00:00
|
|
|
"fox/Toolbar",
|
2021-02-12 12:22:10 +00:00
|
|
|
"fox/SingleUseDialog",
|
2020-02-28 11:04:29 +00:00
|
|
|
"fox/form/ValidationTextArea",
|
2019-04-13 20:36:15 +00:00
|
|
|
"fox/form/Select",
|
|
|
|
"fox/form/ComboButton",
|
2020-06-04 19:19:23 +00:00
|
|
|
"fox/form/DropDownButton"], function (dojo, declare, ready, parser) {
|
2018-12-02 18:52:50 +00:00
|
|
|
|
|
|
|
ready(function () {
|
|
|
|
try {
|
2020-06-04 19:19:23 +00:00
|
|
|
App.init(parser, false);
|
2018-12-02 18:52:50 +00:00
|
|
|
} catch (e) {
|
2020-06-04 19:19:23 +00:00
|
|
|
if (typeof App != "undefined" && App.Error)
|
2019-12-14 06:39:44 +00:00
|
|
|
App.Error.report(e);
|
|
|
|
else
|
|
|
|
alert(e + "\n\n" + e.stack);
|
2008-05-15 16:27:11 +00:00
|
|
|
}
|
2018-12-02 18:52:50 +00:00
|
|
|
});
|
|
|
|
});
|
2010-02-18 13:05:35 +00:00
|
|
|
|
2020-06-04 20:27:22 +00:00
|
|
|
/* exported hash_get */
|
2013-02-28 09:06:54 +00:00
|
|
|
function hash_get(key) {
|
2021-02-18 18:51:18 +00:00
|
|
|
console.warn("FIXME: hash_get", key);
|
|
|
|
|
|
|
|
//const kv = window.location.hash.substring(1).toQueryParams();
|
|
|
|
//return kv[key];
|
|
|
|
console.warn("FIXME: hash_get", key);
|
2013-02-28 09:06:54 +00:00
|
|
|
}
|
2018-12-01 08:18:35 +00:00
|
|
|
|
2020-06-04 20:27:22 +00:00
|
|
|
/* exported hash_set */
|
2013-02-28 09:06:54 +00:00
|
|
|
function hash_set(key, value) {
|
2021-02-18 18:51:18 +00:00
|
|
|
console.warn("FIXME: hash_set", key, value);
|
|
|
|
|
|
|
|
/*const kv = window.location.hash.substring(1).toQueryParams();
|
2017-03-04 11:34:44 +00:00
|
|
|
kv[key] = value;
|
2021-02-18 18:51:18 +00:00
|
|
|
window.location.hash = $H(kv).toQueryString();*/
|
|
|
|
|
|
|
|
console.warn("FIXME: hash_set", key);
|
2013-02-28 09:06:54 +00:00
|
|
|
}
|