diff --git a/src/dev-center/css/style.css b/src/dev-center/css/style.css index e08df526d..345ce6c9e 100644 --- a/src/dev-center/css/style.css +++ b/src/dev-center/css/style.css @@ -216,7 +216,9 @@ h1 .app-count, h1 .worker-count, h1 .website-count{ .refresh-app-list:hover, .refresh-worker-list:hover, .refresh-website-list:hover { opacity: 1; } - +.refresh-icon{ + width: 18px; height: 18px; margin-top: -2px; display: block; +} a { color: #0d6efd; text-decoration: none; @@ -952,19 +954,18 @@ ol li:before { float:right; margin-bottom: 10px; } -.create-an-app-btn img, .create-a-website-btn img{ - width: 20px; +.create-an-app-btn img, .create-a-website-btn img, .create-a-worker-btn img{ + width: 25px; + height: 25px; margin-bottom: -5px; margin-right: 10px; + margin-bottom: -7px; + margin-right: 4px; } .create-a-worker-btn, .create-a-website-btn{ float:right; margin-bottom: 10px; } -.create-a-worker-btn img, .create-a-website-btn img{ - width: 20px; - margin-bottom: -5px; - margin-right: 5px; -} + .jip-submit-btn{ float: left; margin-top: 10px; @@ -1137,6 +1138,12 @@ dialog{ border: 2px solid #ebebeb; font-size: 14px; } +.search-container{ + margin-bottom: 10px; + position: relative; + width: 300px; + float:left; +} .search::placeholder { opacity: 0.7; } @@ -1339,12 +1346,12 @@ dialog{ opacity: 0.7; width: 30px; height: 30px; - border-radius: 3px; + border-radius: 5px; } .options-icon:hover { opacity: 1; - background-color: #ededed; + background-color: #edededb4; } .worker-checkbox, .app-checkbox, .website-checkbox { diff --git a/src/dev-center/img/plus.svg b/src/dev-center/img/plus.svg new file mode 100644 index 000000000..7ed5e22e6 --- /dev/null +++ b/src/dev-center/img/plus.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/dev-center/index.html b/src/dev-center/index.html index 0014e9b63..d02d84378 100644 --- a/src/dev-center/index.html +++ b/src/dev-center/index.html @@ -19,6 +19,9 @@ + + + @@ -178,7 +181,7 @@ @@ -187,7 +190,7 @@ @@ -196,7 +199,7 @@ @@ -230,16 +233,16 @@

My Apps

- +
-
+
- +
@@ -269,13 +272,13 @@ -
+
- +
@@ -298,16 +301,16 @@

My Websites

- +
-
+
- +
diff --git a/src/dev-center/js/websites.js b/src/dev-center/js/websites.js index b8e509882..143e1435e 100644 --- a/src/dev-center/js/websites.js +++ b/src/dev-center/js/websites.js @@ -172,7 +172,7 @@ function count_websites() { $('.website-card').each(function () { count++; }) - $('.website-count').html(count); + $('.website-count').html(count ? count : ''); return count; } diff --git a/src/dev-center/js/workers.js b/src/dev-center/js/workers.js index 2e89d06a9..d6ad910e4 100644 --- a/src/dev-center/js/workers.js +++ b/src/dev-center/js/workers.js @@ -14,7 +14,11 @@ window.refresh_worker_list = async (show_loading = false) => { puter.ui.showSpinner(); // puter.workers.list() returns an array of worker objects - window.workers = await puter.workers.list(); + try { + window.workers = await puter.workers.list(); + } catch (err) { + console.error('Error refreshing worker list:', err); + } // Get workers if (window.activeTab === 'workers' && window.workers.length > 0) { @@ -198,7 +202,7 @@ function count_workers() { $('.worker-card').each(function () { count++; }) - $('.worker-count').html(count); + $('.worker-count').html(count ? count : ''); return count; }