Move updated components to app (#15374)

* Move updated components to app

* Make sure storybook is alive
This commit is contained in:
Rijk van Zanten
2022-09-02 14:42:00 -04:00
committed by GitHub
parent 0de05b40a7
commit 4eae2de686
252 changed files with 2060 additions and 2475 deletions

View File

@@ -0,0 +1,11 @@
import { Directive } from 'vue';
export const Focus: Directive = {
mounted(el, binding) {
if (binding.value) {
el.focus();
} else {
el.blur();
}
},
};

View File

@@ -0,0 +1,9 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
export function generateRouter(routes: RouteRecordRaw[]) {
const router = createRouter({
history: createWebHistory(),
routes,
});
return router;
}

View File

@@ -0,0 +1,7 @@
import { Directive } from 'vue';
export const Tooltip: Directive = {
mounted() {
return undefined;
},
};