aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-30 14:24:18 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-30 14:24:18 +0200
commit3068b57c4841491ae885e555cc5560a1c2f80a9c (patch)
tree81c55efe4d761c2355763a9c228f706aa9f0ced8 /src/js/ui/sections
parent31e92292f140c1e1ee2c7f04e11ba90392f6dab9 (diff)
downloadarching-kaos-web-ui-3068b57c4841491ae885e555cc5560a1c2f80a9c.tar.gz
arching-kaos-web-ui-3068b57c4841491ae885e555cc5560a1c2f80a9c.tar.bz2
arching-kaos-web-ui-3068b57c4841491ae885e555cc5560a1c2f80a9c.zip
Minor updates
- Fix refreshRadio and exported function - Exported function refreshChat - New function debugLog to replace console.log with conditional printing - Licensing to be LibreJS compatible - Minor fixes where applicable (see diff)
Diffstat (limited to 'src/js/ui/sections')
-rw-r--r--src/js/ui/sections/aboutSection.js8
-rw-r--r--src/js/ui/sections/akNodeInfoSection.js8
-rw-r--r--src/js/ui/sections/chatSection.js8
-rw-r--r--src/js/ui/sections/commentsSection.js8
-rw-r--r--src/js/ui/sections/filesSection.js8
-rw-r--r--src/js/ui/sections/mixtapesSection.js8
-rw-r--r--src/js/ui/sections/myPageSection.js8
-rw-r--r--src/js/ui/sections/newsSection.js8
-rw-r--r--src/js/ui/sections/notFoundSection.js8
-rw-r--r--src/js/ui/sections/radioSection.js8
-rw-r--r--src/js/ui/sections/settingsSection.js24
-rw-r--r--src/js/ui/sections/statsSection.js8
-rw-r--r--src/js/ui/sections/stellarBalancesSection.js8
-rw-r--r--src/js/ui/sections/stellarDataConfigSection.js8
-rw-r--r--src/js/ui/sections/stellarSection.js8
-rw-r--r--src/js/ui/sections/welcomeSection.js8
-rw-r--r--src/js/ui/sections/zchainDataSection.js8
17 files changed, 138 insertions, 14 deletions
diff --git a/src/js/ui/sections/aboutSection.js b/src/js/ui/sections/aboutSection.js
index 3a11a43..3ab4d1e 100644
--- a/src/js/ui/sections/aboutSection.js
+++ b/src/js/ui/sections/aboutSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos About Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function aboutSection()
@@ -30,3 +37,4 @@ export function aboutSection()
makeElement(aboutSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/akNodeInfoSection.js b/src/js/ui/sections/akNodeInfoSection.js
index 38ad961..e6f82ac 100644
--- a/src/js/ui/sections/akNodeInfoSection.js
+++ b/src/js/ui/sections/akNodeInfoSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Node Info Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+//
import { makeElement } from "../../arching-kaos-generator.js";
export function akNodeInfoSection()
@@ -13,3 +20,4 @@ export function akNodeInfoSection()
makeElement(akNodeInfoSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/chatSection.js b/src/js/ui/sections/chatSection.js
index 36348b3..b6d2ce3 100644
--- a/src/js/ui/sections/chatSection.js
+++ b/src/js/ui/sections/chatSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Chat Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function chatSection()
@@ -24,3 +31,4 @@ export function chatSection()
makeElement(chatSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/commentsSection.js b/src/js/ui/sections/commentsSection.js
index 1519ad9..5d520cf 100644
--- a/src/js/ui/sections/commentsSection.js
+++ b/src/js/ui/sections/commentsSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Comments Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function commentsSection()
@@ -13,3 +20,4 @@ export function commentsSection()
makeElement(commentsSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/filesSection.js b/src/js/ui/sections/filesSection.js
index 06ae29a..7a65187 100644
--- a/src/js/ui/sections/filesSection.js
+++ b/src/js/ui/sections/filesSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Files Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function filesSection()
@@ -19,3 +26,4 @@ export function filesSection()
makeElement(filesSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/mixtapesSection.js b/src/js/ui/sections/mixtapesSection.js
index 34bf1b6..6710c11 100644
--- a/src/js/ui/sections/mixtapesSection.js
+++ b/src/js/ui/sections/mixtapesSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Mixtapes Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function mixtapesSection()
@@ -19,3 +26,4 @@ export function mixtapesSection()
makeElement(mixtapesSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/myPageSection.js b/src/js/ui/sections/myPageSection.js
index 9926141..2cabcd5 100644
--- a/src/js/ui/sections/myPageSection.js
+++ b/src/js/ui/sections/myPageSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos My Page Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function myPageSection()
@@ -25,3 +32,4 @@ export function myPageSection()
makeElement(myPageSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/newsSection.js b/src/js/ui/sections/newsSection.js
index b983b48..51cb0de 100644
--- a/src/js/ui/sections/newsSection.js
+++ b/src/js/ui/sections/newsSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos News Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function newsSection()
@@ -19,3 +26,4 @@ export function newsSection()
makeElement(newsSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/notFoundSection.js b/src/js/ui/sections/notFoundSection.js
index a400d6a..3e3d000 100644
--- a/src/js/ui/sections/notFoundSection.js
+++ b/src/js/ui/sections/notFoundSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Not Found Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function notFoundSection()
@@ -24,3 +31,4 @@ export function notFoundSection()
makeElement(notFoundSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/radioSection.js b/src/js/ui/sections/radioSection.js
index f430023..cddd3f6 100644
--- a/src/js/ui/sections/radioSection.js
+++ b/src/js/ui/sections/radioSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Radio Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function radioSection()
@@ -25,3 +32,4 @@ export function radioSection()
makeElement(radioSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/settingsSection.js b/src/js/ui/sections/settingsSection.js
index 3a0e410..e2e2fe3 100644
--- a/src/js/ui/sections/settingsSection.js
+++ b/src/js/ui/sections/settingsSection.js
@@ -1,8 +1,16 @@
+// Arching Kaos Settings Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
import { getSettings, showSettings } from "../../arching-kaos-web-ui-settings.js";
+import { debugLog } from "../../utils.js";
var settings = getSettings();
-console.log(settings);
+debugLog(settings);
export function settingsSection()
{
@@ -30,19 +38,6 @@ export function getSettingsPage()
return document.querySelector('#settings-section');
}
-// var scripts = [
-// {
-// element:"script",
-// type: "module",
-// src:"./js/arching-kaos-web-ui-settings.js"
-// }
-// ];
-//
-// for ( var i = 0; i < scripts.length; i++ )
-// {
-// makeElement(scripts[i], document.querySelector('body'));
-// }
-
// var server = new StellarSdk.Server(settings.stellar.horizon.list[settings.stellar.horizon.active], {allowHttp:true});
// if ( getSettings().stellar.scan )
@@ -55,3 +50,4 @@ export function getSettingsPage()
// ringlocalbell();
// setInterval(ringlocalbell, 10*60*1000);
// }
+// @license-end
diff --git a/src/js/ui/sections/statsSection.js b/src/js/ui/sections/statsSection.js
index d54962a..8d99448 100644
--- a/src/js/ui/sections/statsSection.js
+++ b/src/js/ui/sections/statsSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Stellar Balances Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function statsSection()
@@ -30,3 +37,4 @@ export function statsSection()
makeElement(statsSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/stellarBalancesSection.js b/src/js/ui/sections/stellarBalancesSection.js
index 21ffaa7..867599f 100644
--- a/src/js/ui/sections/stellarBalancesSection.js
+++ b/src/js/ui/sections/stellarBalancesSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Stellar Balances Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function stellarBalancesSection()
@@ -20,3 +27,4 @@ export function stellarBalancesSection()
makeElement(stellarBalancesSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/stellarDataConfigSection.js b/src/js/ui/sections/stellarDataConfigSection.js
index 509ae57..8deff87 100644
--- a/src/js/ui/sections/stellarDataConfigSection.js
+++ b/src/js/ui/sections/stellarDataConfigSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Stellar Data Config Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function stellarDataConfigSection()
@@ -19,3 +26,4 @@ export function stellarDataConfigSection()
makeElement(stellarDataConfigSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/stellarSection.js b/src/js/ui/sections/stellarSection.js
index ddc5b91..587142b 100644
--- a/src/js/ui/sections/stellarSection.js
+++ b/src/js/ui/sections/stellarSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Stellar Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function stellarSection()
@@ -22,3 +29,4 @@ export function stellarSection()
makeElement(stellarSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/welcomeSection.js b/src/js/ui/sections/welcomeSection.js
index 025b1e8..c382050 100644
--- a/src/js/ui/sections/welcomeSection.js
+++ b/src/js/ui/sections/welcomeSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Welcome Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
var whereAmI = {
@@ -131,3 +138,4 @@ export function welcomeSection()
makeElement(welcomeSection, document.querySelector('.main'));
}
+// @license-end
diff --git a/src/js/ui/sections/zchainDataSection.js b/src/js/ui/sections/zchainDataSection.js
index 0549249..95f8518 100644
--- a/src/js/ui/sections/zchainDataSection.js
+++ b/src/js/ui/sections/zchainDataSection.js
@@ -1,3 +1,10 @@
+// Arching Kaos Zchain Data Section
+//
+// Kaotisk Hund - 2024
+//
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
+//
+
import { makeElement } from "../../arching-kaos-generator.js";
export function zchainDataSection()
@@ -19,3 +26,4 @@ export function zchainDataSection()
makeElement(zchainDataSection, document.querySelector('.main'));
}
+// @license-end