el-contador 1.2.3 → 1.2.4
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 +3 -4
- package/frontend/components.json +25 -0
- package/frontend/eslint.config.js +23 -0
- package/frontend/index.html +14 -0
- package/frontend/package-lock.json +8214 -0
- package/frontend/package.json +49 -0
- package/frontend/postcss.config.js +6 -0
- package/frontend/public/vite.svg +1 -0
- package/frontend/src/App.css +42 -0
- package/frontend/src/App.tsx +47 -0
- package/frontend/src/assets/react.svg +1 -0
- package/frontend/src/components/FilePreviewDialog.tsx +92 -0
- package/frontend/src/components/ui/avatar.tsx +107 -0
- package/frontend/src/components/ui/badge.tsx +52 -0
- package/frontend/src/components/ui/button.tsx +58 -0
- package/frontend/src/components/ui/card.tsx +103 -0
- package/frontend/src/components/ui/checkbox.tsx +29 -0
- package/frontend/src/components/ui/dialog.tsx +173 -0
- package/frontend/src/components/ui/dropdown-menu.tsx +271 -0
- package/frontend/src/components/ui/input.tsx +20 -0
- package/frontend/src/components/ui/label.tsx +20 -0
- package/frontend/src/components/ui/popover.tsx +88 -0
- package/frontend/src/components/ui/select.tsx +199 -0
- package/frontend/src/components/ui/sheet.tsx +135 -0
- package/frontend/src/components/ui/skeleton.tsx +13 -0
- package/frontend/src/components/ui/sonner.tsx +49 -0
- package/frontend/src/components/ui/switch.tsx +30 -0
- package/frontend/src/components/ui/table.tsx +114 -0
- package/frontend/src/components/ui/tabs.tsx +82 -0
- package/frontend/src/components/ui/textarea.tsx +18 -0
- package/frontend/src/contexts/AuthContext.tsx +78 -0
- package/frontend/src/hooks/useBank.ts +70 -0
- package/frontend/src/hooks/useContacts.ts +171 -0
- package/frontend/src/hooks/useDashboard.ts +32 -0
- package/frontend/src/hooks/useExpenses.ts +49 -0
- package/frontend/src/hooks/useSales.ts +22 -0
- package/frontend/src/hooks/useSettings.ts +138 -0
- package/frontend/src/index.css +117 -0
- package/frontend/src/layouts/ProtectedLayout.tsx +127 -0
- package/frontend/src/lib/api.ts +16 -0
- package/frontend/src/lib/date.ts +10 -0
- package/frontend/src/lib/imageCompress.ts +28 -0
- package/frontend/src/lib/utils.ts +6 -0
- package/frontend/src/main.tsx +10 -0
- package/frontend/src/pages/Bank.tsx +558 -0
- package/frontend/src/pages/Contacts.tsx +388 -0
- package/frontend/src/pages/Dashboard.tsx +171 -0
- package/frontend/src/pages/Expenses.tsx +899 -0
- package/frontend/src/pages/Login.tsx +103 -0
- package/frontend/src/pages/Reconciliation.tsx +633 -0
- package/frontend/src/pages/Sales.tsx +489 -0
- package/frontend/src/pages/Settings.tsx +645 -0
- package/frontend/tailwind.config.js +60 -0
- package/frontend/tsconfig.app.json +34 -0
- package/frontend/tsconfig.json +15 -0
- package/frontend/tsconfig.node.json +26 -0
- package/frontend/vite.config.ts +21 -0
- package/package.json +2 -2
- package/server/Dockerfile +9 -3
- package/server/package.json +1 -1
package/README.md
CHANGED
|
@@ -127,11 +127,10 @@ On Ubuntu: `sudo apt install docker-compose-plugin` (V2) or the standalone `dock
|
|
|
127
127
|
|
|
128
128
|
1. Create an npm account at [npmjs.com/signup](https://www.npmjs.com/signup) if needed.
|
|
129
129
|
2. Log in from the package root: `npm login` (username, password, email; OTP if 2FA is enabled).
|
|
130
|
-
3.
|
|
130
|
+
3. Update `repository.url` in `package.json` to your real Git URL before publishing.
|
|
131
131
|
4. From this directory (the package root): `npm publish --access public`.
|
|
132
|
-
`--access public` is required for unscoped packages.
|
|
133
|
-
5.
|
|
134
|
-
6. For later releases: bump `version` in both **package.json** (root) and **server/package.json** so the backend log shows the correct release (e.g. `el-contador-server@1.0.7`), then build frontend and `npm publish` from the package root.
|
|
132
|
+
`--access public` is required for unscoped packages. The package includes the full `frontend/` source; the Docker image builds it at build time.
|
|
133
|
+
5. For later releases: bump `version` in both **package.json** (root) and **server/package.json** so the backend log shows the correct release (e.g. `el-contador-server@1.0.7`), then `npm publish` from the package root.
|
|
135
134
|
|
|
136
135
|
## License
|
|
137
136
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "base-nova",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "tailwind.config.js",
|
|
8
|
+
"css": "src/index.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"iconLibrary": "lucide",
|
|
14
|
+
"rtl": false,
|
|
15
|
+
"aliases": {
|
|
16
|
+
"components": "@/components",
|
|
17
|
+
"utils": "@/lib/utils",
|
|
18
|
+
"ui": "@/components/ui",
|
|
19
|
+
"lib": "@/lib",
|
|
20
|
+
"hooks": "@/hooks"
|
|
21
|
+
},
|
|
22
|
+
"menuColor": "default",
|
|
23
|
+
"menuAccent": "subtle",
|
|
24
|
+
"registries": {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
+
import tseslint from 'typescript-eslint'
|
|
6
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist']),
|
|
10
|
+
{
|
|
11
|
+
files: ['**/*.{ts,tsx}'],
|
|
12
|
+
extends: [
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
tseslint.configs.recommended,
|
|
15
|
+
reactHooks.configs.flat.recommended,
|
|
16
|
+
reactRefresh.configs.vite,
|
|
17
|
+
],
|
|
18
|
+
languageOptions: {
|
|
19
|
+
ecmaVersion: 2020,
|
|
20
|
+
globals: globals.browser,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
])
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/png" href="/api/public/favicon" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>frontend</title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|