text stringlengths 10 953k |
|---|
import { Actions } from "gatsby"
import { createPath } from "gatsby-page-utils"
import { getMatchPath } from "./get-match-path"
// Create a client side page with a matchPath
// based on the `[]` existing in it's file path.
// e.g., a file named `src/pages/foo/[bar].js`
// gets created at the url: `foo/:bar`
export fun... |
/* eslint-disable import/prefer-default-export */
export { default as ProjectShowcase } from './ProjectShowcase';
export { default as ShowcaseWrapper } from './ShowcaseWrapper'; |
import { MemberLevel } from '../custom/member-level';
export interface MemberResource {
resourceID: string;
name: string;
}
export interface MemberResponse {
id: string;
name: string;
email: string;
rfid: string;
memberLevel: MemberLevel;
resources: Array<MemberResource>;
} |
import { Component } from '@stencil/core';
@Component({
tag: 'th-architecture-page',
styleUrl: 'th-architecture-page.css'
})
export class ThArchitecturePage {
render() {
return [
<div class="grid">
<th-header
headerText="Exceptional Architects"
subText="Each member of our t... |
import { Config } from '../../src/interface/config'
import materialIconsPlugin from '@iconsauce/material-icons'
import mdiSvgPlugin from '@iconsauce/mdi-svg'
import maggioliSvgIconsPlugin from '@iconsauce/mgg-icons'
export const configTest: Config = {
center: false,
content: [
'./src/**/*.{tsx,ts}',
],
fon... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import {Component} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {ArrayCollection, LocalPageableArray} from "jigsaw/common/core/data/array-collection";
import {TableData} from "jigsaw/common/core/data/table-data";
@Component({
templateUrl: './demo.component.html'
})
export class Tra... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Ember</source>
<translation>Tentang Ember</translation>
</message>
<message>
<locati... |
/**
* @packageDocumentation
* @module @tomato-js/shared
*/
export type HTMLSelector = string | HTMLElement;
export type HTMLElementKey = keyof HTMLElementTagNameMap;
export type Eachable<T> = T[] | ObjectType<T>;
export type FunctionType<T = any, U = any> = (...args: T[]) => U;
export type Falsy = false | "" | ... |
import { Provider } from "ethers/providers";
import { Protocol, ProtocolRunner } from "../../../engine";
import { Store } from "../../../store";
export async function uninstallVirtualAppInstanceFromChannel(
store: Store,
protocolRunner: ProtocolRunner,
provider: Provider,
initiatorXpub: string,
responderXpu... |
import {Button, IconButton} from 'app/components/buttons';
import {ClrIcon} from 'app/components/icons';
import {Toggle} from 'app/components/inputs';
import {PopupTrigger, TooltipTrigger} from 'app/components/popups';
import {profileApi} from 'app/services/swagger-fetch-clients';
import colors from 'app/styles/colors'... |
/**
* NavigatorCommon.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Common native interfaces for Navigator on mobile.
* We need this class to avoid circular references between Navigator and NavigatorDelegates.
*/
import React = require('react');
import RN = req... |
/*
Copyright 2017 Google Inc.
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
dis... |
import { expect } from "chai";
import { Page } from "../../src/model/index";
import { CustomerView } from "../db/views/customerView";
describe(".Page", () => {
describe("#constructor", () => {
const entities: CustomerView[] = [];
const result = new Page<CustomerView>(1, 20, 30, entities);
expect(1).to.b... |
import * as chai from 'chai'
const expect = chai.expect
import { Account } from '../../src/models/account'
import { Email } from '../../src/models/email'
import { AccountsStore } from '../../src/shared-process/accounts-store'
import { InMemoryStore } from '../in-memory-store'
import { AsyncInMemoryStore } from '../asy... |
const upperFirst =
(value: string): string =>
value === '' ?
value :
value[0].toUpperCase() + value.slice(1)
export default upperFirst |
import "cypress-file-upload";
import "cypress-wait-until";
import "cypress-file-upload";
// allow for Cypress Snapshot command
import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command";
before(() => {
cy.visit("/", { timeout: 60000 * 7 });
});
addMatchImageSnapshotCommand({
failureThreshold: 0... |
export interface IErrorCode {
status: Number;
message: string;
code: string;
} |
import { Length } from 'class-validator';
import { Field, InputType } from 'type-graphql';
import { PasswordInput } from '../../../shared/PasswordInput';
@InputType()
export class RegisterInput extends PasswordInput {
@Field()
@Length(1, 255)
firstName:string;
@Length(1, 255)
@Field()
lastName... |
/* eslint-disable no-console */
import chalk from 'chalk';
import { copy, outputJSON, pathExists, readJSON, remove } from 'fs-extra';
import { resolve } from 'path';
import {
COMMON_TEMPLATE_PATH,
GIT_IGNORE_FILE_PATH,
MONOREPO_TEMPLATE_PATH,
resolveRoot,
} from '../config/paths';
import genLicenseFile from '.... |
import * as React from "react";
import classNames from "classnames";
import Errors from "./Errors";
import Initialize from "./Initialize";
import Draw from "./Draw";
import Exchange from "./Exchange";
import JoinRoom from "./JoinRoom";
import { AppStateContext } from "./AppStateProvider";
import { TimerContext } from "... |
import { path, fs } from '@modern-js/utils';
import { SsgRoute } from '../types';
export function writeHtmlFile(
htmlAry: string[],
ssgRoutes: SsgRoute[],
baseDir: string,
) {
htmlAry.forEach((html: any, index: number) => {
const ssgRoute = ssgRoutes[index];
const filepath = path.join(baseDir, ssgRoute... |
import { ReactTinyLinkType } from '../../ReactTinyLinkTypes';
declare const _default: (url: string, defaultMedia: string[]) => Promise<{
title: string;
description: string;
url: string;
video: any[];
image: (string | string[])[];
type: ReactTinyLinkType;
}>;
export default _default; |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
export interface User {
/**
* 用户名
*/
username: string;
/**
* 密码
*/
password?: string;
/**
* 所属部门
*/
department: string;
/**
* 所属权限
*/
roles: string[];
/**
* 称呼
*/
name?: string;
/**
* 电子邮件
*/
email?: string;
/**
* 联系电话
*/
phone?: string;
/**
* 地... |
import * as keyboardKey from 'keyboard-key'
import { Accessibility, AccessibilityDefinition } from '../../types'
/**
* @specification
* Adds role='button' if element type is other than 'button'. This allows screen readers to handle the component as a button.
* Adds attribute 'tabIndex=0' if element type is other th... |
import { ISerie } from "./ISerie";
import { ISerieSeason } from "./ISerieSeason";
export interface ISerieWithSeasons extends ISerie {
seasons: ISerieSeason[];
} |
import { EventEmitter } from 'events';
import { injectable } from 'inversify';
import 'reflect-metadata';
import { CancellationToken, Disposable, Uri } from 'vscode';
import { createDeferred, Deferred } from '../../client/common/helpers';
import { Product } from '../../client/common/installer';
import { IServiceContain... |
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Button, Input, message } from 'antd';
import React, { Component } from 'react';
import { FormComponentProps } from '@ant-design/compatible/es/form';
import { connect } from 'dva';
import { Dispatch } from 'redux';
... |
import * as _ from 'lodash';
import * as React from 'react';
import { Button } from 'patternfly-react';
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
import { Table } from '@console/internal/components/factory';
import { PersistentVolumeClaimModel } from '@console/internal/models';
import { Fi... |
import * as mongoose from 'mongoose';
import { Meme } from 'src/meme/schema/meme.schema';
export declare type UserDocument = User & mongoose.Document;
export declare class User {
_id: string;
username: string;
email: string;
password: string;
uploadedMemes: Meme[];
favourites: Meme[];
likes:... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitcoinTrust</source>
<translation>Über BitcoinTrust</translation>
</message>
<message>
... |
import { ElementRef, NgZone, OnDestroy, AfterContentInit } from '@angular/core';
import { InteractivityChecker } from './interactivity-checker';
import 'rxjs/add/operator/first';
/**
* Class that allows for trapping focus within a DOM element.
*
* NOTE: This class currently uses a very simple (naive) approach to foc... |
import "reflect-metadata";
import {Connection} from "../../../src/connection/Connection";
import {CockroachDriver} from "../../../src/driver/cockroachdb/CockroachDriver";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
import {Table} from "../../../src/s... |
import { Component, OnInit } from '@angular/core';
import { SolicitacoesContratanteComponent } from '../solicitacoes-contratante/solicitacoes-contratante.component';
import { ServicoService, AuthenticationService } from '../_services';
import { ToastrService } from 'ngx-toastr';
import { Router, ActivatedRoute } from '... |
import { FormType } from "../metadata/base";
import { IBonbonsController } from "../metadata/controller";
import { Reflection } from "../di/reflect";
import { reroute } from "./method";
import { JsonFormOptions, URLFormOptions, TextFormOptions, BaseFormOptions } from "../metadata/options";
type FormDecorator = <T>(tar... |
import * as sinon from 'sinon';
import { legacyPlugin as pluginApi } from '@snyk/cli-interface';
import { AcceptanceTests } from './cli-test.acceptance.test';
import { CommandResult } from '../../../src/cli/commands/types';
import { createCallGraph } from '../../utils';
import * as fs from 'fs';
import * as path from '... |
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {Data} from 'src/app/core/shared-data/shared-data';
import {ConfirmationService, MessageService} from 'primeng/api';
import {UserService} from 'src/app/core/user/user.service';
import {AuthService} from "../../core/auth/serv... |
import { HttpClient } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { WINDOW } from '@ng-web-apis/common';
import sanityClient, { ClientConfig, SanityClient } from '@sanity/client';
import imageUrlBuilder from '@sanity/image-url';
import { ImageUrlBuilder } from '@sanity/image-... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Chipcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... |
import React, { useState } from 'react';
import { UIButton } from '../../components/UIButton';
import { UIInput } from '../../components/UIInput';
import { useAuth } from '../../hooks/auth';
import {
Buttons,
Container,
ErrorMessage,
Footer,
Header,
Inputs,
Title
} from './styles';
type ErrorType = 'nam... |
export enum ExecutionTriggeredType {
MANUAL='MANUAL',
SCHEDULED='SCHEDULED',
API='API'
} |
// Generated by github.com/davyxu/tabtoy
// Version: 2.8.10
module table {
export var TCarBrand : table.ITCarBrandDefine[] = [
{ Id : 1000, Brand : "奔驰" },
{ Id : 2000, Brand : "本田" },
{ Id : 3000, Brand : "大众" },
{ Id : 4000, Brand : "丰田" },
{ Id : 5000, Brand : "奥迪" },
{ Id : 6000, Brand : "宝马" },
... |
import React from 'react';
import { AuthProvider } from './AuthContext';
const Providers: React.FC = ({ children }) => {
return <AuthProvider>{children}</AuthProvider>;
};
export default Providers; |
// API to access ngrx productConfiguration state
export * from './product-configuration.actions';
export * from './product-configuration.selectors'; |
import * as loader from '../../../src/static-build-loader/index';
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
registerSuite('static-build-loader index', {
exists() {
assert(loader);
}
}); |
import * as Promise from 'bluebird';
import { Address, Callback, NativeGenerateSignatureFunction, Provider, // tslint:disable-line no-unused-variable
Transfer, Trytes } from '../../types';
export interface PrepareTransfersOptions {
readonly inputs: ReadonlyArray<Address>;
readonly address?: Trytes;
readonly... |
import { Component, OnInit } from "@angular/core";
import { ECardType } from "app/shared/card-list/card-list.component";
import { EventService } from "./services/event.service";
import { Event } from "./models/event.model";
@Component({
selector: "app-events",
templateUrl: "./events.component.html",
styleUrls: [... |
/*
artifact generator: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-js\dist\lib\artifacts\ts\module\gen\main.js
package: wizzi-js@0.7.8
primary source IttfDocument: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi.frontend\.wizzi\src\features\preferences\withPreferences.tsx.ittf
utc time: Sat, 01 May 2021 05:18:2... |
import { injectable } from 'inversify';
import { EOL } from 'os';
import { LogEntry } from '../types';
import { ICommitViewFormatter } from './types';
@injectable()
export class CommitViewFormatter implements ICommitViewFormatter {
public format(item: LogEntry): string {
const sb: string[] = [];
i... |
import { PageViewTracker } from '../../src/trackers/PageViewTracker';
import { MethodEmbed } from '../../src/utils/MethodEmbed';
const tracker = jest.fn().mockImplementation(() => {
return Promise.resolve();
});
class SessionStorageMock {
private store;
private maxSize;
private curSize;
private length;
constru... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export ... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
// import { request, Config } from "./util";
import * as EventSource from "eventsource";
import * as http from 'http';
export interface Config {
port: number;
delay: number;
}
interface HttpResponse {
req: http.ClientRequest;
res: http.IncomingMessage;
data: string;
}
export function request(
url: string,... |
export { NgxDaterangepickerMd } from './daterangepicker.module';
export { DaterangepickerComponent } from './daterangepicker.component';
export { DaterangepickerDirective } from './daterangepicker.directive';
export { LocaleConfig , LOCALE_CONFIG, DefaultLocaleConfig } from './daterangepicker.config';
export { LocaleSe... |
// TODO: support commented props
import React, {PureComponent} from 'react';
import {StyleSheet, /* processColor, */ TextStyle, LayoutChangeEvent, StyleProp, ViewStyle} from 'react-native';
import _ from 'lodash';
import Reanimated from 'react-native-reanimated';
import {State} from 'react-native-gesture-handler';
impo... |
import { Dispatch } from 'redux';
import { IAnswer } from 'components/commonTypes';
import { DispatchAction, ActionType } from './root-reducer';
export const selectOption = (
dispatch: Dispatch<DispatchAction>,
selectedOption: IAnswer
) => dispatch({ type: ActionType.SelectOption, payload: { selectedOption } });
... |
import * as React from 'react';
const ClipboardLink20RegularIcon = () => {
return(
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.08535 3C7.29127 2.4174 7.84689 2 8.5 2H11.5C12.1531 2 12.7087 2.4174 12.9146 3H14.5C15.3284 3 16 3.67157 16 4.5V11H15V4... |
interface susunkataresult {
index: number;
soal: string;
tipe: string;
jawaban: string;
}
export declare let susunkatajson: susunkataresult[];
export default function susunkata(): Promise<susunkataresult>;
export {}; |
/* tslint:disable */
/* eslint-disable */
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type ArtistSeries_artistSeries = {
readonly internalID: string;
readonly slug: string;
readonly artistIDs: ReadonlyArray<string>;
readonly artist: ReadonlyArray... |
import jwt from 'jsonwebtoken'
import { auth } from './config';
import { createRefreshToken } from './database';
export function generateJwtAndRefreshToken(email: string, payload: object = {}) {
const token = jwt.sign(payload, auth.secret, {
subject: email,
expiresIn: 60 * 15, // 15 minutes 60 * 15
});
... |
import { getWordCount } from '../lib/getWordCount';
const wordTests = [
{
words: 'yolo',
expected: 1,
},
{
words: 'hey ho lets go',
expected: 4,
},
{
words: "hey ho let's go",
expected: 4,
},
];
test('should count 1 word', () => {
for (let i = 0; i < wordTests.length; i++) {
... |
import { ColorOp } from "./api";
import { clampH } from "./clamp";
export const hsvaHsla: ColorOp = (out, src) => {
out = clampH(out || src, src);
const s = out[1];
const v = out[2];
const l = ((2 - s) * v) / 2;
out[2] = l;
out[1] = l && l < 1 ? (s * v) / (l < 0.5 ? l * 2 : 2 - l * 2) : s;
... |
import { Component, OnInit } from '@angular/core';
import { ApiService } from 'src/app/services/api.service';
import { User } from 'src/app/data/classes/User';
/** Defines the selector and location of the HTML & SCSS */
@Component({
selector: 'app-profile',
templateUrl: './profile.component.html',
styleUrl... |
import memoizee from 'memoizee';
import { ValidationError } from 'joi';
import { getAddons, IAddonProviders } from '../addons';
import * as events from '../types/events';
import { addonSchema } from './addon-schema';
import NameExistsError from '../error/name-exists-error';
import { IEventStore } from '../types/stores/... |
import { Application, Request, Response, NextFunction } from 'express';
import path from 'path';
import { IRoute } from '../routes/index.route';
const registerRouteMiddleware = ( server: Application, routes: IRoute[] ) => {
// register API routes
routes.forEach( (route: IRoute) => {
server.use(route.... |
import { Component, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { ArchwizardModule } from '../archwizard.module';
import { WizardComponent } from '../components/wizard.component... |
export * from './google-link.strategy';
export * from './google.strategy'; |
import {expect} from "chai";
import {Jscollator} from "../src/jscollator";
import {JscollatorError} from "../src/jscollator-error";
import {JscollateRequest} from "../src/jscollator-request";
import {JscollatorQueryBuilder, QueryBuilderResult} from "../src/query-builder";
import {QueryType} from "../src/query-type";
im... |
import { jwtConstants } from './shared/constants';
import { Module } from '@nestjs/common';
import { JwtStrategy } from './shared/jwt.strategy';
import { AuthController } from './auth.controller';
import { JwtModule } from '@nestjs/jwt';
import { AuthService } from './auth.service';
import { UsersModule } from './../us... |
/*
* File: /src/webviewCollection.ts
* Project: vscode-pass
* File Created: 06-07-2021 15:27:46
* Author: Clay Risser <email@clayrisser.com>
* -----
* Last Modified: 06-07-2021 16:41:24
* Modified By: Clay Risser <email@clayrisser.com>
* -----
* Silicon Hills LLC (c) Copyright 2021
*
* Licensed under the Apa... |
import { useAtom } from 'jotai';
import './styles.css';
import logo from '../../assets/images/logo192.png';
import { IS_LOADING } from '../../atoms/spinner';
import { CEP_DEFAULT } from '../../atoms/cep';
import { ADDRESS_DEFAULT } from '../../atoms/address';
import Button from '../button';
import getAddress from '../... |
// package:
// file: service.proto
import * as service_pb from "./service_pb";
import {grpc} from "@improbable-eng/grpc-web";
type SampleCreate = {
readonly methodName: string;
readonly service: typeof Sample;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof servi... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright (c) Aksio Insurtech. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Constructor } from '@aksio/cratis-fundamentals';
import { useState, useEffect, useCallback } from 'react';
import { Command } from '@aksio/cratis-applica... |
import { aws_iam } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { DefaultSecurityTag, SecurityTagable } from './security-tag';
export interface BastionAccessPolicyProps extends SecurityTagable {}
export class BastionAccessPolicy extends Construct {
policy: aws_iam.PolicyDocument;
constructor... |
export { useLanguageFromParams } from './useLanguageFromParams.hook'; |
import {
LinkEventDefinition,
MessageEventDefinition,
SignalEventDefinition,
TimerEventDefinition,
} from './definitions/index';
import {BpmnType, EventType} from '../../constants';
import {FlowNode} from './flow_node';
/**
* Describes a BPMN IntermediateThrowEvent.
*
* These are used to wait for events du... |
function hanoi(n, from, cache, to){
const template = (from, to) => `${from}${to}`
return n === 1
? template(from, to)
: `${hanoi(n - 1, from, to, cache) }, ${template(from, to)}, ${hanoi(n-1, cache, from, to)}`
}
console.log(`4层汉诺塔的操作步骤:`, hanoi(4, 'A', 'B', 'C'))
// AB,AC,BC,AB,CA,CB,AB,AC,BC,BA,CA,BC,AB,... |
// @target: es6
var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; |
import IStorageArea from "../../chrome/storageAreaInterface";
import { STORAGE_ALARM } from "../../common/const";
class AlarmSettings {
private storage: IStorageArea
private isMonitoring: boolean
constructor(storage: IStorageArea) {
this.storage = storage
}
public async turnMonitoringOn(o... |
import React, { useState } from "react";
import { FormattedMessage } from "react-intl";
import ContentCard from "components/ContentCard";
import ServiceForm from "components/ServiceForm";
import { AnalyticsService } from "core/analytics/AnalyticsService";
import useRouter from "components/hooks/useRouterHook";
import ... |
import { Code, ImportExport, LinkedIn, TrackChanges, UploadFile } from '@mui/icons-material';
import { Button, Divider } from '@mui/material';
import { Integration, Resume } from '@reactive-resume/schema';
import { Trans, useTranslation } from 'next-i18next';
import { useRef } from 'react';
import toast from 'react-hot... |
import { CollisionStrategy } from "./Collisions/CollisionStrategy";
import { GlobalConfig } from "./GlobalConfig/GlobalConfig";
import { Subject, of } from "rxjs";
import { take } from "rxjs/operators";
import { Direction, NumberOfDirections } from "./Direction/Direction";
import { GridCharacter, PositionChange } from ... |
import { TypeOrmModuleOptions } from "@nestjs/typeorm"
export const MysqlConfig: TypeOrmModuleOptions = {
type: 'mysql',
host: process.env.MYSQL_HOST,
port: Number(process.env.MYSQL_HOST),
username: process.env.MYSQL_USERNAME,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DA... |
/**
* Created by Everest on 9/24/2016.
*/
import * as express from 'express';
import {Simulation} from "./simulation";
export function simulationService(app: express.Application) {
/**
* Start simulation.
*/
app.get('/api/simulation-service/start',
(req:any, res:any, next:any) => {
... |
import { BufferReader } from "../../buffer-reader";
import { ActorSetPos } from "../../definitions/ActorSetPos";
export function actorSetPos(reader: BufferReader): ActorSetPos {
return {
r16: reader.nextUInt16(),
waitForLoad: reader.nextUInt8(),
unknown: reader.nextUInt8(),
unknown2: reader.nextUInt32(),
po... |
/*
* Copyright 2019 ThoughtWorks, Inc.
*
* 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 agr... |
export interface IRule {
strategy: string;
errMsg: string;
cb?(): void | undefined;
}
interface IValidator {
add(value: any, rules: IRule[], cb?: () => any): void;
start(): void;
}
declare class Validator implements IValidator {
private cache;
add(value: any, rules: any): void;
start(): ... |
<TS language="af_ZA" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Skep 'n nuwe adres</translation>
</message>
<message>
<source>&New</source>
<translation>&Nuwe</translation>
</message>
... |
import { Component, Input, AfterViewInit, ElementRef, OnChanges, ChangeDetectionStrategy } from '@angular/core';
import { Grid } from '../../../lib/grid';
@Component({
selector: '[ng2-st-actions-title]',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<div class="ng2-smart-title">{{ a... |
export const c_radio__description_Color: {
"name": "--pf-c-radio__description--Color",
"value": "#6a6e73",
"var": "var(--pf-c-radio__description--Color)"
};
export default c_radio__description_Color; |
import styled from 'styled-components'
import { selectors } from '@defencedigital/design-tokens'
const { color, spacing, mq } = selectors
export const StyledCodeBlock = styled.div`
background-color: ${color('neutral', '700')};
width: 100%;
pre,
pre[class*='language-'] {
border-radius: 0;
background-c... |
import { SandKeyType, SandPropsType, SandTagType } from './type';
export class SandElement {
type: SandTagType;
key?: SandKeyType;
props: SandPropsType;
constructor(
type: SandTagType,
key: SandKeyType | undefined,
props: SandPropsType
) {
this.type = type;
t... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import styled, { keyframes } from 'styled-components';
import type { Color } from '~constants/theme';
import { absoluteFill } from '~utils/styled';
type Size = 'small' | 'normal' | 'medium' | 'large';
type Props = {
color: Color | 'currentColor';
size?: Size;
};
const rotateAnim = keyframes`
from {
transf... |
export * from "~/pages/landing";
export * from "~/pages/repo";
export * from "~/pages/settings";
export * from "~/pages/error"; |
/* Copyright 2020 Mozilla Foundation
*
* 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... |
import { ConfigEnv, UserConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { homedir } from "os";
import { existsSync, readFileSync } from "fs";
import { resolve } from "path";
export default ({ mode }: ConfigEnv): UserConfig => {
return {
plugins: [vue()],
server: {
open: true,
h... |
import { TestBed, async, tick, fakeAsync, inject } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs/Rx';
import { MarketplaceTestModule } from '../../../test.module';
import { MockActivatedRoute } from '../../../helpers/mock-route.service';
import { LoginM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.