text stringlengths 10 953k |
|---|
import React, { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { Text, SafeAreaView, View } from 'react-native';
import { withSafeAreaInsets } from 'react-native-safe-area-context';
import { useDispatch, useSelector } from 'react-redux';
import JitsiScreen from '../../../../base/modal/... |
export default {"backend":{"name":"git-gateway","branch":"master"},"media_folder":"static/img","public_folder":"/img","collections":[{"name":"pages","label":"Pages","files":[{"file":"src/cms/landing.md","label":"Landing Page","name":"landing","fields":[{"label":"Template Key","name":"templateKey","widget":"hidden","def... |
import { TextChannel, User } from "discord.js";
import { NorthClient, NorthInteraction, NorthMessage, SlashCommand } from "../../classes/NorthClient";
import * as Discord from "discord.js";
import { color, ms } from "../../function";
import * as math from "mathjs";
import * as moment from "moment";
import formatSetup ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { wait } from "alcalzone-shared/async";
import * as os from "os";
import * as path from "path";
import { getAdapterName, getAppName } from "../../lib/adapterTools";
import { executeCommand } from "../../lib/executeCommand";
import { AdapterSetup } from "./lib/adapterSetup";
import { ControllerSetup } from "./lib... |
import { SVGProps } from "react";
declare const Aragon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
export default Aragon; |
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { Project } from './project.model';
import { PersistenceService } from '../../core/persistence/persistence.service';
import { select, Store } from '@ngrx/store';
import * as shortid from 'shortid';
import { IssueIntegrationCfg, Is... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Erupees</source>
<translation>O Erupeesu</translation>
</message... |
// Type definitions for Microsoft.Maps.VenueMaps 7.0
// Project: http://msdn.microsoft.com/en-us/library/hh312797.aspx
// Definitions by: Eric Todd <https://github.com/ericrtodd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="Microsoft.Maps.d.ts"/>
declare module Microsoft.Maps.V... |
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import {
CertifiedTransaction,
TransactionDigest,
GetTxnDigestsResponse,
GatewayTxSeqNumber,
ObjectRef,
GetObjectInfoResponse,
SignedTransaction,
TransactionResponse,
} from '../types';
import { Provider } from './provider'... |
import { CurrencyPairPositionWithPrice, Trade } from 'rt-types';
import { InteropTopics } from '../../types';
import { ExcelAdapter } from './types';
class LegacyExcelAdapter implements ExcelAdapter {
readonly name = "legacy"
isSpreadsheetOpen = () => {
// Assume it's open - data published to the bus will be ... |
class JQueryElement {
id:string;
}
class JQuery {
[n:number]:JQueryElement
}
var jq:JQuery={ 0: { id : "a" }, 1: { id : "b" } };
jq[0].id; |
import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { LunpaiService } from "./shared/lunpai.service";
import { LunpaiRoutingModule } from './lunpai-routing.module';
import { IndexComponent } from './index/index.component';
import { SetComponent } from './set/set.compo... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { expect } from 'chai';
import { workspace } from 'vscode';
import { IAsyncDisposableRegistry, IConfigurationService } from '../../../client/common/types';
import { getExtensionSettings } from '../../common';
import {... |
declare module 'ember-power-select/test-support' {
export function selectChoose(cssPath: string, optionTextOrOptionSelector: string, index?: number);
export function selectSearch(cssPath: string, searchText: string);
export function removeMultipleOption(cssPath: string, optionText: string);
export funct... |
// Copyright 2021 Riki Singh Khorana. All rights reserved. MIT license.
/// <reference path="https://deno.land/x/deploy@0.3.0/types/deploy.fetchevent.d.ts" />
/// <reference path="https://deno.land/x/deploy@0.3.0/types/deploy.ns.d.ts" />
/// <reference path="https://deno.land/x/deploy@0.3.0/types/deploy.window.d.ts" /... |
import { registerAs } from '@nestjs/config';
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { Profile } from 'src/auth/profile.entity';
import { User } from 'src/auth/user.entity';
import { Attendee } from 'src/events/attendee.entity';
import { Event } from 'src/events/event.entity';
export default reg... |
import React from "react";
import { View, Text } from "react-native";
import { styles } from "./styles";
type Props = {
title: string;
subtitle: string;
}
export function ListHeader({
title,
subtitle
} : Props) {
return (
<View style={styles.container}>
<Text style={styles.title}>
{ titl... |
import client from './apiClient'
export const createFeedback = (payload) =>
client.post('/admin/feedback', payload).then((res) => res.data)
export const updateFeedback = (code: string, payload) =>
client.patch(`/admin/feedback/${code}`, payload).then((res) => res.data)
export const deleteFeedback = (code: string... |
import { TestBed } from '@angular/core/testing';
import { MockProviderService } from './mockprovider.service';
describe('MockProviderService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: MockProviderService = TestBed.get(MockProviderService);
... |
'use strict';
import flatiron = require('flatiron');
import path = require('path');
import {isPackageSync} from './utils';
import {checkVersion} from '../check-self-update';
import labShare from '../labshare';
import loaderPlugin = require('./loader-plugin');
const {app} = flatiron;
const lscRoot = path.join(__dirnam... |
import { Menu, ipcMain, shell } from 'electron'
import { ensureItemIds } from './ensure-item-ids'
import { MenuEvent } from './menu-event'
import { truncateWithEllipsis } from '../../lib/truncate-with-ellipsis'
import { getLogDirectoryPath } from '../../lib/logging/get-log-path'
import { ensureDir } from 'fs-extra'
im... |
import { Test, TestingModule } from '@nestjs/testing';
import { MatchesService } from './matches.service';
describe('MatchesService', () => {
let service: MatchesService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [MatchesService],
}).compile()... |
import * as React from 'react';
import {Button, View, TouchableOpacity} from 'react-native';
import {NavigationContainer, ParamListBase} from '@react-navigation/native';
import {createNativeStackNavigator, NativeStackNavigationProp} from 'react-native-screens/native-stack';
function First({
navigation,
}: {
naviga... |
// tslint:disable:no-console
import { writeFileSync } from "fs";
import { convertSchemaToTypescript, Schema, schemaSchema } from "./src";
const path = process.argv[2];
if (!path) {
console.error("Usage: ts-node compileSchemaSchema.ts <path>");
console.error("Expected a path argument");
process.exit(1);
}
try {
co... |
import { Word } from 'types/word.types'
export const mockWords: Word[] = [
{
id: 1,
name: 'barter',
definition: 'exchange goods without involving money',
function: 'verb'
},
{
id: 2,
name: 'wistful',
definition: 'vaguely longing, sadly thoughtful',
function: 'adjective'
},
{
... |
export const ADDON_ID: string = "fast-dna/design-system";
export const PARAM_KEY: string = "design-system";
export const PANEL_ID: string = `${ADDON_ID}/panel`;
export const UPDATE_DESIGN_SYSTEM_EVENT: string = `${ADDON_ID}/update-design-system`;
export const REQUEST_DESIGN_SYSTEM_EVENT: string = `${ADDON_ID}/request-d... |
export default class StringUtils {
static isBlank(str: string): boolean {
return str == null || typeof str !== "string" ||
str.trim && str.trim().length === 0 ||
!str.trim && str.replace(/^\s+|\s+$/gi, '').length === 0;
}
static isNotBlank(str: string): boolean {
return !this.isBlank(str);
... |
import * as discovery from "./securityDiscoverer";
import * as processing from "./securityFileProcessor";
import * as types from "./types";
import * as Promise from "bluebird";
export class Convertor {
private discoverer: discovery.SecurityDiscoverer;
private processor: processing.SecurityFileProcessor;
pr... |
import React from 'react';
import ReactTooltip from 'react-tooltip';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
import { ThemeSwitch } from 'modules/app/components/theme-switch';
import makePath from 'modules/routes/helpers/make-path';
import ConnectDropdown from 'modules/auth/connec... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import Path from 'path';
import React, { useEffect, useRef, Fragment, useState } from 'react';
import { RouteComponentProps, Router, navigate } from '@reach/router';
import { useRecoilValue } from 'recoil';
import { BotTemplate } from '@bfc/sh... |
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { StoreModule } from '@ngrx/store';
import { RootReducer } from '../../../store/rtl.reducers';
import { LNDReducer } from '../../../lnd/store/lnd.reducers';
import { CLNReducer } from '../../../cln/store/cln.reducers';
import { ECL... |
/**
* Checks that a value is `Symbol`
*
* @param {unknown} val any value
* @returns {boolean}
*/
export const isSymbol = (val: unknown): boolean => typeof val === 'symbol'; |
import { Second, Minute, Hour, Day } from './constants';
import { KlasaMessage } from 'klasa';
import { Collection, User, GuildMember } from 'discord.js';
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export default abstract class Util {
public static ms(duration: number): string {
const secon... |
/*
* Copyright 2020, 2021 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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 re... |
/**
* @license
* Copyright 2018 Google Inc. All Rights Reserved.
* 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 a... |
import React from 'react';
import { Chip } from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
import { ScanLocation, Scan } from '../types';
import { useAppDispatch } from '../app/hooks';
import { removeScanFiles } from '../features/scans';
const useStyles = makeStyles((_theme) => ({
chip: {},... |
import { CreativeCommons } from "src/components/creativecommons/CreativeCommons";
import { CourseClassPlayer } from "src/screens/course/components/courseclassplayer/CourseClassPlayer";
import { DownloadButton } from "src/screens/course/components/downloadbutton/DownloadButton";
import { ShareButton } from "src/screens/... |
import { HopeWrapper } from "../../utils/storybook";
import { VStack } from "../stack/stack";
import { Alert } from "./alert";
import { AlertDescription } from "./alert-description";
import { AlertIcon } from "./alert-icon";
import { AlertTitle } from "./alert-title";
export default {
title: "Feedback/Alert",
comp... |
import {
IgApiClient,
IgCheckpointError,
IgLoginTwoFactorRequiredError,
} from 'instagram-private-api';
import { Config } from './core/config';
import { User } from './types';
import inquirer from 'inquirer';
import fs from 'fs';
import logger from './core/logging';
interface sessionFile {
cookie: any;
user: any;... |
import { AbstractControl, AsyncValidatorFn, FormBuilder, FormArray, FormControl, Validators } from '@angular/forms';
import { RxwebValidators, ReactiveFormConfig } from '../../../packages/reactive-form-validators';
(function () {
describe('Validator', () => {
beforeEach(() => {
ReactiveFormConfig.set({
... |
import { Upload as AntdUpload, UploadProps } from 'antd';
import * as S from './Upload.styles';
export const { Dragger: UploadDragger } = AntdUpload;
export const Upload: React.FC<UploadProps> = (props) => {
return <S.Upload {...props} />;
}; |
import { IsString, MinLength, MaxLength, IsDate, IsInt } from "class-validator";
export class VendaDto {
id: number;
@IsInt({ message: 'O código do pedido é inválido!'})
@MinLength(2, { message: 'O campo código do pedido deve ter no mínimo 2 dígitos'})
@MaxLength(8, { message: 'O campo código do ... |
export let ZERO_ADDRESS = '0x' + '0'.repeat(40); |
export * from "./pull"; |
import { withInstall } from '@element-plus/utils/with-install'
import PageHeader from './src/page-header.vue'
export const ElPageHeader = withInstall(PageHeader)
export default ElPageHeader
export * from './src/page-header' |
/*
* Copyright 2019 HERMENEUT Consortium
*
* 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 la... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import * as ui from "../ui";
export interface IKeyMsgPair {
key: string;
msg: string;
showKey?: boolean;
}
export interface IStatus {
add(key: string, msg: string);
remove(key:... |
import React, { Component } from 'react'
import { EventEmitter } from 'events'
interface Props {
src?: string
className?: string
componentRef?: (c: Webview | null) => any
/** Allow Metastream Remote extension to inject player scripts. */
allowScripts?: boolean
}
let webviewId = 0
export class Webview exten... |
import { PropType } from 'vue';
declare const _default: import("vue").DefineComponent<{
type: {
type: PropType<"primary" | "success" | "warning" | "info" | "danger" | "default">;
default: string;
validator: (val: string) => boolean;
};
underline: {
type: BooleanConstructor;
... |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
declare type SORT = 'asc' | 'desc';
export declare const StyledSortableStrokeIconWrapper: import("styled-components").StyledComponent<"div", import("... |
import * as React from 'react';
import { ChartDataPoint, Smoothing, Stroke, Shape } from './types';
declare type Props = {
/** Theme for the line */
theme?: {
stroke?: Stroke;
scatter?: {
default?: Shape;
selected?: Shape;
};
};
smoothing?: Smoothing;
... |
import React, { Component } from 'react';
import { Icon } from '@rmwc/icon';
import {
TopAppBar, TopAppBarRow, TopAppBarSection, TopAppBarTitle,
TopAppBarFixedAdjust } from '@rmwc/top-app-bar';
import { Grid, GridCell } from '@rmwc/grid';
import { Card, CardPrimaryAction } from '@rmwc/card';
import { Typography } ... |
import { defineComponent } from 'vue'
export default defineComponent({
name: 'App',
components: {},
setup() {
const navList = [
{ url: '/', name: '首页' },
{ url: '/about', name: '关于' },
{ url: '/editor', name: 'Editor' }
]
return { navList }
}
}) |
declare module 'vlq' {
const decode: any;
export { decode };
} |
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { provideDefaultConfig } from '../config/config.module';
import { defaultAsmConfig } from './config/default-asm-config';
import { AsmStoreModule ... |
import { NoteEditMode } from 'src/features/overview/ui/screens/note-editor/types'
import { EditorMode } from 'src/features/page-editor/types'
import { Anchor } from 'src/content-script/types'
import { UIPageWithNotes } from 'src/features/overview/types'
export type MainNavigatorRoutes = keyof MainNavigatorParamList
ex... |
import { Test, TestingModule } from '@nestjs/testing';
import { PlatformRefController } from './platform-ref.controller';
import { PlatformRefService } from './platform-ref.service';
describe('PlatformRefController', () => {
let controller: PlatformRefController;
beforeEach(async () => {
const module: Testing... |
import Compiler from 'jgb-shared/lib/Compiler';
import { FileType } from 'jgb-shared/lib/utils/preProcess';
import * as path from 'path';
import JsonAsset from '../src/JsonAsset';
describe('JsonAsset', () => {
const rootDir = path.resolve(__dirname, '.');
const sourceDir = path.resolve(__dirname, './example');
c... |
import * as mongoose from 'mongoose';
const Cat = {
name: String,
age: Number,
breed: String,
}
const CatSchema = new mongoose.Schema(Cat)
export default CatSchema; |
import { getExpectedCounts, getExpectedResults } from "./expectedResults";
import { SharedWorkspaceTests } from "../suite-shared/shared.workspace.tests";
// this file is separate because we don't want to run parallel debug
// sessions (which is not supported) when running the multi-root tests
suite(`workspace-simp... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from 'components/App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
); |
/**
* @file App state transformer
* @module transformer/state
* @author Linyj <https://github.com/Linyj>
*/
import { ref, onMounted, watchEffect } from 'vue'
import { getAccessor } from '/@/services/storage'
import { OriginState } from '/@/constants/state'
import { USER_LIKE_HISTORY } from '/@/constants/storage'
... |
import {forwardRef, Component, Input} from '@angular/core';
import {FormControl} from '@angular/forms';
import {trigger, transition, style} from '@angular/animations';
import {isBlank} from 'caesium-core/lang';
import {ArgumentError} from 'caesium-core/exception';
import {proxyValueAccessor, ValueAccessorProxy} from ... |
import { Component } from '@angular/core';
import { NzResizeEvent } from 'ng-zorro-antd/resizable';
@Component({
selector: 'nz-demo-resizable-grid',
template: `
<div nz-row>
<div
class="col"
nz-col
nz-resizable
(nzResize)="onResize($event)"
[nzMinColumn]="3"
... |
import { basicAlert } from '@shared/alert/toasts';
import { UsersService } from '@core/services/users.service';
import { IRegisterForm, IResultRegister } from '@core/interfaces/register.interface';
import { Component, OnInit } from '@angular/core';
import { TYPE_ALERT } from '@shared/alert/values.config';
import { Rout... |
/**
* Copyright 2018-present MongoDB, 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 a... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
import React from 'react';
import { shallow } from 'enzyme';
import Percentage from '.';
describe('Percentage', () => {
it('formats value as percentage string', () => {
const value = 0.00445;
const string = shallow(<Percentage value={value} />).text();
expect(string).toBe('0.45%');
});
it('removes... |
import { Component, OnInit } from '@angular/core';
import { NgxSpinnerService } from 'ngx-spinner';
import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import { ToastrService } from 'ngx-toastr';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angul... |
import * as React from "react";
import { render } from "react-dom";
import Switch from "antd/lib/switch";
require("antd/dist/antd.min.css");
class Main extends React.PureComponent {
render(){
return (
<div>
<Switch checked={true} />
</div>
)
}
}
render(... |
import { NgModule } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { TranslateModule, TranslateLoader } from "@ngx-translate/core";
import { TranslateHttpLoader } from "@ngx-translate/http-loader";
import { TranslateService } from '@ngx-translate/core';
export function createTranslate... |
import express from "express";
import { loadMysData } from "../utils/load";
const router = express.Router();
router.get( "/", async ( req, res ) => {
const qqID: number = parseInt( <string>req.query.qq );
const data: any = await loadMysData( qqID );
res.send( data );
} );
export default router; |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
// standard web part stuff
import { BaseClientSideWebPart, IWebPartPropertiesMetadata } from "@microsoft/sp-webpart-base";
import { IPropertyPaneConfiguration, PropertyPaneTextField, PropertyPan... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* ============================================================================
* Copyright (c) Palo Alto Networks
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* ========================================================================... |
import { async, TestBed } from '@angular/core/testing';
import { LayoutModule } from './layout.module';
describe('LayoutModule', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [LayoutModule]
}).compileComponents();
}));
it('should create', () => {
expect(LayoutModul... |
import router from './router';
import addShoe from './addShoe';
import getAllShoes from './getAllShoes';
import getShoe from './getShoe';
import removeShoe from './removeShoe';
import updateShoe from './updateShoe';
import type {
Shoe,
PartOfShoe,
newShoe,
ShoeWithColours,
ShoeWithDetails,
GetAllShoes,
} ... |
import * as Hapi from 'hapi';
import * as Hemera from 'nats-hemera';
import * as Logger from 'pino';
import { DecoratedRequest } from '../server';
interface HemeraPath {
topic: string;
cmd: string;
payload?: object;
pubsub$?: boolean;
timeout$?: number;
queue$?: string;
}
const logger = Logger();
class H... |
import { Injectable } from '@angular/core';
import { SmartTableData } from '../data/smart-table';
@Injectable()
export class SmartTableService extends SmartTableData {
data = [{
date: 1,
heure: 'M njkhfgfark',
smoke: 'Otto',
gaztoxique: '@mdo',
},
{
date: 2,
heure: 'Mark',
smoke: 'Ot... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './core/auth/auth.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { WorkoutModule } from './features/workout/workout.module';
import { ImageM... |
import { PluginComponent } from './PluginComponent';
import { EventEmitter } from './EventEmitter';
import { MiddlewareCollection, DefaultEvents, Events } from './interfaces';
export abstract class PluginHook<T extends Events = DefaultEvents> extends PluginComponent {
middlewareCollection!: MiddlewareCollection<T | ... |
// Type definitions for Custom Functions 1.4
// Project: https://github.com/OfficeDev/office-js
// Definitions by: OfficeDev <https://github.com/OfficeDev>, Michael Zlatkovsky <https://github.com/Zlatkovsky>, Michelle Scharlock <https://github.com/mscharlock>
// Definitions: https://github.com/DefinitelyTyped/Definitel... |
import { MigrationInterface, QueryRunner } from "typeorm";
import { ns } from "../common/constants";
export class SeedUsers1563804021014 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
const passwordHash = "6c9311b5a0c96b76e6535d5c57a96d67a405779d2284aaf154148cdcbefc5af6... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
// Import Calcite Components
import { defineCustomElements } from '@esri/calcite-component... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Liazoncoin</source>
<translation>Sobre Liazoncoin</translation>
... |
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface AppUpdateOptions {
authType: string;
username?: string;
password?: string;
}
/**
* @name App Update
* @description
* This plugin does self-update for android
*
* @usage
*
... |
import pli from "./internals/polars_internal";
import { arrayToJsSeries } from "./internals/construction";
import { DataType, DtypeToPrimitive, DTYPE_TO_FFINAME, Optional } from "./datatypes";
import {DataFrame, dfWrapper} from "./dataframe";
import {StringFunctions} from "./series/string";
import {ListFunctions} from ... |
import { getRepository, Repository, Not } from 'typeorm';
import IUsersRepository from '@modules/users/repositories/IUsersRepository';
import ICreateUserDTO from '@modules/users/dtos/ICreateUserDTO';
import IFindAllProvidersDTO from '@modules/users/dtos/IFindAllProvidersDTO';
import User from '../entities/User';
clas... |
(()=>{
// Uso de Let y Const
const nombre = 'Ricardo Tapia';
const edad = 23;
const PERSONAJE = { nombre, edad };
// Cree una interfaz que sirva para validar el siguiente objeto
interface Batman {
nombre: string;
artesMarciales:string[];
}
const batman: Batman = {
nombre: 'Bruno Díaz',
... |
import React from 'react'
import { Project } from '../../utils/models'
interface Props {
project: Project
}
enum Status {
LIVE = 'live',
WIP = 'wip',
DEAD = 'dead',
}
const SingleProject: React.FC<Props> = ({ project: { title, description, status, url } }) => {
const handleNavigate = () => {
if (typeof... |
import { generateID } from "board/calculus/util"
import { useSelected, useDispatch, NodeID, createPrimitive, setSelected } from "board/state"
import React, { useState } from "react"
const PrimitveControl = () => {
const selectedList = useSelected()
const selected = selectedList.length === 1 ? selectedList[0] : ""
... |
// This file has been automatically generated by writeMessageClasses.js
import {UUID} from '../UUID';
import Long = require('long');
import {MessageFlags} from '../../enums/MessageFlags';
import {MessageBase} from '../MessageBase';
import {Message} from '../../enums/Message';
export class LogParcelChangesMessage impl... |
import { localize } from '@opensumi/ide-core-common';
import { registerColor } from '../../color-registry';
import { PANEL_ACTIVE_TITLE_BORDER, PANEL_ACTIVE_TITLE_FOREGROUND } from '../panel';
export const settingTabActiveBorder = registerColor(
'kt.settings.tabActiveBorder',
{ dark: PANEL_ACTIVE_TITLE_BORDER, li... |
import {MigrationInterface, QueryRunner, Table} from "typeorm";
export class createOrphanages1603649503378 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
// Realizar Alterações
// Criar Tabela, Criar um novo campo, deletar algum campo
await quer... |
import { ITheme, IStyleFunctionOrObject, IStyle, ILinkStyleProps, IImageStyleProps } from 'office-ui-fabric-react';
import { IMarkdownHeaderStyleProps } from './MarkdownHeader';
import { IMarkdownParagraphStyleProps } from './MarkdownParagraph';
import { IMarkdownCodeStyleProps } from './MarkdownCode';
import { IMarkdo... |
import assert from 'assert';
import { merge } from 'lodash';
import feathers, { Application, Service } from '@feathersjs/feathers';
// @ts-ignore
import memory from 'feathers-memory';
import { AuthenticationService, JWTStrategy, hooks } from '../src';
import { AuthenticationResult } from '../src/core';
import { Server... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Universe</source>
<translation>Au sujet de Universe</translation>
</message>
<message>
... |
import { Component, OnInit } from '@angular/core';
import { ModalService } from '../../_modal';
import { ArtistService } from '../../service/artist.service';
import { ReturnStatement } from '@angular/compiler';
@Component({
selector: 'app-artist',
templateUrl: './artist.component.html',
styleUrls: ['./artist.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.