text stringlengths 10 953k |
|---|
/*
* Copyright (c) A11yWatch, LLC. and its affiliates.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
**/
import { getUser } from "../find";
import { isSameDay } from "date-fns";
export const updateScanAttempt = async ({ userId }) => {
... |
/// <reference types="Cypress" />
context('Horizontal scroll', () => {
before(() => {
cy.visit('http://127.0.0.1:4201/#/horizontal-scroll');
});
it('checks if horizontal scroll works', () => {
cy.get('#table')
.get('#table > thead > tr > th:nth-child(15) > div > div')
.should('not.be.visible')... |
import { expect } from "chai";
import { Currency } from "../../src/types";
import currency from "../../src/pipes/currency";
import { CurrencyResponse } from "../../src/client/types";
describe("currency pipe unit tests", (): void => {
const rawData: CurrencyResponse = {
"usd": {
"eur": "0.8464... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PairsComponent } from './pairs.component';
describe('PairsComponent', () => {
let component: PairsComponent;
let fixture: ComponentFixture<PairsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
decla... |
import * as React from 'react';
import { StyleSheet, View, Text, SafeAreaView, StatusBar } from 'react-native';
import DeviceCountry, {
// TYPE_ANY,
TYPE_TELEPHONY,
TYPE_CONFIGURATION,
ResolveType,
Types,
} from 'react-native-device-country';
export default function App() {
const [countryCodeAny, setCount... |
import './units/index';
export { add, subtract } from './moment/add-subtract';
export { getDay, isFirstDayOfWeek, isSameYear, isSameDay, isSameMonth, getFullYear, getFirstDayOfMonth, getMonth } from './utils/date-getters';
export { parseDate } from './create/local';
export { formatDate } from './format';
export { listL... |
import styled from 'styled-components'
export const CanvasShadow = styled.div`
background-image: linear-gradient(180deg, rgba(197, 202, 233, 0.6), #C5CAE9 80%);
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
` as any |
declare var define: any;
define([], () => {
return {
"Save": "Cứu",
"Cancel": "Hủy",
"SiteBreadcrumbLabel": "Trang web mẩu bánh mì",
"ListViewGroupEmptyLabel": "Rỗng",
"WebPartTitlePlaceholder": "Web phần tiêu đề",
"WebPartTitleLabel": "Thêm tiêu đề",
"DateTime": {
"L_RelativeDateTime_AFewSecondsFu... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<source>&New</source>
<translation>&Jauns</translation>
</message>
... |
import { Construct, Duration, Stack, StackProps} from '@aws-cdk/core';
import { AuroraCapacityUnit, Credentials, DatabaseClusterEngine, ServerlessCluster } from '@aws-cdk/aws-rds';
import { Vpc } from '@aws-cdk/aws-ec2';
import { Secret } from '@aws-cdk/aws-secretsmanager';
import { Cluster, ContainerImage } from '@aws... |
/* eslint-disable @typescript-eslint/naming-convention */
/**
* {@docCategory ISemanticTextColors}
*/
export interface ISemanticTextColors {
/*
* !!!!!!!!
* FOR ANY ADDITIONS/REMOVALS HERE YOU MUST ALSO RUN `yarn update-sass-theme-files` in packages/common-styles
* to ensure that semantic slots scss varia... |
import { isServer } from './shared';
type Config = {
url: string;
clientId: string;
};
const getConfig = (): Config => ({
url: isServer ? (process.env.AUTH_API_URL as string) : window.config.authApiUrl,
clientId: isServer ? (process.env.AUTH_API_CLIENT_ID as string) : window.config.authApiClientId,
});
expor... |
/*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... |
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { T2.Example.ComModule } from './../src/T2.Example.Com.module';
describe('T2.Example.ComController (e2e)', () => {
let app: INestApplication;
beforeEach(async () =... |
namespace jacdac {
// Service: Wind speed
export const SRV_WIND_SPEED = 0x1b591bbf
export const enum WindSpeedReg {
/**
* Read-only m/s u16.16 (uint32_t). The velocity of the wind.
*
* ```
* const [windSpeed] = jdunpack<[number]>(buf, "u16.16")
* ```
... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {EventEmitter} from '@angular/core';
import {defineComponent, defineDirective} from '../../src/render3/index... |
import * as React from 'react';
export interface NotificationProps {
message?: string;
predefinedOptions?: string[];
options?: Object;
}
export class Notification extends React.Component<NotificationProps, any> {
render(): JSX.Element;
} |
export * from "./Aimk"; |
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Method, Prop, State, Watch, h } from '@stencil/core';
import { getIonMode } from '../../global/ionic-global';
import { Gesture, GestureDetail, Side } from '../../interface';
import { isEndSide } from '../../utils/helpers';
const SWIPE_MARGIN ... |
import { Injectable } from '@angular/core';
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { AuthService } from './auth.service';
@Injectable()
export class AuthGuard implements CanActivate {
constructor(private authService: AuthService, private router: ... |
import { Component, OnInit } from '@angular/core';
import { AppsessionService } from '../../service/appsession.service';
import { PropertyInformation } from '../model/property.model';
@Component({
selector: 'app-reviewinfo',
templateUrl: './reviewinfo.component.html',
styles: []
})
export class ReviewinfoCompone... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import type { GuildMemberRoleManager } from "discord.js";
import { MessageActionRow } from "discord.js";
import { ComponentEvent } from "../../utils/ComponentEvent";
import { Logger } from "../../utils/Logger";
import { config } from "../../config";
export const event = new ComponentEvent(
"notification-roles-button"... |
declare module "react-otp-input"; |
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
export const typeOrmConfig: TypeOrmModuleOptions = {
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres',
database: 'taskmanagement',
entities: ['../**/*.entity.ts'],
synchronize: true, //dont forget to disa... |
import { createStyles, WithStyles, withStyles } from "@material-ui/core";
import * as React from "react";
import Block from "~/components/layout/Block";
import Link from "~/components/layout/Link";
import Typography from "~/components/layout/Typography";
import { MatchMediaContext } from "~/context/MatchMediaContext";
... |
import Dexie from 'dexie';
import "dexie-export-import";
import {module, asyncTest, start, stop, strictEqual, ok, equal} from 'qunit';
import {promisedTest, readBlob, readBlobBinary, deepEqual} from './tools';
import {getSimpleImportData} from './test-data';
module("edge-cases");
const DATABASE_NAME = "dexie-export-i... |
import { Card } from '../../../interfaces'
import Set from '../Vivid Voltage'
const card: Card = {
name: {
en: "League Staff",
fr: "Employés de la Ligue",
es: "Empleados de Liga",
it: "Staff Lega",
pt: "Staff da Liga",
de: "Liga-Angestellte"
},
illustrator: "Emi Ando",
rarity: "Uncommon",
category: "... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Consumer} from '@romejs/consume';
import {PathPatterns} from '@romejs/path-match';
import {parsePathPattern} from '@romejs... |
import * as React from 'react';
import { TriggerProps } from '../Overlay/OverlayTrigger.d';
import { TooltipProps } from '../Tooltip/Tooltip.d';
import { PopoverProps } from '../Popover/Popover.d';
export interface WhisperProps extends TriggerProps {
/** display element */
speaker?:
| React.ReactElement<Toolti... |
// /src/action/youtube_searched_for/materialiconstwotone/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgYoutubeSearchedForTwotone = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0V0zm0 0h24v24H0V0z" fill="none"/>... |
// @noUnusedLocals:true
// @noEmit: true
// @target: es2015
export class A {
#used = "used";
#unused = "unused";
constructor () {
console.log(this.#used);
}
} |
import React, { useState, useEffect } from 'react';
import { useRecoilValue } from 'recoil';
import { walletAddressState } from 'store/wallet';
import TabContent from './TabContent';
import { TabContainer } from '../common';
import useSynthetixQueries, { GasPrice } from '@synthetixio/queries';
import { wei } from '@s... |
import { HTMLElement } from './HTMLElement';
import { HTMLInputLabelsMixin } from './HTMLInputLabelsMixin';
import { reflectProperties } from './enhanceElement';
import { registerSubclass } from './Element';
import { TransferrableKeys } from '../../transfer/TransferrableKeys';
import { TransferrableMutationType } from ... |
import * as pbxprojDomXcodeModule from "pbxproj-dom/xcode";
declare global {
type IPbxprojDomXcode = typeof pbxprojDomXcodeModule;
}
$injector.register("pbxprojDomXcode", pbxprojDomXcodeModule); |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { charactersComponentComponent } from './characters-component.component';
describe('charactersComponentComponent', () => {
let component: charactersComponentComponent;
let fixture: ComponentFixture<charactersComponentComponent>;
beforeEa... |
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './vuetify';
Vue.config.productionTip = false;
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app'); |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import plistParser from 'plist';
import fs from 'fs';
import getPlistPath from './getPlistPath';
/**
* Returns Info.plist loc... |
import { BROADCAST_CHAT_SERVER_WHISPER, COMMAND_PLAYERS } from '../../events';
import { ConnectionId } from '../../types';
import { System } from '../system';
export default class PlayersCommandHandler extends System {
constructor({ app }) {
super({ app });
this.listeners = {
[COMMAND_PLAYERS]: this.o... |
import { ApiService } from '@graphql/services/api.service';
import { Injectable } from '@angular/core';
import { Apollo } from 'apollo-angular';
import { ADD_COMIDA, MODIFY_COMIDA } from '@graphql/operations/mutation/comida';
import { map } from 'rxjs/internal/operators/map';
@Injectable({
providedIn: 'root',
})
exp... |
import { DefaultBody, DefaultHeaders, DefaultParams, DefaultQuery, FastifyRequest } from 'fastify';
import { IncomingMessage } from 'http';
export type GenericHeaders = {
authorization?: string;
} & DefaultHeaders;
export type GenericRequest = FastifyRequest<IncomingMessage, DefaultQuery, DefaultParams, GenericHeade... |
/** @jsxImportSource theme-ui */
import React from 'react';
import { keyframes } from '@emotion/react';
import { Circle, Donut, CircleGrid, Square, Diamond } from '../lib';
export const down = keyframes`
from {
transform: translate3d(0,0,0);
}
to {
transform: translate3d(0,20px,0);
}
`;
export const up... |
import {waitForAsync, ComponentFixture, TestBed} from '@angular/core/testing';
import {NO_ERRORS_SCHEMA} from '@angular/core';
import {By} from '@angular/platform-browser';
import {CommonModule} from '@angular/common';
import {EBanner} from '../banner';
describe('EBanner', (): void => {
let component: EBanner;
... |
import {ICoordinate, IManifold, ISubManifold} from './manifolds/interfaces';
import {ManifoldBase, Manifold, SubManifold} from './manifolds/base';
import {Coordinate, LeafCoordinate, StemCoordinate} from './manifolds/coordinates';
// /**
// *
// * Challenge: complication - the proxy can be *partly* handled, by ju... |
import mongoose from 'mongoose';
import { Schema } from 'mongoose';
const userSchema = new mongoose.Schema({
name: String,
email: String,
given_name: String,
family_name: String,
picture: String,
communities: [
{
type: Schema.Types.ObjectId,
ref: 'Community',
... |
import { ApiModelProperty } from '@nestjs/swagger';
export class AccountParamsModel {
@ApiModelProperty() name: string;
@ApiModelProperty() secretId: string;
@ApiModelProperty() secretKey: string;
} |
import gql from 'graphql-tag'
import { CircleDigest } from '~/components'
export const USER_FOLLOWING_CIRCLES_PUBLIC = gql`
query UserFollowingCirclesPublic($userName: String!, $after: String) {
user(input: { userName: $userName }) {
id
info {
profileCover
description
}
s... |
import * as React from 'react';
function SvgRuler(
props: React.SVGProps<SVGSVGElement>,
svgRef?: React.Ref<SVGSVGElement>
) {
return (
<svg
width="1.5em"
height="1.5em"
strokeWidth={1.5}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
color="curre... |
import { IEventProvider, IGlobalMoveEventTypes } from "../event-provider/types";
import { $Cons } from "../utils/tuple";
import { ITouchHandler } from "./TouchController";
export class TouchDragAdapter<ExtraArgs extends unknown[] = []>
implements
IEventProvider<IGlobalMoveEventTypes<ExtraArgs>>,
ITouchHandle... |
import { Body, Controller, Get, Param, Post } from '@nestjs/common';
import {
ApiBearerAuth,
ApiOperation,
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { MockService } from '../services';
import { AccountModel } from '../models';
@ApiBearerAuth()
@ApiTags('generate')
@Controller('generate')
export cl... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utili... |
import { Component, Prop, Vue, Watch } from 'vue-property-decorator'
import './style.less'
import { getStrFullLength, cutStrByFullLength } from '@/utils/util'
import Input from 'ant-design-vue/es/input'
const TextArea = Input.TextArea
@Component({
name: 'LimitTextArea',
model: {
prop: 'value',
event: 'chan... |
import { isEncoderOptions } from "../../../src/encoder"
import { createEncoder } from "../../../src/encoder/EncoderOptions"
describe("EncoderOptions", () => {
it("isEncoderOptions", () => {
expect(isEncoderOptions(undefined)).toBe(false)
expect(isEncoderOptions({})).toBe(true)
expect(
isEncoderOpti... |
function decodeString(encodedString: string) {
const decodedString = Buffer.from(encodedString, 'hex').toString();
return decodedString;
}
export default decodeString; |
import { Tabs, Layout, Tag } from 'antd';
import React from 'react';
import { DeviceDetailDescriptions } from './DeviceDetailDescriptions';
import { useQuery } from '@apollo/react-hooks';
import TelemetryTable from './TelemetryTable';
import AttributeTable from './AttributeTable';
import { DeviceTypeMap } from 'src/con... |
import { createGlobalStyle } from 'styled-components'
import theme from './theme'
export default createGlobalStyle`
* { box-sizing: border-box; }
html, body {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
margin: 0;
padding: 0;
-webkit-font-smoo... |
import AwaitedHandler from '../AwaitedHandler';
import AwaitedPath from '../AwaitedPath';
import Constructable from '../Constructable';
import NodeFactory from '../NodeFactory';
import { ISuperHTMLElement, ISuperElement } from '../interfaces/super';
import { IElementCSSInlineStyle, IElementContentEditable, IHTMLHyperli... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {Component} from '@angular/core';
@Component({
selector: 'sh-accuracy',
templateUrl: './accuracy.html'
})
export class AccuracyComponent {
} |
// Type definitions for jQuery 1.10.x / 2.0.x
// Project: http://jquery.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Christian Hoffmeister <https://github.com/choffmeister>, Steve Fenton <https://github.com/Steve-Fenton>, Diullei Gomes <https://github.com/Diullei>, Tass Iliopoulos <https://gi... |
export * from './safe-storage';
export * from './string.utils';
export * from './url-builder';
export * from './logger/logger';
export * from './logger/device-console.logger';
export * from './logger/void.logger'; |
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import LandscapeTokenService from 'explorviz-frontend/services/landscape-token';
import Auth from 'explorviz-frontend/services/auth';
import ENV from 'explorviz-frontend/config/environ... |
import * as fs from 'fs-extra'
import * as path from 'path'
import * as tempy from 'tempy'
import { buildCssAsync } from './build-css-async'
import { buildHtmlAsync } from './build-html-async'
import { buildJsAsync } from './build-js-async'
import {
MAIN_JS_FILE,
OUTPUT_DIRECTORY,
SOURCE_DIRECTORY,
UI_CSS_FILE... |
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
import { DeleteUserPermissionsBoundaryRequest } from "../models/models_0";
import {
deserializeAws_queryDeleteUserPermissionsBoundaryCommand,
serializeAws_queryDeleteUserPermissionsBoundaryCommand,
} from "../protocols/Aw... |
import * as vscode from "vscode";
import { API } from "./api";
import { connectWebSocket, ConnectWebSocketOptions } from "./websocket";
import { NornsREPL } from "./repl";
import { info } from "./util";
import { SendWebSocketOptions } from "./send";
export interface ConnectCommandOptions extends SendWebSocketOptions {... |
import { IEnvironmentalVariables } from './env.variables';
export const developConfig: IEnvironmentalVariables = {
apiUrl: 'https://...',
googleOAuth: '6047....apps.googleusercontent.com',
kmsApiKey: '7a...1e',
logToConsole: false
}; |
import * as React from "react";
import { ITeam } from "@shlack/types";
import TeamLink from "./TeamSelector/TeamLink";
const TeamSelector: React.FunctionComponent<{ teams: ITeam[] }> = ({
teams,
}) => (
<nav className="team-selector bg-indigo-900 border-indigo-900 border-r-2 pt-2 text-purple-300 flex-none block">
... |
export { default as StringInput, Props as StringInputProps } from './stringInput';
export { default as NumberInput, Props as NumberInputProps } from './numberInput';
export { default as Select, Props as SelectProps } from './select'; |
import React from 'react'
import { storiesOf } from '@storybook/react'
import darkWrapperDecorator
from '../../../.storybook/decorators/darkWrapperDecorator'
import MainNav from '.'
storiesOf('MainNav', module)
.addDecorator(darkWrapperDecorator)
.add('default', () => (
<MainNav />
)) |
import { TemplateRef } from '@angular/core';
export interface GalleryConfig {
nav?: boolean;
dots?: boolean;
loop?: boolean;
fluid?: boolean;
thumb?: boolean;
zoomOut?: number;
navIcon?: string;
counter?: boolean;
gestures?: boolean;
thumbMode?: string;
thumbWidth?: number;
thumbHeight?: number... |
import React, { useEffect, useRef, useState } from "react";
import { _t } from "../../../languageHandler";
import Modal from "../../../Modal";
import Field from "../elements/Field";
import LabelledToggleSwitch from "../elements/LabelledToggleSwitch";
import withValidation, { IFieldState, IValidationResult } from "../el... |
import { Injectable } from '@nestjs/common';
import { Users } from '../users/constants/users';
@Injectable()
export class UserService {
getUser(userId: string) {
const user = Object.values(Users).filter(
(user: any) => user.userId === userId,
)[0];
if (user) return user;
return 'User Not Found... |
import { Schema as SchemaCollection } from '@entity/schema';
import {
ISchema,
MessageAPI,
SchemaEntity,
SchemaStatus,
TopicType,
SchemaHelper,
ModelHelper,
} from 'interfaces';
import { getMongoRepository } from 'typeorm';
import { readJSON } from 'fs-extra';
import path from 'path';
import... |
const getParams = (messageText, commandLength = 1) => messageText.substring(commandLength, messageText.length).trim().toUpperCase().split(' ')
const CLAZZ = {
'.': 'history',
'=': 'wallet',
'$': 'price',
'^': 'portfolio'
}
const METHOD = {
'+': 'add',
'-': 'remove'
}
const toCommand2 = (messageText: stri... |
/*
* Copyright 2018 herd-ui contributors
*
* 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 ... |
export const environment = {
production: true,
apiUrl: "http://localhost:8080/Backend/rest"
}; |
import {
types,
getEnv,
flow,
getRoot,
detach,
destroy,
isAlive,
Instance
} from 'mobx-state-tree';
import debounce from 'lodash/debounce';
import {ServiceStore} from './service';
import {FormItemStore, IFormItemStore, SFormItemStore} from './formItem';
import {Api, ApiObject, fetchOptions, Payload} fro... |
import { GroupByMethod } from "./GroupByMethod";
export class GroupBy {
private _field: string;
private _method: GroupByMethod;
private constructor() {
// empty
}
public get field(): string {
return this._field;
}
public get method(): GroupByMethod {
return this.... |
import { DependenciesVersionEvaluationUtils } from './DependenciesVersionEvaluationUtils';
import { SemverLevel } from '../../inspectors/package/PackageInspectorBase';
import { DependencyType } from '../../inspectors/IPackageInspector';
describe('DependenciesVersionEvaluationUtils', () => {
const oldPackages = [
... |
import { Component } from '@angular/core';
@Component({
selector: 'sky-test-cmp',
templateUrl: './vertical-tabset-no-group.component.fixture.html',
})
export class VerticalTabsetNoGroupTestComponent {
public currentIndex: number = undefined;
public maintainTabContent = false;
public indexChanged(index: numb... |
import { Component, OnInit } from '@angular/core';
import { Astilectron, Message, REQUEST_APP_VERSIONS } from './astilectron';
import { AppVersion } from './app-version';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.less']
})
export class AppComponent imp... |
class Person{
public hobby:string;
static numOfPersons:number=0;
constructor(private name:string,private age:number){
Person.numOfPersons++;
}
info():void{
console.log(this.name+" "+this.age);
}
};
const john=new Person('John',30);
john.info();
class Player extends Person{
... |
import { Component, OnInit } from '@angular/core';
import { first } from 'rxjs/operators';
import { User } from '@app/_models';
import { UserService } from '@app/_services';
@Component({ templateUrl: 'home.component.html' })
export class HomeComponent implements OnInit {
loading = false;
users: User[];
... |
import { VNode } from 'vue';
import { Component } from 'vue-property-decorator';
import * as tsx from 'vue-tsx-support';
import AppMain from '@/components/app/AppMain';
@Component({
components: {
AppMain,
},
})
export default class Index extends tsx.Component<any> {
public render(): VNode {
return (
... |
/**
* JS version of browser APIs. This library can only run in the browser.
*/
declare var win: Window;
export { win as window };
export declare var document: Document;
export declare var location: Location;
export declare var gc: () => any;
export declare const Event: any;
export declare const MouseEvent: any;
expor... |
import test from "ava";
// @ts-ignore
import * as wd from "wd";
import config from "../config";
const url = "https://e2e-boilerplate.github.io/sandbox/";
let browser: any;
test.before(async () => {
browser = wd.promiseChainRemote();
return config(url, browser);
});
test.after(async () => {
return browser.quit(... |
import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { RoutesRoutingModule } from './routes-routing.module';
import { DashboardComponent } from './dashboard/dashboard.component';
import { LoginComponent } from './sessions/login/login.component';
import { RegisterCompon... |
import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout";
import { Property, CssProperty, Style } from "@nativescript/core/ui";
export declare class Common extends GridLayout {
isRtl: boolean;
}
export declare const isRtlProperty: Property<Common, boolean>;
export declare const directionProperty: CssP... |
/**
* 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 i... |
import * as THREE from "three";
import ActorComponent from "../ActorComponent";
import Actor from "../Actor";
interface Data {
width: number;
height: number;
direction?: number;
orthographicScale: number;
ratio: { x: number; y: number; };
}
export default class GridRenderer extends ActorComponent {
width:... |
export enum URLBackground {
BG01 = '/images/background01.jpg',
BG02 = '/images/background02.jpg',
BG03 = '/images/background03.jpg',
ABOUT_LOGIN = '/images/about_login.png'
}
export enum RoutePage {
HOME = '/home',
PROFILE = '/profile',
SETTING = '/setting',
CHARACTERS = '/characters',
... |
import * as Alexa from 'alexa-sdk';
import { HandlerStateTypes } from '../enums/handler-state-types';
import { HelpIntent } from '../intents/help-intent';
import { IFirstUtteranceCondition } from '../conditions/first-utterance-condition';
import { IFirstUtteranceResult } from '../models/first-utterance-result';
import... |
import { ChangeDetectorRef, Component, HostListener, OnInit, OnDestroy } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { DialogService } from 'ng2-bootstrap-modal';
import { TableRowComponent, StoreService } from 'nrpti-angular-components';
import { ConfirmComponent } from '../.... |
import { CollectionCache, CollectionKey } from "../../../common";
import { Religions } from "./Religions";
import { Factions } from "./Factions";
import { Campaigns } from "./Campaigns";
export namespace ReligiousRebellions {
export const KEY = new CollectionKey("religious_rebellions");
export class Entry {
p... |
import { cartesianProduct, range, readInput } from "./common.js";
enum OpCode {
Add = 1,
Mul = 2,
End = 99,
}
function parseIntCode(source: string): number[] {
return source.split(",").map((code) => parseInt(code));
}
function interpIntCode(code: number[]) {
let pc = 0;
for (;;) {
const op = code[pc];
cons... |
/*
* Copyright © 2018 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated... |
import { expect } from 'chai'
import { suite, test } from '@testdeck/mocha'
import '../../Support'
interface User {
name: string;
age: number;
}
@suite
class ArrayTest {
joe = {
name: 'Joe',
age: 20
}
doe = {
name: 'Doe',
age: 21
}
users: User[] = []
... |
import { ExtendedStory, ExtraStoryFields, Story } from '../../types';
import routing from '../routing';
import DeferredJobsApiClient from '../DeferredJobsApiClient';
import {
StoriesListRequest,
StoriesListResponse,
StoriesSearchRequest,
StoryCreateRequest,
StoryUpdateRequest,
} from './types';
/... |
import { KintoneRestAPIClient, KintoneRecordField, KintoneFormFieldProperty } from '@kintone/rest-api-client'
import stc from 'string-to-color'
export type AppRecord = {
$id: KintoneRecordField.ID
parent: KintoneRecordField.Number
summary: KintoneRecordField.SingleLineText
startDate: KintoneRecordField.Date
... |
import { CollectionCache, CollectionKey } from "../../../common";
import { CampaignEffectScopes } from "./CampaignEffectScopes";
import { CampaignEffectGroups } from "./CampaignEffectGroups";
export namespace CampaignEffectScopesToCampaignEffectGroupsJunctions {
export const KEY = new CollectionKey("campaign_effect_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.