fix: 更新提醒文本以强调导出配置的重要性

This commit is contained in:
QLHazyCoder
2026-04-25 00:17:46 +08:00
parent c1ce4e9bc3
commit 19323c08bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@
</div> </div>
<button id="btn-open-release" class="btn btn-primary btn-sm" type="button">前往更新</button> <button id="btn-open-release" class="btn btn-primary btn-sm" type="button">前往更新</button>
</div> </div>
<p class="update-card-reminder">请更新前导出配置</p> <p class="update-card-reminder">一定请先导出配置,再执行更新</p>
<div id="update-release-list" class="update-release-list"></div> <div id="update-release-list" class="update-release-list"></div>
</div> </div>
</section> </section>
+1 -1
View File
@@ -23,7 +23,7 @@ test('update card highlights exporting config before upgrade', () => {
const html = fs.readFileSync('sidepanel/sidepanel.html', 'utf8'); const html = fs.readFileSync('sidepanel/sidepanel.html', 'utf8');
const css = fs.readFileSync('sidepanel/sidepanel.css', 'utf8'); const css = fs.readFileSync('sidepanel/sidepanel.css', 'utf8');
assert.match(html, /<p class="update-card-reminder">请更新前导出配置<\/p>/); assert.match(html, /<p class="update-card-reminder">一定请先导出配置,再执行更新<\/p>/);
assert.match(css, /\.update-card-reminder\s*\{/); assert.match(css, /\.update-card-reminder\s*\{/);
assert.match(css, /font-weight:\s*700;/); assert.match(css, /font-weight:\s*700;/);
assert.match(css, /color:\s*var\(--orange\);/); assert.match(css, /color:\s*var\(--orange\);/);