feat(housekeeping): cut over administration to ase
This commit is contained in:
1 parent
c9e35cf602
commit
2b8f73a91d
457 files changed
+589
-55936
No files matched your search
@@ -16,7 +16,7 @@ export async function updateCatalogPage({
|
||||
id,
|
||||
...fields,
|
||||
});
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: {} };
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export async function deleteCatalogPage({ id }: { id: number }) {
|
||||
action: "delete",
|
||||
id,
|
||||
});
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: {} };
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export async function toggleCatalogPage({
|
||||
action: action === "toggleEnabled" ? "toggle-enabled" : "toggle-visible",
|
||||
id,
|
||||
});
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: {} };
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export async function createCatalogPage(input: {
|
||||
{ action: "create", ...input },
|
||||
);
|
||||
const createdId = Number(snapshot.output?.id);
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: { id: createdId } };
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export async function reorderTreePage(input: {
|
||||
}) {
|
||||
const staff = await requirePermission(PERMS.CATALOG_EDIT);
|
||||
await executeLegacyEconomyMutation(staff, "catalog-page.reorder", input);
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: {} };
|
||||
}
|
||||
|
||||
@@ -85,6 +85,6 @@ export async function deleteTreePage(input: {
|
||||
}) {
|
||||
const staff = await requirePermission(PERMS.CATALOG_EDIT);
|
||||
await executeLegacyEconomyMutation(staff, "catalog-page.delete-tree", input);
|
||||
revalidatePath("/admin/catalog");
|
||||
revalidatePath("/ase/economy/catalog");
|
||||
return { ok: true as const, data: {} };
|
||||
}
|
||||
Reference in new issue
Block a user