mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-10 12:19:07 +00:00
Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81d8cd8a07 | ||
|
|
f153f41357 | ||
|
|
2b9e3ff3bc | ||
|
|
17cdaac380 | ||
|
|
e4eb388e18 | ||
|
|
4bea0816b6 | ||
|
|
fb491328d6 | ||
|
|
4e043d93ce | ||
|
|
0b525b835f | ||
|
|
80ebd98f6f | ||
|
|
7044d6606e |
+13
@@ -50,4 +50,17 @@ WORKDIR /app
|
|||||||
COPY --from=prod_build /app/dist ./dist
|
COPY --from=prod_build /app/dist ./dist
|
||||||
COPY --from=prod_build /app/node_modules ./node_modules
|
COPY --from=prod_build /app/node_modules ./node_modules
|
||||||
COPY --from=prod_build /app/package*.json ./
|
COPY --from=prod_build /app/package*.json ./
|
||||||
|
RUN apk update
|
||||||
|
# needed packages to build dependencies from source
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
chromium \
|
||||||
|
nss \
|
||||||
|
freetype \
|
||||||
|
harfbuzz \
|
||||||
|
ca-certificates \
|
||||||
|
ttf-freefont
|
||||||
|
|
||||||
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
||||||
|
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
||||||
|
|
||||||
ENTRYPOINT npm run start:prod
|
ENTRYPOINT npm run start:prod
|
||||||
|
|||||||
@@ -20,14 +20,6 @@
|
|||||||
],
|
],
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "origin",
|
|
||||||
"required": true,
|
|
||||||
"in": "header",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ charts:
|
|||||||
- name: hostname
|
- name: hostname
|
||||||
value: maestro.stg.dadosfera.ai
|
value: maestro.stg.dadosfera.ai
|
||||||
- name: maestro.pi_factory_url
|
- name: maestro.pi_factory_url
|
||||||
value: pi-factory.stg.dadosfera.ai
|
value: pi-factory.dadosfera.ai
|
||||||
- name: maestro.in_factory_url
|
- name: maestro.in_factory_url
|
||||||
value: in-factory.stg.dadosfera.ai
|
value: in-factory.stg.dadosfera.ai
|
||||||
- name: maestro.tr_factory_url
|
- name: maestro.tr_factory_url
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"assets": [
|
"assets": [
|
||||||
"**/*.proto",
|
"**/*.proto",
|
||||||
|
"assets/**/*",
|
||||||
{
|
{
|
||||||
"include": "i18n/**/*",
|
"include": "i18n/**/*",
|
||||||
"watchAssets": true
|
"watchAssets": true
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export class AuthController {
|
|||||||
async signIn(
|
async signIn(
|
||||||
@Body() { username, password, totp }: AuthSignInReq,
|
@Body() { username, password, totp }: AuthSignInReq,
|
||||||
@Language() language: LanguageEnum,
|
@Language() language: LanguageEnum,
|
||||||
@Headers('origin') origin: string,
|
@Headers('origin') origin = '',
|
||||||
): Promise<AuthSignInRes> {
|
): Promise<AuthSignInRes> {
|
||||||
this.logger.info('/auth - SignIn');
|
this.logger.info('/auth - SignIn');
|
||||||
const frontHost = origin.replace(/^https?:\/\//, '');
|
const frontHost = origin.replace(/^https?:\/\//, '');
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import { TypeParser } from './parser-types';
|
import { TypeParser } from './parser-types';
|
||||||
import { HtmlParser } from './html-parser';
|
import { HtmlParser } from './html-parser';
|
||||||
import { CsvParser } from './csv-parser';
|
import { CsvParser } from './csv-parser';
|
||||||
@@ -7,10 +6,7 @@ import { Parser } from './parser.interface';
|
|||||||
|
|
||||||
export class ParserBuilder {
|
export class ParserBuilder {
|
||||||
static build<T>(type: TypeParser): Parser<T> {
|
static build<T>(type: TypeParser): Parser<T> {
|
||||||
const templatePath = path.join(
|
const templatePath = '/app/dist/assets/template/pii-reporter.html';
|
||||||
__dirname,
|
|
||||||
'../../../src/template/pii-reporter.html',
|
|
||||||
);
|
|
||||||
|
|
||||||
if (type === 'html') {
|
if (type === 'html') {
|
||||||
const htmlParser = new HtmlParser<T>(templatePath);
|
const htmlParser = new HtmlParser<T>(templatePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user