Compare commits

..

No commits in common. "7f4220238307a8b07d5f8560b5b2923bbd48ea27" and "ef38edfcd487ff368703f01cbece7b9470713f71" have entirely different histories.

4 changed files with 16 additions and 6 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.4.5"
current_version = "1.4.4"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.4.5
1.4.4

12
app.py
View File

@ -315,7 +315,17 @@ def config_dashboard():
"""Renders the configuration dashboard."""
if not session.get('config_logged_in'):
return redirect(url_for('config'))
return render_template('config_dashboard.html')
DNS_FILE = os.path.join(os.path.dirname(__file__), '..', 'KTVManager_python', 'ktvmanager', 'lib', 'DNS_list.txt')
def read_dns_list():
if not os.path.exists(DNS_FILE):
return []
with open(DNS_FILE, 'r') as f:
return [line.strip() for line in f.readlines()]
dns_list = read_dns_list()
return render_template('config_dashboard.html', dns_list=dns_list)
@app.route('/check-expiring-accounts', methods=['POST'])
def check_expiring_accounts():

View File

@ -38,7 +38,7 @@
const dnsEntryInput = document.getElementById('dns-entry-input');
function fetchDnsList() {
fetch("{{ config.BASE_URL }}/dns")
fetch("{{ url_for('dns.get_dns_list') }}")
.then(response => response.json())
.then(data => {
dnsList.innerHTML = '';
@ -63,7 +63,7 @@
function addDnsEntry() {
const dnsEntry = dnsEntryInput.value.trim();
if (dnsEntry) {
fetch("{{ config.BASE_URL }}/dns", {
fetch("{{ url_for('dns.add_dns') }}", {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@ -77,7 +77,7 @@
}
function removeDnsEntry(dnsEntry) {
fetch("{{ config.BASE_URL }}/dns", {
fetch("{{ url_for('dns.remove_dns') }}", {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'