diff --git a/plop-templates/component/index.hbs b/plop-templates/component/index.hbs index cc1916c..162c0d3 100644 --- a/plop-templates/component/index.hbs +++ b/plop-templates/component/index.hbs @@ -1,13 +1,13 @@ diff --git a/plop-templates/page/index.hbs b/plop-templates/page/index.hbs index 1dbd351..acabfe3 100644 --- a/plop-templates/page/index.hbs +++ b/plop-templates/page/index.hbs @@ -1,15 +1,13 @@ diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 566dd2f..4294596 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -60,7 +60,7 @@ declare global { const useAuth: typeof import('./utils/composables/useAuth')['default'] const useCssModule: typeof import('vue')['useCssModule'] const useCssVars: typeof import('vue')['useCssVars'] - const useCurrentInstance: typeof import('./utils/composables/useCurrentInstance')['default'] + const useGlobalProperties: typeof import('./utils/composables/useGlobalProperties')['default'] const useMainPage: typeof import('./utils/composables/useMainPage')['default'] const useMenu: typeof import('./utils/composables/useMenu')['default'] const useRoute: typeof import('vue-router')['useRoute'] diff --git a/src/utils/composables/useCurrentInstance.ts b/src/utils/composables/useGlobalProperties.ts similarity index 78% rename from src/utils/composables/useCurrentInstance.ts rename to src/utils/composables/useGlobalProperties.ts index c75fa94..8cb57df 100644 --- a/src/utils/composables/useCurrentInstance.ts +++ b/src/utils/composables/useGlobalProperties.ts @@ -1,6 +1,6 @@ import type { ComponentInternalInstance } from 'vue' -export default function useCurrentInstance() { +export default function useGlobalProperties() { const { appContext } = getCurrentInstance() as ComponentInternalInstance return appContext.config.globalProperties }