Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 29, 2020
0 parents commit 9122660
Show file tree
Hide file tree
Showing 56 changed files with 13,475 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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

[*.md]
max_line_length = off
trim_trailing_whitespace = false
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: python
python:
- 3.6
sudo: required
env:
global:
- secure: a8zmabLWZEusa3AgbOefefPynsR+3O5QzZxw6jTIqDEzeqO1qMGcdDoMEQK5l+9ikwz7K4+GrtJ2I9pPjvm8Mvlxgc9EQZ3q4tQHgaS/EJiT2QroX6aOiTkr+D3rbxIbUpnbTbT6ldswLzO8la2bcpTZcihIHcIGfPbG/iZZd2R2RmzY6Dql2o3WoM9WSXnE/cTMmJaoYQyUSYVTfPbQWi09sw7XcJCt17o13EgQVUlV4WZTSjGvSefu7pvFT8Tq5eqwfh8OVQBQsyNU0FDF4PTWeNBNE12boq7LyTBuEhLwOprC0Gd7bFqXupAsqPfWMzIy2sBfl8hiNznwG7ouchzg+/fbgrRO8LWs1jVO/p1LzcEHjhZE16wvJettfDokKckQoRZaSa7uaKORNWcFcVxZ9JLzUwW5zbl7bZMXYlZk+b275cnNJRHAUxPVWCtQUw9t/3QJpgdxW4kfKBlNakqQGj0WydTkRCCc4DujqPGdQDC0t2hHPaJCUSNhQRB9NI0t93lgc8+k3ajmLBGlnPeCLpZ9yZpVXk2Ic8a3T5wP9ty8w1gJSEax4E+vltBSTFtTmtPxsmNeNqAmc7JP7qlOq0HewIVN2GLzuhjmK5efs5tdQu0TtkOM5P/sfyDdwn19uorT2RkuncK/ohzpa3K8anGBXoO2mXRS9SUCuTw=
- secure: f+ispKaxBazpyFVqGWS3DdjnIDyupzNS/b9Np8qxLdzKz+vaLnO3wl6paRKKjkw6Z8bKkUUOuq1f4s5RBLbgDtkJmfZwr5A5h3A3lAvYFs+1nnaIHbKkEhu0veHakR1R8+GcoUkpaHeKI7oYi6Eci/fLHry6vexikZEaAyshgnA1H10X7wSj7mnGigLFYJTlj5AgF4X5h9JkffN8/GGNs82+4fCfIXOA03wN88oFkRLnfO+SJMDF3vzi/MEtVKIK4NQU6F3n9P664hfQ4X6pKvwYOgV2L+OF3yO67cM3AoHZglQC4ZsIzVU9q6xMQKmrGGOtSKlH/cat83B4h/KpcKOeqNOopyhvQ2J9I8xwa/aJQNlkfwZ9rHWR27NNxq/6xvR1egUlwvK03huKlGd0giRpwCgmngJ4HiOBzXBuELnOQd5W3KU86tzgKY/n9ZE4/C7ekoDyyyu2hrZXucoOytvCcAbD4wS4mswD6efOUSxdhk5D30ZPzT1gjXAhvCvuZU8G9QAZD2sJkUfNeibn/nihiblHUdIfueGDAhbC0L1E2tNt07A0IgsPh9Ae6pThtlXvQHPqZmin0czl3SdxKsdS6q9z9N2dAAnHU7jvnsLSxcMZJmZ/JS3qEbzsNWx/k0LV0i4oCK85OhNXLTBy6zGcVFMvk5Gpy+glEo2brJA=
install:
- nvm install 10
- nvm use 10
- pip install transifex-client
- 'curl https://raw.githubusercontent.com/hasadna/reportit-scripts/master/tools/prepare_github.sh > prepare_github.sh'
- npm install
- npm install -g @angular/[email protected]
script:
- . extract_i18n.sh
- tx push --source
- tx pull --mode sourceastranslation -l ar,en,am,ru
deploy:
skip_cleanup: true
provider: script
script: "./travis_deploy.sh"
on:
branch: master
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# avid-chatbot

A standalone version of the avid-covider chatbot for simple use cases

## Quickstart

### Development cycle:

- Edit `scripts/script.yaml`
- Run `tools/yaml_to_json.py`
- Run `ng serve`

### Production:

- Run `npm run build`

265 changes: 265 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"reportit-user": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"styleext": "less"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/reportit-user",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon-16x16.png",
"src/favicon-32x32.png",
"src/favicon-96x96.png",
"src/assets"
],
"styles": [
"src/theme.less",
"src/styles.less"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"en": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputPath": "dist/reportit-user/en",
"baseHref": "/en/",
"i18nFile": "src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "ignore",
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ar": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputPath": "dist/reportit-user/ar",
"baseHref": "/ar/",
"i18nFile": "src/locale/messages.ar.xlf",
"i18nFormat": "xlf",
"i18nLocale": "ar",
"i18nMissingTranslation": "ignore",
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"am": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputPath": "dist/reportit-user/am",
"baseHref": "/am/",
"i18nFile": "src/locale/messages.am.xlf",
"i18nFormat": "xlf",
"i18nLocale": "am",
"i18nMissingTranslation": "ignore",
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ru": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputPath": "dist/reportit-user/ru",
"baseHref": "/ru/",
"i18nFile": "src/locale/messages.ru.xlf",
"i18nFormat": "xlf",
"i18nLocale": "ru",
"i18nMissingTranslation": "ignore",
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "reportit-user:build"
},
"configurations": {
"production": {
"browserTarget": "reportit-user:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "reportit-user:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/theme.less",
"src/styles.less"
],
"scripts": [],
"assets": [
"src/favicon-16x16.png",
"src/favicon-32x32.png",
"src/favicon-96x96.png",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"reportit-user-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "reportit-user:serve"
},
"configurations": {
"production": {
"devServerTarget": "reportit-user:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "reportit-user"
}
Loading

0 comments on commit 9122660

Please sign in to comment.