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
sohjag/rps
06cde0a
src/pages/api/game-test/createTestGame.ts
TypeScript
www.github.com/sohjag/rps/tree/main/src/pages/api/game-test/createTestGame.ts
https://raw.githubusercontent.com/sohjag/rps/06cde0a/src/pages/api/game-test/createTestGame.ts
sohjag/rps 06cde0a src/pages/api/game-test/createTestGame.ts
true
200
1,093
import { NextApiRequest, NextApiResponse } from "next"; import mongoose from "mongoose"; import { ensureDbConnected } from "@/utils/dbConnect"; import { Game } from "@/utils/db"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { if (req.method === "POST") { try { let ...
5
gustaff122/kakkoii-admin
4ffc443
src/app/guards/logged-out.guard.ts
TypeScript
www.github.com/gustaff122/kakkoii-admin/tree/main/src/app/guards/logged-out.guard.ts
https://raw.githubusercontent.com/gustaff122/kakkoii-admin/4ffc443/src/app/guards/logged-out.guard.ts
gustaff122/kakkoii-admin 4ffc443 src/app/guards/logged-out.guard.ts
true
200
446
import { CanMatchFn, Router, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { inject } from '@angular/core'; export const loggedOutGuard: CanMatchFn = (): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree => { const router = inject(Router); const token = l...
1
naufalanabil/ujian-pemrograman-web
1943b4c
hooks/react-query-fn/useMutateData.ts
TypeScript
www.github.com/naufalanabil/ujian-pemrograman-web/tree/main/hooks/react-query-fn/useMutateData.ts
https://raw.githubusercontent.com/naufalanabil/ujian-pemrograman-web/1943b4c/hooks/react-query-fn/useMutateData.ts
naufalanabil/ujian-pemrograman-web 1943b4c hooks/react-query-fn/useMutateData.ts
true
200
1,608
import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useRouter } from "next/navigation"; import { toast } from "sonner"; export function useMutateData<T>({ toastSuccess, toastLoading, toastId, fetcher, tags, redirectUrl, redirect = true, }: { toastSuccess?: string; toastLoad...
7
basilkeldhose/New-Project
bda99d5
frontend/src/app/service/register.service.ts
TypeScript
www.github.com/basilkeldhose/New-Project/tree/main/frontend/src/app/service/register.service.ts
https://raw.githubusercontent.com/basilkeldhose/New-Project/bda99d5/frontend/src/app/service/register.service.ts
basilkeldhose/New-Project bda99d5 frontend/src/app/service/register.service.ts
true
200
673
import { Injectable } from '@angular/core'; import {Register} from './register' import {environment} from '../../environments/environment' import{HttpClient, HttpHeaders} from '@angular/common/http' @Injectable({ providedIn: 'root' }) export class RegisterService { selectedUser:Register={ fullname:'', address:...
4
ExcellentDuck/bot
3ad5146
structs/Song.ts
TypeScript
www.github.com/ExcellentDuck/bot/tree/main/structs/Song.ts
https://raw.githubusercontent.com/ExcellentDuck/bot/3ad5146/structs/Song.ts
ExcellentDuck/bot 3ad5146 structs/Song.ts
true
200
2,408
import { AudioResource, createAudioResource, StreamType } from "@discordjs/voice"; import youtube from "youtube-sr"; import { i18n } from "../utils/i18n"; import { videoPattern, isURL } from "../utils/patterns"; const { stream , video_basic_info } = require('play-dl'); export interface SongData { url: string;...
6
finsoft-java/gestione-ore-rs
a420011
ore-rd/src/app/associazione-ore/associazione-ore.component.ts
TypeScript
www.github.com/finsoft-java/gestione-ore-rs/tree/main/ore-rd/src/app/associazione-ore/associazione-ore.component.ts
https://raw.githubusercontent.com/finsoft-java/gestione-ore-rs/a420011/ore-rd/src/app/associazione-ore/associazione-ore.component.ts
finsoft-java/gestione-ore-rs a420011 ore-rd/src/app/associazione-ore/associazione-ore.component.ts
true
200
2,521
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { AssociazioneOreService } from '../_services/associazione.ore'; import { AlertService } from '../_services/alert.service'; import { ProgettiService } from '../_services/progetti.service'; import { Period...
0
mardoqueudickson1/Luvulu-Ap
102c2c0
dist/modules/push-notification/repository/implementations/priismaFCMRepository.d.ts
TypeScript
www.github.com/mardoqueudickson1/Luvulu-Ap/tree/main/dist/modules/push-notification/repository/implementations/priismaFCMRepository.d.ts
https://raw.githubusercontent.com/mardoqueudickson1/Luvulu-Ap/102c2c0/dist/modules/push-notification/repository/implementations/priismaFCMRepository.d.ts
mardoqueudickson1/Luvulu-Ap 102c2c0 dist/modules/push-notification/repository/implementations/priismaFCMRepository.d.ts
true
200
563
import { PrismaService } from '../../../prisma/prisma.service'; import { IFCMRepository } from '../interface/IFCMRepository'; import { fcmToken, fcmTokenUpdate } from '../../dtos/fcmtoken.input'; import { fcmTokens } from '../../entities/fcm.entity'; export declare class PrismaFCMRepository implements IFCMRepository { ...
2
Timur310/TSTracer
c4920bc
src/Objects/Ray.ts
TypeScript
www.github.com/Timur310/TSTracer/tree/main/src/Objects/Ray.ts
https://raw.githubusercontent.com/Timur310/TSTracer/c4920bc/src/Objects/Ray.ts
Timur310/TSTracer c4920bc src/Objects/Ray.ts
true
200
556
import { Vector3 } from "../Math/Vector3"; export class Ray { private direction: Vector3; private origin: Vector3; constructor(origin: Vector3, direction: Vector3) { this.direction = direction; this.origin = origin; } public at(t: number): Vector3 { const out = new Vector3(this.Di...
5
namvu2101/appchatRNFB
e49143f
src/assets/color/colors.ts
TypeScript
www.github.com/namvu2101/appchatRNFB/tree/main/src/assets/color/colors.ts
https://raw.githubusercontent.com/namvu2101/appchatRNFB/e49143f/src/assets/color/colors.ts
namvu2101/appchatRNFB e49143f src/assets/color/colors.ts
true
200
581
export const COLORS = { txt_black: '#4f5064', txt_gray: '#818181', txt_green: '#00C981', txt_blue: '#1d84c7', txt_origin: '#ff9600', txt_red: '#ff0621', txt_purple: '#9E54CF', ic_gray: '#a7a7a7', bg_primary: '#c8e9ff', ic_badge: '#ff0038', bg_screen: '#f3fbfe', primary: '...
3
Chifez/lendsqr-fe-test
061a0eb
middleware.ts
TypeScript
www.github.com/Chifez/lendsqr-fe-test/tree/main/middleware.ts
https://raw.githubusercontent.com/Chifez/lendsqr-fe-test/061a0eb/middleware.ts
Chifez/lendsqr-fe-test 061a0eb middleware.ts
true
200
364
import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; let user: boolean | null = true; export async function middleware(req: NextRequest) { // Check auth condition if (user === true) { return; } else { return NextResponse.redirect(new URL('/login', req.url)); } } ...
1
PatBG/LD54
04926ad
src/ScenePause.ts
TypeScript
www.github.com/PatBG/LD54/tree/main/src/ScenePause.ts
https://raw.githubusercontent.com/PatBG/LD54/04926ad/src/ScenePause.ts
PatBG/LD54 04926ad src/ScenePause.ts
true
200
415
import * as Phaser from 'phaser'; export class ScenePause extends Phaser.Scene { constructor() { super({ key: 'ScenePause', active: true }); } create() { this.input.keyboard.addKey('P').on('down', () => { this.scene.pause(); this.scene.resume('SceneStarfield'); ...
7
prgrms-web-devcourse-final-project/WEB1_1_Bongdari_FE
776de38
src/store/queries/aidreq-detail-volunteer-query/useFetchAidRqDetail.ts
TypeScript
www.github.com/prgrms-web-devcourse-final-project/WEB1_1_Bongdari_FE/tree/main/src/store/queries/aidreq-detail-volunteer-query/useFetchAidRqDetail.ts
https://raw.githubusercontent.com/prgrms-web-devcourse-final-project/WEB1_1_Bongdari_FE/776de38/src/store/queries/aidreq-detail-volunteer-query/useFetchAidRqDetail.ts
prgrms-web-devcourse-final-project/WEB1_1_Bongdari_FE 776de38 src/store/queries/aidreq-detail-volunteer-query/useFetchAidRqDetail.ts
true
200
610
import axios from 'axios'; import { useQuery } from '@tanstack/react-query'; import { AidRqDetailType } from '@/shared/types/aidrq-detail/aidrqDetailType'; const fetchAidRqDetail = async (id: string | undefined) => { try { const response = await axios.get(`${import.meta.env.VITE_APP_BASE_URL}/api/recruit-board/...
6
D-M-Moriarty/monroagh
5196c42
libs/shared/src/lib/date-utils/date-utils.ts
TypeScript
www.github.com/D-M-Moriarty/monroagh/tree/main/libs/shared/src/lib/date-utils/date-utils.ts
https://raw.githubusercontent.com/D-M-Moriarty/monroagh/5196c42/libs/shared/src/lib/date-utils/date-utils.ts
D-M-Moriarty/monroagh 5196c42 libs/shared/src/lib/date-utils/date-utils.ts
true
200
722
import momentImported from 'moment'; const moment = momentImported; export class DateUtils { static parse(val: string | number): Date | null { let dateToParse: string | number = val; let result; if (!isNaN(val as any)) { const valText = '' + val; dateToParse = (valText.length === 10) ? Number...
4
Blackxes/wave-function-collapse
ca197d9
src/utils/point.ts
TypeScript
www.github.com/Blackxes/wave-function-collapse/tree/main/src/utils/point.ts
https://raw.githubusercontent.com/Blackxes/wave-function-collapse/ca197d9/src/utils/point.ts
Blackxes/wave-function-collapse ca197d9 src/utils/point.ts
true
200
960
/** * @Author Alexander Bassov Sun Jul 14 2024 * @Email blackxes.dev@gmail.com */ import { IPoint } from "./types"; export class Point implements IPoint { x = 0; y = 0; constructor(x: number, y: number) { this.x = x; this.y = y; } } const PointFunctions = { add(a: IPoint, b: IPoint) { return...
0
jernito/playwright-practice
cd99155
tests/home.spec.ts
TypeScript
www.github.com/jernito/playwright-practice/tree/main/tests/home.spec.ts
https://raw.githubusercontent.com/jernito/playwright-practice/cd99155/tests/home.spec.ts
jernito/playwright-practice cd99155 tests/home.spec.ts
true
200
4,343
import { test, expect } from '@playwright/test'; import { HomePage } from '../pages/home.page'; test.describe('Home', () => { let homePage: HomePage; test.beforeEach(async ({ page }) => { homePage = new HomePage(page) // j'utilise ceci parceque mon url est dorénavent stocké await home...
2
JomianTC/escom-ia
7670097
Frontend/src/api/users/use-create-user.ts
TypeScript
www.github.com/JomianTC/escom-ia/tree/main/Frontend/src/api/users/use-create-user.ts
https://raw.githubusercontent.com/JomianTC/escom-ia/7670097/Frontend/src/api/users/use-create-user.ts
JomianTC/escom-ia 7670097 Frontend/src/api/users/use-create-user.ts
true
200
1,241
import { type Student, type TSFixMe } from '@/types/index' import { useMutation, useQueryClient } from '@tanstack/react-query' import { API_URLS, apiClient, userQueryKeys } from '../index' import { type StudentCreatedResponse } from './../../types/api-responses' import { toast } from 'react-toastify' const createUserF...
5
rickardaniel/webValle
88ba6a5
src/app/pages/suspensiones/ver-suspension/ver-suspension.component.ts
TypeScript
www.github.com/rickardaniel/webValle/tree/main/src/app/pages/suspensiones/ver-suspension/ver-suspension.component.ts
https://raw.githubusercontent.com/rickardaniel/webValle/88ba6a5/src/app/pages/suspensiones/ver-suspension/ver-suspension.component.ts
rickardaniel/webValle 88ba6a5 src/app/pages/suspensiones/ver-suspension/ver-suspension.component.ts
true
200
6,681
import { DatePipe } from '@angular/common'; import { ChangeDetectorRef, Component, HostListener, OnInit, ViewChild } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { MDBModalService, MdbTableDirective, MdbTablePaginationComponent, ModalModule } from 'angular-bootstrap-...
3
OpenCdsi/cdsi-api
186c7c8
src/middleware.ts
TypeScript
www.github.com/OpenCdsi/cdsi-api/tree/main/src/middleware.ts
https://raw.githubusercontent.com/OpenCdsi/cdsi-api/186c7c8/src/middleware.ts
OpenCdsi/cdsi-api 186c7c8 src/middleware.ts
true
200
2,807
import mung from "express-mung"; /** Partial Reply */ const trimReply = (json, req, res) => { if (!!!req.query.fields) return undefined; const fields = req.query.fields.split(","); let data = {}; fields.forEach(field => { data[field] = json[field]; }); return data; } export const pa...
1
JoaoVictorViana/desafio-back-end
efa173a
src/components/Features/Clients/Form/hook.ts
TypeScript
www.github.com/JoaoVictorViana/desafio-back-end/tree/main/src/components/Features/Clients/Form/hook.ts
https://raw.githubusercontent.com/JoaoVictorViana/desafio-back-end/efa173a/src/components/Features/Clients/Form/hook.ts
JoaoVictorViana/desafio-back-end efa173a src/components/Features/Clients/Form/hook.ts
true
200
1,435
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' import { useCallback, useMemo } from 'react' import { toast } from 'react-toastify' import { Option } from '@/types/app' import { createClient, updateClient } from '@/fetchers/client/store' import { ClientFields } from '@/types/forms' type P...
7
treardon17/storybook-decorator-bug
bd11764
.storybook/withVuetifyTheme.decorator.ts
TypeScript
www.github.com/treardon17/storybook-decorator-bug/tree/main/.storybook/withVuetifyTheme.decorator.ts
https://raw.githubusercontent.com/treardon17/storybook-decorator-bug/bd11764/.storybook/withVuetifyTheme.decorator.ts
treardon17/storybook-decorator-bug bd11764 .storybook/withVuetifyTheme.decorator.ts
true
200
460
import { computed } from 'vue'; import StoryWrapper from './StoryWrapper.vue'; export const DEFAULT_THEME = 'light'; export const withVuetifyTheme = (story, context) => { return { components: { story, StoryWrapper }, setup() { return { themeName: computed(() => context.globals.theme || DEFAULT...
4
Rosenblad/itemviewer
1d85493
src/state/entities/selectors.ts
TypeScript
www.github.com/Rosenblad/itemviewer/tree/main/src/state/entities/selectors.ts
https://raw.githubusercontent.com/Rosenblad/itemviewer/1d85493/src/state/entities/selectors.ts
Rosenblad/itemviewer 1d85493 src/state/entities/selectors.ts
true
200
1,775
import { createSelector } from 'reselect'; import { AppState } from '../types'; import { EntitiesState } from './types'; import { Collection } from '../collectionviewer/types'; import { Item } from '../itemviewer/types'; export function getEntities(state: AppState): EntitiesState { return state.entities; } /** * G...
0
kfujita0520/crypto_bridge
684a07c
backends/scripts/task/generatePrivateKey.ts
TypeScript
www.github.com/kfujita0520/crypto_bridge/tree/main/backends/scripts/task/generatePrivateKey.ts
https://raw.githubusercontent.com/kfujita0520/crypto_bridge/684a07c/backends/scripts/task/generatePrivateKey.ts
kfujita0520/crypto_bridge 684a07c backends/scripts/task/generatePrivateKey.ts
true
200
441
import { ethers } from "hardhat"; async function main() { const wallet = ethers.Wallet.createRandom() console.log('address:', wallet.address) console.log('mnemonic:', wallet.mnemonic.phrase) console.log('privateKey:', wallet.privateKey) } // We recommend this pattern to be able to use async/await eve...
2
sfburaktrn/AngularForms
39ae6ba
FormF/src/app/form-example/form-example.component.ts
TypeScript
www.github.com/sfburaktrn/AngularForms/tree/main/FormF/src/app/form-example/form-example.component.ts
https://raw.githubusercontent.com/sfburaktrn/AngularForms/39ae6ba/FormF/src/app/form-example/form-example.component.ts
sfburaktrn/AngularForms 39ae6ba FormF/src/app/form-example/form-example.component.ts
true
200
785
import { Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'app-form-example', templateUrl: './form-example.component.html', styleUrls: ['./form-example.component.css'], }) export class FormExampleComponent { formData = { name: '', lastname: '',...
5
AntonKhorev/osm-note-viewer
9b89597
src/nominatim.ts
TypeScript
www.github.com/AntonKhorev/osm-note-viewer/tree/main/src/nominatim.ts
https://raw.githubusercontent.com/AntonKhorev/osm-note-viewer/9b89597/src/nominatim.ts
AntonKhorev/osm-note-viewer 9b89597 src/nominatim.ts
true
200
2,164
import type {NominatimProvider} from './net' import {makeEscapeTag} from './util/escape' const e=makeEscapeTag(encodeURIComponent) export type NominatimBbox = readonly [minLat:string,maxLat:string,minLon:string,maxLon:string] function isNominatimBbox(bbox: any): bbox is NominatimBbox { if (!Array.isArray(bbox)) ret...
6
IzabelAzoia/Culture-Office
6854a82
src/infraestructure/teacher-infraestructure.module.ts
TypeScript
www.github.com/IzabelAzoia/Culture-Office/tree/main/src/infraestructure/teacher-infraestructure.module.ts
https://raw.githubusercontent.com/IzabelAzoia/Culture-Office/6854a82/src/infraestructure/teacher-infraestructure.module.ts
IzabelAzoia/Culture-Office 6854a82 src/infraestructure/teacher-infraestructure.module.ts
true
200
668
import { Module } from '@nestjs/common'; import { InFileTeacherPersistenceModule } from './persistence/in-file/in-file-teacher-persistence.module'; import { InMemoryTeacherPersistenceModule } from './persistence/in-memory/in-memory-teacher-persistence.module'; @Module({}) export class TeacherInfrastructureModule ...
7
FengWei-Pi/fengwei-pi.github.io
5a292c7
lib/connectFour/connectFourNNStrategyWorkerTypes.ts
TypeScript
www.github.com/FengWei-Pi/fengwei-pi.github.io/tree/main/lib/connectFour/connectFourNNStrategyWorkerTypes.ts
https://raw.githubusercontent.com/FengWei-Pi/fengwei-pi.github.io/5a292c7/lib/connectFour/connectFourNNStrategyWorkerTypes.ts
FengWei-Pi/fengwei-pi.github.io 5a292c7 lib/connectFour/connectFourNNStrategyWorkerTypes.ts
true
200
866
import type { Analysis } from "../turnGame/computerStrategy"; import type { ConnectFourMove } from "./connectFourBoard"; export enum Action { SetNumSimulations, GetMove, UpdatePastMoves, } export enum Response { Move, Analysis } export type SetNumSimulations = { action: Action.SetNumSimulations, payloa...
1
sachin5424/cargo-node-api
bdd80d1
admin-express/src/app/admin/user/user-routing.module.ts
TypeScript
www.github.com/sachin5424/cargo-node-api/tree/main/admin-express/src/app/admin/user/user-routing.module.ts
https://raw.githubusercontent.com/sachin5424/cargo-node-api/bdd80d1/admin-express/src/app/admin/user/user-routing.module.ts
sachin5424/cargo-node-api bdd80d1 admin-express/src/app/admin/user/user-routing.module.ts
true
200
606
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { UserDashboardComponent } from './user-dashboard/user-dashboard.component'; import { UserProfileComponent } from './user-profile/user-profile.component'; const routes: Routes = [ { path:"dashboard", comp...
4
AdrianeRibeiro/DesignPatternsBranas
03b435d
src/gof/structural/adapter/catalog/ProductRepository.ts
TypeScript
www.github.com/AdrianeRibeiro/DesignPatternsBranas/tree/main/src/gof/structural/adapter/catalog/ProductRepository.ts
https://raw.githubusercontent.com/AdrianeRibeiro/DesignPatternsBranas/03b435d/src/gof/structural/adapter/catalog/ProductRepository.ts
AdrianeRibeiro/DesignPatternsBranas 03b435d src/gof/structural/adapter/catalog/ProductRepository.ts
true
200
666
import Product from "./Product"; export default interface ProductRepository { getById(productId: number): Promise<Product> } export class ProductRepositoryMemory implements ProductRepository { products = [ { productId: 1, description: 'A', price: 100 }, { productId: 2, de...
3
TheDish26/2-TCP-chat-server
0e079fa
tcp-chat-server/src/utils/helpers.test.ts
TypeScript
www.github.com/TheDish26/2-TCP-chat-server/tree/main/tcp-chat-server/src/utils/helpers.test.ts
https://raw.githubusercontent.com/TheDish26/2-TCP-chat-server/0e079fa/tcp-chat-server/src/utils/helpers.test.ts
TheDish26/2-TCP-chat-server 0e079fa tcp-chat-server/src/utils/helpers.test.ts
true
200
306
import { add } from '../utils/helpers'; test('add function should return the sum of two numbers', () => { expect(add(1, 2)).toBe(3); expect(add(-1, 1)).toBe(0); }); // Removed test for subtract function as it is not exported test('helper function should work', () => { expect(true).toBe(true); });
2
SeokHoChoi/interactive-regional-cursor
ef0ae49
src/hooks/useInteractiveCursor.ts
TypeScript
www.github.com/SeokHoChoi/interactive-regional-cursor/tree/main/src/hooks/useInteractiveCursor.ts
https://raw.githubusercontent.com/SeokHoChoi/interactive-regional-cursor/ef0ae49/src/hooks/useInteractiveCursor.ts
SeokHoChoi/interactive-regional-cursor ef0ae49 src/hooks/useInteractiveCursor.ts
true
200
1,510
import { useState, useEffect } from 'react'; import { RegionalItem, InteractiveCursorOptions } from '../types'; import { getRandomItem, getRegionalData } from '../utils/cursorHelpers'; export const useInteractiveCursor = (options: InteractiveCursorOptions) => { const { region = 'default', specialProducts = [...
0
dvdgd/prev-ler-react-app
0bbe97e
src/shared/services/CompanyService.ts
TypeScript
www.github.com/dvdgd/prev-ler-react-app/tree/main/src/shared/services/CompanyService.ts
https://raw.githubusercontent.com/dvdgd/prev-ler-react-app/0bbe97e/src/shared/services/CompanyService.ts
dvdgd/prev-ler-react-app 0bbe97e src/shared/services/CompanyService.ts
true
200
3,820
import { EUserType } from "types/profile"; import { TCompany, TCompanySupabaseRow } from "../../@types/company"; import { TCompanyUser, TuserCompanyRow } from "../../@types/company-user"; import { supabaseClient } from "../../config/supabase"; import { BaseError } from "../errors/BaseError"; import { CompanyFromSupabas...
5
dan1aa/nesttalktime
1e05a4e
src/profile/profile.service.ts
TypeScript
www.github.com/dan1aa/nesttalktime/tree/main/src/profile/profile.service.ts
https://raw.githubusercontent.com/dan1aa/nesttalktime/1e05a4e/src/profile/profile.service.ts
dan1aa/nesttalktime 1e05a4e src/profile/profile.service.ts
true
200
4,005
import { Injectable } from '@nestjs/common'; import { Request, Response } from 'express'; import { getUserFromCookies } from 'helpers/user_cookies'; import { BadgeModel } from 'models/badge.model'; import { Feedback } from 'models/feedback.model'; import { Meeting } from 'models/meeting.model'; import { Note } from 'mo...
6
Lectio-Project/Backend-Lectio
786348b
src/users/users.service.ts
TypeScript
www.github.com/Lectio-Project/Backend-Lectio/tree/main/src/users/users.service.ts
https://raw.githubusercontent.com/Lectio-Project/Backend-Lectio/786348b/src/users/users.service.ts
Lectio-Project/Backend-Lectio 786348b src/users/users.service.ts
true
200
7,478
/* eslint-disable @typescript-eslint/no-unused-vars */ import { BadRequestException, Injectable, NotFoundException, UnauthorizedException, } from '@nestjs/common'; import * as bcryptjs from 'bcryptjs'; import * as dotenv from 'dotenv'; import { AuthService } from 'src/auth/auth.service'; import { PrismaService ...
7
7Eltantawy/RegxHarvester
564881d
src/commands/harvest-selected-folder.ts
TypeScript
www.github.com/7Eltantawy/RegxHarvester/tree/main/src/commands/harvest-selected-folder.ts
https://raw.githubusercontent.com/7Eltantawy/RegxHarvester/564881d/src/commands/harvest-selected-folder.ts
7Eltantawy/RegxHarvester 564881d src/commands/harvest-selected-folder.ts
true
200
1,292
import { Uri, window } from "vscode"; import { findFilesInPath, promptForTargetDirectory } from "../utils"; import _ = require("lodash"); import { lstatSync } from "fs"; import { getSelectedTemplate } from "./get-selected-template"; import { harvestFileBase } from "./harvest-file-base"; export async function harvestSe...
1
Thomasevano/foot-team-management-api
8baccab
app/models/player.ts
TypeScript
www.github.com/Thomasevano/foot-team-management-api/tree/main/app/models/player.ts
https://raw.githubusercontent.com/Thomasevano/foot-team-management-api/8baccab/app/models/player.ts
Thomasevano/foot-team-management-api 8baccab app/models/player.ts
true
200
609
import { DateTime } from 'luxon' import { BaseModel, column } from '@adonisjs/lucid/orm' export default class Player extends BaseModel { @column({ isPrimary: true }) declare id: number @column() declare firstName: string @column() declare lastName: string @column() declare fullName: string @colum...
3
u0649533/hello-world
66525bf
src/app/github-profile/github-profile.component.ts
TypeScript
www.github.com/u0649533/hello-world/tree/main/src/app/github-profile/github-profile.component.ts
https://raw.githubusercontent.com/u0649533/hello-world/66525bf/src/app/github-profile/github-profile.component.ts
u0649533/hello-world 66525bf src/app/github-profile/github-profile.component.ts
true
200
660
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import {Router} from '@angular/router'; @Component({ selector: 'app-github-profile', templateUrl: './github-profile.component.html', styleUrls: ['./github-profile.component.css'] }) export class GithubProfileComp...
0
kronnor/Pruebas_web_serve
c761b5c
src/app/app-routing.module.ts
TypeScript
www.github.com/kronnor/Pruebas_web_serve/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/kronnor/Pruebas_web_serve/c761b5c/src/app/app-routing.module.ts
kronnor/Pruebas_web_serve c761b5c src/app/app-routing.module.ts
true
200
4,899
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DevolverLibroComponent } from './devolver-libro/devolver-libro.component'; import { RegistroUsuarioComponent } from './registro-usuario/registro-usuario.component'; import { ReporteSugerenciasComponent } from './r...
2
lehuy299/nestjs-tutorial
cbdea9a
src/customers/controllers/customers/customers.controller.ts
TypeScript
www.github.com/lehuy299/nestjs-tutorial/tree/main/src/customers/controllers/customers/customers.controller.ts
https://raw.githubusercontent.com/lehuy299/nestjs-tutorial/cbdea9a/src/customers/controllers/customers/customers.controller.ts
lehuy299/nestjs-tutorial cbdea9a src/customers/controllers/customers/customers.controller.ts
true
200
710
import { Controller, Get, Param, ParseIntPipe, Req, Res } from '@nestjs/common'; import { Request, Response } from 'express'; import { CustomersService } from 'src/customers/services/customers/customers.service'; @Controller('customers') export class CustomersController { constructor(private customersService: Cust...
4
cruru-dev/project
eca552b
frontend/src/components/recruitmentPost/ApplyForm/style.ts
TypeScript
www.github.com/cruru-dev/project/tree/main/frontend/src/components/recruitmentPost/ApplyForm/style.ts
https://raw.githubusercontent.com/cruru-dev/project/eca552b/frontend/src/components/recruitmentPost/ApplyForm/style.ts
cruru-dev/project eca552b frontend/src/components/recruitmentPost/ApplyForm/style.ts
true
200
1,283
import { css } from '@emotion/react'; import styled from '@emotion/styled'; const Form = styled.form` width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3.2rem; `; const CheckBoxContainer = styled.div` width: 100%; display: flex; flex-direction: column; gap: 0.8rem; `; c...
5
rybakN/fastify-test-task
25f3de4
src/skinport/skinport.service.ts
TypeScript
www.github.com/rybakN/fastify-test-task/tree/main/src/skinport/skinport.service.ts
https://raw.githubusercontent.com/rybakN/fastify-test-task/25f3de4/src/skinport/skinport.service.ts
rybakN/fastify-test-task 25f3de4 src/skinport/skinport.service.ts
true
200
2,163
import { SkinportItem } from "./interfaces/skinport-item.interface"; import { FormatedItem } from "./interfaces/formated-item.interface"; import { FastifyRedis } from "@fastify/redis"; const getSkinportItems = async ( tradable: boolean | number = 0, ): Promise<SkinportItem[]> => { if (!process.env.SKINPORT_API_URL...
6
ilya53nov/1846483-what-to-watch-backend
968ea1c
src/modules/film/film.entity.ts
TypeScript
www.github.com/ilya53nov/1846483-what-to-watch-backend/tree/main/src/modules/film/film.entity.ts
https://raw.githubusercontent.com/ilya53nov/1846483-what-to-watch-backend/968ea1c/src/modules/film/film.entity.ts
ilya53nov/1846483-what-to-watch-backend 968ea1c src/modules/film/film.entity.ts
true
200
2,532
import typegoose, { getModelForClass } from '@typegoose/typegoose'; import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses.js'; import { Collection } from '../../types/collection.enum.js'; import { Film } from '../../types/film.type.js'; import { Genre } from '../../types/genre.enum.js'; import { Us...
7
mucahidyazar/y-hub-api
7cf2492
src/model/request/calculation.dto.ts
TypeScript
www.github.com/mucahidyazar/y-hub-api/tree/main/src/model/request/calculation.dto.ts
https://raw.githubusercontent.com/mucahidyazar/y-hub-api/7cf2492/src/model/request/calculation.dto.ts
mucahidyazar/y-hub-api 7cf2492 src/model/request/calculation.dto.ts
true
200
436
import mongoose from 'mongoose' import { z } from 'zod' import { calculationLoanDataSchema } from '@/validation' type TCalculationDto = z.infer<typeof calculationDto> const calculationDto = z.object({ type: z.literal('loan'), data: calculationLoanDataSchema, user: z.string().refine(value => mongoose.Types.Obje...
1
stuhops/frogger-angular
55d219f
src/app/services/game-init/game-init.service.spec.ts
TypeScript
www.github.com/stuhops/frogger-angular/tree/main/src/app/services/game-init/game-init.service.spec.ts
https://raw.githubusercontent.com/stuhops/frogger-angular/55d219f/src/app/services/game-init/game-init.service.spec.ts
stuhops/frogger-angular 55d219f src/app/services/game-init/game-init.service.spec.ts
true
200
368
import { TestBed } from '@angular/core/testing'; import { GameInitService } from './game-init.service'; describe('GameInitService', () => { let service: GameInitService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(GameInitService); }); it('should be created', () =...
3
nima70/ddd-tdd-di-nx-typescript
e0a13ca
ddd.test/src/lib/sum.spec.ts
TypeScript
www.github.com/nima70/ddd-tdd-di-nx-typescript/tree/main/ddd.test/src/lib/sum.spec.ts
https://raw.githubusercontent.com/nima70/ddd-tdd-di-nx-typescript/e0a13ca/ddd.test/src/lib/sum.spec.ts
nima70/ddd-tdd-di-nx-typescript e0a13ca ddd.test/src/lib/sum.spec.ts
true
200
281
// ddd.test/src/lib/sum.spec.ts import { ISum } from '@ddd/ddd.core'; import { Sum } from '@ddd/ddd.services'; describe('Sum', () => { it('should sum', async () => { const sum: ISum = new Sum(); const result = await sum.sum(1, 2); expect(result).toBe(3); }); });
0
loreanvictor/rxxpress
0e555dc
src/test/util.ts
TypeScript
www.github.com/loreanvictor/rxxpress/tree/main/src/test/util.ts
https://raw.githubusercontent.com/loreanvictor/rxxpress/0e555dc/src/test/util.ts
loreanvictor/rxxpress 0e555dc src/test/util.ts
true
200
769
import express, { Application } from 'express'; import chai, { should } from 'chai'; should(); import http from 'chai-http';import { Router } from '../router'; chai.use(http); export type PrepFunc = (app: Application) => void; export type TestFunc = (req: ChaiHttp.Agent, cleanup: () => void) => void; export functio...
4
TsaiTsaiChieh/never-stray-firebase
5f73a96
src/store/rootReducer.ts
TypeScript
www.github.com/TsaiTsaiChieh/never-stray-firebase/tree/main/src/store/rootReducer.ts
https://raw.githubusercontent.com/TsaiTsaiChieh/never-stray-firebase/5f73a96/src/store/rootReducer.ts
TsaiTsaiChieh/never-stray-firebase 5f73a96 src/store/rootReducer.ts
true
200
466
import { combineReducers } from '@reduxjs/toolkit' import authReducer from './reducers/authSlice' import loadingReducer from './reducers/loadingSlice' import petReducer from './reducers/petSlice' import uiReducer from './reducers/uiSlice' import { api } from '../services/api' const rootReducer = combineReducers({ [...
2
7chyngyz/kino-movie
7225b45
src/redux/api/index.ts
TypeScript
www.github.com/7chyngyz/kino-movie/tree/main/src/redux/api/index.ts
https://raw.githubusercontent.com/7chyngyz/kino-movie/7225b45/src/redux/api/index.ts
7chyngyz/kino-movie 7225b45 src/redux/api/index.ts
true
200
862
import { BaseQueryFn, createApi, fetchBaseQuery, } from "@reduxjs/toolkit/query/react"; const baseQuery = fetchBaseQuery({ baseUrl: `${process.env.NEXT_PUBLIC_API_URL}/3`, prepareHeaders: (headers) => { headers.set( "Authorization", `Bearer ${process.env.NEXT_PUBLIC_ACCESS_TOKEN}` ); ...
6
Manoj-M-S/spacekit-project
aa5bccb
src/Components/02-Constellations/Breadcrumb/src/Breadcrumb.ts
TypeScript
www.github.com/Manoj-M-S/spacekit-project/tree/main/src/Components/02-Constellations/Breadcrumb/src/Breadcrumb.ts
https://raw.githubusercontent.com/Manoj-M-S/spacekit-project/aa5bccb/src/Components/02-Constellations/Breadcrumb/src/Breadcrumb.ts
Manoj-M-S/spacekit-project aa5bccb src/Components/02-Constellations/Breadcrumb/src/Breadcrumb.ts
true
200
8,870
import { html, LitElement } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; import { map } from 'lit/directives/map.js'; import { classMap } from 'lit/directives/class-map.js'; import '../../../01-stars/button/src/Button'; import styles from './Breadcrumb.scss.lit'; export interface Bre...
5
iLoveHanekawa/postgresql
4d6d9de
app/api/books/route.ts
TypeScript
www.github.com/iLoveHanekawa/postgresql/tree/main/app/api/books/route.ts
https://raw.githubusercontent.com/iLoveHanekawa/postgresql/4d6d9de/app/api/books/route.ts
iLoveHanekawa/postgresql 4d6d9de app/api/books/route.ts
true
200
1,250
import { NextResponse, type NextRequest } from "next/server"; import { prisma } from "@/lib/prisma"; export async function GET() { const books = await prisma.book.findMany({ include: { author: { select: { name: true } } }, ...
7
InfinityScripter/blog-app-mui-backend
4f8b6ce
src/pages/api/auth/sign-up.ts
TypeScript
www.github.com/InfinityScripter/blog-app-mui-backend/tree/main/src/pages/api/auth/sign-up.ts
https://raw.githubusercontent.com/InfinityScripter/blog-app-mui-backend/4f8b6ce/src/pages/api/auth/sign-up.ts
InfinityScripter/blog-app-mui-backend 4f8b6ce src/pages/api/auth/sign-up.ts
true
200
2,830
// src/pages/api/auth/sign-up.ts import type { NextApiRequest, NextApiResponse } from 'next'; // @ts-ignore import bcrypt from 'bcrypt'; import { sign } from 'jsonwebtoken'; import cors from '../../../utils/cors'; import dbConnect from '../../../lib/db'; import type { IUser } from '../../../models/User'; import User ...
1
parkerCYH/prisma-mysql-workshop
9b46e6c
router/task/index.ts
TypeScript
www.github.com/parkerCYH/prisma-mysql-workshop/tree/main/router/task/index.ts
https://raw.githubusercontent.com/parkerCYH/prisma-mysql-workshop/9b46e6c/router/task/index.ts
parkerCYH/prisma-mysql-workshop 9b46e6c router/task/index.ts
true
200
2,807
import { PrismaClient, Prisma } from '@prisma/client'; import express, { Request, Response } from 'express'; const router = express.Router(); const prisma = new PrismaClient(); router.get('/detail', async (req: Request, res: Response) => { const user_id = Number(req.query.user_id); const task_id = Number(req....
3
mprouve/snak3
2ad794b
src/components/vfx/ParticlesOverlay.styles.ts
TypeScript
www.github.com/mprouve/snak3/tree/main/src/components/vfx/ParticlesOverlay.styles.ts
https://raw.githubusercontent.com/mprouve/snak3/2ad794b/src/components/vfx/ParticlesOverlay.styles.ts
mprouve/snak3 2ad794b src/components/vfx/ParticlesOverlay.styles.ts
true
200
426
import { styled } from '@mui/material'; interface RootProps { id: string; } const Root = styled('div')<RootProps>` display: block; width: 100%; height: 100%; box-sizing: border-box; position: absolute; top: 0; left: 0; overflow: hidden; ${({ id }) => ` #${id} { position: absolute; ...
0
RutiRozenberg/Business-Management
0270563
backend/src/controllers/business.controller.ts
TypeScript
www.github.com/RutiRozenberg/Business-Management/tree/main/backend/src/controllers/business.controller.ts
https://raw.githubusercontent.com/RutiRozenberg/Business-Management/0270563/backend/src/controllers/business.controller.ts
RutiRozenberg/Business-Management 0270563 backend/src/controllers/business.controller.ts
true
200
5,526
import { Business, BusinessDetails } from "../models/business.model" import * as businessBl from "../bl/business.bl" import { Request, Response } from 'express'; /** * @swagger * tags: * name: Business * description: APIs for managing business details */ /** * @swagger * components: * schemas: * Bu...
3
zViper26/sb1-z35rbw
4b6b708
src/hooks/useScrollAnimation.ts
TypeScript
www.github.com/zViper26/sb1-z35rbw/tree/main/src/hooks/useScrollAnimation.ts
https://raw.githubusercontent.com/zViper26/sb1-z35rbw/4b6b708/src/hooks/useScrollAnimation.ts
zViper26/sb1-z35rbw 4b6b708 src/hooks/useScrollAnimation.ts
true
200
754
import { useEffect, useRef } from 'react'; export const useScrollAnimation = () => { const observerRef = useRef<IntersectionObserver | null>(null); useEffect(() => { observerRef.current = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { e...
7
faroukbs/ThundersPi-Angular
7f58720
src/app/services/product.service.ts
TypeScript
www.github.com/faroukbs/ThundersPi-Angular/tree/main/src/app/services/product.service.ts
https://raw.githubusercontent.com/faroukbs/ThundersPi-Angular/7f58720/src/app/services/product.service.ts
faroukbs/ThundersPi-Angular 7f58720 src/app/services/product.service.ts
true
200
3,481
import { Observable } from 'rxjs'; import { HttpClient, HttpHeaders, HttpEvent, HttpRequest, } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Product } from '../models/product'; import { ProductComment } from '../models/comment'; imp...
1
bandhanRoy/property-rental
35423cf
src/api/contracts/dto/update-contract.dto.ts
TypeScript
www.github.com/bandhanRoy/property-rental/tree/main/src/api/contracts/dto/update-contract.dto.ts
https://raw.githubusercontent.com/bandhanRoy/property-rental/35423cf/src/api/contracts/dto/update-contract.dto.ts
bandhanRoy/property-rental 35423cf src/api/contracts/dto/update-contract.dto.ts
true
200
988
import { OmitType, PartialType } from '@nestjs/mapped-types'; import { CreateContractDto } from './create-contract.dto'; import { IsArray, IsUUID, NotEquals, ValidateIf, ValidateNested, } from 'class-validator'; import { Type } from 'class-transformer'; class ArrayOfUUIDsUpdateDto { @IsArray() @IsUUID('4...
3
BarthMedia/StudioForm
12250da
src/ts/helper/view/focus.ts
TypeScript
www.github.com/BarthMedia/StudioForm/tree/main/src/ts/helper/view/focus.ts
https://raw.githubusercontent.com/BarthMedia/StudioForm/12250da/src/ts/helper/view/focus.ts
BarthMedia/StudioForm 12250da src/ts/helper/view/focus.ts
true
200
3,516
// Imports import * as utils from './utils'; import * as modelUtils from '../model/utils'; import * as controllerUtils from '../controller/utils'; import * as model from '../../model'; import * as config from '../../config'; // + utils + // Global ghostFocus let focusGhost: SFGhostFocus; // Event listener // Add on...
0
Business-card-Please/FrontEnd
f5164af
styles/PostStyle.ts
TypeScript
www.github.com/Business-card-Please/FrontEnd/tree/main/styles/PostStyle.ts
https://raw.githubusercontent.com/Business-card-Please/FrontEnd/f5164af/styles/PostStyle.ts
Business-card-Please/FrontEnd f5164af styles/PostStyle.ts
true
200
6,145
import styled from "styled-components"; import { DivScreenProps } from "./StyleInterfacer"; export const CommunityContainer = styled.div` width: 100%; max-width: 768px; height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; `; export const ContentContain...
7
SereqG/notez-app
7cd7567
utlis/files/get/AllFiles/route.ts
TypeScript
www.github.com/SereqG/notez-app/tree/main/utlis/files/get/AllFiles/route.ts
https://raw.githubusercontent.com/SereqG/notez-app/7cd7567/utlis/files/get/AllFiles/route.ts
SereqG/notez-app 7cd7567 utlis/files/get/AllFiles/route.ts
true
200
478
'use server' export const getAllFilesFromGroup = async (groupId: string) => { const response = await fetch( `https://notez-backend-97b9381de6f9.herokuapp.com/getAll/files/${groupId}`, { cache: 'no-cache', next: { tags: ['get files'] }, } ) if (!response.ok) { throw new Error( `...
1
shbcrick/VN_Assessment
82acc4b
src/types/typeDefs.ts
TypeScript
www.github.com/shbcrick/VN_Assessment/tree/main/src/types/typeDefs.ts
https://raw.githubusercontent.com/shbcrick/VN_Assessment/82acc4b/src/types/typeDefs.ts
shbcrick/VN_Assessment 82acc4b src/types/typeDefs.ts
true
200
1,085
export const typeDefs = `#graphql type Mutation { signupUser(data: RegisterInput): User! login(email: String!, password: String!): User! deleteMovie(id: Int!): Movie updateMovie(data: MovieUpdateInput! ): Movie createMovie(movieName: String!, description: String!, directorName: String!, releas...
0
AlvesPHGA/study-typeScript
0cc57d2
stage03-ObjectInterfaces/instanceof-dom.ts
TypeScript
www.github.com/AlvesPHGA/study-typeScript/tree/main/stage03-ObjectInterfaces/instanceof-dom.ts
https://raw.githubusercontent.com/AlvesPHGA/study-typeScript/0cc57d2/stage03-ObjectInterfaces/instanceof-dom.ts
AlvesPHGA/study-typeScript 0cc57d2 stage03-ObjectInterfaces/instanceof-dom.ts
true
200
358
const links = document.querySelectorAll('.link'); function aviso() { alert('Hello world!'); } function changeColor(element: HTMLAnchorElement) { element.style.color = 'red'; } links.forEach((item) => { if (item instanceof HTMLAnchorElement) changeColor(item); if (item instanceof HTMLButtonElement) item....
3
angelo16Ra/BodegaValidado
6312750
BodegaYaninAlmacen/src/app/pages/service/producto.service.ts
TypeScript
www.github.com/angelo16Ra/BodegaValidado/tree/main/BodegaYaninAlmacen/src/app/pages/service/producto.service.ts
https://raw.githubusercontent.com/angelo16Ra/BodegaValidado/6312750/BodegaYaninAlmacen/src/app/pages/service/producto.service.ts
angelo16Ra/BodegaValidado 6312750 BodegaYaninAlmacen/src/app/pages/service/producto.service.ts
true
200
1,066
import { HttpClient } from '@angular/common/http'; import { CrudService } from '../../modules/shared/services/crud.service'; import { RequestProducto } from '../models/producto-request.model'; import { ResponseProducto } from '../models/producto-response.model'; import { Injectable } from '@angular/core'; import { urlC...
7
Illusion-97/PresentationCDA
006374f
src/app/pages/home/home.component.ts
TypeScript
www.github.com/Illusion-97/PresentationCDA/tree/main/src/app/pages/home/home.component.ts
https://raw.githubusercontent.com/Illusion-97/PresentationCDA/006374f/src/app/pages/home/home.component.ts
Illusion-97/PresentationCDA 006374f src/app/pages/home/home.component.ts
true
200
372
import {Component, OnInit} from '@angular/core'; import {Info, Infos} from "../../statics/infos"; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { topics: Info[]; constructor() { this.topics = ...
1
musecode-dev/musedoc
60d05ec
src/node/plugin-mdx/rehypePlugins/shiki.ts
TypeScript
www.github.com/musecode-dev/musedoc/tree/main/src/node/plugin-mdx/rehypePlugins/shiki.ts
https://raw.githubusercontent.com/musecode-dev/musedoc/60d05ec/src/node/plugin-mdx/rehypePlugins/shiki.ts
musecode-dev/musedoc 60d05ec src/node/plugin-mdx/rehypePlugins/shiki.ts
true
200
1,260
import { visit } from 'unist-util-visit'; import { Plugin } from 'unified'; import { Text, Root } from 'hast'; import { fromHtml } from 'hast-util-from-html'; import shiki from 'shiki'; interface Options { highlighter: shiki.Highlighter; } export const rehypePluginShiki: Plugin<[Options], Root> = ({ highlighter }) ...
3
tagiramdark/net
b227a3a
Front/src/app/modules/login/login.component.ts
TypeScript
www.github.com/tagiramdark/net/tree/main/Front/src/app/modules/login/login.component.ts
https://raw.githubusercontent.com/tagiramdark/net/b227a3a/Front/src/app/modules/login/login.component.ts
tagiramdark/net b227a3a Front/src/app/modules/login/login.component.ts
true
200
1,603
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { of } from 'rxjs'; import { catchError, finalize } from 'rxjs/operators'; import { AuthService } from 'src/app/services/auth.service'; @Component({ ...
0
taichi-de/Nihongo-Meister
46b8826
app/api/user/route.ts
TypeScript
www.github.com/taichi-de/Nihongo-Meister/tree/main/app/api/user/route.ts
https://raw.githubusercontent.com/taichi-de/Nihongo-Meister/46b8826/app/api/user/route.ts
taichi-de/Nihongo-Meister 46b8826 app/api/user/route.ts
true
200
766
import { NextResponse } from "next/server"; import { PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); export async function main() { try { await prisma.$connect(); } catch (err) { return Error("DB connection failed"); } } export const GET = async (req: Request, res: NextResponse...
7
swerdfish/study-buddy-2.0
e9b6cad
study-buddy-frontend/src/app/store/reducers/auth.reducer.ts
TypeScript
www.github.com/swerdfish/study-buddy-2.0/tree/main/study-buddy-frontend/src/app/store/reducers/auth.reducer.ts
https://raw.githubusercontent.com/swerdfish/study-buddy-2.0/e9b6cad/study-buddy-frontend/src/app/store/reducers/auth.reducer.ts
swerdfish/study-buddy-2.0 e9b6cad study-buddy-frontend/src/app/store/reducers/auth.reducer.ts
true
200
1,187
import { User } from 'src/app/model/user.model'; import { AuthActionTypes, AuthActions } from '../actions/auth.actions'; export const authFeatureKey = 'auth'; export interface AuthState { user: User; token: string; isLoggedIn: boolean; loading: boolean; error: string; } export const initialAuthState: Aut...
1
marta-anna-vill/nabelisku
35fc9a3
src/data/master/social/data.ts
TypeScript
www.github.com/marta-anna-vill/nabelisku/tree/main/src/data/master/social/data.ts
https://raw.githubusercontent.com/marta-anna-vill/nabelisku/35fc9a3/src/data/master/social/data.ts
marta-anna-vill/nabelisku 35fc9a3 src/data/master/social/data.ts
true
200
645
import { ISocial } from '../../../modules/master/social/Social'; import { IconName } from '../../../modules/utilities/icon/Icon'; import { TContentItem } from '../../manager/manager'; export const DATA_INSTAGRAM_URL = `https://www.instagram.com/penzion_na_belisku/`; export const DATA_SOCIAL: TContentItem<ISocial> = {...
0
yoVoy-pf/yoVoy
7314b67
client/src/slices/authentication/authSlice.ts
TypeScript
www.github.com/yoVoy-pf/yoVoy/tree/main/client/src/slices/authentication/authSlice.ts
https://raw.githubusercontent.com/yoVoy-pf/yoVoy/7314b67/client/src/slices/authentication/authSlice.ts
yoVoy-pf/yoVoy 7314b67 client/src/slices/authentication/authSlice.ts
true
200
830
import { createSlice } from "@reduxjs/toolkit"; import { State } from "../../redux/store/store"; const authSlice = createSlice({ name: 'auth', initialState:{user: null, token: null, authFetched: false}, reducers:{ setCredentials: (state, action) => { const {user, accessToken} = action.payload sta...
3
GuilhermeEtiene/NestJS-whatsapp-messenger
cf788c6
src/whatsapp/whatsapp.service.ts
TypeScript
www.github.com/GuilhermeEtiene/NestJS-whatsapp-messenger/tree/main/src/whatsapp/whatsapp.service.ts
https://raw.githubusercontent.com/GuilhermeEtiene/NestJS-whatsapp-messenger/cf788c6/src/whatsapp/whatsapp.service.ts
GuilhermeEtiene/NestJS-whatsapp-messenger cf788c6 src/whatsapp/whatsapp.service.ts
true
200
10,227
import { ConflictException, Injectable, NotFoundException, } from '@nestjs/common'; import { makeWASocket, DisconnectReason, useMultiFileAuthState, WASocket, ConnectionState, } from '@whiskeysockets/baileys'; import { Boom } from '@hapi/boom'; import * as qrcode from 'qrcode'; import { v4 as uuidv4 } fr...
7
bill-7/aoc22
bea3e91
src/utils.ts
TypeScript
www.github.com/bill-7/aoc22/tree/main/src/utils.ts
https://raw.githubusercontent.com/bill-7/aoc22/bea3e91/src/utils.ts
bill-7/aoc22 bea3e91 src/utils.ts
true
200
706
import fs from "fs" export const read = (name: string) => { return fs.readFileSync("./data/" + name + ".txt", "utf8") } export const uniq = <T>(x: T, i: number, xs: T[]) => { return !xs.slice(i + 1).includes(x) } export const sum = (a: number, b: number) => a + b export const num = (s: string) => parseInt(s) e...
1
CodeWarriorr/gasless-transactions
3e66978
test/opengsnForwarder.test.ts
TypeScript
www.github.com/CodeWarriorr/gasless-transactions/tree/main/test/opengsnForwarder.test.ts
https://raw.githubusercontent.com/CodeWarriorr/gasless-transactions/3e66978/test/opengsnForwarder.test.ts
CodeWarriorr/gasless-transactions 3e66978 test/opengsnForwarder.test.ts
true
200
3,616
import { expect } from 'chai'; import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'; import { deployments, ethers } from 'hardhat'; import { Forwarder, MessageKeeper } from '../typechain-types'; import { getSigners } from '../utils/signers'; import { blob } from 'stream/consumers'; const signSaveMessa...
0
eimarmichellex98/G00374109
aeafdae
src/app/charactermanager.service.ts
TypeScript
www.github.com/eimarmichellex98/G00374109/tree/main/src/app/charactermanager.service.ts
https://raw.githubusercontent.com/eimarmichellex98/G00374109/aeafdae/src/app/charactermanager.service.ts
eimarmichellex98/G00374109 aeafdae src/app/charactermanager.service.ts
true
200
454
import { Injectable } from '@angular/core'; import { HttpClient } from "@angular/common/http" import { Observable } from "rxjs"; @Injectable({ providedIn: 'root' }) export class CharactermanagerService { public Characters: any; constructor( private HttpClient: HttpClient ) { } fetchCharacters(){ return t...
3
geethuaspire/Ecommerce
7106524
src/app/Home/home.module.ts
TypeScript
www.github.com/geethuaspire/Ecommerce/tree/main/src/app/Home/home.module.ts
https://raw.githubusercontent.com/geethuaspire/Ecommerce/7106524/src/app/Home/home.module.ts
geethuaspire/Ecommerce 7106524 src/app/Home/home.module.ts
true
200
529
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { AppRoutingModule } from '../app-routing.module'; import { HomeComponent } from './home.component'; import { MatListModule } from '@angular/material/list'; import { NavbarModule } from '../navbar/navbar.module'; @NgModule...
1
shivam06131/performance-api
89b10bc
config/config.ts
TypeScript
www.github.com/shivam06131/performance-api/tree/main/config/config.ts
https://raw.githubusercontent.com/shivam06131/performance-api/89b10bc/config/config.ts
shivam06131/performance-api 89b10bc config/config.ts
true
200
332
import config from './envData'; import dotenv from 'dotenv'; dotenv.config(); const env = process.env.NODE_ENV || 'development'; if (env === 'development' || env === 'test') { const envConfig = config[env]; // console.log(envConfig); Object.keys(envConfig).forEach((key) => { process.env[key] = envConfig[ke...
0
rafalbodanka/todo_app
38207ef
frontend/src/redux/store.ts
TypeScript
www.github.com/rafalbodanka/todo_app/tree/main/frontend/src/redux/store.ts
https://raw.githubusercontent.com/rafalbodanka/todo_app/38207ef/frontend/src/redux/store.ts
rafalbodanka/todo_app 38207ef frontend/src/redux/store.ts
true
200
474
import { configureStore } from '@reduxjs/toolkit' import userReducer from './user'; import uiReducer from './isMobile' import tablesReducer from './tables' import currentTableReducer from './currentTable'; export const store = configureStore({ reducer: { user: userReducer, ui: uiReducer, tables: tablesReduce...
7
24HeuresINSA/Overbookd
22fac23
libraries/pdf-book/src/pdf-book.ts
TypeScript
www.github.com/24HeuresINSA/Overbookd/tree/main/libraries/pdf-book/src/pdf-book.ts
https://raw.githubusercontent.com/24HeuresINSA/Overbookd/22fac23/libraries/pdf-book/src/pdf-book.ts
24HeuresINSA/Overbookd 22fac23 libraries/pdf-book/src/pdf-book.ts
true
200
2,951
import { degrees, PageSizes, PDFDocument, type PDFEmbeddedPage, type PDFPage, } from "pdf-lib"; export type BookOptions = { outerMargin: number; topMargin: number; bottomMargin: number; }; const defaultBookOptions = { outerMargin: 10, topMargin: 30, bottomMargin: 30, }; type PageArrangement = {...
3
Lashvardi/services
7f39ff9
src/app/app.component.ts
TypeScript
www.github.com/Lashvardi/services/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/Lashvardi/services/7f39ff9/src/app/app.component.ts
Lashvardi/services 7f39ff9 src/app/app.component.ts
true
200
1,581
import { Component } from '@angular/core'; import { LoggerService } from './services/logger.service'; import { DataService } from './services/data.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrl: './app.component.css', }) export...
1
fnxt-js/core
1e4941d
spec/core/array/operator/averageBy.spec.ts
TypeScript
www.github.com/fnxt-js/core/tree/main/spec/core/array/operator/averageBy.spec.ts
https://raw.githubusercontent.com/fnxt-js/core/1e4941d/spec/core/array/operator/averageBy.spec.ts
fnxt-js/core 1e4941d spec/core/array/operator/averageBy.spec.ts
true
200
305
import {averageBy} from '../../../../src/array'; import {expect} from 'chai'; describe('averageBy', () => { it('should averageBy', () => { const array = ['aa', 'a', 'aaaa', 'aaa',]; const fn = averageBy<string>((p) => p.length); expect(fn(array)).to.approximately(2.5, 0.000001); }); });
0
ionian-aries/lcap_process_components_vue_h5
c666b60
ide/process/h5/utils.ts
TypeScript
www.github.com/ionian-aries/lcap_process_components_vue_h5/tree/main/ide/process/h5/utils.ts
https://raw.githubusercontent.com/ionian-aries/lcap_process_components_vue_h5/c666b60/ide/process/h5/utils.ts
ionian-aries/lcap_process_components_vue_h5 c666b60 ide/process/h5/utils.ts
true
200
587
import * as naslTypes from '@nasl/ast-mini'; import type { ProcessV2 } from '../index'; import { logicNamespace } from '../../../src/components/utils'; export function genProcessV2LaunchLogic( entityFullName: string, process: ProcessV2, nameGroup: any, ) { return `export function ${nameGroup.processLaunch}(par...
3
eldarikhachidze/Astrology-starcounter
cfa6644
src/app/features/main-layout/components/footer/footer.component.ts
TypeScript
www.github.com/eldarikhachidze/Astrology-starcounter/tree/main/src/app/features/main-layout/components/footer/footer.component.ts
https://raw.githubusercontent.com/eldarikhachidze/Astrology-starcounter/cfa6644/src/app/features/main-layout/components/footer/footer.component.ts
eldarikhachidze/Astrology-starcounter cfa6644 src/app/features/main-layout/components/footer/footer.component.ts
true
200
1,951
import {Component, OnDestroy, OnInit} from '@angular/core'; import {AuthService} from "../../../../core/services/auth.service"; import {Subject, takeUntil} from "rxjs"; @Component({ selector: 'app-footer', templateUrl: './footer.component.html', styleUrls: ['./footer.component.scss'] }) export class FooterCompon...
7
paweljanicki/nft-marketplace
a545752
backend/indexer/indexers/EnglishAuction/getExistingBids.ts
TypeScript
www.github.com/paweljanicki/nft-marketplace/tree/main/backend/indexer/indexers/EnglishAuction/getExistingBids.ts
https://raw.githubusercontent.com/paweljanicki/nft-marketplace/a545752/backend/indexer/indexers/EnglishAuction/getExistingBids.ts
paweljanicki/nft-marketplace a545752 backend/indexer/indexers/EnglishAuction/getExistingBids.ts
true
200
1,051
import { Contract, ethers } from "ethers"; import { Database } from "../../types/supabase"; import { SupabaseClient } from "@supabase/supabase-js"; export async function getExistingBids({ englishAuctionContract, supabase, provider, }: { englishAuctionContract: Contract; supabase: SupabaseClient<Database>; ...
1
Chonthee/ticketing
62e4379
orders/src/app.ts
TypeScript
www.github.com/Chonthee/ticketing/tree/main/orders/src/app.ts
https://raw.githubusercontent.com/Chonthee/ticketing/62e4379/orders/src/app.ts
Chonthee/ticketing 62e4379 orders/src/app.ts
true
200
902
import express from "express"; import 'express-async-errors'; import cookieSession from "cookie-session"; import { errorHandler, NotFoundError, currentUser } from "@kaawtangtickets/common"; import { deleteOrderRouter } from "./routes/delete"; import { indexOrderRouter } from "./routes/index"; import { newOrderRouter }...
4
CesarChaMal/eRestaurantApp
e09b1a4
src/main/webapp/app/entities/state/list/state.component.spec.ts
TypeScript
www.github.com/CesarChaMal/eRestaurantApp/tree/main/src/main/webapp/app/entities/state/list/state.component.spec.ts
https://raw.githubusercontent.com/CesarChaMal/eRestaurantApp/e09b1a4/src/main/webapp/app/entities/state/list/state.component.spec.ts
CesarChaMal/eRestaurantApp e09b1a4 src/main/webapp/app/entities/state/list/state.component.spec.ts
true
200
1,622
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpHeaders, HttpResponse } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ActivatedRoute } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; im...
2
dylanpilsner/ecommerce-frontend
04bb471
lib/api.ts
TypeScript
www.github.com/dylanpilsner/ecommerce-frontend/tree/main/lib/api.ts
https://raw.githubusercontent.com/dylanpilsner/ecommerce-frontend/04bb471/lib/api.ts
dylanpilsner/ecommerce-frontend 04bb471 lib/api.ts
true
200
2,285
const BASE_URL = "https://ecommerce-backend-indol.vercel.app/api"; export async function fetchApi(input: RequestInfo, options?: any) { const url = BASE_URL + input; const newOptions = options || {}; newOptions.headers ||= {}; newOptions.headers["content-type"] = "application/json"; const token = getSavedT...
3
rythmrana2/AngularProject
75c0e88
src/app/shared/dropdown.directive.ts
TypeScript
www.github.com/rythmrana2/AngularProject/tree/main/src/app/shared/dropdown.directive.ts
https://raw.githubusercontent.com/rythmrana2/AngularProject/75c0e88/src/app/shared/dropdown.directive.ts
rythmrana2/AngularProject 75c0e88 src/app/shared/dropdown.directive.ts
true
200
740
import { Directive, ElementRef, HostBinding, HostListener } from "@angular/core"; @Directive({ selector: '[appDropdown]' }) export class DropdownDirective{ @HostBinding('class.open') isOpen: boolean = false; // @HostListener('click') toggleOpen() { // this.isOpen=!this.isOpen; // } // if w...
0
Wanted-git/customer-details
023af3f
src/app/customer-list/customer-list.component.ts
TypeScript
www.github.com/Wanted-git/customer-details/tree/main/src/app/customer-list/customer-list.component.ts
https://raw.githubusercontent.com/Wanted-git/customer-details/023af3f/src/app/customer-list/customer-list.component.ts
Wanted-git/customer-details 023af3f src/app/customer-list/customer-list.component.ts
true
200
948
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { CustomerServiceService } from '../service/customer-service.service'; @Component({ selector: 'app-customer-list', templateUrl: './customer-list.component.html', styleUrls: ['./customer-list.component.scss'] }) ex...
6
aiirononeko/nest-tutorial
1ccf1ee
src/cats.controller.ts
TypeScript
www.github.com/aiirononeko/nest-tutorial/tree/main/src/cats.controller.ts
https://raw.githubusercontent.com/aiirononeko/nest-tutorial/1ccf1ee/src/cats.controller.ts
aiirononeko/nest-tutorial 1ccf1ee src/cats.controller.ts
true
200
380
import { Body, Controller, Get, Param, Post } from '@nestjs/common'; import { CreateCatDto } from './create-cat.dto'; @Controller('cats') export class CatsController { @Post() async create(@Body() createCatDto: CreateCatDto) { return createCatDto.name; } @Get(':id') findOne(@Param('id') id: string): str...
5
zobkazi/job-board-api
018f516
src/modules/v2/apiKeys/apiKey.model.ts
TypeScript
www.github.com/zobkazi/job-board-api/tree/main/src/modules/v2/apiKeys/apiKey.model.ts
https://raw.githubusercontent.com/zobkazi/job-board-api/018f516/src/modules/v2/apiKeys/apiKey.model.ts
zobkazi/job-board-api 018f516 src/modules/v2/apiKeys/apiKey.model.ts
true
200
390
import { Schema, model, Document } from "mongoose"; interface IApiKey extends Document { key: string; createdAt: Date; updatedAt: Date; } const apiKeySchema = new Schema<IApiKey>( { key: { type: String, required: true, unique: true, }, }, { timestamps: true, } ); const Api...
7
Daniel-Kav/restaurant_db
7d18664
src/users/user.controller.ts
TypeScript
www.github.com/Daniel-Kav/restaurant_db/tree/main/src/users/user.controller.ts
https://raw.githubusercontent.com/Daniel-Kav/restaurant_db/7d18664/src/users/user.controller.ts
Daniel-Kav/restaurant_db 7d18664 src/users/user.controller.ts
true
200
4,871
import { Context } from "hono"; import { usersService, getUserService, createUserService, updateUserService, deleteUserService, searchUsersService, getUsersByOrderService, getAddressesByUserService, getRestaurantsByOwnerService } from "./user.service"; export const listUsers = async (c: Context) => { try { ...
4
Scarlett-Cococo/Interactive-Web
6e461c0
node_modules/@loaders.gl/core/src/lib/api/parse-in-batches.ts
TypeScript
www.github.com/Scarlett-Cococo/Interactive-Web/tree/main/node_modules/@loaders.gl/core/src/lib/api/parse-in-batches.ts
https://raw.githubusercontent.com/Scarlett-Cococo/Interactive-Web/6e461c0/node_modules/%40loaders.gl/core/src/lib/api/parse-in-batches.ts
Scarlett-Cococo/Interactive-Web 6e461c0 node_modules/@loaders.gl/core/src/lib/api/parse-in-batches.ts
true
200
7,236
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import {isTable, makeBatchFromTable, type Batch} from '@loaders.gl/schema'; import type { Loader, LoaderWithParser, LoaderOptions, LoaderContext, BatchableDataType, LoaderOptionsType, LoaderBatchType, LoaderArrayOptionsT...
0
waitingsong/pgmq-js
08b5596
packages/pgmq-js/test/lib/50.msg-manager/50.msg.send.queues.test.ts
TypeScript
www.github.com/waitingsong/pgmq-js/tree/main/packages/pgmq-js/test/lib/50.msg-manager/50.msg.send.queues.test.ts
https://raw.githubusercontent.com/waitingsong/pgmq-js/08b5596/packages/pgmq-js/test/lib/50.msg-manager/50.msg.send.queues.test.ts
waitingsong/pgmq-js 08b5596 packages/pgmq-js/test/lib/50.msg-manager/50.msg.send.queues.test.ts
true
200
1,375
import assert from 'node:assert' import { fileShortPath } from '@waiting/shared-core' import { type SendOptions, Pgmq, genRandomName } from '##/index.js' import { dbConfig } from '#@/config.unittest.js' describe(fileShortPath(import.meta.url), () => { let mq: Pgmq const msg = { foo: 'bar', } const q1 = ...
3
Mehdi-Yanat/knock-admin
9080b31
utils/core/API/index.ts
TypeScript
www.github.com/Mehdi-Yanat/knock-admin/tree/main/utils/core/API/index.ts
https://raw.githubusercontent.com/Mehdi-Yanat/knock-admin/9080b31/utils/core/API/index.ts
Mehdi-Yanat/knock-admin 9080b31 utils/core/API/index.ts
true
200
9,739
import axios from "axios"; import type { ICheckout, ICheckoutIdAndKey, ILineItem, IProduct } from "types"; const throwIfResponseError = async (response: Response) => { if (!response.ok) { let errorMessage: string; const text = await response.text(); errorMessage = text; throw new Error(`Error, ${re...
6
aaquibmub/MotorPool-SPA
2aaad63
src/app/modules/incident/components/incident-category-list/incident-category-list.component.ts
TypeScript
www.github.com/aaquibmub/MotorPool-SPA/tree/main/src/app/modules/incident/components/incident-category-list/incident-category-list.component.ts
https://raw.githubusercontent.com/aaquibmub/MotorPool-SPA/2aaad63/src/app/modules/incident/components/incident-category-list/incident-category-list.component.ts
aaquibmub/MotorPool-SPA 2aaad63 src/app/modules/incident/components/incident-category-list/incident-category-list.component.ts
true
200
916
import { Location } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { UtilityService } from './../../../../helper/services/common/utility.service'; @Component({ selector: 'app-incident-category-list', templateUrl: './incident-category-lis...
7
Atalykis/JDR-Project-front
d583885
src/views/Board/use-board-tokens-iterator.ts
TypeScript
www.github.com/Atalykis/JDR-Project-front/tree/main/src/views/Board/use-board-tokens-iterator.ts
https://raw.githubusercontent.com/Atalykis/JDR-Project-front/d583885/src/views/Board/use-board-tokens-iterator.ts
Atalykis/JDR-Project-front d583885 src/views/Board/use-board-tokens-iterator.ts
true
200
920
import React, { useEffect, useMemo } from 'react'; import { io } from 'socket.io-client'; import { Queue } from './queue'; import type { TokenInput } from './use-board'; // export function useBoardTokensIterator(token: string) { // const socket = useMemo( // () => // io('http://localhost:3000/', { //...
5
sargisavetisyan/film
7a2dd8c
src/firebase-config.ts
TypeScript
www.github.com/sargisavetisyan/film/tree/main/src/firebase-config.ts
https://raw.githubusercontent.com/sargisavetisyan/film/7a2dd8c/src/firebase-config.ts
sargisavetisyan/film 7a2dd8c src/firebase-config.ts
true
200
667
import { initializeApp } from "firebase/app"; import { getFirestore } from "firebase/firestore"; import { getAuth } from "firebase/auth"; import { getStorage } from 'firebase/storage'; const firebaseConfig = { apiKey: "AIzaSyA5a9ExP6oTDdWnubJM30obURUNjpdq47Y", authDomain: "film-50aad.firebaseapp.com", proj...
1
Double-w-B/tic-tac-toe-game-TS
24e756b
src/ts/getComputerData.ts
TypeScript
www.github.com/Double-w-B/tic-tac-toe-game-TS/tree/main/src/ts/getComputerData.ts
https://raw.githubusercontent.com/Double-w-B/tic-tac-toe-game-TS/24e756b/src/ts/getComputerData.ts
Double-w-B/tic-tac-toe-game-TS 24e756b src/ts/getComputerData.ts
true
200
536
export interface ComputerObj { name: string; img: string; } export class getComputerData { url: string; constructor() { this.url = "https://randomuser.me/api/"; } async fetchData(): Promise<ComputerObj> { const response = await fetch(this.url); const data = await response.json(); const co...
4
DianaVilchez/Bloomme-Backend
7d3c37d
src/routes/index.routes.ts
TypeScript
www.github.com/DianaVilchez/Bloomme-Backend/tree/main/src/routes/index.routes.ts
https://raw.githubusercontent.com/DianaVilchez/Bloomme-Backend/7d3c37d/src/routes/index.routes.ts
DianaVilchez/Bloomme-Backend 7d3c37d src/routes/index.routes.ts
true
200
1,036
import { Application} from "express"; import { quizCategoryRouter } from "./quizCategory.routes"; import { userRouter } from "./user.routes"; import { authRouter } from "./auth.routes"; import { rewardRouter } from "./reward.routes"; import { userRewardRouter } from "./userReward"; import { pathRouter } from "./path.ro...
0
DavideMercuri/fifa_league_app
056f6bc
src/app/views/team-detail/team-detail.component.ts
TypeScript
www.github.com/DavideMercuri/fifa_league_app/tree/main/src/app/views/team-detail/team-detail.component.ts
https://raw.githubusercontent.com/DavideMercuri/fifa_league_app/056f6bc/src/app/views/team-detail/team-detail.component.ts
DavideMercuri/fifa_league_app 056f6bc src/app/views/team-detail/team-detail.component.ts
true
200
8,990
import { HttpClient, HttpParams } from '@angular/common/http'; import { AfterViewInit, Component, Inject, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { faUser, faShieldHalved, faPenToSquare, faTrashCan, faIdCard, faStar, faSackDol...
2
pedrojpx/clean-arch
e732882
src/infrastructure/api/routes/customer.route.ts
TypeScript
www.github.com/pedrojpx/clean-arch/tree/main/src/infrastructure/api/routes/customer.route.ts
https://raw.githubusercontent.com/pedrojpx/clean-arch/e732882/src/infrastructure/api/routes/customer.route.ts
pedrojpx/clean-arch e732882 src/infrastructure/api/routes/customer.route.ts
true
200
1,344
import express, {Request, Response} from "express" import CreateCustomerUseCase from "../../../usecase/customer/create/create.customer.usecase" import CustomerRepository from "../../customer/repository/sequelize/customer.repository" import ListCustomerUseCase from "../../../usecase/customer/list/list.customer.usecase" ...
3