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
MonzterDev/TS-Halloween-Simulator
e2e9aef
src/shared/constants/Basket.ts
TypeScript
www.github.com/MonzterDev/TS-Halloween-Simulator/tree/main/src/shared/constants/Basket.ts
https://raw.githubusercontent.com/MonzterDev/TS-Halloween-Simulator/e2e9aef/src/shared/constants/Basket.ts
MonzterDev/TS-Halloween-Simulator e2e9aef src/shared/constants/Basket.ts
true
200
1,665
export type BasketUpgradeResponse = "Max" | "No Money" | "Success" | false; export const BASKET_UPGRADES = ["Size", "Range", "Power", "Luck"] as const; export type BasketUpgrade = typeof BASKET_UPGRADES[number]; export const BASKET_UPGRADE_DESCRIPTION: Record<BasketUpgrade, string> = { Size: "Hold more Candy!", Rang...
5
jokhadzesaba/socialnetwork
73f8993
src/app/feed/feed.component.ts
TypeScript
www.github.com/jokhadzesaba/socialnetwork/tree/main/src/app/feed/feed.component.ts
https://raw.githubusercontent.com/jokhadzesaba/socialnetwork/73f8993/src/app/feed/feed.component.ts
jokhadzesaba/socialnetwork 73f8993 src/app/feed/feed.component.ts
true
200
1,372
import { Component, Input, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { Room } from '../interface'; import { ApiService } from '../services/api.service'; import { CommonModule } from '@angular/common'; import { RouterLink } from '@angular/router'; import { UserService } from '../services/u...
4
daniel1919-00/ng-dominus
4410fc2
projects/docs/src/app/docs/dm-table-docs/dm-table-docs.component.ts
TypeScript
www.github.com/daniel1919-00/ng-dominus/tree/main/projects/docs/src/app/docs/dm-table-docs/dm-table-docs.component.ts
https://raw.githubusercontent.com/daniel1919-00/ng-dominus/4410fc2/projects/docs/src/app/docs/dm-table-docs/dm-table-docs.component.ts
daniel1919-00/ng-dominus 4410fc2 projects/docs/src/app/docs/dm-table-docs/dm-table-docs.component.ts
true
200
7,814
import {Component, Inject, OnDestroy, ViewChild} from '@angular/core'; import {CommonModule, DatePipe} from '@angular/common'; import {DmTableComponent} from "../../../../../dm-table/src/lib/dm-table.component"; import {MatCardModule} from "@angular/material/card"; import {ComponentDocHeaderComponent} from "../../compo...
1
eetann/laravel-language-server
cbe0a3b
packages/language-server/src/usecase/provideCompletionItems/blade/BladeCompletionItemsProvider.ts
TypeScript
www.github.com/eetann/laravel-language-server/tree/main/packages/language-server/src/usecase/provideCompletionItems/blade/BladeCompletionItemsProvider.ts
https://raw.githubusercontent.com/eetann/laravel-language-server/cbe0a3b/packages/language-server/src/usecase/provideCompletionItems/blade/BladeCompletionItemsProvider.ts
eetann/laravel-language-server cbe0a3b packages/language-server/src/usecase/provideCompletionItems/blade/BladeCompletionItemsProvider.ts
true
200
1,294
import { BladeParser } from "@/usecase/shared/BladeParser"; import { type CompletionItem, CompletionItemKind, InsertTextFormat, } from "@volar/language-server"; import { type AbstractNode, BladeEchoNode, } from "stillat-blade-parser/out/nodes/nodes"; import type { Position as LspPosition, TextDocument, } from "v...
2
diegonacimiento/velmar-backend
f25910c
src/auth/guards/role.guard.ts
TypeScript
www.github.com/diegonacimiento/velmar-backend/tree/main/src/auth/guards/role.guard.ts
https://raw.githubusercontent.com/diegonacimiento/velmar-backend/f25910c/src/auth/guards/role.guard.ts
diegonacimiento/velmar-backend f25910c src/auth/guards/role.guard.ts
true
200
991
import { CanActivate, ExecutionContext, Injectable, UnauthorizedException, } from '@nestjs/common'; import { Observable } from 'rxjs'; import { Reflector } from '@nestjs/core'; import { ROLE } from '../models/role.model'; import { ROLE_KEY } from '../decorators/role.decorator'; import { PayloadToken } from '.....
3
khownz/purrfect-match
777d042
src/app/components/drawer/drawer.component.ts
TypeScript
www.github.com/khownz/purrfect-match/tree/main/src/app/components/drawer/drawer.component.ts
https://raw.githubusercontent.com/khownz/purrfect-match/777d042/src/app/components/drawer/drawer.component.ts
khownz/purrfect-match 777d042 src/app/components/drawer/drawer.component.ts
true
200
1,381
import { Component, Input } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Cat } from '../../types/cat'; import { BadgeComponent } from '../badge/badge.component'; @Component({ selector: 'app-drawer', standalone: true, imports: [CommonModule, BadgeComponent], styleUrl: './drawer...
0
Sampyy/Full-stack
ffa5cc6
osa9/patientorBackend/src/routes/patients.ts
TypeScript
www.github.com/Sampyy/Full-stack/tree/main/osa9/patientorBackend/src/routes/patients.ts
https://raw.githubusercontent.com/Sampyy/Full-stack/ffa5cc6/osa9/patientorBackend/src/routes/patients.ts
Sampyy/Full-stack ffa5cc6 osa9/patientorBackend/src/routes/patients.ts
true
200
1,705
/* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ import express from 'express'; import patientService from '../services/patientService'; import toNewPatient from '../utils'; import { toNewEntry } from '../utils'; const router = express.Router(); r...
7
mountain-pass/waycharter
0ab9e86
src/handler.ts
TypeScript
www.github.com/mountain-pass/waycharter/tree/main/src/handler.ts
https://raw.githubusercontent.com/mountain-pass/waycharter/0ab9e86/src/handler.ts
mountain-pass/waycharter 0ab9e86 src/handler.ts
true
200
1,019
import express from 'express' import { Query, ParamsDictionary } from 'express-serve-static-core' import { IncomingHttpHeaders } from 'http' export type HandlerParameters<ResponseBody> = { pathParameters: ParamsDictionary queryParameters: Query, requestHeaders: IncomingHttpHeaders request: express.Request re...
5
UriProtocol/DDI
288fb33
src/app/view/hero/form/form.component.ts
TypeScript
www.github.com/UriProtocol/DDI/tree/main/src/app/view/hero/form/form.component.ts
https://raw.githubusercontent.com/UriProtocol/DDI/288fb33/src/app/view/hero/form/form.component.ts
UriProtocol/DDI 288fb33 src/app/view/hero/form/form.component.ts
true
200
909
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; @Component({ selector: 'app-form', templateUrl: './form.component.html', styleUrls: ['./form.component.css'] }) export class FormComponent implements OnInit { hide = true hero={ id:"1"...
1
latitude-dev/static-embedding-examples
38c3787
nodejs/vite-node-server-plugin.ts
TypeScript
www.github.com/latitude-dev/static-embedding-examples/tree/main/nodejs/vite-node-server-plugin.ts
https://raw.githubusercontent.com/latitude-dev/static-embedding-examples/38c3787/nodejs/vite-node-server-plugin.ts
latitude-dev/static-embedding-examples 38c3787 nodejs/vite-node-server-plugin.ts
true
200
1,695
import { builtinModules } from 'module' import type { Plugin, UserConfig } from 'vite' export const nodeServerPlugin = (): Plugin => { const virtualEntryId = 'virtual:node-server-entry-module' const resolvedVirtualEntryId = '\0' + virtualEntryId return { name: '@hono/vite-node-server', resolveId(id) { ...
2
LeaG588/account-management-project
8124d1b
fronted/src/app/services/data.service.ts
TypeScript
www.github.com/LeaG588/account-management-project/tree/main/fronted/src/app/services/data.service.ts
https://raw.githubusercontent.com/LeaG588/account-management-project/8124d1b/fronted/src/app/services/data.service.ts
LeaG588/account-management-project 8124d1b fronted/src/app/services/data.service.ts
true
200
2,433
import { Injectable } from '@angular/core'; import { Customer, Expense, Receipt } from '../modules/interfaces'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class DataService { private baseUrl = 'http://127.0.0.1:3000' constru...
0
MarcusScottS/dockerizedCapstoneExample
03a38de
Customer-Front-End/customer-front-end/src/app/app-routing.module.ts
TypeScript
www.github.com/MarcusScottS/dockerizedCapstoneExample/tree/main/Customer-Front-End/customer-front-end/src/app/app-routing.module.ts
https://raw.githubusercontent.com/MarcusScottS/dockerizedCapstoneExample/03a38de/Customer-Front-End/customer-front-end/src/app/app-routing.module.ts
MarcusScottS/dockerizedCapstoneExample 03a38de Customer-Front-End/customer-front-end/src/app/app-routing.module.ts
true
200
3,446
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { RestaurantMenuComponent } from './pages/browsing/restaurant-menu/restaurant-menu.component'; import { RestaurantsComponent } from './pages/browsing/restaurants/restaurants.component'; import { OrderConfirmationCom...
3
agrawalanuj18/dreamlegal
625f146
src/app/api/senwelcome/route.ts
TypeScript
www.github.com/agrawalanuj18/dreamlegal/tree/main/src/app/api/senwelcome/route.ts
https://raw.githubusercontent.com/agrawalanuj18/dreamlegal/625f146/src/app/api/senwelcome/route.ts
agrawalanuj18/dreamlegal 625f146 src/app/api/senwelcome/route.ts
true
200
993
// pages/api/send-email.js import nodemailer from "nodemailer"; import { render } from "@react-email/components"; import VerificationEmail from "../../../../email/VerificationEmail"; import WelcomeEmail from "../../../../email/WelcomeEmail"; export async function POST(request: Request) { const { name, email } = awa...
4
MillerDeveloper/Wiki
abafcc2
server/src/models/user.model.ts
TypeScript
www.github.com/MillerDeveloper/Wiki/tree/main/server/src/models/user.model.ts
https://raw.githubusercontent.com/MillerDeveloper/Wiki/abafcc2/server/src/models/user.model.ts
MillerDeveloper/Wiki abafcc2 server/src/models/user.model.ts
true
200
1,622
import { compare } from 'bcryptjs' import { model, Schema } from 'mongoose' import isEmail from 'validator/lib/isEmail' // export interface IUserDocument extends IUser { // save: () => Promise<any> // comparePassword: (password: string) => Promise<boolean> // hasRight: (args: string, requiredRight: unknown...
7
AgnieszkaDra/KanbanBoard-TypeScript
be579d0
src/api/index.ts
TypeScript
www.github.com/AgnieszkaDra/KanbanBoard-TypeScript/tree/main/src/api/index.ts
https://raw.githubusercontent.com/AgnieszkaDra/KanbanBoard-TypeScript/be579d0/src/api/index.ts
AgnieszkaDra/KanbanBoard-TypeScript be579d0 src/api/index.ts
true
200
1,304
import { Todo } from "../types"; export const todos: Todo[] = [ { id: 1, title: 'Shopping', idColumn: 'Analysis-doing', user: 'Anna', completed: false }, { id: 2, title: 'Buy sofa', idColumn: 'Analysis-doing', user: 'Marek', complete...
5
seocho507/nest.js-practice
9660a76
src/common/common.module.ts
TypeScript
www.github.com/seocho507/nest.js-practice/tree/main/src/common/common.module.ts
https://raw.githubusercontent.com/seocho507/nest.js-practice/9660a76/src/common/common.module.ts
seocho507/nest.js-practice 9660a76 src/common/common.module.ts
true
200
361
import {Module} from "@nestjs/common"; import {CommonService} from "./common.service"; import {SelectQueryBuilder} from "typeorm"; import {PagePaginationDto} from "./dto/page-pagination.dto"; @Module( { imports: [], controllers: [], providers: [CommonService], exports: [CommonServic...
1
axiomario/design-patterns-ts
cd024e4
03-comportamiento/08-strategy.ts
TypeScript
www.github.com/axiomario/design-patterns-ts/tree/main/03-comportamiento/08-strategy.ts
https://raw.githubusercontent.com/axiomario/design-patterns-ts/cd024e4/03-comportamiento/08-strategy.ts
axiomario/design-patterns-ts cd024e4 03-comportamiento/08-strategy.ts
true
200
1,921
/** * ! Patrón Strategy * * El patrón Strategy es un patrón de diseño de software que define una * familia de algoritmos, los encapsula y los hace intercambiables. * * * * Es útil cuando se tiene una clase que tiene un comportamiento que puede * * cambiar en tiempo de ejecución y se quiere delegar la responsabi...
2
NastiaShul/GeekHub-HomeTasks
c304c45
homeTask16/src/services/user.servise.ts
TypeScript
www.github.com/NastiaShul/GeekHub-HomeTasks/tree/main/homeTask16/src/services/user.servise.ts
https://raw.githubusercontent.com/NastiaShul/GeekHub-HomeTasks/c304c45/homeTask16/src/services/user.servise.ts
NastiaShul/GeekHub-HomeTasks c304c45 homeTask16/src/services/user.servise.ts
true
200
472
import { User } from "../commons/types-and-interfaces"; export class UserService { db: User[] = []; private idCounter: number = 0; async addUser(username: string, password: string, isAdmin: boolean = false): Promise<User> { const user: User = { id: ++this.idCounter, username, password, isAdmin, } ...
3
rvoshchylo/recipe-finder-app
a9fccc9
lib/api/recipes.ts
TypeScript
www.github.com/rvoshchylo/recipe-finder-app/tree/main/lib/api/recipes.ts
https://raw.githubusercontent.com/rvoshchylo/recipe-finder-app/a9fccc9/lib/api/recipes.ts
rvoshchylo/recipe-finder-app a9fccc9 lib/api/recipes.ts
true
200
869
import { MAX_CACHE, TIME_FOR_CACHE } from "../constans"; import { instance } from "./instance"; import { LRUCache } from "lru-cache"; const API_KEY = process.env.NEXT_PUBLIC_SPOONACULAR_API_KEY; const cache = new LRUCache({ max: MAX_CACHE, ttl: TIME_FOR_CACHE, }); export const fetchRecipes = async ( query: str...
4
Hyle-org/vibe-check-frontend
f0d870d
scripts/erc20.ts
TypeScript
www.github.com/Hyle-org/vibe-check-frontend/tree/main/scripts/erc20.ts
https://raw.githubusercontent.com/Hyle-org/vibe-check-frontend/f0d870d/scripts/erc20.ts
Hyle-org/vibe-check-frontend f0d870d scripts/erc20.ts
true
200
1,679
import { broadcastTx, ensureContractsRegistered, setupCosmos } from "../src/cosmos"; import { proveERC20Transfer } from "../src/prover"; import * as fs from "fs"; const cosmos = setupCosmos("http://localhost:26657"); async function checkDigest() { const checkExists = await fetch("http://localhost:1317/hyle/zktx/v...
5
heshamelrefy/E-commerce-task
3fd23ce
src/app/screens/shopping-cart/shopping-cart.component.ts
TypeScript
www.github.com/heshamelrefy/E-commerce-task/tree/main/src/app/screens/shopping-cart/shopping-cart.component.ts
https://raw.githubusercontent.com/heshamelrefy/E-commerce-task/3fd23ce/src/app/screens/shopping-cart/shopping-cart.component.ts
heshamelrefy/E-commerce-task 3fd23ce src/app/screens/shopping-cart/shopping-cart.component.ts
true
200
1,025
import { Component } from '@angular/core'; import { ProducListService } from 'src/app/services/produc-list.service'; import { IProduct } from 'src/app/shared/interfaces/IProduct'; @Component({ selector: 'app-shopping-cart', templateUrl: './shopping-cart.component.html', styleUrls: ['./shopping-cart.component.scs...
0
andrvm/ionic-test
8d9aec2
src/app/services/auth.service.ts
TypeScript
www.github.com/andrvm/ionic-test/tree/main/src/app/services/auth.service.ts
https://raw.githubusercontent.com/andrvm/ionic-test/8d9aec2/src/app/services/auth.service.ts
andrvm/ionic-test 8d9aec2 src/app/services/auth.service.ts
true
200
2,181
import { Injectable, NgZone } from '@angular/core'; import { auth } from 'firebase/app'; import { Router } from '@angular/router'; import { AngularFireAuth } from '@angular/fire/auth'; import { AngularFirestore, AngularFirestoreDocument } from '@angular/fire/firestore'; import { User } from '../shared/user.model'; @In...
1
Shubhi-Pandey/express-js-e-commerce-rest-api
ce6df23
src/entities/product.entity.ts
TypeScript
www.github.com/Shubhi-Pandey/express-js-e-commerce-rest-api/tree/main/src/entities/product.entity.ts
https://raw.githubusercontent.com/Shubhi-Pandey/express-js-e-commerce-rest-api/ce6df23/src/entities/product.entity.ts
Shubhi-Pandey/express-js-e-commerce-rest-api ce6df23 src/entities/product.entity.ts
true
200
987
import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm"; import { Common } from "./common.entity"; import { Category } from "./category.entity"; import { Orders } from "./order.entity"; @Entity() export class Product extends Common{ @Column({length:200}) name:string @Column() d...
2
advanced-rising/photo-map
99e54e6
server/src/app.ts
TypeScript
www.github.com/advanced-rising/photo-map/tree/main/server/src/app.ts
https://raw.githubusercontent.com/advanced-rising/photo-map/99e54e6/server/src/app.ts
advanced-rising/photo-map 99e54e6 server/src/app.ts
true
200
2,514
import { createExpressRouters } from '@interface/http'; import { domainErrHandler } from '@interface/middleware/errorHandler'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import cors from 'cors'; import express, { NextFunction, Request, Response } from 'express'; import http from 'h...
4
tehfonsi/taxler
66b0779
src/common/cache.ts
TypeScript
www.github.com/tehfonsi/taxler/tree/main/src/common/cache.ts
https://raw.githubusercontent.com/tehfonsi/taxler/66b0779/src/common/cache.ts
tehfonsi/taxler 66b0779 src/common/cache.ts
true
200
853
import { DI } from '../di.config'; import CommonIO from '../io/common-io'; export default class Cache { private static CACHE_DIRECTORY: string; public static getCacheDirectory() { if (!this.CACHE_DIRECTORY) { this.CACHE_DIRECTORY = (DI().get('Path') as string) + '.cache'; } return this.CACHE_DIR...
5
suketchauhan/ez_payroll_front
d1efed8
src/app/applicationSettings/organisationSetup/organisationSetup/masters/organisationSetup/year-bulk-upload/year-bulk-upload.service.spec.ts
TypeScript
www.github.com/suketchauhan/ez_payroll_front/tree/main/src/app/applicationSettings/organisationSetup/organisationSetup/masters/organisationSetup/year-bulk-upload/year-bulk-upload.service.spec.ts
https://raw.githubusercontent.com/suketchauhan/ez_payroll_front/d1efed8/src/app/applicationSettings/organisationSetup/organisationSetup/masters/organisationSetup/year-bulk-upload/year-bulk-upload.service.spec.ts
suketchauhan/ez_payroll_front d1efed8 src/app/applicationSettings/organisationSetup/organisationSetup/masters/organisationSetup/year-bulk-upload/year-bulk-upload.service.spec.ts
true
200
399
import { TestBed } from '@angular/core/testing'; import { YearBulkUploadService } from './year-bulk-upload.service'; describe('YearBulkUploadService', () => { let service: YearBulkUploadService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(YearBulkUploadService); }); ...
0
akazad13/adda
aac1392
frontend/src/app/nav/nav.component.ts
TypeScript
www.github.com/akazad13/adda/tree/main/frontend/src/app/nav/nav.component.ts
https://raw.githubusercontent.com/akazad13/adda/aac1392/frontend/src/app/nav/nav.component.ts
akazad13/adda aac1392 frontend/src/app/nav/nav.component.ts
true
200
1,944
import { Component, OnInit, OnDestroy } from '@angular/core'; import { Router, RouterLink } from '@angular/router'; import { AuthService } from '../services/auth.service'; import { AlertifyService } from '../services/alertify.service'; import { firstValueFrom, Subscription } from 'rxjs'; import { FormsModule } from '@a...
2
tarushi16/Car-Manufaturing-fullStack
e9aa8b3
new-frontend/src/app/car-models/car-models.component.spec.ts
TypeScript
www.github.com/tarushi16/Car-Manufaturing-fullStack/tree/main/new-frontend/src/app/car-models/car-models.component.spec.ts
https://raw.githubusercontent.com/tarushi16/Car-Manufaturing-fullStack/e9aa8b3/new-frontend/src/app/car-models/car-models.component.spec.ts
tarushi16/Car-Manufaturing-fullStack e9aa8b3 new-frontend/src/app/car-models/car-models.component.spec.ts
true
200
618
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CarModelsComponent } from './car-models.component'; describe('CarModelsComponent', () => { let component: CarModelsComponent; let fixture: ComponentFixture<CarModelsComponent>; beforeEach(async () => { await TestBed.configureTestin...
1
Rafael-Rufino/myskill_mobile
72bb6f3
src/components/button/styles.ts
TypeScript
www.github.com/Rafael-Rufino/myskill_mobile/tree/main/src/components/button/styles.ts
https://raw.githubusercontent.com/Rafael-Rufino/myskill_mobile/72bb6f3/src/components/button/styles.ts
Rafael-Rufino/myskill_mobile 72bb6f3 src/components/button/styles.ts
true
200
404
import { StyleSheet } from 'react-native' export const styles = StyleSheet.create({ background: { backgroundColor: 'green', marginVertical: 20, padding: 10, alignItems: 'center', justifyContent: 'center', height: 50, borderRadius: 4, borderColor: 'green', borderWidth: 1, }, bu...
3
En-Theos/Pawnshop-Diploma-5_course
83d477f
src/store/store.ts
TypeScript
www.github.com/En-Theos/Pawnshop-Diploma-5_course/tree/main/src/store/store.ts
https://raw.githubusercontent.com/En-Theos/Pawnshop-Diploma-5_course/83d477f/src/store/store.ts
En-Theos/Pawnshop-Diploma-5_course 83d477f src/store/store.ts
true
200
475
import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit'; import lots from '../slices/lots'; import modal from '../slices/modal'; import user from '../slices/user'; export const store = configureStore({ reducer: {lots, modal, user} }); export type AppDispatch = typeof store.dispatch; export type Root...
5
AzaKamala/school-management-system-microservice
d428c86
audit-service/src/DTOs/auditLogDTO.ts
TypeScript
www.github.com/AzaKamala/school-management-system-microservice/tree/main/audit-service/src/DTOs/auditLogDTO.ts
https://raw.githubusercontent.com/AzaKamala/school-management-system-microservice/d428c86/audit-service/src/DTOs/auditLogDTO.ts
AzaKamala/school-management-system-microservice d428c86 audit-service/src/DTOs/auditLogDTO.ts
true
200
971
export default class AuditLogDTO { id: string; tenantId?: string; userId?: string; email: string; action: string; status: string; ip?: string; userAgent?: string; metadata?: any; createdAt: Date; constructor( id: string, email: string, action: string, status: string, createdAt...
3
melvia-system/flaff
928e39d
server/plugins/db.ts
TypeScript
www.github.com/melvia-system/flaff/tree/main/server/plugins/db.ts
https://raw.githubusercontent.com/melvia-system/flaff/928e39d/server/plugins/db.ts
melvia-system/flaff 928e39d server/plugins/db.ts
true
200
584
import path from 'path' import { prisma } from "@/server/lib/db" import { storage } from '@/server/lib/storage' export default defineNitroPlugin(async (nitroApp) => { console.log(`[nitro:db] connecting to database`) await prisma.$connect() console.log(`[nitro:db] connected to database`) console.log(`[nitro:db]...
2
sadahussain123567/TYPESCRIPT-45-ASSIGMENTS
68413bf
ASSIGMENT-NO-33/text.ts
TypeScript
www.github.com/sadahussain123567/TYPESCRIPT-45-ASSIGMENTS/tree/main/ASSIGMENT-NO-33/text.ts
https://raw.githubusercontent.com/sadahussain123567/TYPESCRIPT-45-ASSIGMENTS/68413bf/ASSIGMENT-NO-33/text.ts
sadahussain123567/TYPESCRIPT-45-ASSIGMENTS 68413bf ASSIGMENT-NO-33/text.ts
true
200
770
// ////arrray banae hy number wale // let numbers=[1,2,3,4,5,6,7,8,9]; // ///for loop use kia hy // for( let one_number of numbers){ // let ordinalEnding:string; // ///for loop work nhi kr rha error araha hy // if(one_number ===1){ // ordinalEnding ="st" // } // else if(one_number ==2){ // ordi...
4
vitalyableat/gym
ec10fd4
src/services/subscription/subscription.service.ts
TypeScript
www.github.com/vitalyableat/gym/tree/main/src/services/subscription/subscription.service.ts
https://raw.githubusercontent.com/vitalyableat/gym/ec10fd4/src/services/subscription/subscription.service.ts
vitalyableat/gym ec10fd4 src/services/subscription/subscription.service.ts
true
200
949
import { action, makeObservable, observable } from 'mobx'; import { privateApi } from '../index'; import { ISubscription } from '../../interfaces'; import { ISubscriptionService } from './subscription.types'; class SubscriptionService implements ISubscriptionService { endpoint = 'subscriptions' as const; subscript...
0
orlando1376/effects-app
5146d3f
src/app/users/user/user.component.ts
TypeScript
www.github.com/orlando1376/effects-app/tree/main/src/app/users/user/user.component.ts
https://raw.githubusercontent.com/orlando1376/effects-app/5146d3f/src/app/users/user/user.component.ts
orlando1376/effects-app 5146d3f src/app/users/user/user.component.ts
true
200
822
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { AppState } from '../../store/app.reducer'; import { Store } from '@ngrx/store'; import { cargarUsuario } from 'src/app/store/actions'; import { User } from '../../models/user.model'; import { filter } from 'rxj...
5
tsg-shreyash-kumar/AngularSPA
db6935b
src/app/shared/backfill-form/backfill-form.component.ts
TypeScript
www.github.com/tsg-shreyash-kumar/AngularSPA/tree/main/src/app/shared/backfill-form/backfill-form.component.ts
https://raw.githubusercontent.com/tsg-shreyash-kumar/AngularSPA/db6935b/src/app/shared/backfill-form/backfill-form.component.ts
tsg-shreyash-kumar/AngularSPA db6935b src/app/shared/backfill-form/backfill-form.component.ts
true
200
7,346
import { Component, OnInit, EventEmitter, Output } from '@angular/core'; import { BsModalRef } from 'ngx-bootstrap/modal'; import { Project } from 'src/app/shared/interfaces/project.interface'; import { ResourceAllocation } from 'src/app/shared/interfaces/resourceAllocation.interface'; import { DateService } from 'src/...
1
pbasiak/dev-fox-ui-mui-dashboard-theme
1cf161c
src/hooks/api/use-blog-post/useBlogPost.ts
TypeScript
www.github.com/pbasiak/dev-fox-ui-mui-dashboard-theme/tree/main/src/hooks/api/use-blog-post/useBlogPost.ts
https://raw.githubusercontent.com/pbasiak/dev-fox-ui-mui-dashboard-theme/1cf161c/src/hooks/api/use-blog-post/useBlogPost.ts
pbasiak/dev-fox-ui-mui-dashboard-theme 1cf161c src/hooks/api/use-blog-post/useBlogPost.ts
true
200
399
import { useSuspenseQuery } from '@tanstack/react-query'; import blogPost from '../../../mocks/blog/blog-post.json'; import { BlogPostType } from './types'; import post1 from '../../../mocks/blog/assets/post1.png'; export const useBlogPost = (): BlogPostType => { return useSuspenseQuery({ queryKey: ['blogPost'],...
3
preyesca/TEGIUM.FRONT.FIANZAS
b5ac99d
src/app/shared/views/layouts/private-layout/navbar/navbar.component.ts
TypeScript
www.github.com/preyesca/TEGIUM.FRONT.FIANZAS/tree/main/src/app/shared/views/layouts/private-layout/navbar/navbar.component.ts
https://raw.githubusercontent.com/preyesca/TEGIUM.FRONT.FIANZAS/b5ac99d/src/app/shared/views/layouts/private-layout/navbar/navbar.component.ts
preyesca/TEGIUM.FRONT.FIANZAS b5ac99d src/app/shared/views/layouts/private-layout/navbar/navbar.component.ts
true
200
3,534
import { DatePipe } from '@angular/common'; import { Component, OnInit, ViewChild } from '@angular/core'; import { CountdownComponent, CountdownConfig, CountdownEvent, CountdownStatus, } from 'ngx-countdown'; import { AuthService } from 'src/app/modules/authentication/services/auth.service'; import { FnzSearchD...
2
NGUYEN-VAN-DAY/asm_fe1
1caa85c
main/src/app/pages/ui-components/add-product/add-product.component.ts
TypeScript
www.github.com/NGUYEN-VAN-DAY/asm_fe1/tree/main/main/src/app/pages/ui-components/add-product/add-product.component.ts
https://raw.githubusercontent.com/NGUYEN-VAN-DAY/asm_fe1/1caa85c/main/src/app/pages/ui-components/add-product/add-product.component.ts
NGUYEN-VAN-DAY/asm_fe1 1caa85c main/src/app/pages/ui-components/add-product/add-product.component.ts
true
200
392
import { Component } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; @Component({ selector: 'app-add-product', imports: [], templateUrl: './add-product.component.html', styleUrl: ...
4
jha-adrs/okdm-backend
0d3d32a
src/config/logger.ts
TypeScript
www.github.com/jha-adrs/okdm-backend/tree/main/src/config/logger.ts
https://raw.githubusercontent.com/jha-adrs/okdm-backend/0d3d32a/src/config/logger.ts
jha-adrs/okdm-backend 0d3d32a src/config/logger.ts
true
200
2,137
//Sample Logger import winston from 'winston'; import { config } from "./config"; import { Logtail } from '@logtail/node'; import { LogtailTransport } from '@logtail/winston'; const env = config.env; const isLocal = env === 'development'; const lotail = new Logtail(config.api_keys.logtail) const levels = { error: ...
5
kirill-krasuk/donut_boilerplate
55feabf
src/shared/enums/key-codes.ts
TypeScript
www.github.com/kirill-krasuk/donut_boilerplate/tree/main/src/shared/enums/key-codes.ts
https://raw.githubusercontent.com/kirill-krasuk/donut_boilerplate/55feabf/src/shared/enums/key-codes.ts
kirill-krasuk/donut_boilerplate 55feabf src/shared/enums/key-codes.ts
true
200
2,104
export enum KeyCodes { Escape = 'Escape', Backspace = 'Backspace', Tab = 'Tab', Enter = 'Enter', Space = 'Space', ControlLeft = 'ControlLeft', ControlRight = 'ControlRight', AltLeft = 'AltLeft', AltRight = 'AltRight', ShiftLeft = 'ShiftLeft', ShiftRight = 'ShiftRight', MetaLeft = 'MetaLeft', MetaRight = '...
1
isee2697/bricr-spa
5625cfa
src/app/crmRelationsDetails/personalInformation/general/General.styles.ts
TypeScript
www.github.com/isee2697/bricr-spa/tree/main/src/app/crmRelationsDetails/personalInformation/general/General.styles.ts
https://raw.githubusercontent.com/isee2697/bricr-spa/5625cfa/src/app/crmRelationsDetails/personalInformation/general/General.styles.ts
isee2697/bricr-spa 5625cfa src/app/crmRelationsDetails/personalInformation/general/General.styles.ts
true
200
394
import makeStyles from '@material-ui/core/styles/makeStyles'; export const useStyles = makeStyles(theme => ({ header: { alignItems: 'center', marginBottom: theme.spacing(3), }, title: { flex: '1 1 auto', }, textFieldAbout: { '& .MuiInputBase-input': { padding: theme.spacing(1.5, 2), ...
2
Mongithabet/barsha-food-api
12d9a7b
src/resto/resto-items/controllers/resto-items.controller.ts
TypeScript
www.github.com/Mongithabet/barsha-food-api/tree/main/src/resto/resto-items/controllers/resto-items.controller.ts
https://raw.githubusercontent.com/Mongithabet/barsha-food-api/12d9a7b/src/resto/resto-items/controllers/resto-items.controller.ts
Mongithabet/barsha-food-api 12d9a7b src/resto/resto-items/controllers/resto-items.controller.ts
true
200
922
import { Body, Controller, Get, Param, Post, Query, UseGuards } from '@nestjs/common'; import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'; import { JwtAuthGuard } from 'src/shared/guards/jwt-auth.guard'; import { ItemsService } from '../../../items/items.service'; import { CreateItemDto } from '../../../items/dto...
0
andreflp/gofinances-api
0e2b704
src/database/migrations/1596978545020-CreateCategories.ts
TypeScript
www.github.com/andreflp/gofinances-api/tree/main/src/database/migrations/1596978545020-CreateCategories.ts
https://raw.githubusercontent.com/andreflp/gofinances-api/0e2b704/src/database/migrations/1596978545020-CreateCategories.ts
andreflp/gofinances-api 0e2b704 src/database/migrations/1596978545020-CreateCategories.ts
true
200
793
import { MigrationInterface, QueryRunner, Table } from "typeorm"; export class CreateCategories1596978545020 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.createTable(new Table({ name: 'categories', columns: [ { name: 'id', type: '...
4
sanatan-dive/Devnovate
d0cb8d7
src/app/api/hackathons/[id]/route.ts
TypeScript
www.github.com/sanatan-dive/Devnovate/tree/main/src/app/api/hackathons/[id]/route.ts
https://raw.githubusercontent.com/sanatan-dive/Devnovate/d0cb8d7/src/app/api/hackathons/%5Bid%5D/route.ts
sanatan-dive/Devnovate d0cb8d7 src/app/api/hackathons/[id]/route.ts
true
200
1,013
import { NextRequest, NextResponse } from 'next/server'; import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); export async function GET(req: NextRequest, { params }: { params: { id: string } }) { const { id } = params; if (!id) { return NextResponse.json({ error: 'Invalid hackath...
5
srishtiigautam/next-portfolio
8974cab
src/app/api/uiuxdesign/route.ts
TypeScript
www.github.com/srishtiigautam/next-portfolio/tree/main/src/app/api/uiuxdesign/route.ts
https://raw.githubusercontent.com/srishtiigautam/next-portfolio/8974cab/src/app/api/uiuxdesign/route.ts
srishtiigautam/next-portfolio 8974cab src/app/api/uiuxdesign/route.ts
true
200
1,066
import { NextResponse } from "next/server"; import dbConnect from "@/utils/dbConnect.util"; import UIUX from "@/models/uiux.model"; // GET: Fetch all UI/UX designs export async function GET() { await dbConnect(); const uiuxDesigns = await UIUX.find(); return NextResponse.json(uiuxDesigns); } // POST: Add a new ...
2
oneyoung19/learn-typescript
545e678
src/1.base/1-1.declare.ts
TypeScript
www.github.com/oneyoung19/learn-typescript/tree/main/src/1.base/1-1.declare.ts
https://raw.githubusercontent.com/oneyoung19/learn-typescript/545e678/src/1.base/1-1.declare.ts
oneyoung19/learn-typescript 545e678 src/1.base/1-1.declare.ts
true
200
539
// 类型声明 // 在变量或者表达式后边加冒号 let age:number = 19 function getName(name:string):string { return name } // yarn add @types/node -D // https://www.zhihu.com/question/470016632/answer/1978489216 console.log(age) // 报错 // let num:number = 'Hello world' // const obj:object = { // name: 'Tom' // } // console.log(obj.nam...
1
Yproshot/adonis
79e0215
lanchonete/app/controllers/cargos_controller.ts
TypeScript
www.github.com/Yproshot/adonis/tree/main/lanchonete/app/controllers/cargos_controller.ts
https://raw.githubusercontent.com/Yproshot/adonis/79e0215/lanchonete/app/controllers/cargos_controller.ts
Yproshot/adonis 79e0215 lanchonete/app/controllers/cargos_controller.ts
true
200
1,126
import Cargo from '#models/cargo' import type { HttpContext } from '@adonisjs/core/http' export default class CargosController { async index({ request }: HttpContext) { const page = request.input('page', 1) const perpage = request.input('perpage', 10) return await Cargo.query().pagina...
3
sebastian-vargas/demotaller
d07899a
src/app/pages/tabs/workshops/workshops.page.ts
TypeScript
www.github.com/sebastian-vargas/demotaller/tree/main/src/app/pages/tabs/workshops/workshops.page.ts
https://raw.githubusercontent.com/sebastian-vargas/demotaller/d07899a/src/app/pages/tabs/workshops/workshops.page.ts
sebastian-vargas/demotaller d07899a src/app/pages/tabs/workshops/workshops.page.ts
true
200
4,931
import { Component, OnInit, AfterViewInit, ViewChild } from "@angular/core"; import { NavController, IonVirtualScroll, IonInfiniteScroll, } from "@ionic/angular"; import { delay } from "rxjs/operators"; import { Workshop } from "src/app/models/workshop.model"; import { Subscription } from "rxjs"; import { AuthSe...
0
EmanuelFromFlorence/ion-3D-Engine
28e1d40
src/engine/control/vr-control.ts
TypeScript
www.github.com/EmanuelFromFlorence/ion-3D-Engine/tree/main/src/engine/control/vr-control.ts
https://raw.githubusercontent.com/EmanuelFromFlorence/ion-3D-Engine/28e1d40/src/engine/control/vr-control.ts
EmanuelFromFlorence/ion-3D-Engine 28e1d40 src/engine/control/vr-control.ts
true
200
12,916
import * as THREE from 'three'; import { VRButton } from 'three/examples/jsm/webxr/VRButton.js'; import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerModelFactory.js'; import { defaultPersonHeight, zIndex } from '../../core/constants'; import { resetCameraPosition } from '../../core/utils/util...
5
delino1win/local-shop
294ab49
src/app/api/product/route.ts
TypeScript
www.github.com/delino1win/local-shop/tree/main/src/app/api/product/route.ts
https://raw.githubusercontent.com/delino1win/local-shop/294ab49/src/app/api/product/route.ts
delino1win/local-shop 294ab49 src/app/api/product/route.ts
true
200
640
import connectMongoDataBase from "@/libs/mongodb"; import Product from "@/models/product"; import { NextRequest, NextResponse } from "next/server"; export async function GET () { await connectMongoDataBase() try { const productList = await Product.find().populate<{user : {username : string}}>({ ...
4
mauroquinteros/restaurant-api
6f3845f
apps/orders/src/domain/entities/recipes.ts
TypeScript
www.github.com/mauroquinteros/restaurant-api/tree/main/apps/orders/src/domain/entities/recipes.ts
https://raw.githubusercontent.com/mauroquinteros/restaurant-api/6f3845f/apps/orders/src/domain/entities/recipes.ts
mauroquinteros/restaurant-api 6f3845f apps/orders/src/domain/entities/recipes.ts
true
200
488
import { IRecipe } from '../interfaces'; export class Recipes { static getRandomRecipes(quantity: number, recipes: IRecipe[]) { const randomRecipes: IRecipe[] = []; if (recipes.length > 0) { for (let i = 0; i < quantity; i++) { const randomValue = Math.floor(Math.random() * recipes.length); ...
1
MedhatElbesy/SwiftBuy
3477e4c
Frontend/src/app/services/cart.service.ts
TypeScript
www.github.com/MedhatElbesy/SwiftBuy/tree/main/Frontend/src/app/services/cart.service.ts
https://raw.githubusercontent.com/MedhatElbesy/SwiftBuy/3477e4c/Frontend/src/app/services/cart.service.ts
MedhatElbesy/SwiftBuy 3477e4c Frontend/src/app/services/cart.service.ts
true
200
1,581
// src/app/cart.service.ts import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { Cart, ApiResponse } from '../models/cart'; import { Order, OrderRequest } from '../models/order'; @Inj...
2
ArthurBarrosNascimento/trybesmith
1c024f0
src/middleware/varifyFIeldsUser.ts
TypeScript
www.github.com/ArthurBarrosNascimento/trybesmith/tree/main/src/middleware/varifyFIeldsUser.ts
https://raw.githubusercontent.com/ArthurBarrosNascimento/trybesmith/1c024f0/src/middleware/varifyFIeldsUser.ts
ArthurBarrosNascimento/trybesmith 1c024f0 src/middleware/varifyFIeldsUser.ts
true
200
370
import { NextFunction, Request, Response } from 'express'; const verifyUser = (req: Request, res: Response, next: NextFunction) => { const { name, amount } = req.body; if (!name) return res.status(400).json({ message: '"name" is required' }); if (!amount) return res.status(400).json({ message: '"amount" is requi...
3
claro-bruno/globalBackend
ae208b5
src/modules/contractors/useCases/GetContractor/GetContractorController.ts
TypeScript
www.github.com/claro-bruno/globalBackend/tree/main/src/modules/contractors/useCases/GetContractor/GetContractorController.ts
https://raw.githubusercontent.com/claro-bruno/globalBackend/ae208b5/src/modules/contractors/useCases/GetContractor/GetContractorController.ts
claro-bruno/globalBackend ae208b5 src/modules/contractors/useCases/GetContractor/GetContractorController.ts
true
200
453
import {NextFunction, Request, Response} from "express"; import { GetContractorUseCase} from "./GetContractorUseCase"; export class GetContractorController { async handle(request: Request, response: Response, next: NextFunction) { const { id } = request.params; const getContractorUseCase = new Get...
0
Helsinki-Code/vranceflex
799ab87
src/index.ts
TypeScript
www.github.com/Helsinki-Code/vranceflex/tree/main/src/index.ts
https://raw.githubusercontent.com/Helsinki-Code/vranceflex/799ab87/src/index.ts
Helsinki-Code/vranceflex 799ab87 src/index.ts
true
200
1,992
// src/index.ts import { getAssetFromKV } from '@cloudflare/kv-asset-handler'; declare const STATIC_CONTENT: KVNamespace; declare const __STATIC_CONTENT_MANIFEST: string; export interface Env { STATIC_CONTENT: KVNamespace; NEXT_PUBLIC_SERVER_URL: string; } export default { async fetch(request: Request, env: En...
5
faust300/OG-Community
ef0e213
src/notifications/notifications.service.ts
TypeScript
www.github.com/faust300/OG-Community/tree/main/src/notifications/notifications.service.ts
https://raw.githubusercontent.com/faust300/OG-Community/ef0e213/src/notifications/notifications.service.ts
faust300/OG-Community ef0e213 src/notifications/notifications.service.ts
true
200
3,882
import { Injectable } from '@nestjs/common'; import { ConnectionService } from 'src/extensions/services/connection.service'; import SQL from 'sql-template-strings'; import { Notification } from './entities/notification.entity'; @Injectable() export class NotificationsService { constructor(private readonly connection...
1
diagonalbeam/trip
1f1ad4a
src/services/travel.ts
TypeScript
www.github.com/diagonalbeam/trip/tree/main/src/services/travel.ts
https://raw.githubusercontent.com/diagonalbeam/trip/1f1ad4a/src/services/travel.ts
diagonalbeam/trip 1f1ad4a src/services/travel.ts
true
200
2,968
import Axios from 'axios' import { axios } from '.' import type { Page, PageResponse } from './' import { downloadFile } from '@/utils/file' import { getToken } from '@/utils/token' export type TravelLineListItem = { id: string title: string location: string } export const enum TravelLineStatus { SEARCH = 0, ...
4
kirannandedkar/MMN-FrontEnd
217c6fe
app/types/Interfaces.ts
TypeScript
www.github.com/kirannandedkar/MMN-FrontEnd/tree/main/app/types/Interfaces.ts
https://raw.githubusercontent.com/kirannandedkar/MMN-FrontEnd/217c6fe/app/types/Interfaces.ts
kirannandedkar/MMN-FrontEnd 217c6fe app/types/Interfaces.ts
true
200
475
export interface ICompact { id: number; name: string; description: string; eventDate: string; eventMonth: string; eventImagePath: string; eventAddress: string; isEventOpenedForRegistration: boolean; isEventFinished: boolean; isEventRegistrationClosed: boolean; eventRegistrati...
3
rootvc/dreambooth
2a57577
app/src/events/booth/photos.ts
TypeScript
www.github.com/rootvc/dreambooth/tree/main/app/src/events/booth/photos.ts
https://raw.githubusercontent.com/rootvc/dreambooth/2a57577/app/src/events/booth/photos.ts
rootvc/dreambooth 2a57577 app/src/events/booth/photos.ts
true
200
634
import { STATUS } from "../constants"; import { defineFunction } from "../tools"; export default defineFunction( "Process a new set of photos", "dreambooth/booth.photos", async ({ tools: { run, send, redis }, event: { data: { phone, key }, }, }) => { await run("store ts", async () => { ...
2
BohdanaKh/crm-programming-school-client
4037112
src/validators/filters.validator.ts
TypeScript
www.github.com/BohdanaKh/crm-programming-school-client/tree/main/src/validators/filters.validator.ts
https://raw.githubusercontent.com/BohdanaKh/crm-programming-school-client/4037112/src/validators/filters.validator.ts
BohdanaKh/crm-programming-school-client 4037112 src/validators/filters.validator.ts
true
200
2,189
import Joi from "joi"; import { ECourse, ECourseFormat, ECourseType, EStatus } from "../interfaces"; export const filtersValidator = Joi.object({ group: Joi.string() .allow("") .regex(/^[a-zA-Zа-щА-ЩЬьЮюЯяЇїІіЄєҐґ0-9'-]+$/) .messages({ "string.pattern.base": "Allowed letters and numbers, - symbol"...
0
LupaSeal/jae-pdb-taaw-backend-master
c0669b6
src/main/webapp/app/shared/model/device-template-fan-extension.model.ts
TypeScript
www.github.com/LupaSeal/jae-pdb-taaw-backend-master/tree/main/src/main/webapp/app/shared/model/device-template-fan-extension.model.ts
https://raw.githubusercontent.com/LupaSeal/jae-pdb-taaw-backend-master/c0669b6/src/main/webapp/app/shared/model/device-template-fan-extension.model.ts
LupaSeal/jae-pdb-taaw-backend-master c0669b6 src/main/webapp/app/shared/model/device-template-fan-extension.model.ts
true
200
1,121
import { type IDeviceTemplateFan } from '@/shared/model/device-template-fan.model'; import { type IFanDiffusor } from '@/shared/model/fan-diffusor.model'; import { type Material } from '@/shared/model/enumerations/material.model'; export interface IDeviceTemplateFanExtension { id?: number; excluded?: boolean | nul...
1
turkayurkmez/credit-west-angular
2e05e49
projectTracker/src/app/add-project/add-project.component.ts
TypeScript
www.github.com/turkayurkmez/credit-west-angular/tree/main/projectTracker/src/app/add-project/add-project.component.ts
https://raw.githubusercontent.com/turkayurkmez/credit-west-angular/2e05e49/projectTracker/src/app/add-project/add-project.component.ts
turkayurkmez/credit-west-angular 2e05e49 projectTracker/src/app/add-project/add-project.component.ts
true
200
1,146
import { Component, OnInit } from '@angular/core'; import { Project } from '../models/project.model'; import { NgForm } from '@angular/forms'; import { CategoriesService } from '../services/categories.service'; import { Category } from '../models/category.model'; import { ProjectsService } from '../services/projects.se...
4
gfallasc/dynamic-form
f2bb5cb
src/appStore.ts
TypeScript
www.github.com/gfallasc/dynamic-form/tree/main/src/appStore.ts
https://raw.githubusercontent.com/gfallasc/dynamic-form/f2bb5cb/src/appStore.ts
gfallasc/dynamic-form f2bb5cb src/appStore.ts
true
200
369
import { configureStore } from '@reduxjs/toolkit' import formReducer from './JobApplicationForm/formReducer' export const store = configureStore({ reducer: { form: formReducer }, }); // Infer the `AppState` and `AppDispatch` types from the store itself export type AppState = ReturnType<typeof store.getState>;...
7
JonR205/KTSOCM
d926bca
src/data/faction.ts
TypeScript
www.github.com/JonR205/KTSOCM/tree/main/src/data/faction.ts
https://raw.githubusercontent.com/JonR205/KTSOCM/d926bca/src/data/faction.ts
JonR205/KTSOCM d926bca src/data/faction.ts
true
200
908
import { Equipment } from './equipment.ts' import { Requisition } from './requisition.ts' import { hearthkynSalvager } from '../factions/hearthkynSalvager.ts' import { legionary } from '../factions/legionary.ts' import { kommando } from '../factions/kommando.ts' import { farstalkerKinband } from '../factions/farstalker...
5
Noopur19/Uber-clone
b651f54
src/lib/utility.ts
TypeScript
www.github.com/Noopur19/Uber-clone/tree/main/src/lib/utility.ts
https://raw.githubusercontent.com/Noopur19/Uber-clone/b651f54/src/lib/utility.ts
Noopur19/Uber-clone b651f54 src/lib/utility.ts
true
200
718
import bcrypt from 'bcryptjs'; export const hashPassword = async (password: string) => { const saltRounds = 10; try { const salt = await bcrypt.genSalt(saltRounds); const hashedPassword = await bcrypt.hash(password, salt); console.log(hashedPassword,'hashedPassword') return hashedPassword; } catc...
2
sivizdral/Magnolia-Hub
b855f22
frontend/src/app/services/chat.service.ts
TypeScript
www.github.com/sivizdral/Magnolia-Hub/tree/main/frontend/src/app/services/chat.service.ts
https://raw.githubusercontent.com/sivizdral/Magnolia-Hub/b855f22/frontend/src/app/services/chat.service.ts
sivizdral/Magnolia-Hub b855f22 frontend/src/app/services/chat.service.ts
true
200
2,708
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ChatService { constructor(private http: HttpClient) { } getChat(user, workshop, organizer): Observable<any> { return this.http.g...
0
HK0106/funny_movies
18506e7
backend/src/app/shareVideo/shareVideo.controller.ts
TypeScript
www.github.com/HK0106/funny_movies/tree/main/backend/src/app/shareVideo/shareVideo.controller.ts
https://raw.githubusercontent.com/HK0106/funny_movies/18506e7/backend/src/app/shareVideo/shareVideo.controller.ts
HK0106/funny_movies 18506e7 backend/src/app/shareVideo/shareVideo.controller.ts
true
200
989
import { Body, Controller, Get, Post, Req, UseGuards, UsePipes, ValidationPipe, } from "@nestjs/common"; import { ShareVideoService } from "./shareVideo.service"; import { AuthGuard } from "@nestjs/passport"; import { ShareVideoDto } from "./dto/shareVideo.dto"; import { ShareVideoResponse } from "./int...
1
vincent-contreras/rails-blog-vue-client
b22bc02
src/router/index.ts
TypeScript
www.github.com/vincent-contreras/rails-blog-vue-client/tree/main/src/router/index.ts
https://raw.githubusercontent.com/vincent-contreras/rails-blog-vue-client/b22bc02/src/router/index.ts
vincent-contreras/rails-blog-vue-client b22bc02 src/router/index.ts
true
200
1,307
/** * router/index.ts * * Automatic routes for `./src/pages/*.vue` */ // Composables import { createRouter, createWebHistory } from 'vue-router/auto' import HomeView from '../pages/index.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', ...
5
SailingPen-IMS-and-LMS/SailingPen-backend
7754af8
src/utils/FileUploader.ts
TypeScript
www.github.com/SailingPen-IMS-and-LMS/SailingPen-backend/tree/main/src/utils/FileUploader.ts
https://raw.githubusercontent.com/SailingPen-IMS-and-LMS/SailingPen-backend/7754af8/src/utils/FileUploader.ts
SailingPen-IMS-and-LMS/SailingPen-backend 7754af8 src/utils/FileUploader.ts
true
200
1,832
import { MemoryStoredFile } from 'nestjs-form-data'; import { Injectable } from '@nestjs/common'; import { PutObjectCommand, S3Client, S3ClientConfig } from '@aws-sdk/client-s3'; import { v4 as uuid4 } from 'uuid'; import { File } from '@web-std/file'; @Injectable() export class FileUploader { AWS_S3_BUCKET = 'saili...
3
dannlea/easychurch
7938e2b
src/core/utils/apiUtils.ts
TypeScript
www.github.com/dannlea/easychurch/tree/main/src/core/utils/apiUtils.ts
https://raw.githubusercontent.com/dannlea/easychurch/7938e2b/src/core/utils/apiUtils.ts
dannlea/easychurch 7938e2b src/core/utils/apiUtils.ts
true
200
3,483
/** * API Utility Functions * * This module provides functions for working with API URLs and requests * to ensure consistent formatting and error handling. */ /** * Gets the base URL for API requests, ensuring proper format * - Removes trailing slashes from NEXT_PUBLIC_LOCAL_SERVER * - Returns the normalized s...
2
sqw1sh/diploma
b2d74b4
src/app/shared/components/dialog-consultation/dialog-consultation.component.ts
TypeScript
www.github.com/sqw1sh/diploma/tree/main/src/app/shared/components/dialog-consultation/dialog-consultation.component.ts
https://raw.githubusercontent.com/sqw1sh/diploma/b2d74b4/src/app/shared/components/dialog-consultation/dialog-consultation.component.ts
sqw1sh/diploma b2d74b4 src/app/shared/components/dialog-consultation/dialog-consultation.component.ts
true
200
2,061
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { RequestService } from '../../services/request.service'; import { MatSnackBar } from '@angular/material/snack-bar...
0
kezzaam/guidinglight
93205a8
src/app/api/discoveries/planets/[id]/route.ts
TypeScript
www.github.com/kezzaam/guidinglight/tree/main/src/app/api/discoveries/planets/[id]/route.ts
https://raw.githubusercontent.com/kezzaam/guidinglight/93205a8/src/app/api/discoveries/planets/%5Bid%5D/route.ts
kezzaam/guidinglight 93205a8 src/app/api/discoveries/planets/[id]/route.ts
true
200
1,421
import { prisma } from '../../../../../../prisma/prisma' // find id string for planet by running GET request at /api/discoveries/planets export async function GET( request: Request, { params }: { params: { id: string } } ) { const id = params.id const planet = await prisma.planet.findUnique({ ...
7
Guilherme-SSB/ECM252-Linguagens-de-Programacao-II
eee13b3
estudos_p2/cadastro-clientes/src/app/clientes/cliente-lista/cliente-lista.component.ts
TypeScript
www.github.com/Guilherme-SSB/ECM252-Linguagens-de-Programacao-II/tree/main/estudos_p2/cadastro-clientes/src/app/clientes/cliente-lista/cliente-lista.component.ts
https://raw.githubusercontent.com/Guilherme-SSB/ECM252-Linguagens-de-Programacao-II/eee13b3/estudos_p2/cadastro-clientes/src/app/clientes/cliente-lista/cliente-lista.component.ts
Guilherme-SSB/ECM252-Linguagens-de-Programacao-II eee13b3 estudos_p2/cadastro-clientes/src/app/clientes/cliente-lista/cliente-lista.component.ts
true
200
913
import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { ClienteModel } from '../cliente.model'; import { ClienteService } from '../cliente.service'; import { Subscription } from 'rxjs'; @Component({ selector: 'app-cliente-lista', templateUrl: './cliente-lista.component.html', styleUrls: ['...
4
Kim-Andersen/villi
82d396e
server/src/services/LocationService/types.ts
TypeScript
www.github.com/Kim-Andersen/villi/tree/main/server/src/services/LocationService/types.ts
https://raw.githubusercontent.com/Kim-Andersen/villi/82d396e/server/src/services/LocationService/types.ts
Kim-Andersen/villi 82d396e server/src/services/LocationService/types.ts
true
200
529
import { Location, LocationId, LocationInput, LocationSearch } from '../../shared'; export interface ILocationService { /** * Inserts a new location unless an identical one already exists. * * @returns Inserted location or, if an identical one exists, the existing idential location. */ createLocation(...
1
E-Marketplace-Romania/emart-backend
be4fc56
src/scraper/scraper.service.ts
TypeScript
www.github.com/E-Marketplace-Romania/emart-backend/tree/main/src/scraper/scraper.service.ts
https://raw.githubusercontent.com/E-Marketplace-Romania/emart-backend/be4fc56/src/scraper/scraper.service.ts
E-Marketplace-Romania/emart-backend be4fc56 src/scraper/scraper.service.ts
true
200
14,862
import { Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Scraper } from './entities/scraper.entity'; import { Repository } from 'typeorm'; import puppeteer, { Page } from 'puppeteer'; import { In } from 'typeorm'; import { manufacturers, memorySpecs, memory...
3
ludovicquenehen/sensor-flow
8146243
back/app/controllers/flows_controller.ts
TypeScript
www.github.com/ludovicquenehen/sensor-flow/tree/main/back/app/controllers/flows_controller.ts
https://raw.githubusercontent.com/ludovicquenehen/sensor-flow/8146243/back/app/controllers/flows_controller.ts
ludovicquenehen/sensor-flow 8146243 back/app/controllers/flows_controller.ts
true
200
1,171
import type { HttpContext } from '@adonisjs/core/http' import User from '../models/user.js' import Flow from '../models/flow.js' export default class FlowsController { async index({ auth }: HttpContext) { const projectIds = ( await User.query() .where('id', auth.user?.id || '') .preload('pr...
5
luiscoelhodev/ms-emails
ebb5413
src/htmlTemplateStrings.ts
TypeScript
www.github.com/luiscoelhodev/ms-emails/tree/main/src/htmlTemplateStrings.ts
https://raw.githubusercontent.com/luiscoelhodev/ms-emails/ebb5413/src/htmlTemplateStrings.ts
luiscoelhodev/ms-emails ebb5413 src/htmlTemplateStrings.ts
true
200
1,206
import { Bet, SubjectEnum, User } from "./msTypes" export function getTemplate( subject: string, user: User, token?: string, betsArray?: Bet[], arrayOfAdminUsers?: User[]) { switch (subject) { case SubjectEnum.newUser: return `<h1>Welcome to the Lottery API, ${user.name}!</h1>` ...
2
gleysonabreu/to-do
582c210
src/infra/database/prisma/repositories/prisma-todo-items-repository.ts
TypeScript
www.github.com/gleysonabreu/to-do/tree/main/src/infra/database/prisma/repositories/prisma-todo-items-repository.ts
https://raw.githubusercontent.com/gleysonabreu/to-do/582c210/src/infra/database/prisma/repositories/prisma-todo-items-repository.ts
gleysonabreu/to-do 582c210 src/infra/database/prisma/repositories/prisma-todo-items-repository.ts
true
200
1,477
import { TodoItemRepository } from '@/domain/to-do/repositories/todo-item-repository'; import { Injectable } from '@nestjs/common'; import { PrismaService } from '../prisma.service'; import { TodoItem } from '@/domain/to-do/entities/todo-item'; import { PrismaTodoItemMapper } from '../mappers/prisma-todo-item-mapper'; ...
4
najit-najist/najit-najist
9b1eaf5
packages/najit-najist-api/src/routes/trpc/profile.ts
TypeScript
www.github.com/najit-najist/najit-najist/tree/main/packages/najit-najist-api/src/routes/trpc/profile.ts
https://raw.githubusercontent.com/najit-najist/najit-najist/9b1eaf5/packages/najit-najist-api/src/routes/trpc/profile.ts
najit-najist/najit-najist 9b1eaf5 packages/najit-najist-api/src/routes/trpc/profile.ts
true
200
8,448
import { ErrorCodes } from '@custom-types'; import { ApplicationError } from '@errors'; import { logger } from '@logger'; import { ClientResponseError, pocketbase } from '@najit-najist/pb'; import { pocketbaseByCollections } from '@najit-najist/pb'; import { finalizeResetPasswordSchema, loginInputSchema, loginOut...
1
ratic01/FreeTime
5a3a94a
frontend/probadiplomski/src/app/auth.guard.ts
TypeScript
www.github.com/ratic01/FreeTime/tree/main/frontend/probadiplomski/src/app/auth.guard.ts
https://raw.githubusercontent.com/ratic01/FreeTime/5a3a94a/frontend/probadiplomski/src/app/auth.guard.ts
ratic01/FreeTime 5a3a94a frontend/probadiplomski/src/app/auth.guard.ts
true
200
1,106
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from './services/auth.service'; @Injectable({ providedIn: 'root' }) export class AuthGuard implements CanActivate {...
0
ketavchotaliya/api-gateway
d5c5b6b
src/index.ts
TypeScript
www.github.com/ketavchotaliya/api-gateway/tree/main/src/index.ts
https://raw.githubusercontent.com/ketavchotaliya/api-gateway/d5c5b6b/src/index.ts
ketavchotaliya/api-gateway d5c5b6b src/index.ts
true
200
1,781
import express from 'express'; import { createServer } from 'http'; import logger from './utils/logger'; import { router } from './routes'; import serviceDiscovery from './middleware/serviceDiscovery'; import gatewayConfig from './config'; import fileUpload from 'express-fileupload'; import * as bodyParser from 'body-p...
3
RaulMarquez24/SkiNow
8521e07
src/app/global/home/home.page.ts
TypeScript
www.github.com/RaulMarquez24/SkiNow/tree/main/src/app/global/home/home.page.ts
https://raw.githubusercontent.com/RaulMarquez24/SkiNow/8521e07/src/app/global/home/home.page.ts
RaulMarquez24/SkiNow 8521e07 src/app/global/home/home.page.ts
true
200
3,110
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { IonContent, ModalController, Platform } from '@ionic/angular'; import { Auth } from '@angular/fire/auth'; import { ChangeDetectorRef } from '@angular/core'; import { PuenteUserService } from '.....
5
rohithrobin2/jwt
101d0af
src/auth/auth.module.ts
TypeScript
www.github.com/rohithrobin2/jwt/tree/main/src/auth/auth.module.ts
https://raw.githubusercontent.com/rohithrobin2/jwt/101d0af/src/auth/auth.module.ts
rohithrobin2/jwt 101d0af src/auth/auth.module.ts
true
200
649
import { Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { PassportModule } from '@nestjs/passport'; import { UsersModule } from 'src/users/users.module'; import { AuthService } from './auth.service'; import { JwtStrategy } from './jwt.strategy'; import { LocalStrategy } from './local.st...
2
victorgxbriel/ava
abb24c6
frontend/src/app/shared/components/sidenav-aluno/sidenav-aluno.component.ts
TypeScript
www.github.com/victorgxbriel/ava/tree/main/frontend/src/app/shared/components/sidenav-aluno/sidenav-aluno.component.ts
https://raw.githubusercontent.com/victorgxbriel/ava/abb24c6/frontend/src/app/shared/components/sidenav-aluno/sidenav-aluno.component.ts
victorgxbriel/ava abb24c6 frontend/src/app/shared/components/sidenav-aluno/sidenav-aluno.component.ts
true
200
1,448
import { CommonModule } from '@angular/common'; import { Component, inject } from '@angular/core'; import { MatIconModule } from '@angular/material/icon'; import { RouterLink, RouterLinkActive } from '@angular/router'; import { MatMenuModule } from '@angular/material/menu' import { MatTooltipModule } from '@angular/mat...
7
lucasgray/geofuns
adc8876
apps/api/src/controllers/flightpath.controller.ts
TypeScript
www.github.com/lucasgray/geofuns/tree/main/apps/api/src/controllers/flightpath.controller.ts
https://raw.githubusercontent.com/lucasgray/geofuns/adc8876/apps/api/src/controllers/flightpath.controller.ts
lucasgray/geofuns adc8876 apps/api/src/controllers/flightpath.controller.ts
true
200
405
import { Get, Query, Route } from 'tsoa'; import flightpathService from '../services/flightpath.service'; import { LineGeoJson } from 'types/src/geojson'; @Route('flightpaths') export class FlightpathsController { @Get('/') public async getFlightpaths(@Query() canned: boolean): Promise<LineGeoJson[]> { return ...
4
ahmedghonim/academyfront-MSAAQ
b742093
utils/jsonLd/profilePageJsonLd.ts
TypeScript
www.github.com/ahmedghonim/academyfront-MSAAQ/tree/main/utils/jsonLd/profilePageJsonLd.ts
https://raw.githubusercontent.com/ahmedghonim/academyfront-MSAAQ/b742093/utils/jsonLd/profilePageJsonLd.ts
ahmedghonim/academyfront-MSAAQ b742093 utils/jsonLd/profilePageJsonLd.ts
true
200
1,192
import { ProfilePage } from "schema-dts"; import { Academy, Mentor } from "@/types"; function profilePageJsonLd(member?: Mentor | null, tenant?: Academy | null): ProfilePage { if (!member || !tenant) { return {} as ProfilePage; } return { "@type": "ProfilePage", mainEntity: { "@type": "Person...
1
brandonjcg/grpc-users
97bce59
users-microservice/src/main.ts
TypeScript
www.github.com/brandonjcg/grpc-users/tree/main/users-microservice/src/main.ts
https://raw.githubusercontent.com/brandonjcg/grpc-users/97bce59/users-microservice/src/main.ts
brandonjcg/grpc-users 97bce59 users-microservice/src/main.ts
true
200
2,053
import { NestFactory, HttpAdapterHost } from '@nestjs/core'; import { ValidationPipe } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { join } from 'path'; import { AppModule } from './app.module'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; i...
0
ferolino1021/ml-training
ba1ccab
week2-inventory/product_inventory/src/app.module.ts
TypeScript
www.github.com/ferolino1021/ml-training/tree/main/week2-inventory/product_inventory/src/app.module.ts
https://raw.githubusercontent.com/ferolino1021/ml-training/ba1ccab/week2-inventory/product_inventory/src/app.module.ts
ferolino1021/ml-training ba1ccab week2-inventory/product_inventory/src/app.module.ts
true
200
639
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ProductModule } from './product/product.module'; import { ProductController } from './product/product.controller'; import { ProductService } from './product/product.service'; i...
3
quocthangvo/aycool-ui
ebd5707
src/app/pages/user-page-ui/address/address-list/address-list.component.ts
TypeScript
www.github.com/quocthangvo/aycool-ui/tree/main/src/app/pages/user-page-ui/address/address-list/address-list.component.ts
https://raw.githubusercontent.com/quocthangvo/aycool-ui/ebd5707/src/app/pages/user-page-ui/address/address-list/address-list.component.ts
quocthangvo/aycool-ui ebd5707 src/app/pages/user-page-ui/address/address-list/address-list.component.ts
true
200
2,882
import { CommonModule } from '@angular/common'; import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { ButtonModule } from 'primeng/button'; import { ConfirmDialogModule } from 'primeng/confirmdialog'; import { DialogModule } fro...
5
hekai97/visualAlgorithm
30c9be0
src/app/algorithm/maze-algorithm/simple-stair-maze.ts
TypeScript
www.github.com/hekai97/visualAlgorithm/tree/main/src/app/algorithm/maze-algorithm/simple-stair-maze.ts
https://raw.githubusercontent.com/hekai97/visualAlgorithm/30c9be0/src/app/algorithm/maze-algorithm/simple-stair-maze.ts
hekai97/visualAlgorithm 30c9be0 src/app/algorithm/maze-algorithm/simple-stair-maze.ts
true
200
1,129
import {BaseAlgorithm} from "../path-finding-algorithm/base-algorithm"; import {BaseMazeAlgorithm} from "./base-maze-algorithm"; export class SimpleStairMaze extends BaseMazeAlgorithm { constructor(rows: number, cols: number, startRow: number, startCol: number, endRow: number, endCol: number, speed: number) { su...
2
pyt111/p-helper
1c37d6c
packages/components/Table/src/useTableCellVNode.ts
TypeScript
www.github.com/pyt111/p-helper/tree/main/packages/components/Table/src/useTableCellVNode.ts
https://raw.githubusercontent.com/pyt111/p-helper/1c37d6c/packages/components/Table/src/useTableCellVNode.ts
pyt111/p-helper 1c37d6c packages/components/Table/src/useTableCellVNode.ts
true
200
1,463
import { h } from 'vue'; import { ElInput, ElSwitch } from 'element-plus'; import type { BasicColumn } from '@p-helper/components/Table/src/types/table'; export const TABLE_CELL_STATUS_SUFFIX = 'CUSTOM_STATUS'; export const updateTableCellStatusKey = (key?: string) => { if (!key) { return ''; } return `__${...
7
PeteLeeds/Personal-Chart-Project
0a7e31d
ui/src/app/create-chart-interactive/enter-songs/enter-songs.component.ts
TypeScript
www.github.com/PeteLeeds/Personal-Chart-Project/tree/main/ui/src/app/create-chart-interactive/enter-songs/enter-songs.component.ts
https://raw.githubusercontent.com/PeteLeeds/Personal-Chart-Project/0a7e31d/ui/src/app/create-chart-interactive/enter-songs/enter-songs.component.ts
PeteLeeds/Personal-Chart-Project 0a7e31d ui/src/app/create-chart-interactive/enter-songs/enter-songs.component.ts
true
200
3,023
import { Component } from '@angular/core'; import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ChartService } from 'src/app/services/chart.service'; import { ActivatedRoute, Router } from '@angular/router'; import moment from 'moment'; import { hyphenValidator } from 'src...
1
DANILA21-3/digital
63001a6
2lab3(var_4)/script.ts
TypeScript
www.github.com/DANILA21-3/digital/tree/main/2lab3(var_4)/script.ts
https://raw.githubusercontent.com/DANILA21-3/digital/63001a6/2lab3%28var_4%29/script.ts
DANILA21-3/digital 63001a6 2lab3(var_4)/script.ts
true
200
6,998
enum DocumentType { ID_CARD = "Удостоверение личности", DRIVER_LICENSE = "Водительское удостоверение", GOVERNMENT_SERVICES = "Госуслуги" } interface IOwner { lastName: string; firstName: string; middleName: string; dateOfBirth: Date; docType: DocumentType; series: string...
0
alesrossi/skinet
471b410
client/src/app/app-routing.module.ts
TypeScript
www.github.com/alesrossi/skinet/tree/main/client/src/app/app-routing.module.ts
https://raw.githubusercontent.com/alesrossi/skinet/471b410/client/src/app/app-routing.module.ts
alesrossi/skinet 471b410 client/src/app/app-routing.module.ts
true
200
1,699
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import {HomeComponent} from "./home/home.component"; import {TestErrorComponent} from "./core/test-error/test-error.component"; import {ServerErrorComponent} from "./core/server-error/server-error.component"; import {NotFo...
3
marci221622/fe
59dbc64
src/generated/customer_hub/methods/catalog/get_catalog.v1.ts
TypeScript
www.github.com/marci221622/fe/tree/main/src/generated/customer_hub/methods/catalog/get_catalog.v1.ts
https://raw.githubusercontent.com/marci221622/fe/59dbc64/src/generated/customer_hub/methods/catalog/get_catalog.v1.ts
marci221622/fe 59dbc64 src/generated/customer_hub/methods/catalog/get_catalog.v1.ts
true
200
5,707
/* eslint-disable */ import _m0 from "protobufjs/minimal"; import { Catalog } from "../../entities/catalog.v1"; import { SessionData } from "../../entities/session_data.v1"; export const protobufPackage = "utp.customer_hub_service.v1"; /** Запрос каталога */ export interface GetCatalogRequest { /** Контекст текущей...
4
telaak/lgtv-ts
0ffa5b9
src/index.ts
TypeScript
www.github.com/telaak/lgtv-ts/tree/main/src/index.ts
https://raw.githubusercontent.com/telaak/lgtv-ts/0ffa5b9/src/index.ts
telaak/lgtv-ts 0ffa5b9 src/index.ts
true
200
23,785
import { WebSocket as ReconnectingWebSocket } from "partysocket"; import { Endpoint } from "./helpers/enums"; import { createWebSocketClass, promisedWol, waitResolve, } from "./helpers/functions"; import { v4 as uuidv4 } from "uuid"; import { mkdir, readdir, readFile, writeFile } from "fs/promises"; import { Au...
2
Vadimagic/cool-project
594d5f8
src/theme/ThemeContext.ts
TypeScript
www.github.com/Vadimagic/cool-project/tree/main/src/theme/ThemeContext.ts
https://raw.githubusercontent.com/Vadimagic/cool-project/594d5f8/src/theme/ThemeContext.ts
Vadimagic/cool-project 594d5f8 src/theme/ThemeContext.ts
true
200
301
import { createContext } from "react"; export enum Theme { LIGHT = 'light', DARK = 'dark', } export interface ThemeContextProps { theme?: Theme; setTheme?: (theme: Theme) => void; } export const ThemeContext = createContext<ThemeContextProps>({}) export const LOCAL_STORAGE_THEME_KEY = 'theme'
5
thatverygeorge/test-task-fedorandsamat
d6b9135
src/__tests__/components/TheFooter.spec.ts
TypeScript
www.github.com/thatverygeorge/test-task-fedorandsamat/tree/main/src/__tests__/components/TheFooter.spec.ts
https://raw.githubusercontent.com/thatverygeorge/test-task-fedorandsamat/d6b9135/src/__tests__/components/TheFooter.spec.ts
thatverygeorge/test-task-fedorandsamat d6b9135 src/__tests__/components/TheFooter.spec.ts
true
200
809
import { describe, it, expect } from 'vitest'; import { shallowMount } from '@vue/test-utils'; import TheFooter from '@/components/TheFooter.vue'; describe('TheFooter', () => { it('renders properly', () => { const wrapper = shallowMount(TheFooter); const footer = wrapper.find('footer'); expect(footer.ex...
4
21GramConsulting/next-rest
959d44a
next-rest/exceptions/ResponseException/ClientError/MisdirectedRequest.ts
TypeScript
www.github.com/21GramConsulting/next-rest/tree/main/next-rest/exceptions/ResponseException/ClientError/MisdirectedRequest.ts
https://raw.githubusercontent.com/21GramConsulting/next-rest/959d44a/next-rest/exceptions/ResponseException/ClientError/MisdirectedRequest.ts
21GramConsulting/next-rest 959d44a next-rest/exceptions/ResponseException/ClientError/MisdirectedRequest.ts
true
200
357
import ClientError from './ClientError'; /** * @summary Represents a 421 Misdirected Request. * @description * The request was directed at a server that is not able to * produce a response (for example because of connection reuse). * @group HTTP Response Exceptions: 4xx Client Error */ export default class Misdi...
2