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.
- package/README.md +47 -10
- package/bin/create-bluecopa-react-app.js +257 -51
- package/package.json +6 -5
- package/templates/latest/Agent.md +254 -0
- package/templates/latest/Dockerfile +22 -0
- package/templates/latest/README.md +157 -221
- package/templates/latest/app/app.css +134 -0
- package/templates/latest/app/app.tsx +46 -0
- package/templates/latest/app/components/app-sidebar.tsx +174 -0
- package/templates/latest/app/components/chart-area-interactive.tsx +290 -0
- package/templates/latest/app/components/data-table.tsx +807 -0
- package/templates/latest/app/components/nav-documents.tsx +92 -0
- package/templates/latest/app/components/nav-main.tsx +56 -0
- package/templates/latest/app/components/nav-secondary.tsx +42 -0
- package/templates/latest/app/components/nav-user.tsx +112 -0
- package/templates/latest/app/components/section-cards.tsx +102 -0
- package/templates/latest/app/components/site-header.tsx +19 -0
- package/templates/latest/app/components/ui/avatar.tsx +53 -0
- package/templates/latest/app/components/ui/badge.tsx +46 -0
- package/templates/latest/app/components/ui/breadcrumb.tsx +109 -0
- package/templates/latest/app/components/ui/button.tsx +58 -0
- package/templates/latest/app/components/ui/card.tsx +92 -0
- package/templates/latest/app/components/ui/chart.tsx +352 -0
- package/templates/latest/app/components/ui/checkbox.tsx +30 -0
- package/templates/latest/app/components/ui/drawer.tsx +139 -0
- package/templates/latest/app/components/ui/dropdown-menu.tsx +258 -0
- package/templates/latest/app/components/ui/input.tsx +21 -0
- package/templates/latest/app/components/ui/label.tsx +24 -0
- package/templates/latest/app/components/ui/select.tsx +183 -0
- package/templates/latest/app/components/ui/separator.tsx +26 -0
- package/templates/latest/app/components/ui/sheet.tsx +139 -0
- package/templates/latest/app/components/ui/sidebar.tsx +731 -0
- package/templates/latest/app/components/ui/skeleton.tsx +13 -0
- package/templates/latest/app/components/ui/sonner.tsx +23 -0
- package/templates/latest/app/components/ui/table.tsx +117 -0
- package/templates/latest/app/components/ui/tabs.tsx +66 -0
- package/templates/latest/app/components/ui/toggle-group.tsx +73 -0
- package/templates/latest/app/components/ui/toggle.tsx +47 -0
- package/templates/latest/app/components/ui/tooltip.tsx +59 -0
- package/templates/latest/app/dashboard/data.json +614 -0
- package/templates/latest/app/hooks/use-bluecopa-user.ts +37 -0
- package/templates/latest/app/hooks/use-mobile.ts +19 -0
- package/templates/latest/{src → app}/lib/utils.ts +1 -1
- package/templates/latest/app/main.tsx +12 -0
- package/templates/latest/app/routes/home.tsx +40 -0
- package/templates/latest/app/routes.tsx +15 -0
- package/templates/latest/{src → app}/single-spa.tsx +5 -5
- package/templates/latest/components.json +22 -0
- package/templates/latest/dist/assets/__federation_expose_App-DsPovvoo.js +147 -0
- package/templates/latest/dist/assets/__federation_fn_import-CzfA7kmP.js +438 -0
- package/templates/latest/dist/assets/__federation_shared_react-Bp6HVBS4.js +16 -0
- package/templates/latest/dist/assets/__federation_shared_react-dom-BCcRGiYp.js +17 -0
- package/templates/latest/dist/assets/client-BZh_TW_6.js +12662 -0
- package/templates/latest/dist/assets/home-CAuoIW4B.js +54951 -0
- package/templates/latest/dist/assets/index-BzNimew1.js +69 -0
- package/templates/latest/dist/assets/index-Clg7n7gy.js +60 -0
- package/templates/latest/dist/assets/index-DMFtQdNS.js +412 -0
- package/templates/latest/dist/assets/remoteEntry.css +3688 -0
- package/templates/latest/dist/assets/remoteEntry.js +88 -0
- package/templates/latest/dist/avatars/shadcn.svg +6 -0
- package/templates/latest/dist/favicon.ico +0 -0
- package/templates/latest/dist/index.html +19 -0
- package/templates/latest/index.html +1 -1
- package/templates/latest/package-lock.json +1227 -3353
- package/templates/latest/package.json +47 -43
- package/templates/latest/pnpm-lock.yaml +4767 -0
- package/templates/latest/preview/index.html +32 -2
- package/templates/latest/public/avatars/shadcn.svg +6 -0
- package/templates/latest/public/favicon.ico +0 -0
- package/templates/latest/tsconfig.json +19 -12
- package/templates/latest/vite.config.ts +47 -40
- package/templates/latest/.env.example +0 -14
- package/templates/latest/.eslintrc.cjs +0 -42
- package/templates/latest/AGENT.md +0 -282
- package/templates/latest/clean.sh +0 -40
- package/templates/latest/postcss.config.cjs +0 -6
- package/templates/latest/public/bluecopa-logo.svg +0 -30
- package/templates/latest/public/favicon-32x32.png +0 -0
- package/templates/latest/public/favicon-96x96.png +0 -0
- package/templates/latest/setup.sh +0 -56
- package/templates/latest/src/App.tsx +0 -19
- package/templates/latest/src/components/charts/AreaChart.tsx +0 -80
- package/templates/latest/src/components/charts/DonutChart.tsx +0 -73
- package/templates/latest/src/components/charts/SparkAreaChart.tsx +0 -52
- package/templates/latest/src/components/layout/dashboard-header.tsx +0 -139
- package/templates/latest/src/components/layout/dashboard-layout.tsx +0 -37
- package/templates/latest/src/components/layout/navbar.tsx +0 -106
- package/templates/latest/src/components/layout/sidebar.tsx +0 -55
- package/templates/latest/src/components/page/dashboard/DashboardMetrics.tsx +0 -97
- package/templates/latest/src/components/page/dashboard/PaymentMethodsAnalysis.tsx +0 -182
- package/templates/latest/src/components/page/dashboard/RevenueAnalytics.tsx +0 -505
- package/templates/latest/src/components/page/dashboard/SalesAnalytics.tsx +0 -313
- package/templates/latest/src/components/page/dashboard/TransactionsTable.tsx +0 -256
- package/templates/latest/src/components/page/dashboard/dashboard-utils.ts +0 -147
- package/templates/latest/src/components/page/dashboard/dashboard.tsx +0 -185
- package/templates/latest/src/components/tables/data-grid.tsx +0 -439
- package/templates/latest/src/components/ui/alert.tsx +0 -59
- package/templates/latest/src/components/ui/avatar.tsx +0 -50
- package/templates/latest/src/components/ui/badge.tsx +0 -36
- package/templates/latest/src/components/ui/bluecopa-logo.tsx +0 -57
- package/templates/latest/src/components/ui/button.tsx +0 -58
- package/templates/latest/src/components/ui/card.tsx +0 -79
- package/templates/latest/src/components/ui/dropdown-menu.tsx +0 -200
- package/templates/latest/src/components/ui/input.tsx +0 -24
- package/templates/latest/src/components/ui/label.tsx +0 -21
- package/templates/latest/src/components/ui/select.tsx +0 -27
- package/templates/latest/src/hooks/use-api.ts +0 -55
- package/templates/latest/src/index.css +0 -59
- package/templates/latest/src/main.tsx +0 -13
- package/templates/latest/src/pages/Dashboard.tsx +0 -13
- package/templates/latest/src/pages/Home.tsx +0 -622
- package/templates/latest/src/providers/query-provider.tsx +0 -48
- package/templates/latest/src/types/api.ts +0 -78
- package/templates/latest/src/vite-env.d.ts +0 -11
- package/templates/latest/tailwind.config.js +0 -87
- package/templates/latest/tsconfig.app.json +0 -32
- 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>
|
|
Binary file
|
|
@@ -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>
|