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
| import { Identifiable } from '@applier/framework/dist/definitions/Identifiable'; | |
| import { v4 } from 'uuid'; | |
| import { IRepository } from '@applier/framework/dist/definitions/IRepository'; | |
| export const useRepository = <T extends Identifiable>(entities: T[], setEntities: (newValues: T[]) => void): IRepository<T> => { | |
| return { | |
| getAll: function() { | |
| return entities; | |
| }, | |
| insert: function(entity: T) { |
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
| let queryBuilder = knex<Message>('') | |
| .from('message'); | |
| if (!user.isGameMaster) { | |
| queryBuilder = queryBuilder | |
| .whereIn( | |
| 'recipient', | |
| all.concat('Alle'), | |
| ) | |
| .or |
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
| /* DEBUG Grid */ | |
| body { | |
| position: relative; | |
| background: blue; | |
| } | |
| body:after { | |
| background-size: var(--grid-size) var(--grid-size); | |
| background-repeat: repeat; | |
| background-image: | |
| linear-gradient( |
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
| import { createLogger, format, Logger, transports } from 'winston'; | |
| const { Console } = transports; | |
| export const getLogger = (): Logger => { | |
| const consoleTransport = new Console({ | |
| format: format.combine( | |
| format.colorize(), | |
| format.timestamp({ | |
| format: 'DD.MM.YYYY HH:mm:ss', |
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
| /** | |
| * Defines a basic command | |
| * | |
| * @export | |
| * @interface Command | |
| */ | |
| export interface Command { | |
| /** | |
| * The name of the command | |
| * |
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 php:7.4.2-fpm as symfonyStage | |
| RUN apt-get update | |
| RUN apt-get install -y wget | |
| RUN wget https://get.symfony.com/cli/installer -O - | bash | |
| RUN mv $HOME/.symfony/bin/symfony /usr/local/bin/symfony | |
| FROM php:7.4.2-fpm as composerStage |
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
| version: "2" | |
| services: | |
| shopware: | |
| image: shopware:6.1.0-rc2 | |
| build: | |
| dockerfile: ./Dockerfile | |
| context: . | |
| volumes: | |
| - ./:/sw6 | |
| ports: |
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
| #!/bin/bash | |
| FIRST_ARG=$1 | |
| set -a REMOTES | |
| getLatestCommit() { | |
| git rev-parse HEAD | |
| } |
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
| [ | |
| { | |
| "metadata": { | |
| "id": "b1b0f283-8246-4e90-832e-a6c409d378d1", | |
| "publisherId": "mads-hartmann.bash-ide-vscode", | |
| "publisherDisplayName": "mads-hartmann" | |
| }, | |
| "name": "bash-ide-vscode", | |
| "publisher": "mads-hartmann", | |
| "version": "1.3.3" |