wrap Transition around various views

This commit is contained in:
lightling 2024-05-17 17:08:37 -04:00
parent 10cada1f51
commit 936c61f0ba
5 changed files with 70 additions and 64 deletions

View file

@ -166,27 +166,28 @@ onMounted(async () => {
<template lang="pug">
.template.gallery-list
.navigation(
v-if='ready'
)
button.input(
v-if='variants?.length > 0'
@click='onNavigateBack($event)'
Transition
.navigation(
v-if='ready'
)
span Back
.input.labeled-checkbox(
v-if='hasWarnings'
)
label(
for='warning-toggle-checkbox'
) Hide Warnings
input(
type='checkbox'
name='warning-toggle-checkbox'
id='warning-toggle-checkbox'
v-model='hideWarnings'
@input='onHideWarningsToggled($event)'
button.input(
v-if='variants?.length > 0'
@click='onNavigateBack($event)'
)
span Back
.input.labeled-checkbox(
v-if='hasWarnings'
)
label(
for='warning-toggle-checkbox'
) Hide Warnings
input(
type='checkbox'
name='warning-toggle-checkbox'
id='warning-toggle-checkbox'
v-model='hideWarnings'
@input='onHideWarningsToggled($event)'
)
Transition
FilterPanel(
v-if='galleryReady && !!config.tags'

View file

@ -63,26 +63,27 @@ onMounted(async () => {
<template lang="pug">
.template.gallery-view
.view-wrapper(
v-if='ready'
)
.view-outlet
img(
:src='entry.url || entry.thumbnailUrl'
:style='styles'
)
.view-content
p {{ title }}
dl.info
.info-entry(
v-for='(field, key) in entry.fields'
:class='key'
Transition
.view-wrapper(
v-if='ready'
)
.view-outlet
img(
:src='entry.url || entry.thumbnailUrl'
:style='styles'
)
.view-content
p {{ title }}
dl.info
.info-entry(
v-for='(field, key) in entry.fields'
:class='key'
)
dt {{ key }}
dd {{ field }}
EmbedableContent(
:content='entry.description'
)
dt {{ key }}
dd {{ field }}
EmbedableContent(
:content='entry.description'
)
</template>
<style scoped lang="sass">

View file

@ -26,10 +26,11 @@ onMounted(async () => {
<template lang="pug">
.template.markdown
EmbedableContent(
v-if='content'
:content='content'
)
Transition
EmbedableContent(
v-if='content'
:content='content'
)
</template>
<style scoped lang="sass">

View file

@ -64,25 +64,27 @@ onMounted(async () => {
<template lang="pug">
.template.project-list
.projects(
v-if='ready'
)
Transition(
v-for='id in projectIds'
Transition
.projects(
v-if='ready'
)
ProjectTile(
v-if='!projects[id].hidden || !config.removeFromView'
v-bind='projects[id]'
:class='{ hidden: projects[id].hidden && !config.removeFromView }'
:id='id'
:viewPath='projectViewPath'
:isInternal='true'
Transition(
v-for='id in projectIds'
)
FilterPanel(
v-if='ready && !!config.tags'
:tags='config.tags'
@toggledTagsChanged='onToggledTagsChanged($event)'
)
ProjectTile(
v-if='!projects[id].hidden || !config.removeFromView'
v-bind='projects[id]'
:class='{ hidden: projects[id].hidden && !config.removeFromView }'
:id='id'
:viewPath='projectViewPath'
:isInternal='true'
)
Transition
FilterPanel(
v-if='ready && !!config.tags'
:tags='config.tags'
@toggledTagsChanged='onToggledTagsChanged($event)'
)
</template>
<style scoped lang="sass">

View file

@ -45,12 +45,13 @@ onMounted(async () => {
<template lang="pug">
.template.project-view
article(
v-if='ready'
)
EmbedableContent(
:content='content'
Transition
article(
v-if='ready'
)
EmbedableContent(
:content='content'
)
</template>
<style lang="sass">