Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/massif-press/compcon
Browse files Browse the repository at this point in the history
  • Loading branch information
jarena3 committed Jun 28, 2022
2 parents 73395f3 + 8189484 commit a148092
Show file tree
Hide file tree
Showing 24 changed files with 192 additions and 116 deletions.
6 changes: 3 additions & 3 deletions src/features/compendium/components/CompendiumPageButton.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-col :cols="cols" :lg="lg" :md="md" :sm="sm">
<div class="mx-2" @click="$emit('clicked')">
<div class="mx-2" @click="$emit('clicked')" @keydown.enter="$emit('clicked')" tabindex="0">
<v-alert outlined :color="color" prominent dense border="left">
<v-icon slot="prepend" class="icn" x-large :color="`${color} lighten-1`" left>
{{ icon }}
Expand All @@ -14,8 +14,8 @@
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator'
@Component({ name: 'cc-major-btn' })
export default class CCMajorButton extends Vue {
@Component({ name: 'cc-compendium-page-btn' })
export default class CompendiumPageButton extends Vue {
@Prop({ type: String, required: true })
readonly name!: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:color="hover ? 'panel lighten-1' : 'panel'"
tile
@click="$refs.dialog.show()"
@keydown.enter="$refs.dialog.show()"
>
<frame-card-content
v-if="item.ItemType === 'Frame'"
Expand Down
5 changes: 3 additions & 2 deletions src/features/encounters/components/HomeCard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-card ripple :to="to" outlined tile class="text-center">
<v-card ripple :to="to" outlined tile class="card text-center">
<div class="primary fade pt-10 pb-10">
<v-icon dark size="180">
{{ icon }}
Expand Down Expand Up @@ -32,7 +32,8 @@ export default {
transition: all ease-in-out 0.2s;
}
.fade:hover {
.fade:hover,
.card:focus .fade {
background-color: var(--v-active-base) !important;
}
</style>
10 changes: 6 additions & 4 deletions src/features/encounters/mission/runner/Debriefing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
<br />
// FEATURE IN DEVELOPMENT //
</p>
<v-btn text color="primary" to="/gm/mission/selector">
<v-icon left>mdi-chevron-triple-left</v-icon>
Return to Mission Menu
</v-btn>
<router-link to="/gm/mission/selector">
<v-btn text color="primary">
<v-icon left>mdi-chevron-triple-left</v-icon>
Return to Mission Menu
</v-btn>
</router-link>
</v-container>
</template>

Expand Down
10 changes: 6 additions & 4 deletions src/features/encounters/mission/runner/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@
</v-card-text>
</v-card>
</v-menu>
<v-btn small tile color="primary" class="white--text" :to="`runner/${item.ID}`">
CONTINUE MISSION
<v-icon right>mdi-chevron-double-right</v-icon>
</v-btn>
<router-link :to="`runner/${item.ID}`">
<v-btn small tile color="primary" class="white--text">
CONTINUE MISSION
<v-icon right>mdi-chevron-double-right</v-icon>
</v-btn>
</router-link>
</template>
</v-data-table>
</v-col>
Expand Down
10 changes: 6 additions & 4 deletions src/features/encounters/npc/new/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@
<span v-if="selectedClass">Add New {{ selectedClass.Name }}</span>
<span v-else>Select NPC Class</span>
</v-btn>
<v-btn outlined block small class="mt-1" to="/gm/npc-roster">
<v-icon left>mdi-chevron-left</v-icon>
Return to NPC Roster
</v-btn>
<router-link to="/gm/npc-roster">
<v-btn outlined block small class="mt-1">
<v-icon left>mdi-chevron-left</v-icon>
Return to NPC Roster
</v-btn>
</router-link>
</v-col>
</v-row>
</template>
Expand Down
25 changes: 21 additions & 4 deletions src/features/main_menu/_components/MainBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
@mouseenter="$emit('hover')"
@mouseover="mouseOver = true"
@mouseleave="mouseOver = false"
@click="to ? $router.push(to) : $emit('clicked')"
@focusin="mouseOver = true"
@focusout="mouseOver = false"
@click="doAction"
@keydown.enter="doAction"
tabindex="0"
>
<div class="unskew heading pb-1">
<v-icon dark size="50" class="ml-n4 mt-n3">{{ icon }}</v-icon>
Expand Down Expand Up @@ -49,6 +53,15 @@ export default Vue.extend({
data: () => ({
mouseOver: false,
}),
methods: {
doAction() {
if(this.to) {
this.$router.push(this.to)
} else {
this.$emit('clicked')
}
},
},
})
</script>

Expand Down Expand Up @@ -90,8 +103,10 @@ export default Vue.extend({
background: var(--v-primary-base);
z-index: 5;
transition: all ease-in-out 0.45s;
outline: none;
}
.btn-main:not(.disabled):hover {
.btn-main:not(.disabled):hover,
.btn-main:not(.disabled):focus {
background-color: var(--v-active-base);
transition: all ease-in-out 0.45s;
}
Expand All @@ -105,7 +120,8 @@ export default Vue.extend({
transition: all ease-in-out 0.45s;
z-index: 4;
}
.btn-main:not(.disabled):hover::after {
.btn-main:not(.disabled):hover::after,
.btn-main:not(.disabled):focus::after {
left: 625px;
background: var(--v-active-base);
transition: all ease-in-out 0.45s;
Expand All @@ -120,7 +136,8 @@ export default Vue.extend({
transition: all ease-in-out 0.45s;
z-index: 4;
}
.btn-main:not(.disabled):hover::before {
.btn-main:not(.disabled):hover::before,
.btn-main:not(.disabled):focus::before {
left: 650px;
background: var(--v-active-base);
transition: all ease-in-out 0.45s;
Expand Down
1 change: 1 addition & 0 deletions src/features/main_menu/_components/MainTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
style="z-index: 999 !important"
class="mt-2 mr-2"
@mouseenter="$emit('logupdate')"
tabindex="0"
>
View Changelog
</v-btn>
Expand Down
1 change: 1 addition & 0 deletions src/features/main_menu/desktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
dark
text
href="https://www.patreon.com/compcon"
tabindex="0"
>
Support This Project
</v-btn>
Expand Down
9 changes: 6 additions & 3 deletions src/features/nav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@

<v-tooltip bottom open-delay="500ms">
<template v-slot:activator="{ on }">
<v-btn text icon to="/compendium" v-on="on">
<v-icon color="white">mdi-book</v-icon>
</v-btn>
<!-- Using <a> around the button lets it link properly without breaking the button styling like `to` does.-->
<router-link to="/compendium">
<v-btn text icon v-on="on">
<v-icon dark>mdi-book</v-icon>
</v-btn>
</router-link>
</template>
<span>Compendium</span>
</v-tooltip>
Expand Down
8 changes: 6 additions & 2 deletions src/features/nav/modes/compendium.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<template>
<div>
<v-btn text color="white" tile to="/gm">Encounter Toolkit</v-btn>
<router-link to="/gm">
<v-btn text color="white" tile>Encounter Toolkit</v-btn>
</router-link>
<v-divider vertical dark class="ml-2 mr-2" />
<v-btn text color="white" tile to="/pilot_management">Pilot Roster</v-btn>
<router-link to="/pilot_management">
<v-btn text color="white" tile>Pilot Roster</v-btn>
</router-link>
<v-divider vertical dark class="ml-2 mr-2" />
</div>
</template>
Expand Down
32 changes: 21 additions & 11 deletions src/features/nav/modes/encounter.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
<template>
<div>
<v-btn text color="white" tile to="/gm/npc-roster">NPC Roster</v-btn>
<router-link to="/gm/npc-roster">
<v-btn text color="white" tile>NPC Roster</v-btn>
</router-link>
<v-divider vertical dark class="ml-2 mr-2" />
<v-btn text color="white" tile to="/gm/encounter-builder">Encounters</v-btn>
<router-link to="/gm/encounter-builder">
<v-btn text color="white" tile>Encounters</v-btn>
</router-link>
<v-divider vertical dark class="ml-2 mr-2" />
<v-btn v-if="$vuetify.breakpoint.lgAndUp" text color="white" tile to="/gm/mission/builder">
Mission Builder
</v-btn>
<v-btn v-if="$vuetify.breakpoint.lgAndUp" text color="white" tile to="/gm/mission/selector">
Mission Runner
</v-btn>
<v-btn v-if="!$vuetify.breakpoint.lgAndUp" text color="white" tile to="/gm/mission">
Missions
</v-btn>
<router-link to="/gm/mission/builder">
<v-btn v-if="$vuetify.breakpoint.lgAndUp" text color="white" tile>
Mission Builder
</v-btn>
</router-link>
<router-link to="/gm/mission/selector">
<v-btn v-if="$vuetify.breakpoint.lgAndUp" text color="white" tile>
Mission Runner
</v-btn>
</router-link>
<router-link to="/gm/mission">
<v-btn v-if="!$vuetify.breakpoint.lgAndUp" text color="white" tile>
Missions
</v-btn>
</router-link>
<v-divider vertical dark class="ml-2 mr-2" />
</div>
</template>
Expand Down
4 changes: 3 additions & 1 deletion src/features/nav/modes/pilot.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div>
<v-btn text color="white" tile to="/pilot_management">Pilot Roster</v-btn>
<router-link to="/pilot_management">
<v-btn text color="white" tile>Pilot Roster</v-btn>
</router-link>
<v-divider v-if="pilot" vertical dark class="ml-2 mr-2" />
<v-menu v-if="pilot" nudge-bottom="35px" open-on-hover>
<template v-slot:activator="{ on }">
Expand Down
5 changes: 5 additions & 0 deletions src/features/nav/pages/Help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
block
color="secondary"
class="white--text"
tabindex="0"
>
Frequently Asked Questions
</v-btn>
Expand All @@ -21,6 +22,7 @@
block
color="secondary"
class="white--text"
tabindex="0"
>
Troubleshooting FAQ
</v-btn>
Expand All @@ -35,6 +37,7 @@
block
color="error"
class="white--text"
tabindex="0"
>
Report a Bug / Suggest a Feature
</v-btn>
Expand Down Expand Up @@ -101,13 +104,15 @@
target="_blank"
href="https://github.com/massif-press/compcon/wiki/Frequently-Asked-Questions"
v-html="`COMP/CON FAQ`"
tabindex="0"
/>
may have an answer to your question! If you still can't find what you're looking for, please
stop by
<a
target="_blank"
href="https://discord.gg/rwcpzsU"
v-html="`the unofficial LANCER discord`"
tabindex="0"
/>
(and specifically the #comp-con channel) with your questions or comments for the developers.
</p>
Expand Down
4 changes: 3 additions & 1 deletion src/features/nav/pages/Options/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@
</p>

<div class="text-right">
<v-btn small text to="./ui-test">UI Test</v-btn>
<router-link to="./ui-test">
<v-btn small text>UI Test</v-btn>
</router-link>
</div>
</div>
</template>
Expand Down
Loading

0 comments on commit a148092

Please sign in to comment.