arcanajs 0.2.2 → 1.0.0

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 (102) hide show
  1. package/.env.example +0 -0
  2. package/.prettierrc +4 -0
  3. package/README.md +85 -254
  4. package/arcanajs +0 -0
  5. package/arcanajs-cli.json +8 -0
  6. package/arcanajs.config.mjs +0 -0
  7. package/eslint.config.mjs +35 -0
  8. package/jest.config.mjs +8 -0
  9. package/package.json +5 -55
  10. package/src/app/Http/Controllers/Controller.ts +0 -0
  11. package/src/app/Http/Controllers/UserController.ts +0 -0
  12. package/src/app/Http/Middleware/AuthMiddleware.ts +0 -0
  13. package/src/app/Http/Middleware/ValidationMiddleware.ts +0 -0
  14. package/src/app/Models/User.ts +0 -0
  15. package/src/app/Providers/AppServiceProvider.ts +0 -0
  16. package/src/app/Providers/DatabaseProvider.ts +0 -0
  17. package/src/app/Repositories/UserRepository.ts +0 -0
  18. package/src/app/Services/UserService.ts +0 -0
  19. package/src/bootstrap/app.ts +0 -0
  20. package/src/config/app.ts +0 -0
  21. package/src/config/cache.ts +0 -0
  22. package/src/config/database.ts +0 -0
  23. package/src/config/mail.ts +0 -0
  24. package/src/config/server.ts +0 -0
  25. package/src/core/App.ts +0 -0
  26. package/src/core/Cache.ts +0 -0
  27. package/src/core/Container.ts +0 -0
  28. package/src/core/Controller.ts +0 -0
  29. package/src/core/Kernel.ts +0 -0
  30. package/src/core/Logger.ts +0 -0
  31. package/src/core/Repository.ts +0 -0
  32. package/src/core/Response.ts +0 -0
  33. package/src/core/Service.ts +0 -0
  34. package/src/core/Validator.ts +0 -0
  35. package/src/resources/css/style.css +0 -0
  36. package/src/resources/views/back-office/components/common/Footer/main.tsx +161 -0
  37. package/src/resources/views/back-office/components/common/Header/main.tsx +151 -0
  38. package/src/resources/views/back-office/components/common/Layout/main.tsx +15 -0
  39. package/src/resources/views/back-office/components/ui/CodeBlock/index.tsx +350 -0
  40. package/src/resources/views/back-office/pages/About/index.tsx +0 -0
  41. package/src/resources/views/back-office/pages/Contact/index.tsx +0 -0
  42. package/src/resources/views/back-office/pages/Home/index.tsx +0 -0
  43. package/src/resources/views/back-office/pages/NotFound/index.tsx +0 -0
  44. package/src/resources/views/back-office/types/global.d.ts +0 -0
  45. package/src/resources/views/front-office/components/common/Footer/main.tsx +161 -0
  46. package/src/resources/views/front-office/components/common/Header/main.tsx +151 -0
  47. package/src/resources/views/front-office/components/common/Layout/main.tsx +15 -0
  48. package/src/resources/views/front-office/components/ui/CodeBlock/index.tsx +350 -0
  49. package/src/resources/views/front-office/pages/About/index.tsx +0 -0
  50. package/src/resources/views/front-office/pages/Contact/index.tsx +0 -0
  51. package/src/resources/views/front-office/pages/Home/index.tsx +0 -0
  52. package/src/resources/views/front-office/pages/NotFound/index.tsx +0 -0
  53. package/src/resources/views/front-office/types/global.d.ts +0 -0
  54. package/src/resources/views/main.tsx +0 -0
  55. package/src/routes/api.routes.ts +0 -0
  56. package/src/routes/web.routes.ts +0 -0
  57. package/tests/integration/jest.ts +0 -0
  58. package/tests/unit/jest.ts +0 -0
  59. package/tsconfig.build.json +4 -0
  60. package/tsconfig.json +27 -0
  61. package/LICENSE +0 -21
  62. package/bin/arcana.ts +0 -19
  63. package/dist/bin/arcana.d.ts +0 -4
  64. package/dist/bin/arcana.d.ts.map +0 -1
  65. package/dist/bin/arcana.js +0 -17
  66. package/dist/bin/arcana.js.map +0 -1
  67. package/dist/config/default.d.ts +0 -7
  68. package/dist/config/default.d.ts.map +0 -1
  69. package/dist/config/default.js +0 -8
  70. package/dist/config/default.js.map +0 -1
  71. package/dist/src/controllers/HomeController.d.ts +0 -6
  72. package/dist/src/controllers/HomeController.d.ts.map +0 -1
  73. package/dist/src/controllers/HomeController.js +0 -9
  74. package/dist/src/controllers/HomeController.js.map +0 -1
  75. package/dist/src/middleware/auth.d.ts +0 -3
  76. package/dist/src/middleware/auth.d.ts.map +0 -1
  77. package/dist/src/middleware/auth.js +0 -9
  78. package/dist/src/middleware/auth.js.map +0 -1
  79. package/dist/src/models/User.d.ts +0 -11
  80. package/dist/src/models/User.d.ts.map +0 -1
  81. package/dist/src/models/User.js +0 -45
  82. package/dist/src/models/User.js.map +0 -1
  83. package/dist/src/repositories/UserRepository.d.ts +0 -9
  84. package/dist/src/repositories/UserRepository.d.ts.map +0 -1
  85. package/dist/src/repositories/UserRepository.js +0 -19
  86. package/dist/src/repositories/UserRepository.js.map +0 -1
  87. package/dist/src/routes/index.d.ts +0 -3
  88. package/dist/src/routes/index.d.ts.map +0 -1
  89. package/dist/src/routes/index.js +0 -14
  90. package/dist/src/routes/index.js.map +0 -1
  91. package/dist/src/server.d.ts +0 -2
  92. package/dist/src/server.d.ts.map +0 -1
  93. package/dist/src/server.js +0 -34
  94. package/dist/src/server.js.map +0 -1
  95. package/dist/src/services/UserService.d.ts +0 -8
  96. package/dist/src/services/UserService.d.ts.map +0 -1
  97. package/dist/src/services/UserService.js +0 -16
  98. package/dist/src/services/UserService.js.map +0 -1
  99. package/dist/src/views/pages/home.d.ts +0 -2
  100. package/dist/src/views/pages/home.d.ts.map +0 -1
  101. package/dist/src/views/pages/home.js +0 -13
  102. package/dist/src/views/pages/home.js.map +0 -1
