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
| /* eslint-disable react/prefer-stateless-function */ | |
| import React from 'react' | |
| interface WithErrorProps { | |
| className?: string | |
| error?: string | |
| name?: string | |
| } | |
| export const withError = <P extends object>( |
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
| require("dotenv").config(); | |
| const { setContext } = require("apollo-link-context"); | |
| const { HttpLink } = require("apollo-link-http"); | |
| const { ApolloServer } = require("apollo-server-express"); | |
| const express = require("express"); | |
| const bodyParser = require("body-parser"); | |
| const { graphqlExpress } = require("apollo-server-express/dist/expressApollo"); | |
| const { |
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
| realpath() { | |
| [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
| } | |
| layout_python-venv() { | |
| local python=${1:-python3} | |
| [[ $# -gt 0 ]] && shift | |
| unset PYTHONHOME | |
| if [[ -n $VIRTUAL_ENV ]]; then | |
| VIRTUAL_ENV=$(realpath "${VIRTUAL_ENV}") | |
| else |
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
| realpath() { | |
| [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
| } | |
| layout_python-venv() { | |
| local python=${1:-python3} | |
| [[ $# -gt 0 ]] && shift | |
| unset PYTHONHOME | |
| if [[ -n $VIRTUAL_ENV ]]; then | |
| VIRTUAL_ENV=$(realpath "${VIRTUAL_ENV}") | |
| else |
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 getDitCompany (id) { | |
| return new Promise((resolve, reject) => { | |
| Q.spawn(function *main () { | |
| try { | |
| const company = yield request(`${config.apiRoot}/company/${id}/`) | |
| // get related information | |
| const relatedKeys = Object.keys(relatedProperties) | |
| for (const property of relatedKeys) { | |
| if (company[property] && company[property].length > 0) { |
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 React, { Component } from 'react'; | |
| import {AutosuggestComponent as Autosuggest} from './autosuggest.component'; | |
| import axios from 'axios'; | |
| export class AddressComponent extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| reveal: false, |
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 React, { Component } from 'react'; | |
| export default class SearchBar extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| value: '', | |
| selectedSuggestion: null, | |
| labelVisible: true |
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
| /* globals jQuery: true, GOVUK: true */ | |
| /* jshint browser: true */ | |
| if (typeof GOVUK === 'undefined') { | |
| GOVUK = {}; | |
| } | |
| (function ($, GOVUK) { | |
| "use strict"; | |
| var AutoSave = function(options) { |
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 com.scropt | |
| import scala.concurrent.duration._ | |
| import io.gatling.core.Predef._ | |
| import io.gatling.http.Predef._ | |
| import io.gatling.jdbc.Predef._ | |
| class LoginAndAddDecision extends Simulation { |