Compare commits
2 Commits
main
...
6f5d188017
Author | SHA1 | Date | |
---|---|---|---|
6f5d188017
|
|||
b05378ea2e
|
@@ -1,4 +1,5 @@
|
|||||||
VITE_APP_NAME="Kamil Niemczycki CV"
|
VITE_APP_NAME="Kamil Niemczycki CV"
|
||||||
VITE_CV_URL="http://localhost:5173"
|
VITE_CV_URL="http://localhost:5173"
|
||||||
|
VITE_PORT=5173
|
||||||
VITE_API_URL="http://localhost"
|
VITE_API_URL="http://localhost"
|
||||||
VITE_SOURCE_CODE="https://github.com/kamilniemczycki"
|
VITE_SOURCE_CODE="https://github.com/kamilniemczycki"
|
||||||
|
@@ -59,11 +59,11 @@ const qrCodeLink = computed(() => {
|
|||||||
<Skills />
|
<Skills />
|
||||||
<Certificates />
|
<Certificates />
|
||||||
<Links class="pb-8 md:pb-0" />
|
<Links class="pb-8 md:pb-0" />
|
||||||
<div class="hidden print:block print:absolute bottom-7 right-0 w-full">
|
<div class="hidden print:block print:absolute bottom-9 right-0 w-full">
|
||||||
<a :href="qrCodeLink" title="Link do CV w wersji przeglądarkowej" target="_blink">
|
<a :href="qrCodeLink" title="Link do CV w wersji przeglądarkowej" target="_blink">
|
||||||
<QRCode
|
<QRCode
|
||||||
render-as="svg"
|
render-as="svg"
|
||||||
class="mx-auto mb-2"
|
class="mx-auto mb-1"
|
||||||
:value="qrCodeLink"
|
:value="qrCodeLink"
|
||||||
:size="100"
|
:size="100"
|
||||||
level="L"
|
level="L"
|
||||||
@@ -71,7 +71,7 @@ const qrCodeLink = computed(() => {
|
|||||||
</a>
|
</a>
|
||||||
<div class="text-center">CV w wersji online</div>
|
<div class="text-center">CV w wersji online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute bottom-1.5 right-0 w-full px-5 text-right md:text-center text-xs">
|
<div class="absolute bottom-1.5 right-0 w-full px-5 text-center text-xs">
|
||||||
<a :href="sourceCode" target="_blank"><FontAwesomeIcon class="mr-1" :icon="['fab', 'github']"/>Kod źródłowy CV</a>
|
<a :href="sourceCode" target="_blank"><FontAwesomeIcon class="mr-1" :icon="['fab', 'github']"/>Kod źródłowy CV</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,13 +1,25 @@
|
|||||||
import { defineConfig, splitVendorChunkPlugin } from 'vite'
|
import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
import { networkInterfaces } from 'os';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig((mode) => {
|
||||||
plugins: [ vue(), splitVendorChunkPlugin() ],
|
const env = loadEnv(mode, process.cwd(), "");
|
||||||
resolve: {
|
return {
|
||||||
vue: 'vue/dist/vue.esm-bundler.js',
|
server: {
|
||||||
},
|
//host: Object.values(networkInterfaces()).flat().find(i => i.family === 'IPv4' && !i.internal).address,
|
||||||
build: {
|
host: 'localhost',
|
||||||
chunkSizeWarningLimit: 2048,
|
port: parseInt(env.VITE_PORT ?? 5173),
|
||||||
},
|
hmr: {
|
||||||
|
host: 'localhost',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [ vue(), splitVendorChunkPlugin() ],
|
||||||
|
resolve: {
|
||||||
|
vue: 'vue/dist/vue.esm-bundler.js',
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
chunkSizeWarningLimit: 2048,
|
||||||
|
},
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user