jcc-express-mvc 1.6.3 → 1.6.5

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.
@@ -8,6 +8,7 @@ export declare class Application extends ExpressApplication {
8
8
  rootPath: string;
9
9
  configRoutes: RouteConfig[];
10
10
  private VERSION;
11
+ config: Record<string, any>;
11
12
  constructor();
12
13
  registerProviders(Provider: new (app: Application) => ServiceProvider): this;
13
14
  boot(): this;
@@ -1 +1 @@
1
- {"version":3,"file":"Application.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Application/Application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAQnE,qBAAa,WAAY,SAAQ,kBAAkB;IACjD,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,SAAS,CAAyB;IACnC,QAAQ,EAAE,MAAM,CAAY;IAC5B,YAAY,EAAE,WAAW,EAAE,CAAM;IACxC,OAAO,CAAC,OAAO,CAAW;;IAU1B,iBAAiB,CAAC,QAAQ,EAAE,KAAK,GAAG,EAAE,WAAW,KAAK,eAAe,GAAG,IAAI;IAc5E,IAAI,IAAI,IAAI;IAUZ,OAAO,CAAC,YAAY;IAIb,OAAO;IAKR,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB1B,MAAM,CAAC,aAAa;CAGrB"}
1
+ {"version":3,"file":"Application.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Application/Application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAQnE,qBAAa,WAAY,SAAQ,kBAAkB;IACjD,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,SAAS,CAAyB;IACnC,QAAQ,EAAE,MAAM,CAAY;IAC5B,YAAY,EAAE,WAAW,EAAE,CAAM;IACxC,OAAO,CAAC,OAAO,CAAW;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;;IAUxC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,GAAG,EAAE,WAAW,KAAK,eAAe,GAAG,IAAI;IAc5E,IAAI,IAAI,IAAI;IAUZ,OAAO,CAAC,YAAY;IAIb,OAAO;IAKR,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB1B,MAAM,CAAC,aAAa;CAGrB"}
@@ -21,6 +21,7 @@ class Application extends ExpressApplication_1.ExpressApplication {
21
21
  this.rootPath = rootPath;
22
22
  this.configRoutes = [];
23
23
  this.VERSION = "0.0.0";
24
+ this.config = {};
24
25
  dotenv_1.default.config({ path: `${rootPath}/.env` });
25
26
  this.instance("app", this);
26
27
  this.singleton("RouteServiceProvider", RouteServiceProvider_1.RouteServiceProvider);
@@ -5,6 +5,7 @@ export declare class ApplicationBuilder {
5
5
  app: Application;
6
6
  constructor(app: Application);
7
7
  withKernel(Kernel: any): this;
8
+ withConfig(config: Record<string, any>): this;
8
9
  withRouting(routeConfig: RouteConfig[]): this;
9
10
  withProviders(providers: Array<new (app: Application) => ServiceProvider>): this;
10
11
  private withEvents;
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationBuilder.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Application/ApplicationBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,qBAAa,kBAAkB;IACtB,GAAG,EAAE,WAAW,CAAC;gBAEZ,GAAG,EAAE,WAAW;IAIrB,UAAU,CAAC,MAAM,EAAE,GAAG;IAKtB,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE;IAOtC,aAAa,CAClB,SAAS,EAAE,KAAK,CAAC,KAAK,GAAG,EAAE,WAAW,KAAK,eAAe,CAAC;IAM7D,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,gBAAgB;IAIjB,WAAW;IAKX,cAAc;IAWd,MAAM;CAGd"}
1
+ {"version":3,"file":"ApplicationBuilder.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Application/ApplicationBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,qBAAa,kBAAkB;IACtB,GAAG,EAAE,WAAW,CAAC;gBAEZ,GAAG,EAAE,WAAW;IAIrB,UAAU,CAAC,MAAM,EAAE,GAAG;IAKtB,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAKtC,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE;IAOtC,aAAa,CAClB,SAAS,EAAE,KAAK,CAAC,KAAK,GAAG,EAAE,WAAW,KAAK,eAAe,CAAC;IAM7D,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,gBAAgB;IAIjB,WAAW;IAKX,cAAc;IAWd,MAAM;CAGd"}
@@ -11,6 +11,10 @@ class ApplicationBuilder {
11
11
  this.app.bind("HttpKernel", Kernel);
12
12
  return this;
13
13
  }
14
+ withConfig(config) {
15
+ this.app.config = { ...this.app.config, ...config };
16
+ return this;
17
+ }
14
18
  withRouting(routeConfig) {
15
19
  this.app.configRoutes = routeConfig.map((route) => {
16
20
  return { ...route, name: `${this.app.rootPath}/${route.name}` };
@@ -2,12 +2,18 @@ import { Application } from "../Application/Application";
2
2
  import { RequestHandler } from "express";
3
3
  export declare class Middleware {
4
4
  private express;
5
- private app;
5
+ private expressApp;
6
6
  private rootPath;
7
+ private app;
7
8
  constructor(app: Application);
8
9
  loadStaticFiles(): void;
9
10
  use(globalMiddleares: RequestHandler[]): void;
10
- private defaultTemplatingEngine;
11
+ /**
12
+ * Default templating engine for the application.
13
+ * It sets up the Blade templating engine with the express app.
14
+ */
15
+ private templatingEngine;
11
16
  passportMiddleware(): RequestHandler;
17
+ private corsOption;
12
18
  }
13
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAyB,EAEvB,cAAc,EACf,MAAM,SAAS,CAAC;AAUjB,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,GAAG,CAAqB;IAChC,OAAO,CAAC,QAAQ,CAAS;gBAEb,GAAG,EAAE,WAAW;IAM5B,eAAe;IAMf,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE;IAgBtC,OAAO,CAAC,uBAAuB;IAMxB,kBAAkB,IAAI,cAAc;CAM5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Middleware/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAyB,EAEvB,cAAc,EACf,MAAM,SAAS,CAAC;AAQjB,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,GAAG,CAAc;gBAEb,GAAG,EAAE,WAAW;IAO5B,eAAe;IAMf,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE;IAiBtC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAQjB,kBAAkB,IAAI,cAAc;IAO3C,OAAO,CAAC,UAAU;CAGnB"}
@@ -6,48 +6,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Middleware = void 0;
7
7
  const passport_1 = __importDefault(require("passport"));
8
8
  const serve_favicon_1 = __importDefault(require("serve-favicon"));
9
+ const cors_1 = __importDefault(require("cors"));
9
10
  const Response_1 = require("../Response");
10
11
  const request_1 = require("../Request/request");
11
- const Templating_engine_1 = require("../Templating-engine");
12
12
  const config_1 = require("../Passport/config");
13
13
  class Middleware {
14
14
  //
15
15
  constructor(app) {
16
+ this.app = app;
16
17
  this.express = app.resolve("express", [], false);
17
- this.app = app.resolve("expressApp", [], false);
18
+ this.expressApp = app.resolve("expressApp", [], false);
18
19
  this.rootPath = app.rootPath;
19
- this.app.disable("x-powered-by");
20
+ this.expressApp.disable("x-powered-by");
20
21
  }
21
22
  loadStaticFiles() {
22
- this.defaultTemplatingEngine();
23
- this.app.use(this.express.static(`${this.rootPath}/public`));
24
- this.app.use(this.express.static(`${this.rootPath}/resources`));
25
- this.app.use((0, serve_favicon_1.default)(`${this.rootPath}/public/favicon.ico`));
23
+ this.templatingEngine();
24
+ this.expressApp.use(this.express.static(`${this.rootPath}/public`));
25
+ this.expressApp.use(this.express.static(`${this.rootPath}/resources`));
26
+ this.expressApp.use((0, serve_favicon_1.default)(`${this.rootPath}/public/favicon.ico`));
26
27
  }
27
28
  use(globalMiddleares) {
28
29
  //
29
30
  [
30
31
  this.express.json(),
31
32
  this.express.urlencoded({ extended: false }),
33
+ (0, cors_1.default)(this.corsOption()),
32
34
  ...globalMiddleares,
33
- ].forEach((middleware) => this.app.use(middleware));
35
+ ].forEach((middleware) => this.expressApp.use(middleware));
34
36
  this.passportMiddleware();
35
- this.app.use(((req, res, next) => {
37
+ this.expressApp.use(((req, res, next) => {
36
38
  new Response_1.HttpResponse(req, res);
37
39
  new request_1.HttpRequest(req, res);
38
40
  next();
39
41
  }));
40
42
  }
41
- defaultTemplatingEngine() {
42
- this.app.engine("blade.html", Templating_engine_1.jsBladeEngine.render.bind(Templating_engine_1.jsBladeEngine));
43
- this.app.set("views", `${this.rootPath}/resources/views`);
44
- this.app.set("view engine", ".blade.html");
43
+ /**
44
+ * Default templating engine for the application.
45
+ * It sets up the Blade templating engine with the express app.
46
+ */
47
+ templatingEngine() {
48
+ const engine = this.app.config.engine || {};
49
+ this.expressApp.engine(engine.viewEngineExtension, engine.viewEngine);
50
+ this.expressApp.set("views", `${this.rootPath}/${engine.view}`);
51
+ this.expressApp.set("view engine", `${engine.viewEngineExtension}`);
45
52
  }
46
53
  passportMiddleware() {
47
- const passportAuth = new config_1.PassportAuth();
54
+ const passportAuth = new config_1.PassportAuth(this.app);
48
55
  passportAuth.localPassport(passport_1.default);
49
- this.app.use(passport_1.default.initialize());
50
- return this.app.use(passport_1.default.session());
56
+ this.expressApp.use(passport_1.default.initialize());
57
+ return this.expressApp.use(passport_1.default.session());
58
+ }
59
+ corsOption() {
60
+ return this.app.config.cors || {};
51
61
  }
52
62
  }
53
63
  exports.Middleware = Middleware;
@@ -1,5 +1,9 @@
1
1
  import passportType from "passport";
2
+ import { Application } from "../Application/Application";
2
3
  export declare class PassportAuth {
4
+ private config;
5
+ constructor(app: Application);
6
+ private getConfig;
3
7
  /**
4
8
  * Configures Passport.js to use a local authentication strategy.
5
9
  * This strategy validates user credentials against the local database.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Passport/config.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,UAAU,CAAC;AAWpC,qBAAa,YAAY;IACvB;;;;OAIG;IACI,aAAa,CAAC,QAAQ,EAAE,OAAO,YAAY;CAqDnD"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Passport/config.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,UAAU,CAAC;AASpC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAa;gBACf,GAAG,EAAE,WAAW;IAI5B,OAAO,CAAC,SAAS;IAkBjB;;;;OAIG;IACI,aAAa,CAAC,QAAQ,EAAE,OAAO,YAAY;CAsEnD"}
@@ -9,27 +9,51 @@ const LocalStrategy = passport_local_1.default.Strategy;
9
9
  const util_1 = require("../util");
10
10
  const AppError_1 = require("../Error/AppError");
11
11
  const error_1 = require("../Error/Constants/error");
12
- const { User } = (0, util_1.getModel)("User");
13
12
  class PassportAuth {
13
+ constructor(app) {
14
+ this.config = app.config.auth || {};
15
+ }
16
+ getConfig() {
17
+ const configPasswordField = this.config.strategies?.local?.fields?.passwordField || "password";
18
+ const configUsernameField = this.config.strategies?.local?.fields?.usernameField || "email";
19
+ const model = this.config.providers?.users?.model || "User";
20
+ const driver = this.config.providers?.users?.driver || "jcc-eloquent";
21
+ return {
22
+ driver,
23
+ model,
24
+ configPasswordField,
25
+ configUsernameField,
26
+ };
27
+ }
14
28
  /**
15
29
  * Configures Passport.js to use a local authentication strategy.
16
30
  * This strategy validates user credentials against the local database.
17
31
  * @param {Object} passport - Passport.js instance.
18
32
  */
19
33
  localPassport(passport) {
20
- passport.use(new LocalStrategy({ usernameField: "email" }, async (email, password, done) => {
34
+ const { configPasswordField, configUsernameField, model, driver } = this.getConfig();
35
+ const { User } = (0, util_1.getModel)(model);
36
+ passport.use(new LocalStrategy({
37
+ usernameField: configUsernameField,
38
+ passwordField: configPasswordField,
39
+ }, async (email, password, done) => {
21
40
  try {
22
41
  if (!email || !password) {
23
42
  return done(null, false, { message: "Invalid credentials" });
24
43
  }
25
44
  let user;
26
- if (process.env.DB_CONNECTION === "mongodb") {
45
+ if (driver === "mongodb") {
27
46
  //
28
- user = await User.findOne({ email }).select("+password");
47
+ user = await User.findOne({ configUsernameField: email }).select("+password");
48
+ }
49
+ else if (driver === "sequelize") {
50
+ user = await User.findOne({
51
+ where: { configUsernameField: email },
52
+ });
29
53
  }
30
54
  else {
31
55
  User.hidden = User.hidden.filter((value) => value !== "password", 0);
32
- user = await User.where("email", email).first();
56
+ user = await User.where(configUsernameField, email).first();
33
57
  }
34
58
  if (!user) {
35
59
  return done(null, false, { message: "Invalid credentials" });
@@ -48,9 +72,12 @@ class PassportAuth {
48
72
  passport.deserializeUser(async (id, done) => {
49
73
  try {
50
74
  let user;
51
- if (process.env.DB_CONNECTION === "mongodb") {
75
+ if (driver === "mongodb") {
52
76
  user = await User.findById(id);
53
77
  }
78
+ else if (driver === "sequelize") {
79
+ user = await User.findByPk(id);
80
+ }
54
81
  else {
55
82
  User.hidden = ["password", ...User.hidden];
56
83
  user = await User.where("id", id).first();
@@ -158,7 +158,7 @@ class EngineHelpers extends expressions_1.TemplateRegex {
158
158
  ></script>`;
159
159
  }
160
160
  getAssetPath(resolvePath, beforeMatch, afterMatch, cssPath) {
161
- if (Config_1.config.get("APP_ENV") === "local") {
161
+ if (Config_1.config.get("APP_ENV") != "production") {
162
162
  const src = `${this.viteHost}/${resolvePath}`;
163
163
  return `${beforeMatch}${this.addScriptTag(src)}${afterMatch}`;
164
164
  }
@@ -181,7 +181,7 @@ class TemplatingEngine extends engineHelper_1.EngineHelpers {
181
181
  vite(content, match, param = this.option) {
182
182
  let { beforMatch, afterMatch } = this.content(content, match);
183
183
  const resourcePath = this.removeQuotes(match?.groups.resource || "").split(",");
184
- if (Config_1.config.get("APP_ENV") === "local" && resourcePath.length > 1) {
184
+ if (Config_1.config.get("APP_ENV") != "production" && resourcePath.length > 1) {
185
185
  beforMatch += this.addCSSLinkTag(`${this.viteHost}/${this.getResource(resourcePath, 0)}`);
186
186
  beforMatch += this.addScriptTag(this.viteHost + "/@vite/client");
187
187
  }
@@ -191,7 +191,7 @@ class TemplatingEngine extends engineHelper_1.EngineHelpers {
191
191
  viteReactRefresh(content, match, param) {
192
192
  const { beforMatch, afterMatch } = this.content(content, match);
193
193
  let viteClientRefresh = "";
194
- if (Config_1.config.get("APP_ENV") == "local") {
194
+ if (Config_1.config.get("APP_ENV") != "production") {
195
195
  viteClientRefresh = this.injectReactRefefresh();
196
196
  }
197
197
  return this.parser(beforMatch + viteClientRefresh + afterMatch);
@@ -42,4 +42,29 @@ export type HttpRoute = Array<{
42
42
  Controller?: BaseController;
43
43
  }>;
44
44
  export type SocketType = Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
45
+ export type AuthStrategy = {
46
+ fields: {
47
+ usernameField: string;
48
+ passwordField: string;
49
+ };
50
+ };
51
+ export type AuthProvider = {
52
+ driver: string;
53
+ model: string;
54
+ };
55
+ export type AuthConfig = {
56
+ default: string;
57
+ strategies: Record<string, AuthStrategy>;
58
+ providers: Record<string, AuthProvider>;
59
+ };
60
+ export type AppConfig = {
61
+ auth: AuthConfig;
62
+ };
63
+ export type EngineConfig = {
64
+ templateEngine: string;
65
+ engine: string;
66
+ view: string;
67
+ viewEngine: () => any;
68
+ viewEngineExtension: string;
69
+ };
45
70
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Framework/lib/Type/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIrD,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG;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MAAM,EAAE,YAAY,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcc-express-mvc",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "express mvc structure",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",