Integrate BIM viewer with NodeDC auth and sharing
This commit is contained in:
+62
-8
@@ -89,7 +89,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./dcViewer.css?v=16">
|
||||
<link rel="stylesheet" href="./dcViewer.css?v=17">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -220,7 +220,11 @@
|
||||
<div id="saveProjectModal" class="save-project-modal hidden">
|
||||
<div class="modal-header">
|
||||
<div class="modal-title">Сохранить проект</div>
|
||||
<button class="modal-close" id="saveProjectClose" aria-label="Закрыть">×</button>
|
||||
<button class="modal-close inspector-collapse-btn" id="saveProjectClose" aria-label="Закрыть">
|
||||
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
|
||||
<path d="M4.25 4.25 11.75 11.75M11.75 4.25 4.25 11.75" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<label for="saveProjectName" class="input-label">Имя проекта</label>
|
||||
<input type="text" id="saveProjectName" placeholder="Новый проект" autocomplete="off">
|
||||
@@ -236,7 +240,11 @@
|
||||
<div id="deleteProjectModal" class="save-project-modal hidden">
|
||||
<div class="modal-header">
|
||||
<div class="modal-title">Удалить проект</div>
|
||||
<button class="modal-close" id="deleteProjectClose" aria-label="Закрыть">×</button>
|
||||
<button class="modal-close inspector-collapse-btn" id="deleteProjectClose" aria-label="Закрыть">
|
||||
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
|
||||
<path d="M4.25 4.25 11.75 11.75M11.75 4.25 4.25 11.75" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="input-hint">Вы уверены, что хотите удалить проект?</div>
|
||||
<div class="modal-actions">
|
||||
@@ -245,18 +253,64 @@
|
||||
</div>
|
||||
<div class="error-text" id="deleteProjectError"></div>
|
||||
</div>
|
||||
<div id="shareModalBackdrop" class="modal-backdrop hidden"></div>
|
||||
<div id="shareModal" class="save-project-modal hidden">
|
||||
<div class="modal-header">
|
||||
<div class="modal-title">Ссылка на модель</div>
|
||||
<button class="modal-close inspector-collapse-btn" id="shareModalClose" aria-label="Закрыть">
|
||||
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
|
||||
<path d="M4.25 4.25 11.75 11.75M11.75 4.25 4.25 11.75" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<input type="text" id="shareLinkInput" readonly autocomplete="off">
|
||||
<div class="modal-actions">
|
||||
<button class="secondary-btn" id="shareModalCancel" type="button">Закрыть</button>
|
||||
<button class="primary-btn" id="shareCopyButton" type="button" disabled>Скопировать</button>
|
||||
</div>
|
||||
<div class="error-text" id="shareError"></div>
|
||||
</div>
|
||||
|
||||
<div id="bottomToolbar" class="bottom-toolbar">
|
||||
<button class="tb-btn" data-action="settings" title="Настройки">⚙</button>
|
||||
<button class="tb-btn" data-action="templates" title="Примеры">📂</button>
|
||||
<button class="tb-btn" data-action="measure" title="Линейка">📏</button>
|
||||
<button class="tb-btn" data-action="settings" title="Настройки" aria-label="Настройки">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 15.5A3.5 3.5 0 1 0 12 8a3.5 3.5 0 0 0 0 7.5Z"></path>
|
||||
<path d="M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.37a1.7 1.7 0 0 0-1 .56V20a2 2 0 0 1-4 0v-.08a1.7 1.7 0 0 0-1-.56 1.7 1.7 0 0 0-1.88.34l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.63 15a1.7 1.7 0 0 0-.56-1H4a2 2 0 0 1 0-4h.08a1.7 1.7 0 0 0 .56-1 1.7 1.7 0 0 0-.34-1.88l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.63a1.7 1.7 0 0 0 1-.56V4a2 2 0 0 1 4 0v.08a1.7 1.7 0 0 0 1 .56 1.7 1.7 0 0 0 1.88-.34l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.37 9c.18.38.38.73.56 1H20a2 2 0 0 1 0 4h-.08c-.18.27-.37.62-.52 1Z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="templates" title="Примеры" aria-label="Примеры">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M3.5 6.5h6l2 2h9v8.75a2.25 2.25 0 0 1-2.25 2.25H5.75A2.25 2.25 0 0 1 3.5 17.25V6.5Z"></path>
|
||||
<path d="M3.5 10h17"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="measure" title="Линейка" aria-label="Линейка">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M4.5 15.5 15.5 4.5l4 4-11 11-4-4Z"></path>
|
||||
<path d="m8 12 2 2"></path>
|
||||
<path d="m10.5 9.5 1.5 1.5"></path>
|
||||
<path d="m13 7 2 2"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="projection" title="Перспектива / аксонометрия">A</button>
|
||||
<button class="tb-btn" data-action="add" title="Добавить файл">+</button>
|
||||
<button class="tb-btn" data-action="share" title="Поделиться моделью" aria-label="Поделиться моделью">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 14.5V4.75"></path>
|
||||
<path d="m8.25 8.5 3.75-3.75 3.75 3.75"></path>
|
||||
<path d="M7.25 11.25H6.5a2 2 0 0 0-2 2v4.25a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4.25a2 2 0 0 0-2-2h-.75"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="add" title="Добавить файл" aria-label="Добавить файл">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 5v14"></path>
|
||||
<path d="M5 12h14"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input id="fileInput" class="hidden" type="file"
|
||||
accept=".xkt,.glb,.gltf,.bim,.las,.laz,.obj,.stl">
|
||||
|
||||
<script type="module" src="./dcViewer.js?v=21"></script>
|
||||
<script type="module" src="./dcViewer.js?v=22"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user