|
|
@@ -1,5 +1,5 @@
|
|
|
import { Link } from "react-router-dom";
|
|
|
-import { Layout, Col, Row, Space, Button } from "antd";
|
|
|
+import { Layout, Col, Row, Space } from "antd";
|
|
|
import { useIntl } from "react-intl";
|
|
|
import type { MenuProps } from "antd";
|
|
|
import { Menu } from "antd";
|
|
|
@@ -7,6 +7,7 @@ import { Menu } from "antd";
|
|
|
import img_banner from "../../assets/library/images/wikipali_logo_library.svg";
|
|
|
import UiLangSelect from "../general/UiLangSelect";
|
|
|
import SignInAvatar from "../auth/SignInAvatar";
|
|
|
+import ToStudio from "../auth/ToStudio";
|
|
|
|
|
|
const { Header } = Layout;
|
|
|
|
|
|
@@ -23,56 +24,112 @@ const Widget = ({ selectedKeys = "" }: IWidgetHeadBar) => {
|
|
|
// TODO
|
|
|
const items: MenuProps["items"] = [
|
|
|
{
|
|
|
- label: <Link to="/community/list">{intl.formatMessage({ id: "columns.library.community.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/community/list">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.community.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "community",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/palicanon/list">{intl.formatMessage({ id: "columns.library.palicanon.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/palicanon/list">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.palicanon.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "palicanon",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/course/list">{intl.formatMessage({ id: "columns.library.course.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/course/list">
|
|
|
+ {intl.formatMessage({ id: "columns.library.course.title" })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "course",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/dict/recent">{intl.formatMessage({ id: "columns.library.dict.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/dict/recent">
|
|
|
+ {intl.formatMessage({ id: "columns.library.dict.title" })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "dict",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/anthology/list">{intl.formatMessage({ id: "columns.library.anthology.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/anthology/list">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.anthology.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "anthology",
|
|
|
},
|
|
|
{
|
|
|
label: (
|
|
|
- <a href="https://asset-hk.wikipali.org/help/zh-Hans" target="_blank" rel="noreferrer">
|
|
|
+ <a
|
|
|
+ href="https://asset-hk.wikipali.org/help/zh-Hans"
|
|
|
+ target="_blank"
|
|
|
+ rel="noreferrer"
|
|
|
+ >
|
|
|
{intl.formatMessage({ id: "columns.library.help.title" })}
|
|
|
</a>
|
|
|
),
|
|
|
key: "help",
|
|
|
},
|
|
|
{
|
|
|
- label: <Space>{intl.formatMessage({ id: "columns.library.more.title" })}</Space>,
|
|
|
+ label: (
|
|
|
+ <Space>
|
|
|
+ {intl.formatMessage({ id: "columns.library.more.title" })}
|
|
|
+ </Space>
|
|
|
+ ),
|
|
|
key: "more",
|
|
|
children: [
|
|
|
{
|
|
|
label: (
|
|
|
- <a href="https://asset-hk.wikipali.org/handbook/zh-Hans" target="_blank" rel="noreferrer">
|
|
|
- {intl.formatMessage({ id: "columns.library.palihandbook.title" })}
|
|
|
+ <a
|
|
|
+ href="https://asset-hk.wikipali.org/handbook/zh-Hans"
|
|
|
+ target="_blank"
|
|
|
+ rel="noreferrer"
|
|
|
+ >
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.palihandbook.title",
|
|
|
+ })}
|
|
|
</a>
|
|
|
),
|
|
|
key: "palihandbook",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/calendar">{intl.formatMessage({ id: "columns.library.calendar.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/calendar">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.calendar.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "calendar",
|
|
|
},
|
|
|
{
|
|
|
- label: <Link to="/convertor">{intl.formatMessage({ id: "columns.library.convertor.title" })}</Link>,
|
|
|
+ label: (
|
|
|
+ <Link to="/convertor">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.convertor.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
+ ),
|
|
|
key: "convertor",
|
|
|
},
|
|
|
{
|
|
|
label: (
|
|
|
- <Link to="/statistics">{intl.formatMessage({ id: "columns.library.statistics.title" })}</Link>
|
|
|
+ <Link to="/statistics">
|
|
|
+ {intl.formatMessage({
|
|
|
+ id: "columns.library.statistics.title",
|
|
|
+ })}
|
|
|
+ </Link>
|
|
|
),
|
|
|
key: "statistics",
|
|
|
},
|
|
|
@@ -84,7 +141,11 @@ const Widget = ({ selectedKeys = "" }: IWidgetHeadBar) => {
|
|
|
<Row justify="space-between">
|
|
|
<Col flex="100px">
|
|
|
<Link to="/">
|
|
|
- <img alt="code" style={{ height: "3em" }} src={img_banner} />
|
|
|
+ <img
|
|
|
+ alt="code"
|
|
|
+ style={{ height: "3em" }}
|
|
|
+ src={img_banner}
|
|
|
+ />
|
|
|
</Link>
|
|
|
</Col>
|
|
|
<Col span={8}>
|
|
|
@@ -97,11 +158,11 @@ const Widget = ({ selectedKeys = "" }: IWidgetHeadBar) => {
|
|
|
/>
|
|
|
</Col>
|
|
|
<Col span={4}>
|
|
|
- <a href="/studio/kosalla/">
|
|
|
- <Button>译经楼</Button>
|
|
|
- </a>
|
|
|
- <SignInAvatar />
|
|
|
- <UiLangSelect />
|
|
|
+ <Space>
|
|
|
+ <ToStudio />
|
|
|
+ <SignInAvatar />
|
|
|
+ <UiLangSelect />
|
|
|
+ </Space>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
</Header>
|