feat: add browser extension origin save

This commit is contained in:
liumangmang
2026-06-02 15:32:43 +08:00
parent 84148f4a69
commit 3181a6f6cc
3 changed files with 45 additions and 2 deletions
+20 -1
View File
@@ -29,6 +29,14 @@
border-radius: 6px;
font-size: 13px;
}
.origin-row {
display: flex;
gap: 8px;
}
.origin-row input {
flex: 1;
min-width: 0;
}
button {
width: 100%;
margin-top: 12px;
@@ -40,6 +48,14 @@
font-weight: 600;
cursor: pointer;
}
.origin-row button {
width: auto;
margin-top: 0;
padding: 8px 10px;
white-space: nowrap;
background: #374151;
font-size: 12px;
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
@@ -64,7 +80,10 @@
<body>
<h1>SmartUp 凭证导入</h1>
<label for="smartup">SmartUp 地址</label>
<input id="smartup" placeholder="http://127.0.0.1:8899" />
<div class="origin-row">
<input id="smartup" placeholder="http://127.0.0.1:8899" />
<button id="save-origin" type="button">保存地址</button>
</div>
<label for="code">导入码</label>
<input id="code" placeholder="session_id:secret" />
<div class="hint">