fix: restore layout and add dynamic version to footer
This commit is contained in:
@@ -2,14 +2,18 @@
|
|||||||
import CubeCSS from './components/renderers/CubeCSS.vue'
|
import CubeCSS from './components/renderers/CubeCSS.vue'
|
||||||
import DebugPanel from './components/DebugPanel.vue'
|
import DebugPanel from './components/DebugPanel.vue'
|
||||||
import InteractionReplay from './components/InteractionReplay.vue'
|
import InteractionReplay from './components/InteractionReplay.vue'
|
||||||
|
import NavBar from './components/NavBar.vue'
|
||||||
|
import Footer from './components/Footer.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<NavBar />
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
<DebugPanel />
|
<DebugPanel />
|
||||||
<InteractionReplay />
|
<InteractionReplay />
|
||||||
<CubeCSS />
|
<CubeCSS />
|
||||||
</div>
|
</div>
|
||||||
|
<Footer />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const toggle = () => isOpen.value = !isOpen.value
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.debug-panel {
|
.debug-panel {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 10px;
|
top: 70px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background: rgba(0, 0, 0, 0.85);
|
background: rgba(0, 0, 0, 0.85);
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
const version = __APP_VERSION__;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<footer class="app-footer glass-panel">
|
<footer class="app-footer glass-panel">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<p>© {{ currentYear }} Rubic Cube. Wersja 0.0.1</p>
|
<p>© {{ currentYear }} Rubic Cube. Wersja {{ version }}</p>
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<!-- Placeholder for social links if needed -->
|
<!-- Placeholder for social links if needed -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ ${report}
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.interaction-replay {
|
.interaction-replay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 10px;
|
bottom: 50px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
|
define: {
|
||||||
|
'__APP_VERSION__': JSON.stringify(process.env.npm_package_version),
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5174,
|
port: 5174,
|
||||||
hmr: {
|
hmr: {
|
||||||
|
|||||||
Reference in New Issue
Block a user