homebox/frontend/plugins/scroll.client.ts
Hayden 3d295b5132
feat: locations tree viewer (#248)
* location tree API

* test fixes

* initial tree location elements

* locations tree page

* update meta-data

* code-gen

* store item display preferences

* introduce basic table/card view elements

* codegen

* set parent location during location creation

* add item support for tree query

* refactor tree view

* wip: location selector improvements

* type gen

* rename items -> search

* remove various log statements

* fix markdown rendering for description

* update location selectors

* fix tests

* fix currency tests

* formatting
2023-01-28 11:53:00 -09:00

5 lines
133 B
TypeScript

export default defineNuxtPlugin(nuxtApp => {
nuxtApp.hook("page:finish", () => {
document.body.scrollTo({ top: 0 });
});
});