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 e8c1bcb commit b4f8b78
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default defineComponent({
},
methods: {
setLocale(lang: string) {
this.locale = lang;
this.locale = lang
this.state.language = lang
},
zoomFontSize(payload: { baseFontSize: number }) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/round/DebugInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import Card from '@/services/Card'
export default defineComponent({
name: 'DebugInfo',
setup() {
const { t } = useI18n();
const { t } = useI18n()
const state = useStateStore()
return { t, state };
return { t, state }
},
props: {
navigationState: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/round/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export default defineComponent({
AppIcon
},
setup() {
const { t } = useI18n();
const { t } = useI18n()
const state = useStateStore()
return { t, state };
return { t, state }
},
props: {
navigationState: {
Expand Down
2 changes: 1 addition & 1 deletion src/services/BotActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class BotActions {
+ this._actionStepsFailed
// card shift limited to 4
if (result > 4) {
return 4;
return 4
}
return result
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/CityMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Region from "./enum/Region"
import Region from './enum/Region'

export default interface CityMetadata {
region: Region
Expand Down
2 changes: 1 addition & 1 deletion src/services/Department.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Action from "./enum/Action"
import Action from './enum/Action'

export default interface Department {
id: string
Expand Down
6 changes: 3 additions & 3 deletions src/services/DepartmentSelectionRandomizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ export default class DepartmentSelectionRandomizer {
pool.push(dept)
pool.push(dept)
})
break;
break
case DepartmentSelectionType.EXPANSION:
// pick 4 departments from each type, and put 2 of each into the pool
pool.push(...this.createExpansionPool(allDepartments))
break;
break
case DepartmentSelectionType.EXPANSION_OPEN_BAR:
// one of all departments in pool
pool.push(...allDepartments)
break;
break
}

return pool
Expand Down
4 changes: 2 additions & 2 deletions src/services/TimelineAction.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import TimelineEntry from "./TimelineEntry"
import Action from "./enum/Action"
import TimelineEntry from './TimelineEntry'
import Action from './enum/Action'

export default interface TimelineAction {
action: Action
Expand Down
4 changes: 2 additions & 2 deletions src/services/TimelineEntry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Event from "./enum/Event"
import Region from "./enum/Region"
import Event from './enum/Event'
import Region from './enum/Region'

export default interface TimelineEntry {
id: string
Expand Down
2 changes: 1 addition & 1 deletion src/services/TimelineTile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TimelineEntry from "./TimelineEntry"
import TimelineEntry from './TimelineEntry'

export default interface TimelineTile {
id: number
Expand Down
4 changes: 2 additions & 2 deletions src/util/NavigationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default class NavigationState {
this.player = isBotRoute(route) ? Player.BOT : Player.PLAYER
this.isTimelineSelection = isTimelineSelection(route)

let cardDeck : CardDeck|undefined;
let timeline : Timeline|undefined;
let cardDeck : CardDeck|undefined
let timeline : Timeline|undefined
let departments : readonly string[] = []
let playerReserveDepartments : readonly string[] = []
let playerDepartments : readonly string[] = []
Expand Down

0 comments on commit b4f8b78

Please sign in to comment.