MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / resetFrontendLayoutConfig

Function resetFrontendLayoutConfig

panel/src/app/service/frontend_layout.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43export function resetFrontendLayoutConfig() {
44 storage.deleteFile(LAYOUT_CONFIG_NAME);
45 const filesDir = path.join(process.cwd(), SAVE_DIR_PATH);
46 if (fs.existsSync(filesDir)) {
47 for (const fileName of fs.readdirSync(filesDir)) {
48 fs.remove(path.join(filesDir, fileName), () => {});
49 }
50 }
51}
52
53export enum LayoutCardHeight {
54 MINI = "100px",

Callers 1

settings_router.tsFile · 0.90

Calls 1

deleteFileMethod · 0.80

Tested by

no test coverage detected