@almadar/orb 5.1.2 → 5.2.1

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 (54) hide show
  1. package/README.md +57 -19
  2. package/bin/{almadar → orb} +30 -24
  3. package/package.json +9 -9
  4. package/scripts/postinstall.js +25 -15
  5. package/shells/almadar-shell/package.json +1 -1
  6. package/shells/almadar-shell/packages/client/package.json +4 -4
  7. package/shells/almadar-shell/packages/server/package.json +1 -1
  8. package/shells/almadar-shell/pnpm-lock.yaml +53 -40
  9. package/shells/almadar-shell-hono/LICENSE +72 -0
  10. package/shells/almadar-shell-hono/README.md +25 -0
  11. package/shells/almadar-shell-hono/locales/en.json +120 -0
  12. package/shells/almadar-shell-hono/package.json +31 -0
  13. package/shells/almadar-shell-hono/packages/client/eslint.config.cjs +23 -0
  14. package/shells/almadar-shell-hono/packages/client/index.html +13 -0
  15. package/shells/almadar-shell-hono/packages/client/package-lock.json +9750 -0
  16. package/shells/almadar-shell-hono/packages/client/package.json +61 -0
  17. package/shells/almadar-shell-hono/packages/client/postcss.config.js +6 -0
  18. package/shells/almadar-shell-hono/packages/client/src/App.tsx +84 -0
  19. package/shells/almadar-shell-hono/packages/client/src/config/firebase.ts +37 -0
  20. package/shells/almadar-shell-hono/packages/client/src/features/auth/AuthContext.tsx +139 -0
  21. package/shells/almadar-shell-hono/packages/client/src/features/auth/authService.ts +83 -0
  22. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/Login.tsx +218 -0
  23. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/ProtectedRoute.tsx +27 -0
  24. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/UserProfile.tsx +68 -0
  25. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/index.ts +3 -0
  26. package/shells/almadar-shell-hono/packages/client/src/features/auth/index.ts +13 -0
  27. package/shells/almadar-shell-hono/packages/client/src/features/auth/types.ts +24 -0
  28. package/shells/almadar-shell-hono/packages/client/src/index.css +35 -0
  29. package/shells/almadar-shell-hono/packages/client/src/main.tsx +8 -0
  30. package/shells/almadar-shell-hono/packages/client/src/navigation/index.ts +55 -0
  31. package/shells/almadar-shell-hono/packages/client/src/pages/index.ts +12 -0
  32. package/shells/almadar-shell-hono/packages/client/tailwind-preset.cjs +259 -0
  33. package/shells/almadar-shell-hono/packages/client/tailwind.config.js +21 -0
  34. package/shells/almadar-shell-hono/packages/client/tsconfig.json +33 -0
  35. package/shells/almadar-shell-hono/packages/client/vite.config.ts +50 -0
  36. package/shells/almadar-shell-hono/packages/server/eslint.config.cjs +19 -0
  37. package/shells/almadar-shell-hono/packages/server/package.json +37 -0
  38. package/shells/almadar-shell-hono/packages/server/src/app.ts +31 -0
  39. package/shells/almadar-shell-hono/packages/server/src/index.ts +31 -0
  40. package/shells/almadar-shell-hono/packages/server/src/routes.ts +12 -0
  41. package/shells/almadar-shell-hono/packages/server/src/serve.ts +45 -0
  42. package/shells/almadar-shell-hono/packages/server/tsconfig.json +23 -0
  43. package/shells/almadar-shell-hono/packages/shared/package.json +25 -0
  44. package/shells/almadar-shell-hono/packages/shared/src/index.ts +2 -0
  45. package/shells/almadar-shell-hono/packages/shared/tsconfig.json +17 -0
  46. package/shells/almadar-shell-hono/packages/shared/tsup.config.ts +10 -0
  47. package/shells/almadar-shell-hono/pnpm-lock.yaml +9423 -0
  48. package/shells/almadar-shell-hono/pnpm-workspace.yaml +2 -0
  49. package/shells/almadar-shell-hono/tsup.config.ts +13 -0
  50. package/shells/almadar-shell-hono/turbo.json +17 -0
  51. package/shells/almadar-shell-hono/vitest.config.ts +8 -0
  52. package/shells/orb-shell/README.md +1 -1
  53. package/shells/orb-shell/packages/client/package.json +1 -1
  54. package/shells/orb-shell/pnpm-lock.yaml +196 -10
