This commit is contained in:
SupertigerDev
2025-08-02 09:05:49 +00:00
parent bd247fb5c1
commit 2b8dc6afc4
11 changed files with 21 additions and 19 deletions

2
assets/Label-C5RGArgp.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{c as h}from"./Label-C5RGArgp.js";const u=(l,a)=>{const n=h({interval:1e3,update:()=>m(),config:a,module:l});l.element.appendChild(n.element);const g=e=>{let t="Unknown";return e.charging&&e.level<1&&(t="Charging"),!e.charging&&e.level===1&&(t="Full"),e.charging&&e.level===1&&(t="Plugged"),!e.charging&&e.level<1&&(t="Discharging"),t};let i="Unknown";const m=async()=>{const e={level:Math.random(),charging:Math.random()>.5},t=Math.round(e.level*100),r=g(e);l.element.classList.remove(i.toLowerCase()),l.element.classList.add(r.toLowerCase()),i=r,l.element.title=r;const s=n.getState(t,!0);if(a){const o=r.toLowerCase();let c="";s&&a["format-"+o+"-"+s]?c=a["format-"+o+"-"+s]:a["format-"+o]?c=a["format-"+o]:s&&a["format-"+s]&&(c=a["format-"+s]),n.setFormat(c)}n.set({capacity:t,icon:n.getIcon(t)})};m()};export{u as createBatteryModule};

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
const a=(n,s)=>{const t=()=>{const e=new Date,o=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");n.element.innerHTML=`${o}:${r}`};t(),setInterval(t,1e3)};export{a as createClockModule};

1
assets/clock-BRIsmbRI.js Normal file
View File

@@ -0,0 +1 @@
import{c}from"./Label-C5RGArgp.js";const n=(t,l)=>{const a=c({config:l,module:t,clickable:!0,update:()=>e(),defaultFormat:"{:%H:%M}",interval:1e3});t.element.appendChild(a.element);const e=()=>{a.set({})};e(),setInterval(e,1e3)};export{n as createClockModule};

View File

@@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/waybar-rUGQYHeP.js","assets/waybar-BiCziTIV.css","assets/root-QOTJvkXH.js","assets/root-C-wuBary.css"])))=>i.map(i=>d[i]); const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/waybar-lTTBX0IC.js","assets/waybar-XRanY02g.css","assets/root-QOTJvkXH.js","assets/root-C-wuBary.css"])))=>i.map(i=>d[i]);
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))d(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&d(n)}).observe(document,{childList:!0,subtree:!0});function l(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function d(e){if(e.ep)return;e.ep=!0;const t=l(e);fetch(e.href,t)}})();const P="modulepreload",v=function(r){return"/waybar-online/"+r},f={},m=function(a,l,d){let e=Promise.resolve();if(l&&l.length>0){let h=function(o){return Promise.all(o.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),s=n?.nonce||n?.getAttribute("nonce");e=h(l.map(o=>{if(o=v(o),o in f)return;f[o]=!0;const c=o.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":P,c||(i.as="script"),i.crossOrigin="",i.href=o,s&&i.setAttribute("nonce",s),document.head.appendChild(i),c)return new Promise((y,g)=>{i.addEventListener("load",y),i.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=n,window.dispatchEvent(s),!s.defaultPrevented)throw n}return e.then(n=>{for(const s of n||[])s.status==="rejected"&&t(s.reason);return a().catch(t)})},p=location.pathname.endsWith("/")?location.pathname.slice(0,-1):location.pathname;p==="/waybar-online/waybar"&&m(async()=>{const{createWaybarPage:r}=await import("./waybar-rUGQYHeP.js");return{createWaybarPage:r}},__vite__mapDeps([0,1])).then(({createWaybarPage:r})=>r());p==="/waybar-online"&&m(async()=>{const{createRootPage:r}=await import("./root-QOTJvkXH.js");return{createRootPage:r}},__vite__mapDeps([2,3])).then(({createRootPage:r})=>r());export{m as _}; (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))d(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&d(n)}).observe(document,{childList:!0,subtree:!0});function l(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function d(e){if(e.ep)return;e.ep=!0;const t=l(e);fetch(e.href,t)}})();const P="modulepreload",v=function(r){return"/waybar-online/"+r},f={},m=function(a,l,d){let e=Promise.resolve();if(l&&l.length>0){let h=function(o){return Promise.all(o.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),s=n?.nonce||n?.getAttribute("nonce");e=h(l.map(o=>{if(o=v(o),o in f)return;f[o]=!0;const c=o.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":P,c||(i.as="script"),i.crossOrigin="",i.href=o,s&&i.setAttribute("nonce",s),document.head.appendChild(i),c)return new Promise((y,g)=>{i.addEventListener("load",y),i.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=n,window.dispatchEvent(s),!s.defaultPrevented)throw n}return e.then(n=>{for(const s of n||[])s.status==="rejected"&&t(s.reason);return a().catch(t)})},p=location.pathname.endsWith("/")?location.pathname.slice(0,-1):location.pathname;p==="/waybar-online/waybar"&&m(async()=>{const{createWaybarPage:r}=await import("./waybar-lTTBX0IC.js");return{createWaybarPage:r}},__vite__mapDeps([0,1])).then(({createWaybarPage:r})=>r());p==="/waybar-online"&&m(async()=>{const{createRootPage:r}=await import("./root-QOTJvkXH.js");return{createRootPage:r}},__vite__mapDeps([2,3])).then(({createRootPage:r})=>r());export{m as _};

View File

@@ -1 +0,0 @@
#waybar,.modules{display:flex}#modules-center{flex:1}html,body{padding:0;margin:0}.module{display:flex;align-items:center;justify-content:center}

View File

@@ -0,0 +1 @@
#waybar{display:flex;-webkit-user-select:none;user-select:none}.modules{display:flex}#modules-center{flex:1}html,body{padding:0;margin:0}.module{display:flex;align-items:center;justify-content:center}

13
assets/waybar-lTTBX0IC.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
<link href="/waybar-online/fontawesome/css/fontawesome.min.css" rel="stylesheet" /> <link href="/waybar-online/fontawesome/css/fontawesome.min.css" rel="stylesheet" />
<link href="/waybar-online/fontawesome/css/solid.min.css" rel="stylesheet" /> <link href="/waybar-online/fontawesome/css/solid.min.css" rel="stylesheet" />
<title>Vite + TS</title> <title>Vite + TS</title>
<script type="module" crossorigin src="/waybar-online/assets/index-DW7m6EMR.js"></script> <script type="module" crossorigin src="/waybar-online/assets/index-C7WHKSNS.js"></script>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>