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
kiku19/WOMS
e8cc08e
frontend/src/app/add-contractor/add-contractor.component.ts
TypeScript
www.github.com/kiku19/WOMS/tree/main/frontend/src/app/add-contractor/add-contractor.component.ts
https://raw.githubusercontent.com/kiku19/WOMS/e8cc08e/frontend/src/app/add-contractor/add-contractor.component.ts
kiku19/WOMS e8cc08e frontend/src/app/add-contractor/add-contractor.component.ts
true
200
2,234
import { Component } from '@angular/core'; import { FormControl, FormGroup, FormGroupDirective, FormsModule, NgForm, ReactiveFormsModule, Validators, } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatFormFieldModule } from '@angular/material/form-field'; impo...
1
Prakashrathod15/Assigment12
f40de2a
src/app/components/assigment3/assigment3.component.spec.ts
TypeScript
www.github.com/Prakashrathod15/Assigment12/tree/main/src/app/components/assigment3/assigment3.component.spec.ts
https://raw.githubusercontent.com/Prakashrathod15/Assigment12/f40de2a/src/app/components/assigment3/assigment3.component.spec.ts
Prakashrathod15/Assigment12 f40de2a src/app/components/assigment3/assigment3.component.spec.ts
true
200
629
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { Assigment3Component } from './assigment3.component'; describe('Assigment3Component', () => { let component: Assigment3Component; let fixture: ComponentFixture<Assigment3Component>; beforeEach(async () => { await TestBed.configureTe...
0
Emmendieta/Portfolio
2a56c82
FrontEnd/portfolio/src/app/components/banner/banner.component.ts
TypeScript
www.github.com/Emmendieta/Portfolio/tree/main/FrontEnd/portfolio/src/app/components/banner/banner.component.ts
https://raw.githubusercontent.com/Emmendieta/Portfolio/2a56c82/FrontEnd/portfolio/src/app/components/banner/banner.component.ts
Emmendieta/Portfolio 2a56c82 FrontEnd/portfolio/src/app/components/banner/banner.component.ts
true
200
1,330
import { Component, OnInit } from '@angular/core'; import { Person } from '../../models/person.model'; import { PersonService } from '../../services/person.service'; import { ActivatedRoute, Router } from '@angular/router'; import { TokenService } from '../../services/token.service'; @Component({ selector: 'app-bann...
3
i-amWin/game-production
517d0fc
server/src/db/seed.ts
TypeScript
www.github.com/i-amWin/game-production/tree/main/server/src/db/seed.ts
https://raw.githubusercontent.com/i-amWin/game-production/517d0fc/server/src/db/seed.ts
i-amWin/game-production 517d0fc server/src/db/seed.ts
true
200
847
import 'dotenv/config'; import { CONSTANTS } from '@/config/constants'; import { prisma } from '@/db'; async function main() { // Create Admin await prisma.user.create({ data: { name: 'Admin', phone: '0000000000', password: 'admin123', referralCode: `${CONSTANTS.PREFIX}000001`, ...
4
Kimiru/2DGameEngine
fa9eeca
js/geometry/HermiteSpline.d.ts
TypeScript
www.github.com/Kimiru/2DGameEngine/tree/main/js/geometry/HermiteSpline.d.ts
https://raw.githubusercontent.com/Kimiru/2DGameEngine/fa9eeca/js/geometry/HermiteSpline.d.ts
Kimiru/2DGameEngine fa9eeca js/geometry/HermiteSpline.d.ts
true
200
430
import { GameObject, Vector } from "../2DGameEngine.js"; import { CubicBezierSpline } from "./CubicBezierSpline.js"; export interface HermiteSplineNode { position: Vector; direction: Vector; } export declare class HermiteSpline extends GameObject { nodes: HermiteSplineNode[]; constructor(nodes: HermiteS...
7
Prodeko/Bilis-2
d1a7b7a
src/server/db/players/derivatives.ts
TypeScript
www.github.com/Prodeko/Bilis-2/tree/main/src/server/db/players/derivatives.ts
https://raw.githubusercontent.com/Prodeko/Bilis-2/d1a7b7a/src/server/db/players/derivatives.ts
Prodeko/Bilis-2 d1a7b7a src/server/db/players/derivatives.ts
true
200
563
import type { Player } from "@common/types"; import type { PlayerModel } from "@server/models"; import { getPlayers } from "."; const formatForSeasonal = async ( players: PlayerModel[], seasonal?: boolean, ): Promise<Player[]> => players.map((player) => ({ ...player.toJSON(), elo: seasonal ? player.seas...
1
gabrielep04/Reloj
582637a
src/app/app-routing.module.ts
TypeScript
www.github.com/gabrielep04/Reloj/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/gabrielep04/Reloj/582637a/src/app/app-routing.module.ts
gabrielep04/Reloj 582637a src/app/app-routing.module.ts
true
200
545
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: 'reloj', loadChildren: () => import('./reloj/reloj.module').then(m => m.RelojModule) }, { path: '', redirectTo: '/reloj/simple', pathMatch: 'full' }, // Redirección por defecto al rel...
0
navneetp1/booking-app
ce0459e
backend/src/routes/hotels.ts
TypeScript
www.github.com/navneetp1/booking-app/tree/main/backend/src/routes/hotels.ts
https://raw.githubusercontent.com/navneetp1/booking-app/ce0459e/backend/src/routes/hotels.ts
navneetp1/booking-app ce0459e backend/src/routes/hotels.ts
true
200
7,047
import express, {Request, Response} from "express"; import Hotel from "../models/hotel"; import { BookingType, HotelSearchResponse } from "../shared/types"; import { param, validationResult } from "express-validator"; import Stripe from 'stripe'; import verifyToken from "../middleware/auth"; const stripe = new Stripe(...
4
aopell/red-e
a259d0e
src/commands/elog.ts
TypeScript
www.github.com/aopell/red-e/tree/main/src/commands/elog.ts
https://raw.githubusercontent.com/aopell/red-e/a259d0e/src/commands/elog.ts
aopell/red-e a259d0e src/commands/elog.ts
true
200
6,324
import fs from "fs"; import { AttachmentBuilder, SlashCommandBuilder } from "discord.js"; import { EmojiText, formattedDateInTimezone, createChart } from "../util"; import type { RedEClient } from "../typedefs"; import type { Interaction, ChatInputCommandInteraction } from "discord.js"; export default { data: new...
3
thaian1234/livestream-app
991566f
middleware.ts
TypeScript
www.github.com/thaian1234/livestream-app/tree/main/middleware.ts
https://raw.githubusercontent.com/thaian1234/livestream-app/991566f/middleware.ts
thaian1234/livestream-app 991566f middleware.ts
true
200
2,565
import { cookies } from "next/headers"; import { NextRequest, NextResponse } from "next/server"; import { middlewareRoutes } from "./lib/configs/middleware.config"; import { ROUTES } from "./lib/configs/routes.config"; import { baseClient } from "./lib/shared/client"; import { AuthRouteType } from "./server/api/routes...
7
ValentinRodriguez/emperatriz-new-backend
2a82539
src/endpoints/auth/guards/user-role.guard.ts
TypeScript
www.github.com/ValentinRodriguez/emperatriz-new-backend/tree/main/src/endpoints/auth/guards/user-role.guard.ts
https://raw.githubusercontent.com/ValentinRodriguez/emperatriz-new-backend/2a82539/src/endpoints/auth/guards/user-role.guard.ts
ValentinRodriguez/emperatriz-new-backend 2a82539 src/endpoints/auth/guards/user-role.guard.ts
true
200
917
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { Observable } from 'rxjs'; import { META_ROLES } from '../decorators/role-protected.decorator'; import { Users } from '../entities/user.entity'; @Injectable() export class UserRoleGuard impleme...
4
mohamed-mashud/real-time-crypto-monitoring
285dc20
backend/src/handlers/checkPriceLimitHandler.ts
TypeScript
www.github.com/mohamed-mashud/real-time-crypto-monitoring/tree/main/backend/src/handlers/checkPriceLimitHandler.ts
https://raw.githubusercontent.com/mohamed-mashud/real-time-crypto-monitoring/285dc20/backend/src/handlers/checkPriceLimitHandler.ts
mohamed-mashud/real-time-crypto-monitoring 285dc20 backend/src/handlers/checkPriceLimitHandler.ts
true
200
1,876
import { redis } from "../index" import { alert } from "../routes/alert"; /** * requires coinId, current_price, last_updated_at_from_api * * if the value is exceeded or gone under the limit * it will add upto to the alert array messages and * removes the key from the redis client * * if its within no cha...
0
kaliyamoorthi/CourseOverview
1d2bddb
src/app/peo/peo.component.spec.ts
TypeScript
www.github.com/kaliyamoorthi/CourseOverview/tree/main/src/app/peo/peo.component.spec.ts
https://raw.githubusercontent.com/kaliyamoorthi/CourseOverview/1d2bddb/src/app/peo/peo.component.spec.ts
kaliyamoorthi/CourseOverview 1d2bddb src/app/peo/peo.component.spec.ts
true
200
571
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PeoComponent } from './peo.component'; describe('PeoComponent', () => { let component: PeoComponent; let fixture: ComponentFixture<PeoComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ imports: [PeoCo...
7
thiagoblauthferreira/CG-back-end
f6a1ca3
src/modules/management/management.service.ts
TypeScript
www.github.com/thiagoblauthferreira/CG-back-end/tree/main/src/modules/management/management.service.ts
https://raw.githubusercontent.com/thiagoblauthferreira/CG-back-end/f6a1ca3/src/modules/management/management.service.ts
thiagoblauthferreira/CG-back-end f6a1ca3 src/modules/management/management.service.ts
true
200
6,754
import { BadRequestException, ConflictException, Injectable, InternalServerErrorException, UnauthorizedException } from "@nestjs/common"; import { InjectRepository } from "@nestjs/typeorm"; import { Management } from "./entities/management.entity"; import { Repository } from "typeorm"; import { CreateManagementDTO } fr...
1
Lucas-Ed/Nlw-11-Setup
b1df791
server/src/routes.ts
TypeScript
www.github.com/Lucas-Ed/Nlw-11-Setup/tree/main/server/src/routes.ts
https://raw.githubusercontent.com/Lucas-Ed/Nlw-11-Setup/b1df791/server/src/routes.ts
Lucas-Ed/Nlw-11-Setup b1df791 server/src/routes.ts
true
200
3,337
import dayjs from "dayjs" import { FastifyInstance } from "fastify" import { z } from "zod" import { prisma } from "./lib/prisma" export async function appRoutes(app: FastifyInstance) { app.post('/habits', async (request) => { const createHabitBody = z.object({ title: z.string(), weekDays: z.array(...
3
KWIZERA-CALEB/tourism-site
9944e18
tailwind.config.ts
TypeScript
www.github.com/KWIZERA-CALEB/tourism-site/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/KWIZERA-CALEB/tourism-site/9944e18/tailwind.config.ts
KWIZERA-CALEB/tourism-site 9944e18 tailwind.config.ts
true
200
622
import type { Config } from "tailwindcss"; const config: Config = { content: [ "./pages/**/*.{js,ts,jsx,tsx,mdx}", "./components/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { screens: { sm: '640px', md: '784px', lg: '1024px', x...
4
pandaluk/restaurante-34
1992d6d
src/api/auth/AuthMiddleware.ts
TypeScript
www.github.com/pandaluk/restaurante-34/tree/main/src/api/auth/AuthMiddleware.ts
https://raw.githubusercontent.com/pandaluk/restaurante-34/1992d6d/src/api/auth/AuthMiddleware.ts
pandaluk/restaurante-34 1992d6d src/api/auth/AuthMiddleware.ts
true
200
2,039
import * as jwt from "jsonwebtoken"; import * as jwkToPEM from "jwk-to-pem"; import { NextFunction, Request, Response } from "express"; class CognitoVerifier { private jwksUrl: string; constructor() { this.jwksUrl = process.env.COGNITO_JWKS_URL || ""; } private async getSigningKey(kid: string...
0
ChocolateNao/stratz.js
f30bf25
src/enums/StratzLanguage.enum.ts
TypeScript
www.github.com/ChocolateNao/stratz.js/tree/main/src/enums/StratzLanguage.enum.ts
https://raw.githubusercontent.com/ChocolateNao/stratz.js/f30bf25/src/enums/StratzLanguage.enum.ts
ChocolateNao/stratz.js f30bf25 src/enums/StratzLanguage.enum.ts
true
200
510
export enum StratzLanguage { English = '0', Brazilian = '1', Bulgarian = '2', Czech = '3', Danish = '4', Dutch = '5', Finnish = '6', French = '7', German = '8', Greek = '9', Hungarian = '10', Italian = '11', Japanese = '12', Korean = '13', Koreana = '14', Norwegian = '15', Polish = '16...
7
Mori-kamiyama/mitarasi-government
2c0610c
src/component/firebaseConfig.ts
TypeScript
www.github.com/Mori-kamiyama/mitarasi-government/tree/main/src/component/firebaseConfig.ts
https://raw.githubusercontent.com/Mori-kamiyama/mitarasi-government/2c0610c/src/component/firebaseConfig.ts
Mori-kamiyama/mitarasi-government 2c0610c src/component/firebaseConfig.ts
true
200
505
import { initializeApp } from "firebase/app"; import { getFirestore } from "firebase/firestore"; const firebaseConfig = { apiKey: "AIzaSyCFMteif5MGQEUQpTXbPme69k8yBZjnr0A", authDomain: "mamorun-loc-6f5ee.firebaseapp.com", projectId: "mamorun-loc-6f5ee", storageBucket: "mamorun-loc-6f5ee.appspot.com", ...
3
lokesh771988/Playwright_Cucumber_Typescript
f13466c
src/test/utiles/logger.ts
TypeScript
www.github.com/lokesh771988/Playwright_Cucumber_Typescript/tree/main/src/test/utiles/logger.ts
https://raw.githubusercontent.com/lokesh771988/Playwright_Cucumber_Typescript/f13466c/src/test/utiles/logger.ts
lokesh771988/Playwright_Cucumber_Typescript f13466c src/test/utiles/logger.ts
true
200
557
import { transports, format } from 'winston' export function options(scenarioName:string){ return { transports:[ new transports.File({ filename: `test-result/logs/${scenarioName}/log.log`, level: 'info', format: format.combine( ...
1
Carbonkira/ng-service
b72ff3e
src/app/app.component.ts
TypeScript
www.github.com/Carbonkira/ng-service/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/Carbonkira/ng-service/b72ff3e/src/app/app.component.ts
Carbonkira/ng-service b72ff3e src/app/app.component.ts
true
200
965
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { CommonModule } from '@angular/common'; import { EmployeeService } from './employee.service'; import { ProductService } from './product.service'; @Component({ selector: 'app-root', standalone: true, imports: [Router...
4
laurenbrabbin/MerryCrypto
0b22f09
api/src/exchanges/exchanges.service.ts
TypeScript
www.github.com/laurenbrabbin/MerryCrypto/tree/main/api/src/exchanges/exchanges.service.ts
https://raw.githubusercontent.com/laurenbrabbin/MerryCrypto/0b22f09/api/src/exchanges/exchanges.service.ts
laurenbrabbin/MerryCrypto 0b22f09 api/src/exchanges/exchanges.service.ts
true
200
1,400
import { HttpService } from '@nestjs/axios'; import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { lastValueFrom, map } from 'rxjs'; @Injectable() export class ExchangesService { static API_ROOT = "https://api.coingecko.com/api/v3/exchanges"; constructor(private con...
0
tranhung36/medium-clone
6b687e3
src/app/auth/auth.module.ts
TypeScript
www.github.com/tranhung36/medium-clone/tree/main/src/app/auth/auth.module.ts
https://raw.githubusercontent.com/tranhung36/medium-clone/6b687e3/src/app/auth/auth.module.ts
tranhung36/medium-clone 6b687e3 src/app/auth/auth.module.ts
true
200
532
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CommonModule } from '@angular/common'; import { ReactiveFormsModule } from '@angular/forms'; import { RegisterComponent } from './components/register/register.component'; const routes: Routes = [ { path: '...
7
sillsdev/transcriber
a3a2f3c
src/crud/useArtifactType.ts
TypeScript
www.github.com/sillsdev/transcriber/tree/main/src/crud/useArtifactType.ts
https://raw.githubusercontent.com/sillsdev/transcriber/a3a2f3c/src/crud/useArtifactType.ts
sillsdev/transcriber a3a2f3c src/crud/useArtifactType.ts
true
200
4,973
import { useMemo, useState } from 'react'; import { useGlobal } from '../context/GlobalContext'; import { IState, IArtifactTypeStrings, ArtifactType, MediaFile, ArtifactTypeD, } from '../model'; import { RecordKeyMap, RecordTransformBuilder } from '@orbit/records'; import localStrings from '../selector/locali...
3
abrigoni/PNTDF-App-Thesis
e948c7b
src/services/SenderosService.ts
TypeScript
www.github.com/abrigoni/PNTDF-App-Thesis/tree/main/src/services/SenderosService.ts
https://raw.githubusercontent.com/abrigoni/PNTDF-App-Thesis/e948c7b/src/services/SenderosService.ts
abrigoni/PNTDF-App-Thesis e948c7b src/services/SenderosService.ts
true
200
1,112
import RestApiBaseService, {ApiResponse} from '@/services/RestApiBaseService'; import config from '@/config/ConfigVariables'; class SenderosService extends RestApiBaseService { constructor() { super({ baseURL: config.API_BASE_URL, headers: { 'Cache-Control': 'no-cache', }, }); } ...
1
mateustc/quali-check-app
f94d64e
src/pages/agendamento/agendamento.page.ts
TypeScript
www.github.com/mateustc/quali-check-app/tree/main/src/pages/agendamento/agendamento.page.ts
https://raw.githubusercontent.com/mateustc/quali-check-app/f94d64e/src/pages/agendamento/agendamento.page.ts
mateustc/quali-check-app f94d64e src/pages/agendamento/agendamento.page.ts
true
200
2,254
import { ModalController } from '@ionic/angular'; import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Autenticacao } from '@quali-check/domains'; import { AgendamentosService } from 'core/agendamentos/agendamentos.service'; import { AgendamentoInfoModalComponent...
4
Dmtreaqq/BACKEND-COURSE
b5a382c
__tests__/api/videos/videos.api.negative.test.ts
TypeScript
www.github.com/Dmtreaqq/BACKEND-COURSE/tree/main/__tests__/api/videos/videos.api.negative.test.ts
https://raw.githubusercontent.com/Dmtreaqq/BACKEND-COURSE/b5a382c/__tests__/api/videos/videos.api.negative.test.ts
Dmtreaqq/BACKEND-COURSE b5a382c __tests__/api/videos/videos.api.negative.test.ts
true
200
2,622
import {agent} from 'supertest' import {app} from '../../../src/app' import { CONFIG } from "../../../src/config"; import { CreateVideoInputModel } from "../../../src/models/CreateVideoInputModel"; import { HTTP_STATUSES, Video } from "../../../src/types"; export const request = agent(app) const baseUrl = '/hometask_...
0
matheus-foscarinid/leet-code-solutions-storage
db67ebc
solutions/climbStairs.ts
TypeScript
www.github.com/matheus-foscarinid/leet-code-solutions-storage/tree/main/solutions/climbStairs.ts
https://raw.githubusercontent.com/matheus-foscarinid/leet-code-solutions-storage/db67ebc/solutions/climbStairs.ts
matheus-foscarinid/leet-code-solutions-storage db67ebc solutions/climbStairs.ts
true
200
258
const cache = new Map(); cache.set(1, 1) cache.set(2, 2) // fibonacci! function climbStairs(n: number): number { if (cache.has(n)) return cache.get(n); const result = climbStairs(n - 1) + climbStairs(n - 2); cache.set(n, result); return result; };
3
leandrofiadone/challenge-sp-test
a6a8467
backend/src/index.ts
TypeScript
www.github.com/leandrofiadone/challenge-sp-test/tree/main/backend/src/index.ts
https://raw.githubusercontent.com/leandrofiadone/challenge-sp-test/a6a8467/backend/src/index.ts
leandrofiadone/challenge-sp-test a6a8467 backend/src/index.ts
true
200
936
import express from "express" import multer from "multer" import cors from 'cors' import UserModel from './app/models/cardModel' import { uploadFile } from './app/controllers/fileController' import { searchCards } from './app/controllers/cardController' import authRoutes from './app/routes/auth.routes' import connectDB...
7
kl1eff/trello-clone-backend
9a15fd4
src/comments/comments.service.ts
TypeScript
www.github.com/kl1eff/trello-clone-backend/tree/main/src/comments/comments.service.ts
https://raw.githubusercontent.com/kl1eff/trello-clone-backend/9a15fd4/src/comments/comments.service.ts
kl1eff/trello-clone-backend 9a15fd4 src/comments/comments.service.ts
true
200
953
import { Injectable } from '@nestjs/common'; import { Comment } from 'src/models/models'; import { InjectModel } from '@nestjs/sequelize'; import { CommentsDto } from './comments.dto'; @Injectable() export class CommentsService { constructor( @InjectModel(Comment) private readonly commentModel: typeof Commen...
4
Cola-Bora/projeto-cola-e-bora
747fdfa
src/middlewares/checkIsAdmOngRequest.middleware.ts
TypeScript
www.github.com/Cola-Bora/projeto-cola-e-bora/tree/main/src/middlewares/checkIsAdmOngRequest.middleware.ts
https://raw.githubusercontent.com/Cola-Bora/projeto-cola-e-bora/747fdfa/src/middlewares/checkIsAdmOngRequest.middleware.ts
Cola-Bora/projeto-cola-e-bora 747fdfa src/middlewares/checkIsAdmOngRequest.middleware.ts
true
200
462
import { Request, Response, NextFunction } from "express"; import AppDataSource from "../data-source"; import { User } from "../entities/user"; export default async function checkIsAdmOngRequestMiddleware( req: Request, res: Response, next: NextFunction ) { const userRepository = AppDataSource.getRepository(Us...
1
thatmare/tasks-management-api
fe4f3af
api/src/features/emails/emails.module.ts
TypeScript
www.github.com/thatmare/tasks-management-api/tree/main/api/src/features/emails/emails.module.ts
https://raw.githubusercontent.com/thatmare/tasks-management-api/fe4f3af/api/src/features/emails/emails.module.ts
thatmare/tasks-management-api fe4f3af api/src/features/emails/emails.module.ts
true
200
1,091
import { Module } from '@nestjs/common' import { EmailsService } from './emails.service' import { MailerModule } from '@nestjs-modules/mailer' import { join } from 'path' import { EjsAdapter } from '@nestjs-modules/mailer/dist/adapters/ejs.adapter' import { ConfigModule, ConfigService } from '@nestjs/config' @Module(...
0
ministryofjustice/hmpps-community-accommodation-tier-2-ui
b5526f2
server/services/assessmentService.test.ts
TypeScript
www.github.com/ministryofjustice/hmpps-community-accommodation-tier-2-ui/tree/main/server/services/assessmentService.test.ts
https://raw.githubusercontent.com/ministryofjustice/hmpps-community-accommodation-tier-2-ui/b5526f2/server/services/assessmentService.test.ts
ministryofjustice/hmpps-community-accommodation-tier-2-ui b5526f2 server/services/assessmentService.test.ts
true
200
2,510
import { Cas2AssessmentStatusUpdate, UpdateCas2Assessment } from '@approved-premises/api' import AssessmentService from './assessmentService' import AssessmentClient from '../data/assessmentClient' import { assessmentFactory } from '../testutils/factories' jest.mock('../data/assessmentClient.ts') describe('Assessmen...
6
alirezakm10/saipa
82d6ec7
src/redux/features/shop/productSlice.ts
TypeScript
www.github.com/alirezakm10/saipa/tree/main/src/redux/features/shop/productSlice.ts
https://raw.githubusercontent.com/alirezakm10/saipa/82d6ec7/src/redux/features/shop/productSlice.ts
alirezakm10/saipa 82d6ec7 src/redux/features/shop/productSlice.ts
true
200
2,011
import { PayloadAction, createSlice } from '@reduxjs/toolkit' import { RootState } from '@/redux/store'; import { ISpecification } from '@/components/adminpanel/shop/typescope'; import { Category } from '@/components/adminpanel/shop/classification/categories/typescope'; // in this slice i put global states that dont ha...
7
Clement-Cardot/caerdydd
a51c4a6
front/src/app/pages/error-page/error-page.module.ts
TypeScript
www.github.com/Clement-Cardot/caerdydd/tree/main/front/src/app/pages/error-page/error-page.module.ts
https://raw.githubusercontent.com/Clement-Cardot/caerdydd/a51c4a6/front/src/app/pages/error-page/error-page.module.ts
Clement-Cardot/caerdydd a51c4a6 front/src/app/pages/error-page/error-page.module.ts
true
200
397
import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { MaterialModule } from "src/app/material.module"; import { ErrorPageComponent } from "./error-page.component"; @NgModule({ declarations: [ ErrorPageComponent ], imports: [ CommonModule, Mater...
3
lPainl/NodeExpress
bb3bad3
src/app.ts
TypeScript
www.github.com/lPainl/NodeExpress/tree/main/src/app.ts
https://raw.githubusercontent.com/lPainl/NodeExpress/bb3bad3/src/app.ts
lPainl/NodeExpress bb3bad3 src/app.ts
true
200
396
import express from 'express' import templateRouter from './routes/template.routes' import cors from 'cors' import * as dotenv from 'dotenv' dotenv.config() const app = express() app.use(express.json()) app.use(cors()) const PORT = process.env.PORT || 3000 app.use('/', templateRouter) app.listen(PORT, () => { ...
4
JellyBeans01/nx-demo
e56578b
apps/express/src/main.ts
TypeScript
www.github.com/JellyBeans01/nx-demo/tree/main/apps/express/src/main.ts
https://raw.githubusercontent.com/JellyBeans01/nx-demo/e56578b/apps/express/src/main.ts
JellyBeans01/nx-demo e56578b apps/express/src/main.ts
true
200
481
/** * This is not a production server yet! * This is only a minimal backend to get started. */ import * as express from 'express'; import { multiply } from '@marlon-be/shared-utils'; const app = express(); app.get('/api', (req, res) => { res.send({ message: `2 * 8 = ${multiply(2, 8)}` }); }); const port = proc...
5
Ahmed-Mohamed-26/traditional-jumia-Angular
0c29016
src/app/signup/signup.component.ts
TypeScript
www.github.com/Ahmed-Mohamed-26/traditional-jumia-Angular/tree/main/src/app/signup/signup.component.ts
https://raw.githubusercontent.com/Ahmed-Mohamed-26/traditional-jumia-Angular/0c29016/src/app/signup/signup.component.ts
Ahmed-Mohamed-26/traditional-jumia-Angular 0c29016 src/app/signup/signup.component.ts
true
200
2,068
import { Component, inject, OnInit } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { AuthService } from '../auth.service'; import { CommonModule } from '@angular/common'; import { IUser } from '.....
2
aryanpachori/opinion_trading
d31cf86
orderbook/service/crashService.ts
TypeScript
www.github.com/aryanpachori/opinion_trading/tree/main/orderbook/service/crashService.ts
https://raw.githubusercontent.com/aryanpachori/opinion_trading/d31cf86/orderbook/service/crashService.ts
aryanpachori/opinion_trading d31cf86 orderbook/service/crashService.ts
true
200
1,157
import fs from "fs"; const path = '/app/data/db.json'; import { inMemory_events, inMemory_OrderId, inMemory_trades, inMemoryOrderBooks, inr_balances, } from "../utils/global"; import { saveToS3 } from "./s3"; export function saveSnapshot( inMemoryOrderBooks: any, inr_balances: any, inMemory_events: any...
0
bsampp/OOP3
3a9efaf
Design Patterns/exercicio-abstract-factory/src/delivery/IFoodDelivery.ts
TypeScript
www.github.com/bsampp/OOP3/tree/main/Design Patterns/exercicio-abstract-factory/src/delivery/IFoodDelivery.ts
https://raw.githubusercontent.com/bsampp/OOP3/3a9efaf/Design%20Patterns/exercicio-abstract-factory/src/delivery/IFoodDelivery.ts
bsampp/OOP3 3a9efaf Design Patterns/exercicio-abstract-factory/src/delivery/IFoodDelivery.ts
true
200
477
import Idrinks from "../foods/drink/interfaces/IDrinks"; import IFood from "../foods/snack/interfaces/IFood"; import IDeliveryFactory from "./interfaces/IDeliveryFactory"; import SoftDrink from "../foods/drink/SoftDrink"; import HotDog from "../foods/snack/HotDog"; export default class IFoodDelivery implements IDelive...
6
sojib076/Ecomerce_backend
b0ef059
src/app/modules/products/products.Routes.ts
TypeScript
www.github.com/sojib076/Ecomerce_backend/tree/main/src/app/modules/products/products.Routes.ts
https://raw.githubusercontent.com/sojib076/Ecomerce_backend/b0ef059/src/app/modules/products/products.Routes.ts
sojib076/Ecomerce_backend b0ef059 src/app/modules/products/products.Routes.ts
true
200
613
import { Router } from "express"; import { ProductsController } from "./products.Controller"; const router = Router(); router.get("/", ProductsController.getProducts); // get all products // router.get("/", ProductsController.searchProducts); // search products router.post("/", ProductsController.createProduct); // c...
3
42-transcendence/akasha
0b526e1
akasha-app/src/user/profile/profile.controller.ts
TypeScript
www.github.com/42-transcendence/akasha/tree/main/akasha-app/src/user/profile/profile.controller.ts
https://raw.githubusercontent.com/42-transcendence/akasha/0b526e1/akasha-app/src/user/profile/profile.controller.ts
42-transcendence/akasha 0b526e1 akasha-app/src/user/profile/profile.controller.ts
true
200
5,163
import { Body, Controller, Delete, Get, HttpStatus, NotFoundException, Param, ParseFilePipeBuilder, ParseIntPipe, ParseUUIDPipe, Post, Put, Query, UploadedFile, UseGuards, UseInterceptors, } from "@nestjs/common"; import { AuthPayload, OTPSecret } from "@common/auth-payloads"; import { A...
7
CodeMaestro-dev/interactive-rating-app
e660848
js/script.ts
TypeScript
www.github.com/CodeMaestro-dev/interactive-rating-app/tree/main/js/script.ts
https://raw.githubusercontent.com/CodeMaestro-dev/interactive-rating-app/e660848/js/script.ts
CodeMaestro-dev/interactive-rating-app e660848 js/script.ts
true
200
757
const raters = document.querySelectorAll(".rating-button"); const rate = document.querySelector(".rating-main__submit"); const firstScreen = document.querySelector(".rating-main"); const secondScreen = document.querySelector(".thanks-main"); const number = document.querySelector(".rating-number"); let ratingDigit: num...
4
dreamkaman/angular-epam-lab-01
d24e237
src/app/features/login/login.component.ts
TypeScript
www.github.com/dreamkaman/angular-epam-lab-01/tree/main/src/app/features/login/login.component.ts
https://raw.githubusercontent.com/dreamkaman/angular-epam-lab-01/d24e237/src/app/features/login/login.component.ts
dreamkaman/angular-epam-lab-01 d24e237 src/app/features/login/login.component.ts
true
200
1,682
import { Component, OnInit, ViewChild, Output } from '@angular/core'; import { NgForm } from '@angular/forms'; import { Store } from '@ngrx/store'; import { Router } from '@angular/router' import { addUser } from './login.actions'; import { LoginService } from './login.service'; import { GlobalState } from 'src/store/...
5
JessiSandovalE/shop-nestjs
3ed6a16
src/products/products.service.ts
TypeScript
www.github.com/JessiSandovalE/shop-nestjs/tree/main/src/products/products.service.ts
https://raw.githubusercontent.com/JessiSandovalE/shop-nestjs/3ed6a16/src/products/products.service.ts
JessiSandovalE/shop-nestjs 3ed6a16 src/products/products.service.ts
true
200
4,649
import { BadRequestException, Injectable, InternalServerErrorException, Logger, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { DataSource, Repository } from 'typeorm'; import { CreateProductDto } from './dto/create-product.dto'; import { UpdateProductDto } from ...
2
Gabrielja2/fiter-lottery
29884c1
src/components/add.ticket/add.ticket.styled.ts
TypeScript
www.github.com/Gabrielja2/fiter-lottery/tree/main/src/components/add.ticket/add.ticket.styled.ts
https://raw.githubusercontent.com/Gabrielja2/fiter-lottery/29884c1/src/components/add.ticket/add.ticket.styled.ts
Gabrielja2/fiter-lottery 29884c1 src/components/add.ticket/add.ticket.styled.ts
true
200
936
import styled from "styled-components"; export const StyledAddTicket = styled.div` display: flex; align-items: center; justify-content: center; flex-direction: column; border: 3px #EA8E41 dotted; width: 240px; height: 285px; margin-top: 30px; ` export const StyledButton = sty...
1
JUNIORCEDE/task-manager-backend
497966f
config/database.config.ts
TypeScript
www.github.com/JUNIORCEDE/task-manager-backend/tree/main/config/database.config.ts
https://raw.githubusercontent.com/JUNIORCEDE/task-manager-backend/497966f/config/database.config.ts
JUNIORCEDE/task-manager-backend 497966f config/database.config.ts
true
200
979
// config/database.config.ts import mongoose from "mongoose"; export const connectDatabase = async () => { try { const dbName = "task_manager"; const mongoUri = `${process.env.MONGODB_URI}/${dbName}`; await mongoose.connect(mongoUri); const connection = mongoose.connection; connection.on("erro...
6
DuroCodes/flow
6e28c2d
src/commands/utility/info.ts
TypeScript
www.github.com/DuroCodes/flow/tree/main/src/commands/utility/info.ts
https://raw.githubusercontent.com/DuroCodes/flow/6e28c2d/src/commands/utility/info.ts
DuroCodes/flow 6e28c2d src/commands/utility/info.ts
true
200
4,273
import { ApplicationCommandOptionType, ButtonBuilder, ButtonStyle, EmbedBuilder, ActionRowBuilder, ComponentType, ButtonInteraction, ColorResolvable, } from 'discord.js'; import { SlashCommand } from '../../structures'; export default new SlashCommand({ name: 'info', description: 'view your settings for the bo...
3
nick964/tuffpuff
b3d22ae
src/app/login/login.component.ts
TypeScript
www.github.com/nick964/tuffpuff/tree/main/src/app/login/login.component.ts
https://raw.githubusercontent.com/nick964/tuffpuff/b3d22ae/src/app/login/login.component.ts
nick964/tuffpuff b3d22ae src/app/login/login.component.ts
true
200
1,043
import {Component, Input, OnInit, Output, EventEmitter} from '@angular/core'; import { FormControl, FormGroup} from '@angular/forms'; import {AuthService} from '../service/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls...
7
faspen/rpg-manager
bc29db3
angular/src/app/app.module.ts
TypeScript
www.github.com/faspen/rpg-manager/tree/main/angular/src/app/app.module.ts
https://raw.githubusercontent.com/faspen/rpg-manager/bc29db3/angular/src/app/app.module.ts
faspen/rpg-manager bc29db3 angular/src/app/app.module.ts
true
200
1,231
import { NgModule } from '@angular/core'; import { BrowserModule, provideClientHydration, withEventReplay } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { WeaponTypeComponent } from './weapon-type/weapon-type.component...
0
SuvigyaSrivastava/zocket-task-manager
93b4064
client/src/store/taskStore.ts
TypeScript
www.github.com/SuvigyaSrivastava/zocket-task-manager/tree/main/client/src/store/taskStore.ts
https://raw.githubusercontent.com/SuvigyaSrivastava/zocket-task-manager/93b4064/client/src/store/taskStore.ts
SuvigyaSrivastava/zocket-task-manager 93b4064 client/src/store/taskStore.ts
true
200
6,208
import { create } from "zustand"; import { persist } from "zustand/middleware"; import api from "@/utils/api"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; export interface Task { _id: string; title: string; category: string; priority: string; previousPriority?: string; pr...
5
nejcrogelsek/skillupmentor-presentation
62b4839
src/lib/prismadb.ts
TypeScript
www.github.com/nejcrogelsek/skillupmentor-presentation/tree/main/src/lib/prismadb.ts
https://raw.githubusercontent.com/nejcrogelsek/skillupmentor-presentation/62b4839/src/lib/prismadb.ts
nejcrogelsek/skillupmentor-presentation 62b4839 src/lib/prismadb.ts
true
200
291
import { PrismaClient } from '@prisma/client' declare global { /* eslint no-var: off */ var prisma: PrismaClient | undefined } const prismadb = globalThis.prisma || new PrismaClient() if (process.env.NODE_ENV !== 'production') globalThis.prisma = prismadb export default prismadb
4
wanderley/wpsilva-imoveis
ef8178a
src/services/ai/cached-model-middleware.ts
TypeScript
www.github.com/wanderley/wpsilva-imoveis/tree/main/src/services/ai/cached-model-middleware.ts
https://raw.githubusercontent.com/wanderley/wpsilva-imoveis/ef8178a/src/services/ai/cached-model-middleware.ts
wanderley/wpsilva-imoveis ef8178a src/services/ai/cached-model-middleware.ts
true
200
4,597
import { md5 } from "@/lib/md5"; import { LocalFile } from "@/services/file/local-file"; import { LanguageModelV1, LanguageModelV1CallOptions, LanguageModelV1StreamPart, simulateReadableStream, experimental_wrapLanguageModel as wrapLanguageModel, } from "ai"; interface Provider<T, S, R extends LanguageModelV...
2
ntdat2911/PPBookShop
476bb94
client/codegen.ts
TypeScript
www.github.com/ntdat2911/PPBookShop/tree/main/client/codegen.ts
https://raw.githubusercontent.com/ntdat2911/PPBookShop/476bb94/client/codegen.ts
ntdat2911/PPBookShop 476bb94 client/codegen.ts
true
200
529
import { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "http://localhost:4000/api/graphql", // this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure documents: ["./services/**/*.{ts,tsx}"], gener...
1
mediacurrent/gatsby-drupal-preview
28c6d88
src/types.ts
TypeScript
www.github.com/mediacurrent/gatsby-drupal-preview/tree/main/src/types.ts
https://raw.githubusercontent.com/mediacurrent/gatsby-drupal-preview/28c6d88/src/types.ts
mediacurrent/gatsby-drupal-preview 28c6d88 src/types.ts
true
200
1,901
export type AccessToken = { token_type: string expires_in: number access_token: string refresh_token?: string } export interface JsonapiAuthUsernamePassword { username: string password: string } export interface JsonapiAuthClientIdSecret { clientId: string clientSecret: string url?: string scope?:...
6
bebeOlin/Rock-Paper-Scissors
bc9379f
src/app/record/record.component.ts
TypeScript
www.github.com/bebeOlin/Rock-Paper-Scissors/tree/main/src/app/record/record.component.ts
https://raw.githubusercontent.com/bebeOlin/Rock-Paper-Scissors/bc9379f/src/app/record/record.component.ts
bebeOlin/Rock-Paper-Scissors bc9379f src/app/record/record.component.ts
true
200
354
import { Component, Input, OnInit } from '@angular/core'; @Component({ selector: 'app-record', templateUrl: './record.component.html', styleUrls: ['./record.component.css'] }) export class RecordComponent implements OnInit { @Input() wins = ""; @Input() losses = ""; @Input() streak = ""; construct...
7
ShivamRawatlow/backend_take_home_test
f901421
src/utils/find_lowest_price_apparel.ts
TypeScript
www.github.com/ShivamRawatlow/backend_take_home_test/tree/main/src/utils/find_lowest_price_apparel.ts
https://raw.githubusercontent.com/ShivamRawatlow/backend_take_home_test/f901421/src/utils/find_lowest_price_apparel.ts
ShivamRawatlow/backend_take_home_test f901421 src/utils/find_lowest_price_apparel.ts
true
200
568
import { QUALITY_PRICE_MAPPING, SIZE_PRICE_MAPPING } from '../constants.js'; import { IApparel } from '../routers/vendor.js'; export const findLowestPriceApparel = (apparels: IApparel[]) => { let minPrice = Number.MAX_VALUE; let minPriceApparel: IApparel = apparels[0]; for (let apparel of apparels) { const ...
0
Ayilk/MapasApp2-Angular-Mapbox
47a82ff
src/app/maps/components/search-bar/search-bar.component.ts
TypeScript
www.github.com/Ayilk/MapasApp2-Angular-Mapbox/tree/main/src/app/maps/components/search-bar/search-bar.component.ts
https://raw.githubusercontent.com/Ayilk/MapasApp2-Angular-Mapbox/47a82ff/src/app/maps/components/search-bar/search-bar.component.ts
Ayilk/MapasApp2-Angular-Mapbox 47a82ff src/app/maps/components/search-bar/search-bar.component.ts
true
200
1,547
import { Component, OnInit } from '@angular/core'; import { PlacesService } from '../../services/places.service'; @Component({ selector: 'app-search-bar', templateUrl: './search-bar.component.html', styles: [` .search-container { position: fixed; top: 20px; left: 20px; background-colo...
5
rahulz-wasnik/quick-shop
045c470
src/app/shared/mock-test-data/mock-products.ts
TypeScript
www.github.com/rahulz-wasnik/quick-shop/tree/main/src/app/shared/mock-test-data/mock-products.ts
https://raw.githubusercontent.com/rahulz-wasnik/quick-shop/045c470/src/app/shared/mock-test-data/mock-products.ts
rahulz-wasnik/quick-shop 045c470 src/app/shared/mock-test-data/mock-products.ts
true
200
422
import { AppResponse } from '../models/app.model'; import { Product } from '../models/product.model'; export const mockProducts: Product[] = [ { id: 1, name: 'Galaxy S3', category: 'Electronics', subCategory: 'mobile', price: 1000000, ratings: 4, reviews: [], unitsSoldInLastMonth: 100...
3
raphaeljcm/nlw-copa
b7da744
server/src/routes/poll.ts
TypeScript
www.github.com/raphaeljcm/nlw-copa/tree/main/server/src/routes/poll.ts
https://raw.githubusercontent.com/raphaeljcm/nlw-copa/b7da744/server/src/routes/poll.ts
raphaeljcm/nlw-copa b7da744 server/src/routes/poll.ts
true
200
3,954
import { FastifyInstance } from 'fastify'; import ShortUniqueId from 'short-unique-id'; import { z } from 'zod'; import { prisma } from '../lib/prisma'; import { authenticate } from '../plugins/authenticate'; export async function pollRoutes(fastify: FastifyInstance) { fastify.get('/polls', { onRequest: [authentica...
2
Sufflavus/KanbanBoard
648b6e7
src/actions/index.ts
TypeScript
www.github.com/Sufflavus/KanbanBoard/tree/main/src/actions/index.ts
https://raw.githubusercontent.com/Sufflavus/KanbanBoard/648b6e7/src/actions/index.ts
Sufflavus/KanbanBoard 648b6e7 src/actions/index.ts
true
200
529
export * from './taskActionTypes'; export * from './userActionTypes'; export * from './teamActionTypes'; export type { BaseAction } from './commonActions'; export type { LoadAllTasksAction, TaskAction, TaskActionsProps } from './taskActions'; export type { LoadAllTeamsAction } from './teamActions'; export type { LoadA...
6
guilhermewall/RPG-Encounter
68391c6
src/services/characters/createCharacter.service.ts
TypeScript
www.github.com/guilhermewall/RPG-Encounter/tree/main/src/services/characters/createCharacter.service.ts
https://raw.githubusercontent.com/guilhermewall/RPG-Encounter/68391c6/src/services/characters/createCharacter.service.ts
guilhermewall/RPG-Encounter 68391c6 src/services/characters/createCharacter.service.ts
true
200
995
import { User } from "../../entities/user.entity"; import { characterResponseSerializer } from "../../serializers/character.schemas"; import AppDataSource from "./../../data-source"; import Character from "./../../entities/character.entity"; import { ICharacterRequest, ICharacterResponse, } from "./../../interfaces...
1
gpdoud/DsiBcmsClient
95db2d5
src/app/feat/cohort/cohort-instructor/cohort-instructor.component.ts
TypeScript
www.github.com/gpdoud/DsiBcmsClient/tree/main/src/app/feat/cohort/cohort-instructor/cohort-instructor.component.ts
https://raw.githubusercontent.com/gpdoud/DsiBcmsClient/95db2d5/src/app/feat/cohort/cohort-instructor/cohort-instructor.component.ts
gpdoud/DsiBcmsClient 95db2d5 src/app/feat/cohort/cohort-instructor/cohort-instructor.component.ts
true
200
1,509
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { InstructorCohort } from '@feat/instructorCohort/instructor-cohort.class'; import { InstructorCohortService } from '@feat/instructorCohort/instructor-cohort.service'; import { SystemService } from '@system/syste...
0
CristianRoberto/PlantillaAngular2024-CrudC-
dd06807
src/app/parametros/ubicacion/hacienda/tipo-de-contabilizacion/tipo-contabilizacion.service.ts
TypeScript
www.github.com/CristianRoberto/PlantillaAngular2024-CrudC-/tree/main/src/app/parametros/ubicacion/hacienda/tipo-de-contabilizacion/tipo-contabilizacion.service.ts
https://raw.githubusercontent.com/CristianRoberto/PlantillaAngular2024-CrudC-/dd06807/src/app/parametros/ubicacion/hacienda/tipo-de-contabilizacion/tipo-contabilizacion.service.ts
CristianRoberto/PlantillaAngular2024-CrudC- dd06807 src/app/parametros/ubicacion/hacienda/tipo-de-contabilizacion/tipo-contabilizacion.service.ts
true
200
1,580
import { HttpClient } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { Itipocontabilizacion, ItipocontabilizacionResponse } from "./tipo-contabilizacion.interface"; import { Observable } from "rxjs"; import { environment } from "src/environments/environment"; @Injectable({ provide...
4
IgorGabrielM/study-space-backend
20aefaf
src/posts/posts.service.ts
TypeScript
www.github.com/IgorGabrielM/study-space-backend/tree/main/src/posts/posts.service.ts
https://raw.githubusercontent.com/IgorGabrielM/study-space-backend/20aefaf/src/posts/posts.service.ts
IgorGabrielM/study-space-backend 20aefaf src/posts/posts.service.ts
true
200
5,432
import { InterestsService } from './../interests/interests.service'; import { Injectable } from '@nestjs/common'; import { CreatePostDto } from './dto/create-post.dto'; import { UpdatePostDto } from './dto/update-post.dto'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import...
5
sidkid78/4d-mapping
5084746
src/app/api/deploy/route.ts
TypeScript
www.github.com/sidkid78/4d-mapping/tree/main/src/app/api/deploy/route.ts
https://raw.githubusercontent.com/sidkid78/4d-mapping/5084746/src/app/api/deploy/route.ts
sidkid78/4d-mapping 5084746 src/app/api/deploy/route.ts
true
200
522
import { NextResponse } from 'next/server' import { DeploymentManager } from '@/lib/deployment-manager' export async function POST(request: Request) { const deploymentConfig = await request.json() try { const manager = new DeploymentManager({ /* config */ }) const result = await manager.deploy_system(depl...
3
mumtazbano30/My-Fst-Ang-Proj1
10e4f07
src/app/contact-form/contact-form.component.ts
TypeScript
www.github.com/mumtazbano30/My-Fst-Ang-Proj1/tree/main/src/app/contact-form/contact-form.component.ts
https://raw.githubusercontent.com/mumtazbano30/My-Fst-Ang-Proj1/10e4f07/src/app/contact-form/contact-form.component.ts
mumtazbano30/My-Fst-Ang-Proj1 10e4f07 src/app/contact-form/contact-form.component.ts
true
200
2,217
import { Component } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import emailjs, { EmailJSResponseStatus } from 'emailjs-com'; @Component({ selector: 'app-contact-form', templateUrl: './contact-form.component.html', styleUrls: ['./contact-form.component.css'], }) exp...
2
pratham-bhatnagar/TextCash
c777763
src/services/database.service.ts
TypeScript
www.github.com/pratham-bhatnagar/TextCash/tree/main/src/services/database.service.ts
https://raw.githubusercontent.com/pratham-bhatnagar/TextCash/c777763/src/services/database.service.ts
pratham-bhatnagar/TextCash c777763 src/services/database.service.ts
true
200
1,103
import * as MongoDB from "mongodb"; import { errors } from "../errors/error.constants"; import logger from "./logger.service"; export class DatabaseService { private static instance: DatabaseService; private dbClient: MongoDB.MongoClient = new MongoDB.MongoClient( process.env.MONGO_URI! ); private construc...
7
thangtnynguyen/Manager-Student-FE-Angular
00898f5
src/app/teacher/shared/components/header/header.component.ts
TypeScript
www.github.com/thangtnynguyen/Manager-Student-FE-Angular/tree/main/src/app/teacher/shared/components/header/header.component.ts
https://raw.githubusercontent.com/thangtnynguyen/Manager-Student-FE-Angular/00898f5/src/app/teacher/shared/components/header/header.component.ts
thangtnynguyen/Manager-Student-FE-Angular 00898f5 src/app/teacher/shared/components/header/header.component.ts
true
200
1,174
import { Component, HostListener } from '@angular/core'; import { Router } from '@angular/router'; import systemConfig from 'src/app/teacher/configs/system.config'; import { AuthService } from 'src/app/student/services/api/auth.service'; @Component({ selector: 'app-header', templateUrl: './header.component.html', ...
1
jhua4/expense-tracker
04fa460
app/actions/deleteTransaction.ts
TypeScript
www.github.com/jhua4/expense-tracker/tree/main/app/actions/deleteTransaction.ts
https://raw.githubusercontent.com/jhua4/expense-tracker/04fa460/app/actions/deleteTransaction.ts
jhua4/expense-tracker 04fa460 app/actions/deleteTransaction.ts
true
200
557
"use server"; import { db } from "@/lib/db"; import { auth } from "@clerk/nextjs/server"; import { revalidatePath } from "next/cache"; async function deleteTransaction(transactionId: string): Promise<{ error?: string; }> { const { userId } = auth(); if (!userId) { return { error: "User not found." }; } ...
0
AlexStefoni/HikeAssistant
837cf8e
src/app/menu-user/menu-user.page.ts
TypeScript
www.github.com/AlexStefoni/HikeAssistant/tree/main/src/app/menu-user/menu-user.page.ts
https://raw.githubusercontent.com/AlexStefoni/HikeAssistant/837cf8e/src/app/menu-user/menu-user.page.ts
AlexStefoni/HikeAssistant 837cf8e src/app/menu-user/menu-user.page.ts
true
200
2,244
import { Component, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { Router } from '@angular/router'; import { DataService, Users } from '../services/data.service'; @Component({ select...
4
VickyNathali/movilswsearch
c75ff1e
swsearch/src/app/components/info-mat-favorite/info-mat-favorite.component.spec.ts
TypeScript
www.github.com/VickyNathali/movilswsearch/tree/main/swsearch/src/app/components/info-mat-favorite/info-mat-favorite.component.spec.ts
https://raw.githubusercontent.com/VickyNathali/movilswsearch/c75ff1e/swsearch/src/app/components/info-mat-favorite/info-mat-favorite.component.spec.ts
VickyNathali/movilswsearch c75ff1e swsearch/src/app/components/info-mat-favorite/info-mat-favorite.component.spec.ts
true
200
747
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { InfoMatFavoriteComponent } from './info-mat-favorite.component'; describe('InfoMatFavoriteComponent', () => { let component: InfoMatFavoriteComponent; let fixture: ComponentFixture<Info...
6
b3hr4d/Web3react-Redux
c399ca1
src/context/models/settings.ts
TypeScript
www.github.com/b3hr4d/Web3react-Redux/tree/main/src/context/models/settings.ts
https://raw.githubusercontent.com/b3hr4d/Web3react-Redux/c399ca1/src/context/models/settings.ts
b3hr4d/Web3react-Redux c399ca1 src/context/models/settings.ts
true
200
1,395
import { createModel } from "@rematch/core" import { SnackBarType, Translate } from "../data/settings" import { RootModel } from "../store" const defaultState: any = { showSnackBar: false, showDetails: false, showAddress: true, modal: false, snackbar: { message: "", }, } const settings = createModel<R...
3
Mama679/fullstack
3b2edee
app-tutofox/src/app/modules/service/auth.service.ts
TypeScript
www.github.com/Mama679/fullstack/tree/main/app-tutofox/src/app/modules/service/auth.service.ts
https://raw.githubusercontent.com/Mama679/fullstack/3b2edee/app-tutofox/src/app/modules/service/auth.service.ts
Mama679/fullstack 3b2edee app-tutofox/src/app/modules/service/auth.service.ts
true
200
789
import { Injectable } from '@angular/core'; import {HttpClient,HttpHeaders} from '@angular/common/http'; import { Router } from '@angular/router'; import {catchError, map} from 'rxjs/operators'; import {of,Observable, throwError} from 'rxjs'; import { URL_SERVICIO } from 'src/app/config/config'; import { Usuario } fro...
2
DidierHoarau/feedwatcher
f231f41
feedwatcher-server/src/sources/SourcesIdRoutes.ts
TypeScript
www.github.com/DidierHoarau/feedwatcher/tree/main/feedwatcher-server/src/sources/SourcesIdRoutes.ts
https://raw.githubusercontent.com/DidierHoarau/feedwatcher/f231f41/feedwatcher-server/src/sources/SourcesIdRoutes.ts
DidierHoarau/feedwatcher f231f41 feedwatcher-server/src/sources/SourcesIdRoutes.ts
true
200
4,772
import { FastifyInstance, RequestGenericInterface } from "fastify"; import { StandardTracerGetSpanFromRequest } from "../utils-std-ts/StandardTracer"; import { ProcessorsCheckSource, ProcessorsFetchSourceItems } from "../procesors/Processors"; import { SourcesDataDelete, SourcesDataGet, SourcesDataUpdate } from "./Sour...
7
nikhil174/github-assignment
3b809c7
server/src/config/db/db.ts
TypeScript
www.github.com/nikhil174/github-assignment/tree/main/server/src/config/db/db.ts
https://raw.githubusercontent.com/nikhil174/github-assignment/3b809c7/server/src/config/db/db.ts
nikhil174/github-assignment 3b809c7 server/src/config/db/db.ts
true
200
283
import { Pool, PoolConfig } from 'pg'; require('dotenv').config(); const poolConfig: PoolConfig = { user: process.env.PG_USER, password: process.env.PG_PASSWORD, host: 'localhost', port: 5432, database: 'github', }; const pool = new Pool(poolConfig); export default pool;
1
cerennkurucuu/Deer---Android-Book-Project
dc1d921
src/environments/environment.ts
TypeScript
www.github.com/cerennkurucuu/Deer---Android-Book-Project/tree/main/src/environments/environment.ts
https://raw.githubusercontent.com/cerennkurucuu/Deer---Android-Book-Project/dc1d921/src/environments/environment.ts
cerennkurucuu/Deer---Android-Book-Project dc1d921 src/environments/environment.ts
true
200
1,045
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, firebase: { apiKey: "AIzaSyBc1J1PTMz2dolLk...
0
mique01/bolsillo-localstorage
79e7f80
src/lib/utils/networkUtils.ts
TypeScript
www.github.com/mique01/bolsillo-localstorage/tree/main/src/lib/utils/networkUtils.ts
https://raw.githubusercontent.com/mique01/bolsillo-localstorage/79e7f80/src/lib/utils/networkUtils.ts
mique01/bolsillo-localstorage 79e7f80 src/lib/utils/networkUtils.ts
true
200
4,301
/** * Network utilities for enhancing connection reliability */ // Detect current environment export const getEnvironment = () => { if (typeof window === 'undefined') return 'server'; const host = window.location.hostname; if (host.includes('github.io')) return 'github'; if (host.includes('vercel.app')) r...
4
rpaivabr/fam-devcoffee-frontend
c5c0263
src/app/services/orders.service.ts
TypeScript
www.github.com/rpaivabr/fam-devcoffee-frontend/tree/main/src/app/services/orders.service.ts
https://raw.githubusercontent.com/rpaivabr/fam-devcoffee-frontend/c5c0263/src/app/services/orders.service.ts
rpaivabr/fam-devcoffee-frontend c5c0263 src/app/services/orders.service.ts
true
200
521
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Order } from '../interfaces/order'; import { Product } from '../interfaces/product'; @Injectable({ providedIn: 'root', }) export class OrdersService { order: Order = { products: [], }; constructor(priva...
5
searchspring/snap
cd33cd8
packages/snap-controller/src/Autocomplete/AutocompleteController.ts
TypeScript
www.github.com/searchspring/snap/tree/main/packages/snap-controller/src/Autocomplete/AutocompleteController.ts
https://raw.githubusercontent.com/searchspring/snap/cd33cd8/packages/snap-controller/src/Autocomplete/AutocompleteController.ts
searchspring/snap cd33cd8 packages/snap-controller/src/Autocomplete/AutocompleteController.ts
true
200
28,914
import deepmerge from 'deepmerge'; import { StorageStore, ErrorType, Product, SearchResultStore, Banner } from '@searchspring/snap-store-mobx'; import { AbstractController } from '../Abstract/AbstractController'; import { getSearchParams } from '../utils/getParams'; import { ControllerTypes } from '../types'; import ...
2
mferinga/Security2Portfolio2
394c633
inkubis-main/src/app/infrastructure/step-switch.service.ts
TypeScript
www.github.com/mferinga/Security2Portfolio2/tree/main/inkubis-main/src/app/infrastructure/step-switch.service.ts
https://raw.githubusercontent.com/mferinga/Security2Portfolio2/394c633/inkubis-main/src/app/infrastructure/step-switch.service.ts
mferinga/Security2Portfolio2 394c633 inkubis-main/src/app/infrastructure/step-switch.service.ts
true
200
848
import { Injectable } from '@angular/core'; import { BehaviorSubject, catchError, Observable, of } from 'rxjs'; import { IOrganisation } from '../organisation/organisation.model'; @Injectable({ providedIn: 'root', }) export class StepSwitchService { private nextStepUrl = new BehaviorSubject('/') private pr...
7
DiracKeeko/learning
b81c76e
TypeScript/TS_in_action/src/advanced3.ts
TypeScript
www.github.com/DiracKeeko/learning/tree/main/TypeScript/TS_in_action/src/advanced3.ts
https://raw.githubusercontent.com/DiracKeeko/learning/b81c76e/TypeScript/TS_in_action/src/advanced3.ts
DiracKeeko/learning b81c76e TypeScript/TS_in_action/src/advanced3.ts
true
200
1,666
// #类型保护 /* 1.TypeScript能够在特定的区块中保证变量属于某种确定的类型。 2.可以在此区块中放心地引用此类型的属性,或者调用此类型的方法。 */ /* 四种创建区块的方法 1.使用 instanceof 2.使用 in (判断属性是否属于对象) 3.typeof (判断基本类型) 4.类型保护函数 */ enum Type { Strong, Weak } class Java { helloJava() { console.log("Hello Java"); } java: any } class JavaScript { helloJavaScr...
3
evengul/skyteruta
e8bbb66
skyteruta.frontends/route-finder/src/lib/gateways/dfs.gateway.ts
TypeScript
www.github.com/evengul/skyteruta/tree/main/skyteruta.frontends/route-finder/src/lib/gateways/dfs.gateway.ts
https://raw.githubusercontent.com/evengul/skyteruta/e8bbb66/skyteruta.frontends/route-finder/src/lib/gateways/dfs.gateway.ts
evengul/skyteruta e8bbb66 skyteruta.frontends/route-finder/src/lib/gateways/dfs.gateway.ts
true
200
1,948
import type { Event } from '$lib/types/event.interface'; import axios from 'axios'; import type { Competition } from '../types/competition.interface'; type EventResponse = { events: { months: { events: Event[]; }[]; }[]; }; class DfsGateway { private eastBound = 31.07; private northBound = 71.14; private ...
1
fernuked/segundo_proyecto
bf610e6
src/app/modules/shared/shared.module.ts
TypeScript
www.github.com/fernuked/segundo_proyecto/tree/main/src/app/modules/shared/shared.module.ts
https://raw.githubusercontent.com/fernuked/segundo_proyecto/bf610e6/src/app/modules/shared/shared.module.ts
fernuked/segundo_proyecto bf610e6 src/app/modules/shared/shared.module.ts
true
200
1,082
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; // Importaciones: navbar - footer import { ComponentsComponent } from './components/components.component'; import { NavbarComponent } from './components/navbar/navbar.component'; import { FooterComponent } from './components/foot...
0
sharifian-m/O-TM
d976d51
src/app/modules/aboutus/aboutus/aboutus.component.ts
TypeScript
www.github.com/sharifian-m/O-TM/tree/main/src/app/modules/aboutus/aboutus/aboutus.component.ts
https://raw.githubusercontent.com/sharifian-m/O-TM/d976d51/src/app/modules/aboutus/aboutus/aboutus.component.ts
sharifian-m/O-TM d976d51 src/app/modules/aboutus/aboutus/aboutus.component.ts
true
200
362
import {Component, OnInit} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; @Component({ selector: 'app-aboutus', templateUrl: './aboutus.component.html', styleUrls: ['./aboutus.component.scss'] }) export class AboutusComponent implements OnInit { constructor( ) { } ngOnInit(): vo...
4
SomeswararaoMarati/cypress_BDD_Typescript
f31d274
cypress.config.ts
TypeScript
www.github.com/SomeswararaoMarati/cypress_BDD_Typescript/tree/main/cypress.config.ts
https://raw.githubusercontent.com/SomeswararaoMarati/cypress_BDD_Typescript/f31d274/cypress.config.ts
SomeswararaoMarati/cypress_BDD_Typescript f31d274 cypress.config.ts
true
200
1,870
import { defineConfig } from 'cypress' import createBundler from '@bahmutov/cypress-esbuild-preprocessor' import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor' import { createEsbuildPlugin } from '@badeball/cypress-cucumber-preprocessor/esbuild' import path from 'path' import fs from '...
6
stfncrwl222/NestJs-spotify-api
8a4c7d9
src/playlist/playlist.controller.ts
TypeScript
www.github.com/stfncrwl222/NestJs-spotify-api/tree/main/src/playlist/playlist.controller.ts
https://raw.githubusercontent.com/stfncrwl222/NestJs-spotify-api/8a4c7d9/src/playlist/playlist.controller.ts
stfncrwl222/NestJs-spotify-api 8a4c7d9 src/playlist/playlist.controller.ts
true
200
2,387
import { Body, Controller, Delete, Get, HttpCode, Param, ParseIntPipe, Post, Put, Query, UploadedFile, UseGuards, UseInterceptors, } from '@nestjs/common'; import { RoleGuard } from '../auth/guard/role.guard'; import { Roles } from '../auth/decorator/roles.decorator'; import { Role } from '@pr...
2
orlando-math-circle/omc-app
4c3b0f8
packages/server/src/membership/membership.controller.ts
TypeScript
www.github.com/orlando-math-circle/omc-app/tree/main/packages/server/src/membership/membership.controller.ts
https://raw.githubusercontent.com/orlando-math-circle/omc-app/4c3b0f8/packages/server/src/membership/membership.controller.ts
orlando-math-circle/omc-app 4c3b0f8 packages/server/src/membership/membership.controller.ts
true
200
1,485
import { Body, Controller, Delete, Get, Param, Post, Query, } from '@nestjs/common'; import { UserAuth } from '../auth/decorators/auth.decorator'; import { Account } from '../account/account.entity'; import { MembershipService } from './membership.service'; import { CreateMembershipDto } from './dto/creat...
1
amandammgr/loja_games_nest
9065fb8
src/app.module.ts
TypeScript
www.github.com/amandammgr/loja_games_nest/tree/main/src/app.module.ts
https://raw.githubusercontent.com/amandammgr/loja_games_nest/9065fb8/src/app.module.ts
amandammgr/loja_games_nest 9065fb8 src/app.module.ts
true
200
751
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Produto } from './produto/entities/produto.entity'; import { ProdutoModule } from './produto/produto.module'; import { Categoria } from './categoria/entities/categoria.entity'; import { CategoriaModule } from './categoria...
4
Sir-MSOps/ms_frontend
fe17903
projects/apps-inventory/src/app/modules/items/pages/unit-of-major/uom-view/uom-view.component.ts
TypeScript
www.github.com/Sir-MSOps/ms_frontend/tree/main/projects/apps-inventory/src/app/modules/items/pages/unit-of-major/uom-view/uom-view.component.ts
https://raw.githubusercontent.com/Sir-MSOps/ms_frontend/fe17903/projects/apps-inventory/src/app/modules/items/pages/unit-of-major/uom-view/uom-view.component.ts
Sir-MSOps/ms_frontend fe17903 projects/apps-inventory/src/app/modules/items/pages/unit-of-major/uom-view/uom-view.component.ts
true
200
2,181
import { Component } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { RouterService, LanguageService, PageInfoResult } from 'shared-lib'; import { ItemsService } from '../../../items.service'; import { UOMType } from '../../../models/enums'; import { debounceTime, Subject } from 'rxjs'; ...
6
whileTrueDev/tp-mvp
f11072c
client/web/src/organisms/mainpage/shared/ProductHero.style.ts
TypeScript
www.github.com/whileTrueDev/tp-mvp/tree/main/client/web/src/organisms/mainpage/shared/ProductHero.style.ts
https://raw.githubusercontent.com/whileTrueDev/tp-mvp/f11072c/client/web/src/organisms/mainpage/shared/ProductHero.style.ts
whileTrueDev/tp-mvp f11072c client/web/src/organisms/mainpage/shared/ProductHero.style.ts
true
200
3,367
import { makeStyles } from '@material-ui/core/styles'; import { MAIN_HERO_HEIGHT, COMMON_APP_BAR_HEIGHT, } from '../../../assets/constants'; const HEIGHT = MAIN_HERO_HEIGHT + COMMON_APP_BAR_HEIGHT; // 기존 hero 영역 높이 + Appbar가 차지하던 높이. (뱀비늘배경을 앱바에도 보이도록 하기 위한 조치) by hwasurr const styles = makeStyles((theme) => { co...
2
stanislawsztrajt/optiflow
87c45a0
backend/dist/core/middlewares/set-user-id.middleware.d.ts
TypeScript
www.github.com/stanislawsztrajt/optiflow/tree/main/backend/dist/core/middlewares/set-user-id.middleware.d.ts
https://raw.githubusercontent.com/stanislawsztrajt/optiflow/87c45a0/backend/dist/core/middlewares/set-user-id.middleware.d.ts
stanislawsztrajt/optiflow 87c45a0 backend/dist/core/middlewares/set-user-id.middleware.d.ts
true
200
469
import { NestMiddleware } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { Response, NextFunction } from 'express'; import { IschemaIds } from '../../modules/lost-items/types/mongodb'; import { Irequest } from '../../utils/types'; export declare class SetUserIdMiddleware implements NestMiddlewa...
1
carlwuaku/druglaneclientv15
601fb31
src/app/features/transactions/models/transaction_details.model.ts
TypeScript
www.github.com/carlwuaku/druglaneclientv15/tree/main/src/app/features/transactions/models/transaction_details.model.ts
https://raw.githubusercontent.com/carlwuaku/druglaneclientv15/601fb31/src/app/features/transactions/models/transaction_details.model.ts
carlwuaku/druglaneclientv15 601fb31 src/app/features/transactions/models/transaction_details.model.ts
true
200
1,031
import { ProductObject } from "../../products/models/productModel"; export class TransactionDetailsObject { id!: string; product: string; product_name: string; quantity: number = 1; price: number; unit: string; label: string; code: string = ""; cost_price: number; expiry: string; batch_number: st...
2
notbetha/p-telefonia
4b0fda3
src/app.ts
TypeScript
www.github.com/notbetha/p-telefonia/tree/main/src/app.ts
https://raw.githubusercontent.com/notbetha/p-telefonia/4b0fda3/src/app.ts
notbetha/p-telefonia 4b0fda3 src/app.ts
true
200
542
import express from 'express'; import cors from 'cors'; // Importar las rutas import authRoutes from './modules/auth/auth.routes'; import callsRoutes from './modules/calls/calls.routes'; const app = express(); const PORT = 3000; // Middleware app.use(cors()); app.use(express.json()); // Rutas app.use('/api', aut...
1
caiquefrd/dataStructure
640509f
Dictionary/models/Dictionary_model.ts
TypeScript
www.github.com/caiquefrd/dataStructure/tree/main/Dictionary/models/Dictionary_model.ts
https://raw.githubusercontent.com/caiquefrd/dataStructure/640509f/Dictionary/models/Dictionary_model.ts
caiquefrd/dataStructure 640509f Dictionary/models/Dictionary_model.ts
true
200
543
class Dictionary { word1: string; word2: string; constructor(word1: string, word2: string) { this.word1 = word1 ; this.word2 = word2; } compare(): void { if (this.word1 < this.word2) { console.log( `${this.word1} vem antes de ${this.word2} no dicionário.` ); } else if (...
2
freddavin/auth-jwt
d301da6
auth-jwt-backend/src/services/users/update.user.ts
TypeScript
www.github.com/freddavin/auth-jwt/tree/main/auth-jwt-backend/src/services/users/update.user.ts
https://raw.githubusercontent.com/freddavin/auth-jwt/d301da6/auth-jwt-backend/src/services/users/update.user.ts
freddavin/auth-jwt d301da6 auth-jwt-backend/src/services/users/update.user.ts
true
200
710
import { Types } from "mongoose"; import { logger } from "../../libs/winston"; import { IUser, User } from "../../models/user"; import { BadRequestError, NotFoundError } from "../../libs/custom.errors"; export const updateUser = async (id: string, input: Partial<IUser>) => { const { password } = input; if (!Types....
1
hamilton-i7/dictionary-web-app
c82a9a5
src/app/features/share/components/theme-toggle/theme-toggle.component.spec.ts
TypeScript
www.github.com/hamilton-i7/dictionary-web-app/tree/main/src/app/features/share/components/theme-toggle/theme-toggle.component.spec.ts
https://raw.githubusercontent.com/hamilton-i7/dictionary-web-app/c82a9a5/src/app/features/share/components/theme-toggle/theme-toggle.component.spec.ts
hamilton-i7/dictionary-web-app c82a9a5 src/app/features/share/components/theme-toggle/theme-toggle.component.spec.ts
true
200
1,452
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BehaviorSubject } from 'rxjs'; import { Theme, ThemeService } from '../../services/theme.service'; import { ThemeToggleComponent } from './theme-toggle.component'; describe('ThemeToggleComponent', () => { let component: ThemeToggleComponent...
2
DougAnderson444/ipld-car-txs
834bcce
src/lib/transaction.ts
TypeScript
www.github.com/DougAnderson444/ipld-car-txs/tree/main/src/lib/transaction.ts
https://raw.githubusercontent.com/DougAnderson444/ipld-car-txs/834bcce/src/lib/transaction.ts
DougAnderson444/ipld-car-txs 834bcce src/lib/transaction.ts
true
200
2,872
// https://github.com/mikeal/car-transaction/blob/main/index.js import * as CBW from '@ipld/car/buffer-writer'; // import * as CBW from '../../node_modules/@ipld/car/esm/lib/buffer-writer.js'; // import * as CBW from '@ipld/car/esm/lib/buffer-writer.js'; // not exported // import * as CBW from './modules/buffer-writer...
1
sivagopi01/final-milestoe-Assesment
b6e16ae
Angular/device-management/device-management.component.ts
TypeScript
www.github.com/sivagopi01/final-milestoe-Assesment/tree/main/Angular/device-management/device-management.component.ts
https://raw.githubusercontent.com/sivagopi01/final-milestoe-Assesment/b6e16ae/Angular/device-management/device-management.component.ts
sivagopi01/final-milestoe-Assesment b6e16ae Angular/device-management/device-management.component.ts
true
200
1,955
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Device } from 'src/models.ts/device.model'; import { DeviceService } from '../device.service'; //import { DeviceService } from '../services/device.service'; //import { Device } from '../model...
2
eddiee-s/pokedex-loni-app
91a9aa6
redux/features/slices/pokeSlice.ts
TypeScript
www.github.com/eddiee-s/pokedex-loni-app/tree/main/redux/features/slices/pokeSlice.ts
https://raw.githubusercontent.com/eddiee-s/pokedex-loni-app/91a9aa6/redux/features/slices/pokeSlice.ts
eddiee-s/pokedex-loni-app 91a9aa6 redux/features/slices/pokeSlice.ts
true
200
1,114
import { createSlice } from "@reduxjs/toolkit"; import { PokemonType } from "../../../types"; const slice = createSlice({ name: "pokemons", initialState: { allPokemons: [] as PokemonType[], singlePokemon: {} as PokemonType, wishListPokemons: [] as PokemonType[], }, reducers: { setAllPokemons: (...
1