Continued migrating UI to vuetify 2

This commit is contained in:
Stefan Zermatten
2021-03-25 12:54:44 +02:00
parent 480da6fc7d
commit fe3fa56541
70 changed files with 218 additions and 208 deletions

View File

@@ -6,12 +6,14 @@
lazy lazy
left left
> >
<v-btn <template #activator="{ on }">
slot="activator" <v-btn
icon icon
> v-on="on"
<v-icon>format_paint</v-icon> >
</v-btn> <v-icon>format_paint</v-icon>
</v-btn>
</template>
<v-card class="overflow-hidden"> <v-card class="overflow-hidden">
<v-card-text> <v-card-text>
<v-layout <v-layout
@@ -71,14 +73,14 @@
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-btn <v-btn
flat text
@click="$emit('input')" @click="$emit('input')"
> >
Clear Clear
</v-btn> </v-btn>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
@click="opened = false" @click="opened = false"
> >
Done Done

View File

@@ -43,9 +43,9 @@
<v-btn <v-btn
:small="!flat" :small="!flat"
:fab="!flat" :fab="!flat"
:flat="flat" :text="flat"
:icon="flat" :icon="flat"
class="filled" class="mx-2 filled"
@click="commitEdit" @click="commitEdit"
> >
<v-icon>done</v-icon> <v-icon>done</v-icon>
@@ -53,9 +53,9 @@
<v-btn <v-btn
:small="!flat" :small="!flat"
:fab="!flat" :fab="!flat"
:flat="flat" :text="flat"
:icon="flat" :icon="flat"
class="mx-0 filled" class="filled"
@click="cancelEdit" @click="cancelEdit"
> >
<v-icon>close</v-icon> <v-icon>close</v-icon>

View File

@@ -30,7 +30,7 @@
color: { color: {
type: String, type: String,
default(){ default(){
return this.$vuetify.theme.secondary; return this.$vuetify.theme.themes.light.secondary;
}, },
}, },
}, },

View File

@@ -16,7 +16,7 @@
:loading="loading" :loading="loading"
:error-messages="errors" :error-messages="errors"
:disabled="isDisabled" :disabled="isDisabled"
box filled
v-on="on" v-on="on"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"

View File

@@ -7,7 +7,7 @@
:menu-props="{auto: true, lazy: true}" :menu-props="{auto: true, lazy: true}"
:search-input.sync="searchInput" :search-input.sync="searchInput"
:disabled="isDisabled" :disabled="isDisabled"
box filled
@change="customChange" @change="customChange"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"

View File

@@ -6,7 +6,7 @@
:value="safeValue" :value="safeValue"
:menu-props="{auto: true, lazy: true}" :menu-props="{auto: true, lazy: true}"
:disabled="isDisabled" :disabled="isDisabled"
box filled
@change="change" @change="change"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"

View File

@@ -6,7 +6,7 @@
:value="safeValue" :value="safeValue"
:disabled="isDisabled" :disabled="isDisabled"
:auto-grow="autoGrow" :auto-grow="autoGrow"
box filled
@input="input" @input="input"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"

View File

@@ -6,7 +6,7 @@
:error-messages="errors" :error-messages="errors"
:value="safeValue" :value="safeValue"
:disabled="isDisabled" :disabled="isDisabled"
:box="!regular" :filled="!regular"
@input="input" @input="input"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"

View File

