update 2024-12-28 16:23:04

This commit is contained in:
kenzok8 2024-12-28 16:23:04 +08:00
parent c4aaedb7df
commit ce3a67ba9b
6 changed files with 76 additions and 49 deletions

View File

@ -82,6 +82,17 @@ $dash_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/dashbo
<div class="container text-left p-3">
<div class="container h-100 mb-5">
<iframe id="iframeMeta" class="border border-3 rounded-4 w-100" style="height: 70vh;" src="http://<?php echo $zash_link; ?>" title="zash" allowfullscreen></iframe>
<div class="mb-3 mt-3">
<h4 for="panelSelect" class="form-label">选择面板</h4>
<select id="panelSelect" class="form-select">
<option value="http://<?php echo $zash_link; ?>">ZASHBOARD 面板</option>
<option value="http://<?php echo $yacd_link; ?>">YACD-META 面板</option>
<option value="http://<?php echo $dash_link; ?>">DASHBOARD 面板</option>
<option value="http://<?php echo $meta_link; ?>">METACUBEXD 面板</option>
</select>
</div>
<table class="table table-borderless callout mb-2">
<tbody>
<tr class="text-center d-flex flex-wrap justify-content-center">
@ -98,6 +109,22 @@ $dash_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/dashbo
<p><?php echo $footer; ?></p>
</footer>
</div>
<script>
const panelSelect = document.getElementById('panelSelect');
const iframeMeta = document.getElementById('iframeMeta');
const savedPanel = localStorage.getItem('selectedPanel');
if (savedPanel) {
iframeMeta.src = savedPanel;
panelSelect.value = savedPanel;
}
panelSelect.addEventListener('change', function() {
iframeMeta.src = panelSelect.value;
localStorage.setItem('selectedPanel', panelSelect.value);
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const fullscreenToggle = document.getElementById('fullscreenToggle');

View File

@ -30,8 +30,8 @@
name="theme-color"
content="#FFFFFF"
/>
<script type="module" crossorigin src="./assets/index-Dv1-Todp.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-auQ_-eeU.css">
<script type="module" crossorigin src="./assets/index-DTQ-SwsF.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Wi3TY4zB.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
<div id="app"></div>

View File

@ -1 +1 @@
if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didnt register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let d={};const o=e=>s(e,f),t={module:{uri:f},exports:d,require:o};i[f]=Promise.all(n.map((e=>t[e]||o(e)))).then((e=>(r(...e),d)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-auQ_-eeU.css",revision:null},{url:"assets/index-Dv1-Todp.js",revision:null},{url:"index.html",revision:"4eb6db07f08e6860f34670d0c94360b2"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));
if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didnt register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let c={};const o=e=>s(e,f),t={module:{uri:f},exports:c,require:o};i[f]=Promise.all(n.map((e=>t[e]||o(e)))).then((e=>(r(...e),c)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-DTQ-SwsF.js",revision:null},{url:"assets/index-Wi3TY4zB.css",revision:null},{url:"index.html",revision:"8f2b14077448252f401b1c9451be4cca"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));

View File

@ -1 +1 @@
v1.34.0
v1.35.0