fix(modules): standardize module codes to lowercase and link commerce plan codes #1
|
|
@ -1,5 +1,5 @@
|
|||
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
|
||||
|
||||
.env
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
|
|
|
|||
|
|
@ -1165,6 +1165,223 @@
|
|||
"integrity": "sha512-D5gd/uFa7KfMJX9S11hvej4GpQnBl27oKiUgyIq3cLTPtyDOWBwRgmeePIdV6+PGcedlDkaCND2BnRgAkxzNaA==",
|
||||
"license": "MIT AND Apache-2.0"
|
||||
},
|
||||
"node_modules/@expo/cli": {
|
||||
"version": "57.0.23",
|
||||
"resolved": "https://registry.npmjs.org/@expo/cli/-/cli-57.0.23.tgz",
|
||||
"integrity": "sha512-stzSYxVwbWGbKR+mrYT6s4Rt6HrcUxb0JrHyebDGL4ehpvfRTv0rMzn4Q7fqB6f5wJ1KCmf6OAgqgK+TTB8/FA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@expo/code-signing-certificates": "^0.0.6",
|
||||
"@expo/config": "~57.0.9",
|
||||
"@expo/config-plugins": "~57.0.9",
|
||||
"@expo/devcert": "^1.2.1",
|
||||
"@expo/env": "~2.4.3",
|
||||
"@expo/image-utils": "^0.11.5",
|
||||
"@expo/inline-modules": "^0.1.7",
|
||||
"@expo/json-file": "^11.0.1",
|
||||
"@expo/log-box": "^57.0.4",
|
||||
"@expo/metro": "~56.0.2",
|
||||
"@expo/metro-config": "~57.0.12",
|
||||
"@expo/metro-file-map": "^57.0.3",
|
||||
"@expo/osascript": "^2.7.1",
|
||||
"@expo/package-manager": "^1.13.1",
|
||||
"@expo/plist": "^0.8.1",
|
||||
"@expo/prebuild-config": "^57.0.15",
|
||||
"@expo/require-utils": "^57.0.5",
|
||||
"@expo/router-server": "^57.0.9",
|
||||
"@expo/schema-utils": "^57.0.2",
|
||||
"@expo/spawn-async": "^1.8.0",
|
||||
"@expo/ws-tunnel": "^2.0.0",
|
||||
"@expo/xcpretty": "^4.4.4",
|
||||
"@react-native/dev-middleware": "0.86.3",
|
||||
"accepts": "^1.3.8",
|
||||
"agent-cli-detector": "0.1.7",
|
||||
"arg": "^5.0.2",
|
||||
"bplist-creator": "0.1.0",
|
||||
"bplist-parser": "^0.3.1",
|
||||
"chalk": "^4.0.0",
|
||||
"ci-info": "^3.3.0",
|
||||
"compression": "^1.7.4",
|
||||
"connect": "^3.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"dnssd-advertise": "^1.1.4",
|
||||
"expo-server": "^57.0.3",
|
||||
"fetch-nodeshim": "^0.4.10",
|
||||
"getenv": "^2.0.0",
|
||||
"glob": "^13.0.0",
|
||||
"lan-network": "^0.2.1",
|
||||
"multitars": "^1.0.2",
|
||||
"node-forge": "^1.3.3",
|
||||
"npm-package-arg": "^11.0.0",
|
||||
"ora": "^3.4.0",
|
||||
"picomatch": "^4.0.4",
|
||||
"pretty-format": "^29.7.0",
|
||||
"progress": "^2.0.3",
|
||||
"prompts": "^2.3.2",
|
||||
"resolve-from": "^5.0.0",
|
||||
"sandbox-cli-detector": "^0.2.0",
|
||||
"semver": "^7.6.0",
|
||||
"send": "^0.19.0",
|
||||
"slugify": "^1.3.4",
|
||||
"stacktrace-parser": "^0.1.10",
|
||||
"structured-headers": "^0.4.1",
|
||||
"terminal-link": "^2.1.1",
|
||||
"toqr": "^0.1.1",
|
||||
"wrap-ansi": "^7.0.0",
|
||||
"ws": "^8.12.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"bin": {
|
||||
"expo-internal": "main.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"expo": "*",
|
||||
"expo-router": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"expo-router": {
|
||||
"optional": true
|
||||
},
|
||||
"react-native": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/@expo/router-server": {
|
||||
"version": "57.0.9",
|
||||
"resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-57.0.9.tgz",
|
||||
"integrity": "sha512-/PxRQozFesIyCJZOAtrQE8XcmcojNiL5ctPMQnbE4ojC2EJPu0zc7c0Y4PuXsoRxrZxm8Usw76/lCVrXcfTZ2w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@expo/metro-runtime": "^57.0.15",
|
||||
"expo": "*",
|
||||
"expo-constants": "^57.0.17",
|
||||
"expo-font": "^57.0.3",
|
||||
"expo-router": "*",
|
||||
"expo-server": "^57.0.3",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@expo/metro-runtime": {
|
||||
"optional": true
|
||||
},
|
||||
"expo-router": {
|
||||
"optional": true
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
},
|
||||
"react-server-dom-webpack": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/@expo/ws-tunnel": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@expo/ws-tunnel/-/ws-tunnel-2.0.0.tgz",
|
||||
"integrity": "sha512-j+JfTRdCk820J9dU0sA2SqshQIKFOMo7ED84w9MJFcebfbNQgsLztEY/SABDkGnjatrW4xGqnUhVRxSBVyCkXw==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"ws": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/accepts": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
||||
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-types": "~2.1.34",
|
||||
"negotiator": "0.6.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/ci-info": {
|
||||
"version": "3.9.0",
|
||||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
||||
"integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/sibiraj-s"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-db": "1.52.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/negotiator": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
||||
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/semver": {
|
||||
"version": "7.8.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
|
||||
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/cli/node_modules/ws": {
|
||||
"version": "8.21.3",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
|
||||
"integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": ">=5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@expo/code-signing-certificates": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@expo/code-signing-certificates/-/code-signing-certificates-0.0.6.tgz",
|
||||
|
|
@ -1483,9 +1700,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@expo/metro-file-map": {
|
||||
"version": "57.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-57.0.2.tgz",
|
||||
"integrity": "sha512-tb50nSIWwKpRufSkGuivOK0FbUxv1Uwqptb0SzFTk0bkmYmcy3gIwnCbOHTfmrQDVndRhPEiu2SYgh9Z0PCvGg==",
|
||||
"version": "57.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-57.0.3.tgz",
|
||||
"integrity": "sha512-1OXy+uPYY5uc7Tm4VBsd2NRn+3wHhqeqNuEO/Xo4kmYgv8FjYgUAc+bUXON9FpC2ikcLn4EVlGM9ce2exx9Mlg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
|
@ -1670,9 +1887,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@expo/ui": {
|
||||
"version": "57.0.16",
|
||||
"resolved": "https://registry.npmjs.org/@expo/ui/-/ui-57.0.16.tgz",
|
||||
"integrity": "sha512-3MK74dEPE4mwlv0VbyQKepmHigOs2bcOvay2SFqc1/QSywVTOjbkNPYUbq2H+LyOLP2sHMazrPBwfXGiYn3q7A==",
|
||||
"version": "57.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@expo/ui/-/ui-57.0.17.tgz",
|
||||
"integrity": "sha512-cnenUTsfX78i/EfXhA81Zv48sOxRdIq4YWCggwgBiPoOyS8J5CP/6dGyKo26ZVtcIsogWR4aXywaripeRF+6Ng==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"sf-symbols-typescript": "^2.1.0",
|
||||
|
|
@ -1710,9 +1927,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@expo/xcpretty": {
|
||||
"version": "4.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@expo/xcpretty/-/xcpretty-4.4.4.tgz",
|
||||
"integrity": "sha512-4aQzz9vgxcNXFfo/iyNgDDYfsU5XGKKxWxZopw0cVotHiW+U8IJbIxMaxsINs6bHhtkG3StKNPcOrn3eBuxKPw==",
|
||||
"version": "4.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@expo/xcpretty/-/xcpretty-4.4.5.tgz",
|
||||
"integrity": "sha512-J3eL4n4h5QTwfD0SIz8OIk6/+sOL/hFZAMacgCM07UNlxBQfJipEpIC2AQxvGkbYeStByJ0TVhQAJo+DeNgaSQ==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.20.0",
|
||||
|
|
@ -2981,9 +3198,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/babel-preset-expo": {
|
||||
"version": "57.0.10",
|
||||
"resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.10.tgz",
|
||||
"integrity": "sha512-08bt6bqMZFoQuWO9gkt0EXotbqKHimELFGa1LlKJvY89iKsi4S0FJSFBFJ4pn9NZvofet48HIjYDQ0SZJ7bNrg==",
|
||||
"version": "57.0.11",
|
||||
"resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.11.tgz",
|
||||
"integrity": "sha512-R0NouDI3nzQUsjBh5TUJSDXLmuVzE2bp2YE0ywJkKxzrdWVjShpAlZMBuDeOQy6iKGB6ZCCvMqbQvpqgNMJ7iw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/generator": "^7.20.5",
|
||||
|
|
@ -3032,7 +3249,7 @@
|
|||
"peerDependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"expo": "*",
|
||||
"expo-widgets": "^57.0.16",
|
||||
"expo-widgets": "^57.0.18",
|
||||
"react-refresh": ">=0.14.0 <1.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
|
@ -3806,13 +4023,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/expo": {
|
||||
"version": "57.0.20",
|
||||
"resolved": "https://registry.npmjs.org/expo/-/expo-57.0.20.tgz",
|
||||
"integrity": "sha512-H57GWLLpNPrltsrjvx6ROsMecoFQza7h9OzujUjBsaY+aDL+bj3GsZaH3T5v5B96R7txuidUwjUh5q5hi3qttg==",
|
||||
"version": "57.0.21",
|
||||
"resolved": "https://registry.npmjs.org/expo/-/expo-57.0.21.tgz",
|
||||
"integrity": "sha512-lQmC0kCJCleO+uLUwHXY0pLDzcvedKEsX+pmJp4mSxn3JlWDTZvUb0e5UIlV7+bqlN68LpAeKG4c2lrN4zuP0Q==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@expo/cli": "^57.0.22",
|
||||
"@expo/cli": "^57.0.23",
|
||||
"@expo/config": "~57.0.9",
|
||||
"@expo/config-plugins": "~57.0.9",
|
||||
"@expo/devtools": "~57.0.1",
|
||||
|
|
@ -3823,14 +4040,14 @@
|
|||
"@expo/metro": "~56.0.2",
|
||||
"@expo/metro-config": "~57.0.12",
|
||||
"@ungap/structured-clone": "^1.3.0",
|
||||
"babel-preset-expo": "~57.0.10",
|
||||
"babel-preset-expo": "~57.0.11",
|
||||
"expo-asset": "~57.0.16",
|
||||
"expo-constants": "~57.0.17",
|
||||
"expo-file-system": "~57.0.6",
|
||||
"expo-font": "~57.0.3",
|
||||
"expo-keep-awake": "~57.0.1",
|
||||
"expo-modules-autolinking": "~57.0.12",
|
||||
"expo-modules-core": "~57.0.16",
|
||||
"expo-modules-core": "~57.0.17",
|
||||
"pretty-format": "^29.7.0",
|
||||
"react-refresh": "^0.14.2",
|
||||
"whatwg-url-minimum": "^0.1.2"
|
||||
|
|
@ -3932,9 +4149,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/expo-glass-effect": {
|
||||
"version": "57.0.1",
|
||||
"resolved": "https://registry.npmjs.org/expo-glass-effect/-/expo-glass-effect-57.0.1.tgz",
|
||||
"integrity": "sha512-m/n8maxqNcHk6ZDhuqXBfD5Kt1Iz3M8xykVgdB0iSCIXvF70IqWXmQhX8Psswhrp8eZ+3r0mAD0Jh/2gFA3QaA==",
|
||||
"version": "57.0.2",
|
||||
"resolved": "https://registry.npmjs.org/expo-glass-effect/-/expo-glass-effect-57.0.2.tgz",
|
||||
"integrity": "sha512-k2Dk0uCJrGYe8DWfvlMPmJ6w7uxCmJpoJckIcNDoUn27g75c5Kv3nUa88+T4+CpeVkixwY7iWrv46B5De20S9Q==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"expo": "*",
|
||||
|
|
@ -4013,13 +4230,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/expo-modules-core": {
|
||||
"version": "57.0.16",
|
||||
"resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-57.0.16.tgz",
|
||||
"integrity": "sha512-vPbxDOdvG6Ucpws5ucdbQa+nNmdxKONS1fTg92sy0p4TnHX8hBiExtbrtUA/5+1t3FRCUuiy29/1nJEGdt3E4A==",
|
||||
"version": "57.0.17",
|
||||
"resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-57.0.17.tgz",
|
||||
"integrity": "sha512-hHJwGHW0sMQiOLzEEl1QbJeWkBEBgjlPjrdBVGWlzvgUbCXJfFbDU2nhxoyzLMZnvHkpIzpiJjj5cM5W8gbudA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@expo/expo-modules-macros-plugin": "0.6.1",
|
||||
"expo-modules-jsi": "~57.0.8",
|
||||
"expo-modules-jsi": "~57.1.0",
|
||||
"invariant": "^2.2.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
@ -4034,24 +4251,24 @@
|
|||
}
|
||||
},
|
||||
"node_modules/expo-modules-jsi": {
|
||||
"version": "57.0.8",
|
||||
"resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-57.0.8.tgz",
|
||||
"integrity": "sha512-MFwvKP0FXLkEET27KsKvOh/L7Dpu2d00UgzAlmKozJgtI23WTKSyKPxu+EOSs9peSgkHzKI0vQOhWjOseGBMkQ==",
|
||||
"version": "57.1.0",
|
||||
"resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-57.1.0.tgz",
|
||||
"integrity": "sha512-a5ckeHfnbYfonhcHGkM0EU/a0Keh+/OufXy/HyFS+spr5Ib0N4Oh1ZsSYFQhp5xdOUFkVofKRhfH+VmcccIIpA==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"react-native": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/expo-router": {
|
||||
"version": "57.0.19",
|
||||
"resolved": "https://registry.npmjs.org/expo-router/-/expo-router-57.0.19.tgz",
|
||||
"integrity": "sha512-JovzZ066+qhykyJLC4hSEJpM8ToVWnJqbxmTN7USzARM0HgRR/g05a75f/EIsY4S//hbPGm6wGl/ObcCVtAX+A==",
|
||||
"version": "57.0.20",
|
||||
"resolved": "https://registry.npmjs.org/expo-router/-/expo-router-57.0.20.tgz",
|
||||
"integrity": "sha512-pBY0Ek5opUgpUSdoX3bAmyd8mkGSeTIOEdIDdpSG/02owrrwpnaQuSn/XuwOtizoeFedAD3VgS5DDVSyQTdI7g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@expo/log-box": "^57.0.4",
|
||||
"@expo/metro-runtime": "^57.0.15",
|
||||
"@expo/schema-utils": "^57.0.2",
|
||||
"@expo/ui": "^57.0.16",
|
||||
"@expo/ui": "^57.0.17",
|
||||
"@radix-ui/react-slot": "^1.2.0",
|
||||
"@radix-ui/react-tabs": "^1.1.12",
|
||||
"@react-native-masked-view/masked-view": "^0.3.2",
|
||||
|
|
@ -4059,7 +4276,7 @@
|
|||
"color": "^4.2.3",
|
||||
"debug": "^4.3.4",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"expo-glass-effect": "^57.0.1",
|
||||
"expo-glass-effect": "^57.0.2",
|
||||
"expo-server": "^57.0.3",
|
||||
"expo-symbols": "^57.0.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
|
|
@ -4203,223 +4420,6 @@
|
|||
"react-native": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/@expo/cli": {
|
||||
"version": "57.0.22",
|
||||
"resolved": "https://registry.npmjs.org/@expo/cli/-/cli-57.0.22.tgz",
|
||||
"integrity": "sha512-MdToR0ZZ1yjfkqbP1jcA7viS9duMPGq/C+qQ/21dtq+en583Ghp+O11BP/wujHa9ZGRtXimzuKPZDpPresVE0g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@expo/code-signing-certificates": "^0.0.6",
|
||||
"@expo/config": "~57.0.9",
|
||||
"@expo/config-plugins": "~57.0.9",
|
||||
"@expo/devcert": "^1.2.1",
|
||||
"@expo/env": "~2.4.3",
|
||||
"@expo/image-utils": "^0.11.5",
|
||||
"@expo/inline-modules": "^0.1.7",
|
||||
"@expo/json-file": "^11.0.1",
|
||||
"@expo/log-box": "^57.0.4",
|
||||
"@expo/metro": "~56.0.2",
|
||||
"@expo/metro-config": "~57.0.12",
|
||||
"@expo/metro-file-map": "^57.0.2",
|
||||
"@expo/osascript": "^2.7.1",
|
||||
"@expo/package-manager": "^1.13.1",
|
||||
"@expo/plist": "^0.8.1",
|
||||
"@expo/prebuild-config": "^57.0.15",
|
||||
"@expo/require-utils": "^57.0.5",
|
||||
"@expo/router-server": "^57.0.9",
|
||||
"@expo/schema-utils": "^57.0.2",
|
||||
"@expo/spawn-async": "^1.8.0",
|
||||
"@expo/ws-tunnel": "^2.0.0",
|
||||
"@expo/xcpretty": "^4.4.4",
|
||||
"@react-native/dev-middleware": "0.86.3",
|
||||
"accepts": "^1.3.8",
|
||||
"agent-cli-detector": "0.1.7",
|
||||
"arg": "^5.0.2",
|
||||
"bplist-creator": "0.1.0",
|
||||
"bplist-parser": "^0.3.1",
|
||||
"chalk": "^4.0.0",
|
||||
"ci-info": "^3.3.0",
|
||||
"compression": "^1.7.4",
|
||||
"connect": "^3.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"dnssd-advertise": "^1.1.4",
|
||||
"expo-server": "^57.0.3",
|
||||
"fetch-nodeshim": "^0.4.10",
|
||||
"getenv": "^2.0.0",
|
||||
"glob": "^13.0.0",
|
||||
"lan-network": "^0.2.1",
|
||||
"multitars": "^1.0.2",
|
||||
"node-forge": "^1.3.3",
|
||||
"npm-package-arg": "^11.0.0",
|
||||
"ora": "^3.4.0",
|
||||
"picomatch": "^4.0.4",
|
||||
"pretty-format": "^29.7.0",
|
||||
"progress": "^2.0.3",
|
||||
"prompts": "^2.3.2",
|
||||
"resolve-from": "^5.0.0",
|
||||
"sandbox-cli-detector": "^0.2.0",
|
||||
"semver": "^7.6.0",
|
||||
"send": "^0.19.0",
|
||||
"slugify": "^1.3.4",
|
||||
"stacktrace-parser": "^0.1.10",
|
||||
"structured-headers": "^0.4.1",
|
||||
"terminal-link": "^2.1.1",
|
||||
"toqr": "^0.1.1",
|
||||
"wrap-ansi": "^7.0.0",
|
||||
"ws": "^8.12.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"bin": {
|
||||
"expo-internal": "main.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"expo": "*",
|
||||
"expo-router": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"expo-router": {
|
||||
"optional": true
|
||||
},
|
||||
"react-native": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/@expo/cli/node_modules/@expo/router-server": {
|
||||
"version": "57.0.9",
|
||||
"resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-57.0.9.tgz",
|
||||
"integrity": "sha512-/PxRQozFesIyCJZOAtrQE8XcmcojNiL5ctPMQnbE4ojC2EJPu0zc7c0Y4PuXsoRxrZxm8Usw76/lCVrXcfTZ2w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@expo/metro-runtime": "^57.0.15",
|
||||
"expo": "*",
|
||||
"expo-constants": "^57.0.17",
|
||||
"expo-font": "^57.0.3",
|
||||
"expo-router": "*",
|
||||
"expo-server": "^57.0.3",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@expo/metro-runtime": {
|
||||
"optional": true
|
||||
},
|
||||
"expo-router": {
|
||||
"optional": true
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
},
|
||||
"react-server-dom-webpack": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/@expo/ws-tunnel": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@expo/ws-tunnel/-/ws-tunnel-2.0.0.tgz",
|
||||
"integrity": "sha512-j+JfTRdCk820J9dU0sA2SqshQIKFOMo7ED84w9MJFcebfbNQgsLztEY/SABDkGnjatrW4xGqnUhVRxSBVyCkXw==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"ws": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/accepts": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
||||
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-types": "~2.1.34",
|
||||
"negotiator": "0.6.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/ci-info": {
|
||||
"version": "3.9.0",
|
||||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
||||
"integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/sibiraj-s"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-db": "1.52.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/negotiator": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
||||
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/semver": {
|
||||
"version": "7.8.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
|
||||
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/expo/node_modules/ws": {
|
||||
"version": "8.21.3",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
|
||||
"integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": ">=5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/exponential-backoff": {
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
|
||||
|
|
|
|||
24
package.json
24
package.json
|
|
@ -3,15 +3,23 @@
|
|||
"main": "expo-router/entry",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@expo-google-fonts/inter": "^0.4.2",
|
||||
"@expo/ui": "~57.0.16",
|
||||
"@expo/vector-icons": "^15.0.2",
|
||||
"@react-native-async-storage/async-storage": "2.2.0",
|
||||
"@react-native-community/netinfo": "12.0.1",
|
||||
"@tanstack/react-query": "^5.101.2",
|
||||
"axios": "^1.18.1",
|
||||
"expo": "~57.0.20",
|
||||
"expo-constants": "~57.0.17",
|
||||
"expo-device": "~57.0.1",
|
||||
"expo-font": "~57.0.3",
|
||||
"expo-glass-effect": "~57.0.1",
|
||||
"expo-image": "~57.0.4",
|
||||
"expo-linear-gradient": "~57.0.1",
|
||||
"expo-linking": "~57.0.9",
|
||||
"expo-router": "~57.0.19",
|
||||
"expo-secure-store": "~57.0.2",
|
||||
"expo-splash-screen": "~57.0.8",
|
||||
"expo-status-bar": "~57.0.1",
|
||||
"expo-symbols": "~57.0.2",
|
||||
|
|
@ -24,18 +32,10 @@
|
|||
"react-native-reanimated": "4.5.1",
|
||||
"react-native-safe-area-context": "~5.7.0",
|
||||
"react-native-screens": "~4.26.0",
|
||||
"react-native-web": "~0.21.0",
|
||||
"react-native-worklets": "0.10.1",
|
||||
"@expo-google-fonts/inter": "^0.4.2",
|
||||
"@expo/vector-icons": "^15.0.2",
|
||||
"@react-native-async-storage/async-storage": "2.2.0",
|
||||
"@react-native-community/netinfo": "12.0.1",
|
||||
"@tanstack/react-query": "^5.101.2",
|
||||
"axios": "^1.18.1",
|
||||
"expo-linear-gradient": "~57.0.1",
|
||||
"expo-secure-store": "~57.0.2",
|
||||
"react-native-size-matters": "^0.4.2",
|
||||
"react-native-toast-message": "^2.3.3",
|
||||
"react-native-web": "~0.21.0",
|
||||
"react-native-worklets": "0.10.1",
|
||||
"zustand": "^4.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -45,8 +45,8 @@
|
|||
"scripts": {
|
||||
"start": "expo start",
|
||||
"reset-project": "node ./scripts/reset-project.js",
|
||||
"android": "expo start --android",
|
||||
"ios": "expo start --ios",
|
||||
"android": "expo run:android",
|
||||
"ios": "expo run:ios",
|
||||
"web": "expo start --web",
|
||||
"lint": "expo lint"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,268 +0,0 @@
|
|||
export interface ModuleItem {
|
||||
id: string;
|
||||
code?: string; // Canonical Module Code from config.json (e.g. M0001, M0011)
|
||||
title: string;
|
||||
desc: string;
|
||||
taxonomyId: string;
|
||||
icon: string;
|
||||
color: string;
|
||||
category: string;
|
||||
isDefaultFree: boolean;
|
||||
planCode: string;
|
||||
}
|
||||
|
||||
export const CLINICAL_MODULES: ModuleItem[] = [
|
||||
{
|
||||
id: "acupoints",
|
||||
code: "M0001",
|
||||
title: "Acupuncture",
|
||||
desc: "All points, locations, indications & more",
|
||||
taxonomyId: "6d4b0290-d44c-4d87-a9c3-89f8c8a8632c",
|
||||
icon: "water-outline",
|
||||
color: "#2563EB",
|
||||
category: "point",
|
||||
isDefaultFree: true,
|
||||
planCode: "POINTS_ACU",
|
||||
},
|
||||
{
|
||||
id: "ear-acupuncture",
|
||||
code: "M0002",
|
||||
title: "Ear-acupuncture",
|
||||
desc: "Ear Points & Point Category",
|
||||
taxonomyId: "89136bd9-50f1-437a-ac7f-8ed36ef723b6",
|
||||
icon: "ear-outline",
|
||||
color: "#F59E0B",
|
||||
category: "point",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_EAR",
|
||||
},
|
||||
{
|
||||
id: "scalp-acupuncture",
|
||||
code: "M0003",
|
||||
title: "Scalp acupuncture",
|
||||
desc: "Scalp zones, points & protocols",
|
||||
taxonomyId: "a625b5b3-b0c4-4559-87bc-397277f2765e",
|
||||
icon: "accessibility-outline",
|
||||
color: "#EF4444",
|
||||
category: "point",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_SCALP",
|
||||
},
|
||||
{
|
||||
id: "points_tung",
|
||||
code: "M0004",
|
||||
title: "Master Tung",
|
||||
desc: "Master Tung points and treatments",
|
||||
taxonomyId: "64ec885d-652a-43e2-90ea-648a8884784b",
|
||||
icon: "analytics-outline",
|
||||
color: "#10B981",
|
||||
category: "point",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_TUNG",
|
||||
},
|
||||
{
|
||||
id: "auriculotherapy",
|
||||
code: "M0041",
|
||||
title: "Microsystem",
|
||||
desc: "Auriculotherapy reflexology systems",
|
||||
taxonomyId: "55f6a101-9b4d-40c9-8316-6389a598e831",
|
||||
icon: "body-outline",
|
||||
color: "#8B5CF6",
|
||||
category: "point",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_EAR",
|
||||
},
|
||||
{
|
||||
id: "eight-principles",
|
||||
code: "M0011",
|
||||
title: "Eight principle",
|
||||
desc: "Exterior/Interior, Cold/Heat, Deficiency/Excess, Yin/Yang patterns",
|
||||
taxonomyId: "c75e115a-88f0-4989-a4de-29fd64d0f099",
|
||||
icon: "git-network-outline",
|
||||
color: "#7C3AED",
|
||||
category: "Patterns",
|
||||
isDefaultFree: true,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "twelve-channels",
|
||||
code: "M0018",
|
||||
title: "zangfu",
|
||||
desc: "Zangfu organ and channel identification",
|
||||
taxonomyId: "e14c36ec-ca17-4f68-a34f-11e0e4baf01b",
|
||||
icon: "pulse-outline",
|
||||
color: "#06B6D4",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "qi-blood-body-fluids",
|
||||
code: "M0013",
|
||||
title: "Qi-Blood-body fluid",
|
||||
desc: "Qi, Blood, and Body Fluid identification of patterns",
|
||||
taxonomyId: "6eed9ead-a685-4d24-bd02-94c45e5cd26d",
|
||||
icon: "water-outline",
|
||||
color: "#3B82F6",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "pathogenic-factors",
|
||||
code: "M0014",
|
||||
title: "pathogenic factors",
|
||||
desc: "Wind, Cold, Summer-Heat, Dampness, Dryness, Fire patterns",
|
||||
taxonomyId: "ac78f54a-1f39-4c6d-bf9a-670a6267fe29",
|
||||
icon: "flame-outline",
|
||||
color: "#F59E0B",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "six-stages",
|
||||
code: "M0015",
|
||||
title: "six stages",
|
||||
desc: "Tai Yang, Yang Ming, Shao Yang, Tai Yin, Shao Yin, Jue Yin",
|
||||
taxonomyId: "25aac40d-d336-4780-99b9-385c7833bd61",
|
||||
icon: "layers-outline",
|
||||
color: "#10B981",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "four-levels",
|
||||
code: "M0016",
|
||||
title: "four level",
|
||||
desc: "Wei, Qi, Ying, Xue level pattern identification",
|
||||
taxonomyId: "3c54841a-68be-4bb4-bd48-436e60c2033c",
|
||||
icon: "trending-up-outline",
|
||||
color: "#EF4444",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "three-burners",
|
||||
code: "M0017",
|
||||
title: "three burners",
|
||||
desc: "Upper, Middle, and Lower Burner pattern identification",
|
||||
taxonomyId: "d03c5393-8634-4993-b944-50c1d68c096e",
|
||||
icon: "thermometer-outline",
|
||||
color: "#EC4899",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "five-elements",
|
||||
code: "M0019",
|
||||
title: "five elements",
|
||||
desc: "Wood, Fire, Earth, Metal, Water relationships and patterns",
|
||||
taxonomyId: "e5ef08e9-7ddf-4f6b-b96e-846e729eb89f",
|
||||
icon: "flower-outline",
|
||||
color: "#6366F1",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "extra-ordinary-vessel",
|
||||
code: "M0020",
|
||||
title: "Extraordinary Vessels",
|
||||
desc: "Eight Extraordinary Vessels and Confluent points",
|
||||
taxonomyId: "9c3c8612-9c16-41ea-bf7c-65db4058d88e",
|
||||
icon: "git-commit-outline",
|
||||
color: "#8B5CF6",
|
||||
category: "Patterns",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
{
|
||||
id: "food-category",
|
||||
code: "M0031",
|
||||
title: "Food category",
|
||||
desc: "Nutritional food category classifications",
|
||||
taxonomyId: "ea249c2e-5dd7-46ce-a27f-c2f5d200f03c",
|
||||
icon: "nutrition-outline",
|
||||
color: "#10B981",
|
||||
category: "Nutrition",
|
||||
isDefaultFree: true,
|
||||
planCode: "NUTRITION_CORE",
|
||||
},
|
||||
{
|
||||
id: "food-items",
|
||||
code: "M0031",
|
||||
title: "food items",
|
||||
desc: "Individual food item properties and indications",
|
||||
taxonomyId: "e632204d-1dae-4f3c-9ce7-df25c4002b74",
|
||||
icon: "leaf-outline",
|
||||
color: "#059669",
|
||||
category: "Nutrition",
|
||||
isDefaultFree: false,
|
||||
planCode: "NUTRITION_CORE",
|
||||
},
|
||||
{
|
||||
id: "gynecology",
|
||||
code: "M0042",
|
||||
title: "Gynecology",
|
||||
desc: "Menstrual irregularities and pregnancy patterns",
|
||||
taxonomyId: "b492d8ac-79d7-4210-9454-3438e9bf3fa1",
|
||||
icon: "woman-outline",
|
||||
color: "#EC4899",
|
||||
category: "Therapeutics",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_GYNAE",
|
||||
},
|
||||
{
|
||||
id: "neurology",
|
||||
code: "M0043",
|
||||
title: "Neurology",
|
||||
desc: "Nervous system therapeutic protocols",
|
||||
taxonomyId: "a82323eb-e055-4d2d-aaaa-6c641c67a3d5",
|
||||
icon: "hardware-chip-outline",
|
||||
color: "#6366F1",
|
||||
category: "Therapeutics",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_CORE",
|
||||
},
|
||||
{
|
||||
id: "pediatric",
|
||||
code: "M0044",
|
||||
title: "Pediatric",
|
||||
desc: "Pediatric clinical treatments and protocols",
|
||||
taxonomyId: "a5867f97-7358-4699-9bb5-ce61a74aeb30",
|
||||
icon: "people-outline",
|
||||
color: "#F59E0B",
|
||||
category: "Therapeutics",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_CORE",
|
||||
},
|
||||
{
|
||||
id: "musculo-skeletal",
|
||||
code: "M0045",
|
||||
title: "Musculo-skeletal",
|
||||
desc: "Locomotor system treatment protocols",
|
||||
taxonomyId: "8ab31d7c-c309-4682-a3be-e4a8cd13a3ea",
|
||||
icon: "body-outline",
|
||||
color: "#3B82F6",
|
||||
category: "Therapeutics",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_CORE",
|
||||
},
|
||||
{
|
||||
id: "ophthalmic",
|
||||
code: "M0046",
|
||||
title: "Ophthalmic",
|
||||
desc: "Eye and vision therapeutic protocols",
|
||||
taxonomyId: "3f4a71cf-aa99-4ac7-ac59-0c0df42f74e7",
|
||||
icon: "eye-outline",
|
||||
color: "#06B6D4",
|
||||
category: "Therapeutics",
|
||||
isDefaultFree: false,
|
||||
planCode: "THERAPEUTICS_CORE",
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -27,98 +27,98 @@ export interface ModuleIndexItem {
|
|||
}
|
||||
|
||||
const MODULE_VISUALS: Record<string, ModuleVisualConfig> = {
|
||||
M0001: {
|
||||
m0001: {
|
||||
icon: "water-outline",
|
||||
color: "#2563EB",
|
||||
isDefaultFree: true,
|
||||
planCode: "POINTS_ACU",
|
||||
entryTemplateCode: "M0001_CT0001",
|
||||
entryTemplateCode: "m0001_ct0001",
|
||||
},
|
||||
M0002: {
|
||||
m0002: {
|
||||
icon: "ear-outline",
|
||||
color: "#F59E0B",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_EAR",
|
||||
},
|
||||
M0003: {
|
||||
m0003: {
|
||||
icon: "accessibility-outline",
|
||||
color: "#EF4444",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_SCALP",
|
||||
},
|
||||
M0011: {
|
||||
m0011: {
|
||||
icon: "git-network-outline",
|
||||
color: "#7C3AED",
|
||||
isDefaultFree: true,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0012: {
|
||||
m0012: {
|
||||
icon: "pulse-outline",
|
||||
color: "#06B6D4",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0013: {
|
||||
m0013: {
|
||||
icon: "water-outline",
|
||||
color: "#3B82F6",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0014: {
|
||||
m0014: {
|
||||
icon: "flame-outline",
|
||||
color: "#F59E0B",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0015: {
|
||||
m0015: {
|
||||
icon: "layers-outline",
|
||||
color: "#10B981",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0016: {
|
||||
m0016: {
|
||||
icon: "trending-up-outline",
|
||||
color: "#EF4444",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0017: {
|
||||
m0017: {
|
||||
icon: "thermometer-outline",
|
||||
color: "#EC4899",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0018: {
|
||||
m0018: {
|
||||
icon: "pulse-outline",
|
||||
color: "#06B6D4",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0019: {
|
||||
m0019: {
|
||||
icon: "flower-outline",
|
||||
color: "#6366F1",
|
||||
isDefaultFree: false,
|
||||
planCode: "PATTERN_CORE",
|
||||
},
|
||||
M0020: {
|
||||
m0020: {
|
||||
icon: "git-branch-outline",
|
||||
color: "#8B5CF6",
|
||||
isDefaultFree: false,
|
||||
planCode: "POINTS_ACU",
|
||||
},
|
||||
M0031: {
|
||||
m0031: {
|
||||
icon: "nutrition-outline",
|
||||
color: "#10B981",
|
||||
isDefaultFree: true,
|
||||
planCode: "NUTRITION_CORE",
|
||||
},
|
||||
M0041: {
|
||||
m0041: {
|
||||
icon: "body-outline",
|
||||
color: "#8B5CF6",
|
||||
isDefaultFree: false,
|
||||
planCode: "LIFETIME_ALL",
|
||||
},
|
||||
M0042: {
|
||||
m0042: {
|
||||
icon: "woman-outline",
|
||||
color: "#EC4899",
|
||||
isDefaultFree: false,
|
||||
|
|
@ -147,6 +147,12 @@ function readMetadataBoolean(module: ModuleResponse, key: string): boolean | nul
|
|||
return null;
|
||||
}
|
||||
|
||||
function getVisualConfig(moduleCode?: string | null): ModuleVisualConfig | undefined {
|
||||
if (!moduleCode) return undefined;
|
||||
const normalized = moduleCode.trim().toLowerCase();
|
||||
return MODULE_VISUALS[normalized] ?? MODULE_VISUALS[moduleCode.trim()];
|
||||
}
|
||||
|
||||
export function resolveModuleCategory(module: ModuleResponse): string {
|
||||
const explicitCategory = readMetadataString(module, "category");
|
||||
if (explicitCategory) return explicitCategory;
|
||||
|
|
@ -177,7 +183,7 @@ export function resolveModuleCategory(module: ModuleResponse): string {
|
|||
}
|
||||
|
||||
export function resolveModuleEntryTemplateCode(module: ModuleResponse): string {
|
||||
const configured = MODULE_VISUALS[module.code]?.entryTemplateCode;
|
||||
const configured = getVisualConfig(module.code)?.entryTemplateCode;
|
||||
const metadataConfigured =
|
||||
readMetadataString(module, "entry_template_code") ??
|
||||
readMetadataString(module, "index_template_code") ??
|
||||
|
|
@ -187,8 +193,8 @@ export function resolveModuleEntryTemplateCode(module: ModuleResponse): string {
|
|||
if (configured) return configured;
|
||||
|
||||
// Canonical convention used by seeded modules: the module entry/index
|
||||
// template is CT0001 unless explicitly overridden in module metadata.
|
||||
return `${module.code}_CT0001`;
|
||||
// template is ct0001 unless explicitly overridden in module metadata.
|
||||
return `${module.code.toLowerCase()}_ct0001`;
|
||||
}
|
||||
|
||||
export function buildModuleTemplateReference(module: ModuleResponse): TemplateReference {
|
||||
|
|
@ -203,7 +209,7 @@ export function buildModuleTemplateReference(module: ModuleResponse): TemplateRe
|
|||
}
|
||||
|
||||
export function toModuleIndexItem(module: ModuleResponse): ModuleIndexItem {
|
||||
const visual = MODULE_VISUALS[module.code];
|
||||
const visual = getVisualConfig(module.code);
|
||||
const metadataIcon = readMetadataString(module, "icon");
|
||||
const metadataColor = readMetadataString(module, "color");
|
||||
const metadataPlanCode = readMetadataString(module, "plan_code");
|
||||
|
|
|
|||
Loading…
Reference in New Issue