dana-cli 0.0.0-stage → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/.github/dependabot.yml +43 -0
  2. package/.github/labeler.yml +30 -0
  3. package/.github/workflows/bump.yml +51 -0
  4. package/.github/workflows/ci-cd.yml +110 -0
  5. package/.github/workflows/dependabot-automerge-call.yml +13 -0
  6. package/.nvmrc +1 -0
  7. package/.prettierignore +4 -0
  8. package/.prettierrc +4 -0
  9. package/CODEOWNERS +5 -0
  10. package/README.md +50 -2
  11. package/bin/bump.js +48 -0
  12. package/eslint.config.mjs +12 -0
  13. package/images/vodScreen1.png +0 -0
  14. package/package.json +53 -5
  15. package/sonar-project.properties +20 -0
  16. package/tools/cli/README.md +51 -0
  17. package/tools/cli/__mocks__/fs/promises.cjs +4 -0
  18. package/tools/cli/bin/dana.js +3 -0
  19. package/tools/cli/dana_completion.sh +156 -0
  20. package/tools/cli/eslint.config.mjs +14 -0
  21. package/tools/cli/package.json +66 -0
  22. package/tools/cli/rollup.config.mjs +26 -0
  23. package/tools/cli/src/commands/addComponent/addMenu/add-menu.ts +65 -0
  24. package/tools/cli/src/commands/addComponent/addMenu/addMenuDefinition.ts +21 -0
  25. package/tools/cli/src/commands/addComponent/addRail/add-rail.ts +59 -0
  26. package/tools/cli/src/commands/addComponent/addRail/addRailDefinition.ts +34 -0
  27. package/tools/cli/src/commands/addComponent/addScreen/add-screen.ts +42 -0
  28. package/tools/cli/src/commands/addComponent/addScreen/addScreenDefinition.ts +17 -0
  29. package/tools/cli/src/commands/addComponent/addScrollView/add-scrollView.ts +48 -0
  30. package/tools/cli/src/commands/addComponent/addScrollView/addScrollViewDefinition.ts +16 -0
  31. package/tools/cli/src/commands/addComponent/config/ComponentConfig.ts +169 -0
  32. package/tools/cli/src/commands/addComponent/config/componentTypes.ts +38 -0
  33. package/tools/cli/src/commands/addComponent/const/componentConst.ts +20 -0
  34. package/tools/cli/src/commands/addComponent/const/defaultConfig.ts +28 -0
  35. package/tools/cli/src/commands/addComponent/const/navigationConst.ts +36 -0
  36. package/tools/cli/src/commands/addComponent/createComponent.ts +45 -0
  37. package/tools/cli/src/commands/addComponent/helper/ComponentHelper.ts +98 -0
  38. package/tools/cli/src/commands/addDevice/add-device.ts +106 -0
  39. package/tools/cli/src/commands/addDevice/addDeviceDefinition.ts +13 -0
  40. package/tools/cli/src/commands/addDevice/deviceConfig/androidtvConfig.ts +142 -0
  41. package/tools/cli/src/commands/addDevice/deviceConfig/configTypes.ts +44 -0
  42. package/tools/cli/src/commands/addDevice/deviceConfig/deviceConfig.ts +38 -0
  43. package/tools/cli/src/commands/addDevice/deviceConfig/titanosConfig.ts +17 -0
  44. package/tools/cli/src/commands/addDevice/deviceConfig/tizenConfig.ts +64 -0
  45. package/tools/cli/src/commands/addDevice/deviceConfig/tvosConfig.ts +50 -0
  46. package/tools/cli/src/commands/addDevice/deviceConfig/vidaaConfig.ts +17 -0
  47. package/tools/cli/src/commands/addDevice/deviceConfig/webosConfig.ts +64 -0
  48. package/tools/cli/src/commands/addDevice/helper/addDeviceHelper.ts +121 -0
  49. package/tools/cli/src/commands/addDianaSkills/add-dianaSkills.ts +55 -0
  50. package/tools/cli/src/commands/addDianaSkills/addDianaSkillsDefinition.ts +13 -0
  51. package/tools/cli/src/commands/addDianaSkills/dianaDependencies.ts +15 -0
  52. package/tools/cli/src/commands/addModule/add-module.ts +46 -0
  53. package/tools/cli/src/commands/addModule/addModuleDefinition.ts +17 -0
  54. package/tools/cli/src/commands/addModule/moduleConst.ts +18 -0
  55. package/tools/cli/src/commands/authentication/AuthenticationManager.ts +255 -0
  56. package/tools/cli/src/commands/authentication/authDefinition.ts +51 -0
  57. package/tools/cli/src/commands/authentication/authHook.ts +50 -0
  58. package/tools/cli/src/commands/authentication/authentConst.ts +6 -0
  59. package/tools/cli/src/commands/authentication/commands/get-packages-token.ts +40 -0
  60. package/tools/cli/src/commands/authentication/commands/login.ts +63 -0
  61. package/tools/cli/src/commands/authentication/commands/logout.ts +26 -0
  62. package/tools/cli/src/commands/authentication/commands/status.ts +47 -0
  63. package/tools/cli/src/commands/authentication/helper/CodeArtifactHelper.ts +66 -0
  64. package/tools/cli/src/commands/authentication/helper/CommandHelper.ts +9 -0
  65. package/tools/cli/src/commands/authentication/helper/CredentialsHelper.ts +176 -0
  66. package/tools/cli/src/commands/authentication/helper/SPM.ts +95 -0
  67. package/tools/cli/src/commands/authentication/tokenHook.ts +30 -0
  68. package/tools/cli/src/commands/commandHelp/customHelp.ts +31 -0
  69. package/tools/cli/src/commands/completion/completion.ts +53 -0
  70. package/tools/cli/src/commands/completion/completionDefinition.ts +16 -0
  71. package/tools/cli/src/commands/createApp/const/createAppTasks.ts +133 -0
  72. package/tools/cli/src/commands/createApp/const/setupConst.ts +16 -0
  73. package/tools/cli/src/commands/createApp/const/templateConst.ts +10 -0
  74. package/tools/cli/src/commands/createApp/createApp.ts +60 -0
  75. package/tools/cli/src/commands/createApp/createAppDefinition.ts +26 -0
  76. package/tools/cli/src/commands/createApp/helpers/CreateAppHelper.ts +167 -0
  77. package/tools/cli/src/commands/createApp/helpers/SetupChecker.ts +98 -0
  78. package/tools/cli/src/commands/hooks/checkDanaProjectHook.ts +30 -0
  79. package/tools/cli/src/commands/zip/zip.ts +26 -0
  80. package/tools/cli/src/commands/zip/zipDefinition.ts +13 -0
  81. package/tools/cli/src/common/commonConst.ts +1 -0
  82. package/tools/cli/src/common/const/deviceConst.ts +110 -0
  83. package/tools/cli/src/common/const/exitCodeConst.ts +12 -0
  84. package/tools/cli/src/common/helpers/CreateArchiveHelper.ts +55 -0
  85. package/tools/cli/src/common/helpers/CreateFileHelper.ts +199 -0
  86. package/tools/cli/src/common/helpers/InputValidator.ts +58 -0
  87. package/tools/cli/src/common/helpers/InstallHelper.ts +202 -0
  88. package/tools/cli/src/common/helpers/UpdateFileHelper.ts +239 -0
  89. package/tools/cli/src/common/helpers/UserInputGetter.ts +145 -0
  90. package/tools/cli/src/common/helpers/handlebarsHelper.ts +31 -0
  91. package/tools/cli/src/common/helpers/stringHelper.ts +25 -0
  92. package/tools/cli/src/common/translation/en.json +87 -0
  93. package/tools/cli/src/common/translation/translation.ts +6 -0
  94. package/tools/cli/src/common/types/helperTypes.ts +79 -0
  95. package/tools/cli/src/index.ts +16 -0
  96. package/tools/cli/src/program.ts +59 -0
  97. package/tools/cli/tests/commands/addComponent/addMenu/add-menu.test.ts +96 -0
  98. package/tools/cli/tests/commands/addComponent/addRail/add-rail.test.ts +57 -0
  99. package/tools/cli/tests/commands/addComponent/addScreen/add-screen.test.ts +55 -0
  100. package/tools/cli/tests/commands/addComponent/addScrollView/add-scrollView.test.ts +89 -0
  101. package/tools/cli/tests/commands/addComponent/config/ComponentConfig.test.ts +261 -0
  102. package/tools/cli/tests/commands/addComponent/createComponent.test.ts +87 -0
  103. package/tools/cli/tests/commands/addComponent/helper/ComponentHelper.test.ts +110 -0
  104. package/tools/cli/tests/commands/addDevice/add-device.test.ts +117 -0
  105. package/tools/cli/tests/commands/addDevice/deviceConfig/androidtvConfig.test.ts +184 -0
  106. package/tools/cli/tests/commands/addDevice/deviceConfig/deviceConfig.test.ts +30 -0
  107. package/tools/cli/tests/commands/addDevice/deviceConfig/titanosConfig.test.ts +20 -0
  108. package/tools/cli/tests/commands/addDevice/deviceConfig/tizenConfig.test.ts +63 -0
  109. package/tools/cli/tests/commands/addDevice/deviceConfig/tvosConfig.test.ts +47 -0
  110. package/tools/cli/tests/commands/addDevice/deviceConfig/vidaaConfig.test.ts +20 -0
  111. package/tools/cli/tests/commands/addDevice/deviceConfig/webosConfig.test.ts +74 -0
  112. package/tools/cli/tests/commands/addDevice/helper/addDeviceHelper.test.ts +144 -0
  113. package/tools/cli/tests/commands/addDianaSkills/add-dianaSkills.test.ts +72 -0
  114. package/tools/cli/tests/commands/addModule/add-module.test.ts +108 -0
  115. package/tools/cli/tests/commands/authentication/AuthenticationManager.test.ts +756 -0
  116. package/tools/cli/tests/commands/authentication/commands/authDefinition.test.ts +53 -0
  117. package/tools/cli/tests/commands/authentication/commands/authHook.test.ts +94 -0
  118. package/tools/cli/tests/commands/authentication/commands/get-packages-token.test.ts +69 -0
  119. package/tools/cli/tests/commands/authentication/commands/login.test.ts +170 -0
  120. package/tools/cli/tests/commands/authentication/commands/logout.test.ts +77 -0
  121. package/tools/cli/tests/commands/authentication/commands/status.test.ts +73 -0
  122. package/tools/cli/tests/commands/authentication/helper/CredentialsHelper.test.ts +352 -0
  123. package/tools/cli/tests/commands/authentication/helper/SPM.test.ts +229 -0
  124. package/tools/cli/tests/commands/cliHelp/customHelp.test.ts +24 -0
  125. package/tools/cli/tests/commands/completion/completion.test.ts +76 -0
  126. package/tools/cli/tests/commands/createApp/const/createAppTasks.test.ts +70 -0
  127. package/tools/cli/tests/commands/createApp/createApp.test.ts +116 -0
  128. package/tools/cli/tests/commands/createApp/helpers/CreateAppHelper.test.ts +197 -0
  129. package/tools/cli/tests/commands/createApp/helpers/SetupChecker.test.ts +152 -0
  130. package/tools/cli/tests/commands/createApp/helpers/fixtures/myApp/scripts/app/ui/screens/SplashScreen.js +70 -0
  131. package/tools/cli/tests/commands/hooks/checkDanaProjectHook.test.ts +55 -0
  132. package/tools/cli/tests/commands/zip/zip.test.ts +51 -0
  133. package/tools/cli/tests/common/helpers/CreateArchiveHelper.test.ts +69 -0
  134. package/tools/cli/tests/common/helpers/CreateFileHelper.test.ts +359 -0
  135. package/tools/cli/tests/common/helpers/InputValidator.test.ts +93 -0
  136. package/tools/cli/tests/common/helpers/InstallHelper.test.ts +262 -0
  137. package/tools/cli/tests/common/helpers/UpdateFileHelper.test.ts +288 -0
  138. package/tools/cli/tests/common/helpers/UserInputGetter.test.ts +182 -0
  139. package/tools/cli/tests/common/helpers/handlebarsHelper.test.ts +87 -0
  140. package/tools/cli/tests/common/helpers/stringHelper.test.ts +35 -0
  141. package/tools/cli/tests/program.test.ts +215 -0
  142. package/tools/cli/tsconfig.json +19 -0
  143. package/tools/cli/tsconfig.test.json +4 -0
  144. package/tools/cli/vitest.config.ts +4 -0
  145. package/tools/templates/app-template/.dana/.gitkeep +0 -0
  146. package/tools/templates/app-template/Gruntfile.js +31 -0
  147. package/tools/templates/app-template/README.md +17 -0
  148. package/tools/templates/app-template/app.config.json +56 -0
  149. package/tools/templates/app-template/editorconfigTemplate.hbs +18 -0
  150. package/tools/templates/app-template/eslintrc.jsonTemplate.hbs +5 -0
  151. package/tools/templates/app-template/gitignoreTemplate.hbs +27 -0
  152. package/tools/templates/app-template/i18n/LocaleStringEnUS.json +7 -0
  153. package/tools/templates/app-template/i18n/README.md +32 -0
  154. package/tools/templates/app-template/images/dana.png +0 -0
  155. package/tools/templates/app-template/images/dana_logo.png +0 -0
  156. package/tools/templates/app-template/images/dana_logo_light.png +0 -0
  157. package/tools/templates/app-template/images/loading.png +0 -0
  158. package/tools/templates/app-template/nvmrcTemplate.hbs +1 -0
  159. package/tools/templates/app-template/package.json +33 -0
  160. package/tools/templates/app-template/profiles/app.config.browser-css.json +16 -0
  161. package/tools/templates/app-template/profiles/app.config.browser-lightning.json +16 -0
  162. package/tools/templates/app-template/scripts/app/README.md +6 -0
  163. package/tools/templates/app-template/scripts/app/TemplateAppRoutes.js.hbs +18 -0
  164. package/tools/templates/app-template/scripts/app/app.js.hbs +17 -0
  165. package/tools/templates/app-template/scripts/app/theme/AppTheme.js +57 -0
  166. package/tools/templates/app-template/scripts/app/ui/screens/AppScreen.js +106 -0
  167. package/tools/templates/app-template/scripts/app/ui/screens/SplashScreen.js +70 -0
  168. package/tools/templates/app-template/scripts/app/ui/views/LoaderView.js +31 -0
  169. package/tools/templates/app-template/styles/fonts/Roboto-Bold.ttf +0 -0
  170. package/tools/templates/app-template/styles/fonts/Roboto-Regular.ttf +0 -0
  171. package/tools/templates/app-template/tests/README.md +70 -0
  172. package/tools/templates/app-template/tests/automation/features/splash.feature +5 -0
  173. package/tools/templates/app-template/tests/automation/init.js +20 -0
  174. package/tools/templates/app-template/tests/automation/steps-definitions/dictionary.js +31 -0
  175. package/tools/templates/app-template/tests/automation/steps-definitions/helpers.js +9 -0
  176. package/tools/templates/app-template/tests/unit/README.md +7 -0
  177. package/tools/templates/app-template/tests/unit/app/TemplateAppRoutes.js.hbs +24 -0
  178. package/tools/templates/assets/fonts/fa-solid-900.ttf +0 -0
  179. package/tools/templates/components/ButtonItemView.js.hbs +69 -0
  180. package/tools/templates/components/ButtonView.js.hbs +65 -0
  181. package/tools/templates/components/ScrollItemView.js.hbs +53 -0
  182. package/tools/templates/components/ScrollView.js.hbs +43 -0
  183. package/tools/templates/components/TileView.js.hbs +55 -0
  184. package/tools/templates/components/screen.js.hbs +74 -0
  185. package/tools/templates/components/settings.js.hbs +74 -0
  186. package/tools/templates/components/vod.js.hbs +104 -0
  187. package/tools/templates/components/wtvMenuListView.js.hbs +38 -0
  188. package/tools/templates/components/wtvRailListView.js.hbs +44 -0
  189. package/tools/templates/index.ts +3 -0
  190. package/tools/templates/mocks/menuMock.json +29 -0
  191. package/tools/templates/mocks/railMock.json +101 -0
  192. package/tools/templates/mocks/scrollViewMock.json +165 -0
  193. package/tools/templates/modules/fip/images/12.png +0 -0
  194. package/tools/templates/modules/fip/images/audioD.png +0 -0
  195. package/tools/templates/modules/fip/package.json +5 -0
  196. package/tools/templates/modules/fip/scripts/FipModule.js +19 -0
  197. package/tools/templates/modules/fip/scripts/FipRoutes.js +19 -0
  198. package/tools/templates/modules/fip/scripts/services/mock/fipMock.json +12 -0
  199. package/tools/templates/modules/fip/scripts/ui/screens/FipScreen.js +169 -0
  200. package/tools/templates/modules/fip/scripts/ui/views/FipContentInfoView.js +77 -0
  201. package/tools/templates/modules/fip/scripts/ui/views/InfoDetailImageView.js +35 -0
  202. package/tools/templates/modules/fip/scripts/ui/views/InfoDetailTextView.js +39 -0
  203. package/tools/templates/modules/fip/scripts/ui/views/InfoListView.js +57 -0
  204. package/tools/templates/modules/fip/scripts/ui/views/PlayButtonView.js +63 -0
  205. package/tools/templates/modules/home/package.json +5 -0
  206. package/tools/templates/modules/home/scripts/HomeModule.js +19 -0
  207. package/tools/templates/modules/home/scripts/HomeRoutes.js +19 -0
  208. package/tools/templates/modules/home/scripts/services/mock/highlightMock.json +40 -0
  209. package/tools/templates/modules/home/scripts/services/mock/homeScrollViewMock.json +170 -0
  210. package/tools/templates/modules/home/scripts/ui/screens/HomeScreen.js +258 -0
  211. package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListItemView.js +37 -0
  212. package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListView.js +22 -0
  213. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightContentDescriptionView.js +99 -0
  214. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightPlayButtonView.js +63 -0
  215. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightRailItemView.js +186 -0
  216. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeMockTileView.js +67 -0
  217. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeRailScrollView.js +53 -0
  218. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeScrollView.js +22 -0
  219. package/tools/templates/modules/menu/images/profile.png +0 -0
  220. package/tools/templates/modules/menu/package.json +5 -0
  221. package/tools/templates/modules/menu/scripts/MenuModule.js +18 -0
  222. package/tools/templates/modules/menu/scripts/MenuRoutes.js +14 -0
  223. package/tools/templates/modules/menu/scripts/services/menuMock.json +24 -0
  224. package/tools/templates/modules/menu/scripts/ui/const/MenuIcons.js +16 -0
  225. package/tools/templates/modules/menu/scripts/ui/views/MenuButtonView.js +101 -0
  226. package/tools/templates/modules/menu/scripts/ui/views/MenuListView.js +60 -0
  227. package/tools/templates/modules/menu/scripts/ui/views/MenuView.js +87 -0
  228. package/tools/templates/modules/menu/scripts/ui/views/ProfileImageView.js +30 -0
  229. package/tools/templates/modules/player/package.json +5 -0
  230. package/tools/templates/modules/player/scripts/PlayerModule.js +19 -0
  231. package/tools/templates/modules/player/scripts/PlayerRoutes.js +19 -0
  232. package/tools/templates/modules/player/scripts/ui/const/PlayerIcons.js +19 -0
  233. package/tools/templates/modules/player/scripts/ui/screens/PlayerScreen.js +361 -0
  234. package/tools/templates/modules/player/scripts/ui/views/PlayerControlButtonView.js +69 -0
  235. package/tools/templates/modules/player/scripts/ui/views/PlayerControlsView.js +173 -0
  236. package/tools/templates/modules/player/scripts/ui/views/ProgressBarView.js +53 -0
  237. package/tools/templates/modules/search/package.json +5 -0
  238. package/tools/templates/modules/search/scripts/SearchModule.js +18 -0
  239. package/tools/templates/modules/search/scripts/SearchRoutes.js +16 -0
  240. package/tools/templates/modules/search/scripts/ui/const/EnglishKeyboardData.js +31 -0
  241. package/tools/templates/modules/search/scripts/ui/const/SearchIcons.js +14 -0
  242. package/tools/templates/modules/search/scripts/ui/const/SearchKeyboardLayout.js +19 -0
  243. package/tools/templates/modules/search/scripts/ui/primitives/SearchTextPrimitive.js +36 -0
  244. package/tools/templates/modules/search/scripts/ui/screens/SearchScreen.js +234 -0
  245. package/tools/templates/modules/search/scripts/ui/services/MockSearchService.js +39 -0
  246. package/tools/templates/modules/search/scripts/ui/services/SearchVirtualKeyboardService.js +33 -0
  247. package/tools/templates/modules/search/scripts/ui/services/mock/searchMock.json +172 -0
  248. package/tools/templates/modules/search/scripts/ui/views/SearchView.js +62 -0
  249. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowItemView.js +92 -0
  250. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowListView.js +33 -0
  251. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardView.js +63 -0
  252. package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollRailView.js +53 -0
  253. package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollView.js +22 -0
  254. package/tools/templates/modules/search/scripts/ui/views/rail/SearchTileView.js +68 -0
  255. package/tools/templates/modules/search/styles/styles/fonts/fa-solid-900.ttf +0 -0
  256. package/tools/templates/modules/settings/package.json +5 -0
  257. package/tools/templates/modules/settings/scripts/SettingsModule.js +19 -0
  258. package/tools/templates/modules/settings/scripts/SettingsRoutes.js +19 -0
  259. package/tools/templates/modules/settings/scripts/ui/screens/SettingsScreen.js +200 -0
  260. package/tools/templates/modules/settings/scripts/ui/views/SettingsListItemView.js +85 -0
  261. package/tools/templates/modules/settings/scripts/ui/views/SettingsListView.js +56 -0
  262. package/tools/templates/modules/vod/package.json +5 -0
  263. package/tools/templates/modules/vod/scripts/VodModule.js +19 -0
  264. package/tools/templates/modules/vod/scripts/VodRoutes.js +19 -0
  265. package/tools/templates/modules/vod/scripts/services/mock/scrollViewMock.json +172 -0
  266. package/tools/templates/modules/vod/scripts/ui/screens/VodScreen.js +204 -0
  267. package/tools/templates/modules/vod/scripts/ui/views/MockTileView.js +69 -0
  268. package/tools/templates/modules/vod/scripts/ui/views/RailScrollItemView.js +53 -0
  269. package/tools/templates/modules/vod/scripts/ui/views/VodScrollView.js +22 -0
  270. package/tools/templates/package.json +14 -0
  271. package/tools/templates/profiles/app.config.androidtv.json +17 -0
  272. package/tools/templates/profiles/app.config.titanos.json +24 -0
  273. package/tools/templates/profiles/app.config.tizen.json +52 -0
  274. package/tools/templates/profiles/app.config.tvos.json +18 -0
  275. package/tools/templates/profiles/app.config.vidaa.json +24 -0
  276. package/tools/templates/profiles/app.config.webos.json +21 -0
  277. package/tools/templates/tutorial/modules/fip/package.json +4 -0
  278. package/tools/templates/tutorial/modules/fip/scripts/FipModule.js +18 -0
  279. package/tools/templates/tutorial/modules/fip/scripts/FipRoutes.js +19 -0
  280. package/tools/templates/tutorial/modules/fip/scripts/ui/screens/FipContentScreen.js +146 -0
  281. package/tools/templates/tutorial/modules/fip/scripts/ui/views/ElevatorView.js +66 -0
  282. package/tools/templates/tutorial/modules/fip/scripts/ui/views/FipContentInfoView.js +90 -0
  283. package/tools/templates/tutorial/modules/fip/scripts/ui/views/PlayButtonView.js +58 -0
  284. package/tools/templates/tutorial/vendors/customBE/package.json +5 -0
  285. package/tools/templates/tutorial/vendors/customBE/scripts/datas/contents.json +749 -0
  286. package/tools/templates/tutorial/vendors/customBE/scripts/services/CustomBEVodService.js +70 -0
  287. package/tsconfig.json +8 -0
  288. package/vitest.config.ts +19 -0
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+
13
+ import { CodeartifactClient, GetRepositoryEndpointCommand } from "@aws-sdk/client-codeartifact";
14
+ import { AwsCredentials, CredentialsHelper } from "./CredentialsHelper.js";
15
+ import { DOMAIN, DOMAIN_OWNER, REGION } from "@/commands/authentication/authentConst.js";
16
+
17
+ interface GetRepositoryEndpointOptions {
18
+ organization: string;
19
+ credentials?: AwsCredentials;
20
+ client?: CodeartifactClient;
21
+ format: "npm" | "maven" | "swift";
22
+ }
23
+
24
+ export const getRepositoryEndpoint = async ({
25
+ organization,
26
+ credentials,
27
+ client,
28
+ format = "npm",
29
+ }: GetRepositoryEndpointOptions): Promise<string> => {
30
+ const actualCredentials = credentials ?? (await CredentialsHelper.get())?.aws;
31
+ if (!actualCredentials) {
32
+ throw new Error("No valid credentials available.");
33
+ }
34
+
35
+ const actualClient = client ?? createCodeArtifactClient(actualCredentials);
36
+
37
+ const repository = formatRepositoryString(organization);
38
+ const endpointCommand = new GetRepositoryEndpointCommand({
39
+ domain: DOMAIN,
40
+ domainOwner: DOMAIN_OWNER,
41
+ repository,
42
+ format,
43
+ });
44
+
45
+ const { repositoryEndpoint } = await actualClient.send(endpointCommand);
46
+
47
+ if (!repositoryEndpoint) {
48
+ throw new Error("Repository endpoint not found");
49
+ }
50
+ return repositoryEndpoint;
51
+ };
52
+
53
+ export const createCodeArtifactClient = (credentials: AwsCredentials): CodeartifactClient => {
54
+ return new CodeartifactClient({
55
+ region: REGION,
56
+ credentials: {
57
+ accessKeyId: credentials.accessKeyId,
58
+ secretAccessKey: credentials.secretAccessKey,
59
+ sessionToken: credentials.sessionToken,
60
+ },
61
+ });
62
+ };
63
+
64
+ export const formatRepositoryString = (org: string) => {
65
+ return `dana-${org}-repository`;
66
+ };
@@ -0,0 +1,9 @@
1
+ import * as prompts from "@clack/prompts";
2
+ import colors from "picocolors";
3
+ import translation from "@/common/translation/translation.js";
4
+ import { LOGIN_ERROR } from "@/common/const/exitCodeConst.js";
5
+
6
+ export const handleError = (error: unknown): void => {
7
+ prompts.outro(colors.red((error as Error).message ?? translation["error.common.start.message"]));
8
+ process.exit(LOGIN_ERROR);
9
+ };
@@ -0,0 +1,176 @@
1
+ import { readFile, writeFile } from "node:fs/promises";
2
+ import { homedir } from "node:os";
3
+ import path from "node:path";
4
+ import { DEFAULT_ORG } from "@/commands/authentication/authentConst.js";
5
+
6
+ export interface AwsCredentials {
7
+ identityId?: string;
8
+ accessKeyId: string;
9
+ secretAccessKey: string;
10
+ sessionToken: string;
11
+ expiration: string;
12
+ }
13
+
14
+ export interface DanaToken {
15
+ id_token: string;
16
+ access_token: string;
17
+ refresh_token: string;
18
+ expires_in: number;
19
+ token_type: string;
20
+ }
21
+
22
+ export interface CodeArtifactToken {
23
+ token: string;
24
+ expiration: Date;
25
+ }
26
+
27
+ export interface OrgCredentials {
28
+ aws: AwsCredentials;
29
+ dana: DanaToken;
30
+ codeArtifact?: CodeArtifactToken;
31
+ }
32
+
33
+ export interface DanaConfig {
34
+ lastUsedOrg: string;
35
+ version: number;
36
+ credentials: Record<string, OrgCredentials>;
37
+ port?: number;
38
+ isRemote: boolean;
39
+ }
40
+
41
+ export const CURRENT_DANA_JSON_VERSION = 2;
42
+
43
+ export class CredentialsHelper {
44
+ static readonly filePath = path.join(homedir(), ".dana.json");
45
+
46
+ static async getConfig(): Promise<DanaConfig | null> {
47
+ try {
48
+ const data = await readFile(this.filePath, { encoding: "utf-8" });
49
+ let config = JSON.parse(data) as DanaConfig;
50
+ const configVersion = config.version ?? 1;
51
+ if (configVersion != CURRENT_DANA_JSON_VERSION) {
52
+ config = CredentialsHelper.migrateConfig(config, configVersion);
53
+ await writeFile(this.filePath, JSON.stringify(config, null, 4));
54
+ }
55
+ return config;
56
+ } catch {
57
+ return null;
58
+ }
59
+ }
60
+
61
+ private static migrateConfig(config: unknown, from: number): DanaConfig {
62
+ if (from === 1) {
63
+ interface DanaConfigV1 {
64
+ org: string;
65
+ aws: {
66
+ identityId: string;
67
+ accessKeyId: string;
68
+ secretAccessKey: string;
69
+ sessionToken: string;
70
+ expiration: string;
71
+ };
72
+ dana: {
73
+ id_token: string;
74
+ access_token: string;
75
+ refresh_token: string;
76
+ expires_in: number;
77
+ token_type: string;
78
+ };
79
+ }
80
+ const v1 = config as DanaConfigV1;
81
+ return {
82
+ lastUsedOrg: v1.org,
83
+ credentials: {
84
+ [v1.org]: {
85
+ dana: v1.dana,
86
+ aws: v1.aws,
87
+ },
88
+ },
89
+ isRemote: false,
90
+ version: CURRENT_DANA_JSON_VERSION,
91
+ };
92
+ }
93
+ return config as DanaConfig;
94
+ }
95
+
96
+ static async store(
97
+ credentials: { aws: AwsCredentials; dana: DanaToken; org: string },
98
+ isRemote: boolean,
99
+ port?: number,
100
+ ): Promise<void> {
101
+ let config = await this.getConfig();
102
+
103
+ config ??= {
104
+ lastUsedOrg: credentials.org,
105
+ credentials: {},
106
+ version: CURRENT_DANA_JSON_VERSION,
107
+ isRemote: false,
108
+ };
109
+ config.credentials ??= {};
110
+
111
+ config.lastUsedOrg = credentials.org;
112
+ if (port) {
113
+ config.port = port;
114
+ }
115
+ config.isRemote = isRemote;
116
+ config.credentials[credentials.org] = { aws: credentials.aws, dana: credentials.dana };
117
+ await writeFile(this.filePath, JSON.stringify(config, null, 4));
118
+ }
119
+
120
+ static async get(org?: string): Promise<{
121
+ aws?: AwsCredentials;
122
+ dana?: DanaToken;
123
+ codeArtifact?: CodeArtifactToken;
124
+ org: string;
125
+ isRemote: boolean;
126
+ port?: number;
127
+ }> {
128
+ const config = await this.getConfig();
129
+
130
+ const organization = org ?? config?.lastUsedOrg ?? DEFAULT_ORG;
131
+
132
+ const creds: {
133
+ aws?: AwsCredentials;
134
+ dana?: DanaToken;
135
+ codeArtifact?: CodeArtifactToken;
136
+ org: string;
137
+ isRemote: boolean;
138
+ port?: number;
139
+ } = {
140
+ org: organization,
141
+ isRemote: false,
142
+ };
143
+ if (config?.credentials?.[organization]?.aws) {
144
+ creds.aws = config?.credentials[organization]?.aws;
145
+ }
146
+ if (config?.credentials?.[organization]?.dana) {
147
+ creds.dana = config?.credentials[organization]?.dana;
148
+ }
149
+ if (config?.port) {
150
+ creds.port = config.port;
151
+ }
152
+ if (config?.credentials?.[organization]?.codeArtifact) {
153
+ creds.codeArtifact = config?.credentials[organization]?.codeArtifact;
154
+ }
155
+
156
+ creds.isRemote = !!config?.isRemote;
157
+
158
+ return creds;
159
+ }
160
+ static async delete(org: string) {
161
+ const config = await this.getConfig();
162
+
163
+ if (config) {
164
+ delete config.credentials[org];
165
+ await writeFile(this.filePath, JSON.stringify(config, null, 4));
166
+ }
167
+ }
168
+
169
+ static async updateCodeArtifactToken(org: string, token: CodeArtifactToken) {
170
+ const config = await this.getConfig();
171
+ if (config?.credentials) {
172
+ config.credentials[org].codeArtifact = token;
173
+ await writeFile(this.filePath, JSON.stringify(config, null, 4));
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,95 @@
1
+ import { writeFile, mkdir, access, symlink, readFile } from "node:fs/promises";
2
+ import path from "node:path";
3
+ import { spawnSync } from "node:child_process";
4
+
5
+ export interface RegistriesJSON {
6
+ authentication: Record<string, { loginAPIPath: string; type: string }>;
7
+ registries: Record<string, { supportsAvailability: boolean; url: string }>;
8
+ version: number;
9
+ }
10
+
11
+ /**
12
+ * @return {string} Path of the SPM registries.json config file
13
+ */
14
+ export async function ensureSPMDirectoriesExists(): Promise<string> {
15
+ const librarySPMPath = path.join(process.env.HOME!, "Library", "org.swift.swiftpm", "configuration");
16
+ const userSPMPath = path.join(process.env.HOME!, ".swiftpm");
17
+ const userSPMRegistriesPath = path.join(process.env.HOME!, ".swiftpm", "configuration", "registries.json");
18
+
19
+ // create files if they don't exist
20
+ await mkdir(librarySPMPath, { recursive: true });
21
+ await mkdir(userSPMPath, { recursive: true });
22
+ await access(path.join(userSPMPath, "configuration")).catch(
23
+ async () => await symlink(librarySPMPath, path.join(userSPMPath, "configuration")),
24
+ );
25
+
26
+ await access(userSPMRegistriesPath).catch(
27
+ async () =>
28
+ await writeFile(
29
+ userSPMRegistriesPath,
30
+ JSON.stringify(
31
+ {
32
+ authentication: {},
33
+ registries: {},
34
+ version: 1,
35
+ },
36
+ null,
37
+ 2,
38
+ ),
39
+ ),
40
+ );
41
+
42
+ return userSPMRegistriesPath;
43
+ }
44
+
45
+ export async function updateSPMRegistries(filePath: string, registry: string, url: string) {
46
+ const rawData = await readFile(filePath, { encoding: "utf-8" });
47
+ const registriesJSON = JSON.parse(rawData) as RegistriesJSON;
48
+ const repositoryURL = new URL(url);
49
+
50
+ registriesJSON.registries[registry] = {
51
+ supportsAvailability: false,
52
+ url: url,
53
+ };
54
+ registriesJSON.authentication[repositoryURL.host] = {
55
+ loginAPIPath: path.join(repositoryURL.pathname, "login"),
56
+ type: "token",
57
+ };
58
+ await writeFile(filePath, JSON.stringify(registriesJSON, null, 2));
59
+ }
60
+
61
+ export function updateSPMToken(url: string, token: string) {
62
+ const repositoryURL = new URL(url);
63
+ const res = spawnSync(
64
+ "security",
65
+ [
66
+ "add-internet-password",
67
+ "-a",
68
+ "token",
69
+ "-l",
70
+ repositoryURL.host,
71
+ "-r",
72
+ "htps",
73
+ "-s",
74
+ repositoryURL.host,
75
+ "-U",
76
+ "-A",
77
+ "-w",
78
+ token,
79
+ ],
80
+ {
81
+ encoding: "utf-8",
82
+ },
83
+ );
84
+ if (res.status !== 0) {
85
+ if (res.stderr.split("\n")[0].includes("User canceled the operation")) {
86
+ throw new Error(
87
+ "Unable to update password in keychain.\nPlease enter your keychain password when asked to update the token.",
88
+ );
89
+ } else if (res.stderr.split("\n")[0].includes("The specified item already exists in the keychain")) {
90
+ throw new Error("Unable to update token in keychain.\nDelete current token entry for codeartifact.");
91
+ } else {
92
+ throw new Error("Unable to update password in keychain.\n" + res.stderr.toString());
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+ import * as prompts from "@clack/prompts";
13
+ import { LOGIN_ERROR } from "@/common/const/exitCodeConst.js";
14
+ import { Command } from "commander";
15
+ import translation from "@/common/translation/translation.js";
16
+
17
+ export const tokenHook = (_command: Command, subCommand: Command) => {
18
+ const options = subCommand.opts();
19
+ const token: string = (options.token as string) ?? "";
20
+ if (token) {
21
+ if (!options.org) {
22
+ prompts.log.error(translation["command.hook.login.org.error"]);
23
+ process.exit(LOGIN_ERROR);
24
+ }
25
+ if (!token.startsWith("dana_")) {
26
+ prompts.log.error(translation["command.auth.login.token.error"]);
27
+ process.exit(LOGIN_ERROR);
28
+ }
29
+ }
30
+ };
@@ -0,0 +1,31 @@
1
+ import { Command } from "commander";
2
+ import { PLATFORM_CONFIG } from "@/common/const/deviceConst.js";
3
+ import translation from "@/common/translation/translation.js";
4
+
5
+ const customHelp = (program: Command) => {
6
+ const commandList =
7
+ " " +
8
+ program.commands
9
+ .map((cmd) => `${cmd.name()}: ${cmd.description()}`)
10
+ .sort((a, b) => a.localeCompare(b))
11
+ .join("\n ");
12
+
13
+ const availableDevices = Object.values(PLATFORM_CONFIG)
14
+ .map((el) => el.label)
15
+ .sort((a, b) => a.localeCompare(b))
16
+ .join(", ");
17
+
18
+ return `
19
+ DANA
20
+ ===================
21
+
22
+ ${translation["help.custom.commands"]}
23
+ ${commandList}
24
+
25
+
26
+ ${translation["help.custom.devices"]}
27
+ ${availableDevices}
28
+
29
+ `;
30
+ };
31
+ export default customHelp;
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+
13
+ import { appendFile } from "node:fs/promises";
14
+ import path, { join } from "node:path";
15
+ import { homedir } from "node:os";
16
+ import translation from "@/common/translation/translation.js";
17
+ import { COMMAND_ERROR } from "@/common/const/exitCodeConst.js";
18
+ import * as prompts from "@clack/prompts";
19
+ import colors from "picocolors";
20
+ import { fileURLToPath } from "node:url";
21
+
22
+ const BASH = "bash";
23
+ const ZSH = "zsh";
24
+
25
+ const completion = async (shell: string) => {
26
+ if (![BASH, ZSH].includes(shell)) {
27
+ handleError(`Error: Shell must be either ${BASH} or ${ZSH}`);
28
+ }
29
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
30
+ const completionPath = join(__dirname, "../dana_completion.sh");
31
+ const configFile = `.${shell}rc`;
32
+ const configPath = join(homedir(), configFile);
33
+ const headerString = `\n#${"=".repeat(25)}\n# Dana CLI completion`;
34
+ const sourceString = `\nsource "${completionPath}"\n`;
35
+ const sourceCommand =
36
+ shell === ZSH
37
+ ? `${headerString}\nautoload -U compinit\ncompinit ${sourceString}`
38
+ : `${headerString}${sourceString}`;
39
+
40
+ try {
41
+ await appendFile(configPath, sourceCommand);
42
+ prompts.log.success(colors.green("✓") + translation["command.completion.success"] + ` ${configFile}`);
43
+ prompts.log.info(`Run 'source ~/${configFile}' or restart your terminal`);
44
+ } catch (error) {
45
+ handleError(`Failed to install completion: ${error}`);
46
+ }
47
+ };
48
+
49
+ const handleError = (message: string) => {
50
+ prompts.log.error(message);
51
+ process.exit(COMMAND_ERROR);
52
+ };
53
+ export default completion;
@@ -0,0 +1,16 @@
1
+ import { Command } from "commander";
2
+ import completion from "./completion.js";
3
+ import translation from "@/common/translation/translation.js";
4
+
5
+ const completionDefinition = () => {
6
+ const command = new Command("completion");
7
+
8
+ command
9
+ .description(translation["command.completion.description"])
10
+ .argument("<shell>", translation["command.completion.argument"])
11
+ .action(completion);
12
+
13
+ return command;
14
+ };
15
+
16
+ export default completionDefinition;
@@ -0,0 +1,133 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+
13
+ import CreateFileHelper from "@/common/helpers/CreateFileHelper.js";
14
+ import UpdateFileHelper from "@/common/helpers/UpdateFileHelper.js";
15
+ import InstallHelper from "@/common/helpers/InstallHelper.js";
16
+ import { Data, Task } from "@/common/types/helperTypes.js";
17
+ import { dirname, resolve } from "node:path";
18
+ import ComponentHelper from "@/commands/addComponent/helper/ComponentHelper.js";
19
+ import { readdir } from "node:fs/promises";
20
+ import { AppType } from "./templateConst.js";
21
+ import { MODULES_WITH_FONT_ICON, ModuleType } from "../../addModule/moduleConst.js";
22
+ import CreateAppHelper from "../helpers/CreateAppHelper.js";
23
+
24
+ export const createAppTasks = async (data: Data, type: AppType): Promise<Task[]> => {
25
+ const devDependencies = InstallHelper.getDependenciesList(data.selectedDevices, data.config, data.skills);
26
+ const taskList: Task[] = getBareAppTasks(data, devDependencies);
27
+ if (type === AppType.TUTORIAL) {
28
+ taskList.push(...getTutorialTasks(data));
29
+ }
30
+ if (type === AppType.TEMPLATED) {
31
+ taskList.push(...(await getTemplatedTasks(data)));
32
+ }
33
+ taskList.push(finalTask(data));
34
+ return taskList;
35
+ };
36
+
37
+ const getBareAppTasks = (data: Data, dependencies: string[]): Task[] => {
38
+ return [
39
+ {
40
+ title: "Copy template",
41
+ task: async () => CreateFileHelper.copyTemplate(data),
42
+ },
43
+ {
44
+ title: "Update templated files",
45
+ task: async () => UpdateFileHelper.applyTemplatesToFiles(data),
46
+ },
47
+ {
48
+ title: "Update npmrc",
49
+ task: async () => UpdateFileHelper.updateNpmrcFile(data),
50
+ },
51
+ {
52
+ title: "Update package.json",
53
+ task: async () => UpdateFileHelper.updatePackageJson(data),
54
+ },
55
+ {
56
+ title: "Copy app.config files",
57
+ task: async () => CreateFileHelper.copyAppConfigFiles(data),
58
+ },
59
+ {
60
+ title: "Update app.config.json",
61
+ task: async () => UpdateFileHelper.updateAppConfigFile(data),
62
+ },
63
+ {
64
+ title: "Install dependencies with npm",
65
+ task: async () => InstallHelper.installDependencies(data, dependencies),
66
+ },
67
+ {
68
+ title: "Copy skills for ai agents",
69
+ task: async () => CreateFileHelper.copySkillsFiles(data),
70
+ condition: data.skills,
71
+ },
72
+ {
73
+ title: "Install grunt globally",
74
+ task: async () => InstallHelper.installGrunt(),
75
+ },
76
+ {
77
+ title: "Execute grunt tasks",
78
+ task: async () => CreateFileHelper.executeGruntTasks(data),
79
+ },
80
+ {
81
+ title: "Execute devices config",
82
+ task: async () => UpdateFileHelper.setDevicesConfig(data),
83
+ },
84
+ ];
85
+ };
86
+
87
+ const finalTask = (data: Data): Task => {
88
+ return {
89
+ title: "Initialize git",
90
+ task: async () => InstallHelper.initGit(data),
91
+ };
92
+ };
93
+
94
+ const getTutorialTasks = (data: Data): Task[] => {
95
+ return [
96
+ {
97
+ title: "Copy for tutorial",
98
+ task: async () => CreateFileHelper.copyForTutorial(data),
99
+ },
100
+ ];
101
+ };
102
+
103
+ const getTemplatedTasks = async (data: Data) => {
104
+ const templateDir: string = resolve(dirname(ComponentHelper.getTemplatePath()), "modules");
105
+ const availableModules = await readdir(templateDir);
106
+ const shouldAddIconFont = availableModules.some((module) => MODULES_WITH_FONT_ICON.has(module as ModuleType));
107
+
108
+ return [
109
+ {
110
+ title: "Copy modules for templated",
111
+ task: async () =>
112
+ CreateFileHelper.copyForTemplatedApp(data, {
113
+ availableModules,
114
+ templateDir,
115
+ shouldAddIconFont,
116
+ }),
117
+ },
118
+ {
119
+ title: "Update app.config with modules list and ",
120
+ task: async () =>
121
+ UpdateFileHelper.addModuleToAppConfig(data, { modules: availableModules, shouldAddIconFont }),
122
+ },
123
+ {
124
+ title: "Update appTheme",
125
+ task: async () => UpdateFileHelper.updateAppTheme(data, "MockIcons"),
126
+ condition: shouldAddIconFont,
127
+ },
128
+ {
129
+ title: "Set first route",
130
+ task: () => CreateAppHelper.setFirstRoute(data),
131
+ },
132
+ ];
133
+ };
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+
13
+ const REGISTRY_KEY = "@dana:registry";
14
+ const DEFAULT_IMAGE_URL = "images/dana.png";
15
+
16
+ export { REGISTRY_KEY, DEFAULT_IMAGE_URL };
@@ -0,0 +1,10 @@
1
+ export enum AppType {
2
+ BARE = "bare",
3
+ TUTORIAL = "tutorial",
4
+ TEMPLATED = "templated",
5
+ }
6
+
7
+ export const ICON_FONT = {
8
+ family: "fa-solid-900",
9
+ path: "styles/fonts/fa-solid-900.ttf",
10
+ };