diff --git a/.gitignore b/.gitignore index bb782b7..31284c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -*target* +target/ *.pem gurty.toml -certs \ No newline at end of file +certs +search_indexes +config.toml \ No newline at end of file diff --git a/dns/frontend/dashboard.lua b/dns/frontend/dashboard.lua index 43093e3..c6feba5 100644 --- a/dns/frontend/dashboard.lua +++ b/dns/frontend/dashboard.lua @@ -74,7 +74,7 @@ end local function loadDomains() print('Loading domains...') - local response = fetch('gurt://localhost:8877/auth/domains?page=1&size=100', { + local response = fetch('gurt://localhost:8877/auth/domains?page=1&limit=100', { headers = { Authorization = 'Bearer ' .. authToken } diff --git a/dns/frontend/domain.lua b/dns/frontend/domain.lua index 986cc9a..ab73ced 100644 --- a/dns/frontend/domain.lua +++ b/dns/frontend/domain.lua @@ -325,7 +325,7 @@ gurt.select('#add-record-btn'):on('click', function() local recordType = gurt.select('#record-type').value local recordName = gurt.select('#record-name').value local recordValue = gurt.select('#record-value').value - local recordTTL = tonumber(gurt.select('#record-ttl').value) or '' + local recordTTL = tonumber(gurt.select('#record-ttl').value) or 'none' if not recordValue or recordValue == '' then showError('record-error', 'Record value is required') diff --git a/dns/frontend/index.html b/dns/frontend/index.html index 3de60b0..c8f6168 100644 --- a/dns/frontend/index.html +++ b/dns/frontend/index.html @@ -20,7 +20,7 @@ } input { - w-full p-3 border border-gray-600 rounded-md bg-[#374151] text-white mb-4 placeholder:text-[#999999] outline-none active:border-red-500 + text-xs w-full p-3 border border-gray-600 rounded-md bg-[#374151] text-white mb-4 placeholder:text-[#999999] outline-none active:border-red-500 } button { @@ -51,4 +51,4 @@
-