simplify extension ui

This commit is contained in:
2026-05-28 00:59:37 +08:00
parent 3f86aeaf0c
commit 8e8d3d6da0
10 changed files with 1416 additions and 536 deletions

View File

@@ -17,7 +17,7 @@ const TOOLS: ToolDefinition[] = [
},
{
command: 'hplToolbox.openApplovinUpload',
title: 'AppLovin Demo Upload',
title: 'AppLovin Playable Preview',
description: 'Upload to p.applov.in (QR preview)',
},
{
@@ -80,7 +80,6 @@ function getHtml(version: string, betaToolsEnabled: boolean): string {
color: var(--vscode-foreground);
padding: 12px 8px;
}
h3 { margin: 0 0 12px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.7; }
.tools { flex: 1; }
.tool-btn {
display: block; width: 100%; text-align: left;
@@ -122,10 +121,15 @@ function getHtml(version: string, betaToolsEnabled: boolean): string {
background: var(--vscode-button-secondaryHoverBackground);
}
.beta-note { display: block; margin-top: 3px; color: var(--vscode-descriptionForeground); font-size: 11px; }
.footer {
margin-top: 10px;
color: var(--vscode-descriptionForeground);
font-size: 8px;
text-align: right;
}
</style>
</head>
<body>
<h3>HPL Toolbox ${version}</h3>
<div class="tools">
${toolButtons}
</div>
@@ -135,6 +139,7 @@ ${toolButtons}
<span class="beta-note">${betaToolsEnabled ? 'Beta tools are visible in this launcher.' : `${hiddenBetaCount} beta tool(s) hidden until enabled.`}</span>
</button>
</div>
<div class="footer">${version} - JJGC 00784</div>
<script>
const vscode = acquireVsCodeApi();
document.querySelectorAll('.tool-btn').forEach((btn) => {