1. handleVerstakLink now performs real navigation:
- case/<id>: GetNodeDetail → selectNode (selects node in tree)
- note/<id>: GetNodeDetail → find parent → selectNode(parent) → setActiveTab('notes') → openNote
- file/<id>: GetNodeDetail → find parent → selectNode(parent) → setActiveTab('files') → loadFolder → openPreview
- secret/<id>: toast 'Seaf access not implemented'
- missing ids: toast 'Not found'
2. Changed href from about:blank to # (safe, DOMPurify won't strip)
e.preventDefault() in click handler prevents scroll-to-top
3. Added i18n keys: caseNotFound, noteNotFound, fileNotFound, fileFound
4. All existing tests pass, build OK
29 lines
988 B
HTML
29 lines
988 B
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/app-icons/icon_16x16.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/app-icons/icon_32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="64x64" href="/assets/app-icons/icon_64x64.png" />
|
|
<link rel="icon" type="image/png" sizes="128x128" href="/assets/app-icons/icon_128x128.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Верстак</title>
|
|
<style>
|
|
/* Critical reset — no white borders, full viewport */
|
|
html, body, #app {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background: #13131f;
|
|
}
|
|
</style>
|
|
<script type="module" crossorigin src="/assets/main-BuG9iGkd.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/main-bQpH1es2.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
</html>
|