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
kdiawara96/tirage_app_web
744efbc
src/app/Total_tirage/la-liste-de-tirage.component.ts
TypeScript
www.github.com/kdiawara96/tirage_app_web/tree/main/src/app/Total_tirage/la-liste-de-tirage.component.ts
https://raw.githubusercontent.com/kdiawara96/tirage_app_web/744efbc/src/app/Total_tirage/la-liste-de-tirage.component.ts
kdiawara96/tirage_app_web 744efbc src/app/Total_tirage/la-liste-de-tirage.component.ts
true
200
1,201
import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { TotalTirageService } from '../Services/total-tirage.service'; @Component({ selector: 'app-la-liste-de-tirage', templateUrl: './la-liste-de-tirage.componen...
1
hbubh/NodeJS
f06dee2
src/middleware/isAdminOrUser.ts
TypeScript
www.github.com/hbubh/NodeJS/tree/main/src/middleware/isAdminOrUser.ts
https://raw.githubusercontent.com/hbubh/NodeJS/f06dee2/src/middleware/isAdminOrUser.ts
hbubh/NodeJS f06dee2 src/middleware/isAdminOrUser.ts
true
200
1,108
import { RequestHandler, Request } from "express"; import { AppError } from "../error/appError"; import { verifyJWT } from "../service/auth_service"; import { User } from "../database/model/user"; import { extractToken } from "./isAdmin"; import { isValidObjectId } from "mongoose"; const isAdminOrUser: RequestH...
5
erqk/ng-dynamic-json-form
d1420e5
src/app/features/playground/components/playground-form/playground-form-material.component.ts
TypeScript
www.github.com/erqk/ng-dynamic-json-form/tree/main/src/app/features/playground/components/playground-form/playground-form-material.component.ts
https://raw.githubusercontent.com/erqk/ng-dynamic-json-form/d1420e5/src/app/features/playground/components/playground-form/playground-form-material.component.ts
erqk/ng-dynamic-json-form d1420e5 src/app/features/playground/components/playground-form/playground-form-material.component.ts
true
200
1,601
import { CommonModule } from '@angular/common'; import { Component, forwardRef } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { NgDynamicJsonFormComponent, provideNgDynamicJsonForm, } from 'ng-dynamic-json-form'; import { UI_MATERIAL_COMPONENTS } from 'ng-dynamic-json-form/ui-m...
6
Deepti2130/serviceTask-test-passenger-and-product
e599e05
src/app/shared/passenger/pass-count/pass-count.component.ts
TypeScript
www.github.com/Deepti2130/serviceTask-test-passenger-and-product/tree/main/src/app/shared/passenger/pass-count/pass-count.component.ts
https://raw.githubusercontent.com/Deepti2130/serviceTask-test-passenger-and-product/e599e05/src/app/shared/passenger/pass-count/pass-count.component.ts
Deepti2130/serviceTask-test-passenger-and-product e599e05 src/app/shared/passenger/pass-count/pass-count.component.ts
true
200
360
import { Component, Input, OnInit } from '@angular/core'; @Component({ selector: 'app-pass-count', templateUrl: './pass-count.component.html', styleUrls: ['./pass-count.component.scss'] }) export class PassCountComponent implements OnInit { @Input() totalCount! : number; @Input() CheckIncount! :number; constru...
0
harievenad05/Angular-AppointmentApp
ac1b151
client/src/app/appointment-list/appointment-list.component.ts
TypeScript
www.github.com/harievenad05/Angular-AppointmentApp/tree/main/client/src/app/appointment-list/appointment-list.component.ts
https://raw.githubusercontent.com/harievenad05/Angular-AppointmentApp/ac1b151/client/src/app/appointment-list/appointment-list.component.ts
harievenad05/Angular-AppointmentApp ac1b151 client/src/app/appointment-list/appointment-list.component.ts
true
200
1,438
import { Component, OnInit } from '@angular/core'; import { Appointment } from '../common/appointment'; import { AppointmentsService } from '../common/appointments.service'; import { mergeMap } from 'rxjs/operators'; @Component({ selector: 'app-appointment-list', templateUrl: './appointment-list.component.html', ...
7
SeyiPerfect1/Brief
aad8595
src/middlewares/validateResource.ts
TypeScript
www.github.com/SeyiPerfect1/Brief/tree/main/src/middlewares/validateResource.ts
https://raw.githubusercontent.com/SeyiPerfect1/Brief/aad8595/src/middlewares/validateResource.ts
SeyiPerfect1/Brief aad8595 src/middlewares/validateResource.ts
true
200
466
import { AnyZodObject } from 'zod'; import { Request, Response, NextFunction } from 'express'; const validate = (schema: AnyZodObject) => (req: Request, res: Response, next: NextFunction) => { try { schema.parse({ body: req.body, query: req.query, params: req.params, }); ...
3
chaymaeben4/Bankati_FrontEnd
4669629
src/app/client/alimenter-portefeuille/alimenter-portefeuille.component.ts
TypeScript
www.github.com/chaymaeben4/Bankati_FrontEnd/tree/main/src/app/client/alimenter-portefeuille/alimenter-portefeuille.component.ts
https://raw.githubusercontent.com/chaymaeben4/Bankati_FrontEnd/4669629/src/app/client/alimenter-portefeuille/alimenter-portefeuille.component.ts
chaymaeben4/Bankati_FrontEnd 4669629 src/app/client/alimenter-portefeuille/alimenter-portefeuille.component.ts
true
200
3,481
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from "@angular/forms"; import { ActivatedRoute, Router } from "@angular/router"; import { CmiService } from "../services/cmi-service/cmi.service"; import { Devise } from "../model/devise.enum"; import { AlertDialogComponent...
4
RafaelReimberg/Curso-Dev-Samurai
4fe6328
TODOList/projeto/interfacesEClasses/src/index.ts
TypeScript
www.github.com/RafaelReimberg/Curso-Dev-Samurai/tree/main/TODOList/projeto/interfacesEClasses/src/index.ts
https://raw.githubusercontent.com/RafaelReimberg/Curso-Dev-Samurai/4fe6328/TODOList/projeto/interfacesEClasses/src/index.ts
RafaelReimberg/Curso-Dev-Samurai 4fe6328 TODOList/projeto/interfacesEClasses/src/index.ts
true
200
2,178
(() => { interface Task { id: string; dateCreated: Date; dateUpdated: Date; description: string; render(): string; } class Reminder implements Task { id: string = ''; dateCreated: Date = new Date(); dateUpdated: Date = new Date(); desc...
2
ArtHouse379/czo-dashboard-back-end
c8789de
src/contract/contract.controller.ts
TypeScript
www.github.com/ArtHouse379/czo-dashboard-back-end/tree/main/src/contract/contract.controller.ts
https://raw.githubusercontent.com/ArtHouse379/czo-dashboard-back-end/c8789de/src/contract/contract.controller.ts
ArtHouse379/czo-dashboard-back-end c8789de src/contract/contract.controller.ts
true
200
1,158
import { Body, Controller, Delete, Get, HttpCode, Param, Post, Put, UsePipes, ValidationPipe } from '@nestjs/common' import { Auth } from 'src/auth/decorators/auth.decorator' import { ContractDto } from './contract.dto' import { ContractService } from './contract.service' @Controller('contracts') export clas...
1
luigiguajana93/fs0124b-Luigi-Guajana
3552871
m3/s3/g2/formApp/src/app/app-routing.module.ts
TypeScript
www.github.com/luigiguajana93/fs0124b-Luigi-Guajana/tree/main/m3/s3/g2/formApp/src/app/app-routing.module.ts
https://raw.githubusercontent.com/luigiguajana93/fs0124b-Luigi-Guajana/3552871/m3/s3/g2/formApp/src/app/app-routing.module.ts
luigiguajana93/fs0124b-Luigi-Guajana 3552871 m3/s3/g2/formApp/src/app/app-routing.module.ts
true
200
655
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { FormStandardComponent } from './form-standard/form-standard.component'; import { ReactiveFormComponent } from './reactive-form/reactive-form.component'; con...
7
SatisGraphtory/ToolBelt
4776131
pipeline/pak-tools/src/pak/structs/localization/FTextLocalizationResourceString.ts
TypeScript
www.github.com/SatisGraphtory/ToolBelt/tree/main/pipeline/pak-tools/src/pak/structs/localization/FTextLocalizationResourceString.ts
https://raw.githubusercontent.com/SatisGraphtory/ToolBelt/4776131/pipeline/pak-tools/src/pak/structs/localization/FTextLocalizationResourceString.ts
SatisGraphtory/ToolBelt 4776131 pipeline/pak-tools/src/pak/structs/localization/FTextLocalizationResourceString.ts
true
200
325
import {Reader} from "../../../readers/Reader"; import {UnrealString} from "../../primitive/strings"; import {Int32} from "../../primitive/integers"; export async function FTextLocalizationResourceString(reader: Reader) { return { string: await reader.read(UnrealString), refCount: await reader.read(Int32), ...
7
worapolburaphan/neversitup-todoapp
ac11f79
tailwind.config.ts
TypeScript
www.github.com/worapolburaphan/neversitup-todoapp/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/worapolburaphan/neversitup-todoapp/ac11f79/tailwind.config.ts
worapolburaphan/neversitup-todoapp ac11f79 tailwind.config.ts
true
200
792
import type { Config } from 'tailwindcss' import { nextui } from '@nextui-org/theme' const config: Config = { content: [ './src/**/*.{js,ts,jsx,tsx,mdx}', // Include NextUI theme files './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}', ], theme: { extend: { fontFamily: { ...
1
Mohamed-Sarr/angular-Fcc
eeeb6a7
src/app/child/child.component.ts
TypeScript
www.github.com/Mohamed-Sarr/angular-Fcc/tree/main/src/app/child/child.component.ts
https://raw.githubusercontent.com/Mohamed-Sarr/angular-Fcc/eeeb6a7/src/app/child/child.component.ts
Mohamed-Sarr/angular-Fcc eeeb6a7 src/app/child/child.component.ts
true
200
493
import { Component, OnInit ,Input, Output,EventEmitter} from '@angular/core'; @Component({ selector: 'app-child', templateUrl: './child.component.html', styleUrls: ['./child.component.css'] }) export class ChildComponent implements OnInit { @Input() childMessage: string; // @Output() samaEvent = new EventEmi...
3
eggz128/nfocus6playwright
ae5d82e
tests/apitests.spec.ts
TypeScript
www.github.com/eggz128/nfocus6playwright/tree/main/tests/apitests.spec.ts
https://raw.githubusercontent.com/eggz128/nfocus6playwright/ae5d82e/tests/apitests.spec.ts
eggz128/nfocus6playwright ae5d82e tests/apitests.spec.ts
true
200
937
import {test, expect, request} from '@playwright/test' const baseUrl = 'http://localhost:2002/' test('A simple GET request', async({request})=>{ const resp = await request.get(baseUrl + 'api/products/1') try { expect.soft(resp.status()).toEqual(200) expect.soft(await resp.json()).toHavePropert...
4
savicci/passmanager
6779a69
client/src/app/components/vaults/vault/services/vault-api.service.ts
TypeScript
www.github.com/savicci/passmanager/tree/main/client/src/app/components/vaults/vault/services/vault-api.service.ts
https://raw.githubusercontent.com/savicci/passmanager/6779a69/client/src/app/components/vaults/vault/services/vault-api.service.ts
savicci/passmanager 6779a69 client/src/app/components/vaults/vault/services/vault-api.service.ts
true
200
1,456
import {Injectable} from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {ErrorHandlingService} from "../../../services/error-handling.service"; @Injectable({ providedIn: 'root' }) export class VaultApiService { constructor(private httpClient: HttpClient, private errorHandler: ErrorHandli...
2
MirulMukminin/ilmsfe
23ade8f
src/app/operation-system/cfs-request-form/plug-on-off/plug-on-off.component.ts
TypeScript
www.github.com/MirulMukminin/ilmsfe/tree/main/src/app/operation-system/cfs-request-form/plug-on-off/plug-on-off.component.ts
https://raw.githubusercontent.com/MirulMukminin/ilmsfe/23ade8f/src/app/operation-system/cfs-request-form/plug-on-off/plug-on-off.component.ts
MirulMukminin/ilmsfe 23ade8f src/app/operation-system/cfs-request-form/plug-on-off/plug-on-off.component.ts
true
200
13,443
import { DatePipe, formatDate } from '@angular/common'; import { Component, Input, OnInit, ViewChild, ViewChildren, } from '@angular/core'; import { NgForm } from '@angular/forms'; import { Router } from '@angular/router'; import { RequestCFSType } from 'enums/enums'; import { restServices } from 'services'; ...
1
katvick/spa-react-test-task
95de9be
src/types/user-data.ts
TypeScript
www.github.com/katvick/spa-react-test-task/tree/main/src/types/user-data.ts
https://raw.githubusercontent.com/katvick/spa-react-test-task/95de9be/src/types/user-data.ts
katvick/spa-react-test-task 95de9be src/types/user-data.ts
true
200
605
export type User = { id: number, name: string, username: string, email: string, address: { street: string, suite: string, city: string, zipcode: string, geo: { lat: string, lng: string } }, phone: string, website: string, company: {...
7
gwinchesters/aoc
e75050e
src/2022/14.ts
TypeScript
www.github.com/gwinchesters/aoc/tree/main/src/2022/14.ts
https://raw.githubusercontent.com/gwinchesters/aoc/e75050e/src/2022/14.ts
gwinchesters/aoc e75050e src/2022/14.ts
true
200
4,943
import Solver from '../common/base' class SandSim { env: Map<number, Map<number, string>> floor: number | null height: number constructor(rocks: [number, number][], withFloor: boolean = false) { this.initEnv(rocks, withFloor) } initEnv(rocks: [number, number][], withFloor: boolean) { this.env = n...
4
DiogoCamiloSantos/starti-dashboard-app
31f0e55
src/app/app.config.ts
TypeScript
www.github.com/DiogoCamiloSantos/starti-dashboard-app/tree/main/src/app/app.config.ts
https://raw.githubusercontent.com/DiogoCamiloSantos/starti-dashboard-app/31f0e55/src/app/app.config.ts
DiogoCamiloSantos/starti-dashboard-app 31f0e55 src/app/app.config.ts
true
200
940
import { ApplicationConfig } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { provideClientHydration } from '@angular/platform-browser'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { HTTP_INTERCEPT...
3
Vedantkukade/FlipZon_E-Commerce
e6efdfc
src/app/app-routing.module.ts
TypeScript
www.github.com/Vedantkukade/FlipZon_E-Commerce/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/Vedantkukade/FlipZon_E-Commerce/e6efdfc/src/app/app-routing.module.ts
Vedantkukade/FlipZon_E-Commerce e6efdfc src/app/app-routing.module.ts
true
200
1,548
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AuthGuard } from './auth.guard'; import { HomeComponent } from './home/home.component'; import { ProductdetailsComponent } from './productdetails/productdetails.component'; import { SearchComponent } from './searc...
2
MapColonies/job-manager
8d1057a
src/DAL/repositories/generalRepository.ts
TypeScript
www.github.com/MapColonies/job-manager/tree/main/src/DAL/repositories/generalRepository.ts
https://raw.githubusercontent.com/MapColonies/job-manager/8d1057a/src/DAL/repositories/generalRepository.ts
MapColonies/job-manager 8d1057a src/DAL/repositories/generalRepository.ts
true
200
799
import { container } from 'tsyringe'; import { ObjectLiteral, Repository } from 'typeorm'; import { SERVICES } from '../../common/constants'; import { IConfig, IDbConfig } from '../../common/interfaces'; export class GeneralRepository<T extends ObjectLiteral> extends Repository<T> { protected readonly dbConfig: IDbC...
1
darshan260802/todo-app
eb78026
src/app/app.component.ts
TypeScript
www.github.com/darshan260802/todo-app/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/darshan260802/todo-app/eb78026/src/app/app.component.ts
darshan260802/todo-app eb78026 src/app/app.component.ts
true
200
415
import { Component, OnInit } from '@angular/core'; import { AuthService } from './Shared/auth.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit{ title = 'note-plus'; constructor(private authServ...
7
diipacheco/coffee-delivery
d3ae486
src/components/Header/styles.ts
TypeScript
www.github.com/diipacheco/coffee-delivery/tree/main/src/components/Header/styles.ts
https://raw.githubusercontent.com/diipacheco/coffee-delivery/d3ae486/src/components/Header/styles.ts
diipacheco/coffee-delivery d3ae486 src/components/Header/styles.ts
true
200
1,961
import { styled, css } from 'styled-components'; import { Link } from 'react-router-dom'; export const defaultHeaderCss = css` max-width: 72.5rem; margin: 0 auto; padding: 2rem 1.25rem; display: flex; justify-content: space-between; align-items: center; `; export const fixedHeaderCss = css` padding: 2r...
4
SamScripts-DEV/Prueba_Bimestral1_Moviles
94763b7
prueba/src/app/tab1/tab1.module.ts
TypeScript
www.github.com/SamScripts-DEV/Prueba_Bimestral1_Moviles/tree/main/prueba/src/app/tab1/tab1.module.ts
https://raw.githubusercontent.com/SamScripts-DEV/Prueba_Bimestral1_Moviles/94763b7/prueba/src/app/tab1/tab1.module.ts
SamScripts-DEV/Prueba_Bimestral1_Moviles 94763b7 prueba/src/app/tab1/tab1.module.ts
true
200
673
import { IonicModule } from '@ionic/angular'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Tab1Page } from './tab1.page'; import { ExploreContainerComponentModule } from '../explore-container/explore-container.module'; i...
3
imojen/chronocite
205599e
src/app/modules/gameplay/components/building-panel/building-panel.component.ts
TypeScript
www.github.com/imojen/chronocite/tree/main/src/app/modules/gameplay/components/building-panel/building-panel.component.ts
https://raw.githubusercontent.com/imojen/chronocite/205599e/src/app/modules/gameplay/components/building-panel/building-panel.component.ts
imojen/chronocite 205599e src/app/modules/gameplay/components/building-panel/building-panel.component.ts
true
200
38,758
import { Component, inject, ChangeDetectionStrategy, ChangeDetectorRef, NgZone, OnInit, } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GameService } from '../../../../core/services/game.service'; import { Observable, firstValueFrom } from 'rxjs'; import { Building } from '....
2
jlchilders11/launchpad
384607d
src/main.ts
TypeScript
www.github.com/jlchilders11/launchpad/tree/main/src/main.ts
https://raw.githubusercontent.com/jlchilders11/launchpad/384607d/src/main.ts
jlchilders11/launchpad 384607d src/main.ts
true
200
235
import { createApp } from 'vue' import { createPinia } from 'pinia' import '@/scss/styles.scss' import 'bootstrap' import App from '@/App.vue' const pinia = createPinia() const app = createApp(App) app.use(pinia) app.mount('#app')
1
GuedesJoaoVictor/to-do-list-react
61a30ff
backend/src/controllers/checklist/DeleteChecklistController.ts
TypeScript
www.github.com/GuedesJoaoVictor/to-do-list-react/tree/main/backend/src/controllers/checklist/DeleteChecklistController.ts
https://raw.githubusercontent.com/GuedesJoaoVictor/to-do-list-react/61a30ff/backend/src/controllers/checklist/DeleteChecklistController.ts
GuedesJoaoVictor/to-do-list-react 61a30ff backend/src/controllers/checklist/DeleteChecklistController.ts
true
200
516
import { FastifyRequest, FastifyReply } from "fastify"; import { DeleteChecklistService } from "../../services/checklist/DeleteChecklistService"; class DeleteChecklistController { async handle(request: FastifyRequest, reply: FastifyReply) { const { id } = request.query as { id: string }; const che...
7
jahanzaib5244/RN_Boilerplate
74e7528
template/src/constants/COLORS.ts
TypeScript
www.github.com/jahanzaib5244/RN_Boilerplate/tree/main/template/src/constants/COLORS.ts
https://raw.githubusercontent.com/jahanzaib5244/RN_Boilerplate/74e7528/template/src/constants/COLORS.ts
jahanzaib5244/RN_Boilerplate 74e7528 template/src/constants/COLORS.ts
true
200
690
export default { black: '#000000', white: '#FFFFFF', gray: '#666', primary: '#0A84FF', black_text: '#494949', light_gray: '#F2F2F2', danger: '#DC3545', }; export interface colors { black: string; white: string; gray: string; primary: string; black_text: string; light_gray: string; danger: s...
4
devsoc-unsw/trainee-magician-24t3
fd78960
backend/src/index.ts
TypeScript
www.github.com/devsoc-unsw/trainee-magician-24t3/tree/main/backend/src/index.ts
https://raw.githubusercontent.com/devsoc-unsw/trainee-magician-24t3/fd78960/backend/src/index.ts
devsoc-unsw/trainee-magician-24t3 fd78960 backend/src/index.ts
true
200
545
import "dotenv/config"; import express, { json } from "express"; import userRouter from "./routes/user"; import cors from "cors"; import testRouter from "./routes/test"; import tipsRouter from "./routes/tips"; const app = express(); app.use(cors()); app.use(json()); app.use("/users", userRouter); app.use("/test", te...
3
ayazahmed07/onsiteclasses
6297544
class10/main.ts
TypeScript
www.github.com/ayazahmed07/onsiteclasses/tree/main/class10/main.ts
https://raw.githubusercontent.com/ayazahmed07/onsiteclasses/6297544/class10/main.ts
ayazahmed07/onsiteclasses 6297544 class10/main.ts
true
200
1,594
// // Topic "Any" to pass any type of data if never shows error // let age: any; // age = 333 // let age1: unknown // age1 = "dfdf" // let price = 18; // console.log(price.toFixed(4)); // let age: unknown; // age = 18; // console.log((age as number).toFixed(2)) // Explicit casting consider age as number method...
2
Infomaximum/frontend-base
2e22c53
src/components/Banner/Banner.styles.ts
TypeScript
www.github.com/Infomaximum/frontend-base/tree/main/src/components/Banner/Banner.styles.ts
https://raw.githubusercontent.com/Infomaximum/frontend-base/2e22c53/src/components/Banner/Banner.styles.ts
Infomaximum/frontend-base 2e22c53 src/components/Banner/Banner.styles.ts
true
200
588
export const closeBannerAnimationDuration = 0.5; // секунды export const bannerStyle = { flexShrink: 0, maxHeight: "200px", "span > svg": { overflow: "visible", // fix для Mozilla FireFox }, } as const; export const animationBannerStyle = { transition: `max-height ${closeBannerAnimationDuration}s`, o...
1
abiodunolunu/next-app-replicache
9b3697e
replicache/mutators.ts
TypeScript
www.github.com/abiodunolunu/next-app-replicache/tree/main/replicache/mutators.ts
https://raw.githubusercontent.com/abiodunolunu/next-app-replicache/9b3697e/replicache/mutators.ts
abiodunolunu/next-app-replicache 9b3697e replicache/mutators.ts
true
200
1,413
import { WriteTransaction } from "replicache"; import { ITask, listTasks } from "./getters"; export type M = typeof mutators export const mutators = { async createTask(tx: WriteTransaction, task: ITask) { const allTasks = await listTasks(tx) const updatedTasks = [...allTasks, task] await...
7
xEfren548/ddss-project
c92eeb5
src/controller/rooms.controller.ts
TypeScript
www.github.com/xEfren548/ddss-project/tree/main/src/controller/rooms.controller.ts
https://raw.githubusercontent.com/xEfren548/ddss-project/c92eeb5/src/controller/rooms.controller.ts
xEfren548/ddss-project c92eeb5 src/controller/rooms.controller.ts
true
200
4,614
import { Request, Response } from "express"; import Room from "../models/room"; import { HTTP_STATUS_CODES } from "../types/http-status-codes"; import Category from "../models/category"; import mongoose from "mongoose"; class RoomsController { async getAll(req: Request, res: Response) { try { const rooms =...
4
murilo-scapim/jogo-da-velha-poo
e621bc0
src/GameBoard.ts
TypeScript
www.github.com/murilo-scapim/jogo-da-velha-poo/tree/main/src/GameBoard.ts
https://raw.githubusercontent.com/murilo-scapim/jogo-da-velha-poo/e621bc0/src/GameBoard.ts
murilo-scapim/jogo-da-velha-poo e621bc0 src/GameBoard.ts
true
200
1,545
export default class GameBoard { private _lineOne: string[]; private _lineTwo: string[]; private _lineThree: string[]; private _board: Array<string>[] = []; private _messageError: string = ''; constructor() { this._lineOne = ['_','_','_']; this._lineTwo = ['_','_','_']; this._lineThree = ['_','...
3
barkprotocol/airdrop-launchpad
ed4ad51
app/api/endpoints/route.ts
TypeScript
www.github.com/barkprotocol/airdrop-launchpad/tree/main/app/api/endpoints/route.ts
https://raw.githubusercontent.com/barkprotocol/airdrop-launchpad/ed4ad51/app/api/endpoints/route.ts
barkprotocol/airdrop-launchpad ed4ad51 app/api/endpoints/route.ts
true
200
1,810
// Base URL for the API const BASE_URL = "https://api.barkprotocol.net/v0.1"; // Centralized API endpoints export const endpoints = { airdrops: { eligibility: (address: string) => `${BASE_URL}/airdrops/bark/eligibility/${address}`, claim: (address: string) => `${BASE_URL}/airdrops/bark/claim/${address}`, }...
2
rupertgehrlein/TokensInMind
d720d28
src/app/nft/nft-home/nft-home.component.spec.ts
TypeScript
www.github.com/rupertgehrlein/TokensInMind/tree/main/src/app/nft/nft-home/nft-home.component.spec.ts
https://raw.githubusercontent.com/rupertgehrlein/TokensInMind/d720d28/src/app/nft/nft-home/nft-home.component.spec.ts
rupertgehrlein/TokensInMind d720d28 src/app/nft/nft-home/nft-home.component.spec.ts
true
200
607
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NftHomeComponent } from './nft-home.component'; describe('NftHomeComponent', () => { let component: NftHomeComponent; let fixture: ComponentFixture<NftHomeComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ ...
1
thanhthuy1612/nextjs
bcad879
be/src/main.ts
TypeScript
www.github.com/thanhthuy1612/nextjs/tree/main/be/src/main.ts
https://raw.githubusercontent.com/thanhthuy1612/nextjs/bcad879/be/src/main.ts
thanhthuy1612/nextjs bcad879 be/src/main.ts
true
200
1,028
import { NestFactory } from '@nestjs/core'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { AppModule } from './app.module'; import * as cookieParser from 'cookie-parser'; declare const module: any; async function bootstrap() { const app = await NestFactory.create(AppModule); const con...
7
gabhat1994/react-vite-setup
b285eb1
src/features/noumContacts/utils/contactDetails.ts
TypeScript
www.github.com/gabhat1994/react-vite-setup/tree/main/src/features/noumContacts/utils/contactDetails.ts
https://raw.githubusercontent.com/gabhat1994/react-vite-setup/b285eb1/src/features/noumContacts/utils/contactDetails.ts
gabhat1994/react-vite-setup b285eb1 src/features/noumContacts/utils/contactDetails.ts
true
200
1,111
import { type NoumContactSummaryFragment } from '@/apollo/graphql'; import { getCountryByCode } from '@/utils/country'; import { type SearchableNoumContact } from '../types'; function formatCompanyAndTitle( contact: Pick<SearchableNoumContact, 'companyName' | 'title'>, ) { return contact.title ? [contact.title...
4
choikwm/popular-apps
2a09a96
src/features/listing/listingSlice.ts
TypeScript
www.github.com/choikwm/popular-apps/tree/main/src/features/listing/listingSlice.ts
https://raw.githubusercontent.com/choikwm/popular-apps/2a09a96/src/features/listing/listingSlice.ts
choikwm/popular-apps 2a09a96 src/features/listing/listingSlice.ts
true
200
2,963
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import type { PayloadAction } from "@reduxjs/toolkit"; import { IListing } from "./types"; import { getTopFreeListing, getSuggestions } from "./listingAPI"; import { RootState } from "../../app/store"; export interface IListingState { topFreeListing: ...
3
casper-ecosystem/casper-manager
1ec773c
packages/site/src/plugins/vuetify.ts
TypeScript
www.github.com/casper-ecosystem/casper-manager/tree/main/packages/site/src/plugins/vuetify.ts
https://raw.githubusercontent.com/casper-ecosystem/casper-manager/1ec773c/packages/site/src/plugins/vuetify.ts
casper-ecosystem/casper-manager 1ec773c packages/site/src/plugins/vuetify.ts
true
200
419
/** * plugins/vuetify.ts * * Framework documentation: https://vuetifyjs.com` */ /* eslint import/no-unassigned-import: "off" */ // Styles import '@mdi/font/css/materialdesignicons.css'; import 'vuetify/styles'; // Composables import { createVuetify } from 'vuetify'; // https://vuetifyjs.com/en/introduction/why-vu...
2
Deboraj-roy/Library-Management-System-SinglePage
2402f2c
src/Front-end-web/src/app/app.component.ts
TypeScript
www.github.com/Deboraj-roy/Library-Management-System-SinglePage/tree/main/src/Front-end-web/src/app/app.component.ts
https://raw.githubusercontent.com/Deboraj-roy/Library-Management-System-SinglePage/2402f2c/src/Front-end-web/src/app/app.component.ts
Deboraj-roy/Library-Management-System-SinglePage 2402f2c src/Front-end-web/src/app/app.component.ts
true
200
950
import { Component, OnInit } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { SharedModule } from './shared/shared.module'; import { CommonModule } from '@angular/common'; import { AuthModule } from './auth/auth.module'; import { ApiService } from './shared/services/api.service'; import { ...
1
ljdj01/Ordinacija_WebApp_2023
3854227
frontend/src/app/services/zakazan-pregled.service.spec.ts
TypeScript
www.github.com/ljdj01/Ordinacija_WebApp_2023/tree/main/frontend/src/app/services/zakazan-pregled.service.spec.ts
https://raw.githubusercontent.com/ljdj01/Ordinacija_WebApp_2023/3854227/frontend/src/app/services/zakazan-pregled.service.spec.ts
ljdj01/Ordinacija_WebApp_2023 3854227 frontend/src/app/services/zakazan-pregled.service.spec.ts
true
200
398
import { TestBed } from '@angular/core/testing'; import { ZakazanPregledService } from './zakazan-pregled.service'; describe('ZakazanPregledService', () => { let service: ZakazanPregledService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ZakazanPregledService); }); ...
4
smilewj/vite-electron-ts
baf3987
src/utils/storage.ts
TypeScript
www.github.com/smilewj/vite-electron-ts/tree/main/src/utils/storage.ts
https://raw.githubusercontent.com/smilewj/vite-electron-ts/baf3987/src/utils/storage.ts
smilewj/vite-electron-ts baf3987 src/utils/storage.ts
true
200
1,242
export default { /** * 带过期时间的 sessionStorage 存储 * @param key * @param value * @param expire */ setSession<T>(key: string, value: T, expire: number = Infinity) { const jsonStr = JSON.stringify({ data: value, time: new Date().getTime(), expire: isFinite(expire) ? expire : 'Infinit...
7
Rugren/Barra_de_Busqueda
37a2246
Search/src/app/app.module.ts
TypeScript
www.github.com/Rugren/Barra_de_Busqueda/tree/main/Search/src/app/app.module.ts
https://raw.githubusercontent.com/Rugren/Barra_de_Busqueda/37a2246/Search/src/app/app.module.ts
Rugren/Barra_de_Busqueda 37a2246 Search/src/app/app.module.ts
true
200
1,927
/* Cosas internas de Angular */ import { NgModule } from '@angular/core'; import { BrowserModule, provideClientHydration } from '@angular/platform-browser'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; /* App Component */ import { AppCompo...
3
SamoySamoy/roomies
fc927b9
server/src/middlewares/fileUploader.ts
TypeScript
www.github.com/SamoySamoy/roomies/tree/main/server/src/middlewares/fileUploader.ts
https://raw.githubusercontent.com/SamoySamoy/roomies/fc927b9/server/src/middlewares/fileUploader.ts
SamoySamoy/roomies fc927b9 server/src/middlewares/fileUploader.ts
true
200
475
import multer from 'multer'; import { convertMbToBytes } from '@/lib/utils'; import { IMAGE_SIZE_LIMIT_IN_MB } from '@/lib/constants'; const fileUploader = multer({ storage: multer.memoryStorage(), fileFilter(req, file, callback) { if (file.mimetype.split('/')[0] !== 'image') { return callback(null, fals...
2
jeka0/streaming_fe
9db0e5d
src/app/shared/guards/ban.guard.ts
TypeScript
www.github.com/jeka0/streaming_fe/tree/main/src/app/shared/guards/ban.guard.ts
https://raw.githubusercontent.com/jeka0/streaming_fe/9db0e5d/src/app/shared/guards/ban.guard.ts
jeka0/streaming_fe 9db0e5d src/app/shared/guards/ban.guard.ts
true
200
1,277
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree, Router } from '@angular/router'; import { Observable, map, of, switchMap } from 'rxjs'; import { UserService } from '../services/user.service'; import { PenaltyService } from '../services/penalty.serv...
4
deepbludev/nestjs-microservices-example
5dbdf9e
libs/shared/core/src/domain/uid/uuid.vo.ts
TypeScript
www.github.com/deepbludev/nestjs-microservices-example/tree/main/libs/shared/core/src/domain/uid/uuid.vo.ts
https://raw.githubusercontent.com/deepbludev/nestjs-microservices-example/5dbdf9e/libs/shared/core/src/domain/uid/uuid.vo.ts
deepbludev/nestjs-microservices-example 5dbdf9e libs/shared/core/src/domain/uid/uuid.vo.ts
true
200
325
import { IUniqueID } from './unique-id.vo' import { type UniqueIDProps } from './unique-id.vo' import { uuid } from './utils/id.utils' export class UUID extends IUniqueID { constructor(props: UniqueIDProps) { super(props) } public static override validate(id: string): boolean { return uuid.isValid(id) ...
7
manishrajoriya/revise-freelance
1fbaeaf
src/app/api/auth/[...nextauth].js/options.ts
TypeScript
www.github.com/manishrajoriya/revise-freelance/tree/main/src/app/api/auth/[...nextauth].js/options.ts
https://raw.githubusercontent.com/manishrajoriya/revise-freelance/1fbaeaf/src/app/api/auth/%5B...nextauth%5D.js/options.ts
manishrajoriya/revise-freelance 1fbaeaf src/app/api/auth/[...nextauth].js/options.ts
true
200
2,182
import NextAuth from "next-auth" import CredentialsProvider from "next-auth/providers/credentials"; import { NextAuthOptions } from "next-auth"; import connectDB from "@/lib/dbConnect"; import UserModle from "@/models/userModle"; import bcrypt from "bcryptjs" export const authOptions: NextAuthOptions = { provider...
3
Briuwu/devfinder-github-search
4cea249
actions/username.ts
TypeScript
www.github.com/Briuwu/devfinder-github-search/tree/main/actions/username.ts
https://raw.githubusercontent.com/Briuwu/devfinder-github-search/4cea249/actions/username.ts
Briuwu/devfinder-github-search 4cea249 actions/username.ts
true
200
414
"use server"; export const getUserByUsername = async (username: string = "Briuwu") => { const response = await fetch(`${process.env.GITHUB_API}/users/${username}`, { method: "GET", headers: { Authorization: `Bearer ${process.env.GITHUB_TOKEN}`, }, }); if (!response.ok) { return null; } ...
5
amandadolci/m4-kenzievelopers-api
cec727c
src/interfaces/devInfos.interfaces.ts
TypeScript
www.github.com/amandadolci/m4-kenzievelopers-api/tree/main/src/interfaces/devInfos.interfaces.ts
https://raw.githubusercontent.com/amandadolci/m4-kenzievelopers-api/cec727c/src/interfaces/devInfos.interfaces.ts
amandadolci/m4-kenzievelopers-api cec727c src/interfaces/devInfos.interfaces.ts
true
200
372
import { QueryResult } from 'pg'; type OS = 'Windows' | 'Linux' | 'MacOS'; interface DeveloperInfos { id: number; developerSince: Date; preferredOS: OS; developerId: number; } type DeveloperInfosCreate = Omit<DeveloperInfos, 'id'>; type DeveloperInfosResult = QueryResult<DeveloperInfos>; export { OS, DeveloperI...
0
LachlanBWWright/MERN-Mafia
c22dab2
server/model/roles/sniper/sniper.ts
TypeScript
www.github.com/LachlanBWWright/MERN-Mafia/tree/main/server/model/roles/sniper/sniper.ts
https://raw.githubusercontent.com/LachlanBWWright/MERN-Mafia/c22dab2/server/model/roles/sniper/sniper.ts
LachlanBWWright/MERN-Mafia c22dab2 server/model/roles/sniper/sniper.ts
true
200
1,753
import { Player } from "../../player/player.js"; import { Room } from "../../rooms/room.js"; import { Role } from "../abstractRole.js"; import { io } from "../../../servers/socket.js"; export class Sniper extends Role { lastVisited: Role | null = null; name = "Sniper"; group = "sniper"; baseDefence = 1; def...
6
samadshaikh990/Typescript-Assignment
cb3ddc1
q34.ts
TypeScript
www.github.com/samadshaikh990/Typescript-Assignment/tree/main/q34.ts
https://raw.githubusercontent.com/samadshaikh990/Typescript-Assignment/cb3ddc1/q34.ts
samadshaikh990/Typescript-Assignment cb3ddc1 q34.ts
true
200
591
// Array of favorite pizza names let favoritePizzas: string[] = ['Pepperoni', 'Margherita', 'BBQ Chicken']; // Print the name of each pizza using a for loop console.log("Pizza names:"); for (let i = 0; i < favoritePizzas.length; i++) { console.log(favoritePizzas[i]); } // Print a sentence for each pizza ...
1
adrian-vatui/dissertation
f6f7bf5
code/monolith-fe/src/app/components/post/post.component.ts
TypeScript
www.github.com/adrian-vatui/dissertation/tree/main/code/monolith-fe/src/app/components/post/post.component.ts
https://raw.githubusercontent.com/adrian-vatui/dissertation/f6f7bf5/code/monolith-fe/src/app/components/post/post.component.ts
adrian-vatui/dissertation f6f7bf5 code/monolith-fe/src/app/components/post/post.component.ts
true
200
2,249
import { Component, Input, OnInit } from "@angular/core"; import { MatButton } from "@angular/material/button"; import { MatCard, MatCardAvatar, MatCardContent, MatCardHeader, MatCardMdImage, MatCardSmImage, MatCardTitle } from "@angular/material/card"; import { MatFormField } from "@angular/material/form-f...
4
PhilippW97/EmailReader
5e7c149
src/app/pipes/with-body-filter.pipe.ts
TypeScript
www.github.com/PhilippW97/EmailReader/tree/main/src/app/pipes/with-body-filter.pipe.ts
https://raw.githubusercontent.com/PhilippW97/EmailReader/5e7c149/src/app/pipes/with-body-filter.pipe.ts
PhilippW97/EmailReader 5e7c149 src/app/pipes/with-body-filter.pipe.ts
true
200
370
import { Pipe, PipeTransform } from '@angular/core'; import { Email } from '../modules/interfaces/email'; @Pipe({ name: 'withBodyFilter', }) export class WithBodyFilterPipe implements PipeTransform { transform(allEmails: Email[], withBody: boolean): Email[] { if (withBody) return allEmails.filter((email) => em...
5
Leroyalle/chime-backend
8126c3c
src/app.module.ts
TypeScript
www.github.com/Leroyalle/chime-backend/tree/main/src/app.module.ts
https://raw.githubusercontent.com/Leroyalle/chime-backend/8126c3c/src/app.module.ts
Leroyalle/chime-backend 8126c3c src/app.module.ts
true
200
1,437
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { JwtModule } from '@nestjs/jwt'; import { ScheduleModule } from '@nestjs/schedule'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { AuthModule } from './auth/auth.module...
7
JoseAlbel/Jose-Albeldo-Personal-Project-Front
23c55af
src/features/models/cars.ts
TypeScript
www.github.com/JoseAlbel/Jose-Albeldo-Personal-Project-Front/tree/main/src/features/models/cars.ts
https://raw.githubusercontent.com/JoseAlbel/Jose-Albeldo-Personal-Project-Front/23c55af/src/features/models/cars.ts
JoseAlbel/Jose-Albeldo-Personal-Project-Front 23c55af src/features/models/cars.ts
true
200
357
import { User } from "./user"; import { Image } from "../types/image"; export type Car = { id: string; typeCar: "Historic" | "TvMovie" | "RareCar"; brand: string; country: string; carModel: string; image: Image; owner: User; }; export type CarStructure = { id: string } & Car; export type CarServerRespon...
3
lub0v/jenkins-client-ts
3678b34
src/plugins/plugins.ts
TypeScript
www.github.com/lub0v/jenkins-client-ts/tree/main/src/plugins/plugins.ts
https://raw.githubusercontent.com/lub0v/jenkins-client-ts/3678b34/src/plugins/plugins.ts
lub0v/jenkins-client-ts 3678b34 src/plugins/plugins.ts
true
200
998
/* Copyright 2022 Parsable Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
0
1EgoPingvina1/skinet
e4284b2
client/src/app/checkout/checkout-address/checkout-address.component.ts
TypeScript
www.github.com/1EgoPingvina1/skinet/tree/main/client/src/app/checkout/checkout-address/checkout-address.component.ts
https://raw.githubusercontent.com/1EgoPingvina1/skinet/e4284b2/client/src/app/checkout/checkout-address/checkout-address.component.ts
1EgoPingvina1/skinet e4284b2 client/src/app/checkout/checkout-address/checkout-address.component.ts
true
200
852
import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { ToastrService } from 'ngx-toastr'; import { AccountModule } from 'src/app/account/account.module'; import { AccountService } from 'src/app/account/account.service'; @Component({ selector: 'app-checkout-address', ...
2
cestef/faceit-charts
157d964
src/utils/faceit.ts
TypeScript
www.github.com/cestef/faceit-charts/tree/main/src/utils/faceit.ts
https://raw.githubusercontent.com/cestef/faceit-charts/157d964/src/utils/faceit.ts
cestef/faceit-charts 157d964 src/utils/faceit.ts
true
200
6,037
import axios from "axios"; const client = axios.create({ baseURL: "/api" }); export const getStatus = async (token: string): Promise<boolean> => { return client .get("/status", { headers: { Authorization: `Bearer ${token}`, }, }) .then((res) => { ...
1
Anyungu/sigfox-bovetech-demo
6dc8286
backend-node/src/api/controllers/sigfox.ts
TypeScript
www.github.com/Anyungu/sigfox-bovetech-demo/tree/main/backend-node/src/api/controllers/sigfox.ts
https://raw.githubusercontent.com/Anyungu/sigfox-bovetech-demo/6dc8286/backend-node/src/api/controllers/sigfox.ts
Anyungu/sigfox-bovetech-demo 6dc8286 backend-node/src/api/controllers/sigfox.ts
true
200
312
import { handleWaterMeterdata } from "../services/water-meter.service"; export const logSigfoxData = (req: any, res: any) => { const { device, data } = req.body; console.log(device, data); handleWaterMeterdata(data, device) return res.json({ message: "Song Record Created Successfully" }); }
4
AbdelrhmanAbdelatif/get-fake-posts
e96bfed
src/app/app.component.ts
TypeScript
www.github.com/AbdelrhmanAbdelatif/get-fake-posts/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/AbdelrhmanAbdelatif/get-fake-posts/e96bfed/src/app/app.component.ts
AbdelrhmanAbdelatif/get-fake-posts e96bfed src/app/app.component.ts
true
200
1,302
import { Component, OnInit } from '@angular/core'; import { PostService } from './services/post.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { posts: any = []; constructor(private postSer...
7
admiralrohan/tiny-ecommerce-api
eab0d34
routes/utils.ts
TypeScript
www.github.com/admiralrohan/tiny-ecommerce-api/tree/main/routes/utils.ts
https://raw.githubusercontent.com/admiralrohan/tiny-ecommerce-api/eab0d34/routes/utils.ts
admiralrohan/tiny-ecommerce-api eab0d34 routes/utils.ts
true
200
2,842
import { Request, Response, Router } from "express"; import { userTypes } from "../configs/constants"; import { allowIfSeller } from "../middlewares/allow-if-seller"; import { verifyToken } from "../middlewares/verify-token"; import Products from "../models/product"; const router = Router(); // To show at registratio...
3
Switcheo/carbon-js-sdk
5ab9bcd
src/codec/cosmos/upgrade/v1beta1/tx.ts
TypeScript
www.github.com/Switcheo/carbon-js-sdk/tree/main/src/codec/cosmos/upgrade/v1beta1/tx.ts
https://raw.githubusercontent.com/Switcheo/carbon-js-sdk/5ab9bcd/src/codec/cosmos/upgrade/v1beta1/tx.ts
Switcheo/carbon-js-sdk 5ab9bcd src/codec/cosmos/upgrade/v1beta1/tx.ts
true
200
9,455
/* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; import { Plan } from "./upgrade"; export const protobufPackage = "cosmos.upgrade.v1beta1"; /** Since: cosmos-sdk 0.46 */ /** * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. * * Since: cosmos-sdk 0.46 */ export inter...
5
sahsisunny/linktree
b401888
src/actions/themeCrud.ts
TypeScript
www.github.com/sahsisunny/linktree/tree/main/src/actions/themeCrud.ts
https://raw.githubusercontent.com/sahsisunny/linktree/b401888/src/actions/themeCrud.ts
sahsisunny/linktree b401888 src/actions/themeCrud.ts
true
200
1,565
'use server' import mongoConnect from '@/libs/mongoConnect' import { createStyleModel, getStyleByUriIdModel, updateBackgroundModel, updateLinkBackgroundModel, updateLinkTypeModel, } from '@/models/themeModel' export async function getThemeByUriId(uriId: string) { mongoConnect() try { const t...
6
fakhriazdev/stat-app-web
c653a24
app/lib/features/commentsSlice.ts
TypeScript
www.github.com/fakhriazdev/stat-app-web/tree/main/app/lib/features/commentsSlice.ts
https://raw.githubusercontent.com/fakhriazdev/stat-app-web/c653a24/app/lib/features/commentsSlice.ts
fakhriazdev/stat-app-web c653a24 app/lib/features/commentsSlice.ts
true
200
1,642
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'; import toast from 'react-hot-toast'; import CommentService from "@/app/lib/services/commentService"; interface CommentsState { comments: any[]; } const initialState: CommentsState = { comments: [], }; const commentsAction = createAsyncThunk<...
0
mausworks/tyin
def61f4
src/plugin-persist.ts
TypeScript
www.github.com/mausworks/tyin/tree/main/src/plugin-persist.ts
https://raw.githubusercontent.com/mausworks/tyin/def61f4/src/plugin-persist.ts
mausworks/tyin def61f4 src/plugin-persist.ts
true
200
2,140
/// <reference lib="dom" /> /// <reference lib="dom.iterable" /> import debounce from "./debounce"; import { AnyState, StoreAPI } from "./store"; import { Plugin } from "./extend"; /** An object like `window.localStorage`. */ export type StorageLike = { getItem: (key: string) => string | null; setItem: (key: stri...
1
tzrfabian/kyokara-shopping
52881fd
src/middleware.ts
TypeScript
www.github.com/tzrfabian/kyokara-shopping/tree/main/src/middleware.ts
https://raw.githubusercontent.com/tzrfabian/kyokara-shopping/52881fd/src/middleware.ts
tzrfabian/kyokara-shopping 52881fd src/middleware.ts
true
200
1,373
import { cookies } from "next/headers"; import { NextRequest, NextResponse } from "next/server"; import { jwtVerify } from "jose"; import { UserType } from "./types/UserType"; import { WithId } from "mongodb"; import ErrorHandler from "./errors/ErrorHandler"; async function auth(request: NextRequest) { const authC...
4
miloIsNotAvailable/shop-app
6800be1
api/category_item.ts
TypeScript
www.github.com/miloIsNotAvailable/shop-app/tree/main/api/category_item.ts
https://raw.githubusercontent.com/miloIsNotAvailable/shop-app/6800be1/api/category_item.ts
miloIsNotAvailable/shop-app 6800be1 api/category_item.ts
true
200
496
import { Request, Response } from "express"; import { prisma } from "../prisma/client"; export default async function handler( req: Request, res: Response ) { try { const { category } = req.body as { category: string } const data = await prisma.item.findMany( { where: { ...
3
DocSpectre/nodejs-typeorm
0b0f768
src/data-source.ts
TypeScript
www.github.com/DocSpectre/nodejs-typeorm/tree/main/src/data-source.ts
https://raw.githubusercontent.com/DocSpectre/nodejs-typeorm/0b0f768/src/data-source.ts
DocSpectre/nodejs-typeorm 0b0f768 src/data-source.ts
true
200
800
import "reflect-metadata"; import { DataSource } from "typeorm"; import 'dotenv/config'; // import { User } from "./dao/entity/User" // import { Auth } from "./dao/entity/Auth" export const AppDataSource = new DataSource({ type: "postgres", host: process.env.PG_HOST, port: parseInt(process.env.PG_PORT) || ...
7
JayuGajjar/AMS_FrontEnd
4b6ab56
src/app/app.component.ts
TypeScript
www.github.com/JayuGajjar/AMS_FrontEnd/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/JayuGajjar/AMS_FrontEnd/4b6ab56/src/app/app.component.ts
JayuGajjar/AMS_FrontEnd 4b6ab56 src/app/app.component.ts
true
200
1,315
import { Component, OnInit } from '@angular/core'; import { Router, NavigationEnd } from '@angular/router'; import { IconSetService } from '@coreui/icons-angular'; import { iconSubset } from './icons/icon-subset'; import { Title } from '@angular/platform-browser'; @Component({ selector: 'app-root', template: '<ro...
5
samimozcan/declarant-api-monorepo-old
88881c5
apps/sec-bridge/src/sec-bridge.service.ts
TypeScript
www.github.com/samimozcan/declarant-api-monorepo-old/tree/main/apps/sec-bridge/src/sec-bridge.service.ts
https://raw.githubusercontent.com/samimozcan/declarant-api-monorepo-old/88881c5/apps/sec-bridge/src/sec-bridge.service.ts
samimozcan/declarant-api-monorepo-old 88881c5 apps/sec-bridge/src/sec-bridge.service.ts
true
200
15,845
import { SecPrismaService } from '@app/sec-prisma'; import { Injectable } from '@nestjs/common'; @Injectable() export class SecBridgeService { constructor(private readonly secDB: SecPrismaService) {} async getHello(): Promise<string> { try { // await this.secDB.secDeclaration.findMany({ // take: ...
2
fer-nando-machado/dk-redux
e765598
src/Game/reduxStore.ts
TypeScript
www.github.com/fer-nando-machado/dk-redux/tree/main/src/Game/reduxStore.ts
https://raw.githubusercontent.com/fer-nando-machado/dk-redux/e765598/src/Game/reduxStore.ts
fer-nando-machado/dk-redux e765598 src/Game/reduxStore.ts
true
200
1,693
import { configureStore } from "@reduxjs/toolkit"; import { combineReducers } from "redux"; import { persistStore, persistReducer } from "redux-persist"; import storage from "redux-persist/lib/storage"; import optionsReducer from "./System/OptionsSlice"; import musicReducer from "./System/MusicSlice"; import statusRedu...
6
ParsaBordbar/TechShop-React
7362e1b
src/hooks/useAuth/useAuth.ts
TypeScript
www.github.com/ParsaBordbar/TechShop-React/tree/main/src/hooks/useAuth/useAuth.ts
https://raw.githubusercontent.com/ParsaBordbar/TechShop-React/7362e1b/src/hooks/useAuth/useAuth.ts
ParsaBordbar/TechShop-React 7362e1b src/hooks/useAuth/useAuth.ts
true
200
426
import * as React from 'react' import Cookies from 'js-cookie'; import { useLocation, useNavigate } from 'react-router-dom'; export const useAuth = () => { const navigate = useNavigate() const { pathname } = useLocation() React.useEffect(() =>{ if(!Cookies.get('token')){ navi...
0
thunder-source/musicfy
fd96f3e
app/data/constants.ts
TypeScript
www.github.com/thunder-source/musicfy/tree/main/app/data/constants.ts
https://raw.githubusercontent.com/thunder-source/musicfy/fd96f3e/app/data/constants.ts
thunder-source/musicfy fd96f3e app/data/constants.ts
true
200
1,114
import { HiOutlineUserGroup, HiUserGroup } from 'react-icons/hi'; import { RiHomeSmileFill, RiHomeSmileLine, RiSearchLine, RiSearchFill } from 'react-icons/ri'; export const links = [ { name: 'Discover', to: '/', icon: RiHomeSmileLine, activeIcon: RiHomeSmileFill, }, { name: 'Search', to:...
2
Luchoragusa/Practicas-GSC
6e15908
Front/Ts/Funciones/3.3.ts
TypeScript
www.github.com/Luchoragusa/Practicas-GSC/tree/main/Front/Ts/Funciones/3.3.ts
https://raw.githubusercontent.com/Luchoragusa/Practicas-GSC/6e15908/Front/Ts/Funciones/3.3.ts
Luchoragusa/Practicas-GSC 6e15908 Front/Ts/Funciones/3.3.ts
true
200
1,338
function computeScore(word: string) { const letters = word.toUpperCase().split(''); // convierto a mayusculas y separo las letras return letters.reduce((accum, curr) => accum += getPointsFor(curr), 0); // acumulador + valor actual de la letra en el array de letras de la palabra } function getPointsFor(letter:...
3
JieLiuRiver/Netflix
2135e10
pages/api/register.ts
TypeScript
www.github.com/JieLiuRiver/Netflix/tree/main/pages/api/register.ts
https://raw.githubusercontent.com/JieLiuRiver/Netflix/2135e10/pages/api/register.ts
JieLiuRiver/Netflix 2135e10 pages/api/register.ts
true
200
1,030
import { NextApiRequest, NextApiResponse } from "next"; import prismadb from '@/libs/prismadb'; import bcrypt from 'bcrypt' export default async function handler(req: NextApiRequest, res: NextApiResponse) { if (req.method !== 'POST') { return res.status(405).end() } try { const { email, na...
7
BoosL/UNI
b16410d
src/app/_modules/curriculum-schedules/models/teaching-resource.model.ts
TypeScript
www.github.com/BoosL/UNI/tree/main/src/app/_modules/curriculum-schedules/models/teaching-resource.model.ts
https://raw.githubusercontent.com/BoosL/UNI/b16410d/src/app/_modules/curriculum-schedules/models/teaching-resource.model.ts
BoosL/UNI b16410d src/app/_modules/curriculum-schedules/models/teaching-resource.model.ts
true
200
685
import {CurriculumScheduleModel, } from './curriculum-schedule.model'; import {Classroom, Employee} from '@uni/core'; export interface ResourceClassroom { id: string; serial: number; classroom: Classroom; } export interface ResourceTeacher { id: string; serial: number; teacher: Employee; } export in...
4
WS-Jedp/pureVibesBetaTest
2285591
src/components/modal/detailModal/styles.ts
TypeScript
www.github.com/WS-Jedp/pureVibesBetaTest/tree/main/src/components/modal/detailModal/styles.ts
https://raw.githubusercontent.com/WS-Jedp/pureVibesBetaTest/2285591/src/components/modal/detailModal/styles.ts
WS-Jedp/pureVibesBetaTest 2285591 src/components/modal/detailModal/styles.ts
true
200
773
import styled from 'styled-components' export const DetailModalContainer = styled.article` position: relative; min-width: 450px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; width: 90%; max-width: 600px; background-color: var(--colo...
5
bluemountains88/ticketing-microservices
c112afe
orders/src/events/listeners/payment-created-listener.ts
TypeScript
www.github.com/bluemountains88/ticketing-microservices/tree/main/orders/src/events/listeners/payment-created-listener.ts
https://raw.githubusercontent.com/bluemountains88/ticketing-microservices/c112afe/orders/src/events/listeners/payment-created-listener.ts
bluemountains88/ticketing-microservices c112afe orders/src/events/listeners/payment-created-listener.ts
true
200
756
import { Subjects, Listener, PaymentCreatedEvent, OrderStatus, NotFoundError } from '@bluemountains/common'; import { Message } from 'node-nats-streaming'; import { queueGroupName } from './queue-group-name'; import { Order} from '../../models/order'; export class PaymentCreatedListener extends Lis...
6
forestjava/customer-gen-backend
230519e
src/generated/resolvers/inputs/DeviceTypeOrderByWithRelationInput.ts
TypeScript
www.github.com/forestjava/customer-gen-backend/tree/main/src/generated/resolvers/inputs/DeviceTypeOrderByWithRelationInput.ts
https://raw.githubusercontent.com/forestjava/customer-gen-backend/230519e/src/generated/resolvers/inputs/DeviceTypeOrderByWithRelationInput.ts
forestjava/customer-gen-backend 230519e src/generated/resolvers/inputs/DeviceTypeOrderByWithRelationInput.ts
true
200
838
import * as TypeGraphQL from "type-graphql"; import * as GraphQLScalars from "graphql-scalars"; import { Prisma } from "@prisma/client"; import { DecimalJSScalar } from "../../scalars"; import { DeviceOrderByRelationAggregateInput } from "../inputs/DeviceOrderByRelationAggregateInput"; import { SortOrder } from "../../...
0
pcaboor/graphql
0e5d853
graphql/src/lib/cursusDetails.ts
TypeScript
www.github.com/pcaboor/graphql/tree/main/graphql/src/lib/cursusDetails.ts
https://raw.githubusercontent.com/pcaboor/graphql/0e5d853/graphql/src/lib/cursusDetails.ts
pcaboor/graphql 0e5d853 graphql/src/lib/cursusDetails.ts
true
200
910
import { CursusInfo } from "@/app/types/types"; import fetchData from "../app/hooks/useData"; async function getCursusDetailsData(id: string): Promise<CursusInfo | null> { const cursusDetailsData = ` query { event(where: { id: { _eq: ${id} } }) { id startAt e...
1
MohamedAlhoony/pci-example
7c7521d
helpers.ts
TypeScript
www.github.com/MohamedAlhoony/pci-example/tree/main/helpers.ts
https://raw.githubusercontent.com/MohamedAlhoony/pci-example/7c7521d/helpers.ts
MohamedAlhoony/pci-example 7c7521d helpers.ts
true
200
6,983
/* * Date Format 1.2.3 * (c) 2007-2009 Steven Levithan <stevenlevithan.com> * MIT license * * Includes enhancements by Scott Trenda <scott.trenda.net> * and Kris Kowal <cixar.com/~kris.kowal/> * * Accepts a date, a mask, or a date and a mask. * Returns a formatted version of the given date. * The date default...
3
F3lip3Jara/agiletiv2
db02129
src/app/erp/dashboard/component/parametros/state/reducers/color.reducer.ts
TypeScript
www.github.com/F3lip3Jara/agiletiv2/tree/main/src/app/erp/dashboard/component/parametros/state/reducers/color.reducer.ts
https://raw.githubusercontent.com/F3lip3Jara/agiletiv2/db02129/src/app/erp/dashboard/component/parametros/state/reducers/color.reducer.ts
F3lip3Jara/agiletiv2 db02129 src/app/erp/dashboard/component/parametros/state/reducers/color.reducer.ts
true
200
692
import { createReducer, on } from '@ngrx/store'; import { Color } from '../interface/color.interface'; import * as ColorActions from '../actions/color.actions'; import { DataStateColor } from '../../../app.state'; export interface ColorState { color: Color[]; error: string | null; loading: boolean; } expo...
2
TheGraveyardWarden/seentask
8e8d863
src/utils/parser.ts
TypeScript
www.github.com/TheGraveyardWarden/seentask/tree/main/src/utils/parser.ts
https://raw.githubusercontent.com/TheGraveyardWarden/seentask/8e8d863/src/utils/parser.ts
TheGraveyardWarden/seentask 8e8d863 src/utils/parser.ts
true
200
1,659
import { useThemeStore } from "../stores"; import { Color } from "../types"; import { GoalDifficulitiesType, GoalPrioType, GoalTaskStatusType, IGoalTaskTime } from "../types/goal"; export const is_task_finished = (status: GoalTaskStatusType): boolean => { return status === "finisheddelayed" || status === "finished...
0
amalgyte/geo-legends
956644d
src/app/ui/navigation-menu/navigation-menu.component.ts
TypeScript
www.github.com/amalgyte/geo-legends/tree/main/src/app/ui/navigation-menu/navigation-menu.component.ts
https://raw.githubusercontent.com/amalgyte/geo-legends/956644d/src/app/ui/navigation-menu/navigation-menu.component.ts
amalgyte/geo-legends 956644d src/app/ui/navigation-menu/navigation-menu.component.ts
true
200
548
import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; import { AuthService } from '../../core/services/auth.service'; import { Route, RouterModule } from '@angular/router'; @Component({ selector: 'app-navigation-menu', standalone: true, templateUrl: './navigation-menu.compone...
5
harsh863/recipe-book
a44886b
src/app/modules/dashboard/components/recipes/recipe-form/recipe-form.component.ts
TypeScript
www.github.com/harsh863/recipe-book/tree/main/src/app/modules/dashboard/components/recipes/recipe-form/recipe-form.component.ts
https://raw.githubusercontent.com/harsh863/recipe-book/a44886b/src/app/modules/dashboard/components/recipes/recipe-form/recipe-form.component.ts
harsh863/recipe-book a44886b src/app/modules/dashboard/components/recipes/recipe-form/recipe-form.component.ts
true
200
4,647
import {Component, OnInit} from '@angular/core'; import {FormArray, FormControl, FormGroup, Validators} from '@angular/forms'; import {Router} from '@angular/router'; import {FileUploadService} from '../../../services/file-upload.service'; import {RecipeManager} from '../../../managers/recipe.manager'; import {filter, ...
6
plutotom/edifice-console
a271239
src/services/notion/RaycastStuff/operations/get-users.ts
TypeScript
www.github.com/plutotom/edifice-console/tree/main/src/services/notion/RaycastStuff/operations/get-users.ts
https://raw.githubusercontent.com/plutotom/edifice-console/a271239/src/services/notion/RaycastStuff/operations/get-users.ts
plutotom/edifice-console a271239 src/services/notion/RaycastStuff/operations/get-users.ts
true
200
642
import { loadPreferences } from "@/services/storage"; import { User } from "@/types/user"; import { notion } from "../../client"; import { normalizeUser } from "../../utils/normalize-user"; export async function getUsers(): Promise<User[]> { const preferences = await loadPreferences(); if (!preferences.properties...
1
paragk05/Jest-Test
f58ae4e
Frontend/Jest-Test/src/app/auth/custom-renderer.service.ts
TypeScript
www.github.com/paragk05/Jest-Test/tree/main/Frontend/Jest-Test/src/app/auth/custom-renderer.service.ts
https://raw.githubusercontent.com/paragk05/Jest-Test/f58ae4e/Frontend/Jest-Test/src/app/auth/custom-renderer.service.ts
paragk05/Jest-Test f58ae4e Frontend/Jest-Test/src/app/auth/custom-renderer.service.ts
true
200
436
import { Injectable, Renderer2, RendererFactory2 } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class CustomRendererService { private renderer: Renderer2; constructor(rendererFactory: RendererFactory2) { this.renderer = rendererFactory.createRenderer(null, null); } public setElem...
7
ArthurMilhomens/mtgl-backend
14e2211
src/modules/users/controllers/List/ListUserDetailsController.ts
TypeScript
www.github.com/ArthurMilhomens/mtgl-backend/tree/main/src/modules/users/controllers/List/ListUserDetailsController.ts
https://raw.githubusercontent.com/ArthurMilhomens/mtgl-backend/14e2211/src/modules/users/controllers/List/ListUserDetailsController.ts
ArthurMilhomens/mtgl-backend 14e2211 src/modules/users/controllers/List/ListUserDetailsController.ts
true
200
665
import { Token } from "../../../../utils/jwt"; import { getUserDetails } from "../../repositories/List/ListUserDetails"; import { Request, Response } from "express"; const jwt = new Token(); export async function listUserDetails(req: Request, res: Response) { const accessToken = req.headers["authorization"]; cons...
3
LuisgMarin/tiendapopaco-front
3f42791
src/app/app.routes.ts
TypeScript
www.github.com/LuisgMarin/tiendapopaco-front/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/LuisgMarin/tiendapopaco-front/3f42791/src/app/app.routes.ts
LuisgMarin/tiendapopaco-front 3f42791 src/app/app.routes.ts
true
200
1,149
import { RouterModule, Routes } from "@angular/router"; import { HomeComponent } from './components/home/home.component'; import { LoginComponent } from "./components/login/login.component"; import { RegistrationComponent } from "./components/registration/registration.component"; import { ProductsComponent } from "./co...
2
gaborflamich/angular-routing
e10da7c
src/app/components/header/header.mock.ts
TypeScript
www.github.com/gaborflamich/angular-routing/tree/main/src/app/components/header/header.mock.ts
https://raw.githubusercontent.com/gaborflamich/angular-routing/e10da7c/src/app/components/header/header.mock.ts
gaborflamich/angular-routing e10da7c src/app/components/header/header.mock.ts
true
200
339
import { IHeader } from './header.definitions'; export const MockHeader: IHeader[] = [ { id: '1', title: 'Home', url: 'home', }, { id: '2', title: 'About', url: 'about', }, { id: '3', title: 'Services', url: 'services', }, { id: '4', title: 'Contact', url: ...
6
codeleague/codecoach
f429092
src/Parser/ScalaStyleParser.ts
TypeScript
www.github.com/codeleague/codecoach/tree/main/src/Parser/ScalaStyleParser.ts
https://raw.githubusercontent.com/codeleague/codecoach/f429092/src/Parser/ScalaStyleParser.ts
codeleague/codecoach f429092 src/Parser/ScalaStyleParser.ts
true
200
2,216
import { Log } from '../Logger'; import { getRelativePath } from './utils/path.util'; import { LintSeverity } from './@enums/LintSeverity'; import { Parser } from './@interfaces/parser.interface'; import { LintItem } from './@types'; import { xml2js } from 'xml-js'; import { ScalaStyleLog } from './@types/ScalaStyleLog...
5
lukinhas563/e-ficaz-api
f58ba2b
tests/tasks/Create.test.ts
TypeScript
www.github.com/lukinhas563/e-ficaz-api/tree/main/tests/tasks/Create.test.ts
https://raw.githubusercontent.com/lukinhas563/e-ficaz-api/f58ba2b/tests/tasks/Create.test.ts
lukinhas563/e-ficaz-api f58ba2b tests/tasks/Create.test.ts
true
200
5,303
import { testServer } from '../jest.setup'; describe('Tasks - Create', () => { let accessToken = ''; beforeAll(async () => { await testServer.post('/register').send({ user_name: 'testserver', first_name: 'Test', last_name: 'Server', cpf: '12345678911', ...
0
adamsome/lqr
aad4868
app/u/[username]/specs/@modal/[id]/change-user/action.ts
TypeScript
www.github.com/adamsome/lqr/tree/main/app/u/[username]/specs/@modal/[id]/change-user/action.ts
https://raw.githubusercontent.com/adamsome/lqr/aad4868/app/u/%5Busername%5D/specs/%40modal/%5Bid%5D/change-user/action.ts
adamsome/lqr aad4868 app/u/[username]/specs/@modal/[id]/change-user/action.ts
true
200
1,985
'use server' import { auth } from '@clerk/nextjs' import { z } from 'zod' import { isAdmin } from '@/app/lib/model/admin' import { getSpec, updateSpecUser } from '@/app/lib/model/spec' import { getUserByID } from '@/app/lib/model/user' import { toSpecs } from '@/app/lib/routes' import { SpecChangeUserSchema } from '@...
1
AlysonConsuli/tractian-api
caf239e
src/services/assetsService.ts
TypeScript
www.github.com/AlysonConsuli/tractian-api/tree/main/src/services/assetsService.ts
https://raw.githubusercontent.com/AlysonConsuli/tractian-api/caf239e/src/services/assetsService.ts
AlysonConsuli/tractian-api caf239e src/services/assetsService.ts
true
200
1,229
import { Units, Assets } from "@prisma/client"; import { AssetInsertData } from "../interfaces/createData.js"; import { appRepository } from "../repositories/appRepository.js"; import { assetsRepository } from "../repositories/assetsRepository.js"; import { __validateIdOrFail, __validateNameOrFail, } from "../utils...
4
HDAES/hades-admin
c860702
src/utils/watermark.ts
TypeScript
www.github.com/HDAES/hades-admin/tree/main/src/utils/watermark.ts
https://raw.githubusercontent.com/HDAES/hades-admin/c860702/src/utils/watermark.ts
HDAES/hades-admin c860702 src/utils/watermark.ts
true
200
1,744
/* * @Descripttion: 水印 * @Author: Hades * @Date: 2021-10-19 14:05:12 */ export interface WaterMark { set: Function out: Function } const watermark: WaterMark = { set: () => {}, out: () => {} } const setWatermark = (str: string) => { const id = '1.23452384164.123412415' const doc = document.getElement...
3
Anastasia1403/quizApp
c86271a
src/components/Header/styled.ts
TypeScript
www.github.com/Anastasia1403/quizApp/tree/main/src/components/Header/styled.ts
https://raw.githubusercontent.com/Anastasia1403/quizApp/c86271a/src/components/Header/styled.ts
Anastasia1403/quizApp c86271a src/components/Header/styled.ts
true
200
1,733
import { Link } from 'react-router-dom'; import styled from 'styled-components'; export const HeaderWrapper = styled.header` display: flex; justify-content: space-between; width: 100%; height: 80px; background-color: ${({ theme }) => theme.colors.yellow}; padding: 12px 20px; svg { w...
2
mezhanglei/create-react-pc
03c2cd0
src/store/models/user.ts
TypeScript
www.github.com/mezhanglei/create-react-pc/tree/main/src/store/models/user.ts
https://raw.githubusercontent.com/mezhanglei/create-react-pc/03c2cd0/src/store/models/user.ts
mezhanglei/create-react-pc 03c2cd0 src/store/models/user.ts
true
200
825
import { StateCreator } from 'zustand'; import { Store } from "../createStore"; import { UserInfo } from '@/services/account/interface'; import { getUserInfo } from '@/services/account'; // import withNameSpace from '../withNamespace'; export interface UserStore { userInfo: UserInfo | null; resetUser: () => void; ...
7
rlarudgh/form-zod
3fd53e6
src/shared/libs/zod/validation.ts
TypeScript
www.github.com/rlarudgh/form-zod/tree/main/src/shared/libs/zod/validation.ts
https://raw.githubusercontent.com/rlarudgh/form-zod/3fd53e6/src/shared/libs/zod/validation.ts
rlarudgh/form-zod 3fd53e6 src/shared/libs/zod/validation.ts
true
200
1,111
import { z } from "zod"; export const registerSchema = z .object({ email: z .string() .nonempty("이메일을 입력해주세요.") .email("이메일 형식을 입력해주세요."), userId: z .string() .nonempty("아이디를 입력해주세요.") .regex( /^[a-z0-9]{4,30}$/, "영문 소문자 또는 영문+숫자 조합 4~30자리를 입력해주세요." )...
6
bandhanRoy/nest-js-pg-typeorm
ce78f7e
src/handlers/global_exception.handler.ts
TypeScript
www.github.com/bandhanRoy/nest-js-pg-typeorm/tree/main/src/handlers/global_exception.handler.ts
https://raw.githubusercontent.com/bandhanRoy/nest-js-pg-typeorm/ce78f7e/src/handlers/global_exception.handler.ts
bandhanRoy/nest-js-pg-typeorm ce78f7e src/handlers/global_exception.handler.ts
true
200
2,109
import { ArgumentsHost, Catch, ExceptionFilter, HttpException, HttpStatus, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { HttpAdapterHost } from '@nestjs/core'; import { ErrorResponseType } from '../@types'; import { logger } from '../config/logger'; @Catch() export class G...
5