@@ -142,7 +142,7 @@ export default {
return isDarkColor(this.color); return isDarkColor(this.color);
}, },
color(){ color(){
return this.model && this.model.color || this.$vuetify.theme.secondary; return this.model && this.model.color || this.$vuetify.theme.themes.light.secondary;
}, },
title(){ title(){
let model = this.model; let model = this.model;

View File

@@ -14,7 +14,7 @@
<v-btn <v-btn
large large
fab fab
outline outlined
@click="makeRoll" @click="makeRoll"
> >
<div class="text-h4"> <div class="text-h4">

View File

@@ -11,7 +11,6 @@
<v-btn <v-btn
v-if="snackbar.callback" v-if="snackbar.callback"
class="primary--text" class="primary--text"
flat
icon icon
@click="doCallback" @click="doCallback"
> >
@@ -19,7 +18,6 @@
</v-btn> </v-btn>
<v-btn <v-btn
v-if="snackbar.showCloseButton" v-if="snackbar.showCloseButton"
flat
icon icon
@click="$store.dispatch('closeSnackbar')" @click="$store.dispatch('closeSnackbar')"
> >

View File

@@ -161,7 +161,7 @@
.theme--light .tree-node-title:hover { .theme--light .tree-node-title:hover {
background: rgba(0,0,0,.04); background: rgba(0,0,0,.04);
} }
.dummy-node { .tree-node-title, .dummy-node {
height: 40px; height: 40px;
} }
</style> </style>

View File

@@ -20,7 +20,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Done Done

View File

@@ -2,7 +2,7 @@
<v-btn <v-btn
:loading="loading" :loading="loading"
:disabled="context.editPermission === false" :disabled="context.editPermission === false"
outline outlined
style="width: 160px;" style="width: 160px;"
@click="rest" @click="rest"
> >

View File

@@ -229,14 +229,14 @@
</v-stepper> </v-stepper>
<template slot="actions"> <template slot="actions">
<v-btn <v-btn
flat text
@click="$emit('pop')" @click="$emit('pop')"
> >
Cancel Cancel
</v-btn> </v-btn>
<v-btn <v-btn
v-if="step > 1" v-if="step > 1"
flat text
@click="step--" @click="step--"
> >
Back Back

View File

@@ -22,7 +22,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel

View File

@@ -12,8 +12,12 @@
data-id="insert-creature-property-fab" data-id="insert-creature-property-fab"
small small
> >
<v-icon>add</v-icon> <v-icon v-if="fab">
<v-icon>close</v-icon> close
</v-icon>
<v-icon v-else>
add
</v-icon>
</v-btn> </v-btn>
</template> </template>

View File

@@ -1,16 +1,17 @@
<template lang="html"> <template lang="html">
<v-toolbar <v-app-bar
app app
class="character-sheet-toolbar" class="character-sheet-toolbar"
:color="toolbarColor" :color="toolbarColor"
:dark="isDark" :dark="isDark"
:light="!isDark" :light="!isDark"
clipped-right
extended extended
tabs tabs
dense dense
> >
<v-toolbar-side-icon @click="toggleDrawer" /> <v-app-bar-nav-icon @click="toggleDrawer" />
<v-toolbar-title> <v-app-bar-title>
<v-fade-transition <v-fade-transition
mode="out-in" mode="out-in"
> >
@@ -18,13 +19,13 @@
{{ $store.state.pageTitle }} {{ $store.state.pageTitle }}
</div> </div>
</v-fade-transition> </v-fade-transition>
</v-toolbar-title> </v-app-bar-title>
<v-spacer /> <v-spacer />
<v-fade-transition <v-fade-transition
mode="out-in" mode="out-in"
> >
<div :key="$route.meta.title"> <div :key="$route.meta.title">
<v-toolbar-items v-if="creature"> <template v-if="creature">
<v-menu <v-menu
bottom bottom
left left
@@ -64,8 +65,8 @@
</v-list-item> </v-list-item>
</v-list> </v-list>
</v-menu> </v-menu>
<v-toolbar-side-icon @click="toggleRightDrawer" /> <v-app-bar-nav-icon @click="toggleRightDrawer" />
</v-toolbar-items> </template>
</div> </div>
</v-fade-transition> </v-fade-transition>
<v-fade-transition <v-fade-transition
@@ -83,7 +84,9 @@
centered centered
grow grow
max="100px" max="100px"
color="primary"
:value="$store.getters.tabById($route.params.id)" :value="$store.getters.tabById($route.params.id)"
:background-color="toolbarColor"
@change="e => $store.commit( @change="e => $store.commit(
'setTabForCharacterSheet', 'setTabForCharacterSheet',
{id: $route.params.id, tab: e} {id: $route.params.id, tab: e}
@@ -115,7 +118,7 @@
/> />
</div> </div>
</v-fade-transition> </v-fade-transition>
</v-toolbar> </v-app-bar>
</template> </template>
<script lang="js"> <script lang="js">
@@ -142,7 +145,7 @@ export default {
if (this.creature && this.creature.color){ if (this.creature && this.creature.color){
return this.creature.color; return this.creature.color;
} else { } else {
return this.$vuetify.theme.secondary; return this.$vuetify.theme.themes.light.secondary;
} }
}, },
isDark(){ isDark(){

View File

@@ -69,7 +69,6 @@
</v-list-item-content> </v-list-item-content>
<v-list-item-action> <v-list-item-action>
<v-btn <v-btn
flat
icon icon
data-id="experience-info-button" data-id="experience-info-button"
@click="showExperienceList" @click="showExperienceList"
@@ -79,7 +78,6 @@
</v-list-item-action> </v-list-item-action>
<v-list-item-action> <v-list-item-action>
<v-btn <v-btn
flat
icon icon
data-id="experience-add-button" data-id="experience-add-button"
@click="addExperience" @click="addExperience"

View File

@@ -11,10 +11,12 @@
<rest-button <rest-button
:creature-id="creatureId" :creature-id="creatureId"
type="shortRest" type="shortRest"
class="ma-1"
/> />
<rest-button <rest-button
:creature-id="creatureId" :creature-id="creatureId"
type="longRest" type="longRest"
class="ma-1"
/> />
</v-card-text> </v-card-text>
</v-card> </v-card>
@@ -41,7 +43,6 @@
<v-list-item-action> <v-list-item-action>
<v-btn <v-btn
icon icon
flat
@click.stop="softRemove(buff._id)" @click.stop="softRemove(buff._id)"
> >
<v-icon>delete</v-icon> <v-icon>delete</v-icon>

View File

@@ -12,6 +12,7 @@
<v-toolbar <v-toolbar
flat flat
dense dense
style="flex-grow: 0;"
> >
<v-spacer /> <v-spacer />
<v-switch <v-switch

View File

@@ -5,6 +5,7 @@
:model="model" :model="model"
:editing="editing" :editing="editing"
:flat="flat" :flat="flat"
style="flex-grow: 0;"
@duplicate="duplicate" @duplicate="duplicate"
@remove="remove" @remove="remove"
@toggle-editing="editing = !editing" @toggle-editing="editing = !editing"
@@ -49,7 +50,7 @@
class="layout justify-end" class="layout justify-end"
> >
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Done Done

View File

@@ -12,7 +12,7 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
color="primary" color="primary"
@click="$store.dispatch('popDialogStack', node)" @click="$store.dispatch('popDialogStack', node)"
> >

View File

@@ -28,7 +28,7 @@
class="layout justify-end" class="layout justify-end"
> >
<v-btn <v-btn
flat text
:disabled="!valid" :disabled="!valid"
@click="$store.dispatch('popDialogStack', model)" @click="$store.dispatch('popDialogStack', model)"
> >

View File

@@ -16,7 +16,7 @@
class="layout justify-end" class="layout justify-end"
> >
<v-btn <v-btn
flat text
:disabled="!valid" :disabled="!valid"
@click="insertExperience" @click="insertExperience"
> >

View File

@@ -7,7 +7,6 @@
<v-spacer /> <v-spacer />
<v-btn <v-btn
icon icon
flat
data-id="experience-add-button" data-id="experience-add-button"
@click="addExperience" @click="addExperience"
> >
@@ -15,7 +14,6 @@
</v-btn> </v-btn>
<v-btn <v-btn
icon icon
flat
@click="recompute" @click="recompute"
> >
<v-icon>refresh</v-icon> <v-icon>refresh</v-icon>
@@ -37,7 +35,7 @@
<v-icon style="font-size: 240px; width: 240px; height: 240px;"> <v-icon style="font-size: 240px; width: 240px; height: 240px;">
$vuetify.icons.baby_face $vuetify.icons.baby_face
</v-icon> </v-icon>
<p class="headline"> <p class="text-h5">
No experiences No experiences
</p> </p>
</div> </div>

View File

@@ -121,13 +121,13 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel
</v-btn> </v-btn>
<v-btn <v-btn
flat text
:disabled="!selectedNode" :disabled="!selectedNode"
@click="insert" @click="insert"
> >

View File

@@ -28,7 +28,6 @@
<v-list-item-action> <v-list-item-action>
<v-btn <v-btn
icon icon
flat
small small
@click.stop="remove(child)" @click.stop="remove(child)"
> >

View File

@@ -24,7 +24,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel

View File

@@ -16,7 +16,6 @@
> >
<v-btn <v-btn
icon icon
flat
@click="back" @click="back"
> >
<v-icon>arrow_back</v-icon> <v-icon>arrow_back</v-icon>
@@ -67,7 +66,7 @@
return isDarkColor(this.computedColor); return isDarkColor(this.computedColor);
}, },
computedColor(){ computedColor(){
return this.color || this.$vuetify.theme.secondary; return this.color || this.$vuetify.theme.themes.light.secondary;
} }
}, },
methods: { methods: {

View File

@@ -213,7 +213,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.4);
z-index: 4; z-index: 6;
pointer-events: initial; pointer-events: initial;
} }
.backdrop-fade-enter-active, .backdrop-fade-leave-active { .backdrop-fade-enter-active, .backdrop-fade-leave-active {
@@ -229,7 +229,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
pointer-events: none; pointer-events: none;
z-index: 4; z-index: 6;
} }
.dialog-sizer { .dialog-sizer {
position: relative; position: relative;
@@ -239,7 +239,7 @@
height: 80%; height: 80%;
height: calc(100% - 64px); height: calc(100% - 64px);
max-height: 800px; max-height: 800px;
z-index: 5; z-index: 7;
flex: initial; flex: initial;
} }
/* sm */ /* sm */

