text stringlengths 10 953k |
|---|
import {StatusCodeError} from '../api';
import {inspect} from 'util';
import {marshalValue} from '../runtime/common/marshaling';
import {unmarshalValue} from '../runtime/common/marshaling';
describe('Marshaling', () => {
function transform<T>(val: T): T {
return unmarshalValue(marshalValue(val));
}
it('work... |
// (C) 2007-2018 GoodData Corporation
import { IDataView } from "@gooddata/sdk-backend-spi";
import React from "react";
import { WrappedComponentProps, injectIntl } from "react-intl";
import { IChartConfig } from "../../../interfaces";
import {
IHeaderPredicate,
IDrillableItem,
IDrillEventCallback,
conv... |
import { AxiosInstance } from "axios";
export default class RatingService {
readonly axios;
constructor(axios: AxiosInstance) {
this.axios = axios;
}
/**
* Rate a dumpster
*
* @param dumpsterID ID of the dumpster that is rated
* @param rating What to rate the dumpster
... |
/**
* ⚠ These are used just to render the Sidebar!
* You can include any link here, local or external.
*
* If you're looking to actual Router routes, go to
* `routes/index.js`
*/
interface IRoute{
path?: string
icon?: string
name: string
routes?: IRoute[]
exact?: boolean
};
const routes: IRoute[] = [
... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { InputTpsPage } from './input-tps.page';
const routes: Routes = [
{
path: '',
component: InputTpsPage
},
{
path: 'detail',
loadChildren: () => import('./detail/detail.module').then( m => m.D... |
/**
* Components
*/
export { motion, createDomMotionComponent } from "./render/dom/motion"
export { m } from "./render/dom/motion-minimal"
export { AnimatePresence } from "./components/AnimatePresence"
export { AnimateSharedLayout } from "./components/AnimateSharedLayout"
/**
* Features
*/
export { Animation as An... |
import { RefreshIcon } from '@heroicons/react/outline';
import { Link, RouteComponentProps, useNavigate } from '@reach/router';
import React, { useEffect, useState } from 'react';
import { toast } from 'react-hot-toast';
import Button from '../components/Button';
import Card from '../components/Card';
import { Bitwise... |
import TableRow, { TableRowProps } from "@material-ui/core/TableRow";
import React from "react";
import { SortableElement } from "react-sortable-hoc";
import SortableHandle from "./SortableHandle";
const SortableTableRow = SortableElement<TableRowProps>(
({ children, ...props }) => (
<TableRow {...props}>
... |
import { PriorityQueue } from "../../Collections/index";
import { MathUtils } from "../../Math/MathUtils";
import { GraphBase } from "./GraphBase";
import { GraphEdge } from "./GraphEdge";
export class GraphSearcher {
public static MazeSearch(graph: GraphBase, start: number, maxStep: number, rndFunc: (min: number, ma... |
/**
* This file was auto generated, please do not edit it directly.
**/
import { RestClientInterface } from '../../Interfaces';
export class Feature {
constructor(private restClient: RestClientInterface) {}
// Queries
/**
* @return Promise|Observable|any
*/
ListFeatures(): any {
return this.rest... |
import axios from 'axios';
import config from '../config';
import { GetBuildResponse } from '../types/asu';
const asu = {
buildNew: (packages: string[], target: string, profile: string, version: string) =>
axios.post<GetBuildResponse>(`${config.asu_url}/api/build`, {
target,
version,
profile,
... |
import { ApiProperty } from "@nestjs/swagger";
export class IGetTextByLanguage {
@ApiProperty({ required: false})
en: () => string;
es: () => string;
pt: () => string;
} |
export class User {
contactNumber: string;
} |
import { PowerUp } from "./power_up";
import * as THREE from "three";
import { Util } from "../util";
import OIMO from "../declarations/oimo";
import { AudioManager } from "../audio";
/** Accelerates the marble. */
export class SuperSpeed extends PowerUp {
dtsPath = "shapes/items/superspeed.dts";
pickUpName = "Super... |
// *** 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";
/*... |
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from '../../../../../../..';
@IonicPage({
segment: 'pageSix/paramOne/:paramOne/paramTwo/:paramTwo'
})
@Component({
templateUrl: 'sixth-page.html'
})
export class SixthPage {
paramOne: string;
paramTwo: string;
construc... |
import VTable from './VTable.vue'
import VTableColumn from './VTableColumn.vue'
// export * from './table.d'
export {
VTable,
VTableColumn
}
export default {
VTable,
VTableColumn
} |
import {Structure as _Structure_} from '@aws-sdk/types';
export const UnlinkIdentityOutput: _Structure_ = {
type: 'structure',
required: [],
members: {},
}; |
export * from "./profile-edit.component"; |
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { device } from 'theme'
import { sendUserMessage } from 'modules/messages'
import { useDispatch } from 'hooks'
import { useMessages } from 'modules/messages/selector'
import MessageBubble, { Direction } from './MessageBubble'
impor... |
<TS language="ca@valencia" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
/* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { ImageManagerService } from './image-manager.service';
describe('ImageManagerService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ImageManagerService]
});
});
... |
/*
* 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
* distribu... |
declare const optimize: () => void;
export default optimize; |
import * as React from "react";
import { Widget, WidgetBody, WidgetHeader } from "../../ui";
import { MustBeOnline } from "../../devices/must_be_online";
import { validBotLocationData } from "../../util";
import { toggleWebAppBool } from "../../config_storage/actions";
import { ToolTips } from "../../constants";
import... |
namespace ts.pxtc {
// AVR:
// - 32 8-bit registers (R0 - R31), with mapping to data addresses 0x0000 - 0x001F
// - X-register R26 (low), R27 (high)
// - Y-register R28 (low), R29 (high)
// - Z-register R30 (low), R31 (high)
// - 64 I/0 registers ($00-$3F), with mapping to data addresses 0x0020... |
import Joi from "joi";
export interface ITasksFieldTask {
checked: boolean;
text: string;
}
const ITasksFieldTaskObject: ITasksFieldTask = {
checked: Joi.boolean().required() as unknown as boolean,
text: Joi.string().allow("") as unknown as string,
};
export const ITasksFieldTaskSchema = Joi.object(ITasksFie... |
export interface User {
name: string;
email: string;
password: string;
}
export interface Rating {
Source?: string;
Value?: string;
}
export interface Movie {
Title?: string;
Year?: string;
Rated?: string;
Released?: string;
Runtime?: string;
Genre?: string;
Director?: ... |
/* spellchecker: disable */
import {
Canvas,
Initializable,
Renderer,
} from 'webgl-operate';
/* spellchecker: enable */
export abstract class Example extends Initializable {
abstract initialize(element: HTMLCanvasElement | string): boolean;
abstract uninitialize(): void;
abstract get ren... |
import { Injectable } from '@angular/core';
import { MatDialogConfig } from '@angular/material';
@Injectable()
export class DialogFactory {
GetEditDialogConfig(data: any = null): MatDialogConfig {
const dialogConfig = new MatDialogConfig();
dialogConfig.width = '900px';
dialogConfig.height = '600px';
... |
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, Resolve, RouterStateSnapshot} from '@angular/router';
import {RecipeResolved} from '../recipe';
import {Observable, of} from 'rxjs';
import {RecipeService} from '../recipe.service';
import {catchError, map} from 'rxjs/operators';
@Injectable({
... |
import TelegramBot from 'node-telegram-bot-api';
import {DataBaseHelper} from "../db";
import {Song} from "../types/song";
import {Question} from "../types/question";
import {submission_menu, submission_text} from "./submission_menu"
import {sanitize} from "../util/sanitize"
export function notes_menu (db: DataBaseHe... |
import { neo4jDriver } from '../utils/neo4jDriver';
export const addQuestionToEndOfQuestionnaire = async (
payload,
{ logger, query }
): Promise<void> => {
const { questionId, questionnaireId } = payload;
const session = neo4jDriver({ databaseName: 'questionnaires' }).session();
try {
const lastQuestio... |
import * as React from 'react';
import { PureComponent, ComponentClass } from 'react';
import { EventDispatcher } from '../../event-dispatcher';
export interface ConnectProps {
[key: string]: any;
}
export default (
WrappedComponent: ComponentClass<any>,
eventDispatcher: EventDispatcher,
) =>
class Connect ex... |
// /src/content/stacked_bar_chart/materialicons/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgStackedBarChart = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M6 10h3v10H6zm0-5h3v4H... |
import React, { useState } from 'react';
import {
Text,
StyleSheet,
Image,
View,
Platform,
Alert
} from 'react-native';
import { getBottomSpace } from 'react-native-iphone-x-helper';
import { SvgFromUri } from 'react-native-svg';
import colors from '../../styles/colors';
import fonts from '.... |
import styled from '@emotion/styled';
export const UserBox = styled.div`
height: 100%;
width: 100%;
`;
export const ProfileUrl = styled.a`
font-size: 14px;
`; |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export const isNode =
!!process && !!process.version && !!process.versions && !!process.versions.node;
/**
* Enum to abstract away string values used for referencing the Environment Variable names.
*/
export enum EnvVarNames {
SERVICEBUS... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { AuthorizeService } from "../../services/auth-services/authorize.service";
@Component({
selector: 'app-login',
templateUrl: './lo... |
import Box from '@material-ui/core/Box';
import CircularProgress from '@material-ui/core/CircularProgress';
import makeStyles from '@material-ui/core/styles/makeStyles';
import Tab from '@material-ui/core/Tab';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import Tabl... |
import { Kata } from "./Kata";
import { Kihon } from "./Kihon";
export interface Jakukante {
uid?:string;
short: string;
description: String;
technics: Kihon[];
} |
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { PostsRoutingModule } from './posts-routing.module';
import { LayoutComponent } from './layout.component';
import { ListComponent } from './list.component';
@NgModule... |
import { Component, Prop, Method, Event, EventEmitter, State} from '@stencil/core';
import { GisViewerProps, Coordinate } from '../../models/apiModels';
import { MAX_NORTH_EAST, MAX_SOUTH_WEST } from './classes/statics';
import { MapContainer } from './classes/MapContainer/MapContainer';
import _ from 'lodash';
import ... |
import React, { Fragment, ReactElement, SFCElement } from 'react';
import ReactDOMServer from 'react-dom/server';
import { Stateful, Stateless, TSXComponentProps } from './component';
const stateful: ReactElement<TSXComponentProps> = React.createElement(Stateful, { value: 'test' });
const stateless: SFCElement<TSXCo... |
export class FilterModel {
page: number;
size: number;
sort: string;
sortBy: string;
queryText: string;
searchBy: string;
} |
/**
* Applies display gamma correction to the given number.
* @param value - any number in a linear color space (0 - 1).
*/
export function degamma(value: number): number {
if (value <= 0.0031308) return 12.92 * value;
return 1.055 * Math.pow(value, 1.0 / 2.4) - 0.055;
} |
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Home from "../views/Home.vue";
const routes: Array<RouteRecordRaw> = [
{
path: "/",
name: "Home",
component: Home,
},
{
path: "/about",
name: "About",
// route level code-splitting
// this generates a ... |
import {
Identifier,
QualifiedTypeIdentifier,
TSQualifiedName,
isIdentifier,
isQualifiedTypeIdentifier,
tsQualifiedName,
} from '@babel/types';
export function convertIdentifier(
node: Identifier | QualifiedTypeIdentifier,
): Identifier | TSQualifiedName {
if (isIdentifier(node)) {
return node;
}... |
import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Tab3Page } from './tab3.page';
import { Tab3PageRoutingModule } from './tab3-rou... |
import * as React from 'react';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
import Box, { BoxProps } from '@material-ui/core/Box';
import Typography from '@material-ui/core/Typography';
import MuiLink from '@material-ui/core/Link';
import Avatar from '@material-ui/core/Avatar';
import Tw... |
import { ITaskItem } from '../Entities/ITaskItem';
export interface ITaskListRepository {
instance(list: Array<ITaskItem>): ITaskListRepository;
addTask(t: ITaskItem): ITaskListRepository;
getTask(id: string): ITaskItem | null;
delTask(id: string): ITaskListRepository;
updateTask(id: string, t: ITaskItem): I... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export * from './kafkajs';
export * from './types'; |
import { VertexKey } from "verticies";
// Basic Behaviors
export interface BaseGraphBehavior<K extends VertexKey, E> {
hasVertex: (vertexKey: K) => boolean;
adjacent: (fromVertex: K, toVertex: K) => boolean;
neighbors: (vertexKey: K) => K[];
edgesFrom: (vertexKey: K) => E[];
// Edge behaviors are tied to the... |
import { Injectable, EventEmitter } from "@angular/core";
/**
* LoadingService
* this service is used for spinner show and hide
*/
@Injectable()
export class LoadingService {
/**
* will be use for subscribe
*/
onLoadingChanged: EventEmitter<boolean> = new EventEmitter<boolean>();
/**
* ... |
import { NestFactory } from '@nestjs/core';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { AppModule } from './modules/app.module';
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter(),
)... |
/* tslint:disable */
import { Injectable, Inject, Optional } from '@angular/core';
import { Http, Response } from '@angular/http';
import { BaseLoopBackApi } from '../core/base.service';
import { LoopBackConfig } from '../../lb.config';
import { LoopBackAuth } from '../core/auth.service';
import { LoopBackFilter } from... |
<TS language="hu" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>A cím vagy címke szerkeszteséhez kattintson a jobb gombbal</translation>
</message>
<message>
<source>Create a new address</source>... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } f... |
import {
Box,
Center,
FormControl,
FormLabel,
Grid,
Radio,
RadioGroup,
Stack,
Switch,
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { Playstyle } from "@prisma/client";
import MySelect from "components/common/MySelect";
import WeaponSelector from "components/common/WeaponSel... |
import dayjs from 'dayjs'
import {merge} from 'lodash'
import {StoryMocks} from 'src/lib/StoryMocks'
import {PartialDeep} from 'type-fest'
import {RegisterSubmittedPageQuery} from 'types/graphql'
import RegisterLayout from '../RegisterLayout'
import SubmittedPage from './SubmittedPage'
const mockQuery = (query: Partia... |
export interface ThemeInterface {
color?: string;
} |
import * as ɵngcc0 from '@angular/core';
import * as ɵngcc1 from './nav';
import * as ɵngcc2 from './nav-outlet';
import * as ɵngcc3 from '@angular/common';
export { NgbNav, NgbNavContent, NgbNavContentContext, NgbNavItem, NgbNavLink, NgbNavChangeEvent } from './nav';
export { NgbNavOutlet, NgbNavPane } from './nav-out... |
describe("Player", function() {
var player;
var song;
beforeEach(function() {
player = new Player();
song = new Song();
});
it("should be able to play a Song", function() {
player.play(song);
expect(player.currentlyPlayingSong).toEqual(song);
//demonstrates use of custom matcher
exp... |
<TS language="de" version="2.1">
<context>
<name>AddNewAddressDialog</name>
<message>
<source>Dialog</source>
<translation>Dialog</translation>
</message>
<message>
<source>My Address</source>
<translation>Meine Adresse</translation>
</message>
<message>
<... |
export interface OidcAuthDataRequest {
owllyId: string;
configuration: string;
}
// tslint:disable-next-line:no-empty-interface
export interface OidcAuthLoginDataRequest {}
export interface OidcAuth {
url: string;
type: 'login' | 'wizard';
owllyId?: string;
}
export interface OidcState {
type: 'login' | ... |
/**
* @module Intacct/SDK/Functions/AccountsPayable
*/
/**
* Copyright 2018 Sage Intacct, 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/LICE... |
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import {useId, IdProvider, useGetId} from '../src'
describe('it', () => {
it('creates ids', () => {
const div = document.createElement('div')
const Id: React.FunctionComponent = ({children}) => {
const id = useId()
return (
<>
{id... |
// Components
// Utils
export * from './utils/yuan';
export * from './protobuf/model'
// Module
export * from './shared.module'; |
import { forwardRef } from 'react'
import cx from 'clsx'
import { createStyle, getThemeCSSObject } from '../../styles'
import type { ChromatinIcon } from '../types'
const useStyles = createStyle((theme) => ({
root: (props: ChromatinIcon) => ({
height: props.height ?? '100%',
width: props.width ?? ... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
import { Request, Response } from 'express';
import { SettingsService } from '../services/SettingService';
class SettingsController {
async create(request: Request, response: Response) {
const { chat, username } = request.body;
const settingsService = new SettingsService();
try {
const settings =... |
import React, { useEffect, useRef, useState } from 'react';
import withDefaults from '../utils/with-defaults';
import TooltipContent from './tooltip-content';
import useClickAway from '../utils/use-click-away';
import { TriggerTypes, Placement, SnippetTypes } from '../utils/prop-types';
export type TooltipOnVisibleCha... |
module Plywood {
export class ChainExpression extends Expression {
static fromJS(parameters: ExpressionJS): ChainExpression {
var value: ExpressionValue = {
op: parameters.op
};
value.expression = Expression.fromJS(parameters.expression);
if (hasOwnProperty(parameters, 'action')) {... |
import React, {useMemo, useContext, useState, useRef, ReactNode} from 'react';
import {StyleSheet, Platform, StyleProp, ViewStyle} from 'react-native';
import Reanimated, {runOnJS, useAnimatedReaction, useAnimatedStyle, interpolate} from 'react-native-reanimated';
import _ from 'lodash';
import TabBarContext from './T... |
import crypto from 'crypto';
const ENCRYPT_ALGORITHM = 'aes-256-ctr';
class SecretsHelper {
private static instance: SecretsHelper;
private readonly key: string;
private constructor() {
SecretsHelper.instance = this;
this.key = crypto
.createHash('sha256')
.update(String(process.env.SECRE... |
import { Navigation, Options } from 'react-native-navigation';
import App from 'screens/HomeScreen';
import PhotoList from 'screens/PhotoListScreen';
import PhotoDetail from 'screens/PhotoDetailScreen';
import { Store } from 'redux';
import { ApplicationState } from 'utils/app.reducer';
import configureStore from 'util... |
// CloudFormation Resource AWS::DynamoDB::GlobalTable
import { CfnResource, Resolvable } from '../../base';
export type GlobalTable_Type = 'AWS::DynamoDB::GlobalTable';
export const GlobalTable_Type = 'AWS::DynamoDB::GlobalTable';
/**
* Version: None. Resource Type definition for AWS::DynamoDB::GlobalTable
* {@lin... |
import { ILoggerComponent } from '@well-known-components/interfaces'
import { ContentFileHash, delay, Timestamp } from 'dcl-catalyst-commons'
import { DB_REQUEST_PRIORITY } from '../../repository/RepositoryQueue'
import { SystemProperty } from '../../service/system-properties/SystemProperties'
import { AppComponents } ... |
import { Component, Input } from '@angular/core';
import { Item } from '../../../core/shared/item.model';
import { Observable } from 'rxjs';
import { RemoteData } from '../../../core/data/remote-data';
import { PaginatedList } from '../../../core/data/paginated-list.model';
import { FindListOptions } from '../../../cor... |
import { TestBed } from '@angular/core/testing';
import { ScrollPaginationUsersSearchService } from './scroll-pagination-users-search.service';
describe('ScrollPaginationUsersSearchService', () => {
let service: ScrollPaginationUsersSearchService;
beforeEach(() => {
TestBed.configureTestingModule({});
se... |
import { ItemType } from '../../../../themes/types';
import { TeamsSchemeMappingWithAreas } from '../../types';
import { stringLiteralsArray } from '../../../../utils';
import { pickValuesFromColorScheme } from '../../../colorUtils';
export const textColorAreas = stringLiteralsArray('foreground');
export type TextColo... |
import { config } from "dotenv-defaults";
// 环境变量注入入口
config();
export const env = {
SERVER_PORT: process.env.SERVER_PORT,
ADMIN_USERNAME: process.env.ADMIN_USERNAME,
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD,
MQTT_BROKER_HOST: process.env.MQTT_BROKER_HOST,
}; |
export default (opts: { req: any }): {
user: {
isAuthenticated: boolean;
userId?: string;
userRole?: string;
}
} => {
const { req } = opts;
if (!req.headers) {
return { user: { isAuthenticated: false } }
}
const user = {
isAuthenticated: req.headers['is-authenticated'] === 'true',
... |
export * from './usersettings-container.component';
export * from './usersettings-container.module'; |
/* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */
import {
last,
createLogger,
pickValueIgnoreCase,
ErrorWithCause,
webEOL,
unixEOL
} from '@sap-cloud-sdk/util';
import { HttpResponse } from '../../../http-client';
const logger = createLogger({
package: 'core',
messageCo... |
// Copyright 2017-2020 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { AccountId } from '../interfaces/runtime';
import BN from 'bn.js';
import { bnToBn } from '@polkadot/util';
import Bytes from '../primitive/Bytes';
import U32 from '../primitive/U32';
// there are all revers... |
import { Table, Model, Column, DataType, IsEmail, AllowNull, Default, HasOne, HasMany, PrimaryKey } from 'sequelize-typescript';
@Table({
timestamps: false,
freezeTableName: true,
tableName: 'Data',
})
export class Data extends Model<Data> {
@AllowNull(false)
@Column(DataType.STRING)
public ni... |
import { Component, OnInit } from '@angular/core';
import {User} from "../../models/User";
import {UserDataAccessService} from "../../data-access/user-data-access.service";
import {CommonService} from "../../services/common.service";
import {AuthenticationService} from "../../services/authentication.service";
import {T... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RadialMenuComponent } from './radial-menu.component';
describe('RadialMenuComponent', () => {
let component: RadialMenuComponent;
let fixture: ComponentFixture<RadialMenuComponent>;
beforeEach(async(() => {
TestBed.configure... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {SharedModule} from "./core/modules/shared.module";
@NgModule({
declarations: [
AppComponent,
],... |
import UserAdminPage from 'app/page/admin-user-list-page';
import { signInWithAccessToken } from 'utils/test-utils';
import { config } from 'resources/workbench-config';
import navigation, { NavLink } from 'app/component/navigation';
import AdminTable from 'app/component/admin-table';
import UserProfileInfo from 'app/p... |
import { Grid } from '@mui/material';
import PageTitleWrapper from 'src/components/PageTitleWrapper';
import PageHeader from '@/components/PageHeader';
import GatewayPoolStats from '@/content/Dashboards/GatewayPoolsOverview/GatewayPoolStats';
function DashboardGatewayPoolsOverviewContent() {
return (
<>
... |
/**
* Enables toggling of Bulma navbar
* This is a simple function that thinks that we must only have a single navbar in a document
* https://bulma.io/documentation/components/navbar/#navbar-menu
*/
export function enableNavbarToggle() {
const navbarBurgerElt = document.querySelector(".navbar-burger");
if (navb... |
import UserLogin = types.UserLogin;
import Server = types.Server;
import ExtendedUser = types.ExtendedUser;
import {State} from "./State";
import {apiClient} from "../api/ApiClient";
interface IAction {
type: string;
}
export const AUTHENTICATE_USER = "AUTHENTICATE_USER";
export type AuthenticateAction = IAction;... |
import React from 'react';
import {
A, Bold,
Code, Details,
Dl,
Em,
Gray,
H,
Image, Kbd,
Line, Mark, Message, NoteBottom, NoteTop,
Ol,
P,
Prism, Q, Quote,
Score, Spoiler,
Strike,
Strong,
Ul, Youtube, HtmlGuideMessage, Name, ProgrammingGuideMessage, HTMLTextPosts, Dt, Dd
} from '@/component... |
import AggregateRoot from '../aggregate-root';
import UniqueEntityID from '../unique-entity-id';
import IDomainEvent from './domain-event.interface';
export default class DomainEvents {
private static handlersMap: any = {};
private static markedAggregates: AggregateRoot<any>[] = [];
/**
* @method ... |
import 'reflect-metadata';
import { createApp } from './app';
const port = 3000;
createApp()
.then(app => app.listen(port, () => console.log(`Listening on port ${port}`)))
.catch(error => console.log(error)); |
import { h, defineComponent, computed, ref, watch, reactive, onMounted, onUnmounted, mergeProps, PropType } from "vue"
import { View } from '@tarojs/components'
import { AtCountDownProps, AtCountdownState } from 'types/countdown'
import AtCountdownItem from "./item"
const toSeconds = (
day: number,
hours: number,... |
import { Capability } from '../core/Capability';
import { Configuration } from '../configuration';
import { UniversalProperties } from './properties';
enum Properties {}
export class Universal extends Capability<`${Properties}` | `${UniversalProperties}`> {
static readonly Identifier = {
msb: 0,
lsb: 21,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.