Skip to content

Commit

Permalink
feat: WIP store
Browse files Browse the repository at this point in the history
  • Loading branch information
李权威 committed Sep 21, 2023
1 parent 7a6e6df commit f777c0a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions components/gante-core/node-control-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useGante from './useGante';
import * as actions from './action';

const HEIGHT = 45;
const WIDTH = 280;
const WIDTH = 320;

// <bg, fg> colorpair
const colors = [
Expand All @@ -17,6 +17,11 @@ const colors = [
['#134074', '#fff'],
];


// 关于收纳操作: 收纳是当前任务临时被挤掉,当前中断掉,未来会继续开发的一种任务。相当于任务被DELAY的状态
// 为什么要收纳:收纳是因为这个任务的重要性从当前变为未来,未来很重要。
// 收纳对应的反操作是 -> 放出,将其从收纳箱中放在主视图上,时间为当前时间

function NodeControlPanel({ node, contextInfo, left, hover }) {
const leftRef = useRef(0);

Expand Down Expand Up @@ -67,7 +72,14 @@ function NodeControlPanel({ node, contextInfo, left, hover }) {
})
}

<span className="mr-auto ml-2 text-[12px] text-black cursor-pointer" onClick={onClickLock}>
<span
title="临时不做的任务可以放入收纳盒中,未来再开启任务"
className="ml-2 mr-auto text-[12px] text-black cursor-pointer">
收纳
</span>
<span
title="锁定之后将无法直接修改任务时间,避免误操作导致时间发生变更"
className="mr-auto ml-2 text-[12px] text-black cursor-pointer" onClick={onClickLock}>
{
node.lock ? '解锁' : '锁定'
}
Expand Down
1 change: 1 addition & 0 deletions components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function LeftHeader({ children, className, user, ganteRef }) {
<Pin pin={null} dragMode="copy" />
</li>
<li className="cursor-pointer h-[24px] flex justify-center items-center mt-[20px]" data-mode="agent" onClick={onClickMode}>agenda</li>
<li className="cursor-pointer h-[24px] flex justify-center items-center mt-[20px]">收纳x10</li>
</ul>
<div className="mt-auto mb-20">
<div className="flex justify-center">
Expand Down

0 comments on commit f777c0a

Please sign in to comment.