View File

@@ -5,7 +5,7 @@
justify-center justify-center
> >
<v-btn <v-btn
flat text
to="/sign-in" to="/sign-in"
> >
Sign in Sign in

View File

@@ -13,3 +13,7 @@
</v-card> </v-card>
</div> </div>
</template> </template>
<script lang="js">
export default {}
</script>

View File

@@ -28,7 +28,7 @@
</v-toolbar> </v-toolbar>
<div <div
v-if="libraryId" v-if="libraryId"
style="width: 100%; height: 100%; overflow: auto;" style="width: 100%; height: 100%; overflow: auto; padding: 12px;"
> >
<library-contents-container <library-contents-container
:library-id="libraryId" :library-id="libraryId"
@@ -43,7 +43,7 @@
edit-mode edit-mode
:organize-mode="organize" :organize-mode="organize"
:selected-node-id="selected" :selected-node-id="selected"
style="overflow-y: auto;" style="overflow-y: auto; padding: 12px;"
@selected="clickNode" @selected="clickNode"
/> />
</div> </div>
@@ -94,7 +94,7 @@ export default {
isToolbarDark(){ isToolbarDark(){
return isDarkColor( return isDarkColor(
this.selectedNode && this.selectedNode.color || this.selectedNode && this.selectedNode.color ||
this.$vuetify.theme.secondary this.$vuetify.theme.themes.light.secondary
); );
} }
}, },

