AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6

Merged
bvandeusen merged 214 commits from dev into main 2026-10-21 21:40:00 -04:00
Showing only changes of commit 52d53fb78a - Show all commits
+2 -3
View File
@@ -29,7 +29,6 @@ const LIFETIMES = [
{ days: 30, label: "30 days" },
];
const invites = ref<Invite[]>([]);
const loading = ref(true);
const error = ref("");
@@ -41,7 +40,7 @@ const freshLink = ref("");
async function load() {
error.value = "";
await toastOnFailure(async () => {
try {
invites.value = (await api.get<{ invites: Invite[] }>("/api/invites")).invites;
} catch (e) {
error.value = errorMessage(e, "Couldn't load invites.");
@@ -71,7 +70,7 @@ async function create() {
async function revoke(invite: Invite) {
if (!window.confirm(`Revoke the invite for ${who(invite)}? Its link will stop working.`)) return;
try {
await toastOnFailure(async () => {
const updated = await api.del<Invite>(`/api/invites/${invite.id}`);
invites.value = invites.value.map((i) => (i.id === updated.id ? updated : i));
}, "Couldn't revoke that invite.");