ch prefix
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
const ACCESS_KEY = "bankline_admin_access";
|
||||
const REFRESH_KEY = "bankline_admin_refresh";
|
||||
const LOGIN_PAGE = "/admin/login";
|
||||
const LOGIN_PAGE = "/M0n1t0r/login";
|
||||
|
||||
class ApiError extends Error {
|
||||
constructor(message, status, code) {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
/* still clear local state and leave */
|
||||
}
|
||||
Api.tokens.clear();
|
||||
window.location.href = "/admin/login";
|
||||
window.location.href = "/M0n1t0r/login";
|
||||
}
|
||||
|
||||
/** Load the admin profile and render it into the header. */
|
||||
|
||||
@@ -399,7 +399,7 @@
|
||||
}
|
||||
UI.toast(mode === "edit" ? "Saved successfully" : "Created successfully", "success");
|
||||
setTimeout(() => {
|
||||
window.location.href = "/admin/" + slug;
|
||||
window.location.href = "/M0n1t0r/" + slug;
|
||||
}, 600);
|
||||
} catch (error) {
|
||||
UI.setLoading(submitButton, false);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
UI.setLoading(submitButton, true);
|
||||
try {
|
||||
await Auth.login(loginValue, password);
|
||||
window.location.href = "/admin";
|
||||
window.location.href = "/M0n1t0r";
|
||||
} catch (error) {
|
||||
errorEl.textContent =
|
||||
error.status === 400
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
tr.innerHTML =
|
||||
schema.columns.map((column) => cellHtml(column, row)).join("") +
|
||||
`<td class="text-right whitespace-nowrap">
|
||||
<a class="btn btn-ghost btn-xs" href="/admin/${slug}/${row.Id}/edit" aria-label="Edit item ${row.Id}">Edit</a>
|
||||
<a class="btn btn-ghost btn-xs" href="/M0n1t0r/${slug}/${row.Id}/edit" aria-label="Edit item ${row.Id}">Edit</a>
|
||||
<button type="button" class="btn btn-ghost btn-xs text-error" data-delete aria-label="Delete item ${row.Id}">Delete</button>
|
||||
</td>`;
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
renderState(
|
||||
`<div class="py-10 text-center text-base-content/60">
|
||||
<p class="mb-3">Nothing here yet${state.search ? " for “" + UI.escapeHtml(state.search) + "”" : ""}.</p>
|
||||
<a href="/admin/${slug}/new" class="btn btn-primary btn-sm">Create the first one</a>
|
||||
<a href="/M0n1t0r/${slug}/new" class="btn btn-primary btn-sm">Create the first one</a>
|
||||
</div>`
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user