[#31] replaced the initial admin create interactive cli with Installer web page

This commit is contained in:
Gani Georgiev
2022-07-10 11:46:21 +03:00
parent 460c684caa
commit 0739e90ff2
28 changed files with 812 additions and 1064 deletions
+6 -6
View File
@@ -16,11 +16,15 @@
let oldLocation = undefined;
let showAppSidebar = false;
function handleRouteLoading(e) {
if (e?.detail?.location === oldLocation) {
return; // not an actual change
}
showAppSidebar = !!e?.detail?.userData?.showAppSidebar;
oldLocation = e?.detail?.location;
// resets
@@ -30,11 +34,7 @@
}
function handleRouteFailure() {
if (ApiClient.AuthStore.isValid) {
replace("/");
} else {
ApiClient.logout();
}
replace("/");
}
function logout() {
@@ -43,7 +43,7 @@
</script>
<div class="app-layout">
{#if $admin?.id}
{#if $admin?.id && showAppSidebar}
<aside class="app-sidebar">
<a href="/" class="logo logo-sm" use:link>
<img