aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--src/css/akn.css288
-rw-r--r--src/external/2023.11.07-stellar-freighter-api.tar.gzbin0 -> 5564 bytes
-rw-r--r--src/external/stellar-freighter-api/@shared/api/external.d.ts73
-rw-r--r--src/external/stellar-freighter-api/@shared/api/helpers/extensionMessaging.d.ts12
-rw-r--r--src/external/stellar-freighter-api/@shared/api/types.d.ts187
-rw-r--r--src/external/stellar-freighter-api/@shared/constants/hardwareWallet.d.ts1
-rw-r--r--src/external/stellar-freighter-api/@shared/constants/services.d.ts18
-rw-r--r--src/external/stellar-freighter-api/@shared/constants/soroban/token.d.ts31
-rw-r--r--src/external/stellar-freighter-api/@shared/constants/stellar.d.ts4
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/addToken.d.ts9
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/getAddress.d.ts6
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetwork.d.ts8
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/getNetworkDetails.d.ts3
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/getPublicKey.d.ts1
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/getUserInfo.d.ts3
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/index.d.ts99
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/isAllowed.d.ts7
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/isConnected.d.ts7
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/requestAccess.d.ts6
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/setAllowed.d.ts7
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/signAuthEntry.d.ts11
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/signBlob.d.ts3
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/signMessage.d.ts19
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/signTransaction.d.ts13
-rw-r--r--src/external/stellar-freighter-api/@stellar/freighter-api/src/watchWalletChanges.d.ts21
-rw-r--r--src/external/stellar-freighter-api/index.min.js3
-rw-r--r--src/external/stellar-freighter-api/index.min.js.map1
-rw-r--r--src/external/stellar-sdk-minimal.js48541
-rw-r--r--src/external/stellar-sdk-minimal.min.js3
-rw-r--r--src/external/stellar-sdk-minimal.min.js.LICENSE.txt1051
-rw-r--r--src/index.html222
-rw-r--r--src/js/app.js179
-rw-r--r--src/js/arching-kaos-decentralized-radio.js14
-rw-r--r--src/js/arching-kaos-fetch.js95
-rw-r--r--src/js/arching-kaos-file-system.js307
-rw-r--r--src/js/arching-kaos-generator.js42
-rw-r--r--src/js/arching-kaos-log.js22
-rw-r--r--src/js/arching-kaos-modules-comments.js53
-rw-r--r--src/js/arching-kaos-modules-files.js19
-rw-r--r--src/js/arching-kaos-modules-markdown.js67
-rw-r--r--src/js/arching-kaos-modules-mixtapes.js29
-rw-r--r--src/js/arching-kaos-modules-news.js57
-rw-r--r--src/js/arching-kaos-modules-references.js35
-rw-r--r--src/js/arching-kaos-spa-router.js61
-rw-r--r--src/js/arching-kaos-stellar-network.js91
-rw-r--r--src/js/arching-kaos-tools.js572
-rw-r--r--src/js/arching-kaos-web-ui-settings.js108
-rw-r--r--src/js/environment-setup.js219
-rw-r--r--src/js/image-generator.js146
-rw-r--r--src/js/menu-magic.js68
-rw-r--r--src/js/radio-emulator.js460
-rw-r--r--src/js/ui/footer.js91
-rw-r--r--src/js/ui/header.js27
-rw-r--r--src/js/ui/main.js48
-rw-r--r--src/js/ui/mainLayout.js30
-rw-r--r--src/js/ui/menu.js210
-rw-r--r--src/js/ui/sections/aboutSection.js54
-rw-r--r--src/js/ui/sections/akNodeInfoSection.js40
-rw-r--r--src/js/ui/sections/chatSection.js34
-rw-r--r--src/js/ui/sections/commentsSection.js38
-rw-r--r--src/js/ui/sections/filesSection.js41
-rw-r--r--src/js/ui/sections/markdownSection.js40
-rw-r--r--src/js/ui/sections/mixtapesSection.js38
-rw-r--r--src/js/ui/sections/myPageSection.js54
-rw-r--r--src/js/ui/sections/newsSection.js40
-rw-r--r--src/js/ui/sections/notFoundSection.js47
-rw-r--r--src/js/ui/sections/radioSection.js203
-rw-r--r--src/js/ui/sections/settingsSection.js55
-rw-r--r--src/js/ui/sections/statsSection.js51
-rw-r--r--src/js/ui/sections/stellarBalancesSection.js41
-rw-r--r--src/js/ui/sections/stellarDataConfigSection.js40
-rw-r--r--src/js/ui/sections/stellarSection.js32
-rw-r--r--src/js/ui/sections/welcomeSection.js214
-rw-r--r--src/js/ui/sections/zchainDataSection.js40
-rw-r--r--src/js/url-generators.js52
-rw-r--r--src/js/utils.js41
77 files changed, 53891 insertions, 1013 deletions
diff --git a/README b/README
index 0a7da17..e9910bc 100644
--- a/README
+++ b/README
@@ -10,7 +10,6 @@ For demo, you can visit https://arching-kaos.net .
### All demo links (may vary on running versions)
- [Net](https://arching-kaos.net),
- [Com](https://arching-kaos.com),
-- [Xyz](https://arching-kaos.xyz),
- [News](https://news.arching-kaos.net)
- [Dev](https://dev.arching-kaos.net)
diff --git a/src/css/akn.css b/src/css/akn.css
index 6298fbd..df3e43d 100644
--- a/src/css/akn.css
+++ b/src/css/akn.css
@@ -2,6 +2,14 @@
animation: fadeIn 0.5s;
}
+:root {
+ --back: #000501;
+ --extr: #73ab84;
+ --text: #99d19c;
+ --link: #79c7c5;
+ --hili: #ade1e5;
+}
+
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
@@ -18,8 +26,8 @@ body {
padding: 1%;
font-family: 'Doto';
font-size: medium;
- background-color: #1a1a1a;
- color: #7ef07e;
+ background-color: var(--back);
+ color: var(--text);
display: block;
margin: auto;
padding: 5px;
@@ -41,16 +49,22 @@ div {
p {
word-break: break-word;
text-align: left;
- /* margin: 0px; */
}
a {
- color:rgb(51, 200, 234);
+ color: var(--link);
text-decoration:none;
}
a:hover{
- color: #c5f0ff;
+ color: var(--hili);
+}
+
+ul, ol {
+ list-style-position: inside;
+}
+#header {
+ cursor: pointer;
}
.header {
@@ -115,7 +129,7 @@ h1 {
#contact {
border-style: dashed;
border-width: 3px;
- border-color: #276a4b;
+ border-color: var(--link);
}
label {
@@ -127,7 +141,7 @@ input {
border: 0px;
border-radius: 0px;
padding: 1vh 1vw;
- color: yellow;
+ color: var(--text);
background: black;
border: lightyellow 1px dashed;
}
@@ -136,10 +150,10 @@ input {
border-radius: 0px;
border-width: 1px;
border-style: solid;
- border-color: #7ef07e;
+ border-color: var(--hili);
padding: 1.1%;
- background: #1a1a1a;
- color: #7ef07e;
+ background: var(--back);
+ color: var(--link);
text-align: center;
padding: 1% 0 1% 0;
}
@@ -162,8 +176,8 @@ textarea {
}
.success {
- background-color: green;
- color: white;
+ background-color: var(--link);
+ color: var(--back);
}
.alert {
@@ -198,9 +212,11 @@ select {
border: 1px solid;
background-color: #1a1a1a;
color: #7ef07e;
+ width: 100%;
}
article {
+ font-family: monospace;
border: none;
border-radius: 40px;
border-left: 2px dashed #672178;
@@ -233,8 +249,7 @@ article {
.main{
position: fixed;
top: 48px;
-/* background-color: #2a2a2a;*/
- background-color: #000000;
+ background-color: var(--back);
bottom: 32px;
width: auto;
right: 0vw;
@@ -285,30 +300,27 @@ h1 {
padding: 2px;
overflow-y: auto;
display: flex;
- align-items: end;
- background: #cacaca;
+ /* background: #cacaca; */
width: 100%;
- color:rgb(51, 200, 234);
+ color: var(--text);
}
.button {
border: 0px;
padding: 7px;
- color: white;
+ color: var(--text);
}
button {
-/* color: rgb(51, 200, 234);*/
- color: rgb(0, 255, 231);
+ color: var(--text);
text-decoration: none;
font-family: 'Doto';
- border: 1px solid #17392e;
padding: 10px;
margin: 1px;
cursor: pointer;
display: flex;
- background: #000000;
- border: 1px solid #17392e;
+ background: var(--back);
+ border: 1px solid var(--link);
padding: 1vh 1vw;
margin: 1px;
width: auto;
@@ -320,8 +332,9 @@ button {
}
button:hover {
- background: #535353;
- border-color: #eef7ff;
+ background: var(--text);
+ color: var(--back);
+ border-color: var(--extr);
}
#mobile-menu {
@@ -342,7 +355,7 @@ button:hover {
#double-floor {
display: flex;
- flex-direction: column;
+ flex-direction: row;
}
.upper-floor {
@@ -362,7 +375,7 @@ button:hover {
article hr {
border: none;
border-top-width: 1px;
- border-top-color: #672178;
+ border-top-color: var(--hili);
border-top-style: dotted;
margin-left: 0vw;
margin-right: 0vw;
@@ -371,7 +384,7 @@ article hr {
hr {
border: none;
border-top-width: 1px;
- border-top-color: #7ef07e;
+ border-top-color: var(--hili);
border-top-style: dashed;
margin-left: 10vw;
margin-right: 10vw;
@@ -395,15 +408,15 @@ audio {
}
summary {
- background-color: #080808;
+ background-color: var(--back);
padding: 4px;
word-break: break-all;
}
details {
- border: 2px solid #3a3a3a;
- background-color: #000000;
- padding: 0px;
+ border: 2px solid var(--hili);
+ background-color: var(--back);
+ padding: 5px;
}
#logs-area-element {
@@ -411,17 +424,13 @@ details {
}
.zchain-details {
- border: 2px solid #672178;
+ border: 2px solid var(--hili);
padding: 24px;
}
+
#settings-section {
gap: 5px;
flex-direction: column;
-/*
- flex-wrap: wrap;
- justify-content: space-between;
- align-items: flex-start;
-*/
}
#settings-section div {
@@ -451,6 +460,7 @@ details {
width: -moz-available;
width: -webkit-fill-available;
}
+
@media (max-width: 850px) {
#double-floor {
flex-direction: column;
@@ -471,7 +481,7 @@ details {
top: 0px;
z-index: 0;
align-items: center;
- background-color: #1a1a1a8a;
+ background-color: var(--back);
height: 100%;
width: 100%;
}
@@ -512,10 +522,7 @@ details {
margin: 0px;
padding: 1vh 4vw;
display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: space-between;
- align-content: flex-start;
+ flex-direction: column;
}
#home-grid {
@@ -533,3 +540,198 @@ details {
align-items: center;
justify-content: center;
}
+
+.manual-scan {
+ display: flex;
+ flex-direction: row;
+ justify-content: start;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 5px;
+}
+
+.where-am-i {
+ height: 32px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 10px;
+}
+
+.where-am-i img {
+ height: 32px;
+ display: flex;
+ flex-direction: row;
+}
+
+#results-header {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ align-content: center;
+ flex-wrap: wrap;
+}
+
+/* Radio CSS */
+* {
+ padding: 0px;
+ margin: 0;
+}
+
+#radio-main div {
+ display: flex;
+ flex-direction: column;
+ gap: 0px;
+}
+
+#radio-main {
+ order: 2;
+ gap: 10px;
+}
+
+#radio-main .div-groups-row {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+
+#radio-main progress {
+ width: auto;
+}
+
+#radio-main button {
+ /*
+ background: var(--back);
+ border: dotted 2px;
+ color: var(--text);
+ */
+ border: solid 2px var(--hili);
+ font-family: 'Doto';
+ width: 100%;
+ font-size: 24px;
+}
+
+#radio-main .no-break {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ word-break: none;
+}
+
+#radio-main button:hover {
+ background: var(--hili);
+ color: var(--text);
+ border: solid 2px var(--text);
+}
+
+#radio-main pre {
+ border: 1px dotted;
+ overflow-x: auto;
+ padding: 0.5vh 1vw;
+}
+
+#radio-main details {
+ border: 1px dotted;
+ padding: 1vh 2vw;
+ width: 88vh;
+}
+
+#radio-main summary {
+ border-bottom: 1px dotted;
+ padding: 0.5vh 1vw;
+}
+
+#radio-main summary:hover {
+ background-color: lightgreen;
+ color: black;
+}
+
+#radio-main .start-top {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ justify-content: space-evenly;
+ align-items: flex-start;
+ gap: 10px;
+}
+
+#radio-main .previously-played {
+ flex-direction: column-reverse;
+ overflow-y: auto;
+ height: 40vh;
+ gap: 5px;
+}
+
+#radio-main .div-row {
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ flex-wrap: wrap;
+}
+
+#radio-main .previously-played img {
+ width: 48px;
+}
+
+#radio-main .previously-played div {
+ gap: 5px;
+}
+
+
+#radio-main .previously-played div:hover {
+ background-color: lightgreen;
+ color: black;
+}
+
+#radio-main .div-inline-reverse {
+ display: flex;
+ flex-direction: row-reverse;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-evenly;
+}
+
+#radio-main .div-inline {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-evenly;
+}
+
+#radio-main table {
+ width: 100%;
+}
+
+#radio-main th, #radio-main td {
+ background-color: black;
+ padding: 2px;
+}
+
+#radio-main tr {
+ background-color: black;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ border: 1px dotted;
+ align-items: center;
+}
+
+#radio-main audio {
+ width: auto;
+}
+
+#radio-main .generated {
+ width: 128px;
+ height: 128px;
+ max-width: 128px;
+ max-height: 128px;
+}
+
+#radio-main .more-details {
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-items: flex-start;
+}
diff --git a/src/external/2023.11.07-stellar-freighter-api.tar.gz b/src/external/2023.11.07-stellar-freighter-api.tar.gz
new file mode 100644
index 0000000..a6aaade
--- /dev/null
+++ b/src/external/2023.11.07-stellar-freighter-api.tar.gz
Binary files differ
diff --git a/src/external/stellar-freighter-api/@shared/api/external.d.ts b/src/external/stellar-freighter-api/@shared/api/external.d.ts
index 9755ca4..8505603 100644
--- a/src/external/stellar-freighter-api/@shared/api/external.d.ts
+++ b/src/external/stellar-freighter-api/@shared/api/external.d.ts
@@ -1,24 +1,63 @@
-import { UserInfo } from "./types";
-export declare const requestPublicKey: () => Promise<string>;
+import { FreighterApiError } from "./types";
+export declare const requestAccess: () => Promise<{
+ publicKey: string;
+ error?: FreighterApiError;
+}>;
+export declare const requestPublicKey: () => Promise<{
+ publicKey: string;
+ error?: FreighterApiError;
+}>;
+export declare const submitToken: (args: {
+ contractId: string;
+ networkPassphrase?: string;
+}) => Promise<{
+ contractId?: string;
+ error?: FreighterApiError;
+}>;
export declare const submitTransaction: (transactionXdr: string, opts?: string | {
- network?: string | undefined;
- accountToSign?: string | undefined;
- networkPassphrase?: string | undefined;
-} | undefined, accountToSign?: string | undefined) => Promise<string>;
-export declare const submitBlob: (blob: string, opts?: {
- accountToSign?: string | undefined;
-} | undefined) => Promise<string>;
+ accountToSign?: string;
+ networkPassphrase?: string;
+}, accountToSign?: string) => Promise<{
+ signedTransaction: string;
+ signerAddress: string;
+ error?: FreighterApiError;
+}>;
+export declare const submitMessage: (blob: string, version: string, opts?: {
+ address?: string;
+ networkPassphrase?: string;
+}) => Promise<{
+ signedMessage: Buffer | null;
+ signerAddress: string;
+ error?: FreighterApiError;
+}>;
export declare const submitAuthEntry: (entryXdr: string, opts?: {
- accountToSign?: string | undefined;
-} | undefined) => Promise<string>;
-export declare const requestNetwork: () => Promise<string>;
+ address?: string;
+ networkPassphrase?: string;
+}) => Promise<{
+ signedAuthEntry: Buffer | null;
+ signerAddress: string;
+ error?: FreighterApiError;
+}>;
+export declare const requestNetwork: () => Promise<{
+ network: string;
+ networkPassphrase: string;
+ error?: FreighterApiError;
+}>;
export declare const requestNetworkDetails: () => Promise<{
network: string;
networkUrl: string;
networkPassphrase: string;
- sorobanRpcUrl?: string | undefined;
+ sorobanRpcUrl?: string;
+ error?: FreighterApiError;
+}>;
+export declare const requestConnectionStatus: () => Promise<{
+ isConnected: boolean;
+}>;
+export declare const requestAllowedStatus: () => Promise<{
+ isAllowed: boolean;
+ error?: FreighterApiError;
+}>;
+export declare const setAllowedStatus: () => Promise<{
+ isAllowed: boolean;
+ error?: FreighterApiError;