create-bluecopa-react-app 1.0.5 → 1.0.7

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 +5 -5
  48. package/templates/latest/components.json +22 -0
  49. package/templates/latest/dist/assets/__federation_expose_App-DsPovvoo.js +147 -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-BZh_TW_6.js +12662 -0
  54. package/templates/latest/dist/assets/home-CAuoIW4B.js +54951 -0
  55. package/templates/latest/dist/assets/index-BzNimew1.js +69 -0
  56. package/templates/latest/dist/assets/index-Clg7n7gy.js +60 -0
  57. package/templates/latest/dist/assets/index-DMFtQdNS.js +412 -0
  58. package/templates/latest/dist/assets/remoteEntry.css +3688 -0
  59. package/templates/latest/dist/assets/remoteEntry.js +88 -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 +47 -40
  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,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(["remoteEntry.css"], false, './App');
11
+ return __federation_import('./__federation_expose_App-DsPovvoo.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
+ }));
@@ -0,0 +1,6 @@
1
+ <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="100" height="100" fill="#e5e7eb"/>
3
+ <circle cx="50" cy="40" r="20" fill="#9ca3af"/>
4
+ <path d="M20 80 Q50 60 80 80 L80 100 L20 100 Z" fill="#9ca3af"/>
5
+ <text x="50" y="95" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" fill="#6b7280">shadcn</text>
6
+ </svg>
@@ -0,0 +1,19 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Bluecopa - AI-powered Finance Automation</title>
8
+ <meta name="description" content="AI-powered close automation for modern finance teams. Streamline your order-to-cash, procure-to-pay, and record-to-report processes." />
9
+ <script type="module" crossorigin src="/assets/index-Clg7n7gy.js"></script>
10
+ <link rel="modulepreload" crossorigin href="/assets/__federation_fn_import-CzfA7kmP.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/index-BzNimew1.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/index-DMFtQdNS.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/client-BZh_TW_6.js">
14
+ <link rel="stylesheet" crossorigin href="/assets/remoteEntry.css">
15
+ </head>
16
+ <body>
17
+ <div id="root"></div>
18
+ </body>
19
+ </html>
@@ -9,6 +9,6 @@
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
12
- <script type="module" src="/src/main.tsx"></script>
12
+ <script type="module" src="/app/main.tsx"></script>
13
13
  </body>
14
14
  </html>