create-bluecopa-react-app 1.0.5 → 1.0.6

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 (117) hide show
  1. package/README.md +47 -10
  2. package/bin/create-bluecopa-react-app.js +257 -51
  3. package/package.json +6 -5
  4. package/templates/latest/Agent.md +254 -0
  5. package/templates/latest/Dockerfile +22 -0
  6. package/templates/latest/README.md +157 -221
  7. package/templates/latest/app/app.css +134 -0
  8. package/templates/latest/app/app.tsx +46 -0
  9. package/templates/latest/app/components/app-sidebar.tsx +174 -0
  10. package/templates/latest/app/components/chart-area-interactive.tsx +290 -0
  11. package/templates/latest/app/components/data-table.tsx +807 -0
  12. package/templates/latest/app/components/nav-documents.tsx +92 -0
  13. package/templates/latest/app/components/nav-main.tsx +56 -0
  14. package/templates/latest/app/components/nav-secondary.tsx +42 -0
  15. package/templates/latest/app/components/nav-user.tsx +112 -0
  16. package/templates/latest/app/components/section-cards.tsx +102 -0
  17. package/templates/latest/app/components/site-header.tsx +19 -0
  18. package/templates/latest/app/components/ui/avatar.tsx +53 -0
  19. package/templates/latest/app/components/ui/badge.tsx +46 -0
  20. package/templates/latest/app/components/ui/breadcrumb.tsx +109 -0
  21. package/templates/latest/app/components/ui/button.tsx +58 -0
  22. package/templates/latest/app/components/ui/card.tsx +92 -0
  23. package/templates/latest/app/components/ui/chart.tsx +352 -0
  24. package/templates/latest/app/components/ui/checkbox.tsx +30 -0
  25. package/templates/latest/app/components/ui/drawer.tsx +139 -0
  26. package/templates/latest/app/components/ui/dropdown-menu.tsx +258 -0
  27. package/templates/latest/app/components/ui/input.tsx +21 -0
  28. package/templates/latest/app/components/ui/label.tsx +24 -0
  29. package/templates/latest/app/components/ui/select.tsx +183 -0
  30. package/templates/latest/app/components/ui/separator.tsx +26 -0
  31. package/templates/latest/app/components/ui/sheet.tsx +139 -0
  32. package/templates/latest/app/components/ui/sidebar.tsx +731 -0
  33. package/templates/latest/app/components/ui/skeleton.tsx +13 -0
  34. package/templates/latest/app/components/ui/sonner.tsx +23 -0
  35. package/templates/latest/app/components/ui/table.tsx +117 -0
  36. package/templates/latest/app/components/ui/tabs.tsx +66 -0
  37. package/templates/latest/app/components/ui/toggle-group.tsx +73 -0
  38. package/templates/latest/app/components/ui/toggle.tsx +47 -0
  39. package/templates/latest/app/components/ui/tooltip.tsx +59 -0
  40. package/templates/latest/app/dashboard/data.json +614 -0
  41. package/templates/latest/app/hooks/use-bluecopa-user.ts +37 -0
  42. package/templates/latest/app/hooks/use-mobile.ts +19 -0
  43. package/templates/latest/{src → app}/lib/utils.ts +1 -1
  44. package/templates/latest/app/main.tsx +12 -0
  45. package/templates/latest/app/routes/home.tsx +40 -0
  46. package/templates/latest/app/routes.tsx +15 -0
  47. package/templates/latest/{src → app}/single-spa.tsx +3 -3
  48. package/templates/latest/components.json +22 -0
  49. package/templates/latest/dist/assets/__federation_expose_App-DRwKKpS2.js +91 -0
  50. package/templates/latest/dist/assets/__federation_fn_import-CzfA7kmP.js +438 -0
  51. package/templates/latest/dist/assets/__federation_shared_react-Bp6HVBS4.js +16 -0
  52. package/templates/latest/dist/assets/__federation_shared_react-dom-BCcRGiYp.js +17 -0
  53. package/templates/latest/dist/assets/client-DgSav55y.js +12658 -0
  54. package/templates/latest/dist/assets/home-DOL6GrYV.js +54951 -0
  55. package/templates/latest/dist/assets/index-BzNimew1.js +69 -0
  56. package/templates/latest/dist/assets/index-DMFtQdNS.js +412 -0
  57. package/templates/latest/dist/assets/index-DdYpcDMk.js +60 -0
  58. package/templates/latest/dist/assets/remoteEntry.js +88 -0
  59. package/templates/latest/dist/assets/style-36A39bNN.css +3683 -0
  60. package/templates/latest/dist/avatars/shadcn.svg +6 -0
  61. package/templates/latest/dist/favicon.ico +0 -0
  62. package/templates/latest/dist/index.html +19 -0
  63. package/templates/latest/index.html +1 -1
  64. package/templates/latest/package-lock.json +1227 -3353
  65. package/templates/latest/package.json +47 -43
  66. package/templates/latest/pnpm-lock.yaml +4767 -0
  67. package/templates/latest/preview/index.html +32 -2
  68. package/templates/latest/public/avatars/shadcn.svg +6 -0
  69. package/templates/latest/public/favicon.ico +0 -0
  70. package/templates/latest/tsconfig.json +19 -12
  71. package/templates/latest/vite.config.ts +41 -41
  72. package/templates/latest/.env.example +0 -14
  73. package/templates/latest/.eslintrc.cjs +0 -42
  74. package/templates/latest/AGENT.md +0 -282
  75. package/templates/latest/clean.sh +0 -40
  76. package/templates/latest/postcss.config.cjs +0 -6
  77. package/templates/latest/public/bluecopa-logo.svg +0 -30
  78. package/templates/latest/public/favicon-32x32.png +0 -0
  79. package/templates/latest/public/favicon-96x96.png +0 -0
  80. package/templates/latest/setup.sh +0 -56
  81. package/templates/latest/src/App.tsx +0 -19
  82. package/templates/latest/src/components/charts/AreaChart.tsx +0 -80
  83. package/templates/latest/src/components/charts/DonutChart.tsx +0 -73
  84. package/templates/latest/src/components/charts/SparkAreaChart.tsx +0 -52
  85. package/templates/latest/src/components/layout/dashboard-header.tsx +0 -139
  86. package/templates/latest/src/components/layout/dashboard-layout.tsx +0 -37
  87. package/templates/latest/src/components/layout/navbar.tsx +0 -106
  88. package/templates/latest/src/components/layout/sidebar.tsx +0 -55
  89. package/templates/latest/src/components/page/dashboard/DashboardMetrics.tsx +0 -97
  90. package/templates/latest/src/components/page/dashboard/PaymentMethodsAnalysis.tsx +0 -182
  91. package/templates/latest/src/components/page/dashboard/RevenueAnalytics.tsx +0 -505
  92. package/templates/latest/src/components/page/dashboard/SalesAnalytics.tsx +0 -313
  93. package/templates/latest/src/components/page/dashboard/TransactionsTable.tsx +0 -256
  94. package/templates/latest/src/components/page/dashboard/dashboard-utils.ts +0 -147
  95. package/templates/latest/src/components/page/dashboard/dashboard.tsx +0 -185
  96. package/templates/latest/src/components/tables/data-grid.tsx +0 -439
  97. package/templates/latest/src/components/ui/alert.tsx +0 -59
  98. package/templates/latest/src/components/ui/avatar.tsx +0 -50
  99. package/templates/latest/src/components/ui/badge.tsx +0 -36
  100. package/templates/latest/src/components/ui/bluecopa-logo.tsx +0 -57
  101. package/templates/latest/src/components/ui/button.tsx +0 -58
  102. package/templates/latest/src/components/ui/card.tsx +0 -79
  103. package/templates/latest/src/components/ui/dropdown-menu.tsx +0 -200
  104. package/templates/latest/src/components/ui/input.tsx +0 -24
  105. package/templates/latest/src/components/ui/label.tsx +0 -21
  106. package/templates/latest/src/components/ui/select.tsx +0 -27
  107. package/templates/latest/src/hooks/use-api.ts +0 -55
  108. package/templates/latest/src/index.css +0 -59
  109. package/templates/latest/src/main.tsx +0 -13
  110. package/templates/latest/src/pages/Dashboard.tsx +0 -13
  111. package/templates/latest/src/pages/Home.tsx +0 -622
  112. package/templates/latest/src/providers/query-provider.tsx +0 -48
  113. package/templates/latest/src/types/api.ts +0 -78
  114. package/templates/latest/src/vite-env.d.ts +0 -11
  115. package/templates/latest/tailwind.config.js +0 -87
  116. package/templates/latest/tsconfig.app.json +0 -32
  117. package/templates/latest/tsconfig.node.json +0 -14
