mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 12:32:59 +00:00
fe
This commit is contained in:
@@ -1498,11 +1498,9 @@ async function loadDynamicApps() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter out hardcoded apps and map to HTML
|
// Map all apps to HTML, including hardcoded ones
|
||||||
const dynamicApps = apps
|
const dynamicApps = apps.map(app => `
|
||||||
.filter(app => !app.id || !app.id.startsWith('hardcoded-'))
|
<div class="bg-white rounded-lg shadow p-4 flex items-center justify-between ${app.id && app.id.startsWith('hardcoded-') ? 'opacity-75' : ''}" data-app-id="${app.id}">
|
||||||
.map(app => `
|
|
||||||
<div class="bg-white rounded-lg shadow p-4 flex items-center justify-between" data-app-id="${app.id}">
|
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center space-x-4">
|
||||||
${app.icon ?
|
${app.icon ?
|
||||||
`<img src="/uploads/${app.icon}" alt="${app.name}" class="w-12 h-12 object-contain">` :
|
`<img src="/uploads/${app.icon}" alt="${app.name}" class="w-12 h-12 object-contain">` :
|
||||||
|
|||||||
Reference in New Issue
Block a user