mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
chore: 修改打包配置
This commit is contained in:
1 parent
f47af8024f
commit
6cadcb9a5a
7 files changed
+136
-47
No files matched your search
@@ -166,7 +166,7 @@ function summarizeDeviceId(deviceId: string): string {
|
||||
}
|
||||
|
||||
/** 展示当前设备的授权状态,并提供刷新与复制设备 ID 的操作。 */
|
||||
export function MacProLicenseCard({
|
||||
export function MacNativeLicenseCard({
|
||||
onNotice,
|
||||
onStatusChange
|
||||
}: {
|
||||
@@ -231,16 +231,16 @@ export function MacProLicenseCard({
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="settings-card mac-pro-license-card" aria-label="发送能力授权">
|
||||
<header className="mac-pro-license-header">
|
||||
<section className="settings-card mac-native-license-card" aria-label="发送能力授权">
|
||||
<header className="mac-native-license-header">
|
||||
<strong>发送能力授权</strong>
|
||||
<span className={`mac-pro-license-status ${macLicenseStatusTone(license)}`}>
|
||||
<span className={`mac-native-license-status ${macLicenseStatusTone(license)}`}>
|
||||
{macLicenseStatusLabel(license)}
|
||||
</span>
|
||||
</header>
|
||||
|
||||
<div className="mac-pro-device-row">
|
||||
<div className="mac-pro-device-value">
|
||||
<div className="mac-native-device-row">
|
||||
<div className="mac-native-device-value">
|
||||
<span>本机设备 ID</span>
|
||||
<code title={license.deviceId || undefined}>
|
||||
{license.deviceId ? summarizeDeviceId(license.deviceId) : '(尚未生成)'}
|
||||
@@ -257,16 +257,16 @@ export function MacProLicenseCard({
|
||||
</Button>
|
||||
</div>
|
||||
{license.deviceId && (!license.authorized || licenseStateConflictsWithExpiry(license)) ? (
|
||||
<p className="mac-pro-license-hint">{macLicenseStatusHint(license)}</p>
|
||||
<p className="mac-native-license-hint">{macLicenseStatusHint(license)}</p>
|
||||
) : null}
|
||||
{license.authorized && license.features.length > 0 ? (
|
||||
<div className="mac-pro-license-features" aria-label="已开通功能">
|
||||
<div className="mac-native-license-features" aria-label="已开通功能">
|
||||
{license.features.map((feature) => (
|
||||
<span key={feature}>{macLicenseFeatureLabel[feature] || feature}</span>
|
||||
))}
|
||||
</div>
|
||||
) : null}
|
||||
<div className="mac-pro-license-meta">
|
||||
<div className="mac-native-license-meta">
|
||||
<span>
|
||||
授权到期 <strong>{formatMacLicenseDate(license.licenseExpiresAt)}</strong>
|
||||
</span>
|
||||
@@ -274,7 +274,7 @@ export function MacProLicenseCard({
|
||||
最近检测 <strong>{formatMacLicenseDateTime(license.lastCheckedAt)}</strong>
|
||||
</span>
|
||||
</div>
|
||||
<div className="mac-pro-license-footer">
|
||||
<div className="mac-native-license-footer">
|
||||
<span />
|
||||
<Button
|
||||
variant="outline"
|
||||
@@ -852,7 +852,10 @@ export function PersonalWechatSendPage({
|
||||
{/* 发送能力授权卡片:仅在加载了发送组件的档位渲染。
|
||||
OSS(runtime_missing)下不渲染,保证免费版不出现授权入口。 */}
|
||||
{macRuntimeAvailability?.state === 'available' ? (
|
||||
<MacProLicenseCard onNotice={onNotice} onStatusChange={setMacLicenseStatus} />
|
||||
<MacNativeLicenseCard
|
||||
onNotice={onNotice}
|
||||
onStatusChange={setMacLicenseStatus}
|
||||
/>
|
||||
) : null}
|
||||
<section
|
||||
className="settings-card mac-wechat-environment-card"
|
||||
|
||||
@@ -249,14 +249,14 @@
|
||||
background: var(--wxex-bg-elevated);
|
||||
padding: 24px 26px;
|
||||
}
|
||||
.mac-pro-license-card,
|
||||
.mac-native-license-card,
|
||||
.mac-wechat-environment-card {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
min-width: 0;
|
||||
padding: 20px 22px;
|
||||
}
|
||||
.mac-pro-license-header,
|
||||
.mac-native-license-header,
|
||||
.mac-wechat-environment-header {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
@@ -270,26 +270,26 @@
|
||||
font-weight: 650;
|
||||
}
|
||||
}
|
||||
.mac-pro-license-status,
|
||||
.mac-native-license-status,
|
||||
.mac-wechat-environment-status {
|
||||
flex: 0 0 auto;
|
||||
color: var(--wxex-text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
.mac-pro-license-status.is-ready,
|
||||
.mac-native-license-status.is-ready,
|
||||
.mac-wechat-environment-status.is-ready,
|
||||
.mac-wechat-status-item .is-ready,
|
||||
.mac-wechat-capability-details .is-ready {
|
||||
color: var(--wxex-success);
|
||||
}
|
||||
.mac-pro-license-status.is-error {
|
||||
.mac-native-license-status.is-error {
|
||||
color: var(--wxex-danger);
|
||||
}
|
||||
.mac-pro-license-status.is-neutral,
|
||||
.mac-native-license-status.is-neutral,
|
||||
.mac-wechat-environment-status.is-neutral {
|
||||
color: var(--wxex-text-muted);
|
||||
}
|
||||
.mac-pro-device-row {
|
||||
.mac-native-device-row {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
@@ -298,7 +298,7 @@
|
||||
background: color-mix(in srgb, var(--wxex-text-primary) 4%, transparent);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.mac-pro-device-value {
|
||||
.mac-native-device-value {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
@@ -317,12 +317,12 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
.mac-pro-license-hint {
|
||||
.mac-native-license-hint {
|
||||
margin: -5px 0 0;
|
||||
color: var(--wxex-text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
.mac-pro-license-features {
|
||||
.mac-native-license-features {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
@@ -335,7 +335,7 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
.mac-pro-license-meta {
|
||||
.mac-native-license-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 24px;
|
||||
@@ -348,14 +348,14 @@
|
||||
font-weight: 550;
|
||||
}
|
||||
}
|
||||
.mac-pro-license-footer {
|
||||
.mac-native-license-footer {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
.mac-pro-identity-note {
|
||||
.mac-native-identity-note {
|
||||
margin: 0;
|
||||
}
|
||||
.mac-wechat-status-grid {
|
||||
@@ -462,12 +462,12 @@
|
||||
}
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.mac-pro-license-card,
|
||||
.mac-native-license-card,
|
||||
.mac-wechat-environment-card {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.mac-pro-license-header,
|
||||
.mac-native-license-header,
|
||||
.mac-wechat-environment-header {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
@@ -486,7 +486,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mac-pro-license-meta {
|
||||
.mac-native-license-meta {
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user