From f77f05062f1b2ed691f8991379fcbaee55c7842a Mon Sep 17 00:00:00 2001 From: jelveh Date: Sat, 23 Nov 2024 14:50:02 -0800 Subject: [PATCH] tweak: improve minor ux for dev center --- src/dev-center/js/dev-center.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/dev-center/js/dev-center.js b/src/dev-center/js/dev-center.js index fb968c67..4babab01 100644 --- a/src/dev-center/js/dev-center.js +++ b/src/dev-center/js/dev-center.js @@ -52,6 +52,7 @@ const deploying_spinner = ``; const drop_area_placeholder = `

Drop your app folder and files here to deploy.

HTML, JS, CSS, ...

`; const index_missing_error = `Please upload an 'index.html' file or if you're uploading a directory, make sure it contains an 'index.html' file at its root.`; +const lock_svg = ''; // authUsername (async () => { @@ -488,7 +489,7 @@ function generate_edit_app_section(app) {
-

${html_encode(app.title)}

+

${html_encode(app.title)}${app.metadata?.locked ? lock_svg : ''}

Open @@ -521,7 +522,7 @@ function generate_edit_app_section(app) {
App has been successfully updated.×
-

Basic Info

+

Basic

@@ -556,7 +557,7 @@ function generate_edit_app_section(app) {

A comma-separated list of file type specifiers. For example if you include .txt, your apps could be opened when a user clicks on a TXT file.

-

Window Settings

+

Window

@@ -596,14 +597,14 @@ function generate_edit_app_section(app) {
-

Misc

+

Misc

When locked, the app cannot be deleted. This is useful to prevent accidental deletion of important apps.

-

Advanced

+

Advanced

@@ -1290,7 +1291,7 @@ function generate_app_card(app) { // Info h += `
`; // Title - h += `

${html_encode(app.title)}${app.metadata?.locked ? '' : ''}

`; + h += `

${html_encode(app.title)}${app.metadata?.locked ? lock_svg : ''}

`; // // Category // if (app.metadata?.category) { // const category = APP_CATEGORIES.find(c => c.id === app.metadata.category);