- TS application listening port: 7777
|-- dist
|-- src
|-- .dockerignore
|-- Dockerfile
{ | |
"videos":[ | |
{ | |
"name":"Video 1", | |
"time":"5:43" | |
}, | |
{ | |
"name":"Video 2", | |
"time":"2:33" | |
}, |
{ | |
"$schema": "https://json.schemastore.org/nest-cli", | |
"collection": "@nestjs/schematics", | |
"sourceRoot": "src", | |
"projects": { | |
"keycloak-connect": { | |
"type": "library", | |
"root": "libs", | |
"entryFile": "index", | |
"sourceRoot": "libs" |
function multiple(x, y) { | |
return x * y | |
} | |
function multipleByN(n) { | |
return (m) => multiple(n, m) | |
} | |
const multipleBy3 = multipleByN(3) | |
const multipleBy5 = multipleByN(5) |
function myFavoriteWrestler(promotion, stable, wrestler) { | |
return `My favorite wrestler is ${wrestler} of ${stable} in ${promotion}.` | |
} | |
const momo = myFavoriteWrestler('Stardom', 'Odeo Tai', 'Momo Watanabe') | |
const slk = myFavoriteWrestler('Stardom', 'Odeo Tai', 'SLK') | |
const mina = myFavoriteWrestler('Stardom', 'Cosmic Angels', 'Mina') | |
const waka = myFavoriteWrestler('Stardom', 'Cosmic Angels', 'Waka') | |
const iroha = myFavoriteWrestler('Marvelous', 'na', 'Iroha') |
import { Injectable, mixin, PipeTransform, Type } from '@nestjs/common' | |
import { EntityManager, ObjectType } from 'typeorm' | |
import { BaseEvidence } from '@/entity' | |
import { EvidenceFile } from '../types' | |
export function DownloadBlobnameEvidencePipe<T extends BaseEvidence>(type: ObjectType<T>): Type<PipeTransform> { | |
@Injectable() | |
class EvidenceBlobnamePipe implements PipeTransform<string, Promise<EvidenceFile | undefined>> { | |
constructor(private em: EntityManager) {} |
'use strict'; | |
var should = require('should'); | |
var app = require('../../app'); | |
var request = require('supertest')(app); | |
describe('GET /api/incidents', function() { | |
it('should require authorization', function(done) { | |
request |
const atimport = require("postcss-import"); | |
const { dest, src, task } = require("gulp"); | |
const postcss = require("gulp-postcss"); | |
const purgecss = require("@fullhuman/postcss-purgecss"); | |
const tailwindcss = require("tailwindcss"); | |
const TAILWIND_CONFIG = "./tailwind.config.js"; | |
const SOURCE_STYLESHEET = "./src/style.css"; | |
const DESTINATION_STYLESHEET = "./build/style.css"; |
{ | |
"presets": ["env"] | |
} |
version: "3.7" | |
services: | |
redis: | |
image: redis:alpine | |
restart: always | |
ports: | |
- 6379:6379 | |