mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-15 23:12:08 +00:00
61 lines
3.0 KiB
HTML
61 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Plugin configuration</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<!-- Same three shared sheets every resources/web/dialog/* page links (see PluginsDialog/index.html):
|
|
global.css for buttons/scrollbars, common.css for the base reset, theme.css last so its
|
|
host-injected --orca-* contract wins and themes the .config-* rules ported into styles.css. -->
|
|
<link rel="stylesheet" type="text/css" href="../../include/global.css">
|
|
<link rel="stylesheet" type="text/css" href="../css/common.css">
|
|
<link rel="stylesheet" type="text/css" href="../css/theme.css">
|
|
</head>
|
|
<body>
|
|
<main class="page">
|
|
<header class="page-header">
|
|
<h1 id="pageTitle" class="page-title">Plugin configuration</h1>
|
|
<p id="pageSubtitle" class="page-subtitle"></p>
|
|
</header>
|
|
|
|
<div id="configEmpty" class="detail-empty">This preset does not use any plugin capabilities</div>
|
|
|
|
<div id="configLayout" class="config-layout" hidden>
|
|
<div id="configSidebar" class="config-sidebar thin-scroll" role="listbox"
|
|
aria-label="Capabilities used by this preset"></div>
|
|
<div class="config-view">
|
|
<div id="configError" class="config-error" role="status" aria-live="polite" hidden></div>
|
|
<div id="configMeta" class="config-meta" hidden>
|
|
<span id="configSourceBadge" class="config-source-badge"></span>
|
|
</div>
|
|
<div id="configEditor" class="config-editor" hidden>
|
|
<textarea id="configText" class="config-textarea thin-scroll" spellcheck="false"
|
|
autocomplete="off" autocapitalize="off" aria-label="Capability configuration (JSON)"></textarea>
|
|
</div>
|
|
<!-- Custom capability UI. Sandboxed without allow-same-origin, so the plugin's HTML runs in
|
|
an opaque origin: it cannot touch this page, and the only host surface it gets is the
|
|
window.orca getConfig/saveConfig bridge injected into srcdoc. -->
|
|
<iframe id="configCustom" class="config-custom" title="Plugin configuration"
|
|
sandbox="allow-scripts" referrerpolicy="no-referrer" hidden></iframe>
|
|
<div id="configFooter" class="config-view-footer" hidden>
|
|
<span id="configValidation" class="config-validation" role="status" aria-live="polite"></span>
|
|
<div class="config-actions">
|
|
<button id="configRestoreBtn" class="ButtonStyleRegular ButtonTypeChoice" type="button"
|
|
title="Discard this preset's override and use the global configuration again">
|
|
Restore defaults
|
|
</button>
|
|
<button id="configSaveBtn" class="ButtonStyleConfirm ButtonTypeChoice" type="button">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer id="statusBar" class="status-bar is-empty">
|
|
<span id="statusText" class="status-text"></span>
|
|
</footer>
|
|
</main>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html>
|