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
Cezari0o/notemakerApp
e20f6fe
backend/src/notes/routes/index.ts
TypeScript
www.github.com/Cezari0o/notemakerApp/tree/main/backend/src/notes/routes/index.ts
https://raw.githubusercontent.com/Cezari0o/notemakerApp/e20f6fe/backend/src/notes/routes/index.ts
Cezari0o/notemakerApp e20f6fe backend/src/notes/routes/index.ts
true
200
1,809
import { Router } from 'express'; import { createNote, deleteNote, getNote, getNotesFromUser, updateNote } from '../controller'; import HttpStatus from 'http-status-codes'; const routes = Router(); routes.post('/', (req, res) => { createNote(req, (error: any, data: any) => { if(error) { res.status(HttpS...
2
rngqd/middle.messenger.praktikum.yandex
abd99b6
src/components/chat/chat.ts
TypeScript
www.github.com/rngqd/middle.messenger.praktikum.yandex/tree/main/src/components/chat/chat.ts
https://raw.githubusercontent.com/rngqd/middle.messenger.praktikum.yandex/abd99b6/src/components/chat/chat.ts
rngqd/middle.messenger.praktikum.yandex abd99b6 src/components/chat/chat.ts
true
200
2,438
import Block from "../../core/Block"; import avatarImg from "../../../static/img/avatar.jpeg"; import store, {withStore} from "../../store"; import ChatController from "../../api/chats/controller"; import MessageSocket from "../../api/message"; import {ChatData} from "../../models"; import "./chat.sass"; import {RESOU...
0
dmartin5150/authconnect
4078abb
src/store/AssignTasks/AssignTasks.reducer.ts
TypeScript
www.github.com/dmartin5150/authconnect/tree/main/src/store/AssignTasks/AssignTasks.reducer.ts
https://raw.githubusercontent.com/dmartin5150/authconnect/4078abb/src/store/AssignTasks/AssignTasks.reducer.ts
dmartin5150/authconnect 4078abb src/store/AssignTasks/AssignTasks.reducer.ts
true
200
1,187
import { Group} from "../OrderTasks/orderTasks.types"; import { AuthStatusInfo } from "./AssignTasks.types"; import { AnyAction } from "redux"; import { GROUPS } from "../../Data/groupData"; import { setGroup, setAuthStatusInfo, setUnassigned } from "./actions/AssignTasks.actions"; export type AssignTaskState = { ...
6
maxime7513/woozooAngularPublic
bddb41a
src/app/modules/confidentialite/confidentialite-routing.module.ts
TypeScript
www.github.com/maxime7513/woozooAngularPublic/tree/main/src/app/modules/confidentialite/confidentialite-routing.module.ts
https://raw.githubusercontent.com/maxime7513/woozooAngularPublic/bddb41a/src/app/modules/confidentialite/confidentialite-routing.module.ts
maxime7513/woozooAngularPublic bddb41a src/app/modules/confidentialite/confidentialite-routing.module.ts
true
200
415
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ConfidentialiteComponent } from 'src/app/confidentialite/confidentialite.component'; const routes: Routes = [ { path: '', component: ConfidentialiteComponent } ]; @NgModule({ imports: [RouterModule...
3
JamieLee0510/my-mini-vue
1162189
src/compiler/ast.ts
TypeScript
www.github.com/JamieLee0510/my-mini-vue/tree/main/src/compiler/ast.ts
https://raw.githubusercontent.com/JamieLee0510/my-mini-vue/1162189/src/compiler/ast.ts
JamieLee0510/my-mini-vue 1162189 src/compiler/ast.ts
true
200
553
import { RootNode } from './type' export enum NodeTypes { ROOT, // 根節點 ELEMENT, // 元素節點,有原生HTML和vue component之分(ElementTypes) TEXT, // 純文本節點 SIMPLE_EXPRESSION, // js表達式 INTERPOLATION, // 插值節點,like:{count} ATTRIBUTE, // 屬性 key-value DIRECTIVE, // 指令節點,like v-if NULL, } export enum Eleme...
0
vanhieu154/Admin-gap
5d61cd2
src/app/admin-product/admin-product.component.ts
TypeScript
www.github.com/vanhieu154/Admin-gap/tree/main/src/app/admin-product/admin-product.component.ts
https://raw.githubusercontent.com/vanhieu154/Admin-gap/5d61cd2/src/app/admin-product/admin-product.component.ts
vanhieu154/Admin-gap 5d61cd2 src/app/admin-product/admin-product.component.ts
true
200
4,414
import { Component } from '@angular/core'; import {FormControl, FormGroup, FormGroupDirective, NgForm, Validators} from '@angular/forms'; import { Product } from './product'; import { ProductApiService } from './product-api.service'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/...
2
GabrielaSHReppold/Banco-de-Dados-2
8792b1d
src/middlewares/like/create-middleware.ts
TypeScript
www.github.com/GabrielaSHReppold/Banco-de-Dados-2/tree/main/src/middlewares/like/create-middleware.ts
https://raw.githubusercontent.com/GabrielaSHReppold/Banco-de-Dados-2/8792b1d/src/middlewares/like/create-middleware.ts
GabrielaSHReppold/Banco-de-Dados-2 8792b1d src/middlewares/like/create-middleware.ts
true
200
1,856
import { Request, Response, NextFunction } from "express"; import { validate as isUuid } from "uuid"; // Certifique-se de ter instalado 'uuid' e '@types/uuid' export class CreateLikeMiddleware { // Validação dos campos obrigatórios public static validateRequired( req: Request, res: Response, next: Ne...
3
infospace-codeverse/ANHF
8d2527d
anhf-portal/src/app/auth/auth.guard.ts
TypeScript
www.github.com/infospace-codeverse/ANHF/tree/main/anhf-portal/src/app/auth/auth.guard.ts
https://raw.githubusercontent.com/infospace-codeverse/ANHF/8d2527d/anhf-portal/src/app/auth/auth.guard.ts
infospace-codeverse/ANHF 8d2527d anhf-portal/src/app/auth/auth.guard.ts
true
200
1,228
import { Injectable, inject } from '@angular/core'; import { CanActivate, Router, CanActivateChild } from '@angular/router'; import { AuthService } from './auth.service'; import { map, Observable, take, catchError, of } from 'rxjs'; @Injectable({ providedIn: 'root', }) export class AuthGuard implements CanActivate, ...
6
eTutor-plus-plus/task-administration-ui
3836cec
src/app/admin/system-health/system-health-flyway/system-health-flyway.component.spec.ts
TypeScript
www.github.com/eTutor-plus-plus/task-administration-ui/tree/main/src/app/admin/system-health/system-health-flyway/system-health-flyway.component.spec.ts
https://raw.githubusercontent.com/eTutor-plus-plus/task-administration-ui/3836cec/src/app/admin/system-health/system-health-flyway/system-health-flyway.component.spec.ts
eTutor-plus-plus/task-administration-ui 3836cec src/app/admin/system-health/system-health-flyway/system-health-flyway.component.spec.ts
true
200
1,143
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { provideHttpClient } from '@angular/common/http'; import { provideTransloco } from '@ngneat/transloco'; import { MessageService } from 'primeng/api'; import { SystemHealthFlywayComponent } from './system-health-flyway.component'; import { trans...
0
Adalbert047/WebSite
6c10ccb
Curso Angular/DesarrolloWeb2/Parcial 1/angular17-basic3-adalberto/src/app/pages/home/home.component.ts
TypeScript
www.github.com/Adalbert047/WebSite/tree/main/Curso Angular/DesarrolloWeb2/Parcial 1/angular17-basic3-adalberto/src/app/pages/home/home.component.ts
https://raw.githubusercontent.com/Adalbert047/WebSite/6c10ccb/Curso%20Angular/DesarrolloWeb2/Parcial%201/angular17-basic3-adalberto/src/app/pages/home/home.component.ts
Adalbert047/WebSite 6c10ccb Curso Angular/DesarrolloWeb2/Parcial 1/angular17-basic3-adalberto/src/app/pages/home/home.component.ts
true
200
603
import { Component, inject } from '@angular/core'; import { CardComponent } from '../../components/card/card.component'; import { GamingService } from '../../services/gaming.service'; import { Igame } from '../../interfaces/igame'; @Component({ selector: 'app-home', standalone: true, imports: [CardComponent],...
3
LuccaMariani/Mariani.Luca.PPLAB4
0338780
app/services/producto.service.ts
TypeScript
www.github.com/LuccaMariani/Mariani.Luca.PPLAB4/tree/main/app/services/producto.service.ts
https://raw.githubusercontent.com/LuccaMariani/Mariani.Luca.PPLAB4/0338780/app/services/producto.service.ts
LuccaMariani/Mariani.Luca.PPLAB4 0338780 app/services/producto.service.ts
true
200
1,059
import { Injectable } from '@angular/core'; import { AngularFirestore } from '@angular/fire/compat/firestore'; import { Producto } from '../clases/producto'; @Injectable({ providedIn: 'root' }) export class ProductoService { ruta = 'productos'; constructor(private firestore: AngularFirestore) { } getProd...
2
thelord07/lite-thinking
ca71ee5
middleware.ts
TypeScript
www.github.com/thelord07/lite-thinking/tree/main/middleware.ts
https://raw.githubusercontent.com/thelord07/lite-thinking/ca71ee5/middleware.ts
thelord07/lite-thinking ca71ee5 middleware.ts
true
200
665
import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; import { getToken } from 'next-auth/jwt'; export async function middleware(req: NextRequest) { const session = await getToken({ req, secret: process.env.NEXTAUTH_SECRET }); if (!session) { const requestedPage = re...
6
mrbalotta/simplequiz
f9ff2d0
src/modules/play/core/interactors/PlaySessionRepository.ts
TypeScript
www.github.com/mrbalotta/simplequiz/tree/main/src/modules/play/core/interactors/PlaySessionRepository.ts
https://raw.githubusercontent.com/mrbalotta/simplequiz/f9ff2d0/src/modules/play/core/interactors/PlaySessionRepository.ts
mrbalotta/simplequiz f9ff2d0 src/modules/play/core/interactors/PlaySessionRepository.ts
true
200
415
import { PowerUps } from "@quiz/play/core/data/Powerups"; import { Awards } from "@quiz/play/core/data/Awards"; export interface PlaySessionRepository { getPowerUps(): Promise<PowerUps> getAwards(): Promise<Awards> decrementSkipCount(): Promise<PowerUps> decrementHintCount(): Promise<PowerUps> upda...
0
karryngo/karryngo-frontend
ffbfe8a
src/app/shared/service/back-office/chat.service.ts
TypeScript
www.github.com/karryngo/karryngo-frontend/tree/main/src/app/shared/service/back-office/chat.service.ts
https://raw.githubusercontent.com/karryngo/karryngo-frontend/ffbfe8a/src/app/shared/service/back-office/chat.service.ts
karryngo/karryngo-frontend ffbfe8a src/app/shared/service/back-office/chat.service.ts
true
200
8,249
import { Injectable } from '@angular/core'; import { BehaviorSubject, from, Observable, Subject } from 'rxjs'; import { filter, map, switchMap } from 'rxjs/operators'; import { Discussion, Message } from '../../entity/chat'; import { ApiService } from '../api/api.service'; import { EventService } from '../event/event.s...
2
asalas79/ventas
fb923c1
src/app/components/empresafunc/nueva/nueva.component.ts
TypeScript
www.github.com/asalas79/ventas/tree/main/src/app/components/empresafunc/nueva/nueva.component.ts
https://raw.githubusercontent.com/asalas79/ventas/fb923c1/src/app/components/empresafunc/nueva/nueva.component.ts
asalas79/ventas fb923c1 src/app/components/empresafunc/nueva/nueva.component.ts
true
200
1,372
import { Component, OnInit } from '@angular/core'; import { ModalController } from '@ionic/angular'; import { NgForm } from '@angular/forms'; import { UiService } from '../../../services/ui.service'; import { EmpresasService } from '../../../services/empresas.service'; @Component({ selector: 'app-nueva', templat...
3
bbaghub/bootcamp-2023-yota
fa7a496
projects/token-based-voting/test/Voting.ts
TypeScript
www.github.com/bbaghub/bootcamp-2023-yota/tree/main/projects/token-based-voting/test/Voting.ts
https://raw.githubusercontent.com/bbaghub/bootcamp-2023-yota/fa7a496/projects/token-based-voting/test/Voting.ts
bbaghub/bootcamp-2023-yota fa7a496 projects/token-based-voting/test/Voting.ts
true
200
2,295
import { time, loadFixture, } from "@nomicfoundation/hardhat-toolbox/network-helpers"; import { anyValue } from "@nomicfoundation/hardhat-chai-matchers/withArgs"; import { expect } from "chai"; import { ethers } from "hardhat"; import { ContractTransactionResponse } from "ethers"; // Initialize variables let Token...
6
dmarmijosa/la-bella-italia
89fd895
src/app/services/tapas.service.ts
TypeScript
www.github.com/dmarmijosa/la-bella-italia/tree/main/src/app/services/tapas.service.ts
https://raw.githubusercontent.com/dmarmijosa/la-bella-italia/89fd895/src/app/services/tapas.service.ts
dmarmijosa/la-bella-italia 89fd895 src/app/services/tapas.service.ts
true
200
277
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class TapasService { constructor(private http:HttpClient) { } getTapas(){ return this.http.get('./assets/db/tapas.json'); } }
0
sandboxnu/prof-event-tracker-backend
b4b931a
src/auth/jwt/jwt-auth.strategy.ts
TypeScript
www.github.com/sandboxnu/prof-event-tracker-backend/tree/main/src/auth/jwt/jwt-auth.strategy.ts
https://raw.githubusercontent.com/sandboxnu/prof-event-tracker-backend/b4b931a/src/auth/jwt/jwt-auth.strategy.ts
sandboxnu/prof-event-tracker-backend b4b931a src/auth/jwt/jwt-auth.strategy.ts
true
200
1,092
import { Strategy } from 'passport-jwt'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Request } from 'express'; import { PrismaService } from 'src/prisma/prisma.service'; import { JwtPayl...
3
tadeasf/pup-testing-suite-zizcon-v2
29556bc
src/flows/pravidla-ucasti.ts
TypeScript
www.github.com/tadeasf/pup-testing-suite-zizcon-v2/tree/main/src/flows/pravidla-ucasti.ts
https://raw.githubusercontent.com/tadeasf/pup-testing-suite-zizcon-v2/29556bc/src/flows/pravidla-ucasti.ts
tadeasf/pup-testing-suite-zizcon-v2 29556bc src/flows/pravidla-ucasti.ts
true
200
1,813
import { Page } from 'puppeteer'; import { FlowConfig, FlowResult, FlowStep } from './types'; import { executeFlowStep } from './utils'; import { BaseFlow } from './base'; export class PravidlaFlow extends BaseFlow { name = 'pravidla'; getSteps(): FlowStep[] { return [ { selector: '[href="/prav...
6
xandegrawe/LeGraTech
ff9f6bd
front-end/src/types/personData.ts
TypeScript
www.github.com/xandegrawe/LeGraTech/tree/main/front-end/src/types/personData.ts
https://raw.githubusercontent.com/xandegrawe/LeGraTech/ff9f6bd/front-end/src/types/personData.ts
xandegrawe/LeGraTech ff9f6bd front-end/src/types/personData.ts
true
200
473
export type PersonData = { id: number; name: string; last_name?: string; email?: string; city?: string; state?: string; neighborhood?: string; street?: string; number?: string; observation?: string; cep?: string; phone?: string; cnpj?: string; cpf?: string; rg?: string; }; export type Peo...
5
monster-anshu/redux-contact-managment
781db1e
src/redux/store.ts
TypeScript
www.github.com/monster-anshu/redux-contact-managment/tree/main/src/redux/store.ts
https://raw.githubusercontent.com/monster-anshu/redux-contact-managment/781db1e/src/redux/store.ts
monster-anshu/redux-contact-managment 781db1e src/redux/store.ts
true
200
395
import { configureStore } from "@reduxjs/toolkit"; import contactSlice from "./contact.slice"; import sidebarSlice from "./sidebar.slice"; const store = configureStore({ reducer: { contact: contactSlice.reducer, sidebar: sidebarSlice.reducer, }, }); export type RootState = ReturnType<typeof store.getState...
2
max-d3v/webservices_v2
37ab3fa
src/Models/BusinessPartner.ts
TypeScript
www.github.com/max-d3v/webservices_v2/tree/main/src/Models/BusinessPartner.ts
https://raw.githubusercontent.com/max-d3v/webservices_v2/37ab3fa/src/Models/BusinessPartner.ts
max-d3v/webservices_v2 37ab3fa src/Models/BusinessPartner.ts
true
200
23,921
export interface BusinessPartner { 'odata.metadata': string; 'odata.etag': string; CardCode: string; CardName: string; CardType: string; GroupCode: number; Address: string; ZipCode: string; MailAddress: string; MailZipCode: string; Phone1: string | null; Phone2: string | ...
7
diegomarcelino92/node-nestjs-hexagonal
ace2f9e
src/user/services/user.service.ts
TypeScript
www.github.com/diegomarcelino92/node-nestjs-hexagonal/tree/main/src/user/services/user.service.ts
https://raw.githubusercontent.com/diegomarcelino92/node-nestjs-hexagonal/ace2f9e/src/user/services/user.service.ts
diegomarcelino92/node-nestjs-hexagonal ace2f9e src/user/services/user.service.ts
true
200
598
import { Inject, Injectable } from '@nestjs/common' import { IUserRepository, USER_REPOSITORY } from '../repositories' import { UserEntity } from '../entities/user.entity' import { IUserCreateDTO, IUserService } from './user.service.interfaces' @Injectable() export class UserService implements IUserService { const...
1
devinjelliot/dverse-agent
4f9497a
src/pages/api/matches.ts
TypeScript
www.github.com/devinjelliot/dverse-agent/tree/main/src/pages/api/matches.ts
https://raw.githubusercontent.com/devinjelliot/dverse-agent/4f9497a/src/pages/api/matches.ts
devinjelliot/dverse-agent 4f9497a src/pages/api/matches.ts
true
200
1,119
// This is an API route that returns the top K matches from the Pinecone index // It is called by the client-side chatbot component // It uses the Pinecone library to query the index // src/pages/api/matches.ts import { PineconeClient, ScoredVector } from "@pinecone-database/pinecone"; export type Metadata = { url: ...
0
jaytarsariya/Child-Quiz-and-Book-appointment
9283d24
src/api/service/QuizService.ts
TypeScript
www.github.com/jaytarsariya/Child-Quiz-and-Book-appointment/tree/main/src/api/service/QuizService.ts
https://raw.githubusercontent.com/jaytarsariya/Child-Quiz-and-Book-appointment/9283d24/src/api/service/QuizService.ts
jaytarsariya/Child-Quiz-and-Book-appointment 9283d24 src/api/service/QuizService.ts
true
200
2,452
import { MyDTO, multipleDTO } from '../../dto/childDto'; import { Judging } from '../../models/judging'; import { myQuestion } from '../../models/newQuiz'; export class myService { async CreateQuestion(data: MyDTO[]): Promise<any> { const newCreate = await myQuestion.bulkCreate( data.map((questionData: MyD...
4
gagan-soni-1/SalesTool
42e1858
src/app/modules/org-admin/org-admin.module.ts
TypeScript
www.github.com/gagan-soni-1/SalesTool/tree/main/src/app/modules/org-admin/org-admin.module.ts
https://raw.githubusercontent.com/gagan-soni-1/SalesTool/42e1858/src/app/modules/org-admin/org-admin.module.ts
gagan-soni-1/SalesTool 42e1858 src/app/modules/org-admin/org-admin.module.ts
true
200
806
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DashboardComponent } from './dashboard/dashboard.component'; import { RouterModule } from '@angular/router'; import { orgAdminRoutes } from './org-admin.routes'; import { SharedModule } from '../../shared/modules/shared.m...
5
dilkern/proect
aada6f5
server/src/products/products.service.ts
TypeScript
www.github.com/dilkern/proect/tree/main/server/src/products/products.service.ts
https://raw.githubusercontent.com/dilkern/proect/aada6f5/server/src/products/products.service.ts
dilkern/proect aada6f5 server/src/products/products.service.ts
true
200
1,266
import { Injectable, NotFoundException } from '@nestjs/common'; import { PrismaService } from '@prisma/prisma.service'; import { Product } from '@prisma/client'; @Injectable() export class ProductService { constructor(private readonly prisma: PrismaService) {} async createProduct(data: Omit<Product, 'id' | 'i...
6
kamil-j/Geo-Time
0faf559
src/main/webapp/app/management/user-management/user-management.route.ts
TypeScript
www.github.com/kamil-j/Geo-Time/tree/main/src/main/webapp/app/management/user-management/user-management.route.ts
https://raw.githubusercontent.com/kamil-j/Geo-Time/0faf559/src/main/webapp/app/management/user-management/user-management.route.ts
kamil-j/Geo-Time 0faf559 src/main/webapp/app/management/user-management/user-management.route.ts
true
200
2,915
import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Routes } from '@angular/router'; import { JhiPaginationUtil } from 'ng-jhipster'; import { UserMgmtComponent } from './user-management.component'; import { UserMgmtDetailComponent } from './user-management-detai...
2
yasminebmzgh/projet_boumazzough_yasmine
832e776
FRONTEND/src/app/services/base.service.ts
TypeScript
www.github.com/yasminebmzgh/projet_boumazzough_yasmine/tree/main/FRONTEND/src/app/services/base.service.ts
https://raw.githubusercontent.com/yasminebmzgh/projet_boumazzough_yasmine/832e776/FRONTEND/src/app/services/base.service.ts
yasminebmzgh/projet_boumazzough_yasmine 832e776 FRONTEND/src/app/services/base.service.ts
true
200
375
import { Injectable } from '@angular/core'; import { environment } from 'src/environments/environment'; import { HttpHeaders } from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class BaseService { apiUrl: string = environment.apiUrl; httpOptions = { headers: new HttpHeaders({ 'Content-T...
7
eliasrosa/tcc
9be0764
cypress/e2e/tickers.spec.cy.ts
TypeScript
www.github.com/eliasrosa/tcc/tree/main/cypress/e2e/tickers.spec.cy.ts
https://raw.githubusercontent.com/eliasrosa/tcc/9be0764/cypress/e2e/tickers.spec.cy.ts
eliasrosa/tcc 9be0764 cypress/e2e/tickers.spec.cy.ts
true
200
2,659
describe('tickers', () => { it('add tickers to portfolio', () => { cy.visit('/') cy.acceptTermsOfUse() cy.addTicker('XPLG11') }) it('remove tickers from portfolio', () => { cy.visit('/') cy.acceptTermsOfUse() cy.addTicker('XPLG11') cy.get('[data-testid="btn-remove-ticker-XPLG11"]') ...
1
ShubhamBhaingade/FSD
d009dfd
src/app/landing-page/landing-page.component.ts
TypeScript
www.github.com/ShubhamBhaingade/FSD/tree/main/src/app/landing-page/landing-page.component.ts
https://raw.githubusercontent.com/ShubhamBhaingade/FSD/d009dfd/src/app/landing-page/landing-page.component.ts
ShubhamBhaingade/FSD d009dfd src/app/landing-page/landing-page.component.ts
true
200
445
import { Component } from '@angular/core'; import { Router } from '@angular/router'; @Component({ selector: 'app-landing-page', templateUrl: './landing-page.component.html', styleUrl: './landing-page.component.css' }) export class LandingPageComponent { constructor(private router:Router){ } goToAuthent...
3
dante-1879/DigiKrishi
0d7fe2c
backend/src/route/resourse.route.ts
TypeScript
www.github.com/dante-1879/DigiKrishi/tree/main/backend/src/route/resourse.route.ts
https://raw.githubusercontent.com/dante-1879/DigiKrishi/0d7fe2c/backend/src/route/resourse.route.ts
dante-1879/DigiKrishi 0d7fe2c backend/src/route/resourse.route.ts
true
200
2,287
import { Router } from "express"; import { ResourceController } from "../controller/resource/resource.controller"; import { expertGuard, loginGuard } from "../middleware/login.middleware"; import { ResourceAdminController } from "../controller/resource/resource.admin.controller"; import { upload } from "../utils/multer...
4
stutrek/react-multi-page-form
25776ef
docs/src/app/demos/petrock/sequence.ts
TypeScript
www.github.com/stutrek/react-multi-page-form/tree/main/docs/src/app/demos/petrock/sequence.ts
https://raw.githubusercontent.com/stutrek/react-multi-page-form/25776ef/docs/src/app/demos/petrock/sequence.ts
stutrek/react-multi-page-form 25776ef docs/src/app/demos/petrock/sequence.ts
true
200
4,021
import type { FieldErrors } from 'react-hook-form'; import { OwnerForm } from './components/OwnerForm'; import { CoOwnershipForm } from './components/CoOwnershipForm'; import { RockIdentificationForm } from './components/RockIdentificationForm'; import { RockColorForm } from './components/RockColorForm'; import { RockS...
6
tylerpanpan/chat-assistant
fd4df36
apps/openai-api/src/app/app.controller.ts
TypeScript
www.github.com/tylerpanpan/chat-assistant/tree/main/apps/openai-api/src/app/app.controller.ts
https://raw.githubusercontent.com/tylerpanpan/chat-assistant/fd4df36/apps/openai-api/src/app/app.controller.ts
tylerpanpan/chat-assistant fd4df36 apps/openai-api/src/app/app.controller.ts
true
200
3,023
import { Body, Controller, Get, HttpException, Post, Query, Req, UseGuards } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { AuthGuard } from '@nestjs/passport'; import { Throttle } from '@nestjs/throttler'; import { AppService } from './app.service'; import { AuthService } from './auth...
5
AfterClass-io/afterclass.io-v2
fbfc086
src/common/components/StatItem/StatItem.theme.ts
TypeScript
www.github.com/AfterClass-io/afterclass.io-v2/tree/main/src/common/components/StatItem/StatItem.theme.ts
https://raw.githubusercontent.com/AfterClass-io/afterclass.io-v2/fbfc086/src/common/components/StatItem/StatItem.theme.ts
AfterClass-io/afterclass.io-v2 fbfc086 src/common/components/StatItem/StatItem.theme.ts
true
200
961
import { type VariantProps, tv } from "tailwind-variants"; export type StatItemVariants = VariantProps<typeof statItemTheme>; export const statItemTheme = tv( { slots: { wrapper: [ "inline-flex", "flex-col", "items-start", "gap-2", "rounded-none", ], lab...
2
kato114/wbit_bridge
f9871b1
contract/scripts/deployVBridgeERC20.ts
TypeScript
www.github.com/kato114/wbit_bridge/tree/main/contract/scripts/deployVBridgeERC20.ts
https://raw.githubusercontent.com/kato114/wbit_bridge/f9871b1/contract/scripts/deployVBridgeERC20.ts
kato114/wbit_bridge f9871b1 contract/scripts/deployVBridgeERC20.ts
true
200
779
import { ethers } from "hardhat"; async function main() { const tokenName = "VBridge WVBIT"; const tokenSymbol = "VB_WVBIT"; const decimal = 18; const orgToken = "0x9Bf843B1BA38edd1D737D0728f1B999E984Fa3fc"; const chainRouter = "0xEADD49d4e29df99dB37B10C4005F3EEEa515D182"; const VBridgeERC20 = await ethe...
1
katherineti/jojanNest.js
476511f
src/auth/auth.service.ts
TypeScript
www.github.com/katherineti/jojanNest.js/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/katherineti/jojanNest.js/476511f/src/auth/auth.service.ts
katherineti/jojanNest.js 476511f src/auth/auth.service.ts
true
200
1,148
import { Inject, Injectable, UnauthorizedException} from '@nestjs/common'; import { NeonDatabase } from 'drizzle-orm/neon-serverless'; import { PG_CONNECTION } from 'src/db_conection/constants'; import { UsersService } from 'src/users/users.service'; import * as argon2 from "argon2" import { JwtService } from '@nestjs...
0
vladgthb/prm
074b15f
src/v1/services/personnel.service.ts
TypeScript
www.github.com/vladgthb/prm/tree/main/src/v1/services/personnel.service.ts
https://raw.githubusercontent.com/vladgthb/prm/074b15f/src/v1/services/personnel.service.ts
vladgthb/prm 074b15f src/v1/services/personnel.service.ts
true
200
2,707
import { Injectable } from '@nestjs/common'; import { PersonnelEnum } from 'src/v1/enums/personnel.enum'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Personnel } from 'src/v1/entities/personnel.entity'; @Injectable() export class PersonnelService { constructor( ...
3
GiacomoGhi/tsi-progetto-web-jf
a5c1289
back-end/src/common/lib/utils/http-requests-utils.ts
TypeScript
www.github.com/GiacomoGhi/tsi-progetto-web-jf/tree/main/back-end/src/common/lib/utils/http-requests-utils.ts
https://raw.githubusercontent.com/GiacomoGhi/tsi-progetto-web-jf/a5c1289/back-end/src/common/lib/utils/http-requests-utils.ts
GiacomoGhi/tsi-progetto-web-jf a5c1289 back-end/src/common/lib/utils/http-requests-utils.ts
true
200
2,371
/* eslint-disable @typescript-eslint/no-explicit-any */ import { HttpService } from '@nestjs/axios'; import { BadGatewayException, ConflictException, ForbiddenException, InternalServerErrorException, Logger, NotFoundException, ServiceUnavailableException, UnauthorizedException, } from '@nestjs/common'; ...
4
gouravsasson/WidgetAivideo2
0a23486
vite.config.ts
TypeScript
www.github.com/gouravsasson/WidgetAivideo2/tree/main/vite.config.ts
https://raw.githubusercontent.com/gouravsasson/WidgetAivideo2/0a23486/vite.config.ts
gouravsasson/WidgetAivideo2 0a23486 vite.config.ts
true
200
613
import react from "@vitejs/plugin-react-swc"; import path from "path"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [react()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, build: { lib: { entry: path.resolve(__dirname, 'src/widget.tsx')...
7
Rehab227/E-commerce
fcca456
src/app/shared/components/forgot-password/forgot-password.component.ts
TypeScript
www.github.com/Rehab227/E-commerce/tree/main/src/app/shared/components/forgot-password/forgot-password.component.ts
https://raw.githubusercontent.com/Rehab227/E-commerce/fcca456/src/app/shared/components/forgot-password/forgot-password.component.ts
Rehab227/E-commerce fcca456 src/app/shared/components/forgot-password/forgot-password.component.ts
true
200
2,139
import { Component, inject, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms'; import { AuthService } from '../../../core/services/auth/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-forgot-password', import...
6
RocketChat/Apps.Github22
a818901
github/modals/mergePullReqeustModal.ts
TypeScript
www.github.com/RocketChat/Apps.Github22/tree/main/github/modals/mergePullReqeustModal.ts
https://raw.githubusercontent.com/RocketChat/Apps.Github22/a818901/github/modals/mergePullReqeustModal.ts
RocketChat/Apps.Github22 a818901 github/modals/mergePullReqeustModal.ts
true
200
6,509
import { IHttp, IModify, IPersistence, IRead, } from "@rocket.chat/apps-engine/definition/accessors"; import { TextObjectType } from "@rocket.chat/apps-engine/definition/uikit/blocks"; import { IUIKitModalViewParam } from "@rocket.chat/apps-engine/definition/uikit/UIKitInteractionResponder"; import { Mo...
5
Team1409/Team1409.github.io
49321d6
types.ts
TypeScript
www.github.com/Team1409/Team1409.github.io/tree/main/types.ts
https://raw.githubusercontent.com/Team1409/Team1409.github.io/49321d6/types.ts
Team1409/Team1409.github.io 49321d6 types.ts
true
200
339
export type BaseItem = { id?: number; }; export type CRUDService<TItem extends BaseItem> = { getAll: () => { data: Ref<TItem[] | undefined> }; // get: (arg: number) => Promise<TItem>; add: (arg: TItem) => Promise<number>; update: (arg: { id: number; data: TItem }) => Promise<void>; remove: (arg: number) =>...
2
maewood-ch/ch-frontend
1fdd7c2
src/app.ts
TypeScript
www.github.com/maewood-ch/ch-frontend/tree/main/src/app.ts
https://raw.githubusercontent.com/maewood-ch/ch-frontend/1fdd7c2/src/app.ts
maewood-ch/ch-frontend 1fdd7c2 src/app.ts
true
200
3,504
import express from 'express'; import path from 'path'; import nunjucks from 'nunjucks'; import * as process from "node:process"; import { getCompanies, setupCompany } from './lib/requests'; import type { Company } from './model/types'; const app = express(); const port = Number.parseInt(process.env.PORT || "3000"); ...
1
ipfs-force-community/autonomous-copilot
8a41628
src/services/store.ts
TypeScript
www.github.com/ipfs-force-community/autonomous-copilot/tree/main/src/services/store.ts
https://raw.githubusercontent.com/ipfs-force-community/autonomous-copilot/8a41628/src/services/store.ts
ipfs-force-community/autonomous-copilot 8a41628 src/services/store.ts
true
200
11,571
import { Low } from 'lowdb'; import { JSONFile } from 'lowdb/node'; import { Store, Cache, Note, NoteMeta, NoteMetaWithCid, UserId } from '../types/index'; import { AutoDriveService } from './auto_drive'; import { ChromaService } from './chroma'; import path from 'path'; import fs from 'fs'; import { EmbeddingService }...
0
MauricioFirmo/voucher
7a7d59f
Voucher.UI/src/app/services/accomodation-vacancy.service.ts
TypeScript
www.github.com/MauricioFirmo/voucher/tree/main/Voucher.UI/src/app/services/accomodation-vacancy.service.ts
https://raw.githubusercontent.com/MauricioFirmo/voucher/7a7d59f/Voucher.UI/src/app/services/accomodation-vacancy.service.ts
MauricioFirmo/voucher 7a7d59f Voucher.UI/src/app/services/accomodation-vacancy.service.ts
true
200
2,140
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from 'src/environments/environment'; import { AccommodationVacancy } from '../shared/model/accommodation-vacancy.model'; @Injectable({ providedIn: 'root' }) export ...
3
Sairam-Gontena/angular.xnode.web
3076888
src/app/components/form-builder/text-box/text-box.component.ts
TypeScript
www.github.com/Sairam-Gontena/angular.xnode.web/tree/main/src/app/components/form-builder/text-box/text-box.component.ts
https://raw.githubusercontent.com/Sairam-Gontena/angular.xnode.web/3076888/src/app/components/form-builder/text-box/text-box.component.ts
Sairam-Gontena/angular.xnode.web 3076888 src/app/components/form-builder/text-box/text-box.component.ts
true
200
306
import { Component, Input } from '@angular/core'; import { FormComponent } from '../form-component'; @Component({ selector: 'xnode-text-box', templateUrl: './text-box.component.html', styleUrls: ['./text-box.component.scss'], }) export class TextBoxComponent { @Input() control!: FormComponent; }
6
cossieB/microservices
f82aa80
src/graphql/resolvers.ts
TypeScript
www.github.com/cossieB/microservices/tree/main/src/graphql/resolvers.ts
https://raw.githubusercontent.com/cossieB/microservices/f82aa80/src/graphql/resolvers.ts
cossieB/microservices f82aa80 src/graphql/resolvers.ts
true
200
4,545
import { Developer, Game, PrismaClient, Publisher } from "@prisma/client"; import { dateScalar } from "./typeDefs"; const prisma = new PrismaClient() type OnlyIdArgs = { id: string } export const resolvers = { Date: dateScalar, Query: { games: async () => { return await prisma.game.fi...
7
skywalker512/skylake
89ed3e5
packages/core/src/slate/editor/getPath.ts
TypeScript
www.github.com/skywalker512/skylake/tree/main/packages/core/src/slate/editor/getPath.ts
https://raw.githubusercontent.com/skywalker512/skylake/89ed3e5/packages/core/src/slate/editor/getPath.ts
skywalker512/skylake 89ed3e5 packages/core/src/slate/editor/getPath.ts
true
200
343
import { Editor, Location } from 'slate' import { TEditor, Value } from './TEditor' export type GetPathOptions = Parameters<typeof Editor.path>[2] /** Get the path of a location. */ export const getPath = <V extends Value>( editor: TEditor<V>, at: Location, options?: GetPathOptions ) => Editor.path(editor as an...
5
ccweerasinghe1994/NESTJS-2023-COMPLETE_STUDY
9895ee9
6 - Nest Architecture Organizing Code with Modules/di/src/computer/computer.controller.ts
TypeScript
www.github.com/ccweerasinghe1994/NESTJS-2023-COMPLETE_STUDY/tree/main/6 - Nest Architecture Organizing Code with Modules/di/src/computer/computer.controller.ts
https://raw.githubusercontent.com/ccweerasinghe1994/NESTJS-2023-COMPLETE_STUDY/9895ee9/6%20-%20Nest%20Architecture%20Organizing%20Code%20with%20Modules/di/src/computer/computer.controller.ts
ccweerasinghe1994/NESTJS-2023-COMPLETE_STUDY 9895ee9 6 - Nest Architecture Organizing Code with Modules/di/src/computer/computer.controller.ts
true
200
405
import { Controller, Get } from '@nestjs/common'; import { CpuService } from '../cpu/cpu.service'; import { DiskService } from '../disk/disk.service'; @Controller('computer') export class ComputerController { constructor( private cpuService: CpuService, private diskService: DiskService, ) {} @Get() ru...
1
WebArtWork/wCommerce
1100c58
src/app/modules/commerce/pages/commerceorders/commerceorders.component.ts
TypeScript
www.github.com/WebArtWork/wCommerce/tree/main/src/app/modules/commerce/pages/commerceorders/commerceorders.component.ts
https://raw.githubusercontent.com/WebArtWork/wCommerce/1100c58/src/app/modules/commerce/pages/commerceorders/commerceorders.component.ts
WebArtWork/wCommerce 1100c58 src/app/modules/commerce/pages/commerceorders/commerceorders.component.ts
true
200
5,053
import { Component } from '@angular/core'; import { AlertService, CoreService } from 'wacom'; import { CommerceorderService } from '../../services/commerceorder.service'; import { Commerceorder } from '../../interfaces/commerceorder.interface'; import { FormService } from 'src/app/core/modules/form/form.service'; impor...
3
WingRiders/on-chain-dao-governance
46fd426
sdk/test/helpers/walletAddress.spec.ts
TypeScript
www.github.com/WingRiders/on-chain-dao-governance/tree/main/sdk/test/helpers/walletAddress.spec.ts
https://raw.githubusercontent.com/WingRiders/on-chain-dao-governance/46fd426/sdk/test/helpers/walletAddress.spec.ts
WingRiders/on-chain-dao-governance 46fd426 sdk/test/helpers/walletAddress.spec.ts
true
200
1,034
import {afterEach, describe, expect, test, vi} from 'vitest' import {reverseAddress} from '@wingriders/cab/wallet/connector' import {getWalletOwner} from '../../src' import {getSimpleMockedWallet} from '../fixtures/mockWallet' describe('wallet address', () => { afterEach(() => { vi.restoreAllMocks() }) te...
4
Graf-J/BrAInstorm
ab988dc
client/src/app/components/context-ai-tab/context-ai-tab.component.ts
TypeScript
www.github.com/Graf-J/BrAInstorm/tree/main/client/src/app/components/context-ai-tab/context-ai-tab.component.ts
https://raw.githubusercontent.com/Graf-J/BrAInstorm/ab988dc/client/src/app/components/context-ai-tab/context-ai-tab.component.ts
Graf-J/BrAInstorm ab988dc client/src/app/components/context-ai-tab/context-ai-tab.component.ts
true
200
1,229
import { HttpErrorResponse } from '@angular/common/http'; import { Component, Input } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { CloudData } from 'angular-tag-cloud-module'; import { AiService } from 'src/app/services/ai.service'; @Component({ selector: 'app-c...
6
yotamishak/ion-esbuild-decorators
1dd867a
sst.config.ts
TypeScript
www.github.com/yotamishak/ion-esbuild-decorators/tree/main/sst.config.ts
https://raw.githubusercontent.com/yotamishak/ion-esbuild-decorators/1dd867a/sst.config.ts
yotamishak/ion-esbuild-decorators 1dd867a sst.config.ts
true
200
532
/// <reference path="./.sst/platform/config.d.ts" /> import { esbuildDecorators } from '@anatine/esbuild-decorators'; export default $config({ app(input) { return { name: "my-ts-app", removal: input?.stage === "production" ? "retain" : "remove", home: "aws", }; }, async run() { cons...
5
LeoKle/loa-viewer-map
1607d55
src/services/groupConditionsService.ts
TypeScript
www.github.com/LeoKle/loa-viewer-map/tree/main/src/services/groupConditionsService.ts
https://raw.githubusercontent.com/LeoKle/loa-viewer-map/1607d55/src/services/groupConditionsService.ts
LeoKle/loa-viewer-map 1607d55 src/services/groupConditionsService.ts
true
200
427
import Condition from "../interfaces/condition.interface"; function groupConditionsByCop( conditions: Condition[] ): Record<string, Condition[]> { return conditions.reduce((acc, condition) => { const { cop } = condition; if (!acc[cop]) { acc[cop] = []; } acc[cop].push(conditio...
2
brunosilveiradosanjos/igniteteams
add4118
src/storage/group/groupCreate.ts
TypeScript
www.github.com/brunosilveiradosanjos/igniteteams/tree/main/src/storage/group/groupCreate.ts
https://raw.githubusercontent.com/brunosilveiradosanjos/igniteteams/add4118/src/storage/group/groupCreate.ts
brunosilveiradosanjos/igniteteams add4118 src/storage/group/groupCreate.ts
true
200
626
import AsyncStorage from '@react-native-async-storage/async-storage' import { GROUP_COLLECTION } from '@storage/storageConfig' import { groupsGetAll } from './groupsGetAll' import { AppError } from '@utils/AppError' export async function groupCreate(newGroup: string) { try { const storedGroups = await groupsGet...
0
safaaabdelnaser/BookSite_Angular
856ff7b
src/app/Components/user/user.module.ts
TypeScript
www.github.com/safaaabdelnaser/BookSite_Angular/tree/main/src/app/Components/user/user.module.ts
https://raw.githubusercontent.com/safaaabdelnaser/BookSite_Angular/856ff7b/src/app/Components/user/user.module.ts
safaaabdelnaser/BookSite_Angular 856ff7b src/app/Components/user/user.module.ts
true
200
686
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { EditProfileComponent } from './edit-profile/edit-profile.component'; import { UserProfileComponent } from './user-profile/user-profile.component'; import { Route, RouterModule, Routes } from '@angular/router'; const rout...
7
liulei92/vite_pinia_template
ac514ba
viteConfig/plugin/analysis.ts
TypeScript
www.github.com/liulei92/vite_pinia_template/tree/main/viteConfig/plugin/analysis.ts
https://raw.githubusercontent.com/liulei92/vite_pinia_template/ac514ba/viteConfig/plugin/analysis.ts
liulei92/vite_pinia_template ac514ba viteConfig/plugin/analysis.ts
true
200
410
/* * @Description: analysis * @Date: 2022-03-24 14:53:53 * @Author: LeiLiu */ import visualizer from 'rollup-plugin-visualizer'; import { ANALY } from '../constant'; export function configVisualizerPlugin() { if (ANALY) { return visualizer({ filename: './node_modules/.cache/visualizer/stats.html', ...
1
sukovanej/effect-http
598af71
packages/effect-http-node/examples/scoped-resources.ts
TypeScript
www.github.com/sukovanej/effect-http/tree/main/packages/effect-http-node/examples/scoped-resources.ts
https://raw.githubusercontent.com/sukovanej/effect-http/598af71/packages/effect-http-node/examples/scoped-resources.ts
sukovanej/effect-http 598af71 packages/effect-http-node/examples/scoped-resources.ts
true
200
962
import { NodeRuntime } from "@effect/platform-node" import { Context, Effect, pipe, Schema } from "effect" import { Api, RouterBuilder } from "effect-http" import { NodeServer } from "effect-http-node" interface Resource { value: number } const ResourceService = Context.GenericTag<Resource>("@services/ResourceServ...
3
twinfred/TicTacToe
ea83d86
src/utils/winnerUtils.ts
TypeScript
www.github.com/twinfred/TicTacToe/tree/main/src/utils/winnerUtils.ts
https://raw.githubusercontent.com/twinfred/TicTacToe/ea83d86/src/utils/winnerUtils.ts
twinfred/TicTacToe ea83d86 src/utils/winnerUtils.ts
true
200
887
import { Player } from "../context/GameContext"; const winningIndexes = [ [0, 1, 2], // (top row) [3, 4, 5], // (middle row) [6, 7, 8], // (bottom row) // Columns: [0, 3, 6], // (left column) [1, 4, 7], // (middle column) [2, 5, 8], // (right column) // Diagonals: [0, 4, 8], // (top-left to bottom-ri...
4
Egor-Dubovik/async-race-client
63c4080
src/components/interaction/animation.ts
TypeScript
www.github.com/Egor-Dubovik/async-race-client/tree/main/src/components/interaction/animation.ts
https://raw.githubusercontent.com/Egor-Dubovik/async-race-client/63c4080/src/components/interaction/animation.ts
Egor-Dubovik/async-race-client 63c4080 src/components/interaction/animation.ts
true
200
1,773
import { Numbers, CAR_WIDTH, EQUALIZATION_FACTOR } from '../../constants/numbers'; import { EngineDriveMod } from '../../types/car.types'; import { Engine } from '../../types/car.types'; import { NULL } from '../../constants/string'; import { getHtmlCar } from './getElements'; import { checkWinner } from './checkW...
6
FaisalAhmed025/B2B-Portal
9e77f6f
src/auth/auth.service.ts
TypeScript
www.github.com/FaisalAhmed025/B2B-Portal/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/FaisalAhmed025/B2B-Portal/9e77f6f/src/auth/auth.service.ts
FaisalAhmed025/B2B-Portal 9e77f6f src/auth/auth.service.ts
true
200
1,596
import { Users } from './../users/entities/user.entity'; import { AgentService } from './../agent/agent.service'; import { BadRequestException, Injectable } from '@nestjs/common'; import { UsersService } from 'src/users/users.service'; import * as bcrypt from 'bcrypt'; import { JwtService } from '@nestjs/jwt'; import {...
0
rohan-fowlerharper/advent-of-code
e03df78
2019/06/1.ts
TypeScript
www.github.com/rohan-fowlerharper/advent-of-code/tree/main/2019/06/1.ts
https://raw.githubusercontent.com/rohan-fowlerharper/advent-of-code/e03df78/2019/06/1.ts
rohan-fowlerharper/advent-of-code e03df78 2019/06/1.ts
true
200
760
import * as p from 'https://deno.land/std@0.165.0/path/mod.ts' const input = await Deno.readTextFile( p.fromFileUrl(import.meta.resolve('./input.txt')) ) const orbits = input .trimEnd() .split('\n') .map((line) => line.split(')') as [string, string]) const orbitMap = new Map<string, string[]>() for (const [...
5
JacksonTirone/Arena-Sports
55c0319
Arena-Sports-Admin/src/app/component/quadra-pesquisa/quadra-pesquisa.component.ts
TypeScript
www.github.com/JacksonTirone/Arena-Sports/tree/main/Arena-Sports-Admin/src/app/component/quadra-pesquisa/quadra-pesquisa.component.ts
https://raw.githubusercontent.com/JacksonTirone/Arena-Sports/55c0319/Arena-Sports-Admin/src/app/component/quadra-pesquisa/quadra-pesquisa.component.ts
JacksonTirone/Arena-Sports 55c0319 Arena-Sports-Admin/src/app/component/quadra-pesquisa/quadra-pesquisa.component.ts
true
200
2,504
import { Component, OnInit } from '@angular/core'; import { AguardeService } from '../../service/aguarde.service'; import { ApiService } from '../../service/api.service'; import { MensagemService } from '../../service/mensagem.service'; import { Router } from '@angular/router'; import { ConfirmacaoComponent } from '../...
1
valerr/middle.messenger.praktikum.yandex
38fc1e5
src/components/chat/members/Member.ts
TypeScript
www.github.com/valerr/middle.messenger.praktikum.yandex/tree/main/src/components/chat/members/Member.ts
https://raw.githubusercontent.com/valerr/middle.messenger.praktikum.yandex/38fc1e5/src/components/chat/members/Member.ts
valerr/middle.messenger.praktikum.yandex 38fc1e5 src/components/chat/members/Member.ts
true
200
1,006
import Block from "../../../utils/Block"; import template from './member.tmpl'; import Button from "../../button/Button"; import ChatController from "../../../controllers/ChatController"; import store from "../../../utils/Store"; export interface Props { className?: string, name?: string, events?: Record<s...
7
dmitrykhotko/skysnakes
c21d12d
src/server/utils/types.ts
TypeScript
www.github.com/dmitrykhotko/skysnakes/tree/main/src/server/utils/types.ts
https://raw.githubusercontent.com/dmitrykhotko/skysnakes/c21d12d/src/server/utils/types.ts
dmitrykhotko/skysnakes c21d12d src/server/utils/types.ts
true
200
718
import { WebSocket } from 'ws'; import { Direction } from '../../common/enums'; import { Id, LinkedPoint, ObjectWithId, Size } from '../../common/types'; import { Action } from '../redux/actions'; export interface SnakeData extends ObjectWithId { serviceId: Id; head: LinkedPoint; tail: LinkedPoint;...
2
TheMas3212/LarderManager
e1b0fc6
apps/api/src/main.ts
TypeScript
www.github.com/TheMas3212/LarderManager/tree/main/apps/api/src/main.ts
https://raw.githubusercontent.com/TheMas3212/LarderManager/e1b0fc6/apps/api/src/main.ts
TheMas3212/LarderManager e1b0fc6 apps/api/src/main.ts
true
200
404
import "reflect-metadata" import * as express from 'express'; import Database from "./orm"; import API from './api'; Database.initialize().then(() => { const app = express(); app.use('/api', API); const port = process.env.port || 3333; const server = app.listen(port, () => { console.log('Listening at...
4
antfu/pnpm-workspace-utils
c4d2c51
packages/eslint-plugin-pnpm/src/utils/workspace.ts
TypeScript
www.github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/utils/workspace.ts
https://raw.githubusercontent.com/antfu/pnpm-workspace-utils/c4d2c51/packages/eslint-plugin-pnpm/src/utils/workspace.ts
antfu/pnpm-workspace-utils c4d2c51 packages/eslint-plugin-pnpm/src/utils/workspace.ts
true
200
817
import type { PnpmWorkspaceYamlExtended } from './_read' import { findPnpmWorkspace, readPnpmWorkspace } from './_read' const WORKSPACE_CACHE_TIME = 10_000 const workspaces: Record<string, PnpmWorkspaceYamlExtended | undefined> = {} export function getPnpmWorkspace( sourcePath: string, ): PnpmWorkspaceYamlExtended ...
3
sa-one123/financial_report_mern
252b238
backend/src/seeders/index.ts
TypeScript
www.github.com/sa-one123/financial_report_mern/tree/main/backend/src/seeders/index.ts
https://raw.githubusercontent.com/sa-one123/financial_report_mern/252b238/backend/src/seeders/index.ts
sa-one123/financial_report_mern 252b238 backend/src/seeders/index.ts
true
200
487
import mongoose from "mongoose"; import ProductSeeder from "./ProductSeeder"; import { connectDB } from "../config/db"; const commonSeeder = async ()=>{ await connectDB(); try { await ProductSeeder(); console.log("All Seeders Executed successfully"); } catch (error) { console...
6
stepchowfun/gigamesh
d64422d
backend/src/main/main.ts
TypeScript
www.github.com/stepchowfun/gigamesh/tree/main/backend/src/main/main.ts
https://raw.githubusercontent.com/stepchowfun/gigamesh/d64422d/backend/src/main/main.ts
stepchowfun/gigamesh d64422d backend/src/main/main.ts
true
200
3,178
import * as compression from 'compression'; import * as cookieParser from 'cookie-parser'; import * as express from 'express'; import * as helmet from 'helmet'; import { BootstrapData } from 'frontend-lib'; import { NextFunction, Request, Response } from 'express'; import { randomBytes } from 'crypto'; import installR...
5
pmpeloc/node-pro
0e5d141
src/modules/driver/interfaces/http/middlewares/driver.middleware.ts
TypeScript
www.github.com/pmpeloc/node-pro/tree/main/src/modules/driver/interfaces/http/middlewares/driver.middleware.ts
https://raw.githubusercontent.com/pmpeloc/node-pro/0e5d141/src/modules/driver/interfaces/http/middlewares/driver.middleware.ts
pmpeloc/node-pro 0e5d141 src/modules/driver/interfaces/http/middlewares/driver.middleware.ts
true
200
1,712
import { validate } from 'class-validator'; import { NextFunction, Request, Response } from 'express'; import { IError } from '../../helpers/ierror'; import { DriverInsertValidator, DriverListOneValidator, } from '../validators/driver.validator'; export class DriverMiddleware { static async ValidateListOne( ...
0
gleysonabreu/to-do
582c210
src/infra/http/controllers/update-profile.controller.e2e-spec.ts
TypeScript
www.github.com/gleysonabreu/to-do/tree/main/src/infra/http/controllers/update-profile.controller.e2e-spec.ts
https://raw.githubusercontent.com/gleysonabreu/to-do/582c210/src/infra/http/controllers/update-profile.controller.e2e-spec.ts
gleysonabreu/to-do 582c210 src/infra/http/controllers/update-profile.controller.e2e-spec.ts
true
200
1,664
import { AppModule } from '@/infra/app.module'; import { PrismaService } from '@/infra/database/prisma/prisma.service'; import { INestApplication } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { Test } from '@nestjs/testing'; import { User } from '@prisma/client'; import { hash } from 'bcrypt...
1
stelasaracii/task-manager-project
5d088bb
task-manager-app/src/store/TaskReducer.ts
TypeScript
www.github.com/stelasaracii/task-manager-project/tree/main/task-manager-app/src/store/TaskReducer.ts
https://raw.githubusercontent.com/stelasaracii/task-manager-project/5d088bb/task-manager-app/src/store/TaskReducer.ts
stelasaracii/task-manager-project 5d088bb task-manager-app/src/store/TaskReducer.ts
true
200
1,088
import { Task } from "../typings/Task"; import { ADD_TASK, DELETE_TASKS, EDIT_TASK, SET_ALL_TASKS, SET_TASKS } from "./constants"; import { TaskAction } from "./TaskAction"; import { TaskState } from "./TaskState"; export function taskReducer(state: TaskState, action: TaskAction): TaskState { switch (action.type) { ...
2
KfirFed/Teachers_Pet_Web
112803e
teachers-pet-client/src/axios/Auth.ts
TypeScript
www.github.com/KfirFed/Teachers_Pet_Web/tree/main/teachers-pet-client/src/axios/Auth.ts
https://raw.githubusercontent.com/KfirFed/Teachers_Pet_Web/112803e/teachers-pet-client/src/axios/Auth.ts
KfirFed/Teachers_Pet_Web 112803e teachers-pet-client/src/axios/Auth.ts
true
200
1,523
import axiosConnection from "./AxiosConnection"; import { ConnectedUser } from "../types/User"; const AUTH_ROUTE = "/auth"; export const login = async ( email: string, password: string ): Promise<ConnectedUser> => { try { return ( await axiosConnection.post(`${AUTH_ROUTE}/login`, { email, password }) ...
4
necelentano/chi-project
d80ebcb
src/components/DashboardSideNav/styles.ts
TypeScript
www.github.com/necelentano/chi-project/tree/main/src/components/DashboardSideNav/styles.ts
https://raw.githubusercontent.com/necelentano/chi-project/d80ebcb/src/components/DashboardSideNav/styles.ts
necelentano/chi-project d80ebcb src/components/DashboardSideNav/styles.ts
true
200
672
const styles = { drawer: { flexShrink: 0, "& .MuiDrawer-paper": { width: 255, boxSizing: "border-box", bgcolor: "bgDark.main", color: "#DDE2FF", }, }, toolbar: { mt: "18px", }, avatar: { width: 32, height: 32, mr: "12px", }, divider: { bgcolor: "#DFE...
3
localhost443/nestjs-coffee-service
50b7886
src/common/pipes/personal-parse-int.pipe.ts
TypeScript
www.github.com/localhost443/nestjs-coffee-service/tree/main/src/common/pipes/personal-parse-int.pipe.ts
https://raw.githubusercontent.com/localhost443/nestjs-coffee-service/50b7886/src/common/pipes/personal-parse-int.pipe.ts
localhost443/nestjs-coffee-service 50b7886 src/common/pipes/personal-parse-int.pipe.ts
true
200
425
import { ArgumentMetadata, Injectable, PipeTransform, PreconditionFailedException, } from '@nestjs/common'; @Injectable() export class PersonalParseIntPipe implements PipeTransform { transform(value: any, metadata: ArgumentMetadata) { console.log(value, metadata); const val = parseInt(value, 10); ...
7
DaniOmer/mimo-backend
3cb0598
src/apps/product/api/size/size.route.ts
TypeScript
www.github.com/DaniOmer/mimo-backend/tree/main/src/apps/product/api/size/size.route.ts
https://raw.githubusercontent.com/DaniOmer/mimo-backend/3cb0598/src/apps/product/api/size/size.route.ts
DaniOmer/mimo-backend 3cb0598 src/apps/product/api/size/size.route.ts
true
200
4,197
import { Router } from "express"; import { SizeController } from "./size.controller"; import { validateDtoMiddleware, validateIdMiddleware, authenticateMiddleware, checkRoleMiddleware, } from "../../../../librairies/middlewares"; import { SizeCreateDTO, SizeUpdateDTO } from "../../domain/size/size.dto"; const ...
5
TeryaevAndrey/chat-backend
e92a9b9
src/Controllers/MessagesController.ts
TypeScript
www.github.com/TeryaevAndrey/chat-backend/tree/main/src/Controllers/MessagesController.ts
https://raw.githubusercontent.com/TeryaevAndrey/chat-backend/e92a9b9/src/Controllers/MessagesController.ts
TeryaevAndrey/chat-backend e92a9b9 src/Controllers/MessagesController.ts
true
200
1,254
import { Request, Response } from "express"; import socket from "socket.io"; import MessageModel from "../models/MessageModel"; interface IMessage { message: string; dialog: string; files?: []; sender: string; } class MessagesController { io: socket.Server; constructor(io: socket.Server) { this.io = ...
6
aag2807/taxi-24-challenge
43e56cf
src/core/trip/aggregates/trip-response.aggregate.ts
TypeScript
www.github.com/aag2807/taxi-24-challenge/tree/main/src/core/trip/aggregates/trip-response.aggregate.ts
https://raw.githubusercontent.com/aag2807/taxi-24-challenge/43e56cf/src/core/trip/aggregates/trip-response.aggregate.ts
aag2807/taxi-24-challenge 43e56cf src/core/trip/aggregates/trip-response.aggregate.ts
true
200
2,522
import { ApiProperty } from '@nestjs/swagger'; import { Coordinate } from '../../../common/models/coordinates.model'; import { Trip } from '../models/trip.entity'; export class TripResponse { @ApiProperty({ example: 1, description: 'Unique identifier of the passenger.' }) public tripId: number; @ApiProperty({ e...
0
YuGo-Ride-Hailing-App/YuGo-Frontend
b27670a
src/app/modules/shared/shared.module.ts
TypeScript
www.github.com/YuGo-Ride-Hailing-App/YuGo-Frontend/tree/main/src/app/modules/shared/shared.module.ts
https://raw.githubusercontent.com/YuGo-Ride-Hailing-App/YuGo-Frontend/b27670a/src/app/modules/shared/shared.module.ts
YuGo-Ride-Hailing-App/YuGo-Frontend b27670a src/app/modules/shared/shared.module.ts
true
200
1,222
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms' import {MaterialModule} from "../../../infrastructure/material.module"; import {HttpCl...
1
YaroslavHorbachov/kis-app
cff27ce
src/app/sign-up/store/facades/sign-up.facade.ts
TypeScript
www.github.com/YaroslavHorbachov/kis-app/tree/main/src/app/sign-up/store/facades/sign-up.facade.ts
https://raw.githubusercontent.com/YaroslavHorbachov/kis-app/cff27ce/src/app/sign-up/store/facades/sign-up.facade.ts
YaroslavHorbachov/kis-app cff27ce src/app/sign-up/store/facades/sign-up.facade.ts
true
200
637
import { Store } from '@ngrx/store'; import { Injectable } from '@angular/core'; import { CustomerCreateViewModel } from 'src/app/shared/services'; import { SignUpActions } from '../actions'; import { IState } from '../reducers/sign-up.reducer'; import { SignUpSelectors } from '../selectors'; @Injectable({ providedIn...
2
SX129/Open-Design
4d9e705
src/lib/utils.ts
TypeScript
www.github.com/SX129/Open-Design/tree/main/src/lib/utils.ts
https://raw.githubusercontent.com/SX129/Open-Design/4d9e705/src/lib/utils.ts
SX129/Open-Design 4d9e705 src/lib/utils.ts
true
200
665
import { type ClassValue, clsx } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } // Ensures consistent currency export function formatPrice( price: number | string, options: { currency?: "USD" | "EUR" | "GBP" | "BDT", not...
4
madeelshabbir/web-pos-api
b3c6f90
src/api/v1/controllers/orders/create.ts
TypeScript
www.github.com/madeelshabbir/web-pos-api/tree/main/src/api/v1/controllers/orders/create.ts
https://raw.githubusercontent.com/madeelshabbir/web-pos-api/b3c6f90/src/api/v1/controllers/orders/create.ts
madeelshabbir/web-pos-api b3c6f90 src/api/v1/controllers/orders/create.ts
true
200
879
import { type Request, type Response } from 'express'; import { OrdersApi } from '../../../../integrations/gift-lov/orders-api'; export const create = async (req: Request, res: Response) => { const { itemId: cardItemId, price } = req.body; const ordersApi = new OrdersApi(); const user = req.currentUser; con...
6
JoystickNS/diploma-frontend
d8e4f3f
src/services/auth/auth.service.ts
TypeScript
www.github.com/JoystickNS/diploma-frontend/tree/main/src/services/auth/auth.service.ts
https://raw.githubusercontent.com/JoystickNS/diploma-frontend/d8e4f3f/src/services/auth/auth.service.ts
JoystickNS/diploma-frontend d8e4f3f src/services/auth/auth.service.ts
true
200
990
import { IAuth } from "../../models/IAuth"; import { IRefresh } from "../../models/IRefresh"; import { IUserWithPermissions } from "../../models/IUserWithPermissions"; import { api } from "../api"; import { IAuthArgs } from "./auth.interface"; export const authAPI = api.injectEndpoints({ endpoints: (builder) => ({ ...
7
OnionGL/friendly-viewer-spa
60eb8dc
src/app/app.component.ts
TypeScript
www.github.com/OnionGL/friendly-viewer-spa/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/OnionGL/friendly-viewer-spa/60eb8dc/src/app/app.component.ts
OnionGL/friendly-viewer-spa 60eb8dc src/app/app.component.ts
true
200
521
import { Component } from '@angular/core'; import { FooterService } from '../services/footer/footer.service'; import { HeaderService } from '../services/header/header.service'; import { AlertService } from '../services/alert/alertService.service'; @Component({ selector: 'app-root', templateUrl: './app.component.ht...
5
EnmaSantos/cms-week-10
1845180
src/app/contacts/contact.service.ts
TypeScript
www.github.com/EnmaSantos/cms-week-10/tree/main/src/app/contacts/contact.service.ts
https://raw.githubusercontent.com/EnmaSantos/cms-week-10/1845180/src/app/contacts/contact.service.ts
EnmaSantos/cms-week-10 1845180 src/app/contacts/contact.service.ts
true
200
2,437
import { Injectable, EventEmitter } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Subject } from 'rxjs'; import { Contact } from './contact.model'; @Injectable({ providedIn: 'root' }) export class ContactService { contactListChangedEvent = new Subject<Contact[]>();...
1
Super-Cereal/vtb-hack-workwolf
c7c33e6
backend/src/object-category/object-category.module.ts
TypeScript
www.github.com/Super-Cereal/vtb-hack-workwolf/tree/main/backend/src/object-category/object-category.module.ts
https://raw.githubusercontent.com/Super-Cereal/vtb-hack-workwolf/c7c33e6/backend/src/object-category/object-category.module.ts
Super-Cereal/vtb-hack-workwolf c7c33e6 backend/src/object-category/object-category.module.ts
true
200
637
import { Module } from '@nestjs/common'; import { ObjectCategoryService } from './object-category.service'; import { ObjectCategoryController } from './object-category.controller'; import { ObjectCategory } from 'src/models/object-category.model'; import { SequelizeModule } from '@nestjs/sequelize'; import { ObjectLeve...
0
Iceylands/HealthFinderProject
74f9171
Frontend/src/app/search-result/search-result.component.ts
TypeScript
www.github.com/Iceylands/HealthFinderProject/tree/main/Frontend/src/app/search-result/search-result.component.ts
https://raw.githubusercontent.com/Iceylands/HealthFinderProject/74f9171/Frontend/src/app/search-result/search-result.component.ts
Iceylands/HealthFinderProject 74f9171 Frontend/src/app/search-result/search-result.component.ts
true
200
1,996
import { Component, Input, OnInit, OnDestroy } from '@angular/core'; import { Doctors } from '../models/Dotctors'; import { ActivatedRoute, Router } from '@angular/router'; import { DoctorsService } from '../doctors.service'; import { Subscription } from 'rxjs'; import { DataShareService } from '../data-share.service';...
2
DeepakNVS/VerveBridge_Ecommerce_
eda6f85
app/api/cart/edit-cart/route.ts
TypeScript
www.github.com/DeepakNVS/VerveBridge_Ecommerce_/tree/main/app/api/cart/edit-cart/route.ts
https://raw.githubusercontent.com/DeepakNVS/VerveBridge_Ecommerce_/eda6f85/app/api/cart/edit-cart/route.ts
DeepakNVS/VerveBridge_Ecommerce_ eda6f85 app/api/cart/edit-cart/route.ts
true
200
2,533
import { ConnectDB } from "@/lib/config/db.config"; import { isAuth } from "@/lib/middleware/VerifyUser.middleware"; import { UserModel } from "@/lib/models/User.models"; import httpStatus from "http-status"; import { NextResponse, NextRequest } from "next/server"; import { ApiError } from "@/lib/utils/ApiError"; impor...
4
yogs0ddhoth/blogme
471f721
src/models/Post.model.ts
TypeScript
www.github.com/yogs0ddhoth/blogme/tree/main/src/models/Post.model.ts
https://raw.githubusercontent.com/yogs0ddhoth/blogme/471f721/src/models/Post.model.ts
yogs0ddhoth/blogme 471f721 src/models/Post.model.ts
true
200
865
// import { Model, DataTypes } from 'sequelize'; import { Model, Table, Column, DataType, PrimaryKey, AutoIncrement, ForeignKey, BelongsTo, HasMany } from 'sequelize-typescript'; import Comment from './Comment.model'; import User from './User.model'; const sequelize = require('../config/connection').default; @Table({ ...
6
ahaoboy/txiki-wasm-bench
87929ec
src/fib.ts
TypeScript
www.github.com/ahaoboy/txiki-wasm-bench/tree/main/src/fib.ts
https://raw.githubusercontent.com/ahaoboy/txiki-wasm-bench/87929ec/src/fib.ts
ahaoboy/txiki-wasm-bench 87929ec src/fib.ts
true
200
943
const base64 = "AGFzbQEAAAABBgFgAX8BfwMCAQAHBwEDRmliAAAKHgEcACAAQQJJBH8gAAUgAEEBaxAAIABBAmsQAGoLCwANBG5hbWUBBgEAA0ZpYg=="; const buffer = Uint8Array.from(atob(base64), c => c.charCodeAt(0)); const wasmModule = new WebAssembly.Module(buffer); const instance = new WebAssembly.Instance(wasmModule, {}); console.log('instan...
1
santhoshkumaroff/student-side---frontend
d549477
src/app/learning/learning.component.ts
TypeScript
www.github.com/santhoshkumaroff/student-side---frontend/tree/main/src/app/learning/learning.component.ts
https://raw.githubusercontent.com/santhoshkumaroff/student-side---frontend/d549477/src/app/learning/learning.component.ts
santhoshkumaroff/student-side---frontend d549477 src/app/learning/learning.component.ts
true
200
553
import { Component, ViewChild, ElementRef, OnInit } from '@angular/core'; import { Router } from '@angular/router'; @Component({ selector: 'app-learning', templateUrl: './learning.component.html', styleUrls: ['./learning.component.css'] }) export class LearningComponent implements OnInit{ showValue : boolean =...
5
LuisaFC/waiterApp
dc207ff
src/app/useCases/categories/listCategories.ts
TypeScript
www.github.com/LuisaFC/waiterApp/tree/main/src/app/useCases/categories/listCategories.ts
https://raw.githubusercontent.com/LuisaFC/waiterApp/dc207ff/src/app/useCases/categories/listCategories.ts
LuisaFC/waiterApp dc207ff src/app/useCases/categories/listCategories.ts
true
200
316
import { Request, Response } from 'express'; import { Category } from '../../models/Category'; export async function listCategories(req: Request, res: Response) { try{ const categories = await Category.find(); res.json(categories); } catch(err){ console.log(err); res.sendStatus(500); } }
3
Eyevinn/media-event-filter
626e971
src/demo/filtered-events.hook.ts
TypeScript
www.github.com/Eyevinn/media-event-filter/tree/main/src/demo/filtered-events.hook.ts
https://raw.githubusercontent.com/Eyevinn/media-event-filter/626e971/src/demo/filtered-events.hook.ts
Eyevinn/media-event-filter 626e971 src/demo/filtered-events.hook.ts
true
200
3,429
import { useEffect, useState } from "react"; import { FilteredMediaEvent, getMediaEventFilter } from "../media-event-filter"; export const useFilteredEvents = ({ video, mp4Mode = false, }: { video: HTMLVideoElement; mp4Mode: boolean; }) => { const [playing, setPlaying] = useState(false); const [seeking, se...
7
ay-Lucas/stock-market
da3c424
backend/src/controllers/dailyGainersController.ts
TypeScript
www.github.com/ay-Lucas/stock-market/tree/main/backend/src/controllers/dailyGainersController.ts
https://raw.githubusercontent.com/ay-Lucas/stock-market/da3c424/backend/src/controllers/dailyGainersController.ts
ay-Lucas/stock-market da3c424 backend/src/controllers/dailyGainersController.ts
true
200
910
import { Request, Response } from "express"; import yahooFinance from "yahoo-finance2"; import { DailyGainersResult } from "yahoo-finance2/dist/esm/src/modules/dailyGainers"; // Only working on weekend when count = 0 or 1 // Use the screener route instead with param scrId="daily_gainers" export const getDailyGainersDa...
4
potyoma/image-uploader
3242fde
apps/server/src/modules/pictures/pictures.service.ts
TypeScript
www.github.com/potyoma/image-uploader/tree/main/apps/server/src/modules/pictures/pictures.service.ts
https://raw.githubusercontent.com/potyoma/image-uploader/3242fde/apps/server/src/modules/pictures/pictures.service.ts
potyoma/image-uploader 3242fde apps/server/src/modules/pictures/pictures.service.ts
true
200
3,110
import { Injectable } from '@nestjs/common'; import { PicturesRepository } from './pictures.repository'; import { Picture } from '@prisma/client'; import { PictureInfo } from '@server/models/picture.info'; import * as moment from 'moment'; import { join } from 'path'; import { ReadStream, createReadStream } from 'fs'; ...
2
nkhieu215/qms_FE_Practice
411f751
src/app/share/_models/mount_check.model.ts
TypeScript
www.github.com/nkhieu215/qms_FE_Practice/tree/main/src/app/share/_models/mount_check.model.ts
https://raw.githubusercontent.com/nkhieu215/qms_FE_Practice/411f751/src/app/share/_models/mount_check.model.ts
nkhieu215/qms_FE_Practice 411f751 src/app/share/_models/mount_check.model.ts
true
200
622
import { ErrorElectronicComponent } from './errorElectronicComponent.model'; import { ErrorList } from './errorList.model'; export class MountCompCheck { public batchId = null; public line = null; public machineName = null; public checkPerson = null; public checkTime = null; public createdAt?: Date; publi...
1
Konnen123/HealthcareManagement
7a2e985
healthcare-management/src/app/app.component.spec.ts
TypeScript
www.github.com/Konnen123/HealthcareManagement/tree/main/healthcare-management/src/app/app.component.spec.ts
https://raw.githubusercontent.com/Konnen123/HealthcareManagement/7a2e985/healthcare-management/src/app/app.component.spec.ts
Konnen123/HealthcareManagement 7a2e985 healthcare-management/src/app/app.component.spec.ts
true
200
1,065
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; import {APP_CONFIG} from './app-config/app.config'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [AppComponent], providers: [ { provide...
6
shumasod/Shubox-
8f1aed0
game/src/hooks/useBattle.ts
TypeScript
www.github.com/shumasod/Shubox-/tree/main/game/src/hooks/useBattle.ts
https://raw.githubusercontent.com/shumasod/Shubox-/8f1aed0/game/src/hooks/useBattle.ts
shumasod/Shubox- 8f1aed0 game/src/hooks/useBattle.ts
true
200
1,642
import { useState } from 'react'; import { Character } from '../types/character'; import { calculateDamage, gainExperience } from '../utils/battleCalculations'; export const useBattle = ( initialPlayer: Character, initialEnemy: Character ) => { const [player, setPlayer] = useState(initialPlayer); const [enemy,...
3
David-147369/react-admin-David
073b927
src/utils/store.ts
TypeScript
www.github.com/David-147369/react-admin-David/tree/main/src/utils/store.ts
https://raw.githubusercontent.com/David-147369/react-admin-David/073b927/src/utils/store.ts
David-147369/react-admin-David 073b927 src/utils/store.ts
true
200
718
enum CacheType { Local, Session, } class Cache { storage: Storage; constructor(type: CacheType) { this.storage = type === CacheType.Local ? localStorage : sessionStorage; } setCache<T>(key: string, value: T) { if (value) { this.storage.setItem(key, JSON.stringify(value)); } } getCa...
5