@sigmaott/base-library-next 2.1.9
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/README.md +1 -0
- package/locales/en.yaml +289 -0
- package/locales/vi.yaml +294 -0
- package/nuxt.config.ts +18 -0
- package/package.json +33 -0
- package/public/routes.json +34 -0
- package/src/api/axios.ts +3 -0
- package/src/api/index.ts +86 -0
- package/src/api-client-library/.openapi-generator/FILES +20 -0
- package/src/api-client-library/.openapi-generator/VERSION +1 -0
- package/src/api-client-library/.openapi-generator-ignore +23 -0
- package/src/api-client-library/api/health-api.ts +119 -0
- package/src/api-client-library/api/presets-api.ts +599 -0
- package/src/api-client-library/api/profiles-api.ts +676 -0
- package/src/api-client-library/api.ts +20 -0
- package/src/api-client-library/base.ts +72 -0
- package/src/api-client-library/common.ts +150 -0
- package/src/api-client-library/configuration.ts +101 -0
- package/src/api-client-library/git_push.sh +57 -0
- package/src/api-client-library/index.ts +18 -0
- package/src/api-client-library/models/create-preset-dto.ts +223 -0
- package/src/api-client-library/models/create-profile-dto.ts +45 -0
- package/src/api-client-library/models/health-controller-get-health200-response-info-value.ts +32 -0
- package/src/api-client-library/models/health-controller-get-health200-response.ts +51 -0
- package/src/api-client-library/models/health-controller-get-health503-response.ts +51 -0
- package/src/api-client-library/models/index.ts +7 -0
- package/src/api-client-library/models/update-preset-dto.ts +223 -0
- package/src/api-client-library/models/update-profile-dto.ts +45 -0
- package/src/components/MediaSelection.vue +40 -0
- package/src/components/PresetModify.vue +154 -0
- package/src/components/PresetTable.vue +114 -0
- package/src/components/ProfileAllList.vue +137 -0
- package/src/components/ProfileFormModal.vue +79 -0
- package/src/components/ProfileModify.vue +152 -0
- package/src/components/ProfileTable.vue +68 -0
- package/src/components/WatermarkDraggableItem.vue +88 -0
- package/src/components/channel/ConfigWatermarkItem.vue +239 -0
- package/src/components/channel/WatermarkPreview.vue +19 -0
- package/src/components/common/Vue3DraggableResizable/Container.vue +71 -0
- package/src/components/common/Vue3DraggableResizable/index.vue +1327 -0
- package/src/components/common/Vue3DraggableResizable/utils/dom.js +63 -0
- package/src/components/common/Vue3DraggableResizable/utils/fns.js +37 -0
- package/src/components/common/VueDraggableResizable/dom.js +63 -0
- package/src/components/common/VueDraggableResizable/fns.js +37 -0
- package/src/components/common/VueDraggableResizable/index.vue +958 -0
- package/src/components/preset/ConfigItem.vue +956 -0
- package/src/components/profile/ConfigItem.vue +765 -0
- package/src/components/profile/TableColumns.vue +137 -0
- package/src/components/shared/AudioInfoViewer.vue +101 -0
- package/src/components/shared/MediaInfoViewer.vue +249 -0
- package/src/components/shared/MediaInfoViewerSmall.vue +105 -0
- package/src/components/shared/PopoverProfile.vue +17 -0
- package/src/components/shared/VideoInfoViewer.vue +136 -0
- package/src/components/shared/fileSizeFilter.ts +26 -0
- package/src/composables/preset.ts +141 -0
- package/src/public/apple-touch-icon-180x180.png +0 -0
- package/src/public/build-time.json +1 -0
- package/src/public/favicon.ico +0 -0
- package/src/public/favicon.svg +15 -0
- package/src/public/logo.png +0 -0
- package/src/public/logo.svg +9 -0
- package/src/public/maskable-icon-512x512.png +0 -0
- package/src/public/pwa-192x192.png +0 -0
- package/src/public/pwa-512x512.png +0 -0
- package/src/public/pwa-64x64.png +0 -0
- package/src/public/routes.json +87 -0
- package/src/utils/common.ts +175 -0
- package/src/utils/config.ts +19 -0
- package/src/utils/preset.ts +353 -0
- package/src/utils/profile.ts +30 -0
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export * from './api/health-api';
|
|
18
|
+
export * from './api/presets-api';
|
|
19
|
+
export * from './api/profiles-api';
|
|
20
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
// Some imports not used depending on template conditions
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
20
|
+
import globalAxios from 'axios';
|
|
21
|
+
|
|
22
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const COLLECTION_FORMATS = {
|
|
29
|
+
csv: ",",
|
|
30
|
+
ssv: " ",
|
|
31
|
+
tsv: "\t",
|
|
32
|
+
pipes: "|",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface RequestArgs
|
|
39
|
+
*/
|
|
40
|
+
export interface RequestArgs {
|
|
41
|
+
url: string;
|
|
42
|
+
options: AxiosRequestConfig;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class BaseAPI
|
|
49
|
+
*/
|
|
50
|
+
export class BaseAPI {
|
|
51
|
+
protected configuration: Configuration | undefined;
|
|
52
|
+
|
|
53
|
+
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
+
if (configuration) {
|
|
55
|
+
this.configuration = configuration;
|
|
56
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
* @class RequiredError
|
|
65
|
+
* @extends {Error}
|
|
66
|
+
*/
|
|
67
|
+
export class RequiredError extends Error {
|
|
68
|
+
constructor(public field: string, msg?: string) {
|
|
69
|
+
super(msg);
|
|
70
|
+
this.name = "RequiredError"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from "./configuration";
|
|
17
|
+
import type { RequestArgs } from "./base";
|
|
18
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
+
import { RequiredError } from "./base";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
|
+
if (paramValue === null || paramValue === undefined) {
|
|
34
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
|
+
if (configuration && configuration.apiKey) {
|
|
44
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45
|
+
? await configuration.apiKey(keyParamName)
|
|
46
|
+
: await configuration.apiKey;
|
|
47
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
57
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
|
+
if (configuration && configuration.accessToken) {
|
|
67
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
|
+
? await configuration.accessToken()
|
|
69
|
+
: await configuration.accessToken;
|
|
70
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
|
+
if (configuration && configuration.accessToken) {
|
|
80
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
|
+
? await configuration.accessToken(name, scopes)
|
|
82
|
+
: await configuration.accessToken;
|
|
83
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
|
+
if (parameter == null) return;
|
|
89
|
+
if (typeof parameter === "object") {
|
|
90
|
+
if (Array.isArray(parameter)) {
|
|
91
|
+
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
|
+
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (urlSearchParams.has(key)) {
|
|
101
|
+
urlSearchParams.append(key, parameter);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
urlSearchParams.set(key, parameter);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
|
+
const searchParams = new URLSearchParams(url.search);
|
|
115
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
116
|
+
url.search = searchParams.toString();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
|
+
const nonString = typeof value !== 'string';
|
|
125
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
|
+
: nonString;
|
|
128
|
+
return needsSerialization
|
|
129
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
+
: (value || "");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
137
|
+
export const toPathString = function (url: URL) {
|
|
138
|
+
return url.pathname + url.search + url.hash
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
145
|
+
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
148
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface ConfigurationParameters {
|
|
17
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
+
basePath?: string;
|
|
22
|
+
baseOptions?: any;
|
|
23
|
+
formDataCtor?: new () => any;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class Configuration {
|
|
27
|
+
/**
|
|
28
|
+
* parameter for apiKey security
|
|
29
|
+
* @param name security name
|
|
30
|
+
* @memberof Configuration
|
|
31
|
+
*/
|
|
32
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
33
|
+
/**
|
|
34
|
+
* parameter for basic security
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Configuration
|
|
38
|
+
*/
|
|
39
|
+
username?: string;
|
|
40
|
+
/**
|
|
41
|
+
* parameter for basic security
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
password?: string;
|
|
47
|
+
/**
|
|
48
|
+
* parameter for oauth2 security
|
|
49
|
+
* @param name security name
|
|
50
|
+
* @param scopes oauth2 scope
|
|
51
|
+
* @memberof Configuration
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* override base path
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Configuration
|
|
59
|
+
*/
|
|
60
|
+
basePath?: string;
|
|
61
|
+
/**
|
|
62
|
+
* base options for axios calls
|
|
63
|
+
*
|
|
64
|
+
* @type {any}
|
|
65
|
+
* @memberof Configuration
|
|
66
|
+
*/
|
|
67
|
+
baseOptions?: any;
|
|
68
|
+
/**
|
|
69
|
+
* The FormData constructor that will be used to create multipart form data
|
|
70
|
+
* requests. You can inject this here so that execution environments that
|
|
71
|
+
* do not support the FormData class can still run the generated client.
|
|
72
|
+
*
|
|
73
|
+
* @type {new () => FormData}
|
|
74
|
+
*/
|
|
75
|
+
formDataCtor?: new () => any;
|
|
76
|
+
|
|
77
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
78
|
+
this.apiKey = param.apiKey;
|
|
79
|
+
this.username = param.username;
|
|
80
|
+
this.password = param.password;
|
|
81
|
+
this.accessToken = param.accessToken;
|
|
82
|
+
this.basePath = param.basePath;
|
|
83
|
+
this.baseOptions = param.baseOptions;
|
|
84
|
+
this.formDataCtor = param.formDataCtor;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Check if the given MIME is a JSON MIME.
|
|
89
|
+
* JSON MIME examples:
|
|
90
|
+
* application/json
|
|
91
|
+
* application/json; charset=UTF8
|
|
92
|
+
* APPLICATION/JSON
|
|
93
|
+
* application/vnd.company+json
|
|
94
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
95
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
96
|
+
*/
|
|
97
|
+
public isJsonMime(mime: string): boolean {
|
|
98
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
99
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
export * from "./models";
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreatePresetDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePresetDto {
|
|
23
|
+
/**
|
|
24
|
+
* phân loại preset
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreatePresetDto
|
|
27
|
+
*/
|
|
28
|
+
'type'?: CreatePresetDtoTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Bộ mã của video
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePresetDto
|
|
33
|
+
*/
|
|
34
|
+
'codec'?: CreatePresetDtoCodecEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Giá trị bitrate
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof CreatePresetDto
|
|
39
|
+
*/
|
|
40
|
+
'bitrate'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* mô tả tuỳ chỉnh của đầu ra
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreatePresetDto
|
|
45
|
+
*/
|
|
46
|
+
'description'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreatePresetDto
|
|
51
|
+
*/
|
|
52
|
+
'options'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* audio only
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof CreatePresetDto
|
|
57
|
+
*/
|
|
58
|
+
'sampleRate'?: CreatePresetDtoSampleRateEnum;
|
|
59
|
+
/**
|
|
60
|
+
* audio only
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof CreatePresetDto
|
|
63
|
+
*/
|
|
64
|
+
'channel'?: CreatePresetDtoChannelEnum;
|
|
65
|
+
/**
|
|
66
|
+
* audio only
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreatePresetDto
|
|
69
|
+
*/
|
|
70
|
+
'profile'?: CreatePresetDtoProfileEnum;
|
|
71
|
+
/**
|
|
72
|
+
* video only
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreatePresetDto
|
|
75
|
+
*/
|
|
76
|
+
'videoProfile'?: CreatePresetDtoVideoProfileEnum;
|
|
77
|
+
/**
|
|
78
|
+
* audio only thay đổi volume từ luồng gốc: + \"+5dB\", \"-10dB\": thay đổi 1 lượng) + 0.5, 2 : giảm 1 nửa, gấp đôi + \"loudnorm\": tự động theo chuẩn EBU R128
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreatePresetDto
|
|
81
|
+
*/
|
|
82
|
+
'volume'?: CreatePresetDtoVolumeEnum;
|
|
83
|
+
/**
|
|
84
|
+
* video only. Giá trị khung hình trên giây (Frame per second). Giá trị này không thể lớn hơn giá trị fps của luồng đầu vào
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof CreatePresetDto
|
|
87
|
+
*/
|
|
88
|
+
'fps'?: number;
|
|
89
|
+
/**
|
|
90
|
+
* video only. Giá trị độ cao của video của luồng đầu ra, dựa trên pixel. Đối với phần lớn bộ mã video bạn có thể để trống, chiều cao của video sẽ tương ứng với nguồn đầu vào. Tuy nhiên, việc này không được khuyến khích
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof CreatePresetDto
|
|
93
|
+
*/
|
|
94
|
+
'height'?: number;
|
|
95
|
+
/**
|
|
96
|
+
* video only. Giá trị độ rộng của video của luồng đầu ra, dựa trên pixel. Đối với phần lớn bộ mã video bạn có thể để trống, chiều rộng của video sẽ tương ứng với nguồn đầu vào. Tuy nhiên, việc này không được khuyến khích
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof CreatePresetDto
|
|
99
|
+
*/
|
|
100
|
+
'width'?: number;
|
|
101
|
+
/**
|
|
102
|
+
* video only. bật chế độ constant bitrate
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof CreatePresetDto
|
|
105
|
+
*/
|
|
106
|
+
'cbr'?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* video only
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof CreatePresetDto
|
|
111
|
+
*/
|
|
112
|
+
'pixelFormat'?: CreatePresetDtoPixelFormatEnum;
|
|
113
|
+
/**
|
|
114
|
+
* video only, (chú ý: nếu để width, height, scaleType trong option tổng, nguồn sẽ scale trước khi xử lý tiếp theo)
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof CreatePresetDto
|
|
117
|
+
*/
|
|
118
|
+
'scaleType'?: CreatePresetDtoScaleTypeEnum;
|
|
119
|
+
/**
|
|
120
|
+
* video only, chế độ constant quality
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof CreatePresetDto
|
|
123
|
+
*/
|
|
124
|
+
'cq'?: number;
|
|
125
|
+
/**
|
|
126
|
+
* video only, chế độ video interlaced
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof CreatePresetDto
|
|
129
|
+
*/
|
|
130
|
+
'interlaced'?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* bframe number
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof CreatePresetDto
|
|
135
|
+
*/
|
|
136
|
+
'bframe'?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Tên
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof CreatePresetDto
|
|
141
|
+
*/
|
|
142
|
+
'name': string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export const CreatePresetDtoTypeEnum = {
|
|
146
|
+
Video: 'video',
|
|
147
|
+
Audio: 'audio',
|
|
148
|
+
Data: 'data'
|
|
149
|
+
} as const;
|
|
150
|
+
|
|
151
|
+
export type CreatePresetDtoTypeEnum = typeof CreatePresetDtoTypeEnum[keyof typeof CreatePresetDtoTypeEnum];
|
|
152
|
+
export const CreatePresetDtoCodecEnum = {
|
|
153
|
+
H264: 'h264',
|
|
154
|
+
Hevc: 'hevc',
|
|
155
|
+
Copy: 'copy',
|
|
156
|
+
Aac: 'aac',
|
|
157
|
+
Ac3: 'ac3',
|
|
158
|
+
Eac3: 'eac3',
|
|
159
|
+
Mp2: 'mp2',
|
|
160
|
+
Scte35: 'scte35',
|
|
161
|
+
Id3: 'id3'
|
|
162
|
+
} as const;
|
|
163
|
+
|
|
164
|
+
export type CreatePresetDtoCodecEnum = typeof CreatePresetDtoCodecEnum[keyof typeof CreatePresetDtoCodecEnum];
|
|
165
|
+
export const CreatePresetDtoSampleRateEnum = {
|
|
166
|
+
NUMBER_44100: 44100,
|
|
167
|
+
NUMBER_48000: 48000
|
|
168
|
+
} as const;
|
|
169
|
+
|
|
170
|
+
export type CreatePresetDtoSampleRateEnum = typeof CreatePresetDtoSampleRateEnum[keyof typeof CreatePresetDtoSampleRateEnum];
|
|
171
|
+
export const CreatePresetDtoChannelEnum = {
|
|
172
|
+
NUMBER_1: 1,
|
|
173
|
+
NUMBER_2: 2,
|
|
174
|
+
NUMBER_6: 6
|
|
175
|
+
} as const;
|
|
176
|
+
|
|
177
|
+
export type CreatePresetDtoChannelEnum = typeof CreatePresetDtoChannelEnum[keyof typeof CreatePresetDtoChannelEnum];
|
|
178
|
+
export const CreatePresetDtoProfileEnum = {
|
|
179
|
+
Low: 'aac_low',
|
|
180
|
+
He: 'aac_he',
|
|
181
|
+
HeV2: 'aac_he_v2',
|
|
182
|
+
Main: 'aac_main',
|
|
183
|
+
Ld: 'aac_ld',
|
|
184
|
+
Eld: 'aac_eld'
|
|
185
|
+
} as const;
|
|
186
|
+
|
|
187
|
+
export type CreatePresetDtoProfileEnum = typeof CreatePresetDtoProfileEnum[keyof typeof CreatePresetDtoProfileEnum];
|
|
188
|
+
export const CreatePresetDtoVideoProfileEnum = {
|
|
189
|
+
Baseline: 'BASELINE',
|
|
190
|
+
Main: 'MAIN',
|
|
191
|
+
High: 'HIGH'
|
|
192
|
+
} as const;
|
|
193
|
+
|
|
194
|
+
export type CreatePresetDtoVideoProfileEnum = typeof CreatePresetDtoVideoProfileEnum[keyof typeof CreatePresetDtoVideoProfileEnum];
|
|
195
|
+
export const CreatePresetDtoVolumeEnum = {
|
|
196
|
+
_5dB: '+5dB',
|
|
197
|
+
_10dB: '-10dB',
|
|
198
|
+
_05: '0.5',
|
|
199
|
+
_2: '2',
|
|
200
|
+
Loudnorm: 'loudnorm'
|
|
201
|
+
} as const;
|
|
202
|
+
|
|
203
|
+
export type CreatePresetDtoVolumeEnum = typeof CreatePresetDtoVolumeEnum[keyof typeof CreatePresetDtoVolumeEnum];
|
|
204
|
+
export const CreatePresetDtoPixelFormatEnum = {
|
|
205
|
+
Yuv420p: 'yuv420p',
|
|
206
|
+
Yuv444p: 'yuv444p',
|
|
207
|
+
Yuv420p10le: 'yuv420p10le',
|
|
208
|
+
Yuv444p10le: 'yuv444p10le'
|
|
209
|
+
} as const;
|
|
210
|
+
|
|
211
|
+
export type CreatePresetDtoPixelFormatEnum = typeof CreatePresetDtoPixelFormatEnum[keyof typeof CreatePresetDtoPixelFormatEnum];
|
|
212
|
+
export const CreatePresetDtoScaleTypeEnum = {
|
|
213
|
+
FitWidth: 'fitWidth',
|
|
214
|
+
FitHeight: 'fitHeight',
|
|
215
|
+
FitInside: 'fitInside',
|
|
216
|
+
FitCrop: 'fitCrop',
|
|
217
|
+
FitBoth: 'fitBoth',
|
|
218
|
+
Source: 'source'
|
|
219
|
+
} as const;
|
|
220
|
+
|
|
221
|
+
export type CreatePresetDtoScaleTypeEnum = typeof CreatePresetDtoScaleTypeEnum[keyof typeof CreatePresetDtoScaleTypeEnum];
|
|
222
|
+
|
|
223
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { CreatePresetDto } from './create-preset-dto';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CreateProfileDto
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateProfileDto {
|
|
26
|
+
/**
|
|
27
|
+
* Tên
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateProfileDto
|
|
30
|
+
*/
|
|
31
|
+
'name': string;
|
|
32
|
+
/**
|
|
33
|
+
* mô tả tuỳ chỉnh của đầu ra
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateProfileDto
|
|
36
|
+
*/
|
|
37
|
+
'description'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<CreatePresetDto>}
|
|
41
|
+
* @memberof CreateProfileDto
|
|
42
|
+
*/
|
|
43
|
+
'presets'?: Array<CreatePresetDto>;
|
|
44
|
+
}
|
|
45
|
+
|