Removed console log & debug message
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -24,6 +24,7 @@ body {
|
||||
background: var(--background-color);
|
||||
color: var(--text-color);
|
||||
|
||||
// TODO probably explicitly define
|
||||
* {
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user