chore: checkbox items' title & button icons
Some checks are pending
Alpha Build / alpha (macos-latest, aarch64-apple-darwin) (push) Waiting to run
Alpha Build / alpha (macos-latest, x86_64-apple-darwin) (push) Waiting to run
Alpha Build / alpha (windows-latest, aarch64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha (windows-latest, i686-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha (windows-latest, x86_64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, aarch64-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, armv7-unknown-linux-gnueabihf) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, i686-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, x86_64-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (arm64, windows-latest, aarch64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (x64, windows-latest, x86_64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (x86, windows-latest, i686-pc-windows-msvc) (push) Waiting to run
Alpha Build / Update tag (push) Blocked by required conditions

This commit is contained in:
dongchengjie 2024-07-12 18:24:19 +08:00
parent 49e36b6e00
commit f85f7758e6
3 changed files with 17 additions and 2 deletions

View File

@ -30,6 +30,8 @@ import {
TextField, TextField,
styled, styled,
} from "@mui/material"; } from "@mui/material";
import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop";
import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom";
import { GroupItem } from "@/components/profile/group-item"; import { GroupItem } from "@/components/profile/group-item";
import { import {
getNetworkInterfaces, getNetworkInterfaces,
@ -402,6 +404,11 @@ export const GroupsEditorViewer = (props: Props) => {
disableCloseOnSelect disableCloseOnSelect
onChange={(_, value) => value && field.onChange(value)} onChange={(_, value) => value && field.onChange(value)}
renderInput={(params) => <TextField {...params} />} renderInput={(params) => <TextField {...params} />}
renderOption={(props, option) => (
<li {...props} title={t(option)}>
{option}
</li>
)}
/> />
</Item> </Item>
)} )}
@ -705,6 +712,7 @@ export const GroupsEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignTopIcon />}
onClick={() => { onClick={() => {
try { try {
validateGroup(); validateGroup();
@ -726,6 +734,7 @@ export const GroupsEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignBottomIcon />}
onClick={() => { onClick={() => {
try { try {
validateGroup(); validateGroup();

View File

@ -24,10 +24,11 @@ import {
DialogTitle, DialogTitle,
List, List,
ListItem, ListItem,
ListItemText,
TextField, TextField,
styled, styled,
} from "@mui/material"; } from "@mui/material";
import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop";
import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom";
import { ProxyItem } from "@/components/profile/proxy-item"; import { ProxyItem } from "@/components/profile/proxy-item";
import { readProfileFile, saveProfileFile } from "@/services/cmds"; import { readProfileFile, saveProfileFile } from "@/services/cmds";
import { Notice } from "@/components/base"; import { Notice } from "@/components/base";
@ -270,6 +271,7 @@ export const ProxiesEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignTopIcon />}
onClick={() => { onClick={() => {
let proxies = handleParse(); let proxies = handleParse();
setPrependSeq([...prependSeq, ...proxies]); setPrependSeq([...prependSeq, ...proxies]);
@ -282,6 +284,7 @@ export const ProxiesEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignBottomIcon />}
onClick={() => { onClick={() => {
let proxies = handleParse(); let proxies = handleParse();
setAppendSeq([...appendSeq, ...proxies]); setAppendSeq([...appendSeq, ...proxies]);

View File

@ -29,7 +29,8 @@ import {
TextField, TextField,
styled, styled,
} from "@mui/material"; } from "@mui/material";
import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop";
import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom";
import { readProfileFile, saveProfileFile } from "@/services/cmds"; import { readProfileFile, saveProfileFile } from "@/services/cmds";
import { Notice, Switch } from "@/components/base"; import { Notice, Switch } from "@/components/base";
import getSystem from "@/utils/get-system"; import getSystem from "@/utils/get-system";
@ -535,6 +536,7 @@ export const RulesEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignTopIcon />}
onClick={() => { onClick={() => {
try { try {
let raw = validateRule(); let raw = validateRule();
@ -552,6 +554,7 @@ export const RulesEditorViewer = (props: Props) => {
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"
startIcon={<VerticalAlignBottomIcon />}
onClick={() => { onClick={() => {
try { try {
let raw = validateRule(); let raw = validateRule();