mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-12-06 07:11:02 +09:00
This commit is contained in:
1 parent
319b3248ec
commit
47120557a0
2 files changed
+81
-6
No files matched your search
+52
-4
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div :class="['homepage-wrapper', `theme-${activeTheme}`]">
|
||||
<div :class="['homepage-wrapper', `theme-${activeTheme}`, { 'intro-done': logoDone }]">
|
||||
<nav class="auth-nav">
|
||||
<div class="nav-left">
|
||||
<span class="status-dot" :class="{ 'secure-mode': isLoggedIn }"></span>
|
||||
@@ -50,13 +50,20 @@
|
||||
<transition name="fade" mode="out-in">
|
||||
|
||||
<div v-if="activeMenu === 'main'" class="sub-page main-page" key="main">
|
||||
<div class="ascii-container">
|
||||
<div class="ascii-container" :class="{ 'is-collapsed': logoDone }">
|
||||
<div class="ascii-clip">
|
||||
<pre class="ascii-art" v-html="formattedAscii"></pre>
|
||||
<transition name="fade">
|
||||
<pre
|
||||
v-if="!isBooting && !logoDone"
|
||||
class="ascii-art"
|
||||
v-html="formattedAscii"
|
||||
@animationend="logoDone = true"
|
||||
></pre>
|
||||
</transition>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dash-grid">
|
||||
<div v-if="!isBooting" class="dash-grid">
|
||||
<div v-if="isLoggedIn" class="dash-panel">
|
||||
<h4>LIVE SESSION</h4>
|
||||
<div class="dash-stat"><span>LIVE</span><b class="pulse-text">{{ activeNow }}</b></div>
|
||||
@@ -177,6 +184,15 @@
|
||||
<TuiAlert :message="systemAlert.message" @close="systemAlert.show = false" />
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<transition name="fade">
|
||||
<div v-if="isBooting" class="boot-log-screen">
|
||||
<div class="boot-log-box">
|
||||
<p v-for="(line, idx) in bootLines" :key="idx" class="boot-log-line">{{ line }}</p>
|
||||
<span class="boot-cursor">_</span>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -217,6 +233,36 @@ const isProcessing = ref(false);
|
||||
const overlayProgress = ref(0);
|
||||
const overlayStatus = ref('');
|
||||
|
||||
const isBooting = ref(true);
|
||||
const logoDone = ref(false);
|
||||
const bootLines = ref([]);
|
||||
const BOOT_SEQUENCE = [
|
||||
'[SYS] SPECIALSOURCE.SYSTEM BIOS V3.2',
|
||||
'[SYS] PERFORMING MEMORY CHECK... OK',
|
||||
'[SYS] INITIALIZING KERNEL MODULES...',
|
||||
'[SYS] MOUNTING VIRTUAL FILESYSTEM... OK',
|
||||
'[SYS] ESTABLISHING SECURE NETWORK LINK...',
|
||||
'[SYS] LOADING DASHBOARD INTERFACE...',
|
||||
'[SYS] SPAWNING TERMINAL CONSOLE...',
|
||||
'[SUCCESS] BOOT SEQUENCE COMPLETE.'
|
||||
];
|
||||
|
||||
const runBootSequence = () => {
|
||||
let i = 0;
|
||||
const pushLine = () => {
|
||||
if (i < BOOT_SEQUENCE.length) {
|
||||
bootLines.value.push(BOOT_SEQUENCE[i]);
|
||||
i++;
|
||||
setTimeout(pushLine, 220);
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
isBooting.value = false;
|
||||
}, 500);
|
||||
}
|
||||
};
|
||||
pushLine();
|
||||
};
|
||||
|
||||
const systemAlert = ref({ show: false, message: '' });
|
||||
const showSystemAlert = (message) => {
|
||||
systemAlert.value = { show: true, message };
|
||||
@@ -449,6 +495,8 @@ const handleLoginSubmit = async () => {
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
runBootSequence();
|
||||
|
||||
fetchVideos();
|
||||
fetchAnalyticsData();
|
||||
|
||||
|
||||
Reference in new issue
Block a user