@@ -0,0 +1,25 @@
1
+ # @almadar/shell
2
+
3
+ > Minimal full-stack shell template for Almadar applications
4
+
5
+ Part of the [Almadar](https://github.com/almadar-io/almadar) platform.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @almadar/shell
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { /* ... */ } from '@almadar/shell';
17
+ ```
18
+
19
+ ## API
20
+
21
+ <!-- Document public exports here -->
22
+
23
+ ## License
24
+
25
+ BSL 1.1 (Business Source License). Converts to Apache 2.0 on 2030-02-01. Non-production use is free.
@@ -0,0 +1,120 @@
1
+ {
2
+ "$meta": { "locale": "en", "direction": "ltr" },
3
+
4
+ "common.save": "Save",
5
+ "common.cancel": "Cancel",
6
+ "common.delete": "Delete",
7
+ "common.close": "Close",
8
+ "common.confirm": "Are you sure?",
9
+ "common.create": "Create",
10
+ "common.edit": "Edit",
11
+ "common.view": "View",
12
+ "common.add": "Add",
13
+ "common.remove": "Remove",
14
+ "common.search": "Search...",
15
+ "common.filter": "Filter",
16
+ "common.actions": "Actions",
17
+ "common.yes": "Yes",
18
+ "common.no": "No",
19
+ "common.ok": "OK",
20
+ "common.done": "Done",
21
+ "common.apply": "Apply",
22
+ "common.reset": "Reset",
23
+ "common.refresh": "Refresh",
24
+ "common.export": "Export",
25
+ "common.import": "Import",
26
+ "common.copy": "Copy",
27
+ "common.settings": "Settings",
28
+
29
+ "nav.previous": "Previous",
30
+ "nav.next": "Next",
31
+ "nav.back": "Back",
32
+ "nav.home": "Home",
33
+
34
+ "form.submit": "Submit",
35
+ "form.saving": "Saving...",
36
+ "form.required": "This field is required",
37
+ "form.invalidEmail": "Enter a valid email address",
38
+ "form.selectPlaceholder": "Select {{label}}...",
39
+ "form.searchPlaceholder": "Search {{entity}}...",
40
+
41
+ "table.empty.title": "No items found",
42
+ "table.empty.description": "No items to display.",
43
+ "table.search.placeholder": "Search...",
44
+ "table.pagination.showing": "Showing {{start}} to {{end}} of {{total}} results",
45
+ "table.pagination.page": "Page {{page}} of {{totalPages}}",
46
+ "table.bulk.selected": "{{count}} selected",
47
+ "table.loading": "Loading...",
48
+
49
+ "status.loading": "Loading...",
50
+ "status.scheduled": "Scheduled",
51
+ "status.inProgress": "In Progress",
52
+ "status.completed": "Completed",
53
+ "status.cancelled": "Cancelled",
54
+ "status.pending": "Pending",
55
+ "status.active": "Active",
56
+ "status.inactive": "Inactive",
57
+ "status.draft": "Draft",
58
+ "status.archived": "Archived",
59
+
60
+ "error.generic": "Something went wrong",
61
+ "error.retry": "Try again",
62
+ "error.notFound": "Not found",
63
+ "error.loadFailed": "Failed to load: {{message}}",
64
+ "error.configMissing": "Configuration not found for: {{id}}",
65
+
66
+ "common.loading": "Loading...",
67
+ "common.showMore": "Show More",
68
+ "common.showLess": "Show Less",
69
+ "common.noResults": "No results found",
70
+ "common.saveChanges": "Save Changes",
71
+ "common.retry": "Retry",
72
+ "common.open": "Open",
73
+ "common.back": "Back",
74
+
75
+ "empty.noItems": "No items",
76
+ "empty.noData": "No data available",
77
+ "empty.noItemsYet": "No items yet",
78
+ "empty.noItemsAdded": "No items added yet",
79
+ "empty.noOptionsFound": "No options found",
80
+
81
+ "list.addItemPlaceholder": "Add new item...",
82
+
83
+ "error.occurred": "An error occurred",
84
+ "error.failedToLoad": "Failed to load data",
85
+
86
+ "wizard.back": "Back",
87
+ "wizard.next": "Next",
88
+ "wizard.complete": "Complete",
89
+ "wizard.stepOf": "Step {{current}} of {{total}}",
90
+
91
+ "pagination.previous": "Previous",
92
+ "pagination.next": "Next",
93
+ "pagination.total": "Total:",
94
+ "pagination.show": "Show:",
95
+ "pagination.goTo": "Go to:",
96
+ "pagination.go": "Go",
97
+
98
+ "auth.signIn": "Sign in",
99
+ "auth.signOut": "Sign out",
100
+
101
+ "dialog.confirm": "Confirm",
102
+ "dialog.cancel": "Cancel",
103
+ "dialog.loading": "Loading...",
104
+ "dialog.delete.title": "Delete {{item}}?",
105
+ "dialog.delete.message": "This action cannot be undone.",
106
+
107
+ "trait.availableActions": "Available Actions",
108
+ "trait.transitions": "Transitions",
109
+ "trait.availableNow": "Available now",
110
+
111
+ "book.startReading": "Start Reading",
112
+ "book.tableOfContents": "Table of Contents",
113
+ "book.partNumber": "Part {{number}}",
114
+ "book.print": "Print",
115
+ "book.previousPage": "Previous page",
116
+ "book.nextPage": "Next page",
117
+
118
+ "quiz.showAnswer": "Show answer",
119
+ "quiz.hideAnswer": "Hide answer"
120
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@almadar/shell-hono",
3
+ "version": "0.1.1",
4
+ "private": true,
5
+ "description": "Minimal full-stack shell template for Almadar applications (Hono server)",
6
+ "workspaces": [
7
+ "packages/*"
8
+ ],
9
+ "scripts": {
10
+ "dev": "concurrently -n client,server -c blue,green \"bun --filter @app/client dev\" \"bun --filter @app/server dev\"",
11
+ "build": "bun run --filter @app/shared build && bun run --filter @app/client build && bun run --filter @app/server build",
12
+ "serve": "bun run packages/server/src/serve.ts",
13
+ "typecheck": "turbo run typecheck",
14
+ "lint": "turbo run lint",
15
+ "prepare": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true"
16
+ },
17
+ "devDependencies": {
18
+ "concurrently": "^9.2.1",
19
+ "turbo": "^2.8.17"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/almadar-io/almadar-shell-hono.git"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const tsParser = require("@typescript-eslint/parser");
3
+ const almadarPlugin = require("@almadar/eslint-plugin");
4
+
5
+ module.exports = [
6
+ { ignores: ["dist/**", "node_modules/**", "**/*.test.ts", "**/*.test.tsx"] },
7
+ {
8
+ files: ["src/**/*.ts", "src/**/*.tsx"],
9
+ languageOptions: {
10
+ parser: tsParser,
11
+ parserOptions: {
12
+ ecmaFeatures: { jsx: true },
13
+ ecmaVersion: "latest",
14
+ sourceType: "module",
15
+ },
16
+ },
17
+ plugins: { almadar: almadarPlugin },
18
+ rules: {
19
+ "almadar/no-as-any": "error",
20
+ "almadar/no-import-generated": "error",
21
+ },
22
+ },
23
+ ];
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Almadar App</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>