Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
7c3976d169 | |||
6f92823f56 | |||
dac8ca4be5 | |||
a227973238 | |||
2307e01c81 | |||
852626457f | |||
ce8708266f | |||
4027eedf64 | |||
14314ee394 | |||
44b849bf86 | |||
b985bf1d30 | |||
7f29739ca0 | |||
c453dc9001 | |||
cd4127da73 | |||
ab5f8bf470 | |||
968219384d | |||
dd5ca4b3f1 | |||
3c99bfe922 | |||
4f62bfb622 | |||
5f00526a7c | |||
0c1b9b3345 | |||
b32d64e5f2 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -15,8 +15,6 @@ node_modules/
|
|||||||
|
|
||||||
# builds
|
# builds
|
||||||
dist/
|
dist/
|
||||||
dist_web/
|
dist_*/
|
||||||
dist_serve/
|
|
||||||
dist_ts_web/
|
|
||||||
|
|
||||||
# custom
|
# custom
|
@ -24,13 +24,14 @@ mirror:
|
|||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
snyk:
|
audit:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:snyk
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci command npm install --ignore-scripts
|
- npmci command npm install --ignore-scripts
|
||||||
- npmci command snyk test
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
- npmci command npm audit --audit-level=high
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
29
.vscode/launch.json
vendored
Normal file
29
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "current file",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"args": [
|
||||||
|
"${relativeFile}"
|
||||||
|
],
|
||||||
|
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"protocol": "inspector",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "test.ts",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"args": [
|
||||||
|
"test/test.ts"
|
||||||
|
],
|
||||||
|
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"protocol": "inspector",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"json.schemas": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["/npmextra.json"],
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"npmci": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for npmci"
|
||||||
|
},
|
||||||
|
"gitzone": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for gitzone",
|
||||||
|
"properties": {
|
||||||
|
"projectType": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["website", "element", "service", "npm"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -4,6 +4,7 @@
|
|||||||
"npmAccessLevel": "public"
|
"npmAccessLevel": "public"
|
||||||
},
|
},
|
||||||
"gitzone": {
|
"gitzone": {
|
||||||
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "tsclass",
|
"gitscope": "tsclass",
|
||||||
|
2571
package-lock.json
generated
2571
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "3.0.5",
|
"version": "3.0.16",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "tsbuild"
|
"build": "tsbuild"
|
||||||
@ -24,20 +24,21 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.0.13"
|
"@pushrocks/tapbundle": "^3.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.17",
|
"@gitzone/tsbuild": "^2.1.22",
|
||||||
"@gitzone/tsrun": "^1.2.8",
|
"@gitzone/tsrun": "^1.2.8",
|
||||||
"@gitzone/tstest": "^1.0.27",
|
"@gitzone/tstest": "^1.0.28",
|
||||||
"tslint": "^5.20.0",
|
"tslint": "^6.1.0",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
"ts_web/**/*",
|
"ts_web/**/*",
|
||||||
"dist/**/*",
|
"dist/**/*",
|
||||||
"dist_web/**/*",
|
"dist_*/**/*",
|
||||||
|
"dist_ts/**/*",
|
||||||
"dist_ts_web/**/*",
|
"dist_ts_web/**/*",
|
||||||
"assets/**/*",
|
"assets/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
|
@ -8,7 +8,7 @@ common classes for TypeScript
|
|||||||
* [docs (typedoc)](https://tsclass.gitlab.io/tsclass/)
|
* [docs (typedoc)](https://tsclass.gitlab.io/tsclass/)
|
||||||
|
|
||||||
## Status for master
|
## Status for master
|
||||||
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
||||||
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
[](https://gitlab.com/tsclass/tsclass/commits/master)
|
||||||
[](https://www.npmjs.com/package/@tsclass/tsclass)
|
[](https://www.npmjs.com/package/@tsclass/tsclass)
|
||||||
[](https://snyk.io/test/npm/@tsclass/tsclass)
|
[](https://snyk.io/test/npm/@tsclass/tsclass)
|
||||||
@ -49,7 +49,6 @@ class myOwnInvoice implements IInvoice {
|
|||||||
|
|
||||||
> The modules in bold letters exist as own modules and can be used seperately
|
> The modules in bold letters exist as own modules and can be used seperately
|
||||||
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
||||||
|
@ -19,8 +19,13 @@ export interface IContact {
|
|||||||
address: business.IAddress;
|
address: business.IAddress;
|
||||||
description: string;
|
description: string;
|
||||||
customerNumber?: string;
|
customerNumber?: string;
|
||||||
|
|
||||||
email?: string;
|
email?: string;
|
||||||
|
|
||||||
|
logoUrl?: string;
|
||||||
|
website?: string;
|
||||||
|
facebookUrl?: string;
|
||||||
|
twitterUrl?: string;
|
||||||
|
|
||||||
phone?: string;
|
phone?: string;
|
||||||
fax?: string;
|
fax?: string;
|
||||||
|
|
||||||
|
5
ts/container/container.ts
Normal file
5
ts/container/container.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface IContainer {
|
||||||
|
registryUrl: string;
|
||||||
|
tag: string;
|
||||||
|
version: string;
|
||||||
|
}
|
2
ts/container/index.ts
Normal file
2
ts/container/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export * from './container';
|
||||||
|
export * from './volumemount';
|
4
ts/container/volumemount.ts
Normal file
4
ts/container/volumemount.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IVolumeMount {
|
||||||
|
hostFsPath: string;
|
||||||
|
containerFsPath: string;
|
||||||
|
}
|
@ -1,6 +1,9 @@
|
|||||||
// Business
|
// Business
|
||||||
import * as business from './business';
|
import * as business from './business';
|
||||||
|
|
||||||
|
// Container
|
||||||
|
import * as container from './container';
|
||||||
|
|
||||||
// Finance
|
// Finance
|
||||||
import * as finance from './finance';
|
import * as finance from './finance';
|
||||||
|
|
||||||
@ -13,4 +16,4 @@ import * as general from './general';
|
|||||||
// Network
|
// Network
|
||||||
import * as network from './network';
|
import * as network from './network';
|
||||||
|
|
||||||
export { business, finance, content, general, network };
|
export { business, container, finance, content, general, network };
|
||||||
|
@ -13,8 +13,8 @@ export type TDnsRecordType =
|
|||||||
| 'TXT';
|
| 'TXT';
|
||||||
|
|
||||||
export interface IDnsRecord {
|
export interface IDnsRecord {
|
||||||
chunked?: string[];
|
|
||||||
name: string;
|
name: string;
|
||||||
type: TDnsRecordType;
|
type: TDnsRecordType;
|
||||||
value: string;
|
value: string;
|
||||||
|
dnsSecEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export interface IDnsChallenge {
|
export interface IDnsChallenge {
|
||||||
hostName: string;
|
hostName: string;
|
||||||
challenge: string;
|
challenge: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export * from './cert';
|
|||||||
export * from './dns';
|
export * from './dns';
|
||||||
export * from './dnschallenge';
|
export * from './dnschallenge';
|
||||||
export * from './networknode';
|
export * from './networknode';
|
||||||
|
export * from './request';
|
||||||
export * from './reverseproxy';
|
export * from './reverseproxy';
|
||||||
|
25
ts/network/request.ts
Normal file
25
ts/network/request.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
export interface ISimpleRequest {
|
||||||
|
headers: {};
|
||||||
|
parsedUrl: {
|
||||||
|
hash: string;
|
||||||
|
host: string;
|
||||||
|
hostname: string;
|
||||||
|
href: string;
|
||||||
|
readonly origin: string;
|
||||||
|
password: string;
|
||||||
|
pathname: string;
|
||||||
|
port: string;
|
||||||
|
protocol: string;
|
||||||
|
search: string;
|
||||||
|
readonly searchParams: any;
|
||||||
|
username: string;
|
||||||
|
toString: () => string;
|
||||||
|
toJSON(): () => string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ISimpleResponse {
|
||||||
|
headers: { [key: string]: string };
|
||||||
|
body: string;
|
||||||
|
}
|
||||||
|
export type IRenderFunction = (req: ISimpleRequest) => Promise<ISimpleResponse>;
|
Reference in New Issue
Block a user