Fixes: 1) Refactor `useProducts` and `useCategorybySlug` composables for improved error handling and lazy loading; 2) Correct import path in `product-page.vue` for `useProductBySlug`; 3) Update `useLanguages` composable to set current locale from local storage; 4) Remove unused `auth.js`, `base-header.vue`, and deprecated GraphQL fragments; Extra: Minor styling adjustments and removal of redundant console logs; Updated `package-lock.json` dependencies for version consistency.
33 lines
No EOL
856 B
JavaScript
33 lines
No EOL
856 B
JavaScript
import '@/assets/styles/global/fonts.scss'
|
|
import '@/assets/styles/main.scss'
|
|
import 'primeicons/primeicons.css'
|
|
import {createApp, h, provide} from 'vue'
|
|
import { DefaultApolloClient } from '@vue/apollo-composable'
|
|
import { createApolloClient } from './apollo'
|
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import {setupI18n} from "@/core/plugins/i18n.config.js";
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
|
|
const pinia = createPinia()
|
|
const i18n = await setupI18n()
|
|
|
|
const app = createApp({
|
|
setup() {
|
|
const apolloClient = createApolloClient()
|
|
|
|
provide(DefaultApolloClient, apolloClient)
|
|
},
|
|
render: () => h(App)
|
|
})
|
|
|
|
app
|
|
.use(pinia)
|
|
.use(i18n)
|
|
.use(router)
|
|
.use(ElementPlus)
|
|
|
|
app.mount('#app') |