fix version tag
This commit is contained in:
@@ -111,11 +111,11 @@ export const I18N = {
|
||||
en: `Dotted Underline`,
|
||||
},
|
||||
dash_line: {
|
||||
zh: `下划点划线`,
|
||||
zh: `下划虚线`,
|
||||
en: `Dashed Underline`,
|
||||
},
|
||||
wavy_line: {
|
||||
zh: `下划波浪`,
|
||||
zh: `下划波浪线`,
|
||||
en: `Wavy Underline`,
|
||||
},
|
||||
fuzzy: {
|
||||
|
||||
@@ -4,7 +4,6 @@ export { I18N, UI_LANGS } from "./i18n";
|
||||
const APP_NAME = process.env.REACT_APP_NAME.trim().split(/\s+/).join("-");
|
||||
|
||||
export const APP_LCNAME = APP_NAME.toLowerCase();
|
||||
export const APP_VERSION = "1.1.2";
|
||||
|
||||
export const STOKEY_MSAUTH = `${APP_NAME}_msauth`;
|
||||
export const STOKEY_SETTING = `${APP_NAME}_setting`;
|
||||
@@ -91,7 +90,7 @@ export const OPT_LANGS_SPECIAL = {
|
||||
export const OPT_STYLE_NONE = "style_none"; // 无
|
||||
export const OPT_STYLE_LINE = "under_line"; // 下划线
|
||||
export const OPT_STYLE_DOTLINE = "dot_line"; // 点状线
|
||||
export const OPT_STYLE_DASHLINE = "dash_line"; // 点划线
|
||||
export const OPT_STYLE_DASHLINE = "dash_line"; // 虚线
|
||||
export const OPT_STYLE_WAVYLINE = "wavy_line"; // 波浪线
|
||||
export const OPT_STYLE_FUZZY = "fuzzy"; // 模糊
|
||||
export const OPT_STYLE_HIGHTLIGHT = "highlight"; // 高亮
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function Content({ q, rule }) {
|
||||
textDecoration: "dotted underline 2px",
|
||||
textUnderlineOffset: "0.3em",
|
||||
};
|
||||
case OPT_STYLE_DASHLINE: // 点划线
|
||||
case OPT_STYLE_DASHLINE: // 虚线
|
||||
return {
|
||||
opacity: hover ? 1 : 0.6,
|
||||
textDecoration: "dashed underline 2px",
|
||||
|
||||
@@ -9,7 +9,6 @@ import { useDarkMode } from "../../hooks/ColorMode";
|
||||
import LightModeIcon from "@mui/icons-material/LightMode";
|
||||
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
||||
import { useI18n } from "../../hooks/I18n";
|
||||
import { APP_VERSION } from "../../config";
|
||||
|
||||
function Header(props) {
|
||||
const i18n = useI18n();
|
||||
@@ -36,7 +35,9 @@ function Header(props) {
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Box sx={{ flexGrow: 1 }}>{`${i18n("app_name")} v${APP_VERSION}`}</Box>
|
||||
<Box sx={{ flexGrow: 1 }}>{`${i18n("app_name")} v${
|
||||
process.env.REACT_APP_VERSION
|
||||
}`}</Box>
|
||||
<IconButton onClick={switchColorMode} color="inherit">
|
||||
{darkMode ? <LightModeIcon /> : <DarkModeIcon />}
|
||||
</IconButton>
|
||||
|
||||
Reference in New Issue
Block a user