Skip to content

Commit

Permalink
add UI application skeleton
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Baccini <giuseppe.baccini@suse.com>
  • Loading branch information
Giuseppe Baccini committed Jun 26, 2023
1 parent 6fb02d1 commit 4f98d3f
Show file tree
Hide file tree
Showing 20 changed files with 12,421 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EditorConfig is awesome: http://EditorConfig.org
# Editor configuration, see https://editorconfig.org
root = true

[*]
Expand All @@ -7,7 +7,9 @@ indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf

[*.ts]
quote_type = single

[*.md]
max_line_length = off
Expand Down
40 changes: 39 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
.vscode
# See http://help.github.com/ignore-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/*
.history/*

# Miscellaneous
*/**/.angular
*/**/.sass-cache
*/**/connect.lock
*/**/coverage
*/**/libpeerconnection.log
*/**/testem.log
*/**/typings

# System files
.DS_Store
Thumbs.db

.devcontainer
build
wd
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
exclude: ui/chatterbox/package-lock.json

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.4.0
Expand Down
36 changes: 36 additions & 0 deletions ui/chatterbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Chatterbox

This project was generated with
[Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.

## 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.io/cli) page.
99 changes: 99 additions & 0 deletions ui/chatterbox/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"chatterbox": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/chatterbox",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "chatterbox:build:production"
},
"development": {
"browserTarget": "chatterbox:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "chatterbox:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
}
}
}
}
},
"cli": {
"analytics": "cb3418fa-4f4a-4b27-a6b3-983505901570"
}
}
Loading

0 comments on commit 4f98d3f

Please sign in to comment.