View File

@@ -1,38 +1,40 @@
<template lang="html"> <template lang="html">
<div <div
class="library-browser"
style=" style="
background-color: inherit; background-color: inherit;
overflow-y: auto; overflow-y: auto;
" "
> >
<v-expansion-panel <v-expansion-panels
style="box-shadow: none;" v-model="expandedLibrary"
expand accordian
flat
multiple
> >
<v-expansion-panel-content <v-expansion-panel
v-for="(library, index) in libraries" v-for="(library, index) in libraries"
:key="library._id" :key="library._id"
v-model="expandedLibrary[index]"
lazy
:data-id="library._id" :data-id="library._id"
> >
<template #header> <v-expansion-panel-header>
<div class="text-h6"> <div class="text-h6">
{{ library.name }} {{ library.name }}
</div> </div>
</template> </v-expansion-panel-header>
<v-card flat> <v-expansion-panel-content>
<library-contents-container <library-contents-container
:library-id="library._id" :library-id="library._id"
:organize-mode="organizeMode && editPermission(library)" :organize-mode="organizeMode && editPermission(library)"
:edit-mode="editMode" :edit-mode="editMode"
:selected-node-id="selectedNodeId" :selected-node-id="selectedNodeId"
:should-subscribe="expandedLibrary[index]" :should-subscribe="expandedLibrary.includes(index)"
class="mb-4"
@selected="e => $emit('selected', e)" @selected="e => $emit('selected', e)"
/> />
<v-card-actions> <v-layout>
<v-btn <v-btn
flat text
small small
style="background-color: inherit; margin-top: 0;" style="background-color: inherit; margin-top: 0;"
:disabled="!editPermission(library)" :disabled="!editPermission(library)"
@@ -44,21 +46,20 @@
</v-btn> </v-btn>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat
small small
icon icon
@click="$router.push(`/library/${library._id}`)" @click="$router.push(`/library/${library._id}`)"
> >
<v-icon>arrow_forward</v-icon> <v-icon>arrow_forward</v-icon>
</v-btn> </v-btn>
</v-card-actions> </v-layout>
</v-card> </v-expansion-panel-content>
</v-expansion-panel-content> </v-expansion-panel>
</v-expansion-panel> </v-expansion-panels>
<v-btn <v-btn
v-show="noLibrariesExpanded" v-show="noLibrariesExpanded"
v-if="editMode" v-if="editMode"
flat text
color="primary" color="primary"
style="background-color: inherit;" style="background-color: inherit;"
data-id="insert-library-button" data-id="insert-library-button"
@@ -97,12 +98,7 @@ export default {
};}, };},
computed: { computed: {
noLibrariesExpanded(){ noLibrariesExpanded(){
if (!this.expandedLibrary) return true; return !this.expandedLibrary || this.expandedLibrary.length === 0;
let noneExpanded = true;
this.expandedLibrary.forEach(lib => {
if(lib) noneExpanded = false;
});
return noneExpanded;
}, },
}, },
meteor: { meteor: {
@@ -186,5 +182,8 @@ export default {
} }
</script> </script>
<style lang="css" scoped> <style lang="css">
.v-expansion-panel-content__wrap, .v-expansion-panel-header {
padding: 0 !important;
}
</style> </style>

View File

@@ -16,7 +16,7 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
:disabled="!valid" :disabled="!valid"
@click="$store.dispatch('popDialogStack', library)" @click="$store.dispatch('popDialogStack', library)"
> >

View File

@@ -6,7 +6,6 @@
</v-toolbar-title> </v-toolbar-title>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat
icon icon
data-id="share-library-button" data-id="share-library-button"
@click="share" @click="share"
@@ -14,7 +13,6 @@
<v-icon>share</v-icon> <v-icon>share</v-icon>
</v-btn> </v-btn>
<v-btn <v-btn
flat
icon icon
data-id="delete-library-button" data-id="delete-library-button"
@click="remove" @click="remove"
@@ -32,7 +30,7 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
data-id="delete-library-button" data-id="delete-library-button"
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >

View File

@@ -43,14 +43,14 @@
> >
<template v-if="selection"> <template v-if="selection">
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack', false)" @click="$store.dispatch('popDialogStack', false)"
> >
Cancel Cancel
</v-btn> </v-btn>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack', true)" @click="$store.dispatch('popDialogStack', true)"
> >
Select Select
@@ -58,7 +58,7 @@
</template> </template>
<v-btn <v-btn
v-else v-else
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Done Done

View File

@@ -28,7 +28,7 @@
class="layout justify-end" class="layout justify-end"
> >
<v-btn <v-btn
flat text
:disabled="!valid" :disabled="!valid"
@click="$store.dispatch('popDialogStack', model)" @click="$store.dispatch('popDialogStack', model)"
> >

View File

@@ -12,7 +12,7 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
color="primary" color="primary"
@click="$store.dispatch('popDialogStack', node._id)" @click="$store.dispatch('popDialogStack', node._id)"
> >

View File

@@ -1,5 +1,5 @@
<template lang="html"> <template lang="html">
<v-toolbar <v-app-bar
app app
color="secondary" color="secondary"
dark dark
@@ -7,40 +7,34 @@
extended extended
dense dense
> >
<v-toolbar-side-icon @click="toggleDrawer" /> <v-app-bar-nav-icon @click="toggleDrawer" />
<v-toolbar-items> <v-btn
<v-btn icon
flat @click="$router.push('/library')"
icon >
@click="$router.push('/library')" <v-icon>arrow_back</v-icon>
> </v-btn>
<v-icon>arrow_back</v-icon>
</v-btn>
</v-toolbar-items>
<v-toolbar-title> <v-toolbar-title>
{{ library && library.name }} {{ library && library.name }}
</v-toolbar-title> </v-toolbar-title>
<v-spacer /> <v-spacer />
<v-toolbar-items> <v-btn
<v-btn v-if="showSubscribeButton"
v-if="showSubscribeButton" text
flat :loading="loading"
:loading="loading" @click="subscribe(!subscribed)"
@click="subscribe(!subscribed)" >
> {{ subscribed ? 'Unsubscribe' : 'Subscribe' }}
{{ subscribed ? 'Unsubscribe' : 'Subscribe' }} </v-btn>
</v-btn> <v-btn
<v-btn v-if="canEdit"
v-if="canEdit" icon
flat data-id="library-edit-button"
icon @click="editLibrary(library._id)"
data-id="library-edit-button" >
@click="editLibrary(library._id)" <v-icon>settings</v-icon>
> </v-btn>
<v-icon>settings</v-icon> </v-app-bar>
</v-btn>
</v-toolbar-items>
</v-toolbar>
</template> </template>
<script lang="js"> <script lang="js">

View File

@@ -37,7 +37,6 @@
<v-btn <v-btn
slot="activator" slot="activator"
icon icon
flat
@click="changeUsername" @click="changeUsername"
> >
<v-icon>create</v-icon> <v-icon>create</v-icon>
@@ -70,7 +69,6 @@
<v-btn <v-btn
slot="activator" slot="activator"
icon icon
flat
:loading="updatePatreonLoading" :loading="updatePatreonLoading"
@click="updatePatreon" @click="updatePatreon"
> >

View File

@@ -24,7 +24,7 @@
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
color="primary" color="primary"
href="https://discord.gg/qEvdfeB" href="https://discord.gg/qEvdfeB"
> >

View File

@@ -7,10 +7,10 @@
<div class="layout align-center px-3"> <div class="layout align-center px-3">
<div class="avatar"> <div class="avatar">
<v-btn <v-btn
flat
icon icon
outline outlined
style="margin-left: -4px; font-size: 18px;" style="font-size: 18px;"
class="mr-2"
:color="model.color || 'primary'" :color="model.color || 'primary'"
:loading="doActionLoading" :loading="doActionLoading"
:disabled="model.insufficientResources || !context.editPermission" :disabled="model.insufficientResources || !context.editPermission"
@@ -37,7 +37,7 @@
> >
{{ model.name || propertyName }} {{ model.name || propertyName }}
</div> </div>
<div class="action-sub-title layout row align-center"> <div class="action-sub-title layout align-center">
<div class="flex"> <div class="flex">
{{ model.actionType }} {{ model.actionType }}
</div> </div>

View File

@@ -108,7 +108,7 @@ import IncrementMenu from '/imports/ui/components/IncrementMenu.vue';
margin-right: -50%; margin-right: -50%;
width: 200%; width: 200%;
margin-top: -34px !important; margin-top: -34px !important;
z-index: 4; z-index: 7;
position: relative; position: relative;
} }
</style> </style>
@@ -178,6 +178,6 @@ import IncrementMenu from '/imports/ui/components/IncrementMenu.vue';
left: 0; left: 0;
right: 0; right: 0;
background-color: rgba(0, 0, 0, 0.15); background-color: rgba(0, 0, 0, 0.15);
z-index: 3; z-index: 6;
} }
</style> </style>

