text stringlengths 10 953k |
|---|
export class Step {
private title: string;
private expression: string;
constructor(title: string, expression: string) {
this.title = title;
this.expression = expression;
}
public getTitle(): string {
return this.title;
}
public getExpression(): string {
return this.expression;
}
} |
import styled from "styled-components";
export const Container = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-top: -10rem;
div {
background: var(--shape);
padding: 1.5rem;
border-radius: 0.25rem;
color: var(--text-title);
... |
import { Annotation, AnnotationTag, ICoordinates, number2SPId } from "./superpixelCanvas";
const React = require("react");
const { useEffect } = require("react");
const Snap = require("snapsvg-cjs");
const Direction = {
UP: 0,
RIGHT: 1,
DOWN: 2,
LEFT: 3
}
const defaultAnnotation = (id: number) => new... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserEditComponent } from './user-edit.component';
describe('UserEditComponent', () => {
let component: UserEditComponent;
let fixture: ComponentFixture<UserEditComponent>;
beforeEach(async(() => {
TestBed.configureTestingMod... |
import React, { useCallback, useMemo, useState } from 'react'
import SlotActionsIcon from '../icons/material/ic_more_vert_black_24px.svg'
import { IconButton } from '../material/button'
import { MenuItem } from '../material/menu/item'
import { MenuList } from '../material/menu/menu'
import { Popover, useAnchorPosition ... |
import { mockRequest } from '../request';
/**
* 获取验证码
* @param phone - 手机号
* @returns - 返回boolean值表示是否发送成功
*/
export function fetchSmsCode(phone: string) {
return mockRequest.post<boolean>('/getSmsCode', { phone });
}
/**
* 登录
* @param userName - 用户名
* @param password - 密码
*/
export function fetchLogin(user... |
/**
* Created by khjan on 2017-04-04.
*/
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env... |
import { Component } from '@angular/core';
import { CODE_BLOCK_DATA } from '../demodata/code-block-data';
export const CodeBlockFormatter = (row, cell, value, col, rowData, api): string => {
console.log(rowData);
/* tslint:disable */
return `
<span class="code-block">
<label for="ledger" soho-label... |
import { ipcRenderer } from 'electron';
import * as log from 'electron-log';
import React, { useState, useEffect } from 'react';
import { useIPCValue } from '../../ipc/renderer';
import { BackendDescription } from '../base';
export type SingleDBStatusContextProps = {
dbName: string
};
export const SingleDBStatusCon... |
/**
*
*
* OpenAPI spec version: 20200601
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho... |
import * as React from 'react'
import { H4, H5, H6 } from '../Typography'
export interface Element {
type: string
tagName?: string
children?: Element[]
attributes?: any
content?: string
}
const sortContentType = (domItem: Element, index: number, diffing: boolean) => {
// using DOMParse to parse HTML entit... |
import { LifecycleValue } from '../../common/enums/LifecycleValue';
import { NumericalType } from '../../common/types/NumericalTypes';
import { InputType } from '../enums/InputType';
export interface InputValue<T extends NumericalType> {
type: InputType; // How many dimensions? Button, 2D?
value: T; // What's the ... |
import { Sequelize } from "sequelize";
import config from "../config";
export default new Sequelize({
dialect: "sqlite",
storage: config.pathToDatabaseFile,
}); |
import { BrowserRouter as Router } from 'react-router-dom'
import wavePattern from 'src/assets/wave-pattern.svg'
// components
import NavBar from 'src/components/NavBar/NavBar'
import Footer from 'src/components/Footer/Footer'
import Routes from 'src/routes/Routes'
import { AppStyled, WavePattern } from './App.styles'... |
import {DataStore, Predicates, SortDirection} from '@aws-amplify/datastore';
import {writable} from 'svelte/store';
import {showError} from '../../components/notifications/notify';
import {Action} from '../../models';
import {getErrorText} from '../../utils/errors';
import {CompareStringArrays} from '../../utils/object... |
declare namespace NodeJS {
export interface ProcessEnv {
API_URL: string;
}
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MaterialsComponent } from './materials.component';
describe('MaterialsComponent', () => {
let component: MaterialsComponent;
let fixture: ComponentFixture<MaterialsComponent>;
beforeEach(async(() => {
TestBed.configureTestin... |
import * as Commando from 'discord.js-commando';
import * as Discord from 'discord.js';
import * as fh from 'utils/file_helper';
module.exports = class ImageRemoveCommand extends Commando.Command {
constructor(client: Commando.CommandoClient) {
let commandInfo: any = {
name: 'irm',
group: 'util',
... |
export default {
org: 'orgDemo',
app: 'appDemo',
stage: 'dev',
component: 'express',
name: 'expressDemo',
inputs: {
src: {
src: './',
exclude: ['.env'],
},
region: 'ap-guangzhou',
faas: {
name: 'expressDemo',
timeout: 10,
environments: [
{
key:... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DButton } from "./d-button";
import {
DLayoutHorizontal,
DLayoutHorizontalOptions,
DThemeLayoutHorizontal
} from "./d-layout-horizontal";
import { DPaginationDynamicButtons } from "./d-pagination-dynamic-buttons";
impor... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EncuentrosComponent } from './encuentros.component';
describe('EncuentrosComponent', () => {
let component: EncuentrosComponent;
let fixture: ComponentFixture<EncuentrosComponent>;
beforeEach(async(() => {
TestBed.configureT... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Emoji</source>
<translation>A Emoji-ról</translation>
</message>
<message>
<location li... |
declare const L: any;
import 'leaflet-draw/dist/leaflet.draw-src';
import { setPopupHoverMode } from './popupControl.conf';
import { GlobalMapService } from '../../../maps.service';
import { LeafletService } from './../leaflet-map.service';
export function drawPlugin(map: L.Map, mapService: LeafletService) {
const... |
import {
GraphQLType,
GraphQLString,
GraphQLInt,
GraphQLFloat,
GraphQLBoolean,
GraphQLID,
GraphQLScalarType,
isCompositeType,
getNamedType,
GraphQLInputField,
isNonNullType,
isListType,
isScalarType,
isEnumType
} from "graphql";
import {
camelCase as _camelCase,
pascalCase as _pascalCas... |
import {
Box,
Button,
FormControl,
FormErrorMessage,
FormHelperText,
FormLabel,
Stack,
} from '@chakra-ui/react'
import { DevTool } from '@hookform/devtools'
import { zodResolver } from '@hookform/resolvers/zod'
import * as React from 'react'
import 'react-app-polyfill/ie11'
import { FormProvider as HookF... |
// /src/device/air/materialiconsround/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgAirRound = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
<path d="M0,0h24v24H0V0z" fill="none"/>
</... |
// Angular
import { Component } from '@angular/core';
import { Router } from '@angular/router';
// app
import { AppConfig, Server } from '@gcv/core/models';
@Component({template: ''})
export class AbstractSearchWidgetComponent {
model: any;
sources: Server[];
constructor(protected _appConfig: AppConfig, prote... |
import { Middleware, Dispatch } from 'redux';
import { RootAction } from 'fm3/actions';
import { RootState } from 'fm3/storeCreator';
import { isActionOf } from 'typesafe-actions';
import { authSetUser } from 'fm3/actions/authActions';
import { setTool, reloadApp } from 'fm3/actions/mainActions';
import { tipsPrevious,... |
import type Printer from "../printer";
import {
isClassDeclaration,
isExportDefaultSpecifier,
isExportNamespaceSpecifier,
isImportDefaultSpecifier,
isImportNamespaceSpecifier,
isStatement,
} from "@babel/types";
import type * as t from "@babel/types";
export function ImportSpecifier(this: Printer, node: t.... |
import { Provide, Scope, ScopeEnum, Types } from '@midwayjs/decorator';
import {
CommonMiddleware,
IMiddleware,
IMidwayContainer,
FunctionMiddleware,
IMidwayApplication,
} from '../interface';
import { MidwayCommonError, MidwayParameterError } from '../error';
import { isIncludeProperty, pathMatching } from '... |
import * as React from 'react';
import { Login } from '../login';
import { Settings } from '../settings';
import './style.css';
export interface AppStateProps {
isAuthenticated: boolean;
isInitialised: boolean;
isInitialising: boolean;
view: string;
}
export interface AppDispatchProps {
initialise: () => v... |
// <copyright file="footer.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { Text, Flex, Button } from "@fluentui/react";
import "../styles/theme.css";
interface IAwardBadgeFooterProps {
resourceStrings: any,
onBackClick: (even... |
const enter = {
y: 0,
opacity: 1,
};
const exit = {
y: 50,
opacity: 0,
};
const transition = {
ease: [0.4, 0, 0.2, 1],
};
const variants = {
enter: {
...enter,
transition: {
...transition,
when: 'beforeChildren',
staggerChildren: 0.3,
},
},
exit: {
...exit,
trans... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Onecentcoin</source>
<translation>O Onecentcoin-u</translation>
... |
module nurdz.game
{
/**
* This class is the base class for all scenes in a game. A Scene is just a simple wrapper around
* specific handling for input handling as well as object update and rendering, which allows for better
* object isolation.
*
* This base class defines the behaviour of a ... |
import { IPCMessages, Subscription as IPCSubscription } from '../services/service.electron.ipc';
import { Observable, Subject, Subscription } from 'rxjs';
import { ControllerSessionTabStreamOutput, IStreamPacket, IStreamState } from './controller.session.tab.stream.output';
import { ControllerSessionTabStreamBookmarks ... |
import { Menu, MenuItemConstructorOptions } from 'electron';
import { IS_DEVELOPEMENT } from '@constants';
import {
appMenuItem,
editMenuItem,
developerMenuItem
} from './menuItems';
/**
* Menu template for creating application menu displayed in macOS
*/
const applicationMenuTemplate: MenuItemConstructorOpti... |
// Imports
import {
MigrationInterface,
QueryRunner,
Table,
TableForeignKey,
} from 'typeorm';
// Migration
export default class Initial1566862777462 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
// Tables
const userTable = new Table({
name: 'users',... |
describe('AuthService', () => {
it('should pass', () => {
expect(true).toBeTruthy();
});
}); |
import * as React from 'react';
import ColorHash from 'color-hash';
import { InjectedSettingsProps, InjectedWarehouseProps } from '../../../_context';
import { ProductPreview } from 'src/@types/our-orders';
import { WithStyles, IconButton, withStyles } from '@material-ui/core';
import { Star, StarBorder, CheckBox, Che... |
import { Request, Response } from "express";
import { PostLocaleEnum } from "infrastructure/locales/service-locale-keys/posts.locale";
import { logSerializer } from "infrastructure/serializers/log-serializer";
import { postCreateService } from "services/posts/create.service";
import { logger } from "services/winston-lo... |
/// <reference path="../../src/ts/serenityui.d.ts"/>
/// <reference path="../js/employees.ts"/>
$(function () {
function printSelected(fullName : string) {
$("#results").append(serenity.format("<div>Selected Item: {0}</div>", fullName));
}
var combobox = $("#combobox").serenityCombobox({
d... |
import { ReTweet } from "../models/retweet.model";
import { Tweet } from "../models/tweet.model";
export default class RetweetController {
static getAll = async (): Promise<ReTweet[]> => {
return await ReTweet.find({ relations: ["post"] });
};
static addRetweet = async (
username: string,
tweet: Twe... |
/*
* Copyright 2013-2020 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
import { MiddlewareConsumer, Module, NestModule } from "@nestjs/common"
import { AuthMiddleware } from "./auth.middleware";
@Module({})
export class AuthModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(AuthMiddleware)
.forRoutes('(.*)');
}
} |
import React from 'react';
import Box from '@material-ui/core/Box';
const _404 = (props: any) => {
const { setNavState, location } = props;
const { pathname } = location;
React.useEffect(() => {
setNavState(pathname);
window.scrollTo(0, 0);
return () => {
setNavState('/');
};
}, [pathn... |
export const SERVICE_NAME = 'Project BENI' |
import {MapNodeTag} from "./@MapNodeTag.js";
/*export const tagNodeSlotNames = ["x", "y"];
export function GetNodeTagNodeSlots(tag: MapNodeTag) {
const result = tag.type.toLowerCase().split(" ").filter(word=>tagNodeSlotNames.Contains(word));
if (result.length == 0) {
return ["x"];
}
return result;
}*/ |
/**
*触发设备的文件下载功能
*/
export function downloadFile(
fileName: string,
content: BlobPart,
type = 'text/plain',
) {
const element = document.createElement('a');
const blob = new Blob([content], { type });
element.href = URL.createObjectURL(blob);
element.download = fileName;
element.addEventListener('clic... |
import * as React from 'react';
import { PopoverCommonProps } from '../common'
export type InfoIconSize = 'small' | 'medium';
export interface InfoIconProps {
content: React.ReactNode;
size?: InfoIconSize;
dataHook?: string;
tooltipProps?: PopoverCommonProps;
}
declare const InfoIcon: React.FC<InfoIconProps>... |
import { Injectable } from '@nestjs/common';
import { BuildMongestService } from '../../src/BuildMongestService';
import { StrayCat } from './stray-cat.entity';
@Injectable()
export class StrayCatsService extends BuildMongestService(StrayCat) {} |
/*
MIT License
Copyright (c) 2020 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 * as React from 'react'
import microWork from 'src/home/earn-micro-work.jpg'
import growingBusiness from 'src/home/growing-business.jpg'
import mexico from 'src/home/prosper-mexico.jpg'
import { ImagePanes } from 'src/shared/ImagePanes'
const HALF = {
source: { uri: growingBusiness },
caption: 'Growing busi... |
import type { ObjMap } from '../jsutils/ObjMap';
import { inspect } from '../jsutils/inspect';
import { toObjMap } from '../jsutils/toObjMap';
import { devAssert } from '../jsutils/devAssert';
import { instanceOf } from '../jsutils/instanceOf';
import { isObjectLike } from '../jsutils/isObjectLike';
import type { Maybe... |
import {remote} from 'electron';
import {homedir} from 'os';
import {Constants} from '../constants';
import {destroyDialog, dialog} from './dialog';
import {i18n} from '../i18n';
import {showMessage} from './message';
export const mountFile = async (liandi: ILiandi) => {
const filePath = await remote.dialog.showOp... |
// @flow
export function line(
x1: number,
y1: number,
x2: number,
y2: number,
ctx: CanvasRenderingContext2D,
) {
ctx.beginPath();
ctx.lineWidth = ctx.canvas.width / 100;
ctx.moveTo(x1, y1);
ctx.lineTo(x2, y2);
ctx.stroke();
}
export function generateGrid<T>(
cols: number,
rows: number,
val?... |
import React from 'react'
type Primitive = string | number | undefined | null | boolean
type Interpolation<P> =
| Primitive
| InterpolatedObject<P>
| InterpolatedFunction<P>
| InterpolatedArray<P>
interface InterpolatedFunction<P> {
(props: P): Interpolation<P>
}
interface InterpolatedObject<P> {
[key: ... |
import * as assert from 'assert';
import { IMock, Mock, It, Times } from 'typemoq';
import { TableValidator } from "../../../src/modelFactory/tableValidator";
import { SelectionInterpreter } from '../../../src/modelFactory/selectionInterpreter';
suite("TableValidator tests", () => {
test("isValid() with null inpu... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Guacama... |
import * as async from 'async';
import _ from 'lodash';
import 'source-map-support/register';
import { BlockChainExplorer } from './blockchainexplorer';
import { ChainService } from './chain/index';
import { Lock } from './lock';
import { MessageBroker } from './messagebroker';
import { Notification } from './model';
... |
export * from './elements/models/index.js';
export * from './elements/index.js';
/** @License
* Copyright ©2022 Aleksandar (Aki) Rodic
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... |
import { IsString, IsNumber, IsNotEmpty} from "class-validator";
import { Episode } from "src/episode/entities/episode.entities";
import { CreateEpisodeDto } from "src/episode/dtos/create-episode-dto";
export class CreatePodcastDto {
@IsNumber()
readonly id: number;
@IsString()
readonly title: string... |
import { MQTToTConnectRequestPacket } from './mqttot.connect-request-packet';
import { compressDeflate, debugChannel } from '../shared';
import * as URL from 'url';
import {
ConnectRequestOptions,
ConnectResponsePacket,
isConnAck,
MqttClient,
MqttMessage,
PacketFlowFunc,
} from 'mqtts';
import {... |
import { PassportStrategy } from "@nestjs/passport";
import { Injectable, UnauthorizedException } from "@nestjs/common";
import { AuthService } from "./auth.service";
import { Strategy } from "passport-local";
@Injectable()
export class LocalStrategy extends PassportStrategy(Strategy){
constructor(private readonly... |
import { Configuration } from '@nuxt/types'
const colors = require('vuetify/es5/util/colors').default
const nuxtConfig: Configuration = {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: 'spread',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, i... |
import { Base } from '@dyno.gg/dyno-core';
import * as eris from '@dyno.gg/eris';
import * as dyno from 'Dyno';
import { PlayerManager } from 'eris-lavalink';
import * as moment from 'moment';
import Queue from './Queue';
import Resolver from './Resolver';
require('moment-duration-format');
/**
* Dyno music player
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DataDialogComponent } from './data-dialog.component';
describe('DataDialogComponent', () => {
let component: DataDialogComponent;
let fixture: ComponentFixture<DataDialogComponent>;
beforeEach(async(() => {
TestBed.configure... |
import { InputRule } from "prosemirror-inputrules";
import { NodeType } from "prosemirror-model";
import { Attrs } from "./Extension";
export default function(
regexp: RegExp,
nodeType: NodeType,
getContent:
| ((match: string[]) => string)
| string
| number
| null
| undefined = undefined,
g... |
import React from 'react';
import { useParams } from 'react-router-dom';
import { IParams } from '../utils/types/types';
import NotFound from '../components/global/Notfound/NotFound';
const generatePage = (name: string) => {
/* eslint-disable */
if(name === 'account'){
const pages = require(`../components/content/... |
import { Vec3, Filter } from '@vibrant/color'
import { Pixels } from '@vibrant/image'
import Histogram from '@vibrant/image/lib/histogram'
export interface Dimension {
r1: number
r2: number
g1: number
g2: number
b1: number
b2: number
[d: string]: number
}
const SIGBITS = 5
const RSHIFT = 8 - SIGBITS
exp... |
import React from 'react';
import type { IconProps } from '../index';
export const Bookmark = React.memo<IconProps>(({ size = 18, fillColor = '#9DAAB7', suffixForId, className, style }) => {
const uniqueId = suffixForId ?? String(Math.random().toString(36).slice(2, 11));
return (
<svg
width={size}
h... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiWerewolf: IconType; |
<TS language="zh_CN" 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>
<translation>创建新地址</translation>
... |
const electron = require('electron')
const {
app,
BrowserWindow
} = electron
const path = require('path')
const url = require('url')
let mainWindow
// const client = require('electron-connect').client
const createWindow = () => {
mainWindow = new BrowserWindow({width: 900, height: 600})
mainWindow.loadURL(... |
import { ISaveHelp } from "./ISaveHelp";
/**
* 存储管理接口
*/
export interface ISaveManager {
/**
* 存储数据个数
*/
readonly count: number;
/**
* 设置存储辅助器
* @param saveHelp
*/
setSaveHelp(saveHelp: ISaveHelp): void;
/**
* 存储数字类型
* @param name 存储名
* @param value 存储值
... |
import * as React from "react";
import styled from "styled-components";
import { Colors } from "../../util/constants";
import PublicationsIcon from "../icons/publications";
import VectorShapeIcon from "../ui/icons/vector-shape";
import FloppyDiskIcon from "../ui/icons/floppy-disk";
import DownloadIcon from "../ui/icons... |
import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { TokenController } from './token.controller';
import { TokenService } from './token.service';
@Module({
controllers: [TokenController],
providers: [TokenService],
imports: [HttpModule],
})
export class TokenModule... |
/** @jsx h */
import { imageIcon } from './image-icon'
export default { title: 'Icon' }
export const ImageIcon = function () {
return imageIcon
} |
import * as loginPage from '../support/Base/pages/Login.po';
import { LoginPageData } from '../support/Base/pagedata/LoginPageData';
import * as manageCandidatesInvitesPage from '../support/Base/pages/ManageCandidatesInvites.po';
import { CustomCommands } from '../support/commands';
import * as dashboradPage from '../s... |
import { Point } from "../types";
import { FONT_FAMILY, THEME, VERTICAL_ALIGN } from "../constants";
export type ChartType = "bar" | "line";
export type FillStyle = "hachure" | "cross-hatch" | "solid";
export type FontFamilyKeys = keyof typeof FONT_FAMILY;
export type FontFamilyValues = typeof FONT_FAMILY[FontFamilyKe... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { join } from "path";
import { readFile } from "fs";
import { Parser } from "../lib/binary_parser";
function oct2int(s: string): number {
return parseInt(s, 8);
}
const tarHeader = new Parser()
.string("name", { length: 100, stripNull: true })
.string("mode", { length: 8, stripNull: true, formatter: oct... |
export const LIB_VERSION = '0.10.1'; |
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import GeneralSettings from '../../../components/settings/categories/GeneralSettings';
import { rebuildApplicationMenu } from '../../../ipc/rebuild-application-menu';
import type { InjectedProps } from '../../../types/injectedProps... |
/**
* created by MarlaN. 13.06.2017
*/
import { Injectable } from '@angular/core';
import { Http, Response, Headers, RequestOptions } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import {Project} from '../data-model/project';
@Injectable()
export class ProjectsService {
private headers: Headers;
... |
import React from 'react'
import { Container } from 'react-bootstrap'
import { Box, Flex, Image, FlexProps } from 'rebass'
import { Text, useThemeUI } from 'theme-ui'
import sixDots from '@assets/icons/six-dots-pink.svg'
import amnis from '@assets/logos/amnis-pink.svg'
import cosmos from '@assets/logos/cosmos-pink.svg... |
/*
Copyright 2019 City of Los Angeles.
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... |
import {
assoc,
filter,
includes,
length,
prop,
range,
reduce,
any,
both
} from 'ramda'
import {
Coordinate,
get,
getNeighborCoordinates,
getNeighborValuesAndCoordinates,
Grid,
map,
update,
values
} from './Grid'
interface Cell {
readonly flagged:... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'semantic-ui-css/semantic.min.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
);
// If y... |
// import { Module } from '@nestjs/common';
// import { JwtModule } from '@nestjs/jwt';
// import { PassportModule } from '@nestjs/passport';
// import { AuthController } from './auth.controller';
// import { AuthService } from './auth.service';
// import { JwtStrategy } from './jwt.strategy';
// @Module({
// import... |
// Copyright 2017-2022 @polkadot/app-democracy authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option } from '@polkadot/types';
import type { BlockNumber, Call, Scheduled } from '@polkadot/types/interfaces';
import type { FrameSupportScheduleMaybeHashed, PalletSchedulerScheduledV3 } from '@... |
// Type definitions for ag-grid v18.1.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Column } from "./entities/column";
import { ColumnController } from "./columnController/columnController";
import { RowNode } from "./entities/rowNode";
import { ValueServic... |
import { Address } from "../types";
import { extractIndexOrProperty, isAddress, isDefined, isNumeric } from "../utils";
import SignatureV2 from "./signature";
export default class Session {
public readonly subject: Address;
public readonly verifier: Address;
public readonly fee: string;
public readonly nonce: ... |
<TS language="nb" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Høyreklikk for å redigere adressen eller merkelappen</translation>
</message>
<message>
<source>Create a new address</source>
... |
import assert from 'assert';
import app from '../../src/app';
describe('\'categoria-item-quarto\' service', () => {
it('registered the service', () => {
const service = app.service('categoria-item-quarto');
assert.ok(service, 'Registered the service');
});
}); |
import React, { ReactElement } from 'react';
import { ResourceName } from 'types/roleResources';
// Description for permission resource types. 'Read:' and 'Write:' tokens have
// special meaning and mark parts related to respective operations.
const resourceDescriptions: Record<ResourceName, string> = {
Access: '... |
export * from "./app-api.service"; |
/**
* Get details of an incident team returns "OK" response
*/
import { v2 } from "@datadog/datadog-api-client";
const configuration = v2.createConfiguration();
configuration.unstableOperations["getIncidentTeam"] = true;
const apiInstance = new v2.IncidentTeamsApi(configuration);
// there is a valid "team" in the ... |
import { onMounted, ref, Ref } from 'vue'
import ace from 'ace-builds'
import type { Ace } from 'ace-builds/ace'
ace.config.set('basePath', 'https://cdn.jsdelivr.net/npm/ace-builds@1.4.12/src-noconflict/')
export enum Mode {
hjson = 'ace/mode/hjson',
go = 'ace/mode/golang'
}
export function useEditor(id: str... |
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import App from '@/App.vue';
import ElementUi from 'element-ui';
import ViewUI from 'view-design';
import ibizLab from 'ibiz-vue-lib';
import axios from "axios";
import { Interceptors } from '@/utils';
import {Print} from '@/utils/prin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.