feat(folders): nested folder tree (max depth 2) + id-based mutations
- new storeDb.ts: DB+FS layer (folders w/ parent_id, videos w/ global id)
- depth cap: sub-folder cannot have children (enforced in createFolder)
- video id: editable anytime (changeVideoId), uniqueness via PK
- routes:
- public /folder/:topName[/:subName], /video/:topName[/:subName]/:videoId
- admin /op/folder/:topName[/:subName], id-based /op/folders/:id/*
and /op/videos/:id/* (rename/changeId/delete/save + idAvailable check)
- views: breadcrumb + subFolder grid; 플레이리스트 추가 button shows at 2단계
- client JS: id-based mutation endpoints, share URL data attribute,
in-site player pushes share URL to address bar
- store.ts slimmed to Account + readAccounts (FS layer moved to storeDb)
- pickIntId accepts numeric JSON bodies
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -7,22 +7,27 @@
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
<body class="siteBody">
|
||||
<%
|
||||
var folderPathEnc = breadcrumb.map(function (s) { return encodeURIComponent(s) }).join('/')
|
||||
var folderHref = '/folder/' + folderPathEnc
|
||||
var folderLabel = breadcrumb.join(' / ')
|
||||
%>
|
||||
<header class="publicNav">
|
||||
<a class="navBrand" href="/">
|
||||
<span class="navLogo">🎬</span>
|
||||
<span class="navTitle">비디오 사이트</span>
|
||||
</a>
|
||||
<a class="secondaryButton" href="/folder/<%= encodeURIComponent(folder) %>">폴더로</a>
|
||||
<a class="secondaryButton" href="<%= folderHref %>">폴더로</a>
|
||||
</header>
|
||||
|
||||
<main class="pageWrap">
|
||||
<section class="hero">
|
||||
<a class="muted" href="/folder/<%= encodeURIComponent(folder) %>">← <%= folder %></a>
|
||||
<a class="muted" href="<%= folderHref %>">← <%= folderLabel %></a>
|
||||
<h1><%= video.title %></h1>
|
||||
</section>
|
||||
|
||||
<div class="standalonePlayer">
|
||||
<video controls autoplay preload="metadata" src="/api/video/<%= video.id %>/file"></video>
|
||||
<video controls autoplay preload="metadata" src="/api/video/<%= encodeURIComponent(video.id) %>/file"></video>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user