Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Apr 29, 2024
1 parent 5525289 commit b4b2e9f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineComponent({
},
methods: {
setLocale(lang: string) {
this.locale = lang;
this.locale = lang
},
zoomFontSize(payload: { baseFontSize: number }) {
this.baseFontSize = payload.baseFontSize
Expand Down
2 changes: 1 addition & 1 deletion src/components/structure/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default defineComponent({
},
emits: {
zoomFontSize(payload: { baseFontSize: number }) {
return payload.baseFontSize > 0;
return payload.baseFontSize > 0
}
},
data() {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import 'bootstrap'
createApp(App)
.use(router)
.use(i18n)
.mount('#app');
.mount('#app')
8 changes: 4 additions & 4 deletions src/util/error/TranslatableError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ export default class TranslatableError extends Error {
private _named : Record<string, unknown>
private _plural : number

constructor(internalMessage : string, key : string);
constructor(internalMessage : string, key : string, named : Record<string, unknown>);
constructor(internalMessage : string, key : string, named : Record<string, unknown>, plural : number);
constructor(internalMessage : string, key : string)
constructor(internalMessage : string, key : string, named : Record<string, unknown>)
constructor(internalMessage : string, key : string, named : Record<string, unknown>, plural : number)
constructor(internalMessage : string, key : string, named? : Record<string, unknown>, plural? : number) {
super(internalMessage);
super(internalMessage)
this._key = key
this._named = named ?? {}
this._plural = plural ?? 0
Expand Down
4 changes: 2 additions & 2 deletions src/util/router/createRouterMatomoTracking.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RouteRecordRaw, Router } from "vue-router"
import createRouter from "./createRouter"
import { RouteRecordRaw, Router } from 'vue-router'
import createRouter from './createRouter'

declare let _paq: any; // eslint-disable-line @typescript-eslint/no-explicit-any

Expand Down
2 changes: 1 addition & 1 deletion src/util/tab/enableTabLinksInContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Tab } from 'bootstrap'
export default function(parent : HTMLElement) : void {
parent.querySelectorAll('a[data-custom-toggle="tab"]').forEach(anchor => {
anchor.addEventListener('click', event => {
event.preventDefault();
event.preventDefault()
const target = anchor.getAttribute('href')
if (target) {
const tabElement = parent.querySelector(target)
Expand Down

0 comments on commit b4b2e9f

Please sign in to comment.