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
Ueetim/courtdb-client
73a0f33
src/app/auth.interceptor.ts
TypeScript
www.github.com/Ueetim/courtdb-client/tree/main/src/app/auth.interceptor.ts
https://raw.githubusercontent.com/Ueetim/courtdb-client/73a0f33/src/app/auth.interceptor.ts
Ueetim/courtdb-client 73a0f33 src/app/auth.interceptor.ts
true
200
848
import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CookieServices } from './services/cookie.service'; @Injectable() export class AuthInterceptor implements HttpInterceptor { stati...
6
Adelblande/delliv
954ad7d
backend/src/modules/auth/strategy/jwt.strategy.ts
TypeScript
www.github.com/Adelblande/delliv/tree/main/backend/src/modules/auth/strategy/jwt.strategy.ts
https://raw.githubusercontent.com/Adelblande/delliv/954ad7d/backend/src/modules/auth/strategy/jwt.strategy.ts
Adelblande/delliv 954ad7d backend/src/modules/auth/strategy/jwt.strategy.ts
true
200
620
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { PassportStrategy } from '@nestjs/passport'; import { ExtractJwt, Strategy } from 'passport-jwt'; @Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { constructor(config: ConfigService) { c...
1
roxlabs/coldsnip
422ffce
src/lookupSnippet.ts
TypeScript
www.github.com/roxlabs/coldsnip/tree/main/src/lookupSnippet.ts
https://raw.githubusercontent.com/roxlabs/coldsnip/422ffce/src/lookupSnippet.ts
roxlabs/coldsnip 422ffce src/lookupSnippet.ts
true
200
1,290
import { Snippet, Snippets } from "./types"; /** * Snippet lookup options. The `key` is always required, the other properties * are useful for matching multi-language snippets indexed by the same key. */ export type LookupOptions = { /** the snippet identifier */ key: string; /** the snippet source language *...
0
WallaceRodrigo/TFC-BackEnd
07dd207
app/backend/src/services/MatchesService.ts
TypeScript
www.github.com/WallaceRodrigo/TFC-BackEnd/tree/main/app/backend/src/services/MatchesService.ts
https://raw.githubusercontent.com/WallaceRodrigo/TFC-BackEnd/07dd207/app/backend/src/services/MatchesService.ts
WallaceRodrigo/TFC-BackEnd 07dd207 app/backend/src/services/MatchesService.ts
true
200
3,525
import MatchesModel from '../models/MatchesModel'; import IMatches from '../Interfaces/IMatches'; import { ICRUDMatches } from '../Interfaces/ICRUDMatches'; import { ServiceResponse } from '../Interfaces/ServiceResponse'; import JwtUtils from '../utils/jwtUtils'; const TOKEN_NOT_FOUND = 'Token not found'; const MATH_N...
2
keiner-code/Clon_Backend_Lopidotodo
62a8db0
src/products/services/product.service.ts
TypeScript
www.github.com/keiner-code/Clon_Backend_Lopidotodo/tree/main/src/products/services/product.service.ts
https://raw.githubusercontent.com/keiner-code/Clon_Backend_Lopidotodo/62a8db0/src/products/services/product.service.ts
keiner-code/Clon_Backend_Lopidotodo 62a8db0 src/products/services/product.service.ts
true
200
2,150
import { CreateProductDto, UpdateProductDto, FilterProductDto, } from '../dtos/product.dto'; import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Product } from '../entities/product.entity'; import { BrandService } from './...
7
mandakan/life-compass
f00de23
src/tests/translationLoader.test.ts
TypeScript
www.github.com/mandakan/life-compass/tree/main/src/tests/translationLoader.test.ts
https://raw.githubusercontent.com/mandakan/life-compass/f00de23/src/tests/translationLoader.test.ts
mandakan/life-compass f00de23 src/tests/translationLoader.test.ts
true
200
1,996
import { describe, test, expect } from 'vitest'; import englishTranslations from '../../public/locales/en/translation.json'; import swedishTranslations from '../../public/locales/sv/translation.json'; describe('Translation Loader', () => { test('English translations have correct version', () => { expect(typeof e...
4
libninjacom/openapi-generator-plaid-typescript
33158e2
model/standaloneAccountType.ts
TypeScript
www.github.com/libninjacom/openapi-generator-plaid-typescript/tree/main/model/standaloneAccountType.ts
https://raw.githubusercontent.com/libninjacom/openapi-generator-plaid-typescript/33158e2/model/standaloneAccountType.ts
libninjacom/openapi-generator-plaid-typescript 33158e2 model/standaloneAccountType.ts
true
200
2,423
/** * The Plaid API * The Plaid REST API. Please see https://plaid.com/docs/api for more details. * * The version of the OpenAPI document: 2020-09-14_1.64.13 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class...
3
FernAbby/bep-ui
b8ee98e
packages/gadgets/hooks/useNamespace.ts
TypeScript
www.github.com/FernAbby/bep-ui/tree/main/packages/gadgets/hooks/useNamespace.ts
https://raw.githubusercontent.com/FernAbby/bep-ui/b8ee98e/packages/gadgets/hooks/useNamespace.ts
FernAbby/bep-ui b8ee98e packages/gadgets/hooks/useNamespace.ts
true
200
3,266
import { isFunction } from '../utils/typeof' // useGetDerivedNamespace let defaultNamespace = '' let defaultCssNamespace = 'root' const statePrefix = 'is-' const _bem = ( namespace: string, block: string, blockSuffix: string, element: string, modifier: string ) => { let cls = `${namespace ? `${namespace}-...
1
CeluchNB/stall-one
5dbf317
src/domains/point/next/start.ts
TypeScript
www.github.com/CeluchNB/stall-one/tree/main/src/domains/point/next/start.ts
https://raw.githubusercontent.com/CeluchNB/stall-one/5dbf317/src/domains/point/next/start.ts
CeluchNB/stall-one 5dbf317 src/domains/point/next/start.ts
true
200
2,447
import * as Constants from '../../../utils/constants' import Dependencies from '../../../types/di' import IGame from '../../../types/game' import { findByIdOrThrow } from '../../../utils/mongoose' import IPoint, { PointStatus } from '../../../types/point' import { TeamNumber } from '../../../types/ultmt' import { isTea...
7
timsleo/AP2-Cloud
af12754
src/app/app.module.ts
TypeScript
www.github.com/timsleo/AP2-Cloud/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/timsleo/AP2-Cloud/af12754/src/app/app.module.ts
timsleo/AP2-Cloud af12754 src/app/app.module.ts
true
200
1,908
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { MatToolbarModule } from '@angular/material/toolbar'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ReceitaComponent } from './receita/receita....
2
rsdmike/github-security-report-action
544ffd6
src/dependencies/DependencySet.ts
TypeScript
www.github.com/rsdmike/github-security-report-action/tree/main/src/dependencies/DependencySet.ts
https://raw.githubusercontent.com/rsdmike/github-security-report-action/544ffd6/src/dependencies/DependencySet.ts
rsdmike/github-security-report-action 544ffd6 src/dependencies/DependencySet.ts
true
200
1,060
/********************************************************************* * Copyright (c) Intel Corporation 2023 **********************************************************************/ import Dependency from './Dependency' import { type DependencySetData } from './DependencyTypes' export default class DependencySet { ...
0
croydondev/AshipaClient
2f15a3e
src/app/landing/landing.component.ts
TypeScript
www.github.com/croydondev/AshipaClient/tree/main/src/app/landing/landing.component.ts
https://raw.githubusercontent.com/croydondev/AshipaClient/2f15a3e/src/app/landing/landing.component.ts
croydondev/AshipaClient 2f15a3e src/app/landing/landing.component.ts
true
200
8,968
import { Component, OnInit, Input } from '@angular/core'; import { ActivatedRoute, Route, Router } from '@angular/router'; import { NgbActiveModal, NgbModal, NgbCarouselConfig } from '@ng-bootstrap/ng-bootstrap'; import { RegistrationService } from '../services/registration.service'; import { Usersession } from '../mod...
5
beer-building/gym-mate
360a2da
libs/shared-types/schemas/exercises/get-exercise.ts
TypeScript
www.github.com/beer-building/gym-mate/tree/main/libs/shared-types/schemas/exercises/get-exercise.ts
https://raw.githubusercontent.com/beer-building/gym-mate/360a2da/libs/shared-types/schemas/exercises/get-exercise.ts
beer-building/gym-mate 360a2da libs/shared-types/schemas/exercises/get-exercise.ts
true
200
418
import { Type } from '@sinclair/typebox' import type { Static } from '@sinclair/typebox' import { ExerciseSchema } from './exercise' import { Equipment } from '@prisma/client' export const FullExerciseReply = Type.Object({ exercise: ExerciseSchema }) export const GetExerciseQuery = Type.Object({ equipment: Type.Op...
6
lamusjc/firebase-chat
3e4b608
src/environments/environment.ts
TypeScript
www.github.com/lamusjc/firebase-chat/tree/main/src/environments/environment.ts
https://raw.githubusercontent.com/lamusjc/firebase-chat/3e4b608/src/environments/environment.ts
lamusjc/firebase-chat 3e4b608 src/environments/environment.ts
true
200
1,045
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, firebaseConfig: { apiKey: "AIzaSyDJ3rYdFzW...
3
clemos92/esesmt
33f678d
frontend/src/app/app-routing.module.ts
TypeScript
www.github.com/clemos92/esesmt/tree/main/frontend/src/app/app-routing.module.ts
https://raw.githubusercontent.com/clemos92/esesmt/33f678d/frontend/src/app/app-routing.module.ts
clemos92/esesmt 33f678d frontend/src/app/app-routing.module.ts
true
200
992
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DefaultComponent } from './core/layouts/default/default.component'; import { HomeComponent } from './modules/home/home.component'; import { NotFoundComponent } from './modules/not-found/not-found.component'; cons...
1
ybeaz/r1.userto.com-weather
f0a4f23
tools/getCopiedFilesDeployment.ts
TypeScript
www.github.com/ybeaz/r1.userto.com-weather/tree/main/tools/getCopiedFilesDeployment.ts
https://raw.githubusercontent.com/ybeaz/r1.userto.com-weather/f0a4f23/tools/getCopiedFilesDeployment.ts
ybeaz/r1.userto.com-weather f0a4f23 tools/getCopiedFilesDeployment.ts
true
200
2,212
import path from 'path' import { getCopiedFileDir } from './getCopiedFileDir' import { consoler } from './consoler' import { consolerError } from './consolerError' export type GetCopiedFilesDeploymentParamsType = any export type GetCopiedFilesDeploymentOptionsType = { printRes?: boolean } export type GetCopiedFiles...
7
PedroHSGuimaraes/Backend-kenzie-entrega-ad
7824fc7
src/middlewares/validateId.middleware.ts
TypeScript
www.github.com/PedroHSGuimaraes/Backend-kenzie-entrega-ad/tree/main/src/middlewares/validateId.middleware.ts
https://raw.githubusercontent.com/PedroHSGuimaraes/Backend-kenzie-entrega-ad/7824fc7/src/middlewares/validateId.middleware.ts
PedroHSGuimaraes/Backend-kenzie-entrega-ad 7824fc7 src/middlewares/validateId.middleware.ts
true
200
744
import { Request, Response, NextFunction } from "express"; import AppError from "../errors/App.erros"; import { client } from "../database"; export const checkId = async ( req: Request, res: Response, next: NextFunction ) => { const userId = req.params.userId; const courseId = req.params.courseId; ...
0
TimPaasche/tex-to-typst-DotNet
3a40fea
tex.to.typst.DotNet/node_modules/@unified-latex/unified-latex-util-visit/index.d.ts
TypeScript
www.github.com/TimPaasche/tex-to-typst-DotNet/tree/main/tex.to.typst.DotNet/node_modules/@unified-latex/unified-latex-util-visit/index.d.ts
https://raw.githubusercontent.com/TimPaasche/tex-to-typst-DotNet/3a40fea/tex.to.typst.DotNet/node_modules/%40unified-latex/unified-latex-util-visit/index.d.ts
TimPaasche/tex-to-typst-DotNet 3a40fea tex.to.typst.DotNet/node_modules/@unified-latex/unified-latex-util-visit/index.d.ts
true
200
4,085
import * as Ast from '@unified-latex/unified-latex-types'; declare type Action = typeof CONTINUE | typeof SKIP | typeof EXIT; declare type ActionTuple = [Action] | [typeof SKIP, Index] | [typeof CONTINUE, Index]; /** * Continue traversing as normal */ export declare const CONTINUE: unique symbol; /** * Stop trav...
6
Jahid1987/smart-book
62793f3
src/lib/utils.ts
TypeScript
www.github.com/Jahid1987/smart-book/tree/main/src/lib/utils.ts
https://raw.githubusercontent.com/Jahid1987/smart-book/62793f3/src/lib/utils.ts
Jahid1987/smart-book 62793f3 src/lib/utils.ts
true
200
2,120
import { Revenue } from './definitions'; // export const formatCurrency = (amount: number) => { // return (amount / 100).toLocaleString('en-US', { // style: 'currency', // currency: 'USD', // }); // }; // export const formatDateToLocal = ( // dateStr: string, // locale: string = 'en-US', /...
5
RomuuloGoncalves/Projeto-Integrador
6ec8be4
FrontEnd/src/app/pages/perfil/perfil.module.ts
TypeScript
www.github.com/RomuuloGoncalves/Projeto-Integrador/tree/main/FrontEnd/src/app/pages/perfil/perfil.module.ts
https://raw.githubusercontent.com/RomuuloGoncalves/Projeto-Integrador/6ec8be4/FrontEnd/src/app/pages/perfil/perfil.module.ts
RomuuloGoncalves/Projeto-Integrador 6ec8be4 FrontEnd/src/app/pages/perfil/perfil.module.ts
true
200
1,002
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { PerfilPageRoutingModule } from './perfil-routing.module'; import { HeaderModule } from 'src/app/components/common/header/header...
3
irfanzulkepli/frontend
94c4e82
src/app/lms/users-role/users-role.component.ts
TypeScript
www.github.com/irfanzulkepli/frontend/tree/main/src/app/lms/users-role/users-role.component.ts
https://raw.githubusercontent.com/irfanzulkepli/frontend/94c4e82/src/app/lms/users-role/users-role.component.ts
irfanzulkepli/frontend 94c4e82 src/app/lms/users-role/users-role.component.ts
true
200
466
import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; export interface User { username:string, password:string, roles:string, pNum:string, } @Component({ selector: 'app-users-role', templateUrl: './users-role.component.html', styleUrls: ['./users-role.com...
2
AbrahamAhudev/OnlineShopProject
1abef12
onlineshopproject.client/src/app/Services/User/user.service.ts
TypeScript
www.github.com/AbrahamAhudev/OnlineShopProject/tree/main/onlineshopproject.client/src/app/Services/User/user.service.ts
https://raw.githubusercontent.com/AbrahamAhudev/OnlineShopProject/1abef12/onlineshopproject.client/src/app/Services/User/user.service.ts
AbrahamAhudev/OnlineShopProject 1abef12 onlineshopproject.client/src/app/Services/User/user.service.ts
true
200
1,574
import { Injectable } from "@angular/core"; import { Observable } from "rxjs"; import { HttpClient, HttpHeaders } from '@angular/common/http' import { Global } from 'src/app/Services/global'; import { User } from "../../Models/User"; @Injectable( { providedIn: 'root' } ) export class UserService { public ur...
1
wminaung/rest-api
21adb0e
src/modules/postTag/interfaces/IPostTagService.ts
TypeScript
www.github.com/wminaung/rest-api/tree/main/src/modules/postTag/interfaces/IPostTagService.ts
https://raw.githubusercontent.com/wminaung/rest-api/21adb0e/src/modules/postTag/interfaces/IPostTagService.ts
wminaung/rest-api 21adb0e src/modules/postTag/interfaces/IPostTagService.ts
true
200
377
import { PostDTO } from "../../../dtos/PostDTO"; import { CreatePostTagSchema } from "../../../shared/schemas/postTagSchema"; import { ICreate, IDelete, IGet, IGetAll, } from "../../../shared/interfaces/crud.interfaces"; export interface IPostTagService extends ICreate<PostDTO, CreatePostTagSchema>, IGet...
7
nusic-fm/gen-ai-models
844ecfa
scripts/05_gen-ai-update-tracks.ts
TypeScript
www.github.com/nusic-fm/gen-ai-models/tree/main/scripts/05_gen-ai-update-tracks.ts
https://raw.githubusercontent.com/nusic-fm/gen-ai-models/844ecfa/scripts/05_gen-ai-update-tracks.ts
nusic-fm/gen-ai-models 844ecfa scripts/05_gen-ai-update-tracks.ts
true
200
932
import { ethers, network } from "hardhat"; import { GenAIModel2, GenAIModel2__factory } from "../typechain-types"; const addresses = require("./address.json"); async function main() { const [owner, addr1] = await ethers.getSigners(); console.log("Network = ",network.name); const GenAIModel2:GenAIModel2__factor...
0
JuanMao666/cocos-creator
c211efe
assets/script/base/TimerHander.ts
TypeScript
www.github.com/JuanMao666/cocos-creator/tree/main/assets/script/base/TimerHander.ts
https://raw.githubusercontent.com/JuanMao666/cocos-creator/c211efe/assets/script/base/TimerHander.ts
JuanMao666/cocos-creator c211efe assets/script/base/TimerHander.ts
true
200
975
/** * @ Author: zhengxinpeng * @ Create Time: 2022-12-14 15:52:47 * @ Description: 计时器hander */ import { _decorator } from 'cc'; import { Global } from './Global'; import { Hander } from './Hander'; const { ccclass, property } = _decorator; @ccclass('TimerHander') export class TimerHander { public callFun: Fu...
6
omaralfaruque29/cloudslip-webapp-ang7
07afe37
src/app/main/settings/regions/components/region.component.ts
TypeScript
www.github.com/omaralfaruque29/cloudslip-webapp-ang7/tree/main/src/app/main/settings/regions/components/region.component.ts
https://raw.githubusercontent.com/omaralfaruque29/cloudslip-webapp-ang7/07afe37/src/app/main/settings/regions/components/region.component.ts
omaralfaruque29/cloudslip-webapp-ang7 07afe37 src/app/main/settings/regions/components/region.component.ts
true
200
3,637
import { Component, ChangeDetectorRef, OnInit, } from "@angular/core"; import { RegionService } from '../services/service-api/region.service'; import { NgbModalRef, NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { RegionFormComponent } from './form/region.form.component'; import { Region } from '../services/d...
5
tapu74/todo-svelte
c7d630e
src/lib/ToDos/todo-store.ts
TypeScript
www.github.com/tapu74/todo-svelte/tree/main/src/lib/ToDos/todo-store.ts
https://raw.githubusercontent.com/tapu74/todo-svelte/c7d630e/src/lib/ToDos/todo-store.ts
tapu74/todo-svelte c7d630e src/lib/ToDos/todo-store.ts
true
200
982
import { writable} from 'svelte/store' import type { ToDo } from './ToDoType'; const todos = writable([]); const customTodosStore ={ subscribe: todos.subscribe, addToDo: (todoData: ToDo) => { const newTodo = { ...todoData } todos.update((items: ToDo[]) => { retur...
3
manucavallera/Sistema-Gestion
5ec6f32
.history/src/app/api/cheques/route_20241115165657.ts
TypeScript
www.github.com/manucavallera/Sistema-Gestion/tree/main/.history/src/app/api/cheques/route_20241115165657.ts
https://raw.githubusercontent.com/manucavallera/Sistema-Gestion/5ec6f32/.history/src/app/api/cheques/route_20241115165657.ts
manucavallera/Sistema-Gestion 5ec6f32 .history/src/app/api/cheques/route_20241115165657.ts
true
200
3,579
import { NextResponse } from "next/server"; import prisma from "@/lib/prisma"; // Asegúrate de que la ruta a tu cliente Prisma sea correcta // Endpoint para crear un cheque export async function POST(request: Request) { const data = await request.json(); // Validación de datos if (!data.fecha || !data.monto || ...
1
DongJeff/ionictemplate
562ee7c
src/app/user/user.service.ts
TypeScript
www.github.com/DongJeff/ionictemplate/tree/main/src/app/user/user.service.ts
https://raw.githubusercontent.com/DongJeff/ionictemplate/562ee7c/src/app/user/user.service.ts
DongJeff/ionictemplate 562ee7c src/app/user/user.service.ts
true
200
342
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable() export class UserService { constructor(private http: HttpClient) { } public getProfileData(): Observable<any> { return this.http.get('./assets/sample-data/user/user-...
7
azamdev00/hms-dashboard
ef30879
src/validations/login.ts
TypeScript
www.github.com/azamdev00/hms-dashboard/tree/main/src/validations/login.ts
https://raw.githubusercontent.com/azamdev00/hms-dashboard/ef30879/src/validations/login.ts
azamdev00/hms-dashboard ef30879 src/validations/login.ts
true
200
952
import Joi from "joi"; export const LoginSchema = Joi.object({ cnic: Joi.string() .pattern(/^[0-9]{5}-[0-9]{7}-[0-9]{1}$/) .required() .messages({ "any.required": "CNIC is required.", "string.empty": "CNIC cannot be empty.", "string.pattern.base": "CNIC must be in the format XXXXX-XXXXX...
4
covenengineering/libraries
1d27705
@coven/utils/get.ts
TypeScript
www.github.com/covenengineering/libraries/tree/main/@coven/utils/get.ts
https://raw.githubusercontent.com/covenengineering/libraries/1d27705/%40coven/utils/get.ts
covenengineering/libraries 1d27705 @coven/utils/get.ts
true
200
489
import type { ReadonlyRecord } from "@coven/types"; /** * Get the value of a property in an object. * * @example * ```typescript * const getWitch = get("witch"); * * getWitch({ witch: "🧙🏻‍♀️" }); // "🧙🏻‍♀️" * ``` * @returns Curried function with `key` in context. */ export const get = <const Key extends ...
0
xaliz-06/paginated_table
bdcfbc8
lib/types.ts
TypeScript
www.github.com/xaliz-06/paginated_table/tree/main/lib/types.ts
https://raw.githubusercontent.com/xaliz-06/paginated_table/bdcfbc8/lib/types.ts
xaliz-06/paginated_table bdcfbc8 lib/types.ts
true
200
4,445
// Dummy response for the users API (to get the type) const dummyResponse = { users: [ { id: 1, firstName: "Emily", lastName: "Johnson", maidenName: "Smith", age: 28, gender: "female", email: "emily.johnson@x.dummyjson.com", phone: "+81 965-431-3024", username...
6
ghmouguiaziz/frontend
5789247
src/app/CurrentResources/CurrentResources.component.ts
TypeScript
www.github.com/ghmouguiaziz/frontend/tree/main/src/app/CurrentResources/CurrentResources.component.ts
https://raw.githubusercontent.com/ghmouguiaziz/frontend/5789247/src/app/CurrentResources/CurrentResources.component.ts
ghmouguiaziz/frontend 5789247 src/app/CurrentResources/CurrentResources.component.ts
true
200
19,582
import { Component, OnInit } from '@angular/core'; import { EnvCompute } from 'app/Models/EnvCompute.model'; import { Availablity } from 'app/Models/EnvCompute.model'; import { Champ } from 'app/Models/EnvCompute.model'; import { RessService } from 'app/Services/ress.service'; import { EnvStorage } from 'app/Models/Env...
5
GENLOCKER/senublog
3c825a1
helpers/validators/auth.validators.ts
TypeScript
www.github.com/GENLOCKER/senublog/tree/main/helpers/validators/auth.validators.ts
https://raw.githubusercontent.com/GENLOCKER/senublog/3c825a1/helpers/validators/auth.validators.ts
GENLOCKER/senublog 3c825a1 helpers/validators/auth.validators.ts
true
200
1,765
import * as Yup from "yup" export const loginSchema = Yup.object().shape({ email: Yup.string().email("Please enter a valid email address").required("Email is required!"), password: Yup.string().required("Password is required!"), rememberMe: Yup.boolean().optional(), }) export const signupSchema = Yup.object(...
3
Kewkew00/Aprohirdetes
1080b1d
Aprohirdetes/src/app/services/message.service.ts
TypeScript
www.github.com/Kewkew00/Aprohirdetes/tree/main/Aprohirdetes/src/app/services/message.service.ts
https://raw.githubusercontent.com/Kewkew00/Aprohirdetes/1080b1d/Aprohirdetes/src/app/services/message.service.ts
Kewkew00/Aprohirdetes 1080b1d Aprohirdetes/src/app/services/message.service.ts
true
200
529
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { Message } from '../interfaces/message'; @Injectable({ providedIn: 'root', }) export class MessageService { private messageSubject = new BehaviorSubject<Message | null>(null); public messageSubject$ = this.messageSubject....
1
hexuntao/naa
c7a5813
apps/api/src/modules/system/oper-log/oper-log.module.ts
TypeScript
www.github.com/hexuntao/naa/tree/main/apps/api/src/modules/system/oper-log/oper-log.module.ts
https://raw.githubusercontent.com/hexuntao/naa/c7a5813/apps/api/src/modules/system/oper-log/oper-log.module.ts
hexuntao/naa c7a5813 apps/api/src/modules/system/oper-log/oper-log.module.ts
true
200
534
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { SysOperLog } from './entities/sys-oper-log.entity'; import { OperLogController } from './oper-log.controller'; import { OperLogService } from './oper-log.service'; /** * 操作日志模块 * @description 提供操作日志相关功能 */ @Module({ ...
7
otoko13/stratego
6da7ebe
nuxt.config.ts
TypeScript
www.github.com/otoko13/stratego/tree/main/nuxt.config.ts
https://raw.githubusercontent.com/otoko13/stratego/6da7ebe/nuxt.config.ts
otoko13/stratego 6da7ebe nuxt.config.ts
true
200
339
// https://nuxt.com/docs/api/configuration/nuxt-config export default export default defineNuxtConfig({ compatibilityDate: "2024-04-03", devtools: { enabled: true }, app: { pageTransition: { name: "page", mode: "out-in" } }, typescript: { typeCheck: true, }, modules: ["@nuxt/eslint"], css: ["/assets/c...
0
AdamEL1/cyberpunk-2023
817a867
client/src/app/services/communication.service.ts
TypeScript
www.github.com/AdamEL1/cyberpunk-2023/tree/main/client/src/app/services/communication.service.ts
https://raw.githubusercontent.com/AdamEL1/cyberpunk-2023/817a867/client/src/app/services/communication.service.ts
AdamEL1/cyberpunk-2023 817a867 client/src/app/services/communication.service.ts
true
200
1,028
import { Injectable } from '@angular/core'; import { HttpClient } from "@angular/common/http"; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class CommunicationService { private readonly BASE_URL: string = 'http://132.207.31.103:80'; constructor(private readonly http: HttpClient)...
4
ampgn/messaging
72b184d
src/app/app.module.ts
TypeScript
www.github.com/ampgn/messaging/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/ampgn/messaging/72b184d/src/app/app.module.ts
ampgn/messaging 72b184d src/app/app.module.ts
true
200
1,933
import { NgModule, isDevMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { FlexLayoutModule } from '@angular/flex-layo...
6
sudo-alexslater/gaming-service
3dd4ea9
core/jest.config.unit.ts
TypeScript
www.github.com/sudo-alexslater/gaming-service/tree/main/core/jest.config.unit.ts
https://raw.githubusercontent.com/sudo-alexslater/gaming-service/3dd4ea9/core/jest.config.unit.ts
sudo-alexslater/gaming-service 3dd4ea9 core/jest.config.unit.ts
true
200
709
/** * For a detailed explanation regarding each configuration property, visit: * https://jestjs.io/docs/configuration */ import type { Config } from "jest"; const config: Config = { testEnvironment: "node", transform: { "^.+.tsx?$": ["ts-jest", {}], }, // Stop running tests after `n` failures bail: 1, // ...
5
msinghai-code/gs-ui-360
090b083
libs/cs360-lib/src/portfolio-copy/portfolio-widget-grid/portfolio-cell-editor/portfolio-cell-editor.component.ts
TypeScript
www.github.com/msinghai-code/gs-ui-360/tree/main/libs/cs360-lib/src/portfolio-copy/portfolio-widget-grid/portfolio-cell-editor/portfolio-cell-editor.component.ts
https://raw.githubusercontent.com/msinghai-code/gs-ui-360/090b083/libs/cs360-lib/src/portfolio-copy/portfolio-widget-grid/portfolio-cell-editor/portfolio-cell-editor.component.ts
msinghai-code/gs-ui-360 090b083 libs/cs360-lib/src/portfolio-copy/portfolio-widget-grid/portfolio-cell-editor/portfolio-cell-editor.component.ts
true
200
3,051
import { Component, Inject, OnInit } from '@angular/core'; import { ICellEditorAngularComp } from '@ag-grid-community/angular'; import { ICellEditorParams } from '@ag-grid-community/core'; import { FieldEditorValueChangeInfo } from '../../pojos/portfolio-interfaces'; import { DataTypes } from '../../pojos/portfolio-enu...
0
CSSIT22/studentlife
26f0bc0
backend/src/modules/shop/routes/put/decreaseCPQuantity.ts
TypeScript
www.github.com/CSSIT22/studentlife/tree/main/backend/src/modules/shop/routes/put/decreaseCPQuantity.ts
https://raw.githubusercontent.com/CSSIT22/studentlife/26f0bc0/backend/src/modules/shop/routes/put/decreaseCPQuantity.ts
CSSIT22/studentlife 26f0bc0 backend/src/modules/shop/routes/put/decreaseCPQuantity.ts
true
200
1,792
import { Request, Response } from "express" const decreaseCPQuantity = async (req: Request, res: Response) => { try { const prisma = res.prisma const userId = req.user?.userId const productId = parseInt(req.params.productId) if (userId != undefined) { const currentQuanti...
3
inocan-group/inferred-types
df7a503
modules/types/src/base-types/Thenable.ts
TypeScript
www.github.com/inocan-group/inferred-types/tree/main/modules/types/src/base-types/Thenable.ts
https://raw.githubusercontent.com/inocan-group/inferred-types/df7a503/modules/types/src/base-types/Thenable.ts
inocan-group/inferred-types df7a503 modules/types/src/base-types/Thenable.ts
true
200
266
/** * **Thenable**`<T>` * * An object which resembles a promise and is guarenteed to provide a `.then` and `.catch` * callback hook. */ export interface Thenable extends PromiseLike<any> { then: (...args: any[]) => any; finally?: (...args: any[]) => any; }
7
paulpaulx1/stripe
69b21bf
src/utils/stripeConnectDashLink.ts
TypeScript
www.github.com/paulpaulx1/stripe/tree/main/src/utils/stripeConnectDashLink.ts
https://raw.githubusercontent.com/paulpaulx1/stripe/69b21bf/src/utils/stripeConnectDashLink.ts
paulpaulx1/stripe 69b21bf src/utils/stripeConnectDashLink.ts
true
200
410
import Stripe from "stripe"; const stripe = new Stripe(process.env.NEXT_PUBLIC_STRIPE_SECRET_KEY!) ; export async function createDashboardLink(stripeAccountId: string) { try { const loginLink = await stripe.accounts.createLoginLink(stripeAccountId); return loginLink.url; } catch (error) { ...
1
anie308/project-arcland
aebcb8f
src/module/v1/posts/post.service.ts
TypeScript
www.github.com/anie308/project-arcland/tree/main/src/module/v1/posts/post.service.ts
https://raw.githubusercontent.com/anie308/project-arcland/aebcb8f/src/module/v1/posts/post.service.ts
anie308/project-arcland aebcb8f src/module/v1/posts/post.service.ts
true
200
1,297
/* eslint-disable prettier/prettier */ import { Body, Injectable, UseInterceptors } from '@nestjs/common/decorators'; import { InjectModel } from '@nestjs/mongoose'; import { Post, PostDocument } from './schemas/post.schema'; import { CreatePostDto } from './dto/post.dto'; import { Model } from 'mongoose'; import { Fi...
5
DedStriger/react-burger
2bcf9ab
src/utils/getOrderByNumber.ts
TypeScript
www.github.com/DedStriger/react-burger/tree/main/src/utils/getOrderByNumber.ts
https://raw.githubusercontent.com/DedStriger/react-burger/2bcf9ab/src/utils/getOrderByNumber.ts
DedStriger/react-burger 2bcf9ab src/utils/getOrderByNumber.ts
true
200
343
import { baseUrl } from "./apiUrl"; import checkResponse from './checkResponse'; export default async function getOrderByNumber(number: string){ return await fetch(`${baseUrl}/orders/${number}`,{ method: "GET", headers: { "Content-Type": "application/json", }, }) .then(res =...
0
zhumabek/order-food-nest-api
a0bbdfd
src/app.controller.ts
TypeScript
www.github.com/zhumabek/order-food-nest-api/tree/main/src/app.controller.ts
https://raw.githubusercontent.com/zhumabek/order-food-nest-api/a0bbdfd/src/app.controller.ts
zhumabek/order-food-nest-api a0bbdfd src/app.controller.ts
true
200
3,807
import { Body, Controller, Delete, ForbiddenException, Get, Param, Post, Put, Req, UsePipes, ValidationPipe, } from '@nestjs/common'; import { AppService } from './app.service'; import { AppResponse, BasketItemDto, CreateOrderDto, FoodDto } from './app.dto'; import { BasketDocument, FoodDocume...
6
itaymdigi/mytnoteapp
f027b48
apps/my-note-app-server/src/notebook/notebook.service.ts
TypeScript
www.github.com/itaymdigi/mytnoteapp/tree/main/apps/my-note-app-server/src/notebook/notebook.service.ts
https://raw.githubusercontent.com/itaymdigi/mytnoteapp/f027b48/apps/my-note-app-server/src/notebook/notebook.service.ts
itaymdigi/mytnoteapp f027b48 apps/my-note-app-server/src/notebook/notebook.service.ts
true
200
328
import { Injectable } from "@nestjs/common"; import { PrismaService } from "../prisma/prisma.service"; import { NotebookServiceBase } from "./base/notebook.service.base"; @Injectable() export class NotebookService extends NotebookServiceBase { constructor(protected readonly prisma: PrismaService) { super(prisma)...
3
ganganth/SSC_studentManagemnt_Syatem
90bb689
client/src/app/services/timetablestatus.service.ts
TypeScript
www.github.com/ganganth/SSC_studentManagemnt_Syatem/tree/main/client/src/app/services/timetablestatus.service.ts
https://raw.githubusercontent.com/ganganth/SSC_studentManagemnt_Syatem/90bb689/client/src/app/services/timetablestatus.service.ts
ganganth/SSC_studentManagemnt_Syatem 90bb689 client/src/app/services/timetablestatus.service.ts
true
200
610
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {ApiManager} from '../shared/api-manager'; import {Timetablestatus} from '../entities/timetablestatus'; @Injectable({ providedIn: 'root' }) export class TimetablestatusService { constructor(private http: HttpClient) ...
7
naveen0000123/Food-ordering-application
bb43ecb
frontend/src/app/ind/main/main.component.ts
TypeScript
www.github.com/naveen0000123/Food-ordering-application/tree/main/frontend/src/app/ind/main/main.component.ts
https://raw.githubusercontent.com/naveen0000123/Food-ordering-application/bb43ecb/frontend/src/app/ind/main/main.component.ts
naveen0000123/Food-ordering-application bb43ecb frontend/src/app/ind/main/main.component.ts
true
200
429
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; // import * as AOS from 'aos'; @Component({ selector: 'app-main', templateUrl: './main.component.html', styleUrls: ['./main.component.css'] }) export class MainComponent implements OnInit { constructor(public route: Ro...
1
knoopx/llm-workbench
cdc6d06
src/store/Agent.ts
TypeScript
www.github.com/knoopx/llm-workbench/tree/main/src/store/Agent.ts
https://raw.githubusercontent.com/knoopx/llm-workbench/cdc6d06/src/store/Agent.ts
knoopx/llm-workbench cdc6d06 src/store/Agent.ts
true
200
5,775
import { Liquid } from "liquidjs" import { destroy, types as t } from "mobx-state-tree" import { randomId } from "@/lib/utils" import { Message } from "./Message" import { Instance } from "mobx-state-tree" import { reaction, toJS } from "mobx" import { AdapterFactory } from "./AdapterFactory" import { Template } from "...
5
hackclub/questbook
df814aa
src/quests/questHandlers/firstMessage.ts
TypeScript
www.github.com/hackclub/questbook/tree/main/src/quests/questHandlers/firstMessage.ts
https://raw.githubusercontent.com/hackclub/questbook/df814aa/src/quests/questHandlers/firstMessage.ts
hackclub/questbook df814aa src/quests/questHandlers/firstMessage.ts
true
200
1,192
import { app } from "../../bolt"; import { CONFIG } from "../../entry"; import { prisma } from "../../prisma"; import { getTemplate } from "../../util/transcript"; import { complete } from "../quests"; const QUEST_ID = 'firstMessage'; /* pretty basic structure, but here's how it works somewhere else --> calls regist...
3
M-Massoud/Clinic-Management-System
0696eec
src/routes/billsRoute.ts
TypeScript
www.github.com/M-Massoud/Clinic-Management-System/tree/main/src/routes/billsRoute.ts
https://raw.githubusercontent.com/M-Massoud/Clinic-Management-System/0696eec/src/routes/billsRoute.ts
M-Massoud/Clinic-Management-System 0696eec src/routes/billsRoute.ts
true
200
2,100
import express, { Router } from 'express'; import { body, param } from "express-validator"; import * as controller from "../controllers/billsController"; import validationMW from "../middlewares/validationMW"; import authMW from "../middlewares/authMW"; import checkAutherizationMW from "../middlewares/checkAutherizatio...
7
catchychoruses/cluttercook-ts
2034cd3
prisma/seed.ts
TypeScript
www.github.com/catchychoruses/cluttercook-ts/tree/main/prisma/seed.ts
https://raw.githubusercontent.com/catchychoruses/cluttercook-ts/2034cd3/prisma/seed.ts
catchychoruses/cluttercook-ts 2034cd3 prisma/seed.ts
true
200
438
import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function main() { await prisma.user.upsert({ where: { email: 'user@email.com' }, update: {}, create: { email: 'user@email.com', id: '1', name: 'user', }, }); } main() .then(async () => { ...
6
tmonzel/mongodb-entity-manager
a915a3d
src/admin/boot.server.ts
TypeScript
www.github.com/tmonzel/mongodb-entity-manager/tree/main/src/admin/boot.server.ts
https://raw.githubusercontent.com/tmonzel/mongodb-entity-manager/a915a3d/src/admin/boot.server.ts
tmonzel/mongodb-entity-manager a915a3d src/admin/boot.server.ts
true
200
411
import { establishConnection } from './server'; import { registerEntity } from './entity/map.server'; import type { Entity } from './entity'; export function initializeAdmin( entities: { [collectionName: string]: Entity }, ) { // Establish connection to MongoDB establishConnection(); for(const [collectionName...
1
Mateus-Lemes/prova
979a654
back-end/src/Controllers/modulesControllers.ts
TypeScript
www.github.com/Mateus-Lemes/prova/tree/main/back-end/src/Controllers/modulesControllers.ts
https://raw.githubusercontent.com/Mateus-Lemes/prova/979a654/back-end/src/Controllers/modulesControllers.ts
Mateus-Lemes/prova 979a654 back-end/src/Controllers/modulesControllers.ts
true
200
648
import { Request, Response } from "express"; import { createModulesService, getModulesNoAuthService, getModulesService } from "../Services/modulesServices.js"; export async function createModulesController(req: Request, res: Response ) { const {body} = req; await createModulesService(body); res.sendStat...
5
praveenmk4/monitorMe
e9e7756
src/app/app.component.ts
TypeScript
www.github.com/praveenmk4/monitorMe/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/praveenmk4/monitorMe/e9e7756/src/app/app.component.ts
praveenmk4/monitorMe e9e7756 src/app/app.component.ts
true
200
672
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'corona-monitor'; showFiller = false; sideMenuList = [{ title: "Dashboard", icon: 'dashboard', component: ...
1
ameni2604/ProjetAngularAvantFinal
7a8f649
src/app/search/search.component.ts
TypeScript
www.github.com/ameni2604/ProjetAngularAvantFinal/tree/main/src/app/search/search.component.ts
https://raw.githubusercontent.com/ameni2604/ProjetAngularAvantFinal/7a8f649/src/app/search/search.component.ts
ameni2604/ProjetAngularAvantFinal 7a8f649 src/app/search/search.component.ts
true
200
2,020
import { Component, inject } from '@angular/core'; import { HeaderComponent } from "../Header/header/header.component"; import { FooterComponent } from "../Footer/footer/footer.component"; import { Product } from '../Class/prouduct'; import { ProductSericeService } from '../Service/product-serice.service'; import { Act...
5
family-flix/pc2
50d08f1
src/services/media.ts
TypeScript
www.github.com/family-flix/pc2/tree/main/src/services/media.ts
https://raw.githubusercontent.com/family-flix/pc2/50d08f1/src/services/media.ts
family-flix/pc2 50d08f1 src/services/media.ts
true
200
3,688
import dayjs from "dayjs"; import { ListResponseWithCursor } from "@/biz/requests/types"; import { media_request } from "@/biz/requests/index"; import { UnpackedRequestPayload } from "@/domains/request/utils"; import { FetchParams } from "@/domains/list/typing"; import { Result } from "@/domains/result/index"; import ...
7
shahil-kv/Ecommerce
a8cf424
frontEnd/src/app/admin/components/pages/users/users.component.ts
TypeScript
www.github.com/shahil-kv/Ecommerce/tree/main/frontEnd/src/app/admin/components/pages/users/users.component.ts
https://raw.githubusercontent.com/shahil-kv/Ecommerce/a8cf424/frontEnd/src/app/admin/components/pages/users/users.component.ts
shahil-kv/Ecommerce a8cf424 frontEnd/src/app/admin/components/pages/users/users.component.ts
true
200
939
import { Component, OnInit } from '@angular/core'; import { AdminService } from 'src/app/admin/service/admin.service'; @Component({ selector: 'app-users', templateUrl: './users.component.html', styleUrls: ['./users.component.scss'] }) export class UsersComponent implements OnInit { isTrue: boolean = false p...
6
mohamadrezahedayat/recipe-book-angular
d38acb3
src/app/recipes/recipes-routing.module.ts
TypeScript
www.github.com/mohamadrezahedayat/recipe-book-angular/tree/main/src/app/recipes/recipes-routing.module.ts
https://raw.githubusercontent.com/mohamadrezahedayat/recipe-book-angular/d38acb3/src/app/recipes/recipes-routing.module.ts
mohamadrezahedayat/recipe-book-angular d38acb3 src/app/recipes/recipes-routing.module.ts
true
200
1,149
import { NgModule } from "@angular/core"; import { RouterModule, Routes } from "@angular/router"; import { RecipeDetailComponent } from 'src/app/recipes/recipe-detail/recipe-detail.component'; import { RecipesComponent } from 'src/app/recipes/recipes.component'; import { RecipeStartComponent } from 'src/app/recip...
3
steam123456321/trading-bot-app
0c67554
src/app/api/bots/control/route.ts
TypeScript
www.github.com/steam123456321/trading-bot-app/tree/main/src/app/api/bots/control/route.ts
https://raw.githubusercontent.com/steam123456321/trading-bot-app/0c67554/src/app/api/bots/control/route.ts
steam123456321/trading-bot-app 0c67554 src/app/api/bots/control/route.ts
true
200
3,244
import { NextRequest, NextResponse } from 'next/server'; import { D1Database } from '@cloudflare/workers-types'; import { verify } from 'jsonwebtoken'; import { cookies } from 'next/headers'; interface Env { DB: D1Database; } // In a production environment, this would be stored securely const JWT_SECRET = 'trading-...
6
Jurv1/API_For_Blogs_Express
06e2916
src/services/videoService.ts
TypeScript
www.github.com/Jurv1/API_For_Blogs_Express/tree/main/src/services/videoService.ts
https://raw.githubusercontent.com/Jurv1/API_For_Blogs_Express/06e2916/src/services/videoService.ts
Jurv1/API_For_Blogs_Express 06e2916 src/services/videoService.ts
true
200
2,828
import {Request, Response} from "express"; import {VideosRepository} from "../repositories/videosRepository"; import {injectable} from "inversify"; @injectable() export class VideoService { constructor( protected videosRepository: VideosRepository) {} getStart = async (req: Request, res: Response) => { ...
7
cheesygnu/spaniel_salon_app
1e22b7f
src/app/auth/auth.guard.ts
TypeScript
www.github.com/cheesygnu/spaniel_salon_app/tree/main/src/app/auth/auth.guard.ts
https://raw.githubusercontent.com/cheesygnu/spaniel_salon_app/1e22b7f/src/app/auth/auth.guard.ts
cheesygnu/spaniel_salon_app 1e22b7f src/app/auth/auth.guard.ts
true
200
459
import { ActivatedRouteSnapshot, CanActivateFn, RouterStateSnapshot } from '@angular/router'; //import { inject } from '@angular/core'; //import { AngularFireAuth } from '@angular/fire/compat/auth'; export const authGuard: CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => { //const angul...
5
boarder-portal/polly
2082222
app/server/api/user/index.ts
TypeScript
www.github.com/boarder-portal/polly/tree/main/app/server/api/user/index.ts
https://raw.githubusercontent.com/boarder-portal/polly/2082222/app/server/api/user/index.ts
boarder-portal/polly 2082222 app/server/api/user/index.ts
true
200
254
import Router from '@koa/router'; import { Context, State } from 'server/types/koa'; import searchUser from 'server/api/user/search'; const userRouter = new Router<State, Context>(); userRouter.get('/search', searchUser); export default userRouter;
3
Duckling-Homes/duckling-mvp
e2a0351
app/utils/repositories/project.ts
TypeScript
www.github.com/Duckling-Homes/duckling-mvp/tree/main/app/utils/repositories/project.ts
https://raw.githubusercontent.com/Duckling-Homes/duckling-mvp/e2a0351/app/utils/repositories/project.ts
Duckling-Homes/duckling-mvp e2a0351 app/utils/repositories/project.ts
true
200
1,210
import { Prisma } from '@prisma/client' import prisma from '../../../lib/prisma' export async function createProject( projectData: Prisma.ProjectUncheckedCreateInput ) { return await prisma.project.create({ data: { id: projectData.id, name: projectData.name, homeownerName: projectData.homeown...
1
Mklkzchv/nodejs-mesto-project
2d930af
src/utils/errors/error-handler.ts
TypeScript
www.github.com/Mklkzchv/nodejs-mesto-project/tree/main/src/utils/errors/error-handler.ts
https://raw.githubusercontent.com/Mklkzchv/nodejs-mesto-project/2d930af/src/utils/errors/error-handler.ts
Mklkzchv/nodejs-mesto-project 2d930af src/utils/errors/error-handler.ts
true
200
429
import { ErrorRequestHandler } from 'express'; import { StatusCodes } from './http-status-codes'; const errorHandler: ErrorRequestHandler = (err, req, res, next) => { if (err.statusCode) { res.status(err.statusCode).send(err.message); return; } res .status(StatusCodes.INTERNAL_SERVER_ERROR) .send...
7
Kulishevich/react-pizza
2869c81
src/redux/store.ts
TypeScript
www.github.com/Kulishevich/react-pizza/tree/main/src/redux/store.ts
https://raw.githubusercontent.com/Kulishevich/react-pizza/2869c81/src/redux/store.ts
Kulishevich/react-pizza 2869c81 src/redux/store.ts
true
200
679
import { configureStore } from '@reduxjs/toolkit' import filterReducer from './slices/filterSlice' import searchSlice from './slices/searchSlice' import pageSlice from './slices/pageSlice' import basketSlice from './slices/basketSlice' import pizzasSlice from './slices/pizzasSlice' import { useDispatch } from 'react-re...
5
nichwch/vscode-tagged-bookmarks
5c1cf4f
src/TagDisplayProvider.ts
TypeScript
www.github.com/nichwch/vscode-tagged-bookmarks/tree/main/src/TagDisplayProvider.ts
https://raw.githubusercontent.com/nichwch/vscode-tagged-bookmarks/5c1cf4f/src/TagDisplayProvider.ts
nichwch/vscode-tagged-bookmarks 5c1cf4f src/TagDisplayProvider.ts
true
200
1,984
import * as vscode from "vscode"; import { Bookmark, BOOKMARKS } from "./bookmarkStateManager"; const SHOW_ALL_BOOKMARKS = "show all bookmarks"; export class TagDisplayProvider implements vscode.TreeDataProvider<string> { private bookmarks: Bookmark[] = []; private context: vscode.ExtensionContext; constructor(...
1
samarsrivastav/AdoptaUnJunior
276e75f
src/books/books.module.ts
TypeScript
www.github.com/samarsrivastav/AdoptaUnJunior/tree/main/src/books/books.module.ts
https://raw.githubusercontent.com/samarsrivastav/AdoptaUnJunior/276e75f/src/books/books.module.ts
samarsrivastav/AdoptaUnJunior 276e75f src/books/books.module.ts
true
200
963
import { Module } from '@nestjs/common'; import { BooksService } from './books.service'; import { BooksController } from './books.controller'; import { AuthorsModule } from 'src/authors/authors.module'; import { GenresModule } from 'src/genres/genres.module'; import { CategoriesModule } from 'src/categories/categories....
3
vuggy17/idle2
cd798e2
packages/common/infra/src/__deprecated__/sync/request/storage.ts
TypeScript
www.github.com/vuggy17/idle2/tree/main/packages/common/infra/src/__deprecated__/sync/request/storage.ts
https://raw.githubusercontent.com/vuggy17/idle2/cd798e2/packages/common/infra/src/__deprecated__/sync/request/storage.ts
vuggy17/idle2 cd798e2 packages/common/infra/src/__deprecated__/sync/request/storage.ts
true
200
5,741
import type { SnapshotOutOf } from 'mobx-keystone'; import type { FriendRequest } from '../../data/domain/friend-request'; import type { FriendRequestKV, KV, NumberKV } from '../../storage/kv'; import { type Memento, MemoryMemento, wrapMemento, } from '../../../storage/memento'; import { AsyncLock } from '../../...
6
Misato15/Examen2_Superhero
0861cae
src/models/publisher.model.ts
TypeScript
www.github.com/Misato15/Examen2_Superhero/tree/main/src/models/publisher.model.ts
https://raw.githubusercontent.com/Misato15/Examen2_Superhero/0861cae/src/models/publisher.model.ts
Misato15/Examen2_Superhero 0861cae src/models/publisher.model.ts
true
200
1,167
import {Entity, model, property} from '@loopback/repository'; @model({settings: {idInjection: false, mssql: {schema: 'dbo', table: 'publisher'}}}) export class Publisher extends Entity { @property({ type: 'number', required: true, jsonSchema: {nullable: false}, precision: 10, scale: 0, genera...
7
fareskouki/Angular-4twin
0518d9c
src/app/core/manageUser/show-users/show-users.component.ts
TypeScript
www.github.com/fareskouki/Angular-4twin/tree/main/src/app/core/manageUser/show-users/show-users.component.ts
https://raw.githubusercontent.com/fareskouki/Angular-4twin/0518d9c/src/app/core/manageUser/show-users/show-users.component.ts
fareskouki/Angular-4twin 0518d9c src/app/core/manageUser/show-users/show-users.component.ts
true
200
592
import { Component, OnInit } from '@angular/core'; import { UserService } from '../service/user.service'; @Component({ selector: 'app-show-users', templateUrl: './show-users.component.html', styleUrls: ['./show-users.component.css'] }) export class ShowUsersComponent implements OnInit { constructor(private servi...
5
LeHongPhatt/mobile-koryu
9b64b41
src/components/Header/styles.ts
TypeScript
www.github.com/LeHongPhatt/mobile-koryu/tree/main/src/components/Header/styles.ts
https://raw.githubusercontent.com/LeHongPhatt/mobile-koryu/9b64b41/src/components/Header/styles.ts
LeHongPhatt/mobile-koryu 9b64b41 src/components/Header/styles.ts
true
200
1,086
import {StyleSheet} from 'react-native'; import {Colors} from 'theme'; import {Typography} from 'theme/typography'; export default StyleSheet.create({ contain: { height: 45, flexDirection: 'row', justifyContent: 'space-between', backgroundColor: Colors.main, }, flex1: {flex: 1}, headLine: { ...
2
Abir-7/mobile-dokan-server
09c34c5
src/app/module/user/user.interface.ts
TypeScript
www.github.com/Abir-7/mobile-dokan-server/tree/main/src/app/module/user/user.interface.ts
https://raw.githubusercontent.com/Abir-7/mobile-dokan-server/09c34c5/src/app/module/user/user.interface.ts
Abir-7/mobile-dokan-server 09c34c5 src/app/module/user/user.interface.ts
true
200
778
import { Document } from "mongoose"; export interface IUser extends Document { email: string; password: string; role: (typeof userRole)[number]; createdAt: Date; updatedAt: Date; isDeleted: boolean; isBlocked: boolean; firebaseUid: string; comparePassword(candidatePassword: string): Promise<boolean>...
3
LiRein11/Online-cinema-frontend
79393b6
app/components/ui/select/select.interface.ts
TypeScript
www.github.com/LiRein11/Online-cinema-frontend/tree/main/app/components/ui/select/select.interface.ts
https://raw.githubusercontent.com/LiRein11/Online-cinema-frontend/79393b6/app/components/ui/select/select.interface.ts
LiRein11/Online-cinema-frontend 79393b6 app/components/ui/select/select.interface.ts
true
200
377
import { ControllerRenderProps } from 'react-hook-form'; import { Options } from 'react-select'; import { IFieldProps } from '../form-elements/form.interface' export interface IOption { value: string label: string } export interface ISelect extends IFieldProps { options: Options<IOption> isMulti?:boolean fiel...
1
esinghrahul/Modern-Angular-Bootcamp-2020
d72b4d3
Pages/src/app/times.directive.ts
TypeScript
www.github.com/esinghrahul/Modern-Angular-Bootcamp-2020/tree/main/Pages/src/app/times.directive.ts
https://raw.githubusercontent.com/esinghrahul/Modern-Angular-Bootcamp-2020/d72b4d3/Pages/src/app/times.directive.ts
esinghrahul/Modern-Angular-Bootcamp-2020 d72b4d3 Pages/src/app/times.directive.ts
true
200
471
import { Directive, TemplateRef, ViewContainerRef, Input } from '@angular/core'; @Directive({ selector: '[appTimes]' }) export class TimesDirective { constructor(private viewContainer: ViewContainerRef, private templateRef: TemplateRef<any>) { } @Input('appTimes') set render(times : number){ this.viewConta...
6
Yamil-Layicov/microFrontend
08b13ad
webpack.config.ts
TypeScript
www.github.com/Yamil-Layicov/microFrontend/tree/main/webpack.config.ts
https://raw.githubusercontent.com/Yamil-Layicov/microFrontend/08b13ad/webpack.config.ts
Yamil-Layicov/microFrontend 08b13ad webpack.config.ts
true
200
908
import HtmlWebpackPlugin from "html-webpack-plugin"; import path from "path"; import webpack from "webpack"; type Mode = "production" | "development"; interface Envariables { mode: Mode } export default (env: Envariables) => { const config: webpack.Configuration = { mode: env.mode ?? "development", en...
7
nayerasami/multi-input-control
2843d74
src/app/app.module.ts
TypeScript
www.github.com/nayerasami/multi-input-control/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/nayerasami/multi-input-control/2843d74/src/app/app.module.ts
nayerasami/multi-input-control 2843d74 src/app/app.module.ts
true
200
766
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import {ReactiveFormsModule } from '@angular/forms'; // Import FormsModule import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ReusableInputControlComponent...
5
HarshRohila/ember-playground
dfc4f96
app/posts/route.ts
TypeScript
www.github.com/HarshRohila/ember-playground/tree/main/app/posts/route.ts
https://raw.githubusercontent.com/HarshRohila/ember-playground/dfc4f96/app/posts/route.ts
HarshRohila/ember-playground dfc4f96 app/posts/route.ts
true
200
385
import Route from '@ember/routing/route'; import { service } from '@ember/service'; import { Registry as Services } from '@ember/service'; export default class Posts extends Route.extend({ // anything which *must* be merged to prototype here }) { // normal class body definition here @service store!: Services['st...
2
Julzzdev/labresults-backend
b7f13ae
src/users/users.service.ts
TypeScript
www.github.com/Julzzdev/labresults-backend/tree/main/src/users/users.service.ts
https://raw.githubusercontent.com/Julzzdev/labresults-backend/b7f13ae/src/users/users.service.ts
Julzzdev/labresults-backend b7f13ae src/users/users.service.ts
true
200
1,328
import { Model } from 'mongoose'; import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { User, UserDocument } from './user.entity'; @Injectable() export class UsersService { constructor(@InjectModel(User.name) private userModel: Model<UserDocument>) {}...
3
jatinder14/hypire-full-stack-assignment
f53f521
apps/cloit-fe/src/lib/features/menu/menuSlice.ts
TypeScript
www.github.com/jatinder14/hypire-full-stack-assignment/tree/main/apps/cloit-fe/src/lib/features/menu/menuSlice.ts
https://raw.githubusercontent.com/jatinder14/hypire-full-stack-assignment/f53f521/apps/cloit-fe/src/lib/features/menu/menuSlice.ts
jatinder14/hypire-full-stack-assignment f53f521 apps/cloit-fe/src/lib/features/menu/menuSlice.ts
true
200
2,959
// import { axiosAuth } from "src/services/axios"; import { axiosV1ApiClient } from "@/lib/axios"; import { ICreateMenuItemPayload, IMenuItem } from "@/types"; import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; interface InitialState { isLoading: boolean; isError: boolean; data: IMenuItem[]; } in...
1
EliMishu/ferreweb-frontend
ff8ed92
src/app/components/rol-list/rol-list.component.ts
TypeScript
www.github.com/EliMishu/ferreweb-frontend/tree/main/src/app/components/rol-list/rol-list.component.ts
https://raw.githubusercontent.com/EliMishu/ferreweb-frontend/ff8ed92/src/app/components/rol-list/rol-list.component.ts
EliMishu/ferreweb-frontend ff8ed92 src/app/components/rol-list/rol-list.component.ts
true
200
979
import { CommonModule } from '@angular/common'; import { Component, HostListener, OnInit } from '@angular/core'; import { RouterModule } from '@angular/router'; import { Rol } from '../../models/rol.model'; import { RolService } from '../../services/rol.service'; import { FormsModule } from '@angular/forms'; @Componen...
7
dictybase-playground/dicty-components
1074e91
packages/navbar/src/data/navbarData.ts
TypeScript
www.github.com/dictybase-playground/dicty-components/tree/main/packages/navbar/src/data/navbarData.ts
https://raw.githubusercontent.com/dictybase-playground/dicty-components/1074e91/packages/navbar/src/data/navbarData.ts
dictybase-playground/dicty-components 1074e91 packages/navbar/src/data/navbarData.ts
true
200
4,121
import { NavItem } from "@dictyBase/navbar/src/types" export const navbarData: Array<NavItem> = [ { type: "genomes", id: "1", attributes: { display: "Genomes", items: [ { label: "Dictyostelium discoideum AX4", link: "/", }, { label: "Dicty...
6
Pinckus/pinckus.github.io
286d958
node_modules/shiki/dist/engine-javascript.d.mts
TypeScript
www.github.com/Pinckus/pinckus.github.io/tree/main/node_modules/shiki/dist/engine-javascript.d.mts
https://raw.githubusercontent.com/Pinckus/pinckus.github.io/286d958/node_modules/shiki/dist/engine-javascript.d.mts
Pinckus/pinckus.github.io 286d958 node_modules/shiki/dist/engine-javascript.d.mts
true
200
3,374
import { PatternScanner, RegexEngineString, RegexEngine } from '@shikijs/types'; import { IOnigMatch } from '@shikijs/vscode-textmate'; type ToRegExpOptions = { accuracy?: "default" | "strict"; avoidSubclass?: boolean; flags?: string; global?: boolean; hasIndices?: boolean; lazyCompileLength?: ...
5
dnum-mi/referentiel-applications
284587b
backend/src/middlewares/auth.middleware.ts
TypeScript
www.github.com/dnum-mi/referentiel-applications/tree/main/backend/src/middlewares/auth.middleware.ts
https://raw.githubusercontent.com/dnum-mi/referentiel-applications/284587b/backend/src/middlewares/auth.middleware.ts
dnum-mi/referentiel-applications 284587b backend/src/middlewares/auth.middleware.ts
true
200
1,023
import { Injectable, NestMiddleware, UnauthorizedException, } from '@nestjs/common'; import { Request, Response, NextFunction } from 'express'; import { createRemoteJWKSet, decodeJwt, jwtVerify } from 'jose'; import { UserService } from 'src/user/user.service'; @Injectable() export class AuthMiddleware implement...
4
ekit3/terraform-custom-provider
3f2cbe2
example-api/src/cours/schemas/cour.schema.ts
TypeScript
www.github.com/ekit3/terraform-custom-provider/tree/main/example-api/src/cours/schemas/cour.schema.ts
https://raw.githubusercontent.com/ekit3/terraform-custom-provider/3f2cbe2/example-api/src/cours/schemas/cour.schema.ts
ekit3/terraform-custom-provider 3f2cbe2 example-api/src/cours/schemas/cour.schema.ts
true
200
339
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { HydratedDocument } from 'mongoose'; export type CourDocument = HydratedDocument<Cour>; @Schema() export class Cour { @Prop() name: string; @Prop() time: number; @Prop() summary: string; } export const CourSchema = SchemaFactory.cr...
2
nurul-irfan/rama-wallet
917077c
src/constants/crypto.ts
TypeScript
www.github.com/nurul-irfan/rama-wallet/tree/main/src/constants/crypto.ts
https://raw.githubusercontent.com/nurul-irfan/rama-wallet/917077c/src/constants/crypto.ts
nurul-irfan/rama-wallet 917077c src/constants/crypto.ts
true
200
580
import { PixelRatio, Platform } from "react-native"; function getDevicePerformanceScore(): number { const pixelRatio = PixelRatio.get(); const isIOS = Platform.OS === "ios"; let score = pixelRatio * 1000; if (isIOS) score *= 1.2; return Math.floor(score); } function determineIterations(): number { const...
3
marcbitenl/curso-spring-ionic-frontend
b129757
src/services/storage.service.ts
TypeScript
www.github.com/marcbitenl/curso-spring-ionic-frontend/tree/main/src/services/storage.service.ts
https://raw.githubusercontent.com/marcbitenl/curso-spring-ionic-frontend/b129757/src/services/storage.service.ts
marcbitenl/curso-spring-ionic-frontend b129757 src/services/storage.service.ts
true
200
1,206
import { Injectable } from "@angular/core"; import { LocalUser } from "../models/local_user"; import { STORAGE_KEYS } from "../config/storage_keys.config"; import { Cart } from "../models/cart"; @Injectable() export class StorageService{ getLocalUser() : LocalUser { let usr = localStorage.getItem(STORAGE_...
1
junaidbinjaman/notion-clone
6955f1c
firebase.ts
TypeScript
www.github.com/junaidbinjaman/notion-clone/tree/main/firebase.ts
https://raw.githubusercontent.com/junaidbinjaman/notion-clone/6955f1c/firebase.ts
junaidbinjaman/notion-clone 6955f1c firebase.ts
true
200
559
import { getApps, getApp, initializeApp } from "firebase/app"; import { getFirestore } from "firebase/firestore"; const firebaseConfig = { apiKey: "AIzaSyDa5UzNXRZdRTzETKd1nLa57nddArzl0_8", authDomain: "notion-clone-b983a.firebaseapp.com", projectId: "notion-clone-b983a", storageBucket: "notion-clone-b983a.fir...
7
amakomitchell/flight-co2-emissions
e40e288
frontend/footprint/src/utils/get-carbon-emission.util.ts
TypeScript
www.github.com/amakomitchell/flight-co2-emissions/tree/main/frontend/footprint/src/utils/get-carbon-emission.util.ts
https://raw.githubusercontent.com/amakomitchell/flight-co2-emissions/e40e288/frontend/footprint/src/utils/get-carbon-emission.util.ts
amakomitchell/flight-co2-emissions e40e288 frontend/footprint/src/utils/get-carbon-emission.util.ts
true
200
1,521
import { getAirportCoordinates } from '../repository/get-airport-coordinates'; import haversine from 'haversine-distance'; import { CarbonEmisssionFormType } from '../types/emission-form-type'; export const getCarbonEmission = async ( values: CarbonEmisssionFormType ): Promise<number> => { const { destination, dep...
5
Muhammad-9500/RTL
182913f
src/app/app.module.ts
TypeScript
www.github.com/Muhammad-9500/RTL/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Muhammad-9500/RTL/182913f/src/app/app.module.ts
Muhammad-9500/RTL 182913f src/app/app.module.ts
true
200
7,288
import { NgModule } from '@angular/core'; import { BrowserModule, provideClientHydration } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { LoginComponent } from './login/login.component'; import { RouterModule, Routes }...
6
mithunsimelabs/test-app
530404b
components/custom-input/styledComponents.ts
TypeScript
www.github.com/mithunsimelabs/test-app/tree/main/components/custom-input/styledComponents.ts
https://raw.githubusercontent.com/mithunsimelabs/test-app/530404b/components/custom-input/styledComponents.ts
mithunsimelabs/test-app 530404b components/custom-input/styledComponents.ts
true
200
1,484
import { styled } from '@mui/material/styles' interface InputContainerProps { focused: boolean error: string } export const InputContainer = styled('div')<InputContainerProps>(({ theme, focused, error }) => ({ width: '100%', height: 74, border: error ? '1px solid red' : '1px solid #dde5ea', display: 'flex...
4
NikitaIT/lead
1c410aa
frontend-framework/apollo-client/src/lib/framework/Operation.ts
TypeScript
www.github.com/NikitaIT/lead/tree/main/frontend-framework/apollo-client/src/lib/framework/Operation.ts
https://raw.githubusercontent.com/NikitaIT/lead/1c410aa/frontend-framework/apollo-client/src/lib/framework/Operation.ts
NikitaIT/lead 1c410aa frontend-framework/apollo-client/src/lib/framework/Operation.ts
true
200
770
import { Operation } from '@apollo/client'; import { getMainDefinition } from '@apollo/client/utilities'; declare module '@apollo/client' { export interface DefaultContext { clientName?: string; } } export function requestedClientIs( clientName: string ): (operation: Operation) => boolean { return (operati...
2
IgnusG/deployment-pipeline
7e663a9
.github/pipeline/src/lib/github/create-deployment-status/create-deployment-status.ts
TypeScript
www.github.com/IgnusG/deployment-pipeline/tree/main/.github/pipeline/src/lib/github/create-deployment-status/create-deployment-status.ts
https://raw.githubusercontent.com/IgnusG/deployment-pipeline/7e663a9/.github/pipeline/src/lib/github/create-deployment-status/create-deployment-status.ts
IgnusG/deployment-pipeline 7e663a9 .github/pipeline/src/lib/github/create-deployment-status/create-deployment-status.ts
true
200
1,363
import { Octokit } from "@octokit/rest"; import { Auth, Deployment } from "../types"; function sliceDescription(description: string): string { if (description.length > 140) return `${description.slice(0, 136)}...`; return description; } export function failedDeployment( auth: Auth, github: Octokit, ): (depl...
3
Laurelindorean/prs_Tarea37_reus_RickMorty_05_23
832cc40
RickMorty_Frontend_App/src/app/characters/characters.component.ts
TypeScript
www.github.com/Laurelindorean/prs_Tarea37_reus_RickMorty_05_23/tree/main/RickMorty_Frontend_App/src/app/characters/characters.component.ts
https://raw.githubusercontent.com/Laurelindorean/prs_Tarea37_reus_RickMorty_05_23/832cc40/RickMorty_Frontend_App/src/app/characters/characters.component.ts
Laurelindorean/prs_Tarea37_reus_RickMorty_05_23 832cc40 RickMorty_Frontend_App/src/app/characters/characters.component.ts
true
200
861
import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-characters', templateUrl: './characters.component.html', styleUrls: ['./characters.component.css'] }) export class CharactersComponent implements OnInit{ title:string="Characters";...
1
brenorodriguesdev/api-social
5c645a8
src/services/send-message.ts
TypeScript
www.github.com/brenorodriguesdev/api-social/tree/main/src/services/send-message.ts
https://raw.githubusercontent.com/brenorodriguesdev/api-social/5c645a8/src/services/send-message.ts
brenorodriguesdev/api-social 5c645a8 src/services/send-message.ts
true
200
1,909
import { getRepository } from 'typeorm' import { Chat } from '../entities/chat' import { ChatMessage } from '../entities/chat-message' import { User } from '../entities/user' interface SendMessageServiceProps { idSend: number idRecv: number message: string } interface GetChatServiceProps { userSend: User us...
7
kamiyakoh/any-memos-app
d2bfdc7
src/hooks/useMenu.ts
TypeScript
www.github.com/kamiyakoh/any-memos-app/tree/main/src/hooks/useMenu.ts
https://raw.githubusercontent.com/kamiyakoh/any-memos-app/d2bfdc7/src/hooks/useMenu.ts
kamiyakoh/any-memos-app d2bfdc7 src/hooks/useMenu.ts
true
200
4,036
import type { MenuOption } from '../types'; import { useState, useEffect } from 'react'; import { useRecoilState } from 'recoil'; import toast from 'react-hot-toast'; import { menuOptionState } from '../states/menuOptionState'; import { bgImgOptions, bgFilterOptions } from '../utils/const'; interface UseMenu { ...
5
poojamodi18/analyzer-ui
da3f213
src/app/repository-page/pranalysis/pranalysis.component.ts
TypeScript
www.github.com/poojamodi18/analyzer-ui/tree/main/src/app/repository-page/pranalysis/pranalysis.component.ts
https://raw.githubusercontent.com/poojamodi18/analyzer-ui/da3f213/src/app/repository-page/pranalysis/pranalysis.component.ts
poojamodi18/analyzer-ui da3f213 src/app/repository-page/pranalysis/pranalysis.component.ts
true
200
7,362
import { Component, OnInit, ViewChild } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { HttpService } from '../../shared/http.service'; import { UtilService } from '../../shared/util.service'; import { MatPaginator } from '@angular/material/paginator'; import { MatTableDataSource...
6
jaredrobinson001/BookPadApp
a40da56
src/app/components/Book/Book.ViewModel.ts
TypeScript
www.github.com/jaredrobinson001/BookPadApp/tree/main/src/app/components/Book/Book.ViewModel.ts
https://raw.githubusercontent.com/jaredrobinson001/BookPadApp/a40da56/src/app/components/Book/Book.ViewModel.ts
jaredrobinson001/BookPadApp a40da56 src/app/components/Book/Book.ViewModel.ts
true
200
808
import type { BookModel } from "@core"; import { useMount } from "@core"; import { useState } from "react"; import type { BookReadStatus } from "@core/services"; import { getBookReadStatus } from "@core/services"; export const useViewModel = (params: { data: BookModel }) => { const { data } = params; const [readS...
0