Implement geo backend, TS client, frontend, and CI tests.

Add a Go HTTP API with Ed25519 auth and invitation onboarding, user-scoped GeoJSON Point management, a Bun-tested @noble/ed25519 TypeScript client, static Vue/Vuetify frontend integration, and a Gitea CI workflow running both Go and Bun test suites.

Made-with: Cursor
This commit is contained in:
2026-03-01 11:41:21 +00:00
parent 5c73295ce5
commit 6e2becb06a
164 changed files with 446560 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import type { StorageLike, StoredKeys } from "./types";
export const DEFAULT_KEYS_STORAGE_KEY = "geo_api_keys_v1";
export function saveKeys(storage: StorageLike, keys: StoredKeys, storageKey = DEFAULT_KEYS_STORAGE_KEY): void {
storage.setItem(storageKey, JSON.stringify(keys));
}
export function loadKeys(storage: StorageLike, storageKey = DEFAULT_KEYS_STORAGE_KEY): StoredKeys | null {
const raw = storage.getItem(storageKey);
if (!raw) {
return null;
}
const parsed = JSON.parse(raw) as StoredKeys;
if (!parsed.publicKey || !parsed.privateKey) {
return null;
}
return parsed;
}
export function clearKeys(storage: StorageLike, storageKey = DEFAULT_KEYS_STORAGE_KEY): void {
storage.removeItem(storageKey);
}