Support loading config dynamically from `/config.json`
Overlay the build-time configuration provided by node-config with the
contents of the /config.json file fetched from the server upon app
startup.
14 files changed
+36
-13
c132855d
→
7d313e2e
modified http-client/lib/fetcher.ts
@@ -3,7 +3,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/App.svelte
@@ -1,4 +1,5 @@
|
|
| + | |
|
|
|
|
|
@@ -27,6 +28,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -42,6 +44,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -65,7 +68,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/components/ErrorMessage.svelte
@@ -2,7 +2,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
added src/lib/config.ts
@@ -0,0 +1,20 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified src/lib/router.ts
@@ -5,7 +5,7 @@ import { get, writable } from "svelte/store";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/modals/ErrorModal.svelte
@@ -1,5 +1,5 @@
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/nodes/SeedSelector.svelte
@@ -4,7 +4,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/nodes/SeedSelector.ts
@@ -5,7 +5,7 @@ import storedWritable from "@app/lib/localStore";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/nodes/router.ts
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/repos/Header/CloneButton.svelte
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/repos/History.svelte
@@ -9,7 +9,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/repos/Share.svelte
@@ -1,5 +1,5 @@
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/repos/router.ts
@@ -24,7 +24,7 @@ import type {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/users/router.ts
@@ -2,7 +2,7 @@ import type { BaseUrl, NodeIdentity, NodeStats } from "@http-client";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|