text
stringlengths
10
953k
import { Injectable } from '@angular/core'; import { _HttpClient } from '@delon/theme'; import { CacheService } from '@delon/cache'; import { Observable } from 'rxjs'; import { Result } from '../dto/Result'; @Injectable({ providedIn: 'root' }) /** * 测试服务 */ export class TestService { private static API = "/api/...
import {SearchUserData, User} from "@/pages/user/UserList/data"; import request from "@/utils/request"; import {BASE_URL} from '@/utils/config' export async function fetchUserList(params: SearchUserData) { return request(`${BASE_URL}user/userList`, {method: 'POST', data: params}) } export async function addUser(par...
import React from "react" import { Badge } from "../badge" import type { BadgeProps } from "../badge" const Esbuild = (props: BadgeProps) => <Badge name="esbuild" {...props} backgroundColor="#FFCF00" /> export default Esbuild
import BaseError from './base'; export default class ValidationError extends BaseError { public name = 'ValidationError'; public message: string; public status: number; constructor(msg: string, status: number) { super(); this.status = status; this.message = msg; } }
/// <reference types="react" /> export declare function PublishAction(props: any): { label: string; title: string; disabled: boolean; icon?: undefined; shortcut?: undefined; onHandle?: undefined; } | { disabled: boolean; label: string; icon: (() => JSX.Element) | (() => string) | nul...
import {Replace as OReplace} from '../Object/Replace' import {Match} from '../Any/_Internal' import {Cast} from '../Any/Cast' /** Update with **`A`** the entries of **`T`** that match **`M`** * @param O to update * @param M to select fields * @param A to update with * @param match to change precision (?=`'default'...
const ethABI: Array<object> = [ { constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function", }, { constant: false, inputs: [ { name: "_spender", type: "address" },...
import { PadStartPipe } from './pad-start.pipe'; describe('Pipe: Pad', () => { it('create an instance', () => { const pipe = new PadStartPipe(); expect(pipe).toBeTruthy(); }); });
import { Variant } from "components/ads/common"; import { Toaster } from "components/ads/Toast"; import { LOCAL_STORAGE_QUOTA_EXCEEDED_MESSAGE, LOCAL_STORAGE_NO_SPACE_LEFT_ON_DEVICE_MESSAGE, createMessage, } from "constants/messages"; const getLocalStorage = () => { const storage = window.localStorage; cons...
export const auth0config: { "client_id": string; "domain": string; "redirect_uri": string; } = { "client_id": process.env.AUTH0_CLIENT_ID || "", "domain": process.env.AUTH0_DOMAIN || "", "redirect_uri": process.env.AUTH0_REDIRECT_URI || "", };
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { AlloyEvents, FocusManagers, ItemTypes, Keying, MenuTypes, Ti...
export class ClassificacaoMercadoria{ constructor( public id?: number, public nome?: number, public descricao?: string ){} static fromJson(jsonData: any): ClassificacaoMercadoria{ return Object.assign(new ClassificacaoMercadoria(), jsonData); } }
import Taro , { Component } from '@tarojs/taro'; import { View, Text , Button} from '@tarojs/components'; import './panel.scss'; export default class Panel extends Component { state = {} render() { return ( <View className='panel'> <View className='title'> {this.props.title || "标题"} ...
import { NgModule } from '@angular/core'; import { IonicPageModule } from 'ionic-angular'; import { EventoPage } from './evento'; @NgModule({ declarations: [ EventoPage, ], imports: [ IonicPageModule.forChild(EventoPage), ] }) export class EventoPageModule {}
/******************************************************************************* * Copyright IBM Corp. 2018 * * 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/li...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FirstreactiveComponent } from './firstreactive.component'; describe('FirstreactiveComponent', () => { let component: FirstreactiveComponent; let fixture: ComponentFixture<FirstreactiveComponent>; beforeEach(async(() => { Tes...
import fetch from "node-fetch"; import {db} from "../../src/databases/databases"; import {Done, getbaseURL} from "../utils"; import {getHash} from "../../src/utils/getHash"; import {ImportMock,} from "ts-mock-imports"; import * as YouTubeAPIModule from "../../src/utils/youtubeApi"; import {YouTubeApiMock} from "../yout...
/** * @File result.ts * @Type TypeScript file * @Desc Unified exports. */ export * from "./calculation-result/calculation-result"; export * from "./input-result/input-result";
import { h } from 'vue' import { mount } from '@vue/test-utils' import { NAvatar } from '../../avatar' import { NTag } from '../index' describe('n-tag', () => { it('should work with import on demand', () => { mount(NTag) }) it('should work with `bordered` prop', () => { const wrapper = mount(NTag, { ...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { GuruInvertedTable } from "../../../shared/GuruInvertedTable/GuruInvertedTable"; import { getCryptoCurrencyList } from "../../../state/actions/cryptoCurrencyActions"; export const HomeLiveTable: React.FC...
import { IAudioNodeRenderer } from '../interfaces'; export declare type TAudioDestinationNodeRendererFactory = () => IAudioNodeRenderer;
/** * @license * Copyright 2018 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
const debugRule = ({ name, color, style }) => ({ position: 'relative', border: `2px ${style} ${color}`, '::before': { content: `'${name}'`, position: 'absolute', padding: '1px 4px 1px', top: '-2px', left: '-2px', fontSize: '8px', fontWeight: 900, lineHeight: 1, letterSpacing: '...
/*! * Copyright (c) 2017-2021, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by ...
// Copyright 2020 Cao Gaoting<caogtaa@gmail.com> // https://caogtaa.github.io // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT /* * Date: 2020-07-13 02:44:16 * LastEditors: GT<caogtaa@gmail.com> * LastEditTime: 2020-07-22 14:01:57 */ import MetaBall...
import { Selector, RequestMock } from "testcafe"; import page from "./id.model.e2e"; import { productDetailQuery } from "./id.mock.e2e"; import { anonCartBadgeQuery } from "../index.mock.e2e"; const mock = RequestMock() .onRequestTo("http://localhost:8000/graphql/") .respond((req, res) => { const opMap = { pro...
import { PropType } from 'vue'; import { extend } from '../utils'; import { pickerSharedProps } from '../picker/Picker'; import type { PickerInstance } from '../picker'; import type { DatetimePickerColumnType } from './types'; export const sharedProps = extend({}, pickerSharedProps, { filter: Function as PropType<(t...
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * 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 app...
import { IQueryHandler, QueryHandler } from '@nestjs/cqrs'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { GetCommentsQuery } from '../implementations/get-comments.query'; import Comment from '../../entities/comment.entity'; @QueryHandler(GetCommentsQuery) export cla...
/******************************************************************************** * 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...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; // import { environment } from 'src/environments/environment'; @Injectable({ providedIn: 'root', }) export class ReposServiceService { _URL = 'https://api.github.com/users/'; // token...
/* Copyright 2019, 2020 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 ...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { MultiAccountErrorComponent } from './multiAccountError.component'; describe('MultiAccountErrorCompone...
import {Component, Input, OnInit} from '@angular/core'; @Component({ selector: 'app-profile-info-btn', templateUrl: './profile-info-btn.component.html', styleUrls: ['./profile-info-btn.component.scss'] }) export class ProfileInfoBtnComponent implements OnInit { constructor() { } @Input() userName = "Aust...
export interface User { userId: number, username: string, password: string, firstName: string, lastName: string, email: string, portfolios: [] }
/** * Copyright 2016 Palantir Technologies, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
import { strict as assert } from 'assert'; import asyncWrapper, { IMockRequest, IMockResponse } from '.'; class MockRequest implements IMockRequest {} class MockResponse implements IMockResponse {} describe('asyncWrapper', () => { it('Calls callback', done => { const req = new MockRequest(); cons...
import React from 'react'; import { Route, BrowserRouter } from 'react-router-dom'; import Pages from '../routes/Pages'; import './App.scss'; const App = () => { return ( <> <div className="App"> <BrowserRouter> <Route component={Pages} /> </BrowserRouter> </div> </> ...
import { RequestContext } from '../../api/common/request-context'; import { Channel, Order, Zone } from '../../entity'; import { TaxZoneStrategy } from './tax-zone-strategy'; /** * @description * A default method of determining Zone for tax calculations. * * @docsCategory tax */ export declare class DefaultTaxZone...
export { Job } from './job'; export { UpdateClusterCacheJob } from './update-cluster-cache-job';
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { HomePageComponent } from './home-page/home-page.component'; import { AmplifyAngularModule } from 'aws-amplify-angular'; @NgModule({ declarations: [HomePageComponent], imports: [CommonModule, AmplifyAngularModule], ...
type KeyValue = Record<string, unknown>; type FixtureFunction<R, Args extends KeyValue> = ( args: Args, use: (r: R) => Promise<void>, ) => Promise<void> | void; // eslint-disable-next-line @typescript-eslint/ban-types type FixtureValue<R, Args extends KeyValue> = R extends Function ? FixtureFunction<R, Args> ...
import type { APIApplicationCommandOptionChoice } from './applicationCommands'; import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9'; import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel'; import type { MessageFlags } from '../index'; /** * https://discord.com/developer...
import { createActionTypes } from "./actionTypes"; const updateFormFilterProperty = ( state: Record<string, any>, action: Record<string, any>, property: Record<string, any> ): Record<string, any> => { //@ts-ignore const { andIdx, orIdx, filterIdx, tableIdx, fieldName } = action.payload; //@ts-ignore con...
import {models} from '../models' import {success, failure} from '../utils/res' import {CronJob} from 'cron' import {toCamel} from '../utils/case' import * as cronUtils from '../utils/cron' import * as socket from '../utils/socket' import * as jsonUtils from '../utils/json' import * as helpers from '../helpers' import *...
import { CommandInteraction } from 'discord.js'; import { CommandOptions } from 'dsc.cmds'; import { Bot } from '../bot'; export const cmd: CommandOptions = { name: 'reroll', guildOnly: true, run: async (bot: Bot, interaction: CommandInteraction) => { let id = interaction.options.getString('id', true); ...
export interface SentMessages { width?: number; height?: number; color?: 'primary' | 'secondary' | 'custom' | string } declare const SentMessages: React.ComponentType<SentMessages>; export default SentMessages;
export default { 'app.pwa.offline': 'あなたは今オフラインです', 'app.pwa.serviceworker.updated': '新しいコンテンツが利用可能です', 'app.pwa.serviceworker.updated.hint': '現在のページをリロードするには、「更新」ボタンを押してください', 'app.pwa.serviceworker.updated.ok': 'リフレッシュ', };
<TS language="th_TH" 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> <translat...
import * as Protocol from '../protocol/protocol'; import { Consumer } from '../index'; import { ERequestState } from '../interfaces/request'; export type TUserLoginRequestResolver = Protocol.UserLogin.Err | Protocol.UserLogin.Accepted | Protocol.UserLogin.Denied; export type TAcceptHandler = (response: Protocol.UserL...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ZoomComponent } from './zoom/zoom.component'; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { IconButton, IconButtonProps, SxProps, TextField, TextFieldProps, useForkRef, Theme, } from '@mui/material' import { ChangeEvent, Ref, useCallback, useEffect, useRef, useState } from 'react' import { IconSvg } from '../IconSvg' import { extendableComponent } from '../Styles' import { responsiveVal...
import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { Category, ECategoryStatus } from 'src/schemas/category.schema'; import { CreateCategoryDto } from './category.dto'; @Injectable() export class CategoryService { constructor(@InjectM...
export enum GeneralExtendedAttribute { INSTRUMENTED_LIBRARY_VERSION = 'instrumented_library.version', } export enum MessagingExtendedAttribute { MESSAGING_PAYLOAD = 'messaging.payload', MESSAGING_RABBITMQ_CONSUME_END_OPERATION = 'messaging.rabbitmq.consume_end_operation', } export enum DbExtendedAttribute...
/* istanbul ignore file */ /** * @module node-opcua-generator */ // tslint:disable:max-line-length // tslint:disable:no-inner-declarations // import * as chalk from "chalk"; import * as fs from "fs"; import * as os from "os"; import { promisify } from "util"; // import * as prettier from "prettier"; import { assert ...
import { Controller, Get, Post, Body, Patch, Param, Delete, Req, Query } from '@nestjs/common'; import { JobService } from './job.service'; import { CreateJobDto } from './dto/create-job.dto'; import { UpdateJobDto } from './dto/update-job.dto'; @Controller('job') export class JobController { constructor(private rea...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2020 Realm 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/li...
/** * Created by njz on 2017/4/17. */ import {InlineNode} from '../../../core/InlineNode' import {MarkdownRender} from '../' export class A extends InlineNode<MarkdownRender>{ async render(render: MarkdownRender){ return `[${await render.renderInlineNodes(this.childPseudoNodes)}](${this.content.props.hre...
import React from "react"; class SquareWaveButton extends React.Component { render() { return ( <button className="btn rnd btn-square"> <svg id="square" viewBox="-1 -1 10 10"> <path d="M 0,1 0,7 4,7 4,1 8,1 8,7" /> </svg> </button> ); } } export default SquareWaveButt...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
interface Color { r: number; g: number; b: number; } interface Complex { r: number; i: number; } function cAdd(a: Complex, b: Complex) { return { r: a.r + b.r, i: a.i + b.i }; } function cMul(a: Complex, b: Complex) { return { r: a.r * b.r - a.i * b.i, i: a.r * b.i + a.i * b.r, }; } function cLengthSqua...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import { TestContext as Context } from 'ember-test-helpers'; import { CellRendererArgs } from 'navi-core/components/navi-table-cell-renderer...
export { createTestCaseClass } from "./common/test-case"; export { LegacyLifecycleHooks } from "./legacy-lifecycle-hooks.class"; export { LegacyApi } from "./legacy-api.interface"; export { CommonApi, NewableTestCase, TestCase, NewableThenableEnvironment, Environment, ThenableEnvironment, NewableThenableA...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import { useUrlResolver as urlResolver, } from '@vue-storefront/magento'; import { useRoute, useContext } from '@nuxtjs/composition-api'; export const useUrlResolver = () => { const route = useRoute(); const { error } = useContext(); const { path } = route.value; const { search, result, loading,...
import { Outlet } from 'remix' export default function ProfileRoot() { return <Outlet /> }
let originalFn: () => DOMRect; const textToWidth = { paris: 200, tokyo: 300, beijing: 400, }; export const SAMPLE_TEXT = Object.keys(textToWidth); export function addDummyFill() { // @ts-ignore - fix jsdom originalFn = SVGElement.prototype.getBBox; // @ts-ignore - fix jsdom SVGElement.prototype.getBBo...
import { SpecificValidator } from '../../types/SpecificValidator' import { Transaction } from '../../models/Transaction' import { UserTransactionType } from './UserTransactionType' import { User } from '../../models/User' export class UserValidator implements SpecificValidator { public loginMinLength = 1 public lo...
import { Component, OnInit, AfterViewInit } from '@angular/core'; import * as mapboxgl from 'mapbox-gl'; import { AppService } from '../app.service'; import { DBService } from '../db.service'; import { geometryFormat, GeometryFormat } from 'spatiasql'; import { FeatureCollection } from 'geojson'; import turfbbox from '...
/* * 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 { ScriptLoader } from '@bigcommerce/script-loader'; import { InvalidArgumentError } from '../../../common/error/errors'; import { PaymentMethodClientUnavailableError } from '../../errors'; import { PaypalCommerceHostWindow, PaypalCommerceScriptParams, PaypalCommerceSDK } from './paypal-commerce-sdk'; export d...
export const version = '0.2.4';
import jsonwebtoken from 'jsonwebtoken' class Jsonwebtoken { static sign(accessToken: string, refreshToken: string) { return jsonwebtoken.sign( { accessToken, refreshToken, iat: Math.floor(Date.now()) / 1000, }, 'shhh', { expiresIn: '1h' } ) } static verif...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { MatButtonModule, MatFormFieldModule, MatIconModule, MatProgressBarModule } from '@angular/material'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BlueriqComponents } from '@blue...
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { LocalStorageService } from '../services/local-storage.service'; @Component({ selector: 'qs-categories', templateUrl: './categories.component.html', styleUrls: ['./categories.com...
/* * This file was autogenerated. Don't edit this file! * * To update, execute "yarn start" inside "import-mistica-icons" */ import * as React from 'react'; import {useTheme} from '../../hooks'; import {useIsInverseVariant} from '../../theme-variant-context'; import type {IconProps} from '../../utils/types'; con...
import * as React from 'react'; import { inject, observer } from 'mobx-react'; import LabelsProvider from 'common/LabelsProvider'; import { LanguageStoreInterface } from 'store/language'; import Meta from 'components/Meta'; interface EntriesByTagMetaPropsInterface { tag: string; languageStore?: LanguageStoreInte...
import { defHttp } from '/@/utils/axios' import { LoginParams, LoginResponse, UserInfo } from './model' const indexApi = '/auth' export const loginApi = (params: LoginParams) => defHttp.post<LoginResponse>({ url: indexApi + '/login', params }) export const getUserApi = () => defHttp.get<UserInfo>({ url: indexApi + '...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums fr...
import React from 'react'; import { injectIntl, InjectedIntlProps } from 'react-intl'; import { BODY_FORMAT_TYPES } from '@atlaskit/help-article'; import HelpArticleContent from '@atlaskit/help-article'; import { gridSize } from '@atlaskit/theme/constants'; import ShortcutIcon from '@atlaskit/icon/glyph/shortcut'; impo...
import { useMutation } from '@apollo/client'; import { ARCHIVE_EXIST_VEHICLE } from '../../../api/mutations'; import { LoadingButton } from '../../../utils/LoadingButton'; import Toast from '../../../utils/Toast'; interface IVehicleArchiveButton { vehicleId: string | undefined text: string className: str...
export interface CookieAttributes { expires?: number | Date; path?: string; domain?: string; secure?: boolean; } /** * An abstract class for handling cookies. */ export abstract class Cookie { abstract set(key: string, value: string, attributes?: CookieAttributes): void; abstract get(key?: string): str...
import { Chip, ChipProps } from '@material-ui/core' import { BasicProps, lowLevelStyles, MergeMuiElementProps, useTheme } from '@smartb/archetypes-ui-themes' import clsx from 'clsx' import React, { forwardRef, useMemo } from 'react' const useStyles = lowLevelStyles<{ color: string }>()({ tagWidth: { width: 'fit-...
import { apiRequest } from '../Util/ApiRequest'; import type { ITransaction, ITransactionFail } from '../Interfaces'; import MidtransNodeError from '../Util/MidtransNodeError'; /** * @description Approve an unpaid transaction * @param {boolean} isProduction Production/Sandbox mode * @param {string} orderID Transact...
import React from 'react'; import { renderHook, act } from '@testing-library/react-hooks'; import MockAdapter from 'axios-mock-adapter'; import { useAuth, AuthProvider } from '../../hooks/AuthContext'; import api from '../../services/api'; const apiMock = new MockAdapter(api); describe('Auth hook', () => { it('sho...
import { Component } from '@angular/core'; import {NgbdTabsetBasic} from '../bootstrap components/ngtab.js'; @Component({ selector: 'resume-education', templateUrl: 'partials/Education.html', styleUrls: ['partials/Education.css'] }) export class EducationComponent{ }
import ReduxThunk from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import { rootReducer } from '../reducers'; const store = createStore( rootReducer, composeWithDevTools(applyMiddleware(ReduxThunk)), ); export { store };
import knex from 'knex'; export async function up(knex: knex) { return knex.schema.createTable('connections',table => { table.increments('id').primary(); table.integer('user_id') .notNullable() .references('id') .inTable('users') .onUpdate('CASCADE')...
/* * @adonisjs/core * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { dirname } from 'path' import { fileURLToPath } from 'url' import { Application } from '@adonisjs/application' ...
import { createTheme, mergeThemes } from '@fluentui/styles'; import * as siteVariables from './siteVariables'; import * as componentVariables from './componentVariables'; import { teamsDarkTheme } from '../teams-dark'; export const teamsDarkV2Theme = mergeThemes( teamsDarkTheme, createTheme( { siteVariab...
import URL from 'url'; import { Request } from 'express'; import buildDebug from 'debug'; import { encodeScopedUri } from '@verdaccio/utils'; import { getPublicUrl } from '@verdaccio/url'; const debug = buildDebug('verdaccio:core:url'); function extractTarballFromUrl(url: string): string { // @ts-ignore return U...
import React from 'react'; import { SvgIcon, SvgIconProps } from '@kukui/ui'; const SvgComponent = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}> <path d="M244.7 123.3c-3-3-4.7-7.1-4.7-11.3 0-3.2.9-6.3 2.7-8.9 1.8-2.6 3.4-4.67 7.2-5.88 2.9-1.21 6.1-1.53 9.2-.91 3.1.62 6 2.14...
import { Component } from '@angular/core'; @Component({ selector: 'pm-app', template: ` <div> <h1>{{pageTitle}}</h1> <div>My First Component</div> </div> ` }) export class AppComponent { pageTitle: string = 'Acme Product Manager'; }
import CustomerService from './customer_service' export default CustomerService
const uniq = require('lodash.uniq'); import chalk from 'chalk'; import * as config from '../../lib/config'; import { Options, TestOptions, ShowVulnPaths } from '../../lib/types'; import { isLocalFolder } from '../../lib/detect'; import { parsePackageString as snykModule } from 'snyk-module'; import { WIZARD_SUPPORTE...
import { GET_CURRENTUSER, GET_TODOS } from './queries'; const mutations = { addUserData: (root, {userId, mail}, {cache}) => { const currentUser = { userId, mail, __typename: 'CurrentUser' }; cache.writeData({ query: GET_CURRENTUSER, ...
/** @format */ import { ISvgIconProps, IconWrapper } from '../runtime'; export const BytedBread = IconWrapper( 'byted-bread', false, (props: ISvgIconProps) => ( <svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none"> <path d="M4 32.0833C4 30.8812 4.266 29.6884 4.97123 28.7...
import * as React from 'react'; import { StyledIconProps } from '../../StyledIconBase'; export declare const StoreDimensions: { height: number; width: number; };
/** * Datart * * Copyright 2021 * * 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 t...