text stringlengths 10 953k |
|---|
import ms from 'ms';
import bytes from 'bytes';
import { join } from 'path';
import { write as copy } from 'clipboardy';
import chalk from 'chalk';
import { Dictionary, fileNameSymbol, VercelConfig } from '@vercel/client';
import { getPrettyError } from '@vercel/build-utils';
import { handleError } from '../../util/err... |
import {
css,
Global,
} from '@emotion/core';
import {
NRN_DEFAULT_FONT,
NRN_DEFAULT_SECONDARY_COLOR,
} from '../../constants';
import { CustomerTheme } from '../../types/data/CustomerTheme';
type Props = {
customerTheme: CustomerTheme;
}
/**
* Those styles are applied
* - universally (browser + server)... |
import * as assert from 'assert';
import SequelizeRepositoryGenerator from '../../../../src/generators/api/repositories/sequelize';
import schemaMocks from '../../../testUtils/schemaMocks';
import { Schema } from "../../../../src/commons/types";
const sequelizeRepositoryGenerator: SequelizeRepositoryGenerator = new Se... |
// This is imported by the default_import.ts test.
// An "export default" defines a variable named "default".
//- @default defines/binding Def=vname("default", _, _, _, _)
export default {
key: 'value'
}; |
import { createCmdConfig, DisposableCollection, uuidv4 } from '@antv/xflow'
export const useCmdConfig = createCmdConfig(config => {
config.setRegisterHookFn(hooks => {
const list = [
hooks.addNode.registerHook({
name: 'set node config',
handler: async args => {
args.nodeConfig =... |
import { Vector3 } from 'three';
import { AccessTypes } from '../../../data/AccessTypes';
import DataAccess from '../../../data/DataAccess';
import DataTree from '../../../data/DataTree';
import { DataTypes } from '../../../data/DataTypes';
import InputManager from '../../../io/InputManager';
import OutputManager from ... |
import Guide from './Guide';
import {
IGuide,
IStep,
SelectorType,
ContentType,
Placement,
} from './typings/guide.d';
export { IGuide, IStep, SelectorType, ContentType, Placement };
export default Guide; |
import { AnyModel } from './types'
import type { RedoxStore } from './redoxStore'
export const createEffects = <IModel extends AnyModel>(
redoxStore: RedoxStore<IModel>
): void => {
const effects = redoxStore.model.effects!
// map effects names to dispatch actions
const effectKeys = Object.keys(effects) as Array<k... |
export interface ILoadingProps {
// Font size of loading text, by default it is half the size of the loader
fontSize?: number;
// Where to place loaded text
direction?: 'bottom' | 'right';
// Type of spinner
spinnerType?: 'loader' | 'wave';
// Color of the spinner
spinnerColor?: strin... |
import { h, defineComponent, reactive } from 'vue'
import { AtRange } from '@/components/index'
import { Page, Panel, ExampleItem } from '../../components/demo-page'
import './index.scss'
interface IndexState {
[key: string]: [number, number]
}
export default defineComponent({
setup() {
const state = reactiv... |
import { Injectable } from '@angular/core';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import { environment } from '../../environments/environment';
import { Router } from '@angular/router';
import { AuthService } from '../se... |
import { TubularHttpClientAbstract } from './TubularHttpClientAbstract';
import { GridRequest } from '../Models/GridRequest';
import { GridResponse } from '../Models/GridResponse';
const responseKeys = [
'AggregationPayload',
'Counter',
'CurrentPage',
'FilteredRecordCount',
'Payload',
'TotalPag... |
import { html, ref, slotted } from "@microsoft/fast-element";
import { endTemplate, startTemplate } from "../patterns/start-end";
import { Anchor } from "./anchor";
/**
* The template for the {@link @microsoft/fast-foundation#(Anchor:class)} component.
* @public
*/
export const AnchorTemplate = html<Anchor>`
<a... |
import { RemixServer } from '@remix-run/react';
import { renderToString } from 'react-dom/server';
import type { EntryContext } from '@remix-run/node';
// -----------------------------------------------------------------------------
export default function handleRequest(
request: Request,
responseStatusCode: num... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { ExamplesRouterViewerComponent } from '../../shared';
import { CommonModule, CommonExampleConfigs, CommonExampleComponents } from '../common';
import { AppComponent } from './app.component';
import { FormlyKendoModule } f... |
import { Component, h, Host, Prop, State } from "@stencil/core";
@Component({
tag: "ui-card",
styleUrl: "ui-card.scss",
shadow: false,
})
export class UiCard {
@Prop() public isSmall: boolean;
@Prop() public isCollapsible: boolean;
@Prop() public isActive: boolean;
@Prop() public headerText: string;
/*... |
import { TableCell, TableRow, Typography } from "@material-ui/core";
import { makeStyles } from "@saleor/macaw-ui";
import { getStringOrPlaceholder } from "@saleor/misc";
import { FulfillmentStatus } from "@saleor/types/globalTypes";
import classNames from "classnames";
import React from "react";
import { useIntl } fro... |
import purgeData from '..';
const objTester = { a: 1, b: 2, c: undefined, d: null, e: false, f: true, g: '' };
const arrayTester = [undefined, null, 1, 2, false, 3, true, '', '123'];
describe('purgeData', function() {
// 清洗对象是Object,使用默认断言
it('input is an object, with default params', function() {
const expect... |
// Copyright (c) 2020-2021, NVIDIA 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 la... |
import { memo, useCallback, useMemo } from 'react';
import Button from '@mui/material/Button';
import { useSelector } from 'react-redux';
import useBoolean from '@eduzz/houston-hooks/useBoolean';
import ChevronDown from '@eduzz/houston-icons/ChevronDown';
import Exit from '@eduzz/houston-icons/Exit';
import LockedSol... |
import { ExecutionContext, Injectable } from "@nestjs/common";
import { TraceInterceptorService } from "../interfaces/trace-interceptor.interface";
@Injectable()
export class NoopInterceptorService implements TraceInterceptorService {
onRequest( context: ExecutionContext ) {
// noop
}
onSuccess( ... |
import { DashboardRow } from "./../../dashboard-share/base/dashboard-row";
import {
CommandHost,
CommandInfo,
DialogService,
DialogResult
} from "@narik/infrastructure";
import {
Component,
Input,
OnInit,
HostListener,
Output,
EventEmitter
} from "@angular/core";
import { DashboardCell } from "../.... |
export const set_solvemode = (pu) => {
pu.mmode = "solve";
pu.mode.qa = "pu_a";
document.getElementById("title").innerHTML = "解答モード";
document.getElementById("nb_size3_r")["value"] =
document.getElementById("nb_size3")["value"];
document.getElementById("newsize").style.display = "inline";
document.getEl... |
<TS language="pl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknij prawy przycisk myszy by edytować adres lub zakładkę</translation>
</message>
<message>
<source>Create a new address</source... |
import classNames from "classnames";
import * as React from "react";
import {
Bulma,
getActiveModifiers,
getFocusedModifiers,
removeActiveModifiers,
removeFocusedModifiers,
withHelpersModifiers,
} from "./../../bulma";
import {combineModifiers, getHTMLProps} from "./../../helpers";
export interface Ellips... |
/**
* Swimlane sample
*/
import {
Diagram, NodeModel, Node, SwimLane, DiagramContextMenu, ConnectorModel, UndoRedo, PortVisibility, PortConstraints, SwimLaneModel,
DiagramBeforeMenuOpenEventArgs, LaneModel, cloneObject, randomId, ShapeStyleModel, HeaderModel
} from '../../src/diagram/index';
import { MenuEven... |
import * as fs from 'fs';
import TranslatorParam from './translatorParam';
class Translator {
public static async initialize(
translationDirectory: string,
languagesToLoadUpfront: string[] = []
) {
Translator.translationDirectory = translationDirectory;
languagesToLoadUpfront.forEach(l => this.loa... |
import * as React from "react";
import { IIconProps } from "../styled";
const SvgBrandsGrey13 = (props: IIconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="1em"
height="1em"
{...props}
>
<path d="M0 .3v23.4h24V.3H0zm1 1h22v21.4H1V1.3zm5.648 15.325c-.116 0-.14... |
import test from 'ava';
import * as fse from 'fs-extra';
import { common } from '~blockml/barrels/common';
import { enums } from '~blockml/barrels/enums';
import { helper } from '~blockml/barrels/helper';
import { interfaces } from '~blockml/barrels/interfaces';
import { prepareTest } from '~blockml/functions/prepare-t... |
import isTextPath = require('is-text-path');
isTextPath('src/unicorn.txt');
// => true
isTextPath('src/unicorn.png');
// => false |
import { Expose } from 'class-transformer';
export class GitUserEntity {
@Expose() login: string;
@Expose() id: number;
@Expose() name: string;
@Expose() url: string;
constructor(partial: Partial<GitUserEntity>) {
Object.assign(this, partial);
}
} |
/* eslint-disable no-var */
import { Injectable } from '@nestjs/common';
import * as puppeteer from 'puppeteer';
@Injectable()
export class GetDatasService {
async getData(param: string) {
var arraydeinformacoes: string[] = [];
let data: HTMLCollectionOf<Element> | string[] = [];
const url = 'https://pt.... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<source>&New</source>
<translation>&Jauns</translation>
</message>
... |
import { File } from "config/types"
import { ObjectID } from "mongodb"
import { SessionType } from "resolvers/app/band/models"
export interface GetCoverInput {
coverId: ObjectID
}
export interface QueryCoverInput {
filter: {
type: "ALL" | "NAME" | "SONG_ID" | "POSITION"
content?: string
... |
import Course from './Course'
describe('Course', () => {
it('should execute the expected operations in the specified order', () => {
const mockForward = jest.fn()
const mockDown = jest.fn()
const operations = {
forward: mockForward,
down: mockDown
}
const instructions = [
'forwa... |
import Vue from 'vue';
import { FormatMode } from '../../../utils/i18n/i18n';
import { dateFilter } from '../date/date';
import { timeFilter } from '../time/time';
export const dateTimeFilter: (date: Date, short?: boolean) => string = (date, short) => {
const params: any = {
date: dateFilter(date, { short... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// HEADER
// IMPORT
export type EquipmentSetting = {
name: string
}
export const equipmentURL = {
// URL
}
export const equipmentClass = {
// CLASS
} |
import { mongoose } from '../../database/mongodb';
import {PointSchema} from './utils/MongoPoint';
const DiscountsSchema = new mongoose.Schema({
id: {
type: String,
required: true,
},
beer: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Beers',
required: true,
},
location: {
type: Poin... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
import styled from "styled-components";
import { ReactComponent as NightIcon } from "../assets/moon.icon.svg";
import { COLORS } from "../utils/constants";
const Container = styled.div`
overflow: hidden;
position: relative;
height:... |
import {Direction, Directionality} from '@angular/cdk/bidi';
import {
DOWN_ARROW,
END,
HOME,
LEFT_ARROW,
PAGE_DOWN,
PAGE_UP,
RIGHT_ARROW,
UP_ARROW,
} from '@angular/cdk/keycodes';
import {dispatchFakeEvent, dispatchKeyboardEvent} from '@angular/cdk/testing';
import {Component, ViewChild} from '@angular/... |
'use strict'
import { NightwatchBrowser } from 'nightwatch'
import init from '../helpers/init'
import sauce from './sauce'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done)
},
'@sources': function () {
return sources
},
'Test Simple Contract'... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { Card } from '..';
import { CardExpansion } from './CardExpansion';
import { ExpandCard } from './ExpandCard';
import { Button } from '../Button/Button';
storiesOf('Card', module)
.add('Primary with Text', () => {
return (
<Card>
... |
import { useNavigation } from '@react-navigation/native';
import React from 'react';
import { StyleSheet, Text, View, Image } from 'react-native';
import { TouchableWithoutFeedback } from 'react-native-gesture-handler';
export default function Header() {
const navigation = useNavigation();
const handleOnPress = ... |
import { PhotoSize } from '@equinor/fusion-components';
import {
useComponentDisplayType,
useComponentDisplayClassNames,
ComponentDisplayType,
} from '@equinor/fusion';
import styles from './styles.less';
import classNames from 'classnames';
import RotationNumberIcon from './icons/RotationNumberIcon';
type... |
import 'jest-styled-components';
import React from 'react';
import renderer from 'react-test-renderer';
import LayoutWrapper from './LayoutWrapper';
describe('the <LayoutWrapper /> component', () => {
it('should render layout without theme', () => {
const tree = renderer
.create(
<LayoutWrapper
... |
import * as http from 'http';
import { createServer } from '../lib/cors-anywhere';
// When this module is loaded, CORS Anywhere is started.
// Then, a request is generated to warm up the server (just in case).
// Then the base URL of CORS Anywhere is sent to the parent process.
// ...
// When the parent process is done... |
import { types } from '../types';
import 'reflect-metadata';
export declare function getTypeName(arg: any): types.TypeName | undefined; |
import express from 'express';
import sessions from 'express-session';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
import CORS from './cors.js';
import CSRF from './csrf.js';
import sharedRoutes from '../rout... |
import type { AppRouteRecordRaw, AppRouteModule } from '/@/router/types';
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '/@/router/routes/basic';
import { mainOutRoutes } from './mainOut';
import { PageEnum } from '/@/enums/pageEnum';
import { t } from '/@/hooks/web/useI18n';
const modules = import.meta.globE... |
import { Pod } from '../../../../pod'
import { Primitive } from '../../../../Primitive'
import { System } from '../../../../system'
export interface I<T> {
a: T
d: T
}
export interface O<T> {
a: T
}
export default class Default<T> extends Primitive<I<T>, O<T>> {
private _current: T | undefined = undefined
... |
import { Injectable } from '@nestjs/common';
import {Type} from "../entities/Type.entity";
import {Repository} from "typeorm";
import {InjectRepository} from "@nestjs/typeorm";
@Injectable()
export class TypesService {
constructor(
@InjectRepository(Type)
private typesRepository: Repository<Type>,... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-legislation',
templateUrl: './legislation.component.html',
styleUrls: ['./legislation.component.scss']
})
export class LegislationComponent implements OnInit {
constructor() { }
ngOnInit() {
window.scrollTo(0, 0);
}
} |
import { ParserServices, TSESTree } from '@typescript-eslint/typescript-estree';
import { JSONSchema4 } from 'json-schema';
import { AST } from './AST';
import { Linter } from './Linter';
import { Scope } from './Scope';
import { SourceCode } from './SourceCode';
interface RuleMetaDataDocs {
/**
* The general ... |
import * as React from 'react';
const { connect } = require('react-redux');
const { buildStyle } = require('../../theme.js');
const Toolbar = require('../Toolbar.min.js');
const Note = require('lib/models/Note');
const Folder = require('lib/models/Folder');
const { time } = require('lib/time-utils.js');
const { _ } = r... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-summary',
templateUrl: './summary.component.html',
styleUrls: ['./summary.component.scss']
})
export class SummaryComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { ApolloClient } from "@apollo/client";
import {
CollectionDetails as CollectionDetailsQuery,
CollectionDetailsVariables,
} from "../../queries/gqlTypes/CollectionDetails";
import { CollectionDetails as CollectionDetailsFragment } from "../../fragments/gqlTypes/CollectionDetails";
import {
CollectionList a... |
export const environment = {
production: true,
// apiUrl: 'https://51.254.124.175:8443'
apiUrl: 'https://cernun.fr:8443',
wsUrl: 'wss://cernun.fr:8443/cernun'
}; |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... |
import { ClientPostgreSQL } from "../../../mod.ts";
export default {
client: new ClientPostgreSQL("./tests/cli", {
"database": "nessie",
"hostname": "localhost",
"port": 5000,
"user": "root",
"password": "pwd",
}),
}; |
import webpack, { compilation as CompilationType, Compiler } from 'webpack'
import { namedTypes } from 'ast-types'
import sources from 'webpack-sources'
import {
getFontDefinitionFromNetwork,
FontManifest,
} from '../../../next-server/server/font-utils'
import postcss from 'postcss'
import minifier from 'cssnano-si... |
export const spacing = {
px: "1px",
0: "0",
0.5: "0.125rem", // 2px
1: "0.25rem", // 4px
1.5: "0.375rem", // 6px
2: "0.5rem", // 8px
2.5: "0.625rem", // 10px
3: "0.75rem", // 12px
3.5: "0.875rem", // 14px
4: "1rem", // 16px
5: "1.25rem", // 20px
6: "1.5rem", // 24px
7: "1.75rem", // 28px
8:... |
import {
assertRectangular,
assertValidMatrixIndex,
assertValidIndex,
assertMultiplicable,
assertDimensionMatch,
} from '../../utilities/ErrorAssertions';
import { ScalarOperations } from '../scalar/ScalarOperations';
import { Vector } from '../vector/Vector';
import { VectorBuilder } from '../vector/VectorBu... |
import { EntityManager } from '@mikro-orm/core'
import { Recipe } from './entities/recipe'
import { Rate } from './entities/rate'
import { User } from './entities/user'
export async function seedDatabase(em: EntityManager): Promise<{ defaultUser: User }> {
const defaultUser = em.create(User, {
email: 'test@gith... |
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
export type CreateUserInput = {
id?: string | null,
email: string,
_version?: number | null,
};
export type ModelUserConditionInput = {
email?: ModelStringInput | null,
and?: Array< ModelUserConditi... |
import {
hasTransition,
hasPerspective,
hasTouch,
Probe,
EventPassthrough,
extend,
Quadrant,
} from '@better-scroll/shared-utils'
// type
export type Tap = 'tap' | ''
export type BounceOptions = Partial<BounceConfig> | boolean
export type DblclickOptions = Partial<DblclickConfig> | boolean
// interface
... |
import mongoose from "mongoose";
import { Message } from "node-nats-streaming";
import { OrderCreatedEvent, OrderStatus } from "@plvtickets/common";
import { natsWrapper } from "../../../nats-wrapper";
import { OrderCreatedListener } from "../order-created-listener";
import { Order } from "../../../models/order";
con... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Peercoin</source>
<translation>Σχετικά με το Peercoin</translatio... |
export * from '$/packages/application/usecase/validators'; |
import React from 'react'
import NavbarRB from 'react-bootstrap/Navbar'
import Nav from 'react-bootstrap/Nav'
import Form from 'react-bootstrap/Form'
import FormControl from 'react-bootstrap/FormControl'
import NavDropdown from 'react-bootstrap/NavDropdown'
import { Button } from '../Button'
import { NavLink, Brand, N... |
import { expect, should } from 'chai';
import sinon from 'sinon';
import supertest from 'supertest';
import app from '../../src/app';
import db from '../../src/store/db';
import store from '../../src/store';
import redisClient from '../../src/store/redisClient';
import Cache from '../../src/store/Cache';
const baseUrl... |
import { Injectable } from "@angular/core";
import {
ActivatedRouteSnapshot,
CanActivate,
Router,
RouterStateSnapshot,
} from "@angular/router";
import { AuthService } from "../api/auth/auth.service";
@Injectable({
providedIn: "root",
})
export class IsLoggedInGuard implements CanActivate {
isLoggedIn?: bo... |
/**
* @license
* Copyright 2016 Palantir Technologies, 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... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Bottone destro per modificare l'indirizzo o l'etichetta</translation>
</message>
<message>
<sour... |
import ZRText, { TextStyleProps } from 'zrender/lib/graphic/Text.js';
import Element, { ElementTextConfig } from 'zrender/lib/Element.js';
import Model from '../model/Model.js';
import { LabelOption, DisplayState, TextCommonOption, StatesOptionMixin, DisplayStateNonNormal, ColorString, ZRStyleProps, AnimationOptionMixi... |
import mock from "mock-fs";
import { readDir, readDirContents } from "../helpers";
import { packager } from "../../scripts/generic/generic-packager";
const testFont = {
fontId: "clear-sans",
fontName: "Clear Sans",
subsets: ["all"],
weights: [100, 300, 400, 500, 700],
styles: ["normal", "italic"],
defSubs... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
import React, { CSSProperties, HTMLAttributes } from 'react';
import { useStyles } from 'react-treat';
import { kebab } from 'case';
import { BoxShadow, Variant } from '@newrade/core-design-system';
import { Label, Stack, useTreatTheme } from '@newrade/core-react-ui';
import { getCSSBoxShadow } from '@newrade/core-re... |
import { ProfilerConsole } from "../console";
export class FuncPath {
public get path(): typeof ProfilerConsole {
return global.profiler;
}
public set path(profilerFunctionCollection: typeof ProfilerConsole) {
global.profiler = profilerFunctionCollection;
}
}
declare global {
names... |
import { DatasetDescription } from './dataset-description';
describe('DatasetDescription', () => {
it('should create an instance', () => {
expect(new DatasetDescription()).toBeTruthy();
});
}); |
import { StateMachine } from "..";
import Action from "../actions";
type Operation = (sm: StateMachine) => void;
interface Frame { undo: Operation; redo: Operation; }
export class History {
private stack: Frame[] = [];
private idx: number = -1;
private savedAction = null as null | Frame;
public log(... |
export * from "./classes/popup-component-controller";
export * from "./classes/popup-config";
export * from "./classes/popup-controller";
export * from "./classes/popup-lifecycle";
export * from "./classes/popup-template-controller";
export * from "./components/popup-arrow";
export * from "./components/popup";
export *... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TechSkillRoutingModule } from './tech-skill-routing.module';
import {PageHeaderModule} from '../../shared/modules';
import {TechSkillComponent} from './tech-skill.component';
@NgModule({
declarations: [TechSkillCompon... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright 2020 The Oppia Authors. 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 ap... |
import {WarningOutlined} from '@vicons/antd';
import {NButton, NIcon, NRadio, NRadioGroup, NSelect} from 'naive-ui';
import {defineComponent, nextTick, onMounted, ref} from 'vue';
import ImageClip from '../components/ImageClip/ImageClip.vue';
import ImageViewer from '../components/ImageViewer/ImageViewer.vue';
import {... |
import React from 'react'
import { Icon, IconProps } from '../Icon'
export function StarCircleIcon(props: IconProps) {
return (
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path
d="M12.593 6.8l1.4 2.95h2.377a.651.651 0 01.469 1.114l-2.187 1.946 1.209 2.778a.658.658 0 01-... |
import { BackboneElement } from './BackboneElement'
import { CodeableConcept } from './CodeableConcept'
import { DomainResource } from './DomainResource'
export class Device_Specialization extends BackboneElement
{
static def : string = 'Device_Specialization';
systemType : CodeableConcept ;
version : s... |
import { List } from "@raycast/api";
import { cpuUsage, freemem, freememPercentage } from "os-utils";
import { useState } from "react";
export default function SystemMonitor() {
const [cpu, setcpu] = useState(0);
const [freeMemPercentage, setFreeMemPercentage] = useState(0);
const [freeMem, setFreeMem] = useStat... |
import React, { useState, useEffect } from 'react';
import { connect } from 'react-redux';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Row, Col, Label } from 'reactstrap';
import { AvFeedback, AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation';
import { translat... |
/**
* dropdownlist Sample
*/
import { DropDownList } from '../../src/drop-down-list/index';
import { L10n, setCulture } from '@syncfusion/ej2-base';
import { Query, DataManager } from '@syncfusion/ej2-data';
let listObj: DropDownList = new DropDownList({
dataSource: new DataManager({ url: 'http://js... |
import * as React from "react";
import {
withAdaptivity,
ViewHeight,
ViewWidth,
} from "../../hoc/withAdaptivity";
import { ModalRootTouch } from "./ModalRoot";
import { ModalRootDesktop } from "./ModalRootDesktop";
import {
AdaptivityContextInterface,
AdaptivityProps,
} from "../AdaptivityProvider/Adaptivity... |
export interface ICheck {
id: string;
config: object;
}
export interface IRule {
id: string;
name: string;
severity: string;
appliesTo: string[];
enabled: boolean;
checks: ICheck[];
} |
import * as pixi from "pixi.js";
export const debugTxt = (x: number, y: number) => {
const txt = new pixi.Text(`${x}, ${y}`, {
fill: "#333333",
fontSize: 12,
fontWeight: "bold",
});
return txt;
}; |
import type TWClassesSorter from "tailwind-classes-sorter";
// Formats function templates
// eg: `clsx\`container w-full\``
export default function functionTemplates(twClassesSorter: TWClassesSorter, node: any, functionNames: string[]) {
if (
node &&
node.type === "TaggedTemplateExpression" &&
... |
/* eslint-disable camelcase */
import {
JobParameters, JobTargetError, JobTargetData as GenericJobTargetData, OCROptions
} from '../JobParameters';
export class IngestMonographParameters implements JobParameters {
targets: MaybeJobTarget[];
options: IngestMonographOptions;
constructor(target: MaybeJob... |
export * from './editUtilityModal.component'; |
/*
* 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.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
import {
Breadcrumb,
Button,
Checkbox,
Col,
Collapse,
Form,
Icon,
Input,
message,
Modal,
Popconfirm,
Popover,
Select,
Table,
} from 'antd';
import _ from 'lodash';
import React from 'react';
import intl from 'react-intl-universal';
import { connect } from 'react-redux';
import { RouteCompone... |
import { constNull } from 'fp-ts/lib/function';
import * as O from 'fp-ts/lib/Option';
import { pipe } from 'fp-ts/lib/pipeable';
import React, { FC } from 'react';
import { Text } from 'react-native';
import { useTheme } from '../hooks/useTheme';
// TypeScript compiler ensures all errors are translated.
const fieldEr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.