fix: default updater owner & repo to ongtrieuhau/web-giao-ban
This commit is contained in:
+2
-2
@@ -206,11 +206,11 @@
|
||||
<div class="grid grid-cols-2 gap-3">
|
||||
<div>
|
||||
<label class="block font-semibold text-slate-700 mb-1">Tổ chức / Owner:</label>
|
||||
<input type="text" id="cfgGiteaOwner" class="w-full rounded-lg border border-slate-300 px-3 py-2 bg-slate-50 font-mono outline-none focus:ring-2 focus:ring-indigo-500" value="hdhiswork">
|
||||
<input type="text" id="cfgGiteaOwner" class="w-full rounded-lg border border-slate-300 px-3 py-2 bg-slate-50 font-mono outline-none focus:ring-2 focus:ring-indigo-500" value="ongtrieuhau">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block font-semibold text-slate-700 mb-1">Repository:</label>
|
||||
<input type="text" id="cfgGiteaRepo" class="w-full rounded-lg border border-slate-300 px-3 py-2 bg-slate-50 font-mono outline-none focus:ring-2 focus:ring-indigo-500" value="DUAN">
|
||||
<input type="text" id="cfgGiteaRepo" class="w-full rounded-lg border border-slate-300 px-3 py-2 bg-slate-50 font-mono outline-none focus:ring-2 focus:ring-indigo-500" value="web-giao-ban">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+4
-2
@@ -86,8 +86,10 @@ async function loadConfig() {
|
||||
|
||||
// Gitea Updater
|
||||
document.getElementById('cfgGiteaUrl').value = cfg.updater.gitea_url || 'https://i.dh-his.com';
|
||||
document.getElementById('cfgGiteaOwner').value = cfg.updater.owner || 'hdhiswork';
|
||||
document.getElementById('cfgGiteaRepo').value = cfg.updater.repo || 'DUAN';
|
||||
const owner = (cfg.updater.owner && cfg.updater.owner !== 'hdhiswork') ? cfg.updater.owner : 'ongtrieuhau';
|
||||
const repo = (cfg.updater.repo && cfg.updater.repo !== 'DUAN') ? cfg.updater.repo : 'web-giao-ban';
|
||||
document.getElementById('cfgGiteaOwner').value = owner;
|
||||
document.getElementById('cfgGiteaRepo').value = repo;
|
||||
document.getElementById('cfgGiteaToken').value = '';
|
||||
|
||||
const ver = cfg.updater.current_version || 'v1.0.0';
|
||||
|
||||
Reference in New Issue
Block a user