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
cybersmily/cybersmily_datafort
07ea6d8
src/app/app-cmbt-track/cmbt-trck-opponent-row/cmbt-trck-opponent-row.component.ts
TypeScript
www.github.com/cybersmily/cybersmily_datafort/tree/main/src/app/app-cmbt-track/cmbt-trck-opponent-row/cmbt-trck-opponent-row.component.ts
https://raw.githubusercontent.com/cybersmily/cybersmily_datafort/07ea6d8/src/app/app-cmbt-track/cmbt-trck-opponent-row/cmbt-trck-opponent-row.component.ts
cybersmily/cybersmily_datafort 07ea6d8 src/app/app-cmbt-track/cmbt-trck-opponent-row/cmbt-trck-opponent-row.component.ts
true
200
2,854
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { CmbtTrckOpponent } from '../../shared/models/cmbt-trck'; import { faDice,faTrash, faCopy, faEyeSlash, faSkullCrossbones } from '@fortawesome/free-solid-svg-icons'; import { Cp2020StatBlock } from '../../shared/cp2020/cp2020-stats/m...
6
PkHila/BracketTournament-Web
19f6725
src/app/modules/create-template/components/contestant-card-small/contestant-card-small.component.ts
TypeScript
www.github.com/PkHila/BracketTournament-Web/tree/main/src/app/modules/create-template/components/contestant-card-small/contestant-card-small.component.ts
https://raw.githubusercontent.com/PkHila/BracketTournament-Web/19f6725/src/app/modules/create-template/components/contestant-card-small/contestant-card-small.component.ts
PkHila/BracketTournament-Web 19f6725 src/app/modules/create-template/components/contestant-card-small/contestant-card-small.component.ts
true
200
528
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { Contestant } from 'src/app/core/interfaces'; @Component({ selector: 'app-contestant-card-small', templateUrl: './contestant-card-small.component.html', styleUrls: ['./contestant-card-small.component.scss'] }) export class Contestant...
7
proxy-di/proxydi
15379a8
src/makeConstructorDependencyProxy.ts
TypeScript
www.github.com/proxy-di/proxydi/tree/main/src/makeConstructorDependencyProxy.ts
https://raw.githubusercontent.com/proxy-di/proxydi/15379a8/src/makeConstructorDependencyProxy.ts
proxy-di/proxydi 15379a8 src/makeConstructorDependencyProxy.ts
true
200
1,148
import { DependencyId, IProxyDiContainer } from './types'; export function makeConstructorDependencyProxy<T>( container: IProxyDiContainer, dependencyId: DependencyId ): T { function getDependency() { if (container.isKnown(dependencyId)) { const dependency = container.resolve(dependency...
2
Scullworks/demo
c69970f
src/hooks/pages/useAthleteDetails.ts
TypeScript
www.github.com/Scullworks/demo/tree/main/src/hooks/pages/useAthleteDetails.ts
https://raw.githubusercontent.com/Scullworks/demo/c69970f/src/hooks/pages/useAthleteDetails.ts
Scullworks/demo c69970f src/hooks/pages/useAthleteDetails.ts
true
200
2,957
import { yupResolver } from '@hookform/resolvers/yup'; import dayjs from 'dayjs'; import { useRouter } from 'next/router'; import { FormEvent, useEffect } from 'react'; import { useForm } from 'react-hook-form'; import { useAthleteOnboardingStore, useCommonOnboardingStore, useStepperStore } from '@/hooks/st...
0
efdeiasoliveira/my-pets-17
a68812d
src/app/features/home/home.component.ts
TypeScript
www.github.com/efdeiasoliveira/my-pets-17/tree/main/src/app/features/home/home.component.ts
https://raw.githubusercontent.com/efdeiasoliveira/my-pets-17/a68812d/src/app/features/home/home.component.ts
efdeiasoliveira/my-pets-17 a68812d src/app/features/home/home.component.ts
true
200
299
import { Component } from '@angular/core'; import { PoPageModule } from '@po-ui/ng-components'; @Component({ selector: 'app-home', standalone: true, imports: [ PoPageModule ], templateUrl: './home.component.html', styleUrl: './home.component.css' }) export class HomeComponent { }
1
kunzeleric/findAFriend_api
f63ac63
src/repositories/in-memory/in-memory-organization-repository.ts
TypeScript
www.github.com/kunzeleric/findAFriend_api/tree/main/src/repositories/in-memory/in-memory-organization-repository.ts
https://raw.githubusercontent.com/kunzeleric/findAFriend_api/f63ac63/src/repositories/in-memory/in-memory-organization-repository.ts
kunzeleric/findAFriend_api f63ac63 src/repositories/in-memory/in-memory-organization-repository.ts
true
200
1,115
import { Organization, Prisma } from '@prisma/client' import { OrganizationRepository } from '../organization-repository' import { randomUUID } from 'node:crypto' export class InMemoryOrganizationRepository implements OrganizationRepository { public items: Organization[] = [] async create(data: Prisma.Organization...
5
maricastroc/coffee-delivery
804aa1f
src/components/Header/styles.ts
TypeScript
www.github.com/maricastroc/coffee-delivery/tree/main/src/components/Header/styles.ts
https://raw.githubusercontent.com/maricastroc/coffee-delivery/804aa1f/src/components/Header/styles.ts
maricastroc/coffee-delivery 804aa1f src/components/Header/styles.ts
true
200
2,309
import styled from 'styled-components' export const HeaderContainer = styled.header` display: flex; justify-content: space-between; padding: 2.5rem 0; width: clamp(10rem, 90vw, 50rem); a { &:focus { box-shadow: none; outline: none; } } @media (min-width: 980px) { ...
2
antonlashan/angular-geo-locations
b98dbe4
src/app/modules/track-deliveries/deliveries/deliveries.module.ts
TypeScript
www.github.com/antonlashan/angular-geo-locations/tree/main/src/app/modules/track-deliveries/deliveries/deliveries.module.ts
https://raw.githubusercontent.com/antonlashan/angular-geo-locations/b98dbe4/src/app/modules/track-deliveries/deliveries/deliveries.module.ts
antonlashan/angular-geo-locations b98dbe4 src/app/modules/track-deliveries/deliveries/deliveries.module.ts
true
200
473
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { DeliveryModule } from '../delivery/delivery.module'; import { DeliveriesComponent } from './deliveries.component'; import { DeliveriesService } from './deliveries.service'; @NgModule({ declarations: [DeliveriesCompon...
7
MariaApaL/projecto_final
c2442a0
finalproyect/src/app/pages/presentation/presentation.module.ts
TypeScript
www.github.com/MariaApaL/projecto_final/tree/main/finalproyect/src/app/pages/presentation/presentation.module.ts
https://raw.githubusercontent.com/MariaApaL/projecto_final/c2442a0/finalproyect/src/app/pages/presentation/presentation.module.ts
MariaApaL/projecto_final c2442a0 finalproyect/src/app/pages/presentation/presentation.module.ts
true
200
659
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { PresentationPageRoutingModule } from './presentation-routing.module'; import { PresentationPage } fro...
0
xryswelter/dndCharacterSheetMod
e3ee9ae
src/app/core/interfaces/stat-block.interface.ts
TypeScript
www.github.com/xryswelter/dndCharacterSheetMod/tree/main/src/app/core/interfaces/stat-block.interface.ts
https://raw.githubusercontent.com/xryswelter/dndCharacterSheetMod/e3ee9ae/src/app/core/interfaces/stat-block.interface.ts
xryswelter/dndCharacterSheetMod e3ee9ae src/app/core/interfaces/stat-block.interface.ts
true
200
2,446
import { EXTRA_FEATURES } from "./magic-features.interface"; interface CLASS_STAT_PROFICIENCY { strength: boolean; dexterity: boolean; constitution: boolean; intelligence: boolean; wisdom: boolean; charisma: boolean; } interface RAW_STAT_BLOCK { strength: number; dexterity: number; constitution: num...
6
plutopulp/plutopulp.com
7f38da1
web/src/types/form.ts
TypeScript
www.github.com/plutopulp/plutopulp.com/tree/main/web/src/types/form.ts
https://raw.githubusercontent.com/plutopulp/plutopulp.com/7f38da1/web/src/types/form.ts
plutopulp/plutopulp.com 7f38da1 web/src/types/form.ts
true
200
849
import { UseFormRegisterReturn, FieldError } from "react-hook-form"; /** * Base props for form input components */ export interface FormFieldProps { id: string; label: string; placeholder?: string; required?: boolean; register: UseFormRegisterReturn; error?: FieldError; } /** * Props for text input com...
5
daffamaul/magenta-music-api
f3ede65
database/migrations/1735986375627_create_songs_table.ts
TypeScript
www.github.com/daffamaul/magenta-music-api/tree/main/database/migrations/1735986375627_create_songs_table.ts
https://raw.githubusercontent.com/daffamaul/magenta-music-api/f3ede65/database/migrations/1735986375627_create_songs_table.ts
daffamaul/magenta-music-api f3ede65 database/migrations/1735986375627_create_songs_table.ts
true
200
593
import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { protected tableName = 'songs' async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id') table.string('title').notNullable() table.integer('year').notNullable() t...
1
hammadurrehman01/Tech_vision
67475e7
src/pages/api/invoice/[invoiceId]/index.ts
TypeScript
www.github.com/hammadurrehman01/Tech_vision/tree/main/src/pages/api/invoice/[invoiceId]/index.ts
https://raw.githubusercontent.com/hammadurrehman01/Tech_vision/67475e7/src/pages/api/invoice/%5BinvoiceId%5D/index.ts
hammadurrehman01/Tech_vision 67475e7 src/pages/api/invoice/[invoiceId]/index.ts
true
200
768
import { deleteInvoice, getInvoiceById, updateInvoice, } from 'controller/invoice/invoiceController'; import { MethodNotAllowed } from 'config/api/responses'; import authMiddleware from 'middlewares/api/authMiddleware'; import type { NextApiRequest, NextApiResponse } from 'next'; async function handler(req: Next...
2
pjumruspun/ParallelChattingAppBackend
3d5917d
src/messages/messages.service.ts
TypeScript
www.github.com/pjumruspun/ParallelChattingAppBackend/tree/main/src/messages/messages.service.ts
https://raw.githubusercontent.com/pjumruspun/ParallelChattingAppBackend/3d5917d/src/messages/messages.service.ts
pjumruspun/ParallelChattingAppBackend 3d5917d src/messages/messages.service.ts
true
200
1,883
import { Injectable, Inject } from '@nestjs/common'; import { Model } from 'mongoose'; import { Message } from './interfaces/message.interface'; import { CreateMessageDto } from './dto/create-message.dto'; @Injectable() export class MessagesService { constructor( @Inject('MESSAGE_MODEL') private messageMod...
7
POOJITHA0606/CustomerBackend
d796b86
src/routes/customer.routes.ts
TypeScript
www.github.com/POOJITHA0606/CustomerBackend/tree/main/src/routes/customer.routes.ts
https://raw.githubusercontent.com/POOJITHA0606/CustomerBackend/d796b86/src/routes/customer.routes.ts
POOJITHA0606/CustomerBackend d796b86 src/routes/customer.routes.ts
true
200
2,445
import express from "express"; import type { Request, Response, NextFunction } from "express"; import { addCustomer, deleteCustomer, getAllCustomers, getCustomerById, updateCustomer } from "../services/customer.service.js"; // Updated to include .js extension const router = express.Router(); // Defi...
0
ruijs/project-matrix
c38d72f
app/_definitions/models/entities/BaseLot.ts
TypeScript
www.github.com/ruijs/project-matrix/tree/main/app/_definitions/models/entities/BaseLot.ts
https://raw.githubusercontent.com/ruijs/project-matrix/c38d72f/app/_definitions/models/entities/BaseLot.ts
ruijs/project-matrix c38d72f app/_definitions/models/entities/BaseLot.ts
true
200
1,613
import type { TDictionaryCodes } from "../../meta/data-dictionary-codes"; import type { TEntitySingularCodes } from "../../meta/model-codes"; import type { RapidEntity } from "@ruiapp/rapid-extension"; const entity: RapidEntity<TEntitySingularCodes, TDictionaryCodes> = { namespace: "app", code: "BaseLot", name: ...
6
HouseOfAngular/ng-packages
d678f5c
projects/linking-tool/src/lib/runtime/link/link.service.spec.ts
TypeScript
www.github.com/HouseOfAngular/ng-packages/tree/main/projects/linking-tool/src/lib/runtime/link/link.service.spec.ts
https://raw.githubusercontent.com/HouseOfAngular/ng-packages/d678f5c/projects/linking-tool/src/lib/runtime/link/link.service.spec.ts
HouseOfAngular/ng-packages d678f5c projects/linking-tool/src/lib/runtime/link/link.service.spec.ts
true
200
7,070
import { TestBed } from '@angular/core/testing'; import { LinkService } from './link.service'; import { LinkingToolModule } from '../linking-tool.module'; import { LinksMap, LinkType } from '../resources'; import { Params } from '@angular/router'; describe('LinkService', () => { const customLinkType = 'link'; con...
5
mathsant/daily-diet
4c9bd1b
app/src/storage/meals/get.all.meals.ts
TypeScript
www.github.com/mathsant/daily-diet/tree/main/app/src/storage/meals/get.all.meals.ts
https://raw.githubusercontent.com/mathsant/daily-diet/4c9bd1b/app/src/storage/meals/get.all.meals.ts
mathsant/daily-diet 4c9bd1b app/src/storage/meals/get.all.meals.ts
true
200
416
import AsyncStorage from "@react-native-async-storage/async-storage"; import { MEALS_COLLECTION } from "../storage.config"; import { MealProps } from "./meal.dto"; export async function getAllMeals(): Promise<MealProps[]> { try { const storage = await AsyncStorage.getItem(MEALS_COLLECTION); const meals = st...
1
htmlacademy-univer-nodejs/2231365-what-to-watch-1
348aed7
src/modules/movie/movie.controller.ts
TypeScript
www.github.com/htmlacademy-univer-nodejs/2231365-what-to-watch-1/tree/main/src/modules/movie/movie.controller.ts
https://raw.githubusercontent.com/htmlacademy-univer-nodejs/2231365-what-to-watch-1/348aed7/src/modules/movie/movie.controller.ts
htmlacademy-univer-nodejs/2231365-what-to-watch-1 348aed7 src/modules/movie/movie.controller.ts
true
200
6,512
import {inject, injectable} from 'inversify'; import {Controller} from '../../common/controller/controller.js'; import {Component} from '../../types/component.types.js'; import {LoggerInterface} from '../../common/logger/logger.interface.js'; import {MovieServiceInterface} from './movie-service.interface.js'; import {H...
2
braden-w/obsidian-export
3ce1e1a
utils/markdown/frontmatter.ts
TypeScript
www.github.com/braden-w/obsidian-export/tree/main/utils/markdown/frontmatter.ts
https://raw.githubusercontent.com/braden-w/obsidian-export/3ce1e1a/utils/markdown/frontmatter.ts
braden-w/obsidian-export 3ce1e1a utils/markdown/frontmatter.ts
true
200
1,011
import { parse } from 'https://deno.land/x/frontmatter/mod.ts'; import { z } from 'https://deno.land/x/zod/mod.ts'; import type { MarkdownFileSummary } from '../types.d.ts'; const articleSchema = z.object({ title: z.string().optional(), alias: z.string().nullable(), tags: z .string() .nullable() .transform((...
0
baekmerve/Dashboard-next
a40ff33
app/lib/actions/customerActions.ts
TypeScript
www.github.com/baekmerve/Dashboard-next/tree/main/app/lib/actions/customerActions.ts
https://raw.githubusercontent.com/baekmerve/Dashboard-next/a40ff33/app/lib/actions/customerActions.ts
baekmerve/Dashboard-next a40ff33 app/lib/actions/customerActions.ts
true
200
2,644
"use server"; import postgres from "postgres"; import { CustomerField, CustomersTableType } from "../types/types"; import { formatCurrency } from "../utils/utils"; const sql = postgres(process.env.POSTGRES_URL!, { ssl: "require" }); const ITEMS_PER_PAGE = 5; export async function fetchCustomers() { try { const...
7
anthowen/420-backend
b1226a9
src/stats/stats.module.ts
TypeScript
www.github.com/anthowen/420-backend/tree/main/src/stats/stats.module.ts
https://raw.githubusercontent.com/anthowen/420-backend/b1226a9/src/stats/stats.module.ts
anthowen/420-backend b1226a9 src/stats/stats.module.ts
true
200
335
import { Module } from '@nestjs/common'; import { StatsService } from './stats.service'; import { StatsController } from './stats.controller'; import { PrismaModule } from 'src/prisma/prisma.module'; @Module({ imports: [PrismaModule], providers: [StatsService], controllers: [StatsController] }) export class Stat...
6
different-ai/hypr-v0
26bebf5
pipes/auto-pay/src/lib/auto-pay-settings.ts
TypeScript
www.github.com/different-ai/hypr-v0/tree/main/pipes/auto-pay/src/lib/auto-pay-settings.ts
https://raw.githubusercontent.com/different-ai/hypr-v0/26bebf5/pipes/auto-pay/src/lib/auto-pay-settings.ts
different-ai/hypr-v0 26bebf5 pipes/auto-pay/src/lib/auto-pay-settings.ts
true
200
1,290
import type { Settings } from '@/types/settings'; import type { PaymentMethod } from '@/types/payment'; interface ConfigurationStatus { isAnyConfigured: boolean; availableMethods: PaymentMethod[]; mercury: { isConfigured: boolean; missing: string[]; }; wise: { isConfigured: boolean; missing: ...
5
TAIiB2024lato/StudenciClientS2
8cf5964
src/app/students/students.component.ts
TypeScript
www.github.com/TAIiB2024lato/StudenciClientS2/tree/main/src/app/students/students.component.ts
https://raw.githubusercontent.com/TAIiB2024lato/StudenciClientS2/8cf5964/src/app/students/students.component.ts
TAIiB2024lato/StudenciClientS2 8cf5964 src/app/students/students.component.ts
true
200
1,203
import { Component } from '@angular/core'; import { StudentsService } from '../students.service'; import { StudentResponseDTo } from '../models/student.interface'; @Component({ selector: 'app-students', templateUrl: './students.component.html', styleUrl: './students.component.css' }) export class StudentsCompone...
1
KenMatsumoto-Spark/tg-backend
f7e3213
source/connection/databaseConnection.ts
TypeScript
www.github.com/KenMatsumoto-Spark/tg-backend/tree/main/source/connection/databaseConnection.ts
https://raw.githubusercontent.com/KenMatsumoto-Spark/tg-backend/f7e3213/source/connection/databaseConnection.ts
KenMatsumoto-Spark/tg-backend f7e3213 source/connection/databaseConnection.ts
true
200
938
import 'dotenv/config' import colors from 'colors/safe' import mongoose from 'mongoose' import to from 'await-to-js' const username = process.env.DATABASE_USERNAME const password = process.env.DATABASE_PASSWORD const clusterName = process.env.DATABASE_CUSTERNAME const databaseName = process.env.DATABASE_NAME const co...
2
RgMellon/nest.ping.users
224394c
src/app.module.ts
TypeScript
www.github.com/RgMellon/nest.ping.users/tree/main/src/app.module.ts
https://raw.githubusercontent.com/RgMellon/nest.ping.users/224394c/src/app.module.ts
RgMellon/nest.ping.users 224394c src/app.module.ts
true
200
345
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { UsersModule } from './users/users.module'; import { AuthModule } from './auth/auth.module'; @Module({ imports: [ConfigModule.forRoot({ isGlobal: true }), UsersModule, AuthModule], controllers: [], providers: [], }) e...
0
danielbWork/Voltorb-Flip
2f569b2
src/browserAction/game/Settings.ts
TypeScript
www.github.com/danielbWork/Voltorb-Flip/tree/main/src/browserAction/game/Settings.ts
https://raw.githubusercontent.com/danielbWork/Voltorb-Flip/2f569b2/src/browserAction/game/Settings.ts
danielbWork/Voltorb-Flip 2f569b2 src/browserAction/game/Settings.ts
true
200
1,115
import { delay } from "browserAction/utils"; import { writable } from "svelte/store"; import { storage } from "webextension-polyfill"; /** * Default settings for the user to follow */ export const defaultSettings = { hasBeatenLastLevel: false, usingShinyCharm: false, keybindings: { toggleMemo: "x", fli...
7
k3strl/17.LitLink
01e4bc7
routes/index.ts
TypeScript
www.github.com/k3strl/17.LitLink/tree/main/routes/index.ts
https://raw.githubusercontent.com/k3strl/17.LitLink/01e4bc7/routes/index.ts
k3strl/17.LitLink 01e4bc7 routes/index.ts
true
200
276
import { Router } from 'express'; import userRoutes from './userRoutes'; import thoughtRoutes from './thoughtRoutes'; const router = Router(); // User routes router.use('/users', userRoutes); // Thought routes router.use('/thoughts', thoughtRoutes); export default router;
6
mstuercke/2d-game-grid
9b9d20e
apps/square/src/algorithms/pathfinding/mapper/mapWalkableMatrix.ts
TypeScript
www.github.com/mstuercke/2d-game-grid/tree/main/apps/square/src/algorithms/pathfinding/mapper/mapWalkableMatrix.ts
https://raw.githubusercontent.com/mstuercke/2d-game-grid/9b9d20e/apps/square/src/algorithms/pathfinding/mapper/mapWalkableMatrix.ts
mstuercke/2d-game-grid 9b9d20e apps/square/src/algorithms/pathfinding/mapper/mapWalkableMatrix.ts
true
200
605
import type {SquareGrid} from '../../../SquareGrid.js' import type {SquareCell} from '../../../SquareCell.js' /** * Converts the grid into a matrix for the pathfinding lib * @param grid The grid * @param isWalkable A function that returns true, when the cell is walkable * @returns A 2-dimensional array with a 0 fo...
5
balkissty/react-rtk-query
3485078
src/services/base.service.ts
TypeScript
www.github.com/balkissty/react-rtk-query/tree/main/src/services/base.service.ts
https://raw.githubusercontent.com/balkissty/react-rtk-query/3485078/src/services/base.service.ts
balkissty/react-rtk-query 3485078 src/services/base.service.ts
true
200
488
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; /** * Base API service to be used across the application. * Endpoints can be injected using the .injectEndpoints method. */ export const baseApi = createApi({ reducerPath: 'baseApiReducer', baseQuery: fetchBaseQuery({ baseUrl: 'https://js...
1
DiroGL/Climclip
17c987a
Fronted-climclip/src/app/bodyapp/userprofile/userprofile.page.ts
TypeScript
www.github.com/DiroGL/Climclip/tree/main/Fronted-climclip/src/app/bodyapp/userprofile/userprofile.page.ts
https://raw.githubusercontent.com/DiroGL/Climclip/17c987a/Fronted-climclip/src/app/bodyapp/userprofile/userprofile.page.ts
DiroGL/Climclip 17c987a Fronted-climclip/src/app/bodyapp/userprofile/userprofile.page.ts
true
200
5,331
import { Component, Input, OnInit, inject } from '@angular/core'; import { Block } from 'src/app/login/models/block.models'; import { Like } from 'src/app/login/models/like.models'; import { User } from 'src/app/login/models/user.models'; import { FirebaseService } from 'src/app/login/servicios/firebase.service'; impo...
2
SinglePoi/v-admin
b5cb50b
src/service/request/index.ts
TypeScript
www.github.com/SinglePoi/v-admin/tree/main/src/service/request/index.ts
https://raw.githubusercontent.com/SinglePoi/v-admin/b5cb50b/src/service/request/index.ts
SinglePoi/v-admin b5cb50b src/service/request/index.ts
true
200
883
import IceRequest from './ice-request' import type { IceRequest as instance } from './ice-request' import type { IceRequestConfig } from './types' export type { IceRequestConfig } from './types' import { BASE_URL, TIME_OUT } from './config' import { localCache } from '@/hooks/use-cache' const config: IceRequestConfig ...
7
AnhQuan832/Graduation_Project
937821d
src/app/components/shared/nav-bar/nav-bar.component.ts
TypeScript
www.github.com/AnhQuan832/Graduation_Project/tree/main/src/app/components/shared/nav-bar/nav-bar.component.ts
https://raw.githubusercontent.com/AnhQuan832/Graduation_Project/937821d/src/app/components/shared/nav-bar/nav-bar.component.ts
AnhQuan832/Graduation_Project 937821d src/app/components/shared/nav-bar/nav-bar.component.ts
true
200
5,636
import { SocialAuthService } from '@abacritt/angularx-social-login'; import { AfterViewInit, Component, OnInit } from '@angular/core'; import { Route, Router } from '@angular/router'; import { MenuItem } from 'primeng/api'; import { debounceTime, Subject } from 'rxjs'; import { Location } from '@angular/common'; import...
6
yuriaresi/atividade-final-front-3
a101a48
src/config/rootReducer.ts
TypeScript
www.github.com/yuriaresi/atividade-final-front-3/tree/main/src/config/rootReducer.ts
https://raw.githubusercontent.com/yuriaresi/atividade-final-front-3/a101a48/src/config/rootReducer.ts
yuriaresi/atividade-final-front-3 a101a48 src/config/rootReducer.ts
true
200
445
import { combineReducers } from "@reduxjs/toolkit"; import paginacaoSlice from "./Modules/paginacao.slice"; import pokemonsSlice from "./Modules/pokemons.slice"; import pokemonSlice from "./Modules/pokemon.slice"; import shinySlice from "./Modules/shiny.slice"; export const rootReducer = combineReducers( { ...
0
jamesbrobb/ts-ast-parser-v2
a8a4c51
src/declarations/definitions/type.ts
TypeScript
www.github.com/jamesbrobb/ts-ast-parser-v2/tree/main/src/declarations/definitions/type.ts
https://raw.githubusercontent.com/jamesbrobb/ts-ast-parser-v2/a8a4c51/src/declarations/definitions/type.ts
jamesbrobb/ts-ast-parser-v2 a8a4c51 src/declarations/definitions/type.ts
true
200
7,403
import * as ts from "typescript"; import {getModifierKeywords, ModifierKeywords, Modifiers} from "./modifiers"; import {DeclarationKind} from "../declaration-kind.types"; import {DeclarationDefinition, DeclarationPostProcessFn} from "../declaration-definition.types"; import {Parser} from "../declaration-parser"; import...
5
ArpitKyada/bookshop-assignment
7d2ed68
src/features/bookDetails/data.ts
TypeScript
www.github.com/ArpitKyada/bookshop-assignment/tree/main/src/features/bookDetails/data.ts
https://raw.githubusercontent.com/ArpitKyada/bookshop-assignment/7d2ed68/src/features/bookDetails/data.ts
ArpitKyada/bookshop-assignment 7d2ed68 src/features/bookDetails/data.ts
true
200
809
import { Comment } from './types'; export const comments: Comment[] = [ { id: 1, name: `안녕 나 응애`, content: `어머 제가 있던 테이블이 제일 반응이 좋았나보네요🤭 우짤래미님도 아시겠지만 저도 일반인 몸매 그 이상도 이하도 아니잖아요?! 그런 제가 기꺼이 도전해봤는데 생각보다 괜찮았어요! 오늘 중으로 라이브 리뷰 올라온다고 하니 꼭 봐주세용~!`, isVerified: true, likes: 5, profileImage: `/images/...
1
0xhank/profiteer
91f8203
apps/server/src/types/index.ts
TypeScript
www.github.com/0xhank/profiteer/tree/main/apps/server/src/types/index.ts
https://raw.githubusercontent.com/0xhank/profiteer/91f8203/apps/server/src/types/index.ts
0xhank/profiteer 91f8203 apps/server/src/types/index.ts
true
200
1,465
import { MessageV0, PublicKey } from "@solana/web3.js"; import { z } from "zod"; export const createBondingCurveInputSchema = z.object({ userPublicKey: z.string(), name: z.string(), symbol: z.string(), uri: z.string(), }); export type CreateBondingCurveInput = z.infer< typeof createBondingCurveInp...
2
dameeta/angular11
d7f535e
unittestwithang/testangprj/src/app/app.module.ts
TypeScript
www.github.com/dameeta/angular11/tree/main/unittestwithang/testangprj/src/app/app.module.ts
https://raw.githubusercontent.com/dameeta/angular11/d7f535e/unittestwithang/testangprj/src/app/app.module.ts
dameeta/angular11 d7f535e unittestwithang/testangprj/src/app/app.module.ts
true
200
458
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { TitleComponent } from './title/title.component'; // Import new TitleComponent @NgModule({ declarations: [ AppComponent, TitleComponent // add TitleCom...
7
Kayaba-Attribution/SmartPortfolio---Particle-SDK
cefed35
Hardhat/tasks/createBaskets.ts
TypeScript
www.github.com/Kayaba-Attribution/SmartPortfolio---Particle-SDK/tree/main/Hardhat/tasks/createBaskets.ts
https://raw.githubusercontent.com/Kayaba-Attribution/SmartPortfolio---Particle-SDK/cefed35/Hardhat/tasks/createBaskets.ts
Kayaba-Attribution/SmartPortfolio---Particle-SDK cefed35 Hardhat/tasks/createBaskets.ts
true
200
3,591
import { task } from "hardhat/config"; import { HardhatRuntimeEnvironment } from "hardhat/types"; import { parseEther } from "ethers"; import * as dotenv from "dotenv"; dotenv.config(); task("create-baskets", "Creates test baskets in the SmartBasket contract") .setAction(async (taskArgs: {}, hre: HardhatRuntimeEn...
6
buildcore-io/core
ca5f76b
packages/functions/test-tangle/nft-transfer/Helper.ts
TypeScript
www.github.com/buildcore-io/core/tree/main/packages/functions/test-tangle/nft-transfer/Helper.ts
https://raw.githubusercontent.com/buildcore-io/core/ca5f76b/packages/functions/test-tangle/nft-transfer/Helper.ts
buildcore-io/core ca5f76b packages/functions/test-tangle/nft-transfer/Helper.ts
true
200
6,148
/* eslint-disable @typescript-eslint/no-explicit-any */ import { database } from '@buildcore/database'; import { Access, COL, Categories, Collection, CollectionStatus, CollectionType, MIN_IOTA_AMOUNT, Network, Nft, NftAccess, NftStatus, Space, Timestamp, Transaction, TransactionType, Uns...
5
CarlosBaixoSI/we-pet-cleanarch
eade2c9
auth-microservice/src/application/users/commands/sign-up/sign-up-command-validator.ts
TypeScript
www.github.com/CarlosBaixoSI/we-pet-cleanarch/tree/main/auth-microservice/src/application/users/commands/sign-up/sign-up-command-validator.ts
https://raw.githubusercontent.com/CarlosBaixoSI/we-pet-cleanarch/eade2c9/auth-microservice/src/application/users/commands/sign-up/sign-up-command-validator.ts
CarlosBaixoSI/we-pet-cleanarch eade2c9 auth-microservice/src/application/users/commands/sign-up/sign-up-command-validator.ts
true
200
622
import * as Yup from 'yup'; // Schema validator library import { ValidationException } from "@application/common/exceptions"; import { SignUpCommand } from './sign-up-command'; export async function validate(command: SignUpCommand) { try { const schema: Yup.ObjectSchema<SignUpCommand> = Yup.object().shape...
0
cellplatform/platform-0.1.0
ffad60a
code/cell.modules/pkg.sys/ui.primitives/src/ui/PropList/types.ts
TypeScript
www.github.com/cellplatform/platform-0.1.0/tree/main/code/cell.modules/pkg.sys/ui.primitives/src/ui/PropList/types.ts
https://raw.githubusercontent.com/cellplatform/platform-0.1.0/ffad60a/code/cell.modules/pkg.sys/ui.primitives/src/ui/PropList/types.ts
cellplatform/platform-0.1.0 ffad60a code/cell.modules/pkg.sys/ui.primitives/src/ui/PropList/types.ts
true
200
2,667
import * as t from '../../common/types'; /** * Component: <PropList> */ export type PropListTheme = 'Dark' | 'Light'; export type PropListTitleProps = { title?: string | JSX.Element | null; titleEllipsis?: boolean; }; export type PropListProps = PropListTitleProps & { items?: (PropListItem | undefined)[] | R...
2
everson-barbosa/crud-mock-service-worker
33f7db9
src/hooks/api/products/use-get-product.ts
TypeScript
www.github.com/everson-barbosa/crud-mock-service-worker/tree/main/src/hooks/api/products/use-get-product.ts
https://raw.githubusercontent.com/everson-barbosa/crud-mock-service-worker/33f7db9/src/hooks/api/products/use-get-product.ts
everson-barbosa/crud-mock-service-worker 33f7db9 src/hooks/api/products/use-get-product.ts
true
200
914
import { create } from "zustand"; import { GetProductParams, GetProductData, getProduct } from '../../../services/products/get-product' interface useGetProductProps { data: GetProductData | null isLoading: boolean isError: boolean lastRequest: Date | null requestAPI: (params: GetProductParams) => P...
4
iecas-riscv-oh/aircasHD
1003ce9
node_modules/@ohos/hvigor-base/src/internal/task/interface/task-container-interface.d.ts
TypeScript
www.github.com/iecas-riscv-oh/aircasHD/tree/main/node_modules/@ohos/hvigor-base/src/internal/task/interface/task-container-interface.d.ts
https://raw.githubusercontent.com/iecas-riscv-oh/aircasHD/1003ce9/node_modules/%40ohos/hvigor-base/src/internal/task/interface/task-container-interface.d.ts
iecas-riscv-oh/aircasHD 1003ce9 node_modules/@ohos/hvigor-base/src/internal/task/interface/task-container-interface.d.ts
true
200
910
import { Task } from '../../../external/task/task.js'; /** * 定义Hvigor任务管理容器支持的方法,主要包括添加,删除,查找等 * * @since 2022/4/24 */ export interface TaskContainer { /** * 往容器中增加Task * * @param {Task} task */ addTask(task: Task): void; /** * 从容器中删除Task * * @param {string} taskName ...
3
mannue/wtb-server
a1893fb
src/bot/commands/slash/fun/message.ts
TypeScript
www.github.com/mannue/wtb-server/tree/main/src/bot/commands/slash/fun/message.ts
https://raw.githubusercontent.com/mannue/wtb-server/a1893fb/src/bot/commands/slash/fun/message.ts
mannue/wtb-server a1893fb src/bot/commands/slash/fun/message.ts
true
200
1,092
import { SlashCommandBuilder, PermissionFlagsBits, ChatInputCommandInteraction, ChannelType, } from 'discord.js'; import { isBotOwner } from '../../../lib/validate'; export default { data: new SlashCommandBuilder() .setName('message') .setDescription('Send a message') .addStringOption((option) =>...
1
lubkoKuzenko/github-nqef3l
55b50a3
src/app/patterns/patterns-routing.module.ts
TypeScript
www.github.com/lubkoKuzenko/github-nqef3l/tree/main/src/app/patterns/patterns-routing.module.ts
https://raw.githubusercontent.com/lubkoKuzenko/github-nqef3l/55b50a3/src/app/patterns/patterns-routing.module.ts
lubkoKuzenko/github-nqef3l 55b50a3 src/app/patterns/patterns-routing.module.ts
true
200
916
import { NgModule } from "@angular/core"; import { Routes, RouterModule } from "@angular/router"; import { PatternsComponent } from "./patterns.component"; import { BridgeComponent } from "./bridge/bridge.component"; import { StrategyComponent } from "./strategy/strategy.component"; import { AdapterComponent } from "....
7
pyajamanam/course-app
0b42a5d
src/app/feature/courses/course-add/course-add.component.ts
TypeScript
www.github.com/pyajamanam/course-app/tree/main/src/app/feature/courses/course-add/course-add.component.ts
https://raw.githubusercontent.com/pyajamanam/course-app/0b42a5d/src/app/feature/courses/course-add/course-add.component.ts
pyajamanam/course-app 0b42a5d src/app/feature/courses/course-add/course-add.component.ts
true
200
1,635
import { Component, OnInit } from '@angular/core'; import { FormArray, FormControl, FormGroup, Validators } from '@angular/forms'; import { alphaNumeric } from 'src/app/shared/directives/alfanumeric-only.util'; @Component({ selector: 'app-course-add', templateUrl: './course-add.component.html', styleUrls: ['./co...
6
pejoyjp/Jin-Teaching
8e353d6
app/api/read/[studentId]/route.ts
TypeScript
www.github.com/pejoyjp/Jin-Teaching/tree/main/app/api/read/[studentId]/route.ts
https://raw.githubusercontent.com/pejoyjp/Jin-Teaching/8e353d6/app/api/read/%5BstudentId%5D/route.ts
pejoyjp/Jin-Teaching 8e353d6 app/api/read/[studentId]/route.ts
true
200
771
import { db } from "@/firebase"; import axios from "axios"; import { doc, updateDoc,collection,getDocs} from "firebase/firestore"; import { NextResponse } from "next/server"; let studentId:string export async function GET(request: Request) { const materials:any[] = []; try{ const querySnapshot = ...
5
Zer0-Vector/swn-faction-tracker
5137f23
src/hooks/useLocalStorage.ts
TypeScript
www.github.com/Zer0-Vector/swn-faction-tracker/tree/main/src/hooks/useLocalStorage.ts
https://raw.githubusercontent.com/Zer0-Vector/swn-faction-tracker/5137f23/src/hooks/useLocalStorage.ts
Zer0-Vector/swn-faction-tracker 5137f23 src/hooks/useLocalStorage.ts
true
200
585
import { useEffect, useState } from "react"; function getStorageValue<T>(key: string, defaultValue: T): T { const saved = localStorage.getItem(key); if (saved) { return JSON.parse(saved) as T; } else { return defaultValue; } } export function useLocalStorage<T>(key: string, defaultValue: T): [valu...
2
vsaraminev/TuningPlace
a68bb4a
src/app/components/project/project-all/project-all.component.ts
TypeScript
www.github.com/vsaraminev/TuningPlace/tree/main/src/app/components/project/project-all/project-all.component.ts
https://raw.githubusercontent.com/vsaraminev/TuningPlace/a68bb4a/src/app/components/project/project-all/project-all.component.ts
vsaraminev/TuningPlace a68bb4a src/app/components/project/project-all/project-all.component.ts
true
200
682
import { AuthService } from '../../../core/services/auth.service'; import { ProjectService } from '../../../core/services/project.service'; import { Project } from '../../../core/models/project'; import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; @Component({ selector: 'app-project...
4
ruifeng-y/ruifeng-music
d1509ec
ruifeng-music-server/src/example/exp1.ts
TypeScript
www.github.com/ruifeng-y/ruifeng-music/tree/main/ruifeng-music-server/src/example/exp1.ts
https://raw.githubusercontent.com/ruifeng-y/ruifeng-music/d1509ec/ruifeng-music-server/src/example/exp1.ts
ruifeng-y/ruifeng-music d1509ec ruifeng-music-server/src/example/exp1.ts
true
200
1,852
// src/example/exp1.ts /** * 使用高阶函数 * 柯里化解构登录与日志记录 */ type DecoratorFunc = ( target: any, key: string, descriptor: PropertyDescriptor, ) => void; // 模拟的装饰器工厂函数 const createDecorator = (decorator: DecoratorFunc) => (Model: any, key: string) => { // 获取即将使用装饰器的类原型 const target = Model....
0
mudassirahmed395/test-project-1
aa0f501
frontend/admin/add-ons/Cms-c/manage-seo/blog/blog.contant.ts
TypeScript
www.github.com/mudassirahmed395/test-project-1/tree/main/frontend/admin/add-ons/Cms-c/manage-seo/blog/blog.contant.ts
https://raw.githubusercontent.com/mudassirahmed395/test-project-1/aa0f501/frontend/admin/add-ons/Cms-c/manage-seo/blog/blog.contant.ts
mudassirahmed395/test-project-1 aa0f501 frontend/admin/add-ons/Cms-c/manage-seo/blog/blog.contant.ts
true
200
757
import { AuthGuard } from "src/core/admin/providers/auth.guard"; import { Routes } from "@angular/router"; import { BlogStaticComponent } from "./blog-static/blog-static.component"; // components paths export const componentLists = [BlogStaticComponent]; // route paths export const routePath: Routes = [ { ...
7
mwang8936/BigFeetWebServer
ac118e9
src/exceptions/custom-error.ts
TypeScript
www.github.com/mwang8936/BigFeetWebServer/tree/main/src/exceptions/custom-error.ts
https://raw.githubusercontent.com/mwang8936/BigFeetWebServer/ac118e9/src/exceptions/custom-error.ts
mwang8936/BigFeetWebServer ac118e9 src/exceptions/custom-error.ts
true
200
457
export enum HttpCode { OK = 200, CREATED = 201, NO_CONTENT = 204, NOT_MODIFIED = 304, BAD_REQUEST = 400, UNAUTHORIZED = 401, FORBIDDEN = 403, NOT_FOUND = 404, CONFLICT = 409, TOO_MANY_REQUESTS = 429, INTERNAL_SERVER_ERROR = 500, } export abstract class CustomError extends Error { constructor() { super();...
1
bosss09/shop-car
936bf9e
src/app/mock-api/common/navigation/data.ts
TypeScript
www.github.com/bosss09/shop-car/tree/main/src/app/mock-api/common/navigation/data.ts
https://raw.githubusercontent.com/bosss09/shop-car/936bf9e/src/app/mock-api/common/navigation/data.ts
bosss09/shop-car 936bf9e src/app/mock-api/common/navigation/data.ts
true
200
44,079
/* eslint-disable */ import { FortNavigationItem } from '@fortmesh/components/navigation'; export const defaultNavigation: FortNavigationItem[] = [ { id : 'dashboards', title : 'Dashboards', subtitle: 'Unique dashboard designs', type : 'group', icon : 'heroicons_outline:home...
5
jakenuts/map-chat
edb38a4
src/lib/utils/logging.ts
TypeScript
www.github.com/jakenuts/map-chat/tree/main/src/lib/utils/logging.ts
https://raw.githubusercontent.com/jakenuts/map-chat/edb38a4/src/lib/utils/logging.ts
jakenuts/map-chat edb38a4 src/lib/utils/logging.ts
true
200
3,079
// Logging utilities for consistent log formatting across the application type LogLevel = 'debug' | 'info' | 'warn' | 'error'; type LogType = 'send' | 'receive' | 'error' | 'map_command'; interface LogEntry { timestamp: string; level: LogLevel; type: LogType; data: any; } class Logger { private static inst...
3
dheerajmalu27/schooladmin
cb116e9
src/app/theme/pages/self-layout-blank/snippets/pages/user/user-login-2/user-login-2.component.ts
TypeScript
www.github.com/dheerajmalu27/schooladmin/tree/main/src/app/theme/pages/self-layout-blank/snippets/pages/user/user-login-2/user-login-2.component.ts
https://raw.githubusercontent.com/dheerajmalu27/schooladmin/cb116e9/src/app/theme/pages/self-layout-blank/snippets/pages/user/user-login-2/user-login-2.component.ts
dheerajmalu27/schooladmin cb116e9 src/app/theme/pages/self-layout-blank/snippets/pages/user/user-login-2/user-login-2.component.ts
true
200
4,402
import { Component, ComponentFactoryResolver, OnInit, AfterViewInit, ViewChild, ViewContainerRef, ViewEncapsulation, } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Helpers } from '../../../../../../../helpers'; import { ScriptLoaderService } from '../../../../.....
6
dojo-vue/volarjs
f5d5652
packages/language-server/src/node/index.ts
TypeScript
www.github.com/dojo-vue/volarjs/tree/main/packages/language-server/src/node/index.ts
https://raw.githubusercontent.com/dojo-vue/volarjs/f5d5652/packages/language-server/src/node/index.ts
dojo-vue/volarjs f5d5652 packages/language-server/src/node/index.ts
true
200
3,525
import * as fs from 'fs'; import * as vscode from 'vscode-languageserver/node'; import { URI } from 'vscode-uri'; import httpSchemaRequestHandler from '../common/schemaRequestHandlers/http'; import { startCommonLanguageServer } from '../common/server'; import { InitializationOptions, LanguageServerPlugin } from '../typ...
2
kabir1471/clean_react
d7aa966
src/domain/test/mock-account.ts
TypeScript
www.github.com/kabir1471/clean_react/tree/main/src/domain/test/mock-account.ts
https://raw.githubusercontent.com/kabir1471/clean_react/d7aa966/src/domain/test/mock-account.ts
kabir1471/clean_react d7aa966 src/domain/test/mock-account.ts
true
200
423
import { faker } from '@faker-js/faker' import { AuthenticationParams } from '../../domain/usecases/authentication' import { AccountModel } from '../../domain/models/account-model' export const mockAuthentication = (): AuthenticationParams => ({ email: faker.internet.email(), password: faker.internet.password() })...
7
gektor013/Video-blog
f633e0e
store/index.ts
TypeScript
www.github.com/gektor013/Video-blog/tree/main/store/index.ts
https://raw.githubusercontent.com/gektor013/Video-blog/f633e0e/store/index.ts
gektor013/Video-blog f633e0e store/index.ts
true
200
1,440
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux" import { persistReducer, persistStore } from "redux-persist" import AsyncStorage from "@react-native-async-storage/async-storage" import { Action, combineReducers, configureStore, ThunkAction } from "@reduxjs/toolkit" import { setupListeners ...
1
HINTERLAND-software/lambda.sync-estate-api
3da37b0
src/libs/portal.test.ts
TypeScript
www.github.com/HINTERLAND-software/lambda.sync-estate-api/tree/main/src/libs/portal.test.ts
https://raw.githubusercontent.com/HINTERLAND-software/lambda.sync-estate-api/3da37b0/src/libs/portal.test.ts
HINTERLAND-software/lambda.sync-estate-api 3da37b0 src/libs/portal.test.ts
true
200
1,248
import { Portal } from './portal'; import { mockParameters } from './__mocks__/aws-sdk'; import { filteredResponseFFV2, mockDictionaries, } from './__mocks__/estate-portal-aggregator'; const configIS24 = mockParameters['hinterland.software'].portal as any; const configFFV2 = mockParameters['foobar.com'].portal as ...
6
turbomarko/turbo-next
7da6e24
redux/contacts/api.ts
TypeScript
www.github.com/turbomarko/turbo-next/tree/main/redux/contacts/api.ts
https://raw.githubusercontent.com/turbomarko/turbo-next/7da6e24/redux/contacts/api.ts
turbomarko/turbo-next 7da6e24 redux/contacts/api.ts
true
200
691
import { ContactMessage } from "@/types"; import baseApi from "../api"; const api = baseApi.injectEndpoints({ endpoints: (builder) => ({ sendContactMessage: builder.mutation<ContactMessage, ContactMessage>({ query: (body) => ({ url: "/contacts/", method: "POST", body, }), ...
3
nsaunders/demitasse
89cb897
examples/vanilla/src/app.ts
TypeScript
www.github.com/nsaunders/demitasse/tree/main/examples/vanilla/src/app.ts
https://raw.githubusercontent.com/nsaunders/demitasse/89cb897/examples/vanilla/src/app.ts
nsaunders/demitasse 89cb897 examples/vanilla/src/app.ts
true
200
2,267
import { cssBindings } from "demitasse"; export const css = /* css */ ` @keyframes spin { from { transform: rotate(0); } to { transform: rotate(1turn); } } .container { width: 200px; height: 200px; background: rgb(15,18,23); display: flex; align-items: center; ...
2
vinxtech/VinxTech-Website
9e2fbf8
src/app/app-routing.module.ts
TypeScript
www.github.com/vinxtech/VinxTech-Website/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/vinxtech/VinxTech-Website/9e2fbf8/src/app/app-routing.module.ts
vinxtech/VinxTech-Website 9e2fbf8 src/app/app-routing.module.ts
true
200
467
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', redirectTo: '/en/home', pathMatch: 'full' }, { path: ':lang/home', loadChildren: () => import('./pages/home/home.module').then(m => m.HomeModule) }, { path: '**', redir...
1
OTopman/base
7d9ff98
src/Helpers/util.ts
TypeScript
www.github.com/OTopman/base/tree/main/src/Helpers/util.ts
https://raw.githubusercontent.com/OTopman/base/7d9ff98/src/Helpers/util.ts
OTopman/base 7d9ff98 src/Helpers/util.ts
true
200
14,098
import { AppError } from "@/Helpers/AppError"; import messages from "@/Helpers/messages"; import { config } from "@/configs/index"; import axios from "axios"; import bcrypt from "bcrypt"; import crypto from "crypto"; import fs from "fs"; import jwt from "jsonwebtoken"; import libPhoneNumberJs, { CountryCode } from "lib...
6
saarikt1-study/fullstackopen2020-patientor
c61c40e
src/index.ts
TypeScript
www.github.com/saarikt1-study/fullstackopen2020-patientor/tree/main/src/index.ts
https://raw.githubusercontent.com/saarikt1-study/fullstackopen2020-patientor/c61c40e/src/index.ts
saarikt1-study/fullstackopen2020-patientor c61c40e src/index.ts
true
200
466
import express from 'express'; import cors from 'cors'; import diagnoseRouter from './routes/diagnoses'; import patientRouter from './routes/patients'; const app = express(); app.use(express.json()); app.use(cors()); app.use('/api/diagnoses', diagnoseRouter); app.use('/api/patients', patientRouter); const PORT = 3001...
3
devfac/devscience2021
c9f2bdf
frontend/src/app/services/utils.ts
TypeScript
www.github.com/devfac/devscience2021/tree/main/frontend/src/app/services/utils.ts
https://raw.githubusercontent.com/devfac/devscience2021/c9f2bdf/frontend/src/app/services/utils.ts
devfac/devscience2021 c9f2bdf frontend/src/app/services/utils.ts
true
200
454
import { INotificationType } from "@app/models"; export function getUniqueId(): string { const stringArr = []; for (let i = 0; i < 3; i++) { const S4 = (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); stringArr.push(S4); } return stringArr.join('-'); } export function getRandomInt(min:...
2
Nileshdcool/LeetCode-X
c3a91c5
src/max-product.ts
TypeScript
www.github.com/Nileshdcool/LeetCode-X/tree/main/src/max-product.ts
https://raw.githubusercontent.com/Nileshdcool/LeetCode-X/c3a91c5/src/max-product.ts
Nileshdcool/LeetCode-X c3a91c5 src/max-product.ts
true
200
934
export function maxProduct(nums: number[]): number { // Initialize variables to keep track of the two largest and two second-largest elements let max1 = -1; let max2 = -1; // Iterate through the array to find the two largest elements for (const num of nums) { if (num > max1) { m...
7
amirtejareh/Nestjs-Api-Project
52a1b59
src/auth/auth.service.ts
TypeScript
www.github.com/amirtejareh/Nestjs-Api-Project/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/amirtejareh/Nestjs-Api-Project/52a1b59/src/auth/auth.service.ts
amirtejareh/Nestjs-Api-Project 52a1b59 src/auth/auth.service.ts
true
200
1,226
import { Injectable } from "@nestjs/common"; import * as bcrypt from "bcrypt"; import { JwtService } from "@nestjs/jwt"; import { UsersService } from "../users/users.service"; import { RoleService } from "../role/role.service"; @Injectable() export class AuthService { constructor( private readonly usersService: ...
1
danny-waite/redis-wrapper
5db0912
src/index.test.ts
TypeScript
www.github.com/danny-waite/redis-wrapper/tree/main/src/index.test.ts
https://raw.githubusercontent.com/danny-waite/redis-wrapper/5db0912/src/index.test.ts
danny-waite/redis-wrapper 5db0912 src/index.test.ts
true
200
2,820
import RedisLib from "./index"; const redis = new RedisLib(); type Test = { id: string; field1: string; field2: number; field3?: string; }; describe("index", () => { describe("create", () => { test("should create entry", async () => { // const result = await redis.create("test", { id: "abc", na...
6
CsilvaD99/Digi-Crafts
fed27f7
week10/day1/src/enums.ts
TypeScript
www.github.com/CsilvaD99/Digi-Crafts/tree/main/week10/day1/src/enums.ts
https://raw.githubusercontent.com/CsilvaD99/Digi-Crafts/fed27f7/week10/day1/src/enums.ts
CsilvaD99/Digi-Crafts fed27f7 week10/day1/src/enums.ts
true
200
323
//enum // const enum Directions { up = 1, down = 1, left = 1, right = 1, } const right = Directions.right; const left = Directions.left; const enum TshirtSizes { small = "s", medium = "m", large = "l", } const joesize = TshirtSizes.small; enum Ages { young = 1, adult, old, } const oldman = Ages.ol...
2
2023-Winter-Bootcamp-Team-K/Front
97fef36
src/stores/chat.ts
TypeScript
www.github.com/2023-Winter-Bootcamp-Team-K/Front/tree/main/src/stores/chat.ts
https://raw.githubusercontent.com/2023-Winter-Bootcamp-Team-K/Front/97fef36/src/stores/chat.ts
2023-Winter-Bootcamp-Team-K/Front 97fef36 src/stores/chat.ts
true
200
1,228
import { create } from 'zustand'; type ChatStore = { RecordToggle: boolean; isShowChar: boolean; audio: string; sendAudio: boolean; plzWait: boolean; exitChat: boolean; setIsShowChar: (isShowChar: any) => void; setRecordToggle: (RecordToggle: any) => void; setAudio: (audio: any) => void; setSendAu...
3
Solid-Victor/Ericogo
01e4125
backend/src/index.ts
TypeScript
www.github.com/Solid-Victor/Ericogo/tree/main/backend/src/index.ts
https://raw.githubusercontent.com/Solid-Victor/Ericogo/01e4125/backend/src/index.ts
Solid-Victor/Ericogo 01e4125 backend/src/index.ts
true
200
798
import cors from "cors"; import express, { Request, Response } from "express"; import { sampleProducts } from "./data"; const app = express(); app.use( cors({ credentials: true, origin: ["http://localhost:5173"], }) ); app.get("/api/products", (req: Request, res: Response) => { console.log(sampleProduc...
7
korkje/aoc
411e33c
2023/15/part1.ts
TypeScript
www.github.com/korkje/aoc/tree/main/2023/15/part1.ts
https://raw.githubusercontent.com/korkje/aoc/411e33c/2023/15/part1.ts
korkje/aoc 411e33c 2023/15/part1.ts
true
200
522
import read from "https://deno.land/x/read@v0.1.1/mod.ts"; const file = await read(); const start = performance.now(); function hash(input: string) { let current = 0; for (let i = 0; i < input.length; i++) { current += input.charCodeAt(i); current *= 17; current %= 256; } ret...
6
Wingardium-Levicode/bean-there
ff2a610
server/controllers/locationController.ts
TypeScript
www.github.com/Wingardium-Levicode/bean-there/tree/main/server/controllers/locationController.ts
https://raw.githubusercontent.com/Wingardium-Levicode/bean-there/ff2a610/server/controllers/locationController.ts
Wingardium-Levicode/bean-there ff2a610 server/controllers/locationController.ts
true
200
1,680
import { Request, Response } from "express"; import * as dotenv from "dotenv"; import axios from 'axios'; dotenv.config(); var getCurrent = async (req: Request, res: Response) => { const lat = req.params.lat; const long = req.params.long; const GOOGLE_API_ENDPOINT = 'https://maps.googleapis.com/maps/api/place/n...
2
marcotornqvist/web-mobile-template
1e2a14c
server/src/users/users.controller.ts
TypeScript
www.github.com/marcotornqvist/web-mobile-template/tree/main/server/src/users/users.controller.ts
https://raw.githubusercontent.com/marcotornqvist/web-mobile-template/1e2a14c/server/src/users/users.controller.ts
marcotornqvist/web-mobile-template 1e2a14c server/src/users/users.controller.ts
true
200
3,282
import { Body, Controller, Delete, Get, Patch, Post, Res, UnauthorizedException, UseGuards, } from '@nestjs/common'; import { UsersService } from './users.service'; import { Response } from 'express'; import { UpdateEmailRequest } from './dto/update-email.dto'; import { UpdateNameRequest } from './dto...
3
MrNiceRicee/foodtok
4dfd852
foodtok/src/context/Auth.ts
TypeScript
www.github.com/MrNiceRicee/foodtok/tree/main/foodtok/src/context/Auth.ts
https://raw.githubusercontent.com/MrNiceRicee/foodtok/4dfd852/foodtok/src/context/Auth.ts
MrNiceRicee/foodtok 4dfd852 foodtok/src/context/Auth.ts
true
200
325
import { Session, User } from '@supabase/supabase-js'; import { atom } from 'recoil'; type UserType = User | null; type SessionType = Session | null; const user = atom({ key: 'user', default: null as UserType, }); const session = atom({ key: 'session', default: null as SessionType, }); export { user, sessio...
7
GiacomoVoss/enemene
318dbf1
src/modules/core/model/decorator/calculated.decorator.ts
TypeScript
www.github.com/GiacomoVoss/enemene/tree/main/src/modules/core/model/decorator/calculated.decorator.ts
https://raw.githubusercontent.com/GiacomoVoss/enemene/318dbf1/src/modules/core/model/decorator/calculated.decorator.ts
GiacomoVoss/enemene 318dbf1 src/modules/core/model/decorator/calculated.decorator.ts
true
200
974
import {ModelService} from "../service/model.service"; import {Dictionary} from "../../../../base/type/dictionary.type"; import {EntityField} from "../interface/entity-field.class"; import {EntityFieldType} from "../enum/entity-field-type.enum"; import {CalculatedField} from "../interface/calculated-field.class"; impor...
1
ninjadevtrack/robk
4b7dee3
src/app/internal/common/company/last-contact/last-contact.component.ts
TypeScript
www.github.com/ninjadevtrack/robk/tree/main/src/app/internal/common/company/last-contact/last-contact.component.ts
https://raw.githubusercontent.com/ninjadevtrack/robk/4b7dee3/src/app/internal/common/company/last-contact/last-contact.component.ts
ninjadevtrack/robk 4b7dee3 src/app/internal/common/company/last-contact/last-contact.component.ts
true
200
598
import { Component, OnInit, Input } from "@angular/core"; import { ICapsuleDetails } from "src/app/core/company/model/capsule-details.model"; import moment from "moment"; @Component({ selector: "app-last-contact", templateUrl: "./last-contact.component.html", styleUrls: ["./last-contact.component.cs...
6
raves21/MovieWebsite_tmdb-api
a6622fd
src/app/utils/types.ts
TypeScript
www.github.com/raves21/MovieWebsite_tmdb-api/tree/main/src/app/utils/types.ts
https://raw.githubusercontent.com/raves21/MovieWebsite_tmdb-api/a6622fd/src/app/utils/types.ts
raves21/MovieWebsite_tmdb-api a6622fd src/app/utils/types.ts
true
200
648
export type Movie = { adult: boolean; backdrop_path: string | null; genre_ids: number[]; id: number; original_language: string; original_title: string; overview: string; popularity: number; poster_path: string | null; release_date: string; title: string; video: false; ...
2
quandne2004/ProjectsDoSelfs
c2f5fb1
src/app/modules/customer/component/my-bookings/my-bookings.component.ts
TypeScript
www.github.com/quandne2004/ProjectsDoSelfs/tree/main/src/app/modules/customer/component/my-bookings/my-bookings.component.ts
https://raw.githubusercontent.com/quandne2004/ProjectsDoSelfs/c2f5fb1/src/app/modules/customer/component/my-bookings/my-bookings.component.ts
quandne2004/ProjectsDoSelfs c2f5fb1 src/app/modules/customer/component/my-bookings/my-bookings.component.ts
true
200
592
import { Component, OnInit } from '@angular/core'; import { CustomerService } from '../../services/customer.service'; @Component({ selector: 'app-my-bookings', templateUrl: './my-bookings.component.html', styleUrls: ['./my-bookings.component.scss'] }) export class MyBookingsComponent implements OnInit { booki...
3
fWzzy/mrnn-bp
f9b23a5
mrnn-fe/src/app/store.ts
TypeScript
www.github.com/fWzzy/mrnn-bp/tree/main/mrnn-fe/src/app/store.ts
https://raw.githubusercontent.com/fWzzy/mrnn-bp/f9b23a5/mrnn-fe/src/app/store.ts
fWzzy/mrnn-bp f9b23a5 mrnn-fe/src/app/store.ts
true
200
501
import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit'; import rootReducer from './root.reducer'; export const store = configureStore({ reducer: rootReducer, middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }), }); export type AppDispatch = typeof store.d...
1
haruBlank00/study-sathi-server
c1543d6
src/module/users/users.module.ts
TypeScript
www.github.com/haruBlank00/study-sathi-server/tree/main/src/module/users/users.module.ts
https://raw.githubusercontent.com/haruBlank00/study-sathi-server/c1543d6/src/module/users/users.module.ts
haruBlank00/study-sathi-server c1543d6 src/module/users/users.module.ts
true
200
726
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { S3Module } from '../s3/s3.module'; import { USER_MODEL } from './constants'; import { UserSchema } from './schema/user.schema'; import { UsersController } from './users.controller'; import { UsersService } from './users...
7
nawodyaishan/avalanche-simple-storage
9736e1c
scripts/interact.ts
TypeScript
www.github.com/nawodyaishan/avalanche-simple-storage/tree/main/scripts/interact.ts
https://raw.githubusercontent.com/nawodyaishan/avalanche-simple-storage/9736e1c/scripts/interact.ts
nawodyaishan/avalanche-simple-storage 9736e1c scripts/interact.ts
true
200
2,074
import {ethers} from 'ethers'; import * as dotenv from 'dotenv'; dotenv.config(); const CONTRACT_ADDRESS = process.env.CONTRACT_ADDRESS as string || '0x0697aBc8Dc960d53911f4A8BB8989826b78CaF61'; if (!CONTRACT_ADDRESS) { throw new Error('Please set your contract address in the interact.ts script'); } const ABI = [...
2
JayStevency/nestjs-slack-notification
e4e49e5
src/filters/slack-exception.filter.spec.ts
TypeScript
www.github.com/JayStevency/nestjs-slack-notification/tree/main/src/filters/slack-exception.filter.spec.ts
https://raw.githubusercontent.com/JayStevency/nestjs-slack-notification/e4e49e5/src/filters/slack-exception.filter.spec.ts
JayStevency/nestjs-slack-notification e4e49e5 src/filters/slack-exception.filter.spec.ts
true
200
3,535
import { Test, TestingModule } from '@nestjs/testing'; import { HttpAdapterHost } from '@nestjs/core'; import { HttpException, HttpStatus, INestApplication } from '@nestjs/common'; import { SlackExceptionFilter } from './slalck-exception.filter'; import { SlackService } from '@src/services'; describe('SlackExceptionFi...
3
Koquay/hdepotYT
2ddbced
client/src/app/shared/interceptors/request.interceptor.ts
TypeScript
www.github.com/Koquay/hdepotYT/tree/main/client/src/app/shared/interceptors/request.interceptor.ts
https://raw.githubusercontent.com/Koquay/hdepotYT/2ddbced/client/src/app/shared/interceptors/request.interceptor.ts
Koquay/hdepotYT 2ddbced client/src/app/shared/interceptors/request.interceptor.ts
true
200
540
import { HttpInterceptorFn } from '@angular/common/http'; export const requestInterceptor: HttpInterceptorFn = (req, next) => { const token = getUserToken(); if(token) { const authReq = req.clone({setHeaders:{"Authorization":"Bearer " + token}}); console.log('authReq', authReq) return next(auth...
1
macgregor-thompson/ng-isag
f040676
src/app/players/add-player-dialog/add-player-dialog.component.ts
TypeScript
www.github.com/macgregor-thompson/ng-isag/tree/main/src/app/players/add-player-dialog/add-player-dialog.component.ts
https://raw.githubusercontent.com/macgregor-thompson/ng-isag/f040676/src/app/players/add-player-dialog/add-player-dialog.component.ts
macgregor-thompson/ng-isag f040676 src/app/players/add-player-dialog/add-player-dialog.component.ts
true
200
876
import { Component, OnInit } from '@angular/core'; import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'; import { Player } from '../../_shared/models/player'; import { PlayerService } from '../../_core/services/player.service'; @Component({ selector: 'isag-add-player-dialog', temp...
7
netorossetti/ignite-nodejs-03-api-solid
13c42ad
src/use-cases/fetch-user-check-ins-history.spec.ts
TypeScript
www.github.com/netorossetti/ignite-nodejs-03-api-solid/tree/main/src/use-cases/fetch-user-check-ins-history.spec.ts
https://raw.githubusercontent.com/netorossetti/ignite-nodejs-03-api-solid/13c42ad/src/use-cases/fetch-user-check-ins-history.spec.ts
netorossetti/ignite-nodejs-03-api-solid 13c42ad src/use-cases/fetch-user-check-ins-history.spec.ts
true
200
1,660
import { expect, test, describe, beforeEach, vi, afterEach } from "vitest"; import { InMemoryCheckInsRepository } from "src/repositories/in-memory/in-memory-check-ins-repository"; import { FetchUserCheckInsUseCase } from "./fetch-user-check-ins-history"; let checkInsRepository: InMemoryCheckInsRepository; let sut: Fet...
6
EgorJSbrain/games
bb6124f
src/services/interceptors/interceptors.ts
TypeScript
www.github.com/EgorJSbrain/games/tree/main/src/services/interceptors/interceptors.ts
https://raw.githubusercontent.com/EgorJSbrain/games/bb6124f/src/services/interceptors/interceptors.ts
EgorJSbrain/games bb6124f src/services/interceptors/interceptors.ts
true
200
1,045
import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, } from "axios"; const onRequest = (config: AxiosRequestConfig): AxiosRequestConfig => { config.headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }; return config; }; const onRequestError = (error: ...
2
faboent/testing2
1175e66
src/lib/redux/services/auth.service.ts
TypeScript
www.github.com/faboent/testing2/tree/main/src/lib/redux/services/auth.service.ts
https://raw.githubusercontent.com/faboent/testing2/1175e66/src/lib/redux/services/auth.service.ts
faboent/testing2 1175e66 src/lib/redux/services/auth.service.ts
true
200
2,158
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { baseUrl } from '../baseUrl'; export const authApi = createApi({ reducerPath: 'authApi', baseQuery: fetchBaseQuery({ baseUrl: `${baseUrl}`, }), tagTypes: ['Auth'], endpoints: (builder) => ({ login: builder.mutation({ ...
3
Fllorent0D/pokemon-graphql
3abc877
src/@generated/regions/regions-aggregate.args.ts
TypeScript
www.github.com/Fllorent0D/pokemon-graphql/tree/main/src/@generated/regions/regions-aggregate.args.ts
https://raw.githubusercontent.com/Fllorent0D/pokemon-graphql/3abc877/src/%40generated/regions/regions-aggregate.args.ts
Fllorent0D/pokemon-graphql 3abc877 src/@generated/regions/regions-aggregate.args.ts
true
200
898
import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { regionsWhereInput } from './regions-where.input'; import { Type } from 'class-transformer'; import { regionsOrderByWithRelationInput } from './regions-order-by-with-relation.input'; import { regionsWhereUniqueInput } from './r...
7
JoKeR-VIKING/Chatty
925951f
server/src/interfaces/user.interface.ts
TypeScript
www.github.com/JoKeR-VIKING/Chatty/tree/main/server/src/interfaces/user.interface.ts
https://raw.githubusercontent.com/JoKeR-VIKING/Chatty/925951f/server/src/interfaces/user.interface.ts
JoKeR-VIKING/Chatty 925951f server/src/interfaces/user.interface.ts
true
200
408
import { ObjectId } from 'mongodb'; import { Document } from 'mongoose'; export interface IUserDocument extends Document { _id: string | ObjectId; googleEmail: string; googleName: string; googlePicture: string; } export interface IGoogleUser { id: string; email: string; verified_email: boolean; name: ...
1
akm4545/modern_react
c266433
chapter3/custom_hook_and_higher_order_component.ts
TypeScript
www.github.com/akm4545/modern_react/tree/main/chapter3/custom_hook_and_higher_order_component.ts
https://raw.githubusercontent.com/akm4545/modern_react/c266433/chapter3/custom_hook_and_higher_order_component.ts
akm4545/modern_react c266433 chapter3/custom_hook_and_higher_order_component.ts
true
200
17,894
{ // 리액트에서는 재사용할 수 있는 로직을 관리할 수 있는 두 가지 방법이 있다 // 사용자 훅과 고차 컴포넌트다 } { // 사용자 정의 훅 // 서로 다른 컴포넌트 내부에서 같은 로직을 공유하고자 할 때 주로 사용 // 고차 컴포넌트는 굳이 리액트가 아니더라도 사용할 수 있는 기법 // 사용자 정의 훅은 리액트에서만 사용할 수 있는 방식 // 훅을 기반으로 개발자가 필요한 훅을 만드는 기법 // 사용자 정의 훅의 규칙 중 하나는 이름이 반드시 use로 시작하는 함수를 만들어야 한다 (리액트 훅이라는 것...
6
iotaledger/explorer
342feb6
client/src/services/stardust/stardustFeedClient.ts
TypeScript
www.github.com/iotaledger/explorer/tree/main/client/src/services/stardust/stardustFeedClient.ts
https://raw.githubusercontent.com/iotaledger/explorer/342feb6/client/src/services/stardust/stardustFeedClient.ts
iotaledger/explorer 342feb6 client/src/services/stardust/stardustFeedClient.ts
true
200
13,077
import { BasicOutput, Block, MilestonePayload, OutputType, PayloadType, RegularTransactionEssence, TaggedDataPayload, TransactionPayload, Utils, } from "@iota/sdk-wasm-stardust/web"; import { io, Socket } from "socket.io-client"; import { ServiceFactory } from "~factories/serviceFact...
2
tricsi/triska
781b66a
src/modules/math/math.ts
TypeScript
www.github.com/tricsi/triska/tree/main/src/modules/math/math.ts
https://raw.githubusercontent.com/tricsi/triska/781b66a/src/modules/math/math.ts
tricsi/triska 781b66a src/modules/math/math.ts
true
200
2,026
export const X = 0 export const Y = 1 export const Z = 2 export const W = 3 export const R = 0 export const G = 1 export const B = 2 export const A = 3 export const { abs, ceil, cos, floor, max, min, pow, random, round, sign, sin, sqrt, PI } = Math export function each( out: number[], obj: number[], call...
3
bogdan-panteleev/algorithms
7164ed3
src/functions/trainings-1/excersize-1/taskB.ts
TypeScript
www.github.com/bogdan-panteleev/algorithms/tree/main/src/functions/trainings-1/excersize-1/taskB.ts
https://raw.githubusercontent.com/bogdan-panteleev/algorithms/7164ed3/src/functions/trainings-1/excersize-1/taskB.ts
bogdan-panteleev/algorithms 7164ed3 src/functions/trainings-1/excersize-1/taskB.ts
true
200
3,310
import { partition, swapElements } from './taskA'; import { Logger } from '../warm-up/helpers'; let counter = 0; export function quickSort(arr: bigint[], start = 0, end = arr.length - 1, logger: Logger) { const itemsToHandle = end - start + 1; if (itemsToHandle === 2) { if (arr[start] > arr[end]) { swap...
7
terence410/array-to-google-sheets
ef414cd
src/Spreadsheet.ts
TypeScript
www.github.com/terence410/array-to-google-sheets/tree/main/src/Spreadsheet.ts
https://raw.githubusercontent.com/terence410/array-to-google-sheets/ef414cd/src/Spreadsheet.ts
terence410/array-to-google-sheets ef414cd src/Spreadsheet.ts
true
200
2,904
import {AuthClient} from "google-auth-library/build/src/auth/authclient"; import {Sheet} from "./Sheet"; import {GOOGLE_SPREADSHEETS_URL, ISpreadsheetProperties, IUpdateOptions, IValues} from "./types"; export class Spreadsheet { public spreadsheetId!: string; public spreadsheetUrl!: string; public propert...
1
millenmortier/abn-tvmaze-assignment
d08e366
backend/src/getShowsByRating.ts
TypeScript
www.github.com/millenmortier/abn-tvmaze-assignment/tree/main/backend/src/getShowsByRating.ts
https://raw.githubusercontent.com/millenmortier/abn-tvmaze-assignment/d08e366/backend/src/getShowsByRating.ts
millenmortier/abn-tvmaze-assignment d08e366 backend/src/getShowsByRating.ts
true
200
704
import { readFile } from 'fs/promises'; import { TvShow } from './types'; import { dataLocation } from './config'; let sortedShows: TvShow[] | null = null; const responseLimit = 100; function sortShows(allShows: TvShow[]) { return allShows.sort((show1, show2) => show1.rating.average > show2.rating.average ...
4
gitSergeyhab/moviecon-server
6b974b8
src/services/externalDbServices/testService.ts
TypeScript
www.github.com/gitSergeyhab/moviecon-server/tree/main/src/services/externalDbServices/testService.ts
https://raw.githubusercontent.com/gitSergeyhab/moviecon-server/6b974b8/src/services/externalDbServices/testService.ts
gitSergeyhab/moviecon-server 6b974b8 src/services/externalDbServices/testService.ts
true
200
2,054
import { ITestFromDB, Category, TestDTO } from "../../types/test"; import { TEST_CATEGORIES } from "../../const/test"; import { HttpError } from "../../lib/utils/error"; import { TestModel } from "../../models/test"; import { Level } from "../../types/game"; import { toTestDTO } from "../../lib/utils/test"; export cla...
6
NevinAF/bga-ts-template
5cfe812
typescript/types/dojo/dom-form.d.ts
TypeScript
www.github.com/NevinAF/bga-ts-template/tree/main/typescript/types/dojo/dom-form.d.ts
https://raw.githubusercontent.com/NevinAF/bga-ts-template/5cfe812/typescript/types/dojo/dom-form.d.ts
NevinAF/bga-ts-template 5cfe812 typescript/types/dojo/dom-form.d.ts
true
200
834
declare class DomForm { private static o; /** * Serialize a form field to a JavaScript object. */ fieldToObject(e: HTMLInputElement | string): any[] | string | null; /** * Serialize a form node to a JavaScript object. */ toObject(formOrID: HTMLFormElement | string): Record<string...
2
tunguyen1993/cms-base
0081367
src/common/middleware/frontend.middleware.ts
TypeScript
www.github.com/tunguyen1993/cms-base/tree/main/src/common/middleware/frontend.middleware.ts
https://raw.githubusercontent.com/tunguyen1993/cms-base/0081367/src/common/middleware/frontend.middleware.ts
tunguyen1993/cms-base 0081367 src/common/middleware/frontend.middleware.ts
true
200
1,037
import { Injectable, NestMiddleware } from "@nestjs/common"; const allowedExt = [ ".js", ".ico", ".css", ".png", ".jpg", ".woff2", ".woff", ".ttf", ".svg", ]; export const ROUTE_PREFIX = "api"; const resolvePath = (file: string) => join(__dirname, "/../../../frontend/", file); import { join } from...
3