text stringlengths 10 953k |
|---|
declare namespace ts {
const versionMajorMinor = "3.0";
/** The version of the TypeScript compiler release */
const version: string;
}
declare namespace ts {
/**
* Type of objects whose values are all of the same type.
* The `in` and `for-in` operators can *not* be safely used,
* since `O... |
import {
Message,
TransferFiber,
TransferFiberContext,
TransferChangeDiff,
TransferPropChange,
TransferStateChange,
TransferMemoChange,
TransferHookInfo,
} from "common-types";
export * from "common-types";
export type LocType = "default" | "jsx";
export type SourceEvent = Message;
export type LinkedE... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" />,
'Send',
); |
import { HttpException } from './http.exception';
import { HttpStatus } from '../enums/http-status.enum';
import { createHttpExceptionBody } from './../utils/http-exception-body.util';
export class UnsupportedMediaTypeException extends HttpException {
constructor(
message?: string | object | any,
error = 'Un... |
import React, { FC } from 'react';
import { Button, Card, Icon, Statistic } from 'semantic-ui-react';
import './Timer.css';
type Props = {
timeLeft?: number;
isPrime?: boolean;
reset?: () => void;
};
const Timer: FC<Props> = ({
timeLeft = 0,
isPrime = false,
reset = () => undefined,
}) => (
<Card>
<... |
import { DateTime, Duration } from "luxon"
import { useMemo } from "react"
const NBSP = " "
const SEPARATOR = `${NBSP}:${NBSP}`
const padWithZero = (n: number) => {
return n.toString().padStart(2, "0")
}
interface UseEventTiming {
startAt?: string
endAt?: string
currentTime?: string
}
export const useEventT... |
// import 3rd party lib multiple-select for the tests
import 'multiple-select-modified';
import { Editors } from '../index';
import { SingleSelectEditor } from '../singleSelectEditor';
import { Column, SlickDataView, EditorArguments, GridOption, SlickGrid, ColumnEditor } from '../../interfaces/index';
import { Transla... |
import { randFlightDetails } from '../lib/flight-details';
import * as randFlightNumberFunctions from '../lib/flight-number';
import * as randAirlineFunctions from '../lib/airline';
import * as randAirportFunctions from '../lib/airport';
import * as randFutureDateFunctions from '../lib/future-date';
import { randAirpor... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
ProviderResourceTypesListOptionalParams,
ProviderResourceTypesListResponse
}... |
import { Client, Message } from 'discord.js';
import EventHandler, { EventType } from '@bot/EventHandler';
import TicTacToeBot from '@bot/TicTacToeBot';
import localize from '@config/localize';
import Config from '@config/Config';
/**
* Controls all interactions between modules of the bot.
* Loads configuration, lan... |
import { Command } from '../../classes/Command';
import { onSongRequest } from '../../util/musicUtil';
export const command: Command = {
name: 'add',
description: 'add song to queue withought automaticly playing',
usage: '[url | search]',
args: true,
async execute(message, args) {
onSongRequest(m... |
/* eslint-disable @typescript-eslint/no-empty-interface */
/**
* When exceptions are created based on built-in rules, the base type is always set
* to "Stock". For rules which are defined by you, the base type will be "Custom".
* The ZoneStop base type is used to designate exceptions created specifically when
* a ... |
import { Prim, Expr, StringLiteral, IntLiteral } from "./micheline";
import { decodeBase58Check, encodeBase58Check } from "./base58";
import { MichelsonData, MichelsonDataPair, MichelsonType, MichelsonTypePair } from "./michelson-types";
export type Tuple<N extends number, T> =
N extends 1 ? [T] :
N extends 2 ... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, Path, Line } from 'react-native-svg';
import { IconProps } from '../lib';
function FolderNotchMinus(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
{...p... |
// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ThemeProps } from '../types';
import type { ButtonProps } from './types';
import React, { useCallback } from 'react';
import styled from 'styled-components';
import Icon from '../Icon';
impor... |
export * from "./UserHelper"
export * from "./CompanyHelper"
export * from "./OfferHelper" |
export { SomethingWentWrongError } from './errors'; |
import AuthApi from '@/services/api/auth.service'
import { IAuth, IStore } from '@/store/interfaces'
import { VueAuthenticate } from '@alerta/vue-authenticate'
import * as Sentry from '@sentry/vue'
import { Module } from 'vuex'
export const makeAuthStore = (
vueAuth: VueAuthenticate
): Module<IAuth, IStore> => ({
... |
/**
* @license
* Copyright 2016-2019 the original author or 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... |
import React, { useState } from "react";
import { Button, ButtonGroup, Row } from "reactstrap";
import { connect, PromiseState } from "react-refetch";
import moment from "moment";
import { ProblemId } from "../../../interfaces/Status";
import Submission from "../../../interfaces/Submission";
import { getRatingColor, g... |
export class Spc {
constructor(
public subsOwner: string,
public Region: string,
public Plant: string
)
{
}
} |
import * as React from 'react'
import clsx from 'clsx'
export interface Props {
className?: string | Record<string, unknown>
}
const Card: React.FC<Props> = ({ className, children }) => {
return (
<div
className={clsx(
'rounded shadow-md',
'p-4 sm:p-6 md:p-8',
'bg-white dark:bg-g... |
import {basename} from 'path';
import * as vscode from 'vscode';
import {ZipFSProvider} from './ZipFSProvider';
function mount(uri: vscode.Uri) {
const zipUri = vscode.Uri.parse(`zip:${uri.path}`);
if (vscode.workspace.getWorkspaceFolder(zipUri) === undefined) {
vscode.workspace.updateWorkspaceFolde... |
export default {
product:'Products',
user:'Name',
chart:'Charts',
outLogin:'Log Out',
betaSrc:'https://res.ikingdata.com/liquidity/betaEn.png',
soonLine:'https://res.ikingdata.com/nav/navOnLineTipEn.jpg',
defi:{
name:'DeFi',
apy: {
name:'APY',
desc:'Qu... |
/**
* Gravitee.io Portal Rest API
* API dedicated to the devportal part of Gravitee
*
* The version of the OpenAPI document: 3.12.0-SNAPSHOT
* Contact: contact@graviteesource.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do ... |
class A4Spade extends A4Item {
constructor(sort:Sort, a:A4Animation, gold:number)
{
super("Spade", sort);
this.animations[A4_ANIMATION_IDLE] = a;
this.gold = gold;
this.usable = true;
}
event(a_event:number, otherCharacter:A4Character, map:A4Map, game:A4Game): boolean
{
let retval:boolean = super.ev... |
import childProcess from 'child_process';
import path from 'path';
import { promisify } from 'util';
import { expect } from 'chai';
const execFile = promisify(childProcess.execFile);
describe('CLI entry point', () => {
async function run(args: string[], env?: Record<string, string>): Promise<{ stdout: string, stderr... |
/**
* Fatture in Cloud API v2 - API Reference
* Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. For more ... |
import { NgModule } from '@angular/core';
import { LayoutsModule } from '../layouts/layouts.module';
import { ProfileModule } from '../profile/profile.module';
import { SharedModule } from '../shared/shared.module';
import { MainLayoutSidenavRoomsComponent } from './main-layout-sidenav-rooms/main-layout-sidenav-rooms.c... |
import {
test,
setupTest,
only
} from 'ember-qunit';
import {
module
} from 'qunit'
import DS from 'ember-data';
import {typeOf} from '@ember/utils'
module('Integration | Adapter | follow relationships', function (hooks){
setupTest(hooks)
test('get farms admin', async funct... |
import mysql from 'mysql';
import express, {Request, Response, urlencoded} from 'express';
import db from '../config/config';
export const getModuleforCourse = ((req: Request, res: Response) => {
let course_id = req.params.id;
let sql = `SELECT * FROM module JOIN coursemodule ON module.module_id = coursemodul... |
import { ReturnReason } from "./../../../../"
import { Router } from "express"
import middlewares from "../../../middlewares"
const route = Router()
export default (app) => {
app.use("/return-reasons", route)
/**
* List reasons
*/
route.get("/", middlewares.wrap(require("./list-reasons").default))
/**... |
import styled, { keyframes } from 'styled-components'
const loading = keyframes`
from {
background-position: 0 0;
rotate: 0;
}
to {
background-position: 100% 100%;
rotate: 360deg;
}
`
const Form = styled.form`
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.05);
background: rgba(0, 0, 0, 0.02);
... |
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {ItemComponent, TreeDeleteNodeAction, TreeEditNodeStartAction} from '../../../../main';
@Component({
selector: 'new-tree-item',
templateUrl: './newItem.component.html',
styleUrls: ['./newItem.component.less'],
changeDetection: ChangeDetec... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lic... |
export declare class TcpClient {} |
import { getBaseName } from 'src/lib';
it('getBaseName', () => {
expect(getBaseName()).toBe('');
}); |
<TS language="ca" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// tslint:disable: no-shadowed-variable
import type { Func, Plugin } from './types';
import { ReflectPlugins } from './constants/symbols'
export function plugin(plugin: Func, options?: any) {
return (target: any) => {
const plugins: Plugin[] = Array.from(Reflect.getMetadata(ReflectPlugins, target) ?? []);
pl... |
import { EventEmitter, ElementRef, SimpleChanges, OnChanges } from '@angular/core';
import { LocationStrategy } from '@angular/common';
export declare class BarComponent implements OnChanges {
private location;
fill: any;
data: any;
width: any;
height: any;
x: any;
y: any;
orientation: a... |
import React, { useRef, useState } from "react";
import * as THREE from "three";
import { GLTF } from "three-stdlib";
import { useGLTF } from "@react-three/drei";
import { useFrame, useThree } from "@react-three/fiber";
useGLTF.preload("/empress-v1-transformed.glb");
type EmpressGLTFResult = GLTF & {
nodes: {
P... |
import _ = require('lodash');
import net = require('net');
import tls = require('tls');
import http = require('http');
import https = require('https');
import httpolyglot = require('httpolyglot');
import destroyable, { DestroyableServer } from '../util/destroyable-server';
import { getCA, HttpsOptions, CAOptions } from... |
import { useEffect, useState } from "react";
import CitiesJson, { cities } from "./cities";
const useTurkeyCities = () => {
const [city, setCity] = useState("Adana");
const [districts, setDistricts] = useState([""]);
const [district, setDistrict] = useState("");
useEffect(() => {
if (city) {
const _... |
import Head from 'next/head'
import { FeatureList, HeroGradient, HeroIllustration, InfoList } from '@theguild/components'
import { handlePushRoute } from '@guild-docs/client'
import { accentColor } from './_app'
export default function Index() {
return (
<>
<HeroGradient
title="A GraphQL client tha... |
import * as crypto from 'crypto'
import { nanoid } from 'next/dist/compiled/nanoid/index.cjs'
import { AuthenticationError } from '../stdlib/index'
import SecurePasswordLib from 'secure-password'
export const hash256 = (input: string = '') => {
return crypto.createHash('sha256').update(input).digest('hex')
}
export... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
import * as fs from 'fs';
import * as path from 'path';
import * as component from '../../../common/component';
import { getLogger, Logger } from '../../../common/log';
import { ExperimentConfig, DlcConfig, flattenConfig } from '... |
import mongoose, { Schema } from "mongoose";
const urlSchema: Schema = new mongoose.Schema({
urlCode: String,
longUrl: String,
shortUrl: String,
date: { type: String, default: Date.now },
});
module.exports = mongoose.model("Url", urlSchema); |
import { NumberType } from "../Types/NumberType";
export default interface NumberValidation {
type : NumberType;
required? : boolean;
min? : number;
max? : number;
divided? : number;
even? : boolean;
} |
import _ from 'lodash'
import { concatStream, httpUtils } from '@packages/network'
import Debug from 'debug'
import { Readable } from 'stream'
import { getEncoding } from 'istextorbinary'
import {
ResponseMiddleware,
} from '@packages/proxy'
import {
CyHttpMessages,
SERIALIZABLE_RES_PROPS,
} from '../../types'
i... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { EuiSpacer } from '@elastic/eui';
import React, { useEffect } from 'r... |
import { ANTLRInputStream, IntStream } from "antlr4ts";
export class NoCaseANTLRInputStream extends ANTLRInputStream {
LA(i: number): number {
if ( i === 0 ) {
return 0; // undefined
}
if ( i < 0 ) {
i++; // e.g., translate LA(-1) to use offset 0
if ( ( t... |
#!/usr/bin/env ts-node
import test from 'tstest'
import { roomMatcher } from './room-matcher'
import { Room } from 'wechaty'
test('roomMatcher() smoke testing', async t => {
const matcher = roomMatcher(/test/i)
t.equal(typeof matcher, 'function', 'should return a match function')
})
test('roomMatcher() with st... |
/**
* Portions 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.
*/
// The algorithm used to determine whether a regexp can appear at a
// given point in the program is loosely based on swe... |
import fs from 'fs';
import * as local from './local-handlers';
import * as handlers from '../handlers';
import { scrub } from '../providers/state';
import { PendingLog } from '../types';
import * as fixtures from '../../test/fixtures';
describe('startCoordinator', () => {
it('starts the coordinator', async () => {
... |
import { EditorState } from "@codemirror/basic-setup";
import {
ChangeSpec,
StateEffect,
Transaction,
TransactionSpec,
} from "@codemirror/state";
import { Line } from "@codemirror/text";
import {
findBlockLevelOfLine,
setBlockLevelEffect,
} from "./line-block-level-map-field";
export function applyTextCha... |
import {
FacetSearchResult,
AgnosticCategoryTree,
AgnosticGroupedFacet,
AgnosticPagination,
FacetsGetters,
AgnosticBreadcrumb,
AgnosticFacet
} from '@vue-storefront/core';
import {
} from '../types';
import type { Facet, FacetSearchCriteria } from '@vue-storefront/woocommerce-api';
const availableSorting... |
import { Component, OnInit, Input } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { NgRedux } from '@angular-redux/store';
import { Issue } from '../classes/issue';
import { IAppState } from '../store/model';
import { StoreModule } from '../store/store.module';
import { IssueService } ... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './users.entity';
interface UserType {
username: string
password: string
}
@Injectable()
export class UsersService {
constructor(
@InjectRepository(Us... |
import { hyphenate } from '@vue/shared'
const systemModifiers = ['ctrl', 'shift', 'alt', 'meta']
type KeyedEvent = KeyboardEvent | MouseEvent | TouchEvent
const modifierGuards: Record<
string,
(e: Event, modifiers: string[]) => void | boolean
> = {
stop: e => e.stopPropagation(),
prevent: e => e.preventDefau... |
import { p, readLines, sum } from "./util/util";
const lines = readLines("input/a07.txt");
class QuantityAndColor {
constructor(readonly quantity: number, readonly color: string) {}
}
const rules: Map<string, QuantityAndColor[]> = new Map();
lines.forEach((line) => {
const [outerColor, containSpecs]: string[] =... |
import { Component } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SharedModule } from '@app/shared';
@Component({
selector: 'host-for-test',
template: ''
})
class HostComponent {
actionHandler = () => {};
}
des... |
import { makeStyles } from "@material-ui/core/styles";
export const useStyles = makeStyles(
theme => ({
caption: {
marginBottom: theme.spacing(2)
},
colName: {
fontSize: 14,
paddingLeft: 0,
width: "auto"
},
colType: {
fontSize: 14,
textAlign: "right",
wid... |
import React, {useEffect} from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TouchableOpacity,
} from 'react-native';
import Fontisto from 'react-native-vector-icons/Fontisto';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Ionicons from 'react-native-vect... |
import { MBFormField } from "./mb-form-field";
/**
* @prop schema
* @prop data
* @prop name
* @prop index
*/
export declare class MBFormTime extends MBFormField {
constructor();
renderField(): import("lit-element").TemplateResult;
getValue(): any;
setValue(val: any): void;
}
//# sourceMappingURL=mb... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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 "../../utilities";
/*... |
import ProductCard from 'app/components/ProductCard';
import NavigationService from 'app/navigation/NavigationService';
import React from 'react';
import { View, FlatList } from 'react-native';
import { Button } from 'react-native-paper';
import styles from './styles';
const Cart: React.FC = ({ route }) => {
const c... |
/*
* Copyright 2022 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... |
class WxStorage{
public static db: any;
public static openid: string = "ofWGW5KjCA9L5cWT9toGq-sud0I4";
/**
* 初始化
* @param env 数据库名称
* @param callback 回调函数
*/
public static init(env:string,callback:Laya.Handler):void{
if(Laya.Browser.onMiniGame){
WxGame.wx.cloud.i... |
import React from 'react';
import { LoggingMessageLevel } from '../LoggingInterfaces';
import styles from './LoggingLevelIcon.scss';
import { Icon, IIconTarget } from 'common/components/Icon';
export interface ILevelIconProps {
level: LoggingMessageLevel;
}
export class LevelIcon extends React.Component<ILevelI... |
import { ErrorResponse } from "er-expresskit";
import { log } from "../util/log";
import { ActivityType, AnyActivity } from "@spotihue/shared";
import { HueConnectionManager } from "./hue-connection-manager";
import { SpotifyConnectionManager } from "./spotify-connection-manager";
import { ActivityRunner, ActivityState... |
import { h, Component, Prop, Element, Watch, Event, EventEmitter } from '@stencil/core';
import { GraphqlFetch } from '../../utils/graphqlFetch';
import { connection } from '../../global/app';
import logger, { loadMark } from '../../utils/logger';
import {
DeleteResourceMutation,
ResourceIdQuery,
ResourceIdQuer... |
/**
* @jest-environment jsdom
*/
import { LocalStorage } from '../src';
describe('LocalStorage', () => {
it('Creates instance', () => {
const sut = new LocalStorage('some-name');
expect(sut).toBeInstanceOf(LocalStorage);
});
describe('getter/setter', () => {
let sut: LocalStorag... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { createTranslateLoader } from './localization/i18n.localization';
import { HttpClient, Http... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
EventEmitter,
EventSubscription,
Expression,
getById,
Prototypes,
Specification,
} from "../../../../core";
import { DragData } fro... |
import React, { Component } from 'react';
import { View, Text, TouchableOpacity, Image } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import chroma from 'chroma-js';
import DiffuseShadow, { IDiffuseShadowProps } from './DiffuseShadow';
import TouchableScale from './TouchableScale';
im... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About AirCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import * as React from 'react';
import { IMarkdownEntry } from '../../../../../../../model/trainer/markdownEntry';
import { ToolbarMarkdownButton } from './toolbarMarkdownButton';
const classNames: any = require('./buttonStyles.scss');
interface IProps {
mdCaret: string;
caretCursorPosition: number;
paneldId?: s... |
/**
* Created by qiaoc on 2017/2/12.
*/ |
import { Permissions, MessageEmbed, Formatters, Constants, MessageActionRow, MessageButton, type RoleResolvable, type TextChannel } from 'discord.js';
import { Discord as Utils } from '../../utils';
import DiscordClientError from '../error';
import defaultSettings from '../../../src/settings.json';
import { emojis } fr... |
import { MaterialDashboardAngularPage } from './app.po';
describe('sima-code App', () => {
let page: MaterialDashboardAngularPage;
beforeEach(() => {
page = new MaterialDashboardAngularPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphTex... |
export const description = 'Test uninitialized textures are initialized to zero when copied.';
import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { assert, unreachable } from '../../../../common/framework/util/util.js';
import { SubresourceRange } from '../../../util/texture/subresource... |
import { countTruthy } from './data'
/*
* Functions to help with features that vary through browsers
*/
/**
* Checks whether the browser is based on Trident (the Internet Explorer engine) without using user-agent.
*
* Warning for package users:
* This function is out of Semantic Versioning, i.e. can change unex... |
import { Component, OnInit } from '@angular/core';
import Chart from 'chart.js';
// core components
import {
chartOptions,
parseOptions,
chartExample1,
chartExample2
} from "../../variables/charts";
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.sc... |
/**
* @file FileWord 文件-word
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('file-word', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg... |
export const REFRESH_INTERVAL = 'REFRESH_INTERVAL'
export const METRICS_INTERVAL = 'METRICS_INTERVAL'
export const APP_NAME = 'APP_NAME'
export const UNLEASH_MODULE_OPTIONS = 'UNLEASH_MODULE_OPTIONS' |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Dolittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------... |
<TS language="te" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>చిరునామా లేదా లేబుల్ సవరించడానికి రైట్-క్లిక్ చేయండి</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-loader',
templateUrl: './loader.component.html',
})
export class LoaderComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ChannelSpecificDefaults } from './ChannelSpecificDefaults';
import type { CodeDiscussionRecord } from './CodeDiscussionRecord';
export type M2ChannelContentCodeDiscussion = {
codeDiscussionId: string;
notificationDefaults: Chan... |
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import { Expectations } from '../ExpectationTypes';
export default {
Topic: {
type: 'Topic', // the GraphQL type name
operations: {
create: ({ mutations }) => {
... |
import {PROVINCE_ROUTE} from 'config/route-consts';
import path from 'path';
import React from 'react';
import {Route, Switch, withRouter} from 'react-router-dom';
import ProvinceDetail from './ProvinceDetail';
import ProvinceMaster from './ProvinceMaster';
import './ProvinceView.scss';
function ProvinceView() {
ret... |
import React, {FC} from 'react';
import {A, DocSubSection} from 'components';
enum KeyGenerationNav {
keyGeneration = 'key-generation',
}
const KeyGeneration: FC = () => {
return (
<DocSubSection className="KeyGeneration" id={KeyGenerationNav.keyGeneration} title="Key Generation">
<p>
Before de... |
// Angular 2
import '@angular/platform-browser';
import '@angular/platform-browser-dynamic';
import '@angular/core';
import '@angular/common';
import '@angular/forms';
import '@angular/http';
import '@angular/router';
// RxJS
import 'rxjs'; |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils';
import { useButton } from '@mui/base/ButtonUnstyled';
import composeClasses from '@mui/base/composeClasses';
import { styled, us... |
import { Component } from '@angular/core';
import { Router } from '@angular/router'
import { IRol } from './interface';
import { RolService } from './service';
import { IDatagridOptions } from '../../../shared/datagrid/interface'
import { DataGridComponent } from '../../../shared/datagrid/component';
import { ModalDial... |
export default (ts) =>
ts
? [
{
fileName: 'overmind/state.ts',
code: `
import { Derive } from 'overmind'
export type Post {
id: string
title: string
body: string
datetime: number
}
export type State = {
posts: { [id: string] : Post }
postsList: Derive<State, Post[]>
}
ex... |
import { observable, action } from 'mobx';
class App {
@observable user = {
name: '',
};
@action changeUserName = (name: string) => {
this.user.name = name;
}
}
const app = new App;
export default app; |
import { h, Component, Fragment } from 'preact';
import * as style from './style.css';
import 'add-css:./style.css';
import 'shared/custom-els/loading-spinner';
import { SourceImage } from '../';
import prettyBytes from './pretty-bytes';
import { Arrow, DownloadIcon } from 'client/lazy-app/icons';
interface Props {
... |
import { Page } from 'src/pages/Page'
class WindowsPage extends Page {
open() {
return super.open('/windows')
}
get openWindowsTab() {
return $("[href*='windows']").click()
}
get switchTab() {
const window = browser.getWindowHandles()[1]
return browser.switchToWindow(window)
}
}
export d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.