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.
Files changed (60) hide show
  1. package/README.md +3 -4
  2. package/frontend/components.json +25 -0
  3. package/frontend/eslint.config.js +23 -0
  4. package/frontend/index.html +14 -0
  5. package/frontend/package-lock.json +8214 -0
  6. package/frontend/package.json +49 -0
  7. package/frontend/postcss.config.js +6 -0
  8. package/frontend/public/vite.svg +1 -0
  9. package/frontend/src/App.css +42 -0
  10. package/frontend/src/App.tsx +47 -0
  11. package/frontend/src/assets/react.svg +1 -0
  12. package/frontend/src/components/FilePreviewDialog.tsx +92 -0
  13. package/frontend/src/components/ui/avatar.tsx +107 -0
  14. package/frontend/src/components/ui/badge.tsx +52 -0
  15. package/frontend/src/components/ui/button.tsx +58 -0
  16. package/frontend/src/components/ui/card.tsx +103 -0
  17. package/frontend/src/components/ui/checkbox.tsx +29 -0
  18. package/frontend/src/components/ui/dialog.tsx +173 -0
  19. package/frontend/src/components/ui/dropdown-menu.tsx +271 -0
  20. package/frontend/src/components/ui/input.tsx +20 -0
  21. package/frontend/src/components/ui/label.tsx +20 -0
  22. package/frontend/src/components/ui/popover.tsx +88 -0
  23. package/frontend/src/components/ui/select.tsx +199 -0
  24. package/frontend/src/components/ui/sheet.tsx +135 -0
  25. package/frontend/src/components/ui/skeleton.tsx +13 -0
  26. package/frontend/src/components/ui/sonner.tsx +49 -0
  27. package/frontend/src/components/ui/switch.tsx +30 -0
  28. package/frontend/src/components/ui/table.tsx +114 -0
  29. package/frontend/src/components/ui/tabs.tsx +82 -0
  30. package/frontend/src/components/ui/textarea.tsx +18 -0
  31. package/frontend/src/contexts/AuthContext.tsx +78 -0
  32. package/frontend/src/hooks/useBank.ts +70 -0
  33. package/frontend/src/hooks/useContacts.ts +171 -0
  34. package/frontend/src/hooks/useDashboard.ts +32 -0
  35. package/frontend/src/hooks/useExpenses.ts +49 -0
  36. package/frontend/src/hooks/useSales.ts +22 -0
  37. package/frontend/src/hooks/useSettings.ts +138 -0
  38. package/frontend/src/index.css +117 -0
  39. package/frontend/src/layouts/ProtectedLayout.tsx +127 -0
  40. package/frontend/src/lib/api.ts +16 -0
  41. package/frontend/src/lib/date.ts +10 -0
  42. package/frontend/src/lib/imageCompress.ts +28 -0
  43. package/frontend/src/lib/utils.ts +6 -0
  44. package/frontend/src/main.tsx +10 -0
  45. package/frontend/src/pages/Bank.tsx +558 -0
  46. package/frontend/src/pages/Contacts.tsx +388 -0
  47. package/frontend/src/pages/Dashboard.tsx +171 -0
  48. package/frontend/src/pages/Expenses.tsx +899 -0
  49. package/frontend/src/pages/Login.tsx +103 -0
  50. package/frontend/src/pages/Reconciliation.tsx +633 -0
  51. package/frontend/src/pages/Sales.tsx +489 -0
  52. package/frontend/src/pages/Settings.tsx +645 -0
  53. package/frontend/tailwind.config.js +60 -0
  54. package/frontend/tsconfig.app.json +34 -0
  55. package/frontend/tsconfig.json +15 -0
  56. package/frontend/tsconfig.node.json +26 -0
  57. package/frontend/vite.config.ts +21 -0
  58. package/package.json +2 -2
  59. package/server/Dockerfile +9 -3
  60. 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. Build the frontend so the package ships a pre-built `frontend/dist`: run `npm run build` in the `frontend/` directory, then ensure `frontend/dist` is listed in `package.json` `files`.
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. Update `repository.url` in `package.json` to your real Git URL before publishing.
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>