style: 🚨 linter go brrrr

This commit is contained in:
Sebin Nyshkim 2021-04-26 19:22:26 +02:00
parent 9df1999391
commit 48d2a6f2f8
13 changed files with 73 additions and 79 deletions

View file

@ -48,9 +48,7 @@
<label>Sebin Full Body Reference</label> <label>Sebin Full Body Reference</label>
</template> </template>
<template #copyright> <template #copyright>
<a href="https://twitter.com/draftgon"> <a href="https://twitter.com/draftgon">draftgon</a>
draftgon
</a>
</template> </template>
</ref-figure> </ref-figure>
@ -117,9 +115,7 @@
<label>Sebin's Expressions</label> <label>Sebin's Expressions</label>
</template> </template>
<template #copyright> <template #copyright>
<a href="https://twitter.com/draftgon"> <a href="https://twitter.com/draftgon">draftgon</a>
draftgon
</a>
</template> </template>
</ref-figure> </ref-figure>
@ -186,9 +182,7 @@
<label>Sebin's upper body closeup</label> <label>Sebin's upper body closeup</label>
</template> </template>
<template #copyright> <template #copyright>
<a href="https://twitter.com/NidtheDragon"> <a href="https://twitter.com/NidtheDragon">NidtheDragon</a>
NidtheDragon
</a>
</template> </template>
</ref-figure> </ref-figure>
@ -311,9 +305,7 @@
<label>Sebin's manly parts</label> <label>Sebin's manly parts</label>
</template> </template>
<template #copyright> <template #copyright>
<a href="https://twitter.com/draftgon"> <a href="https://twitter.com/draftgon">draftgon</a>
draftgon
</a>
</template> </template>
</ref-figure> </ref-figure>
@ -564,9 +556,7 @@
<label>Sebin in Overdrive</label> <label>Sebin in Overdrive</label>
</template> </template>
<template #copyright> <template #copyright>
<a href="https://twitter.com/CVictorrosso"> <a href="https://twitter.com/CVictorrosso">CVictorrosso</a>
CVictorrosso
</a>
</template> </template>
</ref-figure> </ref-figure>

View file

@ -37,14 +37,14 @@ export default {
props: { props: {
dataset: { dataset: {
type: Object, type: Object,
required: true required: true,
} },
}, },
methods: { methods: {
isHexValue(value) { isHexValue(value) {
return /^#[0-9a-f]{6}$/i.test(value) ? value : false; return /^#[0-9a-f]{6}$/i.test(value) ? value : false;
} },
} },
}; };
</script> </script>

View file

@ -22,11 +22,11 @@ export default {
{ href: "https://t.me/SebinNyshkim", text: "Telegram" }, { href: "https://t.me/SebinNyshkim", text: "Telegram" },
{ {
href: "https://www.furaffinity.net/user/sonofdragons", href: "https://www.furaffinity.net/user/sonofdragons",
text: "Fur Affinity" text: "Fur Affinity",
} },
] ],
}; };
} },
}; };
</script> </script>

View file

@ -39,13 +39,13 @@ export default {
data() { data() {
return { return {
activeImage: 0, activeImage: 0,
images: [] images: [],
}; };
}, },
computed: { computed: {
offset() { offset() {
return `margin-left: -${this.activeImage * 100}%`; return `margin-left: -${this.activeImage * 100}%`;
} },
}, },
methods: { methods: {
setActive(index) { setActive(index) {
@ -60,12 +60,12 @@ export default {
if (this.activeImage < this.images.length - 1) { if (this.activeImage < this.images.length - 1) {
this.activeImage += 1; this.activeImage += 1;
} }
} },
}, },
mounted() { mounted() {
const images = Array.from(this.$el.querySelectorAll("img")); const images = Array.from(this.$el.querySelectorAll("img"));
this.images = images; this.images = images;
} },
}; };
</script> </script>

View file

