lotto 기능 고도화
This commit is contained in:
56
src/api.js
56
src/api.js
@@ -246,6 +246,62 @@ export function deleteSellHistory(id) {
|
|||||||
return apiDelete(`/api/portfolio/sell-history/${id}`);
|
return apiDelete(`/api/portfolio/sell-history/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ── 로또 고도화 API ────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
// GET /api/lotto/stats/performance
|
||||||
|
export function getPerformanceStats() {
|
||||||
|
return apiGet('/api/lotto/stats/performance');
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/report/latest
|
||||||
|
export function getLatestReport() {
|
||||||
|
return apiGet('/api/lotto/report/latest');
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/report/:drw_no
|
||||||
|
export function getReport(drwNo) {
|
||||||
|
return apiGet(`/api/lotto/report/${drwNo}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/report/history?limit=N
|
||||||
|
export function getReportHistory(limit = 10) {
|
||||||
|
return apiGet(`/api/lotto/report/history?limit=${limit}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/analysis/personal
|
||||||
|
export function getPersonalAnalysis() {
|
||||||
|
return apiGet('/api/lotto/analysis/personal');
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/purchase?draw_no=N&days=N
|
||||||
|
export function getPurchases({ draw_no, days } = {}) {
|
||||||
|
const qs = new URLSearchParams();
|
||||||
|
if (draw_no) qs.set('draw_no', String(draw_no));
|
||||||
|
if (days) qs.set('days', String(days));
|
||||||
|
const q = qs.toString();
|
||||||
|
return apiGet(`/api/lotto/purchase${q ? '?' + q : ''}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET /api/lotto/purchase/stats
|
||||||
|
export function getPurchaseStats() {
|
||||||
|
return apiGet('/api/lotto/purchase/stats');
|
||||||
|
}
|
||||||
|
|
||||||
|
// POST /api/lotto/purchase
|
||||||
|
export function addPurchase(data) {
|
||||||
|
return apiPost('/api/lotto/purchase', data);
|
||||||
|
}
|
||||||
|
|
||||||
|
// PUT /api/lotto/purchase/:id
|
||||||
|
export function updatePurchase(id, data) {
|
||||||
|
return apiPut(`/api/lotto/purchase/${id}`, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
// DELETE /api/lotto/purchase/:id
|
||||||
|
export function deletePurchase(id) {
|
||||||
|
return apiDelete(`/api/lotto/purchase/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
// ── 블로그 API ────────────────────────────────────────────────────────────────
|
// ── 블로그 API ────────────────────────────────────────────────────────────────
|
||||||
// GET /api/blog/posts → { posts: [{id, title, tags, body, date, excerpt}] }
|
// GET /api/blog/posts → { posts: [{id, title, tags, body, date, excerpt}] }
|
||||||
// POST /api/blog/posts → 새 글 생성
|
// POST /api/blog/posts → 새 글 생성
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -734,6 +734,344 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ── 신뢰도 배너 ─────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
.lotto-perf-banner {
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
padding: 14px 20px;
|
||||||
|
background: rgba(151, 201, 170, 0.06);
|
||||||
|
border-color: rgba(151, 201, 170, 0.25);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__label {
|
||||||
|
font-size: 11px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.18em;
|
||||||
|
color: rgba(151, 201, 170, 0.85);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__items {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
padding: 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__divider {
|
||||||
|
width: 1px;
|
||||||
|
height: 32px;
|
||||||
|
background: var(--line);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__val {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__val.is-pos { color: #97c9aa; }
|
||||||
|
.lotto-perf-banner__val.is-neg { color: #f7a8a5; }
|
||||||
|
.lotto-perf-banner__val.is-prize { color: #fdd4b1; }
|
||||||
|
|
||||||
|
.lotto-perf-banner__lbl {
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--muted);
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── 공략 리포트 ─────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
.lotto-report-history {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 10px 0;
|
||||||
|
border-bottom: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-top {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 16px;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-confidence-ring {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence__title {
|
||||||
|
margin: 0 0 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence__factors {
|
||||||
|
display: grid;
|
||||||
|
gap: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence__factor {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 90px minmax(0, 1fr) 28px;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence__factor-lbl {
|
||||||
|
color: var(--muted);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-confidence__factor-val {
|
||||||
|
text-align: right;
|
||||||
|
color: var(--muted);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-pattern {
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-pattern__title {
|
||||||
|
margin: 0 0 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-pattern__stats {
|
||||||
|
display: grid;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-pattern__stat {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-report-pattern__stat strong {
|
||||||
|
color: var(--text);
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 전략 카드 */
|
||||||
|
.lotto-strategy-cards {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-strategy-card {
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background: rgba(133, 165, 216, 0.05);
|
||||||
|
display: grid;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-strategy-card__name {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: rgba(133, 165, 216, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-strategy-card__desc {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--muted);
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── 개인 패턴 분석 ──────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
.lotto-personal-tendency {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-personal-tendency__badge {
|
||||||
|
font-size: 11px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
border: 1px solid rgba(253, 212, 177, 0.4);
|
||||||
|
background: rgba(253, 212, 177, 0.1);
|
||||||
|
color: #fdd4b1;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── 구매 기록 ───────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
.lotto-purchase-stats {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 3px;
|
||||||
|
padding: 14px 18px;
|
||||||
|
border-right: 1px solid var(--line);
|
||||||
|
flex: 1;
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat:last-child {
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat__val {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat__val.is-pos { color: #97c9aa; }
|
||||||
|
.lotto-purchase-stat__val.is-neg { color: #f7a8a5; }
|
||||||
|
.lotto-purchase-stat__val.is-prize { color: #fdd4b1; }
|
||||||
|
|
||||||
|
.lotto-purchase-stat__lbl {
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 구매 폼 */
|
||||||
|
.lotto-purchase-form {
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 18px;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
display: grid;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-form__title {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-form__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-form__note {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-form__actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 구매 목록 */
|
||||||
|
.lotto-purchase-list {
|
||||||
|
display: grid;
|
||||||
|
gap: 0;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-list__head {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 60px 100px 100px 100px minmax(0, 1fr) 120px;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 10px 14px;
|
||||||
|
font-size: 11px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
color: var(--muted);
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-bottom: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 60px 100px 100px 100px minmax(0, 1fr) 120px;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
padding: 12px 14px;
|
||||||
|
font-size: 13px;
|
||||||
|
border-bottom: 1px solid var(--line);
|
||||||
|
transition: background 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row__drw {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row__note {
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-row__actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-pos { color: #97c9aa; }
|
||||||
|
.is-neg { color: #f7a8a5; }
|
||||||
|
.is-prize { color: #fdd4b1; }
|
||||||
|
|
||||||
/* ── 반응형 ─────────────────────────────────────────────────────────────── */
|
/* ── 반응형 ─────────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
@@ -754,6 +1092,68 @@
|
|||||||
grid-template-columns: 24px minmax(0, 1fr) auto;
|
grid-template-columns: 24px minmax(0, 1fr) auto;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lotto-report-top {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-list__head,
|
||||||
|
.lotto-purchase-row {
|
||||||
|
grid-template-columns: 56px 90px 90px minmax(0, 1fr) 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-list__head span:nth-child(4),
|
||||||
|
.lotto-purchase-row span:nth-child(4) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.lotto-purchase-stats {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat {
|
||||||
|
border-right: none;
|
||||||
|
border-bottom: 1px solid var(--line);
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-stat:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-list__head,
|
||||||
|
.lotto-purchase-row {
|
||||||
|
grid-template-columns: 56px minmax(0, 1fr) auto;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-list__head span:nth-child(n+3):nth-child(-n+5),
|
||||||
|
.lotto-purchase-row span:nth-child(n+3):nth-child(-n+5) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-purchase-form__note {
|
||||||
|
grid-column: span 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__items {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lotto-perf-banner__item {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,12 @@ export default defineConfig({
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
},
|
},
|
||||||
|
// 여행 사진 미디어 파일 (/media/travel/...)
|
||||||
|
'/media': {
|
||||||
|
target: 'https://gahusb.synology.me',
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: true,
|
||||||
|
},
|
||||||
// Fear & Greed Index (CNN 공개 API)
|
// Fear & Greed Index (CNN 공개 API)
|
||||||
// 프로덕션 nginx에서는 아래 proxy_pass 추가 필요:
|
// 프로덕션 nginx에서는 아래 proxy_pass 추가 필요:
|
||||||
// location /ext/feargreed {
|
// location /ext/feargreed {
|
||||||
|
|||||||
Reference in New Issue
Block a user