♻️ drop svelte-spa-router

ref #23
This commit is contained in:
Philipp Dormann 2021-01-02 22:25:52 +01:00
parent 3396d17358
commit 46491f38a0
6 changed files with 2 additions and 19 deletions

View File

@ -12,7 +12,6 @@
"localforage": "^1.9.0",
"svelte-filepond": "^0.0.1",
"svelte-i18n": "^3.3.0",
"svelte-spa-router": "^3.1.0",
"tailwindcss": "^2.0.2",
"tinro": "^0.4.10",
"toastify-js": "^1.9.3",

View File

@ -99,13 +99,6 @@
<td>3.3.0</td>
<td>Christian Kaisermann</td>
</tr>
<tr>
<td>svelte-spa-router</td>
<td>MIT</td>
<td>https://github.com/ItalyPaleAle/svelte-spa-router.git</td>
<td>3.1.0</td>
<td>Alessandro Segala</td>
</tr>
<tr>
<td>tailwindcss</td>
<td>MIT</td>

View File

@ -20,9 +20,6 @@
import Avatars from "./Avatars.svelte";
import store from "../store";
import NoComponentLoaded from "./NoComponentLoaded.svelte";
//
import Router from "svelte-spa-router";
import { replace } from "svelte-spa-router";
let activePage = "dashboard";
let dropdown1 = false;

View File

@ -2,7 +2,6 @@
import { _ } from "svelte-i18n";
import store from "../store.js";
store.init();
import { push, pop, replace } from "svelte-spa-router";
//
import { OpenAPI, AuthService } from "@odit/lfk-client-js";
import isEmail from "validator/es/lib/isEmail";

View File

@ -3,7 +3,6 @@
import localForage from "localforage";
import { _ } from "svelte-i18n";
store.init();
import { push, pop, replace } from "svelte-spa-router";
import { OpenAPI, AuthService } from "@odit/lfk-client-js";
OpenAPI.BASE = config.baseurl;
import Toastify from "toastify-js";
@ -21,7 +20,7 @@
OpenAPI.TOKEN = value.access_token;
const jwtinfo = JSON.parse(atob(OpenAPI.TOKEN.split(".")[1]));
store.login(value.access_token, jwtinfo);
replace("/");
location.replace("/");
Toastify({
text: $_("welcome_wavinghand"),
duration: 500,

View File

@ -17,10 +17,6 @@
import Avatars from "./Avatars.svelte";
import store from "../store";
import NoComponentLoaded from "./NoComponentLoaded.svelte";
//
import Router from "svelte-spa-router";
import { replace } from "svelte-spa-router";
import { wrap } from "svelte-spa-router/wrap";
let activePage = "dashboard";
let dropdown1 = false;
@ -43,7 +39,7 @@
$: mobile = ismobile();
function logout() {
localForage.clear();
replace("/");
location.replace("/");
}
</script>