intermediate-component-sa 1.1.0 → 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/app.server.js +7 -0
- package/client/css/main.css +1 -0
- package/{src/client → client}/index.html +6 -40
- package/client/js/app.js +1 -0
- package/client/js/shims.js +17 -0
- package/{src/client → client}/tsconfig.json +0 -0
- package/package.json +75 -340
- package/{src/server/config/app.config.ts → server/config/app.config.js} +47 -57
- package/server/config/jwt.config.js +4 -0
- package/{src/server/config/logger.config.ts → server/config/logger.config.js} +142 -161
- package/server/config/mssql.config.js +32 -0
- package/server/config/redis.config.js +8 -0
- package/server/config/server.config.js +12 -0
- package/server/config/templates.config.js +23 -0
- package/server/crypt.js +29 -0
- package/server/customRequest.js +370 -0
- package/server/index.js +125 -0
- package/server/interfaces/cleaner.interface.js +2 -0
- package/server/interfaces/supervisor.interface.js +2 -0
- package/{src/server/routes-centralized.ts → server/routes-centralized.js} +37 -36
- package/server/routes.js +7 -0
- package/server/services/index.js +8 -0
- package/server/services/routes.service.js +18 -0
- package/server/shared/file-manager.js +616 -0
- package/server/shared/http.shared.js +39 -0
- package/server/shared/promises.shared.js +14 -0
- package/server/shared/security.shared.js +52 -0
- package/{src/server → server}/ssl/star_inconcertcc_com.key +0 -0
- package/{src/server → server}/ssl/star_inconcertcc_com.pem +0 -0
- package/CHANGELOG.md +0 -11
- package/README.md +0 -1
- package/build-dev.bat +0 -2
- package/build-prod-aot.bat +0 -2
- package/build-prod-rollup-aot.bat +0 -2
- package/build-prod.bat +0 -2
- package/config.ts +0 -4
- package/gulpfile.ts +0 -172
- package/index.js +0 -12
- package/karma.conf.js +0 -124
- package/postgrator-test.json +0 -9
- package/postgrator.json +0 -9
- package/src/app.server.ts +0 -4
- package/src/client/app/app.component.ts +0 -37
- package/src/client/app/app.html +0 -6
- package/src/client/app/app.module.ts +0 -36
- package/src/client/app/app.routing.ts +0 -7
- package/src/client/app/hot_loader_main.ts +0 -14
- package/src/client/app/main-aot.ts +0 -8
- package/src/client/app/main.ts +0 -8
- package/src/client/app/rxjs-operators.ts +0 -15
- package/src/server/config/jwt.config.ts +0 -4
- package/src/server/config/mssql.config.ts +0 -30
- package/src/server/config/redis.config.ts +0 -10
- package/src/server/config/server.config.ts +0 -20
- package/src/server/config/templates.config.ts +0 -41
- package/src/server/crypt.ts +0 -37
- package/src/server/customRequest.ts +0 -609
- package/src/server/index.ts +0 -231
- package/src/server/interfaces/cleaner.interface.ts +0 -3
- package/src/server/interfaces/supervisor.interface.ts +0 -3
- package/src/server/routes.ts +0 -6
- package/src/server/services/index.ts +0 -10
- package/src/server/services/routes.service.ts +0 -11
- package/src/server/shared/file-manager.ts +0 -1007
- package/src/server/shared/http.shared.ts +0 -49
- package/src/server/shared/promises.shared.ts +0 -13
- package/src/server/shared/security.shared.ts +0 -90
- package/src/server/tsconfig.json +0 -38
- package/tools/build.js.prod.ts +0 -40
- package/tools/config/project.config.ts +0 -718
- package/tools/config.ts +0 -4
- package/tools/database/SchemaZen.exe +0 -0
- package/tools/database/generate-all-data-scripts.bat +0 -32
- package/tools/database/generate-database-scripts.bat +0 -36
- package/tools/debug.ts +0 -17
- package/tools/env/base.ts +0 -8
- package/tools/env/dev.ts +0 -9
- package/tools/env/env-config.interface.ts +0 -1
- package/tools/env/prod.ts +0 -10
- package/tools/manual_typings/project/sample.package.d.ts +0 -3
- package/tools/manual_typings/seed/angular2-hot-loader.d.ts +0 -9
- package/tools/manual_typings/seed/autoprefixer.d.ts +0 -13
- package/tools/manual_typings/seed/colorguard.d.ts +0 -15
- package/tools/manual_typings/seed/connect-livereload.d.ts +0 -5
- package/tools/manual_typings/seed/cssnano.d.ts +0 -18
- package/tools/manual_typings/seed/doiuse.d.ts +0 -16
- package/tools/manual_typings/seed/express-history-api-fallback.d.ts +0 -18
- package/tools/manual_typings/seed/istream.d.ts +0 -10
- package/tools/manual_typings/seed/karma.d.ts +0 -12
- package/tools/manual_typings/seed/merge-stream.d.ts +0 -8
- package/tools/manual_typings/seed/open.d.ts +0 -8
- package/tools/manual_typings/seed/postcss-reporter.d.ts +0 -20
- package/tools/manual_typings/seed/slash.d.ts +0 -5
- package/tools/manual_typings/seed/stylelint.d.ts +0 -16
- package/tools/manual_typings/seed/systemjs-builder.d.ts +0 -10
- package/tools/manual_typings/seed/tildify.d.ts +0 -5
- package/tools/manual_typings/seed/tiny-lr.d.ts +0 -10
- package/tools/manual_typings/seed/walk.d.ts +0 -10
- package/tools/scripts/install.speech-analytic.sh +0 -35
- package/tools/tasks/build.app.server.ts +0 -57
- package/tools/tasks/build.assets.dev.ts +0 -19
- package/tools/tasks/build.assets.prod.ts +0 -31
- package/tools/tasks/build.bundles.app.aot.ts +0 -31
- package/tools/tasks/build.bundles.app.rollup.aot.ts +0 -101
- package/tools/tasks/build.bundles.app.ts +0 -31
- package/tools/tasks/build.bundles.ts +0 -45
- package/tools/tasks/build.database.scripts.runner.ts +0 -137
- package/tools/tasks/build.database.scripts.ts +0 -27
- package/tools/tasks/build.flags.ts +0 -9
- package/tools/tasks/build.fonts.ts +0 -9
- package/tools/tasks/build.html_css.ts +0 -126
- package/tools/tasks/build.index.dev.ts +0 -68
- package/tools/tasks/build.index.prod.ts +0 -64
- package/tools/tasks/build.js.dev.ts +0 -66
- package/tools/tasks/build.js.prod.aot.ts +0 -44
- package/tools/tasks/build.js.prod.rollup.aot.ts +0 -50
- package/tools/tasks/build.js.prod.ts +0 -40
- package/tools/tasks/build.packages.prod.ts +0 -19
- package/tools/tasks/build.server.dev.ts +0 -59
- package/tools/tasks/build.server.prod.ts +0 -31
- package/tools/tasks/build.server.statics.ts +0 -24
- package/tools/tasks/build.skins.ts +0 -51
- package/tools/tasks/build.sme.prod.aot.ts +0 -6
- package/tools/tasks/build.sme.prod.rollup.aot.ts +0 -6
- package/tools/tasks/build.sme.prod.ts +0 -6
- package/tools/tasks/build.tar.prod.ts +0 -17
- package/tools/tasks/build.test.database.scripts.ts +0 -52
- package/tools/tasks/clean.dev.ts +0 -7
- package/tools/tasks/clean.prod.ts +0 -7
- package/tools/tasks/compile.ahead.prod.ts +0 -65
- package/tools/tasks/copy.client.js.prod.rollup.aot.ts +0 -33
- package/tools/tasks/copy.client.js.prod.ts +0 -18
- package/tools/tasks/copy.server.assets.ts +0 -38
- package/tools/tasks/copy.server.js.prod.ts +0 -16
- package/tools/tasks/css-lint.ts +0 -58
- package/tools/tasks/e2e.ts +0 -32
- package/tools/tasks/karma.run.ts +0 -18
- package/tools/tasks/karma.watch.ts +0 -9
- package/tools/tasks/minify.server.statics.ts +0 -52
- package/tools/tasks/server.prod.ts +0 -6
- package/tools/tasks/server.start.ts +0 -6
- package/tools/tasks/test.database.ts +0 -6
- package/tools/tasks/transpile.bundles.rollup.aot.ts +0 -43
- package/tools/tasks/tslint.ts +0 -64
- package/tools/tasks/watch.file.changes.dev.ts +0 -37
- package/tools/tasks/watch.key.press.dev.ts +0 -116
- package/tools/tasks/webdriver.ts +0 -6
- package/tools/utils/project/sample_util.ts +0 -18
- package/tools/utils/project.utils.ts +0 -4
- package/tools/utils/seed/build_optimizer.ts +0 -26
- package/tools/utils/seed/clean.ts +0 -35
- package/tools/utils/seed/code_change_tools.ts +0 -38
- package/tools/utils/seed/karma.start.ts +0 -10
- package/tools/utils/seed/server.ts +0 -43
- package/tools/utils/seed/sme.ts +0 -51
- package/tools/utils/seed/tasks_tools.ts +0 -70
- package/tools/utils/seed/template_locals.ts +0 -64
- package/tools/utils/seed/tsproject.ts +0 -25
- package/tools/utils/seed.utils.ts +0 -11
- package/tools/utils.ts +0 -5
- package/tsconfig.json +0 -33
- package/tslint.json +0 -120
- package/utils.ts +0 -5
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var cors = require("cors");
|
|
4
|
+
function InitHeaders(app) {
|
|
5
|
+
app.use(FrameGuard);
|
|
6
|
+
app.use(HidePoweredBy);
|
|
7
|
+
app.use(XssFilter);
|
|
8
|
+
app.use(IeNoOpen);
|
|
9
|
+
var corsOptions = {
|
|
10
|
+
origin: true,
|
|
11
|
+
credentials: true,
|
|
12
|
+
methods: ['GET', 'POST']
|
|
13
|
+
};
|
|
14
|
+
app.all('/api|auth|public|popup|builder|payments|distributed|static|template|assets|favicon/*', cors(corsOptions));
|
|
15
|
+
}
|
|
16
|
+
exports.InitHeaders = InitHeaders;
|
|
17
|
+
function FrameGuard(req, res, next) {
|
|
18
|
+
if (req.url.match('^\/(builder|payments|popup)\/') || req.url.startsWith('/public/tracking/frame.html') || req.url.startsWith('/public/preview_template_edit/'))
|
|
19
|
+
return next();
|
|
20
|
+
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
|
21
|
+
return next();
|
|
22
|
+
}
|
|
23
|
+
exports.FrameGuard = FrameGuard;
|
|
24
|
+
function HidePoweredBy(req, res, next) {
|
|
25
|
+
res.removeHeader('X-Powered-By');
|
|
26
|
+
return next();
|
|
27
|
+
}
|
|
28
|
+
exports.HidePoweredBy = HidePoweredBy;
|
|
29
|
+
function XssFilter(req, res, next) {
|
|
30
|
+
var matches = /msie\s*(\d+)/i.exec(req.headers['user-agent']);
|
|
31
|
+
var value;
|
|
32
|
+
if (!matches || (parseFloat(matches[1]) >= 9))
|
|
33
|
+
value = '1; mode=block';
|
|
34
|
+
else
|
|
35
|
+
value = '0';
|
|
36
|
+
res.setHeader('X-XSS-Protection', value);
|
|
37
|
+
return next();
|
|
38
|
+
}
|
|
39
|
+
exports.XssFilter = XssFilter;
|
|
40
|
+
function IeNoOpen(req, res, next) {
|
|
41
|
+
res.setHeader('X-Download-Options', 'noopen');
|
|
42
|
+
return next();
|
|
43
|
+
}
|
|
44
|
+
exports.IeNoOpen = IeNoOpen;
|
|
45
|
+
function HstsGuard(req, res, next) {
|
|
46
|
+
var maxAge = '0';
|
|
47
|
+
if (res.locals && res.locals.domain && res.locals.domain.hasHttps)
|
|
48
|
+
maxAge = '31536000';
|
|
49
|
+
res.setHeader('Strict-Transport-Security', 'max-age=' + maxAge);
|
|
50
|
+
return next();
|
|
51
|
+
}
|
|
52
|
+
exports.HstsGuard = HstsGuard;
|
|
File without changes
|
|
File without changes
|
package/CHANGELOG.md
DELETED
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.En las vistas de filtros, el cliente siempre va a enviar su fecha/hora local y su zona horaria como parámetro, en el server esas fechas serán convertidas a UTC-0
|
package/build-dev.bat
DELETED
package/build-prod-aot.bat
DELETED
package/build-prod.bat
DELETED
package/config.ts
DELETED
package/gulpfile.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import * as gulp from 'gulp';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
import * as log from 'fancy-log';
|
|
4
|
-
import * as runSequence from 'gulp4-run-sequence';
|
|
5
|
-
import { loadTasks } from './tools/utils';
|
|
6
|
-
|
|
7
|
-
loadTasks(path.resolve('./tools/tasks'));
|
|
8
|
-
|
|
9
|
-
// --------------
|
|
10
|
-
// Build dev.
|
|
11
|
-
gulp.task('build.dev', (done: any) =>
|
|
12
|
-
runSequence(//'clean.dev',
|
|
13
|
-
'build.assets.dev',
|
|
14
|
-
'build.html_css',
|
|
15
|
-
'build.fonts',
|
|
16
|
-
'build.flags',
|
|
17
|
-
'build.skins',
|
|
18
|
-
'build.js.dev',
|
|
19
|
-
'build.index.dev',
|
|
20
|
-
'build.server.dev',
|
|
21
|
-
'build.app.server',
|
|
22
|
-
'copy.server.assets',
|
|
23
|
-
'build.server.statics',
|
|
24
|
-
done));
|
|
25
|
-
|
|
26
|
-
// --------------
|
|
27
|
-
// Build prod (compilación JIT)
|
|
28
|
-
gulp.task('build.prod', (done: any) =>
|
|
29
|
-
runSequence('clean.prod',
|
|
30
|
-
//'tslint',
|
|
31
|
-
//'css-lint',
|
|
32
|
-
'build.assets.prod',
|
|
33
|
-
'build.skins',
|
|
34
|
-
'build.html_css',
|
|
35
|
-
'copy.client.js.prod',
|
|
36
|
-
'copy.server.js.prod',
|
|
37
|
-
'build.js.prod',
|
|
38
|
-
'build.bundles',
|
|
39
|
-
'build.bundles.app',
|
|
40
|
-
'build.index.prod',
|
|
41
|
-
'build.server.prod',
|
|
42
|
-
'build.app.server',
|
|
43
|
-
'copy.server.assets',
|
|
44
|
-
'build.packages.prod',
|
|
45
|
-
'build.server.statics',
|
|
46
|
-
'minify.server.statics',
|
|
47
|
-
'build.tar.prod',
|
|
48
|
-
//'build.database.scripts',
|
|
49
|
-
done));
|
|
50
|
-
|
|
51
|
-
// --------------
|
|
52
|
-
// Build prod (compilación AOT)
|
|
53
|
-
gulp.task('build.prod.aot', (done: any) =>
|
|
54
|
-
runSequence('clean.prod',
|
|
55
|
-
//'tslint',
|
|
56
|
-
//'css-lint',
|
|
57
|
-
'build.assets.prod',
|
|
58
|
-
'build.fonts',
|
|
59
|
-
'build.flags',
|
|
60
|
-
'build.skins',
|
|
61
|
-
'build.html_css',
|
|
62
|
-
'copy.client.js.prod',
|
|
63
|
-
'copy.server.js.prod',
|
|
64
|
-
'compile.ahead.prod',
|
|
65
|
-
'build.js.prod.aot',
|
|
66
|
-
'build.bundles',
|
|
67
|
-
'build.bundles.app.aot',
|
|
68
|
-
'build.index.prod',
|
|
69
|
-
'build.server.prod',
|
|
70
|
-
'build.app.server',
|
|
71
|
-
'copy.server.assets',
|
|
72
|
-
'build.packages.prod',
|
|
73
|
-
'build.server.statics',
|
|
74
|
-
'minify.server.statics',
|
|
75
|
-
'build.tar.prod',
|
|
76
|
-
'build.database.scripts',
|
|
77
|
-
done));
|
|
78
|
-
|
|
79
|
-
// --------------
|
|
80
|
-
// Build prod (compilación AOT y rollup)
|
|
81
|
-
gulp.task('build.prod.rollup.aot', (done: any) =>
|
|
82
|
-
runSequence('clean.prod',
|
|
83
|
-
//'tslint',
|
|
84
|
-
//'css-lint',
|
|
85
|
-
'build.assets.prod',
|
|
86
|
-
'build.fonts',
|
|
87
|
-
'build.flags',
|
|
88
|
-
'build.skins',
|
|
89
|
-
'build.html_css',
|
|
90
|
-
'copy.client.js.prod.rollup.aot',
|
|
91
|
-
'copy.server.js.prod',
|
|
92
|
-
'compile.ahead.prod',
|
|
93
|
-
'build.js.prod.rollup.aot',
|
|
94
|
-
'build.bundles',
|
|
95
|
-
'build.bundles.app.rollup.aot',
|
|
96
|
-
'transpile.bundles.rollup.aot',
|
|
97
|
-
'build.index.prod',
|
|
98
|
-
'build.server.prod',
|
|
99
|
-
'build.app.server',
|
|
100
|
-
'copy.server.assets',
|
|
101
|
-
'build.packages.prod',
|
|
102
|
-
'build.server.statics',
|
|
103
|
-
'minify.server.statics',
|
|
104
|
-
'build.tar.prod',
|
|
105
|
-
'build.database.scripts',
|
|
106
|
-
done));
|
|
107
|
-
|
|
108
|
-
// --------------
|
|
109
|
-
// Build prod (compilación JIT) y análisis del espacio usado en el bundle
|
|
110
|
-
gulp.task('sme.prod', (done: any) =>
|
|
111
|
-
runSequence('build.prod',
|
|
112
|
-
'build.sme.prod',
|
|
113
|
-
done));
|
|
114
|
-
|
|
115
|
-
// --------------
|
|
116
|
-
// Build prod (compilación AOT) y análisis del espacio usado en el bundle
|
|
117
|
-
gulp.task('sme.prod.aot', (done: any) =>
|
|
118
|
-
runSequence('build.prod.aot',
|
|
119
|
-
'build.sme.prod.aot',
|
|
120
|
-
done));
|
|
121
|
-
|
|
122
|
-
// --------------
|
|
123
|
-
// Build prod (compilación AOT y rollup) y análisis del espacio usado en el bundle
|
|
124
|
-
gulp.task('sme.prod.rollup.aot', (done: any) =>
|
|
125
|
-
runSequence('build.prod.rollup.aot',
|
|
126
|
-
'build.sme.prod.rollup.aot',
|
|
127
|
-
done));
|
|
128
|
-
|
|
129
|
-
// --------------
|
|
130
|
-
// Serve dev and wait for ENTER to rebuild
|
|
131
|
-
gulp.task('serve.dev', (done: any) =>
|
|
132
|
-
runSequence('build.dev',
|
|
133
|
-
'server.start',
|
|
134
|
-
'watch.key.press.dev',
|
|
135
|
-
done));
|
|
136
|
-
|
|
137
|
-
// --------------
|
|
138
|
-
// Serve dev and watch for file changes to rebuild
|
|
139
|
-
gulp.task('serve.watch.dev', (done: any) =>
|
|
140
|
-
runSequence('build.dev',
|
|
141
|
-
'server.start',
|
|
142
|
-
'watch.file.changes.dev',
|
|
143
|
-
done));
|
|
144
|
-
|
|
145
|
-
// --------------
|
|
146
|
-
// Serve prod
|
|
147
|
-
gulp.task('serve.prod', (done: any) =>
|
|
148
|
-
runSequence('build.prod',
|
|
149
|
-
'server.prod',
|
|
150
|
-
done));
|
|
151
|
-
|
|
152
|
-
// --------------
|
|
153
|
-
// Aux task for build process testing.
|
|
154
|
-
gulp.task('aux', (done: any) =>
|
|
155
|
-
runSequence(//'build.bundles.app',
|
|
156
|
-
'build.bundles',
|
|
157
|
-
'build.bundles.app.aot',
|
|
158
|
-
done));
|
|
159
|
-
|
|
160
|
-
// --------------
|
|
161
|
-
// Clean dev that will only run once
|
|
162
|
-
// this prevents karma watchers from being broken when directories are deleted
|
|
163
|
-
let firstRun = true;
|
|
164
|
-
gulp.task('clean.once', (done: any) => {
|
|
165
|
-
if (firstRun) {
|
|
166
|
-
firstRun = false;
|
|
167
|
-
runSequence('clean.dev', done);
|
|
168
|
-
} else {
|
|
169
|
-
log('Skipping clean on rebuild');
|
|
170
|
-
done();
|
|
171
|
-
}
|
|
172
|
-
});
|
package/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
let msurls = ["http://example.org"]
|
|
2
|
-
let request = require ("request-promise-native")
|
|
3
|
-
|
|
4
|
-
async function doRequests () {
|
|
5
|
-
return await (Promise.all (
|
|
6
|
-
msurls.map (async msurl => await request (msurl)))
|
|
7
|
-
)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
exports.printMsg = function() {
|
|
11
|
-
doRequests (). then (msresult => console.log (msresult))
|
|
12
|
-
}
|
package/karma.conf.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
// Karma configuration
|
|
2
|
-
// Generated on Wed Jul 15 2015 09:44:02 GMT+0200 (Romance Daylight Time)
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
var argv = require('yargs').argv;
|
|
6
|
-
|
|
7
|
-
module.exports = function(config) {
|
|
8
|
-
config.set({
|
|
9
|
-
|
|
10
|
-
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
11
|
-
basePath: './',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// frameworks to use
|
|
15
|
-
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
|
16
|
-
frameworks: ['jasmine'],
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// list of files / patterns to load in the browser
|
|
20
|
-
files: [
|
|
21
|
-
// Polyfills.
|
|
22
|
-
'node_modules/core-js/client/shim.min.js',
|
|
23
|
-
|
|
24
|
-
// System.js for module loading
|
|
25
|
-
'node_modules/systemjs/dist/system.src.js',
|
|
26
|
-
|
|
27
|
-
// Zone.js dependencies
|
|
28
|
-
'node_modules/zone.js/dist/zone.js',
|
|
29
|
-
'node_modules/zone.js/dist/jasmine-patch.js',
|
|
30
|
-
'node_modules/zone.js/dist/async-test.js',
|
|
31
|
-
'node_modules/zone.js/dist/fake-async-test.js',
|
|
32
|
-
|
|
33
|
-
// RxJs.
|
|
34
|
-
{ pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false },
|
|
35
|
-
{ pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false },
|
|
36
|
-
{ pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: false },
|
|
37
|
-
|
|
38
|
-
// paths loaded via module imports
|
|
39
|
-
// Angular itself
|
|
40
|
-
{ pattern: 'node_modules/@angular/**/*.js', included: false, watched: true },
|
|
41
|
-
|
|
42
|
-
{ pattern: 'dist/dev/**/*.js', included: false, watched: true },
|
|
43
|
-
{ pattern: 'dist/dev/**/*.html', included: false, watched: true, served: true },
|
|
44
|
-
{ pattern: 'dist/dev/**/*.css', included: false, watched: true, served: true },
|
|
45
|
-
{ pattern: 'node_modules/systemjs/dist/system-polyfills.js', included: false, watched: false }, // PhantomJS2 (and possibly others) might require it
|
|
46
|
-
|
|
47
|
-
// suppress annoying 404 warnings for resources, images, etc.
|
|
48
|
-
{ pattern: 'dist/dev/assets/**/*', watched: false, included: false, served: true },
|
|
49
|
-
|
|
50
|
-
'test-main.js'
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
// must go along with above, suppress annoying 404 warnings.
|
|
54
|
-
proxies: {
|
|
55
|
-
'/assets/': '/base/dist/dev/assets/'
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
// list of files to exclude
|
|
59
|
-
exclude: [
|
|
60
|
-
'node_modules/**/*spec.js'
|
|
61
|
-
],
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// preprocess matching files before serving them to the browser
|
|
65
|
-
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
|
66
|
-
|
|
67
|
-
// test results reporter to use
|
|
68
|
-
// possible values: 'dots', 'progress'
|
|
69
|
-
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
70
|
-
reporters: ['mocha'],
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// web server port
|
|
74
|
-
port: 9876,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// enable / disable colors in the output (reporters and logs)
|
|
78
|
-
colors: true,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// level of logging
|
|
82
|
-
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
83
|
-
logLevel: config.LOG_INFO,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// enable / disable watching file and executing tests whenever any file changes
|
|
87
|
-
autoWatch: true,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
// start these browsers
|
|
91
|
-
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
|
92
|
-
browsers: [
|
|
93
|
-
'Chrome'
|
|
94
|
-
],
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
customLaunchers: {
|
|
98
|
-
Chrome_travis_ci: {
|
|
99
|
-
base: 'Chrome',
|
|
100
|
-
flags: ['--no-sandbox']
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
// Continuous Integration mode
|
|
105
|
-
// if true, Karma captures browsers, runs the tests and exits
|
|
106
|
-
singleRun: false,
|
|
107
|
-
|
|
108
|
-
// Passing command line arguments to tests
|
|
109
|
-
client: {
|
|
110
|
-
files: argv.files
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
if (process.env.APPVEYOR) {
|
|
115
|
-
config.browsers = ['IE'];
|
|
116
|
-
config.singleRun = true;
|
|
117
|
-
config.browserNoActivityTimeout = 90000; // Note: default value (10000) is not enough
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (process.env.TRAVIS || process.env.CIRCLECI) {
|
|
121
|
-
config.browsers = ['Chrome_travis_ci'];
|
|
122
|
-
config.singleRun = true;
|
|
123
|
-
}
|
|
124
|
-
};
|
package/postgrator-test.json
DELETED
package/postgrator.json
DELETED
package/src/app.server.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ViewContainerRef, NgModule } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { AuthHttp, AuthConfig, AUTH_PROVIDERS } from 'angular2-jwt';
|
|
4
|
-
import './rxjs-operators';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
moduleId: module.id,
|
|
8
|
-
selector: 'app-cmp',
|
|
9
|
-
templateUrl: 'app.html',
|
|
10
|
-
encapsulation: ViewEncapsulation.None
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
export class AppComponent {
|
|
14
|
-
|
|
15
|
-
// Para arbol de inyeccion de |gury
|
|
16
|
-
private path: string = '';
|
|
17
|
-
|
|
18
|
-
// Opciones para las notificaciones
|
|
19
|
-
private notificationOpts = {
|
|
20
|
-
timeOut: 5000,
|
|
21
|
-
lastOnBottom: true,
|
|
22
|
-
clickToClose: true,
|
|
23
|
-
maxLength: 0,
|
|
24
|
-
maxStack: 7,
|
|
25
|
-
showProgressBar: true,
|
|
26
|
-
pauseOnHover: true
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
public constructor(
|
|
30
|
-
private router: Router
|
|
31
|
-
) {
|
|
32
|
-
// Para Augury
|
|
33
|
-
router.events.subscribe((val: any) => {
|
|
34
|
-
this.path = val.url;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
package/src/client/app/app.html
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<a [routerLink]="['/']"></a>
|
|
2
|
-
<router-outlet></router-outlet>
|
|
3
|
-
<modal-cmp (onLoaded)="OnModalLoaded($event)"></modal-cmp>
|
|
4
|
-
<modal-generic-cmp (onLoaded)="OnModalGenericLoaded($event)"></modal-generic-cmp>
|
|
5
|
-
<loading-cmp (onLoaded)="OnLoadingLoaded($event)"></loading-cmp>
|
|
6
|
-
<simple-notifications [options]="notificationOpts"></simple-notifications>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule, APP_BASE_HREF } from '@angular/common';
|
|
3
|
-
import { BrowserModule, HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
|
|
4
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
|
-
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
6
|
-
import { HttpModule, JsonpModule } from '@angular/http';
|
|
7
|
-
import { Ng2BootstrapModule } from 'ngx-bootstrap';
|
|
8
|
-
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
-
import { AuthHttp, provideAuth } from 'angular2-jwt';
|
|
10
|
-
import { ClipboardModule } from 'ngx-clipboard';
|
|
11
|
-
import { SimpleNotificationsModule } from 'angular2-notifications';
|
|
12
|
-
import { MaterialModule } from '@angular/material';
|
|
13
|
-
import { TreeModule } from 'ng2-tree';
|
|
14
|
-
import { FileDropDirective } from 'ng2-file-upload';
|
|
15
|
-
declare let Hammer: any;
|
|
16
|
-
|
|
17
|
-
// Componentes base.
|
|
18
|
-
import { AppComponent } from './app.component';
|
|
19
|
-
|
|
20
|
-
// Configuraciones del hammerjs (manejo pantalla tactil).
|
|
21
|
-
export class MyHammerConfig extends HammerGestureConfig {
|
|
22
|
-
overrides = <any>{
|
|
23
|
-
swipe: {
|
|
24
|
-
velocity: 0.3,
|
|
25
|
-
threshold: 10
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Hack para que el hammer no me deshabilite el user-select (seleccionar texto).
|
|
31
|
-
delete Hammer.defaults.cssProps.userSelect;
|
|
32
|
-
|
|
33
|
-
// Para que funcionen los scroll touch.
|
|
34
|
-
Hammer.defaults.touchAction = 'auto';
|
|
35
|
-
|
|
36
|
-
export class AppModule { }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Hot loading is temporary disabled
|
|
2
|
-
//
|
|
3
|
-
// import { HashLocationStrategy, HashLocationStrategy } from '@angular/common';
|
|
4
|
-
// import { provide } from '@angular/core';
|
|
5
|
-
// import { ROUTER_PROVIDERS } from '@angular/router';
|
|
6
|
-
//import { AppComponent } from './base';
|
|
7
|
-
|
|
8
|
-
// System.import('//localhost:<%= HOT_LOADER_PORT %>/ng2-hot-loader')
|
|
9
|
-
// .then(loader => {
|
|
10
|
-
// loader.ng2HotLoaderBootstrap(AppComponent, [
|
|
11
|
-
// ROUTER_PROVIDERS,
|
|
12
|
-
// provide(LocationStrategy, { useClass: HashLocationStrategy })
|
|
13
|
-
// ]);
|
|
14
|
-
// });
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { platformBrowser } from '@angular/platform-browser';
|
|
3
|
-
|
|
4
|
-
import { AppModuleNgFactory } from './app.module.ngfactory';
|
|
5
|
-
|
|
6
|
-
if (<string>'<%= ENV %>' === 'prod') { enableProdMode(); }
|
|
7
|
-
|
|
8
|
-
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
|
package/src/client/app/main.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
-
|
|
4
|
-
import { AppModule } from './app.module';
|
|
5
|
-
|
|
6
|
-
if (<string>'<%= ENV %>' === 'prod') { enableProdMode(); }
|
|
7
|
-
|
|
8
|
-
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// import 'rxjs/Rx'; // adds ALL RxJS statics & operators to Observable
|
|
2
|
-
|
|
3
|
-
// See node_module/rxjs/Rxjs.js
|
|
4
|
-
// Import just the rxjs statics and operators we need for THIS app.
|
|
5
|
-
|
|
6
|
-
// Statics
|
|
7
|
-
import 'rxjs/add/observable/throw';
|
|
8
|
-
|
|
9
|
-
// Operators
|
|
10
|
-
import 'rxjs/add/operator/catch';
|
|
11
|
-
import 'rxjs/add/operator/debounceTime';
|
|
12
|
-
import 'rxjs/add/operator/distinctUntilChanged';
|
|
13
|
-
import 'rxjs/add/operator/map';
|
|
14
|
-
import 'rxjs/add/operator/switchMap';
|
|
15
|
-
import 'rxjs/add/operator/toPromise';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export const MSSQL_HOST = '192.168.2.199';
|
|
2
|
-
export const MSSQL_PORT = 1433;
|
|
3
|
-
export const MSSQL_USER = '';
|
|
4
|
-
export const MSSQL_PASSWORD = '';
|
|
5
|
-
export const MSSQL_DATABASE = 'Testing_Billing';
|
|
6
|
-
export const MSSQL_CONN_TIMEOUT = 30 * 1000;
|
|
7
|
-
export const MSSQL_REQ_TIMEOUT = 300 * 1000;
|
|
8
|
-
export const MSSQL_POOL_MIN = 0;
|
|
9
|
-
export const MSSQL_POOL_MAX = 50;
|
|
10
|
-
export const MSSQL_POOL_IDLE_TIMEOUT = 24 * 60 * 60 * 1000;
|
|
11
|
-
export const MSSQL_ENCRYPT = false;
|
|
12
|
-
export const MSSQL_USE_UTC = true;
|
|
13
|
-
export const MSSQL_CONFIG = {
|
|
14
|
-
user: MSSQL_USER,
|
|
15
|
-
password: MSSQL_PASSWORD,
|
|
16
|
-
server: MSSQL_HOST,
|
|
17
|
-
database: MSSQL_DATABASE,
|
|
18
|
-
port: MSSQL_PORT,
|
|
19
|
-
connectionTimeout: MSSQL_CONN_TIMEOUT,
|
|
20
|
-
requestTimeout: MSSQL_REQ_TIMEOUT,
|
|
21
|
-
pool: {
|
|
22
|
-
max: MSSQL_POOL_MAX,
|
|
23
|
-
min: MSSQL_POOL_MIN,
|
|
24
|
-
idleTimeoutMillis: MSSQL_POOL_IDLE_TIMEOUT
|
|
25
|
-
},
|
|
26
|
-
options: {
|
|
27
|
-
encrypt: MSSQL_ENCRYPT,
|
|
28
|
-
useUTC: MSSQL_USE_UTC
|
|
29
|
-
}
|
|
30
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Parámetros de configuracion para el redis
|
|
2
|
-
export const REDIS_OPTIONS: any = {
|
|
3
|
-
prefix: 'inconcertCache:'
|
|
4
|
-
};
|
|
5
|
-
// Tiempo en segundos que se mantendran las sesiones en cache
|
|
6
|
-
export const REDIS_SESSION_PERSISTENCE: number = 7 * 24 * 60 * 60;
|
|
7
|
-
// Tiempo en segundos que se mantendran los datos en cache
|
|
8
|
-
export const REDIS_DATA_PERSISTENCE: number = 60 * 60;
|
|
9
|
-
// Tiempo en segundos que se mantendran los datos en cache para reprocesados
|
|
10
|
-
export const REDIS_DATA_PERSISTENCE_RETRY: number = 10 * 60;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as path from 'path';
|
|
2
|
-
|
|
3
|
-
// Modo del servicio (dev, prod, test)
|
|
4
|
-
export const SERVER_MODE: string = <string>'<%= ENV %>';
|
|
5
|
-
// HTTP habilitado
|
|
6
|
-
export const HTTP_ENABLED: boolean = true;
|
|
7
|
-
// Host de listen para HTTP
|
|
8
|
-
export const HTTP_BINDING_HOST: string = '0.0.0.0';
|
|
9
|
-
// Puerto de listen para HTTP
|
|
10
|
-
export const HTTP_BINDING_PORT: number = <number>+('<%= APP_SERVER_PORT %>');
|
|
11
|
-
// HTTPS habilitado
|
|
12
|
-
export const HTTPS_ENABLED: boolean = false;
|
|
13
|
-
// Host de listen para HTTPS
|
|
14
|
-
export const HTTPS_BINDING_HOST: string = '0.0.0.0';
|
|
15
|
-
// Puerto de listen para HTTPS
|
|
16
|
-
export const HTTPS_BINDING_PORT: number = 443;
|
|
17
|
-
// Clave para HTTPS
|
|
18
|
-
export const HTTPS_KEY: string = path.resolve(__dirname, '../ssl/star_inconcertcc_com.key');
|
|
19
|
-
// Certificado para HTTPS
|
|
20
|
-
export const HTTPS_CERT: string = path.resolve(__dirname, '../ssl/star_inconcertcc_com.pem');
|