text
stringlengths
10
953k
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import '../../../common/extensions'; import { nbformat } from '@jupyterlab/coreutils'; import * as vscode from 'vscode'; import { CancellationToken } from 'vscode-jsonrpc'; import * as vsls from 'vsls/vscode';...
export { default as IconPlus } from './IconPlus'
import * as React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import _ from 'lodash'; import Ripple from '../Ripple'; import { prefix, getUnhandledProps, defaultProps, createChainedFunction } from '../utils'; export interface PickerToggleProps { classPrefix?: string; hasV...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { Body, Controller, Get, InternalServerErrorException, Param, Post, Put } from '@nestjs/common'; import { Public } from '../user/decorators/Public'; import { UserId } from '../user/decorators/UserId'; import { FlagService } from './FlagService'; import { parseISO } from 'date-fns'; @Controller('') export class ...
import { InputRuleWrapper } from '@atlaskit/prosemirror-input-rules'; import { Fragment, Schema, Slice } from 'prosemirror-model'; import { EditorState, Plugin, Transaction } from 'prosemirror-state'; import { FeatureFlags } from '../../../types/feature-flags'; import { createRule, createPlugin } from '../../../utils/...
import { Response } from "../runtime"; import { Logger } from "./Logger.js"; export interface Events { // TODO: Temporarily here until moved to function builder "function.requested": { localID: string; request: { event: any; context: any; }; }; "function.responded": { localID: strin...
import commander from 'commander'; import { initialize } from '../config'; import { migrate, rollback, createMigration } from '../migrations'; import pkg from '../../package.json'; const cliName = 'postre'; const cliVersion = pkg.version; export async function run(): Promise<void> { tryOrLogError(async () => { ...
<TS language="ku_IQ" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>ناوونیشانێکی نوێ دروست بکە</translation> </message> <message> <source>&amp;New</source> <translation>&amp;نوێ</translation> </messag...
import type { GlobEnvConfig } from '/#/config'; import { warn } from '/@/utils/log'; import pkg from '../../package.json'; import { getConfigFileName } from '../../build/getConfigFileName'; export function getCommonStoragePrefix() { const { VITE_GLOB_APP_SHORT_NAME } = getAppEnvConfig(); return `${VITE_GLOB_APP_S...
/// <reference path="AttackStrategy.ts"/> class Context { private attackStrategy: AttackStrategy; public constructor(){ } public setAttack(attackStrategy: AttackStrategy){ this.attackStrategy = attackStrategy; } public executeAttack(maxHp: number, hp: number, attack: number){ ...
import { prismaClient } from '../../prisma' import { io } from '../../app' export class CreateMessageService { async execute(text: string, user_id: string) { const message = await prismaClient.message.create({ data: { text, user_id, }, include: { user: true, } ...
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { Observable } from 'rxjs'; @Injectable() export class SameUserAuthGuard implements CanActivate { canActivate( context: ExecutionContext, ): boolean { const request = context.switchToHttp().getRequest(); const { user ...
import React from 'react'; import Head from 'next/head'; import Link from 'next/link'; import { GetStaticProps } from 'next'; import { motion } from 'framer-motion'; import Date from '../components/date'; import Layout from '../components/Layout'; import { getSortedPostsData } from '../lib/posts'; export default funct...
declare namespace java { namespace awt { namespace event { class ItemEvent extends java.awt.AWTEvent { public static readonly ITEM_FIRST: int public static readonly ITEM_LAST: int public static readonly ITEM_STATE_CHANGED: int public static readonly SELECTED: int pub...
import { Browser, Page } from "puppeteer"; import puppeteer from "puppeteer-extra"; import { TestBrowserExecutablePath } from "../constants"; import { SessionPlugin } from "../plugin"; let browser: Browser; let page: Page; puppeteer.use(new SessionPlugin()); beforeAll(async () => { browser = await puppeteer.launch({...
export const PAGE_TITLE = `Author`;
import React from 'react'; import { render, cleanup, fireEvent } from 'verdaccio-ui/utils/test-react-testing-library'; import { DetailContextProvider } from '../../context'; import Developers from './Developers'; import { DeveloperType } from './DevelopersTitle'; describe('test Developers', () => { afterEach(() =...
import { applyMiddleware, createStore } from 'redux' import { createLogger } from 'redux-logger' import thunkMiddleware from 'redux-thunk' import { combineReducers } from 'redux'; import * as pulls from './pulls'; import * as signin from './signin'; const loggerMiddleware = createLogger() const rootReducer = combine...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import { UserLoginAction, UserLogoutAction } from 'actions/user-login-actions'; import { dispatch } from 'app-dispatcher'; export default clas...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import uuid from 'uuid/v4'; import Vue from 'vue'; import { State } from '../store/types'; import { Ship, Slotitem } from '../entity'; interface SlotitemViewModel { id: string; name: String; shortName: String; } interface ShipViewModel { name: String; lv: Number; hp: Number; maxHp: Number; hpColor: st...
export { QIWIINFO } from "./info.command.qiwi" export * from "./paymentSend.command.qiwi"
export interface Callbacks { readonly onInit?: () => void; readonly onMenuOpen?: () => void; readonly onMenuClose?: () => void; readonly isMobile?: () => void; readonly isDesktop?: () => void; }
import * as IORedis from 'ioredis'; import { v4 } from 'uuid'; import { expect } from 'chai'; import { after } from 'lodash'; import { beforeEach, describe, it } from 'mocha'; import { FlowProducer, Queue, QueueEvents, Worker } from '../src/classes'; import { delay, removeAllQueueData } from '../src/utils'; describe('...
import { Component } from '@angular/core'; @Component({ selector: 'app-header', templateUrl: './header.component.html', }) export class HeaderComponent { }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About judgecoin</source> <translation type="unfinished"/> </message> <message> <location line...
import { Avatar, Checkbox, FormControl, FormControlLabel, FormHelperText, SvgIcon, Typography, TypographyVariant, } from "@material-ui/core"; import Alert from "components/Alert"; import Button from "components/Button"; import { CONTINUE, THANKS } from "features/auth/constants"; import React, { useState...
import React from 'react' import ReactDOM from 'react-dom' import { MAADirectoryComponent } from '../MAADirectoryComponent' import { User } from 'containers/MAAContainer' const user: User = { id: 'uuid12345uuid123', } describe('render', () => { it('renders without crashing', () => { const div = document.creat...
import MovieClip from "../display/MovieClip"; export default class Lib { public static current: MovieClip; protected static __sentWarnings: Map<string, boolean> = new Map(); public static notImplemented(): void { var api = arguments.callee.name; if (!Lib.__sentWarnings.has(api)) { Lib.__sentWarnings.se...
import {Component, Inject} from "@angular/core"; import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog"; import {TranslateService} from "@ngx-translate/core"; export interface ConfirmDialogData { title: string message: string okButtonText?: string cancelButtonText?: string } @Component({ sel...
import { Injectable } from '@nestjs/common'; @Injectable() export class UserService { constructor(){ } findAll() { return [ { title: '1 title'}, { title: '1 title'}, { title: '1 title'}, { title: '1 title'} ] } }
import {Report} from '../../models/'; import {createReportFromDiscriminatorValue} from '../../models/createReportFromDiscriminatorValue'; import {GetOffice365ActiveUserDetailWithDateRequestBuilderGetRequestConfiguration} from './getOffice365ActiveUserDetailWithDateRequestBuilderGetRequestConfiguration'; import {DateOnl...
import mongoose, { ConnectOptions } from 'mongoose' import config from '@/config/server' import mongoDB from './config' const options: ConnectOptions = {} const connect = async () => { await mongoose .connect(mongoDB(), options) .then(() => { if (config.mode == 'DEV') console.log('Database: \x...
export enum ClientEvent { ChannelCreate = 'channelCreate', ChannelDelete = 'channelDelete', ChannelPinsUpdate = 'channelPinsUpdate', ChannelUpdate = 'channelUpdate', Debug = 'debug', EmojiCreate = 'emojiCreate', EmojiDelete = 'emojiDelete', EmojiUpdate = 'emojiUpdate', Error = 'error...
it('provides toBeDivisibleBy', () => { expect(4).toBeDivisibleBy(2); expect(() => { expect(3).toBeDivisibleBy(2); }).toThrow(); expect(() => { expect(4).not.toBeDivisibleBy(2); }).toThrow(); }); it('provides expect.toBeDivisibleBy', () => { expect(4).toEqual(expect.toBeDivisibleBy(2)); });
import { environment } from '../../environments/environment'; export class SparqlPMIDs { separator = environment.separator; getPMIDModels(pmid) { var encoded = encodeURIComponent(` PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>...
/** * Copyright 2016, RadiantBlue 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 applicabl...
import { List } from "immutable"; import { ProjectRecord } from "models/project-record"; import { TrackRecord } from "models/track-record"; const TrackUtils = { getByProject( project: ProjectRecord, tracks: List<TrackRecord> ): List<TrackRecord> { return tracks.filter((track) => track.p...
import { render } from 'lit-html'; import { Component } from './Component'; import { singleton } from '../models/singleton'; import api from '../controllers/task.controller'; import { TaskPreview } from './TaskPreview'; import './TodoList.scss'; @singleton export class TodoList extends Component<HTMLDivElement> { pu...
import { createEllipsisItem } from './itemFactories'; export const createInnerPrefix = ( firstGroupEnd: number, innerGroupStart: number, pageFactory: (pageNumber: number) => any, ) => { const prefixPage = innerGroupStart - 1; const showEllipsis = prefixPage !== firstGroupEnd + 1; const prefixFactory = show...
export function removeCharAt(str: string, index: number): string { return str.slice(0, index).concat(str.slice(index + 1)); } /** * Splits a string after each specified number to character * * @param count number of character to skip before splitting the string * @param str the string to split * @return arr...
// Imports import { Service } from 'typedi'; import { Repository } from 'typeorm'; import { InjectRepository } from 'typeorm-typedi-extensions'; import Course from '@/database/entities/Course'; import User from '@/database/entities/User'; import env from '@/env'; import CourseModifyDTO from '@/models/CourseModifyDTO';...
class DD { dict: object; constructor() { this.dict = {}; } get(keys: string[]) { var o: object = this.dict; for (let key of keys) { if (o.hasOwnProperty(key)) { o = o[key] } else { return undefined; } } return o; } set(keys: string[], value: any) { ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-side-bar', templateUrl: './side-bar.component.html', styleUrls: ['./side-bar.component.scss'] }) export class SideBarComponent implements OnInit { constructor() { } ngOnInit() { } }
import React, { useEffect } from 'react'; import { Row } from '../components/elements/row'; import { Button } from '../components/elements/button'; import { Connection, getConnections, removeConnection, setActiveConnection } from '../../storage/connections'; import { createUseStyles } from 'react-jss'; import { colors ...
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. // *********************************************...
/** * @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 {coerceNumberProperty} from '@angular/cdk/coercion'; import {ComponentHarness, HarnessPredicate} from '@angula...
import { Field, ObjectType } from '@nestjs/graphql' @ObjectType() export class IslykillErrorResult { @Field(() => String) message!: string @Field(() => String) code!: number @Field(() => [String]) invalidFields!: string[] }
import * as React from "react"; import {connect} from "./connect"; import {pathToId} from "../util/navigation"; import {createSelector, createStructuredSelector} from "reselect"; import * as classNames from "classnames"; import HubSearchResults from "./hub-search-results"; import Downloads from "./downloads"; import ...
<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> ...
// Generated by 'unplugin-auto-import' // We suggest you to commit this file into source control declare global { const Link: typeof import('react-router-dom')['Link'] const Navigate: typeof import('react-router-dom')['Navigate'] const NavLink: typeof import('react-router-dom')['NavLink'] const Outlet: typeof i...
export interface Produto { codigo_barras:string, nome:string, preco_venda?: number, preco_compra?: number, imagem?:any, fracionado?:boolean, setor?:string, rfid?:string, qtd_estoque:number, tipo:string }
import 'reflect-metadata'; import { Intents, Interaction, Message } from 'discord.js'; import { Client } from 'discordx'; import { dirname, importx } from '@discordx/importer'; import { config } from './utils.js'; // Create a BOT client const client = new Client({ /* Load Intents */ intents: [Intents.FLAGS.GUILDS, I...
import { Title, Description, Primary, Stories, ArgsTable, } from '@storybook/addon-docs'; import type { ComponentStory, ComponentMeta } from '@storybook/react'; import React from 'react'; import { StatusBullet, Box } from '../..'; export default { title: 'Data Display/StatusBullet', component: StatusBul...
export const CanDestroyComponent = '"minecraft:can_destroy": { "blocks": [ ] }'; export const CanPlaceOnComponent = '"minecraft:can_place_on": { "blocks": [ ] }'; export const LockInInventoryComponent = '"item_lock": { "mode": "lock_in_inventory" }'; export const KeepOnDeathComponent = '"keep_on_death": {}'; export con...
import { Officer, LeoWhitelistStatus, WhitelistStatus, DepartmentValue } from "@prisma/client"; import { prisma } from "lib/prisma"; import { ExtendedNotFound } from "src/exceptions/ExtendedNotFound"; /** * this function handles the addition of the `whitelistStatus` to an officer * * 1. Provided department === whit...
import {expect, use} from 'chai'; import chaiAsPromised from 'chai-as-promised'; import { Keypair, Authorized, Connection, Lockup, PublicKey, sendAndConfirmTransaction, LAMPORTS_PER_SAFE, StakeAuthorizationLayout, StakeInstruction, StakeProgram, SystemInstruction, Transaction, } from '../src'; ...
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot } from '@angular/router'; import { ActivatedRoutesService, UnifiedInjector } from '@spartacus/core'; import { Observable, of } from 'rxjs'; import { map, shareReplay, switchMap } from 'rxjs/operators'; import { ContextToken } from './context.mo...
/** * stores the hooks that where added by the plugins */ /** * hook-functions that can be extended by the plugin */ export const HOOKS: { [k: string]: any[] } = { /** * Runs before a plugin is added. * Use this to block the usage of non-compatible plugins. */ preAddRxPlugin: [], /** ...
import { EntityHasPrimaryKey } from "../repository/EntityHasPrimaryKey"; import { AnyStringSignatureObject } from "../../core"; /** * a wrapper object for existing data that will be used to store as named profile */ export class DatabaseProfile<ConfigStructure extends AnyStringSignatureObject = AnyStringSignatureObj...
export * from './config.data'; export * from './size.data';
interface HWAAdapter { launchAppx(): void; registerAndLaunchAppxManifest(path: string): void; } interface HWAProxyAdapter extends HWAAdapter { clearSession(): void; exit(): void; }
import React from 'react'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import accounts from '../../data/accounts'; import { ExchangeMode } from '../../types'; const mockUseFromAccount = jest.fn(); const mockUseToAccount = jest.fn(); const mockUseQuantit...
import {PlatformApplication} from "@tsed/common"; import {Configuration, Inject} from "@tsed/di"; import "@tsed/passport"; import "@tsed/platform-express"; import "@tsed/swagger"; import "@tsed/typeorm"; import * as bodyParser from "body-parser"; import * as compress from "compression"; import * as cookieParser from "c...
import { Component, OnInit, ViewChild } from '@angular/core'; import * as jspdf from 'jspdf'; import { CKEditorComponent } from '@ckeditor/ckeditor5-angular'; import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; import { ITemplate } from 'src/app/types'; import { TemplateService } from 'src/app/services/templ...
import { PrismaClient } from '.' import { expectError } from 'tsd' // tslint:disable const prisma = new PrismaClient({ datasources: { db: { url: 'file:dev.db', }, }, }) ;(async () => { expectError(prisma.$use('event')) })()
import { StyledIcon } from '@styled-icons/styled-icon'; export declare const Ring: StyledIcon; export declare const RingDimensions: { height: undefined; width: undefined; };
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { StreamAdminListComponent } from './stream-admin-list.component'; describe('StreamAdminListComponent', () => { let component: StreamAdminListComponent; let fixture: ComponentFixture<StreamAdminListComponent>; beforeEach(async () => { ...
import { action, IArrayChange, IArraySplice, IMapWillChange, intercept, IObjectDidChange, IObservableArray, IObservableObject, isObservableArray, isObservableObject, observable, ObservableMap, observe, remove, set, } from "mobx" import { assertIsMap, assertIsObservableArray, assertIs...
import { OverviewmapAPI } from './api/overviewmap'; import { overviewmap } from './store/index'; import OverviewmapV from './overviewmap.vue'; import messages from './lang/lang.csv'; class OverviewmapFixture extends OverviewmapAPI { added() { console.log(`[fixture] ${this.id} added`); this.$vApp.$...
// tslint:disable space-in-parens import React from 'react'; import loadable from '@loadable/component'; import Loading from '~/components/Loading'; export default loadable( () => import(/* webpackChunkName: 'home' */ './index'), { fallback: <Loading/> } );
export interface CommandResult { out: string; err: string; } /** * Run command and retunrs the output * @param {string} cmd * @return {{ out: string, err: string}} */ export declare function runCommandSimple(cmd: string): Promise<CommandResult>;
import * as functions from "firebase-functions"; // Start writing Firebase Functions // https://firebase.google.com/docs/functions/typescript /* * Gets a user's ETA. * @param: test */ export const getETA = functions.https.onRequest((request, response) => { const number = Math.round(Math.random() * 100); ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { MenuPageRoutingModule } from './menu-routing.module'; import { MenuPage } from './menu.page'; @NgModule({ imports: [ Commo...
import {Client, GuildMember, Message, Permissions, TextChannel} from 'discord.js' import {RunEffect} from "./func"; // interfaces interface CommandArgTypes { // the different types of command argument types. member? : GuildMember, bool? : Boolean, num? : Number, str? : String, } export inte...
import { styled, Color, Theme } from '@storybook/theming'; import { Icons } from '@storybook/components'; import { DOCS_MODE } from 'global'; import { transparentize } from 'polished'; import React, { FunctionComponent, ComponentProps } from 'react'; export const CollapseIcon = styled.span<{ isExpanded: boolean }>(({ ...
import { Addresses } from '../../types'; import createContract from "../create.contract"; import XendFinanceGroup from '../abis/XendFinanceGroup.json'; import DAITokenAbi from '../abis/DaiContract.json'; import sendSignedTransaction from '../../utils/sendSignedTransaction'; import cooperativeInfo from './cooperative.in...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PgSudouComponent } from './pg-sudou.component'; describe('PgSudouComponent', () => { let component: PgSudouComponent; let fixture: ComponentFixture<PgSudouComponent>; beforeEach(async(() => { TestBed.configureTestingModule({...
import React from 'react' import { HelpOutlined, HomeOutlined, InfoOutlined, LinkOutlined, DescriptionOutlined } from '@material-ui/icons' export default [ { icon: <HomeOutlined />, text: '主页', to: '/' }, { icon: <InfoOutlined />, text: '关于猫猫', to: '/abou...
import styled from 'styled-components'; import { MenuStateProvider, useMenu } from '../../lib/menuState'; import { TabStyles } from '../styles/StateStyles'; import RequestMagicAuth from './RequestMagicAuth'; import SignUpMagicAuth from './SignUpMagicAuth'; const TabContainerStyles = styled.div` border: 1px solid #e6...
// Copyright (c) 2020 Lars Hellgren (lars@exelor.com). // All rights reserved. // // This code is licensed under 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 deal // in the Software without ...
import './index'; import 'elements-sk/styles/buttons'; import { $$ } from 'common-sk/modules/dom'; import { SortSk } from './sort-sk'; const sortSk = $$('#as_table')! as SortSk; sortSk.sort('name', 'up', true);
import Head from 'next/head' import Layout from '../../layouts/default' export default function Shops() { return ( <Layout> <Head> <link rel="stylesheet" media="(min-width: 641px)" href="/support/style/desktop.css?20210701173839"></link> </Head> <div classN...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { PostModel, RecommendedAuthorModel } from "../models"; export interface LoadExplore { load: () => Promise<LoadExplore.Model>; } export namespace LoadExplore { export type Model = { recommendedAuthors: RecommendedAuthorModel[]; recommendedPosts: PostModel[]; }; }
<TS language="tr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Adres veya etiketi düzenlemek için sağ tıklayınız.</translation> </message> <message> <source>Create a new address</source> ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { AdaptiveFieldNames } from '../constants/AdaptiveFieldNames'; import { AdaptiveKinds } from '../constants/AdaptiveKinds'; import { IndexedNode } from '../models/IndexedNode'; const StepsKey = AdaptiveFieldNames.Actions; export functio...
import { ExportParams } from "./exportParams"; import { XmlElement } from "./iXmlFactory"; export interface ExcelWorksheet { name: string; table: ExcelTable; } export interface ExcelTable { columns: ExcelColumn[]; rows: ExcelRow[]; } export interface ExcelColumn { min?: number; max?: number; ...
import { BaseError, ComplexError } from '../src' test('BaseError is an instance of Error', () => { const error = new BaseError() expect(error).toBeInstanceOf(Error) }) test('BaseError is an instance of BaseError', () => { const error = new BaseError() expect(error).toBeInstanceOf(BaseError) }) test('BaseErro...
version https://git-lfs.github.com/spec/v1 oid sha256:2819a4e04c425cd3c5ca377d81adde7d7c74e896ea55eaf94b2250ee29e67e86 size 1444780
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { AdministrationRoute } from './administration.routes'; // tslint:disable-next-line:max-line-length import { MatCardModule, MatFormFieldModule, MatInputModule, MatButtonModule...
/******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * Th...
export default function calculate(code: string, args = null) { try { // eslint-disable-next-line no-new-func return new Function('args', `return ${code}`)(args); } catch (e) { return e; } }
import { Background, Box } from '@neo-one/react-common'; import * as React from 'react'; import styled from 'styled-components'; import { prop } from 'styled-tools'; import { Tagline } from '../../../elements'; import { Footer } from '../../Footer'; import { courses } from '../coursesData'; import { CourseExplainer } f...
/* Copyright 2019 - 2021 The Matrix.org Foundation C.I.C. 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...
import { DeployEnvType } from '@newrade/core-node-utils'; export type WebAppMetadata = Record<string, unknown> & { title: string; description: string; siteEnv: DeployEnvType; siteUrl: string; siteRepositoryUrl?: string; siteVersion?: string; languages: 'en'; };
// MIT © 2017 azu import { UseCase } from "almin"; import { Notice } from "../../domain/Notice/Notice"; import { NoticeRepository, noticeRepository } from "../../infra/repository/NoticeRepository"; export const createShowErrorNoticeUseCase = () => { return new ShowErrorNoticeUseCase(noticeRepository); }; export c...
import { ToggleButton, useMediaQuery } from "@mui/material"; import ToggleButtonGroup from "@mui/material/ToggleButtonGroup"; import Typography from "@mui/material/Typography"; import useTheme from "@mui/system/useTheme"; import { MouseEvent } from "react"; type Props<T extends string> = { items: readonly T[]; col...