修复: Bing壁纸浏览方向改为旧到新并保最新2000张
- 历史排序改为日期升序, 左键更旧右键更新, 位置显示 idx+1/total - 修复排序翻转后裁剪逻辑误删最新图的问题, 改为淘汰最旧 - dislike跳过与定时切换同步改为向更新方向推进
This commit is contained in:
1 parent
2036c9c89a
commit
9b29dff067
3 files changed
+16
-13
No files matched your search
@@ -315,23 +315,24 @@ func fetchBingHistory() {
|
|||||||
allMap[k] = r
|
allMap[k] = r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort by date descending, then by market for determinism
|
// Sort by date ascending (oldest first), so index 0 = oldest, index N = newest
|
||||||
|
// Left-to-right navigation: left = older (smaller idx), right = newer (larger idx)
|
||||||
var records []BingRecord
|
var records []BingRecord
|
||||||
for _, r := range allMap {
|
for _, r := range allMap {
|
||||||
records = append(records, r)
|
records = append(records, r)
|
||||||
}
|
}
|
||||||
sort.Slice(records, func(i, j int) bool {
|
sort.Slice(records, func(i, j int) bool {
|
||||||
if records[i].Date != records[j].Date {
|
if records[i].Date != records[j].Date {
|
||||||
return records[i].Date > records[j].Date
|
return records[i].Date < records[j].Date
|
||||||
}
|
}
|
||||||
return records[i].Market < records[j].Market
|
return records[i].Market < records[j].Market
|
||||||
})
|
})
|
||||||
|
|
||||||
// ---- Phase 3: Enforce 2000 cap ----
|
// ---- Phase 3: Enforce 2000 cap ----
|
||||||
if len(records) > maxBingRecords {
|
if len(records) > maxBingRecords {
|
||||||
// Remove oldest records and their files
|
// Records sorted oldest-first, so oldest are at the head
|
||||||
toRemove := records[maxBingRecords:]
|
toRemove := records[:len(records)-maxBingRecords]
|
||||||
records = records[:maxBingRecords]
|
records = records[len(records)-maxBingRecords:]
|
||||||
for _, r := range toRemove {
|
for _, r := range toRemove {
|
||||||
p := filepath.Join(bingDir(), r.Filename)
|
p := filepath.Join(bingDir(), r.Filename)
|
||||||
os.Remove(p)
|
os.Remove(p)
|
||||||
@@ -380,6 +381,7 @@ func getCurrentBingRecord() *BingRecord {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// bingPrev moves to the previous (older) image, skipping hidden ones.
|
// bingPrev moves to the previous (older) image, skipping hidden ones.
|
||||||
|
// Records sorted oldest-first, so prev = decrement index.
|
||||||
func bingPrev() {
|
func bingPrev() {
|
||||||
bingMu.Lock()
|
bingMu.Lock()
|
||||||
defer bingMu.Unlock()
|
defer bingMu.Unlock()
|
||||||
@@ -390,7 +392,7 @@ func bingPrev() {
|
|||||||
}
|
}
|
||||||
attempts := 0
|
attempts := 0
|
||||||
for {
|
for {
|
||||||
h.CurrentIdx = (h.CurrentIdx + 1) % len(h.Records)
|
h.CurrentIdx = (h.CurrentIdx - 1 + len(h.Records)) % len(h.Records)
|
||||||
if !h.Records[h.CurrentIdx].Hidden {
|
if !h.Records[h.CurrentIdx].Hidden {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -405,6 +407,7 @@ func bingPrev() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// bingNext moves to the next (newer) image, skipping hidden ones.
|
// bingNext moves to the next (newer) image, skipping hidden ones.
|
||||||
|
// Records sorted oldest-first, so next = increment index.
|
||||||
func bingNext() {
|
func bingNext() {
|
||||||
bingMu.Lock()
|
bingMu.Lock()
|
||||||
defer bingMu.Unlock()
|
defer bingMu.Unlock()
|
||||||
@@ -415,7 +418,7 @@ func bingNext() {
|
|||||||
}
|
}
|
||||||
attempts := 0
|
attempts := 0
|
||||||
for {
|
for {
|
||||||
h.CurrentIdx = (h.CurrentIdx - 1 + len(h.Records)) % len(h.Records)
|
h.CurrentIdx = (h.CurrentIdx + 1) % len(h.Records)
|
||||||
if !h.Records[h.CurrentIdx].Hidden {
|
if !h.Records[h.CurrentIdx].Hidden {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -464,10 +467,10 @@ func bingToggleDislike() string {
|
|||||||
|
|
||||||
if r.Hidden {
|
if r.Hidden {
|
||||||
log.Printf("Bing 壁纸: 已隐藏 (date=%s)", r.Date)
|
log.Printf("Bing 壁纸: 已隐藏 (date=%s)", r.Date)
|
||||||
// Advance to next visible
|
// Advance to next visible (newer = +1)
|
||||||
attempts := 0
|
attempts := 0
|
||||||
for {
|
for {
|
||||||
h.CurrentIdx = (h.CurrentIdx - 1 + len(h.Records)) % len(h.Records)
|
h.CurrentIdx = (h.CurrentIdx + 1) % len(h.Records)
|
||||||
if !h.Records[h.CurrentIdx].Hidden {
|
if !h.Records[h.CurrentIdx].Hidden {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -587,7 +590,7 @@ func bingWallpaperLoop() {
|
|||||||
// Move to next (newer) image, skip hidden
|
// Move to next (newer) image, skip hidden
|
||||||
attempts := 0
|
attempts := 0
|
||||||
for {
|
for {
|
||||||
h.CurrentIdx = (h.CurrentIdx - 1 + len(h.Records)) % len(h.Records)
|
h.CurrentIdx = (h.CurrentIdx + 1) % len(h.Records)
|
||||||
if !h.Records[h.CurrentIdx].Hidden {
|
if !h.Records[h.CurrentIdx].Hidden {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
<img v-if="bing.url" :src="bingThumb" class="w-16 h-10 object-cover rounded flex-shrink-0">
|
<img v-if="bing.url" :src="bingThumb" class="w-16 h-10 object-cover rounded flex-shrink-0">
|
||||||
<div class="min-w-0">
|
<div class="min-w-0">
|
||||||
<div class="text-xs font-medium text-[var(--text-muted)] truncate">{{ bing.copyright || 'Bing 每日壁纸' }}</div>
|
<div class="text-xs font-medium text-[var(--text-muted)] truncate">{{ bing.copyright || 'Bing 每日壁纸' }}</div>
|
||||||
<div class="text-[10px] text-[var(--text-weak)]">{{ bing.idx > 0 ? `${bing.idx} / ${bing.total}` : '' }}</div>
|
<div class="text-[10px] text-[var(--text-weak)]">{{ bing.total > 0 ? `${bing.idx + 1} / ${bing.total}` : '' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-1 flex-shrink-0">
|
<div class="flex gap-1 flex-shrink-0">
|
||||||
|
|||||||
+2
-2
@@ -19,8 +19,8 @@
|
|||||||
* @vue/runtime-dom v3.5.34
|
* @vue/runtime-dom v3.5.34
|
||||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||||
* @license MIT
|
* @license MIT
|
||||||
**/let Ys;const Ln=typeof window<"u"&&window.trustedTypes;if(Ln)try{Ys=Ln.createPolicy("vue",{createHTML:e=>e})}catch{}const li=Ys?e=>Ys.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",al="http://www.w3.org/1998/Math/MathML",We=typeof document<"u"?document:null,Hn=We&&We.createElement("template"),ul={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?We.createElementNS(cl,e):t==="mathml"?We.createElementNS(al,e):s?We.createElement(e,{is:s}):We.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>We.createTextNode(e),createComment:e=>We.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>We.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=li(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},fl=Symbol("_vtc");function dl(e,t,s){const n=e[fl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function vl(e,t,s){const n=e.style,r=ne(s);let i=!1;if(s&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&kt(n,l,"")}else for(const o in t)s[o]==null&&kt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!ne(t)&&t?t[o]:void 0,l)||kt(n,o,l):kt(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function kt(e,t,s){if($(s))s.forEach(n=>kt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ml(e,t);Un.test(s)?e.setProperty(dt(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],Ns={};function ml(e,t){const s=Ns[t];if(s)return s;let n=Pe(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return Ns[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ne(n)&&s===n}const zn="http://www.w3.org/1999/xlink";function Jn(e,t,s,n,r,i=xi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(zn,t.slice(6,t.length)):e.setAttributeNS(zn,t,s):s==null||i&&!ar(s)?e.removeAttribute(t):e.setAttribute(t,i?"":He(s)?String(s):s)}function Gn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?li(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=ar(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function lt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const qn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[qn]||(e[qn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=_l(t);if(n){const p=i[t]=Cl(n,r);lt(e,l,p,a)}else o&&(xl(e,l,o,a),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dt(e.slice(2)),t]}let Vs=0;const wl=Promise.resolve(),Sl=()=>Vs||(wl.then(()=>Vs=0),Vs=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ke(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if($(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?vl(e,s,n):hs(t)?gs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Al(e,t,n,o))?(Gn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Ol(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ne(n)))?Gn(e,Pe(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Jn(e,t,n,o))};function Al(e,t,s,n){if(n)return!!(t==="inLine truncated
|
**/let Ys;const Ln=typeof window<"u"&&window.trustedTypes;if(Ln)try{Ys=Ln.createPolicy("vue",{createHTML:e=>e})}catch{}const li=Ys?e=>Ys.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",al="http://www.w3.org/1998/Math/MathML",We=typeof document<"u"?document:null,Hn=We&&We.createElement("template"),ul={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?We.createElementNS(cl,e):t==="mathml"?We.createElementNS(al,e):s?We.createElement(e,{is:s}):We.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>We.createTextNode(e),createComment:e=>We.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>We.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=li(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},fl=Symbol("_vtc");function dl(e,t,s){const n=e[fl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function vl(e,t,s){const n=e.style,r=ne(s);let i=!1;if(s&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&kt(n,l,"")}else for(const o in t)s[o]==null&&kt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!ne(t)&&t?t[o]:void 0,l)||kt(n,o,l):kt(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function kt(e,t,s){if($(s))s.forEach(n=>kt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ml(e,t);Un.test(s)?e.setProperty(dt(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],Ns={};function ml(e,t){const s=Ns[t];if(s)return s;let n=Pe(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return Ns[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ne(n)&&s===n}const zn="http://www.w3.org/1999/xlink";function Jn(e,t,s,n,r,i=xi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(zn,t.slice(6,t.length)):e.setAttributeNS(zn,t,s):s==null||i&&!ar(s)?e.removeAttribute(t):e.setAttribute(t,i?"":He(s)?String(s):s)}function Gn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?li(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=ar(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function lt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const qn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[qn]||(e[qn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=_l(t);if(n){const p=i[t]=Cl(n,r);lt(e,l,p,a)}else o&&(xl(e,l,o,a),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dt(e.slice(2)),t]}let Vs=0;const wl=Promise.resolve(),Sl=()=>Vs||(wl.then(()=>Vs=0),Vs=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ke(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if($(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?vl(e,s,n):hs(t)?gs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Al(e,t,n,o))?(Gn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Ol(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ne(n)))?Gn(e,Pe(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Jn(e,t,n,o))};function Al(e,t,s,n){if(n)return!!(t==="inLine truncated
|
||||||
<style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-084bc698]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-084bc698]:hover{background:var(--card-border)}.btn-sm[data-v-084bc698]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-084bc698]:hover{background:var(--card-border)}.color-swatch[data-v-084bc698]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-084bc698]:hover{border-color:var(--accent)}.color-swatch .del[data-v-084bc698]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-084bc698]{display:block}.btn[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-bb86a692]:hover{background:var(--card-border)}.btn-sm[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-bb86a692]:hover{background:var(--card-border)}.city-picker[data-v-1a50093a]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-1a50093a]:focus,.city-picker.open[data-v-1a50093a]{border-color:var(--input-border-focus)}.city-panel[data-v-1a50093a]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-1a50093a]{display:flex}.city-col[data-v-1a50093a]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-1a50093a]:last-child{border-right:none}.city-col div[data-v-1a50093a]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-1a50093a]:hover{background:var(--input-bg)}.city-col div.active[data-v-1a50093a]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated
|
<style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-ca908ae8]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-ca908ae8]:hover{background:var(--card-border)}.btn-sm[data-v-ca908ae8]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-ca908ae8]:hover{background:var(--card-border)}.color-swatch[data-v-ca908ae8]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-ca908ae8]:hover{border-color:var(--accent)}.color-swatch .del[data-v-ca908ae8]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-ca908ae8]{display:block}.btn[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-bb86a692]:hover{background:var(--card-border)}.btn-sm[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-bb86a692]:hover{background:var(--card-border)}.city-picker[data-v-1a50093a]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-1a50093a]:focus,.city-picker.open[data-v-1a50093a]{border-color:var(--input-border-focus)}.city-panel[data-v-1a50093a]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-1a50093a]{display:flex}.city-col[data-v-1a50093a]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-1a50093a]:last-child{border-right:none}.city-col div[data-v-1a50093a]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-1a50093a]:hover{background:var(--input-bg)}.city-col div.active[data-v-1a50093a]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
Reference in new issue
Block a user