@@ -0,0 +1,60 @@
1
+ System.register(['./__federation_fn_import-CzfA7kmP.js', './client-DgSav55y.js'], (function (exports, module) {
2
+ 'use strict';
3
+ var importShared, ReactDOM, jsxRuntimeExports, BrowserRouter, App;
4
+ return {
5
+ setters: [module => {
6
+ importShared = module.importShared;
7
+ }, module => {
8
+ ReactDOM = module.R;
9
+ jsxRuntimeExports = module.j;
10
+ BrowserRouter = module.B;
11
+ App = module.A;
12
+ }],
13
+ execute: (async function () {
14
+
15
+ false &&(function polyfill() {
16
+ const relList = document.createElement("link").relList;
17
+ if (relList && relList.supports && relList.supports("modulepreload")) {
18
+ return;
19
+ }
20
+ for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
21
+ processPreload(link);
22
+ }
23
+ new MutationObserver((mutations) => {
24
+ for (const mutation of mutations) {
25
+ if (mutation.type !== "childList") {
26
+ continue;
27
+ }
28
+ for (const node of mutation.addedNodes) {
29
+ if (node.tagName === "LINK" && node.rel === "modulepreload")
30
+ processPreload(node);
31
+ }
32
+ }
33
+ }).observe(document, { childList: true, subtree: true });
34
+ function getFetchOpts(link) {
35
+ const fetchOpts = {};
36
+ if (link.integrity) fetchOpts.integrity = link.integrity;
37
+ if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
38
+ if (link.crossOrigin === "use-credentials")
39
+ fetchOpts.credentials = "include";
40
+ else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
41
+ else fetchOpts.credentials = "same-origin";
42
+ return fetchOpts;
43
+ }
44
+ function processPreload(link) {
45
+ if (link.ep)
46
+ return;
47
+ link.ep = true;
48
+ const fetchOpts = getFetchOpts(link);
49
+ fetch(link.href, fetchOpts);
50
+ }
51
+ }());
52
+
53
+ const React = await importShared('react');
54
+ ReactDOM.createRoot(document.getElementById("root")).render(
55
+ /* @__PURE__ */ jsxRuntimeExports.jsx(React.StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserRouter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(App, {}) }) })
56
+ );
57
+
58
+ })
59
+ };
60
+ }));
@@ -0,0 +1,88 @@
1
+ System.register([], (function (exports, module) {
2
+ 'use strict';
3
+ return {
4
+ execute: (function () {
5
+
6
+ const currentImports = {};
7
+ const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
8
+ let moduleMap = {
9
+ "./App":()=>{
10
+ dynamicLoadingCss(["style-36A39bNN.css"], false, './App');
11
+ return __federation_import('./__federation_expose_App-DRwKKpS2.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
12
+ const seen = {};
13
+ const dynamicLoadingCss = exports("dynamicLoadingCss", (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
14
+ const metaUrl = module.meta.url;
15
+ if (typeof metaUrl === 'undefined') {
16
+ console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');
17
+ return;
18
+ }
19
+
20
+ const curUrl = metaUrl.substring(0, metaUrl.lastIndexOf('remoteEntry.js'));
21
+ const base = '/';
22
+ 'assets';
23
+
24
+ cssFilePaths.forEach(cssPath => {
25
+ let href = '';
26
+ const baseUrl = base || curUrl;
27
+ if (baseUrl) {
28
+ const trimmer = {
29
+ trailing: (path) => (path.endsWith('/') ? path.slice(0, -1) : path),
30
+ leading: (path) => (path.startsWith('/') ? path.slice(1) : path)
31
+ };
32
+ const isAbsoluteUrl = (url) => url.startsWith('http') || url.startsWith('//');
33
+
34
+ const cleanBaseUrl = trimmer.trailing(baseUrl);
35
+ const cleanCssPath = trimmer.leading(cssPath);
36
+ const cleanCurUrl = trimmer.trailing(curUrl);
37
+
38
+ if (isAbsoluteUrl(baseUrl)) {
39
+ href = [cleanBaseUrl, cleanCssPath].filter(Boolean).join('/');
40
+ } else {
41
+ if (cleanCurUrl.includes(cleanBaseUrl)) {
42
+ href = [cleanCurUrl, cleanCssPath].filter(Boolean).join('/');
43
+ } else {
44
+ href = [cleanCurUrl + cleanBaseUrl, cleanCssPath].filter(Boolean).join('/');
45
+ }
46
+ }
47
+ } else {
48
+ href = cssPath;
49
+ }
50
+
51
+ if (dontAppendStylesToHead) {
52
+ const key = 'css____copa_ext_app__react_route__' + exposeItemName;
53
+ window[key] = window[key] || [];
54
+ window[key].push(href);
55
+ return;
56
+ }
57
+
58
+ if (href in seen) return;
59
+ seen[href] = true;
60
+
61
+ const element = document.createElement('link');
62
+ element.rel = 'stylesheet';
63
+ element.href = href;
64
+ document.head.appendChild(element);
65
+ });
66
+ });
67
+ async function __federation_import(name) {
68
+ currentImports[name] ??= module.import(name);
69
+ return currentImports[name]
70
+ } const get =exports("get", (module) => {
71
+ if(!moduleMap[module]) throw new Error('Can not find remote module ' + module)
72
+ return moduleMap[module]();
73
+ });
74
+ const init =exports("init", (shareScope) => {
75
+ globalThis.__federation_shared__= globalThis.__federation_shared__|| {};
76
+ Object.entries(shareScope).forEach(([key, value]) => {
77
+ for (const [versionKey, versionValue] of Object.entries(value)) {
78
+ const scope = versionValue.scope || 'default';
79
+ globalThis.__federation_shared__[scope] = globalThis.__federation_shared__[scope] || {};
80
+ const shared= globalThis.__federation_shared__[scope];
81
+ (shared[key] = shared[key]||{})[versionKey] = versionValue;
82
+ }
83
+ });
84
+ });
85
+
86
+ })
87
+ };
88
+ }));