View File

@@ -1,46 +1,48 @@
<template lang="html"> <template lang="html">
<v-card <v-card
class="resource-card layout row" class="resource-card"
:class="hover ? 'elevation-8': ''" :class="hover ? 'elevation-8': ''"
> >
<div class="buttons layout column justify-center pl-3"> <v-layout>
<v-btn <div class="buttons layout column justify-center pl-3">
icon <v-btn
small icon
:disabled="currentValue >= value || context.editPermission === false" small
@click="increment(1)" :disabled="currentValue >= value || context.editPermission === false"
@click="increment(1)"
>
<v-icon>arrow_drop_up</v-icon>
</v-btn>
<v-btn
icon
small
:disabled="currentValue <= 0 || context.editPermission === false"
@click="increment(-1)"
>
<v-icon>arrow_drop_down</v-icon>
</v-btn>
</div>
<div
class="layout align-center value pl-2 pr-3"
> >
<v-icon>arrow_drop_up</v-icon> <div class="text-h4">
</v-btn> {{ currentValue }}
<v-btn </div>
icon <div class="text-h6 ml-2 max-value">
small /{{ value }}
:disabled="currentValue <= 0 || context.editPermission === false" </div>
@click="increment(-1)" </div>
<div
class="content layout align-center pr-3"
@click="click"
@mouseover="hover = true"
@mouseleave="hover = false"
> >
<v-icon>arrow_drop_down</v-icon> <div class="text-truncate ">
</v-btn> {{ name }}
</div> </div>
<div
class="layout align-center value pl-2 pr-3"
>
<div class="text-h4">
{{ currentValue }}
</div> </div>
<div class="text-h6 ml-2 max-value"> </v-layout>
/{{ value }}
</div>
</div>
<div
class="content layout row align-center pr-3"
@click="click"
@mouseover="hover = true"
@mouseleave="hover = false"
>
<div class="text-truncate ">
{{ name }}
</div>
</div>
</v-card> </v-card>
</template> </template>

