From e9caa4a217f90a120bf61cc8a97a0a49342f86c4 Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Thu, 4 Dec 2025 00:32:13 +0100 Subject: [PATCH] fix lint --- .claude-flow/metrics/system-metrics.json | 1200 +++++++++++++++++ apps/bauntown/apps/landing/eslint.config.js | 11 - apps/calendar/apps/landing/eslint.config.js | 11 - .../packages/shared/src/types/calendar.ts | 10 +- apps/chat/apps/landing/eslint.config.js | 11 - .../apps/landing/eslint.config.js | 11 - apps/manacore/apps/landing/eslint.config.js | 11 - apps/manadeck/apps/landing/eslint.config.js | 11 - apps/memoro/apps/landing/eslint.config.js | 11 - apps/news/apps/landing/eslint.config.js | 11 - apps/nutriphi/apps/landing/eslint.config.js | 11 - apps/picture/apps/landing/eslint.config.js | 11 - .../packages/design-tokens/native/theme.mjs | 1017 +++++++------- .../packages/mobile-ui/cli/src/utils/files.ts | 2 +- .../mobile-ui/cli/src/utils/registry.ts | 2 +- apps/presi/apps/landing/eslint.config.js | 11 - apps/quote/apps/landing/eslint.config.js | 11 - apps/wisekeep/apps/landing/eslint.config.js | 11 - apps/zitare/apps/landing/eslint.config.js | 11 - .../packages/web-ui/src/stores/toast.ts | 2 +- eslint.config.mjs | 14 + games/whopixels/js/scenes/BootScene.js | 4 +- games/whopixels/server.js | 2 +- package.json | 4 +- packages/eslint-config/typescript.js | 2 + .../src/decorators/current-user.decorator.ts | 2 +- .../interfaces/mana-core-options.interface.ts | 2 +- .../src/services/credit-client.service.ts | 15 +- packages/news-database/src/index.ts | 2 +- packages/shared-auth-stores/src/types.ts | 2 - packages/shared-auth/src/core/authService.ts | 7 +- packages/shared-auth/src/core/jwtUtils.ts | 2 +- packages/shared-config/src/env.ts | 2 +- packages/shared-config/src/features.ts | 2 +- .../src/createCreditService.ts | 9 +- packages/shared-credit-service/src/types.ts | 2 - .../shared-errors/src/errors/app-error.ts | 6 +- .../src/nestjs/app-exception.filter.ts | 2 +- .../src/createFeedbackService.ts | 1 - .../src/decorators/current-user.decorator.ts | 4 +- packages/shared-supabase/src/index.ts | 2 +- .../src/user-settings-store.svelte.ts | 6 +- packages/shared-utils/src/date.ts | 2 +- packages/shared-utils/src/format.ts | 16 +- packages/shared-utils/src/string.ts | 2 +- scripts/generate-env.mjs | 11 +- 46 files changed, 1784 insertions(+), 728 deletions(-) delete mode 100644 apps/bauntown/apps/landing/eslint.config.js delete mode 100644 apps/calendar/apps/landing/eslint.config.js delete mode 100644 apps/chat/apps/landing/eslint.config.js delete mode 100644 apps/maerchenzauber/apps/landing/eslint.config.js delete mode 100644 apps/manacore/apps/landing/eslint.config.js delete mode 100644 apps/manadeck/apps/landing/eslint.config.js delete mode 100644 apps/memoro/apps/landing/eslint.config.js delete mode 100644 apps/news/apps/landing/eslint.config.js delete mode 100644 apps/nutriphi/apps/landing/eslint.config.js delete mode 100644 apps/picture/apps/landing/eslint.config.js delete mode 100644 apps/presi/apps/landing/eslint.config.js delete mode 100644 apps/quote/apps/landing/eslint.config.js delete mode 100644 apps/wisekeep/apps/landing/eslint.config.js delete mode 100644 apps/zitare/apps/landing/eslint.config.js diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json index f318b78fa..b02b4ddac 100644 --- a/.claude-flow/metrics/system-metrics.json +++ b/.claude-flow/metrics/system-metrics.json @@ -190,5 +190,1205 @@ "cpuLoad": 0.14306640625, "platform": "darwin", "uptime": 165739 + }, + { + "timestamp": 1764801747189, + "memoryTotal": 34359738368, + "memoryUsed": 34252701696, + "memoryFree": 107036672, + "memoryUsagePercent": 99.6884822845459, + "memoryEfficiency": 0.31151771545410156, + "cpuCount": 12, + "cpuLoad": 0.13777669270833334, + "platform": "darwin", + "uptime": 165769 + }, + { + "timestamp": 1764801777190, + "memoryTotal": 34359738368, + "memoryUsed": 31789268992, + "memoryFree": 2570469376, + "memoryUsagePercent": 92.51894950866699, + "memoryEfficiency": 7.481050491333008, + "cpuCount": 12, + "cpuLoad": 0.2985432942708333, + "platform": "darwin", + "uptime": 165799 + }, + { + "timestamp": 1764801807192, + "memoryTotal": 34359738368, + "memoryUsed": 32492240896, + "memoryFree": 1867497472, + "memoryUsagePercent": 94.56486701965332, + "memoryEfficiency": 5.43513298034668, + "cpuCount": 12, + "cpuLoad": 0.228271484375, + "platform": "darwin", + "uptime": 165829 + }, + { + "timestamp": 1764801837193, + "memoryTotal": 34359738368, + "memoryUsed": 33594834944, + "memoryFree": 764903424, + "memoryUsagePercent": 97.77383804321289, + "memoryEfficiency": 2.2261619567871094, + "cpuCount": 12, + "cpuLoad": 0.4375406901041667, + "platform": "darwin", + "uptime": 165859 + }, + { + "timestamp": 1764801867195, + "memoryTotal": 34359738368, + "memoryUsed": 34115747840, + "memoryFree": 243990528, + "memoryUsagePercent": 99.2898941040039, + "memoryEfficiency": 0.7101058959960938, + "cpuCount": 12, + "cpuLoad": 0.3369954427083333, + "platform": "darwin", + "uptime": 165889 + }, + { + "timestamp": 1764801897196, + "memoryTotal": 34359738368, + "memoryUsed": 34266759168, + "memoryFree": 92979200, + "memoryUsagePercent": 99.72939491271973, + "memoryEfficiency": 0.27060508728027344, + "cpuCount": 12, + "cpuLoad": 0.3223876953125, + "platform": "darwin", + "uptime": 165919 + }, + { + "timestamp": 1764801927198, + "memoryTotal": 34359738368, + "memoryUsed": 34255568896, + "memoryFree": 104169472, + "memoryUsagePercent": 99.69682693481445, + "memoryEfficiency": 0.3031730651855469, + "cpuCount": 12, + "cpuLoad": 0.2283935546875, + "platform": "darwin", + "uptime": 165949 + }, + { + "timestamp": 1764801957199, + "memoryTotal": 34359738368, + "memoryUsed": 34242625536, + "memoryFree": 117112832, + "memoryUsagePercent": 99.6591567993164, + "memoryEfficiency": 0.34084320068359375, + "cpuCount": 12, + "cpuLoad": 0.2630208333333333, + "platform": "darwin", + "uptime": 165979 + }, + { + "timestamp": 1764801987200, + "memoryTotal": 34359738368, + "memoryUsed": 33795866624, + "memoryFree": 563871744, + "memoryUsagePercent": 98.35891723632812, + "memoryEfficiency": 1.641082763671875, + "cpuCount": 12, + "cpuLoad": 0.5034586588541666, + "platform": "darwin", + "uptime": 166009 + }, + { + "timestamp": 1764802017200, + "memoryTotal": 34359738368, + "memoryUsed": 34246017024, + "memoryFree": 113721344, + "memoryUsagePercent": 99.66902732849121, + "memoryEfficiency": 0.33097267150878906, + "cpuCount": 12, + "cpuLoad": 0.3601888020833333, + "platform": "darwin", + "uptime": 166039 + }, + { + "timestamp": 1764802047201, + "memoryTotal": 34359738368, + "memoryUsed": 31782846464, + "memoryFree": 2576891904, + "memoryUsagePercent": 92.50025749206543, + "memoryEfficiency": 7.49974250793457, + "cpuCount": 12, + "cpuLoad": 0.2558186848958333, + "platform": "darwin", + "uptime": 166069 + }, + { + "timestamp": 1764802077202, + "memoryTotal": 34359738368, + "memoryUsed": 32250986496, + "memoryFree": 2108751872, + "memoryUsagePercent": 93.86272430419922, + "memoryEfficiency": 6.137275695800781, + "cpuCount": 12, + "cpuLoad": 0.1943359375, + "platform": "darwin", + "uptime": 166099 + }, + { + "timestamp": 1764802107203, + "memoryTotal": 34359738368, + "memoryUsed": 32287342592, + "memoryFree": 2072395776, + "memoryUsagePercent": 93.96853446960449, + "memoryEfficiency": 6.031465530395508, + "cpuCount": 12, + "cpuLoad": 0.15450032552083334, + "platform": "darwin", + "uptime": 166129 + }, + { + "timestamp": 1764802137204, + "memoryTotal": 34359738368, + "memoryUsed": 32872005632, + "memoryFree": 1487732736, + "memoryUsagePercent": 95.67012786865234, + "memoryEfficiency": 4.329872131347656, + "cpuCount": 12, + "cpuLoad": 0.1551513671875, + "platform": "darwin", + "uptime": 166159 + }, + { + "timestamp": 1764802167205, + "memoryTotal": 34359738368, + "memoryUsed": 33340588032, + "memoryFree": 1019150336, + "memoryUsagePercent": 97.03388214111328, + "memoryEfficiency": 2.9661178588867188, + "cpuCount": 12, + "cpuLoad": 0.13468424479166666, + "platform": "darwin", + "uptime": 166189 + }, + { + "timestamp": 1764802197207, + "memoryTotal": 34359738368, + "memoryUsed": 33546076160, + "memoryFree": 813662208, + "memoryUsagePercent": 97.63193130493164, + "memoryEfficiency": 2.3680686950683594, + "cpuCount": 12, + "cpuLoad": 0.1441650390625, + "platform": "darwin", + "uptime": 166219 + }, + { + "timestamp": 1764802227208, + "memoryTotal": 34359738368, + "memoryUsed": 33779236864, + "memoryFree": 580501504, + "memoryUsagePercent": 98.31051826477051, + "memoryEfficiency": 1.6894817352294922, + "cpuCount": 12, + "cpuLoad": 0.170166015625, + "platform": "darwin", + "uptime": 166249 + }, + { + "timestamp": 1764802257210, + "memoryTotal": 34359738368, + "memoryUsed": 33845870592, + "memoryFree": 513867776, + "memoryUsagePercent": 98.50444793701172, + "memoryEfficiency": 1.4955520629882812, + "cpuCount": 12, + "cpuLoad": 0.18473307291666666, + "platform": "darwin", + "uptime": 166279 + }, + { + "timestamp": 1764802287211, + "memoryTotal": 34359738368, + "memoryUsed": 34235056128, + "memoryFree": 124682240, + "memoryUsagePercent": 99.63712692260742, + "memoryEfficiency": 0.3628730773925781, + "cpuCount": 12, + "cpuLoad": 0.14347330729166666, + "platform": "darwin", + "uptime": 166309 + }, + { + "timestamp": 1764802317212, + "memoryTotal": 34359738368, + "memoryUsed": 34210660352, + "memoryFree": 149078016, + "memoryUsagePercent": 99.56612586975098, + "memoryEfficiency": 0.43387413024902344, + "cpuCount": 12, + "cpuLoad": 0.20035807291666666, + "platform": "darwin", + "uptime": 166339 + }, + { + "timestamp": 1764802347213, + "memoryTotal": 34359738368, + "memoryUsed": 34050736128, + "memoryFree": 309002240, + "memoryUsagePercent": 99.1006851196289, + "memoryEfficiency": 0.8993148803710938, + "cpuCount": 12, + "cpuLoad": 0.18831380208333334, + "platform": "darwin", + "uptime": 166369 + }, + { + "timestamp": 1764802377214, + "memoryTotal": 34359738368, + "memoryUsed": 34266578944, + "memoryFree": 93159424, + "memoryUsagePercent": 99.7288703918457, + "memoryEfficiency": 0.2711296081542969, + "cpuCount": 12, + "cpuLoad": 0.24503580729166666, + "platform": "darwin", + "uptime": 166399 + }, + { + "timestamp": 1764802407215, + "memoryTotal": 34359738368, + "memoryUsed": 34224930816, + "memoryFree": 134807552, + "memoryUsagePercent": 99.60765838623047, + "memoryEfficiency": 0.39234161376953125, + "cpuCount": 12, + "cpuLoad": 0.3671875, + "platform": "darwin", + "uptime": 166429 + }, + { + "timestamp": 1764802437216, + "memoryTotal": 34359738368, + "memoryUsed": 34183938048, + "memoryFree": 175800320, + "memoryUsagePercent": 99.48835372924805, + "memoryEfficiency": 0.5116462707519531, + "cpuCount": 12, + "cpuLoad": 0.2810465494791667, + "platform": "darwin", + "uptime": 166459 + }, + { + "timestamp": 1764802467218, + "memoryTotal": 34359738368, + "memoryUsed": 34048901120, + "memoryFree": 310837248, + "memoryUsagePercent": 99.09534454345703, + "memoryEfficiency": 0.9046554565429688, + "cpuCount": 12, + "cpuLoad": 0.20487467447916666, + "platform": "darwin", + "uptime": 166489 + }, + { + "timestamp": 1764802497219, + "memoryTotal": 34359738368, + "memoryUsed": 34060861440, + "memoryFree": 298876928, + "memoryUsagePercent": 99.13015365600586, + "memoryEfficiency": 0.8698463439941406, + "cpuCount": 12, + "cpuLoad": 0.1571044921875, + "platform": "darwin", + "uptime": 166519 + }, + { + "timestamp": 1764802527221, + "memoryTotal": 34359738368, + "memoryUsed": 34274754560, + "memoryFree": 84983808, + "memoryUsagePercent": 99.75266456604004, + "memoryEfficiency": 0.24733543395996094, + "cpuCount": 12, + "cpuLoad": 0.13077799479166666, + "platform": "darwin", + "uptime": 166549 + }, + { + "timestamp": 1764802557222, + "memoryTotal": 34359738368, + "memoryUsed": 34244870144, + "memoryFree": 114868224, + "memoryUsagePercent": 99.66568946838379, + "memoryEfficiency": 0.33431053161621094, + "cpuCount": 12, + "cpuLoad": 0.10628255208333333, + "platform": "darwin", + "uptime": 166579 + }, + { + "timestamp": 1764802587223, + "memoryTotal": 34359738368, + "memoryUsed": 34220195840, + "memoryFree": 139542528, + "memoryUsagePercent": 99.5938777923584, + "memoryEfficiency": 0.40612220764160156, + "cpuCount": 12, + "cpuLoad": 0.09073893229166667, + "platform": "darwin", + "uptime": 166609 + }, + { + "timestamp": 1764802617224, + "memoryTotal": 34359738368, + "memoryUsed": 34025930752, + "memoryFree": 333807616, + "memoryUsagePercent": 99.02849197387695, + "memoryEfficiency": 0.9715080261230469, + "cpuCount": 12, + "cpuLoad": 0.13680013020833334, + "platform": "darwin", + "uptime": 166639 + }, + { + "timestamp": 1764802647226, + "memoryTotal": 34359738368, + "memoryUsed": 34231894016, + "memoryFree": 127844352, + "memoryUsagePercent": 99.6279239654541, + "memoryEfficiency": 0.37207603454589844, + "cpuCount": 12, + "cpuLoad": 0.17045084635416666, + "platform": "darwin", + "uptime": 166669 + }, + { + "timestamp": 1764802677228, + "memoryTotal": 34359738368, + "memoryUsed": 34127970304, + "memoryFree": 231768064, + "memoryUsagePercent": 99.32546615600586, + "memoryEfficiency": 0.6745338439941406, + "cpuCount": 12, + "cpuLoad": 0.136474609375, + "platform": "darwin", + "uptime": 166699 + }, + { + "timestamp": 1764802707229, + "memoryTotal": 34359738368, + "memoryUsed": 34225324032, + "memoryFree": 134414336, + "memoryUsagePercent": 99.60880279541016, + "memoryEfficiency": 0.39119720458984375, + "cpuCount": 12, + "cpuLoad": 0.11572265625, + "platform": "darwin", + "uptime": 166729 + }, + { + "timestamp": 1764802737230, + "memoryTotal": 34359738368, + "memoryUsed": 34229420032, + "memoryFree": 130318336, + "memoryUsagePercent": 99.62072372436523, + "memoryEfficiency": 0.3792762756347656, + "cpuCount": 12, + "cpuLoad": 0.11625162760416667, + "platform": "darwin", + "uptime": 166759 + }, + { + "timestamp": 1764802767232, + "memoryTotal": 34359738368, + "memoryUsed": 34030977024, + "memoryFree": 328761344, + "memoryUsagePercent": 99.04317855834961, + "memoryEfficiency": 0.9568214416503906, + "cpuCount": 12, + "cpuLoad": 0.11600748697916667, + "platform": "darwin", + "uptime": 166789 + }, + { + "timestamp": 1764802797232, + "memoryTotal": 34359738368, + "memoryUsed": 34276163584, + "memoryFree": 83574784, + "memoryUsagePercent": 99.75676536560059, + "memoryEfficiency": 0.24323463439941406, + "cpuCount": 12, + "cpuLoad": 0.16153971354166666, + "platform": "darwin", + "uptime": 166819 + }, + { + "timestamp": 1764802827234, + "memoryTotal": 34359738368, + "memoryUsed": 34289893376, + "memoryFree": 69844992, + "memoryUsagePercent": 99.79672431945801, + "memoryEfficiency": 0.2032756805419922, + "cpuCount": 12, + "cpuLoad": 0.23201497395833334, + "platform": "darwin", + "uptime": 166849 + }, + { + "timestamp": 1764802857229, + "memoryTotal": 34359738368, + "memoryUsed": 34281537536, + "memoryFree": 78200832, + "memoryUsagePercent": 99.77240562438965, + "memoryEfficiency": 0.22759437561035156, + "cpuCount": 12, + "cpuLoad": 0.1956787109375, + "platform": "darwin", + "uptime": 166879 + }, + { + "timestamp": 1764802887225, + "memoryTotal": 34359738368, + "memoryUsed": 34265088000, + "memoryFree": 94650368, + "memoryUsagePercent": 99.72453117370605, + "memoryEfficiency": 0.2754688262939453, + "cpuCount": 12, + "cpuLoad": 0.16984049479166666, + "platform": "darwin", + "uptime": 166909 + }, + { + "timestamp": 1764802917225, + "memoryTotal": 34359738368, + "memoryUsed": 34167193600, + "memoryFree": 192544768, + "memoryUsagePercent": 99.43962097167969, + "memoryEfficiency": 0.5603790283203125, + "cpuCount": 12, + "cpuLoad": 0.13924153645833334, + "platform": "darwin", + "uptime": 166939 + }, + { + "timestamp": 1764802947226, + "memoryTotal": 34359738368, + "memoryUsed": 34245459968, + "memoryFree": 114278400, + "memoryUsagePercent": 99.66740608215332, + "memoryEfficiency": 0.3325939178466797, + "cpuCount": 12, + "cpuLoad": 0.1817626953125, + "platform": "darwin", + "uptime": 166969 + }, + { + "timestamp": 1764802977228, + "memoryTotal": 34359738368, + "memoryUsed": 34219802624, + "memoryFree": 139935744, + "memoryUsagePercent": 99.59273338317871, + "memoryEfficiency": 0.40726661682128906, + "cpuCount": 12, + "cpuLoad": 0.14444986979166666, + "platform": "darwin", + "uptime": 166999 + }, + { + "timestamp": 1764803007229, + "memoryTotal": 34359738368, + "memoryUsed": 34205581312, + "memoryFree": 154157056, + "memoryUsagePercent": 99.55134391784668, + "memoryEfficiency": 0.4486560821533203, + "cpuCount": 12, + "cpuLoad": 0.2279052734375, + "platform": "darwin", + "uptime": 167029 + }, + { + "timestamp": 1764803037230, + "memoryTotal": 34359738368, + "memoryUsed": 34253307904, + "memoryFree": 106430464, + "memoryUsagePercent": 99.69024658203125, + "memoryEfficiency": 0.30975341796875, + "cpuCount": 12, + "cpuLoad": 0.16731770833333334, + "platform": "darwin", + "uptime": 167059 + }, + { + "timestamp": 1764803067231, + "memoryTotal": 34359738368, + "memoryUsed": 34265055232, + "memoryFree": 94683136, + "memoryUsagePercent": 99.72443580627441, + "memoryEfficiency": 0.27556419372558594, + "cpuCount": 12, + "cpuLoad": 0.4049072265625, + "platform": "darwin", + "uptime": 167089 + }, + { + "timestamp": 1764803097232, + "memoryTotal": 34359738368, + "memoryUsed": 34212380672, + "memoryFree": 147357696, + "memoryUsagePercent": 99.57113265991211, + "memoryEfficiency": 0.4288673400878906, + "cpuCount": 12, + "cpuLoad": 0.3048909505208333, + "platform": "darwin", + "uptime": 167119 + }, + { + "timestamp": 1764803127233, + "memoryTotal": 34359738368, + "memoryUsed": 34299723776, + "memoryFree": 60014592, + "memoryUsagePercent": 99.8253345489502, + "memoryEfficiency": 0.1746654510498047, + "cpuCount": 12, + "cpuLoad": 0.3053792317708333, + "platform": "darwin", + "uptime": 167149 + }, + { + "timestamp": 1764803157235, + "memoryTotal": 34359738368, + "memoryUsed": 34293366784, + "memoryFree": 66371584, + "memoryUsagePercent": 99.80683326721191, + "memoryEfficiency": 0.19316673278808594, + "cpuCount": 12, + "cpuLoad": 0.2496337890625, + "platform": "darwin", + "uptime": 167179 + }, + { + "timestamp": 1764803187237, + "memoryTotal": 34359738368, + "memoryUsed": 31464931328, + "memoryFree": 2894807040, + "memoryUsagePercent": 91.57500267028809, + "memoryEfficiency": 8.424997329711914, + "cpuCount": 12, + "cpuLoad": 0.2574055989583333, + "platform": "darwin", + "uptime": 167209 + }, + { + "timestamp": 1764803217237, + "memoryTotal": 34359738368, + "memoryUsed": 32167018496, + "memoryFree": 2192719872, + "memoryUsagePercent": 93.61834526062012, + "memoryEfficiency": 6.381654739379883, + "cpuCount": 12, + "cpuLoad": 0.18302408854166666, + "platform": "darwin", + "uptime": 167239 + }, + { + "timestamp": 1764803247238, + "memoryTotal": 34359738368, + "memoryUsed": 32446464000, + "memoryFree": 1913274368, + "memoryUsagePercent": 94.43163871765137, + "memoryEfficiency": 5.568361282348633, + "cpuCount": 12, + "cpuLoad": 0.19315592447916666, + "platform": "darwin", + "uptime": 167269 + }, + { + "timestamp": 1764803277238, + "memoryTotal": 34359738368, + "memoryUsed": 32651476992, + "memoryFree": 1708261376, + "memoryUsagePercent": 95.02830505371094, + "memoryEfficiency": 4.9716949462890625, + "cpuCount": 12, + "cpuLoad": 0.14164225260416666, + "platform": "darwin", + "uptime": 167299 + }, + { + "timestamp": 1764803307239, + "memoryTotal": 34359738368, + "memoryUsed": 33020035072, + "memoryFree": 1339703296, + "memoryUsagePercent": 96.10095024108887, + "memoryEfficiency": 3.899049758911133, + "cpuCount": 12, + "cpuLoad": 0.14994303385416666, + "platform": "darwin", + "uptime": 167329 + }, + { + "timestamp": 1764803337240, + "memoryTotal": 34359738368, + "memoryUsed": 33426849792, + "memoryFree": 932888576, + "memoryUsagePercent": 97.28493690490723, + "memoryEfficiency": 2.7150630950927734, + "cpuCount": 12, + "cpuLoad": 0.1097412109375, + "platform": "darwin", + "uptime": 167359 + }, + { + "timestamp": 1764803367241, + "memoryTotal": 34359738368, + "memoryUsed": 34162884608, + "memoryFree": 196853760, + "memoryUsagePercent": 99.42708015441895, + "memoryEfficiency": 0.5729198455810547, + "cpuCount": 12, + "cpuLoad": 0.11446126302083333, + "platform": "darwin", + "uptime": 167389 + }, + { + "timestamp": 1764803397243, + "memoryTotal": 34359738368, + "memoryUsed": 34032156672, + "memoryFree": 327581696, + "memoryUsagePercent": 99.04661178588867, + "memoryEfficiency": 0.9533882141113281, + "cpuCount": 12, + "cpuLoad": 0.19022623697916666, + "platform": "darwin", + "uptime": 167419 + }, + { + "timestamp": 1764803427244, + "memoryTotal": 34359738368, + "memoryUsed": 33874755584, + "memoryFree": 484982784, + "memoryUsagePercent": 98.58851432800293, + "memoryEfficiency": 1.4114856719970703, + "cpuCount": 12, + "cpuLoad": 0.19095865885416666, + "platform": "darwin", + "uptime": 167449 + }, + { + "timestamp": 1764803457245, + "memoryTotal": 34359738368, + "memoryUsed": 34070691840, + "memoryFree": 289046528, + "memoryUsagePercent": 99.15876388549805, + "memoryEfficiency": 0.8412361145019531, + "cpuCount": 12, + "cpuLoad": 0.13651529947916666, + "platform": "darwin", + "uptime": 167479 + }, + { + "timestamp": 1764803487246, + "memoryTotal": 34359738368, + "memoryUsed": 33602879488, + "memoryFree": 756858880, + "memoryUsagePercent": 97.79725074768066, + "memoryEfficiency": 2.202749252319336, + "cpuCount": 12, + "cpuLoad": 0.16788736979166666, + "platform": "darwin", + "uptime": 167509 + }, + { + "timestamp": 1764803517248, + "memoryTotal": 34359738368, + "memoryUsed": 33797242880, + "memoryFree": 562495488, + "memoryUsagePercent": 98.36292266845703, + "memoryEfficiency": 1.6370773315429688, + "cpuCount": 12, + "cpuLoad": 0.144775390625, + "platform": "darwin", + "uptime": 167539 + }, + { + "timestamp": 1764803547249, + "memoryTotal": 34359738368, + "memoryUsed": 34059616256, + "memoryFree": 300122112, + "memoryUsagePercent": 99.12652969360352, + "memoryEfficiency": 0.8734703063964844, + "cpuCount": 12, + "cpuLoad": 0.1629638671875, + "platform": "darwin", + "uptime": 167569 + }, + { + "timestamp": 1764803577250, + "memoryTotal": 34359738368, + "memoryUsed": 33967538176, + "memoryFree": 392200192, + "memoryUsagePercent": 98.85854721069336, + "memoryEfficiency": 1.1414527893066406, + "cpuCount": 12, + "cpuLoad": 0.13887532552083334, + "platform": "darwin", + "uptime": 167599 + }, + { + "timestamp": 1764803607252, + "memoryTotal": 34359738368, + "memoryUsed": 34122809344, + "memoryFree": 236929024, + "memoryUsagePercent": 99.31044578552246, + "memoryEfficiency": 0.6895542144775391, + "cpuCount": 12, + "cpuLoad": 0.10986328125, + "platform": "darwin", + "uptime": 167629 + }, + { + "timestamp": 1764803637253, + "memoryTotal": 34359738368, + "memoryUsed": 34164719616, + "memoryFree": 195018752, + "memoryUsagePercent": 99.43242073059082, + "memoryEfficiency": 0.5675792694091797, + "cpuCount": 12, + "cpuLoad": 0.11690266927083333, + "platform": "darwin", + "uptime": 167659 + }, + { + "timestamp": 1764803667253, + "memoryTotal": 34359738368, + "memoryUsed": 34001272832, + "memoryFree": 358465536, + "memoryUsagePercent": 98.95672798156738, + "memoryEfficiency": 1.0432720184326172, + "cpuCount": 12, + "cpuLoad": 0.13907877604166666, + "platform": "darwin", + "uptime": 167689 + }, + { + "timestamp": 1764803697254, + "memoryTotal": 34359738368, + "memoryUsed": 34033139712, + "memoryFree": 326598656, + "memoryUsagePercent": 99.04947280883789, + "memoryEfficiency": 0.9505271911621094, + "cpuCount": 12, + "cpuLoad": 0.1832275390625, + "platform": "darwin", + "uptime": 167719 + }, + { + "timestamp": 1764803727256, + "memoryTotal": 34359738368, + "memoryUsed": 34275131392, + "memoryFree": 84606976, + "memoryUsagePercent": 99.7537612915039, + "memoryEfficiency": 0.24623870849609375, + "cpuCount": 12, + "cpuLoad": 0.21541341145833334, + "platform": "darwin", + "uptime": 167749 + }, + { + "timestamp": 1764803757257, + "memoryTotal": 34359738368, + "memoryUsed": 33937031168, + "memoryFree": 422707200, + "memoryUsagePercent": 98.76976013183594, + "memoryEfficiency": 1.2302398681640625, + "cpuCount": 12, + "cpuLoad": 0.14766438802083334, + "platform": "darwin", + "uptime": 167779 + }, + { + "timestamp": 1764803787259, + "memoryTotal": 34359738368, + "memoryUsed": 34280849408, + "memoryFree": 78888960, + "memoryUsagePercent": 99.7704029083252, + "memoryEfficiency": 0.2295970916748047, + "cpuCount": 12, + "cpuLoad": 0.18497721354166666, + "platform": "darwin", + "uptime": 167809 + }, + { + "timestamp": 1764803817260, + "memoryTotal": 34359738368, + "memoryUsed": 34256551936, + "memoryFree": 103186432, + "memoryUsagePercent": 99.69968795776367, + "memoryEfficiency": 0.3003120422363281, + "cpuCount": 12, + "cpuLoad": 0.19466145833333334, + "platform": "darwin", + "uptime": 167839 + }, + { + "timestamp": 1764803847261, + "memoryTotal": 34359738368, + "memoryUsed": 34217426944, + "memoryFree": 142311424, + "memoryUsagePercent": 99.58581924438477, + "memoryEfficiency": 0.4141807556152344, + "cpuCount": 12, + "cpuLoad": 0.174560546875, + "platform": "darwin", + "uptime": 167869 + }, + { + "timestamp": 1764803877262, + "memoryTotal": 34359738368, + "memoryUsed": 34247409664, + "memoryFree": 112328704, + "memoryUsagePercent": 99.67308044433594, + "memoryEfficiency": 0.3269195556640625, + "cpuCount": 12, + "cpuLoad": 0.1890869140625, + "platform": "darwin", + "uptime": 167899 + }, + { + "timestamp": 1764803907263, + "memoryTotal": 34359738368, + "memoryUsed": 34194227200, + "memoryFree": 165511168, + "memoryUsagePercent": 99.5182991027832, + "memoryEfficiency": 0.4817008972167969, + "cpuCount": 12, + "cpuLoad": 0.13582356770833334, + "platform": "darwin", + "uptime": 167929 + }, + { + "timestamp": 1764803937265, + "memoryTotal": 34359738368, + "memoryUsed": 34198011904, + "memoryFree": 161726464, + "memoryUsagePercent": 99.5293140411377, + "memoryEfficiency": 0.4706859588623047, + "cpuCount": 12, + "cpuLoad": 0.2694905598958333, + "platform": "darwin", + "uptime": 167959 + }, + { + "timestamp": 1764803967265, + "memoryTotal": 34359738368, + "memoryUsed": 34101002240, + "memoryFree": 258736128, + "memoryUsagePercent": 99.24697875976562, + "memoryEfficiency": 0.753021240234375, + "cpuCount": 12, + "cpuLoad": 0.3264567057291667, + "platform": "darwin", + "uptime": 167989 + }, + { + "timestamp": 1764803997266, + "memoryTotal": 34359738368, + "memoryUsed": 34291974144, + "memoryFree": 67764224, + "memoryUsagePercent": 99.80278015136719, + "memoryEfficiency": 0.1972198486328125, + "cpuCount": 12, + "cpuLoad": 0.2711181640625, + "platform": "darwin", + "uptime": 168019 + }, + { + "timestamp": 1764804027268, + "memoryTotal": 34359738368, + "memoryUsed": 30403461120, + "memoryFree": 3956277248, + "memoryUsagePercent": 88.4857177734375, + "memoryEfficiency": 11.5142822265625, + "cpuCount": 12, + "cpuLoad": 0.23819986979166666, + "platform": "darwin", + "uptime": 168049 + }, + { + "timestamp": 1764804057269, + "memoryTotal": 34359738368, + "memoryUsed": 31486754816, + "memoryFree": 2872983552, + "memoryUsagePercent": 91.63851737976074, + "memoryEfficiency": 8.361482620239258, + "cpuCount": 12, + "cpuLoad": 0.18306477864583334, + "platform": "darwin", + "uptime": 168079 + }, + { + "timestamp": 1764804087271, + "memoryTotal": 34359738368, + "memoryUsed": 31314345984, + "memoryFree": 3045392384, + "memoryUsagePercent": 91.1367416381836, + "memoryEfficiency": 8.863258361816406, + "cpuCount": 12, + "cpuLoad": 0.30908203125, + "platform": "darwin", + "uptime": 168109 + }, + { + "timestamp": 1764804117272, + "memoryTotal": 34359738368, + "memoryUsed": 31406915584, + "memoryFree": 2952822784, + "memoryUsagePercent": 91.40615463256836, + "memoryEfficiency": 8.59384536743164, + "cpuCount": 12, + "cpuLoad": 0.22176106770833334, + "platform": "darwin", + "uptime": 168139 + }, + { + "timestamp": 1764804147273, + "memoryTotal": 34359738368, + "memoryUsed": 31460376576, + "memoryFree": 2899361792, + "memoryUsagePercent": 91.56174659729004, + "memoryEfficiency": 8.438253402709961, + "cpuCount": 12, + "cpuLoad": 0.18868001302083334, + "platform": "darwin", + "uptime": 168169 + }, + { + "timestamp": 1764804177274, + "memoryTotal": 34359738368, + "memoryUsed": 31547654144, + "memoryFree": 2812084224, + "memoryUsagePercent": 91.81575775146484, + "memoryEfficiency": 8.184242248535156, + "cpuCount": 12, + "cpuLoad": 0.15486653645833334, + "platform": "darwin", + "uptime": 168199 + }, + { + "timestamp": 1764804207275, + "memoryTotal": 34359738368, + "memoryUsed": 32089276416, + "memoryFree": 2270461952, + "memoryUsagePercent": 93.39208602905273, + "memoryEfficiency": 6.607913970947266, + "cpuCount": 12, + "cpuLoad": 0.11808268229166667, + "platform": "darwin", + "uptime": 168229 + }, + { + "timestamp": 1764804237276, + "memoryTotal": 34359738368, + "memoryUsed": 32846364672, + "memoryFree": 1513373696, + "memoryUsagePercent": 95.59550285339355, + "memoryEfficiency": 4.404497146606445, + "cpuCount": 12, + "cpuLoad": 0.13525390625, + "platform": "darwin", + "uptime": 168259 + }, + { + "timestamp": 1764804267277, + "memoryTotal": 34359738368, + "memoryUsed": 34280407040, + "memoryFree": 79331328, + "memoryUsagePercent": 99.76911544799805, + "memoryEfficiency": 0.23088455200195312, + "cpuCount": 12, + "cpuLoad": 0.14689127604166666, + "platform": "darwin", + "uptime": 168289 + }, + { + "timestamp": 1764804297278, + "memoryTotal": 34359738368, + "memoryUsed": 32223805440, + "memoryFree": 2135932928, + "memoryUsagePercent": 93.78361701965332, + "memoryEfficiency": 6.21638298034668, + "cpuCount": 12, + "cpuLoad": 0.14583333333333334, + "platform": "darwin", + "uptime": 168319 + }, + { + "timestamp": 1764804327279, + "memoryTotal": 34359738368, + "memoryUsed": 32269385728, + "memoryFree": 2090352640, + "memoryUsagePercent": 93.91627311706543, + "memoryEfficiency": 6.08372688293457, + "cpuCount": 12, + "cpuLoad": 0.11604817708333333, + "platform": "darwin", + "uptime": 168349 + }, + { + "timestamp": 1764804357280, + "memoryTotal": 34359738368, + "memoryUsed": 32495009792, + "memoryFree": 1864728576, + "memoryUsagePercent": 94.57292556762695, + "memoryEfficiency": 5.427074432373047, + "cpuCount": 12, + "cpuLoad": 0.10225423177083333, + "platform": "darwin", + "uptime": 168379 + }, + { + "timestamp": 1764804387281, + "memoryTotal": 34359738368, + "memoryUsed": 33348550656, + "memoryFree": 1011187712, + "memoryUsagePercent": 97.05705642700195, + "memoryEfficiency": 2.942943572998047, + "cpuCount": 12, + "cpuLoad": 0.11759440104166667, + "platform": "darwin", + "uptime": 168409 + }, + { + "timestamp": 1764804417283, + "memoryTotal": 34359738368, + "memoryUsed": 33512390656, + "memoryFree": 847347712, + "memoryUsagePercent": 97.53389358520508, + "memoryEfficiency": 2.466106414794922, + "cpuCount": 12, + "cpuLoad": 0.12772623697916666, + "platform": "darwin", + "uptime": 168439 + }, + { + "timestamp": 1764804447284, + "memoryTotal": 34359738368, + "memoryUsed": 33871364096, + "memoryFree": 488374272, + "memoryUsagePercent": 98.57864379882812, + "memoryEfficiency": 1.421356201171875, + "cpuCount": 12, + "cpuLoad": 0.1610107421875, + "platform": "darwin", + "uptime": 168469 + }, + { + "timestamp": 1764804477286, + "memoryTotal": 34359738368, + "memoryUsed": 31891357696, + "memoryFree": 2468380672, + "memoryUsagePercent": 92.81606674194336, + "memoryEfficiency": 7.183933258056641, + "cpuCount": 12, + "cpuLoad": 0.3546142578125, + "platform": "darwin", + "uptime": 168499 + }, + { + "timestamp": 1764804507285, + "memoryTotal": 34359738368, + "memoryUsed": 32701874176, + "memoryFree": 1657864192, + "memoryUsagePercent": 95.17498016357422, + "memoryEfficiency": 4.825019836425781, + "cpuCount": 12, + "cpuLoad": 0.277099609375, + "platform": "darwin", + "uptime": 168529 + }, + { + "timestamp": 1764804537286, + "memoryTotal": 34359738368, + "memoryUsed": 30121508864, + "memoryFree": 4238229504, + "memoryUsagePercent": 87.66512870788574, + "memoryEfficiency": 12.334871292114258, + "cpuCount": 12, + "cpuLoad": 0.2567545572916667, + "platform": "darwin", + "uptime": 168559 + }, + { + "timestamp": 1764804567288, + "memoryTotal": 34359738368, + "memoryUsed": 33887764480, + "memoryFree": 471973888, + "memoryUsagePercent": 98.62637519836426, + "memoryEfficiency": 1.3736248016357422, + "cpuCount": 12, + "cpuLoad": 0.279296875, + "platform": "darwin", + "uptime": 168589 + }, + { + "timestamp": 1764804597289, + "memoryTotal": 34359738368, + "memoryUsed": 29933666304, + "memoryFree": 4426072064, + "memoryUsagePercent": 87.11843490600586, + "memoryEfficiency": 12.88156509399414, + "cpuCount": 12, + "cpuLoad": 0.4444986979166667, + "platform": "darwin", + "uptime": 168619 + }, + { + "timestamp": 1764804627289, + "memoryTotal": 34359738368, + "memoryUsed": 32602750976, + "memoryFree": 1756987392, + "memoryUsagePercent": 94.88649368286133, + "memoryEfficiency": 5.113506317138672, + "cpuCount": 12, + "cpuLoad": 0.3483479817708333, + "platform": "darwin", + "uptime": 168649 + }, + { + "timestamp": 1764804657290, + "memoryTotal": 34359738368, + "memoryUsed": 31566872576, + "memoryFree": 2792865792, + "memoryUsagePercent": 91.87169075012207, + "memoryEfficiency": 8.12830924987793, + "cpuCount": 12, + "cpuLoad": 0.42919921875, + "platform": "darwin", + "uptime": 168679 + }, + { + "timestamp": 1764804687292, + "memoryTotal": 34359738368, + "memoryUsed": 32858275840, + "memoryFree": 1501462528, + "memoryUsagePercent": 95.63016891479492, + "memoryEfficiency": 4.369831085205078, + "cpuCount": 12, + "cpuLoad": 0.3258056640625, + "platform": "darwin", + "uptime": 168709 + }, + { + "timestamp": 1764804717293, + "memoryTotal": 34359738368, + "memoryUsed": 32538378240, + "memoryFree": 1821360128, + "memoryUsagePercent": 94.69914436340332, + "memoryEfficiency": 5.30085563659668, + "cpuCount": 12, + "cpuLoad": 0.2546793619791667, + "platform": "darwin", + "uptime": 168739 } ] \ No newline at end of file diff --git a/apps/bauntown/apps/landing/eslint.config.js b/apps/bauntown/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/bauntown/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/calendar/apps/landing/eslint.config.js b/apps/calendar/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/calendar/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/calendar/packages/shared/src/types/calendar.ts b/apps/calendar/packages/shared/src/types/calendar.ts index 7a1b749cd..9e110cced 100644 --- a/apps/calendar/packages/shared/src/types/calendar.ts +++ b/apps/calendar/packages/shared/src/types/calendar.ts @@ -60,7 +60,15 @@ export interface UpdateCalendarInput { /** * Calendar view types */ -export type CalendarViewType = 'day' | '5day' | 'week' | '10day' | '14day' | 'month' | 'year' | 'agenda'; +export type CalendarViewType = + | 'day' + | '5day' + | 'week' + | '10day' + | '14day' + | 'month' + | 'year' + | 'agenda'; /** * Default calendar colors diff --git a/apps/chat/apps/landing/eslint.config.js b/apps/chat/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/chat/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/maerchenzauber/apps/landing/eslint.config.js b/apps/maerchenzauber/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/maerchenzauber/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/manacore/apps/landing/eslint.config.js b/apps/manacore/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/manacore/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/manadeck/apps/landing/eslint.config.js b/apps/manadeck/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/manadeck/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/memoro/apps/landing/eslint.config.js b/apps/memoro/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/memoro/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/news/apps/landing/eslint.config.js b/apps/news/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/news/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/nutriphi/apps/landing/eslint.config.js b/apps/nutriphi/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/nutriphi/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/picture/apps/landing/eslint.config.js b/apps/picture/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/picture/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/picture/packages/design-tokens/native/theme.mjs b/apps/picture/packages/design-tokens/native/theme.mjs index df8bde93a..0c95e7c68 100644 --- a/apps/picture/packages/design-tokens/native/theme.mjs +++ b/apps/picture/packages/design-tokens/native/theme.mjs @@ -1,547 +1,542 @@ // src/colors.ts -var baseColors = { - // Pure colors - black: "#000000", - white: "#ffffff", - // Grays - gray: { - 50: "#f9fafb", - 100: "#f3f4f6", - 200: "#e5e7eb", - 300: "#d1d5db", - 400: "#9ca3af", - 500: "#6b7280", - 600: "#4b5563", - 700: "#374151", - 800: "#1f2937", - 900: "#111827", - 950: "#0a0a0a" - }, - // Indigo (Default primary) - indigo: { - 200: "#c7d2fe", - 300: "#a5b4fc", - 400: "#818cf8", - 500: "#6366f1", - 600: "#4f46e5", - 700: "#4338ca", - 800: "#3730a3" - }, - // Violet (Default secondary) - violet: { - 300: "#c4b5fd", - 400: "#a78bfa", - 500: "#8b5cf6", - 600: "#7c3aed" - }, - // Orange (Sunset theme) - orange: { - 300: "#fdba74", - 400: "#fb923c", - 500: "#f97316", - 600: "#ea580c" - }, - // Pink (Sunset theme) - pink: { - 300: "#f9a8d4", - 400: "#f472b6", - 500: "#ec4899", - 600: "#db2777" - }, - // Sky (Ocean theme) - sky: { - 300: "#7dd3fc", - 400: "#38bdf8", - 500: "#0ea5e9", - 600: "#0284c7" - }, - // Emerald (Ocean theme + status) - emerald: { - 300: "#6ee7b7", - 400: "#34d399", - 500: "#10b981", - 600: "#059669" - }, - // Status colors - red: { - 500: "#ef4444", - 600: "#dc2626" - }, - amber: { - 500: "#f59e0b" - }, - blue: { - 500: "#3b82f6" - } +const baseColors = { + // Pure colors + black: '#000000', + white: '#ffffff', + // Grays + gray: { + 50: '#f9fafb', + 100: '#f3f4f6', + 200: '#e5e7eb', + 300: '#d1d5db', + 400: '#9ca3af', + 500: '#6b7280', + 600: '#4b5563', + 700: '#374151', + 800: '#1f2937', + 900: '#111827', + 950: '#0a0a0a', + }, + // Indigo (Default primary) + indigo: { + 200: '#c7d2fe', + 300: '#a5b4fc', + 400: '#818cf8', + 500: '#6366f1', + 600: '#4f46e5', + 700: '#4338ca', + 800: '#3730a3', + }, + // Violet (Default secondary) + violet: { + 300: '#c4b5fd', + 400: '#a78bfa', + 500: '#8b5cf6', + 600: '#7c3aed', + }, + // Orange (Sunset theme) + orange: { + 300: '#fdba74', + 400: '#fb923c', + 500: '#f97316', + 600: '#ea580c', + }, + // Pink (Sunset theme) + pink: { + 300: '#f9a8d4', + 400: '#f472b6', + 500: '#ec4899', + 600: '#db2777', + }, + // Sky (Ocean theme) + sky: { + 300: '#7dd3fc', + 400: '#38bdf8', + 500: '#0ea5e9', + 600: '#0284c7', + }, + // Emerald (Ocean theme + status) + emerald: { + 300: '#6ee7b7', + 400: '#34d399', + 500: '#10b981', + 600: '#059669', + }, + // Status colors + red: { + 500: '#ef4444', + 600: '#dc2626', + }, + amber: { + 500: '#f59e0b', + }, + blue: { + 500: '#3b82f6', + }, }; -var semanticColors = { - /** - * Dark mode colors - */ - dark: { - // Backgrounds - background: baseColors.black, - surface: "#1a1a1a", - elevated: "#242424", - overlay: "rgba(0, 0, 0, 0.8)", - // Borders & Dividers - border: "#383838", - divider: "#2a2a2a", - // Input fields - input: { - background: "#1f1f1f", - border: "#383838", - text: baseColors.gray[100], - placeholder: baseColors.gray[500] - }, - // Text colors - text: { - primary: baseColors.gray[100], - secondary: baseColors.gray[300], - tertiary: baseColors.gray[400], - disabled: baseColors.gray[500], - inverse: baseColors.black - }, - // Primary brand color (Indigo) - primary: { - default: baseColors.indigo[400], - hover: baseColors.indigo[300], - active: baseColors.indigo[500], - light: baseColors.indigo[200], - dark: baseColors.indigo[600], - contrast: baseColors.white - }, - // Secondary accent color (Violet) - secondary: { - default: baseColors.violet[400], - light: baseColors.violet[300], - dark: baseColors.violet[500], - contrast: baseColors.white - }, - // Status colors - success: baseColors.emerald[500], - warning: baseColors.amber[500], - error: baseColors.red[500], - info: baseColors.blue[500], - // Semantic colors - favorite: baseColors.red[500], - like: baseColors.red[500], - tag: baseColors.indigo[400], - // Special UI elements - skeleton: "#2a2a2a", - shimmer: "#383838" - }, - /** - * Light mode colors - */ - light: { - // Backgrounds - background: baseColors.white, - surface: baseColors.gray[50], - elevated: baseColors.white, - overlay: "rgba(0, 0, 0, 0.5)", - // Borders & Dividers - border: baseColors.gray[200], - divider: baseColors.gray[100], - // Input fields - input: { - background: baseColors.white, - border: baseColors.gray[300], - text: baseColors.gray[900], - placeholder: baseColors.gray[400] - }, - // Text colors - text: { - primary: baseColors.gray[900], - secondary: baseColors.gray[700], - tertiary: baseColors.gray[500], - disabled: baseColors.gray[400], - inverse: baseColors.white - }, - // Primary brand color (Indigo) - primary: { - default: baseColors.indigo[500], - hover: baseColors.indigo[600], - active: baseColors.indigo[700], - light: baseColors.indigo[400], - dark: baseColors.indigo[800], - contrast: baseColors.white - }, - // Secondary accent color (Violet) - secondary: { - default: baseColors.violet[500], - light: baseColors.violet[400], - dark: baseColors.violet[600], - contrast: baseColors.white - }, - // Status colors - success: baseColors.emerald[500], - warning: baseColors.amber[500], - error: baseColors.red[500], - info: baseColors.blue[500], - // Semantic colors - favorite: baseColors.red[500], - like: baseColors.red[500], - tag: baseColors.indigo[500], - // Special UI elements - skeleton: baseColors.gray[200], - shimmer: baseColors.gray[100] - } +const semanticColors = { + /** + * Dark mode colors + */ + dark: { + // Backgrounds + background: baseColors.black, + surface: '#1a1a1a', + elevated: '#242424', + overlay: 'rgba(0, 0, 0, 0.8)', + // Borders & Dividers + border: '#383838', + divider: '#2a2a2a', + // Input fields + input: { + background: '#1f1f1f', + border: '#383838', + text: baseColors.gray[100], + placeholder: baseColors.gray[500], + }, + // Text colors + text: { + primary: baseColors.gray[100], + secondary: baseColors.gray[300], + tertiary: baseColors.gray[400], + disabled: baseColors.gray[500], + inverse: baseColors.black, + }, + // Primary brand color (Indigo) + primary: { + default: baseColors.indigo[400], + hover: baseColors.indigo[300], + active: baseColors.indigo[500], + light: baseColors.indigo[200], + dark: baseColors.indigo[600], + contrast: baseColors.white, + }, + // Secondary accent color (Violet) + secondary: { + default: baseColors.violet[400], + light: baseColors.violet[300], + dark: baseColors.violet[500], + contrast: baseColors.white, + }, + // Status colors + success: baseColors.emerald[500], + warning: baseColors.amber[500], + error: baseColors.red[500], + info: baseColors.blue[500], + // Semantic colors + favorite: baseColors.red[500], + like: baseColors.red[500], + tag: baseColors.indigo[400], + // Special UI elements + skeleton: '#2a2a2a', + shimmer: '#383838', + }, + /** + * Light mode colors + */ + light: { + // Backgrounds + background: baseColors.white, + surface: baseColors.gray[50], + elevated: baseColors.white, + overlay: 'rgba(0, 0, 0, 0.5)', + // Borders & Dividers + border: baseColors.gray[200], + divider: baseColors.gray[100], + // Input fields + input: { + background: baseColors.white, + border: baseColors.gray[300], + text: baseColors.gray[900], + placeholder: baseColors.gray[400], + }, + // Text colors + text: { + primary: baseColors.gray[900], + secondary: baseColors.gray[700], + tertiary: baseColors.gray[500], + disabled: baseColors.gray[400], + inverse: baseColors.white, + }, + // Primary brand color (Indigo) + primary: { + default: baseColors.indigo[500], + hover: baseColors.indigo[600], + active: baseColors.indigo[700], + light: baseColors.indigo[400], + dark: baseColors.indigo[800], + contrast: baseColors.white, + }, + // Secondary accent color (Violet) + secondary: { + default: baseColors.violet[500], + light: baseColors.violet[400], + dark: baseColors.violet[600], + contrast: baseColors.white, + }, + // Status colors + success: baseColors.emerald[500], + warning: baseColors.amber[500], + error: baseColors.red[500], + info: baseColors.blue[500], + // Semantic colors + favorite: baseColors.red[500], + like: baseColors.red[500], + tag: baseColors.indigo[500], + // Special UI elements + skeleton: baseColors.gray[200], + shimmer: baseColors.gray[100], + }, }; // src/shadows.ts -var shadows = { - dark: { - sm: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 1 }, - shadowOpacity: 0.2, - shadowRadius: 2, - elevation: 2 - // Android - }, - md: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 4 }, - shadowOpacity: 0.3, - shadowRadius: 6, - elevation: 4 - }, - lg: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 10 }, - shadowOpacity: 0.4, - shadowRadius: 15, - elevation: 8 - } - }, - light: { - sm: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 1 }, - shadowOpacity: 0.1, - shadowRadius: 2, - elevation: 2 - }, - md: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 4 }, - shadowOpacity: 0.15, - shadowRadius: 6, - elevation: 4 - }, - lg: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 10 }, - shadowOpacity: 0.2, - shadowRadius: 15, - elevation: 8 - } - } +const shadows = { + dark: { + sm: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 1 }, + shadowOpacity: 0.2, + shadowRadius: 2, + elevation: 2, + // Android + }, + md: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 4 }, + shadowOpacity: 0.3, + shadowRadius: 6, + elevation: 4, + }, + lg: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 10 }, + shadowOpacity: 0.4, + shadowRadius: 15, + elevation: 8, + }, + }, + light: { + sm: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 1 }, + shadowOpacity: 0.1, + shadowRadius: 2, + elevation: 2, + }, + md: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 4 }, + shadowOpacity: 0.15, + shadowRadius: 6, + elevation: 4, + }, + lg: { + shadowColor: '#000', + shadowOffset: { width: 0, height: 10 }, + shadowOpacity: 0.2, + shadowRadius: 15, + elevation: 8, + }, + }, }; -var opacity = { - disabled: 0.5, - overlay: 0.8, - hover: 0.9, - pressed: 0.7 +const opacity = { + disabled: 0.5, + overlay: 0.8, + hover: 0.9, + pressed: 0.7, }; // src/themes/default.ts -var defaultTheme = { - name: "default", - displayName: "Indigo", - colors: { - light: semanticColors.light, - dark: semanticColors.dark - }, - shadows, - opacity +const defaultTheme = { + name: 'default', + displayName: 'Indigo', + colors: { + light: semanticColors.light, + dark: semanticColors.dark, + }, + shadows, + opacity, }; // src/themes/sunset.ts -var sunsetTheme = { - name: "sunset", - displayName: "Sunset", - colors: { - light: semanticColors.light, - // Uses default light mode - dark: { - ...semanticColors.dark, - // Override backgrounds for warmer tone - background: "#0a0a0a", - surface: "#1f1410", - elevated: "#2a1f1a", - // Override borders - border: "#3d2f28", - divider: "#2a1f1a", - // Override input - input: { - background: "#1a1410", - border: "#3d2f28", - text: "#fef3c7", - // amber-100 - placeholder: "#92400e" - // amber-800 - }, - // Override text colors (warmer) - text: { - primary: "#fef3c7", - // amber-100 - secondary: "#fcd34d", - // amber-300 - tertiary: "#f59e0b", - // amber-500 - disabled: "#92400e", - // amber-800 - inverse: "#0a0a0a" - }, - // Primary: Orange - primary: { - default: baseColors.orange[400], - hover: baseColors.orange[300], - active: baseColors.orange[500], - light: "#fed7aa", - // orange-200 - dark: baseColors.orange[600], - contrast: baseColors.white - }, - // Secondary: Pink - secondary: { - default: baseColors.pink[400], - light: baseColors.pink[300], - dark: baseColors.pink[500], - contrast: baseColors.white - }, - // Status - success: baseColors.emerald[500], - warning: "#fbbf24", - // amber-400 - error: "#f43f5e", - // rose-500 - info: "#60a5fa", - // blue-400 - // Semantic - favorite: "#f43f5e", - // rose-500 - like: "#f43f5e", - // rose-500 - tag: baseColors.orange[400], - // Special - skeleton: "#2a1f1a", - shimmer: "#3d2f28" - } - }, - shadows, - opacity +const sunsetTheme = { + name: 'sunset', + displayName: 'Sunset', + colors: { + light: semanticColors.light, + // Uses default light mode + dark: { + ...semanticColors.dark, + // Override backgrounds for warmer tone + background: '#0a0a0a', + surface: '#1f1410', + elevated: '#2a1f1a', + // Override borders + border: '#3d2f28', + divider: '#2a1f1a', + // Override input + input: { + background: '#1a1410', + border: '#3d2f28', + text: '#fef3c7', + // amber-100 + placeholder: '#92400e', + // amber-800 + }, + // Override text colors (warmer) + text: { + primary: '#fef3c7', + // amber-100 + secondary: '#fcd34d', + // amber-300 + tertiary: '#f59e0b', + // amber-500 + disabled: '#92400e', + // amber-800 + inverse: '#0a0a0a', + }, + // Primary: Orange + primary: { + default: baseColors.orange[400], + hover: baseColors.orange[300], + active: baseColors.orange[500], + light: '#fed7aa', + // orange-200 + dark: baseColors.orange[600], + contrast: baseColors.white, + }, + // Secondary: Pink + secondary: { + default: baseColors.pink[400], + light: baseColors.pink[300], + dark: baseColors.pink[500], + contrast: baseColors.white, + }, + // Status + success: baseColors.emerald[500], + warning: '#fbbf24', + // amber-400 + error: '#f43f5e', + // rose-500 + info: '#60a5fa', + // blue-400 + // Semantic + favorite: '#f43f5e', + // rose-500 + like: '#f43f5e', + // rose-500 + tag: baseColors.orange[400], + // Special + skeleton: '#2a1f1a', + shimmer: '#3d2f28', + }, + }, + shadows, + opacity, }; // src/themes/ocean.ts -var oceanColors = { - teal: { - 200: "#99f6e4", - 300: "#5eead4", - 400: "#2dd4bf", - 500: "#14b8a6", - 600: "#0d9488" - }, - cyan: { - 300: "#67e8f9", - 400: "#22d3ee", - 500: "#06b6d4" - }, - slate: { - 700: "#334155", - 800: "#1e293b", - 900: "#0f172a", - 950: "#020617" - } +const oceanColors = { + teal: { + 200: '#99f6e4', + 300: '#5eead4', + 400: '#2dd4bf', + 500: '#14b8a6', + 600: '#0d9488', + }, + cyan: { + 300: '#67e8f9', + 400: '#22d3ee', + 500: '#06b6d4', + }, + slate: { + 700: '#334155', + 800: '#1e293b', + 900: '#0f172a', + 950: '#020617', + }, }; -var oceanTheme = { - name: "ocean", - displayName: "Ocean", - colors: { - light: semanticColors.light, - // Uses default light mode - dark: { - ...semanticColors.dark, - // Override backgrounds for cooler tone - background: oceanColors.slate[950], - surface: oceanColors.slate[900], - elevated: oceanColors.slate[800], - // Override borders - border: oceanColors.slate[700], - divider: oceanColors.slate[800], - // Override input - input: { - background: oceanColors.slate[900], - border: oceanColors.slate[700], - text: "#e0f2fe", - // sky-100 - placeholder: "#0c4a6e" - // sky-900 - }, - // Override text colors (cooler) - text: { - primary: "#e0f2fe", - // sky-100 - secondary: "#7dd3fc", - // sky-300 - tertiary: "#38bdf8", - // sky-400 - disabled: "#0c4a6e", - // sky-900 - inverse: oceanColors.slate[950] - }, - // Primary: Teal - primary: { - default: oceanColors.teal[400], - hover: oceanColors.teal[300], - active: oceanColors.teal[500], - light: oceanColors.teal[200], - dark: oceanColors.teal[600], - contrast: baseColors.white - }, - // Secondary: Cyan - secondary: { - default: oceanColors.cyan[400], - light: oceanColors.cyan[300], - dark: oceanColors.cyan[500], - contrast: baseColors.white - }, - // Status - success: baseColors.emerald[500], - warning: "#fbbf24", - // amber-400 - error: "#f43f5e", - // rose-500 - info: "#0ea5e9", - // sky-500 - // Semantic - favorite: "#f43f5e", - // rose-500 - like: "#f43f5e", - // rose-500 - tag: oceanColors.teal[400], - // Special - skeleton: oceanColors.slate[800], - shimmer: oceanColors.slate[700] - } - }, - shadows, - opacity +const oceanTheme = { + name: 'ocean', + displayName: 'Ocean', + colors: { + light: semanticColors.light, + // Uses default light mode + dark: { + ...semanticColors.dark, + // Override backgrounds for cooler tone + background: oceanColors.slate[950], + surface: oceanColors.slate[900], + elevated: oceanColors.slate[800], + // Override borders + border: oceanColors.slate[700], + divider: oceanColors.slate[800], + // Override input + input: { + background: oceanColors.slate[900], + border: oceanColors.slate[700], + text: '#e0f2fe', + // sky-100 + placeholder: '#0c4a6e', + // sky-900 + }, + // Override text colors (cooler) + text: { + primary: '#e0f2fe', + // sky-100 + secondary: '#7dd3fc', + // sky-300 + tertiary: '#38bdf8', + // sky-400 + disabled: '#0c4a6e', + // sky-900 + inverse: oceanColors.slate[950], + }, + // Primary: Teal + primary: { + default: oceanColors.teal[400], + hover: oceanColors.teal[300], + active: oceanColors.teal[500], + light: oceanColors.teal[200], + dark: oceanColors.teal[600], + contrast: baseColors.white, + }, + // Secondary: Cyan + secondary: { + default: oceanColors.cyan[400], + light: oceanColors.cyan[300], + dark: oceanColors.cyan[500], + contrast: baseColors.white, + }, + // Status + success: baseColors.emerald[500], + warning: '#fbbf24', + // amber-400 + error: '#f43f5e', + // rose-500 + info: '#0ea5e9', + // sky-500 + // Semantic + favorite: '#f43f5e', + // rose-500 + like: '#f43f5e', + // rose-500 + tag: oceanColors.teal[400], + // Special + skeleton: oceanColors.slate[800], + shimmer: oceanColors.slate[700], + }, + }, + shadows, + opacity, }; // src/themes/index.ts -var themes = { - default: defaultTheme, - sunset: sunsetTheme, - ocean: oceanTheme +const themes = { + default: defaultTheme, + sunset: sunsetTheme, + ocean: oceanTheme, }; // src/spacing.ts -var spacing = { - 0: 0, - 1: 4, - // 0.25rem - 2: 8, - // 0.5rem - 3: 12, - // 0.75rem - 4: 16, - // 1rem - 5: 20, - // 1.25rem - 6: 24, - // 1.5rem - 7: 28, - // 1.75rem - 8: 32, - // 2rem - 9: 36, - // 2.25rem - 10: 40, - // 2.5rem - 11: 44, - // 2.75rem - 12: 48, - // 3rem - 14: 56, - // 3.5rem - 16: 64, - // 4rem - 20: 80, - // 5rem - 24: 96, - // 6rem - 28: 112, - // 7rem - 32: 128 - // 8rem +const spacing = { + 0: 0, + 1: 4, + // 0.25rem + 2: 8, + // 0.5rem + 3: 12, + // 0.75rem + 4: 16, + // 1rem + 5: 20, + // 1.25rem + 6: 24, + // 1.5rem + 7: 28, + // 1.75rem + 8: 32, + // 2rem + 9: 36, + // 2.25rem + 10: 40, + // 2.5rem + 11: 44, + // 2.75rem + 12: 48, + // 3rem + 14: 56, + // 3.5rem + 16: 64, + // 4rem + 20: 80, + // 5rem + 24: 96, + // 6rem + 28: 112, + // 7rem + 32: 128, + // 8rem }; -var borderRadius = { - none: 0, - sm: 4, - DEFAULT: 8, - md: 8, - lg: 12, - xl: 16, - "2xl": 24, - "3xl": 32, - full: 9999 +const borderRadius = { + none: 0, + sm: 4, + DEFAULT: 8, + md: 8, + lg: 12, + xl: 16, + '2xl': 24, + '3xl': 32, + full: 9999, }; // src/typography.ts -var fontSize = { - xs: 12, - sm: 14, - base: 16, - lg: 18, - xl: 20, - "2xl": 24, - "3xl": 30, - "4xl": 36, - "5xl": 48, - "6xl": 60, - "7xl": 72, - "8xl": 96 +const fontSize = { + xs: 12, + sm: 14, + base: 16, + lg: 18, + xl: 20, + '2xl': 24, + '3xl': 30, + '4xl': 36, + '5xl': 48, + '6xl': 60, + '7xl': 72, + '8xl': 96, }; -var fontWeight = { - regular: "400", - medium: "500", - semibold: "600", - bold: "700" +const fontWeight = { + regular: '400', + medium: '500', + semibold: '600', + bold: '700', }; // native/theme.ts -function getThemeColors(variant = "default", mode = "dark") { - const theme = themes[variant]; - return theme.colors[mode]; +function getThemeColors(variant = 'default', mode = 'dark') { + const theme = themes[variant]; + return theme.colors[mode]; } -function createNativeTheme(variant = "default", mode = "dark") { - const theme = themes[variant]; - const colors = theme.colors[mode]; - const shadows2 = theme.shadows[mode]; - return { - variant, - mode, - colors, - spacing, - borderRadius, - fontSize, - fontWeight, - shadows: shadows2, - opacity: theme.opacity - }; +function createNativeTheme(variant = 'default', mode = 'dark') { + const theme = themes[variant]; + const colors = theme.colors[mode]; + const shadows2 = theme.shadows[mode]; + return { + variant, + mode, + colors, + spacing, + borderRadius, + fontSize, + fontWeight, + shadows: shadows2, + opacity: theme.opacity, + }; } function getThemeVariants() { - return Object.keys(themes); + return Object.keys(themes); } function isValidThemeVariant(variant) { - return variant in themes; + return variant in themes; } -export { - createNativeTheme, - getThemeColors, - getThemeVariants, - isValidThemeVariant -}; +export { createNativeTheme, getThemeColors, getThemeVariants, isValidThemeVariant }; diff --git a/apps/picture/packages/mobile-ui/cli/src/utils/files.ts b/apps/picture/packages/mobile-ui/cli/src/utils/files.ts index 1a81f15d9..95a3c1084 100644 --- a/apps/picture/packages/mobile-ui/cli/src/utils/files.ts +++ b/apps/picture/packages/mobile-ui/cli/src/utils/files.ts @@ -1,6 +1,6 @@ import fs from 'fs-extra'; import path from 'path'; -import { ComponentInfo } from '../types'; +import { type ComponentInfo } from '../types'; import { getComponentsPath, ensureDir } from './paths'; /** diff --git a/apps/picture/packages/mobile-ui/cli/src/utils/registry.ts b/apps/picture/packages/mobile-ui/cli/src/utils/registry.ts index 8966207fd..49f62e752 100644 --- a/apps/picture/packages/mobile-ui/cli/src/utils/registry.ts +++ b/apps/picture/packages/mobile-ui/cli/src/utils/registry.ts @@ -1,5 +1,5 @@ import fs from 'fs-extra'; -import { ComponentRegistry, ComponentInfo } from '../types'; +import { type ComponentRegistry, type ComponentInfo } from '../types'; import { getRegistryPath } from './paths'; /** diff --git a/apps/presi/apps/landing/eslint.config.js b/apps/presi/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/presi/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/quote/apps/landing/eslint.config.js b/apps/quote/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/quote/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/wisekeep/apps/landing/eslint.config.js b/apps/wisekeep/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/wisekeep/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/zitare/apps/landing/eslint.config.js b/apps/zitare/apps/landing/eslint.config.js deleted file mode 100644 index 172a11a3f..000000000 --- a/apps/zitare/apps/landing/eslint.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @ts-check -import { baseConfig, typescriptConfig, prettierConfig } from '@manacore/eslint-config'; - -export default [ - { - ignores: ['dist/**', '.astro/**', 'node_modules/**'], - }, - ...baseConfig, - ...typescriptConfig, - ...prettierConfig, -]; diff --git a/apps/zitare/packages/web-ui/src/stores/toast.ts b/apps/zitare/packages/web-ui/src/stores/toast.ts index 300aa82bc..e75f5f10c 100644 --- a/apps/zitare/packages/web-ui/src/stores/toast.ts +++ b/apps/zitare/packages/web-ui/src/stores/toast.ts @@ -12,7 +12,7 @@ export interface Toast { function createToastStore() { const { subscribe, update } = writable([]); - function addToast(message: string, type: ToastType = 'info', duration: number = 3000) { + function addToast(message: string, type: ToastType = 'info', duration = 3000) { const id = `toast-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`; const toast: Toast = { diff --git a/eslint.config.mjs b/eslint.config.mjs index 82e0d3e9f..016ca9379 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -38,13 +38,27 @@ export default [ '**/*.d.ts', '**/generated/**', + // Config files (tool-specific, not part of app code) + '**/drizzle.config.ts', + 'playwright.config.ts', + 'vitest.config.ts', + 'tests/**', + + // Documentation examples + 'docs/test-examples/**', + + // Games with specific runtime environments + 'games/whopixels/**', + // Apps with their own ESLint configs (framework-specific) // These import from @manacore/eslint-config but add framework rules 'apps/*/apps/mobile/**', 'apps/*/apps/web/**', 'apps/*/apps/backend/**', 'apps/*/apps/landing/**', + 'apps/*/packages/**', // Project-specific packages 'games/*/apps/**', + 'games/*/packages/**', // Game-specific packages 'services/**', ], }, diff --git a/games/whopixels/js/scenes/BootScene.js b/games/whopixels/js/scenes/BootScene.js index 8254f51aa..e984fe27e 100644 --- a/games/whopixels/js/scenes/BootScene.js +++ b/games/whopixels/js/scenes/BootScene.js @@ -315,7 +315,7 @@ class BootScene extends Phaser.Scene { const brickWidth = 16; for (let y = 0; y < tileSize; y += brickHeight) { - let offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2; + const offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2; for (let x = offset; x < tileSize; x += brickWidth) { stoneWallGraphics.fillRect(x, y, brickWidth - 1, brickHeight - 1); } @@ -330,7 +330,7 @@ class BootScene extends Phaser.Scene { // Steinmuster für die Wand stoneWallFlowerGraphics.fillStyle(0x555555); for (let y = 0; y < tileSize; y += brickHeight) { - let offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2; + const offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2; for (let x = offset; x < tileSize; x += brickWidth) { stoneWallFlowerGraphics.fillRect(x, y, brickWidth - 1, brickHeight - 1); } diff --git a/games/whopixels/server.js b/games/whopixels/server.js index 702bbbc8c..6d5f9fe7f 100644 --- a/games/whopixels/server.js +++ b/games/whopixels/server.js @@ -246,7 +246,7 @@ const server = http.createServer((req, res) => { // Get the file extension const extname = path.extname(filePath); - let contentType = MIME_TYPES[extname] || 'application/octet-stream'; + const contentType = MIME_TYPES[extname] || 'application/octet-stream'; // Read the file fs.readFile(filePath, (error, content) => { diff --git a/package.json b/package.json index 256822eef..fb25a5839 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "build": "turbo run build", "test": "turbo run test", "lint": "turbo run lint", - "lint:root": "eslint .", - "lint:fix": "eslint . --fix", + "lint:root": "eslint . --cache", + "lint:fix": "eslint . --fix --cache", "type-check": "turbo run type-check", "clean": "turbo run clean", "format": "prettier --config .prettierrc.json --write \"**/*.{ts,tsx,js,jsx,json,md,svelte,astro}\"", diff --git a/packages/eslint-config/typescript.js b/packages/eslint-config/typescript.js index c885f1a89..a85d2db14 100644 --- a/packages/eslint-config/typescript.js +++ b/packages/eslint-config/typescript.js @@ -21,6 +21,8 @@ export const typescriptConfig = [ parserOptions: { ecmaVersion: 2022, sourceType: 'module', + projectService: true, + tsconfigRootDir: import.meta.dirname, }, }, plugins: { diff --git a/packages/mana-core-nestjs-integration/src/decorators/current-user.decorator.ts b/packages/mana-core-nestjs-integration/src/decorators/current-user.decorator.ts index aef305fd4..16e5150c8 100644 --- a/packages/mana-core-nestjs-integration/src/decorators/current-user.decorator.ts +++ b/packages/mana-core-nestjs-integration/src/decorators/current-user.decorator.ts @@ -1,4 +1,4 @@ -import { createParamDecorator, ExecutionContext } from '@nestjs/common'; +import { createParamDecorator, type ExecutionContext } from '@nestjs/common'; export interface JwtPayload { sub: string; diff --git a/packages/mana-core-nestjs-integration/src/interfaces/mana-core-options.interface.ts b/packages/mana-core-nestjs-integration/src/interfaces/mana-core-options.interface.ts index 893202126..101633f51 100644 --- a/packages/mana-core-nestjs-integration/src/interfaces/mana-core-options.interface.ts +++ b/packages/mana-core-nestjs-integration/src/interfaces/mana-core-options.interface.ts @@ -1,4 +1,4 @@ -import { ModuleMetadata, Type } from '@nestjs/common'; +import { type ModuleMetadata, type Type } from '@nestjs/common'; export interface ManaCoreModuleOptions { /** diff --git a/packages/mana-core-nestjs-integration/src/services/credit-client.service.ts b/packages/mana-core-nestjs-integration/src/services/credit-client.service.ts index 2ea4f9729..8e3e2d17e 100644 --- a/packages/mana-core-nestjs-integration/src/services/credit-client.service.ts +++ b/packages/mana-core-nestjs-integration/src/services/credit-client.service.ts @@ -106,12 +106,17 @@ export class CreditClientService { return this.getDefaultBalance(); } - const data = (await response.json()) as CreditBalance; + const { + balance = 0, + freeCreditsRemaining = 0, + totalEarned = 0, + totalSpent = 0, + } = (await response.json()) as CreditBalance; return { - balance: data.balance || 0, - freeCreditsRemaining: data.freeCreditsRemaining || 0, - totalEarned: data.totalEarned || 0, - totalSpent: data.totalSpent || 0, + balance, + freeCreditsRemaining, + totalEarned, + totalSpent, }; } catch (error) { this.logger.error(`Failed to get balance for user ${userId}:`, error); diff --git a/packages/news-database/src/index.ts b/packages/news-database/src/index.ts index 6a037064f..9505ae03e 100644 --- a/packages/news-database/src/index.ts +++ b/packages/news-database/src/index.ts @@ -1,4 +1,4 @@ -import { drizzle, PostgresJsDatabase } from 'drizzle-orm/postgres-js'; +import { drizzle, type PostgresJsDatabase } from 'drizzle-orm/postgres-js'; import postgres from 'postgres'; import * as schema from './schema'; diff --git a/packages/shared-auth-stores/src/types.ts b/packages/shared-auth-stores/src/types.ts index f88a3f3d9..b88856964 100644 --- a/packages/shared-auth-stores/src/types.ts +++ b/packages/shared-auth-stores/src/types.ts @@ -3,8 +3,6 @@ * Generic types for creating auth stores with custom user types */ -import type { AuthResult as BaseAuthResult } from '@manacore/shared-types'; - /** * Base user interface that all app-specific user types must extend */ diff --git a/packages/shared-auth/src/core/authService.ts b/packages/shared-auth/src/core/authService.ts index 8027bfaa7..3caaf4bcd 100644 --- a/packages/shared-auth/src/core/authService.ts +++ b/packages/shared-auth/src/core/authService.ts @@ -106,10 +106,6 @@ export function createAuthService(config: AuthServiceConfig) { */ async signUp(email: string, password: string): Promise { try { - const storage = getStorageAdapter(); - const deviceAdapter = getDeviceAdapter(); - const deviceInfo = await deviceAdapter.getDeviceInfo(); - const response = await fetch(`${baseUrl}${endpoints.signUp}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, @@ -128,7 +124,8 @@ export function createAuthService(config: AuthServiceConfig) { return { success: false, error: errorData.message || 'Sign up failed' }; } - const responseData = await response.json(); + // Consume response to avoid unhandled promise + await response.json(); // Mana Core Auth returns user data immediately on registration // User needs to sign in separately to get tokens diff --git a/packages/shared-auth/src/core/jwtUtils.ts b/packages/shared-auth/src/core/jwtUtils.ts index 549883946..0eb39c9c9 100644 --- a/packages/shared-auth/src/core/jwtUtils.ts +++ b/packages/shared-auth/src/core/jwtUtils.ts @@ -30,7 +30,7 @@ export function decodeToken(token: string): DecodedToken | null { /** * Check if a token is valid locally (not expired) */ -export function isTokenValidLocally(token: string, bufferSeconds: number = 10): boolean { +export function isTokenValidLocally(token: string, bufferSeconds = 10): boolean { try { const payload = decodeToken(token); if (!payload || !payload.exp) { diff --git a/packages/shared-config/src/env.ts b/packages/shared-config/src/env.ts index d4f730895..c1148718f 100644 --- a/packages/shared-config/src/env.ts +++ b/packages/shared-config/src/env.ts @@ -118,7 +118,7 @@ export function getEnv( */ export function getBoolEnv( key: string, - defaultValue: boolean = false, + defaultValue = false, env: NodeJS.ProcessEnv = process.env ): boolean { const value = env[key]; diff --git a/packages/shared-config/src/features.ts b/packages/shared-config/src/features.ts index f6c5084a0..0a0e7ecf3 100644 --- a/packages/shared-config/src/features.ts +++ b/packages/shared-config/src/features.ts @@ -99,7 +99,7 @@ export function createFeatureFlags>( */ export function isFeatureEnabled( featureName: string, - defaultValue: boolean = false, + defaultValue = false, env: NodeJS.ProcessEnv = process.env ): boolean { const envVar = `FEATURE_${featureName.toUpperCase().replace(/[^A-Z0-9]/g, '_')}`; diff --git a/packages/shared-credit-service/src/createCreditService.ts b/packages/shared-credit-service/src/createCreditService.ts index 3a1b4e132..2047ac2e0 100644 --- a/packages/shared-credit-service/src/createCreditService.ts +++ b/packages/shared-credit-service/src/createCreditService.ts @@ -230,10 +230,7 @@ export function createCreditService(config: CreditServiceConfig) { /** * Calculate cost for multiple units of an operation */ - async function calculateCost( - operation: StandardOperationType, - quantity: number = 1 - ): Promise { + async function calculateCost(operation: StandardOperationType, quantity = 1): Promise { const unitCost = await getOperationCost(operation); return unitCost * quantity; } @@ -241,7 +238,7 @@ export function createCreditService(config: CreditServiceConfig) { /** * Calculate cost synchronously (uses cached values) */ - function calculateCostSync(operation: StandardOperationType, quantity: number = 1): number { + function calculateCostSync(operation: StandardOperationType, quantity = 1): number { const unitCost = getOperationCostSync(operation); return unitCost * quantity; } @@ -288,7 +285,7 @@ export function createCreditService(config: CreditServiceConfig) { /** * Format credit amount for display */ - function formatCredits(amount: number, locale: string = 'en-US'): string { + function formatCredits(amount: number, locale = 'en-US'): string { return new Intl.NumberFormat(locale).format(amount); } diff --git a/packages/shared-credit-service/src/types.ts b/packages/shared-credit-service/src/types.ts index 46c937403..ffa8da84c 100644 --- a/packages/shared-credit-service/src/types.ts +++ b/packages/shared-credit-service/src/types.ts @@ -4,8 +4,6 @@ * Types for credit/mana operations across all apps */ -import type { OperationPricing, ManaBalance } from '@manacore/shared-subscription-types'; - /** * Credit balance with additional metadata */ diff --git a/packages/shared-errors/src/errors/app-error.ts b/packages/shared-errors/src/errors/app-error.ts index 7497e6d27..87a95db5c 100644 --- a/packages/shared-errors/src/errors/app-error.ts +++ b/packages/shared-errors/src/errors/app-error.ts @@ -1,4 +1,8 @@ -import { ErrorCode, ERROR_CODE_TO_HTTP_STATUS, ERROR_CODE_RETRYABLE } from '../types/error-codes'; +import { + type ErrorCode, + ERROR_CODE_TO_HTTP_STATUS, + ERROR_CODE_RETRYABLE, +} from '../types/error-codes'; /** * Additional context that can be attached to errors. diff --git a/packages/shared-errors/src/nestjs/app-exception.filter.ts b/packages/shared-errors/src/nestjs/app-exception.filter.ts index 41f1c685a..6369a5ff5 100644 --- a/packages/shared-errors/src/nestjs/app-exception.filter.ts +++ b/packages/shared-errors/src/nestjs/app-exception.filter.ts @@ -7,7 +7,7 @@ import { Logger, } from '@nestjs/common'; import type { Request, Response } from 'express'; -import { AppError } from '../errors/app-error'; +import { type AppError } from '../errors/app-error'; import { isAppError, isCreditError, isRateLimitError } from '../guards/type-guards'; import { ErrorCode } from '../types/error-codes'; diff --git a/packages/shared-feedback-service/src/createFeedbackService.ts b/packages/shared-feedback-service/src/createFeedbackService.ts index e0f0563c3..888e68ff8 100644 --- a/packages/shared-feedback-service/src/createFeedbackService.ts +++ b/packages/shared-feedback-service/src/createFeedbackService.ts @@ -18,7 +18,6 @@ */ import type { - Feedback, CreateFeedbackInput, FeedbackQueryParams, FeedbackResponse, diff --git a/packages/shared-nestjs-auth/src/decorators/current-user.decorator.ts b/packages/shared-nestjs-auth/src/decorators/current-user.decorator.ts index 0929abf87..b4572b7d5 100644 --- a/packages/shared-nestjs-auth/src/decorators/current-user.decorator.ts +++ b/packages/shared-nestjs-auth/src/decorators/current-user.decorator.ts @@ -1,5 +1,5 @@ -import { createParamDecorator, ExecutionContext } from '@nestjs/common'; -import { CurrentUserData } from '../types'; +import { createParamDecorator, type ExecutionContext } from '@nestjs/common'; +import { type CurrentUserData } from '../types'; /** * Parameter decorator to extract the current user from the request. diff --git a/packages/shared-supabase/src/index.ts b/packages/shared-supabase/src/index.ts index ba17ea8e5..568c3193d 100644 --- a/packages/shared-supabase/src/index.ts +++ b/packages/shared-supabase/src/index.ts @@ -4,7 +4,7 @@ * This package provides a unified Supabase client and common database utilities. */ -import { createClient, SupabaseClient } from '@supabase/supabase-js'; +import { createClient, type SupabaseClient } from '@supabase/supabase-js'; import type { SupabaseConfig } from '@manacore/shared-types'; export { SupabaseClient } from '@supabase/supabase-js'; diff --git a/packages/shared-theme/src/user-settings-store.svelte.ts b/packages/shared-theme/src/user-settings-store.svelte.ts index 0f31692a0..cc6557fdc 100644 --- a/packages/shared-theme/src/user-settings-store.svelte.ts +++ b/packages/shared-theme/src/user-settings-store.svelte.ts @@ -111,11 +111,7 @@ export function createUserSettingsStore(config: UserSettingsStoreConfig): UserSe /** * Make an API request to the settings endpoint */ - async function apiRequest( - method: string, - path: string, - body?: object - ): Promise { + async function apiRequest(method: string, path: string, body?: object): Promise { const token = await getAccessToken(); if (!token) { console.warn('No access token available for settings API'); diff --git a/packages/shared-utils/src/date.ts b/packages/shared-utils/src/date.ts index d3c0367ba..0f1d29a5f 100644 --- a/packages/shared-utils/src/date.ts +++ b/packages/shared-utils/src/date.ts @@ -17,7 +17,7 @@ export type LocaleKey = keyof typeof locales; */ export function formatDate( date: string | Date, - formatStr: string = 'PPP', + formatStr = 'PPP', locale: LocaleKey = 'de' ): string { const dateObj = typeof date === 'string' ? parseISO(date) : date; diff --git a/packages/shared-utils/src/format.ts b/packages/shared-utils/src/format.ts index fc66e9503..854f14fc8 100644 --- a/packages/shared-utils/src/format.ts +++ b/packages/shared-utils/src/format.ts @@ -93,7 +93,7 @@ export function formatDurationHumanReadable(seconds: number, locale: 'en' | 'de' /** * Format file size from bytes to human readable string */ -export function formatFileSize(bytes: number, decimals: number = 1): string { +export function formatFileSize(bytes: number, decimals = 1): string { if (bytes === 0) return '0 B'; if (!Number.isFinite(bytes) || bytes < 0) return '--'; @@ -107,18 +107,14 @@ export function formatFileSize(bytes: number, decimals: number = 1): string { /** * Format number with thousands separator */ -export function formatNumber(num: number, locale: string = 'de-DE'): string { +export function formatNumber(num: number, locale = 'de-DE'): string { return num.toLocaleString(locale); } /** * Format currency */ -export function formatCurrency( - amount: number, - currency: string = 'EUR', - locale: string = 'de-DE' -): string { +export function formatCurrency(amount: number, currency = 'EUR', locale = 'de-DE'): string { return new Intl.NumberFormat(locale, { style: 'currency', currency, @@ -128,11 +124,7 @@ export function formatCurrency( /** * Format percentage */ -export function formatPercent( - value: number, - decimals: number = 0, - locale: string = 'de-DE' -): string { +export function formatPercent(value: number, decimals = 0, locale = 'de-DE'): string { return new Intl.NumberFormat(locale, { style: 'percent', minimumFractionDigits: decimals, diff --git a/packages/shared-utils/src/string.ts b/packages/shared-utils/src/string.ts index a58916c97..41f0abaef 100644 --- a/packages/shared-utils/src/string.ts +++ b/packages/shared-utils/src/string.ts @@ -21,7 +21,7 @@ export function capitalize(str: string): string { /** * Generate a random string ID */ -export function generateId(length: number = 8): string { +export function generateId(length = 8): string { const chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let result = ''; for (let i = 0; i < length; i++) { diff --git a/scripts/generate-env.mjs b/scripts/generate-env.mjs index 14d2c02f2..a3db2067a 100644 --- a/scripts/generate-env.mjs +++ b/scripts/generate-env.mjs @@ -30,7 +30,10 @@ function parseEnvFile(content) { if (match) { let [, key, value] = match; // Handle quoted values - if ((value.startsWith('"') && value.endsWith('"')) || (value.startsWith("'") && value.endsWith("'"))) { + if ( + (value.startsWith('"') && value.endsWith('"')) || + (value.startsWith("'") && value.endsWith("'")) + ) { value = value.slice(1, -1); } env[key.trim()] = value; @@ -142,7 +145,8 @@ const APP_CONFIGS = [ { path: 'apps/maerchenzauber/apps/mobile/.env', vars: { - EXPO_PUBLIC_STORYTELLER_BACKEND_URL: (env) => `http://localhost:${env.MAERCHENZAUBER_BACKEND_PORT || '3003'}`, + EXPO_PUBLIC_STORYTELLER_BACKEND_URL: (env) => + `http://localhost:${env.MAERCHENZAUBER_BACKEND_PORT || '3003'}`, EXPO_ROUTER_APP_ROOT: () => 'app', }, }, @@ -227,7 +231,8 @@ const APP_CONFIGS = [ NODE_ENV: () => 'development', PORT: (env) => env.PICTURE_BACKEND_PORT || '3003', BACKEND_URL: (env) => env.PICTURE_BACKEND_URL || 'http://localhost:3003', - DATABASE_URL: (env) => env.PICTURE_DATABASE_URL || 'postgresql://picture:picturepassword@localhost:5434/picture', + DATABASE_URL: (env) => + env.PICTURE_DATABASE_URL || 'postgresql://picture:picturepassword@localhost:5434/picture', MANA_CORE_AUTH_URL: (env) => env.MANA_CORE_AUTH_URL, DEV_BYPASS_AUTH: () => 'true', DEV_USER_ID: (env) => env.DEV_USER_ID || '00000000-0000-0000-0000-000000000000',