mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-25 20:51:52 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6013a7ae4e | ||
|
|
8742711b68 | ||
|
|
f463076def |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Yakit Chrome Endpoint",
|
"name": "Yakit Chrome Endpoint",
|
||||||
"version": "1.0",
|
"version": "0.0.2",
|
||||||
"description": "A Endpoint for Yakit MITM or more",
|
"description": "A Endpoint for Yakit MITM or more",
|
||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "proxy/options.html",
|
"page": "proxy/options.html",
|
||||||
|
|||||||
@@ -237,21 +237,25 @@ export const ProxySwitch: React.FC<ProxySwitchProps> = () => {
|
|||||||
const menuItems: MenuProps['items'] = [
|
const menuItems: MenuProps['items'] = [
|
||||||
...FIXED_MODES.map(mode => ({
|
...FIXED_MODES.map(mode => ({
|
||||||
key: mode.key,
|
key: mode.key,
|
||||||
icon: <span className="menu-icon" style={{ color: mode.color }}>{mode.icon}</span>,
|
icon: <span className="menu-icon" style={{
|
||||||
label: mode.name,
|
color: currentMode === mode.key ? 'var(--yakit-primary)' : mode.color
|
||||||
|
}}>{mode.icon}</span>,
|
||||||
|
label: `${mode.name}${currentMode === mode.key ? ' ✅' : ''}`,
|
||||||
className: `${currentMode === mode.key ? 'menu-item-selected' : ''} ${isLoading ? 'menu-item-loading' : ''}`,
|
className: `${currentMode === mode.key ? 'menu-item-selected' : ''} ${isLoading ? 'menu-item-loading' : ''}`,
|
||||||
title: mode.name.replace(/[\[\]]/g, '')
|
title: mode.name.replace(/[\[\]]/g, '')
|
||||||
})),
|
})),
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
...customProxies.map(proxy => ({
|
...customProxies.map(proxy => ({
|
||||||
key: proxy.key,
|
key: proxy.key,
|
||||||
icon: <span className="menu-icon" style={{ color: proxy.color }}>
|
icon: <span className="menu-icon" style={{
|
||||||
|
color: currentMode === proxy.key ? 'var(--yakit-primary)' : proxy.color
|
||||||
|
}}>
|
||||||
{proxy.config.proxyType === 'pac_script' ? '📜' : <GlobalOutlined />}
|
{proxy.config.proxyType === 'pac_script' ? '📜' : <GlobalOutlined />}
|
||||||
</span>,
|
</span>,
|
||||||
label: <span style={{
|
label: <span style={{
|
||||||
color: currentMode === proxy.key ? 'var(--yakit-primary)' : 'inherit',
|
color: currentMode === proxy.key ? 'var(--yakit-primary)' : 'inherit',
|
||||||
opacity: isLoading ? 0.7 : 1
|
opacity: isLoading ? 0.7 : 1
|
||||||
}}>{proxy.name}</span>,
|
}}>{proxy.name}{currentMode === proxy.key ? ' ✅' : ''}</span>,
|
||||||
className: `${currentMode === proxy.key ? 'menu-item-selected' : ''} ${isLoading ? 'menu-item-loading' : ''}`,
|
className: `${currentMode === proxy.key ? 'menu-item-selected' : ''} ${isLoading ? 'menu-item-loading' : ''}`,
|
||||||
title: proxy.config.scheme
|
title: proxy.config.scheme
|
||||||
? `${proxy.config.scheme.toUpperCase()} ${proxy.config.host}:${proxy.config.port}`
|
? `${proxy.config.scheme.toUpperCase()} ${proxy.config.host}:${proxy.config.port}`
|
||||||
|
|||||||
Reference in New Issue
Block a user