Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cioraneanu committed Jun 14, 2024
1 parent 6fa762f commit 87bb25b
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 7 deletions.
5 changes: 5 additions & 0 deletions front/pages/settings/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { useDataStore } from '~/stores/dataStore'
import { useToolbar } from '~/composables/useToolbar'
import RouteConstants from '~/constants/RouteConstants'
import { REPO_URL } from '~/constants/Constants'
import { onMounted } from 'vue'
const appStore = useAppStore()
const dataStore = useDataStore()
Expand All @@ -48,4 +49,8 @@ toolbar.init({
title: 'About',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
4 changes: 4 additions & 0 deletions front/pages/settings/app-config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@ toolbar.init({
title: 'App settings',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
4 changes: 4 additions & 0 deletions front/pages/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ const toolbar = useToolbar()
toolbar.init({ title: 'Settings' })
onMounted(() => {
animateSettings()
})
</script>
4 changes: 4 additions & 0 deletions front/pages/settings/user-preferences-dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ toolbar.init({
title: 'Dashboard preferences',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
4 changes: 4 additions & 0 deletions front/pages/settings/user-preferences-date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ toolbar.init({
title: 'Date preferences',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ toolbar.init({
title: 'New transaction defaults',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ toolbar.init({
title: 'Quick transaction amounts',
backRoute: RouteConstants.ROUTE_SETTINGS_USER_PREFERENCES_TRANSACTIONS,
})
onMounted(() => {
animateSettings()
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ toolbar.init({
title: 'Transaction fields order',
backRoute: RouteConstants.ROUTE_SETTINGS_USER_PREFERENCES_TRANSACTIONS,
})
onMounted(() => {
animateSettings()
})
</script>
5 changes: 5 additions & 0 deletions front/pages/settings/user-preferences-transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,9 @@ toolbar.init({
title: 'Transaction config',
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(() => {
animateSettings()
})
</script>
3 changes: 1 addition & 2 deletions front/pages/settings/user-preferences-ui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ toolbar.init({
backRoute: RouteConstants.ROUTE_SETTINGS,
})
onMounted(async () => {
await nextTick()
onMounted(() => {
animateSettings()
})
</script>
24 changes: 19 additions & 5 deletions front/utils/AnimationUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,28 @@ export async function animateTransactionForm () {
})
}

export function animateSettings() {
export async function animateSettings() {
await nextTick()

anime({
targets: `.van-cell-group`,
translateY: [-100, 0],
targets: `.van-cell`,

translateY: [50, 0],
opacity: [0, 1],
duration: 1000,
delay: anime.stagger(100, { start: 200 }),

// translateY: [-10, 0],
// opacity: [0.1, 1],
// duration: 400,
delay: anime.stagger(30, { start: 0 }),
})

// anime({
// targets: `.van-cell-group`,
// translateY: [-100, 0],
// opacity: [0, 1],
// duration: 1000,
// delay: anime.stagger(100, { start: 200 }),
// })
}

export async function animateDashboard() {
Expand Down

0 comments on commit 87bb25b

Please sign in to comment.