Removed console log & debug message

This commit is contained in:
2022-08-09 01:03:32 +02:00
parent fde8fd9259
commit f8196b162e
5 changed files with 2 additions and 16 deletions

View File

@@ -35,7 +35,6 @@
id.value = state.popup.id;
type.value = state.popup.type;
console.log("popup state:", isOpen.value);
isOpen.value
? document.getElementsByTagName("body")[0].classList.add("no-scroll")
: document.getElementsByTagName("body")[0].classList.remove("no-scroll");

View File

@@ -23,7 +23,7 @@
</template>
<script setup lang="ts">
import { ref, inject, defineProps } from "vue";
import { ref, defineProps } from "vue";
import { useRouter } from "vue-router";
import TorrentSearchResults from "@/components/torrent/TorrentSearchResults.vue";
import SeasonedButton from "@/components/ui/SeasonedButton.vue";

View File

@@ -2,18 +2,14 @@ import { refreshToken } from "@/api";
import { parseJwt } from "@/utils";
function getCookie(name) {
console.debug("getting cookie with name:", name);
var arrayb = document.cookie.split(";");
for (const item of arrayb) {
const query = `${name}=`;
if (!item.startsWith(query)) continue;
console.debug("found from cookies:", item);
return item.substr(query.length);
}
console.debug("no token found");
return null;
}
@@ -87,7 +83,6 @@ export default {
if (!jwtToken) return null;
const token = parseJwt(jwtToken);
console.debug("has token: ", token);
return await dispatch("setupStateFromToken", token);
},
setupStateFromToken: ({ commit }, token) => {
@@ -98,13 +93,6 @@ export default {
return false;
}
console.debug("setting:", {
username,
admin: admin != undefined,
settings,
token
});
commit("SET_TOKEN", token);
commit("SET_USERNAME", username);
commit("SET_SETTINGS", settings);

View File

@@ -23,7 +23,6 @@ function toast(options) {
toastComponent.use(router);
console.log("toastComponent:", toastComponent);
toastComponent.mount(
document.body.appendChild(document.createElement("div"))
);
@@ -32,7 +31,6 @@ function toast(options) {
export default {
install(app, options) {
console.log("installing toast plugin!");
console.log("plugin options", options);
function info(options) {
toast({ type: "info", ...options });

View File

@@ -24,6 +24,7 @@ body {
background: var(--background-color);
color: var(--text-color);
// TODO probably explicitly define
* {
transition: 0.5s ease;
}