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

View file

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

View file

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

View file

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

View file

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