text stringlengths 10 953k |
|---|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AccountantApprobationComponent } from './accountant-approbation.component';
describe('AccountantApprobationComponent', () => {
let component: AccountantApprobationComponent;
let fixture: ComponentFixture<AccountantApprobationCompon... |
import { Module } from '@nestjs/common';
import { CqrsModule } from '@nestjs/cqrs';
import { AccountsModule } from '../accounts/accounts.module';
import { CurrenciesModule } from '../currencies/currencies.module';
import { OrdersModule } from '../orders/orders.module';
import { PricesModule } from '../prices/prices.mod... |
/*
------------------------------------------------------------------------------
This code was generated by Amplication.
Changes to this file will be lost if the code is regenerated.
There are other ways to to customize your code, see this doc to learn more
https://docs.amplication.com/docs/how-to/custom-code
-... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ComponentRef} from '@angular/core';
import {ActivatedRoute, ActivatedRouteSnapshot} from './router_state';
... |
import { CreditCard } from './creditcard'
import { InvalidCreditCard } from '../../exceptions'
describe('Cart', () => {
beforeEach(() => {})
it('Raise on invalid expiration date format', async () => {
const shouldFail = () => new CreditCard('1234-4321-1234-4321', '03/20', '123')
expect(shouldFail).toThrow... |
import type { Components, JSX } from "../dist/types/interface";
interface IonButton extends Components.IonButton, HTMLElement {}
export const IonButton: {
prototype: IonButton;
new (): IonButton;
}; |
import isNumericString from '../utils/isNumericString';
import Dato from '../utils/dato/Dato';
import dayjs from 'dayjs';
import { datoToString } from '../utils/dato/datoToString';
import ValidationResult from './ValidationResult';
export interface ValidateDagerResult extends ValidationResult {
key:
| 'VALIDATE_... |
import { render, screen } from '@testing-library/react';
import Layout from '.';
jest.mock('react-i18next', () => ({
useTranslation: () => ({ t: (key: string) => key }),
}));
describe('Layout component', () => {
test('Should be defined', async () => {
const component = render(<Layout />);
expect(componen... |
import { useMemo, useEffect, useRef, useCallback, useState } from 'react';
import { useIntl, FormattedMessage } from 'react-intl';
import { useParams } from 'react-router-dom';
import { Button, Space, Toast, createToast } from '@binance-chain/honeycomb';
import { useAppSelector, useAppDispatch, useWindowSize } from '@... |
import {Component, Input} from '@angular/core';
import {MatDialog} from '@angular/material';
import {MapPopupComponent} from '../map-popup/map-popup.component';
import {Vector2} from '../../../core/tools/vector2';
@Component({
selector: 'app-map-position',
templateUrl: './map-position.component.html',
styl... |
import * as React from 'react';
import { Platform, StyleSheet, useColorScheme } from 'react-native';
import { View, Text } from '../../../components/Themed';
import {heightPercentageToDP as hp, widthPercentageToDP as wp} from 'react-native-responsive-screen';
import { TouchableOpacity } from 'react-native-gesture-handl... |
/**
* Copyright 2018 Comcast Cable Communications Management, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/** @internal */
export const declareIndex = (
proto: any,
id: string,
idx: number,
strided = true,
defNumeric = true
) => {
const get =
idx > 0
? strided
? function () {
return this.buf[this.offset + idx * this.stride];
... |
import { Component, OnInit } from '@angular/core';
import { UserService } from '../user.service';
import { Router } from '@angular/router';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { passwordMatch } from 'src/app/shared/validators/password-match';
@Component({
selector: 'app-profil... |
import {
ICalloutProps,
IContextualMenuProps,
IFontIconProps,
IIconProps,
ILabelProps,
IListProps,
IPersonaPresenceProps,
PersonaPresence,
} from '@fluentui/react';
import { ISlotProp } from '@fluentui/foundation-legacy';
// TODO: All contents of this file should be moved to each respective component a... |
import isFunction from 'isFunction';
import './globals.d';
// eslint-disable-next-line complexity
const isDeepCopyOf = (
source: any,
clone: any
): { pass: boolean; message: () => string } => {
const queue = [[source, clone]];
outer: while (queue.length) {
// @ts-expect-error - ts thinks it may be undefi... |
import {ArchitectElement} from '../architect-element';
import {hasClass} from '../../utils/has-class';
const template = `<div class="jumbotron">
<h1 class="display-4">Hello, world!</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or inf... |
import axios,{AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios';
const instance : AxiosInstance = axios.create({
baseURL: ` http://127.0.0.1:3500`
})
instance.interceptors.request.use((request:AxiosRequestConfig) =>{
request.headers[`My authentication`] = 'AUTH092332'
console.log(request.url... |
import { Platform } from '@angular/cdk/platform';
import { Component, ComponentRef, EventEmitter, Input } from '@angular/core';
import { NgxSmartBannerSettings } from './settings.interface';
import { CookieService } from './utils/cookie-service';
@Component({
selector: 'nc-ngx-smart-banner',
templateUrl: './ng... |
import {
css,
CSSResultGroup,
html,
LitElement,
PropertyValues,
TemplateResult,
} from "lit";
import { customElement, state } from "lit/decorators";
import { DOMAINS_TOGGLE } from "../../../common/const";
import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element";
import { computeDom... |
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import CreateUserDto from './dto/createUser.dto';
import User from './users.entity';
@Injectable()
export class UsersService {
constructor(
@InjectRepo... |
import { Request, Response } from "express";
import { AuthenticateUserService } from "../../services/users/AuthenticateUserService";
class AuthenticateUserController {
async handle(request: Request, response: Response): Promise<Response> {
const { email, password } = request.body;
const authenticateUserServ... |
import React, { useEffect, useState } from 'react';
import { Button, Col, Input, Row, Select, Typography } from 'antd';
import styled from 'styled-components';
import { Orderbook } from '@project-serum/serum';
import {
getExpectedFillPrice,
getMarketDetails,
getMarketInfos,
getMarketOrderPrice,
getSelectedTok... |
import { useEffect } from 'react';
import { FiX } from 'react-icons/fi';
import styles from './TableFilter.module.scss';
type TableFilterProps = {
title: string;
onClose: () => void;
};
export const TableFilter: React.FC<TableFilterProps> = ({
title,
children,
onClose,
}) => {
useEffect(() => {
if (t... |
import { loadSchema, loadSchemaSync } from '@graphql-tools/load';
import { CodeFileLoader } from '@graphql-tools/code-file-loader';
import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader';
import { printSchema, buildSchema, GraphQLSchema } from 'graphql';
import { runTests, useMonorepo } from '../../../.... |
import {RendererService} from '../../renderer/renderer.service';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {AtftMeshModule} from './atft-mesh.module';
import {BoxMeshComponent} from './box-mesh.component';
import {StatsService} from '../../stats';
describe('mesh', () => {
describ... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('browser... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Madcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import * as Webpack from 'webpack';
import {resolve} from 'path';
/** ビルド結果出力先 */
const BUILT_PATH = resolve(__dirname, './dist');
/** ビルド種別 */
const BUILD_VARIANT = process.env.NODE_ENV;
const config: Webpack.Configuration = {
target: 'node',
mode: BUILD_VARIANT === 'production' ? 'production' : 'development',
... |
import {_KeysAndAttributes} from './_KeysAndAttributes';
import {NodeHttpOptions as __HttpOptions__} from '@aws-sdk/types';
import * as __aws_sdk_types from '@aws-sdk/types';
/**
* <p>Represents the input of a <code>BatchGetItem</code> operation.</p>
*/
export interface BatchGetItemInput {
/**
*/
Reques... |
export function renew<%= capitalizeCustomerSafeName %>AccessToken(): Promise<string> {
let renewTokenPromise = new Promise<string>((resolve, reject) => {
let xhr = new XMLHttpRequest();
xhr.open('POST', '/renewtoken');
xhr.onreadystatechange = handler;
xhr.setRequestHeader('Accept', 'application/text... |
import { IsNumber, IsString } from 'class-validator';
export class AddRoleDto {
@IsString()
readonly value: string;
@IsNumber()
readonly userId: number;
} |
import { Component, OnInit, Input, OnDestroy, Output, EventEmitter } from '@angular/core';
import { ISubscription } from 'rxjs/Subscription';
import { ObraSocialService } from './../../services/obraSocial.service';
import { ProfeService } from './../../services/profe.service';
import { SugerenciasService } from '../../... |
export interface Action {
name?: string;
icon?: string;
}
export class Power implements Action{
name?: string;
icon?: string;
power: boolean;
}
export class Height implements Action{
name?: string;
icon?: string;
height: number;
}
export class Open implements Action{
name?: string... |
class QueueController {
queue: QueueEntry[];
constructor() {
this.queue = new Array<QueueEntry>();
}
add(username: string, timestamp: Date): boolean {
if (this.queue.find((entry) => entry.username === username)) {
console.error(`Cannot add ${username}. It is already in the queue`);
return fa... |
export * from "./formatters";
export * from "./social-links"; |
export * from './InstanceReader';
export * from './details';
export * from './instance.write.service';
export * from './instanceType.service';
export * from './templates'; |
import vuePlugin from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
// usually @zardoy/vit is being used intead
export default defineConfig({
base: './',
plugins: [vuePlugin()],
}) |
/// <reference path="fourslash.ts" />
// @Filename: /a.ts
////export function /*1*/foo(): void {}
// @Filename: /b.ts
////import { foo as oof } from "./a";
verify.noErrors();
verify.baselineFindAllReferences('1') |
exports.readData = require("./read-data")
exports.requestData = require("./request-data") |
import { NestFactory } from '@nestjs/core';
import { Transport } from '@nestjs/microservices';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.createMicroservice(AppModule, {
transport: Transport.RMQ,
options: {
urls: [
'amqps://xpsgnyxv:LO-4... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddVerifiedGivebackDefaults1620412189526
implements MigrationInterface
{
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE project ALTER COLUMN verified SET DEFAULT false`,
);
await que... |
export class TokenPayload {
sub: string;
username: string;
} |
import { LocalModules } from "./LocalLoader";
import { WorldEntity } from "../ecs/WorldEntity";
export declare function instantiateAsyncModule<T>(moduleName: string, moduleStorage: LocalModules, world?: WorldEntity, config?: any): Promise<T>; |
import { SearchIcon } from '@chakra-ui/icons';
import { Input, InputGroup, InputLeftElement } from '@chakra-ui/react';
import React from 'react';
export interface ISearchBarProps {
isDisabled?: boolean;
onSearch?: (e: any) => void;
}
function SearchBar({ isDisabled, onSearch }: ISearchBarProps) {
return (
... |
import { Component, Input } from '@angular/core'
@Component({
selector: 'app-profile-card',
template: `
<div class="card card-profile">
<div class="card-header" [style.background-image]="backgroundImage"></div>
<div class="card-body text-center">
<img class="card-profile-img" src="{{ user.p... |
import React from 'react';
import { Layout, Container } from '../components';
const Photography = ({ articles }) => {
return (
<Layout
pathname={'/photography'}
pageTitle='Photography'
pageDescription='Showcasing some of my best shots till date.'
>
<Container>
<p className='pag... |
import { tick } from 'svelte';
/**
* Auto focus node when rendered. Useful for inputs
*/
export function autoFocus(node: HTMLInputElement | HTMLTextAreaElement): SvelteActionReturnType {
// TODO: Add options to "restoreFocus" on destroy()
// const elementFocused = document.activeElement as HTMLElement;
// TO... |
import * as React from "react";
import {
Image,
View,
StyleSheet,
ViewProps,
StyleProp,
ImageStyle,
} from "react-native";
import {
COMPONENT_TYPES,
GROUPS,
createNumberProp,
createColorProp,
createIconProp,
} from "../core/component-types";
// This must use require to work in both web as a publ... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()... |
export class User {
_id?: string;
name: string;
email: string;
get id(): string {
return this._id;
}
} |
import { Menu, MenuItemConstructorOptions, BrowserWindow } from 'electron';
import { createMineOptionsWindow } from './windows/optionsWindow';
const isMac = process.platform === 'darwin'
function buildTemplate (win: BrowserWindow): MenuItemConstructorOptions[] {
const gameSubMenu: MenuItemConstructorOptions = {
... |
import * as React from 'react';
export interface OpenStateProps {
open?: boolean;
onOpen?: () => void;
onClose?: () => void;
}
export const useOpenState = ({ open, onOpen, onClose }: OpenStateProps) => {
const isControllingOpenProp = React.useRef(typeof open === 'boolean').current;
const [openState, setIsOp... |
import { Column, Entity, Index, PrimaryColumn, OneToMany } from "typeorm";
import { ReservaOficio } from './reservaOficio.entity'
@Index("CR_TIP_OFICIO_PK", ["id"], { unique: true })
@Entity("CR_TIP_OFICIO")
export class TipoOficio {
@PrimaryColumn({
type: "number",
name: "TOF_CODIGO"
})
id: number;
... |
import request from 'templates/react/src/apis/demo/node_modules/@/helpers/request'
export function demoApi() {
return request({
url: '/demo',
})
} |
import React, {MutableRefObject, useEffect, useRef, useState} from 'react';
import {BoxProps, CylinderProps, WheelInfoOptions} from '@react-three/cannon';
import * as THREE from 'three';
import {DebouncedFunc} from 'lodash';
import {useFrame} from '@react-three/fiber';
import {RootState} from '@react-three/fiber/dist/d... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
import express from 'express';
import routes from './routes';
import cors from 'cors';
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.listen(3333); |
export const filePdfPlus24F: string; |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {IonicModule} from '@ionic/angular';
import {DashboardPageRoutingModule} from './dashboard-routing.module';
import {DashboardPage} from './dashboard.page';
@NgModule({
imports: ... |
import React, { FC, useCallback, ReactElement, useState } from "react";
import { InputText } from "primereact-working/inputtext";
import { GridCol } from "components/atoms/Grid";
const uuid = require('react-uuid');
export interface InputProps {
id?: string;
label: string;
value?: string;
type?: string;
name?:... |
import React from 'react';
export default function TrialBooking() {
return <div />;
} |
import React, { FC } from 'react';
import { ClickOutsideWrapper } from '@grafinsight/ui';
import { PanelHeaderMenuProvider } from './PanelHeaderMenuProvider';
import { PanelHeaderMenu } from './PanelHeaderMenu';
import { DashboardModel, PanelModel } from '../../state';
interface Props {
panel: PanelModel;
dashboar... |
import 'google-closure-library/closure/goog/net/mockiframeio';
import alias = goog.net.MockIFrameIo;
export default alias; |
// Imports:
import { Coin, Coins, Delegation, LCDClient } from '@terra-money/terra.js';
import { Pagination } from '@terra-money/terra.js/dist/client/lcd/APIRequester';
import { terra_data } from '../../tokens';
import { initResponse, query, addNativeToken, addToken } from '../../terra-functions';
import type { Request... |
/*
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
export { ForceFunctionContainerlessStartExecutor } from './ForceFunctionContainerlessSta... |
import { RawStickerData } from '@src/api/entities/sticker'
export interface RawStickerPackData {
id: string
stickers: RawStickerData[]
name: string
sku_id: string
cover_sticker_id?: string
description: string
banner_asset_id: string
} |
import {Injectable} from '@angular/core';
import {MapObject} from '../models/map-object';
@Injectable({
providedIn: 'root'
})
export class HistoryService {
private historyLimit = 1000;
private history: HistoryEntry[] = [];
public pushEntry(entry: HistoryEntry): void {
this.history.push(entry);... |
import {Track, TrackQL} from '../track/track';
import {Episode, EpisodeQL} from '../episode/episode';
import {PlayQueue, PlayQueueQL} from '../playqueue/playqueue';
import {Field, Int, ObjectType} from 'type-graphql';
import {Entity, ManyToOne, ORM_INT, Property, Reference} from '../../modules/orm';
import {Base} from ... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const AiOutlineBug: IconType; |
import { Component } from '@angular/core';
const HEROES: Hero[] = [
{ id: 11, name: 'Mr. Nice' },
{ id: 12, name: 'Narco' },
{ id: 13, name: 'Bombasto' },
{ id: 14, name: 'Celeritas' },
{ id: 15, name: 'Magneta' },
{ id: 16, name: 'RubberMan' },
{ id: 17, name: 'Dynama' },
{ id: 18, name: 'Dr IQ' },
... |
/*
* Copyright 2018 Expedia, 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... |
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { configureTestSuite } from './../../util-test/util-expect.spec';
import { PoControlPositionService } from './../../services/po-control-position/po-control-position.service';
import { PoPopoverComponent } from './po-popover.com... |
import {useState, useEffect} from 'react';
import moment from "moment";
import 'moment/locale/es';
// const system_date = new Date(); //Extraer la fecha del sistema
const local_moment = moment().locale("es"); //Extraemos la fecha local
const SemanaActual = local_moment.format("w");
export const useSemanaHooks =... |
import HttpError from './http.error';
import IError from '../interfaces/error.interface';
/**
* Validation error
*/
class ValidationError extends HttpError {
/**
* Validation error constructor
* @param {number=} status Error code
* @param {string=} message Console message
* @param {IError=} error Respo... |
export class PagedList<T> {
rowsCount: number;
data: T[];
}
export class DropDownItem {
constructor(value: string, label: string) {
this.value = value;
this.label = label;
}
value: string;
label: string;
}
export class RichDropDownItem {
row: RowData;
constructor(row: RowData) {
this.row... |
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity('farm')
export class Farm {
@PrimaryColumn()
contractAddress: string;
@Column({ nullable: true })
created?: number;
@Column({ nullable: true })
updated?: number;
@Column({ nullable: true, type: 'decimal', scale: 18, precision: 36 })
ba... |
import * as functions from "firebase-functions";
import * as admin from "firebase-admin";
import {datenbank, region} from "../init";
import {setTask} from "./setTask";
export const beendeSaison = functions.region(region).https.onRequest(async (request, response) => {
await datenbank.ref("allgemein/saisons/countdowns/... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ByteSwitchComponent } from './byte_switch/byte_switch.component';
import { TactileSwitchComponent } from './tact_switch/tact_switch.component';
@NgModule({
declarations: [
ByteSwitchComponent,
Tactil... |
/*
* Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
* 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 withou... |
import { map } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { AppSettingsService } from '../app-settings/app-settings.service';
import { Observable } from 'rxjs';
import { HttpClient, HttpParams } from '@angular/common/http';
@Injectable()
export class CervicalCancerScreeningSummaResourceS... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { SearchResultComponent } from './search-result/search-result.component';
import { ErrorComponent } from './error404/error404.component';
const routes: Routes ... |
const PrisonerFriendlyChat: DataJob = {
playerInterruptible: true,
checkOverrideOnDamage: CheckJobOverrideOnDamageMode.Always,
alwaysShowWeapon: false,
neverShowWeapon: false,
suspendable: true,
casualInterruptible: true,
collideWithPawns: false,
isIdle: false,
taleOnCompletion: null,
makeTargetPris... |
import React from 'react';
import { act, fireEvent, render } from '@testing-library/react';
import '@testing-library/jest-dom';
import { WorkbenchView, Workbench } from '../workbench';
import {
ActivityBarModel,
IActivityBar,
IMenuBar,
IPanel,
ISidebar,
IStatusBar,
IWorkbench,
MenuBarMo... |
import * as fs from 'fs-extra'
export async function updateCache(cachePath: string, cache: any) {
await fs.ensureFile(cachePath)
await fs.writeJSON(cachePath, cache)
}
function _mtime(f: any): Date {
return fs.statSync(f).mtime
}
function _isStale(cachePath: string, cacheDuration: number): boolean {
const pa... |
export enum IpcEvent {
ENTRY_CREATED='IPC_EVENT.ENTRY_CREATED',
REGISTER_TAB='IPC_EVENT.REGISTER_TAB',
ADD_ENTRY='IPC_EVENT.ADD_ENTRY',
REQUEST_CACHED_URLS='IPC_EVENT.REQUEST_CACHED_URLS',
RESPONSE_CACHED_URLS='IPC_EVENT.RESPONSE_CACHED_URLS',
FORWARD_TO_POPUP='IPC_EVENT.FORWARD_TO_POPUP'
} |
import '../scss/toast.scss';
import Toast from './Toast';
import ToastCollection from './ToastCollection';
export default class ToastManager {
private readonly _closeHandler;
private readonly _config;
activeToasts: ToastCollection;
template: ((data: any) => string) | undefined;
/**
* Create a n... |
import React from 'react'
export function useHasMounted(): boolean {
const ref = React.useRef(false)
React.useEffect(() => {
ref.current = true
function reset() {
ref.current = false
}
return reset()
}, [])
return ref.current
} |
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { Todo } from '../todo/todo';
@Component({
selector: 'app-todo-list-item',
templateUrl: './todo-list-item.component.html',
styleUrls: ['./todo-list-item.component.css']
})
export class TodoListItemComponent {
@Input() todo: Todo;
... |
import {Component, OnInit} from '@angular/core';
import {Resource} from '../../model/resource';
/** The main landing page for the application. It primarily contains the graph and resource select. */
@Component({
selector: 'app-main-page',
templateUrl: './main_page.component.html',
styleUrls: ['./main_page.compon... |
import * as React from "react";
import { CarbonIconProps } from "../../../";
declare const QCircuitComposer32: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default QCircuitComposer32; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS
import camelCase from "./js/camelCase";
import caseSin... |
/* eslint-disable no-restricted-syntax */
/* eslint-disable @typescript-eslint/no-parameter-properties */
/* eslint-disable @typescript-eslint/no-redeclare */
import { singleton, contrib, Contribution, Syringe } from 'mana-syringe';
import type * as React from 'react';
import { ApplicationContribution } from '../applic... |
import React from 'react';
import { Modal, Button } from 'reactstrap';
import app from '../../../app';
const ConfirmationModal = (): JSX.Element => {
return (
<Modal className="smallModal darkModal" isOpen={app.vars.isOpen} toggle={() => app.vars.closeModal()}>
<div className="modal-header justify-conten... |
import { v4 } from 'uuid';
import { client } from "../client";
import { Test } from "../test";
const test = new Test('net-ping');
const uuid = v4();
client.write('command_request', {
command: 'ping',
origin: {
type: 'player',
uuid,
request_id: '',
player_entity_id: 0
},
... |
import "regenerator-runtime/runtime";
const MODE = "prod";
const endPoints = {
dev: "http://localhost:8787",
prod: "https://api.gametools.network",
};
export default class JsonClient {
constructApiUrl(method: string, params: { [name: string]: string }): string {
params = params || {};
let paramStr = ""... |
import styled from '@emotion/styled'
import { Menu, Avatar, Modal } from 'antd'
import { colors } from '@condo/domains/common/constants/style'
import React, { ComponentProps, useCallback, useState } from 'react'
import Router, { useRouter } from 'next/router'
import { useAuth } from '@core/next/auth'
import { useIntl }... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MYLOTTOCOIN</source>
<translation>Tentang MYLOTTOCOIN</translation>
</message>
<message>
... |
export * from './bus';
export * from './log'; |
/**
* @license
* Copyright 2016-2018 the original author or 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
*
* Unl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.