mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
fixes
This commit is contained in:
parent
e9caa4a217
commit
843cf1e678
36 changed files with 400 additions and 55 deletions
|
|
@ -1390,5 +1390,365 @@
|
||||||
"cpuLoad": 0.2546793619791667,
|
"cpuLoad": 0.2546793619791667,
|
||||||
"platform": "darwin",
|
"platform": "darwin",
|
||||||
"uptime": 168739
|
"uptime": 168739
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804747294,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31928467456,
|
||||||
|
"memoryFree": 2431270912,
|
||||||
|
"memoryUsagePercent": 92.92407035827637,
|
||||||
|
"memoryEfficiency": 7.075929641723633,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3412679036458333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168769
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804777295,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31730237440,
|
||||||
|
"memoryFree": 2629500928,
|
||||||
|
"memoryUsagePercent": 92.3471450805664,
|
||||||
|
"memoryEfficiency": 7.652854919433594,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.2632649739583333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168799
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804807296,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32342261760,
|
||||||
|
"memoryFree": 2017476608,
|
||||||
|
"memoryUsagePercent": 94.12837028503418,
|
||||||
|
"memoryEfficiency": 5.87162971496582,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.23197428385416666,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168829
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804837297,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33403928576,
|
||||||
|
"memoryFree": 955809792,
|
||||||
|
"memoryUsagePercent": 97.21822738647461,
|
||||||
|
"memoryEfficiency": 2.7817726135253906,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.23291015625,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168859
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804867297,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 34050195456,
|
||||||
|
"memoryFree": 309542912,
|
||||||
|
"memoryUsagePercent": 99.09911155700684,
|
||||||
|
"memoryEfficiency": 0.9008884429931641,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.24495442708333334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168889
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804897298,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31393316864,
|
||||||
|
"memoryFree": 2966421504,
|
||||||
|
"memoryUsagePercent": 91.3665771484375,
|
||||||
|
"memoryEfficiency": 8.6334228515625,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.4297688802083333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168919
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804927300,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31525306368,
|
||||||
|
"memoryFree": 2834432000,
|
||||||
|
"memoryUsagePercent": 91.75071716308594,
|
||||||
|
"memoryEfficiency": 8.249282836914062,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.447021484375,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168949
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804957300,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31847972864,
|
||||||
|
"memoryFree": 2511765504,
|
||||||
|
"memoryUsagePercent": 92.68980026245117,
|
||||||
|
"memoryEfficiency": 7.310199737548828,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.8130696614583334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 168979
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764804987301,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32510230528,
|
||||||
|
"memoryFree": 1849507840,
|
||||||
|
"memoryUsagePercent": 94.61722373962402,
|
||||||
|
"memoryEfficiency": 5.382776260375977,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 1.1352945963541667,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169009
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805017302,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32548028416,
|
||||||
|
"memoryFree": 1811709952,
|
||||||
|
"memoryUsagePercent": 94.72723007202148,
|
||||||
|
"memoryEfficiency": 5.272769927978516,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.7440185546875,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169039
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805047307,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 34271232000,
|
||||||
|
"memoryFree": 88506368,
|
||||||
|
"memoryUsagePercent": 99.74241256713867,
|
||||||
|
"memoryEfficiency": 0.2575874328613281,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.6794026692708334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169069
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805077309,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 30496456704,
|
||||||
|
"memoryFree": 3863281664,
|
||||||
|
"memoryUsagePercent": 88.7563705444336,
|
||||||
|
"memoryEfficiency": 11.243629455566406,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.539794921875,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169099
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805107311,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31044321280,
|
||||||
|
"memoryFree": 3315417088,
|
||||||
|
"memoryUsagePercent": 90.35086631774902,
|
||||||
|
"memoryEfficiency": 9.649133682250977,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.436279296875,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169129
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805137312,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31248367616,
|
||||||
|
"memoryFree": 3111370752,
|
||||||
|
"memoryUsagePercent": 90.9447193145752,
|
||||||
|
"memoryEfficiency": 9.055280685424805,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3575032552083333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169159
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805167313,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31985221632,
|
||||||
|
"memoryFree": 2374516736,
|
||||||
|
"memoryUsagePercent": 93.08924674987793,
|
||||||
|
"memoryEfficiency": 6.91075325012207,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.292724609375,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169189
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805197314,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31961088000,
|
||||||
|
"memoryFree": 2398650368,
|
||||||
|
"memoryUsagePercent": 93.01900863647461,
|
||||||
|
"memoryEfficiency": 6.980991363525391,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.2621256510416667,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169219
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805227315,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32411680768,
|
||||||
|
"memoryFree": 1948057600,
|
||||||
|
"memoryUsagePercent": 94.33040618896484,
|
||||||
|
"memoryEfficiency": 5.669593811035156,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.23238118489583334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169249
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805257316,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32913588224,
|
||||||
|
"memoryFree": 1446150144,
|
||||||
|
"memoryUsagePercent": 95.7911491394043,
|
||||||
|
"memoryEfficiency": 4.208850860595703,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3552652994791667,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169279
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805287317,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32959627264,
|
||||||
|
"memoryFree": 1400111104,
|
||||||
|
"memoryUsagePercent": 95.92514038085938,
|
||||||
|
"memoryEfficiency": 4.074859619140625,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3252360026041667,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169309
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805317320,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 32839237632,
|
||||||
|
"memoryFree": 1520500736,
|
||||||
|
"memoryUsagePercent": 95.57476043701172,
|
||||||
|
"memoryEfficiency": 4.425239562988281,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.259765625,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169339
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805347320,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33293942784,
|
||||||
|
"memoryFree": 1065795584,
|
||||||
|
"memoryUsagePercent": 96.89812660217285,
|
||||||
|
"memoryEfficiency": 3.1018733978271484,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.4244384765625,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169369
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805377321,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33529135104,
|
||||||
|
"memoryFree": 830603264,
|
||||||
|
"memoryUsagePercent": 97.58262634277344,
|
||||||
|
"memoryEfficiency": 2.4173736572265625,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.4689534505208333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169399
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805407322,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 31573344256,
|
||||||
|
"memoryFree": 2786394112,
|
||||||
|
"memoryUsagePercent": 91.8905258178711,
|
||||||
|
"memoryEfficiency": 8.109474182128906,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3621419270833333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169429
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805437323,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33118453760,
|
||||||
|
"memoryFree": 1241284608,
|
||||||
|
"memoryUsagePercent": 96.38738632202148,
|
||||||
|
"memoryEfficiency": 3.6126136779785156,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3133544921875,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169459
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805467323,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33758134272,
|
||||||
|
"memoryFree": 601604096,
|
||||||
|
"memoryUsagePercent": 98.24910163879395,
|
||||||
|
"memoryEfficiency": 1.7508983612060547,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.22066243489583334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169489
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805497323,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33651965952,
|
||||||
|
"memoryFree": 707772416,
|
||||||
|
"memoryUsagePercent": 97.94011116027832,
|
||||||
|
"memoryEfficiency": 2.0598888397216797,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.19954427083333334,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169519
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805527325,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33799356416,
|
||||||
|
"memoryFree": 560381952,
|
||||||
|
"memoryUsagePercent": 98.36907386779785,
|
||||||
|
"memoryEfficiency": 1.6309261322021484,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.15824381510416666,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169549
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805557327,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33850228736,
|
||||||
|
"memoryFree": 509509632,
|
||||||
|
"memoryUsagePercent": 98.51713180541992,
|
||||||
|
"memoryEfficiency": 1.4828681945800781,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.1678466796875,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169579
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805587328,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 34072035328,
|
||||||
|
"memoryFree": 287703040,
|
||||||
|
"memoryUsagePercent": 99.16267395019531,
|
||||||
|
"memoryEfficiency": 0.8373260498046875,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.308349609375,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169609
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timestamp": 1764805617330,
|
||||||
|
"memoryTotal": 34359738368,
|
||||||
|
"memoryUsed": 33581727744,
|
||||||
|
"memoryFree": 778010624,
|
||||||
|
"memoryUsagePercent": 97.73569107055664,
|
||||||
|
"memoryEfficiency": 2.2643089294433594,
|
||||||
|
"cpuCount": 12,
|
||||||
|
"cpuLoad": 0.3234456380208333,
|
||||||
|
"platform": "darwin",
|
||||||
|
"uptime": 169639
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"type-check": "astro check",
|
"type-check": "astro check",
|
||||||
"lint": "prettier --check . && eslint .",
|
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"clean": "rm -rf dist .astro node_modules"
|
"clean": "rm -rf dist .astro node_modules"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,7 @@
|
||||||
"./constants": "./src/constants/index.ts"
|
"./constants": "./src/constants/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"lint": "eslint src"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "~5.9.2"
|
"typescript": "~5.9.2"
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@
|
||||||
"build": "astro check && astro build",
|
"build": "astro check && astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"type-check": "astro check",
|
"type-check": "astro check"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.0",
|
"@astrojs/check": "^0.9.0",
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,5 @@
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {}
|
||||||
"lint": "eslint ."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/react": "^3.6.0",
|
"@astrojs/react": "^3.6.0",
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@
|
||||||
"build": "astro check && astro build",
|
"build": "astro check && astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"type-check": "astro check",
|
"type-check": "astro check"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.0",
|
"@astrojs/check": "^0.9.0",
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"type-check": "astro check",
|
"type-check": "astro check",
|
||||||
"lint": "prettier --check . && eslint .",
|
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"clean": "rm -rf dist .astro node_modules"
|
"clean": "rm -rf dist .astro node_modules"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@
|
||||||
"build": "astro check && astro build",
|
"build": "astro check && astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"type-check": "astro check",
|
"type-check": "astro check"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.0",
|
"@astrojs/check": "^0.9.0",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function StackNavigator() {
|
||||||
header: ({ route, options }) => {
|
header: ({ route, options }) => {
|
||||||
let title = options.title || '';
|
let title = options.title || '';
|
||||||
let showAddDeck = false;
|
let showAddDeck = false;
|
||||||
let rightContent = options.headerRight?.({});
|
const rightContent = options.headerRight?.({});
|
||||||
|
|
||||||
if (route.name === 'index') {
|
if (route.name === 'index') {
|
||||||
title = `My Decks (${route.params?.deckCount || 0})`;
|
title = `My Decks (${route.params?.deckCount || 0})`;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { useLocalSearchParams, useRouter } from 'expo-router';
|
import { useLocalSearchParams, useRouter } from 'expo-router';
|
||||||
import { getDeckSlides, getDeck, deleteSlide, reorderSlide } from '../../services/firestore';
|
import { getDeckSlides, getDeck, deleteSlide, reorderSlide } from '../../services/firestore';
|
||||||
import { Slide, Deck } from '../../types/models';
|
import { type Slide, type Deck } from '../../types/models';
|
||||||
import { SlideList } from '../../components/slides/SlideList';
|
import { SlideList } from '../../components/slides/SlideList';
|
||||||
import { SlideEditor } from '../../components/slides/SlideEditor';
|
import { SlideEditor } from '../../components/slides/SlideEditor';
|
||||||
import { PresentationMode } from '../../components/presentation/PresentationMode';
|
import { PresentationMode } from '../../components/presentation/PresentationMode';
|
||||||
|
|
@ -234,7 +234,7 @@ export default function DeckScreen() {
|
||||||
/>
|
/>
|
||||||
<Header
|
<Header
|
||||||
title={deck?.name || 'Loading...'}
|
title={deck?.name || 'Loading...'}
|
||||||
showPresent={true}
|
showPresent
|
||||||
onPresentPress={handleStartPresentation}
|
onPresentPress={handleStartPresentation}
|
||||||
disabled={!slides.length}
|
disabled={!slides.length}
|
||||||
slideCount={slides.length}
|
slideCount={slides.length}
|
||||||
|
|
@ -244,7 +244,7 @@ export default function DeckScreen() {
|
||||||
<Modal
|
<Modal
|
||||||
visible={isCreateModalVisible}
|
visible={isCreateModalVisible}
|
||||||
animationType="fade"
|
animationType="fade"
|
||||||
transparent={true}
|
transparent
|
||||||
onRequestClose={() => {
|
onRequestClose={() => {
|
||||||
setIsCreateModalVisible(false);
|
setIsCreateModalVisible(false);
|
||||||
setEditingSlide(null);
|
setEditingSlide(null);
|
||||||
|
|
@ -314,7 +314,7 @@ export default function DeckScreen() {
|
||||||
<Modal
|
<Modal
|
||||||
visible={isDeleteModalVisible}
|
visible={isDeleteModalVisible}
|
||||||
animationType="fade"
|
animationType="fade"
|
||||||
transparent={true}
|
transparent
|
||||||
onRequestClose={() => setIsDeleteModalVisible(false)}
|
onRequestClose={() => setIsDeleteModalVisible(false)}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
|
|
@ -386,7 +386,7 @@ export default function DeckScreen() {
|
||||||
animationType="fade"
|
animationType="fade"
|
||||||
transparent={false}
|
transparent={false}
|
||||||
onRequestClose={() => setIsPresentationMode(false)}
|
onRequestClose={() => setIsPresentationMode(false)}
|
||||||
statusBarTranslucent={true}
|
statusBarTranslucent
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, backgroundColor: theme.colors.backgroundPage }}>
|
<View style={{ flex: 1, backgroundColor: theme.colors.backgroundPage }}>
|
||||||
<PresentationMode slides={slides} onClose={() => setIsPresentationMode(false)} />
|
<PresentationMode slides={slides} onClose={() => setIsPresentationMode(false)} />
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@ import {
|
||||||
getDeckSlides,
|
getDeckSlides,
|
||||||
migrateDecksToNewSchema,
|
migrateDecksToNewSchema,
|
||||||
} from '../services/firestore';
|
} from '../services/firestore';
|
||||||
import { Deck, Slide } from '../types/models';
|
import { type Deck, Slide } from '../types/models';
|
||||||
import { DeckList } from '../components/decks/DeckList';
|
import { DeckList } from '../components/decks/DeckList';
|
||||||
import { CreateDeckForm } from '../components/forms/CreateDeckForm';
|
import { CreateDeckForm } from '../components/forms/CreateDeckForm';
|
||||||
import { DeckShareSettings } from '../components/decks/DeckShareSettings';
|
import { DeckShareSettings } from '../components/decks/DeckShareSettings';
|
||||||
import { auth } from '../firebaseConfig';
|
import { auth } from '../firebaseConfig';
|
||||||
import { onAuthStateChanged, User } from 'firebase/auth';
|
import { onAuthStateChanged, type User } from 'firebase/auth';
|
||||||
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
||||||
import { ThemeProvider } from '../components/ThemeProvider';
|
import { ThemeProvider } from '../components/ThemeProvider';
|
||||||
import { useTheme } from '../components/ThemeProvider';
|
import { useTheme } from '../components/ThemeProvider';
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { useLocalSearchParams } from 'expo-router';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { View, Text, StyleSheet } from 'react-native';
|
import { View, Text, StyleSheet } from 'react-native';
|
||||||
import { useTheme } from '../../components/ThemeProvider';
|
import { useTheme } from '../../components/ThemeProvider';
|
||||||
import { Deck } from '../../types/models';
|
import { type Deck } from '../../types/models';
|
||||||
import { doc, getDoc } from 'firebase/firestore';
|
import { doc, getDoc } from 'firebase/firestore';
|
||||||
import { db } from '../../firebaseConfig';
|
import { db } from '../../firebaseConfig';
|
||||||
import { SlideList } from '../../components/slides/SlideList';
|
import { SlideList } from '../../components/slides/SlideList';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, Image } from 'react-native';
|
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, Image } from 'react-native';
|
||||||
import { useRouter } from 'expo-router';
|
import { useRouter } from 'expo-router';
|
||||||
import { useTheme, ThemeVariant } from '../components/ThemeProvider';
|
import { useTheme, type ThemeVariant } from '../components/ThemeProvider';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
|
|
||||||
const THEME_PATTERNS: Record<ThemeVariant, any> = {
|
const THEME_PATTERNS: Record<ThemeVariant, any> = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { createContext, useContext, useState, useEffect, useMemo } from 'react';
|
import React, { createContext, useContext, useState, useEffect, useMemo } from 'react';
|
||||||
import { useColorScheme } from 'react-native';
|
import { useColorScheme } from 'react-native';
|
||||||
import { getTheme, Theme, ThemeVariant } from '../constants/theme';
|
import { getTheme, type Theme, type ThemeVariant } from '../constants/theme';
|
||||||
|
|
||||||
export type ColorMode = 'system' | 'light' | 'dark';
|
export type ColorMode = 'system' | 'light' | 'dark';
|
||||||
export type ContrastLevel = 1 | 2 | 3 | 4 | 5;
|
export type ContrastLevel = 1 | 2 | 3 | 4 | 5;
|
||||||
|
|
@ -18,7 +18,7 @@ const hexToRgb = (hex: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Hilfsfunktion zum Konvertieren von RGB zu Hex mit Alpha
|
// Hilfsfunktion zum Konvertieren von RGB zu Hex mit Alpha
|
||||||
const rgbaToHex = (r: number, g: number, b: number, a: number = 1) => {
|
const rgbaToHex = (r: number, g: number, b: number, a = 1) => {
|
||||||
const alpha = Math.round(a * 255);
|
const alpha = Math.round(a * 255);
|
||||||
return (
|
return (
|
||||||
'#' +
|
'#' +
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator } from 'react-native';
|
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator } from 'react-native';
|
||||||
import { ReactNode } from 'react';
|
import { type ReactNode } from 'react';
|
||||||
|
|
||||||
interface ButtonProps {
|
interface ButtonProps {
|
||||||
onPress: () => void;
|
onPress: () => void;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, TouchableOpacity, StyleSheet, Pressable } from 'react-native';
|
import { View, Text, TouchableOpacity, StyleSheet, Pressable } from 'react-native';
|
||||||
import { useTheme, ColorMode, ContrastLevel } from '../ThemeProvider';
|
import { useTheme, type ColorMode, type ContrastLevel } from '../ThemeProvider';
|
||||||
|
|
||||||
const COLOR_MODES: { label: string; value: ColorMode }[] = [
|
const COLOR_MODES: { label: string; value: ColorMode }[] = [
|
||||||
{ label: 'System', value: 'system' },
|
{ label: 'System', value: 'system' },
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, TouchableOpacity, StyleSheet, Image } from 'react-native';
|
import { View, Text, TouchableOpacity, StyleSheet, Image } from 'react-native';
|
||||||
import { Deck } from '../../types/models';
|
import { type Deck } from '../../types/models';
|
||||||
import { MaterialIcons } from '@expo/vector-icons';
|
import { MaterialIcons } from '@expo/vector-icons';
|
||||||
import { useTheme } from '../../components/ThemeProvider';
|
import { useTheme } from '../../components/ThemeProvider';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
Pressable,
|
Pressable,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
import { Deck } from '../../types/models';
|
import { type Deck } from '../../types/models';
|
||||||
import { useTheme } from '../../components/ThemeProvider';
|
import { useTheme } from '../../components/ThemeProvider';
|
||||||
import { CreateItemButton } from '../common/CreateItemButton';
|
import { CreateItemButton } from '../common/CreateItemButton';
|
||||||
import { MenuRoot, MenuTrigger, MenuContent, MenuItem, MenuItemTitle } from '../common/menu';
|
import { MenuRoot, MenuTrigger, MenuContent, MenuItem, MenuItemTitle } from '../common/menu';
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
import { Deck, CollaboratorRole } from '../../types/models';
|
import { type Deck, type CollaboratorRole } from '../../types/models';
|
||||||
|
|
||||||
interface DeckShareSettingsProps {
|
interface DeckShareSettingsProps {
|
||||||
deck: Deck;
|
deck: Deck;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
import { createDeck } from '../../services/firestore';
|
import { createDeck } from '../../services/firestore';
|
||||||
import { Deck } from '../../types/models';
|
import { type Deck } from '../../types/models';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
|
|
||||||
interface CreateDeckFormProps {
|
interface CreateDeckFormProps {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { Ionicons } from '@expo/vector-icons';
|
import { Ionicons } from '@expo/vector-icons';
|
||||||
import { SlideView } from '../slides/SlideView';
|
import { SlideView } from '../slides/SlideView';
|
||||||
import { Slide } from '../../types/models';
|
import { type Slide } from '../../types/models';
|
||||||
import * as ScreenOrientation from 'expo-screen-orientation';
|
import * as ScreenOrientation from 'expo-screen-orientation';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import * as ImagePicker from 'expo-image-picker';
|
||||||
import { storage } from '../../firebaseConfig';
|
import { storage } from '../../firebaseConfig';
|
||||||
import { ref, uploadBytes, getDownloadURL } from 'firebase/storage';
|
import { ref, uploadBytes, getDownloadURL } from 'firebase/storage';
|
||||||
import { createSlide, updateSlide } from '../../services/firestore';
|
import { createSlide, updateSlide } from '../../services/firestore';
|
||||||
import { Slide } from '../../types/models';
|
import { type Slide } from '../../types/models';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
Pressable,
|
Pressable,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
||||||
import { Slide } from '../../types/models';
|
import { type Slide } from '../../types/models';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
import { MenuRoot, MenuTrigger, MenuContent, MenuItem, MenuItemTitle } from '../common/menu';
|
import { MenuRoot, MenuTrigger, MenuContent, MenuItem, MenuItemTitle } from '../common/menu';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, Image, StyleSheet, Dimensions, TouchableOpacity } from 'react-native';
|
import { View, Text, Image, StyleSheet, Dimensions, TouchableOpacity } from 'react-native';
|
||||||
import { Slide } from '../../types/models';
|
import { type Slide } from '../../types/models';
|
||||||
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
||||||
import { useTheme } from '../ThemeProvider';
|
import { useTheme } from '../ThemeProvider';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { ColorSchemeName } from 'react-native';
|
import { type ColorSchemeName } from 'react-native';
|
||||||
|
|
||||||
// Theme types
|
// Theme types
|
||||||
export type ThemeVariant = 'lume' | 'nature' | 'stone';
|
export type ThemeVariant = 'lume' | 'nature' | 'stone';
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {
|
||||||
signOut,
|
signOut,
|
||||||
sendPasswordResetEmail,
|
sendPasswordResetEmail,
|
||||||
onAuthStateChanged,
|
onAuthStateChanged,
|
||||||
User,
|
type User,
|
||||||
} from 'firebase/auth';
|
} from 'firebase/auth';
|
||||||
import { auth } from '../firebaseConfig';
|
import { auth } from '../firebaseConfig';
|
||||||
import { doc, setDoc } from 'firebase/firestore';
|
import { doc, setDoc } from 'firebase/firestore';
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import {
|
||||||
writeBatch,
|
writeBatch,
|
||||||
} from 'firebase/firestore';
|
} from 'firebase/firestore';
|
||||||
import { db, auth } from '../firebaseConfig';
|
import { db, auth } from '../firebaseConfig';
|
||||||
import { Deck, Slide } from '../types/models';
|
import { type Deck, type Slide } from '../types/models';
|
||||||
|
|
||||||
// Decks
|
// Decks
|
||||||
export const getUserDecks = async (userId: string): Promise<Deck[]> => {
|
export const getUserDecks = async (userId: string): Promise<Deck[]> => {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { createContext, useContext, useState, useEffect } from 'react';
|
import React, { createContext, useContext, useState, useEffect } from 'react';
|
||||||
import { useColorScheme } from 'react-native';
|
import { useColorScheme } from 'react-native';
|
||||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||||
import { getTheme, Theme } from './constants';
|
import { getTheme, type Theme } from './constants';
|
||||||
|
|
||||||
export type ColorMode = 'system' | 'light' | 'dark';
|
export type ColorMode = 'system' | 'light' | 'dark';
|
||||||
export type ContrastLevel = 1 | 2 | 3 | 4 | 5;
|
export type ContrastLevel = 1 | 2 | 3 | 4 | 5;
|
||||||
|
|
@ -42,7 +42,7 @@ const hexToRgb = (hex: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Hilfsfunktion zum Konvertieren von RGB zu Hex mit Alpha
|
// Hilfsfunktion zum Konvertieren von RGB zu Hex mit Alpha
|
||||||
const rgbaToHex = (r: number, g: number, b: number, a: number = 1) => {
|
const rgbaToHex = (r: number, g: number, b: number, a = 1) => {
|
||||||
const alpha = Math.round(a * 255);
|
const alpha = Math.round(a * 255);
|
||||||
return (
|
return (
|
||||||
'#' +
|
'#' +
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, TouchableOpacity, StyleSheet, Pressable } from 'react-native';
|
import { View, Text, TouchableOpacity, StyleSheet, Pressable } from 'react-native';
|
||||||
import { useTheme, ColorMode, ContrastLevel } from './ThemeProvider';
|
import { useTheme, type ColorMode, type ContrastLevel } from './ThemeProvider';
|
||||||
|
|
||||||
const COLOR_MODES: { label: string; value: ColorMode }[] = [
|
const COLOR_MODES: { label: string; value: ColorMode }[] = [
|
||||||
{ label: 'System', value: 'system' },
|
{ label: 'System', value: 'system' },
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.7.2"
|
"typescript": "^5.7.2"
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@
|
||||||
"./types": "./src/types/index.ts"
|
"./types": "./src/types/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.3"
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@manacore/shared-landing-ui": "workspace:*",
|
"@manacore/shared-landing-ui": "workspace:*",
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,7 @@
|
||||||
"./config": "./src/config/index.ts"
|
"./config": "./src/config/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@zitare/shared": "workspace:*"
|
"@zitare/shared": "workspace:*"
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,7 @@
|
||||||
"./services": "./src/services/index.ts"
|
"./services": "./src/services/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"lint": "eslint src"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "~5.9.2"
|
"typescript": "~5.9.2"
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@
|
||||||
"./stores/*": "./src/stores/*.ts"
|
"./stores/*": "./src/stores/*.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"svelte": "^5.0.0"
|
"svelte": "^5.0.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue