- Updated the dashboard settings partial to include a semi-transparent background for better visibility. - Introduced a new script for validating the syntax of dashboard item scripts, ensuring better error handling and diagnostics. - Added a comprehensive JavaScript file for managing dashboard items, including fetching, rendering, editing, and deleting items. - Implemented various utility functions for handling alerts, rewards, and modal interactions within the item management interface. - Created temporary scripts for debugging and parsing errors in item scripts, aiding in development and maintenance.
12 lines
517 B
Plaintext
12 lines
517 B
Plaintext
<div id="itemsRoot" data-guild-id="<%= selectedGuildId ? selectedGuildId : '' %>" class="p-4 bg-gray-800/50 rounded">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h2 class="text-white text-lg font-semibold">Items</h2>
|
|
<div>
|
|
<button id="createItemBtn" class="inline-flex items-center gap-2 px-3 py-1 bg-indigo-600 rounded text-white">Crear item</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="pageAlert" class="hidden mb-3"></div>
|
|
<script src="/assets/js/dashboard_items.js" defer></script>
|
|
</div>
|