major moving around of files
This commit is contained in:
parent
4686f89010
commit
8f0f7fb923
15 changed files with 303 additions and 240 deletions
|
@ -2,52 +2,23 @@
|
|||
Build the interface for popup
|
||||
*/
|
||||
|
||||
// Import modules.
|
||||
// Import modules.
|
||||
import texts from './read.JS';
|
||||
import windowman from './windowman.JS';
|
||||
let secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
|
||||
|
||||
|
||||
// Import modules.
|
||||
let secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
|
||||
|
||||
let pref_pane = 0;
|
||||
|
||||
|
||||
function start() {
|
||||
windowman.prepare();
|
||||
|
||||
return(new windowman(`body`, null, null, {'Close': true}));
|
||||
}
|
||||
|
||||
/* Add the UI design. */
|
||||
function design(element) {
|
||||
// Set the event of the window.
|
||||
function controls() {
|
||||
document.getElementById(element[`titlebar`][`controls`][`Close`][`ID`]).onclick = function(){element.terminate(false)};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO work on the content; perhaps, it must read from JSON of valid prefs
|
||||
|
||||
controls();
|
||||
|
||||
}
|
||||
|
||||
/* Populate the strings on the page. */
|
||||
function say(element) {
|
||||
element.update(element[`titlebar`][`title`], texts.localized(`GUI_title_preferences`));
|
||||
|
||||
};
|
||||
|
||||
function main() {
|
||||
let tab = start();
|
||||
design(tab);
|
||||
say(tab);
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
function start() {
|
||||
windowman.prepare();
|
||||
}
|
||||
/* Populate the strings on the page. */
|
||||
function say(element) {
|
||||
// document.title
|
||||
}
|
||||
|
||||
function main() {
|
||||
let tab = start();
|
||||
say(tab);
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue