Skip to content

Commit f1a6efd

Browse files
Updating readme for release, housekeeping
* Updated Readme, and other docs * Linting * Formatting * Complexity Reports * Doc Coverage Reports * Doc Generation * Small fixes
1 parent ba8695e commit f1a6efd

19 files changed

+68866
-70752
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"i18n_generatedUploadSuccessSnackbar": "readonly",
3838
"i18n_generatedRemoveImageSuccess": "readonly",
3939
"i18n_returnValueLogging": "readonly",
40-
"i18n_returnValueRobots": "readonly"
40+
"i18n_returnValueRobots": "readonly",
41+
"i18n_validatePlugiinLocation": "readonly"
4142
}
4243
}

assets/js/home.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,11 @@ class LinkItemDOM {
293293

294294
emptyPlugins() {
295295
while (document.getElementsByClassName("add-plugin-link").length > 1) {
296-
try {
297-
document
298-
.getElementsByClassName("add-plugin-link")
299-
[
300-
document.getElementsByClassName("add-plugin-link").length - 1
301-
].parentNode.remove();
302-
} catch (err) {
303-
throw err;
304-
}
296+
document
297+
.getElementsByClassName("add-plugin-link")
298+
[
299+
document.getElementsByClassName("add-plugin-link").length - 1
300+
].parentNode.remove();
305301
}
306302
// ^^ The above while loop, will run until only 1 elemenet remains for the add-plugin-link dom element
307303
// each loop gets the HTMLCollection of the element, grabbing only the last one, then selects its parentNode (form-text)
@@ -437,6 +433,7 @@ function disablePluginLocation(element) {
437433
.setAttribute("disabled", "");
438434
}
439435

436+
/*eslint-disable-next-line no-unused-vars*/
440437
function addPluginOptions(element) {
441438
var pluginContainerParent = element.parentElement.parentElement.parentElement;
442439
var pluginChosen = element.value;
@@ -460,6 +457,7 @@ function addPluginOptions(element) {
460457
});
461458
}
462459

460+
/*eslint-disable-next-line no-unused-vars*/
463461
function addPluginOptionsHeader(element) {
464462
var pluginContainerParent = element.parentElement.parentElement.parentElement;
465463
var pluginChosen = element.value;
@@ -502,6 +500,7 @@ function initInstalledPluginListToForm() {
502500
});
503501
}
504502

503+
/*eslint-disable-next-line no-unused-vars*/
505504
function newItemModal() {
506505
clearLinkItemForm();
507506
universe.ShowModal("link-item-modal");
@@ -544,6 +543,7 @@ function newItemModal() {
544543
};
545544
}
546545

546+
/*eslint-disable-next-line no-unused-vars*/
547547
function editItemModal(
548548
oldID,
549549
oldFriendlyName,
@@ -728,12 +728,6 @@ function modalDelete(id) {
728728
modalNotDeleteBtn.onclick = function () {
729729
universe.CloseModal("deleteModal");
730730
};
731-
732-
window.onclick = function (event) {
733-
if (event.target == modal) {
734-
universe.CloseModal("deleteModal");
735-
}
736-
};
737731
}
738732

739733
function headerPlugins() {
3.27 MB
Loading
208 KB
Loading

docs/assets/searchbar-0.5.gif

421 KB
Loading

docs/devDocs/JavaScript.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<dd><p>JavaScript file loaded with every single page for Universal Functions</p>
1818
</dd>
1919
<dt><a href="#UniverseJS">UniverseJS</a> : <code>File</code></dt>
20-
<dd><p>Namespace of functions for easy access to repeatable actions.</p>
20+
<dd><p>Namespace of functions for easy access to repeatable actions. Aimed at reducing complexity, and duplicity.</p>
2121
</dd>
2222
<dt><a href="#UploadImageJS">UploadImageJS</a> : <code>File</code></dt>
2323
<dd><p>The JavaScript file loaded with the Upload Image Page.</p>
@@ -208,7 +208,7 @@ Queries GoPage APIs to determine and set a background image if needed, injecting
208208
<a name="UniverseJS"></a>
209209

210210
## UniverseJS : <code>File</code>
211-
Namespace of functions for easy access to repeatable actions.
211+
Namespace of functions for easy access to repeatable actions. Aimed at reducing complexity, and duplicity.
212212

213213
**Kind**: global variable
214214

@@ -226,6 +226,7 @@ Namespace of functions for easy access to repeatable actions.
226226
* [.FindReturnsString(action, status)](#UniverseJS.universe.FindReturnsString) ⇒ <code>string</code>
227227
* [.HotReload(elementID, url, callback, callbackArg)](#UniverseJS.universe.HotReload)
228228
* [.Loader(shouldShow)](#UniverseJS.universe.Loader)
229+
* [.ChangeLangAPI(chosenLang)](#UniverseJS.universe.ChangeLangAPI)
229230

230231
<a name="UniverseJS.universe"></a>
231232

@@ -247,6 +248,7 @@ The namespace to access all internal functions.
247248
* [.FindReturnsString(action, status)](#UniverseJS.universe.FindReturnsString) ⇒ <code>string</code>
248249
* [.HotReload(elementID, url, callback, callbackArg)](#UniverseJS.universe.HotReload)
249250
* [.Loader(shouldShow)](#UniverseJS.universe.Loader)
251+
* [.ChangeLangAPI(chosenLang)](#UniverseJS.universe.ChangeLangAPI)
250252

251253
<a name="UniverseJS.universe.SnackbarCommon"></a>
252254

@@ -420,6 +422,17 @@ Simple method of injecting a Loading animation onto the center of the page.
420422
| --- | --- | --- |
421423
| shouldShow | <code>boolean</code> | indicates if the loader is being turned off or on. True being on, and False being off. |
422424

425+
<a name="UniverseJS.universe.ChangeLangAPI"></a>
426+
427+
#### universe.ChangeLangAPI(chosenLang)
428+
Allowing easy universal access to the ChangeLangAPI, by just submitting the chosenLang
429+
430+
**Kind**: static method of [<code>universe</code>](#UniverseJS.universe)
431+
432+
| Param | Type | Description |
433+
| --- | --- | --- |
434+
| chosenLang | <code>string</code> | The two digit language code that the server should save |
435+
423436
<a name="UploadImageJS"></a>
424437

425438
## UploadImageJS : <code>File</code>
@@ -432,6 +445,7 @@ The JavaScript file loaded with the Upload Image Page.
432445
* [.insertImg(imageLoc)](#UploadImageJS.insertImg) ⇒ <code>string</code>
433446
* [.setImage(name)](#UploadImageJS.setImage)
434447
* [.unsetImage()](#UploadImageJS.unsetImage)
448+
* [.writeUserSettings()](#UploadImageJS.writeUserSettings)
435449

436450
<a name="UploadImageJS.loadAvailableImages"></a>
437451

@@ -472,3 +486,9 @@ Will attempt to save the specified image as the Users background image.
472486
Will query GoPage API's to remove whatever is currently set as the User Image
473487

474488
**Kind**: static method of [<code>UploadImageJS</code>](#UploadImageJS)
489+
<a name="UploadImageJS.writeUserSettings"></a>
490+
491+
### UploadImageJS.writeUserSettings()
492+
Will allow an easy way of writing to user settings and setting up an error callback
493+
494+
**Kind**: static method of [<code>UploadImageJS</code>](#UploadImageJS)

0 commit comments

Comments
 (0)