From f11a0bf1fadbe851b8e721eaafc9b1b35efacd9e Mon Sep 17 00:00:00 2001
From: Szymon Porwolik
Date: Wed, 12 Nov 2025 23:46:08 +0100
Subject: [PATCH] Fixed copty to cliboard without https and moved the
javascript to seperate file
---
application/views/api/index.php | 10 ++--
application/views/interface_assets/footer.php | 59 +++++++++++++++----
assets/js/sections/api.js | 43 ++++++++++++++
3 files changed, 97 insertions(+), 15 deletions(-)
create mode 100644 assets/js/sections/api.js
diff --git a/application/views/api/index.php b/application/views/api/index.php
index 052561561..3c72dae56 100644
--- a/application/views/api/index.php
+++ b/application/views/api/index.php
@@ -16,7 +16,7 @@
=__("More Tools")?>
- = __("API URL"); ?> = __("The API URL for this Wavelog instance is"); ?>: " onClick='copyApiUrl()'>
+ = __("API URL"); ?> = __("The API URL for this Wavelog instance is"); ?>: " onClick='copyApiUrl(apiSiteUrl)'>
= __("Info"); ?> = __("It's good practice to delete a key if you are no longer using the associated application."); ?>
= __("Important"); ?> = __("On Clubstations the API Keys are personal and not shared. Clubstation users can only see their own keys."); ?>
@@ -41,7 +41,7 @@
result() as $row) { ?>
- user_callsign !== $this->session->userdata('cd_src_call')) {
+ user_callsign !== $this->session->userdata('cd_src_call')) {
$api_key = substr($row->key, 0, 2) . str_repeat('*', strlen($row->key) - 6) . substr($row->key, -4);
$masked = true;
} else {
@@ -72,10 +72,10 @@
|
= __("Edit"); ?>
-
+
= __("Test"); ?>
-
- description ?? '').'"');
?>
= __("Delete"); ?>
diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php
index 3f819c45b..2b199c471 100644
--- a/application/views/interface_assets/footer.php
+++ b/application/views/interface_assets/footer.php
@@ -436,22 +436,61 @@ $(function () {
|