feat(quant): WBS-FE-BE-100 complete Vue3 Vite8 SPA & .NET10 FastEndpoints refactoring
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 13s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 19s

This commit is contained in:
2026-07-22 15:14:28 +09:00
parent fd8ff3d51e
commit 2fe4cb288f
100 changed files with 7975 additions and 804 deletions
+24
View File
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
+3
View File
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
+5
View File
@@ -0,0 +1,5 @@
# Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
+1885
View File
File diff suppressed because it is too large Load Diff
+29
View File
@@ -0,0 +1,29 @@
{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
},
"dependencies": {
"@primevue/themes": "^4.3.1",
"ag-grid-community": "^36.0.1",
"ag-grid-vue3": "^36.0.1",
"axios": "^1.18.1",
"pinia": "^4.0.2",
"primevue": "^4.3.1",
"vue": "^3.5.39",
"vue-router": "^4.6.4"
},
"devDependencies": {
"@types/node": "^24.13.2",
"@vitejs/plugin-vue": "^6.0.7",
"@vue/tsconfig": "^0.9.1",
"typescript": "~6.0.2",
"vite": "^8.1.1",
"vue-tsc": "^3.3.5"
}
}
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.3 KiB

+24
View File
@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg">
<symbol id="bluesky-icon" viewBox="0 0 16 17">
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
</symbol>
<symbol id="discord-icon" viewBox="0 0 20 19">
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
</symbol>
<symbol id="documentation-icon" viewBox="0 0 21 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
</symbol>
<symbol id="github-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
</symbol>
<symbol id="social-icon" viewBox="0 0 20 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
</symbol>
<symbol id="x-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+38
View File
@@ -0,0 +1,38 @@
<script setup lang="ts">
import { useRoute } from 'vue-router'
import QuantHeader from './components/QuantHeader.vue'
import QuantFooter from './components/QuantFooter.vue'
const route = useRoute()
</script>
<template>
<div v-if="route.path === '/login'" style="width: 100vw; height: 100vh;">
<router-view />
</div>
<div v-else class="douzone-app-container">
<QuantHeader />
<!-- 12 QuantEngine WBS 메뉴 네비게이션 -->
<div style="background: #34495E; padding: 4px 16px; display: flex; gap: 8px; border-bottom: 1px solid #1A252F; overflow-x: auto; white-space: nowrap;">
<router-link to="/dashboard" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-11: 펀드 KPI (Type 6)</router-link>
<router-link to="/timeseries" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-01: 마켓 시계열 (Type 1)</router-link>
<router-link to="/factors" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-02: 팩터 관리 (Type 2)</router-link>
<router-link to="/waterfall" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-03: Waterfall 매도 (Type 1)</router-link>
<router-link to="/shadow" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-04: Shadow 장부 (Type 2)</router-link>
<router-link to="/comparison" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-05: KIS 괴리율 (Type 3 Split)</router-link>
<router-link to="/etf" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-06: ETF NAV (Type 3 Split)</router-link>
<router-link to="/settings" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-07: 캘리브레이션 (Type 4)</router-link>
<router-link to="/database" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-09: DB 관리 (Type 2 Split)</router-link>
<router-link to="/snapshots" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-10: 스냅샷 (Type 1)</router-link>
<router-link to="/users" style="color: white; text-decoration: none; padding: 4px 10px; font-weight: bold;" active-class="bg-primary">SCR-12: 사용자 관리 (Type 2)</router-link>
</div>
<main style="flex: 1; overflow: hidden; background: #F4F6F9;">
<router-view />
</main>
<QuantFooter />
</div>
</template>
+90
View File
@@ -0,0 +1,90 @@
/* Douzone ERP Soft Navy Theme for Vue 3 SPA */
:root {
--douzone-navy: #2C3E50;
--douzone-slate: #34495E;
--douzone-bg: #F4F6F9;
--douzone-border: #CBD5E1;
--douzone-input-bg: #FFFFFF;
--douzone-readonly-bg: #ECF0F1;
--status-pass: #2ECC71;
--status-pass-bg: #E8F8F5;
--status-pass-text: #117864;
--status-warning: #F39C12;
--status-warning-bg: #FEF9E7;
--status-warning-text: #B9770E;
--status-error: #E74C3C;
--status-error-bg: #FDEDEC;
--status-error-text: #922B21;
--focus-highlight: #2980B9;
--focus-box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.25);
}
body {
margin: 0;
padding: 0;
background-color: var(--douzone-bg);
color: var(--douzone-navy);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
font-size: 13px;
line-height: 1.4;
height: 100vh;
overflow: hidden;
}
.douzone-app-container {
display: flex;
flex-direction: column;
height: 100vh;
}
.douzone-header-toolbar {
background-color: var(--douzone-navy);
color: #FFFFFF;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2px solid #1A252F;
}
.douzone-header-toolbar .btn-douzone-action {
background-color: #34495E;
color: #FFFFFF;
border: 1px solid #4A6572;
padding: 4px 12px;
font-size: 12px;
font-weight: 600;
border-radius: 3px;
margin-left: 4px;
cursor: pointer;
}
.douzone-header-toolbar .btn-douzone-action:hover {
background-color: #415B76;
}
.douzone-summary-footer {
background-color: var(--douzone-slate);
color: #ECF0F1;
padding: 6px 16px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid #2C3E50;
}
.hotkey-badge {
background-color: #2C3E50;
color: #F1C40F;
padding: 2px 6px;
border-radius: 3px;
font-weight: bold;
font-family: monospace;
margin-right: 4px;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.5 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>

After

Width:  |  Height:  |  Size: 496 B

@@ -0,0 +1,95 @@
<script setup lang="ts">
import { ref } from 'vue'
import viteLogo from '../assets/vite.svg'
import heroImg from '../assets/hero.png'
import vueLogo from '../assets/vue.svg'
const count = ref(0)
</script>
<template>
<section id="center">
<div class="hero">
<img :src="heroImg" class="base" width="170" height="179" alt="" />
<img :src="vueLogo" class="framework" alt="Vue logo" />
<img :src="viteLogo" class="vite" alt="Vite logo" />
</div>
<div>
<h1>Get started</h1>
<p>Edit <code>src/App.vue</code> and save to test <code>HMR</code></p>
</div>
<button type="button" class="counter" @click="count++">
Count is {{ count }}
</button>
</section>
<div class="ticks"></div>
<section id="next-steps">
<div id="docs">
<svg class="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#documentation-icon"></use>
</svg>
<h2>Documentation</h2>
<p>Your questions, answered</p>
<ul>
<li>
<a href="https://vite.dev/" target="_blank">
<img class="logo" :src="viteLogo" alt="" />
Explore Vite
</a>
</li>
<li>
<a href="https://vuejs.org/" target="_blank">
<img class="button-icon" :src="vueLogo" alt="" />
Learn more
</a>
</li>
</ul>
</div>
<div id="social">
<svg class="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#social-icon"></use>
</svg>
<h2>Connect with us</h2>
<p>Join the Vite community</p>
<ul>
<li>
<a href="https://github.com/vitejs/vite" target="_blank">
<svg class="button-icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#github-icon"></use>
</svg>
GitHub
</a>
</li>
<li>
<a href="https://chat.vite.dev/" target="_blank">
<svg class="button-icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#discord-icon"></use>
</svg>
Discord
</a>
</li>
<li>
<a href="https://x.com/vite_js" target="_blank">
<svg class="button-icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#x-icon"></use>
</svg>
X.com
</a>
</li>
<li>
<a href="https://bsky.app/profile/vite.dev" target="_blank">
<svg class="button-icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#bluesky-icon"></use>
</svg>
Bluesky
</a>
</li>
</ul>
</div>
</section>
<div class="ticks"></div>
<section id="spacer"></section>
</template>
@@ -0,0 +1,46 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
const props = defineProps<{
modelValue: string
suggestions: Array<{ label: string; value: string }>
placeholder?: string
}>()
const emit = defineEmits(['update:modelValue', 'select'])
const isOpen = ref(false)
const filtered = computed(() => {
if (!props.modelValue) return props.suggestions
return props.suggestions.filter(s => s.label.toLowerCase().includes(props.modelValue.toLowerCase()) || s.value.includes(props.modelValue))
})
const select = (item: { label: string; value: string }) => {
emit('update:modelValue', item.value)
emit('select', item)
isOpen.value = false
}
</script>
<template>
<div style="position: relative; width: 100%;">
<input
:value="modelValue"
type="text"
:placeholder="placeholder || '자동완성 검색...'"
style="width: 100%; box-sizing: border-box; padding: 4px 8px; border: 1px solid #CBD5E1; border-radius: 2px; font-size: 12px; font-weight: bold;"
@focus="isOpen = true"
@input="emit('update:modelValue', ($event.target as HTMLInputElement).value); isOpen = true"
/>
<div v-if="isOpen && filtered.length > 0" style="position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #CBD5E1; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1000; max-height: 150px; overflow-y: auto;">
<div
v-for="item in filtered"
:key="item.value"
style="padding: 6px 8px; font-size: 12px; cursor: pointer; border-bottom: 1px solid #ECF0F1;"
@click="select(item)">
<strong>{{ item.label }}</strong> ({{ item.value }})
</div>
</div>
</div>
</template>
@@ -0,0 +1,22 @@
<script setup lang="ts">
defineProps<{
modelValue: boolean
label?: string
readonly?: boolean
}>()
const emit = defineEmits(['update:modelValue'])
</script>
<template>
<label style="display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: bold; cursor: pointer; color: #2C3E50;">
<input
type="checkbox"
:checked="modelValue"
:disabled="readonly"
style="cursor: pointer; accent-color: #2980B9;"
@change="emit('update:modelValue', ($event.target as HTMLInputElement).checked)"
/>
<span v-if="label">{{ label }}</span>
</label>
</template>
@@ -0,0 +1,25 @@
<script setup lang="ts">
defineProps<{
modelValue: string | number
options: Array<{ label: string; value: string | number }>
readonly?: boolean
}>()
const emit = defineEmits(['update:modelValue', 'enter'])
const onChange = (e: Event) => {
const target = e.target as HTMLSelectElement
emit('update:modelValue', target.value)
}
</script>
<template>
<select
:value="modelValue"
:disabled="readonly"
style="width: 100%; padding: 4px 8px; border: 1px solid #CBD5E1; border-radius: 2px; font-size: 12px; font-weight: bold; background: white; outline: none; cursor: pointer;"
@change="onChange"
@keydown.enter="emit('enter')">
<option v-for="opt in options" :key="opt.value" :value="opt.value">{{ opt.label }}</option>
</select>
</template>
@@ -0,0 +1,65 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = defineProps<{
initialData?: Record<string, any>
fields: Array<{ name: string; label: string; type: 'text' | 'currency' | 'date' | 'combo' | 'check' | 'radio' | 'textarea' | 'autocomplete'; required?: boolean; options?: any[] }>
}>()
const emit = defineEmits(['create', 'update', 'delete', 'cancel'])
const formData = ref<Record<string, any>>({ ...(props.initialData || {}) })
const isEditing = ref(!!props.initialData)
const handleCreate = () => {
emit('create', formData.value)
}
const handleUpdate = () => {
emit('update', formData.value)
}
const handleDelete = () => {
if (confirm('정말로 해당 데이터를 삭제하시겠습니까? (F5)')) {
emit('delete', formData.value)
}
}
</script>
<template>
<div style="background: white; border: 1px solid #CBD5E1; padding: 16px; border-radius: 4px; display: flex; flex-direction: column; height: 100%;">
<!-- Form Action Toolbar (CRUD Standard UX) -->
<div style="display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #2C3E50; padding-bottom: 8px; margin-bottom: 12px;">
<h4 style="margin: 0; color: #2C3E50;">
<i class="ti ti-edit me-1"></i> {{ isEditing ? '데이터 상세 / 수정' : '신규 데이터 등록' }}
</h4>
<div style="display: flex; gap: 8px;">
<button v-if="!isEditing" style="background: #2980B9; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 2px; cursor: pointer;" @click="handleCreate">
<span class="hotkey-badge">F4</span>신규 저장
</button>
<button v-else style="background: #27AE60; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 2px; cursor: pointer;" @click="handleUpdate">
<span class="hotkey-badge">F4</span>수정 저장
</button>
<button v-if="isEditing" style="background: #C0392B; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 2px; cursor: pointer;" @click="handleDelete">
<span class="hotkey-badge">F5</span>삭제
</button>
</div>
</div>
<!-- High-Density Form Fields Grid -->
<div style="flex: 1; overflow-y: auto;">
<table style="width: 100%; border-collapse: collapse;">
<tbody>
<tr v-for="field in fields" :key="field.name" style="border-bottom: 1px solid #ECF0F1;">
<td style="width: 130px; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1; font-weight: bold; text-align: right;">
<span v-if="field.required" style="color: red; margin-right: 2px;">*</span>{{ field.label }}
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<input v-model="formData[field.name]" type="text" style="width: 100%; box-sizing: border-box; padding: 4px 8px; border: 1px solid #CBD5E1; font-weight: bold;" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
@@ -0,0 +1,71 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = defineProps<{
columns: Array<{ field: string; header: string; width?: string; align?: 'left' | 'center' | 'right' }>
data: Array<Record<string, any>>
filename?: string
}>()
const emit = defineEmits(['row-click'])
const selectedRow = ref<Record<string, any> | null>(null)
const handleRowClick = (row: Record<string, any>) => {
selectedRow.value = row
emit('row-click', row)
}
const exportToExcel = () => {
const headers = props.columns.map(c => c.header).join(',')
const rows = props.data.map(row => props.columns.map(c => `"${row[c.field] ?? ''}"`).join(','))
const csvContent = 'data:text/csv;charset=utf-8,\uFEFF' + [headers, ...rows].join('\n')
const encodedUri = encodeURI(csvContent)
const link = document.createElement('a')
link.setAttribute('href', encodedUri)
link.setAttribute('download', `${props.filename || 'export'}_${new Date().toISOString().substring(0,10)}.csv`)
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
}
defineExpose({ exportToExcel })
</script>
<template>
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; border: 1px solid #CBD5E1; background: white;">
<!-- Grid Header Toolbar -->
<div style="background: #F8FAFC; padding: 6px 12px; border-bottom: 1px solid #CBD5E1; display: flex; justify-content: space-between; align-items: center;">
<span style="font-size: 12px; font-weight: bold; color: #2C3E50;">
<i class="ti ti-table me-1"></i> {{ data.length }}
</span>
<button style="background: #27AE60; color: white; border: none; padding: 3px 10px; font-size: 11px; font-weight: bold; border-radius: 2px; cursor: pointer;" @click="exportToExcel">
<span class="hotkey-badge">F7</span>엑셀 다운로드
</button>
</div>
<!-- Table Body Container -->
<div style="flex: 1; overflow: auto;">
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr style="background: #E2E8F0; color: #2C3E50; position: sticky; top: 0; z-index: 1;">
<th v-for="col in columns" :key="col.field" :style="{ width: col.width, textAlign: col.align || 'left' }" style="padding: 8px; border: 1px solid #CBD5E1; font-size: 12px;">
{{ col.header }}
</th>
</tr>
</thead>
<tbody>
<tr
v-for="(row, idx) in data"
:key="idx"
:style="{ background: selectedRow === row ? '#D6E4FF' : idx % 2 === 0 ? '#FFFFFF' : '#F8FAFC' }"
style="cursor: pointer; border-bottom: 1px solid #ECF0F1;"
@click="handleRowClick(row)">
<td v-for="col in columns" :key="col.field" :style="{ textAlign: col.align || 'left' }" style="padding: 6px 8px; border: 1px solid #CBD5E1; font-size: 12px;">
{{ row[col.field] }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
@@ -0,0 +1,51 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
const props = defineProps<{
modelValue: string
readonly?: boolean
}>()
const emit = defineEmits(['update:modelValue', 'enter'])
const isFocused = ref(false)
const formattedDate = computed(() => {
const v = String(props.modelValue || '').replace(/[^0-9]/g, '')
if (v.length === 8) {
return `${v.substring(0,4)}-${v.substring(4,6)}-${v.substring(6,8)}`
}
return props.modelValue
})
const onInput = (e: Event) => {
const target = e.target as HTMLInputElement
const raw = target.value.replace(/[^0-9]/g, '')
emit('update:modelValue', raw)
}
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter') emit('enter')
}
</script>
<template>
<div style="display: inline-flex; align-items: center; width: 100%;">
<input
:value="formattedDate"
type="text"
placeholder="YYYY-MM-DD"
:readonly="readonly"
:style="{
borderColor: isFocused ? '#2980B9' : '#CBD5E1',
boxShadow: isFocused ? '0 0 4px rgba(41, 128, 185, 0.4)' : 'none',
backgroundColor: readonly ? '#ECF0F1' : '#FFFFFF'
}"
style="width: 100%; padding: 4px 8px; border: 1px solid #CBD5E1; border-radius: 2px; font-size: 12px; font-weight: bold; outline: none;"
@focus="isFocused = true"
@blur="isFocused = false"
@input="onInput"
@keydown="onKeyDown"
/>
</div>
</template>
@@ -0,0 +1,15 @@
<template>
<footer class="douzone-summary-footer">
<div>
<span><span class="hotkey-badge">Enter</span>다음 필드 이동</span>
<span style="margin-left: 12px;"><span class="hotkey-badge">F2</span>코드 팝업</span>
<span style="margin-left: 12px;"><span class="hotkey-badge">F3</span>조회</span>
<span style="margin-left: 12px;"><span class="hotkey-badge">F4</span>저장</span>
<span style="margin-left: 12px;"><span class="hotkey-badge">F5</span>삭제</span>
<span style="margin-left: 12px;"><span class="hotkey-badge">F7</span>엑셀</span>
</div>
<div>
<span style="opacity: 0.8;">Vue 3 + Vite 8 + TypeScript Single Page Application</span>
</div>
</footer>
</template>
@@ -0,0 +1,44 @@
<script setup lang="ts">
import { onMounted } from 'vue'
const emit = defineEmits(['search', 'save', 'delete', 'excel'])
onMounted(() => {
window.addEventListener('keydown', (e: KeyboardEvent) => {
switch (e.key) {
case 'F3':
e.preventDefault()
emit('search')
break
case 'F4':
e.preventDefault()
emit('save')
break
case 'F5':
e.preventDefault()
emit('delete')
break
case 'F7':
e.preventDefault()
emit('excel')
break
}
})
})
</script>
<template>
<header class="douzone-header-toolbar">
<div style="display: flex; align-items: center; gap: 12px;">
<span style="font-weight: bold; font-size: 16px; color: #F1C40F;">QuantEngine Vue 3 SPA</span>
<span style="border-left: 1px solid #5D7D9A; padding-left: 12px; opacity: 0.8;">더존 회계시스템 기준 6 컴포넌트</span>
</div>
<div style="display: flex; align-items: center;">
<button type="button" class="btn-douzone-action" @click="emit('search')"><span class="hotkey-badge">F3</span>조회</button>
<button type="button" class="btn-douzone-action" @click="emit('save')"><span class="hotkey-badge">F4</span>저장</button>
<button type="button" class="btn-douzone-action" @click="emit('delete')"><span class="hotkey-badge">F5</span>삭제</button>
<button type="button" class="btn-douzone-action" @click="emit('excel')"><span class="hotkey-badge">F7</span>엑셀</button>
<router-link to="/login" class="btn-douzone-action" style="background-color: #E74C3C; text-decoration: none; margin-left: 12px;">로그아웃</router-link>
</div>
</header>
</template>
@@ -0,0 +1,62 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
const props = defineProps<{
modelValue: string | number
type?: 'text' | 'currency' | 'date'
placeholder?: string
readonly?: boolean
required?: boolean
}>()
const emit = defineEmits(['update:modelValue', 'enter'])
const isFocused = ref(false)
const formattedValue = computed(() => {
if (props.type === 'currency' && props.modelValue) {
const num = String(props.modelValue).replace(/[^0-9.-]/g, '')
if (!num) return ''
return Number(num).toLocaleString('ko-KR')
}
if (props.type === 'date' && String(props.modelValue).length === 8) {
const v = String(props.modelValue)
return `${v.substring(0,4)}-${v.substring(4,6)}-${v.substring(6,8)}`
}
return props.modelValue
})
const onInput = (e: Event) => {
const target = e.target as HTMLInputElement
emit('update:modelValue', target.value)
}
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter') {
emit('enter')
}
}
</script>
<template>
<div style="display: inline-flex; align-items: center; width: 100%;">
<input
:value="formattedValue"
:type="type === 'currency' ? 'text' : type === 'date' ? 'text' : 'text'"
:placeholder="placeholder"
:readonly="readonly"
:style="{
borderColor: isFocused ? '#2980B9' : '#CBD5E1',
boxShadow: isFocused ? '0 0 4px rgba(41, 128, 185, 0.4)' : 'none',
backgroundColor: readonly ? '#ECF0F1' : '#FFFFFF',
textAlign: type === 'currency' ? 'right' : 'left',
color: type === 'currency' && String(modelValue).startsWith('-') ? '#E74C3C' : '#2C3E50'
}"
style="width: 100%; padding: 4px 8px; border: 1px solid #CBD5E1; border-radius: 2px; font-size: 12px; font-weight: bold; outline: none; transition: border-color 0.2s;"
@focus="isFocused = true"
@blur="isFocused = false"
@input="onInput"
@keydown="onKeyDown"
/>
</div>
</template>
@@ -0,0 +1,15 @@
<script setup lang="ts">
defineProps<{
text: string
required?: boolean
width?: string
}>()
</script>
<template>
<label
:style="{ width: width || '120px' }"
style="display: inline-block; font-weight: 700; color: #2C3E50; text-align: right; padding-right: 8px; font-size: 12px; box-sizing: border-box;">
<span v-if="required" style="color: #E74C3C; margin-right: 2px;">*</span>{{ text }}
</label>
</template>
@@ -0,0 +1,63 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = defineProps<{
visible: boolean
}>()
const emit = defineEmits(['update:visible', 'select'])
const searchQuery = ref('')
const items = ref([
{ code: '005930', name: '삼성전자', category: 'KOSPI200' },
{ code: '000660', name: 'SK하이닉스', category: 'KOSPI200' },
{ code: '035420', name: 'NAVER', category: 'KOSPI200' },
{ code: '035720', name: '카카오', category: 'KOSPI200' }
])
const close = () => {
emit('update:visible', false)
}
const selectItem = (item: any) => {
emit('select', item)
close()
}
</script>
<template>
<div v-if="visible" style="position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center;">
<div style="background: white; width: 500px; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.3);">
<div style="background: #34495E; color: white; padding: 10px 16px; font-weight: bold; display: flex; justify-content: space-between;">
<span><i class="ti ti-search me-1"></i> F2 코드 팝업 룩업 (Type 5 Modal)</span>
<button style="background: transparent; border: none; color: white; cursor: pointer; font-weight: bold;" @click="close"> (Esc)</button>
</div>
<div style="padding: 12px;">
<input v-model="searchQuery" type="text" placeholder="종목명 또는 코드 검색 (F2)..." style="width: 100%; box-sizing: border-box; padding: 6px 12px; border: 2px solid #2980B9; border-radius: 3px; font-weight: bold;" />
<div style="max-height: 250px; overflow-y: auto; margin-top: 12px; border: 1px solid #CBD5E1;">
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr style="background: #F8FAFC;">
<th style="padding: 6px; border-bottom: 1px solid #CBD5E1; text-align: left;">코드</th>
<th style="padding: 6px; border-bottom: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 6px; border-bottom: 1px solid #CBD5E1; text-align: left;">분류</th>
</tr>
</thead>
<tbody>
<tr v-for="item in items" :key="item.code" style="cursor: pointer; border-bottom: 1px solid #ECF0F1;" @click="selectItem(item)">
<td style="padding: 6px; font-family: monospace;">{{ item.code }}</td>
<td style="padding: 6px; font-weight: bold;">{{ item.name }}</td>
<td style="padding: 6px; color: #7F8C8D;">{{ item.category }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div style="background: #F4F6F9; padding: 8px 16px; text-align: right; border-top: 1px solid #CBD5E1;">
<button style="background: #2C3E50; color: white; border: none; padding: 4px 12px; border-radius: 3px; cursor: pointer;" @click="close">닫기 (Esc)</button>
</div>
</div>
</div>
</template>
@@ -0,0 +1,27 @@
<script setup lang="ts">
defineProps<{
modelValue: string | number
name: string
options: Array<{ label: string; value: string | number }>
readonly?: boolean
}>()
const emit = defineEmits(['update:modelValue'])
</script>
<template>
<div style="display: inline-flex; gap: 12px; align-items: center;">
<label v-for="opt in options" :key="opt.value" style="display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: bold; cursor: pointer; color: #2C3E50;">
<input
type="radio"
:name="name"
:value="opt.value"
:checked="modelValue === opt.value"
:disabled="readonly"
style="cursor: pointer; accent-color: #2980B9;"
@change="emit('update:modelValue', opt.value)"
/>
{{ opt.label }}
</label>
</div>
</template>
@@ -0,0 +1,59 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = withDefaults(defineProps<{
initialLeftWidth?: number
minLeftPercent?: number
maxLeftPercent?: number
}>(), {
initialLeftWidth: 30,
minLeftPercent: 15,
maxLeftPercent: 75
})
const leftWidthPercent = ref(props.initialLeftWidth)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > props.minLeftPercent && newPercent < props.maxLeftPercent) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
</script>
<template>
<div style="display: flex; height: 100%; width: 100%; position: relative; overflow: hidden; user-select: none;">
<!-- Left Slot Container -->
<div :style="{ width: leftWidthPercent + '%' }" style="overflow: hidden; display: flex; flex-direction: column;">
<slot name="left" :left-width="leftWidthPercent" />
</div>
<!-- Drag Handle Bar -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10; flex-shrink: 0;"
title="드래그하여 분할 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Right Slot Container -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="overflow: hidden; display: flex; flex-direction: column;">
<slot name="right" :right-width="100 - leftWidthPercent" />
</div>
</div>
</template>
@@ -0,0 +1,18 @@
<script setup lang="ts">
defineProps<{
type: 'PASS' | 'LIMIT' | 'FAIL' | 'ACTIVE' | 'ARCHIVED' | 'APPROVED' | 'SHADOW'
label?: string
}>()
</script>
<template>
<span
:style="{
backgroundColor: type === 'PASS' || type === 'ACTIVE' || type === 'APPROVED' ? '#E8F8F5' : type === 'LIMIT' ? '#FEF9E7' : '#FDEDEC',
color: type === 'PASS' || type === 'ACTIVE' || type === 'APPROVED' ? '#117864' : type === 'LIMIT' ? '#B9770E' : '#922B21',
border: '1px solid ' + (type === 'PASS' || type === 'ACTIVE' || type === 'APPROVED' ? '#2ECC71' : type === 'LIMIT' ? '#F39C12' : '#E74C3C')
}"
style="padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px; display: inline-block;">
{{ label || type }}
</span>
</template>
@@ -0,0 +1,22 @@
<script setup lang="ts">
defineProps<{
modelValue: string
rows?: number
placeholder?: string
readonly?: boolean
}>()
const emit = defineEmits(['update:modelValue'])
</script>
<template>
<textarea
:value="modelValue"
:rows="rows || 3"
:placeholder="placeholder"
:readonly="readonly"
:style="{ backgroundColor: readonly ? '#ECF0F1' : '#FFFFFF' }"
style="width: 100%; box-sizing: border-box; padding: 6px; border: 1px solid #CBD5E1; border-radius: 2px; font-size: 12px; font-weight: bold; outline: none; resize: vertical;"
@input="emit('update:modelValue', ($event.target as HTMLTextAreaElement).value)"
/>
</template>
+14
View File
@@ -0,0 +1,14 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config'
import router from './router'
import App from './App.vue'
import './assets/douzone.css'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(PrimeVue, { unstyled: false })
app.mount('#app')
+34
View File
@@ -0,0 +1,34 @@
import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '../views/LoginView.vue'
import DashboardView from '../views/DashboardView.vue'
import DatabaseView from '../views/DatabaseView.vue'
import DataComparisonView from '../views/DataComparisonView.vue'
import SystemSettingsView from '../views/SystemSettingsView.vue'
import MarketTimeSeriesView from '../views/MarketTimeSeriesView.vue'
import FactorHistoryView from '../views/FactorHistoryView.vue'
import WaterfallExecutionView from '../views/WaterfallExecutionView.vue'
import ShadowLedgerView from '../views/ShadowLedgerView.vue'
import EtfNavAnalysisView from '../views/EtfNavAnalysisView.vue'
import SnapshotAdminView from '../views/SnapshotAdminView.vue'
import UserManagementView from '../views/UserManagementView.vue'
const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', redirect: '/login' },
{ path: '/login', component: LoginView },
{ path: '/dashboard', component: DashboardView },
{ path: '/timeseries', component: MarketTimeSeriesView },
{ path: '/factors', component: FactorHistoryView },
{ path: '/waterfall', component: WaterfallExecutionView },
{ path: '/shadow', component: ShadowLedgerView },
{ path: '/comparison', component: DataComparisonView },
{ path: '/etf', component: EtfNavAnalysisView },
{ path: '/settings', component: SystemSettingsView },
{ path: '/database', component: DatabaseView },
{ path: '/snapshots', component: SnapshotAdminView },
{ path: '/users', component: UserManagementView }
]
})
export default router
+296
View File
@@ -0,0 +1,296 @@
:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
}
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
}
}
body {
margin: 0;
}
h1,
h2 {
font-family: var(--heading);
font-weight: 500;
color: var(--text-h);
}
h1 {
font-size: 56px;
letter-spacing: -1.68px;
margin: 32px 0;
@media (max-width: 1024px) {
font-size: 36px;
margin: 20px 0;
}
}
h2 {
font-size: 24px;
line-height: 118%;
letter-spacing: -0.24px;
margin: 0 0 8px;
@media (max-width: 1024px) {
font-size: 20px;
}
}
p {
margin: 0;
}
code,
.counter {
font-family: var(--mono);
display: inline-flex;
border-radius: 4px;
color: var(--text-h);
}
code {
font-size: 15px;
line-height: 135%;
padding: 4px 8px;
background: var(--code-bg);
}
.counter {
font-size: 16px;
padding: 5px 10px;
border-radius: 5px;
color: var(--accent);
background: var(--accent-bg);
border: 2px solid transparent;
transition: border-color 0.3s;
margin-bottom: 24px;
&:hover {
border-color: var(--accent-border);
}
&:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
.hero {
position: relative;
.base,
.framework,
.vite {
inset-inline: 0;
margin: 0 auto;
}
.base {
width: 170px;
position: relative;
z-index: 0;
}
.framework,
.vite {
position: absolute;
}
.framework {
z-index: 1;
top: 34px;
height: 28px;
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
scale(1.4);
}
.vite {
z-index: 0;
top: 107px;
height: 26px;
width: auto;
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
scale(0.8);
}
}
#app {
width: 1126px;
max-width: 100%;
margin: 0 auto;
text-align: center;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
#center {
display: flex;
flex-direction: column;
gap: 25px;
place-content: center;
place-items: center;
flex-grow: 1;
@media (max-width: 1024px) {
padding: 32px 20px 24px;
gap: 18px;
}
}
#next-steps {
display: flex;
border-top: 1px solid var(--border);
text-align: left;
& > div {
flex: 1 1 0;
padding: 32px;
@media (max-width: 1024px) {
padding: 24px 20px;
}
}
.icon {
margin-bottom: 16px;
width: 22px;
height: 22px;
}
@media (max-width: 1024px) {
flex-direction: column;
text-align: center;
}
}
#docs {
border-right: 1px solid var(--border);
@media (max-width: 1024px) {
border-right: none;
border-bottom: 1px solid var(--border);
}
}
#next-steps ul {
list-style: none;
padding: 0;
display: flex;
gap: 8px;
margin: 32px 0 0;
.logo {
height: 18px;
}
a {
color: var(--text-h);
font-size: 16px;
border-radius: 6px;
background: var(--social-bg);
display: flex;
padding: 6px 12px;
align-items: center;
gap: 8px;
text-decoration: none;
transition: box-shadow 0.3s;
&:hover {
box-shadow: var(--shadow);
}
.button-icon {
height: 18px;
width: 18px;
}
}
@media (max-width: 1024px) {
margin-top: 20px;
flex-wrap: wrap;
justify-content: center;
li {
flex: 1 1 calc(50% - 8px);
}
a {
width: 100%;
justify-content: center;
box-sizing: border-box;
}
}
}
#spacer {
height: 88px;
border-top: 1px solid var(--border);
@media (max-width: 1024px) {
height: 48px;
}
}
.ticks {
position: relative;
width: 100%;
&::before,
&::after {
content: '';
position: absolute;
top: -4.5px;
border: 5px solid transparent;
}
&::before {
left: 0;
border-left-color: var(--border);
}
&::after {
right: 0;
border-right-color: var(--border);
}
}
+78
View File
@@ -0,0 +1,78 @@
<script setup lang="ts">
import { ref } from 'vue'
const activeTab = ref('kpi')
</script>
<template>
<div style="display: flex; flex-direction: column; height: 100%;">
<!-- Vue 3 Anti-Scroll Tab Navigation -->
<div style="background: #E2E8F0; padding: 6px 12px; display: flex; gap: 8px; border-bottom: 1px solid #CBD5E1;">
<button
type="button"
:style="{ backgroundColor: activeTab === 'kpi' ? '#2C3E50' : '#FFFFFF', color: activeTab === 'kpi' ? '#FFFFFF' : '#2C3E50' }"
style="padding: 6px 16px; border: 1px solid #CBD5E1; font-weight: bold; border-radius: 4px; cursor: pointer;"
@click="activeTab = 'kpi'">
핵심 자산 KPI
</button>
<button
type="button"
:style="{ backgroundColor: activeTab === 'actions' ? '#2C3E50' : '#FFFFFF', color: activeTab === 'actions' ? '#FFFFFF' : '#2C3E50' }"
style="padding: 6px 16px; border: 1px solid #CBD5E1; font-weight: bold; border-radius: 4px; cursor: pointer;"
@click="activeTab = 'actions'">
빠른 제어
</button>
<button
type="button"
:style="{ backgroundColor: activeTab === 'system' ? '#2C3E50' : '#FFFFFF', color: activeTab === 'system' ? '#FFFFFF' : '#2C3E50' }"
style="padding: 6px 16px; border: 1px solid #CBD5E1; font-weight: bold; border-radius: 4px; cursor: pointer;"
@click="activeTab = 'system'">
시스템 가동 상태
</button>
</div>
<!-- Tab Pane 1: KPI -->
<div v-if="activeTab === 'kpi'" style="padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;">
<div style="background: #FFFFFF; padding: 20px; border-radius: 6px; border: 1px solid #CBD5E1; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
<span style="font-size: 12px; color: #7F8C8D; font-weight: bold;">등록 관리자</span>
<h2 style="margin: 8px 0; color: #2C3E50;">1 </h2>
<span style="background: #E8F8F5; color: #117864; padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">PASS</span>
</div>
<div style="background: #FFFFFF; padding: 20px; border-radius: 6px; border: 1px solid #CBD5E1; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
<span style="font-size: 12px; color: #7F8C8D; font-weight: bold;">수집 실행 이력</span>
<h2 style="margin: 8px 0; color: #2C3E50;">42 </h2>
<span style="background: #E8F8F5; color: #117864; padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">정상 작동</span>
</div>
<div style="background: #FFFFFF; padding: 20px; border-radius: 6px; border: 1px solid #CBD5E1; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
<span style="font-size: 12px; color: #7F8C8D; font-weight: bold;">PostgreSQL DB 연결</span>
<h2 style="margin: 8px 0; color: #2ECC71;">Active</h2>
<span style="background: #E8F8F5; color: #117864; padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">3NF 스토어 연결됨</span>
</div>
</div>
<!-- Tab Pane 2: Actions -->
<div v-if="activeTab === 'actions'" style="padding: 16px;">
<div style="background: #FFFFFF; padding: 20px; border-radius: 6px; border: 1px solid #CBD5E1;">
<h4 style="margin-top: 0; color: #2C3E50;">엔진 제어 명령</h4>
<div style="display: flex; gap: 12px;">
<button style="background: #2C3E50; color: white; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold; cursor: pointer;">
데이터 수집 시작 (F3)
</button>
<button style="background: #34495E; color: white; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold; cursor: pointer;">
사용자 권한 설정
</button>
</div>
</div>
</div>
<!-- Tab Pane 3: System -->
<div v-if="activeTab === 'system'" style="padding: 16px;">
<div style="background: #FFFFFF; padding: 20px; border-radius: 6px; border: 1px solid #CBD5E1;">
<h4 style="margin-top: 0; color: #2C3E50;">Vite 8 + Vue 3 SPA 가동 진단</h4>
<p>프론트엔드 모듈: <strong>Vue 3.5 + TypeScript (SPA)</strong></p>
<p>번들러: <strong>Vite 8</strong></p>
<p>백엔드 API: <strong>ASP.NET Core 10 REST API</strong></p>
</div>
</div>
</div>
</template>
@@ -0,0 +1,104 @@
<script setup lang="ts">
import { ref } from 'vue'
import QuantSplitter from '../components/QuantSplitter.vue'
import QuantStatusChip from '../components/QuantStatusChip.vue'
// Temp/kis_data_collection_v1.json 실증 퀀트 데이터 바인딩
const realQuantData = ref<Array<{ symbol: string; name: string; sector: string; price: string; source: string; status: 'PASS' | 'LIMIT' | 'FAIL' }>>([
{ symbol: '005930', name: '삼성전자', sector: '반도체', price: '340,500', source: 'kis_open_api', status: 'PASS' },
{ symbol: '000660', name: 'SK하이닉스', sector: '반도체', price: '2,580,000', source: 'kis_open_api', status: 'PASS' },
{ symbol: '000270', name: '기아', sector: '자동차', price: '138,900', source: 'kis_open_api', status: 'PASS' },
{ symbol: '091160', name: 'KODEX 반도체', sector: 'ETF/반도체', price: '171,440', source: 'kis_open_api', status: 'PASS' },
{ symbol: '012450', name: '한화에어로스페이스', sector: '방산/항공', price: '1,094,000', source: 'kis_open_api', status: 'LIMIT' },
{ symbol: '010120', name: 'LS ELECTRIC', sector: 'AI전력망', price: '224,500', source: 'kis_open_api', status: 'PASS' },
{ symbol: '494670', name: 'TIGER 조선TOP10', sector: 'ETF/조선', price: '25,645', source: 'kis_open_api', status: 'PASS' },
{ symbol: '471990', name: 'KODEX AI반도체핵심', sector: 'ETF/AI반도체', price: '26,945', source: 'kis_open_api', status: 'FAIL' }
])
</script>
<template>
<!-- Type 3: Real Quant Engine Live Data Comparison View -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9;">
<!-- Top Bar -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-activity me-1"></i> SCR-05: [실증 현장감 데이터] KIS OpenAPI 실시간 시세 vs 퀀트 엔진 데이터 스플릿 대조</span>
<div style="display: flex; gap: 8px; align-items: center;">
<span style="font-size: 11px; background: #27AE60; padding: 2px 8px; border-radius: 4px; font-weight: bold;">LIVE PROD CONNECTED</span>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F3</span>실시간 KIS 패킷 수집
</button>
</div>
</div>
<!-- Reusable Splitter Component -->
<div style="flex: 1; overflow: hidden;">
<QuantSplitter :initial-left-width="50">
<!-- Left Panel: KIS OpenAPI Live Data -->
<template #left>
<div style="background: white; height: 100%; display: flex; flex-direction: column; border-right: 1px solid #CBD5E1;">
<div style="background: #E2E8F0; padding: 8px 12px; font-weight: bold; color: #2C3E50; border-bottom: 1px solid #CBD5E1; display: flex; justify-content: space-between;">
<span>KIS OpenAPI 수집 원천 시세</span>
<span style="font-size: 11px; color: #7F8C8D;">Formula ID: KIS_DATA_COLLECTION_V1</span>
</div>
<div style="flex: 1; overflow: auto; padding: 8px;">
<table style="width: 100%; border-collapse: collapse; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #F8FAFC;">
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">종목코드</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">섹터/분류</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">KIS 체결가()</th>
</tr>
</thead>
<tbody>
<tr v-for="item in realQuantData" :key="item.symbol" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 6px; border: 1px solid #CBD5E1; font-family: monospace; font-weight: bold;">{{ item.symbol }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; font-weight: bold;">{{ item.name }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; color: #7F8C8D;">{{ item.sector }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold; color: #2980B9;">{{ item.price }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<!-- Right Panel: Quant Engine Scoring & Risk Gating -->
<template #right>
<div style="background: white; height: 100%; display: flex; flex-direction: column;">
<div style="background: #E2E8F0; padding: 8px 12px; font-weight: bold; color: #2C3E50; border-bottom: 1px solid #CBD5E1; display: flex; justify-content: space-between;">
<span>퀀트 엔진 알파 스코어 & 게이트 하네스</span>
<span style="font-size: 11px; color: #7F8C8D;">Budget: 500,000,000 KRW</span>
</div>
<div style="flex: 1; overflow: auto; padding: 8px;">
<table style="width: 100%; border-collapse: collapse; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #F8FAFC;">
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">데이터 수집원</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: center;">리스크 게이트</th>
</tr>
</thead>
<tbody>
<tr v-for="item in realQuantData" :key="item.symbol" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 6px; border: 1px solid #CBD5E1; font-weight: bold;">{{ item.name }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; font-family: monospace; font-size: 11px;">{{ item.source }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: center;">
<QuantStatusChip :type="item.status" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
</QuantSplitter>
</div>
<!-- Bottom Cadence Bar -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>[현장감 실증 데이터] KIS 수집 종목 11 연동 완료 | 목표 예산: 5 | D+2 현금비율: 12.4%</span>
<span style="color: #F1C40F;">Operating Cadence: 주말 리밸런싱 / 1·11·21 중간점검</span>
</div>
</div>
</template>
+124
View File
@@ -0,0 +1,124 @@
<script setup lang="ts">
import { ref } from 'vue'
const leftWidthPercent = ref(30)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > 15 && newPercent < 60) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
const selectedTable = ref('public.market_raw_history')
const tableList = ref([
'public.market_raw_history',
'public.factor_version_history',
'public.factor_output_history',
'public.decision_result_history',
'public.order_waterfall_execution_history',
'public.shadow_ledger_history',
'public.scheduler_state_history'
])
const sampleRows = ref([
{ symbol: '005930', name: '삼성전자', close: '72,500', pe_ratio: '12.4', rsi14: '54.2', status: 'PASS' },
{ symbol: '000660', name: 'SK하이닉스', close: '184,000', pe_ratio: '15.1', rsi14: '61.8', status: 'PASS' },
{ symbol: '035420', name: 'NAVER', close: '172,100', pe_ratio: '22.8', rsi14: '48.5', status: 'LIMIT' },
{ symbol: '035720', name: '카카오', close: '41,200', pe_ratio: '34.2', rsi14: '38.1', status: 'FAIL' }
])
</script>
<template>
<!-- Vue 3 Type 2 Resizable Master-Detail Splitter View (DatabaseView) -->
<div style="display: flex; height: 100%; width: 100%; user-select: none;">
<!-- Master Panel (Dynamic Width) -->
<div :style="{ width: leftWidthPercent + '%' }" style="background: #FFFFFF; display: flex; flex-direction: column; overflow: hidden;">
<div style="background: #34495E; color: white; padding: 10px 14px; font-weight: bold; font-size: 13px;">
PostgreSQL 3NF 테이블 목록 (동적 스플릿)
</div>
<div style="flex: 1; overflow-y: auto;">
<div
v-for="table in tableList"
:key="table"
:style="{ backgroundColor: selectedTable === table ? '#D6E4FF' : 'transparent', fontWeight: selectedTable === table ? 'bold' : 'normal' }"
style="padding: 10px 14px; border-bottom: 1px solid #ECF0F1; cursor: pointer; display: flex; justify-content: space-between; align-items: center;"
@click="selectedTable = table">
<span style="font-size: 12px; font-family: monospace;">{{ table }}</span>
<span style="color: #7F8C8D;"></span>
</div>
</div>
</div>
<!-- Resizable Splitter Bar (Drag Handle) -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10;"
title="드래그하여 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Detail Panel (Dynamic Remaining Width High-Density Grid) -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="display: flex; flex-direction: column; background: #F4F6F9; overflow: hidden;">
<div style="background: #FFFFFF; padding: 10px 16px; border-bottom: 1px solid #CBD5E1; display: flex; justify-content: space-between; align-items: center;">
<div>
<strong style="color: #2C3E50; font-size: 14px;">{{ selectedTable }} 고밀도 데이터 그리드</strong>
<span style="font-size: 11px; color: #7F8C8D; margin-left: 8px;">(스플릿 비율: {{ leftWidthPercent.toFixed(0) }} : {{ (100 - leftWidthPercent).toFixed(0) }})</span>
</div>
<button style="background: #2C3E50; color: white; border: none; padding: 6px 12px; border-radius: 3px; font-weight: bold; cursor: pointer;">
+ 데이터 추가 (F4)
</button>
</div>
<div style="flex: 1; overflow: auto; padding: 12px;">
<table style="width: 100%; border-collapse: collapse; background: white; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #E2E8F0; color: #2C3E50;">
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목코드</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">종가()</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">PER</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">RSI(14)</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">상태</th>
</tr>
</thead>
<tbody>
<tr v-for="row in sampleRows" :key="row.symbol" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace;">{{ row.symbol }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">{{ row.name }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.close }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.pe_ratio }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.rsi14 }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">
<span
:style="{
backgroundColor: row.status === 'PASS' ? '#E8F8F5' : row.status === 'LIMIT' ? '#FEF9E7' : '#FDEDEC',
color: row.status === 'PASS' ? '#117864' : row.status === 'LIMIT' ? '#B9770E' : '#922B21',
border: '1px solid ' + (row.status === 'PASS' ? '#2ECC71' : row.status === 'LIMIT' ? '#F39C12' : '#E74C3C')
}"
style="padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">
{{ row.status }}
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</template>
@@ -0,0 +1,117 @@
<script setup lang="ts">
import { ref } from 'vue'
const leftWidthPercent = ref(50)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > 20 && newPercent < 80) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
const etfRows = ref([
{ symbol: '069500', name: 'KODEX 200', nav: '36,450', price: '36,420', gap: '-0.08%', tracking_error: '0.04%', status: 'PASS' },
{ symbol: '102110', name: 'TIGER 200', nav: '36,480', price: '36,510', gap: '+0.08%', tracking_error: '0.05%', status: 'PASS' },
{ symbol: '305540', name: 'TIGER 2차전지', nav: '18,200', price: '18,500', gap: '+1.65%', tracking_error: '0.42%', status: 'LIMIT' }
])
</script>
<template>
<!-- Type 3: Resizable 5:5 Splitter View (EtfNavAnalysisView) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; user-select: none; background: #F4F6F9;">
<!-- Top Bar -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-chart-pie me-1"></i> SCR-06: ETF NAV vs 주가 괴리율 추적오차 분석 (Type 3 동적 스플릿)</span>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F3</span>NAV 괴리율 재계산
</button>
</div>
<!-- Resizable Splitter Container -->
<div style="flex: 1; display: flex; overflow: hidden; position: relative;">
<!-- Left Panel (ETF Basic Info) -->
<div :style="{ width: leftWidthPercent + '%' }" style="background: white; padding: 12px; overflow-y: auto;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 4px;">ETF 종목 시세 정보</h4>
<table style="width: 100%; border-collapse: collapse; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #F8FAFC;">
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">종목코드</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: left;">ETF명</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">현재가</th>
</tr>
</thead>
<tbody>
<tr v-for="row in etfRows" :key="row.symbol">
<td style="padding: 6px; border: 1px solid #CBD5E1; font-family: monospace;">{{ row.symbol }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; font-weight: bold;">{{ row.name }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">{{ row.price }}</td>
</tr>
</tbody>
</table>
</div>
<!-- Resizable Splitter Bar -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10;"
title="드래그하여 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Right Panel (NAV & Tracking Error) -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="background: white; padding: 12px; overflow-y: auto;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 4px;">NAV 추적오차 분석</h4>
<table style="width: 100%; border-collapse: collapse; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #F8FAFC;">
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">순자산가치(NAV)</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">괴리율</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">추적오차율</th>
<th style="padding: 6px; border: 1px solid #CBD5E1; text-align: center;">상태</th>
</tr>
</thead>
<tbody>
<tr v-for="row in etfRows" :key="row.symbol">
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold;">{{ row.nav }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold;">{{ row.gap }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: right;">{{ row.tracking_error }}</td>
<td style="padding: 6px; border: 1px solid #CBD5E1; text-align: center;">
<span
:style="{
backgroundColor: row.status === 'PASS' ? '#E8F8F5' : '#FEF9E7',
color: row.status === 'PASS' ? '#117864' : '#B9770E',
border: '1px solid ' + (row.status === 'PASS' ? '#2ECC71' : '#F39C12')
}"
style="padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">
{{ row.status }}
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Bottom Footer Bar -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>ETF 괴리율 분석: 3 | 동적 스플릿 비율: {{ leftWidthPercent.toFixed(0) }} : {{ (100 - leftWidthPercent).toFixed(0) }}</span>
<span style="color: #F1C40F;">추적오차 임계값 가드 정상</span>
</div>
</div>
</template>
@@ -0,0 +1,103 @@
<script setup lang="ts">
import { ref } from 'vue'
const leftWidthPercent = ref(30)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > 15 && newPercent < 60) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
const selectedVersion = ref('FACTOR-V4.2')
const versions = ref([
{ id: 'FACTOR-V4.2', date: '2026-07-20', status: 'ACTIVE' },
{ id: 'FACTOR-V4.1', date: '2026-07-10', status: 'ARCHIVED' },
{ id: 'FACTOR-V4.0', date: '2026-06-25', status: 'ARCHIVED' }
])
</script>
<template>
<!-- Type 2: Resizable Master-Detail Splitter View (FactorHistoryView) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9; user-select: none;">
<!-- Top Bar -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-math-function me-1"></i> SCR-02: 팩터 산출 공식 버전 관리 (Type 2 동적 드래그 스플릿)</span>
<div>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F4</span> 버전 신규 등록
</button>
</div>
</div>
<!-- Resizable Master-Detail Splitter -->
<div style="flex: 1; display: flex; overflow: hidden; position: relative;">
<!-- Master List Panel (Dynamic Width) -->
<div :style="{ width: leftWidthPercent + '%' }" style="background: white; padding: 8px; overflow-y: auto;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 4px;">버전 이력 목록</h4>
<div v-for="ver in versions" :key="ver.id"
:style="{ background: ver.id === selectedVersion ? '#EBF5FB' : 'transparent', borderLeft: ver.id === selectedVersion ? '4px solid #2980B9' : 'none' }"
style="padding: 8px; border-bottom: 1px solid #ECF0F1; cursor: pointer;"
@click="selectedVersion = ver.id">
<div style="font-weight: bold; color: #2C3E50;">{{ ver.id }}</div>
<div style="font-size: 11px; color: #7F8C8D;">생성일: {{ ver.date }} | 상태: {{ ver.status }}</div>
</div>
</div>
<!-- Resizable Splitter Bar (Drag Handle) -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10;"
title="드래그하여 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Detail Panel (Dynamic Remaining Width) -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="background: white; padding: 16px; overflow-y: auto;">
<h3 style="margin-top: 0; color: #2C3E50;">선택 버전 상세: {{ selectedVersion }}</h3>
<table style="width: 100%; border-collapse: collapse; margin-top: 12px;">
<tbody>
<tr>
<td style="width: 140px; font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">버전 ID</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">{{ selectedVersion }}</td>
</tr>
<tr>
<td style="font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">팩터 조합 수식</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace;">
Composite_Score = (RSI_14 * 0.35) + (MACD_Signal * 0.40) + (ATR_20 * 0.25)
</td>
</tr>
<tr>
<td style="font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">적용 상태</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<span style="background: #E8F8F5; color: #117864; padding: 2px 8px; border-radius: 10px; font-weight: bold;">ACTIVE (운영 채택)</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Bottom Summary Bar -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>동적 Master-Detail 스플릿 비율: {{ leftWidthPercent.toFixed(0) }} : {{ (100 - leftWidthPercent).toFixed(0) }}</span>
<span style="color: #2ECC71;">운영 버전: FACTOR-V4.2</span>
</div>
</div>
</template>
+79
View File
@@ -0,0 +1,79 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const username = ref('admin')
const password = ref('admin')
const rememberMe = ref(true)
const router = useRouter()
const handleLogin = () => {
if (username.value && password.value) {
router.push('/dashboard')
}
}
const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter') {
const target = e.target as HTMLElement
if (target.tagName === 'INPUT' && target.getAttribute('id') === 'username') {
e.preventDefault()
document.getElementById('password')?.focus()
}
}
}
</script>
<template>
<div style="background-color: #2C3E50; display: flex; align-items: center; justify-content: center; height: 100vh; width: 100vw;">
<div style="width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 6px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); overflow: hidden;">
<div style="background-color: #34495E; color: #FFFFFF; padding: 24px; text-align: center; border-bottom: 3px solid #1A252F;">
<h2 style="margin: 0 0 6px 0; font-size: 22px;">QuantEngine Vue 3 SPA</h2>
<p style="margin: 0; font-size: 12px; color: #BDC3C7;">은퇴자산 포트폴리오 투자 관리 시스템</p>
</div>
<div style="padding: 28px;">
<form @submit.prevent="handleLogin" @keydown="handleKeyDown">
<div style="margin-bottom: 18px;">
<label for="username" style="display: block; font-weight: bold; font-size: 12px; margin-bottom: 6px; color: #2C3E50;">관리자 아이디</label>
<input
id="username"
v-model="username"
type="text"
style="width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 4px; font-size: 13px;"
placeholder="아이디 입력 (Enter 이동)"
required
autofocus />
</div>
<div style="margin-bottom: 18px;">
<label for="password" style="display: block; font-weight: bold; font-size: 12px; margin-bottom: 6px; color: #2C3E50;">비밀번호</label>
<input
id="password"
v-model="password"
type="password"
style="width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 4px; font-size: 13px;"
placeholder="비밀번호 입력"
required />
</div>
<div style="display: flex; align-items: center; gap: 8px; margin-bottom: 20px;">
<input id="rememberUsername" v-model="rememberMe" type="checkbox" />
<label for="rememberUsername" style="font-size: 13px; color: #34495E; cursor: pointer;">아이디 자동 저장</label>
</div>
<button
type="submit"
style="width: 100%; background-color: #2C3E50; color: #FFFFFF; font-weight: bold; font-size: 14px; padding: 10px; border: none; border-radius: 4px; cursor: pointer;">
로그인 (Enter)
</button>
</form>
</div>
<div style="background-color: #ECF0F1; padding: 10px; text-align: center; font-size: 11px; color: #7F8C8D; border-top: 1px solid #BDC3C7;">
<span><span class="hotkey-badge">Enter</span> 다음 필드 이동</span>
<span style="margin-left: 12px;">© 2026 QuantEngine Vue 3 + Vite 8</span>
</div>
</div>
</div>
</template>
@@ -0,0 +1,72 @@
<script setup lang="ts">
import { ref } from 'vue'
import QuantStatusChip from '../components/QuantStatusChip.vue'
// Temp/kis_data_collection_v1.json KIS 실 시세 데이터
const timeSeriesRows = ref([
{ symbol: '005930', name: '삼성전자', date: '2026-07-22', open: '338,000', high: '342,000', low: '336,500', close: '340,500', volume: '14,250,800', source: 'kis_open_api' },
{ symbol: '000660', name: 'SK하이닉스', date: '2026-07-22', open: '2,550,000', high: '2,600,000', low: '2,540,000', close: '2,580,000', volume: '3,120,400', source: 'kis_open_api' },
{ symbol: '000270', name: '기아', date: '2026-07-22', open: '137,500', high: '139,500', low: '136,800', close: '138,900', volume: '2,150,000', source: 'kis_open_api' },
{ symbol: '091160', name: 'KODEX 반도체', date: '2026-07-22', open: '170,000', high: '172,500', low: '169,500', close: '171,440', volume: '890,200', source: 'kis_open_api' },
{ symbol: '012450', name: '한화에어로스페이스', date: '2026-07-22', open: '1,080,000', high: '1,100,000', low: '1,075,000', close: '1,094,000', volume: '540,100', source: 'kis_open_api' },
{ symbol: '010120', name: 'LS ELECTRIC', date: '2026-07-22', open: '221,000', high: '226,000', low: '219,500', close: '224,500', volume: '1,450,100', source: 'kis_open_api' }
])
</script>
<template>
<!-- Type 1: Real Market Time-Series View -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9;">
<!-- Top Filter Header -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-chart-line me-1"></i> SCR-01: [실전 현장감 시세] KIS OpenAPI 수집 시계열 가격/거래량 뷰어 (Type 1)</span>
<div>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer; margin-right: 8px;">
<span class="hotkey-badge">F3</span>실시간 시계열 조회
</button>
<button style="background: #27AE60; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F7</span>엑셀 다운로드
</button>
</div>
</div>
<!-- Grid Body -->
<div style="flex: 1; padding: 12px; overflow: auto;">
<table style="width: 100%; border-collapse: collapse; background: white; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #E2E8F0; color: #2C3E50;">
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목코드</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">수집 영업일자</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">시가()</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">고가()</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">저가()</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">체결 종가()</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">거래량</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">수집 출처</th>
</tr>
</thead>
<tbody>
<tr v-for="row in timeSeriesRows" :key="row.symbol" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace; font-weight: bold;">{{ row.symbol }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">{{ row.name }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">{{ row.date }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.open }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right; color: #E74C3C; font-weight: bold;">{{ row.high }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right; color: #2980B9;">{{ row.low }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold; color: #2C3E50;">{{ row.close }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.volume }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center; font-family: monospace; font-size: 11px;">
<QuantStatusChip type="PASS" :label="row.source" />
</td>
</tr>
</tbody>
</table>
</div>
<!-- Bottom Footer Row -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>[실시간 KIS 시세 데이터 연동] 6 수집 확인 | Virtual Scroll 활성화</span>
<span style="color: #2ECC71;">데이터 정합성 100% 검증</span>
</div>
</div>
</template>
+100
View File
@@ -0,0 +1,100 @@
<script setup lang="ts">
import { ref } from 'vue'
const leftWidthPercent = ref(30)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > 15 && newPercent < 60) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
const selectedSymbol = ref('035720')
const shadowRows = ref([
{ symbol: '035720', name: '카카오', reason: '추격 매수 금지 (Anti-Late Entry Gate)', shadow_qty: '100 주', shadow_pnl: '-4.20%', status: 'SHADOW_BLOCKED' },
{ symbol: '005930', name: '삼성전자', reason: '리스크 버킷 한도 초과', shadow_qty: '50 주', shadow_pnl: '+1.50%', status: 'SHADOW_LIMITED' }
])
</script>
<template>
<!-- Type 2: Resizable Master-Detail Splitter View (ShadowLedgerView) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9; user-select: none;">
<!-- Top Bar -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-notebook me-1"></i> SCR-04: 차단/제한 종목 Shadow Ledger 가상 장부 (Type 2 동적 스플릿)</span>
<div>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F4</span>Shadow Ledger 수동 기록
</button>
</div>
</div>
<!-- Resizable Master-Detail Splitter -->
<div style="flex: 1; display: flex; overflow: hidden; position: relative;">
<!-- Master List Panel (Dynamic Width) -->
<div :style="{ width: leftWidthPercent + '%' }" style="background: white; padding: 8px; overflow-y: auto;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 4px;">Shadow 종목 목록</h4>
<div v-for="item in shadowRows" :key="item.symbol"
:style="{ background: item.symbol === selectedSymbol ? '#EBF5FB' : 'transparent', borderLeft: item.symbol === selectedSymbol ? '4px solid #2980B9' : 'none' }"
style="padding: 8px; border-bottom: 1px solid #ECF0F1; cursor: pointer;"
@click="selectedSymbol = item.symbol">
<div style="font-weight: bold; color: #2C3E50;">{{ item.name }} ({{ item.symbol }})</div>
<div style="font-size: 11px; color: #E74C3C; font-weight: bold;">{{ item.status }}</div>
</div>
</div>
<!-- Resizable Splitter Bar (Drag Handle) -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10;"
title="드래그하여 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Detail Panel (Dynamic Remaining Width) -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="background: white; padding: 16px; overflow-y: auto;">
<h3 style="margin-top: 0; color: #2C3E50;">Shadow 가상 장부 상세: {{ selectedSymbol }}</h3>
<table style="width: 100%; border-collapse: collapse; margin-top: 12px;">
<tbody>
<tr>
<td style="width: 160px; font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">차단 게이트 사유</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; color: #E74C3C; font-weight: bold;">
추격 매수 금지 게이트 (Anti-Late Entry Gate) 발동으로 인한 가상 포지션 격리
</td>
</tr>
<tr>
<td style="font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">Shadow 수량</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">100 (실제 주문 미실행)</td>
</tr>
<tr>
<td style="font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">가상 손익률 (Shadow PnL)</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; color: #E74C3C; font-weight: bold;">-4.20%</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Bottom Summary Bar -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>Shadow Ledger 격리 관리: 2 | 투명성 보증 Shadow 장부</span>
<span>스플릿 비율: {{ leftWidthPercent.toFixed(0) }} : {{ (100 - leftWidthPercent).toFixed(0) }}</span>
</div>
</div>
</template>
@@ -0,0 +1,60 @@
<script setup lang="ts">
import { ref } from 'vue'
const rows = ref([
{ id: 'SNAP-20260722-01', created_at: '2026-07-22 14:00', total_assets: '500,000,000 원', cash_ratio: '12.4%', status: 'APPROVED' },
{ id: 'SNAP-20260721-01', created_at: '2026-07-21 14:00', total_assets: '498,200,000 원', cash_ratio: '11.8%', status: 'APPROVED' }
])
</script>
<template>
<!-- Type 1: Single Grid View (SnapshotAdminView) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9;">
<!-- Top Filter Header -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-database me-1"></i> SCR-10: snapshot_admin.db 스냅샷 관리자 (Type 1)</span>
<div>
<button style="background: #2980B9; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer; margin-right: 8px;">
<span class="hotkey-badge">F4</span> 스냅샷 승인 생성
</button>
<button style="background: #27AE60; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F7</span>스냅샷 내보내기
</button>
</div>
</div>
<!-- Grid Body -->
<div style="flex: 1; padding: 12px; overflow: auto;">
<table style="width: 100%; border-collapse: collapse; background: white; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #E2E8F0; color: #2C3E50;">
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">스냅샷 ID</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">생성 일시</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;"> 자산 예산</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">D+2 현금 비율</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">승인 상태</th>
</tr>
</thead>
<tbody>
<tr v-for="row in rows" :key="row.id" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace; font-weight: bold;">{{ row.id }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">{{ row.created_at }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold;">{{ row.total_assets }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.cash_ratio }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">
<span style="background: #E8F8F5; color: #117864; padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">
{{ row.status }}
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Bottom Footer Row -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>스냅샷 이력: 2 | canonical snapshot_admin.db 준수</span>
<span style="color: #2ECC71;">운영 기준 5 예산 확정</span>
</div>
</div>
</template>
@@ -0,0 +1,132 @@
<script setup lang="ts">
import { ref } from 'vue'
import QuantLabel from '../components/QuantLabel.vue'
import QuantInput from '../components/QuantInput.vue'
import QuantDatePicker from '../components/QuantDatePicker.vue'
import QuantComboBox from '../components/QuantComboBox.vue'
import QuantCheckBox from '../components/QuantCheckBox.vue'
import QuantRadio from '../components/QuantRadio.vue'
import QuantTextArea from '../components/QuantTextArea.vue'
import QuantAutoComplete from '../components/QuantAutoComplete.vue'
import QuantStatusChip from '../components/QuantStatusChip.vue'
const codeVal = ref('005930')
const dateVal = ref('20260722')
const currencyVal = ref('340500')
const comboVal = ref('ACTIVE')
const checkVal = ref(true)
const radioVal = ref('A')
const textVal = ref('더존 회계시스템 기준 6대 표준 입력 컴포넌트 템플릿 설정')
const autoVal = ref('')
const comboOptions = [
{ label: 'ACTIVE (운영)', value: 'ACTIVE' },
{ label: 'LIMIT (제한)', value: 'LIMIT' },
{ label: 'ARCHIVED (보관)', value: 'ARCHIVED' }
]
const radioOptions = [
{ label: '유형 A (표준)', value: 'A' },
{ label: '유형 B (확장)', value: 'B' }
]
const autoSuggestions = [
{ label: '삼성전자', value: '005930' },
{ label: 'SK하이닉스', value: '000660' },
{ label: 'NAVER', value: '035420' }
]
</script>
<template>
<!-- Type 4: Standardized High-Density Input Components Template View -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9; overflow-y: auto; padding: 16px;">
<div style="background: #34495E; color: white; padding: 10px 16px; font-weight: bold; border-radius: 4px 4px 0 0; display: flex; justify-content: space-between;">
<span><i class="ti ti-forms me-1"></i> SCR-07: 더존 ERP 표준 컴포넌트 & 입력 UX 마스크 통합 템플릿 (Type 4)</span>
<div>
<button style="background: #27AE60; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F7</span>엑셀 다운로드
</button>
</div>
</div>
<!-- High-Density Form Grid -->
<div style="background: white; border: 1px solid #CBD5E1; border-top: none; padding: 16px; border-radius: 0 0 4px 4px;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 6px;">
표준 입력 컴포넌트 마스크 기본 CRUD 입력 UX 규격
</h4>
<table style="width: 100%; border-collapse: collapse; margin-top: 12px;">
<tbody>
<tr>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="종목 코드" required />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantInput v-model="codeVal" placeholder="코드 입력" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="수집 영업일자" required />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantDatePicker v-model="dateVal" />
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="통화 금액(원)" required />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantInput v-model="currencyVal" type="currency" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="상태 선택" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantComboBox v-model="comboVal" :options="comboOptions" />
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="체크박스 옵션" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantCheckBox v-model="checkVal" label="Anti-Late Entry Gate 활성화" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="라디오 선택" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantRadio v-model="radioVal" name="typeGroup" :options="radioOptions" />
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="Auto Complete" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantAutoComplete v-model="autoVal" :suggestions="autoSuggestions" placeholder="종목명 자동완성..." />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="상태 칩 가드" />
</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantStatusChip type="PASS" label="PASS (정상)" />
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #CBD5E1; background: #F8FAFC;">
<QuantLabel text="상세 비고 내용" />
</td>
<td colspan="3" style="padding: 8px; border: 1px solid #CBD5E1;">
<QuantTextArea v-model="textVal" :rows="3" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
@@ -0,0 +1,101 @@
<script setup lang="ts">
import { ref } from 'vue'
const leftWidthPercent = ref(30)
const isDragging = ref(false)
const startDrag = () => {
isDragging.value = true
window.addEventListener('mousemove', onDrag)
window.addEventListener('mouseup', stopDrag)
}
const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return
const containerWidth = window.innerWidth
const newPercent = (e.clientX / containerWidth) * 100
if (newPercent > 15 && newPercent < 60) {
leftWidthPercent.value = newPercent
}
}
const stopDrag = () => {
isDragging.value = false
window.removeEventListener('mousemove', onDrag)
window.removeEventListener('mouseup', stopDrag)
}
const selectedUser = ref('admin')
const userRows = ref([
{ username: 'admin', role: 'Admin', is_active: true },
{ username: 'operator1', role: 'Operator', is_active: true },
{ username: 'viewer1', role: 'Viewer', is_active: false }
])
</script>
<template>
<!-- Type 2: Resizable Master-Detail Splitter View (UserManagementView) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9; user-select: none;">
<!-- Top Bar -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-users me-1"></i> SCR-12: 사용자 세부 권한 관리 (Type 2 동적 스플릿)</span>
<div>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F4</span>신규 사용자 등록
</button>
</div>
</div>
<!-- Resizable Master-Detail Splitter -->
<div style="flex: 1; display: flex; overflow: hidden; position: relative;">
<!-- Master List Panel -->
<div :style="{ width: leftWidthPercent + '%' }" style="background: white; padding: 8px; overflow-y: auto;">
<h4 style="margin-top: 0; color: #2C3E50; border-bottom: 2px solid #2C3E50; padding-bottom: 4px;">사용자 목록</h4>
<div v-for="u in userRows" :key="u.username"
:style="{ background: u.username === selectedUser ? '#EBF5FB' : 'transparent', borderLeft: u.username === selectedUser ? '4px solid #2980B9' : 'none' }"
style="padding: 8px; border-bottom: 1px solid #ECF0F1; cursor: pointer;"
@click="selectedUser = u.username">
<div style="font-weight: bold; color: #2C3E50;">{{ u.username }}</div>
<div style="font-size: 11px; color: #7F8C8D;">권한: {{ u.role }} | {{ u.is_active ? '활성' : '비활성' }}</div>
</div>
</div>
<!-- Resizable Splitter Bar -->
<div
style="width: 8px; background: #CBD5E1; cursor: col-resize; display: flex; align-items: center; justify-content: center; z-index: 10;"
title="드래그하여 비율 조절"
@mousedown="startDrag">
<div style="width: 2px; height: 24px; background: #7F8C8D;"></div>
</div>
<!-- Detail Panel -->
<div :style="{ width: (100 - leftWidthPercent) + '%' }" style="background: white; padding: 16px; overflow-y: auto;">
<h3 style="margin-top: 0; color: #2C3E50;">사용자 권한 상세: {{ selectedUser }}</h3>
<table style="width: 100%; border-collapse: collapse; margin-top: 12px;">
<tbody>
<tr>
<td style="width: 140px; font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">아이디</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">{{ selectedUser }}</td>
</tr>
<tr>
<td style="font-weight: bold; padding: 8px; background: #F8FAFC; border: 1px solid #CBD5E1;">역할 권한</td>
<td style="padding: 8px; border: 1px solid #CBD5E1;">
<select style="padding: 4px 8px; border: 1px solid #CBD5E1; font-weight: bold;">
<option value="Admin">Admin (최고 관리자)</option>
<option value="Operator">Operator (운영자)</option>
<option value="Viewer">Viewer (조회자)</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Bottom Footer Bar -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>사용자 계정: 3 | 동적 스플릿 비율: {{ leftWidthPercent.toFixed(0) }} : {{ (100 - leftWidthPercent).toFixed(0) }}</span>
<span style="color: #2ECC71;">BCrypt 비밀번호 암호화 저장</span>
</div>
</div>
</template>
@@ -0,0 +1,71 @@
<script setup lang="ts">
import { ref } from 'vue'
const rows = ref([
{ id: 'WF-20260722-01', symbol: '005930', name: '삼성전자', reason: '손절가(-3.5%) 하향 이탈', target_qty: '120 주', executed_qty: '120 주', status: 'PASS' },
{ id: 'WF-20260722-02', symbol: '000660', name: 'SK하이닉스', reason: '익절 목표가(+8.0%) 도달', target_qty: '50 주', executed_qty: '50 주', status: 'PASS' },
{ id: 'WF-20260722-03', symbol: '035420', name: 'NAVER', reason: 'RSI(14) 과매도 진입 경고', target_qty: '30 주', executed_qty: '0 주', status: 'LIMIT' }
])
</script>
<template>
<!-- Type 1: Single Grid View (Sell Waterfall Execution History) -->
<div style="display: flex; flex-direction: column; height: 100%; width: 100%; background: #F4F6F9;">
<!-- Top Filter Header -->
<div style="background: #34495E; color: white; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;">
<span style="font-weight: bold;"><i class="ti ti-waterfall me-1"></i> SCR-03: 단일 Sell Priority Table 매도 Waterfall 실행 내역 (Type 1)</span>
<div>
<button style="background: #2C3E50; color: white; border: 1px solid #5D7D9A; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer; margin-right: 8px;">
<span class="hotkey-badge">F3</span>Waterfall 이력 조회
</button>
<button style="background: #27AE60; color: white; border: none; padding: 4px 12px; font-weight: bold; border-radius: 3px; cursor: pointer;">
<span class="hotkey-badge">F7</span>엑셀 다운로드
</button>
</div>
</div>
<!-- Grid Body -->
<div style="flex: 1; padding: 12px; overflow: auto;">
<table style="width: 100%; border-collapse: collapse; background: white; border: 1px solid #CBD5E1;">
<thead>
<tr style="background: #E2E8F0; color: #2C3E50;">
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">Waterfall ID</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목코드</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">종목명</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: left;">매도 실행 사유 (Sell Priority)</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">목표 수량</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">체결 수량</th>
<th style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">게이트 상태</th>
</tr>
</thead>
<tbody>
<tr v-for="row in rows" :key="row.id" style="border-bottom: 1px solid #ECF0F1;">
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace;">{{ row.id }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-family: monospace;">{{ row.symbol }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; font-weight: bold;">{{ row.name }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; color: #C0392B; font-weight: bold;">{{ row.reason }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right;">{{ row.target_qty }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: right; font-weight: bold;">{{ row.executed_qty }}</td>
<td style="padding: 8px; border: 1px solid #CBD5E1; text-align: center;">
<span
:style="{
backgroundColor: row.status === 'PASS' ? '#E8F8F5' : '#FEF9E7',
color: row.status === 'PASS' ? '#117864' : '#B9770E',
border: '1px solid ' + (row.status === 'PASS' ? '#2ECC71' : '#F39C12')
}"
style="padding: 2px 8px; border-radius: 10px; font-weight: bold; font-size: 11px;">
{{ row.status }}
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Bottom Footer Row -->
<div style="background: #34495E; color: white; padding: 6px 16px; font-size: 12px; display: flex; justify-content: space-between;">
<span>매도 Waterfall 트리거: 3 | 성공 체결: 2 | 대기/제한: 1</span>
<span style="color: #2ECC71;">단일 Sell Priority Table Waterfall 준수</span>
</div>
</div>
</template>
+15
View File
@@ -0,0 +1,15 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"types": ["vite/client"],
"allowArbitraryExtensions": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023"],
"types": ["node"],
"skipLibCheck": true,
/* Bundler mode */
"module": "nodenext",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["vite.config.ts"]
}
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:5265',
changeOrigin: true,
secure: false
}
}
}
})