security: hide dashboard button from public + SSO protect /dashboards-index.html (doctrine 134)
This commit is contained in:
27
index.html
27
index.html
@@ -332,33 +332,6 @@ document.addEventListener('click', function(e) {
|
||||
|
||||
<script src="/api/a11y-auto-enhancer.js" defer></script>
|
||||
|
||||
<!-- Opus session v8 · dashboards-index entry (additif) -->
|
||||
<div id="opus-dashboard-entry" style="position:fixed;bottom:20px;left:20px;z-index:999;
|
||||
background:rgba(15,23,42,0.92);border:1px solid rgba(6,182,212,0.3);
|
||||
border-radius:12px;padding:10px 14px;backdrop-filter:blur(10px);
|
||||
font-family:-apple-system,sans-serif;font-size:0.78rem;
|
||||
box-shadow:0 4px 16px rgba(0,0,0,0.3);transition:all 0.2s">
|
||||
<a href="/dashboards-index.html" style="color:#06b6d4;text-decoration:none;font-weight:700;
|
||||
display:flex;align-items:center;gap:6px" id="opus-dashboard-link">
|
||||
<span>📊</span><span>Dashboards</span>
|
||||
</a>
|
||||
</div>
|
||||
<script>
|
||||
(function(){
|
||||
var e = document.getElementById('opus-dashboard-entry');
|
||||
if (!e) return;
|
||||
e.addEventListener('mouseenter', function(){
|
||||
e.style.transform = 'translateY(-2px)';
|
||||
e.style.borderColor = 'rgba(6,182,212,0.6)';
|
||||
});
|
||||
e.addEventListener('mouseleave', function(){
|
||||
e.style.transform = 'none';
|
||||
e.style.borderColor = 'rgba(6,182,212,0.3)';
|
||||
});
|
||||
// Hide on mobile to avoid clutter
|
||||
if (window.innerWidth < 768) e.style.display = 'none';
|
||||
})();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user