repo
stringlengths
4
140
commit_id
stringlengths
7
7
rel_path
stringlengths
1
3.5k
language
stringclasses
37 values
url
stringlengths
37
3.56k
raw_url
stringlengths
54
3.58k
key
stringlengths
20
3.54k
ok
bool
1 class
status
int64
200
200
bytes
int64
48
425k
content
stringlengths
40
425k
worker_id
int64
0
7
AssaNiang/tirage-au-sort
1fde24f
src/app/app.module.ts
TypeScript
www.github.com/AssaNiang/tirage-au-sort/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/AssaNiang/tirage-au-sort/1fde24f/src/app/app.module.ts
AssaNiang/tirage-au-sort 1fde24f src/app/app.module.ts
true
200
1,491
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { SelectComponent } from './components/select/select.component'; import { DisplayWomanComponent } from './...
6
lacour-vincent/computer-science
4552257
src/sorting/heap/heap.ts
TypeScript
www.github.com/lacour-vincent/computer-science/tree/main/src/sorting/heap/heap.ts
https://raw.githubusercontent.com/lacour-vincent/computer-science/4552257/src/sorting/heap/heap.ts
lacour-vincent/computer-science 4552257 src/sorting/heap/heap.ts
true
200
669
import { swap } from "../index"; const heapify = (arr: number[], node: number, size: number) => { let largest = node; const left = 2 * node + 1; const right = 2 * node + 2; if (left < size && arr[left] > arr[largest]) largest = left; if (right < size && arr[right] > arr[largest]) largest = right; if (large...
4
rahul-rocket/nestjs-multi-orm
22b0a1c
src/modules/role/role.entity.ts
TypeScript
www.github.com/rahul-rocket/nestjs-multi-orm/tree/main/src/modules/role/role.entity.ts
https://raw.githubusercontent.com/rahul-rocket/nestjs-multi-orm/22b0a1c/src/modules/role/role.entity.ts
rahul-rocket/nestjs-multi-orm 22b0a1c src/modules/role/role.entity.ts
true
200
1,048
/* eslint-disable prettier/prettier */ import { Index } from "typeorm"; import { EntityRepositoryType } from "@mikro-orm/core"; import { SoftDeletable } from "mikro-orm-soft-delete"; import { MultiORMColumn, MultiORMEntity, MultiORMOneToMany } from "../../core/decorators/entity"; import { TenantBaseEntity } from "../.....
1
courtcanva/cc-server
bfc6e77
src/court_spec/courtSpec.module.ts
TypeScript
www.github.com/courtcanva/cc-server/tree/main/src/court_spec/courtSpec.module.ts
https://raw.githubusercontent.com/courtcanva/cc-server/bfc6e77/src/court_spec/courtSpec.module.ts
courtcanva/cc-server bfc6e77 src/court_spec/courtSpec.module.ts
true
200
538
import { Module } from "@nestjs/common"; import { MongooseModule } from "@nestjs/mongoose"; import { CourtSpecController } from "./courtSpec.controller"; import { CourtSpecService } from "./courtSpec.service"; import { CourtSpec, CourtSpecSchema } from "./schemas/courtSpec.schema"; @Module({ imports: [ MongooseM...
7
PKUHPC/OpenSCOW
0a8e628
apps/auth/src/routes/logout.ts
TypeScript
www.github.com/PKUHPC/OpenSCOW/tree/main/apps/auth/src/routes/logout.ts
https://raw.githubusercontent.com/PKUHPC/OpenSCOW/0a8e628/apps/auth/src/routes/logout.ts
PKUHPC/OpenSCOW 0a8e628 apps/auth/src/routes/logout.ts
true
200
1,293
/** * Copyright (c) 2022 Peking University and Peking University Institute for Computing and Digital Economy * OpenSCOW is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl....
0
JeremyFabrikapp/hackaton-vierzon
3735c42
packages/so-cash/types/iban/index.d.ts
TypeScript
www.github.com/JeremyFabrikapp/hackaton-vierzon/tree/main/packages/so-cash/types/iban/index.d.ts
https://raw.githubusercontent.com/JeremyFabrikapp/hackaton-vierzon/3735c42/packages/so-cash/types/iban/index.d.ts
JeremyFabrikapp/hackaton-vierzon 3735c42 packages/so-cash/types/iban/index.d.ts
true
200
3,311
/** * @summary Interface for {@link IBAN} object. * Cyril Schumacher * * Attention, modified version compare to source by Guénolé de Cadoudal as the declare module 'iban' was not present preventing it to be recognized */ declare module "iban" { // tslint:disable:interface-name that is generic name interface I...
2
miteshSharma-git/fileupload
03ca2cf
src/app/app.component.ts
TypeScript
www.github.com/miteshSharma-git/fileupload/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/miteshSharma-git/fileupload/03ca2cf/src/app/app.component.ts
miteshSharma-git/fileupload 03ca2cf src/app/app.component.ts
true
200
904
import { HttpClient } from '@angular/common/http'; import { Component } from '@angular/core'; import { NgForm } from '@angular/forms'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'fileupload'; constructor(pri...
5
eusouluiz/VMApp
c4d15b1
src/app/shared/utilities/data/data.utility.ts
TypeScript
www.github.com/eusouluiz/VMApp/tree/main/src/app/shared/utilities/data/data.utility.ts
https://raw.githubusercontent.com/eusouluiz/VMApp/c4d15b1/src/app/shared/utilities/data/data.utility.ts
eusouluiz/VMApp c4d15b1 src/app/shared/utilities/data/data.utility.ts
true
200
1,213
export class DataUtil { static adequarDataServico(data: string): string { return data.replace(' ', ', '); } static converterDataServico(data: string): string { return new Date(data).toLocaleString().replace(',', ''); } static timezonedToUTC(data: string): string { let dataLembrete = new Date(dat...
6
nexiojs/nexiojs
0a5fbdd
packages/core/src/decorators/create-param-metadata.decorator.ts
TypeScript
www.github.com/nexiojs/nexiojs/tree/main/packages/core/src/decorators/create-param-metadata.decorator.ts
https://raw.githubusercontent.com/nexiojs/nexiojs/0a5fbdd/packages/core/src/decorators/create-param-metadata.decorator.ts
nexiojs/nexiojs 0a5fbdd packages/core/src/decorators/create-param-metadata.decorator.ts
true
200
624
import type { DecoratorKind, IContext } from "@nexiojs/common"; import { CUSTOM_METADATA } from "@nexiojs/common"; type Options = { type: DecoratorKind; } & any; type Factory = (ctx: IContext) => any; export const createParamDecorator = ( factory: Factory, options?: Options ): ParameterDecorator => { return ...
4
Arnaud-Lyard/mamiepierre
6f87b7d
server/src/auth/controller/auth.controller.ts
TypeScript
www.github.com/Arnaud-Lyard/mamiepierre/tree/main/server/src/auth/controller/auth.controller.ts
https://raw.githubusercontent.com/Arnaud-Lyard/mamiepierre/6f87b7d/server/src/auth/controller/auth.controller.ts
Arnaud-Lyard/mamiepierre 6f87b7d server/src/auth/controller/auth.controller.ts
true
200
8,965
import bcrypt from 'bcryptjs'; import crypto from 'crypto'; import { CookieOptions, NextFunction, Request, Response } from 'express'; import { checkIfEmailExist, createUser, findByEmail, findUserByPasswordResetToken, findUserByVerificationCode, signTokens, switchVerificationCode, updateResetPasswordToke...
1
AugustoShz/microfrontend
0515438
Base/cart/src/bootstrap.ts
TypeScript
www.github.com/AugustoShz/microfrontend/tree/main/Base/cart/src/bootstrap.ts
https://raw.githubusercontent.com/AugustoShz/microfrontend/0515438/Base/cart/src/bootstrap.ts
AugustoShz/microfrontend 0515438 Base/cart/src/bootstrap.ts
true
200
708
import { fakerPT_BR } from '@faker-js/faker' const mount = (el?: Element) => { if(el) el.innerHTML = `You have ${fakerPT_BR.number.int({max: 100})} items!` } /* Situação 1 - Development de forma isolada Contexto Utiliza index.html local index.html possui com certeza o elemento com o ID "dev-products" ...
7
dwiluthfianto/Skilins
efbcf93
hooks/use-analytics.ts
TypeScript
www.github.com/dwiluthfianto/Skilins/tree/main/hooks/use-analytics.ts
https://raw.githubusercontent.com/dwiluthfianto/Skilins/efbcf93/hooks/use-analytics.ts
dwiluthfianto/Skilins efbcf93 hooks/use-analytics.ts
true
200
1,262
import { fetcher } from "@/utils/fetcher"; import useSWR from "swr"; export function useAnalyticsUser() { const { data, error, mutate } = useSWR(`/analytics/user-stats`, fetcher); return { userAnalytics: data?.data, isLoading: !error && !data, isError: error, mutate, }; } export function useAna...
3
Pham-Nguyen-Khoa/MusicApp
900cac7
routers/admin/song.route.ts
TypeScript
www.github.com/Pham-Nguyen-Khoa/MusicApp/tree/main/routers/admin/song.route.ts
https://raw.githubusercontent.com/Pham-Nguyen-Khoa/MusicApp/900cac7/routers/admin/song.route.ts
Pham-Nguyen-Khoa/MusicApp 900cac7 routers/admin/song.route.ts
true
200
755
import {Router} from "express"; import * as controller from "../../controller/admin/song.controller"; import * as upploadCloud from "../../middleware/admin/uploadCloud.middleware" import multer from "multer" const router: Router = Router(); const upload = multer(); router.get ("/" ,controller.song); router.ge...
0
Aisha-Abdullahi/TS-Exercises
fc57eef
exercise-5-any-unknown-never-types-start.ts
TypeScript
www.github.com/Aisha-Abdullahi/TS-Exercises/tree/main/exercise-5-any-unknown-never-types-start.ts
https://raw.githubusercontent.com/Aisha-Abdullahi/TS-Exercises/fc57eef/exercise-5-any-unknown-never-types-start.ts
Aisha-Abdullahi/TS-Exercises fc57eef exercise-5-any-unknown-never-types-start.ts
true
200
1,026
/** * START: Follow the instructions below. */ // Add the `any` type to fix the type errors in the following code. let currency: any = { name: "Indian rupee" }; currency.code = "THB"; currency = "Baht"; // Fix the if statement in this function so the type of `value` is narrowed to `string`. function countryName...
2
GabrielGSF/tgewvb
9284582
src/server.ts
TypeScript
www.github.com/GabrielGSF/tgewvb/tree/main/src/server.ts
https://raw.githubusercontent.com/GabrielGSF/tgewvb/9284582/src/server.ts
GabrielGSF/tgewvb 9284582 src/server.ts
true
200
1,794
// import express, { Request, Response } from 'express'; // import puppeteer, {Browser} from 'puppeteer'; // import path from 'path'; // import { fileURLToPath } from 'url'; // import { dirname } from 'path'; // const __filename = fileURLToPath(import.meta.url); // const __dirname = dirname(__filename); import expres...
5
Mauricio-Torres/NodeJsAngular
794fbf8
FrontEnd/src/app/services/medico/medico.service.ts
TypeScript
www.github.com/Mauricio-Torres/NodeJsAngular/tree/main/FrontEnd/src/app/services/medico/medico.service.ts
https://raw.githubusercontent.com/Mauricio-Torres/NodeJsAngular/794fbf8/FrontEnd/src/app/services/medico/medico.service.ts
Mauricio-Torres/NodeJsAngular 794fbf8 FrontEnd/src/app/services/medico/medico.service.ts
true
200
2,331
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { URL_SERVICE } from 'src/app/Config/config'; import { map } from 'rxjs/operators'; import Swal from 'sweetalert2'; import { Medico } from '../../models/medico.model'; @Injectable({ providedIn: 'root' }) export clas...
6
NatashaPanchina/hooks-library
ecc3db9
src/hooks/localStorage/text/index.ts
TypeScript
www.github.com/NatashaPanchina/hooks-library/tree/main/src/hooks/localStorage/text/index.ts
https://raw.githubusercontent.com/NatashaPanchina/hooks-library/ecc3db9/src/hooks/localStorage/text/index.ts
NatashaPanchina/hooks-library ecc3db9 src/hooks/localStorage/text/index.ts
true
200
1,704
export const demoText = `import React, { useState } from 'react'; import { useLocalStorage } from '../useLocalStorage'; export default function LocalStorageDemo() { const [name, setName] = useState(''); const [storageName, setStorageName] = useLocalStorage('name'); return ( <div> <div>USELOCALSTORAGE<...
4
Griguich/stagePFE
4f30af9
frant/kuber/source/mian/src/app/tables/add-client/add-client.component.ts
TypeScript
www.github.com/Griguich/stagePFE/tree/main/frant/kuber/source/mian/src/app/tables/add-client/add-client.component.ts
https://raw.githubusercontent.com/Griguich/stagePFE/4f30af9/frant/kuber/source/mian/src/app/tables/add-client/add-client.component.ts
Griguich/stagePFE 4f30af9 frant/kuber/source/mian/src/app/tables/add-client/add-client.component.ts
true
200
2,386
import { Component } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup, Validators, FormsModule, ReactiveFormsModule, } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { FileUploadComponent } from '@shared/components/file-upload/file-upload.component...
1
TencentBlueKing/blueking-dbm
db63597
dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/spider/authorizeRule.ts
TypeScript
www.github.com/TencentBlueKing/blueking-dbm/tree/main/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/spider/authorizeRule.ts
https://raw.githubusercontent.com/TencentBlueKing/blueking-dbm/db63597/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/spider/authorizeRule.ts
TencentBlueKing/blueking-dbm db63597 dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/spider/authorizeRule.ts
true
200
2,060
/* * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. * * Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
7
jonezque/signals_demo
9f17c10
src/app/app.module.ts
TypeScript
www.github.com/jonezque/signals_demo/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/jonezque/signals_demo/9f17c10/src/app/app.module.ts
jonezque/signals_demo 9f17c10 src/app/app.module.ts
true
200
906
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { Route, RouterModule } from '@angular/router'; import { OnPushRxjsComponent } from './on-push-rxjs/on-push-rxjs.component'; import { OnPushSignalComponent } from ...
3
osamahaddad21/Graduation-project
8e9f373
GraduationProject/src/app/_services/patinetDescription.service.ts
TypeScript
www.github.com/osamahaddad21/Graduation-project/tree/main/GraduationProject/src/app/_services/patinetDescription.service.ts
https://raw.githubusercontent.com/osamahaddad21/Graduation-project/8e9f373/GraduationProject/src/app/_services/patinetDescription.service.ts
osamahaddad21/Graduation-project 8e9f373 GraduationProject/src/app/_services/patinetDescription.service.ts
true
200
1,310
import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { environment } from '@environments/environment'; import { PatinetDescription } from...
0
dasaplan/ts-mono
8bef04b
packages/openapi-bundler/src/transpiler/transpile-context.ts
TypeScript
www.github.com/dasaplan/ts-mono/tree/main/packages/openapi-bundler/src/transpiler/transpile-context.ts
https://raw.githubusercontent.com/dasaplan/ts-mono/8bef04b/packages/openapi-bundler/src/transpiler/transpile-context.ts
dasaplan/ts-mono 8bef04b packages/openapi-bundler/src/transpiler/transpile-context.ts
true
200
1,257
import { OpenApiBundled } from "../bundle.js"; import { ComponentNode, Schema } from "./transpile-schema.js"; import { Endpoint } from "./transpile-endpoint.js"; import { Resolver } from "../resolver/index.js"; import { SchemaGraph } from "./circular-schmeas.js"; export interface TranspileContext { resolver: Resolv...
2
Yesid-Q/my-bank-frontend
477fd9c
src/app/pages/register/services/register.service.ts
TypeScript
www.github.com/Yesid-Q/my-bank-frontend/tree/main/src/app/pages/register/services/register.service.ts
https://raw.githubusercontent.com/Yesid-Q/my-bank-frontend/477fd9c/src/app/pages/register/services/register.service.ts
Yesid-Q/my-bank-frontend 477fd9c src/app/pages/register/services/register.service.ts
true
200
2,719
import { Injectable } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { IRegister, IRegisterForm } from '../interface/register.interface'; impor...
5
brandon-schabel/gpt-file-app
b47bf42
server/index.ts
TypeScript
www.github.com/brandon-schabel/gpt-file-app/tree/main/server/index.ts
https://raw.githubusercontent.com/brandon-schabel/gpt-file-app/b47bf42/server/index.ts
brandon-schabel/gpt-file-app b47bf42 server/index.ts
true
200
3,584
import { createFileFactory, readFilesContents, } from '@u-tools/core/modules/files-factory/files-folder'; import { createStateManager, createWSStateHandler, } from '@u-tools/core/modules/state-factory'; import OpenAI from 'openai'; import { createServerFactory } from '@u-tools/core/modules/server-factory'; im...
6
raphaelobrasil/MPuzzleSyE
5779093
src/engines/Match3/methods/clearTable/clearSequentialEffects.ts
TypeScript
www.github.com/raphaelobrasil/MPuzzleSyE/tree/main/src/engines/Match3/methods/clearTable/clearSequentialEffects.ts
https://raw.githubusercontent.com/raphaelobrasil/MPuzzleSyE/5779093/src/engines/Match3/methods/clearTable/clearSequentialEffects.ts
raphaelobrasil/MPuzzleSyE 5779093 src/engines/Match3/methods/clearTable/clearSequentialEffects.ts
true
200
471
import { IBasicTable, IClearSequentialEffects } from '../../../index' export const clearSequentialEffects = async ({ table, effect }: IClearSequentialEffects): Promise<IBasicTable[][]> => { for await (const { sequence } of effect) { for await (const { occurrences } of sequence) { for await (const { periodC...
1
z-score-sports/data-entry-site-v2
9c068c7
src/state/ActionStack.ts
TypeScript
www.github.com/z-score-sports/data-entry-site-v2/tree/main/src/state/ActionStack.ts
https://raw.githubusercontent.com/z-score-sports/data-entry-site-v2/9c068c7/src/state/ActionStack.ts
z-score-sports/data-entry-site-v2 9c068c7 src/state/ActionStack.ts
true
200
13,524
import { makeAutoObservable } from "mobx"; import { Action } from "./actions/Action"; import { Assist } from "./actions/Assist"; import { Block } from "./actions/Block"; import { Foul } from "./actions/Foul"; import { FreeThrow } from "./actions/FreeThrow"; import { Marking } from "./actions/Marking"; import { Possessi...
7
Naka-nishi-job/shimizu-san-app
9d63ecd
src/lib/post.ts
TypeScript
www.github.com/Naka-nishi-job/shimizu-san-app/tree/main/src/lib/post.ts
https://raw.githubusercontent.com/Naka-nishi-job/shimizu-san-app/9d63ecd/src/lib/post.ts
Naka-nishi-job/shimizu-san-app 9d63ecd src/lib/post.ts
true
200
1,218
import { prisma } from "@/lib/prisma"; export async function getPosts() { return await prisma.post.findMany({ where: { published: true }, include: { author: { select: { name: true } } }, orderBy: { createdAt: "desc" }, }); } export async function getPost(id: string){ return await prisma.post.findU...
3
victorgois07/beverage-base-backend
ab30557
database/migrations/1701627529983_categories.ts
TypeScript
www.github.com/victorgois07/beverage-base-backend/tree/main/database/migrations/1701627529983_categories.ts
https://raw.githubusercontent.com/victorgois07/beverage-base-backend/ab30557/database/migrations/1701627529983_categories.ts
victorgois07/beverage-base-backend ab30557 database/migrations/1701627529983_categories.ts
true
200
425
import BaseSchema from '@ioc:Adonis/Lucid/Schema' export default class extends BaseSchema { protected tableName = 'categories' public async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id') table.string('name').notNullable() table.text('description') ta...
0
rahulsd380/L2-PP-Project-2
6536a1f
src/app/modules/academicDepartment/academicDepartment.controller.ts
TypeScript
www.github.com/rahulsd380/L2-PP-Project-2/tree/main/src/app/modules/academicDepartment/academicDepartment.controller.ts
https://raw.githubusercontent.com/rahulsd380/L2-PP-Project-2/6536a1f/src/app/modules/academicDepartment/academicDepartment.controller.ts
rahulsd380/L2-PP-Project-2 6536a1f src/app/modules/academicDepartment/academicDepartment.controller.ts
true
200
1,388
import httpStatus from "http-status"; import catchAsync from "../../utils/catchAsync"; import sendResponse from "../../utils/sendResponse"; import { AcademicDepartmentServices } from "./academicDepartment.service"; const createAcademicDepartment = catchAsync(async (req, res) => { const result = await AcademicDepartm...
2
kalive-dev/server
4527226
src/task/task.service.ts
TypeScript
www.github.com/kalive-dev/server/tree/main/src/task/task.service.ts
https://raw.githubusercontent.com/kalive-dev/server/4527226/src/task/task.service.ts
kalive-dev/server 4527226 src/task/task.service.ts
true
200
2,805
import { Injectable, NotFoundException, ForbiddenException, } from '@nestjs/common'; import { InjectModel } from '@nestjs/sequelize'; import { Task } from '../models/task.model'; import { TodoList } from '../models/todolist.model'; import { CreateTaskDto } from './dto/create-task.dto'; import { Permissio...
5
arieanjian/Cardify-BE
8bf6bbc
src/models/member.ts
TypeScript
www.github.com/arieanjian/Cardify-BE/tree/main/src/models/member.ts
https://raw.githubusercontent.com/arieanjian/Cardify-BE/8bf6bbc/src/models/member.ts
arieanjian/Cardify-BE 8bf6bbc src/models/member.ts
true
200
924
import mongoose, { Schema } from "mongoose"; import Joi from "joi"; // util import isObjectId from "@/util/isObjectId"; import { userJoi } from "@/models/user"; interface ISchema extends IMember {} export const validRoles = ["Admin", "Member", "Owner"]; const memberSchema = new Schema<ISchema>( { userId: { ...
4
RenanGalvao/code-challenge-prounion-1
50ce9e5
backend/src/sqlite/sqlite3.service.ts
TypeScript
www.github.com/RenanGalvao/code-challenge-prounion-1/tree/main/backend/src/sqlite/sqlite3.service.ts
https://raw.githubusercontent.com/RenanGalvao/code-challenge-prounion-1/50ce9e5/backend/src/sqlite/sqlite3.service.ts
RenanGalvao/code-challenge-prounion-1 50ce9e5 backend/src/sqlite/sqlite3.service.ts
true
200
2,992
import { Database, OPEN_READWRITE, RunResult } from 'sqlite3' import { PaginationDto } from './dto' import { logger } from '@src/utils' import { readFileSync } from 'fs' class Sqlite3Service extends Database { // used to paginate private getLimitOffsetFromQuery(query?: PaginationDto) { query = Object.a...
6
Marcos170393/ComicApp
517d62e
src/app/heroes/pages/hero-page/hero-page.component.ts
TypeScript
www.github.com/Marcos170393/ComicApp/tree/main/src/app/heroes/pages/hero-page/hero-page.component.ts
https://raw.githubusercontent.com/Marcos170393/ComicApp/517d62e/src/app/heroes/pages/hero-page/hero-page.component.ts
Marcos170393/ComicApp 517d62e src/app/heroes/pages/hero-page/hero-page.component.ts
true
200
866
import { Component, OnInit } from '@angular/core'; import { HeroesService } from '../../services/heroes.service'; import { ActivatedRoute, Router } from '@angular/router'; import { delay, switchMap } from 'rxjs'; import { Hero } from '../../interfaces/hero.interface'; @Component({ selector: 'app-hero-page', templa...
1
Antowkaka/secret_santa_bot
a97d5da
src/bot.ts
TypeScript
www.github.com/Antowkaka/secret_santa_bot/tree/main/src/bot.ts
https://raw.githubusercontent.com/Antowkaka/secret_santa_bot/a97d5da/src/bot.ts
Antowkaka/secret_santa_bot a97d5da src/bot.ts
true
200
7,072
import { Context, NarrowedContext, Telegraf, Scenes } from 'telegraf'; import LocalSession from 'telegraf-session-local'; import type { CallbackQuery, Update } from 'telegraf/types'; import LocalDbService from './database/localDbService'; import { env, messages } from './config/variables'; import { pollYes, pollNo } f...
7
kumar-prabhat/Task-App
9445556
src/app/components/add-state/add-state.component.ts
TypeScript
www.github.com/kumar-prabhat/Task-App/tree/main/src/app/components/add-state/add-state.component.ts
https://raw.githubusercontent.com/kumar-prabhat/Task-App/9445556/src/app/components/add-state/add-state.component.ts
kumar-prabhat/Task-App 9445556 src/app/components/add-state/add-state.component.ts
true
200
1,236
import { Component, OnInit } from '@angular/core'; import { CrudService } from '../../_services/crud.service'; import { AlertifyService } from 'src/app/_services/alertify.service'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; @Component({ selector: 'app-add-state', templateUrl: './add-state...
0
nguyenquan265/ecommerce-cms
e536202
admin_frontend/src/apis/category-api.ts
TypeScript
www.github.com/nguyenquan265/ecommerce-cms/tree/main/admin_frontend/src/apis/category-api.ts
https://raw.githubusercontent.com/nguyenquan265/ecommerce-cms/e536202/admin_frontend/src/apis/category-api.ts
nguyenquan265/ecommerce-cms e536202 admin_frontend/src/apis/category-api.ts
true
200
4,168
import { CategoryFormValues } from '@/components/forms/CategoryForm' import { Category } from '@/type' import { useAuth } from '@clerk/clerk-react' import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' const SERVER_URL = import.meta.env.VITE_SERVER_URL export const useGetAllCategoriesFromStore...
3
sande265/portfolio
449a413
src/actions/experience-actions.ts
TypeScript
www.github.com/sande265/portfolio/tree/main/src/actions/experience-actions.ts
https://raw.githubusercontent.com/sande265/portfolio/449a413/src/actions/experience-actions.ts
sande265/portfolio 449a413 src/actions/experience-actions.ts
true
200
1,036
import { getAllError, getAllSuccess, processing } from '../redux/slices/ExperienceSlice'; import { api } from './axios'; import { AxiosResponse } from 'axios'; declare interface ApiRequestAttributes { limit?: string | number | undefined; page?: string | number | undefined; q?: string | number | undefined; ...
2
FP-Coding/project-trybe-football-club
6113185
app/backend/src/api/routers/Leaderboard.router.ts
TypeScript
www.github.com/FP-Coding/project-trybe-football-club/tree/main/app/backend/src/api/routers/Leaderboard.router.ts
https://raw.githubusercontent.com/FP-Coding/project-trybe-football-club/6113185/app/backend/src/api/routers/Leaderboard.router.ts
FP-Coding/project-trybe-football-club 6113185 app/backend/src/api/routers/Leaderboard.router.ts
true
200
1,162
import { NextFunction, Request, Response, Router, } from 'express'; import LeaderboardController from '../controllers/Leaderboard.controller'; import { ILeaderboardController } from '../interfaces/Leaderboard/ILeaderboard'; import LeaderBoardService from '../services/LeaderBoard.service'; const basedService = new Le...
4
vkRadchenko/jwt-pyshop
4dd88f5
server/src/users/user.controller.ts
TypeScript
www.github.com/vkRadchenko/jwt-pyshop/tree/main/server/src/users/user.controller.ts
https://raw.githubusercontent.com/vkRadchenko/jwt-pyshop/4dd88f5/server/src/users/user.controller.ts
vkRadchenko/jwt-pyshop 4dd88f5 server/src/users/user.controller.ts
true
200
2,590
import { ExpressRequest } from './../middleware/auth.middleware'; import { Body, Controller, Get, HttpException, HttpStatus, Patch, Post, Request, } from '@nestjs/common'; import { UserService } from './user.service'; import { CreateUserDto } from './dto/createUserDto'; import { UserRespons...
6
reda96/portfolio
68cf445
src/app/app.component.ts
TypeScript
www.github.com/reda96/portfolio/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/reda96/portfolio/68cf445/src/app/app.component.ts
reda96/portfolio 68cf445 src/app/app.component.ts
true
200
1,034
import { Component, OnInit, inject } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { Database } from '@angular/fire/database'; import { Firestore, collectionData } from '@angular/fire/firestore'; import { collection } from 'firebase/firestore'; import { Observable } from 'rxjs'; import {...
1
Seijun93/taskmanagement
54cc769
src/app/taskmanager/taskmanager.component.ts
TypeScript
www.github.com/Seijun93/taskmanagement/tree/main/src/app/taskmanager/taskmanager.component.ts
https://raw.githubusercontent.com/Seijun93/taskmanagement/54cc769/src/app/taskmanager/taskmanager.component.ts
Seijun93/taskmanagement 54cc769 src/app/taskmanager/taskmanager.component.ts
true
200
564
import { Component } from '@angular/core'; import { NavigationComponent } from "./navigation/navigation.component"; import { HeaderComponent } from './header/header.component'; import { FooterComponent } from './footer/footer.component'; import { ButtonModule } from 'primeng/button'; @Component({ selector: 'app-task...
0
jakosut/proyecto
24ae56a
src/app/seguridad/autorizado/autorizado.component.ts
TypeScript
www.github.com/jakosut/proyecto/tree/main/src/app/seguridad/autorizado/autorizado.component.ts
https://raw.githubusercontent.com/jakosut/proyecto/24ae56a/src/app/seguridad/autorizado/autorizado.component.ts
jakosut/proyecto 24ae56a src/app/seguridad/autorizado/autorizado.component.ts
true
200
634
import { Component, Input, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { SeguridadService } from '../seguridad.service'; @Component({ selector: 'app-autorizado', templateUrl: './autorizado.component.html', styleUrls: ['./autorizado.component.css'] }) export class AutorizadoComponent ...
3
jorgemejia25/sms-api
ffd4ac4
src/receive/receive.controller.spec.ts
TypeScript
www.github.com/jorgemejia25/sms-api/tree/main/src/receive/receive.controller.spec.ts
https://raw.githubusercontent.com/jorgemejia25/sms-api/ffd4ac4/src/receive/receive.controller.spec.ts
jorgemejia25/sms-api ffd4ac4 src/receive/receive.controller.spec.ts
true
200
499
import { Test, TestingModule } from '@nestjs/testing'; import { ReceiveController } from './receive.controller'; describe('ReceiveController', () => { let controller: ReceiveController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [ReceiveControlle...
5
AfifOsman/Product_API_NestJS
f175244
src/middleware/role-check.middleware.ts
TypeScript
www.github.com/AfifOsman/Product_API_NestJS/tree/main/src/middleware/role-check.middleware.ts
https://raw.githubusercontent.com/AfifOsman/Product_API_NestJS/f175244/src/middleware/role-check.middleware.ts
AfifOsman/Product_API_NestJS f175244 src/middleware/role-check.middleware.ts
true
200
510
import { Injectable, NestMiddleware } from '@nestjs/common'; import { Request, Response, NextFunction } from 'express'; @Injectable() export class RoleCheckMiddleware implements NestMiddleware { use(req: Request, res: Response, next: NextFunction) { const user = req.user; if (user && user.role === '...
2
RodelDecio/AngularTSDataStructures
0007a8e
src/app/services/languagelist/languagelist.service.ts
TypeScript
www.github.com/RodelDecio/AngularTSDataStructures/tree/main/src/app/services/languagelist/languagelist.service.ts
https://raw.githubusercontent.com/RodelDecio/AngularTSDataStructures/0007a8e/src/app/services/languagelist/languagelist.service.ts
RodelDecio/AngularTSDataStructures 0007a8e src/app/services/languagelist/languagelist.service.ts
true
200
499
import { Injectable } from '@angular/core'; import { Language } from '../../interface/language'; @Injectable({ providedIn: 'root', }) export class LanguageListService { private languages: Language[] = []; constructor() {} addLanguage(name: string, creator: string, year: number): void { this.languages.pus...
4
unknownbulgarian/chance
7a5ddc1
chance/src/app/Page-Components/support/support.component.ts
TypeScript
www.github.com/unknownbulgarian/chance/tree/main/chance/src/app/Page-Components/support/support.component.ts
https://raw.githubusercontent.com/unknownbulgarian/chance/7a5ddc1/chance/src/app/Page-Components/support/support.component.ts
unknownbulgarian/chance 7a5ddc1 chance/src/app/Page-Components/support/support.component.ts
true
200
3,256
import { Component, ElementRef, NgModule, OnInit, Renderer2, ViewChild } from "@angular/core"; import { Title } from "@angular/platform-browser"; import { ActivatedRoute, Router } from "@angular/router"; import { DocumentationService } from "src/app/Services/documentation.service"; import { ErrorSuccessService } from "...
7
SairtDAnny/SedaCuscoLogin
fec56a7
src/app/components/salida/salida.component.ts
TypeScript
www.github.com/SairtDAnny/SedaCuscoLogin/tree/main/src/app/components/salida/salida.component.ts
https://raw.githubusercontent.com/SairtDAnny/SedaCuscoLogin/fec56a7/src/app/components/salida/salida.component.ts
SairtDAnny/SedaCuscoLogin fec56a7 src/app/components/salida/salida.component.ts
true
200
1,306
import { Component, OnInit} from '@angular/core'; import { Router } from '@angular/router'; import { Subscription } from 'rxjs'; import { ListarporDni } from 'src/app/models/ListarporDni'; import { Salida } from 'src/app/models/salida'; import { DataService } from 'src/app/services/data.service'; import { SalidaService...
1
DeepRajBytes/e-commerce-frontend
4e4bdd4
src/app/services/interceptor.service.ts
TypeScript
www.github.com/DeepRajBytes/e-commerce-frontend/tree/main/src/app/services/interceptor.service.ts
https://raw.githubusercontent.com/DeepRajBytes/e-commerce-frontend/4e4bdd4/src/app/services/interceptor.service.ts
DeepRajBytes/e-commerce-frontend 4e4bdd4 src/app/services/interceptor.service.ts
true
200
646
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { finalize, Observable } from 'rxjs'; import { LoaderService } from './loader.service'; @Injectable({ providedIn: 'root' }) export class InterceptorService implements HttpIn...
3
Haozidd/hzdd_site
2b18522
vue/src/apis/uhz/uhzMerchants.ts
TypeScript
www.github.com/Haozidd/hzdd_site/tree/main/vue/src/apis/uhz/uhzMerchants.ts
https://raw.githubusercontent.com/Haozidd/hzdd_site/2b18522/vue/src/apis/uhz/uhzMerchants.ts
Haozidd/hzdd_site 2b18522 vue/src/apis/uhz/uhzMerchants.ts
true
200
434
import {uhzRequest} from "@/services/uhz/uhzRequest"; import {billTrendItem, merchantIndex} from "@/types/uhz/merchants"; export const postMerchantsBillTrendAPI = () => { return uhzRequest<billTrendItem[]>({ method: 'POST', url: '/merchants/bill/trend', }) } export const postMerchantsIndexAPI ...
6
GabrielPonte/SoftwareQuality
cb3ad5e
src/main/webapp/app/entities/informacoes-process/task-receba-local-c-19/task-receba-local-c-19.service.ts
TypeScript
www.github.com/GabrielPonte/SoftwareQuality/tree/main/src/main/webapp/app/entities/informacoes-process/task-receba-local-c-19/task-receba-local-c-19.service.ts
https://raw.githubusercontent.com/GabrielPonte/SoftwareQuality/cb3ad5e/src/main/webapp/app/entities/informacoes-process/task-receba-local-c-19/task-receba-local-c-19.service.ts
GabrielPonte/SoftwareQuality cb3ad5e src/main/webapp/app/entities/informacoes-process/task-receba-local-c-19/task-receba-local-c-19.service.ts
true
200
1,242
import axios from 'axios'; import { TaskRecebaLocalC19Context } from './task-receba-local-c-19.model'; const baseApiUrl = 'api/informacoes-process/task-receba-local-c-19'; export default class TaskRecebaLocalC19Service { public loadContext(taskId: number): Promise<TaskRecebaLocalC19Context> { return new Promise...
0
Placeblock/unu-client
ca38c82
src/app/components/round/inventory/inventory.component.ts
TypeScript
www.github.com/Placeblock/unu-client/tree/main/src/app/components/round/inventory/inventory.component.ts
https://raw.githubusercontent.com/Placeblock/unu-client/ca38c82/src/app/components/round/inventory/inventory.component.ts
Placeblock/unu-client ca38c82 src/app/components/round/inventory/inventory.component.ts
true
200
2,034
import { Component } from '@angular/core'; import { faSortAmountDownAlt, faBullhorn, faCheck } from '@fortawesome/free-solid-svg-icons'; import { UnUCard } from 'src/app/models/card/un-ucard.model'; import { WebsocketService } from 'src/app/services/websocket.service'; import { RoomState } from 'src/app/states/room-sta...
2
San-Geeth/theraConnect
7f78be2
src/app/services/therapists.service.ts
TypeScript
www.github.com/San-Geeth/theraConnect/tree/main/src/app/services/therapists.service.ts
https://raw.githubusercontent.com/San-Geeth/theraConnect/7f78be2/src/app/services/therapists.service.ts
San-Geeth/theraConnect 7f78be2 src/app/services/therapists.service.ts
true
200
375
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class TherapistsService { constructor() { } private therapistsSubject = new BehaviorSubject<any[]>([]); therapists$ = this.therapistsSubject.asObservable(); updateTherapists(data:...
5
ezat141/angular-demo-2
895335b
src/app/components/order/order.component.ts
TypeScript
www.github.com/ezat141/angular-demo-2/tree/main/src/app/components/order/order.component.ts
https://raw.githubusercontent.com/ezat141/angular-demo-2/895335b/src/app/components/order/order.component.ts
ezat141/angular-demo-2 895335b src/app/components/order/order.component.ts
true
200
1,068
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'; import { ProductsComponent } from "../products/products.component"; import { CommonModule } from '@angular/common'; import { Icategory } from '../../models/icategory'; import { FormsModule } from '@angular/forms'; @Component({ selector:...
4
GioviBarolin/FutbolApp-server-V2
a743167
src/presentation/controllers/sessionController.ts
TypeScript
www.github.com/GioviBarolin/FutbolApp-server-V2/tree/main/src/presentation/controllers/sessionController.ts
https://raw.githubusercontent.com/GioviBarolin/FutbolApp-server-V2/a743167/src/presentation/controllers/sessionController.ts
GioviBarolin/FutbolApp-server-V2 a743167 src/presentation/controllers/sessionController.ts
true
200
4,580
import { NextFunction, Request, Response } from "express"; import SessionManager from "../../domain/managers/SessionManager"; import UserEntity from "../../domain/entities/User"; import EmailManager from "../../domain/managers/EmailMangaer"; import UserManager from "../../domain/managers/UserManager"; class SessionCon...
7
DangQuangKy/Portfolio
b5bc2a0
src/config-translation/index.ts
TypeScript
www.github.com/DangQuangKy/Portfolio/tree/main/src/config-translation/index.ts
https://raw.githubusercontent.com/DangQuangKy/Portfolio/b5bc2a0/src/config-translation/index.ts
DangQuangKy/Portfolio b5bc2a0 src/config-translation/index.ts
true
200
366
import i18next from 'i18next' import TranslationEN from '../locales/en/en.json' import TranslationVI from '../locales/vi/vi.json' import { initReactI18next } from 'react-i18next' const resources = { en: {translation : TranslationEN}, vi: {translation : TranslationVI} } i18next.use(initReactI18next).init({ ...
1
sameedchhipa24/Node-Project
f23037e
OOP/oop.ts
TypeScript
www.github.com/sameedchhipa24/Node-Project/tree/main/OOP/oop.ts
https://raw.githubusercontent.com/sameedchhipa24/Node-Project/f23037e/OOP/oop.ts
sameedchhipa24/Node-Project f23037e OOP/oop.ts
true
200
1,782
import inquirer from "inquirer"; class Task { constructor(public name: string, public completed: boolean) {} toggleComplete() { this.completed = !this.completed; } } class TaskList { private tasks: Task[] = []; addTask(name: string) { const task = new Task(name, false); ...
6
Rudra-Sankha-Sinhamahapatra/React-Js-projects
17b4e74
vercel-ai-sdk/multi-modal-chatbot/app/api/chat/route.ts
TypeScript
www.github.com/Rudra-Sankha-Sinhamahapatra/React-Js-projects/tree/main/vercel-ai-sdk/multi-modal-chatbot/app/api/chat/route.ts
https://raw.githubusercontent.com/Rudra-Sankha-Sinhamahapatra/React-Js-projects/17b4e74/vercel-ai-sdk/multi-modal-chatbot/app/api/chat/route.ts
Rudra-Sankha-Sinhamahapatra/React-Js-projects 17b4e74 vercel-ai-sdk/multi-modal-chatbot/app/api/chat/route.ts
true
200
673
import { createGoogleGenerativeAI } from "@ai-sdk/google"; import { streamText } from "ai"; export const maxDuration = 30; export async function POST(req:Request) { const apiKey = process.env.GEMINI_API_KEY; if(!apiKey) { throw new Error("No api key found"); } try { const google = cr...
3
kotyangensss/Web
763dbfc
src/statistics/statistics.controller.ts
TypeScript
www.github.com/kotyangensss/Web/tree/main/src/statistics/statistics.controller.ts
https://raw.githubusercontent.com/kotyangensss/Web/763dbfc/src/statistics/statistics.controller.ts
kotyangensss/Web 763dbfc src/statistics/statistics.controller.ts
true
200
5,152
import { ApiBearerAuth, ApiConsumes, ApiOperation, ApiResponse, ApiTags, } from '@nestjs/swagger'; import { Controller, Get, Param, Post, Query, UseGuards } from '@nestjs/common'; import { statistics } from '@prisma/client'; import { StatisticsService } from './statistics.service'; import { PlaylistInfoDto } ...
2
ULL-ESIT-INF-DSI-2223/ull-esit-inf-dsi-22-23-prct06-generics-solid-imh-02
a641f49
tests/ejercicio-3/artista.spec.ts
TypeScript
www.github.com/ULL-ESIT-INF-DSI-2223/ull-esit-inf-dsi-22-23-prct06-generics-solid-imh-02/tree/main/tests/ejercicio-3/artista.spec.ts
https://raw.githubusercontent.com/ULL-ESIT-INF-DSI-2223/ull-esit-inf-dsi-22-23-prct06-generics-solid-imh-02/a641f49/tests/ejercicio-3/artista.spec.ts
ULL-ESIT-INF-DSI-2223/ull-esit-inf-dsi-22-23-prct06-generics-solid-imh-02 a641f49 tests/ejercicio-3/artista.spec.ts
true
200
1,634
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Asignatura: Desarrollo de Sistemas Informáticos * Curso: 3º * Práctica 6: Clases e interfaces genéricas. Principios SOLID * @author Ismael Martín Herrera * @email alu0101397375@ull.edu.es * @date 12...
5
acerohernan/docs
50201a5
apps/web/src/api/auth/index.ts
TypeScript
www.github.com/acerohernan/docs/tree/main/apps/web/src/api/auth/index.ts
https://raw.githubusercontent.com/acerohernan/docs/50201a5/apps/web/src/api/auth/index.ts
acerohernan/docs 50201a5 apps/web/src/api/auth/index.ts
true
200
632
import { axiosInstance } from "../config"; import { parseAxiosError } from "../utils"; import type { APIResponse } from "../types"; import type { IGetGuestTokenParams, IGetGuestTokenResponse } from "./types"; export const getGuestAccessToken = async ( params: IGetGuestTokenParams, ): Promise<APIResponse<IGetGuestTok...
4
kepehyoyo/simpay
84e8085
wallet/src/routes/transactions.ts
TypeScript
www.github.com/kepehyoyo/simpay/tree/main/wallet/src/routes/transactions.ts
https://raw.githubusercontent.com/kepehyoyo/simpay/84e8085/wallet/src/routes/transactions.ts
kepehyoyo/simpay 84e8085 wallet/src/routes/transactions.ts
true
200
1,249
//view transactions from wallet (GET) /* Get Transaction History: This API endpoint retrieves the transaction history of the user's digital wallet. Endpoint: /api/wallet/transactions Method: GET Request Body: { "walletId": "wallet123" } Response Body: { "transactions": [ { "transactionId": "txn123", "amount": 500, "t...
7
yashkmochi007/typescript-drag-drop
66f3d32
src/components/project-item.ts
TypeScript
www.github.com/yashkmochi007/typescript-drag-drop/tree/main/src/components/project-item.ts
https://raw.githubusercontent.com/yashkmochi007/typescript-drag-drop/66f3d32/src/components/project-item.ts
yashkmochi007/typescript-drag-drop 66f3d32 src/components/project-item.ts
true
200
1,146
import Component from './base-component'; import { autobind } from '../decorators/autobind'; import { Draggable } from '../models/drag-drop'; import { Project } from '../models/project'; // Project Item class export class ProjectItem extends Component<HTMLUListElement, HTMLLIElement> implements Draggable { constru...
1
PandaGuerrier/ExoMaster
5e42978
app/controllers/common/users/exercises_controller.ts
TypeScript
www.github.com/PandaGuerrier/ExoMaster/tree/main/app/controllers/common/users/exercises_controller.ts
https://raw.githubusercontent.com/PandaGuerrier/ExoMaster/5e42978/app/controllers/common/users/exercises_controller.ts
PandaGuerrier/ExoMaster 5e42978 app/controllers/common/users/exercises_controller.ts
true
200
1,735
import type { HttpContext } from '@adonisjs/core/http' import Exercise from '#models/exercise' import { createExerciseStoreValidator, createExerciseUpdateValidator } from '#validators/exercise' import ExercisePolicy from '#policies/exercise_policy' import Folder from '#models/folder' export default class ExercisesCont...
0
sicau-hsuyang/sicau-hsuyang.github.io
5da1216
docs/leetcode/findDiagonalOrder_2.ts
TypeScript
www.github.com/sicau-hsuyang/sicau-hsuyang.github.io/tree/main/docs/leetcode/findDiagonalOrder_2.ts
https://raw.githubusercontent.com/sicau-hsuyang/sicau-hsuyang.github.io/5da1216/docs/leetcode/findDiagonalOrder_2.ts
sicau-hsuyang/sicau-hsuyang.github.io 5da1216 docs/leetcode/findDiagonalOrder_2.ts
true
200
758
export function findDiagonalOrder(nums: number[][]): number[] { let res: number[] = []; let maxLength = -Infinity; for (let row = 0; row < nums.length; row++) { if (nums[row].length > maxLength) { maxLength = nums[row].length; } let start = row; let right = 0; while (start >= 0) { ...
3
NotAWiz4rd/bookaholic
f18379b
bookaholic-frontend/src/app/general-pages/reading-list-chooser/reading-list-chooser.component.ts
TypeScript
www.github.com/NotAWiz4rd/bookaholic/tree/main/bookaholic-frontend/src/app/general-pages/reading-list-chooser/reading-list-chooser.component.ts
https://raw.githubusercontent.com/NotAWiz4rd/bookaholic/f18379b/bookaholic-frontend/src/app/general-pages/reading-list-chooser/reading-list-chooser.component.ts
NotAWiz4rd/bookaholic f18379b bookaholic-frontend/src/app/general-pages/reading-list-chooser/reading-list-chooser.component.ts
true
200
948
import {Component} from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; import {HttpClient} from "@angular/common/http"; import {BACKEND_BASE} from "../../classes"; @Component({ selector: 'app-reading-list-chooser', standalone: true, imports: [], templateUrl: './reading-list-chooser.co...
6
JHashimoto0518/cdk-exercise
22c2aac
s3/lib/s3-stack.ts
TypeScript
www.github.com/JHashimoto0518/cdk-exercise/tree/main/s3/lib/s3-stack.ts
https://raw.githubusercontent.com/JHashimoto0518/cdk-exercise/22c2aac/s3/lib/s3-stack.ts
JHashimoto0518/cdk-exercise 22c2aac s3/lib/s3-stack.ts
true
200
1,315
import { RemovalPolicy, Stack, StackProps, CfnOutput } from 'aws-cdk-lib'; import * as s3 from 'aws-cdk-lib/aws-s3'; import * as kms from 'aws-cdk-lib/aws-kms'; import { Construct } from 'constructs'; export class S3Stack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { super(scope...
2
rklf/remote-video-source
f0cd3ec
src/fetch_url_info.ts
TypeScript
www.github.com/rklf/remote-video-source/tree/main/src/fetch_url_info.ts
https://raw.githubusercontent.com/rklf/remote-video-source/f0cd3ec/src/fetch_url_info.ts
rklf/remote-video-source f0cd3ec src/fetch_url_info.ts
true
200
917
export default async (url: string): Promise<{ fileSize: number, contentType: string }> => { if (!url) { throw new Error("Invalid Url"); } try { // Use fetch with HEAD method to get the content-length and content-type headers const response = await fetch(url, { method: "HEAD" }); ...
4
Tharaka-Chathuranga/Heart-Rate-Monitoring-WearOS-App
8ac68d5
src/services/HealthKitService.ts
TypeScript
www.github.com/Tharaka-Chathuranga/Heart-Rate-Monitoring-WearOS-App/tree/main/src/services/HealthKitService.ts
https://raw.githubusercontent.com/Tharaka-Chathuranga/Heart-Rate-Monitoring-WearOS-App/8ac68d5/src/services/HealthKitService.ts
Tharaka-Chathuranga/Heart-Rate-Monitoring-WearOS-App 8ac68d5 src/services/HealthKitService.ts
true
200
1,082
import AppleHealthKit, { HealthInputOptions, HealthObserver, HealthValue, } from 'react-native-health'; import { Platform } from 'react-native'; import { HealthKitResponse } from 'src/types/heartRate'; const PERMS = AppleHealthKit.Constants.Permissions; const healthKitOptions = { permissions: { ...
5
mayl730/3d-text-ts
2384260
vite.config.ts
TypeScript
www.github.com/mayl730/3d-text-ts/tree/main/vite.config.ts
https://raw.githubusercontent.com/mayl730/3d-text-ts/2384260/vite.config.ts
mayl730/3d-text-ts 2384260 vite.config.ts
true
200
326
const isCodeSandbox = "SANDBOX_URL" in process.env || "CODESANDBOX_HOST" in process.env; export default { publicDir: "./static/", base: "./", server: { host: true, open: !isCodeSandbox, // Open if it's not a CodeSandbox }, build: { outDir: "./dist", emptyOutDir: true, sourcemap: true, ...
7
stvncode/saas-starter
6b7dd00
apps/client/api/queries/auth.ts
TypeScript
www.github.com/stvncode/saas-starter/tree/main/apps/client/api/queries/auth.ts
https://raw.githubusercontent.com/stvncode/saas-starter/6b7dd00/apps/client/api/queries/auth.ts
stvncode/saas-starter 6b7dd00 apps/client/api/queries/auth.ts
true
200
292
import { useQuery } from '@tanstack/react-query' import { app } from '../client' export const getUser = app.auth.me.get export const useGetUser = () => useQuery({ queryKey: [{}], queryFn: async () => { const response = await getUser() return response.data }, })
1
Hack4Impact-UMD/leveling-the-playing-field
05f76dc
src/lib/salesforce/database/account.ts
TypeScript
www.github.com/Hack4Impact-UMD/leveling-the-playing-field/tree/main/src/lib/salesforce/database/account.ts
https://raw.githubusercontent.com/Hack4Impact-UMD/leveling-the-playing-field/05f76dc/src/lib/salesforce/database/account.ts
Hack4Impact-UMD/leveling-the-playing-field 05f76dc src/lib/salesforce/database/account.ts
true
200
1,611
import { APIResponse } from "@/types/apiTypes"; import { Account } from "@/types/types"; export async function getAccountById(accountId: string, accessToken: string): Promise<APIResponse<Account>> { try { const response = await fetch( `${process.env.NEXT_PUBLIC_SALESFORCE_DOMAIN}/services/data/v56.0/sobjec...
0
bindothorpe/groceree-api
b736788
src/middleware/errorHandler.ts
TypeScript
www.github.com/bindothorpe/groceree-api/tree/main/src/middleware/errorHandler.ts
https://raw.githubusercontent.com/bindothorpe/groceree-api/b736788/src/middleware/errorHandler.ts
bindothorpe/groceree-api b736788 src/middleware/errorHandler.ts
true
200
1,105
// Custom error class export class ApiError extends Error { constructor( public statusCode: number, message: string, public originalError?: Error ) { super(message) this.name = 'ApiError' } } // Error handler middleware export const errorHandler = async (err: Error, c:...
6
Tirivashe/auction-app
bb38c1e
apps/server/src/item/item.module.ts
TypeScript
www.github.com/Tirivashe/auction-app/tree/main/apps/server/src/item/item.module.ts
https://raw.githubusercontent.com/Tirivashe/auction-app/bb38c1e/apps/server/src/item/item.module.ts
Tirivashe/auction-app bb38c1e apps/server/src/item/item.module.ts
true
200
747
import { Module } from '@nestjs/common'; import { ItemController } from './item.controller'; import { ItemService } from './item.service'; import { MongooseModule } from '@nestjs/mongoose'; import { Item, ItemSchema } from './schema/item.schema'; import { Bid, BidSchema } from 'src/bid/schema/bid.schema'; import { Bi...
3
guskirb/messaging-app-apiTOP
645dc2e
src/models/message.ts
TypeScript
www.github.com/guskirb/messaging-app-apiTOP/tree/main/src/models/message.ts
https://raw.githubusercontent.com/guskirb/messaging-app-apiTOP/645dc2e/src/models/message.ts
guskirb/messaging-app-apiTOP 645dc2e src/models/message.ts
true
200
808
import mongoose from "mongoose"; const Schema = mongoose.Schema; import { DateTime } from "luxon"; const MessageSchema = new Schema( { message: { type: String }, image: { type: String }, user: { type: Schema.Types.ObjectId, ref: "User", required: true }, chatroom: { type: Schema.Types.ObjectId, ref: ...
2
DumenaHQ/LMS
a458612
src/app/services/utils/query-active-tab.service.spec.ts
TypeScript
www.github.com/DumenaHQ/LMS/tree/main/src/app/services/utils/query-active-tab.service.spec.ts
https://raw.githubusercontent.com/DumenaHQ/LMS/a458612/src/app/services/utils/query-active-tab.service.spec.ts
DumenaHQ/LMS a458612 src/app/services/utils/query-active-tab.service.spec.ts
true
200
399
import { TestBed } from '@angular/core/testing'; import { QueryActiveTabService } from './query-active-tab.service'; describe('QueryActiveTabService', () => { let service: QueryActiveTabService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(QueryActiveTabService); }); ...
4
DileepKumarK444/DMS
2471855
FrontEnd/dms/src/app/sub-users/sub-users.component.ts
TypeScript
www.github.com/DileepKumarK444/DMS/tree/main/FrontEnd/dms/src/app/sub-users/sub-users.component.ts
https://raw.githubusercontent.com/DileepKumarK444/DMS/2471855/FrontEnd/dms/src/app/sub-users/sub-users.component.ts
DileepKumarK444/DMS 2471855 FrontEnd/dms/src/app/sub-users/sub-users.component.ts
true
200
7,973
import { Component, OnInit,ViewChild, ElementRef } from '@angular/core'; import { AuthService } from '../services/auth.service'; import { Router, ActivatedRoute } from '@angular/router'; import { FormControl, Validators } from "@angular/forms"; declare var $ :any; @Component({ selector: 'app-sub-users', templateUr...
5
anselmoj/search-user
0d6bfd3
search-user-github/src/store/slices/home/sagas/getUser.ts
TypeScript
www.github.com/anselmoj/search-user/tree/main/search-user-github/src/store/slices/home/sagas/getUser.ts
https://raw.githubusercontent.com/anselmoj/search-user/0d6bfd3/search-user-github/src/store/slices/home/sagas/getUser.ts
anselmoj/search-user 0d6bfd3 search-user-github/src/store/slices/home/sagas/getUser.ts
true
200
879
import { PayloadAction } from '@reduxjs/toolkit' import { AxiosResponse } from 'axios' import { call, put } from 'redux-saga/effects' import { profileActions } from '..' import helpers from '../../../../helpers' import httpClient from '../../../../services/httpClient' import IGetUserProfileResponse from '../../../../...
7
lucasmbrute2/pomodoro
1e753e5
src/reducers/cycles/actions.ts
TypeScript
www.github.com/lucasmbrute2/pomodoro/tree/main/src/reducers/cycles/actions.ts
https://raw.githubusercontent.com/lucasmbrute2/pomodoro/1e753e5/src/reducers/cycles/actions.ts
lucasmbrute2/pomodoro 1e753e5 src/reducers/cycles/actions.ts
true
200
713
import { Cycle } from "./reducer"; export enum ActionTypes { ADD_NEW_CYCLE = "ADD_NEW_CYCLE", INTERRUPT_CURRENT_CYCLE = "INTERRUPT_CURRENT_CYCLE", MARK_CURRENT_CYCLE_AS_FINISHED = "MARK_CURRENT_CYCLE_AS_FINISHED", } export function addNewCycleAction(newCycle: Cycle) { return { type: ActionType...
1
waapsdeveloper/guard-watch
dbcb3a9
src/app/pages/tutorial/tutorial-box/tutorial-box.component.spec.ts
TypeScript
www.github.com/waapsdeveloper/guard-watch/tree/main/src/app/pages/tutorial/tutorial-box/tutorial-box.component.spec.ts
https://raw.githubusercontent.com/waapsdeveloper/guard-watch/dbcb3a9/src/app/pages/tutorial/tutorial-box/tutorial-box.component.spec.ts
waapsdeveloper/guard-watch dbcb3a9 src/app/pages/tutorial/tutorial-box/tutorial-box.component.spec.ts
true
200
732
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { TutorialBoxComponent } from './tutorial-box.component'; describe('TutorialBoxComponent', () => { let component: TutorialBoxComponent; let fixture: ComponentFixture<TutorialBoxCom...
0
douglasrochak/graphql
6f48c8b
resolvers/Usuario.ts
TypeScript
www.github.com/douglasrochak/graphql/tree/main/resolvers/Usuario.ts
https://raw.githubusercontent.com/douglasrochak/graphql/6f48c8b/resolvers/Usuario.ts
douglasrochak/graphql 6f48c8b resolvers/Usuario.ts
true
200
393
import { perfis } from "../data/dados"; type Usuario = { id: number; nome_completo: string; email: string; salario: number; vip: boolean; id_perfil: number; }; export default { Usuario: { nome(usuario: Usuario) { return usuario.nome_completo; }, perfil(usuario: Usuario) { return ...
3
sanjayrabadiya/qmsweb_admin
83093f1
src/app/core/services/utility.service.ts
TypeScript
www.github.com/sanjayrabadiya/qmsweb_admin/tree/main/src/app/core/services/utility.service.ts
https://raw.githubusercontent.com/sanjayrabadiya/qmsweb_admin/83093f1/src/app/core/services/utility.service.ts
sanjayrabadiya/qmsweb_admin 83093f1 src/app/core/services/utility.service.ts
true
200
3,321
import { HttpClient } from '@angular/common/http'; import { StorageService } from './storage.service'; import { EnumService } from './enum.service'; import { Injectable } from '@angular/core'; import { DataService } from './data.service'; import { DropDownService } from './drop-down.service'; import { FormGroup } from ...
6
devthub/systems-hub-v2-saas
fccc8be
src/lib/services/user/user-service.ts
TypeScript
www.github.com/devthub/systems-hub-v2-saas/tree/main/src/lib/services/user/user-service.ts
https://raw.githubusercontent.com/devthub/systems-hub-v2-saas/fccc8be/src/lib/services/user/user-service.ts
devthub/systems-hub-v2-saas fccc8be src/lib/services/user/user-service.ts
true
200
3,302
import { FilterQuery } from 'mongoose'; import dbConnect from '@/lib/config/db-connect'; import { RegisterFormValues, registerSchema } from '@/lib/validation-schemas/register-schema'; import AgencyModel from '@/models/Agency.model'; import AgencySideBarOptionModel from '@/models/AgencySideBarOption.model'; import Perm...
2
htmlacademy-nestjs/624885-readme-7
1646547
project/apps/files/src/app/file-uploader/src/file-uploader-module/file-uploader.controller.ts
TypeScript
www.github.com/htmlacademy-nestjs/624885-readme-7/tree/main/project/apps/files/src/app/file-uploader/src/file-uploader-module/file-uploader.controller.ts
https://raw.githubusercontent.com/htmlacademy-nestjs/624885-readme-7/1646547/project/apps/files/src/app/file-uploader/src/file-uploader-module/file-uploader.controller.ts
htmlacademy-nestjs/624885-readme-7 1646547 project/apps/files/src/app/file-uploader/src/file-uploader-module/file-uploader.controller.ts
true
200
941
import 'multer'; import { Controller, Get, Param, Post, UploadedFile, UseInterceptors } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { FileUploaderService } from './file-uploader.service'; import { fillDto } from '@project/helpers'; import { UploadedFileRdo } from './rdo/u...
4
aldriebarcena/sunset-predictor
66a1227
node_modules/0g/src/QueryIterator.ts
TypeScript
www.github.com/aldriebarcena/sunset-predictor/tree/main/node_modules/0g/src/QueryIterator.ts
https://raw.githubusercontent.com/aldriebarcena/sunset-predictor/66a1227/node_modules/0g/src/QueryIterator.ts
aldriebarcena/sunset-predictor 66a1227 node_modules/0g/src/QueryIterator.ts
true
200
2,855
import { ComponentHandle } from './Component2.js'; import { Entity } from './Entity.js'; import { OneOf, Changed, Filter, not, Not } from './filters.js'; import { Game } from './Game.js'; import { Query, QueryComponentFilter } from './Query.js'; type FilterNots<CompUnion extends Filter<ComponentHandle> | ComponentHand...
5
AyoubIzourane/Workflow
b8ea274
backend/dist/auth/UserService.d.ts
TypeScript
www.github.com/AyoubIzourane/Workflow/tree/main/backend/dist/auth/UserService.d.ts
https://raw.githubusercontent.com/AyoubIzourane/Workflow/b8ea274/backend/dist/auth/UserService.d.ts
AyoubIzourane/Workflow b8ea274 backend/dist/auth/UserService.d.ts
true
200
554
import { Repository } from 'typeorm'; import { User } from '../admin/users/interface/User'; import { Role } from '../admin/users/interface/Role'; export declare class UserService { private userRepository; constructor(userRepository: Repository<User>); createUser(email: string, password: string, role: Role):...
7
thiagowehren/consumy-seller
af1485e
src/api/searchAPI.ts
TypeScript
www.github.com/thiagowehren/consumy-seller/tree/main/src/api/searchAPI.ts
https://raw.githubusercontent.com/thiagowehren/consumy-seller/af1485e/src/api/searchAPI.ts
thiagowehren/consumy-seller af1485e src/api/searchAPI.ts
true
200
466
import type { SearchResponse } from "@/dtos/searchDTO" import { request } from './HTTPClient'; export async function searchAll(search: string): Promise<SearchResponse> { const response = await request<SearchResponse>('/search', { method: "POST", params: { search }, headers: { 'A...
1
thetradingcompany/stonks-strategies
b130401
src/interfaces/etl.interface.ts
TypeScript
www.github.com/thetradingcompany/stonks-strategies/tree/main/src/interfaces/etl.interface.ts
https://raw.githubusercontent.com/thetradingcompany/stonks-strategies/b130401/src/interfaces/etl.interface.ts
thetradingcompany/stonks-strategies b130401 src/interfaces/etl.interface.ts
true
200
615
import { DataOutputSizeEnum, PayloadDataTypeEnum, DataSliceEnum, DataTimeFrameEnum } from '../enums'; import { CandleType } from 'candle.type'; export interface MutationPayload { success: boolean; } export interface GetStockDataInput { symbol: string; exchange: string; timeFrame: DataTimeFrameEnum; outputSi...
0
Samandar-Jumanov/rent-car
69f4c61
src/api/regions/regions.model.ts
TypeScript
www.github.com/Samandar-Jumanov/rent-car/tree/main/src/api/regions/regions.model.ts
https://raw.githubusercontent.com/Samandar-Jumanov/rent-car/69f4c61/src/api/regions/regions.model.ts
Samandar-Jumanov/rent-car 69f4c61 src/api/regions/regions.model.ts
true
200
1,231
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi"; import { z } from "zod"; extendZodWithOpenApi(z); export interface IRegion { id: string; name: string; cities: ICity[]; createdAt: Date; updatedAt: Date; } export interface ICity { id: string; name: string; regionId: string; } ...
6
webbomj/slider-mvp
fd15399
src/slider/layers/view/components/scale/tests/scale.test.ts
TypeScript
www.github.com/webbomj/slider-mvp/tree/main/src/slider/layers/view/components/scale/tests/scale.test.ts
https://raw.githubusercontent.com/webbomj/slider-mvp/fd15399/src/slider/layers/view/components/scale/tests/scale.test.ts
webbomj/slider-mvp fd15399 src/slider/layers/view/components/scale/tests/scale.test.ts
true
200
2,663
/** * @jest-environment jsdom */ /* eslint-disable no-undef */ import Observer from '../../../../observer/observer'; import Scale from '../scale'; describe('Scale', () => { document.body.innerHTML = `<div id="app"></div>`; let scale: Scale; let container: HTMLElement | null; const observer = new Observer(); ...
3
raphaelrak01/transaction-app
82470ab
libs/common/src/rmq/rmq.module.ts
TypeScript
www.github.com/raphaelrak01/transaction-app/tree/main/libs/common/src/rmq/rmq.module.ts
https://raw.githubusercontent.com/raphaelrak01/transaction-app/82470ab/libs/common/src/rmq/rmq.module.ts
raphaelrak01/transaction-app 82470ab libs/common/src/rmq/rmq.module.ts
true
200
1,121
import { DynamicModule, Module } from '@nestjs/common'; import { RmqService } from './rmq.service'; import { ClientsModule, Transport } from '@nestjs/microservices'; import { ConfigService } from '@nestjs/config'; // Interface interface RmqModuleOptions{ name: string; } @Module({ providers: [RmqService], ...
5
cyberronin1101/redux_saga_ts
24f623e
src/api/api.ts
TypeScript
www.github.com/cyberronin1101/redux_saga_ts/tree/main/src/api/api.ts
https://raw.githubusercontent.com/cyberronin1101/redux_saga_ts/24f623e/src/api/api.ts
cyberronin1101/redux_saga_ts 24f623e src/api/api.ts
true
200
675
import axios from "axios"; import { hitsType } from "./api.types"; export * from "./api.types"; export class Api { private static baseUrl = "http://hn.algolia.com/api/v1/"; static getLatestNews = async (searchQuery: string) => { const request = await axios<hitsType>( this.baseUrl + `/search?query=${sear...
1
Subcentralapp/subsense-hub-09
c7eab29
supabase/functions/update-logos/index.ts
TypeScript
www.github.com/Subcentralapp/subsense-hub-09/tree/main/supabase/functions/update-logos/index.ts
https://raw.githubusercontent.com/Subcentralapp/subsense-hub-09/c7eab29/supabase/functions/update-logos/index.ts
Subcentralapp/subsense-hub-09 c7eab29 supabase/functions/update-logos/index.ts
true
200
2,474
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2.39.3' const supabaseUrl = Deno.env.get('SUPABASE_URL')! const supabaseKey = Deno.env.get('SUPABASE_SERVICE_ROLE_KEY')! const supabase = createClient(supabaseUrl, supabaseKey) const corsHeaders = { 'Access-Control-Allow-Origin': '*', 'Access-Cont...
6
biellil/ReactFlix
343650f
src/components/Loading/styles.ts
TypeScript
www.github.com/biellil/ReactFlix/tree/main/src/components/Loading/styles.ts
https://raw.githubusercontent.com/biellil/ReactFlix/343650f/src/components/Loading/styles.ts
biellil/ReactFlix 343650f src/components/Loading/styles.ts
true
200
479
import styled from 'styled-components' import { LinearProgress } from '@mui/material' export const StyledLinearProgress = styled(LinearProgress)` width: 80%; // Ajuste conforme necessário margin: 20px auto; // Centraliza horizontalmente e adiciona margem vertical background-color: #e0e0e0; // Cor do fundo do Lin...
0
lonelyhentxi/oidc-client-rx
6415c0b
src/iframe/refresh-session-iframe.service.ts
TypeScript
www.github.com/lonelyhentxi/oidc-client-rx/tree/main/src/iframe/refresh-session-iframe.service.ts
https://raw.githubusercontent.com/lonelyhentxi/oidc-client-rx/6415c0b/src/iframe/refresh-session-iframe.service.ts
lonelyhentxi/oidc-client-rx 6415c0b src/iframe/refresh-session-iframe.service.ts
true
200
4,029
import { Injectable, inject } from '@outposts/injection-js'; import { Observable, ReplaySubject, type Subscription, fromEventPattern, } from 'rxjs'; import { filter, share, switchMap, takeUntil } from 'rxjs/operators'; import type { OpenIdConfiguration } from '../config/openid-configuration'; import { DOCUMENT ...
5
byverdu/ts-boilerplate
4fdbfa7
express-example/src/typings/index.d.ts
TypeScript
www.github.com/byverdu/ts-boilerplate/tree/main/express-example/src/typings/index.d.ts
https://raw.githubusercontent.com/byverdu/ts-boilerplate/4fdbfa7/express-example/src/typings/index.d.ts
byverdu/ts-boilerplate 4fdbfa7 express-example/src/typings/index.d.ts
true
200
627
declare module '@app-types-express-api' { export interface HttpClientArgs { url: string; params?: import('undici').RequestInit; } export interface HttpClient { get: ({ url, }: Pick<HttpClientArgs, 'url'>) => Promise<import('undici').Response>; post: (params: HttpClientArgs) => Promise<i...
6
GabrielFAB/Barbearia
5c58de1
src/services/haircut/UpdateHaircutService.ts
TypeScript
www.github.com/GabrielFAB/Barbearia/tree/main/src/services/haircut/UpdateHaircutService.ts
https://raw.githubusercontent.com/GabrielFAB/Barbearia/5c58de1/src/services/haircut/UpdateHaircutService.ts
GabrielFAB/Barbearia 5c58de1 src/services/haircut/UpdateHaircutService.ts
true
200
958
import prismaClient from "../../prisma"; interface HaircutRequest{ user_id: string haircut_id: string name: string price: number status: string | boolean } class UpdateHaircutService{ async execute({user_id, name, price, haircut_id, status = true}: HaircutRequest){ const user = await ...
0
prasanjitha/b-oshop
a2b53c1
src/auth/auth.service.ts
TypeScript
www.github.com/prasanjitha/b-oshop/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/prasanjitha/b-oshop/a2b53c1/src/auth/auth.service.ts
prasanjitha/b-oshop a2b53c1 src/auth/auth.service.ts
true
200
2,182
import { Injectable, NotFoundException } from '@nestjs/common'; import { ConflictException, InternalServerErrorException } from '@nestjs/common/exceptions'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { AuthCredentialDto } from './dto/auth-credentiaols.dto'; import {...
5
UCLA-IRL/ndn-workspace-local
b6ddd6a
gen-selfsign.ts
TypeScript
www.github.com/UCLA-IRL/ndn-workspace-local/tree/main/gen-selfsign.ts
https://raw.githubusercontent.com/UCLA-IRL/ndn-workspace-local/b6ddd6a/gen-selfsign.ts
UCLA-IRL/ndn-workspace-local b6ddd6a gen-selfsign.ts
true
200
1,001
import { bytesToBase64 } from '@ucla-irl/ndnts-aux/utils'; import { Encoder } from '@ndn/tlv'; import { Name } from '@ndn/packet'; import { Certificate, CertNaming, createSigner, createVerifier, ECDSA } from '@ndn/keychain'; if (import.meta.main) { if (Deno.args.length < 1 || !Deno.args[0]) { console.error('Plea...
0
AnuragAmbekar741/next14-tutorial
48fc919
src/app/actions/user.ts
TypeScript
www.github.com/AnuragAmbekar741/next14-tutorial/tree/main/src/app/actions/user.ts
https://raw.githubusercontent.com/AnuragAmbekar741/next14-tutorial/48fc919/src/app/actions/user.ts
AnuragAmbekar741/next14-tutorial 48fc919 src/app/actions/user.ts
true
200
718
"use server" import client from "@/db" //server action - can be called from client or on server side. export async function signup(email:string,password:string) { try{ await client.user.create({ data:{ email:email, password:password } }) ...
6
github/codeql-variant-analysis-action
b8c9363
src/deserialize.ts
TypeScript
www.github.com/github/codeql-variant-analysis-action/tree/main/src/deserialize.ts
https://raw.githubusercontent.com/github/codeql-variant-analysis-action/b8c9363/src/deserialize.ts
github/codeql-variant-analysis-action b8c9363 src/deserialize.ts
true
200
391
export function camelize(_: string, value: unknown): unknown { if (value && typeof value === "object") { for (const k in value) { if (/-./.exec(k)) { const l = k.replace(/-./g, (x) => x[1].toUpperCase()); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment value[l] = ...
5