blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
a41e25ef231b358d342219f525b7f46278981df0 | TypeScript | rluvaton/bulk-npm-publish | /src/user-option/interactive/user-option-prompt-getter.ts | 2.59375 | 3 | import { IUserOptionGetter } from '../i-user-option-getter';
import { DEFAULT_USER_OPTIONS } from '../user-options';
import prompts from 'prompts';
import { logger } from '../../logger';
import { deepClone } from '../../utils';
import {
validateStorage,
validateDestPublishScriptFilePath,
validateNpmPublishOptions... |
8d4a1f492e5e34e41b426e9d71fe9539e9383f6b | TypeScript | shawvyu/deviceone | /ui/do_TencentSVPlayerView.d.ts | 2.671875 | 3 | import { UiBasicInstance } from "../base/uiBase";
export interface DoTencentSVPlayerView extends UiBasicInstance {
/**
* 应用AppId
*
* 说明 : 和fileId配合使用(enableVod=false无效)
*/
appId: string;
/**
* 播放文件Id
*
* 说明 : 和appId配合使用(enableVod=false无效)
*/
fileId: string;
/**
* 是否使用vod点播
*
... |
5cad33c88c08f74b57fffa1dce90498b9e3e0c63 | TypeScript | NingyuanXu/CPSC436_Project | /src/frontend/chat_room/Actions/index.ts | 2.6875 | 3 | import {Action, Dispatch} from "redux";
import {getCurrentUser, getUserInfo, user} from "../../shared/globleFunctions";
import {ISingleMessage, MessageStatus} from "../components/ChatRoomBubbles";
import { IChat } from "../../../shared/ModelInterfaces";
export enum ChatRoomActions{
RECEIVE_MESSAGE,
RECEIVE_INI... |
e7b1a6358b5c894cc87ab723e9d4233ec4a968c7 | TypeScript | KostiaSA/KostiaSA_WmsAndroid | /src/core/speak.ts | 2.609375 | 3 | import {
View,
Text,
Navigator,
Route,
fetch as IFetch,
NativeModules,
AppRegistry,
Vibration,
BackAndroid
} from "react-native";
import * as tts_ from "react-native-android-speech"
let tts = tts_ as any;
function speak(text: string) {
console.log(tts);
tts.speak({
... |
dcb626bdd193d8fdaee6a840af269dfcfd7e95fb | TypeScript | dwtcourses/kanban | /src/app/shared/column.model.ts | 3.046875 | 3 | export class Column{
title: string;
tasks: string[];
constructor(title: string, tasks: string[]){
this.title = title;
this.tasks = tasks;
}
} |
53b661fc33f4e1fcf21eaeb32f6e374a7e9aeb12 | TypeScript | qazirashid/abeamer | /client/lib/js/utilities.ts | 2.703125 | 3 | "use strict";
// uuid: 81ec129f-b642-498a-8b8b-f719c1d3bf21
// ------------------------------------------------------------------------
// Copyright (c) 2018 Alexandre Bento Freire. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for details
// -------------------------------------... |
8bed49c27421b20cfde18432ab6e38d25140e3a8 | TypeScript | GZJack/wensdk | /src/state/Abc.ts | 2.984375 | 3 | // 导出 User 整个对象
export default {
// 状态值的属性名称,必须时字符串,要求 大驼峰命名法,单词首字母大写,尽可能简写,数组尾数尽量使用 s 结尾
name:"User",
// 这里是 state 额外配置参数,这里的配置将决定着 mutations actions getters中的方法
config:{
// 当前 state 的类型,只有 Object 和 Array 这两种类型
type:Object, // 选项 ['Object','Array']
// 是否自动读取写入,当等于 true 的时候,就会自动 ... |
dcec486bd6158ce57e6d0284876e51047c294be2 | TypeScript | angusm/toolbox-v2 | /src/toolbox/utils/string/get-content-in-first-set-of-parentheses.ts | 3.265625 | 3 | import {ErrorService} from "../error/service";
function getContentInFirstSetOfParentheses(s: string): string {
if (s.indexOf('(') === -1 && s.indexOf(')') === -1) {
return '';
}
if (s.indexOf('(') === -1 && s.indexOf(')') !== -1) {
ErrorService.throw(
"Value passed to getContentInFirstSetOfParenthe... |
232af80f563ae3ac7bd77c0f93cb0f5318435fc9 | TypeScript | deadwin/algorithmByJS | /src/problems/KthLargest.ts | 3.671875 | 4 | class KthLargest {
private stack: Array<number> = null;
constructor(k: number, nums: number[]) {
this.stack = new Array(nums.length);
}
add(val: number): number {
}
}
class MinHeap {
private data: Array<number> = null;
private comparator: Function;
constructor(data = []) {
... |
48b4b62c3daaef59b5827014b9e150c56ecf43a8 | TypeScript | appnexus/anx-api | /src/concurrencyAdapter.ts | 2.8125 | 3 | import * as _ from 'lodash';
import { IRequestOptionsInternal } from './api';
import { IRequestQueueItem } from './request-queue';
export interface IConcurrencyQueueOptions {
limit: number;
request: (opts: any) => any;
}
export class ConcurrencyQueue {
private options: IConcurrencyQueueOptions;
private queue: IReq... |
e4d5a71f7c7eee0077e0f3e0a82f4aeda876dee4 | TypeScript | sebasgamboa27/PathFinding-Visualizer-Angular | /PathFinder/src/app/grid/grid.component.ts | 2.609375 | 3 | import { Component, OnInit } from '@angular/core';
import { NodeComponent } from '../node/node.component';
@Component({
selector: 'app-grid',
templateUrl: './grid.component.html',
styleUrls: ['./grid.component.css']
})
export class GridComponent implements OnInit {
board: NodeComponent[][] = [];
startX: num... |
8c67cc75663f7469a71bbcd3320b04f42793414a | TypeScript | visgotti/Gotti.js | /lib/core/System/SharedSystem.d.ts | 2.828125 | 3 | import System from "./System";
/**
* Shared system is an isolated system from remote communications.
* If you need a system that runs independently from needed server functionality
* and is meant to be ran on both server and client, then this can accomplish that
* while also dispatching local messages.
*/
export d... |
dd5f27e8c8c3d2ce5d52322b692bed00b6ef7c84 | TypeScript | dpherod/angular-marvel-heroes | /client/src/app/state/heroes/reducers/heroes.ts | 2.59375 | 3 | import {createEntityAdapter, EntityAdapter, EntityState} from "@ngrx/entity";
import {Hero} from "../../../core/models/hero.model";
import {
ADD_HERO_DIALOG_CLOSE, ADD_HERO_DIALOG_OPEN, DELETE_HERO_SUCCESS, HeroesAction, LOAD_HERO_SUCCESS, LOAD_HEROES,
LOAD_HEROES_SUCCESS, SELECT_HERO, UPDATE_HERO_SUCCESS
} from ".... |
01217ec6dc09db2fb265fe6bae3e11579704d07b | TypeScript | InteractiveTimmy/js-abp | /src/middleware/connect/express-connector/express-connector.ts | 2.546875 | 3 | // external dependencies
import Express, {
Application,
json,
Request,
Response,
} from 'express';
import { Server } from 'http';
// internal dependencies
import { ConnectMiddleware, Structure, Payload } from '../../../models/index';
import { uuid } from '../../../utils/index';
export class ExpressConnector ... |
d3a9209a92d9a1879ca395570882db0c27951c0e | TypeScript | Kujikeo/cabelex | /src/services/mirage/index.ts | 2.59375 | 3 | import {
createServer,
Model,
Factory,
Response,
ActiveModelSerializer,
} from "miragejs";
import faker from "faker";
type Filial = {
nome: string;
total_funcionarios: number;
};
type User = {
email: string;
nome: string;
};
type Funcionario = {
nome: string;
nome_filial: string;
};
export functi... |
4fda25ff188d2af47996dee75e0532aeeec77f85 | TypeScript | thisisjacopo/Adidas-TC-SubscriptionService | /src/subscriptions/schemas/Subscriptions.schema.ts | 2.59375 | 3 | import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
export type SubscriptionDocument = Subscription & Document;
@Schema()
export class Subscription{
@Prop()
id: string
@Prop({required: true})
email: string
@Prop()
firstName: string
@Prop()
gender: string
@Prop({require... |
2b494cd6a90c95166a54352c75942a99781bc4e6 | TypeScript | Enitoni/gears | /website/src/modules/docs/helpers/getConstructorSignatureString.ts | 2.921875 | 3 | import { ConstructorSignature } from "../types/ClassDescriptor"
export const getConstructorSignatureString = (descriptor: ConstructorSignature) => {
const parameterString = descriptor.parameters
.map(descriptor => {
const { name, defaultValue } = descriptor
let str = name
if (defaultValue) {
... |
12f32f1c401df1e9881dddc816730aa5693214d2 | TypeScript | sirhypernova/forge | /src/data-providers/object-provider.ts | 3.03125 | 3 | import DataProvider from "./data-provider";
import {default as _} from "lodash";
/**
* @extends DataProvider
*/
export default class ObjectProvider extends DataProvider {
protected data: any;
/**
* @param {object} data
*/
constructor(data: any) {
super();
/**
... |
36a562f83b9daaee39149018f21273ea1e1a22dd | TypeScript | CamiloRozoP/UnitTestSample | /jasmine-karma/src/app/app.component.spec.ts | 2.59375 | 3 | import { TestBed, async, ComponentFixture } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { By } from '@angular/platform-browser';
describe('AppComponent', () => {
let component: AppComponent;
let fixture: Compone... |
221f735eabb19b8744328aaee4ec7a7e6c4545fa | TypeScript | hwanderlust/shiritori | /src/scripts/game/clock.ts | 2.921875 | 3 | import { get } from "../helpers"
const defaultTime = 10;
export default function Clock() {
window.sessionStorage.setItem("time", `${defaultTime}`);
const clockEl: HTMLElement = get("clock");
let currentTime = defaultTime;
let interval;
let callBuzzer: () => void;
return {
init: function (cb): void {
... |
20dc6922ab3f7d3824dc9144c3e6f8ea422a8abf | TypeScript | TarunShrivastva/angular-zomato-app | /src/app/gallery/gallery-thumbnail/gallery-thumbnail.model.ts | 2.53125 | 3 | export interface GalleryThumbnail {
id: number
name: string
image: string
street: string
country_id: number
state_id: number
city_id: number
created_at: Date
updated_at: Date
deleted_at: Date
foods: Food[]
}
export interface Food {
[index: number]: FoodData[] ... |
ff06b86828f34f681cb5cd544e7fc0498e717558 | TypeScript | thinktecture/2d-3d-usergroup-2015 | /2D/source/example9.ts | 3.296875 | 3 | /// <reference path="../typings/tsd.d.ts" />
/// <reference path="example9_arc.ts" />
/**
* Rotating Pie Chart with MouseHover and TouchMove
*/
class Example9 {
/**
* The canvas where the chart will be drawn to
*/
private _canvas: HTMLCanvasElement;
/**
* The 2D context of the canvas
... |
2311f77c8d6eeed54012823badeabfedae442028 | TypeScript | chrisryanouellette/Airtable_Mapping_App | /frontend/types.ts | 2.640625 | 3 | export interface Mappings {
bases: {
[refName: string]: BaseMapping
}
tables: {
[refName: string]: TableMapping
}
views: {
[refName: string]: ViewMapping
}
}
export interface BaseMapping {
id: string
name: string
refName: string
tables: {
[id: string]: string
}
}
export interface TableMapping {
id:... |
a37a5f68b2629a804a4786a375e448ebd9d96c99 | TypeScript | nherault/renderer-system | /src/renderer/commons/entity/entity-factory.ts | 2.796875 | 3 | import { ShapeFactory } from '../shape/shape-factory';
import { Vector2DData } from '../vector-2d/vector-2d.types';
import { Entity2DData } from './entity.types';
export class Entity2DFactory {
public static create(
position?: Vector2DData, velocity?: Vector2DData,
size?: Vector2DData, acceleratio... |
4f3c8b07ff14c4a1326509be13f72fe5a12de9d5 | TypeScript | bishrant/MapMyProperty | /src/app/shared/store/storage.metareducer.ts | 2.578125 | 3 | function setSavedState (state: any) {
localStorage.setItem(localStorageKey, JSON.stringify(state));
}
function clearLocalStorage () {
localStorage.removeItem(localStorageKey);
}
function getSavedState (): any {
return JSON.parse(localStorage.getItem(localStorageKey));
}
// the key for the local storage
const l... |
58dcad420804652395174f1e65f88e746db2e96d | TypeScript | mellet/csgonades-client | /src/utils/PairingUtils.ts | 3.359375 | 3 | /* eslint-disable @typescript-eslint/no-non-null-assertion */
import { NadeLight } from "../nade/models/NadeLight";
export function createPairings(nades: NadeLight[]): NadeLight[][] {
const updatedNades = [...nades];
// Remove a random nade if the count is odd
if (updatedNades.length % 2 !== 0) {
const rand... |
073d3b2657c527d30aff06758ba5308210921652 | TypeScript | CodeguruEdison/leetcode-typescript-solutions | /problems/454.4Sum-II.ts | 3.0625 | 3 | function fourSumCount(
A: number[],
B: number[],
C: number[],
D: number[]
): number {
let res = 0;
const ABHash: { [key: string]: number } = {};
for (let i = 0; i < A.length; i++) {
for (let j = 0; j < B.length; j++) {
const AB = A[i] + B[j];
AB in ABHash ? ABHash[AB]++ : (ABHash[AB] = 1... |
7b65847a9b0ed1cbc6accc8a6c53d10661484c32 | TypeScript | velizarvel/phonebook-angular-app | /src/app/contact.ts | 2.71875 | 3 | export class Contact {
contactId: number;
firstName: string;
lastName: string;
phone: string;
constructor(contactId: number, firstName: string, lastName: string, phone: string) {
this.contactId = contactId;
this.firstName = firstName;
this.lastName = lastName;
this.phon... |
532e483695fec731eef7a3dc6f47f3f9a07f4941 | TypeScript | MrRefactoring/jira.js | /src/version3/models/avatar.ts | 3.078125 | 3 | /** Details of an avatar. */
export interface Avatar {
/** The ID of the avatar. */
id: string;
/**
* The owner of the avatar. For a system avatar the owner is null (and nothing is returned). For non-system avatars
* this is the appropriate identifier, such as the ID for a project or the account ID for a us... |
cde59effd1fd6fed53919765407b42ec556ed3f4 | TypeScript | adicomdotir/Just-Js | /TypeScript/transfer-system.ts | 2.53125 | 3 | export class Engine {
private teams: Array<Team> = [];
private players: Array<Player> = [];
private retiredPlayers: Array<Player> = [];
private sellList: Array<Player> = [];
public year: number;
constructor() {
this.year = 2000;
for (let i = 0; i < 8; i++) {
const tm... |
78c47e18bbfff2bde097936166c4d12d3a022dc3 | TypeScript | knovoselic/qapass | /src/tests/unit/abstractions/Request.test.ts | 2.609375 | 3 | import loginRequest from '../../../requests/LoginRequest';
import { Request, Response, NextFunction } from 'express';
import { IncomingHttpHeaders } from 'http';
import Exception from '../../../errors/Exception';
describe('Request.validate', () => {
describe("collects rules with Request.rules, maps errors with Req... |
6a9344bf93c0a692e58f12c5347ceee9ba49e73a | TypeScript | winzter143/angularTraining | /src/app/user-form/user-form.component.ts | 2.625 | 3 | import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
@Component({
selector: 'app-user-form',
templateUrl: './user-form.component.html',
styleUrls: ['./user-form.component.css']
})
export class UserFormComponent implements OnIni... |
25573eab51676433371ff341fe212889ea45061a | TypeScript | ksxnodemodules/nodemonorepo | /packages/typescript/random-org-http/lib/types.ts | 2.9375 | 3 | // tslint:disable:variable-name
export interface QueryObject<Value> {
readonly [key: string]: Value
}
export enum Generator {
integers = 'integers',
sequences = 'sequences',
strings = 'strings'
}
export enum Base {
binary = 2,
octal = 8,
hexadecimal = 16,
decimal = 10
}
export enum Format {
html =... |
06dd605fbf16b82a431b1a4a9067f012b023ce86 | TypeScript | anuragarwalkar/chat-buddy-backend | /src/middleware/logger.ts | 2.90625 | 3 | import { Request, Response, NextFunction } from 'express';
interface CustomError extends Error {
statusCode: number;
}
const logger = (err: CustomError, req: Request, res: Response, next: NextFunction) => {
const error = {...err};
error['message'] = err.message;
const statusCode = error.statusCode || ... |
91763ef7ea34e0a5356270c4ee4006475960cc5e | TypeScript | streamr-dev/streamr-client-protocol-js | /src/errors/UnsupportedVersionError.ts | 2.734375 | 3 | export default class UnsupportedVersionError extends Error {
version: number
constructor(version: number, message: string) {
super(`Unsupported version: ${version}, message: ${message}`)
this.version = version
if (Error.captureStackTrace) {
Error.captureStackTrace(this, thi... |
b00040aa889302759e611bf2e88799ae70608517 | TypeScript | qianyc1020/OneStroke-egret | /src/UI.ts | 2.546875 | 3 | class UI {
private static _instance: UI;
private _stageWidth: number;
private _stageHeight: number;
public createPanel(panelName: string): fairygui.GComponent {
const p: fairygui.GComponent = fairygui.UIPackage.createObject("Package1", panelName).asCom;
p.viewWidth = this._stageWidth... |
2331bba3ec065389dbeb48d4f227600d5c23e44f | TypeScript | cjr3/rdmgr | /src/tools/raffle/index.ts | 2.8125 | 3 | import { RaffleTicket, SMainController, SRaffle } from "tools/vars";
/**
* Add a raffle ticket
* @param state
* @param ticket
* @returns
*/
export const Add = (state:SMainController, ticket:RaffleTicket) : SMainController => {
const tickets = (state.Raffle.CurrentTickets || []).slice();
const records = ... |
94c1b5c4f46824327806a830f6a378203e17ac7f | TypeScript | tengyifei/forklift.js | /src/test/test-partition.ts | 2.796875 | 3 | /// <reference path="../../typings/globals/mocha/index.d.ts" />
/// <reference path="../../typings/globals/chai/index.d.ts" />
import { partitionDataset } from '../partition-dataset';
import * as rimraf from 'rimraf';
import * as mkdirp from 'mkdirp';
import * as Bluebird from 'bluebird';
import * as chai from 'chai';... |
ae1ec5711ec896900bf498ff4fa666de7e074113 | TypeScript | mlaursen/react-md | /packages/form/src/select/__tests__/utils.ts | 3.015625 | 3 | import { createElement } from "react";
import { getDisplayLabel, getOptionId, getOptionLabel } from "../utils";
describe("getOptionId", () => {
it("should return the correct id starting from 1 instead of 0", () => {
expect(getOptionId("base-id", 0)).toBe("base-id-option-1");
expect(getOptionId("base-id-1", ... |
0e0c5fc498dea69d521a3c4f6266972732d512ed | TypeScript | avington/avitrackr-client | /src/app/feature-my-tasks/store/reducers/update-status-task.reducers.ts | 2.859375 | 3 |
import { MyTask } from '../../models/my-tasks';
import * as fromActions from '../actions/update-status-task.actions';
export interface UpdateTaskStatusState {
entity: MyTask;
loading: boolean;
loaded: boolean;
error?: any;
}
const initialState: UpdateTaskStatusState = {
entity: null,
loading:... |
56f6cecde307c2730e2195f9589cf1042e403394 | TypeScript | pnp/sp-dev-fx-extensions | /samples/react-teamschatnotifications-functions/DataServices/AzureStorageTableService.ts | 2.90625 | 3 | import * as request from 'request-promise';
import { IReturnEntity } from './IReturnEntity';
import { IEntity } from './IEntity';
class DataService {
constructor(private table_name: string, private azure_storage_uri: string, private azure_storage_sas: string) {}
/**
* Create Table
*
* @returns {Promise<... |
1ef60ab1a6225ddc1e7ac0293bec6fcbff4855ad | TypeScript | outbreak/webauthn-lib | /packages/server/test/utils/buffer-cake.test.ts | 3.0625 | 3 | import BufferCake from '../../src/utils/buffer-cake'
test('Must be class', () => {
const buffer = new BufferCake(Buffer.from('abcdef'))
expect(buffer).toBeInstanceOf(BufferCake)
})
test('Can be take and slice buffer', () => {
const buffer = new BufferCake(Buffer.from('abcde'))
expect(buffer.take(2)).toStric... |
81daad2fff05d3d61a5e8ae67142291dcc15ce22 | TypeScript | gforge/graphql-passport | /src/test/testServer/LaunchAPI.ts | 2.96875 | 3 | import { DataSource } from 'apollo-datasource';
export interface Launch {
id: number;
name: string;
}
export class LaunchAPI extends DataSource {
private launches: Launch[];
constructor() {
super();
this.launches = [
{ id: 1, name: 'rocket 1' },
{ id: 2, name: 'rocket 2' },
];
}
... |
64976b49c7ba896ea9faac940e95484cea5113ff | TypeScript | khattakdev/aqualink-app | /packages/website/src/helpers/numberUtils.ts | 2.53125 | 3 | import { isNumber } from "lodash";
export function formatNumber(n?: number | null, decimal = 0) {
return isNumber(n) ? n.toFixed(decimal) : "- -";
}
|
ecde31577f3f67d7d6d876b892425847be7bb673 | TypeScript | abdelalielbahloul/gestin-association | /server/src/controllers/userController.ts | 2.53125 | 3 | import { Request, Response, NextFunction, response } from "express";
import mongoose from "mongoose";
import bcryptjs from "bcryptjs";
import { User } from '../models/User';
import JWT from "jsonwebtoken";
class UserController {
/**
* login an user users
*/
public async login(req: Request, res: ... |
415f5908942785b7f9a8a4e10d15fc0c1ea64dac | TypeScript | superwower/wowgit | /server/domain/status.ts | 3.234375 | 3 | import File from "./file";
/**
* This class represents the status of a git repository
*/
export default class Status {
/**
* List of untracked files
*/
private _untracked: File[];
/**
* List of modified files
*/
private _modified: File[];
/**
* List of deleted files
*/
private _deleted... |
2e79ff18d9f5f3aa2d86e9c25c87b955eecbbbe8 | TypeScript | cure53/DefinitelyTyped | /types/inputmask/index.d.ts | 2.84375 | 3 | // Type definitions for inputmask 4.0
// Project: https://github.com/RobinHerbots/Inputmask
// Definitions by: Daniel Mester Pirttijarvi <https://github.com/dmester>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// The documentation is mainly copied from the source repo ... |
6b69929e594bb866e550013e82e31136ae9fbaf5 | TypeScript | jnoodle0503/typescript_api_practice | /src/test/app.ts | 3.25 | 3 | /* 일반 변수에 타입 선언 */
const personName: string = "inyong";
const personAge: number = 27;
/* 배열 변수에 타입 선언 */
const TempNumberArray: number[] = [10, 20, 30];
export const TempArray: [boolean, number] = [true, 10];
|
c554a5f61b3e85f579d60598b2523810b29e573c | TypeScript | Zero-to-Heroes/firestone | /libs/legacy/feature-shell/src/lib/js/services/battlegrounds/store/real-time-stats/event-parsers/rtstats-turn-start-parser.ts | 2.671875 | 3 | import { GameEvent } from '../../../../../models/game-event';
import { RealTimeStatsState } from '../real-time-stats';
import { EventParser } from './_event-parser';
export class RTStatTurnStartParser implements EventParser {
applies(gameEvent: GameEvent, currentState: RealTimeStatsState): boolean {
return gameEven... |
5badbdd74d7d3e5bcc6fcde5854395a350363b30 | TypeScript | 0xGG/vscode-isomorphic-git | /src/errors.ts | 2.75 | 3 | function Err(name: string) {
return class extends Error {
private code: string;
constructor(...args: any[]) {
super(...args);
this.code = name;
if (this.message) {
this.message = name + ": " + this.message;
} else {
this.message = name;
}
}
};
}
export cons... |
66419b611d58e98016c2b6b01f0fe423a0ea7973 | TypeScript | elauffenburger/playbliss | /src/renderer/services/playlist.ts | 2.953125 | 3 | import { Playlist, Track, CreatePlaylistArgs, PlaylistTrack } from "../models";
import { Store } from "vuex";
import { AppState } from "../store";
import { v4 as uuid } from "uuid";
export interface PlaylistService {
getPlaylists(includeAll?: boolean): Playlist[];
getPlaylistById(id: string): Playlist | null;
c... |
5106337a868033e785c412ec4bcb6c43630131f8 | TypeScript | eyeamkd/jsds | /StackOfStacks.ts | 3.203125 | 3 | import Stack from './Stack';
import {LinkedList} from './LinkedList';
class StackOfStacks{
private thresholdValue:number;
private stackOfStacks:LinkedList<Stack>;
private stack : Stack;
constructor(thresholdValue:number,firstElement:number){
this.thresholdValue = thresholdValue;
th... |
303390c3ac403d6d56e1d4448b496c846314a923 | TypeScript | kaushi/codecharta | /visualization/app/codeCharta/state/store/dynamicSettings/recentFiles/recentFiles.actions.ts | 2.609375 | 3 | import { Action } from "redux"
import { CCAction } from "../../../../codeCharta.model"
export enum RecentFilesActions {
SET_RECENT_FILES = "SET_RECENT_FILES",
REMOVE_RECENT_FILE = "REMOVE_RECENT_FILE"
}
export interface SetRecentFilesAction extends Action {
type: RecentFilesActions.SET_RECENT_FILES
payload: strin... |
7c6c55211e8231f0b5085918d511fc039ed6f3eb | TypeScript | dabbott/javascript-playgrounds | /src/utils/Object.ts | 3.4375 | 3 | export function hasOwnProperty<O extends object, K extends PropertyKey>(
obj: O,
key: K
): obj is O & { [key in K]: unknown } {
return Object.prototype.hasOwnProperty.call(obj, key)
}
function isEnumerable(obj: object, key: PropertyKey) {
return Object.prototype.propertyIsEnumerable.call(obj, key)
}
export fu... |
b1616ca5775242ee281d6eb2e655ff042fe50884 | TypeScript | aaronosher/discord-login | /website/src/store/verify/reducer.ts | 2.6875 | 3 | import { createReducer } from "@reduxjs/toolkit";
import { startVerify, verifyWithCode } from "./actions";
export interface VerifyState {
loading: boolean;
error: string | null;
}
const initialState: VerifyState = {
loading: false,
error: null,
};
const reducer = createReducer<VerifyState>(initi... |
1aa0bdd2010682d4e5ea061400d16ea94d7c13c6 | TypeScript | W402593/sp-dev-build-extensions | /samples/azure-devops-ci-cd-spfx/src/webparts/devOps/tests/DevOpsWebPart.spec.ts | 2.734375 | 3 | /// <reference types="mocha" />
import {assert, expect} from 'chai';
import { DevOpsWebPartService } from "../DevOpsWebPart.service";
import { BusinessService } from "../businesslogic";
import { MockSPListCollectionService } from "../dataservice/mockSPListCollectionService";
describe("DevOpsWebPart", () => {
let ser... |
1cd1247fdc6d4fe1aef78ff907657c2f0d5b6f2d | TypeScript | bbarry/store | /packages/store/src/internal/state-operators.ts | 2.8125 | 3 | import {
throwPatchingArrayError,
throwPatchingPrimitiveError
} from '../configs/messages.config';
import { StateOperator } from '../symbols';
export function simplePatch<T>(val: Partial<T>): StateOperator<T> {
return (existingState: Readonly<T>) => {
if (Array.isArray(val)) {
throwPatchingArrayError()... |
88ed4797aa4d168df2e2dcbdd787aac4e54872d6 | TypeScript | voorjaar/fluire | /src/interfaces.ts | 2.59375 | 3 | export interface Todo {
id: string
title: string
date: string
duration: number
color: 'red' | 'dark-orange' | 'orange' | 'yellow' | 'green' | 'teal' | 'light-blue' | 'blue' | 'dark-blue' | 'dark-purple' | 'purple' | 'pink' | 'dark-gray' | 'gray' | 'brown'
finished: boolean
}
export interface NavItem {
id... |
7362408ee4912e758aa54afff7cf3da7b37d1ae1 | TypeScript | user-dob/academy | /src/logic/part_13.ts | 2.796875 | 3 | import { printBF } from './util';
const printBF3 = printBF(3);
// дистрибутивность
// (p ∧ (q ∨ r)) ↔ ((p ∧ q) ∨ (p ∧ r))
printBF3(
(p, q, r) => p && (q || r),
(p, q, r) => (p && q) || (p && r),
);
// дистрибутивность
// (p ∨ (q ∧ r)) ↔ ((p ∨ q) ∧ (p ∨ r))
printBF3(
(p, q, r) => p || (q && r),
(p, q,... |
efe6afc04db920c87c9fc4c82a7f9225b1a0729c | TypeScript | brandcoded/HelloFriendPlayer | /src/db.ts | 2.734375 | 3 | import * as MRE from '@microsoft/mixed-reality-extension-sdk'
import { Pool } from 'pg'
import AudioFileInfo, { SessionData, SessionState } from './types'
export default class DBConnect{
pool = new Pool({
user: process.env.PG_USER,
host: process.env.PG_HOST,
database: process.env.PG_DA... |
a9fb0ff8a44c614fe59b782dcaf2585d27b99792 | TypeScript | phanhien9218/ng2SexyBong | /app/sexybong/sexybong.list.ts | 2.5625 | 3 | //java, ...
import { Component } from '@angular/core';
//model
import { SexyBong } from '../model/SexyBong';
//service
import { SexyBongService } from '../service/sexybong.service';
//decorator
@Component({
templateUrl: 'app/sexybong/sexybong.list.html',
//templateUrl: 'test.html',
})
/**
* public class
*... |
8d391e83d3362de1838e107497f360461faf535e | TypeScript | DanielPopOut/project-2 | /src/app/card-element.ts | 2.515625 | 3 | import { Voter } from './voter';
export class CardElement {
public _id: string;
public title: string;
public type: number;
public event_id: string;
public card_id: string;
public voters: Voter[];
public added_by: string;
public voterLimit: number;
constructor(id: string, title: st... |
2cef833aa243b6ffb7407b166e91ff0268d8580c | TypeScript | noce2/design-factory-monitor | /src/app/insight360/app/shared/i360-design.service.ts | 2.9375 | 3 | import { Injectable } from '@angular/core';
import { Design } from '../../../../../app_server/models/design';
@Injectable()
export class DesignService {
// this service will handle retrieving designs from the backend
// creating new designs and validating data going into a design
dummyData: Design[] = [
ne... |
e3961f0af4359ef42978cbb78ed719185bd772f2 | TypeScript | yandeu/phaser3-multiplayer-with-physics | /src/client/components/fullscreenEvent.ts | 2.5625 | 3 | // listen for fullscreen change event
const FullScreenEvent = (callback: Function) => {
const fullScreenChange = () => {
let times = [50, 100, 200, 500, 1000, 2000, 5000]
times.forEach(time => {
window.setTimeout(() => {
callback()
}, time)
})
}
var vendors = ['webkit', 'moz', 'ms'... |
d4a5a5cf331e82d7238b271485acdeedc2e62b63 | TypeScript | martycabj1999/front-angular | /src/app/components/home/home.component.ts | 2.640625 | 3 | import { Component } from '@angular/core';
import { ProductsService } from '../../services/products.service'
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styles: [
]
})
export class HomeComponent {
newProducts: any[] = []
categories: any[] = []
loading: boolean[];
validate:... |
35ab207824955cd0e5c6a8e866e4f704a20778d3 | TypeScript | Coffeekraken/coffeekraken | /packages/builders/s-images-builder/src/node/SImagesBuilder.ts | 2.53125 | 3 | import type { ISBuilderSettings } from '@coffeekraken/s-builder';
import __SBuilder from '@coffeekraken/s-builder';
import __SDuration from '@coffeekraken/s-duration';
import __SFile from '@coffeekraken/s-file';
import type { IResolveGlobSettings } from '@coffeekraken/s-glob';
import __SGlob from '@coffeekraken/s-glob'... |
8c872ed11489092e3754bd522487c9db05d27596 | TypeScript | pankona/learning-graphql | /src/index.ts | 2.8125 | 3 | import { ApolloServer } from 'apollo-server'
const typeDefs = `
type Query {
totalPhotos: Int!
}
type Mutation {
postPhoto(name: String! description: String): Boolean!
}
`
type photo = {
name: string
description: string
}
let photos: photo[] = []
const resolvers = {
Query: {
totalPhotos: (... |
ca6859ca11824bda85ed834d222fcc83e12db830 | TypeScript | GitRaymond/FinancialDashboard | /src/main/webapp/app/shared/model/budget.model.ts | 2.75 | 3 | export interface IBudget {
id?: number;
year?: number;
month?: number;
amount?: number;
reportingCategoryId?: number;
}
export class Budget implements IBudget {
constructor(
public id?: number,
public year?: number,
public month?: number,
public amount?: number,
... |
8a5e9e90743d003cf159e5250a1205b253e1a993 | TypeScript | hlpd-pham/meal-prep-tracking | /test/fixtures/connection.fixture.ts | 2.734375 | 3 | import Knex from 'knex';
import { Tables } from '../../src/database/tables.constants';
import * as knexConfigs from '../../src/database/knexfile';
import { seed as usersSeed } from '../../src/database/seeds/test_data/user.seed';
/** Create a new knex instance for testing */
export const getTestConnection = async () =>... |
e555c4321f5305301de17f284c1db884e9d3c56e | TypeScript | alex1278/redux-saga-auth | /src/client/constants.ts | 2.984375 | 3 | export enum ClientActionType {
CLIENT_SET = 'CLIENT_SET',
CLIENT_UNSET = 'CLIENT_UNSET'
}
export interface ClientSetPayload {
token: Token;
}
export type ClientSetAction = ActionWithPayload<ClientActionType.CLIENT_SET, ClientSetPayload>;
export type ClientUnsetAction = Action<ClientActionType.CLIENT_UNSET>;
ex... |
b33afb050bfcea0b3359d7ee048100b5626c4fc5 | TypeScript | packmule/packmule | /packages/pack-raw/src/common/pack.ts | 2.5625 | 3 | import webpack from 'webpack';
import { merge } from 'webpack-merge';
import { Hints, Options, Pack } from '@packmule/core';
type GenerateArgument = (options: Options, hints: Hints) => webpack.Configuration;
type ProcessArgument = (
configuration: webpack.Configuration,
options?: Options,
hints?: Hints,
) ... |
4b4466445bdd8e5a4350105bc0750a647321aeeb | TypeScript | HunterGalloway-dev/BuntLang | /src/app/Components/game-window/game-window.component.ts | 2.734375 | 3 | import { Direction } from './../../BuntLangCompiler/Models/direction';
import { CardinalDirection } from './../../BuntLangCompiler/Enums/cardinal-direction.enum';
import { Player } from './../../BuntLangCompiler/Models/player';
import { createOfflineCompileUrlResolver } from '@angular/compiler';
import { Component, Ele... |
f2eee46c83ca95ea4b4baebd9a105cfb4294fc79 | TypeScript | politie/sherlock | /src/utils/plain-object-detection.ts | 3.921875 | 4 | /**
* Function to test if an object is a plain object, i.e. is constructed
* by the built-in Object constructor or inherits directly from Object.prototype
* or null. Some built-in objects pass the test, e.g. Math which is a plain object
* and some host or exotic objects may pass also.
*
* @param obj the object to... |
b68fe1c65298d93a42d15e67394f3814d306459d | TypeScript | yafeya/ng-platform-app | /ng-system-common-app/projects/ng-system-common/src/lib/action/ActionRepository.ts | 2.953125 | 3 | import { Action } from './Action';
import * as Collections from '../collections/index';
import { IAction } from './IAction';
export interface IActionRepository {
readonly Actions: Collections.List<IAction>;
Register(action: IAction): IActionRepository;
Find(expression: (action: IAction) => boolean): Coll... |
dd6844bea6297dabf91ea625c75201d3447835fb | TypeScript | swimos/swim | /swim-js/swim-runtime/swim-core/swim-structure/src/main/form/Form.ts | 3 | 3 | // Copyright 2015-2023 Swim.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 i... |
a949d19d570d7bb89dbe759e1826679df92adc79 | TypeScript | juli-albertengo/entregaPF | /src/models/model/user.model.ts | 2.96875 | 3 | import { IsInt, IsString, IsEmail, IsNotEmpty } from 'class-validator';
export class User {
@IsNotEmpty()
public fullName: string
@IsNotEmpty()
@IsInt()
public phone: number
@IsNotEmpty()
@IsEmail()
public email: string
public admin: boolean
@IsNotEmpty()
public username: st... |
c1437d2e57cb6b6efedd371875f2c6d157da721f | TypeScript | joelmut/torrent-manager | /packages/torrent/src/series/filter.ts | 2.78125 | 3 | import { SeriesTorrentMetadata } from "../interfaces";
export function filter(torrents: SeriesTorrentMetadata[]): SeriesTorrentMetadata[] {
return torrents.reduce((acc, val) => {
const inc = acc.some(
(e) => e.episode === val.episode && e.season === val.season
);
if (!inc) {
acc.push(val);
... |
5b131769f89a208036eee088eb8354516ad92f03 | TypeScript | alistairvu/reanswers | /backend/modules/question/question.model.ts | 2.53125 | 3 | import mongoose from "mongoose"
import Answer from "../answer/answer.model"
import Bookmark, { BookmarkSchemaInterface } from "../bookmark/bookmark.model"
import Like from "../like/like.model"
import Tag from "../tag/tag.model"
export interface QuestionSchemaInterface extends mongoose.Document {
title: string
body... |
35a1d51fcf4d4a1c021abdcb710c8435092b2334 | TypeScript | fnpack/fnpack | /fnpack/callChain.ts | 2.921875 | 3 | import { nameHash } from '../util/hashing'
export interface Callable {
type: string;
}
export interface CodeCallable {
runtime: string;
isMiddleware: boolean;
}
export interface FileDeclarationInformation {
ext: string;
}
export class StaticFile implements Callable {
type = 'staticFile';
pub... |
a908444469d1c763494bede9a4a6f0a1df06db76 | TypeScript | mitchellolsthoorn/ASE-Technical-2021-api-linkage-replication | /EvoMaster/client-js/evomaster-client-js/src/controller/api/dto/AuthenticationDto.ts | 3 | 3 | /**
* To authenticate a user, would need specific settings, like
* specific values in the HTTP headers (eg, cookies)
*/
import HeaderDto from "./HeaderDto";
export default class AuthenticationDto {
/**
* The name given to this authentication info.
* Just needed for display/debugging reasons
*/
... |
67b8abb936c4cb2577722187b4fa1f16d5a01a6f | TypeScript | artsy/metaphysics | /src/lib/hasFieldSelection.ts | 2.53125 | 3 | /* eslint-disable require-yield */
import {
FieldNode,
visit,
FragmentDefinitionNode,
BREAK,
GraphQLResolveInfo,
} from "graphql"
import { CursorPageable } from "relay-cursor-paging"
const SELECTION_DEPTH_THRESHOLD = 3
export const hasFieldSelection = (
resolveInfo: GraphQLResolveInfo,
match: (fieldNam... |
c7c4f7886c9512f4c56f5e12de971297b7d2f6d8 | TypeScript | Drumrodri/appimagenmio | /backend/src/controllers/usuariosController.ts | 2.53125 | 3 | import {Request, Response} from 'express';
import pool from '../database';
class UsuariosController{
index(req:Request, res:Response){
res.json({'message': 'estas en usuarios'});
}
public async create(req:Request, res:Response){
await pool.query('INSERT INTO usuarios SET ?', [req.body]);
... |
f0e6fbfbf0c7f4dc560059389dc5921918bbc97b | TypeScript | Sten-H/report-maker | /src/lib/report/createReport.ts | 2.765625 | 3 | import { ContractManager, ReportType } from "./ContractManager";
import { ContractMonthMetric, getEventMonth } from "./contract";
import { ContractEvent, MonthMetric } from "./types";
// Draw first of every month on given year
const getDrawDates = (year: string) =>
Array.from(Array(12))
.map((_, i) => i + 1)
... |
f9af8eb3743064a7aa14c7a4f6afbeb7b86a6f22 | TypeScript | naren-singamsetti/franks-car-sale | /src/app/components/filters/filters.component.ts | 2.703125 | 3 | import { Component, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-filters',
templateUrl: './filters.component.html',
styleUrls: ['./filters.component.scss']
})
export class FiltersComponent {
searchText: string;
modelYearsSelected: number[];
@Output() searchFilters = new EventEm... |
2b6c66a48d3bae1c439b0dbe77d439fcbf8f3a0d | TypeScript | Maxximl/express_interior | /src/reducers/elements/elements.slice.ts | 2.75 | 3 | import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { IAddElement, IDeleteElement, IElementState, ISetPosition, ISetScale, ISetSelectedId } from './elements.types'
const initialState: IElementState = {
elements: {}
};
const elementsSlice = createSlice({
name: 'elements',
initialState,
... |
7f18768aff876974a444fe47b8804f449cfc51ca | TypeScript | Soluto/tweek-clients | /js/tweek-client/src/utils.ts | 2.515625 | 3 | import { fetch as globalFetch, Response } from 'cross-fetch';
import qs from 'query-string';
import { FetchClientConfig } from './types';
import { FetchError } from './FetchError';
const createFetchWithTimeout =
(timeoutInMillis: number, fetchFn: typeof fetch): typeof fetch =>
(input: RequestInfo, init?: RequestIn... |
3e2d600907d1bf853e2c17bfea5d242bd2515499 | TypeScript | amzinino/engie | /back/routes/api/index.ts | 2.515625 | 3 | import express, { Request, Response } from 'express';
const router= express.Router()
const getAgencies = (_req: Request,res: Response) => res.json({
data: [
{
type: 'agencies',
id: 1,
attributes: {
name: 'agency1',
desc: 'first agency',
... |
e027ff847a1dbec7a318539eec7e9930fa210972 | TypeScript | Sergey-Shamov/mcalc | /src/models/input-data.ts | 2.546875 | 3 | import { CommonHelper } from './../helpers/сommon-helper';
export class InputData {
public currMoney: number = 1000000; // сейчас в наличии денег
public canPayM: { [month: number]: number } = { 0: 70000 }; // могу платить, в мес
public mortRateY: number = 3; // ставка по ипотеке, % в год
publi... |
004b92a1a0fc72fb8e29c00f8b929d06c6b295b4 | TypeScript | kmerkulov94/engine | /src/app/Controllers/KeyboardController.ts | 2.546875 | 3 | import {IUserController} from "../interfaces/IUserController";
import {ICanvasData} from "../interfaces/IAssets";
import {Camera} from "../general/Camera";
export class KeyboardController implements IUserController{
setControllerPosition(e: KeyboardEvent, canvas: ICanvasData) {
switch (e.key) {
case 'Arro... |
b342de399711653c6e0943a4ae82f6a0116d4a2f | TypeScript | matheusrdelima/gerenciamento-pomar | /src/modules/trees/repositories/fakes/FakeGroupTreesRepository.ts | 2.671875 | 3 | import IGroupTreesRepository from '@modules/trees/repositories/IGroupTreesRepository';
import IGroupTreeDTO from '@modules/trees/dtos/IGroupTreeDTO';
import GroupTrees from '../../infra/typeorm/entities/GroupTrees';
class FakeGroupTreesRepository implements IGroupTreesRepository {
private groupTrees: GroupTrees[] =... |
2d31330a3e782602ae5fa3884dce2e27aa7f4418 | TypeScript | huaweicloud/huaweicloud-sdk-nodejs-v3 | /services/oms/v2/model/SourceCdnReq.ts | 2.671875 | 3 |
export class SourceCdnReq {
private 'authentication_key'?: string;
private 'authentication_type'?: SourceCdnReqAuthenticationTypeEnum | string;
public domain?: string;
public protocol?: SourceCdnReqProtocolEnum | string;
public constructor(authenticationType?: string, domain?: string, protocol?: s... |
f030338d6a714de7f276657a33ee21b50808455a | TypeScript | fredsmit/hello-world | /t61.ts | 2.84375 | 3 | import { getRequiredNamedForm, getRequiredNamedFormControl, queryRequiredElement } from "./pageUtils.js";
let abortController = new AbortController();
const htmlForm = getRequiredNamedForm("publish");
PublishForm(htmlForm, "http://localhost:8080/publish");
// random url parameter to avoid any caching issues
const su... |
0b5d16d03488ea21a451184c41653eec24ba4f6a | TypeScript | vcheeze/mammon-manager | /pages/api/category/[id].ts | 2.609375 | 3 | import { NextApiHandler } from 'next';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
const handler: NextApiHandler = async (req, res) => {
const {
method,
body: { name, color },
query: { id },
} = req;
switch (method) {
case 'PUT': {
if (!name && !color... |
d34e1da5e352519fa16569500cd0c00da65eb86c | TypeScript | jlenoble/tenth | /src/sandbox/App3/packages/data-structures/tree/binary-search-tree/binary-search-tree.ts | 3.171875 | 3 | import {
Comparator,
defaultCompare,
ComparatorFunction,
} from "../../../comparator";
import { BinarySearchTreeNode } from "./binary-search-tree-node";
import { EmptyBinarySearchTreeNode } from "./empty-binary-search-tree-node";
import {
BinarySearchTreeNode as BinarySearchTreeNodeInterface,
BinarySearchTree... |
23b6e8efe08f28c6d89bf2ffe9ce593d02d6e4a9 | TypeScript | almeidawarley/Plano-Departamental | /View/src/app/perfil/perfil.component.ts | 2.625 | 3 | import { Component, OnInit } from '@angular/core';
import { Perfil } from '../perfil';
import { HttpClient, HttpHeaders } from '@angular/common/http';
@Component({
selector: 'app-perfil',
templateUrl: './perfil.component.html',
styleUrls: ['./perfil.component.css']
})
export class PerfilComponent implements OnIn... |
1a8f1fa7070d232be1dc97ae850dcea804bf525c | TypeScript | zimberzimber/game-project | /src/main/Components/Hitboxes/HitboxCircle.ts | 2.5625 | 3 | import { HitboxBase } from "./HitboxBase";
import { TriggerState, HitboxType } from "../../Models/CollisionModels";
import { EntityBase } from "../../Entities/EntityBase";
import { Vec2Utils } from "../../Utility/Vec2";
import { ScalarUtil } from "../../Utility/Scalar";
import { DebugDrawColors } from "../../Models/Gen... |
97fdb1095af07f4bbcc3b9dc2791727407587635 | TypeScript | ULL-ESIT-INF-DSI-2021/ull-esit-inf-dsi-20-21-prct09-async-fs-process-alu0101021768 | /tests/ejercicio-04.spec.ts | 2.890625 | 3 | import 'mocha';
import {expect} from 'chai';
import {execSync} from 'child_process';
const test = (args: string): string => {
return execSync(`node dist/ejercicio-04.js ${args}`)
.toString();
};
const openError = 'Error opening the file/directory: Unexisting path\n';
const removeError = 'Error removing the fi... |
14b651bb47e6fe63197417c0c09ad49d6a01ecba | TypeScript | imldresden/vistiles | /server/utility/math.ts | 3.171875 | 3 | // Source: code from http://stackoverflow.com/questions/27205018/multiply-2-matrices-in-javascript
export function multiplyMatrices(m1, m2) {
var result = [];
for (var i = 0; i < m1.length; i++) {
result[i] = [];
for (var j = 0; j < m2[0].length; j++) {
var sum = 0;
for (var k = 0; k < m1[0].len... |
de5e26d618d5a96623759da85ca81fb0dd07bf79 | TypeScript | warrenxxx/comping | /src/app/app.component.ts | 2.921875 | 3 | import {Component} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
texto2="";
texto: String = 'for int';
salida = [];
act(x){
this.salida=[]
console.log(this.texto)
this.goatr()
... |
6692818ed3c04c6d66dc38fc425a1652551ff735 | TypeScript | ritvik122/FIT2095-S2-2019 | /Week 10/Lab Task/src/app/actor/actor.component.ts | 2.71875 | 3 | import {
Component,
OnInit
} from '@angular/core';
import {
DatabaseService
} from "../database.service";
import {
stringify
} from 'querystring';
@Component({
selector: 'app-actor',
templateUrl: './actor.component.html',
styleUrls: ['./actor.component.css']
})
export class ActorComponent implements OnIn... |