Skip to content

Commit a910654

Browse files
Import from private Gitlab
0 parents  commit a910654

File tree

729 files changed

+296105
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

729 files changed

+296105
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/public
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# profiling files
12+
chrome-profiler-events.json
13+
speed-measure-plugin.json
14+
15+
# IDEs and editors
16+
/.idea
17+
.project
18+
.classpath
19+
.c9/
20+
*.launch
21+
.settings/
22+
*.sublime-workspace
23+
24+
# IDE - VSCode
25+
.vscode/*
26+
!.vscode/settings.json
27+
!.vscode/tasks.json
28+
!.vscode/launch.json
29+
!.vscode/extensions.json
30+
31+
# misc
32+
/.sass-cache
33+
/connect.lock
34+
/coverage
35+
/libpeerconnection.log
36+
npm-debug.log
37+
yarn-error.log
38+
testem.log
39+
/typings
40+
41+
# System Files
42+
.DS_Store
43+
Thumbs.db
44+
45+
# Lunarc
46+
*.log
47+
48+
# Voice Corpus Maker
49+
repository

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM damienfontaine/lunarc:0.0.5
2+
LABEL maintainer="Damien Fontaine <damien.fontaine@lineolia.net>"
3+
4+
ENV LUNARC_ENV production
5+
6+
ADD . /go/src/gitlab.lineolia.net/meda/voice-corpus-maker
7+
RUN go install gitlab.lineolia.net/meda/voice-corpus-maker
8+
9+
WORKDIR /go/src/gitlab.lineolia.net/meda/voice-corpus-maker
10+
11+
ENTRYPOINT /go/bin/voice-corpus-maker -env=${LUNARC_ENV}

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Voice Corpus Maker
2+
3+
Make your own voice corpus.
4+
5+
## Development
6+
7+
* Golang 1.10.*
8+
* Lunarc 0.0.5
9+
* NPM
10+
11+
## Angular
12+
13+
Lancement des tests unitaires:
14+
```sh
15+
$ ng test
16+
```
17+
18+
Lancement des tests unitaires sans autowatch:
19+
```sh
20+
$ ng test --watch false
21+
```
22+
23+
Lancement des tests d'intégration:
24+
```sh
25+
$ ng e2e
26+
```
27+
28+
Compilation des sources:
29+
```sh
30+
$ ng build
31+
```
32+
33+
Compilation des sources avec autowatch. Les fichiers sont déposés dans le répertoire public et les fichiers JavaScript ont pour prefixe static/.
34+
```sh
35+
$ ng build --output-path public --watch --deploy-url static/
36+
```
37+
38+
## Licence
39+
40+
* https://github.com/mohayonao/inline-worker/
41+
* https://github.com/mattdiamond/Recorderjs

angular.json

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"public": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"styleext": "less"
14+
}
15+
},
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "public",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": "src/polyfills.ts",
24+
"tsConfig": "src/tsconfig.app.json",
25+
"assets": [
26+
"src/favicon.ico",
27+
"src/assets"
28+
],
29+
"styles": [
30+
"src/styles.less"
31+
],
32+
"scripts": []
33+
},
34+
"configurations": {
35+
"production": {
36+
"fileReplacements": [
37+
{
38+
"replace": "src/environments/environment.ts",
39+
"with": "src/environments/environment.prod.ts"
40+
}
41+
],
42+
"optimization": true,
43+
"outputHashing": "all",
44+
"sourceMap": false,
45+
"extractCss": true,
46+
"namedChunks": false,
47+
"aot": true,
48+
"extractLicenses": true,
49+
"vendorChunk": false,
50+
"buildOptimizer": true,
51+
"budgets": [
52+
{
53+
"type": "initial",
54+
"maximumWarning": "2mb",
55+
"maximumError": "5mb"
56+
}
57+
]
58+
}
59+
}
60+
},
61+
"serve": {
62+
"builder": "@angular-devkit/build-angular:dev-server",
63+
"options": {
64+
"browserTarget": "public:build"
65+
},
66+
"configurations": {
67+
"production": {
68+
"browserTarget": "public:build:production"
69+
}
70+
}
71+
},
72+
"extract-i18n": {
73+
"builder": "@angular-devkit/build-angular:extract-i18n",
74+
"options": {
75+
"browserTarget": "public:build"
76+
}
77+
},
78+
"test": {
79+
"builder": "@angular-devkit/build-angular:karma",
80+
"options": {
81+
"main": "src/test.ts",
82+
"polyfills": "src/polyfills.ts",
83+
"tsConfig": "src/tsconfig.spec.json",
84+
"karmaConfig": "src/karma.conf.js",
85+
"styles": [
86+
"src/styles.less",
87+
"node_modules/bootstrap/dist/css/bootstrap.min.css"
88+
],
89+
"scripts": [
90+
"node_modules/jquery/dist/jquery.min.js",
91+
"node_modules/bootstrap/dist/js/bootstrap.js"
92+
],
93+
"assets": [
94+
"src/favicon.ico",
95+
"src/assets"
96+
]
97+
}
98+
},
99+
"lint": {
100+
"builder": "@angular-devkit/build-angular:tslint",
101+
"options": {
102+
"tsConfig": [
103+
"src/tsconfig.app.json",
104+
"src/tsconfig.spec.json"
105+
],
106+
"exclude": [
107+
"**/node_modules/**"
108+
]
109+
}
110+
}
111+
}
112+
},
113+
"public-e2e": {
114+
"root": "e2e/",
115+
"projectType": "application",
116+
"prefix": "",
117+
"architect": {
118+
"e2e": {
119+
"builder": "@angular-devkit/build-angular:protractor",
120+
"options": {
121+
"protractorConfig": "e2e/protractor.conf.js",
122+
"devServerTarget": "public:serve"
123+
},
124+
"configurations": {
125+
"production": {
126+
"devServerTarget": "public:serve:production"
127+
}
128+
}
129+
},
130+
"lint": {
131+
"builder": "@angular-devkit/build-angular:tslint",
132+
"options": {
133+
"tsConfig": "e2e/tsconfig.e2e.json",
134+
"exclude": [
135+
"**/node_modules/**"
136+
]
137+
}
138+
}
139+
}
140+
}
141+
},
142+
"defaultProject": "public"
143+
}

config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
development:
2+
server:
3+
port: 8888
4+
url: http://localhost:8888/
5+
jwt:
6+
key: VCMKey
7+
mongo:
8+
port: 27017
9+
host: 192.168.99.100
10+
database: vcm
11+
test:
12+
server:
13+
port: 8888
14+
url: http://localhost:8888/
15+
jwt:
16+
key: VCMKey
17+
mongo:
18+
port: 27017
19+
host: 192.168.99.100
20+
database: vcm
21+
staging:
22+
server:
23+
port: 8888
24+
url: http://localhost:8888/
25+
jwt:
26+
key: VCMKey
27+
mongo:
28+
port: 27017
29+
host: 192.168.99.100
30+
database: vcm
31+
production:
32+
server:
33+
port: 8888
34+
url: http://localhost:8888/
35+
jwt:
36+
key: VCMKey
37+
mongo:
38+
port: 27017
39+
host: mongo
40+
database: vcm

e2e/protractor.conf.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Protractor configuration file, see link for more information
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
3+
4+
const { SpecReporter } = require('jasmine-spec-reporter');
5+
6+
exports.config = {
7+
allScriptsTimeout: 11000,
8+
specs: [
9+
'./src/**/*.e2e-spec.ts'
10+
],
11+
capabilities: {
12+
'browserName': 'chrome',
13+
chromeOptions: {
14+
args: [ "--headless", "--disable-gpu", "--window-size=800x600", "--no-sandbox" ]
15+
}
16+
},
17+
directConnect: true,
18+
baseUrl: 'http://localhost:4200/',
19+
framework: 'jasmine',
20+
jasmineNodeOpts: {
21+
showColors: true,
22+
defaultTimeoutInterval: 30000,
23+
print: function() {}
24+
},
25+
onPrepare() {
26+
require('ts-node').register({
27+
project: require('path').join(__dirname, './tsconfig.e2e.json')
28+
});
29+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
30+
}
31+
};

e2e/src/app.e2e-spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('workspace-project App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
});

e2e/src/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getTitleText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}

0 commit comments

Comments
 (0)