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
aashinak/Nuvella
71e54ab
server/src/repository/admin/adminOtpRepository.ts
TypeScript
www.github.com/aashinak/Nuvella/tree/main/server/src/repository/admin/adminOtpRepository.ts
https://raw.githubusercontent.com/aashinak/Nuvella/71e54ab/server/src/repository/admin/adminOtpRepository.ts
aashinak/Nuvella 71e54ab server/src/repository/admin/adminOtpRepository.ts
true
200
2,449
import IAdminOtp from "../../entities/admin/IAdminOtp"; import AdminOtp from "../../models/admin/adminOtpModel"; import ApiError from "../../utils/apiError"; import logger from "../../utils/logger"; class AdminOtpRepository { // Create or update OTP entry using upsert async createOrUpdateOtp(adminOtpData: IAdminO...
7
Kageceleb/NLW-Pocket
01ff214
web/src/http/get-pending-goals.ts
TypeScript
www.github.com/Kageceleb/NLW-Pocket/tree/main/web/src/http/get-pending-goals.ts
https://raw.githubusercontent.com/Kageceleb/NLW-Pocket/01ff214/web/src/http/get-pending-goals.ts
Kageceleb/NLW-Pocket 01ff214 web/src/http/get-pending-goals.ts
true
200
349
type PendingGoalsResponse = { id: string; title: string; desireWeeklyFrequency: number; completionCount: number; }[] export async function getPendingGoals(): Promise<PendingGoalsResponse> { const response = await fetch("http://localhost:3333/pending-goals") const data = await response.json() ...
4
jermainehipo/Malunggay4Life
9e768e6
src/app.d.ts
TypeScript
www.github.com/jermainehipo/Malunggay4Life/tree/main/src/app.d.ts
https://raw.githubusercontent.com/jermainehipo/Malunggay4Life/9e768e6/src/app.d.ts
jermainehipo/Malunggay4Life 9e768e6 src/app.d.ts
true
200
1,155
declare namespace App{ } // Includes all child product options/variations declare class Product { id: string // Stripe id search_id: number // Id for variation lookup name: string // Product name description: string // Short description for cart page price: number...
0
nader2356/arsi_project
1b4fd59
src/app/auth/components/recover-password/recover-password.component.ts
TypeScript
www.github.com/nader2356/arsi_project/tree/main/src/app/auth/components/recover-password/recover-password.component.ts
https://raw.githubusercontent.com/nader2356/arsi_project/1b4fd59/src/app/auth/components/recover-password/recover-password.component.ts
nader2356/arsi_project 1b4fd59 src/app/auth/components/recover-password/recover-password.component.ts
true
200
822
import { Component } from '@angular/core'; import { User } from '../types/user'; import { Router } from '@angular/router'; import { UserService } from '../../services/user.service'; @Component({ selector: 'app-recover-password', templateUrl: './recover-password.component.html', styleUrls: ['./recover-password.c...
3
Noor-Ullah408/user-manage-docker
64a2004
src/user-manage/user-manage.service.spec.ts
TypeScript
www.github.com/Noor-Ullah408/user-manage-docker/tree/main/src/user-manage/user-manage.service.spec.ts
https://raw.githubusercontent.com/Noor-Ullah408/user-manage-docker/64a2004/src/user-manage/user-manage.service.spec.ts
Noor-Ullah408/user-manage-docker 64a2004 src/user-manage/user-manage.service.spec.ts
true
200
489
import { Test, TestingModule } from '@nestjs/testing'; import { UserManageService } from './user-manage.service'; describe('UserManageService', () => { let service: UserManageService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [UserManageService], ...
7
NureSemenenkoKostiantyn/library-ui
a2a11e5
Src/services/BookService.ts
TypeScript
www.github.com/NureSemenenkoKostiantyn/library-ui/tree/main/Src/services/BookService.ts
https://raw.githubusercontent.com/NureSemenenkoKostiantyn/library-ui/a2a11e5/Src/services/BookService.ts
NureSemenenkoKostiantyn/library-ui a2a11e5 Src/services/BookService.ts
true
200
1,757
import { IEBook } from '../store/models/IEBook'; import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react' import { IBook } from '../store/models/IBook'; import { API } from './EBookService'; export const bookAPI = API.injectEndpoints({ endpoints: (build) => ({ fetchAllBooks: build.query<IBo...
4
ManoelPatrocinio/NLW-5-ChatAPI
0683118
src/entities/User.ts
TypeScript
www.github.com/ManoelPatrocinio/NLW-5-ChatAPI/tree/main/src/entities/User.ts
https://raw.githubusercontent.com/ManoelPatrocinio/NLW-5-ChatAPI/0683118/src/entities/User.ts
ManoelPatrocinio/NLW-5-ChatAPI 0683118 src/entities/User.ts
true
200
361
import { Column, Entity, PrimaryColumn,CreateDateColumn } from "typeorm" import {v4 as uuid} from "uuid"; @Entity("users") class User{ @PrimaryColumn() id: string; @Column() email:string; @CreateDateColumn() created_at: Date; constructor(){ if (!this.id) { this.id = ...
0
Delafee1/Recipe
60edfc9
src/store/RecipeStore/RecipeStore.ts
TypeScript
www.github.com/Delafee1/Recipe/tree/main/src/store/RecipeStore/RecipeStore.ts
https://raw.githubusercontent.com/Delafee1/Recipe/60edfc9/src/store/RecipeStore/RecipeStore.ts
Delafee1/Recipe 60edfc9 src/store/RecipeStore/RecipeStore.ts
true
200
1,972
import rootStore from "store/RootStore"; import { apiKey } from "utils/api"; import { Meta } from "utils/types/meta"; import { ILocalStore } from "utils/useLocalStore"; import axios from "axios"; import { action, computed, makeObservable, observable, runInAction, } from "mobx"; import { ParsedQs } from "qs"; ...
3
nohaemad123/ecommerce_website
c6ffe3c
src/app/shared/pipes/custom-currency.pipe.ts
TypeScript
www.github.com/nohaemad123/ecommerce_website/tree/main/src/app/shared/pipes/custom-currency.pipe.ts
https://raw.githubusercontent.com/nohaemad123/ecommerce_website/c6ffe3c/src/app/shared/pipes/custom-currency.pipe.ts
nohaemad123/ecommerce_website c6ffe3c src/app/shared/pipes/custom-currency.pipe.ts
true
200
1,442
import { Pipe, PipeTransform } from '@angular/core'; import { CookieService } from 'ngx-cookie'; import { environment } from 'src/environments/environment'; @Pipe({ name: 'customCurrency', }) export class CustomCurrencyPipe implements PipeTransform { constructor(private cookieService: CookieService) { ...
5
hadinur99/ravel-web
bed24db
src/app/_helpers/utils.ts
TypeScript
www.github.com/hadinur99/ravel-web/tree/main/src/app/_helpers/utils.ts
https://raw.githubusercontent.com/hadinur99/ravel-web/bed24db/src/app/_helpers/utils.ts
hadinur99/ravel-web bed24db src/app/_helpers/utils.ts
true
200
848
export const Storage = { getItem<T>(key: string): T | null { try { const item = localStorage.getItem(key); return item ? JSON.parse(item) : null; } catch (e) { console.error(`Error retrieving item from localStorage: ${e}`); return null; } }, setItem(key: string, value: any): vo...
7
fixflex/backend
517f7f8
src/routes/category.route.ts
TypeScript
www.github.com/fixflex/backend/tree/main/src/routes/category.route.ts
https://raw.githubusercontent.com/fixflex/backend/517f7f8/src/routes/category.route.ts
fixflex/backend 517f7f8 src/routes/category.route.ts
true
200
1,495
import { Router } from 'express'; import { autoInjectable } from 'tsyringe'; import { CategoryController } from '../controllers'; import { UserType } from '../interfaces'; import { Routes } from '../interfaces/routes.interface'; import { allowedTo, authenticateUser } from '../middleware/auth.middleware'; import { crea...
0
mahdikarray/Angular-final-integration
4a783f0
Angularfinal-main/src/app/pages/authentication/login/login.component.ts
TypeScript
www.github.com/mahdikarray/Angular-final-integration/tree/main/Angularfinal-main/src/app/pages/authentication/login/login.component.ts
https://raw.githubusercontent.com/mahdikarray/Angular-final-integration/4a783f0/Angularfinal-main/src/app/pages/authentication/login/login.component.ts
mahdikarray/Angular-final-integration 4a783f0 Angularfinal-main/src/app/pages/authentication/login/login.component.ts
true
200
1,981
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { User } from 'src/Models/User'; import { SnackBarService } from 'src/app/services/snack-bar.service'; import { UserService } from 'src...
4
xAGH/PapasQuin
59bd24e
front/src/app/pages/home/home.component.ts
TypeScript
www.github.com/xAGH/PapasQuin/tree/main/front/src/app/pages/home/home.component.ts
https://raw.githubusercontent.com/xAGH/PapasQuin/59bd24e/front/src/app/pages/home/home.component.ts
xAGH/PapasQuin 59bd24e front/src/app/pages/home/home.component.ts
true
200
389
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { dailyRecord: string = "Registro diario"; monthlyRecord: string = "Registro mensual"; querys: str...
6
lishuoz/madison
2e8e3e2
src/app/blogs/blog-one-world/blog-one-world.component.ts
TypeScript
www.github.com/lishuoz/madison/tree/main/src/app/blogs/blog-one-world/blog-one-world.component.ts
https://raw.githubusercontent.com/lishuoz/madison/2e8e3e2/src/app/blogs/blog-one-world/blog-one-world.component.ts
lishuoz/madison 2e8e3e2 src/app/blogs/blog-one-world/blog-one-world.component.ts
true
200
5,184
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { BlogService } from '../blog.service'; import { Title, Meta } from '@angular/platform-browser'; @Component({ selector: 'app-blog-one-world', templateUrl: './blog-one-world.component.html', styleUrls: ['./...
2
ShifterNathan/support-tickets
8e9fe5e
src/seed/seed.service.ts
TypeScript
www.github.com/ShifterNathan/support-tickets/tree/main/src/seed/seed.service.ts
https://raw.githubusercontent.com/ShifterNathan/support-tickets/8e9fe5e/src/seed/seed.service.ts
ShifterNathan/support-tickets 8e9fe5e src/seed/seed.service.ts
true
200
3,038
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import * as fs from 'fs'; import { join } from 'path'; import { SEED_USERS, SEED_CLAIMS } from './data/seed-data...
3
U2D-8Bits/diabControl-server
8c3bb9c
src/zoom/zoom.module.ts
TypeScript
www.github.com/U2D-8Bits/diabControl-server/tree/main/src/zoom/zoom.module.ts
https://raw.githubusercontent.com/U2D-8Bits/diabControl-server/8c3bb9c/src/zoom/zoom.module.ts
U2D-8Bits/diabControl-server 8c3bb9c src/zoom/zoom.module.ts
true
200
381
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { HttpModule } from '@nestjs/axios'; import { ZoomService } from './zoom.service'; import { ZoomController } from './zoom.controller'; @Module({ imports: [ConfigModule.forRoot(), HttpModule], providers: [ZoomService], ...
5
boi10ty/LxixoeR4uy
8901874
src/utils/config.ts
TypeScript
www.github.com/boi10ty/LxixoeR4uy/tree/main/src/utils/config.ts
https://raw.githubusercontent.com/boi10ty/LxixoeR4uy/8901874/src/utils/config.ts
boi10ty/LxixoeR4uy 8901874 src/utils/config.ts
true
200
1,913
// Định nghĩa interface Config để xác định cấu hình interface Config { settings: { code_loading_time: number; // Thời gian tải mã max_failed_code_attempts: number; // Số lần thử mã tối đa max_failed_password_attempts: number; // Số lần thử mật khẩu tối đa page_loading_time: number; // Thời gian tải trang pas...
7
dajahn/web-based-iec-61499-modelling-tool
b093c69
src/app/models/61499-interfaces/deviceTypeElements/device-type.ts
TypeScript
www.github.com/dajahn/web-based-iec-61499-modelling-tool/tree/main/src/app/models/61499-interfaces/deviceTypeElements/device-type.ts
https://raw.githubusercontent.com/dajahn/web-based-iec-61499-modelling-tool/b093c69/src/app/models/61499-interfaces/deviceTypeElements/device-type.ts
dajahn/web-based-iec-61499-modelling-tool b093c69 src/app/models/61499-interfaces/deviceTypeElements/device-type.ts
true
200
702
import {Identification} from "../commons/identification"; import {VersionInfo} from "../commons/version-info"; import {CompilerInfo} from "../commons/compiler-info"; import {VarDeclaration} from "../fbTypeElements/var-declaration"; import {FunctionBlockNetwork} from "../commons/function-block-network"; import {Resource...
0
sahasra56/mentor-app
a7ba59d
src/app/modules/login/components/login/login.component.ts
TypeScript
www.github.com/sahasra56/mentor-app/tree/main/src/app/modules/login/components/login/login.component.ts
https://raw.githubusercontent.com/sahasra56/mentor-app/a7ba59d/src/app/modules/login/components/login/login.component.ts
sahasra56/mentor-app a7ba59d src/app/modules/login/components/login/login.component.ts
true
200
1,588
import { Component, OnInit } from '@angular/core'; import { Validators, FormGroup, FormControl } from '@angular/forms'; import { SnackbarService } from 'src/app/core/services/snackbar.service'; import { AuthService } from 'src/app/core/services/auth.service'; @Component({ selector: 'app-login', templateUrl: './lo...
4
SK-ERIC/react-ts-redux-antd-temp
84d2692
typings/global.d.ts
TypeScript
www.github.com/SK-ERIC/react-ts-redux-antd-temp/tree/main/typings/global.d.ts
https://raw.githubusercontent.com/SK-ERIC/react-ts-redux-antd-temp/84d2692/typings/global.d.ts
SK-ERIC/react-ts-redux-antd-temp 84d2692 typings/global.d.ts
true
200
1,249
/// <reference types="react-scripts" /> /// <reference types="node" /> /// <reference types="react" /> /// <reference types="react-dom" /> declare module 'classnames' { import classNames from 'classnames'; export default classNames; } interface ReduxProps { storeData?: Record<string, any>; setStoreData?: (typ...
6
DerviVulkhorn/store_project
474dfe1
server/src/citys/citys.controller.spec.ts
TypeScript
www.github.com/DerviVulkhorn/store_project/tree/main/server/src/citys/citys.controller.spec.ts
https://raw.githubusercontent.com/DerviVulkhorn/store_project/474dfe1/server/src/citys/citys.controller.spec.ts
DerviVulkhorn/store_project 474dfe1 server/src/citys/citys.controller.spec.ts
true
200
566
import { Test, TestingModule } from '@nestjs/testing'; import { CitysController } from './citys.controller'; import { CitysService } from './citys.service'; describe('CitysController', () => { let controller: CitysController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModul...
3
htmlacademy-nestjs/2081429-taskforce-3
e1e18e5
project/apps/reviews/src/app/review/review.controller.ts
TypeScript
www.github.com/htmlacademy-nestjs/2081429-taskforce-3/tree/main/project/apps/reviews/src/app/review/review.controller.ts
https://raw.githubusercontent.com/htmlacademy-nestjs/2081429-taskforce-3/e1e18e5/project/apps/reviews/src/app/review/review.controller.ts
htmlacademy-nestjs/2081429-taskforce-3 e1e18e5 project/apps/reviews/src/app/review/review.controller.ts
true
200
2,304
import { Body, Controller, Post, Get, Delete, HttpCode, HttpStatus, Param } from '@nestjs/common'; import { ReviewService } from './review.service'; import { fillObject } from '@project/util/util-core'; import { CreateReviewDto } from './dto/create-review.dto'; import { ReviewRdo } from './rdo/review.rdo'; import { Api...
2
PauloMorenoD/projeto-fullstack-backend
d55d014
src/modules/contacts/contacts.service.ts
TypeScript
www.github.com/PauloMorenoD/projeto-fullstack-backend/tree/main/src/modules/contacts/contacts.service.ts
https://raw.githubusercontent.com/PauloMorenoD/projeto-fullstack-backend/d55d014/src/modules/contacts/contacts.service.ts
PauloMorenoD/projeto-fullstack-backend d55d014 src/modules/contacts/contacts.service.ts
true
200
1,789
import { ConflictException, Injectable, NotFoundException } from '@nestjs/common'; import { CreateContactDto } from './dto/create-contact.dto'; import { UpdateContactDto } from './dto/update-contact.dto'; import { ContactsRepository } from './repositories/contacts.repository'; @Injectable() export class ContactsServic...
5
abhay-tiwari/github-client
6d27e7e
src/pages/Repositories/types.ts
TypeScript
www.github.com/abhay-tiwari/github-client/tree/main/src/pages/Repositories/types.ts
https://raw.githubusercontent.com/abhay-tiwari/github-client/6d27e7e/src/pages/Repositories/types.ts
abhay-tiwari/github-client 6d27e7e src/pages/Repositories/types.ts
true
200
468
export type Repository = { id: string; name: string; pushedAt: Date; description: string; pullRequests: PullRequests; primaryLanguage: PrimaryLanguage; }; export type PullRequests = { nodes: PullRequest[]; }; export type PullRequest = { body: string; bodyHTML: string; title: string; closed: bool...
7
e10lght/omochi-app
557eb7c
server/services/Comments.service.ts
TypeScript
www.github.com/e10lght/omochi-app/tree/main/server/services/Comments.service.ts
https://raw.githubusercontent.com/e10lght/omochi-app/557eb7c/server/services/Comments.service.ts
e10lght/omochi-app 557eb7c server/services/Comments.service.ts
true
200
3,221
import dayjs from "dayjs"; import { Between, Repository } from "typeorm"; import { v4 as uuidv4 } from "uuid"; import { Comments } from "../models/Comments.model"; import { isValidDate } from "../utils/util"; export class CommentsService { constructor(private readonly commentsRepository: Repository<Comments>) {} ...
4
FranciscoVieir/Project-car-shop
17db34c
tests/unit/Mocks/CarServiceMocks.ts
TypeScript
www.github.com/FranciscoVieir/Project-car-shop/tree/main/tests/unit/Mocks/CarServiceMocks.ts
https://raw.githubusercontent.com/FranciscoVieir/Project-car-shop/17db34c/tests/unit/Mocks/CarServiceMocks.ts
FranciscoVieir/Project-car-shop 17db34c tests/unit/Mocks/CarServiceMocks.ts
true
200
782
import ICar from '../../../src/Interfaces/ICar'; const carToCreate: ICar = { model: 'Marea', year: 2002, color: 'Black', status: true, buyValue: 15.990, doorsQty: 4, seatsQty: 5, }; const createdCar: ICar = { id: '62eaf55c3b4b2a80466091043', model: 'Golf', year: 2022, color: 'Black', status: t...
0
Bohdan993/druk
6a7a4c4
strapitypes/clues/Clueslists2.ts
TypeScript
www.github.com/Bohdan993/druk/tree/main/strapitypes/clues/Clueslists2.ts
https://raw.githubusercontent.com/Bohdan993/druk/6a7a4c4/strapitypes/clues/Clueslists2.ts
Bohdan993/druk 6a7a4c4 strapitypes/clues/Clueslists2.ts
true
200
439
import { ICluesClueitem } from "./Clueitem"; import { ExtractNested } from "../builtins/ExtractNested"; import { ExtractFlat } from "../builtins/ExtractFlat"; import { RequiredBy } from "../builtins/RequiredBy"; export type ICluesClueslists2<Populate extends string | never = never> = RequiredBy< { id: numbe...
6
pyt111/p-helper
1c37d6c
packages/hooks/index.ts
TypeScript
www.github.com/pyt111/p-helper/tree/main/packages/hooks/index.ts
https://raw.githubusercontent.com/pyt111/p-helper/1c37d6c/packages/hooks/index.ts
pyt111/p-helper 1c37d6c packages/hooks/index.ts
true
200
1,484
import { computed, getCurrentInstance, ref } from 'vue'; import type { AppConfig, ComponentCustomProperties } from 'vue'; export * from './use-namespace'; // export * from './web/antv'; export const ensureGlobalProperties = (): AppConfig['globalProperties'] & ComponentCustomProperties => { const globalProperties =...
3
FrontTechHub/highlight-clips
7d88f75
src/app/services/auth.service.ts
TypeScript
www.github.com/FrontTechHub/highlight-clips/tree/main/src/app/services/auth.service.ts
https://raw.githubusercontent.com/FrontTechHub/highlight-clips/7d88f75/src/app/services/auth.service.ts
FrontTechHub/highlight-clips 7d88f75 src/app/services/auth.service.ts
true
200
2,458
import { Injectable } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/compat/auth'; import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/compat/firestore'; import IUser from '../models/user.model'; import { delay, map, Observable, filter, switchMap, of } from 'rxjs'; import {...
2
SevaDactyl/Code-Basics-TypeScript
74ba707
3. TypeScript Variables.ts
TypeScript
www.github.com/SevaDactyl/Code-Basics-TypeScript/tree/main/3. TypeScript Variables.ts
https://raw.githubusercontent.com/SevaDactyl/Code-Basics-TypeScript/74ba707/3.%20TypeScript%20Variables.ts
SevaDactyl/Code-Basics-TypeScript 74ba707 3. TypeScript Variables.ts
true
200
791
/* Допишите тело функции repeat(), которая повторяет строку указанное количество раз. Функция должна возвращать полученный результат. Постарайтесь не использовать встроенные методы, для такой реализации вам понадобится цикл. repeat('hexlet', 2); // hexlethexlet repeat('wo', 3); // wowowo */ /* eslint-disable @...
5
lexigum/primera_App_Angular
cc83399
src/app/gatos/gatos.component.ts
TypeScript
www.github.com/lexigum/primera_App_Angular/tree/main/src/app/gatos/gatos.component.ts
https://raw.githubusercontent.com/lexigum/primera_App_Angular/cc83399/src/app/gatos/gatos.component.ts
lexigum/primera_App_Angular cc83399 src/app/gatos/gatos.component.ts
true
200
378
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-gatos', templateUrl: './gatos.component.html', styleUrls: ['./gatos.component.css'] }) export class GatosComponent implements OnInit { url = 'https://http.cat/200'; constructor() { } ngOnInit() { } seleccionCodigo(codi...
0
n4music/n4music-submodule
8a7f675
entities/activity-action.entity.ts
TypeScript
www.github.com/n4music/n4music-submodule/tree/main/entities/activity-action.entity.ts
https://raw.githubusercontent.com/n4music/n4music-submodule/8a7f675/entities/activity-action.entity.ts
n4music/n4music-submodule 8a7f675 entities/activity-action.entity.ts
true
200
931
import { CustomBaseEntity } from '../common/entity/custom-base.entity'; import { Column, Entity, ManyToOne } from 'typeorm'; import { User } from './user.entity'; @Entity({ name: 'activities_actions' }) export class ActivityAction extends CustomBaseEntity { @Column({ nullable: true, unique: true, name: 'action_log_k...
7
lm-design-edito/lm-cli
3629b02
src/make-template/assets/express-api/src/api/types.ts
TypeScript
www.github.com/lm-design-edito/lm-cli/tree/main/src/make-template/assets/express-api/src/api/types.ts
https://raw.githubusercontent.com/lm-design-edito/lm-cli/3629b02/src/make-template/assets/express-api/src/api/types.ts
lm-design-edito/lm-cli 3629b02 src/make-template/assets/express-api/src/api/types.ts
true
200
2,766
import { Request, Response, RequestHandler } from 'express' import { Outcome } from '@design-edito/tools/agnostic/misc/outcome' import { Codes, ErrorData } from '../errors' import { Endpoints } from '.' type AsyncOrNot<T> = T | Promise<T> export type Authenticator = (req: Request, res: Response) => AsyncOrNot<Outcome...
4
webpon/wowEditor
66d8ca6
src/pages/home/component/useContextMenu.ts
TypeScript
www.github.com/webpon/wowEditor/tree/main/src/pages/home/component/useContextMenu.ts
https://raw.githubusercontent.com/webpon/wowEditor/66d8ca6/src/pages/home/component/useContextMenu.ts
webpon/wowEditor 66d8ca6 src/pages/home/component/useContextMenu.ts
true
200
9,757
import ContextMenu from '@imengyu/vue3-context-menu' import { Icon, MessagePlugin } from 'tdesign-vue-next' import { h } from 'vue' import { downloadCanvas } from '@/utils/common' // import { uploadImg } from '@/utils/picgo' import ContextMenuToolbar from './ContextMenuToolbar.vue' const getTemplate = (src: string, zo...
6
cpapage/Zepeto-World-Planet-Lu
f4a7554
Assets/scripts/AnimationController.ts
TypeScript
www.github.com/cpapage/Zepeto-World-Planet-Lu/tree/main/Assets/scripts/AnimationController.ts
https://raw.githubusercontent.com/cpapage/Zepeto-World-Planet-Lu/f4a7554/Assets/scripts/AnimationController.ts
cpapage/Zepeto-World-Planet-Lu f4a7554 Assets/scripts/AnimationController.ts
true
200
1,579
import {KeyValuePair$2, List$1 } from 'System.Collections.Generic'; import { AnimationClip, Animator, AnimatorOverrideController, Resources, RuntimeAnimatorController } from 'UnityEngine'; import {CharacterState, ZepetoPlayers} from 'ZEPETO.Character.Controller'; import { ZepetoScriptBehaviour } from 'ZEPETO.Script' im...
3
jcvillacob/Finanzas
1ab80b7
src/app/modules/finanzas/components/home/resumen-cuentas/resumen-cuentas.component.ts
TypeScript
www.github.com/jcvillacob/Finanzas/tree/main/src/app/modules/finanzas/components/home/resumen-cuentas/resumen-cuentas.component.ts
https://raw.githubusercontent.com/jcvillacob/Finanzas/1ab80b7/src/app/modules/finanzas/components/home/resumen-cuentas/resumen-cuentas.component.ts
jcvillacob/Finanzas 1ab80b7 src/app/modules/finanzas/components/home/resumen-cuentas/resumen-cuentas.component.ts
true
200
890
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FinanzasServiceService } from '../../../services/finanzas-service.service'; import { Subscription } from 'rxjs'; @Component({ selector: 'app-resumen-cuentas', templateUrl: './resumen-cuentas.component.html', styleUrls: ['./resumen-cuentas.com...
2
kavandalal/tanish
67c64a8
app/api/post/[postID]/route.ts
TypeScript
www.github.com/kavandalal/tanish/tree/main/app/api/post/[postID]/route.ts
https://raw.githubusercontent.com/kavandalal/tanish/67c64a8/app/api/post/%5BpostID%5D/route.ts
kavandalal/tanish 67c64a8 app/api/post/[postID]/route.ts
true
200
1,033
import BadRequestError from '@/error-handler/bad-request'; import CustomError from '@/error-handler/custom-error'; import ErrorHandler from '@/error-handler/error-handler'; import connectMongoDB from '@/lib/mongodb'; import { checkMongooseRef } from '@/lib/server-helper'; import Post from '@/model/post'; import { NextR...
5
buddhikasanjeewa/Student-App-with-Angular
e49f299
src/app/studentviewdialog/studentviewdialog.component.ts
TypeScript
www.github.com/buddhikasanjeewa/Student-App-with-Angular/tree/main/src/app/studentviewdialog/studentviewdialog.component.ts
https://raw.githubusercontent.com/buddhikasanjeewa/Student-App-with-Angular/e49f299/src/app/studentviewdialog/studentviewdialog.component.ts
buddhikasanjeewa/Student-App-with-Angular e49f299 src/app/studentviewdialog/studentviewdialog.component.ts
true
200
1,373
import { Component, inject, Input } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialog, MatDialogContent, MatDialogRef, MatDialogTitle, } from '@angular/material/dialog'; import { Student } from '../../Models/Student'; import { ActivatedRoute, Router, RouterLink, RouterLinkActive, } from '@angu...
4
alikinvv/examples
5c7d906
src/store/index.ts
TypeScript
www.github.com/alikinvv/examples/tree/main/src/store/index.ts
https://raw.githubusercontent.com/alikinvv/examples/5c7d906/src/store/index.ts
alikinvv/examples 5c7d906 src/store/index.ts
true
200
711
import { configureStore } from '@reduxjs/toolkit' import auth from './auth' import settings from './settings' import seo from './seo' import components from './components' import routes from './routes' import reports from './reports' import { baseApi } from './api/baseApi' import { errorHandling } from './middlewares/e...
7
Adachi-Framework/Adachi-BOT
4ac0628
src/modules/lib/types/map/api.ts
TypeScript
www.github.com/Adachi-Framework/Adachi-BOT/tree/main/src/modules/lib/types/map/api.ts
https://raw.githubusercontent.com/Adachi-Framework/Adachi-BOT/4ac0628/src/modules/lib/types/map/api.ts
Adachi-Framework/Adachi-BOT 4ac0628 src/modules/lib/types/map/api.ts
true
200
4,243
import * as api from "@/modules/lib/types/api"; import { OneBotVersionInfo } from "@/modules/lib/types/api"; export interface ApiMap { /** 发送私聊消息 */ send_private_msg: ( param: api.SendPrivateMsgParam ) => api.SendMessage; /** 发送群聊消息 */ send_group_msg: ( param: api.SendGroupMsgParam ) => api.SendMessage; /** 发送消息 ...
6
gerardkd/adventofcode-2023
cc46c9b
day-3/puzzle.ts
TypeScript
www.github.com/gerardkd/adventofcode-2023/tree/main/day-3/puzzle.ts
https://raw.githubusercontent.com/gerardkd/adventofcode-2023/cc46c9b/day-3/puzzle.ts
gerardkd/adventofcode-2023 cc46c9b day-3/puzzle.ts
true
200
1,476
import { EOL } from "os"; import { Position, Puzzle } from "../utilities/types"; import { isNeighbour, sum } from "../utilities/utilities"; const getPositions = (file: string): { numbers: Position[]; symbols: Position<string>[] } => { const numbers: Position[] = []; const symbols: Position<string>[] = []; for (...
0
Abdulrahman26-95/ITI-Project
00b3707
src/app/Pipes/get-sub-category-name.pipe.ts
TypeScript
www.github.com/Abdulrahman26-95/ITI-Project/tree/main/src/app/Pipes/get-sub-category-name.pipe.ts
https://raw.githubusercontent.com/Abdulrahman26-95/ITI-Project/00b3707/src/app/Pipes/get-sub-category-name.pipe.ts
Abdulrahman26-95/ITI-Project 00b3707 src/app/Pipes/get-sub-category-name.pipe.ts
true
200
427
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'getSubCategoryName' }) export class GetSubCategoryNamePipe implements PipeTransform { transform(value: number): any { let subCategoryName = "" if (value == 1) { subCategoryName = "Laptop" } else if (value == 2) { subCatego...
2
patrick-selin/coding-app
d37f850
server/src/tests/integration/health.integration.test.ts
TypeScript
www.github.com/patrick-selin/coding-app/tree/main/server/src/tests/integration/health.integration.test.ts
https://raw.githubusercontent.com/patrick-selin/coding-app/d37f850/server/src/tests/integration/health.integration.test.ts
patrick-selin/coding-app d37f850 server/src/tests/integration/health.integration.test.ts
true
200
796
import request from "supertest"; import app from "../../server"; describe("Health API Integration", () => { it("should return HTML for root /api/v1/health", async () => { const res = await request(app).get("/api/v1/health"); expect(res.statusCode).toBe(200); expect(res.text).toContain("Health Check: OK")...
5
Net1zen/SummerCamp2023
6dc272f
Angular/ProyectoAngular/src/app/conversor/conversor.service.ts
TypeScript
www.github.com/Net1zen/SummerCamp2023/tree/main/Angular/ProyectoAngular/src/app/conversor/conversor.service.ts
https://raw.githubusercontent.com/Net1zen/SummerCamp2023/6dc272f/Angular/ProyectoAngular/src/app/conversor/conversor.service.ts
Net1zen/SummerCamp2023 6dc272f Angular/ProyectoAngular/src/app/conversor/conversor.service.ts
true
200
1,941
import { HttpClient, HttpHeaders, HttpErrorResponse } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { Observable, catchError, tap, throwError } from "rxjs"; import { IPeticionConversion } from "./peticion-conversion"; import { IResultadoConversion } from "./resultado-conversion"; @In...
4
reef-chain/console-app
23b4eee
packages/apps-config/src/extensions/index.ts
TypeScript
www.github.com/reef-chain/console-app/tree/main/packages/apps-config/src/extensions/index.ts
https://raw.githubusercontent.com/reef-chain/console-app/23b4eee/packages/apps-config/src/extensions/index.ts
reef-chain/console-app 23b4eee packages/apps-config/src/extensions/index.ts
true
200
1,159
// Copyright 2017-2021 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 // it would have been really good to import this from detect-browser, however... not exported type Browser = 'chrome' | 'firefox'; interface Extension { desc: string; link: string; name: string; } // The ...
7
ElideZavala/talent-port
cc74d11
src/app/modules/slider/slider.module.ts
TypeScript
www.github.com/ElideZavala/talent-port/tree/main/src/app/modules/slider/slider.module.ts
https://raw.githubusercontent.com/ElideZavala/talent-port/cc74d11/src/app/modules/slider/slider.module.ts
ElideZavala/talent-port cc74d11 src/app/modules/slider/slider.module.ts
true
200
690
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SliderRoutingModule } from './slider-routing.module'; import { SliderComponent } from './components/slider/slider.component'; import { SharedModule } from 'src/app/shared/shared.module'; import { LottieModule } from 'ngx...
3
HanSuhhi/unbound-king
168865a
src/views/arcade/modules/registCharacter/composables/options.ts
TypeScript
www.github.com/HanSuhhi/unbound-king/tree/main/src/views/arcade/modules/registCharacter/composables/options.ts
https://raw.githubusercontent.com/HanSuhhi/unbound-king/168865a/src/views/arcade/modules/registCharacter/composables/options.ts
HanSuhhi/unbound-king 168865a src/views/arcade/modules/registCharacter/composables/options.ts
true
200
272
import type { SelectOption } from "naive-ui"; import { useI18n } from "vue-i18n"; export function getOptions(options: SelectOption[]) { const { t } = useI18n(); return options.map((option) => { option.label = t(option.label as string); return option; }); }
0
opendatalabcz/Egidio
6d6380b
source/frontend/src/app/components/user/user-edit/user-email-edit-form/user-email-edit-form.component.ts
TypeScript
www.github.com/opendatalabcz/Egidio/tree/main/source/frontend/src/app/components/user/user-edit/user-email-edit-form/user-email-edit-form.component.ts
https://raw.githubusercontent.com/opendatalabcz/Egidio/6d6380b/source/frontend/src/app/components/user/user-edit/user-email-edit-form/user-email-edit-form.component.ts
opendatalabcz/Egidio 6d6380b source/frontend/src/app/components/user/user-edit/user-email-edit-form/user-email-edit-form.component.ts
true
200
6,960
import {Component, Input, OnInit} from '@angular/core'; import {FormBuilder, FormControl, FormGroup, Validators} from "@angular/forms"; import {requireDefinedNotNull} from "../../../../shared/assertions/object-assertions"; import {User} from "../../../../models/common/user"; import {MatDialog} from "@angular/material/d...
2
NRYS-DEV/nrys-dev.github.io
7683f7e
three-ts/src/threeCanvas.ts
TypeScript
www.github.com/NRYS-DEV/nrys-dev.github.io/tree/main/three-ts/src/threeCanvas.ts
https://raw.githubusercontent.com/NRYS-DEV/nrys-dev.github.io/7683f7e/three-ts/src/threeCanvas.ts
NRYS-DEV/nrys-dev.github.io 7683f7e three-ts/src/threeCanvas.ts
true
200
917
import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' export const width = 500 export const height = 500 export const initThreeJsScene = (node: HTMLDivElement) => { const scene = new THREE.Scene() const camera = new THREE.PerspectiveCamera(75, height / width, 0.1...
7
korpling/machina-callida
4a7b569
mc_frontend/src/app/vocabulary-check/vocabulary-check.module.ts
TypeScript
www.github.com/korpling/machina-callida/tree/main/mc_frontend/src/app/vocabulary-check/vocabulary-check.module.ts
https://raw.githubusercontent.com/korpling/machina-callida/4a7b569/mc_frontend/src/app/vocabulary-check/vocabulary-check.module.ts
korpling/machina-callida 4a7b569 mc_frontend/src/app/vocabulary-check/vocabulary-check.module.ts
true
200
694
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {IonicModule} from '@ionic/angular'; import {VocabularyCheckPage} from 'src/app/vocabulary-check/vocabulary-check.page'; import {CommonModule} from '@angular/common'; import {TranslateModule} from '@ngx-translate/core';...
6
amoscookeh/is4151-ergosphere
f46c8f5
frontend/src/services/api/sensorData.ts
TypeScript
www.github.com/amoscookeh/is4151-ergosphere/tree/main/frontend/src/services/api/sensorData.ts
https://raw.githubusercontent.com/amoscookeh/is4151-ergosphere/f46c8f5/frontend/src/services/api/sensorData.ts
amoscookeh/is4151-ergosphere f46c8f5 frontend/src/services/api/sensorData.ts
true
200
589
import axios from "axios"; import { baseUrl } from "./index"; import SensorData from "../../types/SensorData"; const api = axios.create({ baseURL: `${baseUrl}/sensor`, }); export const fetchSensorData = (userId: string): Promise<SensorData> => { const response = api.get(`/${userId}`).then((res) => res.data); re...
4
xrehpicx/raj.how
b0bcd29
src/trigger/hello.ts
TypeScript
www.github.com/xrehpicx/raj.how/tree/main/src/trigger/hello.ts
https://raw.githubusercontent.com/xrehpicx/raj.how/b0bcd29/src/trigger/hello.ts
xrehpicx/raj.how b0bcd29 src/trigger/hello.ts
true
200
305
import { logger, task } from "@trigger.dev/sdk/v3"; export const helloWorldTask = task({ id: "hello-world", run: async (payload: any, { ctx }) => { logger.log("Hello, world!", { payload, ctx }); const dir = __dirname; return { message: "Hello, world!", dir, }; }, });
0
lgollut/kalink
33b9afa
components/navigation-menu/navigation-menu-indicator.css.ts
TypeScript
www.github.com/lgollut/kalink/tree/main/components/navigation-menu/navigation-menu-indicator.css.ts
https://raw.githubusercontent.com/lgollut/kalink/33b9afa/components/navigation-menu/navigation-menu-indicator.css.ts
lgollut/kalink 33b9afa components/navigation-menu/navigation-menu-indicator.css.ts
true
200
973
import { style, keyframes } from '@vanilla-extract/css'; const fadeIn = keyframes({ from: { opacity: 0 }, to: { opacity: 1 }, }); const fadeOut = keyframes({ from: { opacity: 1 }, to: { opacity: 0 }, }); export const navigationMenuIndicator = style({ top: '100%', zIndex: 1, display: 'flex', height: '...
3
shaman365/web-plus-docker-and-compose
4a7febf
backend/src/offers/offers.controller.ts
TypeScript
www.github.com/shaman365/web-plus-docker-and-compose/tree/main/backend/src/offers/offers.controller.ts
https://raw.githubusercontent.com/shaman365/web-plus-docker-and-compose/4a7febf/backend/src/offers/offers.controller.ts
shaman365/web-plus-docker-and-compose 4a7febf backend/src/offers/offers.controller.ts
true
200
1,186
import { Body, Controller, Get, Param, Post, Req, UseGuards, } from '@nestjs/common'; import { OffersService } from './offers.service'; import { CreateOfferDto } from './dto/create-offer-dto'; import { User } from '../users/entities/user.entity'; import { WishesService } from '../wishes/wishes.service'; i...
2
fernandoabf/Ignite-Teams
16733f8
src/storage/player/playersGetByGroupAndTeam.ts
TypeScript
www.github.com/fernandoabf/Ignite-Teams/tree/main/src/storage/player/playersGetByGroupAndTeam.ts
https://raw.githubusercontent.com/fernandoabf/Ignite-Teams/16733f8/src/storage/player/playersGetByGroupAndTeam.ts
fernandoabf/Ignite-Teams 16733f8 src/storage/player/playersGetByGroupAndTeam.ts
true
200
359
import { playersGetByGroup } from "./playersGetByGroup"; export async function playersGetByGroupAndTeam(group: string, team: string) { try { const storage = await playersGetByGroup(group); const players = storage.filter(player => player.team === team); return players } catch...
5
felipebravo/clients-contacts-frontend
d4266dd
src/components/Input/style.ts
TypeScript
www.github.com/felipebravo/clients-contacts-frontend/tree/main/src/components/Input/style.ts
https://raw.githubusercontent.com/felipebravo/clients-contacts-frontend/d4266dd/src/components/Input/style.ts
felipebravo/clients-contacts-frontend d4266dd src/components/Input/style.ts
true
200
1,291
import styled from 'styled-components'; export const Input = styled.input` position: relative; border: 0; outline: none; width: 100%; font-size: 18px; color: var(--primary-green); transition: all 0.3s ease-out; background-color: transparent; padding: 3px 0; ::placeholder { color: transparent; } :focus...
7
manthisthe/thesis
7469610
src/main/webapp/app/entities/task-5/service/task-5.service.ts
TypeScript
www.github.com/manthisthe/thesis/tree/main/src/main/webapp/app/entities/task-5/service/task-5.service.ts
https://raw.githubusercontent.com/manthisthe/thesis/7469610/src/main/webapp/app/entities/task-5/service/task-5.service.ts
manthisthe/thesis 7469610 src/main/webapp/app/entities/task-5/service/task-5.service.ts
true
200
2,943
import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { isPresent } from 'app/core/util/operators'; import { ApplicationConfigService } from 'app/core/config/application-config.service'; import { createRequestOption } from...
6
AgustinGalante19/simple-blog
a36dff3
src/lib/authOptions.ts
TypeScript
www.github.com/AgustinGalante19/simple-blog/tree/main/src/lib/authOptions.ts
https://raw.githubusercontent.com/AgustinGalante19/simple-blog/a36dff3/src/lib/authOptions.ts
AgustinGalante19/simple-blog a36dff3 src/lib/authOptions.ts
true
200
1,922
import { PrismaAdapter } from '@next-auth/prisma-adapter'; import client from './prisma'; import { AuthOptions } from 'next-auth'; import { compare } from 'bcrypt'; import CredentialsProvider from 'next-auth/providers/credentials'; import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); expo...
3
hoang411/maket-formend
dd37d97
src/stores/auth.store.ts
TypeScript
www.github.com/hoang411/maket-formend/tree/main/src/stores/auth.store.ts
https://raw.githubusercontent.com/hoang411/maket-formend/dd37d97/src/stores/auth.store.ts
hoang411/maket-formend dd37d97 src/stores/auth.store.ts
true
200
3,085
// src/stores/auth.store.ts import { defineStore } from 'pinia'; import { authService } from '@/services'; import type { User, LoginDTO, UserDTO, UpdateUserDTO } from '@/types'; export const useAuthStore = defineStore('auth', { state: () => ({ user: null as User | null, token: localStorage.getItem(...
2
liam61/campaign-pattern
1d28822
typings/global.d.ts
TypeScript
www.github.com/liam61/campaign-pattern/tree/main/typings/global.d.ts
https://raw.githubusercontent.com/liam61/campaign-pattern/1d28822/typings/global.d.ts
liam61/campaign-pattern 1d28822 typings/global.d.ts
true
200
344
// should keep this export export {} declare global { const __ENV__: 'test' | 'uat' | 'live' const __LOCALE__: 'sg' | 'cn' const __NODE_ENV__: 'development' | 'production' const __MOCK__: string interface Window { __ENV__: 'test' | 'uat' | 'live' __LOCALE__: 'sg' | 'cn' __NODE_ENV__: 'developmen...
5
haldefine/portofolio
c7a5cc0
src/models/User.ts
TypeScript
www.github.com/haldefine/portofolio/tree/main/src/models/User.ts
https://raw.githubusercontent.com/haldefine/portofolio/c7a5cc0/src/models/User.ts
haldefine/portofolio c7a5cc0 src/models/User.ts
true
200
896
import mongoose from 'mongoose'; export interface ITemplate { paymentDescription: string, paymentCategory: string, } export interface IUser { id: string t_id: number, apiKey?: string, categories: string[], balance: number, templates: ITemplate[], } const TemplateSchema = new mongoose....
0
ebenhaezer19/House-of-Hope-V2
35f4ded
backend/src/server.ts
TypeScript
www.github.com/ebenhaezer19/House-of-Hope-V2/tree/main/backend/src/server.ts
https://raw.githubusercontent.com/ebenhaezer19/House-of-Hope-V2/35f4ded/backend/src/server.ts
ebenhaezer19/House-of-Hope-V2 35f4ded backend/src/server.ts
true
200
36,437
import 'dotenv/config'; import express, { Request, Response, NextFunction } from 'express'; import cors from 'cors'; import { PrismaClient, ResidentStatus } from '@prisma/client'; import bcrypt from 'bcryptjs'; import jwt from 'jsonwebtoken'; import multer from 'multer'; import path from 'path'; import fs from 'fs'; im...
4
sebastianpgab/CarMateCustomerManager---front
d51dd81
src/app/mailing/mailing.module.ts
TypeScript
www.github.com/sebastianpgab/CarMateCustomerManager---front/tree/main/src/app/mailing/mailing.module.ts
https://raw.githubusercontent.com/sebastianpgab/CarMateCustomerManager---front/d51dd81/src/app/mailing/mailing.module.ts
sebastianpgab/CarMateCustomerManager---front d51dd81 src/app/mailing/mailing.module.ts
true
200
588
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MailingAddComponent } from './mailing-add/mailing-add.component'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { AuthGuard } from '../canActivate-guard.service'; co...
2
Fur-Fight-Club/ffc-notifications-service
83ce4a5
src/push-notifications/push-notifications.schema.ts
TypeScript
www.github.com/Fur-Fight-Club/ffc-notifications-service/tree/main/src/push-notifications/push-notifications.schema.ts
https://raw.githubusercontent.com/Fur-Fight-Club/ffc-notifications-service/83ce4a5/src/push-notifications/push-notifications.schema.ts
Fur-Fight-Club/ffc-notifications-service 83ce4a5 src/push-notifications/push-notifications.schema.ts
true
200
2,086
import { ApiProperty } from "@nestjs/swagger"; import { createZodDto } from "nestjs-zod"; import { z } from "nestjs-zod/z"; /** * UPSERT NOTIFICATION TOKEN */ export const upsertNotificationToken = z.object({ token: z.string(), platform: z.enum(["IOS", "ANDROID", "WEB"]), userId: z.number().int(), }); export...
5
rakibul58/pomodoro-server
c5dbaba
src/app/routes/index.ts
TypeScript
www.github.com/rakibul58/pomodoro-server/tree/main/src/app/routes/index.ts
https://raw.githubusercontent.com/rakibul58/pomodoro-server/c5dbaba/src/app/routes/index.ts
rakibul58/pomodoro-server c5dbaba src/app/routes/index.ts
true
200
562
import express from "express"; import { UserRoutes } from "../modules/user/user.routes"; import { AuthRoutes } from "../modules/auth/auth.routes"; import { FocusSessionRoutes } from "../modules/focus-sessions/focus-sessions.routes"; const router = express.Router(); const moduleRoutes = [ { path: "/users", r...
3
asheque33/bike-rental-reserve
feff3f1
src/middlewares/auth.ts
TypeScript
www.github.com/asheque33/bike-rental-reserve/tree/main/src/middlewares/auth.ts
https://raw.githubusercontent.com/asheque33/bike-rental-reserve/feff3f1/src/middlewares/auth.ts
asheque33/bike-rental-reserve feff3f1 src/middlewares/auth.ts
true
200
1,128
import config from "../config"; import AppError from "../errors/AppError"; import { TUser_Role, USER_ROLE } from "../modules/user/user.constants"; import { User } from "../modules/user/user.model"; import catchAsync from "../utils/catchAsync"; import jwt, { JwtPayload } from "jsonwebtoken"; const auth = (...requiredR...
6
Jean-Dv/platform-multimedia
bcbe523
tests/Contexts/Multimedia/Roles/domain/MultimediaRoleMother.ts
TypeScript
www.github.com/Jean-Dv/platform-multimedia/tree/main/tests/Contexts/Multimedia/Roles/domain/MultimediaRoleMother.ts
https://raw.githubusercontent.com/Jean-Dv/platform-multimedia/bcbe523/tests/Contexts/Multimedia/Roles/domain/MultimediaRoleMother.ts
Jean-Dv/platform-multimedia bcbe523 tests/Contexts/Multimedia/Roles/domain/MultimediaRoleMother.ts
true
200
893
import { MultimediaRole } from '@Multimedia/Roles/domain/MultimediaRole' import { type MultimediaRoleId } from '@Multimedia/Roles/domain/MultimediaRoleId' import { type MultimediaRoleName } from '@Multimedia/Roles/domain/MultimediaRoleName' import { MultimediaRoleIdMother } from './MultimediaRoleIdMother' import { Mult...
4
Giancarl021/cli-core-docs-generator
e32962e
src/service/generate-command-tree.ts
TypeScript
www.github.com/Giancarl021/cli-core-docs-generator/tree/main/src/service/generate-command-tree.ts
https://raw.githubusercontent.com/Giancarl021/cli-core-docs-generator/e32962e/src/service/generate-command-tree.ts
Giancarl021/cli-core-docs-generator e32962e src/service/generate-command-tree.ts
true
200
1,141
import { FlattenedParentOrChildCommandDescriptor } from './../interfaces/FlattenedHelpDescriptor'; import { CommandTree, FlattenedHelpDescriptor } from '../interfaces'; export default function generateCommandTree( appName: string, descriptor: FlattenedHelpDescriptor ): CommandTree { const tree = { ...
0
TarsLab/obsidian-tars
d7c09e3
src/settings.ts
TypeScript
www.github.com/TarsLab/obsidian-tars/tree/main/src/settings.ts
https://raw.githubusercontent.com/TarsLab/obsidian-tars/d7c09e3/src/settings.ts
TarsLab/obsidian-tars d7c09e3 src/settings.ts
true
200
1,902
import { PromptTemplate } from './prompt' import { ProviderSettings, Vendor } from './providers' import { azureVendor } from './providers/azure' import { claudeVendor } from './providers/claude' import { deepSeekVendor } from './providers/deepSeek' import { doubaoVendor } from './providers/doubao' import { geminiVendor...
7
GabrielSSG/github-blog
557c813
src/styles/card.ts
TypeScript
www.github.com/GabrielSSG/github-blog/tree/main/src/styles/card.ts
https://raw.githubusercontent.com/GabrielSSG/github-blog/557c813/src/styles/card.ts
GabrielSSG/github-blog 557c813 src/styles/card.ts
true
200
655
import styled from "styled-components"; export const Card = styled.div` padding: 3rem; border-radius: 10px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); background: ${({ theme }) => theme.colors.baseProfile}; padding: 3rem; `; export const CardFooter = styled.div` display: flex; justify-...
2
AntonMinski/temp-hg
64a2020
nuxt.config.ts
TypeScript
www.github.com/AntonMinski/temp-hg/tree/main/nuxt.config.ts
https://raw.githubusercontent.com/AntonMinski/temp-hg/64a2020/nuxt.config.ts
AntonMinski/temp-hg 64a2020 nuxt.config.ts
true
200
2,089
// import eslintPlugin from 'vite-plugin-eslint'; import GlobalSettings from './environmentsettings'; const appEnv = process.env.ENV || 'development'; const settings = GlobalSettings[appEnv]; // dynamic assets path import { resolve } from 'path' export default defineNuxtConfig({ css: [ '~/assets/fonts/XL-9XL/s...
3
Haolk003/durco-app
0083dc5
server/src/service/couponService.ts
TypeScript
www.github.com/Haolk003/durco-app/tree/main/server/src/service/couponService.ts
https://raw.githubusercontent.com/Haolk003/durco-app/0083dc5/server/src/service/couponService.ts
Haolk003/durco-app 0083dc5 server/src/service/couponService.ts
true
200
1,559
import couponModel from "../models/couponModel"; import createError from "../utils/createError"; import { couponSuc, couponErr } from "../utils/responseMessage"; import validateMongoId from "../validation/validateId"; interface createCouponProps { name: string; code: string; startDate?: Date; endDate?: Date; ...
5
Eddsam/marketplace-backend
9c1fda9
src/domain/controllers/Product.controller.ts
TypeScript
www.github.com/Eddsam/marketplace-backend/tree/main/src/domain/controllers/Product.controller.ts
https://raw.githubusercontent.com/Eddsam/marketplace-backend/9c1fda9/src/domain/controllers/Product.controller.ts
Eddsam/marketplace-backend 9c1fda9 src/domain/controllers/Product.controller.ts
true
200
2,290
import { ProductRepositoryImpl } from "@/data/repositories/product.service"; import { IBaseResponse } from "../interfaces/BaseResponse"; import { IProduct } from "../interfaces/Product.interface"; import { IProductController } from "../interfaces/controller/ProductController"; export class ProductControllerImpl implem...
6
gnulitskaya/dating-app
7f537cd
client/src/app/components/login-form-dialog/login-form-dialog.component.ts
TypeScript
www.github.com/gnulitskaya/dating-app/tree/main/client/src/app/components/login-form-dialog/login-form-dialog.component.ts
https://raw.githubusercontent.com/gnulitskaya/dating-app/7f537cd/client/src/app/components/login-form-dialog/login-form-dialog.component.ts
gnulitskaya/dating-app 7f537cd client/src/app/components/login-form-dialog/login-form-dialog.component.ts
true
200
1,651
import { Component } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { MatSnackBar } from '@angular/material/snack-bar'; import { AccountService } from '../../services/account.service'; import { ToastrSer...
7
ruben-asp/wd-assignment
1bc6cf9
cdk/wd-assignment-stack.ts
TypeScript
www.github.com/ruben-asp/wd-assignment/tree/main/cdk/wd-assignment-stack.ts
https://raw.githubusercontent.com/ruben-asp/wd-assignment/1bc6cf9/cdk/wd-assignment-stack.ts
ruben-asp/wd-assignment 1bc6cf9 cdk/wd-assignment-stack.ts
true
200
3,014
import { Stack, StackProps, RemovalPolicy, IgnoreMode } from 'aws-cdk-lib'; import { Construct } from 'constructs'; import { AttributeType, Table, BillingMode } from 'aws-cdk-lib/aws-dynamodb'; import { Cors, LambdaIntegration, RestApi} from 'aws-cdk-lib/aws-apigateway'; import * as lambda from "aws-cdk-lib/aws-lambda"...
0
victorhalimm/orion-backend
c6790fd
src/handlers/job/assistant/assistantJobHandler.ts
TypeScript
www.github.com/victorhalimm/orion-backend/tree/main/src/handlers/job/assistant/assistantJobHandler.ts
https://raw.githubusercontent.com/victorhalimm/orion-backend/c6790fd/src/handlers/job/assistant/assistantJobHandler.ts
victorhalimm/orion-backend c6790fd src/handlers/job/assistant/assistantJobHandler.ts
true
200
1,493
import { ActiveJobParams } from "@models/job/job"; import AssistantJobService from "@services/job/assistant/assistantJobService"; import { sendErrorResponse, sendSuccessResponse } from "@utils/response/response"; import { snakeToCamel } from "@utils/validator/validateCase"; import validateSchema from "@utils/validator/...
2
jhechavarria/design-patterns
4171d6e
src/patterns/template-method/document/abstraction/abstract-document.ts
TypeScript
www.github.com/jhechavarria/design-patterns/tree/main/src/patterns/template-method/document/abstraction/abstract-document.ts
https://raw.githubusercontent.com/jhechavarria/design-patterns/4171d6e/src/patterns/template-method/document/abstraction/abstract-document.ts
jhechavarria/design-patterns 4171d6e src/patterns/template-method/document/abstraction/abstract-document.ts
true
200
1,431
// An abstract document containing a combination of hooks and abstract methods import Document from '../interface/Document' export default abstract class AbstractDocument { // A template class containing a template method and primitive methods document: Document = {} abstract title(document: Document): v...
4
ozan-fn/discord-fapoy
66defc7
src/types.d.ts
TypeScript
www.github.com/ozan-fn/discord-fapoy/tree/main/src/types.d.ts
https://raw.githubusercontent.com/ozan-fn/discord-fapoy/66defc7/src/types.d.ts
ozan-fn/discord-fapoy 66defc7 src/types.d.ts
true
200
1,680
import { SlashCommandBuilder, CommandInteraction, Collection, PermissionResolvable, Message, AutocompleteInteraction, ChatInputCommandInteraction, ModalSubmitInteraction, ButtonInteraction, Events, ClientEvents, } from "discord.js"; import mongoose from "mongoose"; export in...
5
Louka-/dnd_helper
88227d9
dnd_helper_server/src/services/backgrounds.service.ts
TypeScript
www.github.com/Louka-/dnd_helper/tree/main/dnd_helper_server/src/services/backgrounds.service.ts
https://raw.githubusercontent.com/Louka-/dnd_helper/88227d9/dnd_helper_server/src/services/backgrounds.service.ts
Louka-/dnd_helper 88227d9 dnd_helper_server/src/services/backgrounds.service.ts
true
200
1,197
import { Injectable, Logger } from '@nestjs/common'; import { HttpService } from '@nestjs/axios'; import { catchError, firstValueFrom } from 'rxjs'; import { AxiosError } from 'axios'; import { Background } from 'src/entities/background.entity'; import BackgroundsUtils from 'src/utils/backgrounds.utils'; @Injectable()...
3
Johnny1678/Tienda-Ecomers
28bad8f
src/app.service.ts
TypeScript
www.github.com/Johnny1678/Tienda-Ecomers/tree/main/src/app.service.ts
https://raw.githubusercontent.com/Johnny1678/Tienda-Ecomers/28bad8f/src/app.service.ts
Johnny1678/Tienda-Ecomers 28bad8f src/app.service.ts
true
200
837
import { Injectable, Inject } from '@nestjs/common'; import { ConfigType } from '@nestjs/config'; import { Client } from 'pg'; import config from './config'; @Injectable() export class AppService { constructor( // @Inject('API_KEY') private apiKey: string, @Inject('PG') private clientPG: Client, @Inject(...
6
Ur00s/malac-prodavac-backend
972b5da
src/util/factory/create-seed-state.factory.ts
TypeScript
www.github.com/Ur00s/malac-prodavac-backend/tree/main/src/util/factory/create-seed-state.factory.ts
https://raw.githubusercontent.com/Ur00s/malac-prodavac-backend/972b5da/src/util/factory/create-seed-state.factory.ts
Ur00s/malac-prodavac-backend 972b5da src/util/factory/create-seed-state.factory.ts
true
200
2,008
export type TCreateSeedStatePrivileges = { write: boolean; read?: boolean; delete?: boolean; }; export type TCreateSeedStateConfig = { [key: string]: TCreateSeedStatePrivileges; }; export type TCreateSeedStateOption = { entities: any[]; privileges: TCreateSeedStatePrivileges; add: (i: any) => any; set...
7
tHolubets/Multi-User-Chat
7295f4c
frontend/src/app/pages/chat/chat.component.ts
TypeScript
www.github.com/tHolubets/Multi-User-Chat/tree/main/frontend/src/app/pages/chat/chat.component.ts
https://raw.githubusercontent.com/tHolubets/Multi-User-Chat/7295f4c/frontend/src/app/pages/chat/chat.component.ts
tHolubets/Multi-User-Chat 7295f4c frontend/src/app/pages/chat/chat.component.ts
true
200
4,270
import { Component, OnInit, OnDestroy, ElementRef, ViewChild } from '@angular/core'; import { WebSocketService } from '../../core/services/websocket.service'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { ChatMessageDto } from '../../core/interfaces/interfaces'; ...
6
Pr1meB/chat-app
b11b66c
src/graphql/auth.ts
TypeScript
www.github.com/Pr1meB/chat-app/tree/main/src/graphql/auth.ts
https://raw.githubusercontent.com/Pr1meB/chat-app/b11b66c/src/graphql/auth.ts
Pr1meB/chat-app b11b66c src/graphql/auth.ts
true
200
479
import { gql } from "@apollo/client"; // Mutation for user signup export const SIGNUP_MUTATION = gql` mutation Signup($input: SignupInput!) { signup(input: $input) { token user { id username email } } } `; // Mutation for user login export const LOGIN_MUTATION = g...
4
marceloivob/Acompanhamento_de_obra
0bd1897
siconv-medicao-frontend-master/siconv-medicao-frontend-master/src/typings.d.ts
TypeScript
www.github.com/marceloivob/Acompanhamento_de_obra/tree/main/siconv-medicao-frontend-master/siconv-medicao-frontend-master/src/typings.d.ts
https://raw.githubusercontent.com/marceloivob/Acompanhamento_de_obra/0bd1897/siconv-medicao-frontend-master/siconv-medicao-frontend-master/src/typings.d.ts
marceloivob/Acompanhamento_de_obra 0bd1897 siconv-medicao-frontend-master/siconv-medicao-frontend-master/src/typings.d.ts
true
200
348
// Typings reference file, see links for more information // https://github.com/typings/typings // https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html /* SystemJS module definition */ declare var module: NodeModule; interface NodeModule { id: string; } // Type definitions for Moment.js 2.11....
5
EDEN-NN/fc-ddd
eae2916
src/domain/entity/product.ts
TypeScript
www.github.com/EDEN-NN/fc-ddd/tree/main/src/domain/entity/product.ts
https://raw.githubusercontent.com/EDEN-NN/fc-ddd/eae2916/src/domain/entity/product.ts
EDEN-NN/fc-ddd eae2916 src/domain/entity/product.ts
true
200
993
export default class Product { private _id: string; private _name: string; private _price: number; constructor(id: string, name: string, price: number) { this._id = id; this._name = name; this._price = price; this.validate(); } validate(): boolean { if(...
0
GaneshInnovatiq/TMS
f8b5a96
src/app/core/services/logger.service.ts
TypeScript
www.github.com/GaneshInnovatiq/TMS/tree/main/src/app/core/services/logger.service.ts
https://raw.githubusercontent.com/GaneshInnovatiq/TMS/f8b5a96/src/app/core/services/logger.service.ts
GaneshInnovatiq/TMS f8b5a96 src/app/core/services/logger.service.ts
true
200
2,818
import { environment } from "src/environments/environment"; /** * Simple logger system with the possibility of registering custom outputs. * * 4 different log levels are provided, with corresponding methods: * - debug : for debug information * - info : for informative status of the application (success, ...)...
3
cbutler1/CryptoClearAngular
929bfb7
CryptoClearFrontEnd/src/app/interfaces.ts
TypeScript
www.github.com/cbutler1/CryptoClearAngular/tree/main/CryptoClearFrontEnd/src/app/interfaces.ts
https://raw.githubusercontent.com/cbutler1/CryptoClearAngular/929bfb7/CryptoClearFrontEnd/src/app/interfaces.ts
cbutler1/CryptoClearAngular 929bfb7 CryptoClearFrontEnd/src/app/interfaces.ts
true
200
802
export interface User { id: string; name: string; liquidCash: number; transactions?: Transaction[]; } export interface Transaction { id: number; userId: string; transactionDate: Date; coinId: string; quantity: number; purchasePrice: number; } export interface CombinedTransactions { coinId: strin...
7
Bambusx2/ResolVR-angular
6ac6ad7
src/app/pages/projects/hotel-park/hotel-park/hotel-park.component.ts
TypeScript
www.github.com/Bambusx2/ResolVR-angular/tree/main/src/app/pages/projects/hotel-park/hotel-park/hotel-park.component.ts
https://raw.githubusercontent.com/Bambusx2/ResolVR-angular/6ac6ad7/src/app/pages/projects/hotel-park/hotel-park/hotel-park.component.ts
Bambusx2/ResolVR-angular 6ac6ad7 src/app/pages/projects/hotel-park/hotel-park/hotel-park.component.ts
true
200
4,010
import { Component, HostListener, ElementRef } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterLink } from '@angular/router'; import { trigger, transition, style, animate, stagger, query } from '@angular/animations'; import { ProjectCardsComponent } from '../../../../shared/project-...
2
ayarvind/mapped
ad66511
src/apis/short/new-short.ts
TypeScript
www.github.com/ayarvind/mapped/tree/main/src/apis/short/new-short.ts
https://raw.githubusercontent.com/ayarvind/mapped/ad66511/src/apis/short/new-short.ts
ayarvind/mapped ad66511 src/apis/short/new-short.ts
true
200
3,793
import { NewShortnerReqBody } from "@/interfaces/request"; import ServerResponse from "@/interfaces/response"; import { Request, Response } from "express"; import { z } from "zod"; import { prisma } from "../../config/prisma"; import { checkIfCustomAliasExists } from "../../helper/customAlias"; import generateShortUrl ...
6
naturalnick/compass
ddff3c1
src/services/converter.ts
TypeScript
www.github.com/naturalnick/compass/tree/main/src/services/converter.ts
https://raw.githubusercontent.com/naturalnick/compass/ddff3c1/src/services/converter.ts
naturalnick/compass ddff3c1 src/services/converter.ts
true
200
874
import { Compass } from "@/src/models/Compass"; import { Prompt } from "@/src/models/Prompt"; import { User } from "@/src/models/User"; import { Timestamp, type QueryDocumentSnapshot, type SnapshotOptions, } from "firebase/firestore"; const createFirestoreConverter = <T extends { dateUpdated: Timestamp }>() => { ...
5
John-Tonny/bitcore-20220111
920e7bb
packages/insight/src/components/coin-list/coin-list.ts
TypeScript
www.github.com/John-Tonny/bitcore-20220111/tree/main/packages/insight/src/components/coin-list/coin-list.ts
https://raw.githubusercontent.com/John-Tonny/bitcore-20220111/920e7bb/packages/insight/src/components/coin-list/coin-list.ts
John-Tonny/bitcore-20220111 920e7bb packages/insight/src/components/coin-list/coin-list.ts
true
200
3,111
import { Component, Input, OnInit } from '@angular/core'; import { Events } from 'ionic-angular'; import _ from 'lodash'; import { AddressProvider } from '../../providers/address/address'; import { ChainNetwork } from '../../providers/api/api'; import { BlocksProvider } from '../../providers/blocks/blocks'; impor...
3
Bluorenge/react-ya-messanger
3703622
vite.config.ts
TypeScript
www.github.com/Bluorenge/react-ya-messanger/tree/main/vite.config.ts
https://raw.githubusercontent.com/Bluorenge/react-ya-messanger/3703622/vite.config.ts
Bluorenge/react-ya-messanger 3703622 vite.config.ts
true
200
421
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tsconfigPaths from 'vite-tsconfig-paths'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ tsconfigPaths(), react({ jsxImportSource: '@emotion/react', babel: { ...
0
NanoDaleth/cocktailnano
e1427e2
src/firebase/config.ts
TypeScript
www.github.com/NanoDaleth/cocktailnano/tree/main/src/firebase/config.ts
https://raw.githubusercontent.com/NanoDaleth/cocktailnano/e1427e2/src/firebase/config.ts
NanoDaleth/cocktailnano e1427e2 src/firebase/config.ts
true
200
691
import { initializeApp } from "firebase/app"; import { getAnalytics } from "firebase/analytics"; import { getDatabase } from "firebase/database"; const firebaseConfig = { apiKey: "AIzaSyC2WNvhk9qz7G63s-hoPcKzVL_io20xdbI", authDomain: "nano-6e63f.firebaseapp.com", databaseURL: "https://nano-6e63f-default-rtdb.fir...
4
maxivalencia/cri
b7a690c
src/app/app-routing.module.ts
TypeScript
www.github.com/maxivalencia/cri/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/maxivalencia/cri/b7a690c/src/app/app-routing.module.ts
maxivalencia/cri b7a690c src/app/app-routing.module.ts
true
200
2,164
import { NgModule } from '@angular/core'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: 'home', loadChildren: () => import('./home/home.module').then( m => m.HomePageModule) }, { path: '', redirectTo: 'login', pathMatch: 'full' }...
7
sardarsambhajipatil/typescriptexam
ebbf399
saveAccountClass.ts
TypeScript
www.github.com/sardarsambhajipatil/typescriptexam/tree/main/saveAccountClass.ts
https://raw.githubusercontent.com/sardarsambhajipatil/typescriptexam/ebbf399/saveAccountClass.ts
sardarsambhajipatil/typescriptexam ebbf399 saveAccountClass.ts
true
200
842
// then create a class called SaveAccount which inherits from Account class and implement lAccount interface note: each class and interface will be in a separate file and connect it using import, and for function bodies use anything like console.log("FunctionName") for example import { Account } from './accountClass...
2
LANAIS/copa_robotica_misiones
1df6cff
src/app/api/public/categorias/route.ts
TypeScript
www.github.com/LANAIS/copa_robotica_misiones/tree/main/src/app/api/public/categorias/route.ts
https://raw.githubusercontent.com/LANAIS/copa_robotica_misiones/1df6cff/src/app/api/public/categorias/route.ts
LANAIS/copa_robotica_misiones 1df6cff src/app/api/public/categorias/route.ts
true
200
699
import { NextResponse } from 'next/server'; import prisma from '@/lib/prisma'; export async function GET() { try { // Obtener todas las categorías const categorias = await prisma.categoria.findMany({ orderBy: { nombre: 'asc', }, }); // Formatear datos para la respuesta co...
6
200427-Revature-Training/salem_aouchiche_p1
93dad7d
backend/src/routers/reimbursement-router.ts
TypeScript
www.github.com/200427-Revature-Training/salem_aouchiche_p1/tree/main/backend/src/routers/reimbursement-router.ts
https://raw.githubusercontent.com/200427-Revature-Training/salem_aouchiche_p1/93dad7d/backend/src/routers/reimbursement-router.ts
200427-Revature-Training/salem_aouchiche_p1 93dad7d backend/src/routers/reimbursement-router.ts
true
200
5,573
import express, { response } from 'express'; import * as reimbursementService from '../services/reimbursement-service'; import bunyan from 'bunyan'; import fileUpload, { UploadedFile } from 'express-fileupload'; import path from 'path'; import { error } from 'console'; import { Reimbursement } from '../models/Reimb...
5
cvillao1/CarlosVillao3C
346db4f
Herencia - POO - Carlos Villao/persona.ts
TypeScript
www.github.com/cvillao1/CarlosVillao3C/tree/main/Herencia - POO - Carlos Villao/persona.ts
https://raw.githubusercontent.com/cvillao1/CarlosVillao3C/346db4f/Herencia%20-%20POO%20-%20Carlos%20Villao/persona.ts
cvillao1/CarlosVillao3C 346db4f Herencia - POO - Carlos Villao/persona.ts
true
200
722
//Clas Madre. export class Persona{ private nombre: string; private apellidos: string; private id: number; private estadoCivil: string; constructor(nombre: string, apellidos: string, id: number, estadoCivil: string){ this.nombre= nombre; this.apellidos= apellidos; ...
0
TigranAvagyan18/tg-gpt-nest
167b9a3
src/services/telegram/exception.filter.ts
TypeScript
www.github.com/TigranAvagyan18/tg-gpt-nest/tree/main/src/services/telegram/exception.filter.ts
https://raw.githubusercontent.com/TigranAvagyan18/tg-gpt-nest/167b9a3/src/services/telegram/exception.filter.ts
TigranAvagyan18/tg-gpt-nest 167b9a3 src/services/telegram/exception.filter.ts
true
200
627
import { ArgumentsHost, Catch, ExceptionFilter } from '@nestjs/common'; import { TelegrafArgumentsHost } from 'nestjs-telegraf'; import { AppContext } from './telegram.types'; @Catch() export class TelegrafExceptionFilter implements ExceptionFilter { async catch(exception: Error, host: ArgumentsHost): Promise<v...
3
FL3NKEY/flue3
5a81395
packages/router/src/composables/useLayoutResolver.ts
TypeScript
www.github.com/FL3NKEY/flue3/tree/main/packages/router/src/composables/useLayoutResolver.ts
https://raw.githubusercontent.com/FL3NKEY/flue3/5a81395/packages/router/src/composables/useLayoutResolver.ts
FL3NKEY/flue3 5a81395 packages/router/src/composables/useLayoutResolver.ts
true
200
839
import { Component } from 'vue'; import { useAppContext } from 'flue3'; import { LayoutComponentsRecord } from '../types'; export const useLayoutResolver = async (layoutName: string | boolean) => { const { layouts } = useAppContext(); let LayoutComponent: Component | null = null; if (layoutName) { ...
4