robodev 0.23.0 → 0.25.0

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 (181) hide show
  1. package/package.json +1 -1
  2. package/src/emit-starter.test.ts +36 -0
  3. package/templates/auth-chat/package.json +1 -1
  4. package/templates/backend/package.json +1 -1
  5. package/templates/catalog.json +5 -0
  6. package/templates/empty/package.json +1 -1
  7. package/templates/marketplace/.config/local.spa.template.yml +27 -0
  8. package/templates/marketplace/.oxlint-base.json +29 -0
  9. package/templates/marketplace/.oxlintrc.json +78 -0
  10. package/templates/marketplace/.rulesync/rules/frontend-api-boundary.md +36 -0
  11. package/templates/marketplace/.rulesync/rules/frontend-component-structure.md +38 -0
  12. package/templates/marketplace/.rulesync/rules/frontend-forms.md +32 -0
  13. package/templates/marketplace/.rulesync/rules/frontend-notifications.md +24 -0
  14. package/templates/marketplace/.rulesync/rules/frontend-povio-components.md +42 -0
  15. package/templates/marketplace/.rulesync/rules/frontend-povio-ui.md +45 -0
  16. package/templates/marketplace/.rulesync/rules/frontend-query-autocomplete.md +29 -0
  17. package/templates/marketplace/.rulesync/rules/frontend-tables-and-lists.md +34 -0
  18. package/templates/marketplace/.rulesync/rules/frontend-translations.md +26 -0
  19. package/templates/marketplace/.rulesync/rules/project-overview.md +32 -0
  20. package/templates/marketplace/.rulesync/rules/robodev-api.md +30 -0
  21. package/templates/marketplace/.rulesync/rules/robodev-auth.md +40 -0
  22. package/templates/marketplace/.rulesync/rules/robodev-database.md +22 -0
  23. package/templates/marketplace/.rulesync/rules/role-based-app-structure.md +36 -0
  24. package/templates/marketplace/.rulesync/skills/media-feature/SKILL.md +21 -0
  25. package/templates/marketplace/.rulesync/skills/povio-ui-styling/SKILL.md +208 -0
  26. package/templates/marketplace/.rulesync/skills/povio-ui-styling/agents/openai.yaml +4 -0
  27. package/templates/marketplace/.rulesync/skills/robodev-api-route/SKILL.md +13 -0
  28. package/templates/marketplace/.rulesync/skills/robodev-table/SKILL.md +12 -0
  29. package/templates/marketplace/README.md +40 -0
  30. package/templates/marketplace/api/_lib.seed.test.ts +10 -0
  31. package/templates/marketplace/api/_lib.ts +734 -0
  32. package/templates/marketplace/api/cart/[id].ts +51 -0
  33. package/templates/marketplace/api/cart.ts +70 -0
  34. package/templates/marketplace/api/categories.ts +11 -0
  35. package/templates/marketplace/api/checkout.ts +157 -0
  36. package/templates/marketplace/api/health.ts +7 -0
  37. package/templates/marketplace/api/listings/[id].ts +101 -0
  38. package/templates/marketplace/api/listings/paginate.ts +29 -0
  39. package/templates/marketplace/api/listings.ts +90 -0
  40. package/templates/marketplace/api/me.ts +14 -0
  41. package/templates/marketplace/api/orders/[id]/complete.ts +27 -0
  42. package/templates/marketplace/api/orders/[id]/ship.ts +24 -0
  43. package/templates/marketplace/api/orders/[id].ts +15 -0
  44. package/templates/marketplace/api/purchases.ts +19 -0
  45. package/templates/marketplace/api/reviews.ts +58 -0
  46. package/templates/marketplace/api/sales.ts +19 -0
  47. package/templates/marketplace/api/watches/[listingId].ts +18 -0
  48. package/templates/marketplace/api/watches.ts +51 -0
  49. package/templates/marketplace/apps/fe/index.html +24 -0
  50. package/templates/marketplace/apps/fe/openapi-codegen.config.ts +72 -0
  51. package/templates/marketplace/apps/fe/package.json +84 -0
  52. package/templates/marketplace/apps/fe/public/apple-touch-icon.png +0 -0
  53. package/templates/marketplace/apps/fe/public/favicon-96x96.png +0 -0
  54. package/templates/marketplace/apps/fe/public/favicon.ico +0 -0
  55. package/templates/marketplace/apps/fe/public/favicon.svg +3 -0
  56. package/templates/marketplace/apps/fe/public/site.webmanifest +21 -0
  57. package/templates/marketplace/apps/fe/public/web-app-manifest-192x192.png +0 -0
  58. package/templates/marketplace/apps/fe/public/web-app-manifest-512x512.png +0 -0
  59. package/templates/marketplace/apps/fe/src/assets/fonts/GeneralSans-Bold.otf +0 -0
  60. package/templates/marketplace/apps/fe/src/assets/fonts/GeneralSans-Medium.otf +0 -0
  61. package/templates/marketplace/apps/fe/src/assets/fonts/GeneralSans-Regular.otf +0 -0
  62. package/templates/marketplace/apps/fe/src/assets/fonts/GeneralSans-Semibold.otf +0 -0
  63. package/templates/marketplace/apps/fe/src/assets/locales/en/translation.json +336 -0
  64. package/templates/marketplace/apps/fe/src/assets/locales/sl/translation.json +336 -0
  65. package/templates/marketplace/apps/fe/src/clients/app-rest-client.ts +15 -0
  66. package/templates/marketplace/apps/fe/src/clients/auth-token-store.ts +101 -0
  67. package/templates/marketplace/apps/fe/src/clients/rest/app-error-handler.ts +31 -0
  68. package/templates/marketplace/apps/fe/src/clients/rest/interceptors/authorization-header.interceptor.ts +15 -0
  69. package/templates/marketplace/apps/fe/src/clients/rest/interceptors/refresh-token.interceptor.ts +37 -0
  70. package/templates/marketplace/apps/fe/src/clients/rest/interceptors/response.interceptor.ts +17 -0
  71. package/templates/marketplace/apps/fe/src/components/404.tsx +18 -0
  72. package/templates/marketplace/apps/fe/src/components/features/auth/AuthBrandPanel.tsx +60 -0
  73. package/templates/marketplace/apps/fe/src/components/features/auth/AuthLayout.tsx +23 -0
  74. package/templates/marketplace/apps/fe/src/components/features/auth/LoginPage.tsx +111 -0
  75. package/templates/marketplace/apps/fe/src/components/features/auth/RegisterPage.tsx +143 -0
  76. package/templates/marketplace/apps/fe/src/components/features/marketplace/BrowsePage.tsx +76 -0
  77. package/templates/marketplace/apps/fe/src/components/features/marketplace/CartPage.tsx +88 -0
  78. package/templates/marketplace/apps/fe/src/components/features/marketplace/CheckoutPage.tsx +193 -0
  79. package/templates/marketplace/apps/fe/src/components/features/marketplace/ListingCard.tsx +50 -0
  80. package/templates/marketplace/apps/fe/src/components/features/marketplace/ListingDetailsPage.tsx +194 -0
  81. package/templates/marketplace/apps/fe/src/components/features/marketplace/ListingForm.tsx +278 -0
  82. package/templates/marketplace/apps/fe/src/components/features/marketplace/ListingFormPage.tsx +27 -0
  83. package/templates/marketplace/apps/fe/src/components/features/marketplace/ListingGallery.tsx +54 -0
  84. package/templates/marketplace/apps/fe/src/components/features/marketplace/MyListingsPage.tsx +137 -0
  85. package/templates/marketplace/apps/fe/src/components/features/marketplace/OrderStatusTag.tsx +24 -0
  86. package/templates/marketplace/apps/fe/src/components/features/marketplace/OrderSummaryCard.tsx +39 -0
  87. package/templates/marketplace/apps/fe/src/components/features/marketplace/OrdersPage.tsx +236 -0
  88. package/templates/marketplace/apps/fe/src/components/features/marketplace/WatchlistPage.tsx +56 -0
  89. package/templates/marketplace/apps/fe/src/components/features/profile/ProfilePage.tsx +96 -0
  90. package/templates/marketplace/apps/fe/src/components/googleAnalytics/GoogleAnalytics.tsx +35 -0
  91. package/templates/marketplace/apps/fe/src/components/layout/AppLayout.tsx +19 -0
  92. package/templates/marketplace/apps/fe/src/components/layout/app-header/AppHeader.tsx +95 -0
  93. package/templates/marketplace/apps/fe/src/components/layout/app-header/MobileNavigation.tsx +55 -0
  94. package/templates/marketplace/apps/fe/src/components/layout/app-header/NavLink.tsx +29 -0
  95. package/templates/marketplace/apps/fe/src/components/shared/branding/BrandLogo.tsx +13 -0
  96. package/templates/marketplace/apps/fe/src/components/shared/error/ErrorFallback.tsx +43 -0
  97. package/templates/marketplace/apps/fe/src/components/shared/error/ErrorText.tsx +20 -0
  98. package/templates/marketplace/apps/fe/src/components/shared/error/NotFound.tsx +36 -0
  99. package/templates/marketplace/apps/fe/src/components/shared/forms/RequiredLabel.tsx +21 -0
  100. package/templates/marketplace/apps/fe/src/components/shared/forms/RowInputWrapper.tsx +50 -0
  101. package/templates/marketplace/apps/fe/src/components/shared/head/AppHead.tsx +32 -0
  102. package/templates/marketplace/apps/fe/src/components/shared/head/DefaultAppHead.tsx +34 -0
  103. package/templates/marketplace/apps/fe/src/components/shared/layout/LoadingState.tsx +9 -0
  104. package/templates/marketplace/apps/fe/src/components/shared/layout/ThinPageWrapper.tsx +5 -0
  105. package/templates/marketplace/apps/fe/src/components/shared/page/PageHeader.tsx +69 -0
  106. package/templates/marketplace/apps/fe/src/components/shared/ui/Card.tsx +60 -0
  107. package/templates/marketplace/apps/fe/src/components/shared/ui/GoogleLoginButton.tsx +19 -0
  108. package/templates/marketplace/apps/fe/src/components/shared/ui/RequiredLabel.tsx +22 -0
  109. package/templates/marketplace/apps/fe/src/components/shared/ui/TableActions.tsx +22 -0
  110. package/templates/marketplace/apps/fe/src/config/app.config.ts +35 -0
  111. package/templates/marketplace/apps/fe/src/config/i18n.ts +43 -0
  112. package/templates/marketplace/apps/fe/src/config/inits/a11y.ts +14 -0
  113. package/templates/marketplace/apps/fe/src/config/inits/logger.ts +7 -0
  114. package/templates/marketplace/apps/fe/src/config/inits/sentry.ts +21 -0
  115. package/templates/marketplace/apps/fe/src/config/jwt.config.ts +2 -0
  116. package/templates/marketplace/apps/fe/src/config/query.config.ts +20 -0
  117. package/templates/marketplace/apps/fe/src/hooks/useAuth.ts +5 -0
  118. package/templates/marketplace/apps/fe/src/main.tsx +52 -0
  119. package/templates/marketplace/apps/fe/src/pages/(guest)/login.tsx +23 -0
  120. package/templates/marketplace/apps/fe/src/pages/(guest)/register.tsx +23 -0
  121. package/templates/marketplace/apps/fe/src/pages/(guest)/route.tsx +18 -0
  122. package/templates/marketplace/apps/fe/src/pages/(private)/cart.tsx +22 -0
  123. package/templates/marketplace/apps/fe/src/pages/(private)/checkout.tsx +22 -0
  124. package/templates/marketplace/apps/fe/src/pages/(private)/index.tsx +22 -0
  125. package/templates/marketplace/apps/fe/src/pages/(private)/listings/$id/index.tsx +37 -0
  126. package/templates/marketplace/apps/fe/src/pages/(private)/my-listings.tsx +32 -0
  127. package/templates/marketplace/apps/fe/src/pages/(private)/orders/$id.tsx +40 -0
  128. package/templates/marketplace/apps/fe/src/pages/(private)/orders/index.tsx +22 -0
  129. package/templates/marketplace/apps/fe/src/pages/(private)/profile.tsx +23 -0
  130. package/templates/marketplace/apps/fe/src/pages/(private)/route.tsx +18 -0
  131. package/templates/marketplace/apps/fe/src/pages/(private)/sales.tsx +22 -0
  132. package/templates/marketplace/apps/fe/src/pages/(private)/sell/$id.tsx +44 -0
  133. package/templates/marketplace/apps/fe/src/pages/(private)/sell/index.tsx +15 -0
  134. package/templates/marketplace/apps/fe/src/pages/(private)/watchlist.tsx +22 -0
  135. package/templates/marketplace/apps/fe/src/pages/(public)/auth.tsx +37 -0
  136. package/templates/marketplace/apps/fe/src/pages/(public)/route.tsx +9 -0
  137. package/templates/marketplace/apps/fe/src/pages/__root.tsx +164 -0
  138. package/templates/marketplace/apps/fe/src/providers/AppErrorBoundary.tsx +10 -0
  139. package/templates/marketplace/apps/fe/src/providers/OpenApiRuntimeProvider.tsx +31 -0
  140. package/templates/marketplace/apps/fe/src/providers/index.tsx +44 -0
  141. package/templates/marketplace/apps/fe/src/providers/jwt.provider.tsx +95 -0
  142. package/templates/marketplace/apps/fe/src/routeTree.gen.ts +435 -0
  143. package/templates/marketplace/apps/fe/src/styles/base.css +103 -0
  144. package/templates/marketplace/apps/fe/src/styles/fonts/fonts.tsx +10 -0
  145. package/templates/marketplace/apps/fe/src/styles/fonts/general-sans.css +31 -0
  146. package/templates/marketplace/apps/fe/src/styles/globals.css +28 -0
  147. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/button.override.ts +536 -0
  148. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/checkbox.override.ts +71 -0
  149. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/input.override.ts +252 -0
  150. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/label.override.ts +91 -0
  151. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/modal.override.ts +57 -0
  152. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/radio.override.ts +46 -0
  153. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/table.override.ts +104 -0
  154. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/tag.override.ts +66 -0
  155. package/templates/marketplace/apps/fe/src/styles/overrides/defaults/typography.override.ts +115 -0
  156. package/templates/marketplace/apps/fe/src/styles/overrides/outline.clsx.ts +10 -0
  157. package/templates/marketplace/apps/fe/src/styles/overrides/uiOverrides.override.ts +60 -0
  158. package/templates/marketplace/apps/fe/src/styles/theme.css +2177 -0
  159. package/templates/marketplace/apps/fe/src/types/i18next.d.ts +12 -0
  160. package/templates/marketplace/apps/fe/src/types/table.d.ts +17 -0
  161. package/templates/marketplace/apps/fe/src/types/ui.d.ts +26 -0
  162. package/templates/marketplace/apps/fe/src/types/vite-env.d.ts +20 -0
  163. package/templates/marketplace/apps/fe/src/utils/date.utils.ts +17 -0
  164. package/templates/marketplace/apps/fe/src/utils/image-fallback.ts +9 -0
  165. package/templates/marketplace/apps/fe/src/utils/listing-form.test.ts +69 -0
  166. package/templates/marketplace/apps/fe/src/utils/listing-form.ts +77 -0
  167. package/templates/marketplace/apps/fe/src/utils/listing-submit.ts +29 -0
  168. package/templates/marketplace/apps/fe/src/utils/number.utils.ts +12 -0
  169. package/templates/marketplace/apps/fe/src/utils/string.utils.ts +5 -0
  170. package/templates/marketplace/apps/fe/src/vite-env.d.ts +1 -0
  171. package/templates/marketplace/apps/fe/tsconfig.app.json +32 -0
  172. package/templates/marketplace/apps/fe/tsconfig.json +9 -0
  173. package/templates/marketplace/apps/fe/tsconfig.node.json +31 -0
  174. package/templates/marketplace/apps/fe/vite.config.ts +125 -0
  175. package/templates/marketplace/database.ts +154 -0
  176. package/templates/marketplace/openapi.json +2303 -0
  177. package/templates/marketplace/oxfmt.config.js +23 -0
  178. package/templates/marketplace/package.json +18 -0
  179. package/templates/marketplace/rulesync.jsonc +18 -0
  180. package/templates/marketplace/tsconfig.json +11 -0
  181. package/templates/space/package.json +1 -1
