This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stage 0 - build html | |
FROM node:14.4-alpine AS html | |
WORKDIR /app | |
COPY ./package-lock.json ./package.json ./ | |
RUN npm ci | |
COPY . . | |
RUN npm run build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"embed" | |
"log" | |
"net/http" | |
) | |
//go:embed _app/* font/* img/* | |
//go:embed favicon.ico |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:13.14-alpine | |
WORKDIR /usr/src/app | |
COPY yarn.lock ./ | |
COPY package.json ./ | |
RUN yarn install --frozen-lockfile | |
COPY . . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build image - create nest production build | |
FROM node:13.14-alpine AS build | |
WORKDIR /app | |
COPY yarn.lock package.json ./ | |
RUN yarn install --frozen-lockfile | |
COPY . . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var _currentDirectory = (function () { | |
var _url; | |
var lines = new Error().stack.split('\n'); | |
function lookupUrl() { | |
if (lines.length > 2) { | |
var match = lines[1].match(/^\s+at (.+):\d+:\d+$/); | |
// Chrome. | |
if (match) return match[1]; | |
// Chrome nested eval case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALL_PRC_SRC_MESSAGES = { | |
"1"=> { | |
"01"=> "Bank Decline", | |
"02"=> "Bank Decline", | |
"03"=> "Other", | |
"04"=> "Other", | |
"05"=> "Bank Decline", | |
"12"=> "Other", | |
"13"=> "Other", | |
"14"=> "Input Error", |