Removed console log & debug message
This commit is contained in:
@@ -35,7 +35,6 @@
|
|||||||
id.value = state.popup.id;
|
id.value = state.popup.id;
|
||||||
type.value = state.popup.type;
|
type.value = state.popup.type;
|
||||||
|
|
||||||
console.log("popup state:", isOpen.value);
|
|
||||||
isOpen.value
|
isOpen.value
|
||||||
? document.getElementsByTagName("body")[0].classList.add("no-scroll")
|
? document.getElementsByTagName("body")[0].classList.add("no-scroll")
|
||||||
: document.getElementsByTagName("body")[0].classList.remove("no-scroll");
|
: document.getElementsByTagName("body")[0].classList.remove("no-scroll");
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, inject, defineProps } from "vue";
|
import { ref, defineProps } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import TorrentSearchResults from "@/components/torrent/TorrentSearchResults.vue";
|
import TorrentSearchResults from "@/components/torrent/TorrentSearchResults.vue";
|
||||||
import SeasonedButton from "@/components/ui/SeasonedButton.vue";
|
import SeasonedButton from "@/components/ui/SeasonedButton.vue";
|
||||||
|
|||||||
@@ -2,18 +2,14 @@ import { refreshToken } from "@/api";
|
|||||||
import { parseJwt } from "@/utils";
|
import { parseJwt } from "@/utils";
|
||||||
|
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
console.debug("getting cookie with name:", name);
|
|
||||||
|
|
||||||
var arrayb = document.cookie.split(";");
|
var arrayb = document.cookie.split(";");
|
||||||
for (const item of arrayb) {
|
for (const item of arrayb) {
|
||||||
const query = `${name}=`;
|
const query = `${name}=`;
|
||||||
|
|
||||||
if (!item.startsWith(query)) continue;
|
if (!item.startsWith(query)) continue;
|
||||||
console.debug("found from cookies:", item);
|
|
||||||
return item.substr(query.length);
|
return item.substr(query.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug("no token found");
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +83,6 @@ export default {
|
|||||||
if (!jwtToken) return null;
|
if (!jwtToken) return null;
|
||||||
|
|
||||||
const token = parseJwt(jwtToken);
|
const token = parseJwt(jwtToken);
|
||||||
console.debug("has token: ", token);
|
|
||||||
return await dispatch("setupStateFromToken", token);
|
return await dispatch("setupStateFromToken", token);
|
||||||
},
|
},
|
||||||
setupStateFromToken: ({ commit }, token) => {
|
setupStateFromToken: ({ commit }, token) => {
|
||||||
@@ -98,13 +93,6 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug("setting:", {
|
|
||||||
username,
|
|
||||||
admin: admin != undefined,
|
|
||||||
settings,
|
|
||||||
token
|
|
||||||
});
|
|
||||||
|
|
||||||
commit("SET_TOKEN", token);
|
commit("SET_TOKEN", token);
|
||||||
commit("SET_USERNAME", username);
|
commit("SET_USERNAME", username);
|
||||||
commit("SET_SETTINGS", settings);
|
commit("SET_SETTINGS", settings);
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ function toast(options) {
|
|||||||
|
|
||||||
toastComponent.use(router);
|
toastComponent.use(router);
|
||||||
|
|
||||||
console.log("toastComponent:", toastComponent);
|
|
||||||
toastComponent.mount(
|
toastComponent.mount(
|
||||||
document.body.appendChild(document.createElement("div"))
|
document.body.appendChild(document.createElement("div"))
|
||||||
);
|
);
|
||||||
@@ -32,7 +31,6 @@ function toast(options) {
|
|||||||
export default {
|
export default {
|
||||||
install(app, options) {
|
install(app, options) {
|
||||||
console.log("installing toast plugin!");
|
console.log("installing toast plugin!");
|
||||||
console.log("plugin options", options);
|
|
||||||
|
|
||||||
function info(options) {
|
function info(options) {
|
||||||
toast({ type: "info", ...options });
|
toast({ type: "info", ...options });
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ body {
|
|||||||
background: var(--background-color);
|
background: var(--background-color);
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
|
|
||||||
|
// TODO probably explicitly define
|
||||||
* {
|
* {
|
||||||
transition: 0.5s ease;
|
transition: 0.5s ease;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user