unictive-angular 1.0.13 → 1.0.15

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 (95) hide show
  1. package/README.md +25 -0
  2. package/bin/index.js +11 -7
  3. package/bin/utils/auth.js +0 -3
  4. package/bin/utils/createStructure.js +36 -7
  5. package/bin/utils/{setupAssets.js → refactorAngularJson.js} +63 -3
  6. package/bin/utils/resource/.postcssrc.json +12 -0
  7. package/bin/utils/resource/package.json +48 -0
  8. package/bin/utils/resource/src/app/MODULES/auth/README.md +10 -0
  9. package/bin/utils/resource/src/app/MODULES/dashboard/README.md +10 -0
  10. package/bin/utils/resource/src/app/MODULES/home/README.md +10 -0
  11. package/bin/utils/resource/src/app/app.config.ts +20 -0
  12. package/bin/utils/resource/src/app/app.html +263 -0
  13. package/bin/utils/resource/src/app/app.routes.ts +3 -0
  14. package/bin/utils/resource/src/app/app.scss +6 -0
  15. package/bin/utils/resource/src/app/app.spec.ts +25 -0
  16. package/bin/utils/resource/src/app/app.ts +32 -0
  17. package/bin/utils/resource/src/app/core/README.md +10 -0
  18. package/bin/utils/resource/src/app/core/config/README.md +10 -0
  19. package/bin/utils/resource/src/app/core/guards/README.md +10 -0
  20. package/bin/utils/resource/src/app/core/interceptors/README.md +10 -0
  21. package/bin/utils/resource/src/app/core/interceptors/error.interceptor.ts +47 -0
  22. package/bin/utils/resource/src/app/core/interceptors/jsonrpc.ts +440 -0
  23. package/bin/utils/resource/src/app/core/interceptors/jwt.interceptor.ts +36 -0
  24. package/bin/utils/resource/src/app/core/models/README.md +10 -0
  25. package/bin/utils/resource/src/app/core/services/README.md +10 -0
  26. package/bin/utils/resource/src/app/shared/README.md +10 -0
  27. package/bin/utils/resource/src/app/shared/directives/README.md +10 -0
  28. package/bin/utils/resource/src/app/shared/pipes/README.md +10 -0
  29. package/bin/utils/resource/src/app/shared/ui/README.md +10 -0
  30. package/bin/utils/resource/src/app/shared/utils/README.md +10 -0
  31. package/bin/utils/resource/src/app/shared/utils/logger.ts +40 -0
  32. package/bin/utils/resource/src/app/shared/widgets/test/test.component.css +0 -0
  33. package/bin/utils/resource/src/app/shared/widgets/test/test.component.html +20 -0
  34. package/bin/utils/resource/src/app/shared/widgets/test/test.component.ts +56 -0
  35. package/bin/utils/resource/src/app/shared/widgets/test/test.module.ts +10 -0
  36. package/bin/utils/resource/src/environments/environment.prod.ts +6 -0
  37. package/bin/utils/resource/src/environments/environment.staging.ts +6 -0
  38. package/bin/utils/resource/src/environments/environment.ts +6 -0
  39. package/bin/utils/resource/src/index.html +16 -0
  40. package/bin/utils/resource/src/main.ts +6 -0
  41. package/bin/utils/resource/src/styles.scss +2 -0
  42. package/bin/utils/resource/src/tailwind.css +11 -0
  43. package/bin/utils/resource/tailwind.config.js +19 -0
  44. package/bin/utils/resource/tsconfig.json +46 -0
  45. package/coba/.editorconfig +17 -0
  46. package/coba/.postcssrc.json +12 -0
  47. package/coba/.vscode/extensions.json +4 -0
  48. package/coba/.vscode/launch.json +20 -0
  49. package/coba/.vscode/tasks.json +42 -0
  50. package/coba/README.md +59 -0
  51. package/coba/angular.json +102 -0
  52. package/coba/package-lock.json +10696 -0
  53. package/coba/package.json +48 -0
  54. package/coba/public/favicon.ico +0 -0
  55. package/coba/src/app/MODULES/auth/README.md +10 -0
  56. package/coba/src/app/MODULES/dashboard/README.md +10 -0
  57. package/coba/src/app/MODULES/home/README.md +10 -0
  58. package/coba/src/app/app.config.ts +20 -0
  59. package/coba/src/app/app.html +263 -0
  60. package/coba/src/app/app.routes.ts +3 -0
  61. package/coba/src/app/app.scss +6 -0
  62. package/coba/src/app/app.spec.ts +25 -0
  63. package/coba/src/app/app.ts +32 -0
  64. package/coba/src/app/core/README.md +10 -0
  65. package/coba/src/app/core/config/README.md +10 -0
  66. package/coba/src/app/core/guards/README.md +10 -0
  67. package/coba/src/app/core/interceptors/README.md +10 -0
  68. package/coba/src/app/core/interceptors/error.interceptor.ts +47 -0
  69. package/coba/src/app/core/interceptors/jsonrpc.ts +440 -0
  70. package/coba/src/app/core/interceptors/jwt.interceptor.ts +36 -0
  71. package/coba/src/app/core/models/README.md +10 -0
  72. package/coba/src/app/core/services/README.md +10 -0
  73. package/coba/src/app/shared/README.md +10 -0
  74. package/coba/src/app/shared/directives/README.md +10 -0
  75. package/coba/src/app/shared/pipes/README.md +10 -0
  76. package/coba/src/app/shared/ui/README.md +10 -0
  77. package/coba/src/app/shared/utils/README.md +10 -0
  78. package/coba/src/app/shared/utils/logger.ts +40 -0
  79. package/coba/src/app/shared/widgets/test/test.component.css +0 -0
  80. package/coba/src/app/shared/widgets/test/test.component.html +20 -0
  81. package/coba/src/app/shared/widgets/test/test.component.ts +56 -0
  82. package/coba/src/app/shared/widgets/test/test.module.ts +10 -0
  83. package/coba/src/environments/environment.prod.ts +6 -0
  84. package/coba/src/environments/environment.staging.ts +6 -0
  85. package/coba/src/environments/environment.ts +6 -0
  86. package/coba/src/index.html +16 -0
  87. package/coba/src/main.ts +6 -0
  88. package/coba/src/styles.scss +2 -0
  89. package/coba/src/tailwind.css +11 -0
  90. package/coba/tailwind.config.js +19 -0
  91. package/coba/tsconfig.app.json +15 -0
  92. package/coba/tsconfig.json +46 -0
  93. package/coba/tsconfig.spec.json +14 -0
  94. package/package.json +1 -1
  95. package/test/node_modules/@tailwindcss/oxide-win32-x64-msvc/tailwindcss-oxide.win32-x64-msvc.node +0 -0
