fix version tag

This commit is contained in:
Gabe Yuan
2023-07-21 12:31:21 +08:00
parent bb34ef5b1a
commit 46ba92cdad
23 changed files with 26 additions and 26 deletions

View File

@@ -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: {

View File

@@ -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"; // 高亮

View File

@@ -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",

View File

@@ -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>