@@ -52,6 +52,7 @@ const deploying_spinner = `<svg width="24" height="24" viewBox="0 0 24 24" xmlns
52
52
const loading_spinner = `<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_P7sC{transform-origin:center;animation:spinner_svv2 .75s infinite linear}@keyframes spinner_svv2{100%{transform:rotate(360deg)}}</style><path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z" class="spinner_P7sC"/></svg>` ;
53
53
const drop_area_placeholder = `<p>Drop your app folder and files here to deploy.</p><p style="font-size: 16px; margin-top: 0px;">HTML, JS, CSS, ...</p>` ;
54
54
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.` ;
55
+ const lock_svg = '<svg style="width: 20px; height: 20px; margin-bottom: -5px; margin-left: 5px; opacity: 0.5;" width="59px" height="59px" stroke-width="1.9" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#000000"><path d="M16 12H17.4C17.7314 12 18 12.2686 18 12.6V19.4C18 19.7314 17.7314 20 17.4 20H6.6C6.26863 20 6 19.7314 6 19.4V12.6C6 12.2686 6.26863 12 6.6 12H8M16 12V8C16 6.66667 15.2 4 12 4C8.8 4 8 6.66667 8 8V12M16 12H8" stroke="#000000" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"></path></svg>' ;
55
56
56
57
// authUsername
57
58
( async ( ) => {
@@ -488,7 +489,7 @@ function generate_edit_app_section(app) {
488
489
<div class="edit-app-navbar">
489
490
<div style="flex-grow:1;">
490
491
<img class="app-icon" data-uid="${ html_encode ( app . uid ) } " src="${ html_encode ( ! app . icon ? './img/app.svg' : app . icon ) } ">
491
- <h3 class="app-title" data-uid="${ html_encode ( app . uid ) } ">${ html_encode ( app . title ) } </h3>
492
+ <h3 class="app-title" data-uid="${ html_encode ( app . uid ) } ">${ html_encode ( app . title ) } ${ app . metadata ?. locked ? lock_svg : '' } </h3>
492
493
<div style="margin-top: 4px; margin-bottom: 4px;">
493
494
<span class="open-app-btn" data-app-uid="${ html_encode ( app . uid ) } " data-app-name="${ html_encode ( app . name ) } ">Open</span>
494
495
<span style="margin: 5px; opacity: 0.3;">•</span>
@@ -521,7 +522,7 @@ function generate_edit_app_section(app) {
521
522
<div class="success" id="edit-app-success">App has been successfully updated.<span class="close-success-msg">×</span></div>
522
523
<input type="hidden" id="edit-app-uid" value="${ html_encode ( app . uid ) } ">
523
524
524
- <h3 style="border-bottom: 1px solid #EEE; margin-top: 40px;">Basic Info </h3>
525
+ <h3 style="font-size: 23px; border-bottom: 1px solid #EEE; margin-top: 40px;">Basic</h3>
525
526
<label for="edit-app-title">Title</label>
526
527
<input type="text" id="edit-app-title" placeholder="My Awesome App!" value="${ html_encode ( app . title ) } ">
527
528
@@ -556,7 +557,7 @@ function generate_edit_app_section(app) {
556
557
<p style="margin-top: 10px; font-size:13px;">A comma-separated list of file type specifiers. For example if you include <code>.txt</code>, your apps could be opened when a user clicks on a TXT file.</p>
557
558
<textarea id="edit-app-filetype-associations" placeholder=".txt, .jpg, application/json">${ app . filetype_associations } </textarea>
558
559
559
- <h3 style="border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Window Settings </h3>
560
+ <h3 style="font-size: 23px; border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Window</h3>
560
561
<div>
561
562
<input type="checkbox" id="edit-app-background" name="edit-app-background" value="true" style="margin-top:30px;" ${ app . background ? 'checked' : '' } >
562
563
<label for="edit-app-background" style="display: inline;">Run as a background process.</label>
@@ -596,14 +597,14 @@ function generate_edit_app_section(app) {
596
597
<label for="edit-app-hide-titlebar" style="display: inline;">Hide window titlebar</label>
597
598
</div>
598
599
599
- <h3 style="border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Misc</h3>
600
+ <h3 style="font-size: 23px; border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Misc</h3>
600
601
<div style="margin-top:30px;">
601
602
<input type="checkbox" id="edit-app-locked" name="edit-app-locked" value="true" ${ app . metadata ?. locked ? 'checked' : '' } >
602
603
<label for="edit-app-locked" style="display: inline;">Locked</label>
603
604
<p>When locked, the app cannot be deleted. This is useful to prevent accidental deletion of important apps.</p>
604
605
</div>
605
606
606
- <h3 style="border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Advanced</h3>
607
+ <h3 style="font-size: 23px; border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Advanced</h3>
607
608
<div style="margin-top:30px;">
608
609
<input type="checkbox" id="edit-app-credentialless" name="edit-app-credentialless" value="true" ${ ( app . metadata ?. credentialless === true || app . metadata === undefined || app . metadata ?. credentialless === undefined ) ? 'checked' : '' } >
609
610
<label for="edit-app-credentialless" style="display: inline;">Credentialless</label>
@@ -1290,7 +1291,7 @@ function generate_app_card(app) {
1290
1291
// Info
1291
1292
h += `<div style="float:left; padding-left: 10px;">` ;
1292
1293
// Title
1293
- h += `<h3 class="got-to-edit-app app-card-title" data-app-name="${ html_encode ( app . name ) } " data-app-title="${ html_encode ( app . title ) } " data-app-uid="${ html_encode ( app . uid ) } ">${ html_encode ( app . title ) } ${ app . metadata ?. locked ? '<svg style="width: 20px; height: 20px; margin-bottom: -5px; margin-left: 5px; opacity: 0.5;" width="59px" height="59px" stroke-width="1.9" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#000000"><path d="M16 12H17.4C17.7314 12 18 12.2686 18 12.6V19.4C18 19.7314 17.7314 20 17.4 20H6.6C6.26863 20 6 19.7314 6 19.4V12.6C6 12.2686 6.26863 12 6.6 12H8M16 12V8C16 6.66667 15.2 4 12 4C8.8 4 8 6.66667 8 8V12M16 12H8" stroke="#000000" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"></path></svg>' : '' } </h3>` ;
1294
+ h += `<h3 class="got-to-edit-app app-card-title" data-app-name="${ html_encode ( app . name ) } " data-app-title="${ html_encode ( app . title ) } " data-app-uid="${ html_encode ( app . uid ) } ">${ html_encode ( app . title ) } ${ app . metadata ?. locked ? lock_svg : '' } </h3>` ;
1294
1295
// // Category
1295
1296
// if (app.metadata?.category) {
1296
1297
// const category = APP_CATEGORIES.find(c => c.id === app.metadata.category);
0 commit comments