This file contains 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
(ns app.migration | |
(:require [environ.core :refer [env]]) | |
(:import org.flywaydb.core.Flyway | |
org.flywaydb.core.internal.info.MigrationInfoDumper)) | |
;; Build DB String from the Environment Variables | |
(def db-url (str "jdbc:postgresql://" | |
(env :pg-db-host) ":" | |
(env :pg-db-port) "/" (env :pg-db-name))) |
This file contains 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
<OrderSection> | |
<SearchTile | |
orderId={this.props.orderId} /> | |
</OrderSection> |
This file contains 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
.panel--1UaEBftHJ4F { | |
margin-top: 10px; | |
font-size: 150%; | |
} |
This file contains 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
var system = require('system'),isDebugMode = false; | |
/** | |
* Wait until the test condition is true or a timeout occurs. Useful for waiting | |
* on a server response or for a ui change (fadeIn, etc.) to occur. | |
* | |
* @param testFx javascript condition that evaluates to a boolean, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
* as a callback function. | |
* @param onReady what to do when testFx condition is fulfilled, |
This file contains 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 logger from './logger'; | |
export class AppError extends Error { | |
statusCode: number; | |
message: string; | |
constructor(statusCode, message) { | |
super(message); | |
this.statusCode = statusCode; | |
this.message = message; |
This file contains 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
const leaveTag = "label-to-which-the-emails-are-marked"; | |
const calendarId = "new-calendar-id"; | |
const nameRegEx = /Leave plan for (?<name>.*) is as below/; | |
const leaveTypeRegEx = /Leave Type:\s*(?<type>(.)*)?/; | |
const startDateRegEx = /Start Date:\s*(?<leave>(?:.*)202.)(?:,\s)*(?:(Half-Day:\s*(.*)))?/; | |
const endDateRegEx = /End Date:\s*(?<leave>(?:.*)202.)(?:,\s)*(?:(Half-Day:\s*(.*)))?/; | |
function applyRegEx(regEx, key, messageBody){ | |
const matches = regEx.exec(messageBody); | |
return matches?.groups && matches.groups[key] ? matches.groups[key] : undefined; |
This file contains 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
const templateFileMapper = [{template: "temp1.hbs", file: "temp1.html"}, | |
{template: "temp2.hbs", file: "temp2.html"}, | |
{template: "temp3.hbs", file: "temp3.html"}]; | |
const htmlPlugins = () => { | |
return templateFileMapper.map(entry => { | |
return new HtmlWebpackPlugin({ | |
template: entry.template, | |
filename: entry.file, | |
}); |
This file contains 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
/* | |
* Copyright (C) 2008 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer