Fixed the Discord SSO somewhat

Fixed FS system
Added TZ options
This commit is contained in:
2025-08-22 12:00:58 -04:00
parent 7ff3f43c93
commit fb7428064f
16 changed files with 1248 additions and 805 deletions

View File

@@ -4,9 +4,8 @@
<meta charset="utf-8"/>
<title>GreenCoast — Client</title>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="gc-api-base" content="https://api.greencoast.fullmooncyberworks.com">
<!-- Optional: hard override API base during testing -->
<!-- <meta name="gc-api-base" content="http://127.0.0.1:9080"> -->
<!-- Force API base for Cloudflare tunneled API -->
<meta name="gc-api-base" content="https://api-gc.fullmooncyberworks.com">
<link rel="stylesheet" href="./styles.css"/>
</head>
<body>
@@ -15,13 +14,9 @@
<section class="card">
<h2>Connect</h2>
<div class="row">
<label>Detected API</label>
<input id="detectedApi" readonly />
</div>
<div class="row">
<label>Shard URL</label>
<input id="shardUrl" placeholder="http://localhost:8080" />
<input id="shardUrl" placeholder="https://api-gc.fullmooncyberworks.com" />
</div>
<div class="row">
<label>Bearer (optional)</label>
@@ -61,6 +56,9 @@
<label>Body</label>
<textarea id="body" rows="6" placeholder="Write your post..."></textarea>
</div>
<div class="row">
<label><input type="checkbox" id="shareTZ" checked> Include my time zone on this post</label>
</div>
<button id="publish">Publish</button>
<div id="publishStatus" class="muted"></div>
</section>
@@ -72,16 +70,5 @@
</div>
<script type="module" src="./app.js"></script>
<script>
// Show what the client detected for the API base, to confirm routing
(function(){
try {
if (typeof defaultApiBase === "function") {
const el = document.getElementById("detectedApi");
if (el) el.value = defaultApiBase();
}
} catch {}
})();
</script>
</body>
</html>