From 874f7db0379a796b172fef55e082eab8c07a6533 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Tue, 28 Jul 2026 21:05:19 -0400 Subject: [PATCH] Unify profile.ejs's API-token UI onto app.modal Retires the static #secretModal/#editModal elements in favor of the shared app.modal singleton, matching the pattern already shipped in directory.ejs, proxy, and jump-host this round. Converts the always-visible create-form card into a "+ New Token" button + modal, switches badge classes from bg-* to text-bg-*, and replaces the checkmark-flash copy feedback (broken by FontAwesome's -to- replacement) with toast-based copyFieldValue. --- nodejs/views/profile.ejs | 274 ++++++++++++++++++--------------------- 1 file changed, 129 insertions(+), 145 deletions(-) diff --git a/nodejs/views/profile.ejs b/nodejs/views/profile.ejs index 25a6c8a..1fdf4ee 100644 --- a/nodejs/views/profile.ejs +++ b/nodejs/views/profile.ejs @@ -220,9 +220,6 @@ if(isOwnProfile){ $('#own-api-tokens-section').show(); tableAJAX(); - $('form[action="api-token/"]').attr('evalAJAX', - 'showSecret(data.token); tableAJAX(); $form.trigger("reset");' - ); } }); @@ -545,83 +542,35 @@ - - - - - -