@ -38,7 +38,7 @@ import RefNavbar from "@components/Navbar.vue";
export default { export default {
props: { props: {
mainHeading: String, mainHeading: String,
subHeading: String subHeading: String,
}, },
data() { data() {
return { return {
@ -50,14 +50,14 @@ export default {
{ href: "#upperbody", label: "Upper Body", nsfw: false }, { href: "#upperbody", label: "Upper Body", nsfw: false },
{ href: "#penis", label: "Penis", nsfw: true }, { href: "#penis", label: "Penis", nsfw: true },
{ href: "#clothes", label: "Clothing Styles", nsfw: false }, { href: "#clothes", label: "Clothing Styles", nsfw: false },
{ href: "#abilities", label: "Abilities", nsfw: false } { href: "#abilities", label: "Abilities", nsfw: false },
] ],
}; };
}, },
components: { components: {
NsfwSwitch, NsfwSwitch,
RefNavbar RefNavbar,
} },
}; };
</script> </script>

View file

@ -19,12 +19,12 @@ import debounce from "lodash/debounce";
export default { export default {
props: { props: {
navlinks: Array navlinks: Array,
}, },
data() { data() {
return { return {
isFixed: false, isFixed: false,
offsetTop: null offsetTop: null,
}; };
}, },
methods: { methods: {
@ -41,7 +41,7 @@ export default {
} else { } else {
return this.$parent.$parent.nsfw === item; return this.$parent.$parent.nsfw === item;
} }
} },
}, },
mounted() { mounted() {
window.addEventListener( window.addEventListener(
@ -60,7 +60,7 @@ export default {
this.checkIsFixed(); this.checkIsFixed();
}, 100) }, 100)
); );
} },
}; };
</script> </script>

View file

@ -19,12 +19,12 @@
export default { export default {
model: { model: {
prop: "checked", prop: "checked",
event: "change" event: "change",
}, },
props: { props: {
checked: Boolean, checked: Boolean,
id: { type: String, required: true } id: { type: String, required: true },
} },
}; };
</script> </script>

View file

@ -26,8 +26,8 @@ export default {
this.$parent.nsfw = input; this.$parent.nsfw = input;
this.$parent.isConfirmedHorny = input; this.$parent.isConfirmedHorny = input;
this.$parent.isWarn = false; this.$parent.isWarn = false;
} },
} },
}; };
</script> </script>

View file

@ -12,14 +12,14 @@
export default { export default {
data() { data() {
return { return {
isExpanded: false isExpanded: false,
}; };
}, },
methods: { methods: {
toggle() { toggle() {
this.isExpanded = !this.isExpanded; this.isExpanded = !this.isExpanded;
} },
} },
}; };
</script> </script>

View file

@ -7,5 +7,5 @@ Vue.config.productionTip = false;
Vue.use(VueScrollTo, { offset: -55 }); Vue.use(VueScrollTo, { offset: -55 });
new Vue({ new Vue({
render: h => h(App) render: (h) => h(App),
}).$mount("#app"); }).$mount("#app");

View file

@ -48,6 +48,6 @@ export default {
const lbs = Math.floor(nearExact); const lbs = Math.floor(nearExact);
return lbs; return lbs;
} },
} },
}; };

View file

@ -20,15 +20,15 @@ export default {
horns: "#413a3a", horns: "#413a3a",
claws: "#413a3a", claws: "#413a3a",
nipples: "#413a3a", nipples: "#413a3a",
penis: "#413a3a" penis: "#413a3a",
}, },
penis: { penis: {
shape: "humanoid", shape: "humanoid",
type: "grower", type: "grower",
special: "ridged", special: "ridged",
size: 20, // cm size: 20, // cm
girth: 5 // cm girth: 5, // cm
} },
}; };
}, },
@ -42,7 +42,7 @@ export default {
const dobLocaleString = this.dateOfBirth.toLocaleDateString(locale, { const dobLocaleString = this.dateOfBirth.toLocaleDateString(locale, {
year: "numeric", year: "numeric",
month: "long", month: "long",
day: "2-digit" day: "2-digit",
}); });
return `${dobLocaleString} (${age})`; return `${dobLocaleString} (${age})`;
@ -58,9 +58,9 @@ export default {
["Weight", `${this.weight} kg (${this.toLbs(this.weight)} lbs)`], ["Weight", `${this.weight} kg (${this.toLbs(this.weight)} lbs)`],
[ [
"Wingspan", "Wingspan",
`${this.wingspan / 100} m (${this.toImperial(this.wingspan)})` `${this.wingspan / 100} m (${this.toImperial(this.wingspan)})`,
] ],
] ],
}; };
const colors = { const colors = {
@ -73,8 +73,8 @@ export default {
["Eyes", this.colors.eyes], ["Eyes", this.colors.eyes],
["Facial Spikes", this.colors.eyebrows], ["Facial Spikes", this.colors.eyebrows],
["Horns/Claws/Nipples", this.colors.horns], ["Horns/Claws/Nipples", this.colors.horns],
["Tail Spikes", this.colors.tailspikes] ["Tail Spikes", this.colors.tailspikes],
] ],
}; };
const penis = { const penis = {
@ -85,11 +85,14 @@ export default {
["Special Traits", this.penis.special], ["Special Traits", this.penis.special],
["Color", this.colors.penis], ["Color", this.colors.penis],
["Length", `${this.penis.size} cm (${this.toInch(this.penis.size)})`], ["Length", `${this.penis.size} cm (${this.toInch(this.penis.size)})`],
["Girth", `${this.penis.girth} cm (${this.toInch(this.penis.girth)})`] [
] "Girth",
`${this.penis.girth} cm (${this.toInch(this.penis.girth)})`,
],
],
}; };
return { generic, colors, penis }; return { generic, colors, penis };
} },
} },
}; };

