text
stringlengths
10
953k
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Inject, ModuleWithProviders, NgModule, Optional} from '@angular/core'; import { HttpClient, HttpClientModul...
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ /** * @module plugins/inline-popup */ import type { IControlType, IJodit } from 'jodit/types'; ...
import * as React from 'react'; function SvgDribbble( props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement> ) { return ( <svg width="1.5em" height="1.5em" strokeWidth={1.5} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="cu...
import { ChangeDetectorRef, ViewRef , OnInit, OnDestroy, Component, Input, ViewEncapsulation, EventEmitter, ViewChild } from '@angular/core'; import { NgxSpinnerService } from 'ngx-spinner' import { DashboardService } from 'app/services/dashboard/dashboard.service'; import { Notification, NotificationService, DeviceSe...
// Copyright 2014 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 React, { useState, useEffect } from "react"; import { useFetchRepo, useLocalStorage, useRepoLocalStorage, } from "../../hooks"; import popularRepos from "../../sample/popularRepos"; import { RepoItem, ScrollableDiv, ContactsIcon } from "./styles"; import { BsBookmark, BsInfoCircle } from "react-icons/bs"; ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TabsComponent } from './tabs.component'; describe('TabsComponent', () => { let component: TabsComponent; let fixture: ComponentFixture<TabsComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declaratio...
import { Document } from 'mongoose'; export declare class Room extends Document { _id: string; fromUser: string; toUser: string; last_message: string; created_at: number; updated_at: number; deleted_at: number; } export declare const RoomSchema: import("mongoose").Schema<any>;
import React from 'react'; import Panel from '../../Panel'; import Skeleton from '../../Skeleton'; import { Container } from './styles'; const LoadingFeedShare: React.FC = () => { return ( <Container> <Panel className="no-shadow"> <Skeleton className="row-skeleton" /> <Skeleton className=...
export interface Slide { name: string; description?: string; image_url: string; link?: string; }
import { Deepstream } from '@deepstream/server' export const deepstream = new Deepstream({ auth: [{ path: './openid/openid-authentication', options: { keycloakBaseUrl: "", keycloakRealm: "" } }] }) deepstream.start()
import {MigrationInterface, QueryRunner} from 'typeorm'; // import debug from '../../CI/debug'; const roles = ['admin', 'user']; export class auto1545047972476 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> { let tmp; while ((tmp = roles.shift())) { const dat...
import {Component, OnInit} from '@angular/core'; import {routerTransition} from "../../../../router.animations"; import {HttpStewardService} from "../../../../shared/services/http-steward.service"; import {Department} from "../../../../entities/department-model"; import {Notify} from "../../../../shared/classes/notify"...
/** I created my personal API key to avoid your key to be compromised. */ export const GIPHY_API_KEY = '1bQW89LhpO14KpHrz9QYKVMyk1SczI9k';
import { toSeconds } from './casts'; import { HighResTime } from './operations'; /** * Returns true if both times are equal * * @param t1 [number, number] * @param t2 [number, number] */ export function isEqual(t1: HighResTime, t2: HighResTime): boolean { return toSeconds(t1) === toSeconds(t2); } /** * Ret...
import { NgModule } from '@angular/core'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { NbInputModule, NbCardModule, NbDatepickerModule, NbButtonModule, NbSelectModule, NbBadgeModule, NbCheckboxModule } from '@nebular/theme'; import { CountdownModule } from 'ngx-countdown'; import {...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'shw-installation-guide', templateUrl: './installation-guide.component.html', styleUrls: ['./installation-guide.component.scss'] }) export class InstallationGuideComponent implements OnInit { externalDependenciesInstallationCommands = `n...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { KeycloakService } from 'keycloak-angular'; import { AccessTermsTableComponent } from './access-terms-table.component'; import { AdjudicationModule } from '@adjudication/adjudication.module'; describe('AccessTermsTableComponent', () =>...
/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * The state of the switch. */ export interface MDCSwitchState { /** * Indicates whether or not the switch is disabled. */ disabled: boolean; /** * Indicates whether or not the switch is processing and showing a...
import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { defaultBoard } from '../dashboard/models/dashboard-default'; import { sampleBoardCollection } from '../dashboard/models/dashboard-collection-sample'; @Injectable() export c...
import { Cosmetic } from "core/game-objects/cosmetic" import debug from "debug" import * as gameObjectsCommon from "game-objects-common" import { t } from "l10n" import _out from "./out" const logger = debug("dnpk/ui/text/empire") /** * Display a flag based on entity's cosmetic color. * * @param entity or somethin...
import { Icon } from './Icon' import '../styles/button.scss' import { ButtonHTMLAttributes } from 'react' interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> { title: string iconName: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family' selected: boolean } export const Button: ...
import { Override, Task } from '@/core/types'; import { ObjectId } from 'mongoose'; export type TaskDocument = Override< Task, { userId: ObjectId; clientId: ObjectId; project: ObjectId } >;
import {gql} from '@apollo/client'; import {Group, Table} from '@dagster-io/ui'; import moment from 'moment-timezone'; import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorInfo'; import {Timestamp} from '../app/time/Timestamp'; import {DaemonHealth} from './DaemonHealth'; import {Dae...
import { defineComponent, App as _App } from 'vue'; import { createCls } from '../_util/prefixCls'; import { getConfig } from './../_util/config'; export default (name: string) => { return defineComponent({ inheritAttrs: false, data() { return { prefixCls: createCls(getConfig('prefixCls'), name...
<TS language="sk" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Pravým tlačidlom myši upravte adresu alebo štítok</translation> </message> <message> <source>Create a new address</source> ...
import { Injectable } from '@angular/core'; import { Angulartics2 } from '../../angulartics2-core'; declare var amplitude: { getInstance: () => { logEvent(action: string, properties: any); setUserId(userId: string); setUserProperties(properties: any); }; }; @Injectable({ providedIn: 'root' }) export ...
import { ElasticsearchQueryBuilderPlugin } from "@webiny/api-headless-cms/types"; export const elasticSearchQueryBuilderEqualPlugin = (): ElasticsearchQueryBuilderPlugin => ({ type: "elastic-search-query-builder", name: "elastic-search-query-builder-eq", operator: "eq", apply(query, { field, value }) {...
import { setGridEnabledCellInfo } from "@/helpers"; import { onMounted, ref, computed, reactive, watchEffect, defineComponent, ComputedRef, Prop } from "vue"; import { CellControlEvent, DisableCellFunc, GetFocusedCellElementFunc, Grid } from "./grid"; interface Props { rows: number; columns...
import React from 'react'; import { stylesFactory, useTheme } from '@grafana/ui'; import { css } from 'emotion'; import { GrafanaTheme } from '@grafana/data'; const title = { fontWeight: 500, fontSize: '26px', lineHeight: '123%' }; const getStyles = stylesFactory((theme: GrafanaTheme) => { const backgroundUrl = the...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {chain, noop, Rule, Tree} from '@angular-devkit/schematics'; import {addModuleImportToModule, findModuleFromOp...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ScriptTarget } from 'typescript'; import type { Compiler } from 'webpack'; /** * The options used to configu...
import React from 'react'; // tslint:disable-next-line:ordered-imports import { Svg, Path } from 'react-native-svg'; import { processComponent, RfxSvgIcon, RfxSvgPropsOptional, } from '@reflex-ui/core'; let WebIcon: React.ComponentType<RfxSvgPropsOptional> = ( props: RfxSvgPropsOptional, ) => ( <RfxSvgIcon ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-history', templateUrl: './history.component.html', styleUrls: ['./history.component.css'] }) export class HistoryComponent implements OnInit { constructor() { } ngOnInit() { } }
import AWS_SDK from 'aws-sdk' import { log, } from '../config.js' import type { MemoryCardPayload, } from '../types.js' import { StorageBackend, } from './backend.js' import type { StorageBackendOptions, StorageS3Options, } ...
const HamburgerClose = () => ( <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M2.18057 0C2.18057 0 14.8695 12.6889 23 20.8194L20.8194 23L1.20719e-05 2.18056L2.18057 0Z" fill="#124551" /> <path d="M0 20.8194C...
import { ShoppingAction } from '../actions' import { FoodAvailability, FoodModel, OfferModel, ShoppingState } from '../models' const initialState = { availability: {} as FoodAvailability, availableFoods: {} as [FoodModel], offers: {} as [OfferModel], appliedOffer: {} as OfferModel } export const shopp...
import { DataField } from '../../../domain/mi-export-data'; import { mapCatCData } from '../cat-c-mapper'; import { getMinimalInput, getMinimalInputWithPassCompletion } from './helpers/cat-c/inputs/minimal-inputs'; import { getCatCMinimalDataFields } from './helpers/cat-c/data-fields/minimal-data-fields'; import { ge...
require('dotenv').config(); import Sequelize from 'sequelize'; const chalk = require('chalk'); import availableConfigs from './index'; /* istanbul ignore next */ const env = process.env.NODE_ENV || 'development'; const config = availableConfigs[env]; // eslint-disable-next-line console.log( chalk.magenta('connecti...
import { maskCurrency } from '.'; describe('CurrencyMask', () => { describe('maskCurrency', () => { it('formats empty value', () => { const result = maskCurrency(''); expect(result).toBe(''); }); it('formats one digit value', () => { const result = maskCurrency('3'); expect(resul...
import React, { Fragment, createContext, useContext, useMemo } from "react"; import { connect, useField, observer, useFieldSchema, RecursionField, useForm, } from "@formily/react"; import { VoidField } from "@formily/core"; import { Steps, Button, Space } from "@douyinfe/semi-ui"; import { Schema, SchemaKey...
/* * Copyright 2020 Spotify AB * * 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 i...
import React, { useRef, useEffect } from 'react' // eslint-disable-line import { FileExplorerContextMenuProps } from './types' import './css/file-explorer-context-menu.css' export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => { const { actions, createNewFile, createNewFolder, deletePath, ...
#!/usr/bin/env node import readPkgUp from 'read-pkg-up'; import updateNotifier from 'update-notifier'; import { Argv } from 'yargs'; // @ts-ignore not typed yet import { hideBin } from 'yargs/helpers'; import yargs from 'yargs/yargs'; import preferencesCommand from './commands/preferences'; import yoCommand, { YoArgu...
export interface Product { id: number; productName: string; productCode: string; category: string; releaseDate: string; description: string; price: number; starRating: number; imageUrl: string; tags: string[]; } export interface ProductResolved { product: Product; error?: any; }
import getRandomInt from '../utils/getRandomInt'; import Bubble from './Bubble'; import checkCollision from '../utils/circleCollision'; import rotate from '../utils/rotate'; export default class CanvasManager{ // Canvas public canvas: HTMLCanvasElement; private _context: CanvasRenderingContext2...
import { CellProps } from '../components/ui/Cell/Cell'; import { AttemptWordInterface } from '../context/GameContext/GameContext'; interface GetCellPropsInterface { ( attempts: AttemptWordInterface[], rowIndex: number, cellIndex: number ): CellProps; } // eslint-disable-next-line import/prefer-default...
GOCAD TSurf 1 HEADER { comments:peninsular_ranges/banning/alt1/extents/cfma_banning_complete.ts ivolmap:false imap:false regions:false *regions*Region_1*visible:false *regions*region:Region_2 *regions*Region_2*visible:false name:SAFS-SAFZ-MULT-Banning_fault-YULE } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAM...
import React from "react"; import { Meta, Story as IStory } from "@storybook/react/types-6-0"; import Bullet, { BulletComponentType } from "../src/components/bullet"; import Bullets from "../src/components/bullets"; import styled from "styled-components"; import Slider, { SliderProps } from "../src"; const images = [...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Option } from "./Option"; import { Vector } from "./Vector"; /** * Sorting function for type T: function * to convert this type to a type which is natively * sortable in javascript, that is string, number or boolean. * `((v:T)=>number) | ((v:T)=>string) | ((v:T)=>boolean` */ export type ToOrderable<T> = ...
import {DexcomClient} from "dexcom-share-api"; import {setDexcomEstimatedGlucoseValues} from "./local-storage"; export async function writeGlucose(client: DexcomClient | undefined) { try { if (typeof client === "undefined") { throw new Error("Client misconfigured"); } const data = await client.get...
import React, { useEffect, useRef, useState, memo } from 'react'; import * as S from './ScratchOff.style' import { getAngleBetween, getDistanceBetween, getFilledInPixels, getMouse, simpleStringify, } from './utils'; import { DEFAULT_REVEAL_PERCENTAGE, BRUSH_IMG } from './constants' interface Props { reveal...
/* eslint-disable prefer-const */ import React, { FC } from 'react'; import { PreRender } from '@lolita/server-side/types/render'; const createHead = function<T>(preRender: PreRender) { const { headScripts = [], headStyles = [] } = preRender?.htmlConfig || {}; const { PageTitle = null, PageDescription = null, Page...
export class SelectComponent { constructor() {} selectLog() { console.log("SELECT"); } }
import { Story } from "@storybook/react" import React, { useState } from "react" import { MenuIcon, MenuIconProps } from "./MenuIcon" export default { title: "Components/MenuIcon", component: MenuIcon } const Template: Story<MenuIconProps> = (args) => { const [isOpen, setIsOpen] = useState(args.isOpen) retur...
import { gsap } from "gsap"; import { TextPlugin } from "gsap/dist/TextPlugin"; import { ScrollTrigger } from "gsap/dist/ScrollTrigger"; export function initGSAP() { gsap.registerPlugin(TextPlugin, ScrollTrigger); }
import { createNamespace, isDef } from '../utils'; import { inherit } from '../utils/functional'; import { preventDefault } from '../utils/dom/event'; // Types import { CreateElement, RenderContext } from 'vue/types'; import { DefaultSlots } from '../utils/types'; export type OverlayProps = { zIndex?: number; cla...
import { createMiddleware } from './server'; import { MiddlewareConfig } from './types'; export const createExpressMiddleware = (config: MiddlewareConfig) => createMiddleware(config);
import { ChangeDetectorRef, Component, Input, OnInit, ViewChild } from '@angular/core'; import { ExamSubmissionComponent } from 'app/exam/participate/exercises/exam-submission.component'; import { ProgrammingExerciseStudentParticipation } from 'app/entities/participation/programming-exercise-student-participation.model...
<TS language="ru" 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</sourc...
/** * @license * Copyright 2019 Dynatrace LLC * 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 ag...
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { Teacher, TeacherSchema } from './models/entities/teacher.entity'; import { TeacherControllers } from './teacher.controller'; import { TeacherServices } from './teacher.service'; @Module({ imports: [ MongooseModul...
import { OverlayConfig } from "@angular/cdk/overlay"; import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, Output, SimpleChanges, ViewChild, ViewEncapsulation } from "@angular/core"; import { Subject } from "rxjs"; import { debounceTime, t...
import 'focus-visible' import { ShortcutProvider } from '@slimsag/react-shortcuts' import ServerIcon from 'mdi-react/ServerIcon' import * as React from 'react' import { hot } from 'react-hot-loader/root' import { Route } from 'react-router' import { BrowserRouter } from 'react-router-dom' import { combineLatest, from,...
const Disable = false /** * Enables the application to opt-in for preview features based on runtime * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment * variable, which is checked for non-development environments. */ function enableDevelopmentFeatures(): boolean { if (Disable) { retu...
import { renderHook } from '@testing-library/react-hooks'; import { useLocalStorageProp, } from '../src/index'; describe('useLocalStorageProp', () => { beforeEach(() => { window.localStorage.setItem('foo', 'bar'); }); afterEach(() => { window.localStorage.removeItem('foo'); }); it('should render th...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { ValueConstraint } from "../internal"; export interface ElementPropertyConstraint { parentId: string; propertyName?: string; elementId: string; valueConstraint: ValueConstraint; }
import { Col, Button, Form, FormGroup, Alert } from "reactstrap"; import { Formik } from "formik"; import FormItem from "~/components/form/FormItem"; import FormSelect, { FormSelectOption } from "~/components/form/FormSelect"; import FormDate from "~/components/form/FormDate"; import type { Student } from "~/database/e...
import { Component, OnInit } from '@angular/core'; import { TreeTableData, TreeTableHeaderObject, TreeTableRow } from 'projects/angular-tree-table/src/public-api'; @Component({ selector: 'app-expandable-fixed-visibility', templateUrl: './expandable-fixed-visibility.component.html', styleUrls: ['./expandable-fixe...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component, Host, h, Event, EventEmitter, Element, Listen, } from "@stencil/core"; @Component({ tag: "anveshmekala-radio-group", styleUrl: "radio-group.css", shadow: true, }) export class RadioGroup { /** * Fires in when there is a change in selection of radioitem. * It is recommend...
import { addReactions, botCache } from "../../../../deps.ts"; import { db } from "../../../database/database.ts"; import { PermissionLevels } from "../../../types/commands.ts"; import { Embed } from "../../../utils/Embed.ts"; import { createSubcommand, sendAlertResponse, sendResponse, stringToMilliseconds, } fr...
import { inquirer, api, doreamon, Logger } from '@cliz/cli'; import * as fs from 'fs'; import config from '../config'; import { setLastestPeriod, getLastestPeriod } from './common'; export async function start(period: number, logger: Logger) { const branch = `translate/${period}`; logger.info('拉取远程更新 ...'); aw...
import { Component, Vue, Watch, Prop } from 'nuxt-property-decorator' @Component export default class RenderData<T, S> extends Vue { /** 渲染数据 */ @Prop() ssr?: T /** 获取SPA数据回调 */ fetchData?: () => Promise<T> static fetchData?: () => Promise<unknown> /** 解析数据返回可渲染的数据 */ parseData?: (data: S | T) => Promi...
import { compareObjects, testFilterCondition } from '../filterUtilities'; describe('filterUtilities', () => { describe('compareObjects method', () => { const obj1 = { id: 1, firstName: 'John', lastName: 'Doe', age: 26 }; const obj2 = { id: 1, firstName: 'John', lastName: 'Doe', age: 26 }; const obj3 = { ...
/*- * ***** * Concord * ----- * Copyright (C) 2017 - 2018 Walmart 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 * ...
import * as ex from 'excalibur'; import { TiledMapResource } from '@excalibur-tiled'; const game = new ex.Engine({ width: 800, height: 600, canvasElementId: 'game', pointerScope: ex.Input.PointerScope.Canvas, antialiasing: false, }); // game.toggleDebug(); const reset = () => { game.currentScene....
import npmPackageUrl from './npmPackageUrl'; export default function attachContainer(rootElement: HTMLElement, site: string) { const containerId = 'npm-video-player-detector-container'; // Check if the id has already been injected if (!document.querySelector('#' + containerId)) { const container = document....
import BaseAlbum from './BaseAlbum.js'; import type Client from '../client/Client.js'; import type { SimplifiedAlbumObject, AlbumGroupType } from 'spotify-api-types'; export default class SimplifiedAlbum extends BaseAlbum { /** * Only present when getting an artist’s albums. Compare to `type` of `album` this f...
import { FSComponent, DisplayComponent, NodeReference, VNode, ComponentProps } from 'msfssdk'; import { EventBus } from 'msfssdk/data'; import { ADCEvents } from 'msfssdk/instruments/ADC'; import { AHRSSystemEvents } from '../../../Shared/Systems/AHRSSystem'; import { AvionicsSystemState, AvionicsSystemStateEvent } fro...
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p></p> */ export interface AddPermissionRequest { /** * <p>The URL of the Amazon SQS queue to which permissions are added.</p> * <p>Queue URLs and names are case-sensitive.</p> */ Qu...
import React, {useEffect, useRef} from 'react'; import {loadModules} from 'esri-loader'; import './styles.scss'; // FIXME: We need to test if pull all sublayers individually is faster/slower // than pulling the whole WebServer // this lags too much, need to lazy load and apply to map // We can either hardcore the imp...
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 React, { useState } from 'react'; const { ipcRenderer } = window.require('electron'); interface IContainer { [key: string]: string | number | never; } export const DockerContext = React.createContext<any>(null); /** * MANAGES THE FOLLOWING DATA AND ACTIONS: * @property {Object} dockerData Single data poi...
// angular import {HTTP_PROVIDERS} from '@angular/http'; // app import {LogService} from './services/log.service'; import {RouterExtensions} from './services/router-extensions'; export const CORE_PROVIDERS: any[] = [ HTTP_PROVIDERS, LogService, RouterExtensions, ]; // decorators export * from './decorators/bas...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { expect } from 'chai'; import CodeMirror from 'codemirror'; import { Mode } from '@jupyterlab/codemirror/src/mode'; function fakeMode(name: string) { return { mode: name, ext: [name], mime: `...
const c_options_menu__menu_item_icon_FontSize: {"name": "--pf-c-options-menu__menu-item-icon--FontSize"; "value": "0.625rem"; "var": "var(--pf-c-options-menu__menu-item-icon--FontSize)";} export default c_options_menu__menu_item_icon_FontSize
/** * `LocationStrategy` is responsible for representing and reading route state * from the the browser's URL. Angular provides two strategies: * {@link HashLocationStrategy} (default) and {@link PathLocationStrategy}. * * This is used under the hood of the {@link Location} service. * * Applications should use t...
import React, { useEffect, useState } from 'react' import { makeStyles, createStyles } from '@material-ui/core' import CustomTextInput from '../../input/text' import Modal from '../modal' import { IThemeStyle } from '../../../../styles/theme' import { fetchSet } from '../../../context/fetch' import { IWorkspaceSpec }...
import Document, { Head, Html, Main, NextScript } from 'next/document' import { existsGaId, GA_TRACKING_ID } from '../lib/gtag' class MyDocument extends Document { render() { return ( <Html lang="en"> <Head> {existsGaId && ( <> <script async ...
import { createLocalVue, mount } from '@vue/test-utils' import ModeChange from '~/components/ModeChange.vue' import { key } from '~/hooks/useAppTheme' const localVue = createLocalVue() // Resolved the type error `window.matchMedia is not a function` Object.defineProperty(window, 'matchMedia', { writable: true, v...
import React, { useState, useEffect } from 'react' import { useObserver } from 'mobx-react-lite' import { View, Text, StyleSheet, TouchableOpacity, Linking } from 'react-native' import { TextInput } from 'react-native-paper' import FastImage from 'react-native-fast-image' import Clipboard from '@react-native-community/...
import {StructureFactory} from "./../../factories"; import {ClassMethodParameterStructure} from "./../../structures"; import {applyMixins} from "./../../utils"; import {AbstractableDefinition} from "./../base"; import {BaseClassMethodDefinition} from "./base"; import {ClassMethodParameterDefinition} from "./ClassMethod...
import React, { useEffect } from 'react' import { Container } from 'react-neu' import styled from 'styled-components' import Page from 'components/Page' import { ProductPageHeader, ProductPageContent, TokenStats, PriceChanges, WalletBalance, Description, } from 'components/ProductPage' import { BuySellWrap...
import ExecSql from "@australis/tiny-sql-exec-sql"; import { Connection } from "tedious"; import { debugModule } from "@australis/create-debug"; const debug = debugModule(module); /** */ export default function setValue(tableName: string) { /** */ return async (connection: Connection, key: string, value: any)=>...
import React, { useMemo } from 'react'; import classNames from 'classnames'; import { DateTime } from 'luxon'; import { UISref } from '@uirouter/react'; import { IModalComponentProps, ModalHeader, ModalBody, Table, TableRow, TableCell, standardGridTableLayout, usePollingData, usePrevious, showModal...
import { Injectable, Logger, NotFoundException, UnprocessableEntityException, } from '@nestjs/common'; import { PostModel } from './posts.interface'; @Injectable() export class PostsService { private posts: Array<PostModel> = []; private readonly logger = new Logger(PostsService.name); public findAll():...
import { fragmentAddress } from "@saleor/fragments/address"; import { fragmentOrderDetails, fragmentOrderSettings, fragmentRefundOrderLine, fragmentShopOrderSettings } from "@saleor/fragments/orders"; import { fragmentMoney } from "@saleor/fragments/products"; import { warehouseFragment } from "@saleor/fragment...