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
jcrr1985/a-stargazer
a79e5b4
projects/http-error/src/lib/http-error.module.ts
TypeScript
www.github.com/jcrr1985/a-stargazer/tree/main/projects/http-error/src/lib/http-error.module.ts
https://raw.githubusercontent.com/jcrr1985/a-stargazer/a79e5b4/projects/http-error/src/lib/http-error.module.ts
jcrr1985/a-stargazer a79e5b4 projects/http-error/src/lib/http-error.module.ts
true
200
756
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpErrorDialogComponent } from './dialog/http-error-dialog.component'; import { HttpErrorComponent } from './http-error.component'; i...
0
Hediar/NBC-Project
15e7c3c
src/app/(auth)/(route-handler)/auth/delete-account/route.ts
TypeScript
www.github.com/Hediar/NBC-Project/tree/main/src/app/(auth)/(route-handler)/auth/delete-account/route.ts
https://raw.githubusercontent.com/Hediar/NBC-Project/15e7c3c/src/app/%28auth%29/%28route-handler%29/auth/delete-account/route.ts
Hediar/NBC-Project 15e7c3c src/app/(auth)/(route-handler)/auth/delete-account/route.ts
true
200
998
import { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'; import { cookies } from 'next/headers'; import { NextResponse } from 'next/server'; export const POST = async () => { const supabase = createRouteHandlerClient( { cookies }, { supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL!, supabas...
1
gomeliGithub/Homework
628298f
4095/frontend/src/app/completed-request/completed-request.service.ts
TypeScript
www.github.com/gomeliGithub/Homework/tree/main/4095/frontend/src/app/completed-request/completed-request.service.ts
https://raw.githubusercontent.com/gomeliGithub/Homework/628298f/4095/frontend/src/app/completed-request/completed-request.service.ts
gomeliGithub/Homework 628298f 4095/frontend/src/app/completed-request/completed-request.service.ts
true
200
2,110
import { Injectable } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { AppService } from '../app.service'; import { ISavedRequest } from '../@types/global'; @Injectable({ providedIn: 'root' }) export class CompletedRequestService { constructor (private appService: AppService) { } ...
4
dinamyccovid19/dynamic-row
f4eaabf
src/app/view-room/view-room.module.ts
TypeScript
www.github.com/dinamyccovid19/dynamic-row/tree/main/src/app/view-room/view-room.module.ts
https://raw.githubusercontent.com/dinamyccovid19/dynamic-row/f4eaabf/src/app/view-room/view-room.module.ts
dinamyccovid19/dynamic-row f4eaabf src/app/view-room/view-room.module.ts
true
200
607
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { ViewRoomPageRoutingModule } from './view-room-routing.module'; import { ViewRoomPage } from './view-room....
3
jesusvivo/lectura-facil
f0146f1
front/src/app/service/similarity.service.spec.ts
TypeScript
www.github.com/jesusvivo/lectura-facil/tree/main/front/src/app/service/similarity.service.spec.ts
https://raw.githubusercontent.com/jesusvivo/lectura-facil/f0146f1/front/src/app/service/similarity.service.spec.ts
jesusvivo/lectura-facil f0146f1 front/src/app/service/similarity.service.spec.ts
true
200
2,427
import { TestBed } from '@angular/core/testing'; import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { SimilarityService } from './similarity.service'; import { HttpClient } from '@angular/common/http'; import { of } from 'rxjs'; describe('SimilarityService', () =...
2
nafisazizir/peopl-backend
3cbcbab
src/models/messages.ts
TypeScript
www.github.com/nafisazizir/peopl-backend/tree/main/src/models/messages.ts
https://raw.githubusercontent.com/nafisazizir/peopl-backend/3cbcbab/src/models/messages.ts
nafisazizir/peopl-backend 3cbcbab src/models/messages.ts
true
200
677
import mongoose, { Document, Schema } from "mongoose"; interface Message extends Document { sender: Schema.Types.ObjectId; // Reference to the sender user (User Model) recipient: Schema.Types.ObjectId; // Reference to the recipient user (User Model) content: string; createdAt: Date; } const messageSchema = ne...
5
ares8/project-game
2d83dbc
src/app/intro/form/form.component.ts
TypeScript
www.github.com/ares8/project-game/tree/main/src/app/intro/form/form.component.ts
https://raw.githubusercontent.com/ares8/project-game/2d83dbc/src/app/intro/form/form.component.ts
ares8/project-game 2d83dbc src/app/intro/form/form.component.ts
true
200
2,490
import { Component, EventEmitter, Output, inject } from '@angular/core'; import { AbstractControl, FormBuilder, FormControl, FormGroup, ReactiveFormsModule, ValidationErrors, Validators, } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { ButtonsComponent } from '../../button...
7
justmoon/dassie
d5dba31
packages/lib-logger/src/enabled.ts
TypeScript
www.github.com/justmoon/dassie/tree/main/packages/lib-logger/src/enabled.ts
https://raw.githubusercontent.com/justmoon/dassie/d5dba31/packages/lib-logger/src/enabled.ts
justmoon/dassie d5dba31 packages/lib-logger/src/enabled.ts
true
200
1,594
/** * Create a function that will check if a given component is part of a provided scope. * * The scope is a comma-delimited list of patterns. Each pattern must match the entire name of the component. Asterisks (*) can be used to match any number of characters. Patterns are checked in the order given. If the pattern...
0
wormholelabs-xyz/solana-world-id-program
68f1740
app/cleanup.ts
TypeScript
www.github.com/wormholelabs-xyz/solana-world-id-program/tree/main/app/cleanup.ts
https://raw.githubusercontent.com/wormholelabs-xyz/solana-world-id-program/68f1740/app/cleanup.ts
wormholelabs-xyz/solana-world-id-program 68f1740 app/cleanup.ts
true
200
2,157
// NETWORK=testnet WALLET=~/.config/solana/your-key.json npx tsx app/cleanup.ts import { Program } from "@coral-xyz/anchor"; import { BN } from "bn.js"; import { Logger } from "winston"; import { SolanaWorldIdProgram } from "../target/types/solana_world_id_program"; import { deriveConfigKey } from "../tests/helpers/co...
6
SuhovenkoEduard/Sem_8
1d76054
diploma/code/client/src/hooks/useGeneralModalHandlers.ts
TypeScript
www.github.com/SuhovenkoEduard/Sem_8/tree/main/diploma/code/client/src/hooks/useGeneralModalHandlers.ts
https://raw.githubusercontent.com/SuhovenkoEduard/Sem_8/1d76054/diploma/code/client/src/hooks/useGeneralModalHandlers.ts
SuhovenkoEduard/Sem_8 1d76054 diploma/code/client/src/hooks/useGeneralModalHandlers.ts
true
200
593
import { useCallback, useState } from "react"; export const useGeneralModalHandlers = ({ onOpen, onClose, }: { onOpen?: (...args: unknown[]) => void; onClose?: () => void; } = {}) => { const [isModalOpened, setIsModalOpened] = useState(false); const openModal = useCallback( (...args: unknown[]) => { ...
4
ditokapanadze/hospital
76a5e2b
src/schedule/schedule.module.ts
TypeScript
www.github.com/ditokapanadze/hospital/tree/main/src/schedule/schedule.module.ts
https://raw.githubusercontent.com/ditokapanadze/hospital/76a5e2b/src/schedule/schedule.module.ts
ditokapanadze/hospital 76a5e2b src/schedule/schedule.module.ts
true
200
909
import { Module } from "@nestjs/common"; import { ScheduleService } from "./schedule.service"; import { Type } from "class-transformer"; import { TypeOrmModule } from "@nestjs/typeorm"; import { ScheduleEntity } from "./entity/schedule.entity"; import { ScheduleController } from "./schedule.controller"; import { Moment...
5
sse-auth/react-3.x.x
310851b
packages/backend/src/providers/onelogin.ts
TypeScript
www.github.com/sse-auth/react-3.x.x/tree/main/packages/backend/src/providers/onelogin.ts
https://raw.githubusercontent.com/sse-auth/react-3.x.x/310851b/packages/backend/src/providers/onelogin.ts
sse-auth/react-3.x.x 310851b packages/backend/src/providers/onelogin.ts
true
200
393
import type { OAuthConfig, OAuthUserConfig } from "@sse-auth/types/provider"; export default function OneLogin( config: OAuthUserConfig<Record<string, any>> ): OAuthConfig<Record<string, any>> { return { id: "onelogin", name: "OneLogin", type: "oidc", wellKnown: `${config.issuer}/oidc/2/.well-known...
7
ArvindVig23/giverr-mvp
757f77f
src/utils/joiSchema.ts
TypeScript
www.github.com/ArvindVig23/giverr-mvp/tree/main/src/utils/joiSchema.ts
https://raw.githubusercontent.com/ArvindVig23/giverr-mvp/757f77f/src/utils/joiSchema.ts
ArvindVig23/giverr-mvp 757f77f src/utils/joiSchema.ts
true
200
6,582
import Joi from 'joi'; import { min4CharWithoutSpace, websiteLinkRegex } from './regex'; export const schema = Joi.object({ fullName: Joi.string() .trim() .allow('') .pattern(/^[A-Za-z]+(?:\s[A-Za-z]+)*$/) .messages({ 'string.base': 'Only Alphabets are allowed in fullName', 'string.patter...
0
dam824/nanterre-dom-tool
34a0c4a
app/api/clients/update-client/route.ts
TypeScript
www.github.com/dam824/nanterre-dom-tool/tree/main/app/api/clients/update-client/route.ts
https://raw.githubusercontent.com/dam824/nanterre-dom-tool/34a0c4a/app/api/clients/update-client/route.ts
dam824/nanterre-dom-tool 34a0c4a app/api/clients/update-client/route.ts
true
200
584
import { NextRequest, NextResponse } from "next/server"; import { prisma } from '../../../../lib/prisma'; export async function POST(req: NextRequest){ const {id, phone, society , isActive} = await req.json(); try{ const updatedClient = await prisma.client.update({ where : { id }, ...
4
RoenLie/weave
a33a192
apps/morph/server/api/users/demo-data.ts
TypeScript
www.github.com/RoenLie/weave/tree/main/apps/morph/server/api/users/demo-data.ts
https://raw.githubusercontent.com/RoenLie/weave/a33a192/apps/morph/server/api/users/demo-data.ts
RoenLie/weave a33a192 apps/morph/server/api/users/demo-data.ts
true
200
353
import { createResponse } from '@roenlie/morph/server/utilities/create-response.js'; import type { RequestHandler } from 'express'; import { getAllUsers } from 'src/features/user/users-behavior.js'; export const get: RequestHandler[] = [ async (req, res) => { const users = getAllUsers(); res.send(creat...
5
sauravshekharsingh/typescript-tutorial
0b707ad
src/expert/05_infer_keyword.ts
TypeScript
www.github.com/sauravshekharsingh/typescript-tutorial/tree/main/src/expert/05_infer_keyword.ts
https://raw.githubusercontent.com/sauravshekharsingh/typescript-tutorial/0b707ad/src/expert/05_infer_keyword.ts
sauravshekharsingh/typescript-tutorial 0b707ad src/expert/05_infer_keyword.ts
true
200
718
type IsArray<T> = T extends Array<any> ? "array" : "other"; type WithArray = IsArray<string[]>; type WithNotArray = IsArray<number>; type UnboxArray<T> = T extends Array<infer Member> ? Member : T; type UnboxedStringArray = UnboxArray<string[]>; type UnboxedNumberArray = UnboxArray<number[]>; type AnythingElse = Unb...
0
DanielSLucas/SmBusiness
80c362c
cash-book/src/shared/infra/http/view-models/movement-view-model.ts
TypeScript
www.github.com/DanielSLucas/SmBusiness/tree/main/cash-book/src/shared/infra/http/view-models/movement-view-model.ts
https://raw.githubusercontent.com/DanielSLucas/SmBusiness/80c362c/cash-book/src/shared/infra/http/view-models/movement-view-model.ts
DanielSLucas/SmBusiness 80c362c cash-book/src/shared/infra/http/view-models/movement-view-model.ts
true
200
557
import { Movement, MovementType, } from '../../../../modules/movements/entities/movement.entity'; export interface HttpMovement { id: number; date: Date; description: string; amount: number; type: MovementType; tags: string[]; } export class MovementViewModel { static toHTTP(movement: Movement): Htt...
7
Gabrielfrahm/design-patterns
193e4ba
src/behavioral/visitor/brazil-tax.ts
TypeScript
www.github.com/Gabrielfrahm/design-patterns/tree/main/src/behavioral/visitor/brazil-tax.ts
https://raw.githubusercontent.com/Gabrielfrahm/design-patterns/193e4ba/src/behavioral/visitor/brazil-tax.ts
Gabrielfrahm/design-patterns 193e4ba src/behavioral/visitor/brazil-tax.ts
true
200
368
import { Drink } from "./drink"; import { Food } from "./food"; import { VisitorTaxProtocol } from "./visitor-tax-protocol"; export class BrazilTax implements VisitorTaxProtocol { taxesFood(food: Food): number { return food.getPrice() + food.getPrice() * 0.2; } taxesDrink(drink: Drink): number { return d...
4
OmegaMaxy/nextjs-pocket-chat-app
7a4813f
lib/theme.ts
TypeScript
www.github.com/OmegaMaxy/nextjs-pocket-chat-app/tree/main/lib/theme.ts
https://raw.githubusercontent.com/OmegaMaxy/nextjs-pocket-chat-app/7a4813f/lib/theme.ts
OmegaMaxy/nextjs-pocket-chat-app 7a4813f lib/theme.ts
true
200
1,344
import { extendTheme } from '@chakra-ui/react' import { mode } from '@chakra-ui/theme-tools' // https://chakra-ui.com/docs/styled-system/customize-theme#customizing-global-styles const styles = { global: (props: any) => ({ body: { bg: mode('#f0e7db', '#202023')(props) } }) } const c...
5
sudo-JACT/sudo-JACT.github.io
61cf116
src/lib/data/home.ts
TypeScript
www.github.com/sudo-JACT/sudo-JACT.github.io/tree/main/src/lib/data/home.ts
https://raw.githubusercontent.com/sudo-JACT/sudo-JACT.github.io/61cf116/src/lib/data/home.ts
sudo-JACT/sudo-JACT.github.io 61cf116 src/lib/data/home.ts
true
200
953
import { Platform } from '$lib/types'; import { getSkills } from './skills'; export const title = 'Home'; export const name = 'Jacopo Sandro Gino'; export const lastName = 'Toma'; export const description = 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Corrupti, rerum. Debitis accusantium deleniti eni...
0
yvexeldev/kgs-task
14440c3
src/config/database.ts
TypeScript
www.github.com/yvexeldev/kgs-task/tree/main/src/config/database.ts
https://raw.githubusercontent.com/yvexeldev/kgs-task/14440c3/src/config/database.ts
yvexeldev/kgs-task 14440c3 src/config/database.ts
true
200
595
import { Client } from "pg"; import { getEnv } from "./env"; const client = new Client({ user: getEnv("PG_USER"), host: getEnv("PG_HOST"), database: getEnv("PG_DB"), password: getEnv("PG_PASSWORD"), port: 5432, }); export async function initDb() { await client.connect(); console.log("Datab...
7
GreenSpace-Connect/frontend
a005b1f
src/modules/master-data/regions/provinces/hooks/useForm.ts
TypeScript
www.github.com/GreenSpace-Connect/frontend/tree/main/src/modules/master-data/regions/provinces/hooks/useForm.ts
https://raw.githubusercontent.com/GreenSpace-Connect/frontend/a005b1f/src/modules/master-data/regions/provinces/hooks/useForm.ts
GreenSpace-Connect/frontend a005b1f src/modules/master-data/regions/provinces/hooks/useForm.ts
true
200
1,968
import { TExpectQueryResult } from '@/utils/entities/hook'; import { TProvincePaginateResponse, TProvinceResponse, } from '../entities/response'; import { Form } from 'antd'; import { TProvincePayload } from '../entities/request'; import { useCreateProvince, useDeleteProvince, useUpdateProvince, } from './use...
4
andriikoi/crash-course
3b4ff1a
app/db/entities/associations.ts
TypeScript
www.github.com/andriikoi/crash-course/tree/main/app/db/entities/associations.ts
https://raw.githubusercontent.com/andriikoi/crash-course/3b4ff1a/app/db/entities/associations.ts
andriikoi/crash-course 3b4ff1a app/db/entities/associations.ts
true
200
1,384
import { ModelStatic } from 'sequelize'; const defineAssociations = (entities: Record<string, ModelStatic<any>>): void => { const { File, Like, Post, Role, Tag, User } = entities; File.belongsToMany(Post, { through: "post_file", as: "posts", ...
5
calisirmori/wrapped.tf
f934ace
backend/src/utils/playerManager.ts
TypeScript
www.github.com/calisirmori/wrapped.tf/tree/main/backend/src/utils/playerManager.ts
https://raw.githubusercontent.com/calisirmori/wrapped.tf/f934ace/backend/src/utils/playerManager.ts
calisirmori/wrapped.tf f934ace backend/src/utils/playerManager.ts
true
200
5,129
export interface PlayerStats { // Damage statistics damageDealt: number; // Total damage dealt by the player damageToPlayers: Record<string, number>; // Damage dealt to specific players by SteamID64 damageByWeapon: Record<string, number>; // Damage dealt by specific weapons damagedByPlayers: Record...
7
kavsingh/electron-mono
865d24e
apps/app/src/main/services/system-stats.test.ts
TypeScript
www.github.com/kavsingh/electron-mono/tree/main/apps/app/src/main/services/system-stats.test.ts
https://raw.githubusercontent.com/kavsingh/electron-mono/865d24e/apps/app/src/main/services/system-stats.test.ts
kavsingh/electron-mono 865d24e apps/app/src/main/services/system-stats.test.ts
true
200
670
import * as systeminformation from "systeminformation"; import { describe, it, expect, vi } from "vitest"; import { getSystemStats } from "./system-stats"; vi.mock("systeminformation"); describe("system-stats", () => { describe("getSystemStats", () => { it("should provide system stats", async () => { expect.as...
0
andreatarozzo/github-webhook-command-handler
19c40ba
src/utils/optic.ts
TypeScript
www.github.com/andreatarozzo/github-webhook-command-handler/tree/main/src/utils/optic.ts
https://raw.githubusercontent.com/andreatarozzo/github-webhook-command-handler/19c40ba/src/utils/optic.ts
andreatarozzo/github-webhook-command-handler 19c40ba src/utils/optic.ts
true
200
1,272
import { logger } from './logger'; import { spawnAsyncProcess } from './spawnProcess'; import { join } from 'node:path'; import { BreakingChangesError } from './errors/breakingChangesError'; export const opticBreakingChangesCheck = async (params: { baseFile: string; targetFile: string; workDirectory: string; }):...
4
maomao1996/tampermonkey-scripts
94d68ad
packages/remove-redirect/e2e/sites/yuque.com.spec.ts
TypeScript
www.github.com/maomao1996/tampermonkey-scripts/tree/main/packages/remove-redirect/e2e/sites/yuque.com.spec.ts
https://raw.githubusercontent.com/maomao1996/tampermonkey-scripts/94d68ad/packages/remove-redirect/e2e/sites/yuque.com.spec.ts
maomao1996/tampermonkey-scripts 94d68ad packages/remove-redirect/e2e/sites/yuque.com.spec.ts
true
200
311
import { test } from '@playwright/test' import { testRedirectRemoval } from '../utils/common' test('语雀链接重定向移除', async ({ page, context }) => { await testRedirectRemoval( page, context, 'https://www.yuque.com/r/goto?url=https%3A%2F%2Ffe-mm.com', 'https://fe-mm.com/', ) })
5
kuaishou/vue3-ele-h5-xing
ae3a0b1
src/utils/scroll/scroller/Behavior.ts
TypeScript
www.github.com/kuaishou/vue3-ele-h5-xing/tree/main/src/utils/scroll/scroller/Behavior.ts
https://raw.githubusercontent.com/kuaishou/vue3-ele-h5-xing/ae3a0b1/src/utils/scroll/scroller/Behavior.ts
kuaishou/vue3-ele-h5-xing ae3a0b1 src/utils/scroll/scroller/Behavior.ts
true
200
4,564
import type { BehaviorOptions } from '../Options' import { getRect } from '../shared-utils/dom' export default class Behavior { wrapperSize!: number contentSize!: number content!: HTMLElement currentPos!: number startPos!: number minScrollPos!: number maxScrollPos!: number hasScroll!: boolean construc...
7
brti-dev/ai-assistant
27a44fc
src/app/api/chat/route.ts
TypeScript
www.github.com/brti-dev/ai-assistant/tree/main/src/app/api/chat/route.ts
https://raw.githubusercontent.com/brti-dev/ai-assistant/27a44fc/src/app/api/chat/route.ts
brti-dev/ai-assistant 27a44fc src/app/api/chat/route.ts
true
200
7,213
import OpenAI from 'openai' import { OpenAIStream, StreamingTextResponse } from 'ai' export const runtime = 'edge' const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY__!, }) const systemContent = `You are an instructor of strategic planning. You will design a course of learning for your student, includi...
4
dimlil/SoftUni-Angular-Examp
0fbf83f
src/app/services/load-posts-for-profile.service.spec.ts
TypeScript
www.github.com/dimlil/SoftUni-Angular-Examp/tree/main/src/app/services/load-posts-for-profile.service.spec.ts
https://raw.githubusercontent.com/dimlil/SoftUni-Angular-Examp/0fbf83f/src/app/services/load-posts-for-profile.service.spec.ts
dimlil/SoftUni-Angular-Examp 0fbf83f src/app/services/load-posts-for-profile.service.spec.ts
true
200
425
import { TestBed } from '@angular/core/testing'; import { LoadPostsForProfileService } from './load-posts-for-profile.service'; describe('LoadPostsForProfileService', () => { let service: LoadPostsForProfileService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(LoadPosts...
0
Comcast/Porrtal
03607b0
libs/porrtal-proxy/a-my-project2/src/lib/model/porrtalRoleCreatedByDataAttributesRolesDataInner.ts
TypeScript
www.github.com/Comcast/Porrtal/tree/main/libs/porrtal-proxy/a-my-project2/src/lib/model/porrtalRoleCreatedByDataAttributesRolesDataInner.ts
https://raw.githubusercontent.com/Comcast/Porrtal/03607b0/libs/porrtal-proxy/a-my-project2/src/lib/model/porrtalRoleCreatedByDataAttributesRolesDataInner.ts
Comcast/Porrtal 03607b0 libs/porrtal-proxy/a-my-project2/src/lib/model/porrtalRoleCreatedByDataAttributesRolesDataInner.ts
true
200
1,288
/* Copyright 2024 Comcast Cable Communications Management, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
5
alibabaeefml/befarman-vue3
fcaa4ef
src/store/car.ts
TypeScript
www.github.com/alibabaeefml/befarman-vue3/tree/main/src/store/car.ts
https://raw.githubusercontent.com/alibabaeefml/befarman-vue3/fcaa4ef/src/store/car.ts
alibabaeefml/befarman-vue3 fcaa4ef src/store/car.ts
true
200
461
import { defineStore } from "pinia"; import { ref, computed } from "vue"; import type { Car } from "@/types/car"; import { defaultPaginate, type Paginate } from "@/types/paginate"; export const useCarStore = defineStore("car", () => { const cars = ref<Car[]>([]); const filteredCars = ref<Car[]>([]); const getCar...
7
trinifaccini/relevaminetoApp
bb3354f
src/app/components/subida-imagenes/subida-imagenes.component.ts
TypeScript
www.github.com/trinifaccini/relevaminetoApp/tree/main/src/app/components/subida-imagenes/subida-imagenes.component.ts
https://raw.githubusercontent.com/trinifaccini/relevaminetoApp/bb3354f/src/app/components/subida-imagenes/subida-imagenes.component.ts
trinifaccini/relevaminetoApp bb3354f src/app/components/subida-imagenes/subida-imagenes.component.ts
true
200
6,766
import { Component, inject, OnDestroy } from '@angular/core'; import { getStorage, ref, uploadBytesResumable, getDownloadURL } from 'firebase/storage'; import { Firestore, collection, addDoc, doc, getDoc } from '@angular/fire/firestore'; import { Auth } from '@angular/fire/auth'; import { Camera, CameraDirection, Came...
4
levima05/Streaming-szolg-ltat-s---zenesz-mok
7523636
src/songs/songs.service.ts
TypeScript
www.github.com/levima05/Streaming-szolg-ltat-s---zenesz-mok/tree/main/src/songs/songs.service.ts
https://raw.githubusercontent.com/levima05/Streaming-szolg-ltat-s---zenesz-mok/7523636/src/songs/songs.service.ts
levima05/Streaming-szolg-ltat-s---zenesz-mok 7523636 src/songs/songs.service.ts
true
200
1,694
import { Injectable } from '@nestjs/common'; import { CreateSongDto } from './dto/create-song.dto'; import { UpdateSongDto } from './dto/update-song.dto'; import { PrismaService } from 'src/prisma.service'; @Injectable() export class SongsService { db: PrismaService; constructor(db: PrismaService) { this.db =...
0
quanganh2k/extra-learning
73511b5
src/lesson/lesson.module.ts
TypeScript
www.github.com/quanganh2k/extra-learning/tree/main/src/lesson/lesson.module.ts
https://raw.githubusercontent.com/quanganh2k/extra-learning/73511b5/src/lesson/lesson.module.ts
quanganh2k/extra-learning 73511b5 src/lesson/lesson.module.ts
true
200
477
import { Module } from '@nestjs/common'; import { LessonService } from './lesson.service'; import { LessonController } from './lesson.controller'; import { GlobalService } from 'src/global/global.service'; import { SubjectService } from 'src/subject/subject.service'; import { GradeService } from 'src/grade/grade.servic...
5
Loc-poem/trading-platform
a1c78e4
src/database/migrations/1682071110919-create-fiat-currency-and-payment-type-table.ts
TypeScript
www.github.com/Loc-poem/trading-platform/tree/main/src/database/migrations/1682071110919-create-fiat-currency-and-payment-type-table.ts
https://raw.githubusercontent.com/Loc-poem/trading-platform/a1c78e4/src/database/migrations/1682071110919-create-fiat-currency-and-payment-type-table.ts
Loc-poem/trading-platform a1c78e4 src/database/migrations/1682071110919-create-fiat-currency-and-payment-type-table.ts
true
200
851
import {MigrationInterface, QueryRunner} from "typeorm"; export class createFiatCurrencyAndPaymentTypeTable1682071110919 implements MigrationInterface { name = 'createFiatCurrencyAndPaymentTypeTable1682071110919' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(`CREATE TABLE ...
4
dabigjoe6/synthesis
2295d4b
src/workers/email/welcomeEmailPublisher.ts
TypeScript
www.github.com/dabigjoe6/synthesis/tree/main/src/workers/email/welcomeEmailPublisher.ts
https://raw.githubusercontent.com/dabigjoe6/synthesis/2295d4b/src/workers/email/welcomeEmailPublisher.ts
dabigjoe6/synthesis 2295d4b src/workers/email/welcomeEmailPublisher.ts
true
200
819
/** * Publishes message to AWS SQS to send welcome email to users **/ import dotenv from "dotenv"; import { SendMessageCommand, SQSClient } from '@aws-sdk/client-sqs' import { QUEUE } from "../../utils/constants.js"; dotenv.config({ path: "../../../.env" }); const welcomeEmailPublisher = async (email: string) => ...
0
Minouccc/-
3661f05
01_栈结构Stack/02_十进制转二进制.ts
TypeScript
www.github.com/Minouccc/-/tree/main/01_栈结构Stack/02_十进制转二进制.ts
https://raw.githubusercontent.com/Minouccc/-/3661f05/01_%E6%A0%88%E7%BB%93%E6%9E%84Stack/02_%E5%8D%81%E8%BF%9B%E5%88%B6%E8%BD%AC%E4%BA%8C%E8%BF%9B%E5%88%B6.ts
Minouccc/- 3661f05 01_栈结构Stack/02_十进制转二进制.ts
true
200
400
import AarryStack from './ArrayStack' function decimalToBinary(decNumber: number) { const stack = new AarryStack<number>() while(decNumber > 0) { stack.push(decNumber % 2) decNumber = Math.floor(decNumber / 2) } let binaryString = '' while(!stack.isEmpty()) { binaryString +=...
5
Voluk66/Angular-first-lesson-openClassroom
5c7de0f
src/app/app.module.ts
TypeScript
www.github.com/Voluk66/Angular-first-lesson-openClassroom/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Voluk66/Angular-first-lesson-openClassroom/5c7de0f/src/app/app.module.ts
Voluk66/Angular-first-lesson-openClassroom 5c7de0f src/app/app.module.ts
true
200
1,120
import { NgModule, LOCALE_ID } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { registerLocaleData } from '@angular/common' import * as fr from '@angular/common/locales/fr' import { AppComponent } from './app.component'; import { FaceSnapComponent } from './face-snap/face-snap....
7
Kronomio/ProyectoFinal_CristianLopez
ae60b41
ProyectoFinal_CristianLopez/Front-End/src/app/app-routing.module.ts
TypeScript
www.github.com/Kronomio/ProyectoFinal_CristianLopez/tree/main/ProyectoFinal_CristianLopez/Front-End/src/app/app-routing.module.ts
https://raw.githubusercontent.com/Kronomio/ProyectoFinal_CristianLopez/ae60b41/ProyectoFinal_CristianLopez/Front-End/src/app/app-routing.module.ts
Kronomio/ProyectoFinal_CristianLopez ae60b41 ProyectoFinal_CristianLopez/Front-End/src/app/app-routing.module.ts
true
200
763
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './componentes/home/home.component'; import { LoginComponent } from './componentes/login/login.component'; import { UsuariosComponent } from './componentes/usuarios/usuarios.component'; impor...
4
e621-top/e621-top.github.io
1dfe31c
nuxt.config.ts
TypeScript
www.github.com/e621-top/e621-top.github.io/tree/main/nuxt.config.ts
https://raw.githubusercontent.com/e621-top/e621-top.github.io/1dfe31c/nuxt.config.ts
e621-top/e621-top.github.io 1dfe31c nuxt.config.ts
true
200
602
import { execSync } from "child_process"; const exec = (command: string) => execSync(command).toString().trim(); const branch = exec("git branch --show-current") || process.env.HEAD; const hash = exec("git rev-parse HEAD") || process.env.COMMIT_REF; const date = new Date().toISOString(); export default defineNuxtConf...
0
AdauryN/filmes-validation
8a6bfdc
CineMeet/src/app/modules/user/services/friend.service.ts
TypeScript
www.github.com/AdauryN/filmes-validation/tree/main/CineMeet/src/app/modules/user/services/friend.service.ts
https://raw.githubusercontent.com/AdauryN/filmes-validation/8a6bfdc/CineMeet/src/app/modules/user/services/friend.service.ts
AdauryN/filmes-validation 8a6bfdc CineMeet/src/app/modules/user/services/friend.service.ts
true
200
1,282
import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; const BASIC_URL = "http://localhost:8080/"; @Injectable({ providedIn: 'root' }) export class FriendService { constructor(private http: HttpClient) { } send...
5
snehaljha/Score_ionic
7e0cd7d
src/app/explore/top-teams/top-teams.component.ts
TypeScript
www.github.com/snehaljha/Score_ionic/tree/main/src/app/explore/top-teams/top-teams.component.ts
https://raw.githubusercontent.com/snehaljha/Score_ionic/7e0cd7d/src/app/explore/top-teams/top-teams.component.ts
snehaljha/Score_ionic 7e0cd7d src/app/explore/top-teams/top-teams.component.ts
true
200
1,143
import { FavouriteService } from './../../services/favourite.service'; import { Router } from '@angular/router'; import { SharedTeamService } from './../../shared/shared-team.service'; import { Component, OnInit } from '@angular/core'; import { Team } from 'src/app/models/team'; import { TopTeamsService } from 'src/app...
7
chrisloisel2/FormationJavaScript
61239b4
Typescript/index.ts
TypeScript
www.github.com/chrisloisel2/FormationJavaScript/tree/main/Typescript/index.ts
https://raw.githubusercontent.com/chrisloisel2/FormationJavaScript/61239b4/Typescript/index.ts
chrisloisel2/FormationJavaScript 61239b4 Typescript/index.ts
true
200
1,539
// Quand une variable n'esst pas definie, elle est considéré comme undefined //let nom: string = "4"; // ! je veux faire taire l'erreur, la valeur SERA passer a l'execution // ? la variable peut etre nullable // Initialisation de tableau let tabnumber: number[] = [1, 2, 3, 4]; let tabstring: string[] = ["1", "2", "3"...
3
UrielCh/react-icons-tfi
d081dbe
ico/TfiLayoutMenuV.ts
TypeScript
www.github.com/UrielCh/react-icons-tfi/tree/main/ico/TfiLayoutMenuV.ts
https://raw.githubusercontent.com/UrielCh/react-icons-tfi/d081dbe/ico/TfiLayoutMenuV.ts
UrielCh/react-icons-tfi d081dbe ico/TfiLayoutMenuV.ts
true
200
559
import { GenIcon } from "../deps.ts"; import type { IconBaseProps, JSX, VNode } from "../deps.ts"; /** * LayoutMenuV icon from Themify Icons * @module */ export function TfiLayoutMenuV(props: IconBaseProps): VNode<JSX.SVGAttributes> { return GenIcon({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:...
2
lucasferbap/GoBarber-Backend
c3f1b46
src/modules/users/infra/http/controllers/SessionsController.ts
TypeScript
www.github.com/lucasferbap/GoBarber-Backend/tree/main/src/modules/users/infra/http/controllers/SessionsController.ts
https://raw.githubusercontent.com/lucasferbap/GoBarber-Backend/c3f1b46/src/modules/users/infra/http/controllers/SessionsController.ts
lucasferbap/GoBarber-Backend c3f1b46 src/modules/users/infra/http/controllers/SessionsController.ts
true
200
682
import { Response, Request } from 'express'; import { container } from 'tsyringe'; import { classToClass } from 'class-transformer'; import AuthenticateUserService from '../../../services/AthenticateUserService'; export default class SessionsController { public async create( request: Request, respo...
4
alexgrimes/grym-synth
825b47d
src/lib/pattern-library/pattern-library.ts
TypeScript
www.github.com/alexgrimes/grym-synth/tree/main/src/lib/pattern-library/pattern-library.ts
https://raw.githubusercontent.com/alexgrimes/grym-synth/825b47d/src/lib/pattern-library/pattern-library.ts
alexgrimes/grym-synth 825b47d src/lib/pattern-library/pattern-library.ts
true
200
8,660
import sqlite3 from 'sqlite3'; import { open, Database } from 'sqlite'; export interface Pattern { id: string; name: string; description?: string; category: string; tags: string[]; createdAt: number; modifiedAt: number; starred: boolean; usageCount: number; parameters: Record<string, number>; ana...
1
GumSurf/backend-gc
d3176b5
src/blog/blog.controller.ts
TypeScript
www.github.com/GumSurf/backend-gc/tree/main/src/blog/blog.controller.ts
https://raw.githubusercontent.com/GumSurf/backend-gc/d3176b5/src/blog/blog.controller.ts
GumSurf/backend-gc d3176b5 src/blog/blog.controller.ts
true
200
681
import { Controller, Query, Get } from '@nestjs/common'; import { BlogService } from './blog.service'; import { Blog } from './blog.interface'; import { BaseController } from '../common/controller/base.controller'; @Controller('api/blogs') export class BlogController extends BaseController<Blog> { constructor(privat...
0
perusworld/finicity-ts-wrapper
34c727c
src/generated/models/BaseReportAck.ts
TypeScript
www.github.com/perusworld/finicity-ts-wrapper/tree/main/src/generated/models/BaseReportAck.ts
https://raw.githubusercontent.com/perusworld/finicity-ts-wrapper/34c727c/src/generated/models/BaseReportAck.ts
perusworld/finicity-ts-wrapper 34c727c src/generated/models/BaseReportAck.ts
true
200
5,755
/* tslint:disable */ /* eslint-disable */ /** * Open Banking * OpenAPI specification for Finicity APIs. Open Banking solutions in the US are provided by Finicity, a Mastercard company. * * The version of the OpenAPI document: 1.13.9 * Contact: apisupport@mastercard.com * * NOTE: This class is auto generated by ...
6
paulotss/ninive-front
3593f2c
src/services/bookService.ts
TypeScript
www.github.com/paulotss/ninive-front/tree/main/src/services/bookService.ts
https://raw.githubusercontent.com/paulotss/ninive-front/3593f2c/src/services/bookService.ts
paulotss/ninive-front 3593f2c src/services/bookService.ts
true
200
1,737
import ApiService from "./ApiService" import { IBranch } from "./branchService"; import { IExpense } from "./expenseService"; import { IIncoming } from "./incomingService"; import { IPublisher } from "./publisherService"; import { IStore } from "./storeService"; export interface IBook { id: number; title: stri...
7
baoyadong/pf-web-monitor
6c6d7f5
src/handleEvents.ts
TypeScript
www.github.com/baoyadong/pf-web-monitor/tree/main/src/handleEvents.ts
https://raw.githubusercontent.com/baoyadong/pf-web-monitor/6c6d7f5/src/handleEvents.ts
baoyadong/pf-web-monitor 6c6d7f5 src/handleEvents.ts
true
200
7,773
import * as ErrorStackParser from 'error-stack-parser'; import { record } from 'rrweb'; import { EVENTTYPES, HTTP_CODE, STATUS_CODE } from './common'; import { transportData, breadcrumb, resourceTransform, httpTransform, options } from './core'; import { getTimestamp, parseUrlToObj, unknownToString, getResource...
5
sabrinothman6495/Wave-Lab
753b7b0
server/src/models/createUser.ts
TypeScript
www.github.com/sabrinothman6495/Wave-Lab/tree/main/server/src/models/createUser.ts
https://raw.githubusercontent.com/sabrinothman6495/Wave-Lab/753b7b0/server/src/models/createUser.ts
sabrinothman6495/Wave-Lab 753b7b0 server/src/models/createUser.ts
true
200
406
import User from './user.js'; const createUser = async () => { try { const user = new User({ firstName: 'John', lastName: 'Doe', email: 'user@example.com', password: 'securepassword123', }); const savedUser = await user.save(); console.log('User created:', savedUser); } ca...
3
ahmedkadic16/SeminarskiUI
d3ba2fa
src/app/components/login/login.component.ts
TypeScript
www.github.com/ahmedkadic16/SeminarskiUI/tree/main/src/app/components/login/login.component.ts
https://raw.githubusercontent.com/ahmedkadic16/SeminarskiUI/d3ba2fa/src/app/components/login/login.component.ts
ahmedkadic16/SeminarskiUI d3ba2fa src/app/components/login/login.component.ts
true
200
2,281
import { Component, OnInit } from '@angular/core'; import {UntypedFormBuilder, FormControl, UntypedFormGroup, Validators} from "@angular/forms"; import ValidateForm from "../../helpers/validateforms"; import {AuthService} from "../../services/auth.service"; import {Router} from "@angular/router"; import {NavbarService}...
1
grupo13-t13-felipe/projeto-fullstack
c20cecc
server/src/modules/comments/guards/comment-exists.guard.ts
TypeScript
www.github.com/grupo13-t13-felipe/projeto-fullstack/tree/main/server/src/modules/comments/guards/comment-exists.guard.ts
https://raw.githubusercontent.com/grupo13-t13-felipe/projeto-fullstack/c20cecc/server/src/modules/comments/guards/comment-exists.guard.ts
grupo13-t13-felipe/projeto-fullstack c20cecc server/src/modules/comments/guards/comment-exists.guard.ts
true
200
689
import { CanActivate, ExecutionContext, HttpException, Injectable, } from '@nestjs/common'; import { Observable } from 'rxjs'; import { PrismaService } from 'src/database/prisma.service'; @Injectable() export class CommentExistsGuard implements CanActivate { constructor(private prisma: PrismaService) {} as...
2
Giannito975/CheborrApp
c216824
src/app/components/register/register.component.ts
TypeScript
www.github.com/Giannito975/CheborrApp/tree/main/src/app/components/register/register.component.ts
https://raw.githubusercontent.com/Giannito975/CheborrApp/c216824/src/app/components/register/register.component.ts
Giannito975/CheborrApp c216824 src/app/components/register/register.component.ts
true
200
681
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { User } from 'src/app/services/models'; import { UsersApiService } from 'src/app/services/users-api.service'; @Component({ selector: 'app-register', templateUrl: './register.component.html', styleUrls: ['./register.compo...
0
sayanasay/middle.messenger.praktikum.yandex
9742950
src/utils/merge.ts
TypeScript
www.github.com/sayanasay/middle.messenger.praktikum.yandex/tree/main/src/utils/merge.ts
https://raw.githubusercontent.com/sayanasay/middle.messenger.praktikum.yandex/9742950/src/utils/merge.ts
sayanasay/middle.messenger.praktikum.yandex 9742950 src/utils/merge.ts
true
200
583
// eslint-disable-next-line @typescript-eslint/no-explicit-any export type Indexed<T = any> = { [key in string]: T; }; const merge = (lhs: Indexed, rhs: Indexed): Indexed => { for (const p in rhs) { if (!Object.prototype.hasOwnProperty.call(rhs, p)) { continue; } try { if...
7
ulugbek7777/avto_ehtiyot_qismlari
c20af5b
src/product/product.controller.ts
TypeScript
www.github.com/ulugbek7777/avto_ehtiyot_qismlari/tree/main/src/product/product.controller.ts
https://raw.githubusercontent.com/ulugbek7777/avto_ehtiyot_qismlari/c20af5b/src/product/product.controller.ts
ulugbek7777/avto_ehtiyot_qismlari c20af5b src/product/product.controller.ts
true
200
5,294
import { Controller, Get, Post, Body, Patch, Param, Delete, Query, HttpException, HttpStatus, UseGuards, } from '@nestjs/common'; import { ProductService } from './product.service'; import { CreateItemDto, CreateProductDto } from './dto/create-product.dto'; import { UpdateProductDto } from './dto/...
6
ullltimate/reviewer
01edb75
client/src/api/cloudinary.ts
TypeScript
www.github.com/ullltimate/reviewer/tree/main/client/src/api/cloudinary.ts
https://raw.githubusercontent.com/ullltimate/reviewer/01edb75/client/src/api/cloudinary.ts
ullltimate/reviewer 01edb75 client/src/api/cloudinary.ts
true
200
326
import axios from "axios" export const addImage = async (data: any, cloudName: string, setUrlImage: any) => { try { const response = await axios.post(`https://api.cloudinary.com/v1_1/${cloudName}/image/upload`, data); setUrlImage(response.data.url); } catch (error) { console.log(error) ...
4
rmc8/svelte-blog-scriptone
0d7769b
src/routes/(app)/tag/[t]/[p]/+page.server.ts
TypeScript
www.github.com/rmc8/svelte-blog-scriptone/tree/main/src/routes/(app)/tag/[t]/[p]/+page.server.ts
https://raw.githubusercontent.com/rmc8/svelte-blog-scriptone/0d7769b/src/routes/%28app%29/tag/%5Bt%5D/%5Bp%5D/%2Bpage.server.ts
rmc8/svelte-blog-scriptone 0d7769b src/routes/(app)/tag/[t]/[p]/+page.server.ts
true
200
749
import { fetchAllBlogs, getBlogsByTag } from '$lib/microcms/blogStore'; import type { PageServerLoad } from './$types'; const ITEMS_PER_PAGE = 6; export const load: PageServerLoad = async ({ params }) => { const tag = params.t; const page = parseInt(params.p, 10) || 1; const offset = (page - 1) * ITEMS_PER_PAGE; ...
5
Preshiousy1/Task-Management-System
637d9de
src/guards/otp.guard.ts
TypeScript
www.github.com/Preshiousy1/Task-Management-System/tree/main/src/guards/otp.guard.ts
https://raw.githubusercontent.com/Preshiousy1/Task-Management-System/637d9de/src/guards/otp.guard.ts
Preshiousy1/Task-Management-System 637d9de src/guards/otp.guard.ts
true
200
349
import type { CanActivate, ExecutionContext } from '@nestjs/common'; import { Injectable } from '@nestjs/common'; @Injectable() export class OtpGuard implements CanActivate { canActivate(context: ExecutionContext): boolean { const request = context.switchToHttp().getRequest(); const user = request.user; ...
3
mustafaa-dev/cashcloud
b133f88
src/modules/media/media.module.ts
TypeScript
www.github.com/mustafaa-dev/cashcloud/tree/main/src/modules/media/media.module.ts
https://raw.githubusercontent.com/mustafaa-dev/cashcloud/b133f88/src/modules/media/media.module.ts
mustafaa-dev/cashcloud b133f88 src/modules/media/media.module.ts
true
200
683
import { Module } from '@nestjs/common'; import { MediaController } from './media.controller'; import { MediaService } from './media.service'; import { DatabaseModule } from '@app/common'; import { MulterModule } from '@nestjs/platform-express'; import { memoryStorage } from 'multer'; import { PictureRepository } from ...
0
tastyForReal/website
196b227
src/modules/contents.ts
TypeScript
www.github.com/tastyForReal/website/tree/main/src/modules/contents.ts
https://raw.githubusercontent.com/tastyForReal/website/196b227/src/modules/contents.ts
tastyForReal/website 196b227 src/modules/contents.ts
true
200
8,348
export const intro = `# tastyForReal Welcome to tastyForReal's website! Here you'll find some of my latest piano cover videos, along with free sheet music and MIDI files that you can download and use for your own enjoyment. If you have any questions or would like to commission a piano transcription, please visit the ...
2
xianminx/ai-chinese-chess
d0afbc0
src/lib/ucci.ts
TypeScript
www.github.com/xianminx/ai-chinese-chess/tree/main/src/lib/ucci.ts
https://raw.githubusercontent.com/xianminx/ai-chinese-chess/d0afbc0/src/lib/ucci.ts
xianminx/ai-chinese-chess d0afbc0 src/lib/ucci.ts
true
200
1,483
import { Position } from "./engine/types"; // Define the file type for Chinese Chess (Xiangqi) type File = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i"; // Define the rank type for Chinese Chess (Xiangqi) type Rank = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10"; // Define the UCI move type for C...
1
AJamesPhillips/conversation-helper
26f30f4
src/state/store.ts
TypeScript
www.github.com/AJamesPhillips/conversation-helper/tree/main/src/state/store.ts
https://raw.githubusercontent.com/AJamesPhillips/conversation-helper/26f30f4/src/state/store.ts
AJamesPhillips/conversation-helper 26f30f4 src/state/store.ts
true
200
783
import { configureStore } from "@reduxjs/toolkit" import activity_log_reducer from "./activity_log" import config_reducer from "./config" import people_reducer from "./people" import view_reducer from "./view" export const store = configureStore({ middleware: getDefaultMiddleware => getDefaultMiddleware( { ...
7
jpcuve/demo-express
e88357f
src/middlewares/permission.ts
TypeScript
www.github.com/jpcuve/demo-express/tree/main/src/middlewares/permission.ts
https://raw.githubusercontent.com/jpcuve/demo-express/e88357f/src/middlewares/permission.ts
jpcuve/demo-express e88357f src/middlewares/permission.ts
true
200
449
import { Request, Response, NextFunction } from "express" import { AuthenticationRequest } from "." const permit = (roles: string[]) => (req: Request, res: Response, next: NextFunction) => { const authReq = req as AuthenticationRequest if (authReq.user && roles.includes(authReq.user.role)){ console.log(`User $...
6
BlodzLightyear/Workout-Wizard
88681e0
src/app/services/gestor-datos.service.ts
TypeScript
www.github.com/BlodzLightyear/Workout-Wizard/tree/main/src/app/services/gestor-datos.service.ts
https://raw.githubusercontent.com/BlodzLightyear/Workout-Wizard/88681e0/src/app/services/gestor-datos.service.ts
BlodzLightyear/Workout-Wizard 88681e0 src/app/services/gestor-datos.service.ts
true
200
383
import { Injectable } from '@angular/core'; import { Dieta } from '../models/dieta'; import { DIETASEXAMPLE } from '../models/dietas.db'; @Injectable({ providedIn: 'root' }) export class GestorDatosService { dietas: Dieta[]; ejemplosDietas: Dieta[] = DIETASEXAMPLE; constructor() { this.dietas = this.eje...
4
lancelotcodes/apollo-portal
44e1b18
src/constant/UnitStatusType.ts
TypeScript
www.github.com/lancelotcodes/apollo-portal/tree/main/src/constant/UnitStatusType.ts
https://raw.githubusercontent.com/lancelotcodes/apollo-portal/44e1b18/src/constant/UnitStatusType.ts
lancelotcodes/apollo-portal 44e1b18 src/constant/UnitStatusType.ts
true
200
343
import { tagTypes } from '@/components/core/Tag/types-tag'; export class UnitStatusType { static vacant: tagTypes = 'Vacant'; static tenanted: tagTypes = 'Tenanted'; static subtenanted: tagTypes = 'SubTenanted'; static notverified: tagTypes = 'NotVerified'; } export class UnitStatusID { static vacant = 1; ...
5
mapofzones/map-of-zones-web
877fbfc
src/hooks/analytics/Multipage/useShareLinksAnalytics.ts
TypeScript
www.github.com/mapofzones/map-of-zones-web/tree/main/src/hooks/analytics/Multipage/useShareLinksAnalytics.ts
https://raw.githubusercontent.com/mapofzones/map-of-zones-web/877fbfc/src/hooks/analytics/Multipage/useShareLinksAnalytics.ts
mapofzones/map-of-zones-web 877fbfc src/hooks/analytics/Multipage/useShareLinksAnalytics.ts
true
200
1,728
import { useCallback } from 'react'; import { matchPath, useLocation, useSearchParams } from 'react-router-dom'; import { useSelectedZone } from 'pages/HomePage/MapContainer/Map/hooks/eventHooks'; import * as path from 'routing'; import { trackEvent } from '../useAnalytics'; export type ShareLinkDestination = 'twit...
3
matiisnothere-15/MetroAnalyTics
84561f2
src/app/insertar-flujo-pas/insertar-flujo-pas.page.ts
TypeScript
www.github.com/matiisnothere-15/MetroAnalyTics/tree/main/src/app/insertar-flujo-pas/insertar-flujo-pas.page.ts
https://raw.githubusercontent.com/matiisnothere-15/MetroAnalyTics/84561f2/src/app/insertar-flujo-pas/insertar-flujo-pas.page.ts
matiisnothere-15/MetroAnalyTics 84561f2 src/app/insertar-flujo-pas/insertar-flujo-pas.page.ts
true
200
978
import { Component, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule, NavController } from '@ionic/angular'; import { Firebase } from 'src/app.firebase'; @Component({ selector: 'app-insertar-flujo-pas', templateUrl: '....
2
nanofuzz/nanofuzz
bd15cc5
src/fuzzer/analysis/typescript/ProgramDef.ts
TypeScript
www.github.com/nanofuzz/nanofuzz/tree/main/src/fuzzer/analysis/typescript/ProgramDef.ts
https://raw.githubusercontent.com/nanofuzz/nanofuzz/bd15cc5/src/fuzzer/analysis/typescript/ProgramDef.ts
nanofuzz/nanofuzz bd15cc5 src/fuzzer/analysis/typescript/ProgramDef.ts
true
200
42,128
import * as JSON5 from "json5"; import { ArgDef } from "./ArgDef"; import { FunctionDef } from "./FunctionDef"; import { getIdentifierName, isBlockScoped, removeParents } from "./Util"; import { AST_NODE_TYPES, AST, parse, simpleTraverse, } from "@typescript-eslint/typescript-estree"; import { TSTypeAliasDecl...
1
aomex/aomex
0c08c1a
packages/cron/test/middleware/eject.middleware.test.ts
TypeScript
www.github.com/aomex/aomex/tree/main/packages/cron/test/middleware/eject.middleware.test.ts
https://raw.githubusercontent.com/aomex/aomex/0c08c1a/packages/cron/test/middleware/eject.middleware.test.ts
aomex/aomex 0c08c1a packages/cron/test/middleware/eject.middleware.test.ts
true
200
1,163
import { expect, test, vitest } from 'vitest'; import { eject } from '../../src/middleware/eject.middleware'; import { dirname, join } from 'path'; import { middleware } from '@aomex/common'; import { ConsoleApp } from '@aomex/console'; const testDir = dirname(import.meta.dirname); test('导出任务列表', async () => { cons...
0
kamenskiyyyy/test-library
2fb96d5
src/books/dto/book.dto.ts
TypeScript
www.github.com/kamenskiyyyy/test-library/tree/main/src/books/dto/book.dto.ts
https://raw.githubusercontent.com/kamenskiyyyy/test-library/2fb96d5/src/books/dto/book.dto.ts
kamenskiyyyy/test-library 2fb96d5 src/books/dto/book.dto.ts
true
200
538
import { IsNumber, IsOptional, IsString, Length, MinLength, } from 'class-validator'; export class BookDto { @IsString() @Length(1, 50, { message: 'Длинна заголовка может быть от 1 до 50 символов' }) title: string; @IsOptional() description: string; @IsNumber() @MinLength(1, { message: 'Обяза...
6
ngochai68/Tech-Store
25e58e5
src/pages/auth.service.ts
TypeScript
www.github.com/ngochai68/Tech-Store/tree/main/src/pages/auth.service.ts
https://raw.githubusercontent.com/ngochai68/Tech-Store/25e58e5/src/pages/auth.service.ts
ngochai68/Tech-Store 25e58e5 src/pages/auth.service.ts
true
200
1,357
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { BACKEND_URL } from '../constant/backend-domain'; interface RegisterResponse { message: string; userId: number; } interface LoginResponse { message: string; token: string; userId: number; } export const authApi = createApi({ ...
7
franz1628/damerfrontend
2012845
src/app/mantenimiento/components/tablas/ubigeo/components/urbanizacion/urbanizacion.component.ts
TypeScript
www.github.com/franz1628/damerfrontend/tree/main/src/app/mantenimiento/components/tablas/ubigeo/components/urbanizacion/urbanizacion.component.ts
https://raw.githubusercontent.com/franz1628/damerfrontend/2012845/src/app/mantenimiento/components/tablas/ubigeo/components/urbanizacion/urbanizacion.component.ts
franz1628/damerfrontend 2012845 src/app/mantenimiento/components/tablas/ubigeo/components/urbanizacion/urbanizacion.component.ts
true
200
1,183
import { Component, ViewChild } from '@angular/core'; import { Urbanizacion, UrbanizacionInit } from '../../../interfaces/urbanizacion.interface'; import { UrbanizacionFormComponent } from './urbanizacion-form/urbanizacion-form.component'; import { UrbanizacionService } from '../../../service/urbanizacion.service'; imp...
4
Sakib-Atreus/Product-Management-Server-A2
60cb71d
src/app.ts
TypeScript
www.github.com/Sakib-Atreus/Product-Management-Server-A2/tree/main/src/app.ts
https://raw.githubusercontent.com/Sakib-Atreus/Product-Management-Server-A2/60cb71d/src/app.ts
Sakib-Atreus/Product-Management-Server-A2 60cb71d src/app.ts
true
200
797
import cors from 'cors'; import express, { Application, Request, Response } from 'express'; import { ProductRoute } from './app/modules/products/product.route'; import { OrderRoute } from './app/modules/orders/order.route'; const app: Application = express(); // parser app.use(express.json()); app.use(cors()); // ap...
5
khu-khlug/sight-backend
5ef7c55
src/app/application/interest/query/listInterest/ListInterestQueryHandler.spec.ts
TypeScript
www.github.com/khu-khlug/sight-backend/tree/main/src/app/application/interest/query/listInterest/ListInterestQueryHandler.spec.ts
https://raw.githubusercontent.com/khu-khlug/sight-backend/5ef7c55/src/app/application/interest/query/listInterest/ListInterestQueryHandler.spec.ts
khu-khlug/sight-backend 5ef7c55 src/app/application/interest/query/listInterest/ListInterestQueryHandler.spec.ts
true
200
1,528
import { Test } from '@nestjs/testing'; import { IInterestQuery, InterestQuery, } from '@khlug/app/application/interest/query/IInterestQuery'; import { ListInterestQueryHandler } from '@khlug/app/application/interest/query/listInterest/ListInterestQueryHandler'; import { ListInterestQueryResult } from '@khlug/app/...
3
alexandershitov/st-group-test
556497a
server/src/api/utils/errors.ts
TypeScript
www.github.com/alexandershitov/st-group-test/tree/main/server/src/api/utils/errors.ts
https://raw.githubusercontent.com/alexandershitov/st-group-test/556497a/server/src/api/utils/errors.ts
alexandershitov/st-group-test 556497a server/src/api/utils/errors.ts
true
200
298
const combine = (errors) => { const combined = {}; errors.map((e) => { const param = e.param; if (combined.hasOwnProperty(param)) { combined[param].push(e.msg); } else { combined[param] = [e.msg]; } }); return combined; }; export const Errors = { combine };
2
Findock/findme-server
9e724a9
src/main.ts
TypeScript
www.github.com/Findock/findme-server/tree/main/src/main.ts
https://raw.githubusercontent.com/Findock/findme-server/9e724a9/src/main.ts
Findock/findme-server 9e724a9 src/main.ts
true
200
1,665
import { ValidationPipe } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger"; import { version } from "../package.json"; import { FindMeAppModule } from "./find-me-app/find-me-app.module"; import figlet = require("figlet"); import gradien...
1
collectionscms/collections
c00fb92
src/admin/components/elements/BlockEditor/utilities/isCustomNodeSelected.ts
TypeScript
www.github.com/collectionscms/collections/tree/main/src/admin/components/elements/BlockEditor/utilities/isCustomNodeSelected.ts
https://raw.githubusercontent.com/collectionscms/collections/c00fb92/src/admin/components/elements/BlockEditor/utilities/isCustomNodeSelected.ts
collectionscms/collections c00fb92 src/admin/components/elements/BlockEditor/utilities/isCustomNodeSelected.ts
true
200
452
import { Editor } from '@tiptap/react'; import { CodeBlock, HorizontalRule, ImageBlock, ImageUpload, Link } from '../extensions/index.js'; export const isCustomNodeSelected = (editor: Editor, node: HTMLElement) => { const customNodes = [ HorizontalRule.name, ImageUpload.name, ImageBlock.name, CodeBl...
0
Codeffekt/ce-core
ed57e73
projects/lib/src/lib/local/forms-local-database.service.ts
TypeScript
www.github.com/Codeffekt/ce-core/tree/main/projects/lib/src/lib/local/forms-local-database.service.ts
https://raw.githubusercontent.com/Codeffekt/ce-core/ed57e73/projects/lib/src/lib/local/forms-local-database.service.ts
Codeffekt/ce-core ed57e73 projects/lib/src/lib/local/forms-local-database.service.ts
true
200
894
import { Injectable } from "@angular/core"; import { LocalDatabase } from "./local-database"; import { FormInstance, FormInstanceExt, FormRoot, IndexType } from "@codeffekt/ce-core-data"; @Injectable({ providedIn: 'root' }) export class FormsLocalDatabaseService { private forms: LocalDatabase = {}; private ro...
7
tarek-ismail-github/Inventory-care-for-companies
ebe7543
FE/src/app/components/Project/Project.component.ts
TypeScript
www.github.com/tarek-ismail-github/Inventory-care-for-companies/tree/main/FE/src/app/components/Project/Project.component.ts
https://raw.githubusercontent.com/tarek-ismail-github/Inventory-care-for-companies/ebe7543/FE/src/app/components/Project/Project.component.ts
tarek-ismail-github/Inventory-care-for-companies ebe7543 FE/src/app/components/Project/Project.component.ts
true
200
5,076
import { Project } from './../../models/project.model'; import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ProjectService } from '../../services/project.service'; import { TableUtils } from 'src/app/utils/utils'; import { Title } from '@a...
4
Jad2wizard/jad-webgpu-renderer
8902445
src/Demo/index.ts
TypeScript
www.github.com/Jad2wizard/jad-webgpu-renderer/tree/main/src/Demo/index.ts
https://raw.githubusercontent.com/Jad2wizard/jad-webgpu-renderer/8902445/src/Demo/index.ts
Jad2wizard/jad-webgpu-renderer 8902445 src/Demo/index.ts
true
200
5,964
import { Vector2 } from 'three' import PerspectiveCamera from '@/camera/perspectiveCamera' import Renderer from '../Renderer' import Scene from '../Scene' import Points from '../Points/Points' import { Paths } from '../Path/Paths' import Heatmap from '../Heatmap/Heatmap' import { times } from 'lodash' // import * as mo...
5
ulixee/platform
ec36e73
end-to-end/test/datastore/no-domain.ts
TypeScript
www.github.com/ulixee/platform/tree/main/end-to-end/test/datastore/no-domain.ts
https://raw.githubusercontent.com/ulixee/platform/ec36e73/end-to-end/test/datastore/no-domain.ts
ulixee/platform ec36e73 end-to-end/test/datastore/no-domain.ts
true
200
295
import Datastore, { Extractor } from '@ulixee/datastore'; export default new Datastore({ id: 'no-domain', version: '0.0.1', extractors: { nod: new Extractor({ basePrice: 1000, // 1 milligon run(ctx) { ctx.Output.emit({ noDomain: true }); }, }), }, });
2
Sunteang/Testing-server-with-express
2c49870
src/middlewares/userLog.ts
TypeScript
www.github.com/Sunteang/Testing-server-with-express/tree/main/src/middlewares/userLog.ts
https://raw.githubusercontent.com/Sunteang/Testing-server-with-express/2c49870/src/middlewares/userLog.ts
Sunteang/Testing-server-with-express 2c49870 src/middlewares/userLog.ts
true
200
283
import { Request, Response, NextFunction } from "express"; // Middleware function to log the request time export const logRequestTime = ( req: Request, res: Response, next: NextFunction ) => { console.log(`Request received at: ${new Date().toLocaleString()}`); next(); };
3
GyurcsikMate/SurveyServer
dde3ddf
Backend/src/routes/routes.ts
TypeScript
www.github.com/GyurcsikMate/SurveyServer/tree/main/Backend/src/routes/routes.ts
https://raw.githubusercontent.com/GyurcsikMate/SurveyServer/dde3ddf/Backend/src/routes/routes.ts
GyurcsikMate/SurveyServer dde3ddf Backend/src/routes/routes.ts
true
200
9,280
import { Router, Request, Response, NextFunction } from "express"; import { MainClass } from "../main-class"; import { PassportStatic } from "passport"; import { User } from "../model/User"; import Survey, { ISurvey } from "../model/Survey"; import SurveyResponse from "../model/SurveyResponse"; export const configureR...
1
redleifz/c-back
cea6c84
src/patients/patients.controller.ts
TypeScript
www.github.com/redleifz/c-back/tree/main/src/patients/patients.controller.ts
https://raw.githubusercontent.com/redleifz/c-back/cea6c84/src/patients/patients.controller.ts
redleifz/c-back cea6c84 src/patients/patients.controller.ts
true
200
978
import { Body, Controller, Get, NotFoundException, Param, Post, Put } from '@nestjs/common'; import { PatientsService } from './patients.service'; import { CreatePatientDto, UpdatePatientDto } from './dto/createPatientDto'; @Controller('patients') export class PatientsController { constructor(private readonly patien...
6
kaikyou76/kaikyou-app
934b481
pages/api/users/[id].ts
TypeScript
www.github.com/kaikyou76/kaikyou-app/tree/main/pages/api/users/[id].ts
https://raw.githubusercontent.com/kaikyou76/kaikyou-app/934b481/pages/api/users/%5Bid%5D.ts
kaikyou76/kaikyou-app 934b481 pages/api/users/[id].ts
true
200
1,943
import type { NextApiRequest, NextApiResponse } from 'next' import { prisma } from '../../../utils/prismaClient' import { prismaDeleteUserById, prismaGetUserById, prismaUpdateUserById } from '../../../lib/prisma/users' export default async function handler( req: NextApiRequest, res: NextApiResponse ) { ...
7
un-ts/preversion
8a0f8f0
src/types.ts
TypeScript
www.github.com/un-ts/preversion/tree/main/src/types.ts
https://raw.githubusercontent.com/un-ts/preversion/8a0f8f0/src/types.ts
un-ts/preversion 8a0f8f0 src/types.ts
true
200
388
export interface PreversionOptions { branch?: string message: string preversion?: string tag?: string } export interface PackageJson { name: string version: string description?: string publishConfig?: { directory?: string } } export type DistTags = Partial<Record<string, string>> export interfa...
0
kareemsakr/dating-app
5b85d5b
auth.ts
TypeScript
www.github.com/kareemsakr/dating-app/tree/main/auth.ts
https://raw.githubusercontent.com/kareemsakr/dating-app/5b85d5b/auth.ts
kareemsakr/dating-app 5b85d5b auth.ts
true
200
938
import NextAuth from "next-auth"; import { authConfig } from "@/auth.config"; import { getUser } from "@/app/lib/db"; import Credentials from "next-auth/providers/credentials"; import { z } from "zod"; import bcrypt from "bcrypt"; export const { auth, signIn, signOut } = NextAuth({ ...authConfig, providers: [ ...
4
tushar-idealake/library-demo
a34755f
src/app/register/register.component.ts
TypeScript
www.github.com/tushar-idealake/library-demo/tree/main/src/app/register/register.component.ts
https://raw.githubusercontent.com/tushar-idealake/library-demo/a34755f/src/app/register/register.component.ts
tushar-idealake/library-demo a34755f src/app/register/register.component.ts
true
200
1,625
import { Component } from '@angular/core'; import { NgForm } from '@angular/forms'; import { HttpClient, HttpErrorResponse, HttpHeaders, } from '@angular/common/http'; import { FormGenericSpinnerService, ToastrService } from 'reusable-ui-library'; import { Router } from '@angular/router'; @Component({ selector...
5
Waleed-abdullah/Final-year-project
ef2306c
src/pages/api/user/updateUser.ts
TypeScript
www.github.com/Waleed-abdullah/Final-year-project/tree/main/src/pages/api/user/updateUser.ts
https://raw.githubusercontent.com/Waleed-abdullah/Final-year-project/ef2306c/src/pages/api/user/updateUser.ts
Waleed-abdullah/Final-year-project ef2306c src/pages/api/user/updateUser.ts
true
200
2,123
import type { NextApiRequest, NextApiResponse } from 'next'; import prisma from '@/lib/database/prisma'; import bcrypt from 'bcrypt'; import { sendErrorResponse } from '@/utils/errorHandler'; import { isValidEmail, isValidID, isValidPassword, } from '@/utils/validationHelpers'; const SALT_ROUNDS = parseInt(proce...
2
sederpe/prueba02
0078a19
src/app/shared/components/input/input.component.ts
TypeScript
www.github.com/sederpe/prueba02/tree/main/src/app/shared/components/input/input.component.ts
https://raw.githubusercontent.com/sederpe/prueba02/0078a19/src/app/shared/components/input/input.component.ts
sederpe/prueba02 0078a19 src/app/shared/components/input/input.component.ts
true
200
1,195
import { Component, forwardRef, Input } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; @Component({ selector: 'app-input', templateUrl: './input.component.html', styleUrls: ['./input.component.css'], providers: [ { provide: NG_VALUE_ACCESSOR, use...
3
kastorcode/blast-arena
ae17d0c
server/src/ioListener.ts
TypeScript
www.github.com/kastorcode/blast-arena/tree/main/server/src/ioListener.ts
https://raw.githubusercontent.com/kastorcode/blast-arena/ae17d0c/server/src/ioListener.ts
kastorcode/blast-arena ae17d0c server/src/ioListener.ts
true
200
1,668
import { Server } from 'socket.io' import { onFlingBomb, onHoldBomb, onKill, onMove, onMoveBomb, onNullifyBlock, onPlaceBomb } from '~/game' import { changeLobby, createLobby, exitPairing, joinRoom, onDisconnect, onReady, sendToLobby, setUser } from '~/manager' export default function ioListener (io:Server) { io.on...
6
toririm/cafeore-2024
ab86b9a
modules/common/src/repositories/item.test.ts
TypeScript
www.github.com/toririm/cafeore-2024/tree/main/modules/common/src/repositories/item.test.ts
https://raw.githubusercontent.com/toririm/cafeore-2024/ab86b9a/modules/common/src/repositories/item.test.ts
toririm/cafeore-2024 ab86b9a modules/common/src/repositories/item.test.ts
true
200
2,618
import { initializeTestEnvironment } from "@firebase/rules-unit-testing"; import type { Firestore } from "firebase/firestore"; import { beforeAll, describe, expect, test } from "vitest"; import firebasejson from "../../firebase.json"; import type { WithId } from "../lib/typeguard"; import { ItemEntity } from "../models...
1
GilmarBrito/challenge-weather-app
bd564b8
components/Header/header.styles.ts
TypeScript
www.github.com/GilmarBrito/challenge-weather-app/tree/main/components/Header/header.styles.ts
https://raw.githubusercontent.com/GilmarBrito/challenge-weather-app/bd564b8/components/Header/header.styles.ts
GilmarBrito/challenge-weather-app bd564b8 components/Header/header.styles.ts
true
200
529
import styled from "styled-components"; export const Header = styled.header` display: flex; flex-direction: column-reverse; //display: grid; //grid-template-columns: repeat(2, 1fr); `; export const CityInfo = styled.div` padding: 10px 20px; & > p:first-child { font-size: 24px; } p { margin: 4p...
7
YovanggaAnandhika/DKAFramework-Typescript-Server
9704d88
src/Component/REACTJS/Middleware/Entry.ts
TypeScript
www.github.com/YovanggaAnandhika/DKAFramework-Typescript-Server/tree/main/src/Component/REACTJS/Middleware/Entry.ts
https://raw.githubusercontent.com/YovanggaAnandhika/DKAFramework-Typescript-Server/9704d88/src/Component/REACTJS/Middleware/Entry.ts
YovanggaAnandhika/DKAFramework-Typescript-Server 9704d88 src/Component/REACTJS/Middleware/Entry.ts
true
200
1,093
import {EntryObject as WebpackEntryObject} from "webpack"; import * as fs from "fs"; import {ConfigReactJS} from "../../../Interfaces/Config/ReactJS"; import path from "path"; type entry = undefined | string | (() => string | WebpackEntryObject | string[] | Promise<string | WebpackEntryObject | string[]>) | WebpackEnt...
0
vasilkovalyov/travel-app
1af6524
src/utils/common.ts
TypeScript
www.github.com/vasilkovalyov/travel-app/tree/main/src/utils/common.ts
https://raw.githubusercontent.com/vasilkovalyov/travel-app/1af6524/src/utils/common.ts
vasilkovalyov/travel-app 1af6524 src/utils/common.ts
true
200
1,198
import { format } from 'date-fns'; import { baseDateFormat, shortDateFormat2 } from '@/constants/dates'; export function getTotalCountOfNumbersInObject(obj: { [key in string]: number[]; }): number { return Object.keys(obj).reduce( (previous, key) => previous + obj[key].length, 0, ); } export function g...
4
testomut/playwrightQaseTests
ad26d8f
pageObjects/BroadcastsPage.ts
TypeScript
www.github.com/testomut/playwrightQaseTests/tree/main/pageObjects/BroadcastsPage.ts
https://raw.githubusercontent.com/testomut/playwrightQaseTests/ad26d8f/pageObjects/BroadcastsPage.ts
testomut/playwrightQaseTests ad26d8f pageObjects/BroadcastsPage.ts
true
200
8,077
import { Page, expect, BrowserContext } from '@playwright/test'; import SettingsPage from './SettingsPage'; import { NewBroadcast, ConfirmSendBroadcast, BroadcastsTableList } from '../types/Types'; const environmentUrl = process.env.ENVIRONMENT_URL as string; import * as path from 'path'; const videoPath = path.resolve...
2
IJSilvestre/weather-app
b3fd7eb
src/app/app.module.ts
TypeScript
www.github.com/IJSilvestre/weather-app/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/IJSilvestre/weather-app/b3fd7eb/src/app/app.module.ts
IJSilvestre/weather-app b3fd7eb src/app/app.module.ts
true
200
1,196
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } ...
5
John-Daniels/nasa-search
49eaf67
src/services/padgination/padgination.service.ts
TypeScript
www.github.com/John-Daniels/nasa-search/tree/main/src/services/padgination/padgination.service.ts
https://raw.githubusercontent.com/John-Daniels/nasa-search/49eaf67/src/services/padgination/padgination.service.ts
John-Daniels/nasa-search 49eaf67 src/services/padgination/padgination.service.ts
true
200
973
import _debounce from "lodash/debounce"; import { useEffect, useState } from "react"; const usePadginationService = () => { const [page, setPage] = useState(1); // Track page number const [loadingMore, setLoadingMore] = useState(false); // Track loading state // us debounce to limit calls per scroll when we get...
3