View file

@ -3,7 +3,7 @@ const path = require("path");
module.exports = { module.exports = {
publicPath: "", publicPath: "",
css: { css: {
sourceMap: process.env.NODE_ENV !== "production" sourceMap: process.env.NODE_ENV !== "production",
}, },
configureWebpack: { configureWebpack: {
resolve: { resolve: {
@ -13,36 +13,37 @@ module.exports = {
"@scss": path.resolve(__dirname, "src/scss/"), "@scss": path.resolve(__dirname, "src/scss/"),
"@data": path.resolve(__dirname, "src/data/"), "@data": path.resolve(__dirname, "src/data/"),
"@mixins": path.resolve(__dirname, "src/mixins/"), "@mixins": path.resolve(__dirname, "src/mixins/"),
"@components": path.resolve(__dirname, "src/components/") "@components": path.resolve(__dirname, "src/components/"),
} },
} },
}, },
chainWebpack: config => { chainWebpack: (config) => {
config.plugin("html").tap(args => { config.plugin("html").tap((args) => {
const meta = { const meta = {
title: "Sebin Nyshkim - Reference Page", title: "Sebin Nyshkim - Reference Page",
desc: "The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions", desc:
"The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions",
type: "website", type: "website",
url: "https://ref.sebin-nyshkim.net", url: "https://ref.sebin-nyshkim.net",
favicon: "favicon.png", favicon: "favicon.png",
preview: "preview.jpg", preview: "preview.jpg",
twitter: { twitter: {
card: "summary_large_image", card: "summary_large_image",
creator: "@SebinNyshkim" creator: "@SebinNyshkim",
} },
}; };
const links = { const links = {
icon: { icon: {
rel: "icon", rel: "icon",
href: meta.favicon, href: meta.favicon,
type: "image/png" type: "image/png",
}, },
favicon: { favicon: {
rel: "favicon", rel: "favicon",
href: meta.favicon, href: meta.favicon,
type: "image/png" type: "image/png",
} },
}; };
args[0].title = meta.title; args[0].title = meta.title;
@ -57,7 +58,7 @@ module.exports = {
"og:type": meta.type, "og:type": meta.type,
"og:url": meta.url, "og:url": meta.url,
"og:image": `${meta.url}/${meta.preview}`, "og:image": `${meta.url}/${meta.preview}`,
"og:description": meta.desc "og:description": meta.desc,
}; };
return args; return args;
@ -68,21 +69,21 @@ module.exports = {
.test(/\.(png|jpe?g|gif|webp|svg)(\?.*)?$/i) .test(/\.(png|jpe?g|gif|webp|svg)(\?.*)?$/i)
.use("image-webpack-loader") .use("image-webpack-loader")
.loader("image-webpack-loader") .loader("image-webpack-loader")
.tap(options => { .tap((options) => {
const newOpts = { const newOpts = {
mozjpeg: { mozjpeg: {
progressive: true, progressive: true,
quality: 75 quality: 75,
}, },
pngquant: { pngquant: {
quality: [0.65, 0.9], quality: [0.65, 0.9],
speed: 4 speed: 4,
}, },
gifsicle: { gifsicle: {
interlaced: false interlaced: false,
} },
}; };
return { ...options, ...newOpts }; return { ...options, ...newOpts };
}); });
} },
}; };