View File

@@ -43,7 +43,7 @@
<v-list-item-avatar v-if="!hideCastButton"> <v-list-item-avatar v-if="!hideCastButton">
<v-btn <v-btn
icon icon
flat text
class="primary--text" class="primary--text"
:data-id="`spell-slot-cast-btn-${model._id}`" :data-id="`spell-slot-cast-btn-${model._id}`"
@click.stop="$emit('cast')" @click.stop="$emit('cast')"

View File

@@ -25,7 +25,6 @@
<increment-button <increment-button
v-if="context.creatureId && model.showIncrement" v-if="context.creatureId && model.showIncrement"
icon icon
flat
color="primary" color="primary"
:disabled="context.editPermission === false" :disabled="context.editPermission === false"
:value="model.quantity" :value="model.quantity"

View File

@@ -1,13 +1,13 @@
<template lang="html"> <template lang="html">
<v-list-item <v-list-item
class="skill-list-tile" class="skill-list-tile"
height="32px" style="min-height: 36px;"
v-on="hasClickListener ? {click} : {}" v-on="hasClickListener ? {click} : {}"
> >
<v-list-item-action class="prof-icon"> <v-icon class="prof-icon">
<v-icon>{{ icon }}</v-icon> {{ icon }}
</v-list-item-action> </v-icon>
<v-list-item-content> <v-list-item-content class="py-1">
<v-list-item-title> <v-list-item-title>
<span <span
v-if="!hideModifier" v-if="!hideModifier"
@@ -101,3 +101,7 @@ export default {
text-align: center; text-align: center;
} }
</style> </style>
<style lang="scss">
$list-item-min-height: 32px;
</style>

View File

