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
bent10/headless-route
5f7d14e
packages/vite/src/build.ts
TypeScript
www.github.com/bent10/headless-route/tree/main/packages/vite/src/build.ts
https://raw.githubusercontent.com/bent10/headless-route/5f7d14e/packages/vite/src/build.ts
bent10/headless-route 5f7d14e packages/vite/src/build.ts
true
200
1,089
import type { Plugin } from 'vite' import { Api } from './Api.js' import { runHandler } from './handler.js' import { useApi } from './loader.js' import type { HeadlessRouteContextMeta } from './types.js' /** * A Vite plugin for building headless routes. * * This plugin integrates with the `Api` class to handle rout...
2
SBellido/AppsWebBio
4485873
src/app/core/creativityFirestore.service.ts
TypeScript
www.github.com/SBellido/AppsWebBio/tree/main/src/app/core/creativityFirestore.service.ts
https://raw.githubusercontent.com/SBellido/AppsWebBio/4485873/src/app/core/creativityFirestore.service.ts
SBellido/AppsWebBio 4485873 src/app/core/creativityFirestore.service.ts
true
200
2,396
import { Injectable } from '@angular/core'; import { collection, CollectionReference, doc, endBefore, Firestore, getDoc, getDocs, increment, limit, orderBy, query, QuerySnapshot, setDoc, startAfter, startAt, updateDoc } from '@angular/fire/firestore'; import { CreativeUser } from './models/creative-user.interface'; @...
3
Tinchomay/base-nest
5a2caa3
src/auth/decorator/role-protected.decorator.ts
TypeScript
www.github.com/Tinchomay/base-nest/tree/main/src/auth/decorator/role-protected.decorator.ts
https://raw.githubusercontent.com/Tinchomay/base-nest/5a2caa3/src/auth/decorator/role-protected.decorator.ts
Tinchomay/base-nest 5a2caa3 src/auth/decorator/role-protected.decorator.ts
true
200
387
import { SetMetadata } from '@nestjs/common'; import { ValidRoles } from '../interfaces/valid-roles'; //Asignamos el nombre del metadado ya en un solo lugar export const ROLES = 'roles'; //Aqui recibe argumentos que le pasamos a el decorador export const RoleProtected = (...args: ValidRoles[]) => { //retorna...
4
MStenicka/JavaScript-TypeScript-exercises
28500e9
2_Arrays/double-items.ts
TypeScript
www.github.com/MStenicka/JavaScript-TypeScript-exercises/tree/main/2_Arrays/double-items.ts
https://raw.githubusercontent.com/MStenicka/JavaScript-TypeScript-exercises/28500e9/2_Arrays/double-items.ts
MStenicka/JavaScript-TypeScript-exercises 28500e9 2_Arrays/double-items.ts
true
200
414
// - Create an array variable named `drinks` with the following content: // `['Gin', 'Whiskey', 'Wine', 'Beer']` // - Double all the strings in the array, use a built in array method instead of // a loop // - It should print: ['GinGin', 'WhiskeyWhiskey', 'WineWine', 'BeerBeer']` let drinks = ['Gin', 'Whiskey', 'Wi...
5
Excession27/rick-and-morty
818ab0a
src/containers/Home/components/CharacterList/useCharacterList.ts
TypeScript
www.github.com/Excession27/rick-and-morty/tree/main/src/containers/Home/components/CharacterList/useCharacterList.ts
https://raw.githubusercontent.com/Excession27/rick-and-morty/818ab0a/src/containers/Home/components/CharacterList/useCharacterList.ts
Excession27/rick-and-morty 818ab0a src/containers/Home/components/CharacterList/useCharacterList.ts
true
200
2,201
import { useCallback, useEffect, useState } from "react"; import { useInfiniteQuery } from "react-query"; import { PageDataType } from "api/types"; import useDebounce from "../../../../hooks/useDebounce/useDebounce"; import { getCharacters } from "api/characters"; type FilterDataType = { name: string; status: stri...
2
cogane1010/angular_api_netcore_basecode
e717886
FE/App-Frontend/src/app/booking_online/components/booking-trans-control/booking-trans-compare/booking-trans-compare.component.ts
TypeScript
www.github.com/cogane1010/angular_api_netcore_basecode/tree/main/FE/App-Frontend/src/app/booking_online/components/booking-trans-control/booking-trans-compare/booking-trans-compare.component.ts
https://raw.githubusercontent.com/cogane1010/angular_api_netcore_basecode/e717886/FE/App-Frontend/src/app/booking_online/components/booking-trans-control/booking-trans-compare/booking-trans-compare.component.ts
cogane1010/angular_api_netcore_basecode e717886 FE/App-Frontend/src/app/booking_online/components/booking-trans-control/booking-trans-compare/booking-trans-compare.component.ts
true
200
5,522
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { Setting } from 'src/app/admin/model'; import { SettingService } from 'src/app/admin/service/setting.service'; import { Organization, PaymentCompare, SaveCompareModel, SeaBankCheckCode, SeaBankCheckCodeE...
4
Hardiksaresaoc/Hardiksaresaoc
5016c80
ngo-backend/src/fundraiser/fundraiser.module.ts
TypeScript
www.github.com/Hardiksaresaoc/Hardiksaresaoc/tree/main/ngo-backend/src/fundraiser/fundraiser.module.ts
https://raw.githubusercontent.com/Hardiksaresaoc/Hardiksaresaoc/5016c80/ngo-backend/src/fundraiser/fundraiser.module.ts
Hardiksaresaoc/Hardiksaresaoc 5016c80 ngo-backend/src/fundraiser/fundraiser.module.ts
true
200
892
import { Module, forwardRef } from '@nestjs/common'; import { FundraiserService } from './fundraiser.service'; import { FundraiserController } from './fundraiser.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Fundraiser } from './entities/fundraiser.entity'; import { FundRaiserRepository } from ...
3
gavinsawyer/ngx-firebase-web-authn
05de71b
apps/demo/src/app/services/profile.service.ts
TypeScript
www.github.com/gavinsawyer/ngx-firebase-web-authn/tree/main/apps/demo/src/app/services/profile.service.ts
https://raw.githubusercontent.com/gavinsawyer/ngx-firebase-web-authn/05de71b/apps/demo/src/app/services/profile.service.ts
gavinsawyer/ngx-firebase-web-authn 05de71b apps/demo/src/app/services/profile.service.ts
true
200
2,197
import { Injectable } from "@angular/core"; import { User } from "@angular/fire/auth"; import { doc, docSnapshots, DocumentReference, DocumentSnapshot, Firestore } from "@angular/fire/firestore"; import {...
5
slorde/brasileirao-api
8ab4e78
src/model/firestore/Competition.ts
TypeScript
www.github.com/slorde/brasileirao-api/tree/main/src/model/firestore/Competition.ts
https://raw.githubusercontent.com/slorde/brasileirao-api/8ab4e78/src/model/firestore/Competition.ts
slorde/brasileirao-api 8ab4e78 src/model/firestore/Competition.ts
true
200
612
import BaseModel from "./BaseModel"; class Competition extends BaseModel { public id!: string; public year!: number; public value?: number; public beginDate?: Date; public endDate?: Date; public winner?: string; public secondWinner?: string; getModelName(): string { return 'competitions' } fi...
2
directus-labs/extensions
7783332
packages/ai-alt-text-writer/src/api.ts
TypeScript
www.github.com/directus-labs/extensions/tree/main/packages/ai-alt-text-writer/src/api.ts
https://raw.githubusercontent.com/directus-labs/extensions/7783332/packages/ai-alt-text-writer/src/api.ts
directus-labs/extensions 7783332 packages/ai-alt-text-writer/src/api.ts
true
200
1,297
/// <reference types="@directus/extensions/api.d.ts" /> import type { SandboxOperationConfig } from 'directus:api'; import { log, request } from 'directus:api'; const operation: SandboxOperationConfig = { id: 'directus-labs-ai-alt-text-writer-operation', handler: async ({ apiKey, url }: { apiKey: string; url: strin...
4
Seba-Beron/VisorCobranzaFront
e3ab078
src/app/shared/services/interceptors.service.ts
TypeScript
www.github.com/Seba-Beron/VisorCobranzaFront/tree/main/src/app/shared/services/interceptors.service.ts
https://raw.githubusercontent.com/Seba-Beron/VisorCobranzaFront/e3ab078/src/app/shared/services/interceptors.service.ts
Seba-Beron/VisorCobranzaFront e3ab078 src/app/shared/services/interceptors.service.ts
true
200
852
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import {Router} from '@angular/router'; @Injectable({ providedIn: 'root' }) export class InterceptorsService implements HttpInterceptor { cons...
7
Vitatech2013/multibanking_angular
257adf7
src/app/customer/view-account/view-account.component.ts
TypeScript
www.github.com/Vitatech2013/multibanking_angular/tree/main/src/app/customer/view-account/view-account.component.ts
https://raw.githubusercontent.com/Vitatech2013/multibanking_angular/257adf7/src/app/customer/view-account/view-account.component.ts
Vitatech2013/multibanking_angular 257adf7 src/app/customer/view-account/view-account.component.ts
true
200
942
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ManagerService } from 'src/app/manager/manager.service'; import { CViewTransactionsComponent } from '../c-view-transactions/c-view-transactions.component'; @Component({ selector: 'app-view-account', te...
3
muhamedkarajic/angular-playground
6f9a671
apps/playground/src/app/shared/decorators/required-inputs.decorator.ts
TypeScript
www.github.com/muhamedkarajic/angular-playground/tree/main/apps/playground/src/app/shared/decorators/required-inputs.decorator.ts
https://raw.githubusercontent.com/muhamedkarajic/angular-playground/6f9a671/apps/playground/src/app/shared/decorators/required-inputs.decorator.ts
muhamedkarajic/angular-playground 6f9a671 apps/playground/src/app/shared/decorators/required-inputs.decorator.ts
true
200
2,942
import { InjectableType, ɵComponentType as ComponentType, ɵDirectiveType as DirectiveType } from '@angular/core'; import { catchError, combineLatest, Observable, of, ReplaySubject, take, throwError, timeout } from 'rxjs'; import { IRequiredConfig } from './required.decorator'; function decorateNgOnInit( ngOnInit: ((...
2
phamlinh02/nest-fe
326c24b
projects/nest-customer/src/app/contact/contact.component.ts
TypeScript
www.github.com/phamlinh02/nest-fe/tree/main/projects/nest-customer/src/app/contact/contact.component.ts
https://raw.githubusercontent.com/phamlinh02/nest-fe/326c24b/projects/nest-customer/src/app/contact/contact.component.ts
phamlinh02/nest-fe 326c24b projects/nest-customer/src/app/contact/contact.component.ts
true
200
366
import { AfterViewInit,Component } from '@angular/core'; import { paths } from '../const'; declare let template: any; @Component({ selector: 'app-contact', templateUrl: './contact.component.html', }) export class ContactComponent implements AfterViewInit{ title = 'nest-customer'; paths = paths; ngAfterVi...
5
7omy10/Klubo_Mvp
c20386f
src/app/api/academias/route.ts
TypeScript
www.github.com/7omy10/Klubo_Mvp/tree/main/src/app/api/academias/route.ts
https://raw.githubusercontent.com/7omy10/Klubo_Mvp/c20386f/src/app/api/academias/route.ts
7omy10/Klubo_Mvp c20386f src/app/api/academias/route.ts
true
200
3,060
// src/app/api/academias/route.ts import { connectDB } from "@/libs/mongodb"; import Academia from "@/models/academia"; import { getServerSession } from "next-auth/next"; // Usamos getServerSession para NextAuth import { authOptions } from "../../../libs/authOptions"; // Importa las opciones de autenticación import { N...
4
AhmedFakharABbas/JP-Paints-UI
636f006
src/app/components/admin/admin-routing.module.ts
TypeScript
www.github.com/AhmedFakharABbas/JP-Paints-UI/tree/main/src/app/components/admin/admin-routing.module.ts
https://raw.githubusercontent.com/AhmedFakharABbas/JP-Paints-UI/636f006/src/app/components/admin/admin-routing.module.ts
AhmedFakharABbas/JP-Paints-UI 636f006 src/app/components/admin/admin-routing.module.ts
true
200
1,753
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { MarketingComponent } from './marketing/marketing.component'; import { RestoreCustomerComponent } from './restore-customer/restore-customer.component'; import { CommissionsComponent } from './commissions/commission...
3
slashritesh/ebookApi
5547389
src/middleware/authMiddleware.ts
TypeScript
www.github.com/slashritesh/ebookApi/tree/main/src/middleware/authMiddleware.ts
https://raw.githubusercontent.com/slashritesh/ebookApi/5547389/src/middleware/authMiddleware.ts
slashritesh/ebookApi 5547389 src/middleware/authMiddleware.ts
true
200
1,131
import { NextFunction, Request, Response } from "express-serve-static-core"; import { UnauthenticationError } from "../errors/customErrors"; import jwt, { JwtPayload } from 'jsonwebtoken' import { User } from "../models/user.model"; import { userDoc } from "../dtos/user.dtos"; export interface AuthenticatedRequest ext...
7
thutasann/elastrix-saas
1155059
global.d.ts
TypeScript
www.github.com/thutasann/elastrix-saas/tree/main/global.d.ts
https://raw.githubusercontent.com/thutasann/elastrix-saas/1155059/global.d.ts
thutasann/elastrix-saas 1155059 global.d.ts
true
200
471
declare namespace NodeJS { export interface ProcessEnv { NEXT_PUBLIC_STRIPE_CLIENT_ID: string STRIPE_SECRET_KEY: string NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: string NEXT_PUBLIC_PLATFORM_SUBSCRIPTION_PERCENT: number NEXT_PUBLIC_PLATFORM_ONETIME_FEE: number NEXT_PUBLIC_PLATFORM_AGENY_PERCENT: num...
2
JavierBalonga/gym-app
d88932f
front/src/contexts/migrations/5.ts
TypeScript
www.github.com/JavierBalonga/gym-app/tree/main/front/src/contexts/migrations/5.ts
https://raw.githubusercontent.com/JavierBalonga/gym-app/d88932f/front/src/contexts/migrations/5.ts
JavierBalonga/gym-app d88932f front/src/contexts/migrations/5.ts
true
200
1,252
import { V4Store } from './4'; export interface V5Store { routines: { id: string; name: string; exercises: { id: string; name: string; sets: number; reps: number; weight: number; comment: string; }[]; executions: { id: string; status: 'IN_PROGRESS' ...
5
miricuriel/angular-bases
eddebe9
src/app/heroes/heroes.module.ts
TypeScript
www.github.com/miricuriel/angular-bases/tree/main/src/app/heroes/heroes.module.ts
https://raw.githubusercontent.com/miricuriel/angular-bases/eddebe9/src/app/heroes/heroes.module.ts
miricuriel/angular-bases eddebe9 src/app/heroes/heroes.module.ts
true
200
490
import { NgModule } from "@angular/core"; import { HeroeComponent } from "./heroe/heroe.component"; import { ListaComponent } from "./lista/lista.component"; import { CommonModule } from "@angular/common"; @NgModule({ declarations:[ HeroeComponent, ListaComponent ], exports:[ HeroeComponent, Li...
4
mauserez/words
46ecccb
src/shared/helpers/number.ts
TypeScript
www.github.com/mauserez/words/tree/main/src/shared/helpers/number.ts
https://raw.githubusercontent.com/mauserez/words/46ecccb/src/shared/helpers/number.ts
mauserez/words 46ecccb src/shared/helpers/number.ts
true
200
277
export const plural = ( number: number, one: string, two: string, five: string ) => { let n = Math.abs(number); n %= 100; if (n >= 5 && n <= 20) { return five; } n %= 10; if (n === 1) { return one; } if (n >= 2 && n <= 4) { return two; } return five; };
3
berkaydenizyilmaz/bilgi-yarismasi-web
5b3b131
app/api/users/history/route.ts
TypeScript
www.github.com/berkaydenizyilmaz/bilgi-yarismasi-web/tree/main/app/api/users/history/route.ts
https://raw.githubusercontent.com/berkaydenizyilmaz/bilgi-yarismasi-web/5b3b131/app/api/users/history/route.ts
berkaydenizyilmaz/bilgi-yarismasi-web 5b3b131 app/api/users/history/route.ts
true
200
3,163
import { NextRequest } from "next/server"; import { prisma } from "@/lib/prisma"; import { apiResponse } from "@/lib/api-response"; import { APIError, AuthenticationError } from "@/lib/errors"; import jwt from 'jsonwebtoken'; import { logger } from "@/lib/logger"; /** * GET /api/users/history * Kullanıcının quiz geç...
7
NodechoHQ/nodecho-server
fa688f1
drizzle.config.ts
TypeScript
www.github.com/NodechoHQ/nodecho-server/tree/main/drizzle.config.ts
https://raw.githubusercontent.com/NodechoHQ/nodecho-server/fa688f1/drizzle.config.ts
NodechoHQ/nodecho-server fa688f1 drizzle.config.ts
true
200
307
import 'dotenv/config'; import { defineConfig } from 'drizzle-kit'; export default defineConfig({ driver: 'better-sqlite', out: 'src/database/migrations', schema: 'src/database/schema.ts', dbCredentials: { url: process.env.DATABASE_URL ?? 'sqlite.db', }, verbose: true, strict: true, });
2
lillithkt/locked-vpm
26f4b54
src/routes/listing.ts
TypeScript
www.github.com/lillithkt/locked-vpm/tree/main/src/routes/listing.ts
https://raw.githubusercontent.com/lillithkt/locked-vpm/26f4b54/src/routes/listing.ts
lillithkt/locked-vpm 26f4b54 src/routes/listing.ts
true
200
464
import { RequestHandler } from "express"; import { getSource } from "../data"; import { getListingPackages } from "../packages"; export const listingHandler: RequestHandler = async (req, res) => { const source = getSource(); const packages = await getListingPackages(req.headers.authorization); if (Object.keys(...
5
dorji-dev/expense-manager
52cbd33
src/components/providers/database/category.ts
TypeScript
www.github.com/dorji-dev/expense-manager/tree/main/src/components/providers/database/category.ts
https://raw.githubusercontent.com/dorji-dev/expense-manager/52cbd33/src/components/providers/database/category.ts
dorji-dev/expense-manager 52cbd33 src/components/providers/database/category.ts
true
200
1,367
import { Category } from "@/lib/types/config"; import { categoryCollectionId, databaseId, databases, expenseCollectionId, } from "@/config/appwrite-config"; import { Models, ID } from "appwrite"; export async function createCategory(category: Omit<Category, "$id">) { const document = await databases.createDo...
0
Kai0so/car-shop
298aac6
src/services/Car.ts
TypeScript
www.github.com/Kai0so/car-shop/tree/main/src/services/Car.ts
https://raw.githubusercontent.com/Kai0so/car-shop/298aac6/src/services/Car.ts
Kai0so/car-shop 298aac6 src/services/Car.ts
true
200
1,573
import { IService } from '../interfaces/IService'; import ICar, { CarZodSchema } from '../interfaces/CarZodSchema'; import { IModel } from '../interfaces/IModel'; import { ErrorTypes } from '../errors/catalog'; class CarService implements IService<ICar> { private _car: IModel<ICar>; constructor(model: IModel<ICar>...
4
Hoh0907/Node_HiepPham_CAPSTONE_NodeEnd
467ecc4
src/theater/theater.module.ts
TypeScript
www.github.com/Hoh0907/Node_HiepPham_CAPSTONE_NodeEnd/tree/main/src/theater/theater.module.ts
https://raw.githubusercontent.com/Hoh0907/Node_HiepPham_CAPSTONE_NodeEnd/467ecc4/src/theater/theater.module.ts
Hoh0907/Node_HiepPham_CAPSTONE_NodeEnd 467ecc4 src/theater/theater.module.ts
true
200
592
// import { Module } from '@nestjs/common'; // import { RapController } from './rap.controller'; // import { RapService } from './rap.service'; // @Module({ // controllers: [RapController], // providers: [RapService] // }) // export class RapModule {} import { Module } from '@nestjs/common'; import { TheaterContr...
6
gabrielppd77/stock-control-fe
ee32597
src/hooks/useTableProductSearchParams.ts
TypeScript
www.github.com/gabrielppd77/stock-control-fe/tree/main/src/hooks/useTableProductSearchParams.ts
https://raw.githubusercontent.com/gabrielppd77/stock-control-fe/ee32597/src/hooks/useTableProductSearchParams.ts
gabrielppd77/stock-control-fe ee32597 src/hooks/useTableProductSearchParams.ts
true
200
1,397
import { useSearchParams } from "react-router-dom"; interface DataParams { supplierId: string; categoryId: string; dtEntryInitial: string; dtEntryEnd: string; dtDepartureInitial: string; dtDepartureEnd: string; } export function useTableProductSearchParams() { const [searchParams, setSearchParams] = use...
3
Elipkm/vector-search
52f15d1
frontend-ng/my-vector-search/src/app/app.component.ts
TypeScript
www.github.com/Elipkm/vector-search/tree/main/frontend-ng/my-vector-search/src/app/app.component.ts
https://raw.githubusercontent.com/Elipkm/vector-search/52f15d1/frontend-ng/my-vector-search/src/app/app.component.ts
Elipkm/vector-search 52f15d1 frontend-ng/my-vector-search/src/app/app.component.ts
true
200
1,483
import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterOutlet } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { HttpClient, HttpClientModule } from '@angular/common/http'; @Component({ selector: 'app-root', standalone: true, import...
1
bhavesh20-mb/bhavesh_onboarding_test
915ab93
src/utils/chain.ts
TypeScript
www.github.com/bhavesh20-mb/bhavesh_onboarding_test/tree/main/src/utils/chain.ts
https://raw.githubusercontent.com/bhavesh20-mb/bhavesh_onboarding_test/915ab93/src/utils/chain.ts
bhavesh20-mb/bhavesh_onboarding_test 915ab93 src/utils/chain.ts
true
200
6,721
import axios from 'axios'; export type Chain = { id: number; shortName: string; longName: string; color: string; rpc: [string, ...string[]]; explorers: [string, ...string[]]; logo?: any; /** * This is a rough estimate of the chain's block time in milliseconds. * You should use...
2
euberdeveloper/plagiarism-detection-dataset
48da44c
datasets/IR-Plag/convertai-original-java-rest-typescript/case-02/non-plagiarized/07/Main.ts
TypeScript
www.github.com/euberdeveloper/plagiarism-detection-dataset/tree/main/datasets/IR-Plag/convertai-original-java-rest-typescript/case-02/non-plagiarized/07/Main.ts
https://raw.githubusercontent.com/euberdeveloper/plagiarism-detection-dataset/48da44c/datasets/IR-Plag/convertai-original-java-rest-typescript/case-02/non-plagiarized/07/Main.ts
euberdeveloper/plagiarism-detection-dataset 48da44c datasets/IR-Plag/convertai-original-java-rest-typescript/case-02/non-plagiarized/07/Main.ts
true
200
558
import * as readline from 'readline'; const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); console.log("Enter the radius and length of a cylinder:"); rl.question('Radius: ', (radiusInput) => { const radius = parseFloat(radiusInput); rl.question('Length: ', (lengthInput) => ...
0
ColmanFinals/guide-tube-backend
39a866c
src/models/guideModel.ts
TypeScript
www.github.com/ColmanFinals/guide-tube-backend/tree/main/src/models/guideModel.ts
https://raw.githubusercontent.com/ColmanFinals/guide-tube-backend/39a866c/src/models/guideModel.ts
ColmanFinals/guide-tube-backend 39a866c src/models/guideModel.ts
true
200
1,151
import mongoose, { Schema, Document } from 'mongoose'; import { IPlaylist } from './playlistModel'; import { IVideo } from './videoModel'; import { IUser } from './userModel'; import { privacyStatus } from './privacyStatusEnum'; export interface IGuide extends Document { _id?: string; createdAt: Date; name...
6
keren31/AppMovil_EsteticaCanina
4afad4b
src/app/registro/registro.page.ts
TypeScript
www.github.com/keren31/AppMovil_EsteticaCanina/tree/main/src/app/registro/registro.page.ts
https://raw.githubusercontent.com/keren31/AppMovil_EsteticaCanina/4afad4b/src/app/registro/registro.page.ts
keren31/AppMovil_EsteticaCanina 4afad4b src/app/registro/registro.page.ts
true
200
4,235
import { Component } from '@angular/core'; import { RegistroService } from '../services/registro.service'; import { ToastController } from '@ionic/angular'; import { NavController } from '@ionic/angular'; @Component({ selector: 'app-registro', templateUrl: './registro.page.html', styleUrls: ['./registro.page.scs...
4
vorenus85/cubix-clean-code-week-2
52490fa
test/currencyConverter.test.ts
TypeScript
www.github.com/vorenus85/cubix-clean-code-week-2/tree/main/test/currencyConverter.test.ts
https://raw.githubusercontent.com/vorenus85/cubix-clean-code-week-2/52490fa/test/currencyConverter.test.ts
vorenus85/cubix-clean-code-week-2 52490fa test/currencyConverter.test.ts
true
200
5,605
import { InvalidAmountInputError } from "../src/exceptions/InvalidAmountInputError"; import { InvalidExchangeRateError } from "../src/exceptions/InvalidExchangeRateError"; import { UnableToFetchExchangeRateError } from "../src/exceptions/UnableToFetchExchangeRateError"; import { CurrencyConverter } from "../src/curren...
3
Shahid-Tumbi/Links-backend
b2b9221
src/utils/cron.util.ts
TypeScript
www.github.com/Shahid-Tumbi/Links-backend/tree/main/src/utils/cron.util.ts
https://raw.githubusercontent.com/Shahid-Tumbi/Links-backend/b2b9221/src/utils/cron.util.ts
Shahid-Tumbi/Links-backend b2b9221 src/utils/cron.util.ts
true
200
355
import { CronJob } from 'cron'; import { Console } from './logger.util'; class CronUtil { private $dailyJob?: CronJob; start() { this.$dailyJob = new CronJob('* * * 0 0 0', () => { Console.info('Execute Job'); }, () => { Console.info('Job Completed'); }); } stop() { this.$dailyJob.stop(); } } expor...
1
tangtts/exam-system
9766cac
apps/exam/src/main.ts
TypeScript
www.github.com/tangtts/exam-system/tree/main/apps/exam/src/main.ts
https://raw.githubusercontent.com/tangtts/exam-system/9766cac/apps/exam/src/main.ts
tangtts/exam-system 9766cac apps/exam/src/main.ts
true
200
598
import { NestFactory } from '@nestjs/core'; import { ExamModule } from './exam.module'; import { Transport } from '@nestjs/microservices'; import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(ExamModule); // 现在用 connectMicroservice 就是再暴露 8888 的 TCP 服务。 ...
5
akaaljotsingh/biolerplate-signalR
2c7df19
src/app/core/services/realtime-service/connection.service.ts
TypeScript
www.github.com/akaaljotsingh/biolerplate-signalR/tree/main/src/app/core/services/realtime-service/connection.service.ts
https://raw.githubusercontent.com/akaaljotsingh/biolerplate-signalR/2c7df19/src/app/core/services/realtime-service/connection.service.ts
akaaljotsingh/biolerplate-signalR 2c7df19 src/app/core/services/realtime-service/connection.service.ts
true
200
1,702
// connection-service.ts import { Injectable } from '@angular/core'; import { HubConnection, HubConnectionBuilder } from '@microsoft/signalr'; import { Observable, Subject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ConnectionService { private hubConnection: HubConnection | undefined; private p...
2
kallepallimounikasmitha/FirstTask
11b5895
my-dream-app/src/app/edudet/edudet.component.ts
TypeScript
www.github.com/kallepallimounikasmitha/FirstTask/tree/main/my-dream-app/src/app/edudet/edudet.component.ts
https://raw.githubusercontent.com/kallepallimounikasmitha/FirstTask/11b5895/my-dream-app/src/app/edudet/edudet.component.ts
kallepallimounikasmitha/FirstTask 11b5895 my-dream-app/src/app/edudet/edudet.component.ts
true
200
471
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-edudet', templateUrl: './edudet.component.html', styleUrls: ['./edudet.component.css'] }) export class EdudetComponent implements OnInit { constructor() {} edu: string= "Educational Details"; year =""; course = ""; per=""; ...
0
Slimua/Unity_ofice
b3ebd79
packages/sheets-filter-ui/src/models/utils.ts
TypeScript
www.github.com/Slimua/Unity_ofice/tree/main/packages/sheets-filter-ui/src/models/utils.ts
https://raw.githubusercontent.com/Slimua/Unity_ofice/b3ebd79/packages/sheets-filter-ui/src/models/utils.ts
Slimua/Unity_ofice b3ebd79 packages/sheets-filter-ui/src/models/utils.ts
true
200
1,320
/** * Copyright 2023-present DreamNum 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...
3
IGMLabs/ab-nest-astro-bookings
8874c35
src/agencies/api-key.guard.ts
TypeScript
www.github.com/IGMLabs/ab-nest-astro-bookings/tree/main/src/agencies/api-key.guard.ts
https://raw.githubusercontent.com/IGMLabs/ab-nest-astro-bookings/8874c35/src/agencies/api-key.guard.ts
IGMLabs/ab-nest-astro-bookings 8874c35 src/agencies/api-key.guard.ts
true
200
593
import { CanActivate, ExecutionContext, Injectable } from "@nestjs/common"; import { Request } from "express"; import { Observable } from "rxjs"; @Injectable() export class ApiKeyGuard implements CanActivate { public canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean> { // ! ...
6
Ahmed-Yassen/clinic-management-system
d8dcef8
src/middlewares/authMW.ts
TypeScript
www.github.com/Ahmed-Yassen/clinic-management-system/tree/main/src/middlewares/authMW.ts
https://raw.githubusercontent.com/Ahmed-Yassen/clinic-management-system/d8dcef8/src/middlewares/authMW.ts
Ahmed-Yassen/clinic-management-system d8dcef8 src/middlewares/authMW.ts
true
200
831
import { NextFunction, Response } from "express"; import jwt, { Secret } from "jsonwebtoken"; import { NotAuthenticatedError } from "../errors/not-authenticated.error"; import { NotFoundError } from "../errors/not-found-error"; import { User } from "../models/user"; interface UserPayload { id: string; } declare glo...
4
Ali-ovo/mini-react
e3ac34f
packages/react-reconciler/src/commitWork.ts
TypeScript
www.github.com/Ali-ovo/mini-react/tree/main/packages/react-reconciler/src/commitWork.ts
https://raw.githubusercontent.com/Ali-ovo/mini-react/e3ac34f/packages/react-reconciler/src/commitWork.ts
Ali-ovo/mini-react e3ac34f packages/react-reconciler/src/commitWork.ts
true
200
11,536
/* * @Description: commit work * @Author: Ali * @Date: 2024-03-14 14:41:40 * @LastEditors: Ali * @LastEditTime: 2024-03-29 16:15:07 */ import { Container, Instance, appendChildToContainer, commitUpdate, hideInstance, hideTextInstance, insertChildToContainer, removeChild, unhideInstance, unhid...
7
leonardoandrade1/poc-bank-event-sourcing
efd91fc
src/app.module.ts
TypeScript
www.github.com/leonardoandrade1/poc-bank-event-sourcing/tree/main/src/app.module.ts
https://raw.githubusercontent.com/leonardoandrade1/poc-bank-event-sourcing/efd91fc/src/app.module.ts
leonardoandrade1/poc-bank-event-sourcing efd91fc src/app.module.ts
true
200
938
import { Module } from '@nestjs/common'; import { BankAccountModule } from './bank-account/bank-account.module'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AntifraudModule } from './antifraud/antifraud.module'; @Module({ imports: [ Type...
1
Jmar33/Angular-Teste-Unitario
7f0a6ae
src/app/pages/form/form.component.spec.ts
TypeScript
www.github.com/Jmar33/Angular-Teste-Unitario/tree/main/src/app/pages/form/form.component.spec.ts
https://raw.githubusercontent.com/Jmar33/Angular-Teste-Unitario/7f0a6ae/src/app/pages/form/form.component.spec.ts
Jmar33/Angular-Teste-Unitario 7f0a6ae src/app/pages/form/form.component.spec.ts
true
200
2,127
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { FormComponent } from './form.component'; describe('Form Component', () => { let component: FormCompo...
2
fyapy/docorch
d8d9526
frontend/src/ui/ContainersTable/styles.ts
TypeScript
www.github.com/fyapy/docorch/tree/main/frontend/src/ui/ContainersTable/styles.ts
https://raw.githubusercontent.com/fyapy/docorch/d8d9526/frontend/src/ui/ContainersTable/styles.ts
fyapy/docorch d8d9526 frontend/src/ui/ContainersTable/styles.ts
true
200
1,873
import {styled} from 'styled-components' import {color} from 'ui/theme' export const Header = styled.div` margin-bottom: 20px; display: flex; justify-content: flex-end; a { padding: 6px 8px; font-weight: 600; border-radius: 3px; border: 1px solid #1E8F63; background-color: #...
5
BedirhanArgn/Angular-Blog
0350bf7
src/app/posts/post-dashboard/post-dashboard.component.ts
TypeScript
www.github.com/BedirhanArgn/Angular-Blog/tree/main/src/app/posts/post-dashboard/post-dashboard.component.ts
https://raw.githubusercontent.com/BedirhanArgn/Angular-Blog/0350bf7/src/app/posts/post-dashboard/post-dashboard.component.ts
BedirhanArgn/Angular-Blog 0350bf7 src/app/posts/post-dashboard/post-dashboard.component.ts
true
200
2,210
import { Component, OnInit } from '@angular/core'; import { AuthService } from 'src/app/core/auth.service'; import { PostService } from '../post.service'; import { Observable } from 'rxjs'; import {AngularFireStorage} from '@angular/fire/storage' import { AngularFirestore } from '@angular/fire/firestore'; import { fina...
0
neinja007/FlashNavigator
ef8107a
src/app/download/route.ts
TypeScript
www.github.com/neinja007/FlashNavigator/tree/main/src/app/download/route.ts
https://raw.githubusercontent.com/neinja007/FlashNavigator/ef8107a/src/app/download/route.ts
neinja007/FlashNavigator ef8107a src/app/download/route.ts
true
200
635
import { currentUser } from '@clerk/nextjs/server'; import { list } from '@vercel/blob'; import { NextResponse } from 'next/server'; export async function GET() { const user = await currentUser(); if (!user) { return Response.redirect('/sign-in'); } const blob = (await list()).blobs.find((blob) => blob.pathname...
6
ra334/Blog
8f02409
Client/src/pages/Account/AccountPageLogic.ts
TypeScript
www.github.com/ra334/Blog/tree/main/Client/src/pages/Account/AccountPageLogic.ts
https://raw.githubusercontent.com/ra334/Blog/8f02409/Client/src/pages/Account/AccountPageLogic.ts
ra334/Blog 8f02409 Client/src/pages/Account/AccountPageLogic.ts
true
200
1,192
import axios from "axios" export function logOut() { document.cookie = 'accessToken' + '=; Max-Age=0' document.cookie = 'refreshToken' + '=; Max-Age=0' window.location.href = '/' } export async function changeNickname(accessToken: string, newNickname: string, password: string): Promise<boolean> { const response =...
4
arif1313/washWave
0a356d3
src/app/Errors/handelzodError.ts
TypeScript
www.github.com/arif1313/washWave/tree/main/src/app/Errors/handelzodError.ts
https://raw.githubusercontent.com/arif1313/washWave/0a356d3/src/app/Errors/handelzodError.ts
arif1313/washWave 0a356d3 src/app/Errors/handelzodError.ts
true
200
498
import { ZodError, ZodIssue } from 'zod'; import { TErorSorce, TGenericErrorResponce } from '../interface/error'; const handleZodError = (err: ZodError): TGenericErrorResponce => { const errorSource: TErorSorce = err.issues.map((issu: ZodIssue) => { return { path: issu?.path[issu.path.length - 1], me...
7
Mantoine56/shabebcatan
7c7aea3
src/hooks/useGames.ts
TypeScript
www.github.com/Mantoine56/shabebcatan/tree/main/src/hooks/useGames.ts
https://raw.githubusercontent.com/Mantoine56/shabebcatan/7c7aea3/src/hooks/useGames.ts
Mantoine56/shabebcatan 7c7aea3 src/hooks/useGames.ts
true
200
3,104
import { useEffect, useState } from 'react' import { doc, getDoc, updateDoc, collection, addDoc, query, orderBy, limit, getDocs, deleteDoc } from 'firebase/firestore' import { db } from '@/lib/firebase' import { Stats, Player, Game } from '@/lib/types' export default function useGames() { const [stats, setStats] = u...
1
DevJorgeRafael/messages-social-utn
b99e906
src/chats/services/nivel-chat.service.ts
TypeScript
www.github.com/DevJorgeRafael/messages-social-utn/tree/main/src/chats/services/nivel-chat.service.ts
https://raw.githubusercontent.com/DevJorgeRafael/messages-social-utn/b99e906/src/chats/services/nivel-chat.service.ts
DevJorgeRafael/messages-social-utn b99e906 src/chats/services/nivel-chat.service.ts
true
200
1,527
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { NivelChat } from '../entities/nivel-chat.entity'; import { CreateNivelChatDto } from '../dto/create-nivel-chat.dto'; @Injectable() export class NivelChatSer...
3
barnoma-soz/sesiginvernp
e329ee0
src/lib/voice-playback/speak.ts
TypeScript
www.github.com/barnoma-soz/sesiginvernp/tree/main/src/lib/voice-playback/speak.ts
https://raw.githubusercontent.com/barnoma-soz/sesiginvernp/e329ee0/src/lib/voice-playback/speak.ts
barnoma-soz/sesiginvernp e329ee0 src/lib/voice-playback/speak.ts
true
200
1,408
import { camelCaseToHuman } from "../string/camel-case-to-human.ts"; export enum SpeakLanguageEnum { USEnglish = "en-US", Italian = "it-IT", Swedish = "sv-SE", Malay = "ms-MY", German = "de-DE", UKEnglish = "en-GB", Hebrew = "he-IL", Indonesian = "id-ID", French = "fr-FR", Bulgarian = "bg-BG", Sp...
2
grytsovdev/CrossExamen
5c2ba89
src/app/calculate-service.service.spec.ts
TypeScript
www.github.com/grytsovdev/CrossExamen/tree/main/src/app/calculate-service.service.spec.ts
https://raw.githubusercontent.com/grytsovdev/CrossExamen/5c2ba89/src/app/calculate-service.service.spec.ts
grytsovdev/CrossExamen 5c2ba89 src/app/calculate-service.service.spec.ts
true
200
538
import { TestBed } from '@angular/core/testing'; import { CalculateServiceService } from './calculate-service.service'; describe('CalculateServiceService', () => { let service: CalculateServiceService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(CalculateServiceService...
4
reearth/reearth-visualizer
c8ffef8
web/e2e/utils/index.ts
TypeScript
www.github.com/reearth/reearth-visualizer/tree/main/web/e2e/utils/index.ts
https://raw.githubusercontent.com/reearth/reearth-visualizer/c8ffef8/web/e2e/utils/index.ts
reearth/reearth-visualizer c8ffef8 web/e2e/utils/index.ts
true
200
3,331
// eslint-disable-next-line no-restricted-imports import { type APIRequestContext, request, test as base, type Page } from "@playwright/test"; import { config, getAccessToken, type Config } from "./config"; // eslint-disable-next-line no-restricted-imports export { expect, chromium, type Page, type Locator } ...
1
IvanSanchezDev/mongoBodegas
1fc9aa1
src/dto/producto.ts
TypeScript
www.github.com/IvanSanchezDev/mongoBodegas/tree/main/src/dto/producto.ts
https://raw.githubusercontent.com/IvanSanchezDev/mongoBodegas/1fc9aa1/src/dto/producto.ts
IvanSanchezDev/mongoBodegas 1fc9aa1 src/dto/producto.ts
true
200
1,273
import { Expose } from 'class-transformer'; import { IsDefined, IsInt, IsString } from 'class-validator'; export class Producto { @Expose({ name: 'nombreProducto' }) @IsDefined({ message: 'El nombre del producto es obligatorio' }) @IsString({ message: 'El nombre del producto debe ser de tipo string' }) ...
7
SmithC3k56/crm-app
3c38fa1
app/lib/data.ts
TypeScript
www.github.com/SmithC3k56/crm-app/tree/main/app/lib/data.ts
https://raw.githubusercontent.com/SmithC3k56/crm-app/3c38fa1/app/lib/data.ts
SmithC3k56/crm-app 3c38fa1 app/lib/data.ts
true
200
613
type Post = { id: string, title: string, desc: string, date: Date } let Posts: Post[] = []; export const getPosts = () => Posts; export const addPost = (post: Post) => { Posts.push(post); } export const deletePost = (id: string) => { Posts = Posts.filter((post) => post.id !== id); } export const updatePos...
0
shiki-boy/rfs-fastify
76b8297
src/authenticate.ts
TypeScript
www.github.com/shiki-boy/rfs-fastify/tree/main/src/authenticate.ts
https://raw.githubusercontent.com/shiki-boy/rfs-fastify/76b8297/src/authenticate.ts
shiki-boy/rfs-fastify 76b8297 src/authenticate.ts
true
200
571
import { FastifyReply, FastifyRequest } from "fastify"; export default async function authenticate( request: FastifyRequest, reply: FastifyReply, tokenProvided = null ) { const token = request.headers["authorization"]?.split("Bearer").pop().trim() ?? tokenProvided; // check if token is blacklisted or not ...
5
MuhammadTaha00/full-stack-test-task-eg
e40c719
frontend/src/api/axios-config.ts
TypeScript
www.github.com/MuhammadTaha00/full-stack-test-task-eg/tree/main/frontend/src/api/axios-config.ts
https://raw.githubusercontent.com/MuhammadTaha00/full-stack-test-task-eg/e40c719/frontend/src/api/axios-config.ts
MuhammadTaha00/full-stack-test-task-eg e40c719 frontend/src/api/axios-config.ts
true
200
311
import axios, { AxiosError, AxiosInstance } from 'axios'; const api: AxiosInstance = axios.create({ baseURL: process.env.REACT_APP_API_BASE_URL, }); api.interceptors.response.use( (response) => response, (error: AxiosError) => { return Promise.reject(error); } ); export default api;
6
gylraj/movie-app
8cee771
types/movieTypes.ts
TypeScript
www.github.com/gylraj/movie-app/tree/main/types/movieTypes.ts
https://raw.githubusercontent.com/gylraj/movie-app/8cee771/types/movieTypes.ts
gylraj/movie-app 8cee771 types/movieTypes.ts
true
200
894
export type Movie = Pick<MovieDetailResponse, 'Title' | 'Year' | 'imdbID' | 'Type' | 'Poster'>; export interface MovieListResponse { Search?: Movie[]; totalResults?: string; Response: 'True' | 'False' | string; Error?: string; } export interface FetchMoviesResponse { movies: Movie[]; nextPage: number | nu...
4
bimeiras/rentalx-ignite
c73d161
src/modules/accounts/useCases/updateUserAvatar/UpdateUserAvatarController.ts
TypeScript
www.github.com/bimeiras/rentalx-ignite/tree/main/src/modules/accounts/useCases/updateUserAvatar/UpdateUserAvatarController.ts
https://raw.githubusercontent.com/bimeiras/rentalx-ignite/c73d161/src/modules/accounts/useCases/updateUserAvatar/UpdateUserAvatarController.ts
bimeiras/rentalx-ignite c73d161 src/modules/accounts/useCases/updateUserAvatar/UpdateUserAvatarController.ts
true
200
607
import { Request, Response } from "express"; import { container } from "tsyringe"; import { UpdateUserAvatarUseCase } from "./UpdateUserAvatarUseCase"; class UpdateUserAvatarController { async handle(request: Request, response: Response): Promise<Response> { const { id } = request.user const ava...
1
HyunsuKim00/Cursor_Project
587ebd1
scripts/migrate.ts
TypeScript
www.github.com/HyunsuKim00/Cursor_Project/tree/main/scripts/migrate.ts
https://raw.githubusercontent.com/HyunsuKim00/Cursor_Project/587ebd1/scripts/migrate.ts
HyunsuKim00/Cursor_Project 587ebd1 scripts/migrate.ts
true
200
405
import { migrate } from 'drizzle-orm/postgres-js/migrator'; import { db } from '../db'; async function runMigrations() { console.log('Migration started...'); try { await migrate(db, { migrationsFolder: 'drizzle', }); console.log('Migration completed successfully.'); } catch (error) { con...
7
anabiyaejaz/Typescript_45_Assignments
5264474
05. Famous_Quote2/Famous_Quote2.ts
TypeScript
www.github.com/anabiyaejaz/Typescript_45_Assignments/tree/main/05. Famous_Quote2/Famous_Quote2.ts
https://raw.githubusercontent.com/anabiyaejaz/Typescript_45_Assignments/5264474/05.%20Famous_Quote2/Famous_Quote2.ts
anabiyaejaz/Typescript_45_Assignments 5264474 05. Famous_Quote2/Famous_Quote2.ts
true
200
429
//Repeat Exercise 4, but this time store the famous person’s name in a variable called //famous_person. Then compose your message and store it in a new variable called message. Print your //message. let famousPerson: string = "Albert Einstein"; let quote2: string = "A person who never made a mistake never tried...
3
camillaUnicap/desafio-FullStack
7a00d95
desafio-front/src/app/app.module.ts
TypeScript
www.github.com/camillaUnicap/desafio-FullStack/tree/main/desafio-front/src/app/app.module.ts
https://raw.githubusercontent.com/camillaUnicap/desafio-FullStack/7a00d95/desafio-front/src/app/app.module.ts
camillaUnicap/desafio-FullStack 7a00d95 desafio-front/src/app/app.module.ts
true
200
2,928
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { EmpresaCreateComponent } from './components/empresa-create/empresa-create.component'; import { EmpresaDe...
5
SharfarajAhammed13/Hotel-Management-NextJS-App
3dfe85f
tailwind.config.ts
TypeScript
www.github.com/SharfarajAhammed13/Hotel-Management-NextJS-App/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/SharfarajAhammed13/Hotel-Management-NextJS-App/3dfe85f/tailwind.config.ts
SharfarajAhammed13/Hotel-Management-NextJS-App 3dfe85f tailwind.config.ts
true
200
635
import type { Config } from "tailwindcss"; const {fontFamily} = require("tailwindcss/defaultTheme"); const config: Config = { darkMode: 'class', content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { exte...
0
iheathers/Design-Patterns-Demos
8f2a821
MediatorPattern/MediatorDemo.ts
TypeScript
www.github.com/iheathers/Design-Patterns-Demos/tree/main/MediatorPattern/MediatorDemo.ts
https://raw.githubusercontent.com/iheathers/Design-Patterns-Demos/8f2a821/MediatorPattern/MediatorDemo.ts
iheathers/Design-Patterns-Demos 8f2a821 MediatorPattern/MediatorDemo.ts
true
200
1,286
class User { private userList = new Map<number, User>(); public constructor( private id: number, private name: string ) { } addFriend(friend: User) { this.userList.set(friend.id, friend); } messageAll(message: string) { for (let entry of this.userL...
2
SkyLissh/skylet-discord-js
2d54209
src/events/interaction-create.ts
TypeScript
www.github.com/SkyLissh/skylet-discord-js/tree/main/src/events/interaction-create.ts
https://raw.githubusercontent.com/SkyLissh/skylet-discord-js/2d54209/src/events/interaction-create.ts
SkyLissh/skylet-discord-js 2d54209 src/events/interaction-create.ts
true
200
2,337
import type { Interaction } from "discord.js"; import { Events } from "discord.js"; import type { BotEvent } from "@/types"; const event: BotEvent = { name: Events.InteractionCreate, execute: (interaction: Interaction) => { if (interaction.isChatInputCommand()) { const command = interaction.client.slash...
6
ivan-calvo-sanz/5_Angular
f47953b
1_Pildoras Informaticas CURSO ANGULAR/Videotutorial_02/src/app/app.module.ts
TypeScript
www.github.com/ivan-calvo-sanz/5_Angular/tree/main/1_Pildoras Informaticas CURSO ANGULAR/Videotutorial_02/src/app/app.module.ts
https://raw.githubusercontent.com/ivan-calvo-sanz/5_Angular/f47953b/1_Pildoras%20Informaticas%20CURSO%20ANGULAR/Videotutorial_02/src/app/app.module.ts
ivan-calvo-sanz/5_Angular f47953b 1_Pildoras Informaticas CURSO ANGULAR/Videotutorial_02/src/app/app.module.ts
true
200
656
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { EmpleadosComponent } from './empleados/empleados.component'; import { EmpleadoComponent } from './empleado/empleado.component'; import { EjemplotirarComponent } ...
1
oguzyazan/e-commerce
4fcce74
Backend/Product/src/controllers/productController.ts
TypeScript
www.github.com/oguzyazan/e-commerce/tree/main/Backend/Product/src/controllers/productController.ts
https://raw.githubusercontent.com/oguzyazan/e-commerce/4fcce74/Backend/Product/src/controllers/productController.ts
oguzyazan/e-commerce 4fcce74 Backend/Product/src/controllers/productController.ts
true
200
1,088
import asyncHandler from "express-async-handler"; import { Request, Response } from "express"; import productService from "../services/productService"; const getList = asyncHandler(async (req: Request, res: Response) => { const products = await productService.getList(); res.json(products); }); const create = asyn...
3
bambandour/Business_Electronic_Products
5f614be
src/app/list-produit/list-produit.component.ts
TypeScript
www.github.com/bambandour/Business_Electronic_Products/tree/main/src/app/list-produit/list-produit.component.ts
https://raw.githubusercontent.com/bambandour/Business_Electronic_Products/5f614be/src/app/list-produit/list-produit.component.ts
bambandour/Business_Electronic_Products 5f614be src/app/list-produit/list-produit.component.ts
true
200
927
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Product } from '../interfaces/product'; import { ProductService } from '../services/product.service'; @Component({ selector: 'app-list-produit', templateUrl: './list-produit.component.html', styleUrls: ['./list-produit....
4
EyaRidene/TP1_Agular
0bdc157
src/app/app.routing.ts
TypeScript
www.github.com/EyaRidene/TP1_Agular/tree/main/src/app/app.routing.ts
https://raw.githubusercontent.com/EyaRidene/TP1_Agular/0bdc157/src/app/app.routing.ts
EyaRidene/TP1_Agular 0bdc157 src/app/app.routing.ts
true
200
2,084
import { RouterModule, Routes } from '@angular/router'; import { NavbarComponent } from './components/navbar/navbar.component'; import { CvComponent } from './exCv/cv/cv.component'; import { Ex1Component } from './ex1_2/ex1.component'; import { PageDetailComponent } from './exCv/page-detail/page-detail.component'; impo...
7
AMiR-S-P/hoyui
2412929
libs/hoyjs/spreadsheet/src/spreadsheet/services/action-events.ts
TypeScript
www.github.com/AMiR-S-P/hoyui/tree/main/libs/hoyjs/spreadsheet/src/spreadsheet/services/action-events.ts
https://raw.githubusercontent.com/AMiR-S-P/hoyui/2412929/libs/hoyjs/spreadsheet/src/spreadsheet/services/action-events.ts
AMiR-S-P/hoyui 2412929 libs/hoyjs/spreadsheet/src/spreadsheet/services/action-events.ts
true
200
6,134
import { Spreadsheet } from '../base/index'; import { SortEventArgs, SaveCompleteEventArgs, BeforeCellFormatArgs, BeforeSaveEventArgs, triggerDataChange } from '../../workbook/index'; import { BeforeSortEventArgs, beginAction } from '../../workbook/index'; import { CellSaveEventArgs, BeforeOpenEventArgs, BeforeSelectEv...
5
Bovy98/App-Moto
3c90f26
Backup Files/Progetto APP-MOTO Finito/app-moto/src/app/componenti/immatricolazioni/immatricolazioni.component.ts
TypeScript
www.github.com/Bovy98/App-Moto/tree/main/Backup Files/Progetto APP-MOTO Finito/app-moto/src/app/componenti/immatricolazioni/immatricolazioni.component.ts
https://raw.githubusercontent.com/Bovy98/App-Moto/3c90f26/Backup%20Files/Progetto%20APP-MOTO%20Finito/app-moto/src/app/componenti/immatricolazioni/immatricolazioni.component.ts
Bovy98/App-Moto 3c90f26 Backup Files/Progetto APP-MOTO Finito/app-moto/src/app/componenti/immatricolazioni/immatricolazioni.component.ts
true
200
13,610
import { Component, OnInit } from '@angular/core'; import { ImmatricolazioniService } from 'src/app/servizi/immatricolazioni.service'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { ToastService } from 'src/app/servizi/toast.servi...
0
MarcosTypeAP/Minesweeper-Client
3164d9f
src/components/Popup.ts
TypeScript
www.github.com/MarcosTypeAP/Minesweeper-Client/tree/main/src/components/Popup.ts
https://raw.githubusercontent.com/MarcosTypeAP/Minesweeper-Client/3164d9f/src/components/Popup.ts
MarcosTypeAP/Minesweeper-Client 3164d9f src/components/Popup.ts
true
200
3,444
import styles from "./Popup.module.css" export type PopupProps = { title?: string; message?: string; isError?: boolean; isMessageOpaque?: boolean; isMessageBold?: boolean; buttonText1?: string; buttonText2?: string; onClick1?: () => void; onClick2?: () => void; onClose?: () => void; } type PopupState = { } ...
2
OchirovBair/html-css-react-project
3a504a8
src/components/SectionTitle.ts
TypeScript
www.github.com/OchirovBair/html-css-react-project/tree/main/src/components/SectionTitle.ts
https://raw.githubusercontent.com/OchirovBair/html-css-react-project/3a504a8/src/components/SectionTitle.ts
OchirovBair/html-css-react-project 3a504a8 src/components/SectionTitle.ts
true
200
308
import styled from "styled-components"; import {theme} from "../styles/Theme"; export const SectionTitle = styled.h2` text-align: left; font-size: clamp(${30}px, calc((100vw - 375px) / (1320 - 375) * (${48} - ${30}) + ${30}px), ${48}px); & > span { color: ${theme.color.accent}; } `
6
LeeDuyy/KimTuanHungSSR
b65483e
src/repository/config.ts
TypeScript
www.github.com/LeeDuyy/KimTuanHungSSR/tree/main/src/repository/config.ts
https://raw.githubusercontent.com/LeeDuyy/KimTuanHungSSR/b65483e/src/repository/config.ts
LeeDuyy/KimTuanHungSSR b65483e src/repository/config.ts
true
200
672
import axios from 'axios'; import { API_LINKS, HOST_API_SV } from '../environment'; import { IConfigState } from '../store/config/configType'; const GetConfig = async () => { try { let response: IConfigState | null = null; const API = HOST_API_SV + API_LINKS.getConfig; const headers = { ...
1
el-polar/tesla-angular-tailwindcss
6ff197c
src/app/car-model/car-model.component.ts
TypeScript
www.github.com/el-polar/tesla-angular-tailwindcss/tree/main/src/app/car-model/car-model.component.ts
https://raw.githubusercontent.com/el-polar/tesla-angular-tailwindcss/6ff197c/src/app/car-model/car-model.component.ts
el-polar/tesla-angular-tailwindcss 6ff197c src/app/car-model/car-model.component.ts
true
200
605
import { Component, OnInit } from '@angular/core'; import { Link } from '../shared/link.interface'; @Component({ selector: 'app-car-model', templateUrl: './car-model.component.html', styleUrls: ['./car-model.component.css'], }) export class CarModelComponent implements OnInit { cars: Link[] = [ { id: 'Mode...
3
kekubhai/linkroom
65724b6
pages/api/auth/signup.ts
TypeScript
www.github.com/kekubhai/linkroom/tree/main/pages/api/auth/signup.ts
https://raw.githubusercontent.com/kekubhai/linkroom/65724b6/pages/api/auth/signup.ts
kekubhai/linkroom 65724b6 pages/api/auth/signup.ts
true
200
331
import { NextApiRequest, NextApiResponse } from 'next'; export default async function handler(req: NextApiRequest, res: NextApiResponse) { if (req.method === 'POST') { res.status(201).json({ message: 'User registered successfully' }); } else { res.status(405).json({ message: 'Method not allowed'...
4
DeanLonergan/ds-assignment-2
10ce00c
lambdas/processImage.ts
TypeScript
www.github.com/DeanLonergan/ds-assignment-2/tree/main/lambdas/processImage.ts
https://raw.githubusercontent.com/DeanLonergan/ds-assignment-2/10ce00c/lambdas/processImage.ts
DeanLonergan/ds-assignment-2 10ce00c lambdas/processImage.ts
true
200
2,760
/* eslint-disable import/extensions, import/no-absolute-path */ import { SQSHandler } from "aws-lambda"; // import { sharp } from "/opt/nodejs/sharp-utils"; import { DynamoDBDocumentClient, PutCommand } from "@aws-sdk/lib-dynamodb"; import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; import { GetObjectComman...
7
bedrock-stdhub/bedrock-stdhub
048ca67
src/api/log.ts
TypeScript
www.github.com/bedrock-stdhub/bedrock-stdhub/tree/main/src/api/log.ts
https://raw.githubusercontent.com/bedrock-stdhub/bedrock-stdhub/048ca67/src/api/log.ts
bedrock-stdhub/bedrock-stdhub 048ca67 src/api/log.ts
true
200
682
import express from 'express'; import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import registerAction, { Action } from '@/service/action'; import log from '@/service/log'; const router = express.Router(); const schema = { type: 'object', properties: { namespace: { type: 'string' }, content: { ...
5
Ayushhgupta39/auth-using-nextauth
49d7577
app/api/auth/[...nextauth]/options.ts
TypeScript
www.github.com/Ayushhgupta39/auth-using-nextauth/tree/main/app/api/auth/[...nextauth]/options.ts
https://raw.githubusercontent.com/Ayushhgupta39/auth-using-nextauth/49d7577/app/api/auth/%5B...nextauth%5D/options.ts
Ayushhgupta39/auth-using-nextauth 49d7577 app/api/auth/[...nextauth]/options.ts
true
200
1,127
import type { NextAuthOptions } from "next-auth"; import GoogleProvider from "next-auth/providers/google"; import CredentialsProvider from "next-auth/providers/credentials"; export const options: NextAuthOptions = { providers: [ GoogleProvider({ clientId: process.env.GOOGLE_CLIENT_ID!, clientSecret: ...
2
MertgaziSamur/SuperMarket
1ae9e50
SuperMarketAppClient/src/app/admin/components/markets/list-market/list-market.component.ts
TypeScript
www.github.com/MertgaziSamur/SuperMarket/tree/main/SuperMarketAppClient/src/app/admin/components/markets/list-market/list-market.component.ts
https://raw.githubusercontent.com/MertgaziSamur/SuperMarket/1ae9e50/SuperMarketAppClient/src/app/admin/components/markets/list-market/list-market.component.ts
MertgaziSamur/SuperMarket 1ae9e50 SuperMarketAppClient/src/app/admin/components/markets/list-market/list-market.component.ts
true
200
2,270
import { Component, OnInit, ViewChild } from '@angular/core'; import { List_Market } from '../../../../contracts/markets/list-market'; import { CreateMarketComponent } from '../create-market/create-market.component'; import { MarketsService } from '../../../../services/common/models/markets.service'; import { Update_Ma...
0
charles15548/HICE-EL-FRONT
97e7696
src/app/components/views/crear/proyecto/proyecto.component.ts
TypeScript
www.github.com/charles15548/HICE-EL-FRONT/tree/main/src/app/components/views/crear/proyecto/proyecto.component.ts
https://raw.githubusercontent.com/charles15548/HICE-EL-FRONT/97e7696/src/app/components/views/crear/proyecto/proyecto.component.ts
charles15548/HICE-EL-FRONT 97e7696 src/app/components/views/crear/proyecto/proyecto.component.ts
true
200
6,331
import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { LoginService } from 'src/app/services/login.service'; import { ProyectosService } from 'src/app/services/proyectos.service'; import { UsuariosService...
6
rogertavaress/cumbuca-challenge
d912887
packages/core/Navigation/types.ts
TypeScript
www.github.com/rogertavaress/cumbuca-challenge/tree/main/packages/core/Navigation/types.ts
https://raw.githubusercontent.com/rogertavaress/cumbuca-challenge/d912887/packages/core/Navigation/types.ts
rogertavaress/cumbuca-challenge d912887 packages/core/Navigation/types.ts
true
200
373
import { FunctionComponent } from "react"; export type NavigationContextData = { navigate: (routeName: string, params?: Object) => void; goBack: () => void; }; export type ScreenType = { component: FunctionComponent<any>; name: string; params?: Object; }; export type NavigationProviderType = { screens: S...
1
NikolaiMarkalainen/Notes
e5af675
frontend/src/state/reducers/teamReducer.ts
TypeScript
www.github.com/NikolaiMarkalainen/Notes/tree/main/frontend/src/state/reducers/teamReducer.ts
https://raw.githubusercontent.com/NikolaiMarkalainen/Notes/e5af675/frontend/src/state/reducers/teamReducer.ts
NikolaiMarkalainen/Notes e5af675 frontend/src/state/reducers/teamReducer.ts
true
200
614
import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit"; import { status, TeamState, TeamCreation, Team } from "../../types/types" const initialState: TeamState = { teams: [], status: status.idle, error: null }; export const teamSlice = createSlice({ name:'Teams', initial...
3
KRUTIKHIRAPARA/RxJs-Operators
55bfc23
src/app/pluck/pluck.component.ts
TypeScript
www.github.com/KRUTIKHIRAPARA/RxJs-Operators/tree/main/src/app/pluck/pluck.component.ts
https://raw.githubusercontent.com/KRUTIKHIRAPARA/RxJs-Operators/55bfc23/src/app/pluck/pluck.component.ts
KRUTIKHIRAPARA/RxJs-Operators 55bfc23 src/app/pluck/pluck.component.ts
true
200
476
import { Component } from '@angular/core'; import { of, pluck } from 'rxjs'; @Component({ selector: 'app-pluck', templateUrl: './pluck.component.html', styleUrls: ['./pluck.component.scss'] }) export class PluckComponent { source = of({name:'Krutik',lastName:'Hirapara'},{name:'Dhruv',lastName:'Gorasiya'})...
4
ariellsantos/airbag-api
b2ba64d
src/contexts/common/infrastructure/persistence/prisma/PrismaOrmRepository.ts
TypeScript
www.github.com/ariellsantos/airbag-api/tree/main/src/contexts/common/infrastructure/persistence/prisma/PrismaOrmRepository.ts
https://raw.githubusercontent.com/ariellsantos/airbag-api/b2ba64d/src/contexts/common/infrastructure/persistence/prisma/PrismaOrmRepository.ts
ariellsantos/airbag-api b2ba64d src/contexts/common/infrastructure/persistence/prisma/PrismaOrmRepository.ts
true
200
1,128
export interface Delegate { create(data: unknown): unknown; delete(data: unknown): unknown; findFirst(data: unknown): unknown; findMany(data: unknown): unknown; findUnique(data: unknown): unknown; update(data: unknown): unknown; findUniqueOrThrow(data: unknown): unknown; } export interface CrudType...
2
uhmarcel/Sort-Algo-Visualizer
ae65138
src/app/playback.service.ts
TypeScript
www.github.com/uhmarcel/Sort-Algo-Visualizer/tree/main/src/app/playback.service.ts
https://raw.githubusercontent.com/uhmarcel/Sort-Algo-Visualizer/ae65138/src/app/playback.service.ts
uhmarcel/Sort-Algo-Visualizer ae65138 src/app/playback.service.ts
true
200
3,188
import { Injectable } from '@angular/core'; import { SortValue, Playback } from './types'; import { ConfigService } from './config.service'; import { combineLatest, BehaviorSubject, Observable, interval, Subscription, Subject, merge } from 'rxjs'; import { map, switchMap, takeUntil, tap, finalize } from "rxjs/operators...
5
IT-Prospects/business-calendar-frontend
08d1aa0
src/app/app-routing.module.ts
TypeScript
www.github.com/IT-Prospects/business-calendar-frontend/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/IT-Prospects/business-calendar-frontend/08d1aa0/src/app/app-routing.module.ts
IT-Prospects/business-calendar-frontend 08d1aa0 src/app/app-routing.module.ts
true
200
537
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {HomePageComponent} from "./home-page/home-page.component"; import {DetailedCardComponent} from "./detailed-card/detailed-card.component"; const routes: Routes = [ { path: '', component: HomePageCo...
0
kleberkaerk/pizzaria-zeff-front-v1
c9e985d
src/app/util/page.ts
TypeScript
www.github.com/kleberkaerk/pizzaria-zeff-front-v1/tree/main/src/app/util/page.ts
https://raw.githubusercontent.com/kleberkaerk/pizzaria-zeff-front-v1/c9e985d/src/app/util/page.ts
kleberkaerk/pizzaria-zeff-front-v1 c9e985d src/app/util/page.ts
true
200
1,237
type State = { empty: boolean, sorted: boolean, unsorted: boolean } type Pageable = { sort: State, offset: number, pageSize: number, pageNumber: number, unpaged: number, paged: boolean } export class Page<T> { public content: T; public pageable: Pageable; public tota...
6
yllvar/polyjudimarket
4a91b1b
app/api/thirdweb-auth/route.ts
TypeScript
www.github.com/yllvar/polyjudimarket/tree/main/app/api/thirdweb-auth/route.ts
https://raw.githubusercontent.com/yllvar/polyjudimarket/4a91b1b/app/api/thirdweb-auth/route.ts
yllvar/polyjudimarket 4a91b1b app/api/thirdweb-auth/route.ts
true
200
349
import { ThirdwebAuth } from "@thirdweb-dev/auth/next"; import { PrivateKeyWallet } from "@thirdweb-dev/auth/evm"; export const { ThirdwebAuthHandler, getUser } = ThirdwebAuth({ domain: "example.com", wallet: new PrivateKeyWallet(process.env.THIRDWEB_SECRET_KEY || ""), }); export { ThirdwebAuthHandler as GET, Thi...
7
shvilime/livecharts
344156a
charts-frontend/src/stores/quotes.ts
TypeScript
www.github.com/shvilime/livecharts/tree/main/charts-frontend/src/stores/quotes.ts
https://raw.githubusercontent.com/shvilime/livecharts/344156a/charts-frontend/src/stores/quotes.ts
shvilime/livecharts 344156a charts-frontend/src/stores/quotes.ts
true
200
1,796
import { defineStore } from 'pinia'; import { InterfaceQuotes, InterfaceQuote } from 'src/interfaces'; export const useQuotesStore = defineStore('quotes', { state: () => ({ tickers: [] as string[], selectedTicker: '', initializing: false, allPeriod: false, live: true, batchSize: 100, labe...
3
Kavit-Patel/nestjs-us-back
8293780
src/auth/auth.controller.ts
TypeScript
www.github.com/Kavit-Patel/nestjs-us-back/tree/main/src/auth/auth.controller.ts
https://raw.githubusercontent.com/Kavit-Patel/nestjs-us-back/8293780/src/auth/auth.controller.ts
Kavit-Patel/nestjs-us-back 8293780 src/auth/auth.controller.ts
true
200
1,699
import { Controller, Get, NotFoundException, Req, Res, UnauthorizedException, UseGuards } from "@nestjs/common"; import { AuthService } from "./auth.service"; import { AuthGuard } from "@nestjs/passport"; @Controller('auth') export class AuthController{ constructor(private readonly authService: AuthService){} ...
2
junyap95/university-resource-allocation
4492363
tests/check-booking-status.spec.ts
TypeScript
www.github.com/junyap95/university-resource-allocation/tree/main/tests/check-booking-status.spec.ts
https://raw.githubusercontent.com/junyap95/university-resource-allocation/4492363/tests/check-booking-status.spec.ts
junyap95/university-resource-allocation 4492363 tests/check-booking-status.spec.ts
true
200
2,957
import { test, expect } from "@playwright/test"; import { MOCK_REQUESTS_FOR_CHECKING } from "../src/utilities/constants"; const CURRENT_YEAR = new Date().getFullYear(); test("test", async ({ page }) => { await page.route("http://localhost:3001/check-booking?clientID=Jsfhjsdff", (route) => { route.fulfill({ ...
4
mdsumanhalder/bolt-website-clone
5f5564c
src/app/components/navigation-section/navigation-section.component.ts
TypeScript
www.github.com/mdsumanhalder/bolt-website-clone/tree/main/src/app/components/navigation-section/navigation-section.component.ts
https://raw.githubusercontent.com/mdsumanhalder/bolt-website-clone/5f5564c/src/app/components/navigation-section/navigation-section.component.ts
mdsumanhalder/bolt-website-clone 5f5564c src/app/components/navigation-section/navigation-section.component.ts
true
200
487
import { Component, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-navigation-section', templateUrl: './navigation-section.component.html', styleUrls: ['./navigation-section.component.scss'], }) export class NavigationSectionComponent { @ViewChild('dropdownButton') dropdownButton!: E...
0
andersoncgiusti/clean-architecture-api
9b31eb1
src/services/User/__tests__/UserService.test.ts
TypeScript
www.github.com/andersoncgiusti/clean-architecture-api/tree/main/src/services/User/__tests__/UserService.test.ts
https://raw.githubusercontent.com/andersoncgiusti/clean-architecture-api/9b31eb1/src/services/User/__tests__/UserService.test.ts
andersoncgiusti/clean-architecture-api 9b31eb1 src/services/User/__tests__/UserService.test.ts
true
200
811
import { UserService } from '@/services/User/UserService' import { UserRepository } from '@/adapters/repositories/User/UserRepository' import { User } from '@/entities/User/User.entity' jest.mock('@/adapters/repositories/User/UserRepository') describe('UserService', () => { let userService: UserService let userRe...
5
tuansx/nextjs-page-folder-config
9ba6304
src/utils/handleCookie.ts
TypeScript
www.github.com/tuansx/nextjs-page-folder-config/tree/main/src/utils/handleCookie.ts
https://raw.githubusercontent.com/tuansx/nextjs-page-folder-config/9ba6304/src/utils/handleCookie.ts
tuansx/nextjs-page-folder-config 9ba6304 src/utils/handleCookie.ts
true
200
1,194
const IS_SERVER = typeof window === 'undefined' export const setCookie = (name: string, val: string, exprireDays?: number) => { if (!IS_SERVER) { const value = val let expireTime = '' if (exprireDays) { const date = new Date() date.setTime(date.getTime() + exprireDays * (24 * 60 * 60 * 1000))...
6
harpokrat-company/client-extension-chrome
8bc0e9b
background/new_account.ts
TypeScript
www.github.com/harpokrat-company/client-extension-chrome/tree/main/background/new_account.ts
https://raw.githubusercontent.com/harpokrat-company/client-extension-chrome/8bc0e9b/background/new_account.ts
harpokrat-company/client-extension-chrome 8bc0e9b background/new_account.ts
true
200
1,835
import { add_message_listener } from './messaging' import { push_storage_list, get_from_storage_list } from './storage' import { add_pending_account } from './pending_accounts' import { addAccount } from './api' export const add_account_part = async (params: any, sender: any) => { let sender_url = new URL(sender.ta...
1
MarcosMMarques/Planner-Node.js
31e397b
backend/src/routes/create-trip.ts
TypeScript
www.github.com/MarcosMMarques/Planner-Node.js/tree/main/backend/src/routes/create-trip.ts
https://raw.githubusercontent.com/MarcosMMarques/Planner-Node.js/31e397b/backend/src/routes/create-trip.ts
MarcosMMarques/Planner-Node.js 31e397b backend/src/routes/create-trip.ts
true
200
2,267
import type { FastifyInstance } from "fastify"; import { ZodTypeProvider } from "fastify-type-provider-zod"; import dayjs from "dayjs"; import localizedFormat from "dayjs/plugin/localizedFormat"; //import 'dayjs/locale/py-br' import nodemailer from "nodemailer"; import { z } from "zod"; import { prisma } from "../lib/p...
7
Botloader/botloader
5f5b3cb
integration-tests/threads.ts
TypeScript
www.github.com/Botloader/botloader/tree/main/integration-tests/threads.ts
https://raw.githubusercontent.com/Botloader/botloader/5f5b3cb/integration-tests/threads.ts
Botloader/botloader 5f5b3cb integration-tests/threads.ts
true
200
4,850
import { Discord } from "botloader"; import { assertExpected, runOnce, sendScriptCompletion } from "lib"; const testForumId = "1206877897529364541" const testMemberId = "204255221017214977" const threadsTestChannelId = "1206878101473329183" runOnce(script.name, async () => { await testPublicStandaloneThread() ...
2
private-lazy-val/react-stellar-burger
be2a322
src/services/middleware/ws-middleware.ts
TypeScript
www.github.com/private-lazy-val/react-stellar-burger/tree/main/src/services/middleware/ws-middleware.ts
https://raw.githubusercontent.com/private-lazy-val/react-stellar-burger/be2a322/src/services/middleware/ws-middleware.ts
private-lazy-val/react-stellar-burger be2a322 src/services/middleware/ws-middleware.ts
true
200
6,820
// the middleware allows Redux to interact with a WebSocket by translating WebSocket events into Redux actions // and vice versa, enabling real-time features in a Redux application. import {refreshToken} from "../../utils/user-api"; import {setCookie} from "../../utils/cookies"; import {WS_URL} from "../../api/ws-api";...
0