@aini_ai_cody/icons 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/dist/cody-icons.json +5 -0
- package/dist/cody-icons.svg +1 -0
- package/dist/codyicon.css +713 -0
- package/dist/codyicon.csv +531 -0
- package/dist/codyicon.html +10904 -0
- package/dist/codyicon.svg +1 -0
- package/dist/codyicon.ttf +0 -0
- package/dist/codyiconsLibrary.ts +635 -0
- package/{src/template → dist}/mapping.json +4 -1
- package/{src/template → dist}/metadata.json +27 -1
- package/package.json +26 -2
- package/.devcontainer/Dockerfile +0 -17
- package/.devcontainer/devcontainer.json +0 -18
- package/.fantasticonrc.js +0 -43
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -31
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/icon-request.md +0 -20
- package/.github/workflows/build.yml +0 -32
- package/.github/workflows/codeql-analysis.yml +0 -71
- package/.github/workflows/gh-pages.yml +0 -61
- package/.github/workflows/release.yml +0 -65
- package/.husky/pre-commit +0 -1
- package/.vscode/settings.json +0 -6
- package/.vscode/tasks.json +0 -19
- package/_iconCloud/categories.csv +0 -517
- package/_iconCloud/categories.transforms.json +0 -92
- package/_iconCloud/categories.variables.json +0 -48
- package/_iconCloud/descriptions.csv +0 -517
- package/_iconCloud/descriptions.transforms.json +0 -83
- package/_iconCloud/descriptions.variables.json +0 -47
- package/_iconCloud/keywords.csv +0 -517
- package/_iconCloud/keywords.transforms.json +0 -92
- package/_iconCloud/keywords.variables.json +0 -48
- package/_iconCloud/manifest.json +0 -57
- package/_iconCloud/manifest.transforms.json +0 -368
- package/_iconCloud/manifest.variables.json +0 -149
- package/_iconCloud/metaphors.csv +0 -517
- package/_iconCloud/metaphors.transforms.json +0 -92
- package/_iconCloud/metaphors.variables.json +0 -48
- package/build/pipeline.yml +0 -36
- package/command.txt +0 -0
- package/publish.sh +0 -133
- package/scripts/check-metadata.js +0 -149
- package/scripts/embed-metadata.js +0 -45
- package/scripts/export-to-csv.js +0 -60
- package/scripts/export-to-ts.js +0 -63
- package/scripts/merge-cody.js +0 -92
- package/scripts/reset.js +0 -10
- package/scripts/svg-sprite.js +0 -189
- package/scripts/version-bump.js +0 -166
- package/src/icons/account.svg +0 -1
- package/src/icons/activate-breakpoints.svg +0 -1
- package/src/icons/add-small.svg +0 -1
- package/src/icons/add.svg +0 -1
- package/src/icons/agent.svg +0 -1
- package/src/icons/archive.svg +0 -1
- package/src/icons/arrow-both.svg +0 -1
- package/src/icons/arrow-circle-down.svg +0 -1
- package/src/icons/arrow-circle-left.svg +0 -1
- package/src/icons/arrow-circle-right.svg +0 -1
- package/src/icons/arrow-circle-up.svg +0 -1
- package/src/icons/arrow-down.svg +0 -1
- package/src/icons/arrow-left.svg +0 -1
- package/src/icons/arrow-right.svg +0 -1
- package/src/icons/arrow-small-down.svg +0 -1
- package/src/icons/arrow-small-left.svg +0 -1
- package/src/icons/arrow-small-right.svg +0 -1
- package/src/icons/arrow-small-up.svg +0 -1
- package/src/icons/arrow-swap.svg +0 -1
- package/src/icons/arrow-up.svg +0 -1
- package/src/icons/attach.svg +0 -1
- package/src/icons/azure-devops.svg +0 -1
- package/src/icons/azure.svg +0 -1
- package/src/icons/beaker-stop.svg +0 -1
- package/src/icons/beaker.svg +0 -1
- package/src/icons/bell-dot.svg +0 -1
- package/src/icons/bell-slash-dot.svg +0 -1
- package/src/icons/bell-slash.svg +0 -1
- package/src/icons/bell.svg +0 -1
- package/src/icons/blank.svg +0 -1
- package/src/icons/bold.svg +0 -1
- package/src/icons/book.svg +0 -1
- package/src/icons/bookmark.svg +0 -1
- package/src/icons/bracket-dot.svg +0 -1
- package/src/icons/bracket-error.svg +0 -1
- package/src/icons/briefcase.svg +0 -1
- package/src/icons/broadcast.svg +0 -1
- package/src/icons/browser.svg +0 -1
- package/src/icons/bug.svg +0 -1
- package/src/icons/build.svg +0 -1
- package/src/icons/calendar.svg +0 -1
- package/src/icons/call-incoming.svg +0 -1
- package/src/icons/call-outgoing.svg +0 -1
- package/src/icons/case-sensitive.svg +0 -1
- package/src/icons/chat-sparkle-error.svg +0 -1
- package/src/icons/chat-sparkle-warning.svg +0 -1
- package/src/icons/chat-sparkle.svg +0 -1
- package/src/icons/check-all.svg +0 -1
- package/src/icons/check.svg +0 -1
- package/src/icons/checklist.svg +0 -1
- package/src/icons/chevron-down.svg +0 -1
- package/src/icons/chevron-left.svg +0 -1
- package/src/icons/chevron-right.svg +0 -1
- package/src/icons/chevron-up.svg +0 -1
- package/src/icons/chip.svg +0 -1
- package/src/icons/chrome-close.svg +0 -1
- package/src/icons/chrome-maximize.svg +0 -1
- package/src/icons/chrome-minimize.svg +0 -1
- package/src/icons/chrome-restore.svg +0 -1
- package/src/icons/circle-filled.svg +0 -1
- package/src/icons/circle-large-filled.svg +0 -1
- package/src/icons/circle-large.svg +0 -1
- package/src/icons/circle-slash.svg +0 -1
- package/src/icons/circle-small-filled.svg +0 -1
- package/src/icons/circle-small.svg +0 -1
- package/src/icons/circle.svg +0 -1
- package/src/icons/circuit-board.svg +0 -1
- package/src/icons/clear-all.svg +0 -1
- package/src/icons/clippy.svg +0 -1
- package/src/icons/clockface.svg +0 -1
- package/src/icons/close-all.svg +0 -1
- package/src/icons/close.svg +0 -1
- package/src/icons/cloud-download.svg +0 -1
- package/src/icons/cloud-small.svg +0 -1
- package/src/icons/cloud-upload.svg +0 -1
- package/src/icons/cloud.svg +0 -1
- package/src/icons/code-oss.svg +0 -1
- package/src/icons/code-review.svg +0 -1
- package/src/icons/code.svg +0 -1
- package/src/icons/cody-sample.svg +0 -1
- package/src/icons/coffee.svg +0 -1
- package/src/icons/collapse-all.svg +0 -1
- package/src/icons/collection-small.svg +0 -1
- package/src/icons/collection.svg +0 -1
- package/src/icons/color-mode.svg +0 -1
- package/src/icons/combine.svg +0 -1
- package/src/icons/comment-discussion-quote.svg +0 -1
- package/src/icons/comment-discussion-sparkle.svg +0 -1
- package/src/icons/comment-discussion.svg +0 -1
- package/src/icons/comment-draft.svg +0 -1
- package/src/icons/comment-unresolved.svg +0 -1
- package/src/icons/comment.svg +0 -1
- package/src/icons/compass-active.svg +0 -1
- package/src/icons/compass-dot.svg +0 -1
- package/src/icons/compass.svg +0 -1
- package/src/icons/copilot-blocked.svg +0 -1
- package/src/icons/copilot-error.svg +0 -1
- package/src/icons/copilot-in-progress.svg +0 -1
- package/src/icons/copilot-large.svg +0 -1
- package/src/icons/copilot-not-connected.svg +0 -1
- package/src/icons/copilot-snooze.svg +0 -1
- package/src/icons/copilot-success.svg +0 -1
- package/src/icons/copilot-unavailable.svg +0 -1
- package/src/icons/copilot-warning-large.svg +0 -1
- package/src/icons/copilot-warning.svg +0 -1
- package/src/icons/copilot.svg +0 -1
- package/src/icons/copy.svg +0 -1
- package/src/icons/coverage.svg +0 -1
- package/src/icons/credit-card.svg +0 -1
- package/src/icons/cursor.svg +0 -1
- package/src/icons/dash.svg +0 -1
- package/src/icons/dashboard.svg +0 -1
- package/src/icons/database.svg +0 -1
- package/src/icons/debug-all.svg +0 -1
- package/src/icons/debug-alt-small.svg +0 -1
- package/src/icons/debug-alt.svg +0 -1
- package/src/icons/debug-breakpoint-conditional-unverified.svg +0 -1
- package/src/icons/debug-breakpoint-conditional.svg +0 -1
- package/src/icons/debug-breakpoint-data-unverified.svg +0 -1
- package/src/icons/debug-breakpoint-data.svg +0 -1
- package/src/icons/debug-breakpoint-function-unverified.svg +0 -1
- package/src/icons/debug-breakpoint-function.svg +0 -1
- package/src/icons/debug-breakpoint-log-unverified.svg +0 -1
- package/src/icons/debug-breakpoint-log.svg +0 -1
- package/src/icons/debug-breakpoint-unsupported.svg +0 -1
- package/src/icons/debug-connected.svg +0 -1
- package/src/icons/debug-console.svg +0 -1
- package/src/icons/debug-continue-small.svg +0 -1
- package/src/icons/debug-continue.svg +0 -1
- package/src/icons/debug-coverage.svg +0 -1
- package/src/icons/debug-disconnect.svg +0 -1
- package/src/icons/debug-line-by-line.svg +0 -1
- package/src/icons/debug-pause.svg +0 -1
- package/src/icons/debug-rerun.svg +0 -1
- package/src/icons/debug-restart-frame.svg +0 -1
- package/src/icons/debug-restart.svg +0 -1
- package/src/icons/debug-reverse-continue.svg +0 -1
- package/src/icons/debug-stackframe-active.svg +0 -1
- package/src/icons/debug-stackframe.svg +0 -1
- package/src/icons/debug-start.svg +0 -1
- package/src/icons/debug-step-back.svg +0 -1
- package/src/icons/debug-step-into.svg +0 -1
- package/src/icons/debug-step-out.svg +0 -1
- package/src/icons/debug-step-over.svg +0 -1
- package/src/icons/debug-stop.svg +0 -1
- package/src/icons/debug.svg +0 -1
- package/src/icons/desktop-download.svg +0 -1
- package/src/icons/device-camera-video.svg +0 -1
- package/src/icons/device-camera.svg +0 -1
- package/src/icons/device-mobile.svg +0 -1
- package/src/icons/diff-added.svg +0 -1
- package/src/icons/diff-ignored.svg +0 -1
- package/src/icons/diff-modified.svg +0 -1
- package/src/icons/diff-multiple.svg +0 -1
- package/src/icons/diff-removed.svg +0 -1
- package/src/icons/diff-renamed.svg +0 -1
- package/src/icons/diff-single.svg +0 -1
- package/src/icons/diff.svg +0 -1
- package/src/icons/discard.svg +0 -1
- package/src/icons/download.svg +0 -1
- package/src/icons/edit-code.svg +0 -1
- package/src/icons/edit-session.svg +0 -1
- package/src/icons/edit-sparkle.svg +0 -1
- package/src/icons/edit.svg +0 -1
- package/src/icons/editor-layout.svg +0 -1
- package/src/icons/ellipsis.svg +0 -1
- package/src/icons/empty-window.svg +0 -1
- package/src/icons/eraser.svg +0 -1
- package/src/icons/error-small.svg +0 -1
- package/src/icons/error.svg +0 -1
- package/src/icons/exclude.svg +0 -1
- package/src/icons/expand-all.svg +0 -1
- package/src/icons/export.svg +0 -1
- package/src/icons/extensions-large.svg +0 -1
- package/src/icons/extensions.svg +0 -1
- package/src/icons/eye-closed.svg +0 -1
- package/src/icons/eye.svg +0 -1
- package/src/icons/feedback.svg +0 -1
- package/src/icons/file-binary.svg +0 -1
- package/src/icons/file-code.svg +0 -1
- package/src/icons/file-media.svg +0 -1
- package/src/icons/file-pdf.svg +0 -1
- package/src/icons/file-submodule.svg +0 -1
- package/src/icons/file-symlink-directory.svg +0 -1
- package/src/icons/file-symlink-file.svg +0 -1
- package/src/icons/file-text.svg +0 -1
- package/src/icons/file-zip.svg +0 -1
- package/src/icons/file.svg +0 -1
- package/src/icons/files.svg +0 -1
- package/src/icons/filter-filled.svg +0 -1
- package/src/icons/filter.svg +0 -1
- package/src/icons/flag.svg +0 -1
- package/src/icons/flame.svg +0 -1
- package/src/icons/fold-down.svg +0 -1
- package/src/icons/fold-up.svg +0 -1
- package/src/icons/fold.svg +0 -1
- package/src/icons/folder-active.svg +0 -1
- package/src/icons/folder-library.svg +0 -1
- package/src/icons/folder-opened.svg +0 -1
- package/src/icons/folder.svg +0 -1
- package/src/icons/forward.svg +0 -1
- package/src/icons/game.svg +0 -1
- package/src/icons/gear.svg +0 -1
- package/src/icons/gift.svg +0 -1
- package/src/icons/gist-secret.svg +0 -1
- package/src/icons/gist.svg +0 -1
- package/src/icons/git-branch-changes.svg +0 -1
- package/src/icons/git-branch-conflicts.svg +0 -1
- package/src/icons/git-branch-staged-changes.svg +0 -1
- package/src/icons/git-branch.svg +0 -1
- package/src/icons/git-commit.svg +0 -1
- package/src/icons/git-compare.svg +0 -1
- package/src/icons/git-fetch.svg +0 -1
- package/src/icons/git-merge.svg +0 -1
- package/src/icons/git-pull-request-closed.svg +0 -1
- package/src/icons/git-pull-request-create.svg +0 -1
- package/src/icons/git-pull-request-done.svg +0 -1
- package/src/icons/git-pull-request-draft.svg +0 -1
- package/src/icons/git-pull-request-go-to-changes.svg +0 -1
- package/src/icons/git-pull-request-new-changes.svg +0 -1
- package/src/icons/git-pull-request.svg +0 -1
- package/src/icons/git-stash-apply.svg +0 -1
- package/src/icons/git-stash-pop.svg +0 -1
- package/src/icons/git-stash.svg +0 -1
- package/src/icons/github-action.svg +0 -1
- package/src/icons/github-alt.svg +0 -1
- package/src/icons/github-inverted.svg +0 -1
- package/src/icons/github-project.svg +0 -1
- package/src/icons/github.svg +0 -1
- package/src/icons/globe.svg +0 -1
- package/src/icons/go-to-editing-session.svg +0 -1
- package/src/icons/go-to-file.svg +0 -1
- package/src/icons/go-to-search.svg +0 -1
- package/src/icons/grabber.svg +0 -1
- package/src/icons/graph-left.svg +0 -1
- package/src/icons/graph-line.svg +0 -1
- package/src/icons/graph-scatter.svg +0 -1
- package/src/icons/graph.svg +0 -1
- package/src/icons/gripper.svg +0 -1
- package/src/icons/group-by-ref-type.svg +0 -1
- package/src/icons/heart-filled.svg +0 -1
- package/src/icons/heart.svg +0 -1
- package/src/icons/history.svg +0 -1
- package/src/icons/home.svg +0 -1
- package/src/icons/horizontal-rule.svg +0 -1
- package/src/icons/hubot.svg +0 -1
- package/src/icons/inbox.svg +0 -1
- package/src/icons/indent.svg +0 -1
- package/src/icons/index-zero.svg +0 -1
- package/src/icons/info.svg +0 -1
- package/src/icons/insert.svg +0 -1
- package/src/icons/inspect.svg +0 -1
- package/src/icons/issue-draft.svg +0 -1
- package/src/icons/issue-reopened.svg +0 -1
- package/src/icons/issues.svg +0 -1
- package/src/icons/italic.svg +0 -1
- package/src/icons/jersey.svg +0 -1
- package/src/icons/json.svg +0 -1
- package/src/icons/kebab-vertical.svg +0 -1
- package/src/icons/key.svg +0 -1
- package/src/icons/keyboard-tab-above.svg +0 -1
- package/src/icons/keyboard-tab-below.svg +0 -1
- package/src/icons/keyboard-tab.svg +0 -1
- package/src/icons/law.svg +0 -1
- package/src/icons/layers-active.svg +0 -1
- package/src/icons/layers-dot.svg +0 -1
- package/src/icons/layers.svg +0 -1
- package/src/icons/layout-activitybar-left.svg +0 -1
- package/src/icons/layout-activitybar-right.svg +0 -1
- package/src/icons/layout-centered.svg +0 -1
- package/src/icons/layout-menubar.svg +0 -1
- package/src/icons/layout-panel-center.svg +0 -1
- package/src/icons/layout-panel-dock.svg +0 -1
- package/src/icons/layout-panel-justify.svg +0 -1
- package/src/icons/layout-panel-left.svg +0 -1
- package/src/icons/layout-panel-off.svg +0 -1
- package/src/icons/layout-panel-right.svg +0 -1
- package/src/icons/layout-panel.svg +0 -1
- package/src/icons/layout-sidebar-left-dock.svg +0 -1
- package/src/icons/layout-sidebar-left-off.svg +0 -1
- package/src/icons/layout-sidebar-left.svg +0 -1
- package/src/icons/layout-sidebar-right-dock.svg +0 -1
- package/src/icons/layout-sidebar-right-off.svg +0 -1
- package/src/icons/layout-sidebar-right.svg +0 -1
- package/src/icons/layout-statusbar.svg +0 -1
- package/src/icons/layout.svg +0 -1
- package/src/icons/library.svg +0 -1
- package/src/icons/lightbulb-autofix.svg +0 -1
- package/src/icons/lightbulb-empty.svg +0 -1
- package/src/icons/lightbulb-sparkle.svg +0 -1
- package/src/icons/lightbulb.svg +0 -1
- package/src/icons/link-external.svg +0 -1
- package/src/icons/link.svg +0 -1
- package/src/icons/list-filter.svg +0 -1
- package/src/icons/list-flat.svg +0 -1
- package/src/icons/list-ordered.svg +0 -1
- package/src/icons/list-selection.svg +0 -1
- package/src/icons/list-tree.svg +0 -1
- package/src/icons/list-unordered.svg +0 -1
- package/src/icons/live-share.svg +0 -1
- package/src/icons/loading.svg +0 -1
- package/src/icons/location.svg +0 -1
- package/src/icons/lock-small.svg +0 -1
- package/src/icons/lock.svg +0 -1
- package/src/icons/magnet.svg +0 -1
- package/src/icons/mail-read.svg +0 -1
- package/src/icons/mail.svg +0 -1
- package/src/icons/map-filled.svg +0 -1
- package/src/icons/map-vertical-filled.svg +0 -1
- package/src/icons/map-vertical.svg +0 -1
- package/src/icons/map.svg +0 -1
- package/src/icons/markdown.svg +0 -1
- package/src/icons/mcp.svg +0 -1
- package/src/icons/megaphone.svg +0 -1
- package/src/icons/mention.svg +0 -1
- package/src/icons/menu.svg +0 -1
- package/src/icons/merge-into.svg +0 -1
- package/src/icons/merge.svg +0 -1
- package/src/icons/mic-filled.svg +0 -1
- package/src/icons/mic.svg +0 -1
- package/src/icons/milestone.svg +0 -1
- package/src/icons/mirror.svg +0 -1
- package/src/icons/mortar-board.svg +0 -1
- package/src/icons/move.svg +0 -1
- package/src/icons/multiple-windows.svg +0 -1
- package/src/icons/music.svg +0 -1
- package/src/icons/mute.svg +0 -1
- package/src/icons/new-collection.svg +0 -1
- package/src/icons/new-file.svg +0 -1
- package/src/icons/new-folder.svg +0 -1
- package/src/icons/newline.svg +0 -1
- package/src/icons/no-newline.svg +0 -1
- package/src/icons/note.svg +0 -1
- package/src/icons/notebook-template.svg +0 -1
- package/src/icons/notebook.svg +0 -1
- package/src/icons/octoface.svg +0 -1
- package/src/icons/open-in-product.svg +0 -1
- package/src/icons/open-preview.svg +0 -1
- package/src/icons/organization.svg +0 -1
- package/src/icons/output.svg +0 -1
- package/src/icons/package.svg +0 -1
- package/src/icons/paintcan.svg +0 -1
- package/src/icons/pass-filled.svg +0 -1
- package/src/icons/pass.svg +0 -1
- package/src/icons/percentage.svg +0 -1
- package/src/icons/person-add.svg +0 -1
- package/src/icons/person.svg +0 -1
- package/src/icons/piano.svg +0 -1
- package/src/icons/pie-chart.svg +0 -1
- package/src/icons/pin.svg +0 -1
- package/src/icons/pinned-dirty.svg +0 -1
- package/src/icons/pinned.svg +0 -1
- package/src/icons/play-circle.svg +0 -1
- package/src/icons/play.svg +0 -1
- package/src/icons/plug.svg +0 -1
- package/src/icons/preserve-case.svg +0 -1
- package/src/icons/preview.svg +0 -1
- package/src/icons/primitive-square.svg +0 -1
- package/src/icons/project.svg +0 -1
- package/src/icons/pulse.svg +0 -1
- package/src/icons/python.svg +0 -1
- package/src/icons/question.svg +0 -1
- package/src/icons/quote.svg +0 -1
- package/src/icons/quotes.svg +0 -1
- package/src/icons/radio-tower.svg +0 -1
- package/src/icons/reactions.svg +0 -1
- package/src/icons/record-keys.svg +0 -1
- package/src/icons/record-small.svg +0 -1
- package/src/icons/record.svg +0 -1
- package/src/icons/redo.svg +0 -1
- package/src/icons/references.svg +0 -1
- package/src/icons/refresh.svg +0 -1
- package/src/icons/regex.svg +0 -1
- package/src/icons/remote-explorer.svg +0 -1
- package/src/icons/remote.svg +0 -1
- package/src/icons/remove-small.svg +0 -1
- package/src/icons/remove.svg +0 -1
- package/src/icons/rename.svg +0 -1
- package/src/icons/replace-all.svg +0 -1
- package/src/icons/replace.svg +0 -1
- package/src/icons/reply.svg +0 -1
- package/src/icons/repo-clone.svg +0 -1
- package/src/icons/repo-fetch.svg +0 -1
- package/src/icons/repo-force-push.svg +0 -1
- package/src/icons/repo-forked.svg +0 -1
- package/src/icons/repo-pinned.svg +0 -1
- package/src/icons/repo-pull.svg +0 -1
- package/src/icons/repo-push.svg +0 -1
- package/src/icons/repo-selected.svg +0 -1
- package/src/icons/repo.svg +0 -1
- package/src/icons/report.svg +0 -1
- package/src/icons/request-changes.svg +0 -1
- package/src/icons/robot.svg +0 -1
- package/src/icons/rocket.svg +0 -1
- package/src/icons/root-folder-opened.svg +0 -1
- package/src/icons/root-folder.svg +0 -1
- package/src/icons/rss.svg +0 -1
- package/src/icons/ruby.svg +0 -1
- package/src/icons/run-above.svg +0 -1
- package/src/icons/run-all-coverage.svg +0 -1
- package/src/icons/run-all.svg +0 -1
- package/src/icons/run-below.svg +0 -1
- package/src/icons/run-coverage.svg +0 -1
- package/src/icons/run-errors.svg +0 -1
- package/src/icons/run-with-deps.svg +0 -1
- package/src/icons/save-all.svg +0 -1
- package/src/icons/save-as.svg +0 -1
- package/src/icons/save.svg +0 -1
- package/src/icons/screen-full.svg +0 -1
- package/src/icons/screen-normal.svg +0 -1
- package/src/icons/search-fuzzy.svg +0 -1
- package/src/icons/search-large.svg +0 -1
- package/src/icons/search-sparkle.svg +0 -1
- package/src/icons/search-stop.svg +0 -1
- package/src/icons/search.svg +0 -1
- package/src/icons/send-to-remote-agent.svg +0 -1
- package/src/icons/send.svg +0 -1
- package/src/icons/server-environment.svg +0 -1
- package/src/icons/server-process.svg +0 -1
- package/src/icons/server.svg +0 -1
- package/src/icons/session-in-progress.svg +0 -1
- package/src/icons/settings-gear.svg +0 -1
- package/src/icons/settings.svg +0 -1
- package/src/icons/share.svg +0 -1
- package/src/icons/shield.svg +0 -1
- package/src/icons/sign-in.svg +0 -1
- package/src/icons/sign-out.svg +0 -1
- package/src/icons/skip.svg +0 -1
- package/src/icons/smiley.svg +0 -1
- package/src/icons/snake.svg +0 -1
- package/src/icons/sort-precedence.svg +0 -1
- package/src/icons/source-control.svg +0 -1
- package/src/icons/sparkle-filled.svg +0 -1
- package/src/icons/sparkle.svg +0 -1
- package/src/icons/split-horizontal.svg +0 -1
- package/src/icons/split-vertical.svg +0 -1
- package/src/icons/squirrel.svg +0 -1
- package/src/icons/star-empty.svg +0 -1
- package/src/icons/star-full.svg +0 -1
- package/src/icons/star-half.svg +0 -1
- package/src/icons/stop-circle.svg +0 -1
- package/src/icons/strikethrough.svg +0 -1
- package/src/icons/surround-with.svg +0 -1
- package/src/icons/symbol-array.svg +0 -1
- package/src/icons/symbol-boolean.svg +0 -1
- package/src/icons/symbol-class.svg +0 -1
- package/src/icons/symbol-color.svg +0 -1
- package/src/icons/symbol-constant.svg +0 -1
- package/src/icons/symbol-enum-member.svg +0 -1
- package/src/icons/symbol-enum.svg +0 -1
- package/src/icons/symbol-event.svg +0 -1
- package/src/icons/symbol-field.svg +0 -1
- package/src/icons/symbol-file.svg +0 -1
- package/src/icons/symbol-interface.svg +0 -1
- package/src/icons/symbol-key.svg +0 -1
- package/src/icons/symbol-keyword.svg +0 -1
- package/src/icons/symbol-method-arrow.svg +0 -1
- package/src/icons/symbol-method.svg +0 -1
- package/src/icons/symbol-misc.svg +0 -1
- package/src/icons/symbol-namespace.svg +0 -1
- package/src/icons/symbol-numeric.svg +0 -1
- package/src/icons/symbol-operator.svg +0 -1
- package/src/icons/symbol-parameter.svg +0 -1
- package/src/icons/symbol-property.svg +0 -1
- package/src/icons/symbol-ruler.svg +0 -1
- package/src/icons/symbol-snippet.svg +0 -1
- package/src/icons/symbol-string.svg +0 -1
- package/src/icons/symbol-structure.svg +0 -1
- package/src/icons/symbol-variable.svg +0 -1
- package/src/icons/sync-ignored.svg +0 -1
- package/src/icons/sync.svg +0 -1
- package/src/icons/table.svg +0 -1
- package/src/icons/tag.svg +0 -1
- package/src/icons/target.svg +0 -1
- package/src/icons/tasklist.svg +0 -1
- package/src/icons/telescope.svg +0 -1
- package/src/icons/terminal-bash.svg +0 -1
- package/src/icons/terminal-cmd.svg +0 -1
- package/src/icons/terminal-debian.svg +0 -1
- package/src/icons/terminal-git-bash.svg +0 -1
- package/src/icons/terminal-linux.svg +0 -1
- package/src/icons/terminal-powershell.svg +0 -1
- package/src/icons/terminal-tmux.svg +0 -1
- package/src/icons/terminal-ubuntu.svg +0 -1
- package/src/icons/terminal.svg +0 -1
- package/src/icons/text-size.svg +0 -1
- package/src/icons/thinking.svg +0 -1
- package/src/icons/three-bars.svg +0 -1
- package/src/icons/thumbsdown-filled.svg +0 -1
- package/src/icons/thumbsdown.svg +0 -1
- package/src/icons/thumbsup-filled.svg +0 -1
- package/src/icons/thumbsup.svg +0 -1
- package/src/icons/tools.svg +0 -1
- package/src/icons/trash.svg +0 -1
- package/src/icons/triangle-down.svg +0 -1
- package/src/icons/triangle-left.svg +0 -1
- package/src/icons/triangle-right.svg +0 -1
- package/src/icons/triangle-up.svg +0 -1
- package/src/icons/twitter.svg +0 -1
- package/src/icons/type-hierarchy-sub.svg +0 -1
- package/src/icons/type-hierarchy-super.svg +0 -1
- package/src/icons/type-hierarchy.svg +0 -1
- package/src/icons/unarchive.svg +0 -1
- package/src/icons/unfold.svg +0 -1
- package/src/icons/ungroup-by-ref-type.svg +0 -1
- package/src/icons/unlock.svg +0 -1
- package/src/icons/unmute.svg +0 -1
- package/src/icons/unverified.svg +0 -1
- package/src/icons/variable-group.svg +0 -1
- package/src/icons/verified-filled.svg +0 -1
- package/src/icons/verified.svg +0 -1
- package/src/icons/versions.svg +0 -1
- package/src/icons/vm-active.svg +0 -1
- package/src/icons/vm-connect.svg +0 -1
- package/src/icons/vm-outline.svg +0 -1
- package/src/icons/vm-pending.svg +0 -1
- package/src/icons/vm-running.svg +0 -1
- package/src/icons/vm-small.svg +0 -1
- package/src/icons/vm.svg +0 -1
- package/src/icons/vr.svg +0 -1
- package/src/icons/vscode-insiders.svg +0 -1
- package/src/icons/vscode.svg +0 -1
- package/src/icons/wand.svg +0 -1
- package/src/icons/warning.svg +0 -1
- package/src/icons/watch.svg +0 -1
- package/src/icons/whitespace.svg +0 -1
- package/src/icons/whole-word.svg +0 -1
- package/src/icons/window-active.svg +0 -1
- package/src/icons/window.svg +0 -1
- package/src/icons/word-wrap.svg +0 -1
- package/src/icons/workspace-trusted.svg +0 -1
- package/src/icons/workspace-unknown.svg +0 -1
- package/src/icons/workspace-untrusted.svg +0 -1
- package/src/icons/worktree-small.svg +0 -1
- package/src/icons/worktree.svg +0 -1
- package/src/icons/zoom-in.svg +0 -1
- package/src/icons/zoom-out.svg +0 -1
- package/src/template/cody.json +0 -28
- package/src/template/cody_mapping.json +0 -5
- package/src/template/preview.hbs +0 -833
- package/src/template/styles.hbs +0 -57
- package/svgo.config.js +0 -21
- /package/{src → dist}/cody_icons/cody-new.svg +0 -0
- /package/{src → dist}/cody_icons/cody-sample.svg +0 -0
- /package/{src → dist}/cody_icons/cody-test.svg +0 -0
package/src/template/preview.hbs
DELETED
|
@@ -1,833 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<title>{{ name }} | The icon font for Cody </title>
|
|
7
|
-
|
|
8
|
-
<style type="text/css">
|
|
9
|
-
html {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
font-size: 16px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
*,
|
|
15
|
-
*:before,
|
|
16
|
-
*:after {
|
|
17
|
-
box-sizing: inherit;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
body,
|
|
21
|
-
h1,
|
|
22
|
-
h2,
|
|
23
|
-
h3,
|
|
24
|
-
h4,
|
|
25
|
-
h5,
|
|
26
|
-
h6,
|
|
27
|
-
p,
|
|
28
|
-
ol,
|
|
29
|
-
ul {
|
|
30
|
-
margin: 0;
|
|
31
|
-
padding: 0;
|
|
32
|
-
font-weight: normal;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
ol,
|
|
36
|
-
ul {
|
|
37
|
-
list-style: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
img {
|
|
41
|
-
max-width: 100%;
|
|
42
|
-
height: auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:root {
|
|
46
|
-
--bg-color: #f8f8f8;
|
|
47
|
-
--text-color: #333;
|
|
48
|
-
--text-secondary: #666;
|
|
49
|
-
--card-bg: white;
|
|
50
|
-
--card-shadow: rgba(0, 0, 0, 0.06);
|
|
51
|
-
--card-shadow-hover: rgba(0, 0, 0, 0.24);
|
|
52
|
-
--input-border: rgba(0, 0, 0, .1);
|
|
53
|
-
--notification-bg: #212121;
|
|
54
|
-
--notification-text: white;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[data-theme="dark"] {
|
|
58
|
-
--bg-color: #1e1e1e;
|
|
59
|
-
--text-color: #cccccc;
|
|
60
|
-
--text-secondary: #999;
|
|
61
|
-
--card-bg: #252526;
|
|
62
|
-
--card-shadow: rgba(0, 0, 0, 0.3);
|
|
63
|
-
--card-shadow-hover: rgba(255, 255, 255, 0.1);
|
|
64
|
-
--input-border: rgba(255, 255, 255, .1);
|
|
65
|
-
--notification-bg: #3c3c3c;
|
|
66
|
-
--notification-text: #cccccc;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
body {
|
|
70
|
-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
|
71
|
-
margin: 0;
|
|
72
|
-
padding: 0px 20px 10px 20px;
|
|
73
|
-
text-align: center;
|
|
74
|
-
background-color: var(--bg-color);
|
|
75
|
-
color: var(--text-color);
|
|
76
|
-
transition: background-color 0.3s ease, color 0.3s ease;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
#header {
|
|
80
|
-
position: sticky;
|
|
81
|
-
top: 0;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 20px;
|
|
85
|
-
margin: 0 auto;
|
|
86
|
-
padding: 20px 64px;
|
|
87
|
-
background-color: var(--bg-color);
|
|
88
|
-
z-index: 100;
|
|
89
|
-
transition: background-color 0.3s ease;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
h1 {
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
margin: 0;
|
|
95
|
-
color: var(--text-color);
|
|
96
|
-
white-space: nowrap;
|
|
97
|
-
flex-shrink: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
#theme-toggle {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
gap: 4px;
|
|
104
|
-
padding: 10px 20px;
|
|
105
|
-
background-color: var(--card-bg);
|
|
106
|
-
color: var(--text-color);
|
|
107
|
-
border: 1px solid var(--input-border);
|
|
108
|
-
border-radius: 4px;
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
box-shadow: 0px 0px 12px var(--card-shadow);
|
|
112
|
-
transition: all 0.3s ease;
|
|
113
|
-
flex-shrink: 0;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
#theme-toggle:hover {
|
|
118
|
-
box-shadow: 0px 0px 12px var(--card-shadow-hover);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
#theme-toggle:focus {
|
|
122
|
-
outline: none;
|
|
123
|
-
border-color: #18a0fb;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.icon {
|
|
127
|
-
width: 100px;
|
|
128
|
-
display: inline-block;
|
|
129
|
-
margin: 8px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.icon:hover {
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.icon:hover .inner {
|
|
137
|
-
box-shadow: 0px 0px 12px var(--card-shadow-hover);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.icon .inner {
|
|
141
|
-
display: inline-block;
|
|
142
|
-
width: 100%;
|
|
143
|
-
text-align: center;
|
|
144
|
-
background-color: var(--card-bg);
|
|
145
|
-
box-shadow: 0px 0px 12px var(--card-shadow);
|
|
146
|
-
border-radius: 4px;
|
|
147
|
-
transition: all .3s ease-in-out;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.icon .inner {
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
height: 88px;
|
|
155
|
-
font-size: 56px;
|
|
156
|
-
line-height: 1;
|
|
157
|
-
color: var(--text-color);
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.icon .inner::before {
|
|
162
|
-
overflow: hidden;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.label {
|
|
166
|
-
margin-top: 8px;
|
|
167
|
-
display: inline-block;
|
|
168
|
-
width: 100%;
|
|
169
|
-
box-sizing: border-box;
|
|
170
|
-
padding: 4px;
|
|
171
|
-
font-size: 10px;
|
|
172
|
-
color: var(--text-secondary);
|
|
173
|
-
white-space: nowrap;
|
|
174
|
-
overflow: hidden;
|
|
175
|
-
text-overflow: ellipsis;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.description {
|
|
179
|
-
display: none;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
#search {
|
|
183
|
-
flex: 1;
|
|
184
|
-
font-size: 16px;
|
|
185
|
-
padding: 12px 16px;
|
|
186
|
-
border: 1px solid var(--input-border);
|
|
187
|
-
box-shadow: 0px 0px 12px var(--card-shadow);
|
|
188
|
-
background-color: var(--card-bg);
|
|
189
|
-
color: var(--text-color);
|
|
190
|
-
transition: all 0.3s ease;
|
|
191
|
-
border-radius: 4px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
#tabs {
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: 8px;
|
|
198
|
-
flex-shrink: 0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.tab {
|
|
202
|
-
padding: 10px 14px;
|
|
203
|
-
background-color: var(--card-bg);
|
|
204
|
-
color: var(--text-color);
|
|
205
|
-
border: 1px solid var(--input-border);
|
|
206
|
-
border-radius: 4px;
|
|
207
|
-
cursor: pointer;
|
|
208
|
-
font-size: 14px;
|
|
209
|
-
box-shadow: 0px 0px 12px var(--card-shadow);
|
|
210
|
-
transition: all 0.3s ease;
|
|
211
|
-
user-select: none;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.tab.active {
|
|
215
|
-
border-color: #18a0fb;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.cody-svg {
|
|
219
|
-
width: 1em;
|
|
220
|
-
height: 1em;
|
|
221
|
-
display: inline-block;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
#search:focus {
|
|
225
|
-
outline: none !important;
|
|
226
|
-
border-color: #18a0fb;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
#copier {
|
|
230
|
-
position: absolute;
|
|
231
|
-
top: -9999px;
|
|
232
|
-
left: -9999px;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
#notification {
|
|
236
|
-
position: fixed;
|
|
237
|
-
margin: auto;
|
|
238
|
-
bottom: 40px;
|
|
239
|
-
left: 50%;
|
|
240
|
-
width: auto;
|
|
241
|
-
transform: translateX(-50%);
|
|
242
|
-
color: var(--notification-text);
|
|
243
|
-
background-color: var(--notification-bg);
|
|
244
|
-
padding: 8px 24px;
|
|
245
|
-
border-radius: 8px;
|
|
246
|
-
opacity: 0;
|
|
247
|
-
transition: opacity .3s ease-in-out;
|
|
248
|
-
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
#notification-id {
|
|
252
|
-
font-weight: bold;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
#notification.show {
|
|
256
|
-
opacity: .9;
|
|
257
|
-
}
|
|
258
|
-
</style>
|
|
259
|
-
|
|
260
|
-
<link rel="stylesheet" type="text/css" href="{{ name }}.css" />
|
|
261
|
-
</head>
|
|
262
|
-
|
|
263
|
-
<body>
|
|
264
|
-
|
|
265
|
-
<div id="header">
|
|
266
|
-
<h1>{{ name }}</h1>
|
|
267
|
-
<input type="text" id="search" placeholder="Search for icon names" aria-label="Search for icon names">
|
|
268
|
-
<div id="tabs" role="tablist" aria-label="Icon filter">
|
|
269
|
-
<div id="tab-all" class="tab active" role="tab" aria-selected="true" tabindex="0">Default</div>
|
|
270
|
-
<div id="tab-cody" class="tab" role="tab" aria-selected="false" tabindex="0">Cody</div>
|
|
271
|
-
</div>
|
|
272
|
-
<button id="theme-toggle" aria-label="Toggle theme"><i class="codyicon codyicon-color-mode"></i> Dark
|
|
273
|
-
Mode</button>
|
|
274
|
-
</div>
|
|
275
|
-
|
|
276
|
-
<div id="icons">
|
|
277
|
-
{{# each assets }}
|
|
278
|
-
<div class="icon" data-name="{{ @key }}" title="{{ @key }}" data-tags="" data-description="">
|
|
279
|
-
<span class="inner">
|
|
280
|
-
<{{ ../tag }} class="{{ ../prefix }} {{ ../prefix }}-{{ @key }}" aria-hidden="true"></{{ ../tag }}>
|
|
281
|
-
</span>
|
|
282
|
-
<br>
|
|
283
|
-
<span class='label'>{{ @key }}</span>
|
|
284
|
-
<span class='description'></span>
|
|
285
|
-
</div>
|
|
286
|
-
{{/ each }}
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
<div id="notification">📋 Copied: <span id="notification-id"></span></div>
|
|
290
|
-
<input type="text" id="copier" aria-label="Clipboard helper">
|
|
291
|
-
<svg id="cody-svg-sprite" aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden"></svg>
|
|
292
|
-
|
|
293
|
-
<script type="text/javascript">
|
|
294
|
-
|
|
295
|
-
let icons = document.getElementsByClassName('icon');
|
|
296
|
-
let copier = document.getElementById('copier');
|
|
297
|
-
let notification = document.getElementById('notification');
|
|
298
|
-
let notificationText = document.getElementById('notification-id');
|
|
299
|
-
let search = document.getElementById('search');
|
|
300
|
-
const html = document.documentElement;
|
|
301
|
-
const themeToggle = document.getElementById('theme-toggle');
|
|
302
|
-
const tabAll = document.getElementById('tab-all');
|
|
303
|
-
const tabCody = document.getElementById('tab-cody');
|
|
304
|
-
let codyIconSet = new Set();
|
|
305
|
-
let timer;
|
|
306
|
-
|
|
307
|
-
// Load metadata
|
|
308
|
-
let metadata = {}; // METADATA_PLACEHOLDER
|
|
309
|
-
|
|
310
|
-
if (Object.keys(metadata).length > 0) {
|
|
311
|
-
applyMetadata();
|
|
312
|
-
} else {
|
|
313
|
-
fetch('metadata.json')
|
|
314
|
-
.then(response => response.json())
|
|
315
|
-
.then(data => {
|
|
316
|
-
metadata = data;
|
|
317
|
-
applyMetadata();
|
|
318
|
-
})
|
|
319
|
-
.catch(error => {
|
|
320
|
-
console.warn('Could not load metadata.json, using fallback descriptions', error);
|
|
321
|
-
applyLegacyDescriptions();
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function applyMetadata() {
|
|
326
|
-
for (let i = 0; i < icons.length; i++) {
|
|
327
|
-
let icon = icons[i];
|
|
328
|
-
let name = icon.getAttribute('data-name');
|
|
329
|
-
|
|
330
|
-
if (metadata[name]) {
|
|
331
|
-
let meta = metadata[name];
|
|
332
|
-
let tags = meta.tags ? meta.tags.join(' ') : '';
|
|
333
|
-
let description = meta.description || '';
|
|
334
|
-
let render = meta.render || '';
|
|
335
|
-
|
|
336
|
-
icon.setAttribute('data-tags', tags);
|
|
337
|
-
icon.setAttribute('data-description', description);
|
|
338
|
-
icon.setAttribute('data-render', render);
|
|
339
|
-
|
|
340
|
-
// Update visible description
|
|
341
|
-
let descriptionSpan = icon.querySelector('.description');
|
|
342
|
-
if (descriptionSpan) {
|
|
343
|
-
descriptionSpan.innerHTML = description + (tags ? ' - ' + tags : '');
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
// Build a set of icons that should be rendered via colored SVG (Cody custom icons).
|
|
349
|
-
codyIconSet = new Set(
|
|
350
|
-
Object.keys(metadata || {}).filter((key) => metadata[key] && metadata[key].render === 'svg')
|
|
351
|
-
);
|
|
352
|
-
|
|
353
|
-
// Ensure SVG-rendered icons exist as cards in the DOM even if they are not part of the font assets.
|
|
354
|
-
// The template icon list is generated from the font assets mapping, so custom SVG-only icons
|
|
355
|
-
// must be appended dynamically.
|
|
356
|
-
const iconContainer = document.getElementById('icons');
|
|
357
|
-
if (iconContainer) {
|
|
358
|
-
codyIconSet.forEach((name) => {
|
|
359
|
-
const exists = document.querySelector(`[data-name="${name}"]`);
|
|
360
|
-
if (exists) {
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const meta = metadata[name] || {};
|
|
365
|
-
const tags = meta.tags ? meta.tags.join(' ') : '';
|
|
366
|
-
const description = meta.description || '';
|
|
367
|
-
const render = meta.render || '';
|
|
368
|
-
|
|
369
|
-
const card = document.createElement('div');
|
|
370
|
-
card.className = 'icon';
|
|
371
|
-
card.setAttribute('data-name', name);
|
|
372
|
-
card.setAttribute('title', name);
|
|
373
|
-
card.setAttribute('data-tags', tags);
|
|
374
|
-
card.setAttribute('data-description', description);
|
|
375
|
-
card.setAttribute('data-render', render);
|
|
376
|
-
|
|
377
|
-
const inner = document.createElement('span');
|
|
378
|
-
inner.className = 'inner';
|
|
379
|
-
inner.innerHTML = `<svg class="cody-svg" aria-hidden="true"><use href="#${name}" xlink:href="#${name}"></use></svg>`;
|
|
380
|
-
inner.setAttribute('data-svg-rendered', 'true');
|
|
381
|
-
card.appendChild(inner);
|
|
382
|
-
|
|
383
|
-
card.appendChild(document.createElement('br'));
|
|
384
|
-
|
|
385
|
-
const label = document.createElement('span');
|
|
386
|
-
label.className = 'label';
|
|
387
|
-
label.textContent = name;
|
|
388
|
-
card.appendChild(label);
|
|
389
|
-
|
|
390
|
-
const desc = document.createElement('span');
|
|
391
|
-
desc.className = 'description';
|
|
392
|
-
desc.innerHTML = description + (tags ? ' - ' + tags : '');
|
|
393
|
-
card.appendChild(desc);
|
|
394
|
-
|
|
395
|
-
iconContainer.appendChild(card);
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
function applyLegacyDescriptions() {
|
|
401
|
-
let descriptions = [
|
|
402
|
-
{
|
|
403
|
-
name: 'account',
|
|
404
|
-
description: 'person people face user contact outline'
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
name: 'activate-breakpoints',
|
|
408
|
-
description: 'dot circle toggle switch'
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
name: 'add',
|
|
412
|
-
description: 'combine plus add more new'
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
name: 'archive',
|
|
416
|
-
description: 'save box delivery package'
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
name: 'arrow-both',
|
|
420
|
-
description: 'switch swap'
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: 'attach',
|
|
424
|
-
description: 'clip paperclip file link connect add'
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
name: 'beaker',
|
|
428
|
-
description: 'test lab tube tool'
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
name: 'bell',
|
|
432
|
-
description: 'alert notify notification'
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: 'bell-dot',
|
|
436
|
-
description: 'alert notify notification'
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
name: 'bold',
|
|
440
|
-
description: 'text format weight font style'
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
name: 'book',
|
|
444
|
-
description: 'library text read open'
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
name: 'bookmark',
|
|
448
|
-
description: 'book save later'
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
name: 'briefcase',
|
|
452
|
-
description: 'work workplace'
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
name: 'broadcast',
|
|
456
|
-
description: 'tower signal connect connection'
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
name: 'browser',
|
|
460
|
-
description: 'web internet page window'
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
name: 'bug',
|
|
464
|
-
description: 'error issue insect block'
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
name: 'calendar',
|
|
468
|
-
description: 'day time week month date schedule event planner'
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
name: 'call-incoming',
|
|
472
|
-
description: 'phone cell voice connection direction'
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
name: 'call-outgoing',
|
|
476
|
-
description: 'phone cell voice connection direction'
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
name: 'case-sensitive',
|
|
480
|
-
description: 'search filter option letters words'
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: 'check-all',
|
|
484
|
-
description: 'checkmark select everything checked mark complete finish done accept approve'
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
name: 'check',
|
|
488
|
-
description: 'checkmark select everything checked mark complete finish done accept approve'
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
name: 'checklist',
|
|
492
|
-
description: 'checkmark select everything checked mark complete finish done accept todo task text'
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
name: 'chevron-down',
|
|
496
|
-
description: 'twistie tree node folder fold collapse'
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
name: 'chevron-left',
|
|
500
|
-
description: 'twistie tree node folder fold collapse'
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
name: 'chevron-right',
|
|
504
|
-
description: 'twistie tree node folder fold collapse'
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
name: 'chevron-up',
|
|
508
|
-
description: 'twistie tree node folder fold collapse'
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
name: 'chrome-close',
|
|
512
|
-
description: 'menu bar window dismiss'
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
name: 'chrome-maximize',
|
|
516
|
-
description: 'menu bar window large increase'
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
name: 'chrome-minimize',
|
|
520
|
-
description: 'menu bar window small decrease'
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
name: 'chrome-restore',
|
|
524
|
-
description: 'menu bar window'
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
name: 'circle-filled',
|
|
528
|
-
description: 'dot round small bullet breakpoint'
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
name: 'circle-large-filled',
|
|
532
|
-
description: 'dot round bullet'
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
name: 'circle-large',
|
|
536
|
-
description: 'dot round bullet'
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
name: 'circle',
|
|
540
|
-
description: 'dot round small bullet unverified breakpoint'
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
name: 'circle-slash',
|
|
544
|
-
description: 'error block stop disable'
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
name: 'circuit-board',
|
|
548
|
-
description: 'iot device process lines'
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
name: 'clear-all',
|
|
552
|
-
description: 'reset remove'
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
name: 'clippy',
|
|
556
|
-
description: 'clipboard document edit copy'
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
name: 'close-all',
|
|
560
|
-
description: 'remove bulk'
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
name: 'close',
|
|
564
|
-
description: 'remove x cancel stop miltiply'
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
name: 'cloud-download',
|
|
568
|
-
description: 'install import'
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
name: 'cloud-upload',
|
|
572
|
-
description: 'export'
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
name: 'cloud',
|
|
576
|
-
description: 'online service'
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
name: 'code',
|
|
580
|
-
description: 'embed script programming server'
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: 'collapse-all',
|
|
584
|
-
description: 'bulk fold minimize'
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
name: 'color-mode',
|
|
588
|
-
description: 'switch dark light contrast mode toggle'
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: 'comment-discussion',
|
|
592
|
-
description: 'dialog message bubble chat'
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
name: 'comment',
|
|
596
|
-
description: 'dialog message bubble chat'
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
name: 'credit-card',
|
|
600
|
-
description: 'payment merchant money'
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
name: 'dash',
|
|
604
|
-
description: 'line minus subtract hyphen'
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
name: 'dashboard',
|
|
608
|
-
description: 'panel stats dial'
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
name: 'database',
|
|
612
|
-
description: 'sql db storage online cloud'
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
name: 'debug-alt-small',
|
|
616
|
-
description: 'run'
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
name: 'debug-alt',
|
|
620
|
-
description: 'run'
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
name: 'debug-console',
|
|
624
|
-
description: 'terminal command input compile build'
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
name: 'debug-disconnect',
|
|
628
|
-
description: 'stop unplug eject'
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
name: 'desktop-download',
|
|
632
|
-
description: 'install'
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
name: 'device-camera-video',
|
|
636
|
-
description: 'movie record capture'
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
name: 'device-camera',
|
|
640
|
-
description: 'capture picture image'
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
name: 'device-mobile',
|
|
644
|
-
description: 'phone handheld smartphone'
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
name: 'diff-added',
|
|
648
|
-
description: 'git change'
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
name: 'diff-ignored',
|
|
652
|
-
description: 'git change'
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
name: 'diff-modified',
|
|
656
|
-
description: 'git change'
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
name: 'diff-renamed',
|
|
660
|
-
description: 'git change'
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
name: 'diff-removed',
|
|
664
|
-
description: 'git change'
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
name: 'play-circle',
|
|
668
|
-
description: 'run'
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
name: 'pass',
|
|
672
|
-
description: 'play check checkmark outline issue closed'
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
name: 'pass-filled',
|
|
676
|
-
description: 'play check checkmark filled issue closed'
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
name: 'play',
|
|
680
|
-
description: 'run'
|
|
681
|
-
},
|
|
682
|
-
];
|
|
683
|
-
|
|
684
|
-
descriptions.some(function (item) {
|
|
685
|
-
let findIcon = document.querySelectorAll(`[data-name="${item.name}"]`);
|
|
686
|
-
if (findIcon[0]) {
|
|
687
|
-
findIcon[0].querySelector('.description').innerHTML += item.description;
|
|
688
|
-
findIcon[0].setAttribute('data-description', item.description);
|
|
689
|
-
}
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
function animateNotification() {
|
|
694
|
-
window.clearTimeout(timer);
|
|
695
|
-
search.focus();
|
|
696
|
-
notification.classList.add('show');
|
|
697
|
-
timer = window.setTimeout(function () {
|
|
698
|
-
notification.classList.remove('show');
|
|
699
|
-
}, 3000);
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
function sanitizeText(string) {
|
|
703
|
-
return string = string.replace(/-/gi, ' ');
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
// -----------------
|
|
707
|
-
// Tab filter + search
|
|
708
|
-
// -----------------
|
|
709
|
-
let activeTab = 'all';
|
|
710
|
-
|
|
711
|
-
function setTab(tab) {
|
|
712
|
-
activeTab = tab;
|
|
713
|
-
tabAll.classList.toggle('active', tab === 'all');
|
|
714
|
-
tabCody.classList.toggle('active', tab === 'cody');
|
|
715
|
-
tabAll.setAttribute('aria-selected', tab === 'all' ? 'true' : 'false');
|
|
716
|
-
tabCody.setAttribute('aria-selected', tab === 'cody' ? 'true' : 'false');
|
|
717
|
-
applyFilters();
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
tabAll.addEventListener('click', function () { setTab('all'); });
|
|
721
|
-
tabCody.addEventListener('click', function () { setTab('cody'); });
|
|
722
|
-
|
|
723
|
-
function applyFilters() {
|
|
724
|
-
let filter = search.value.toUpperCase();
|
|
725
|
-
let wrapper = document.getElementById('icons');
|
|
726
|
-
let icon = wrapper.getElementsByTagName('div');
|
|
727
|
-
|
|
728
|
-
for (i = 0; i < icon.length; i++) {
|
|
729
|
-
let name = (icon[i].getAttribute('data-name') || '');
|
|
730
|
-
let tags = icon[i].getAttribute('data-tags') || '';
|
|
731
|
-
let description = icon[i].getAttribute('data-description') || '';
|
|
732
|
-
let render = icon[i].getAttribute('data-render') || '';
|
|
733
|
-
let textInner = sanitizeText(icon[i].innerText);
|
|
734
|
-
let textContents = sanitizeText(icon[i].textContent);
|
|
735
|
-
|
|
736
|
-
let tabMatch = true;
|
|
737
|
-
if (activeTab === 'cody') {
|
|
738
|
-
tabMatch = name.toLowerCase().startsWith('cody');
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
if (
|
|
742
|
-
tabMatch && (
|
|
743
|
-
textContents.toUpperCase().indexOf(filter) > -1 ||
|
|
744
|
-
textInner.toUpperCase().indexOf(filter) > -1 ||
|
|
745
|
-
name.toUpperCase().indexOf(filter) > -1 ||
|
|
746
|
-
tags.toUpperCase().indexOf(filter) > -1 ||
|
|
747
|
-
description.toUpperCase().indexOf(filter) > -1
|
|
748
|
-
)
|
|
749
|
-
) {
|
|
750
|
-
icon[i].style.display = "inline-block";
|
|
751
|
-
|
|
752
|
-
// If this is a Cody icon and marked as SVG-rendered, replace the inner content with <svg><use>
|
|
753
|
-
if (activeTab === 'cody' && render === 'svg' && codyIconSet.has(name)) {
|
|
754
|
-
const inner = icon[i].querySelector('.inner');
|
|
755
|
-
if (inner && !inner.getAttribute('data-svg-rendered')) {
|
|
756
|
-
inner.innerHTML = `<svg class="cody-svg" aria-hidden="true"><use href="#${name}" xlink:href="#${name}"></use></svg>`;
|
|
757
|
-
inner.setAttribute('data-svg-rendered', 'true');
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
} else {
|
|
761
|
-
icon[i].style.display = "none";
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
search.addEventListener('keyup', applyFilters);
|
|
767
|
-
|
|
768
|
-
// -----------------
|
|
769
|
-
// Click to copy
|
|
770
|
-
// -----------------
|
|
771
|
-
for (i = 0; i < icons.length; i++) {
|
|
772
|
-
let icon = icons[i]
|
|
773
|
-
icon.onclick = function (e) {
|
|
774
|
-
let name = this.getAttribute('data-name');
|
|
775
|
-
|
|
776
|
-
copier.value = name;
|
|
777
|
-
copier.select();
|
|
778
|
-
copier.setSelectionRange(0, 99999)
|
|
779
|
-
document.execCommand('copy');
|
|
780
|
-
|
|
781
|
-
notificationText.innerHTML = name;
|
|
782
|
-
animateNotification();
|
|
783
|
-
e.preventDefault();
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)');
|
|
787
|
-
|
|
788
|
-
// Function to get the theme: check localStorage first, then system preference
|
|
789
|
-
function getTheme() {
|
|
790
|
-
const savedTheme = localStorage.getItem('theme');
|
|
791
|
-
if (savedTheme) {
|
|
792
|
-
return savedTheme;
|
|
793
|
-
}
|
|
794
|
-
return prefersDarkScheme.matches ? 'dark' : 'light';
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
// Initialize theme
|
|
798
|
-
const currentTheme = getTheme();
|
|
799
|
-
html.setAttribute('data-theme', currentTheme);
|
|
800
|
-
updateThemeButton(currentTheme);
|
|
801
|
-
|
|
802
|
-
// Listen for system theme changes
|
|
803
|
-
prefersDarkScheme.addEventListener('change', function (e) {
|
|
804
|
-
// Only update if user hasn't manually set a preference
|
|
805
|
-
if (!localStorage.getItem('theme')) {
|
|
806
|
-
const newTheme = e.matches ? 'dark' : 'light';
|
|
807
|
-
html.setAttribute('data-theme', newTheme);
|
|
808
|
-
updateThemeButton(newTheme);
|
|
809
|
-
}
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
// Manual toggle
|
|
813
|
-
themeToggle.addEventListener('click', function () {
|
|
814
|
-
const currentTheme = html.getAttribute('data-theme');
|
|
815
|
-
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
|
|
816
|
-
|
|
817
|
-
html.setAttribute('data-theme', newTheme);
|
|
818
|
-
localStorage.setItem('theme', newTheme);
|
|
819
|
-
updateThemeButton(newTheme);
|
|
820
|
-
});
|
|
821
|
-
|
|
822
|
-
function updateThemeButton(theme) {
|
|
823
|
-
if (theme === 'dark') {
|
|
824
|
-
themeToggle.innerHTML = '<i class="codyicon codyicon-color-mode"></i> Light Mode';
|
|
825
|
-
} else {
|
|
826
|
-
themeToggle.innerHTML = '<i class="codyicon codyicon-color-mode"></i> Dark Mode';
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
</script>
|
|
831
|
-
</body>
|
|
832
|
-
|
|
833
|
-
</html>
|