support external skill sources (#981)

This commit is contained in:
ekko
2026-05-24 19:47:52 +08:00
committed by GitHub
parent 6763721545
commit 4176923bac
16 changed files with 261 additions and 29 deletions
@@ -139,6 +139,9 @@ function handlePinToggled(name: string, pinned: boolean) {
<button class="legend-item" :class="{ active: sourceFilter === 'local' }" @click="toggleFilter('local')">
<span class="legend-dot dot-local" />{{ t('skills.source.local') }}
</button>
<button class="legend-item" :class="{ active: sourceFilter === 'external' }" @click="toggleFilter('external')">
<span class="legend-dot dot-external" />{{ t('skills.source.external') }}
</button>
<button class="legend-item" :class="{ active: sourceFilter === 'modified' }" @click="toggleFilter('modified')">
<span class="modified-icon"></span>{{ t('skills.modified') }}
</button>
@@ -250,6 +253,7 @@ function handlePinToggled(name: string, pinned: boolean) {
.legend-dot.dot-builtin { background: #888; }
.legend-dot.dot-hub { background: #4a90d9; }
.legend-dot.dot-local { background: #66bb6a; }
.legend-dot.dot-external { background: #f59e0b; }
.modified-icon {
font-size: 11px;