visual changes

This commit is contained in:
Mateusz Gruszczyński
2026-07-28 09:17:13 +02:00
parent a27f8ad7f3
commit 351dd081b5
13 changed files with 309 additions and 127 deletions
+1 -6
View File
@@ -7,6 +7,7 @@ import { getNickname, getAccessToken, getAuthToken, setAccessToken } from "@rust
import { bindIdentityDialog, validateCurrentSession } from "@rustpad/auth-ui";
import { askConfirm } from "@rustpad/modal";
import { safeAppUrl } from "@rustpad/security";
import { toast } from "@rustpad/toast";
const parts = location.pathname.split("/").filter(Boolean);
const slug = parts[1];
@@ -23,12 +24,6 @@ const notesViewKey = `rustpad:workspace:${slug}:notes-view`;
let notesView = localStorage.getItem(notesViewKey) === "table" ? "table" : "grid";
let notesCache = [];
function toast(text) {
const el = document.querySelector("#toast");
el.textContent = text;
el.classList.add("visible");
setTimeout(() => el.classList.remove("visible"), 1600);
}
function escapeHtml(v) { const e = document.createElement("div"); e.textContent = v; return e.innerHTML; }
function formatDate(value) {
if (value == null || value === "") return "—";