@aslaluroba/help-center 1.0.5 → 1.1.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.
- package/.editorconfig +17 -0
- package/angular.json +106 -0
- package/generate-styles.js +19 -0
- package/ng-package.json +47 -0
- package/package-lock.json +16479 -0
- package/package.json +30 -15
- package/postcss.config.js +6 -0
- package/proxy.conf.json +4 -0
- package/public/Shape.png +0 -0
- package/public/favicon.ico +0 -0
- package/public_api.ts +6 -0
- package/src/app/app.component.ts +59 -0
- package/src/app/app.config.ts +23 -0
- package/src/app/app.routes.ts +3 -0
- package/src/app/chat/chat.component.html +102 -0
- package/src/app/chat/chat.component.ts +88 -0
- package/src/app/help-center-widget/help-center-widget.component.html +220 -0
- package/src/app/help-center-widget/help-center-widget.component.scss +427 -0
- package/src/app/help-center-widget/help-center-widget.component.spec.ts +23 -0
- package/src/app/help-center-widget/help-center-widget.component.ts +460 -0
- package/src/app/help-center-widget/help-center.module.ts +18 -0
- package/src/app/help-screen-data/help-screen-data.component.html +48 -0
- package/src/app/help-screen-data/help-screen-data.component.ts +81 -0
- package/src/app/language.service.ts +19 -0
- package/src/app/pipes/translate.pipe.ts +16 -0
- package/src/app/services/api.service.ts +89 -0
- package/src/app/services/help-center-config.service.ts +16 -0
- package/src/app/services/signalrService.service.ts +104 -0
- package/src/app/services/token.service.ts +44 -0
- package/src/app/services/translation.service.ts +86 -0
- package/src/app/shared/components/button/button.component.ts +80 -0
- package/src/app/shared/components/button/index.ts +1 -0
- package/src/app/shared/components/card/card.component.ts +106 -0
- package/src/app/shared/components/card/index.ts +1 -0
- package/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.ts +39 -0
- package/src/app/shared/components/header/header.component.ts +118 -0
- package/src/app/shared/components/header/index.ts +1 -0
- package/src/app/shared/components/loading/loading.component.ts +14 -0
- package/src/app/shared/utils/class-utils.ts +9 -0
- package/src/app/types/index.ts +1 -0
- package/src/index.html +13 -0
- package/src/lib/tailwind.css +1 -0
- package/src/main.ts +5 -0
- package/src/styles.css +8 -0
- package/src/styles.scss +38 -0
- package/tailwind.config.ts +175 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +33 -0
- package/tsconfig.spec.json +15 -0
- package/fesm2022/aslaluroba-help-center.mjs +0 -1380
- package/fesm2022/aslaluroba-help-center.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/public_api.d.ts +0 -6
- package/src/app/chat/chat.component.d.ts +0 -39
- package/src/app/help-center-widget/help-center-widget.component.d.ts +0 -104
- package/src/app/help-center-widget/help-center.module.d.ts +0 -15
- package/src/app/help-screen-data/help-screen-data.component.d.ts +0 -52
- package/src/app/services/api.service.d.ts +0 -11
- package/src/app/services/signalrService.service.d.ts +0 -13
- package/src/app/services/token.service.d.ts +0 -12
- package/src/app/shared/components/button/button.component.d.ts +0 -34
- package/src/app/shared/components/button/index.d.ts +0 -1
- package/src/app/shared/components/card/card.component.d.ts +0 -38
- package/src/app/shared/components/card/index.d.ts +0 -1
- package/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +0 -12
- package/src/app/shared/components/header/header.component.d.ts +0 -29
- package/src/app/shared/components/header/index.d.ts +0 -1
- package/src/app/shared/components/loading/loading.component.d.ts +0 -5
- package/src/app/shared/utils/class-utils.d.ts +0 -5
- package/src/app/transloco-root.module.d.ts +0 -16
- package/transloco.config.d.ts +0 -3
package/.editorconfig
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
ij_typescript_use_double_quotes = false
|
|
14
|
+
|
|
15
|
+
[*.md]
|
|
16
|
+
max_line_length = off
|
|
17
|
+
trim_trailing_whitespace = false
|
package/angular.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"angular-help-center": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"schematics": {
|
|
9
|
+
"@schematics/angular:component": {
|
|
10
|
+
"style": "scss"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"root": "",
|
|
14
|
+
"sourceRoot": "src",
|
|
15
|
+
"prefix": "app",
|
|
16
|
+
"architect": {
|
|
17
|
+
"build": {
|
|
18
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
19
|
+
"options": {
|
|
20
|
+
"outputPath": "dist/angular-help-center",
|
|
21
|
+
"index": "src/index.html",
|
|
22
|
+
"browser": "src/main.ts",
|
|
23
|
+
"polyfills": ["zone.js"],
|
|
24
|
+
"tsConfig": "tsconfig.app.json",
|
|
25
|
+
"inlineStyleLanguage": "scss",
|
|
26
|
+
"assets": [
|
|
27
|
+
{
|
|
28
|
+
"glob": "**/*",
|
|
29
|
+
"input": "public"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"glob": "**/*",
|
|
33
|
+
"input": "src/assets"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"styles": ["src/styles.scss"],
|
|
37
|
+
"scripts": []
|
|
38
|
+
},
|
|
39
|
+
"configurations": {
|
|
40
|
+
"production": {
|
|
41
|
+
"budgets": [
|
|
42
|
+
{
|
|
43
|
+
"type": "initial",
|
|
44
|
+
"maximumWarning": "1mb",
|
|
45
|
+
"maximumError": "2mb"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "anyComponentStyle",
|
|
49
|
+
"maximumWarning": "16kb",
|
|
50
|
+
"maximumError": "32kb"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"outputHashing": "all"
|
|
54
|
+
},
|
|
55
|
+
"development": {
|
|
56
|
+
"optimization": false,
|
|
57
|
+
"extractLicenses": false,
|
|
58
|
+
"sourceMap": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"defaultConfiguration": "production"
|
|
62
|
+
},
|
|
63
|
+
"serve": {
|
|
64
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
65
|
+
"options": {
|
|
66
|
+
"proxyConfig": "proxy.conf.json",
|
|
67
|
+
"port": 3000
|
|
68
|
+
},
|
|
69
|
+
"configurations": {
|
|
70
|
+
"production": {
|
|
71
|
+
"buildTarget": "angular-help-center:build:production"
|
|
72
|
+
},
|
|
73
|
+
"development": {
|
|
74
|
+
"buildTarget": "angular-help-center:build:development"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"defaultConfiguration": "development"
|
|
78
|
+
},
|
|
79
|
+
"extract-i18n": {
|
|
80
|
+
"builder": "@angular-devkit/build-angular:extract-i18n"
|
|
81
|
+
},
|
|
82
|
+
"test": {
|
|
83
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
84
|
+
"options": {
|
|
85
|
+
"polyfills": ["zone.js", "zone.js/testing"],
|
|
86
|
+
"tsConfig": "tsconfig.spec.json",
|
|
87
|
+
"inlineStyleLanguage": "scss",
|
|
88
|
+
"assets": [
|
|
89
|
+
"src/assets",
|
|
90
|
+
{
|
|
91
|
+
"glob": "**/*",
|
|
92
|
+
"input": "public"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"glob": "**/*",
|
|
96
|
+
"input": "src/assets"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"styles": ["src/styles.scss"],
|
|
100
|
+
"scripts": []
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const execSync = require('child_process').execSync
|
|
2
|
+
const fs = require('fs')
|
|
3
|
+
|
|
4
|
+
// Create a temporary input file with all Tailwind directives
|
|
5
|
+
const inputContent = `
|
|
6
|
+
@tailwind base;
|
|
7
|
+
@tailwind components;
|
|
8
|
+
@tailwind utilities;
|
|
9
|
+
`
|
|
10
|
+
|
|
11
|
+
fs.writeFileSync('src/styles.input.css', inputContent)
|
|
12
|
+
|
|
13
|
+
// Run Tailwind CLI to generate the static CSS
|
|
14
|
+
execSync('npx tailwindcss -i src/styles.input.css -o src/lib/tailwind.css --minify')
|
|
15
|
+
|
|
16
|
+
// Clean up the temporary input file
|
|
17
|
+
fs.unlinkSync('src/styles.input.css')
|
|
18
|
+
|
|
19
|
+
console.log('Static Tailwind CSS file generated successfully!')
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "./dist/help-center",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "./public_api.ts",
|
|
6
|
+
"cssUrl": "inline"
|
|
7
|
+
},
|
|
8
|
+
"assets": [
|
|
9
|
+
{
|
|
10
|
+
"glob": "**/*",
|
|
11
|
+
"input": "src/assets",
|
|
12
|
+
"output": "."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"glob": "**/*",
|
|
16
|
+
"input": "src/icons",
|
|
17
|
+
"output": "assets/icons"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"glob": "**/*",
|
|
21
|
+
"input": "src/images",
|
|
22
|
+
"output": "assets/images"
|
|
23
|
+
},
|
|
24
|
+
"src/lib/tailwind.css"
|
|
25
|
+
],
|
|
26
|
+
"allowedNonPeerDependencies": [
|
|
27
|
+
"@angular/animations",
|
|
28
|
+
"@angular/common",
|
|
29
|
+
"@angular/compiler",
|
|
30
|
+
"@angular/core",
|
|
31
|
+
"@angular/forms",
|
|
32
|
+
"@angular/platform-browser",
|
|
33
|
+
"@angular/platform-browser-dynamic",
|
|
34
|
+
"@angular/router",
|
|
35
|
+
"@microsoft/signalr",
|
|
36
|
+
"clsx",
|
|
37
|
+
"marked",
|
|
38
|
+
"ngx-markdown",
|
|
39
|
+
"prismjs",
|
|
40
|
+
"rxjs",
|
|
41
|
+
"tailwind-merge",
|
|
42
|
+
"tailwindcss-animate",
|
|
43
|
+
"tailwindcss-rtl",
|
|
44
|
+
"tslib",
|
|
45
|
+
"zone.js"
|
|
46
|
+
]
|
|
47
|
+
}
|