@@ -24,7 +24,6 @@
<template #activator="{ on }"> <template #activator="{ on }">
<v-btn <v-btn
icon icon
flat
:class="{'primary--text': filtersApplied}" :class="{'primary--text': filtersApplied}"
v-on="on" v-on="on"
> >
@@ -49,14 +48,14 @@
</v-list-item> </v-list-item>
<div class="layout"> <div class="layout">
<v-btn <v-btn
flat text
@click="clearBooleanFilters" @click="clearBooleanFilters"
> >
Clear Clear
</v-btn> </v-btn>
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
class="primary--text" class="primary--text"
@click="filterMenuOpen = false" @click="filterMenuOpen = false"
> >
@@ -127,13 +126,13 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel
</v-btn> </v-btn>
<v-btn <v-btn
flat text
:disabled="!canCast" :disabled="!canCast"
class="primary--text" class="primary--text"
@click="$store.dispatch('popDialogStack', { @click="$store.dispatch('popDialogStack', {

View File

@@ -37,7 +37,6 @@
<v-btn <v-btn
v-else-if="showInfoButton" v-else-if="showInfoButton"
icon icon
flat
class="info-icon" class="info-icon"
:data-id="`spell-info-btn-${model._id}`" :data-id="`spell-info-btn-${model._id}`"
@click.stop="$emit('show-info')" @click.stop="$emit('show-info')"

View File

@@ -13,7 +13,7 @@
/> />
</div> </div>
<v-btn <v-btn
outline outlined
icon icon
large large
class="ma-3" class="ma-3"

View File

@@ -13,7 +13,7 @@
/> />
</div> </div>
<v-btn <v-btn
outline outlined
icon icon
large large
class="ma-3" class="ma-3"

View File

@@ -31,7 +31,7 @@
:disabled="addResourceLoading || context.editPermission === false" :disabled="addResourceLoading || context.editPermission === false"
icon icon
large large
outline outlined
v-on="on" v-on="on"
> >
<v-icon>add</v-icon> <v-icon>add</v-icon>

View File

@@ -13,7 +13,7 @@
:value="true" :value="true"
:icon="errorIcon(error.type)" :icon="errorIcon(error.type)"
:color="errorColor(error.type)" :color="errorColor(error.type)"
outline outlined
> >
<pre>{{ error.message }}</pre> <pre>{{ error.message }}</pre>
</v-alert> </v-alert>

View File

@@ -1,6 +1,6 @@
<template lang="html"> <template lang="html">
<div class="action-viewer"> <div class="action-viewer">
<div class="action-sub-title layout row align-center justify-space-between wrap mb-3"> <div class="action-sub-title layout align-center justify-space-between wrap mb-3">
<property-tags <property-tags
:tags="model.tags" :tags="model.tags"
no-margin no-margin
@@ -16,8 +16,7 @@
<div class="layout align-center justify-space-around"> <div class="layout align-center justify-space-around">
<v-btn <v-btn
v-if="context.creatureId" v-if="context.creatureId"
flat outlined
outline
style="font-size: 18px;" style="font-size: 18px;"
class="ma-2" class="ma-2"
:color="model.color || 'primary'" :color="model.color || 'primary'"
@@ -66,7 +65,7 @@
</span> </span>
<v-btn <v-btn
v-if="context.creatureId" v-if="context.creatureId"
outline outlined
color="primary" color="primary"
:disabled="!model.usesUsed || !context.editPermission" :disabled="!model.usesUsed || !context.editPermission"
@click="resetUses" @click="resetUses"

View File

@@ -1,5 +1,5 @@
<template lang="html"> <template lang="html">
<div class="damage-viewer layout row align-center"> <div class="damage-viewer layout align-center">
{{ model.amountResult }} {{ model.amountResult }}
{{ model.damageType }}<span {{ model.damageType }}<span
v-if="model.damageType !== 'healing'" v-if="model.damageType !== 'healing'"

View File

@@ -12,7 +12,7 @@
v-if="context.creatureId && model.showIncrement" v-if="context.creatureId && model.showIncrement"
icon icon
large large
outline outlined
color="primary" color="primary"
:value="model.quantity" :value="model.quantity"
@change="changeQuantity" @change="changeQuantity"

View File

@@ -1,6 +1,6 @@
<template lang="html"> <template lang="html">
<div class="proficiency-viewer"> <div class="proficiency-viewer">
<div class="text-h5 layout row"> <div class="text-h5 layout">
{{ model.skill }} {{ model.skill }}
<proficiency-icon <proficiency-icon
:value="model.value" :value="model.value"

View File

@@ -6,7 +6,7 @@
> >
<div <div
v-if="model.value !== undefined" v-if="model.value !== undefined"
class="text-h4 layout row align-center" class="text-h4 layout align-center"
> >
<v-icon class="mr-4"> <v-icon class="mr-4">
{{ icon }} {{ icon }}

View File

@@ -105,7 +105,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Done Done

View File

@@ -4,3 +4,4 @@ import './centeredInputs.css';
import './largeFormatInputs.css'; import './largeFormatInputs.css';
import './fitAvatars.css'; import './fitAvatars.css';
import './lineClamp.css'; import './lineClamp.css';
import './toolbarFlex.css'

View File

@@ -0,0 +1,3 @@
.v-toolbar {
flex-grow: 0;
}

View File

@@ -19,7 +19,7 @@
<template slot="actions"> <template slot="actions">
<v-spacer /> <v-spacer />
<v-btn <v-btn
flat text
color="primary" color="primary"
@click="$store.dispatch('popDialogStack', selected)" @click="$store.dispatch('popDialogStack', selected)"
> >

View File

@@ -1,6 +1,6 @@
<template lang="html"> <template lang="html">
<div class="tabletop"> <div class="tabletop">
<section class="initiative-row layout row center"> <section class="initiative-row layout center">
<tabletop-creature-card <tabletop-creature-card
v-for="creature in creatures" v-for="creature in creatures"
:key="creature._id" :key="creature._id"
@@ -13,7 +13,7 @@
hover hover
@click="addCreature" @click="addCreature"
> >
<div class="flex layout row justify-center align-center"> <div class="flex layout justify-center align-center">
<v-icon>add</v-icon> <v-icon>add</v-icon>
</div> </div>
<v-card-title> <v-card-title>

View File

@@ -5,7 +5,7 @@
dark dark
dense dense
> >
<v-toolbar-side-icon @click="toggleDrawer" /> <v-app-bar-nav-icon @click="toggleDrawer" />
<v-toolbar-title> <v-toolbar-title>
Tabletop Tabletop
</v-toolbar-title> </v-toolbar-title>

View File

@@ -9,7 +9,7 @@
:value="true" :value="true"
icon="warning" icon="warning"
color="error" color="error"
outline outlined
> >
Deleted accounts can not be recovered Deleted accounts can not be recovered
</v-alert> </v-alert>
@@ -79,7 +79,7 @@
class="layout justify-end" class="layout justify-end"
> >
<v-btn <v-btn
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel

View File

@@ -22,7 +22,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
@click="$store.dispatch('popDialogStack')" @click="$store.dispatch('popDialogStack')"
> >
Cancel Cancel

View File

@@ -14,7 +14,7 @@
<v-spacer slot="actions" /> <v-spacer slot="actions" />
<v-btn <v-btn
slot="actions" slot="actions"
flat text
:disabled="!valid" :disabled="!valid"
:loading="loading" :loading="loading"
@click="setUsername" @click="setUsername"

View File

@@ -1,5 +1,4 @@
import Vue from 'vue'; import Vue from 'vue';
import Vuetify from 'vuetify/lib';
import store from '/imports/ui/vuexStore.js'; import store from '/imports/ui/vuexStore.js';
import VueMeteorTracker from 'vue-meteor-tracker'; import VueMeteorTracker from 'vue-meteor-tracker';
import AppLayout from '/imports/ui/layouts/AppLayout.vue'; import AppLayout from '/imports/ui/layouts/AppLayout.vue';
@@ -11,6 +10,9 @@ import SvgIconByName from '/imports/ui/icons/SvgIconByName.vue';
import SVG_ICONS from '/imports/constants/SVG_ICONS.js'; import SVG_ICONS from '/imports/constants/SVG_ICONS.js';
import '/imports/ui/markdownCofig.js'; import '/imports/ui/markdownCofig.js';
import Vuetify from 'vuetify/lib';
import { Scroll } from 'vuetify/lib/directives'
let icons = {}; let icons = {};
for (const name in SVG_ICONS) { for (const name in SVG_ICONS) {
@@ -26,7 +28,11 @@ for (const name in SVG_ICONS) {
Vue.use(VueMeteorTracker); Vue.use(VueMeteorTracker);
Vue.config.meteor.freeze = true; Vue.config.meteor.freeze = true;
Vue.config.devtools = true; Vue.config.devtools = true;
Vue.use(Vuetify); Vue.use(Vuetify, {
directives: {
Scroll,
},
});
Vue.use(ReactiveProvide, { Vue.use(ReactiveProvide, {
name: 'reactiveProvide', // default value name: 'reactiveProvide', // default value
}) })
@@ -41,6 +47,7 @@ Meteor.startup(() => {
theme: { theme: {
dark: false, dark: false,
themes, themes,
options: { customProperties: true },
}, },
icons: { icons: {
iconfont: 'md', iconfont: 'md',