@@ -0,0 +1,115 @@
1
+ import { UIOverrides } from "@povio/ui";
2
+
3
+ export const typographyOverride = UIOverrides.defineOverride("typography.cva", {
4
+ mode: "overrideCva",
5
+ base: [""],
6
+ config: {
7
+ compoundVariants: [
8
+ {
9
+ className: "font-general-sans",
10
+ size: [
11
+ "headline-1",
12
+ "title-1",
13
+ "title-2",
14
+ "title-3",
15
+ "title-4",
16
+ "title-5",
17
+ "title-6",
18
+ "body-1",
19
+ "body-2",
20
+ "body-3",
21
+ "body-4",
22
+ "label-1",
23
+ "label-2",
24
+ "label-3",
25
+ ],
26
+ },
27
+ {
28
+ className: "font-medium",
29
+ size: [
30
+ "headline-1",
31
+ "title-1",
32
+ "title-2",
33
+ "title-3",
34
+ "title-4",
35
+ "title-5",
36
+ "title-6",
37
+ "label-1",
38
+ "label-2",
39
+ "label-3",
40
+ ],
41
+ variant: ["default", "default-italic"],
42
+ },
43
+ {
44
+ className: "font-semibold",
45
+ size: [
46
+ "headline-1",
47
+ "title-1",
48
+ "title-2",
49
+ "title-3",
50
+ "title-4",
51
+ "title-5",
52
+ "title-6",
53
+ "label-1",
54
+ "label-2",
55
+ "label-3",
56
+ ],
57
+ variant: ["prominent-1", "prominent-1-italic"],
58
+ },
59
+ {
60
+ className: "font-medium",
61
+ size: ["body-1", "body-2", "body-3", "body-4"],
62
+ variant: ["prominent-1", "prominent-1-italic"],
63
+ },
64
+ {
65
+ className: "font-semibold",
66
+ size: ["body-1", "body-2", "body-3", "body-4"],
67
+ variant: ["prominent-2", "prominent-2-italic"],
68
+ },
69
+ ],
70
+ variants: {
71
+ size: {
72
+ "body-1": "md:text-desktop-body-1",
73
+ "body-2": "md:text-desktop-body-2",
74
+ "body-3": "md:text-desktop-body-3",
75
+ "body-4": "md:text-desktop-body-4",
76
+ "headline-1": "md:text-desktop-headline-1",
77
+ "label-1": "md:text-label-1",
78
+ "label-2": "md:text-label-2",
79
+ "label-3": "md:text-label-3",
80
+ "title-1": "md:text-desktop-title-1",
81
+ "title-2": "md:text-desktop-title-2",
82
+ "title-3": "md:text-desktop-title-3",
83
+ "title-4": "md:text-desktop-title-4",
84
+ "title-5": "md:text-desktop-title-5",
85
+ "title-6": "md:text-desktop-title-6",
86
+ },
87
+ sizeMobile: {
88
+ "body-1": "text-mobile-body-1",
89
+ "body-2": "text-mobile-body-2",
90
+ "body-3": "text-mobile-body-3",
91
+ "body-4": "text-mobile-body-4",
92
+ "headline-1": "text-mobile-headline-1",
93
+ "label-1": "text-label-1",
94
+ "label-2": "text-label-2",
95
+ "label-3": "text-label-3",
96
+ "title-1": "text-mobile-title-1",
97
+ "title-2": "text-mobile-title-2",
98
+ "title-3": "text-mobile-title-3",
99
+ "title-4": "text-mobile-title-4",
100
+ "title-5": "text-mobile-title-5",
101
+ "title-6": "text-mobile-title-6",
102
+ },
103
+ variant: {
104
+ default: "",
105
+ "default-italic": "italic",
106
+ "prominent-1": "",
107
+ "prominent-1-italic": "italic",
108
+ "prominent-2": "",
109
+ "prominent-2-italic": "italic",
110
+ },
111
+ },
112
+ },
113
+ });
114
+
115
+ export interface TypographyVariantProps extends UIOverrides.OverrideVariantProps<typeof typographyOverride> {}
@@ -0,0 +1,10 @@
1
+ import { clsx } from "clsx";
2
+
3
+ export const uiOutlineClass = clsx(
4
+ "focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2",
5
+ "has-focus-visible:outline has-focus-visible:outline-2 has-focus-visible:outline-solid has-focus-visible:outline-offset-2",
6
+ );
7
+
8
+ export const uiGroupOutlineClass = clsx(
9
+ "group-focus:outline-none group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-solid group-focus-visible:outline-offset-2",
10
+ );
@@ -0,0 +1,60 @@
1
+ import type { UIOverrides } from "@povio/ui";
2
+
3
+ import { buttonIconSizeOverride, buttonOverride } from "./defaults/button.override";
4
+ import { checkboxIconOverride, checkboxOverride, checkboxTypography } from "./defaults/checkbox.override";
5
+ import { inputBaseOverride, inputSideOverride, inputSizeOverride } from "./defaults/input.override";
6
+ import { labelBaseOverride, labelTypography } from "./defaults/label.override";
7
+ import { modalContentOverride, modalMainOverride, modalOverlayOverride } from "./defaults/modal.override";
8
+ import { radioOverride, radioTypography } from "./defaults/radio.override";
9
+ import {
10
+ tableCellTextOverride,
11
+ tableDataOverride,
12
+ tableHeadDataOverride,
13
+ tableHeaderTextOverride,
14
+ tableRowOverride,
15
+ } from "./defaults/table.override";
16
+ import { tagOverride } from "./defaults/tag.override";
17
+ import { typographyOverride } from "./defaults/typography.override";
18
+
19
+ export const uiOverrides: UIOverrides.Config = {
20
+ button: {
21
+ cva: buttonOverride,
22
+ iconSize: buttonIconSizeOverride,
23
+ },
24
+ checkbox: {
25
+ cva: checkboxOverride,
26
+ iconCva: checkboxIconOverride,
27
+ typography: checkboxTypography,
28
+ },
29
+ input: {
30
+ baseCva: inputBaseOverride,
31
+ sizeCva: inputSizeOverride,
32
+ sideCva: inputSideOverride,
33
+ },
34
+ label: {
35
+ cva: labelBaseOverride,
36
+ typography: labelTypography,
37
+ },
38
+ modal: {
39
+ contentCva: modalContentOverride,
40
+ mainCva: modalMainOverride,
41
+ overlayCva: modalOverlayOverride,
42
+ },
43
+ radio: {
44
+ cva: radioOverride,
45
+ typography: radioTypography,
46
+ },
47
+ table: {
48
+ cellTextCva: tableCellTextOverride,
49
+ dataCva: tableDataOverride,
50
+ headDataCva: tableHeadDataOverride,
51
+ headerTextCva: tableHeaderTextOverride,
52
+ rowCva: tableRowOverride,
53
+ },
54
+ tag: {
55
+ cva: tagOverride,
56
+ },
57
+ typography: {
58
+ cva: typographyOverride,
59
+ },
60
+ };