File without changes
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "commonjs",
5
+ "lib": ["ES2020"],
6
+ "jsx": "react",
7
+ "outDir": "./dist",
8
+ "rootDir": ".",
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "resolveJsonModule": true,
14
+ "moduleResolution": "node",
15
+ "declaration": true,
16
+ "declarationMap": true,
17
+ "sourceMap": true,
18
+ "allowSyntheticDefaultImports": true,
19
+ "types": ["node"],
20
+ "baseUrl": ".",
21
+ "paths": {
22
+ "@/*": ["src/*"]
23
+ }
24
+ },
25
+ "include": ["src/**/*", "config/**/*", "bin/**/*"],
26
+ "exclude": ["node_modules", "dist", "tests"]
27
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Mohammed Ben Cheikh
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/bin/arcana.ts DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // Minimal CLI stub for arcana
4
- const [, , ...args] = process.argv;
5
-
6
- if (!args.length || args.includes("--help") || args.includes("-h")) {
7
- console.log(
8
- "Arcana CLI\n\nUsage: arcana <command> [options]\n\nCommands:\n create <app-name> Create a new Arcana app (stub)\n help Show help"
9
- );
10
- process.exit(0);
11
- }
12
-
13
- const [cmd, name] = args;
14
- if (cmd === "create") {
15
- console.log(`Creating new Arcana app: ${name} (stub).`);
16
- console.log("This is a starter CLI. Implement scaffolding logic here.");
17
- } else {
18
- console.log("Unknown command. Use --help for usage.");
19
- }
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- declare const args: string[];
3
- declare const cmd: string, name: string;
4
- //# sourceMappingURL=arcana.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arcana.d.ts","sourceRoot":"","sources":["../../bin/arcana.ts"],"names":[],"mappings":";AAGA,QAAA,MAAc,IAAI,UAAgB,CAAC;AASnC,QAAA,MAAO,GAAG,UAAE,IAAI,QAAQ,CAAC"}
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- // Minimal CLI stub for arcana
4
- const [, , ...args] = process.argv;
5
- if (!args.length || args.includes("--help") || args.includes("-h")) {
6
- console.log("Arcana CLI\n\nUsage: arcana <command> [options]\n\nCommands:\n create <app-name> Create a new Arcana app (stub)\n help Show help");
7
- process.exit(0);
8
- }
9
- const [cmd, name] = args;
10
- if (cmd === "create") {
11
- console.log(`Creating new Arcana app: ${name} (stub).`);
12
- console.log("This is a starter CLI. Implement scaffolding logic here.");
13
- }
14
- else {
15
- console.log("Unknown command. Use --help for usage.");
16
- }
17
- //# sourceMappingURL=arcana.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arcana.js","sourceRoot":"","sources":["../../bin/arcana.ts"],"names":[],"mappings":";;AAEA,8BAA8B;AAC9B,MAAM,CAAC,EAAE,AAAD,EAAG,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;AAEnC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACnE,OAAO,CAAC,GAAG,CACT,qJAAqJ,CACtJ,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;AACzB,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;IACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,UAAU,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;AAC1E,CAAC;KAAM,CAAC;IACN,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;AACxD,CAAC"}
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- app: {
3
- name: string;
4
- };
5
- };
6
- export default _default;
7
- //# sourceMappingURL=default.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../config/default.ts"],"names":[],"mappings":";;;;;AAAA,wBAIE"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- app: {
5
- name: "Arcana App",
6
- },
7
- };
8
- //# sourceMappingURL=default.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../config/default.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,GAAG,EAAE;QACH,IAAI,EAAE,YAAY;KACnB;CACF,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Request, Response } from "express";
2
- declare class HomeController {
3
- index(req: Request, res: Response): Promise<Response>;
4
- }
5
- export default HomeController;
6
- //# sourceMappingURL=HomeController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HomeController.d.ts","sourceRoot":"","sources":["../../../src/controllers/HomeController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5C,cAAM,cAAc;IACZ,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG5D;AAED,eAAe,cAAc,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class HomeController {
4
- async index(req, res) {
5
- return res.send("<h1>Arcana.js</h1><p>Welcome — HomeController#index</p>");
6
- }
7
- }
8
- exports.default = HomeController;
9
- //# sourceMappingURL=HomeController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HomeController.js","sourceRoot":"","sources":["../../../src/controllers/HomeController.ts"],"names":[],"mappings":";;AAGA,MAAM,cAAc;IAClB,KAAK,CAAC,KAAK,CAAC,GAAY,EAAE,GAAa;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;CACF;AAED,kBAAe,cAAc,CAAC"}
@@ -1,3 +0,0 @@
1
- import { NextFunction, Request, Response } from "express";
2
- export default function authMiddleware(req: Request, res: Response, next: NextFunction): void;
3
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/middleware/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,YAAY,GACjB,IAAI,CAIN"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = authMiddleware;
4
- function authMiddleware(req, res, next) {
5
- // Implement real auth logic here
6
- // For now allow all
7
- next();
8
- }
9
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/middleware/auth.ts"],"names":[],"mappings":";;AAGA,iCAQC;AARD,SAAwB,cAAc,CACpC,GAAY,EACZ,GAAa,EACb,IAAkB;IAElB,iCAAiC;IACjC,oBAAoB;IACpB,IAAI,EAAE,CAAC;AACT,CAAC"}
@@ -1,11 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- export interface IUser extends Document {
3
- username: string;
4
- email: string;
5
- password: string;
6
- createdAt?: Date;
7
- updatedAt?: Date;
8
- }
9
- declare const _default: mongoose.Model<any, {}, {}, {}, any, any>;
10
- export default _default;
11
- //# sourceMappingURL=User.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAU,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,KAAM,SAAQ,QAAQ;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;;AAWD,wBAC4C"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- // Example Mongoose model (requires mongoose installed)
37
- const mongoose_1 = __importStar(require("mongoose"));
38
- const userSchema = new mongoose_1.Schema({
39
- username: { type: String, required: true, unique: true },
40
- email: { type: String, required: true, unique: true },
41
- password: { type: String, required: true },
42
- }, { timestamps: true });
43
- exports.default = mongoose_1.default.models.User ||
44
- mongoose_1.default.model("User", userSchema);
45
- //# sourceMappingURL=User.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/models/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,qDAAsD;AAUtD,MAAM,UAAU,GAAG,IAAI,iBAAM,CAC3B;IACE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CAC3C,EACD,EAAE,UAAU,EAAE,IAAI,EAAE,CACrB,CAAC;AAEF,kBAAe,kBAAQ,CAAC,MAAM,CAAC,IAAI;IACjC,kBAAQ,CAAC,KAAK,CAAQ,MAAM,EAAE,UAAU,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IUser } from "../models/User";
2
- declare class UserRepository {
3
- private model;
4
- constructor();
5
- findAll(): Promise<IUser[]>;
6
- findById(id: string): Promise<IUser | null>;
7
- }
8
- export default UserRepository;
9
- //# sourceMappingURL=UserRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserRepository.d.ts","sourceRoot":"","sources":["../../../src/repositories/UserRepository.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE7C,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAe;;IAM5B,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3B,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAG5C;AAED,eAAe,cAAc,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const User_1 = __importDefault(require("../models/User"));
7
- class UserRepository {
8
- constructor() {
9
- this.model = User_1.default;
10
- }
11
- findAll() {
12
- return this.model.find().lean();
13
- }
14
- findById(id) {
15
- return this.model.findById(id).lean();
16
- }
17
- }
18
- exports.default = UserRepository;
19
- //# sourceMappingURL=UserRepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserRepository.js","sourceRoot":"","sources":["../../../src/repositories/UserRepository.ts"],"names":[],"mappings":";;;;;AAEA,0DAA6C;AAE7C,MAAM,cAAc;IAGlB;QACE,IAAI,CAAC,KAAK,GAAG,cAAI,CAAC;IACpB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,EAAsB,CAAC;IACtD,CAAC;IAED,QAAQ,CAAC,EAAU;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAA2B,CAAC;IACjE,CAAC;CACF;AAED,kBAAe,cAAc,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Application } from "express";
2
- export default function registerRoutes(app: Application): void;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAO7D"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = registerRoutes;
7
- const HomeController_1 = __importDefault(require("../controllers/HomeController"));
8
- function registerRoutes(app) {
9
- // Example route wiring
10
- const home = new HomeController_1.default();
11
- app.get("/", home.index.bind(home));
12
- // In future, require and register other routers here
13
- }
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":";;;;;AAIA,iCAOC;AATD,mFAA2D;AAE3D,SAAwB,cAAc,CAAC,GAAgB;IACrD,uBAAuB;IACvB,MAAM,IAAI,GAAG,IAAI,wBAAc,EAAE,CAAC;IAElC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAEpC,qDAAqD;AACvD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- // Minimal Express server starter for Arcana.js
7
- const dotenv_1 = __importDefault(require("dotenv"));
8
- const express_1 = __importDefault(require("express"));
9
- const path_1 = __importDefault(require("path"));
10
- dotenv_1.default.config();
11
- const app = (0, express_1.default)();
12
- const port = parseInt(process.env.PORT || "3000", 10);
13
- // Serve static files
14
- app.use("/public", express_1.default.static(path_1.default.join(__dirname, "../public")));
15
- // Basic JSON middleware
16
- app.use(express_1.default.json());
17
- app.use(express_1.default.urlencoded({ extended: true }));
18
- // Register routes
19
- try {
20
- const routes = require("./routes");
21
- if (typeof routes === "function") {
22
- routes(app);
23
- }
24
- }
25
- catch (err) {
26
- console.warn("No routes registered yet.");
27
- }
28
- app.get("/", (req, res) => {
29
- res.send("Welcome to Arcana.js — scaffold running.");
30
- });
31
- app.listen(port, () => {
32
- console.log(`Arcana.js server listening on http://localhost:${port}`);
33
- });
34
- //# sourceMappingURL=server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";;;;;AAAA,+CAA+C;AAC/C,oDAA4B;AAC5B,sDAA+C;AAC/C,gDAAwB;AAExB,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,GAAG,GAAgB,IAAA,iBAAO,GAAE,CAAC;AACnC,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;AAE9D,qBAAqB;AACrB,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,iBAAO,CAAC,MAAM,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtE,wBAAwB;AACxB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AACxB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAEhD,kBAAkB;AAClB,IAAI,CAAC;IACH,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,CAAC;IACd,CAAC;AACH,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;AAC5C,CAAC;AAED,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACxB,GAAG,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IACpB,OAAO,CAAC,GAAG,CAAC,kDAAkD,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { IUser } from "../models/User";
2
- declare class UserService {
3
- private repo;
4
- constructor();
5
- listUsers(): Promise<IUser[]>;
6
- }
7
- export default UserService;
8
- //# sourceMappingURL=UserService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../../src/services/UserService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,cAAM,WAAW;IACf,OAAO,CAAC,IAAI,CAAiB;;IAMvB,SAAS,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;CAGpC;AAED,eAAe,WAAW,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const UserRepository_1 = __importDefault(require("../repositories/UserRepository"));
7
- class UserService {
8
- constructor() {
9
- this.repo = new UserRepository_1.default();
10
- }
11
- async listUsers() {
12
- return this.repo.findAll();
13
- }
14
- }
15
- exports.default = UserService;
16
- //# sourceMappingURL=UserService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserService.js","sourceRoot":"","sources":["../../../src/services/UserService.ts"],"names":[],"mappings":";;;;;AAEA,oFAA4D;AAE5D,MAAM,WAAW;IAGf;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,wBAAc,EAAE,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- export default function HomePage(): JSX.Element;
2
- //# sourceMappingURL=home.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../../../src/views/pages/home.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,QAAQ,IAAI,GAAG,CAAC,OAAO,CAO9C"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = HomePage;
7
- const react_1 = __importDefault(require("react"));
8
- function HomePage() {
9
- return (react_1.default.createElement("div", null,
10
- react_1.default.createElement("h1", null, "Arcana.js \u2014 Home"),
11
- react_1.default.createElement("p", null, "This is a starter React page for server-side rendering.")));
12
- }
13
- //# sourceMappingURL=home.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"home.js","sourceRoot":"","sources":["../../../../src/views/pages/home.tsx"],"names":[],"mappings":";;;;;AAEA,2BAOC;AATD,kDAA0B;AAE1B,SAAwB,QAAQ;IAC9B,OAAO,CACL;QACE,kEAAyB;QACzB,mGAA8D,CAC1D,CACP,CAAC;AACJ,CAAC"}