UIX update for alpha release

This commit is contained in:
Jesse Malotaux 2025-04-11 19:31:43 +02:00
parent 510e22d82d
commit cf0ef8bd92
5 changed files with 9 additions and 13 deletions

View file

@ -6,7 +6,7 @@
<MainMenu /> <MainMenu />
<RouterView /> <RouterView />
<AlertComp <AlertComp
v-if="!isLocal() && !handshake && route.fullPath !== '/devices'" v-if="!isLocal && !handshake && route.fullPath !== '/devices'"
variant="warning" variant="warning"
:page-wide="true" :page-wide="true"
href="/devices" href="/devices"

View file

@ -16,10 +16,7 @@
</h4> </h4>
<template v-if="Object.keys(remote.devices).length > 0"> <template v-if="Object.keys(remote.devices).length > 0">
<template v-for="(remoteDevice, id) in remote.devices" :key="id"> <template v-for="(remoteDevice, id) in remote.devices" :key="id">
<div <div class="mcrm-block block__dark block-size__sm w-64 grid !gap-4 content-start">
v-if="id !== device.uuid()"
class="mcrm-block block__dark block-size__sm w-64 grid !gap-4 content-start"
>
<div class="grid gap-2"> <div class="grid gap-2">
<h5 class="grid grid-cols-[auto_1fr] gap-2"> <h5 class="grid grid-cols-[auto_1fr] gap-2">
<IconDeviceUnknown v-if="remoteDevice.settings.type == 'unknown'" /> <IconDeviceUnknown v-if="remoteDevice.settings.type == 'unknown'" />

View file

@ -2,9 +2,9 @@ import { useDeviceStore } from '@/stores/device'
import CryptoJS from 'crypto-js' import CryptoJS from 'crypto-js'
export const appUrl = () => { export const appUrl = () => {
return window.location.port !== import.meta.env.VITE_MCRM__PORT const port = window.location.port == 5173 ? import.meta.env.VITE_MCRM__PORT : window.location.port
? `http://${window.location.hostname}:${import.meta.env.VITE_MCRM__PORT}`
: '' return `http://${window.location.hostname}:${port}`
} }
export const isLocal = () => { export const isLocal = () => {

View file

@ -4,8 +4,8 @@
{{ isLocal() ? 'Remote devices' : 'Server' }} {{ isLocal() ? 'Remote devices' : 'Server' }}
</h1> </h1>
<div class="grid gap-8 pr-2 panel__content"> <div class="grid gap-8 pr-2 panel__content">
<ServerView v-if="isLocal()" /> <ServerView />
<RemoteView v-else /> <RemoteView />
</div> </div>
</div> </div>
</template> </template>

View file

@ -23,10 +23,9 @@ export default defineConfig({
}, },
}, },
base: '/', base: '/',
// publicDir: "../public",
build: { build: {
outDir: '../public', outDir: '../public',
sourcemap: false, sourcemap: true,
minify: false, minify: true,
}, },
}) })