From 6b3374bc824ed388e39b158f87b47c1d19b22ac0 Mon Sep 17 00:00:00 2001 From: abhishek thakur <1183441+abhishekkrthakur@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:16:25 +0200 Subject: [PATCH] add support for dark mode (#749) --- src/autotrain/app/static/scripts/listeners.js | 18 +- src/autotrain/app/templates/duplicate.html | 20 +- src/autotrain/app/templates/error.html | 23 +- src/autotrain/app/templates/index.html | 217 +++++++++--------- src/autotrain/app/templates/login.html | 36 +-- 5 files changed, 168 insertions(+), 146 deletions(-) diff --git a/src/autotrain/app/static/scripts/listeners.js b/src/autotrain/app/static/scripts/listeners.js index c49e4e45ac..9638342aea 100644 --- a/src/autotrain/app/static/scripts/listeners.js +++ b/src/autotrain/app/static/scripts/listeners.js @@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', function () { params[key] = el.value; }); paramsTextarea.value = JSON.stringify(params, null, 2); - paramsTextarea.className = 'p-2.5 w-full text-sm text-gray-600 border-white border-transparent focus:border-transparent focus:ring-0' + //paramsTextarea.className = 'p-2.5 w-full text-sm text-gray-600 border-white border-transparent focus:border-transparent focus:ring-0' paramsTextarea.style.height = '600px'; }; const observeParamChanges = () => { @@ -75,33 +75,33 @@ document.addEventListener('DOMContentLoaded', function () { switch (config.type) { case 'number': element = `
Please Please DUPLICATE this space in order to use it
diff --git a/src/autotrain/app/templates/error.html b/src/autotrain/app/templates/error.html index 50bd209316..98419ddb4e 100644 --- a/src/autotrain/app/templates/error.html +++ b/src/autotrain/app/templates/error.html @@ -1,22 +1,31 @@ - + + - -HF_TOKEN environment variable is not set.
+ diff --git a/src/autotrain/app/templates/index.html b/src/autotrain/app/templates/index.html index 099a6bb399..9b8dd2b507 100644 --- a/src/autotrain/app/templates/index.html +++ b/src/autotrain/app/templates/index.html @@ -1,5 +1,5 @@ - + @@ -109,10 +109,10 @@ const fieldDiv = document.createElement('div'); fieldDiv.className = 'mb-2'; fieldDiv.innerHTML = ` -