Files
qiqi e017f8733f
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 26s
site: 更换站点 logo 与 favicon(官网/首页/下载/插件/开发页)
2026-11-23 07:11:26 +08:00

48 lines
2.6 KiB
HTML

<!doctype html>
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>插件市场 · Image Workbench</title>
<link rel="icon" href="/assets/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/assets/logo.png">
<link rel="stylesheet" href="/assets/style.css">
</head><body>
<!--NAV-->
<main>
<section class="hero" style="padding:64px 0 8px;text-align:left"><div class="wrap">
<h1 style="font-size:40px;margin:0">插件市场</h1>
<p class="sub" style="margin:14px 0 0;text-align:left;max-width:720px">共 <!--PLUGIN_COUNT--> 个插件。安装方式:应用内 <b>设置 → 插件 → 浏览</b>,点「安装」后重启生效。</p>
</div></section>
<section class="section" style="border-top:0;padding-top:24px"><div class="wrap">
<div style="display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px" id="chips">
<button class="tag on" data-tag="" style="cursor:pointer;background:#111;color:#fff;border-color:#111;padding:5px 12px">全部</button>
<!--TAG_CHIPS-->
</div>
<input id="q" placeholder="搜索插件,例如:出图、抠图、矢量…" style="width:100%;max-width:420px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;font-size:14px;outline:none;margin-bottom:22px">
<div class="grid c3" id="list">
<!--PLUGIN_CARDS-->
</div>
<div class="note" style="margin-top:26px">插件安装后会写进你的资料目录 <code>~/Documents/ImageWorkbench/plugins/</code>;卸载只删插件文件,不动画布与图库。</div>
</div></section>
</main>
<!--FOOTER-->
<script>
var q = document.getElementById('q'), list = document.getElementById('list'), chips = document.getElementById('chips'), activeTag = ''
function apply () {
var kw = (q.value || '').trim().toLowerCase()
Array.prototype.forEach.call(list.children, function (el) {
var okKw = !kw || el.dataset.name.indexOf(kw) >= 0
var okTag = !activeTag || (',' + el.dataset.tags + ',').indexOf(',' + activeTag + ',') >= 0
var ok = okKw && okTag
el.style.display = ok ? '' : 'none'
})
}
q.addEventListener('input', apply)
chips.addEventListener('click', function (e) {
var b = e.target.closest('button[data-tag]'); if (!b) return
Array.prototype.forEach.call(chips.children, function (x) { x.style.background = ''; x.style.color = ''; x.style.borderColor = 'transparent' })
b.style.background = '#111'; b.style.color = '#fff'; b.style.borderColor = '#111'
activeTag = b.dataset.tag || ''
apply()
})
</script>
</body></html>