mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Introduced Docker management UI components: Overview, Logs, Console, Preview, and Edit. - Added responsive Card/Detail layouts with grouping, bulk actions, and tabs. - New UnraidToaster component and global toaster configuration. - Component auto-mounting improved with async loading and multi-selector support. - UI/UX - Overhauled theme system (light/dark tokens, primary/orange accents) and added theme variants. - Header OS version now includes integrated changelog modal. - Registration displays warning states; multiple visual polish updates. - API - CPU load now includes percentGuest and percentSteal metrics. - Chores - Migrated web app to Vite; updated artifacts and manifests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: mdatelle <mike@datelle.net> Co-authored-by: Michael Datelle <mdatelle@icloud.com>
22 lines
757 B
JavaScript
22 lines
757 B
JavaScript
import fs from 'fs';
|
|
|
|
// Read the JSON file
|
|
const filePath = '../web/.nuxt/nuxt-custom-elements/dist/unraid-components/manifest.json';
|
|
|
|
// Check if file exists (web components are now disabled in favor of standalone)
|
|
if (!fs.existsSync(filePath)) {
|
|
console.log('Web components manifest not found (using standalone mount instead)');
|
|
process.exit(0);
|
|
}
|
|
|
|
const jsonData = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
|
|
// Add timestamp (ts) to the JSON data
|
|
const timestamp = Math.floor(new Date().getTime() / 1000); // Current timestamp epoch
|
|
jsonData.ts = timestamp;
|
|
|
|
// Write the updated JSON back to the file
|
|
fs.writeFileSync(filePath, JSON.stringify(jsonData, null, 2));
|
|
|
|
console.log(`Timestamp: ${timestamp} added to the web component manifest.`);
|