@@ -0,0 +1,6 @@
1
+ export const environment = {
2
+ production: false,
3
+ apiUrl: 'https://staging.example.com/api',
4
+ envName: 'staging',
5
+ tokenName: 'token',
6
+ };
@@ -0,0 +1,6 @@
1
+ export const environment = {
2
+ production: false,
3
+ apiUrl: 'http://localhost:3000/api',
4
+ envName: 'dev',
5
+ tokenName: 'token',
6
+ };
@@ -0,0 +1,16 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>Angular</title>
7
+ <base href="/">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
10
+ </head>
11
+
12
+ <body>
13
+ <app-root></app-root>
14
+ </body>
15
+
16
+ </html>
@@ -0,0 +1,6 @@
1
+ import { bootstrapApplication } from '@angular/platform-browser';
2
+ import { appConfig } from './app/app.config';
3
+ import { App } from './app/app';
4
+
5
+ bootstrapApplication(App, appConfig)
6
+ .catch((err) => console.error(err));
@@ -0,0 +1,2 @@
1
+ // @import "tailwindcss";
2
+
@@ -0,0 +1,11 @@
1
+ /* You can add global styles to this file, and also import other style files */
2
+ @import "tailwindcss";
3
+ /* @import "~@ng-select/ng-select/themes/default.theme.css"; */
4
+ /* @import "./theme/components.scss";
5
+ @import "./theme/fontstyle.scss";
6
+ @import "./theme/typography.scss";
7
+ @import "./theme/variables.scss"; */
8
+
9
+
10
+
11
+
@@ -0,0 +1,19 @@
1
+ // tailwind.config.js
2
+ module.exports = {
3
+ content: ["./src/**/*.{html,ts,scss}"], // sesuaikan dengan proyekmu
4
+
5
+ theme: {
6
+ extend: {
7
+ colors: {
8
+ brand: '#1E40AF', // kamu bisa ganti nama dan nilainya
9
+ },
10
+ fontFamily: {
11
+ inter_bold: ['Inter-Bold', 'sans-serif'],
12
+ inter_semibold: ['Inter-Semibold', 'sans-serif'],
13
+ inter_regular: ['Inter-Regular', 'sans-serif'],
14
+ },
15
+ },
16
+ },
17
+ plugins: [],
18
+ }
19
+
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "./out-tsc/app",
7
+ "types": []
8
+ },
9
+ "include": [
10
+ "src/**/*.ts"
11
+ ],
12
+ "exclude": [
13
+ "src/**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,46 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "compileOnSave": false,
5
+ "compilerOptions": {
6
+ "baseUrl": "./",
7
+ "strict": true,
8
+ "noImplicitOverride": true,
9
+ "noPropertyAccessFromIndexSignature": true,
10
+ "noImplicitReturns": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "skipLibCheck": true,
13
+ "isolatedModules": true,
14
+ "experimentalDecorators": true,
15
+ "importHelpers": true,
16
+ "target": "ES2022",
17
+ "module": "preserve",
18
+ "paths": {
19
+ "@api": ["src/app/API"],
20
+ "@api/*": ["src/app/API/*"],
21
+ "@core": ["src/app/core"],
22
+ "@core/*": ["src/app/core/*"],
23
+ "@MODULES": ["src/app/MODULES"],
24
+ "@MODULES/*": ["src/app/MODULES/*"],
25
+ "@shared": ["src/app/shared"],
26
+ "@shared/*": ["src/app/shared/*"],
27
+ },
28
+ },
29
+ "angularCompilerOptions": {
30
+ "enableI18nLegacyMessageIdFormat": false,
31
+ "strictInjectionParameters": true,
32
+ "strictInputAccessModifiers": true,
33
+ "typeCheckHostBindings": true,
34
+ "strictTemplates": true
35
+ },
36
+
37
+ "files": [],
38
+ "references": [
39
+ {
40
+ "path": "./tsconfig.app.json"
41
+ },
42
+ {
43
+ "path": "./tsconfig.spec.json"
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,14 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "./out-tsc/spec",
7
+ "types": [
8
+ "jasmine"
9
+ ]
10
+ },
11
+ "include": [
12
+ "src/**/*.ts"
13
+ ]
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unictive-angular",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "CLI untuk membuat project Angular dengan struktur kustom (Modules, Core, API, Shared).",
5
5
  "scripts": {
6
6
  "build": "npm version patch && npm publish --access public"