Remove console.log from debugging

This commit is contained in:
Julian Stirling 2026-05-15 10:57:54 +00:00
parent f0648a1613
commit 177f1c437d
2 changed files with 3 additions and 7 deletions

View file

@ -5,7 +5,7 @@ import prettierConfig from "eslint-config-prettier";
import globals from "globals";
import pinia from "eslint-plugin-pinia";
const isProd = process.env.NODE_ENV === "production";
const isDev = process.env.NODE_ENV === "development";
export default [
{
@ -38,8 +38,8 @@ export default [
rules: {
"prettier/prettier": "warn",
// Environment-based rules
"no-console": isProd ? "warn" : "off",
"no-debugger": isProd ? "warn" : "off",
"no-console": isDev ? "off" : ["warn", { allow: ["warn", "error"] }],
"no-debugger": isDev ? "off" : "warn",
// Vue deprecations
"vue/no-deprecated-slot-attribute": "warn",

View file

@ -189,7 +189,6 @@ export default {
return b.created - a.created;
});
this.all_items = all_items;
console.debug("Gallery size: %s", this.all_items.length);
} catch (err) {
console.error("Failed to refresh gallery items.");
console.error(err);
@ -219,9 +218,6 @@ export default {
}
},
changePage(page) {
console.log(page);
console.log(this.currentPage);
console.log(this.totalPages);
if (page >= 1 && page <= this.totalPages && this.currentPage != page) {
this.$emit("scrollTop");
this.currentPage = page;