create-bluecopa-react-app 1.0.4 → 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.
- 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 +38 -28
- package/templates/latest/components.json +22 -0
- package/templates/latest/dist/assets/__federation_expose_App-DRwKKpS2.js +91 -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-DgSav55y.js +12658 -0
- package/templates/latest/dist/assets/home-DOL6GrYV.js +54951 -0
- package/templates/latest/dist/assets/index-BzNimew1.js +69 -0
- package/templates/latest/dist/assets/index-DMFtQdNS.js +412 -0
- package/templates/latest/dist/assets/index-DdYpcDMk.js +60 -0
- package/templates/latest/dist/assets/remoteEntry.js +88 -0
- package/templates/latest/dist/assets/style-36A39bNN.css +3683 -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 +18 -11
- package/templates/latest/vite.config.ts +41 -41
- package/templates/latest/.env.example +0 -14
- package/templates/latest/.eslintrc.cjs +0 -42
- package/templates/latest/AGENT.md +0 -284
- package/templates/latest/clean.sh +0 -39
- 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 -55
- package/templates/latest/src/App.tsx +0 -15
- package/templates/latest/src/components/layout/dashboard-header.tsx +0 -139
- package/templates/latest/src/components/layout/dashboard-layout.tsx +0 -29
- package/templates/latest/src/components/layout/sidebar.tsx +0 -54
- package/templates/latest/src/components/page/dashboard.tsx +0 -1506
- package/templates/latest/src/components/page/navbar.tsx +0 -104
- 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 -54
- 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 -23
- package/templates/latest/src/components/ui/select.tsx +0 -29
- 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 -88
- package/templates/latest/tsconfig.app.json +0 -26
- package/templates/latest/tsconfig.node.json +0 -10
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// API Types
|
|
2
|
-
export interface MetricData {
|
|
3
|
-
TotalAmount: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface ApiMetricResponse {
|
|
7
|
-
data: MetricData[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface DatasetSchema {
|
|
11
|
-
name: string;
|
|
12
|
-
data_type: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface TransactionData {
|
|
16
|
-
transaction_id: string;
|
|
17
|
-
transaction_day: string;
|
|
18
|
-
payment_end: string;
|
|
19
|
-
city_id: string;
|
|
20
|
-
city: string;
|
|
21
|
-
state: string;
|
|
22
|
-
product_id: string;
|
|
23
|
-
category: string;
|
|
24
|
-
sub_categories: string;
|
|
25
|
-
quantity: number;
|
|
26
|
-
unit_price: number;
|
|
27
|
-
total_amount: number;
|
|
28
|
-
is_online: boolean;
|
|
29
|
-
payment_method: string;
|
|
30
|
-
is_weekend: boolean;
|
|
31
|
-
is_holiday: boolean;
|
|
32
|
-
is_working_day: boolean;
|
|
33
|
-
channel: string;
|
|
34
|
-
delivery_partner: string | null;
|
|
35
|
-
copa_uploaded_at: string;
|
|
36
|
-
copa_source_name: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ApiDatasetResponse {
|
|
40
|
-
data: {
|
|
41
|
-
schema: DatasetSchema[];
|
|
42
|
-
data: TransactionData[];
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface User {
|
|
47
|
-
email: string;
|
|
48
|
-
firstName: string;
|
|
49
|
-
lastName: string;
|
|
50
|
-
externalId: string;
|
|
51
|
-
metadata: Record<string, any>;
|
|
52
|
-
organizationExternalId: string;
|
|
53
|
-
active: boolean;
|
|
54
|
-
createdBy: string | null;
|
|
55
|
-
createdDate: string | null;
|
|
56
|
-
lastModifiedBy: string | null;
|
|
57
|
-
lastModifiedDate: string | null;
|
|
58
|
-
id: string;
|
|
59
|
-
entityVersion: number;
|
|
60
|
-
organizationId: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface Organization {
|
|
64
|
-
name: string;
|
|
65
|
-
externalId: string;
|
|
66
|
-
active: boolean;
|
|
67
|
-
createdBy: string | null;
|
|
68
|
-
createdDate: string | null;
|
|
69
|
-
lastModifiedBy: string | null;
|
|
70
|
-
lastModifiedDate: string | null;
|
|
71
|
-
id: string;
|
|
72
|
-
entityVersion: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface ApiUserResponse {
|
|
76
|
-
user: User;
|
|
77
|
-
organization: Organization;
|
|
78
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_BLUECOPA_API_TOKEN: string
|
|
5
|
-
readonly VITE_BLUECOPA_API_URL: string
|
|
6
|
-
readonly VITE_BLUECOPA_WORKSPACE_ID: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ImportMeta {
|
|
10
|
-
readonly env: ImportMetaEnv
|
|
11
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
darkMode: ["class"],
|
|
4
|
-
content: [
|
|
5
|
-
'./src/**/*.{ts,tsx}',
|
|
6
|
-
'./node_modules/@tremor/**/*.{js,ts,jsx,tsx}',
|
|
7
|
-
],
|
|
8
|
-
prefix: "",
|
|
9
|
-
theme: {
|
|
10
|
-
container: {
|
|
11
|
-
center: true,
|
|
12
|
-
padding: "2rem",
|
|
13
|
-
screens: {
|
|
14
|
-
"2xl": "1400px",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
extend: {
|
|
18
|
-
colors: {
|
|
19
|
-
border: "hsl(var(--border))",
|
|
20
|
-
input: "hsl(var(--input))",
|
|
21
|
-
ring: "hsl(var(--ring))",
|
|
22
|
-
background: "hsl(var(--background))",
|
|
23
|
-
foreground: "hsl(var(--foreground))",
|
|
24
|
-
primary: {
|
|
25
|
-
DEFAULT: "hsl(var(--primary))",
|
|
26
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
27
|
-
},
|
|
28
|
-
secondary: {
|
|
29
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
30
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
31
|
-
},
|
|
32
|
-
destructive: {
|
|
33
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
34
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
35
|
-
},
|
|
36
|
-
muted: {
|
|
37
|
-
DEFAULT: "hsl(var(--muted))",
|
|
38
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
39
|
-
},
|
|
40
|
-
accent: {
|
|
41
|
-
DEFAULT: "hsl(var(--accent))",
|
|
42
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
43
|
-
},
|
|
44
|
-
popover: {
|
|
45
|
-
DEFAULT: "hsl(var(--popover))",
|
|
46
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
47
|
-
},
|
|
48
|
-
card: {
|
|
49
|
-
DEFAULT: "hsl(var(--card))",
|
|
50
|
-
foreground: "hsl(var(--card-foreground))",
|
|
51
|
-
},
|
|
52
|
-
// Bluecopa brand colors
|
|
53
|
-
bluecopa: {
|
|
54
|
-
50: '#eff6ff',
|
|
55
|
-
100: '#dbeafe',
|
|
56
|
-
200: '#bfdbfe',
|
|
57
|
-
300: '#93c5fd',
|
|
58
|
-
400: '#60a5fa',
|
|
59
|
-
500: '#3b82f6',
|
|
60
|
-
600: '#2563eb',
|
|
61
|
-
700: '#1d4ed8',
|
|
62
|
-
800: '#1e40af',
|
|
63
|
-
900: '#1e3a8a',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
borderRadius: {
|
|
67
|
-
lg: "var(--radius)",
|
|
68
|
-
md: "calc(var(--radius) - 2px)",
|
|
69
|
-
sm: "calc(var(--radius) - 4px)",
|
|
70
|
-
},
|
|
71
|
-
keyframes: {
|
|
72
|
-
"accordion-down": {
|
|
73
|
-
from: { height: "0" },
|
|
74
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
75
|
-
},
|
|
76
|
-
"accordion-up": {
|
|
77
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
78
|
-
to: { height: "0" },
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
animation: {
|
|
82
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
83
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
plugins: [require("tailwindcss-animate")],
|
|
88
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true,
|
|
22
|
-
"noImplicitAny": false,
|
|
23
|
-
"strictNullChecks": false
|
|
24
|
-
},
|
|
25
|
-
"include": ["src"]
|
|
26
|
-
}
|