feat: add fullscreen viewer

This commit is contained in:
2025-08-08 00:25:27 +03:00
parent d9fd26d354
commit 4ae8d59328
11 changed files with 271 additions and 147 deletions

View File

@@ -1,34 +1,43 @@
import { defineConfig } from "vite";
import {defineConfig} from "vite";
import tailwindcss from "@tailwindcss/vite";
import vue from "@vitejs/plugin-vue";
import {fileURLToPath, URL} from 'node:url';
export default defineConfig({
plugins: [tailwindcss(), vue()],
plugins: [
tailwindcss(),
vue({
template: {
compilerOptions: {
isCustomElement: tag => tag.startsWith('swiper-'),
},
},
}),
],
base: '/image/catalog/tgshopspa/',
build: {
outDir: '../module/oc_telegram_shop/upload/image/catalog/tgshopspa',
emptyOutDir: true,
sourcemap: true,
manifest: true,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
base: '/image/catalog/tgshopspa/',
build: {
outDir: '../module/oc_telegram_shop/upload/image/catalog/tgshopspa',
emptyOutDir: true,
sourcemap: true,
manifest: true,
},
},
server: {
host: true,
allowedHosts: ["tg.nikitakiselev.ru"],
proxy: {
'/index.php': {
target: 'http://localhost:8000',
changeOrigin: true,
rewrite: path => path,
}
}
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
host: true,
allowedHosts: ["tg.nikitakiselev.ru"],
proxy: {
'/index.php': {
target: 'http://localhost:8000',
changeOrigin: true,
rewrite: path => path,
}
}
},
});