text stringlengths 10 953k |
|---|
import { is, defineProperty, hasOwnProperty } from '../util'
import Dep from './dep'
export default class Observer {
private value: any
private dep: Dep = new Dep()
constructor(value: any) {
this.value = value
if (!is.object(value) && !is.array(value)) {
return
}
defineProperty(value, '_... |
export class UserInfo {
email: string;
family_name: string;
given_name: string;
name: string;
preferred_username: string;
sub: string;
} |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class FilterAnimalsService {
constructor() { }
} |
/**
* This file is generated by 'protoapi'
* The file contains frontend API code that work with fetch API for HTTP usages
* The generated code is written in TypeScript
* The code provides a basic usage for API call and may need adjustment according to specific project requirement and situation
* -----------------------... |
import type { TextOffset } from '@cspell/cspell-types';
import { Sequence } from 'gensequence';
import * as RxPat from './Settings/RegExpPatterns';
import { HasOptions, SpellingDictionary } from './SpellingDictionary/SpellingDictionary';
import * as Text from './util/text';
import * as TextRange from './util/TextRange'... |
import { IoTThingsGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTThingsGraphClient.ts";
import { UndeploySystemInstanceRequest, UndeploySystemInstanceResponse } from "../models/models_0.ts";
import {
deserializeAws_json1_1UndeploySystemInstanceCommand,
serializeAws_json1_1UndeploySys... |
import { useState, useEffect } from 'react';
import { FaExpand } from 'react-icons/fa';
import { FaCompress } from 'react-icons/fa';
import { FaChevronLeft } from 'react-icons/fa'
import { useRouter } from 'next/router';
function requestFullscreen() {
if (document.documentElement.requestFullscreen) {
retur... |
import Config from '../constants/Config';
async function fetchHelper(method: string, url: string, headers: HeadersInit, body: string): Promise<any> {
return fetch(`${Config.API_SERVER_URL}${url}`, { method, headers, body })
.then(response => response.json())
.catch(error => {
console.warn(error)
... |
import * as React from "react";
import Guild from "types/Guild";
import AddReactionRole from "@components/modal/add-reaction-role";
import { IReaction, Reaction } from "models/Reactions.model";
import { useTranslation } from "next-i18next";
interface Props {
index: number;
guild: Guild<true>;
reaction: IReaction... |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Input,
OnChanges,
OnInit,
SimpleChanges,
ViewChild,
} from "@angular/core";
import { HttpService } from "../../../services/http.service";
import { NbDialogService } from "@nebular/theme";
import { DialogComponent } from "../di... |
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { NgSelectModule } from '@ng-select/ng-selec... |
import { PaperMC, Provider } from '~/api/papermc';
import { Project } from '~/schema';
const travertine: Project = {
slug: 'travertine',
name: 'Travertine',
};
travertine.provider = new Provider(new PaperMC('https://papermc.io/api/v2'), travertine);
export default travertine; |
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3),
which is pending release. The preview version of the SDK is available
at https://github.com/aws/aws-sdk-js-v3. This examp... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
import 'virtual:windi.css';
import App from './App.vue';
createApp(App).mount('#app'); |
/*
* SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company <deborah.cholmeley-jones@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
export * from './tma-active-cart.service';
export * from './tma-cart.service';
export * from './tma-cart-price.service';
export * from './tma-multi-cart.service'; |
import { LayoutRowOrder } from './layout-row-order.enum';
import { LayoutRowFilter } from './layout-row-filter';
import { FilterResult } from './filter-result';
import { ListRow } from '../../modules/list/model/list-row';
import { List } from '../../modules/list/model/list';
import { SettingsService } from '../../modul... |
import gql from 'graphql-tag'
import { useContext } from 'react'
import {
Button,
ButtonProps,
Card,
CardProps,
CommentFormDialog,
IconComment16,
TextIcon,
Translate,
useResponsive,
ViewerContext,
} from '~/components'
import {
ADD_TOAST,
CLOSE_ACTIVE_DIALOG,
OPEN_LIKE_COIN_DIALOG,
OPEN_LO... |
import { extractSignatureFromTLV, getBech32FromPK } from "../../src/index";
describe("Helpers unit", () => {
it("check address conversion", async () => {
const pkStr = "0264bff60f78aae3326b4fc3e16a7c48d0158bfe175fa4a9361190a42565662ae6";
const pk = Buffer.from(pkStr, "hex");
const addr = getBech32FromPK(... |
import slug from 'slug'
import { Injectable } from '@angular/core'
import { IHotkeyDescription, HotkeyProvider } from 'terminus-core'
import { TerminalService } from './services/terminal.service'
/** @hidden */
@Injectable()
export class TerminalHotkeyProvider extends HotkeyProvider {
hotkeys: IHotkeyDescription[]... |
namespace cadpat {
'use strict';
angular.module('cadpat')
.component('homeBens', {
templateUrl: 'app_ts/components/home-bens.component.html',
controller: cadpat.bem.ListagemController,
controllerAs: 'vm',
});
} |
import React from 'react'
import styled from 'styled-components'
interface ThemeProps {
isActive?: boolean
}
export const EmojiIcon = ({ isActive }: ThemeProps) => {
return (
<Icon
width="20"
height="20"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
... |
import { Directive, ElementRef, Input, OnInit } from '@angular/core';
import { Fastdom } from '@qgrid/core';
@Directive({
selector: '[q-grid-autosize]',
})
export class AutoSizeDirective implements OnInit {
private actualText: string;
private host: HTMLElement;
private element: HTMLInputElement;
@Input('q-g... |
import BN = require('bn.js')
import { PrecompileInput } from './types'
import { OOGResult, ExecResult } from '../evm'
const assert = require('assert')
const bn128 = require('rustbn.js')
export default function (opts: PrecompileInput): ExecResult {
assert(opts.data)
const inputData = opts.data
const smokeUsed =... |
declare const WebsocketEvents: {
POSTED: string;
POST_EDITED: string;
POST_DELETED: string;
POST_UNREAD: string;
CHANNEL_CONVERTED: string;
CHANNEL_CREATED: string;
CHANNEL_DELETED: string;
CHANNEL_UNARCHIVED: string;
CHANNEL_UPDATED: string;
CHANNEL_VIEWED: string;
CHANNEL_M... |
export { default as withFocusKeyEvent } from './withFocusKeyEvent'; |
import React, { PureComponent, ChangeEvent } from 'react';
import { Threshold, sortThresholds } from '@grafana/data';
import { colors } from '../../utils';
import { ThemeContext } from '../../themes';
import { getColorFromHexRgbOrName } from '@grafana/data';
import { Input } from '../Input/Input';
import { ColorPicker ... |
import { DocumentNode } from 'graphql';
import { Component, Prop, Vue } from 'nuxt-property-decorator';
import { apolloClientNotify } from '~/modules/apollo';
import { notify } from '~/plugins/notify';
@Component
export class MutableMixin extends Vue {
@Prop({ required: true })
protected mutation!: DocumentNod... |
import http from "http"
const getImage = (url: string, binary = false) =>
new Promise<Buffer | string>((resolve, reject) => {
http.get(url, response => {
const { statusCode } = response
if (!statusCode || statusCode >= 400) {
response.resume()
return ... |
import { Client, ClientEvents, ClientOptions, Message } from "discord.js";
import GeometryDash from "./lib/GeometryDash";
type GDClientOptions = ClientOptions & {
token: string;
prefix: string;
commandFolder: string;
eventFolder: string;
}
type GDCommandOptions = {
name: string;
description: string;
aliases?: ... |
import { GUI } from "dat.gui";
import * as React from "react";
import {DoubleSide, Euler, Vector3} from "three";
import {ReactThreeRenderer} from "../../src";
import {BoxBufferGeometry} from "./geometries/BoxBufferGeometry";
import {BoxGeometry} from "./geometries/BoxGeometry";
import {CircleBufferGeometry} from "./geo... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import { EndpointAuthValues, IEndpointAuthComponent } from './../../../../core/extension/extension-types';
import { Component, OnInit, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
@Component({
selector: 'app-kubernetes-config-auth-form',
templateUrl: './kubernetes-config-auth-form.comp... |
import styled from 'styled-components';
import { GlobalVars } from '../../assets/style/basics/vars';
export const PlaylistUpdateForm = styled.form`
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 100%;
padding: 25px 25%;
& > * {
width: 100%;
}
`;
... |
import React, { SVGAttributes } from 'react';
export interface NewTabProps extends SVGAttributes<SVGElement> {
[key: string]: any;
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | number;
color?: string;
}
const sizes = { xs: 12, s: 16, m: 20, l: 24, xl: 32 };
export const NewTab: React.FC<NewTabProps> = (props): J... |
import { createIcon } from '../core';
/**
* remixicon album-line
*/
export default createIcon('album-line', {
"viewBox": "0 0 24 24",
"paths": [
{
"d": "M0 0h24v24H0z",
"fill": "none"
},
{
"d": "M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0 2C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 1... |
import { content } from "./elements";
const autofocus = () => {
setTimeout(() => {
const selection = window.getSelection();
if (!selection) {
return;
}
const range = document.createRange();
range.setStart(content, 0);
range.setEnd(content, 0);
selection.removeAllRanges();
sele... |
import Vue from 'vue';
import { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';
@EJComponentDecorator({})
export class ColumnsDirective extends Vue {
public render(): void {
return;
}
}
export const ColumnsPlugin = {
name: 'e-columns',
install(Vue: any) {
Vue.comp... |
function foo(a:string, ...b:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3); |
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material';
@Component({
selector: 'tanam-dialog',
templateUrl: './dialog.component.html',
styleUrls: ['./dialog.component.scss']
})
export class DialogComponent {
constructor(@Inject(MAT_DIALOG_DATA) public data: any)... |
import React, { memo, useCallback, Dispatch, FC } from 'react';
import { useZoomPanHelper, OnLoadParams, Elements, FlowExportObject } from 'react-flow-renderer';
import localforage from 'localforage';
localforage.config({
name: 'react-flow',
storeName: 'flows',
});
const flowKey = 'example-flow';
const getNodeId... |
import * as db from 'documentdb';
import * as taskLib from 'vsts-task-lib/task';
export class CosmosDb {
client: db.DocumentClient;
constructor(host: string, key: string) {
let authOptions : db.AuthOptions = {
masterKey: key
}
let connectionPolicy : db.ConnectionPolicy = {
... |
import Link from 'next/link'
import * as React from 'react'
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'
type Props = {
className?: string
isSubSelect?: boolean
items: Array<any>
name?: string
selected?: string
}
type State = {
dropdownOpen: boolean
}
export class Med... |
import { MdiReactIconComponentType } from './dist/typings';
declare const SmartphoneSettingsVariantIcon: MdiReactIconComponentType;
export default SmartphoneSettingsVariantIcon; |
import React, { useState, useRef, useEffect } from "react";
import { Link, Redirect } from "react-router-dom";
import axios from "axios";
import Button from "../../components/basic/Button";
import useForm from "../../hooks/useForm";
import useAuth from "../../hooks/useAuth";
interface Props {}
export const Login: R... |
import * as fs from "fs";
import * as os from "os";
import * as vscode from "vscode";
import { Provider } from "./../provider";
import * as token from "./../tokens";
import { IBaseProvider } from "./base";
export class PhpProvider implements IBaseProvider<token.BaseItem> {
private config: vscode.WorkspaceConfigura... |
type DownloadSearchResultFields = {
contenttitle?: string,
publicationpublicationdate?: string,
newsrelatedpresentation?: string,
newsrelatedpressrelease?: string,
newsrelatedreport?: string
templatename?: string
name?: string
}
export interface DownloadSearchResult {
id: string;
na... |
import { createType, createSuffixType, noMap } from '../../utilities/typeCreators';
import { structureType } from '../primitives/structure';
import { stringType } from '../primitives/string';
import { integerType } from '../primitives/scalar';
import { booleanType } from '../primitives/boolean';
export const volumeIte... |
import { Component } from '@angular/core';
/**
* @title Tab group where the tab content is loaded lazily (when activated)
* @order 30
*/
@Component({
selector: 'sbb-tab-group-lazy-loaded-example',
templateUrl: 'tab-group-lazy-loaded-example.html',
})
export class TabGroupLazyLoadedExample {
tabLoadTimes: Date... |
/*
* Copyright 2021 ABSA Group Limited
*
* 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 agr... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Trillion</source>
<translation>Acerca de Trillion</translation>
... |
//import { ApiModelProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty, IsNumber, IsEmpty, IsEmail, Min, Max, Validate, MinLength, MaxLength } from "class-validator";
export class CreateUserDto {
readonly id: string;
@IsNotEmpty()
@IsString()
userName: string;
@IsNotEmpty()
@IsS... |
import { Component, OnInit, Input, Output, ChangeDetectionStrategy, EventEmitter } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { UiService } from 'src/app/models/ui/state/ui.service';
import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'osem-datep... |
import util from 'node:util';
import glob from 'fast-glob';
import appNotify from '../functions/app-notify';
import appSpawn from '../functions/app-spawn';
import logger from '../instances/logger';
import paths from '../configs/paths';
class SteamCloud {
private static invokeLudusavi(commandsLine: string[]) {
tr... |
import { Entity } from '../entity';
import { Filterable, FilterLink } from '../filter';
import { Order, Orderable, OrderLink } from '../order';
import { Link } from './link';
/**
* Represents a link from one entity to one other linked entity (as opposed to a list of linked entities). In OData v2 a `OneToOneLink` can ... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { Pet } from "../operationsInterfaces";
import * as coreClient from "@azure/core-c... |
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-hmcts-modal',
templateUrl: './hmcts-modal.component.html',
styleUrls: ['./hmcts-modal.component.css']
})
export class HmctsModalComponent implements OnInit {
@Input() wide;
constructor() { }
ngOnInit() {
}
} |
import { Component, OnInit, OnDestroy, ViewChild, HostListener } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { NavItem, NavItemType } from '../../template/md/md.module';
import { LocationStrategy, PlatformLocation, Location } from '@angular/common';
declare var $: any;
var mda... |
import * as React from "react"
import { Story, Meta } from "@storybook/react"
import Table from "./../src/index"
import "./../styles/styles.css"
export default {
title: "Components/Table",
component: Table,
argTypes: {},
} as Meta
const Template: Story<React.ComponentProps<typeof Table>> = (props) => (
<Tabl... |
import { ExArray } from "./exArray";
/**
* Math extension class.
*/
export class ExMath {
/**
* Transpose row values and column values.
* @param {any[][]} values [[1,2,3],["a","b","c"]]
* @returns {any[][]}
* @example [[1,2,3],["a","b","c"]] → [[1,"a"],[2,"b"],[3,"c"]]
*/
public sta... |
import { Item } from 'src/item/entities/item.entity';
import { CreateItemDto } from './../item/dto/create-item.dto';
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
Res,
UploadedFiles,
UseInterceptors,
Request,
} from '@nestjs/common';
import { PhotoService } from './photo.service';
im... |
import { useEffect, useRef } from "react";
import { useMounted } from "./use-mounted";
type EffectFunction = (() => void) | (() => () => void);
/**
* useAfterUpdate hook is called every time after react update the DOM
* @param fn callback function
*/
export function useAfterUpdate(fn: EffectFunction) {
const moun... |
/*
* Power BI Visual CLI
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* 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 restriction, ... |
import { merge, Observable, of } from 'rxjs';
import { catchError, switchMap } from 'rxjs/operators';
import {
DataSourceApi,
DataQueryRequest,
DataQueryResponse,
DataSourceInstanceSettings,
DataQuery,
DataSourceJsonData,
ScopedVars,
makeClassES5Compatible,
DataFrame,
parseLiveChannelAddress,
get... |
import { shade } from 'polished';
import styled from 'styled-components';
export const ContainerTable = styled.div`
margin-top: 30px;
height: 100%;
max-height: 330px;
overflow: hidden;
overflow-y: auto;
`;
export const TableContent = styled.table`
width: 100%;
border-collapse: collapse;
button.action... |
import React from "react"
import { GetServerSideProps } from "next"
import Head from "next/head"
import { Jumbotron } from "components/Jumbotron"
import { PostsList } from "components/PostsList"
import { graphqlClient } from "constants/graphqlClient"
import { CategoryPageCategoryFragment, getSdk, Maybe, PostListFields... |
import { Test, TestingModule } from '@nestjs/testing';
import { SongController } from './song.controller';
describe('Song Controller', () => {
let controller: SongController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [SongController],
}).com... |
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { NegocioProvider } from '../../providers/negocio/negocio'
import { AlertController } from 'ionic-angular';
@IonicPage()
@Component({
selector: 'page-agregarcliente',
templateUrl: 'agregarcliente.... |
import CyNode from '../app/ngx-cytoscape/models/cy-node';
export class NodeLinkView {
directed: boolean;
// noinspection SpellCheckingInspection
multigraph: boolean;
graph: object;
nodes: object[];
links: object[];
} |
import { createBrowserHistory } from "history";
import React from "react";
import { Route, Router, Switch } from "react-router-dom";
import Footer from "./components/Footer";
import NavBarComponent from "./components/Navbar";
import About from "./features/about";
import PicoPlaca from "./features/picoPlaca";
import { A... |
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { RootState } from '../index';
import { fectchAccountInfo } from '../reducers/accountInfoSlice';
const AccountInfo = () => {
const accountInfo = useSelector((store: RootState) => store.accountInfo);
const disp... |
import axios from 'axios'
import cheerio from 'cheerio'
import * as helpers from '../helpers'
import { IItemListing, Province } from '../graphql-types'
import { RENDERTRON_URL } from '../constants'
import chromium from 'chrome-aws-lambda'
import { URL } from 'url'
export interface Selectors {
item: string
outOfSt... |
import * as React from 'react';
import MuiRadioGroup, {
RadioGroupProps as MuiRadioGroupProps,
} from '@material-ui/core/RadioGroup';
import { FieldProps } from 'formik';
export interface RadioGroupProps
extends FieldProps,
Omit<MuiRadioGroupProps, 'name' | 'value'> {}
export function fieldToRadioGroup({
fi... |
import { encodeAddress, decodeAddress } from "@polkadot/util-crypto";
import { hexToU8a, isHex } from "@polkadot/util";
const POLKADOT_SS58_PREFIX = 0;
/**
* Returns true if address is valid, false if it's invalid (can't parse or wrong checksum)
*
* @param {*} address
*/
// TODO Cache this to improve perf
export ... |
import { parse, Source, DocumentNode } from "graphql";
import { SourceLocation, getLocation } from "graphql/language/location";
import {
TextDocument,
Position,
Diagnostic,
DiagnosticSeverity
} from "vscode-languageserver";
import { getRange as rangeOfTokenAtLocation } from "@apollographql/graphql-language-se... |
/**
* @license
* Copyright Color-Coding Studio. All Rights Reserved.
*
* Use of this source code is governed by an Apache License, Version 2.0
* that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0
*/
namespace purchase {
/** 模块-标识 */
export const CONSOLE_ID: string = "de92... |
import { TextProps } from '@bma98/fractal-ui';
interface CenteredTextProps extends TextProps {
style?: any;
children: string;
width?: number;
height?: number;
position?: 'absolute' | 'relative';
marginTop?: number;
}
export declare function CenteredText({ style, children, color, ...others }: Cen... |
import { LeafNode } from './leaf-node';
import { InternalNode } from './internal-node';
import { RootNode } from './root-node';
export declare type NodeType = 'LeafNode' | 'InternalNode' | 'RootNode';
export declare type NonLeafNode = InternalNode | RootNode;
export declare type NonRootNode = InternalNode | LeafNode;
e... |
export var __esModule: boolean;
export class IgUploadVideoError extends ig_response_error_1.IgResponseError {
constructor(response: any, videoInfo: any);
videoInfo: any;
}
import ig_response_error_1 = require("./ig-response.error"); |
<TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Höger klicka för att ändra adress eller beteckning</translation>
</message>
<message>
<source>Create a new address</source>
... |
// -- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is a... |
enum LayerToolRenderType {
LAYER = 1,
DATA,
STYLE
}
export default LayerToolRenderType; |
import { Buttons } from './buttons';
class Add extends Buttons {
api: any;
constructor() {
super();
$('#addButton').on('click', () => {
this.api = $('#apiSelector').val();
$('#tableName').val(this.tables[this.api]['table']['alias']);
$('#edit-section').attr... |
import { createMuiTheme, responsiveFontSizes, Theme } from '@material-ui/core'
let theme: Theme = createMuiTheme()
theme = responsiveFontSizes(theme)
theme.typography.h1 = {
...theme.typography.h1,
[theme.breakpoints.only('xs')]: {
fontSize: '2.5rem',
},
[theme.breakpoints.only('sm')]: {
fontSize: '4re... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ListaComponent } from './lista/lista.component';
import { EditarComponent } from './editar/editar.component';
import { AuthGuard } from '../../auth/auth.guard';
const routes: Routes = [
{ path: 'catalogos/clues... |
import debugModule from "debug";
const debug = debugModule("codec:export");
import type * as Format from "@truffle/codec/format";
import type {
LogDecoding,
ReturndataDecoding
} from "@truffle/codec/types";
import * as Conversion from "@truffle/codec/conversion";
import { ResultInspector, unsafeNativize } from "@... |
import type { DocumentContext, DocumentInitialProps } from "next/document";
import Document, { Head, Html, Main, NextScript } from "next/document";
import { ServerStyleSheet } from "styled-components";
import { DEFAULT_LOCALE } from "utils/constants";
const withStyledComponents = async (
ctx: DocumentContext
): Prom... |
/* tslint:disable:one-line*/
// #docregion
import { Injectable } from '@angular/core';
import { LoggerService } from './logger.service';
// #docregion date-logger-service
@Injectable({
providedIn: 'root'
})
export class DateLoggerService extends LoggerService
{
override logInfo(msg: any) { super.logInfo(stamp(ms... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ProductModule } from './product/product.module';
import { MongooseModule } from '@nestjs/mongoose';
@Module({
imports: [
ProductModule,
MongooseModule.forRoot('mongo... |
import {OperatorType, OperatorTypeDict, OperatorTypeMappingDict} from '../operator-type.model';
interface FeatureCollectionDBSourceTypeConfig {
owner: string;
data_set_name: string;
}
interface FeatureCollectionDBSourceTypeMappingDict extends OperatorTypeMappingDict {
owner: string;
data_set_name: str... |
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { graphql } from "react-relay";
const AppQuery = graphql`
query AppQuery {
viewer {
login
}
}
`;
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} cl... |
import {Component, OnDestroy, OnInit} from '@angular/core';
declare var $: any;
@Component({
selector: 'app-groups',
templateUrl: './groups.component.html',
styleUrls: ['./groups.component.css']
})
export class GroupsComponent implements OnInit, OnDestroy {
public nav: any;
constructor() {
this.nav =... |
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import { container } from 'tsyringe'
import {
DeleteRoleService,
EditRoleService,
GetRoleService,
ListRoleService,
StoreRoleService,
} from 'App/Modules/Accounts/Services/Role'
import { RolesValidator as Validator } from 'App/Modules/Account... |
export class ServiceView {
ServiceName: string;
TimeUnit: number;
} |
import './eager_offset'
import { BigInt } from './numbers'
import { JSONValue } from './value'
import { Bytes, Result } from './collections'
/** Host JSON interface */
export declare namespace json {
function fromBytes(data: Bytes): JSONValue
function try_fromBytes(data: Bytes): Result<JSONValue, boolean>
functi... |
<TS language="mn" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Шинэ хаяг нээх</translation>
</message>
<message>
<source>&New</source>
<translation>&Шинэ</translation>
</message>
<messag... |
import { TestBed } from '@angular/core/testing';
import { provideMockActions } from '@ngrx/effects/testing';
import { Action } from '@ngrx/store';
import { cold, hot } from 'jasmine-marbles';
import { Observable, of, throwError } from 'rxjs';
import { OccUserService } from '../../occ/index';
import * as fromActions fro... |
import { config, CustomConfig, ReduxUtilsError } from '../config';
import configBasicApiReducer from '../config/reducers/basicApiReducer';
import configPaginationApiReducer from '../config/reducers/paginationApiReducer';
import configInfiniteListReducer from '../config/reducers/infiniteListApiReducer';
import configCo... |
import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const Predictions24Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <svg... |
/**
* ID: 01439
* Title: Find the Kth Smallest Sum of a Matrix With Sorted Rows
* Difficulty: Hard
* Description: You are given an m x n matrix mat that has its rows sorted in non-decreasing order and an integer k.
*
* You are allowed to choose exactly one element from each row to form an array.
*
* Return... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.