text stringlengths 10 953k |
|---|
import styled from "styled-components";
const Card = styled.div<{ dragging?: boolean }>`
border-radius: 3px;
padding: 8px;
background-color: ${({ dragging, theme }) => (dragging ? theme.card.dragging.background : theme.card.background)};
color: ${({ dragging, theme }) => (dragging ? theme.card.dragging.color :... |
{
// Drive 100 ms forward
ibit.motor(BBMotor.All, 1023);
basic.pause(100);
// Drive 100 ms reverse
ibit.motor(BBMotor.All, -1023);
basic.pause(100);
// Drive 100 ms forward on left and reverse on right
ibit.motor(BBMotor.Left, 1023);
ibit.motor(BBMotor.Right, -1023);
basic.pause(100);
// Buzz f... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { OktaAuthModule } from '@okta/okta-angular';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
import { NonCancelableCustomEvent } from '@awsui/components-react/internal/events';
import { SelectProps } from '@awsui/components-react/select';
import { Mode } from '@awsui/global-styles';
import { TranslateFunction, useTranslate } from 'lazy-i18n';
import { useCallback, useMemo } from 'react';
interface Props {
o... |
import React, { useEffect, useReducer, useState, useCallback, useRef } from 'react';
import { notification } from 'antd';
import axios from 'axios';
import _ from 'lodash';
import useLocalStorage from './useLocalStorage';
import { getRequestToken, redirectLogin } from '../utils';
enum requestMethodTypes {
get = 'get... |
import styled, { css } from 'styled-components'
import { color, fontSize, fontWeight, ifProp } from '../../utility'
interface PageStyledProps {
active?: boolean
last?: boolean
}
export const PaginationStyled = styled.ul`
padding: 0;
margin: 0;
display: flex;
align-items: center;
list-style: none;
`
exp... |
import * as cytoscape from 'cytoscape'
import * as dagre from 'cytoscape-dagre'
cytoscape.use(dagre)
function renderCytoscape(window: Window) {
// const nodes = map(graph._nodes, (node: any) => ({data: { id: node.id, label: node.label}}))
// const edges = map(graph._edgeObjs, (edge, _) => ({data: { id: `${edge.v... |
import {EditorView} from "./editorview"
import {ContentView} from "./contentview"
import {inputHandler} from "./extension"
import {selectionCollapsed, getSelection} from "./dom"
import browser from "./browser"
import {EditorSelection, Transaction, Annotation, Text} from "@codemirror/next/state"
// FIXME reconsider thi... |
import { ethers, BigNumber } from 'ethers'
export interface ContractState {
auctionStarted: BigNumber
price: BigNumber
forSale: BigNumber[]
}
export async function getContractState(
contract: ethers.Contract
): Promise<ContractState> {
// console.log('querying contract...')
const [auctionStart... |
import Vue from 'nativescript-vue'
import Vuex from 'vuex'
import auth from '@/modules/auth/store'
import chart from '@/modules/chart/store'
import social from '@/modules/social/store'
Vue.use(Vuex)
const store = new Vuex.Store({
modules: {
auth,
social,
chart,
},
strict: TNS_ENV !== 'production',
... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import * as path from 'path';
import {utils as coreUtils, chromeConnection } from 'vscode-chrome-debug-core';
const WIN_APPDATA = proces... |
/**
* These options are intended to be used with drop-down menus.
*
* All of them correspond to values that the Platform SDK and
* its various components can understand and correspond to as
* you would expect without having to implement any wrappers.
*/
export const PlatformSdkChoices = {
marketProviders: [
{ ... |
import { listenAndServe } from "https://deno.land/std/http/server.ts";
import { acceptable, acceptWebSocket } from "https://deno.land/std/ws/mod.ts";
import { chat } from "./chat.ts";
listenAndServe({ port: 3000 }, async (req) => {
if (req.method === "GET" && req.url === "/") {
req.respond({
status: 200,
... |
import chalk from 'chalk';
import dedent from 'ts-dedent';
import { ConfigFile, readConfig, writeConfig } from '@storybook/csf-tools';
import { Fix } from '../types';
import { getStorybookInfo } from '../helpers/getStorybookInfo';
import { PackageJson, writePackageJson } from '../../js-package-manager';
const logger... |
export * as ExtractSecretKey from "./ExtractSecretKey";
export * as Status from "./Status";
export * as History from "./History";
export * as Command from "./Command"; |
// ./src/gameCore.js
// This is the core of the game. This consists of the gameloop, which handles
// all updates to the game system as well as the rendering.
import React from "react";
import ReactDOM from "react-dom";
import App from "../App";
import "../css/app.css";
import "semantic-ui-css/semantic.min.css";
impo... |
import { GuildMember, TextChannel } from 'discord.js';
import { RunFunction } from '../../interfaces/Event';
import { GuildSettings } from '../../interfaces/GuildSettings';
export const name = 'guildMemberAdd';
export const run: RunFunction = async (client, member: GuildMember) => {
// Load the guild's settings
... |
// *** 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 { html, css, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import '../components/menu-button.js';
@customElement("dashboard-module")
export class DashboardModule extends LitElement {
static override styles = css`
header {
height: 40px;
background-color: orange;
... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class FaSkype extends React.Component<IconBaseProps, any> { } |
import "leaflet.styledlayercontrol";
import "leaflet.styledlayercontrol/css/styledLayerControl.css";
import "./LayersControllerComp.css";
import * as L from "leaflet";
import { GisPluginBase, GisPluginContext, MapState, SelectionMode } from "../../pluginBase";
import { ShapeLayerDefinition, ClusterHeat, ShapeDefinition... |
// Type definitions for ag-grid-community v20.0.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { RowNode } from "./rowNode";
import { GridApi } from "../gridApi";
import { ColumnApi } from "../columnController/columnApi";
import { Column } from "./column";
imp... |
import { IsString, Matches, MaxLength, MinLength } from 'class-validator';
export class AuthCredentialsDto {
@IsString()
@MinLength(4)
@MaxLength(20)
username: string;
@IsString()
@MinLength(8)
@MaxLength(20)
@Matches(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])/, {
message: 'Password too weak',
})
passwo... |
import { Token, TokenAmount, WETH } from '@sushiswap/sdk'
import React, { useContext } from 'react'
import { Link, RouteComponentProps, withRouter } from 'react-router-dom'
import { Text } from 'rebass'
import { ThemeContext } from 'styled-components'
import { useActiveWeb3React } from '../../hooks/useActiveWeb3React'
... |
import * as esbuild from "https://deno.land/x/esbuild@v0.14.38/mod.js";
import * as path from "https://deno.land/std/path/mod.ts";
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
// import * as esbuild from "esbuild";
// deno run -A build-script.ts
let result = await esbuild.build({
entryPoints... |
import { AnimationActor } from "./generic";
export class OpacityAnimationActor extends AnimationActor{
public constructor(){
super('opacity', (fraction, element) => {
element.style.opacity = fraction.toString();
});
}
} |
export type QueriesState = Group
export type Item = Query | Group
export interface Query {
id: string
name: string
value: string
description: string
tags: string[]
}
export interface Group {
id: string
name: string
items: (Group | Query)[]
isOpen?: boolean
}
export type QueriesAction =
| QUERIES... |
import {
capitalize,
chunkArray,
formatDaysInYears,
formatLocation,
formatMonthsAndDays,
formatName,
formatTimestampToDate,
formatTimestampToDateTime,
getCurrentPeriod,
getDate,
getNamesFromString,
getTime,
getWith404AsNull,
isPrisonerIdentifier,
isTemporaryLocation,
isToday,
isTodayOr... |
import { FC, FormEvent, useState } from "react";
import styles from "./ContactFrom.module.css";
const ContactFrom: FC = () => {
const [username, setUsername] = useState<string>("");
const [message, setMessage] = useState<string>("");
const handleSubmit = (e: FormEvent<HTMLFormElement>) => {
e.preventDefaul... |
import { StyledIcon } from '@styled-icons/styled-icon';
export declare const BrightnessHalf: StyledIcon;
export declare const BrightnessHalfDimensions: {
height: number;
width: number;
}; |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { CategoriasModule } from '../categorias/categorias.module';
import { JogadoresModule } from '../jogadores/jogadores.module';
import { DesafiosController } from './desafios.controller';
import { DesafiosService } from './... |
import Footer from '../../components/basics/footer';
import Header from '../../components/basics/header';
import Title from '../../components/basics/title';
import CriarEmpresaBody from 'components/basics/criarEmpresaBody';
const CriarEmpresa: React.FC = () => {
return (
<>
<Title />
... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import { Hanlder, ViewManager } from "@/common/viewManager";
import * as path from "path";
import * as vscode from "vscode";
import { ConfigKey, Constants, DatabaseType, ModelType, Template } from "../../common/constants";
import { Global } from "../../common/global";
import { Util } from "../../common/util";
import { ... |
import { UseKnobOptions } from './types';
import { useKnob } from './useKnob';
type UseSelectKnobOptions<T extends string> = UseKnobOptions<T> & {
allowsNone?: boolean;
};
export const useSelectKnob = <T extends string>(options: UseSelectKnobOptions<T>) => {
const [value, setValue] = useKnob<T>({
initialValue... |
// See README.md for details
import * as confinit from "../index";
import * as path from "path";
export class Section1Config implements confinit.IConfigSection {
url: string = "";
validate(): void {
if (!this.url) {
throw new Error("Section 1 url not set.");
}
}
}
export class WebServerConfig implements c... |
/*
* 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 { mount, shallow } from 'enzyme';
import toJson from 'enzyme-to-json';... |
import { Engine } from '../..';
import { Jobs } from './jobs';
import { ApplicationError } from '../../error';
import { IJObStatus } from './types';
import { Job } from './job';
let logger;
export class JobRunner {
private _jobs;
private _audit;
constructor(private _engine: Engine) {
logger = _engine.log.l... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import {
DaffCart,
DaffCartAddressServiceInterface,
DaffCartAddress
} from '@daffodil/cart';
@Injectable({
providedIn: 'root'
})
export class DaffInMemoryCartAddressService impleme... |
/*
* Copyright 2020 IBM Corporation
*
* 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 function normalizePath(str: string) {
// Convert Windows backslash paths to slash paths: foo\\bar ➔ foo/bar
// https://github.com/sindresorhus/slash MIT
// By Sindre Sorhus
if (typeof str !== 'string') {
throw new Error(`invalid path to normalize`);
}
str = str.trim();
if (EXTENDED_PATH_REGEX.... |
import React from 'react';
import Head from 'next/head';
function HomeHeader() {
return (
<Head>
<title>Kamaal Farah</title>
<h1 className="about-name">
{'Welcome '}
<span aria-label="put up hand" role="img">
🙋♂️
</span>
</h1>
<p>
What theme do ... |
import { exec } from 'child_process';
import { Container } from 'typedi';
import { Crontab, CrontabStatus } from '../data/cron';
import CronService from '../services/cron';
import CookieService from '../services/cookie';
const initData = [
{
name: '更新面板',
command: `ql update`,
schedule: `${randomSchedule... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import fs = require('fs');
import os = require('os');
import path = require('path');
import vscode = require('vscode');
import utils = re... |
/**
* Copyright (c) BrownBear, 2021 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (... |
import EventManager = require('./events/EventManager');
import IMaster = require('../Master');
import MultiNodeWidget = require('./MultiNodeWidget');
import Promise = require('../../Promise');
import util = require('../../util');
import View = require('./View');
// TODO: Should not really extend any widget, as master ... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ExpressAdapter } from "@nestjs/platform-express";
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
import * as csurf from "csurf";
import * as rateLimit from "express-rate-limit";
import * as helmet from "hel... |
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
//# sourceMappingURL=query-assigned-elements.d.ts.map |
import { NgModule } from '@angular/core';
import { MatDatepickerModule,
MatNativeDateModule,
MatFormFieldModule,
MatInputModule } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
imports: [
MatDatepickerModule,
MatFo... |
export enum Metadata {
Params = 'design:paramtypes',
Type = 'design:type',
}
export enum Decorator {
Controller = 'ioc:controller',
Import = 'ioc:import',
Method = 'ioc:method',
Provide = 'ioc:provide',
Injectable = 'ioc:injectable',
ParamsInject = 'ioc:params-inject',
PropertiesInject = 'ioc:properti... |
import { AuthAction } from '../actions';
import { Action } from '../Types';
export interface Auth {
loggedin: false;
uid: string;
}
const initialState: Auth = {
loggedin: false,
uid: '',
};
const AuthReducer = (state = initialState, action: Action) => {
// console.log('[AuthReducer] invoked with type: ' + ... |
import * as React from "react";
const paths = {
megaphone:
"M2 6.77l12.33-3.43.67.53v8.6l-.67.53-6.089-1.595a2.16 2.16 0 1 1-4.178-1.095L2 9.77l-.42-.53V7.3L2 6.77zm3.006 3.787a1.13 1.13 0 0 0-.04.242 1.17 1.17 0 0 0 2.288.347l-2.248-.589zM2.58 8.82L14 11.83V4.5L2.58 7.72v1.1z",
mute:
"M1.5 5h2.79l3.86-3.8... |
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
export interface NavigationState {
openModal?: 'about' | 'menu' | 'help' | 'hint' | 'visai' | 'settings' | 'share' | 'submit' | 'filters' | 'stats',
firstRender: boolean;
};
const initialState: NavigationState = {
openModal: undefined,
firstRende... |
import { Box, BoxProps, color, Stack, StackProps } from '@stacks/ui';
import { Caption, Text } from '@components/typography';
import React, { memo } from 'react';
import { FiAlertTriangle } from 'react-icons/fi';
function ErrorButton({ variant, ...props }: { variant?: 'secondary' } & BoxProps) {
return (
<Captio... |
import React, { Fragment } from "react"
import { graphql } from "gatsby"
import ContactLargeSlice from "./contact/large"
import ContactSmallSlice from "./contact/small"
// import NewsletterSlice from "./newsletter"
const Footer = ({ siteTitle, has_newsletter_slice, has_contact_slice, contact_slice_size }) => {
retu... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Keypair, PublicKey } from '@solana/web3.js';
import { program } from 'commander';
import log from 'loglevel';
import { buildTree } from '../tests/merkle-tree';
import { writeHashes, loadMessages, hashMessages, loadLeaves, writeTree, writeMetadata } from './helpers/utils';
program.version('0.0.1');
log.setLeve... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSoar</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import { Debug } from 'skyrimPlatform'
import * as sp from 'skyrimPlatform'
export interface InstallActionResult {
nextStep: string
}
export default class InstallAction {
public static async perform(wizardName: string, name: string): Promise<InstallActionResult | undefined> {
// Check for built-in cor... |
import React from 'react';
import { connect } from 'react-redux';
import { v1 as uuidv1 } from 'uuid';
import { SelectDataModelComponent } from './SelectDataModelComponent';
import type {
IRuleModelFieldElement,
IDataModelFieldElement,
IAppState,
} from '../../types/global';
export interface IRuleComponentProps ... |
import { css, html, LitElement, property } from "lit-element";
import {
CardConfigGroup,
CardConfig,
LovelaceCard,
ViewConfig,
} from "../types";
export class BaseLayout extends LitElement {
@property() cards: Array<LovelaceCard> = [];
@property() index: number;
@property() narrow: boolean;
@property()... |
import { Controller, Get, Post, Req, Request, UseGuards } from '@nestjs/common';
import { AuthService } from './auth/auth.service';
import { JwtAuthGuard } from './auth/jwt-auth.guard';
import { LocalAuthGuard } from './auth/local-auth.guard';
@Controller()
export class AppController {
constructor(private readonly a... |
import { RequestBuilder, GetAllRequestBuilderV4, GetByKeyRequestBuilderV4, CreateRequestBuilderV4, UpdateRequestBuilderV4, DeleteRequestBuilderV4 } from '@sap-cloud-sdk/core';
import { UserLanguages } from './UserLanguages';
/**
* Request builder class for operations supported on the [[UserLanguages]] entity.
*/
expo... |
import { ElementRef, AfterViewChecked, AfterContentInit, QueryList, TemplateRef, EventEmitter } from '@angular/core';
import { DomHandler } from '../dom/domhandler';
import { ObjectUtils } from '../utils/objectutils';
export declare class OrderList implements AfterViewChecked, AfterContentInit {
el: ElementRef;
... |
import TextButton from '@celo/react-components/components/TextButton.v2'
import Touchable from '@celo/react-components/components/Touchable'
import Backspace from '@celo/react-components/icons/Backspace'
import colors from '@celo/react-components/styles/colors.v2'
import fontStyles from '@celo/react-components/styles/f... |
import { Util } from './util';
describe('Util => parseArray', () => {
let empty: string = '';
let arrayData: string = 'one;two;three;three;;';
it('empty array', () => {
expect(Util.parseArray(empty)).toEqual([]);
});
it('array with repeated elements', () => {
expect(Util.parseArray(arrayData)).toE... |
import { identifyTextNode } from './identifyTextNode';
// This shows the HTML page in "ui.html".
figma.showUI(__html__, { height: 400, width: 500 });
figma.on('selectionchange', () => {
const results = [];
for (const node of figma.currentPage.selection) {
if (node.type === 'TEXT') {
console.log('current... |
import { assertStrictEquals } from "https://deno.land/std@0.89.0/testing/asserts.ts";
import { generateHTMLForDisplay } from "./generate_html_for_display.ts";
import { VALID_FAVORITE_INFO_1, VALID_FAVORITE_INFO_2 } from "./test_data.ts";
Deno.test(
"generateHTMLForDisplay(): generates a valid HTML scaffold when an e... |
export type TUserInfo = {
name: string
username: string
avatarUrl: string
watchingCount: number
wannaWatchCount: number
watchedCount: number
onHoldCount: number
stopWatchingCount: number
recordsCount: number
} |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';
import { AppDto, CallsUsageDto } from '@app/shared';
@Component({
selector: 'sqx-api-traffic-summary-card[app][... |
// shamelessly copied from npm's cli source code
// print a banner telling the user to upgrade npm to latest
// but not in CI, and not if we're doing that already.
// Check daily for betas, and weekly otherwise.
import pacote from "pacote"
import semver from "semver"
import kleur from "kleur";
export const updateNo... |
import express, { Request, Response } from 'express'
import 'reflect-metadata'
import { getUser, getUsers } from './controllers/userController'
require('dotenv').config()
const cors = require('cors')
const serverless = require('serverless-http')
export const app = express()
console.log('node version is next')
con... |
import { Binder, Utils, EventDispatcher } from '@ribajs/core';
export const parentRouteClassStarBinder: Binder<string> = {
name: 'parent-route-class-*',
bind(el: HTMLUnknownElement) {
this.customData = {
dispatcher: new EventDispatcher('main'),
};
},
/**
* Tests the url with the current loca... |
import { Prisma } from "@prisma/client";
import { prisma } from "../utils/seed";
const input: Prisma.RaceCreateInput[] = [
{
name: "Dwarf",
description:
"Your dwarf character has an assortment of inborn abilities, part and parcel of dwarven nature.",
age: "Dwarves mature at the same rate as humans,... |
import * as React from 'react';
import { TextField } from 'office-ui-fabric-react/lib/TextField';
import './TextField.Examples.scss';
export class TextFieldPrefixAndSuffixExample extends React.Component<any, any> {
public render(): JSX.Element {
return (
<div className="docs-TextFieldExample">
<Tex... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Packages
import { Context } from "probot";
// Ours
import run from "./run";
import match from "./helpers/match";
export default async function update(context: Context) {
const { github } = context;
// Extract necessary info
const repo = context.repo();
const origin = context.issue();
// Constants
const lab... |
import path = require('path');
const { spawn } = require('child_process');
import * as vscode from 'vscode';
import { getAddDisposable } from './utils';
// - TODO test linux and mac!
// - TODO check spaces in folder names?
// - TODO this will fail with non local resources (and possibly with mutliple workspaces)
// ... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule,PreloadAllModules } from '@angular/router';
import { AppComponent } from './app.component';
import { AuthGuard } from './shared';
const routes: Routes = [
{ path: '', loadChildren: './layout/layout.module#LayoutModule', canActivate: [AuthGuar... |
import { AttestationStat } from '@celo/contractkit/lib/wrappers/Attestations'
import { expectSaga } from 'redux-saga-test-plan'
import { call, select } from 'redux-saga-test-plan/matchers'
import { verificationMigrationRan } from 'src/app/actions'
import { numberVerifiedSelector, ranVerificationMigrationSelector } from... |
import type { Stats } from 'fs'
import fs from 'fs/promises'
import path from 'path'
import kleur from 'kleur'
import timeSpan from 'time-span'
import { transform } from 'esbuild'
import type { TW, Configuration, Mode } from 'twind'
import type { VirtualSheet } from 'twind/sheets'
import { create } from 'twind'
impor... |
import ProductsRepository from '@modules/products/typeorm/repositories/products.repository';
import AppError from '@shared/errors/AppError';
import Product from '@modules/products/typeorm/entities/product';
import { StatusCodes } from 'http-status-codes';
import { getCustomRepository } from 'typeorm';
export class Lis... |
<TS language="fr_CA" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Créer une nouvelle adresse</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
... |
export declare enum TextureFormat {
RGB,
RGBA,
LUMINANCE_ALPHA,
LUMINANCE,
ALPHA,
R8,
R16F,
R32F,
R8UI,
RG8,
RG16F,
RG32F,
RG8UI,
RGB8,
SRGB8,
RGB565,
R11F_G11F_B10F,
RGB9_E5,
RGB16F,
RGB32F,
RGB8UI,
RGBA8,
SRGB8_ALPHA8,
RGB... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ModalLlenarPeticionComponent } from './modal-llenar-peticion.component';
describe('ModalLlenarPeticionComponent', () => {
let component: ModalLlenarPeticionComponent;
let fixture: ComponentFixture<ModalLlenarPeticionComponent>;
... |
import { useContext } from 'react';
import { LoginBox } from './components/LoginBox';
import { MessageList } from './components/MessageList' ;
import { SendMessageForm } from './components/SendMessageForm';
import { AuthContext } from './context/auth';
import styles from './styles/App.module.scss'
export function App... |
import * as dynamodb from "@aws-cdk/aws-dynamodb"
import * as lambda from "@aws-cdk/aws-lambda"
import * as lambdaEventSources from "@aws-cdk/aws-lambda-event-sources"
import * as nodeLambda from "@aws-cdk/aws-lambda-nodejs"
import * as sns from "@aws-cdk/aws-sns"
import * as sqs from "@aws-cdk/aws-sqs"
import * as cdk... |
import IOptions from "../IMethodOptions";
import IProducer from "../IProducer";
import Artist from "../Artist";
import Instance from "../Instance";
import List from "../List";
import PlaybackSource from "../PlaybackSource";
import Producer from "../Producer";
import Source from "../Source";
import Track from "../Track... |
import { Buffer } from 'buffer';
declare let exports: any;
declare let module: any;
declare let require: any;
function nodeRandom(count, options) {
var randomBytes = require('nativescript-randombytes');
const buf = randomBytes(count);
switch (options.type) {
case 'Array':
return [].sl... |
/**
* @file TextBold 文字加粗
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('text-bold', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg wi... |
export interface NotificationMessage {
title: string;
body: string;
image?: string;
[key: string]: string;
} |
import { getImplicitlyTouchedProjectsByJsonChanges } from './implicit-json-changes';
import { WholeFileChange } from '../../file-utils';
import { DiffType } from '../../../utils/json-diff';
import { NxJsonConfiguration } from 'nx/src/shared/nx';
function getModifiedChange(path: string[]) {
return {
type: DiffTyp... |
import { mapperRuntimeTypeDetectorRegistry } from '../../mapping';
mapperRuntimeTypeDetectorRegistry.set('arrayBuffer', v => v instanceof ArrayBuffer); |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule, JsonpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { SearchBarComponent } from './search-bar/search-bar.compone... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-cadastro',
templateUrl: './cadastro.page.html',
styleUrls: ['./cadastro.page.scss'],
})
export class CadastroPage implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { OnInit, OnDestroy, DoCheck } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/distinctUntilChanged';
import '... |
import {EStep, proccessInfra} from './aws'
import { parse } from 'ts-command-line-args';
interface ICreatesInfraArgs {
build_cluster_vpc: boolean;
build_ecr_service: boolean;
build_ecs_fargate_service: boolean;
build_redis_elastic_cache: boolean;
help?: boolean;
}
const getCode = (args: ICreatesInfraArgs... |
///
/// Copyright © 2016-2021 The Thingsboard 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... |
import { BulkActionResponse, After, ActionRequest, ActionContext } from 'admin-bro/types/src'
import { BaseProvider } from '../providers'
import { UploadOptionsWithDefault } from '../types/upload-options.type'
import { deleteFile } from '../utils/delete-file'
export const deleteFilesFactory = (
uploadOptionsWithDefa... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
apiURL: 'https://xhlflxqszoyxrxusvlip.supabase.co',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.