新增管理器
This commit is contained in:
@@ -108,6 +108,9 @@
|
||||
<i class="la la-external-link-alt fs-6"></i>
|
||||
</a>
|
||||
|
||||
<!-- 快速設定按鈕(點擊開啟儀表板的設定) -->
|
||||
<button id="quick-settings-btn" class="btn btn-light px-1" title="快速設定">⚙️</button>
|
||||
|
||||
<div class="btn-group responsive-btns" role="group">
|
||||
|
||||
<button type="button" class="btn btn-light btn-sm px-1 me-1" data-bs-toggle="dropdown"
|
||||
@@ -2308,6 +2311,21 @@ window.VVVEB_PROJECT_SLUG = "{% endraw %}{{ slug | safe }}{% raw %}";
|
||||
</script>
|
||||
<script src="/static/js/my-editor.js?v={% endraw %}{{ range(1, 100000) | random }}{% raw %}"></script>
|
||||
|
||||
<script>
|
||||
// Quick settings button opens dashboard for current project
|
||||
try{
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
var btn = document.getElementById('quick-settings-btn');
|
||||
if(!btn) return;
|
||||
btn.addEventListener('click', function(e){
|
||||
var slug = window.VVVEB_PROJECT_SLUG || '';
|
||||
var url = '/dashboard' + (slug ? ('?slug='+encodeURIComponent(slug)) : '');
|
||||
window.open(url, '_blank');
|
||||
});
|
||||
});
|
||||
}catch(e){console.warn(e)}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user