chore: update readme

This commit is contained in:
Quorafind 2025-04-25 17:36:47 +08:00
parent 77eeb516a7
commit 139e30b31d
5 changed files with 26 additions and 3 deletions

1
.npmrc
View file

@ -1 +0,0 @@
tag-version-prefix=""

View file

@ -1,4 +1,6 @@
# Task Genius
<p align="center">
<img src="media/task-genius.svg" alt="Task Genius Logo" width="150">
</p>
Full documentation is available at [Docs](docs/general.md).

11
media/task-genius.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 47 KiB

7
src/icon.ts Normal file
View file

@ -0,0 +1,7 @@
export function getTaskGeniusIcon() {
return `<svg width="102" height="102" viewBox="0 0 102 102" class="svg-icon lucide-task-genius" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
<path d="M70.1763 32.8299C65.2862 27.823 58.4543 24.7139 50.8947 24.7139C36.0257 24.7139 23.9719 36.7425 23.9719 51.5807C23.9719 63.4349 31.6652 73.496 42.3411 77.0631C42.8942 77.2479 43.4553 77.4153 44.0238 77.5646M77.7134 53.9595C76.7236 65.2178 68.7754 74.4843 58.1863 77.4505" />
<path d="M30.5033 55.89L48.4666 74.1502C49.5794 74.5729 50.3965 74.5955 51.5842 74.2986C52.7718 74.0017 97.1605 28.5738 97.1605 28.5738C97.7839 27.0963 97.6155 26.1795 96.5667 24.417C94.9129 22.526 93.8599 21.9949 91.8161 21.7448C90.7303 21.95 90.2269 22.8759 88.6985 24.2686L69.2506 43.568L50.2481 62.5705L36.4416 49.3578C34.8085 49.0609 34.128 49.3897 33.027 50.2486L30.6517 52.327C29.5752 54.4906 29.9094 54.9992 30.5033 55.89Z" fill="var(--color-accent)" stroke-width="4" />
<path d="M87.8082 18.6272C88.0134 18.1035 88.1385 18.2174 87.9567 17.588L79.7915 10.3136C78.8855 9.56077 78.0428 9.44238 77.2678 10.1651C76.4928 10.8879 71.181 15.6581 71.181 15.6581L70.2903 16.2519C66.4304 13.8766 64.0551 12.9858 60.0467 12.0951L59.156 7.34446L58.5622 3.63303C57.9326 2.68887 57.4591 2.36222 56.4838 2H45.6464C44.435 2.19841 43.8946 2.75568 43.4195 3.33611L41.7865 12.2435C37.6126 13.2115 35.4387 14.328 31.8399 16.2519L24.7139 10.3136C23.6962 9.76843 23.1477 9.83643 22.1902 10.3136L13.7281 18.1818C12.8273 19.0945 13.0667 20.1453 13.2827 20.8541L16.1034 24.8624L18.6272 28.2769C15.1297 33.9816 14.0584 36.6462 12.8374 43.4195L8.2352 44.4587L3.92994 45.4979C2.78974 45.974 2.29841 46.325 2 47.2794V59.6014C2.47601 60.7206 2.86449 61.1626 3.92994 61.3828L12.2435 62.2736C13.9926 67.2826 15.4806 69.8139 18.3303 74.1502L13.5797 81.2761C12.988 82.3194 12.9567 82.9339 13.5797 84.0968L22.4871 91.965C23.3307 92.3004 23.9863 92.3519 25.0109 91.965L31.6914 86.0267C35.3131 88.1338 37.5579 89.0084 41.935 90.0351L43.2711 98.4971C43.5659 99.6757 44.0995 99.955 45.201 100.279H56.4838C57.675 99.838 58.1783 99.0448 58.7106 98.2002L60.0467 89.8866C64.305 88.746 66.3318 88.0386 70.2903 85.8783L77.2678 91.965C78.1374 92.4565 78.625 92.3643 79.4946 91.965L88.4021 83.6514C88.9142 82.9304 89.0674 82.4441 88.5505 81.4246L83.3545 74.0017C86.5045 69.6809 88.1439 67.3329 89.8866 62.2736L97.6064 61.0859C98.8553 60.784 99.483 60.1725 99.8333 59.156V47.131C99.4055 46.0763 98.9948 45.7509 98.0518 45.4979L89.8866 44.0134C89.46 43.4759 89.7382 43.8649 89.4413 43.1226" stroke-width="4"/>
</svg>`;
}

View file

@ -6,6 +6,7 @@ import {
Plugin,
Editor,
Menu,
addIcon,
} from "obsidian";
import {
taskProgressBarExtension,
@ -64,6 +65,7 @@ import "./styles/view-config.css";
import "./styles/task-status.css";
import { TaskSpecificView } from "./pages/TaskSpecificView";
import { TASK_SPECIFIC_VIEW_TYPE } from "./pages/TaskSpecificView";
import { getTaskGeniusIcon } from "./icon";
class TaskProgressBarPopover extends HoverPopover {
plugin: TaskProgressBarPlugin;
@ -163,6 +165,8 @@ export default class TaskProgressBarPlugin extends Plugin {
if (this.settings.enableView) {
this.loadViews();
addIcon("task-genius", getTaskGeniusIcon());
this.taskManager = new TaskManager(
this.app,
this.app.vault,
@ -303,7 +307,7 @@ export default class TaskProgressBarPlugin extends Plugin {
// Add a ribbon icon for opening the TaskView
this.addRibbonIcon(
"list-check",
"task-genius",
t("Open Task Genius view"),
() => {
this.activateTaskView();