mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Escape rootItems
in Dev Center before printing
This commit is contained in:
parent
09289b5004
commit
a2255521f2
@ -592,7 +592,7 @@ async function edit_app_section(cur_app_name) {
|
|||||||
let items = e.detail.items;
|
let items = e.detail.items;
|
||||||
|
|
||||||
// ----------------------------------------------------
|
// ----------------------------------------------------
|
||||||
// one Puter files dropped
|
// One Puter file dropped
|
||||||
// ----------------------------------------------------
|
// ----------------------------------------------------
|
||||||
if (items.length === 1 && !items[0].isDirectory) {
|
if (items.length === 1 && !items[0].isDirectory) {
|
||||||
if (items[0].name.toLowerCase() === 'index.html') {
|
if (items[0].name.toLowerCase() === 'index.html') {
|
||||||
@ -745,6 +745,7 @@ async function edit_app_section(cur_app_name) {
|
|||||||
else if (rootKeys.length > 3)
|
else if (rootKeys.length > 3)
|
||||||
rootItems = rootKeys[0] + ', ' + rootKeys[1] + ', and ' + (rootKeys.length - 2) + ' more item' + (rootKeys.length - 2 > 1 ? 's' : '');
|
rootItems = rootKeys[0] + ', ' + rootKeys[1] + ', and ' + (rootKeys.length - 2) + ' more item' + (rootKeys.length - 2 > 1 ? 's' : '');
|
||||||
|
|
||||||
|
rootItems = html_encode(rootItems);
|
||||||
$('.drop-area').removeClass('drop-area-hover');
|
$('.drop-area').removeClass('drop-area-hover');
|
||||||
$('.drop-area').addClass('drop-area-ready-to-deploy');
|
$('.drop-area').addClass('drop-area-ready-to-deploy');
|
||||||
drop_area_content = `<p style="margin-bottom:0; font-weight: 500;">${rootItems}</p><p>Ready to deploy 🚀</p>`;
|
drop_area_content = `<p style="margin-bottom:0; font-weight: 500;">${rootItems}</p><p>Ready to deploy 🚀</p>`;
|
||||||
|
Loading…
Reference in New Issue
Block a user