forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Task][OSPP] HertzBeat Official Template Marketplace [apache#1792]
- Loading branch information
1 parent
62f4bec
commit cbd1123
Showing
291 changed files
with
39,299 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
template-marketplace/hertzbeat-template-hub-web-app/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
42 changes: 42 additions & 0 deletions
42
template-marketplace/hertzbeat-template-hub-web-app/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
||
# Compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
/bazel-out | ||
|
||
# Node | ||
/node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# IDEs and editors | ||
.idea/ | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# Miscellaneous | ||
/.angular/cache | ||
.sass-cache/ | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
testem.log | ||
/typings | ||
|
||
# System files | ||
.DS_Store | ||
Thumbs.db |
13 changes: 13 additions & 0 deletions
13
template-marketplace/hertzbeat-template-hub-web-app/.prettierrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
useTabs: false, | ||
printWidth: 140, | ||
tabWidth: 2, | ||
semi: true, | ||
htmlWhitespaceSensitivity: 'strict', | ||
arrowParens: 'avoid', | ||
bracketSpacing: true, | ||
proseWrap: 'preserve', | ||
trailingComma: 'none', | ||
endOfLine: 'lf' | ||
}; |
40 changes: 40 additions & 0 deletions
40
template-marketplace/hertzbeat-template-hub-web-app/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# HertzbeatTemplateHubWebApp | ||
|
||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.5. | ||
|
||
## 已完成工作 | ||
- 工程搭建 | ||
- 首页 | ||
- 搜索页面:名称模糊查询+类别查询+排序功能 | ||
- 详情页面:模版信息展示、版本信息展示、下载功能、分享功能 | ||
- 上传页面:上传模版 | ||
|
||
## 待完成工作 | ||
- 登录注册页面 | ||
- 详情页面:收藏功能 | ||
- 用户中心页面:资产管理 | ||
- 管理员页面 | ||
|
||
## Development server | ||
|
||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. | ||
|
||
## Code scaffolding | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
|
||
## Build | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
## Running end-to-end tests | ||
|
||
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. | ||
|
||
## Further help | ||
|
||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. |
186 changes: 186 additions & 0 deletions
186
template-marketplace/hertzbeat-template-hub-web-app/angular.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"hertzbeat-template-hub-web-app": { | ||
"projectType": "application", | ||
"root": "", | ||
"sourceRoot": "src", | ||
"prefix": "app", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"style": "css" | ||
}, | ||
"@schematics/angular:application": { | ||
"strict": true | ||
} | ||
}, | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"preserveSymlinks": true, | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "tsconfig.app.json", | ||
"polyfills": [ | ||
"zone.js" | ||
], | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico", | ||
{ | ||
"glob": "**/*", | ||
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/", | ||
"output": "/assets/" | ||
}, | ||
{ | ||
"glob": "**/*", | ||
"input": "node_modules/monaco-editor/min/vs", | ||
"output": "/assets/vs/" | ||
} | ||
], | ||
"styles": [ | ||
"src/styles.css", | ||
"node_modules/ng-zorro-antd/ng-zorro-antd.min.css", | ||
"node_modules/slick-carousel/slick/slick.scss", | ||
"node_modules/slick-carousel/slick/slick-theme.scss" | ||
], | ||
"scripts": [ | ||
"node_modules/jquery/dist/jquery.min.js", | ||
"node_modules/slick-carousel/slick/slick.min.js" | ||
], | ||
"allowedCommonJsDependencies": [ | ||
"ajv", | ||
"ajv-formats", | ||
"mockjs", | ||
"date-fns", | ||
"file-saver", | ||
"extend" | ||
], | ||
"stylePreprocessorOptions": { | ||
"includePaths": [ | ||
"node_modules/" | ||
] | ||
} | ||
}, | ||
"configurations": { | ||
"production": { | ||
"extractLicenses": false, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"outputHashing": "all", | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "2mb", | ||
"maximumError": "6mb" | ||
}, | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "6kb", | ||
"maximumError": "10kb" | ||
} | ||
] | ||
}, | ||
"development": { | ||
"buildOptimizer": false, | ||
"optimization": false, | ||
"vendorChunk": true, | ||
"extractLicenses": false, | ||
"sourceMap": true, | ||
"namedChunks": true | ||
} | ||
}, | ||
"defaultConfiguration": "production" | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"proxyConfig": "proxy.conf.json", | ||
"buildTarget": "hertzbeat-template-hub-web-app:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"buildTarget": "hertzbeat-template-hub-web-app:build:production" | ||
}, | ||
"development": { | ||
"buildTarget": "hertzbeat-template-hub-web-app:build:development" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"buildTarget": "hertzbeat-template-hub-web-app:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"polyfills": [ | ||
"zone.js", | ||
"zone.js/testing" | ||
], | ||
"tsConfig": "tsconfig.spec.json", | ||
"assets": [ | ||
"src/assets", | ||
{ | ||
"glob": "**/*", | ||
"input": "public" | ||
} | ||
], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-eslint/builder:lint", | ||
"options": { | ||
"lintFilePatterns": [ | ||
"src/**/*.ts", | ||
"src/**/*.html" | ||
] | ||
} | ||
}, | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "hertzbeat-template-hub-web-app:serve" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "hertzbeat-template-hub-web-app:serve:production" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"cli": { | ||
"packageManager": "yarn", | ||
"schematicCollections": [ | ||
"@schematics/angular", | ||
"hertzbeat-template-hub-web-app" | ||
], | ||
"analytics": false | ||
}, | ||
"schematics": { | ||
"@angular-eslint/schematics:application": { | ||
"setParserOptionsProject": true | ||
}, | ||
"@angular-eslint/schematics:library": { | ||
"setParserOptionsProject": true | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
template-marketplace/hertzbeat-template-hub-web-app/ng-alain.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"$schema": "./node_modules/ng-alain/schema.json", | ||
"theme": { | ||
"list": [ | ||
{ | ||
"theme": "dark" | ||
}, | ||
{ | ||
"theme": "compact" | ||
} | ||
] | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
template-marketplace/hertzbeat-template-hub-web-app/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "hertzbeat-template-hub-web-app", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build", | ||
"watch": "ng build --watch --configuration development", | ||
"test": "ng test" | ||
}, | ||
"private": true, | ||
"dependencies": { | ||
"@angular/animations": "^18.2.5", | ||
"@angular/common": "^18.2.0", | ||
"@angular/compiler": "^18.2.0", | ||
"@angular/core": "^18.2.5", | ||
"@angular/forms": "^18.2.0", | ||
"@angular/platform-browser": "^18.2.0", | ||
"@angular/platform-browser-dynamic": "^18.2.0", | ||
"@angular/router": "^18.2.0", | ||
"@delon/abc": "^18.1.0", | ||
"@delon/cache": "^18.1.0", | ||
"@delon/form": "^18.1.0", | ||
"@delon/theme": "^18.1.0", | ||
"@delon/util": "^18.1.0", | ||
"ajv": "^8.17.1", | ||
"ajv-formats": "^3.0.1", | ||
"angular-tag-cloud-module": "^17.0.1", | ||
"echarts": "^5.5.1", | ||
"file-saver": "^2.0.5", | ||
"jquery": "^3.7.1", | ||
"ng-zorro-antd": "^18.1.1", | ||
"ngx-color-picker": "^17.0.0", | ||
"ngx-echarts": "^18.0.0", | ||
"rxjs": "~7.8.0", | ||
"screenfull": "^6.0.2", | ||
"slick-carousel": "^1.8.1", | ||
"tslib": "^2.7.0", | ||
"zone.js": "~0.14.10" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^18.2.5", | ||
"@angular/cli": "^18.2.5", | ||
"@angular/compiler-cli": "^18.2.0", | ||
"@types/file-saver": "^2.0.7", | ||
"@types/jasmine": "~5.1.0", | ||
"jasmine-core": "~5.2.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"karma": "~6.4.0", | ||
"karma-chrome-launcher": "~3.2.0", | ||
"karma-coverage": "~2.2.0", | ||
"karma-jasmine": "~5.1.0", | ||
"karma-jasmine-html-reporter": "~2.1.0", | ||
"ng-alain": "^18.1.0", | ||
"node-fetch": "^3.3.2", | ||
"prettier": "^3.3.3", | ||
"ts-node": "^10.9.2", | ||
"typescript": "~5.5.2" | ||
}, | ||
"description": "This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.5.", | ||
"main": "index.js", | ||
"author": "", | ||
"license": "ISC" | ||
} |
8 changes: 8 additions & 0 deletions
8
template-marketplace/hertzbeat-template-hub-web-app/proxy.conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"/api/*": { | ||
"target": "http://localhost:8080/api", | ||
"secure": false, | ||
"changeOrigin": true, | ||
"logLevel": "debug" | ||
} | ||
} |
Binary file added
BIN
+2.48 KB
template-marketplace/hertzbeat-template-hub-web-app/public/favicon.ico
Binary file not shown.
Oops, something went wrong.