feat: add product view page

This commit is contained in:
Nikita Kiselev
2025-07-12 11:30:26 +03:00
parent 252854e67e
commit f13e128d03
11 changed files with 309 additions and 112 deletions

View File

@@ -2,26 +2,24 @@ import { createApp } from 'vue'
import App from './App.vue'
import './style.css'
import { VueTelegramPlugin } from 'vue-tg';
import { router } from './router';
const app = createApp(App);
app.use(VueTelegramPlugin);
app
.use(router)
.use(VueTelegramPlugin);
app.mount('#app');
import { useMiniApp, useTheme, onThemeChanged } from 'vue-tg';
import { useMiniApp, useTheme } from 'vue-tg';
const theme = useTheme();
const tg = useMiniApp();
onThemeChanged(() => {
// handle theme update
})
theme.onChange(() => {
document.documentElement.setAttribute('data-theme', theme.colorScheme.value);
});
document.documentElement.setAttribute('data-theme', theme.colorScheme.value);
tg.ready();