text stringlengths 10 953k |
|---|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import {
ActivityTypes,
ChannelAccount,
MessageReaction,
TurnContext } from '.';
import { InvokeResponse } from './invokeResponse';
import { StatusCodes } from './statusCodes';
// This key is exporte... |
import { Bike } from './../../models/bike';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, LoadingController, ToastController } from 'ionic-angular';
import { Geolocation } from '@ionic-native/geolocation';
import {
GoogleMaps,
GoogleMap,
Marker,
ILatLng,
Circle,
Sp... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { sortBy } from 'lodash';
import {
// @ts-ignore
EuiInMemoryTable,... |
import * as TeamsGen from '../actions/teams-gen'
import * as TeamBuildingGen from '../actions/team-building-gen'
import * as EngineGen from '../actions/engine-gen-gen'
import * as Constants from '../constants/teams'
import * as Types from '../constants/types/teams'
import * as RPCChatTypes from '../constants/types/rpc-... |
export type BasicColor = {
10: string
20: string
30: string
40: string
50: string
60: string
70: string
80: string
90: string
}
export type ThemeType = 'dark' | 'light'
export type CreateColorOptions = {
tintFactor?: number
shadeFactor?: number
themeType?: ThemeType
} |
import {DeviceType} from '../../../../..';
export class DeviceTypeDTO {
type: DeviceType;
description: Map<string, string> = new Map<string, string>();
constructor(type: DeviceType, description: Map<string, string>) {
this.type = type;
this.description = description;
}
} |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ChallengeService } from '../challenge.service';
import { Day, DayStatus } from '../day.model';
import { Challenge } from '../challenge.model';
import { Subscription } from 'rxjs';
@Component({
selector: 'ns-today',
templateUrl: './today.compone... |
import _ from "lodash";
import { trivial_text_maker } from "src/models/text";
import { make_store } from "src/models/utils/make_store";
import { sanitized_marked } from "src/general_utils";
import { BaseSubjectFactory } from "./BaseSubjectFactory";
import { CRSO } from "./CRSO";
interface DeptDef {
id: string;
... |
import { vec2 } from '@antv/matrix-util';
import { catmullRom2Bezier } from '@antv/path-util';
import { IPoint } from '../types';
/**
* 替换字符串中的字段
* @param {String} str 模版字符串
* @param {Object} o json data
*/
const substitute = (str: string, o: any): string => {
if (!str || !o) {
return str;
}
return str.... |
import {
ValidationError,
ValidationPipe as OriginalValidationPipe,
} from '@nestjs/common';
import { iterate } from 'iterare';
export class ValidationPipe extends OriginalValidationPipe {
protected flattenValidationErrors(validationErrors: ValidationError[]) {
return (iterate(validationErrors)
.map(er... |
import { FC, Fragment, createElement as h } from 'react';
import { PageProps } from '@not-govuk/app-composer';
import {
StartButton
} from '@not-govuk/components';
const Page: FC<PageProps> = props => (
<Fragment>
<h1>This is NOT GovUK!</h1>
<p className="lead">Whilst this site might <em>look</em> like Go... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { useEffect, useReducer } from 'react';
import chrome from 'ui/chrome'... |
import React, { useReducer, useEffect, useContext, useState } from 'react'
import {
Select,
Space,
Tooltip,
Drawer,
Button,
Dropdown,
Menu,
Checkbox,
} from 'antd'
import {
SettingOutlined,
ReloadOutlined,
DownOutlined,
} from '@ant-design/icons'
import { ScrollablePane } from 'office-ui-fabric-re... |
import { Injectable } from '@angular/core';
import * as feathersRx from 'feathers-reactive';
import * as io from 'socket.io-client';
import feathers from '@feathersjs/feathers';
import feathersSocketIOClient from '@feathersjs/socketio-client';
import feathersAuthClient from '@feathersjs/authentication-client';
@Inje... |
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type OfferDetailApp_offer = {
readonly " $fragmentRefs": FragmentRefs<"ResponseForm_offer" | "Summary_offer">;
readonly " $refType": "OfferDetailApp_offe... |
/* eslint-disable react/prop-types */
// type imports
import Identicon from '@polkadot/react-identicon';
import { AnyNumber } from '@polkadot/types/types';
// default imports
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
// icons
import { Button, Icon, Label } from 'semantic-ui-r... |
/*
* Copyright 2020 The Backstage 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 applicable law or ... |
import * as React from "react";
import { Container, Row, Col, Image } from "react-bootstrap";
import { TextBlock } from "../../components";
import { FullCTA } from "../../components";
import { PrimaryButton } from "../../components";
import Layout from '../../layout/Layout';
const JudicialReview = () => {
return (... |
import createIcon from './createIcon'
export default createIcon(({ size, color }) => (
<svg
width={size}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0.5 14.6V3.10002C0.5 2.50002 1 1.90002 1.7 1.90002H13.5"
stroke={color}
strokeMiterlimit="10"... |
import {Client} from '../client';
import * as types from '../types';
import * as is from 'is_js';
import { SdkError, CODES } from '../errors';
/**
* IRISHub allows individuals and companies to create and issue their own tokens.
*
* [More Details](https://www.irisnet.org/docs/features/asset.html)
*
* @category Mod... |
import debugModule from "debug";
const debug = debugModule("codec:ast:utils");
import * as Common from "@truffle/codec/common";
import * as AbiData from "@truffle/codec/abi-data/types";
import { AstNode, AstNodes, Scopes } from "./types";
import BN from "bn.js";
import cloneDeep from "lodash.clonedeep";
/** @categor... |
/*
Copyright 2017 OpenFin 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 or agreed to in writing, software
distri... |
import * as React from 'react';
import { SpinProps } from '../spin';
import { PaginationConfig } from '../pagination';
export { ListItemProps, ListItemMetaProps } from './Item';
export declare type ColumnCount = number;
export declare type ColumnType = 'gutter' | 'column' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
exp... |
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/**
* PriorityLe... |
import * as React from "react";
type Props = {
size?: number | string;
color?: string;
};
function FourCircledInitLight({ size = 16, color = "currentColor" }: Props): JSX.Element {
return (
<svg
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/... |
import styled from 'styled-components';
import { Alert, Button, Modal, Space, Typography } from 'antd';
import { useState } from 'react';
import Icon from '@ant-design/icons';
import { LightningIcon } from '../../../shared/icons/LightningIcon';
import { PreAggregationHelper } from './PreAggregationHelper';
import { Qu... |
import { createApp } from "vue";
import App from "./App.vue";
import "./styles/demo.scss";
createApp(App).mount("#app"); |
export const glsl = (x: TemplateStringsArray) => x |
import * as hyperdom from '../..'
import toHtml = require('../../toHtml')
const h = hyperdom.html
import {expect} from 'chai'
describe('to html', function () {
it('can render regular virtual dom to HTML', function () {
const vdom = h('div.class', {'data-something': 'something'},
h('div', 'child'),
)
... |
/*
* Copyright 2020 The Backstage 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 applicable law or ... |
import classNames from "classnames"
import React from "react"
import { iconStyle } from "./icon.css"
import { IconProps } from "./shared-icon-types"
export const FrameworkDevIcon = React.forwardRef<SVGSVGElement, IconProps>(
function FrameworkDevIcon({ className, size, ...props }, ref) {
return (
<svg
classN... |
import { IMSGraphService } from '../../../../services/IMSGraphService';
export interface IFooterWrapperProps {
msGraphSrvcInstance: IMSGraphService;
displayCount: number;
} |
import {
AUTH_REDIRECT_SERVICE,
REPORT_AUTH_GUARD,
REPORT_NOT_AUTH_GUARD,
SAVE_CURRENT_NAVIGATION_URL,
TODO_SPARTACUS,
} from '../../../../shared/constants';
import { SPARTACUS_CORE } from '../../../../shared/libs-constants';
import { MethodPropertyDeprecation } from '../../../../shared/utils/file-utils';
//... |
import React from 'react';
import PageHeader from '../../components/PageHeader';
import TeacherItem from '../../components/TeacherItem';
import './styles.css';
function TeacherList() {
return (
<div id="page-teacher-list" className="container">
<PageHeader title="Estes são os proffys disponíveis.">
... |
import { DateTime } from "../../src/luxon";
import * as Formats from "../../src/impl/formats";
test("Can get presets from DateTime", () => {
expect(DateTime.DATE_SHORT).toBe(Formats.DATE_SHORT);
expect(DateTime.DATE_MED).toBe(Formats.DATE_MED);
expect(DateTime.DATE_MED_WITH_WEEKDAY).toBe(Formats.DATE_MED_WITH_WE... |
import { Binary } from 'bson';
import { UserRole } from '../../../UserRole';
import { UserSnapshot } from '../../../UserSnapshot';
export class MongoDbUserSnapshot extends UserSnapshot {
constructor(
readonly _id: Binary,
readonly firstName: string,
readonly lastName: string,
readonly email: string,
... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* R... |
export * from './Api/BillingAddress.gql'
export * from './Api/ShippingAddress.gql'
export * from './components/ShippingAddressForm/ShippingAddressForm' |
/// <reference path="./testBlocks/basic.ts" />
testNamespace.objectDestructuringTest(whatever => {}); |
/**
* Enumeration of possible task types.
*/
export type TaskType = 'ILAND' |
'REPORTING' |
'VCD' |
'VEEAM' |
'VI' |
'ZERTO'; |
// Copyright 2020 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import styled from 'styled-components/native';
import FeatherIcon from 'react-native-vector-icons/Feather';
export const Container = styled.View`
width: 100%;
height: 60px;
padding: 0 16px;
background: #232129;
border-radius: 10px;
margin-bottom: 8px;
margin-top: 8px;
flex-direction: row;
align-item... |
import { assert } from 'chai'
import { SleepEntityMapper } from '../../../src/infrastructure/entity/mapper/sleep.entity.mapper'
import { SleepMock } from '../../mocks/sleep.mock'
import { Sleep, SleepType } from '../../../src/application/domain/model/sleep'
import { SleepEntity } from '../../../src/infrastructure/entit... |
import { reverse } from './reverse';
describe('7. Reverse Integer', () => {
it('reverse', () => {
expect(reverse(123)).toEqual(321);
expect(reverse(-123)).toEqual(-321);
expect(reverse(120)).toEqual(21);
expect(reverse(0)).toEqual(0);
});
}); |
import { getMonths, getWeeks, getDays, reducer } from '../reducer'
import {
TimelineMonth,
TimelineWeek,
TimelineDay,
TimelineState,
TimelineAction,
} from '../types'
describe('TimelineContext reducer', () => {
describe('Timezones', () => {
it('should always be UTC', () => {
expect(new Date().get... |
import React from 'react'
const tag = () => {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
width='16.65'
height='14.878'
viewBox='0 0 16.65 14.878'
>
<g id='tag' transform='translate(0 -23.224)'>
<g
id='Gruppe_529'
data-name='Gruppe 529'
... |
/**
* 消息通知类型
* 模块号+四位消息自增号
*/
class UpdateType {
//玩家历史数据返回
public static USER_HISTORY_BACLL:number = 10001;
//自己的位置变化
public static MAP_SELF_MOVE:number = 20001;
//互动对象发生变化
public static MAP_OPT_CHANGE:number = 20002;
//改变当前主等待界面的信息
public static MAIN_LOADING_SET:number = 9990001;
} |
/**
* License https://github.com/Remix-Design/RemixIcon/blob/master/License
*/
import { SVGIconDef } from './types';
const RoadMapFilled: SVGIconDef = {
name: 'road-map',
theme: 'filled',
attrs: {
viewBox: '0 0 24 24',
},
children: '<path fill="none" d="M0 0h24v24H0z"/><path d="M16.95 11.95a6.996 6.996... |
"use strict";
// uuid: ce496037-5728-4543-b2b1-f8a9aaa3d0f0
// ------------------------------------------------------------------------
// Copyright (c) 2018 Alexandre Bento Freire. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for details
// -------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export declare class FieldHasError extends Error {
constructor(message: string);
} |
import { Injectable } from '@angular/core';
import { Capacitor } from '@capacitor/core';
import { CapacitorSQLite, SQLiteDBConnection, SQLiteConnection, capSQLiteSet,
capSQLiteChanges, capEchoResult, capSQLiteResult
} from '@capacitor-community/sqlite';
@Injectable()
export class SQLiteService {
... |
import Vector from "./Vector";
/**
* ## Brief
* [[Matrix]] extends [[Vector]] interface with matrix related features.
*
* ### Main Features
* - Efficient manipulation of **rows and columns** `row`, `rows`, `cols`, ...
* - Matrix **algebra extended features** `pow`, `det`, `prodv`, ...
*
* ## Getting started
*... |
declare global {
const angular: ng.IAngularStatic;
}
export {}; |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { ComponentFactoryResolver } from '@angular/core';
import { OutletService } from '../../../cms-structure/outlet/outlet.service';
import * as ɵngcc0 from '@angular/core';
import * as ɵngcc1 from './component/skip-link.component';
import * as ɵngcc2 from './directive/skip-link.directive';
import * as ɵngcc3 from '... |
import { Component, OnInit } from "@angular/core";
import { PageChangedEvent } from "ngx-bootstrap/pagination";
import { CommonService } from "../../../_services/common.service";
import { ToastrService } from "ngx-toastr";
import { NgxSpinnerService } from "ngx-spinner";
import { Validators, FormGroup, FormBuilder, For... |
import { memoizeAsync } from './memoize-async';
import { AsyncCache } from './memoize-async.model';
import { sleep } from '../common/test-utils';
describe('memozie-async', () => {
it('should verify memoize async caching original method', async () => {
class T {
prop: number;
@memoizeAsync<T, number>... |
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Movie } from '../movies/movie.schema';
import { Model } from "mongoose";
import { UserPayload } from '../auth/get-user.decorator';
import { PaginationDto } from '../common/pagination.dto';
im... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import * as Q from "q";
import * as fs from "fs";
import {IRunOptions} from "./launchArgs";
import {Packager} from "../common/packager";
import {PackagerStatusIndicator, Pa... |
import express from "express";
import { Issuer, generators, TokenSet } from "openid-client";
import { URL } from "url";
import log from "skog";
/**
* Fields that are not part of the oauth standard but are included in the
* response given by Canvas
*/
interface CanvasTokenSet extends TokenSet {
user: {
/** Use... |
import { Template } from "../models/asu/template";
import { DynamoProvider } from "asu-core";
import { injectable } from "tsyringe";
import { BaseRepo } from "./base.repo";
@injectable()
export class TemplatesRepo extends BaseRepo<Template> {
constructor(connectionProvider: DynamoProvider) {
super(connectionProv... |
import React from "react";
import getPreFoldContent from "./getPreFoldContent";
// import extractImage from "./extractImage";
const tag = (name: string, value: string) => <meta key={name} property={name} content={value} />;
const removeHTML = (html: string) => html.replace(/<[^>]*>/g, "");
const generatePageSpecifi... |
<TS language="hi_IN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>नया पता बनाएँ</translation>
</message>
<message>
<source>Choose the address to send coins to</source>
<translation>सिक्कों को भेजने के ल... |
import React from 'react'
import { LeftOutlined } from '@ant-design/icons'
import { useIntl } from 'react-intl'
import { useHistory } from 'react-router-dom'
import { BackLinkWrapper, ButtonText } from './BackLink.style'
type Props = {
label?: string
style?: React.CSSProperties
path?: string
className?: stri... |
import * as React from 'react';
import {connect} from 'react-redux';
import _get from 'lodash-es/get';
import {components, theme} from '../../../hoc';
import {IConnectHocOutput} from '../../../hoc/connect';
import {IComponentsHocOutput} from '../../../hoc/components';
import {ListControlPosition} from '../../../hoc/lis... |
import { Component, OnInit, TemplateRef } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { TranslateService } from '@ngx-translate/core';
import { ListViewBaseComponent } from 'app/site/base/list-view-base';
import { MatSnackBar, MatDialog } from '@angular/material';
import { PromptSe... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import {
IRequest,
IResponse,
IFluidRouter,
IFluidCodeDetails,
IFluidPackage,
IProvideFluidCodeDetailsComparer,
} from "@fluidframework/core-interfaces";
import {
IClientDetails,
IDoc... |
import { expect } from 'chai';
import { testImmutableClass } from 'immutable-class/build/tester';
import { $, Expression } from 'plywood';
import { ExternalView } from './external-view';
describe('ExternalView', () => {
it('is an immutable class', () => {
testImmutableClass(ExternalView, [
{
title... |
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
@Injectable()
export class Scopes implements CanActivate {
constructor(private readonly requiredScopes: string[]) {}
canActivate(context: ExecutionContext): boolean {
const requiredScopes = this.requiredScopes;
const req = contex... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { TaskDto } from './dto';
@Injectable()
export class TodosService {
constructor(private readonly prisma: PrismaService) {}
async getTasks(userId: number) {
return await this.prisma.... |
import { extractICSS } from 'icss-utils';
import * as ts_module from 'typescript/lib/tsserverlibrary';
import * as path from 'path';
import * as postcss from 'postcss';
import * as postcssIcssSelectors from 'postcss-icss-selectors';
export = function init({ typescript: ts }: { typescript: typeof ts_module }) {
funct... |
import styled from 'styled-components';
export const Loading = styled.div`
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(${(props) => props.theme.css.primaryRgb}, 0.25);
display: flex;
align-items: center;
justify-content: center;
height: 100%;
`;
export de... |
import {task} from 'gulp';
import {execTask} from '../util/task-helpers';
import {join} from 'path';
import {buildConfig, sequenceTask} from 'lib-build-tools';
const genericName = 'angular-flex-layout.tgz';
const {outputDir, packagesDir, projectVersion} = buildConfig;
const tarName = `angular-flex-layout-${projectVers... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
/* eslint-disable @typescript-eslint/no-var-requires */
// app fonts
const SpaceMonoRegular = require('../fonts/SpaceMono-Regular.ttf');
export default [{ SpaceMonoRegular }]; |
/**
* @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
*/
export * from './datepicker-module';
export * from './calendar';
export * from './calendar-body';
export * from './da... |
import React from 'react';
import { shallow } from 'enzyme';
import { DataSourcesListPage, Props } from './DataSourcesListPage';
import { NavModel, DataSourceSettings } from '@grafana/ui';
import { LayoutModes } from '../../core/components/LayoutSelector/LayoutSelector';
import { getMockDataSources } from './__mocks__/... |
import { IApi } from 'umi';
export default (api: IApi) => {
const GA_KEY = process.env.GA_KEY;
const enableBy = (opts: any) => {
return opts.config.analytics || GA_KEY;
};
api.describe({
key: 'analytics',
config: {
schema(joi) {
return joi.object();
},
onChange: api.Conf... |
/************************************************
* *
* Node.js v0.8.8 API *
* *
************************************************/
/************************************************
* ... |
/// <reference path="../../../../../../typings/tsd.d.ts" />
module.exports = function (moduleName : string) {
'use strict';
angular.module(moduleName + 'Module')
.controller(moduleName + 'Controller',
['$scope',
function ($scope) {
console.log(moduleName + 'Controller');
}]);
... |
/// <reference types="react/next" />
/// <reference types="react-dom/next" />
import * as ReactDOM from "react-dom/client";
import * as React from "react";
import * as Router from "./Router";
import * as Routing from "./Routing";
// This is what's being injected by the server.
declare var ASAPConfig: Config;
export ... |
import Endpoints from "../Endpoints";
/**
* Methods for interacting with users
*/
class UserMethods {
public requestHandler: import("../RequestHandler");
public static default = UserMethods;
/**
* Create a new User Method handler
*
* Usually SnowTransfer creates a method handler for you, this is here for ... |
import { Inject, Injectable, BadRequestException } from '@nestjs/common';
import { Repository } from 'typeorm';
import { IUser } from './interfaces/users.interface';
import { Users } from './users.entity';
@Injectable()
export class UsersService {
constructor(
@Inject('USERS_REPOSITORY')
private usersReposit... |
import{User} from '../frontend/models/user.model';
export const baseList: Array<User> = [
{prenom:"prenom1",nom:"nom1"}
]; |
// import { Tree } from '@angular-devkit/schematics';
// import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
// import * as path from 'path';
// const collectionPath = path.join(__dirname, '../collection.json');
// describe('schematics', () => {
// it('works', () => {
// const runner = new... |
import type { PropType, CSSProperties } from 'vue'
import type { ModalWrapperProps } from './typing'
import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes'
import { useI18n } from '/@/hooks/web/useI18n'
const { t } = useI18n()
export const modalProps = {
visible: { type: Boolean },
scrollTop: { type: ... |
const Filter = () => {
return (
<div className="filter fixed w-full md:w-2/3 lg:w-7/12 xl:w-2/3 bottom-0 right-0 flex backdrop-blur-lg bg-theme_transparentWhite h-16 xl:h-20 text-base xl:text-lg">
<button
type="button"
className="flex items-center justify-center flex-1 h-full w-full font-sem... |
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {CalendarRangeService} from '../services/calendar-range.service';
@Component({
selector: 'fui-calendar-view-title',
template: `
<span class="title link" (click)="onZoomOut.emit()">
<ng-content></ng-content>
</span>
<span class="prev l... |
// Generated by github.com/lolopinto/ent/ent, DO NOT EDIT.
import {
AllowIfViewerPrivacyPolicy,
Context,
CustomQuery,
Data,
ID,
LoadEntOptions,
ObjectLoaderFactory,
PrivacyPolicy,
Viewer,
convertDate,
loadCustomData,
loadCustomEnts,
loadEnt,
loadEntX,
loadEnts,
} from "@snowtop/ent";
impo... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export default function applySetupTextSelectionPatch(content: string) {
const pattern = /_setupTextSelectionHack\(stylePaneWrapperElement\)\s*{/g;
if (content.match(pattern)) {
return content.replace(pattern... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/// <reference lib="es2015" />
/// <reference lib="esnext.asynciterable" />
export { ServiceBusClientOptions } from "./constructorHelpers";
export {
TokenType,
TokenCredential,
delay,
MessagingError,
RetryOptions... |
<TS language="be_BY" 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>
<tran... |
import { eslintTask } from 'just-scripts';
import * as path from 'path';
import * as constants from './eslint-constants';
export const eslint = eslintTask({
// TODO: also lint config files?
files: [path.join(process.cwd(), constants.directory)],
extensions: constants.extensions,
cache: true, // only lint files... |
import { ColorScheme, ColorSchemeMapping, ColorVariants, StrictColorScheme, StrictColorSchemeMapping, PrimitiveColors } from '../types';
import { AccordionContentProps } from '../../components/Accordion/AccordionContent';
import { AccordionProps } from '../../components/Accordion/Accordion';
import { AccordionTitlePro... |
import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
import { CreateSampleFindingsRequest, CreateSampleFindingsResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateSampleFindingsCommand,
serializeAws_restJson1CreateSampleFindingsCommand,
... |
const escape_tags = { '&': '&', '"': '"', "'": ''' }
function escape_html(str: string | null) {
return str && str.replace(/[&<>]/g, (x) => escape_tags[x] || x)
}
export default class MtData {
data: any[]
_html: string
_text: string
static parse_lines(input = '') {
return input.split('\n')... |
import React, { FC, useContext } from "react";
import style from "./Finder.module.css";
import layoutStyles from "../../styles/layout.module.css";
import paddingStyles from "../../styles/padding.module.css";
import ToolbarButtonSection from "../common/Toolbar/ToolbarButtonSection";
import colorStyles from "../../styles... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.