fixnute cesty k obrazok pre build,

fixnute parsovanie package.json
This commit is contained in:
Igor Miňo 2025-04-18 00:41:16 +02:00
parent 9f9cb76740
commit b1e6037ab7
4 changed files with 14 additions and 6 deletions

View File

@ -1,8 +1,12 @@
// generateHtaccess.js
console.log('Vygenerujem .htaccess...');
import fs from 'fs';
import path from 'path';
import { baseUrl } from '../vite.config.js';
// Obsah .htaccess súboru
const htaccessContent = `
<IfModule mod_rewrite.c>

View File

@ -2,7 +2,7 @@
<div id="header">
<div class="logo">
<router-link to="/">
<img src="public/bugreport.svg" height="48" width="48" />
<img src="/public/bugreport.svg" height="48" width="48" />
</router-link>
<router-link to="/">
<h1>Bug Report</h1>

View File

@ -2,21 +2,21 @@
<div id="about">
<div>
<h1>O aplikácii</h1>
<img src="public/bugreport.svg" height="100" alt="" />
<img src="/public/bugreport.svg" height="100" alt="" />
<h2>Bug Report</h2>
<p>Verzia aplikácie: {{ version }} &nbsp;|&nbsp; Zostavené: {{ build }}</p>
<p>Autor: <a href="mailto:mino@tpsoft.org">Ing. Igor Miňo</a></p>
<p>
Backend:
<a href="https://www.php.net" target="_blank"
><img src="public/php-power-micro.png" alt="" /> PHP 8.2</a
><img src="/public/php-power-micro.png" alt="" /> PHP 8.2</a
>
&nbsp;|&nbsp; Databaza:
<a href="https://www.sqlite.org" target="_blank"
><img src="public/SQLite370.svg" height="20" alt="" /> SQLite</a
><img src="/public/SQLite370.svg" height="20" alt="" /> SQLite</a
>
&nbsp;|&nbsp; Frontend:
<a href="https://vuejs.org" target="_blank"><img src="public/vue.svg" height="20" alt="" /> Vue 3</a>
<a href="https://vuejs.org" target="_blank"><img src="/public/vue.svg" height="20" alt="" /> Vue 3</a>
</p>
<p>
Zdrojové kódy:

View File

@ -1,6 +1,10 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import pkg from "./package.json";
// import pkg from "./package.json";
import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
const pkg = require('./package.json')
const subpath = "/bugreport/";
export const baseUrl = subpath + "webapp/dist/";