02272209
This commit is contained in:
parent
1dd03e5b99
commit
a3284f4532
|
@ -14,7 +14,7 @@ export default function FilterSection() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className=" flex z-0 p-6 flex-col rounded-lg mt-4 space-y-6 h-[820px] overscroll-contain overflow-x-hidden">
|
<div className=" flex z-0 p-6 flex-col mt-4 space-y-6 overscroll-contain overflow-x-hidden">
|
||||||
{showSearchMode && <SearchModeRadio></SearchModeRadio>}
|
{showSearchMode && <SearchModeRadio></SearchModeRadio>}
|
||||||
{taxonomies?.map((tax, index) => {
|
{taxonomies?.map((tax, index) => {
|
||||||
const items = Object.entries(selectedTerms).find(
|
const items = Object.entries(selectedTerms).find(
|
||||||
|
|
|
@ -11,14 +11,14 @@ export default function SearchModeRadio() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" align="start" className="mb-2">
|
<Space direction="vertical" align="start" className="mb-2">
|
||||||
<h3 className="text-lg font-medium mb-4">搜索模式</h3>
|
<h3 className="text-lg font-medium mb-4">只搜索</h3>
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
value={searchMode}
|
value={searchMode}
|
||||||
onChange={handleModeChange}
|
onChange={handleModeChange}
|
||||||
buttonStyle="solid">
|
buttonStyle="solid">
|
||||||
<Radio.Button value={PostType.COURSE}>课程</Radio.Button>
|
<Radio.Button value={PostType.COURSE}>视频课程</Radio.Button>
|
||||||
<Radio.Button value={PostType.PATH}>路径</Radio.Button>
|
<Radio.Button value={PostType.PATH}>思维导图</Radio.Button>
|
||||||
<Radio.Button value="both">全部</Radio.Button>
|
<Radio.Button value="both">所有资源</Radio.Button>
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
|
|
|
@ -86,7 +86,7 @@ export function MainHeader() {
|
||||||
window.location.href = "/path/editor";
|
window.location.href = "/path/editor";
|
||||||
}}
|
}}
|
||||||
icon={<PlusOutlined></PlusOutlined>}>
|
icon={<PlusOutlined></PlusOutlined>}>
|
||||||
创建学习路径
|
创建思维导图
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{isAuthenticated ? (
|
{isAuthenticated ? (
|
||||||
|
|
|
@ -11,8 +11,8 @@ export const NavigationMenu = () => {
|
||||||
const menuItems = useMemo(() => {
|
const menuItems = useMemo(() => {
|
||||||
const baseItems = [
|
const baseItems = [
|
||||||
{ key: "home", path: "/", label: "首页" },
|
{ key: "home", path: "/", label: "首页" },
|
||||||
{ key: "path", path: "/path", label: "学习路径" },
|
{ key: "path", path: "/path", label: "思维导图" },
|
||||||
{ key: "courses", path: "/courses", label: "全部课程" },
|
{ key: "courses", path: "/courses", label: "所有课程" },
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!isAuthenticated) {
|
if (!isAuthenticated) {
|
||||||
|
|
|
@ -107,7 +107,7 @@ export default function MindEditor({ id }: { id?: string }) {
|
||||||
nodeMenu: canEdit, // 禁用节点右键菜单
|
nodeMenu: canEdit, // 禁用节点右键菜单
|
||||||
keypress: canEdit, // 禁用键盘快捷键
|
keypress: canEdit, // 禁用键盘快捷键
|
||||||
});
|
});
|
||||||
mind.init(MindElixir.new("新学习路径"));
|
mind.init(MindElixir.new("新思维导图"));
|
||||||
containerRef.current.hidden = true;
|
containerRef.current.hidden = true;
|
||||||
setInstance(mind);
|
setInstance(mind);
|
||||||
}, [canEdit]);
|
}, [canEdit]);
|
||||||
|
|
Loading…
Reference in New Issue