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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bloomberg/stricli | 8317de7 | packages/core/src/routing/scanner.ts | TypeScript | www.github.com/bloomberg/stricli/tree/main/packages/core/src/routing/scanner.ts | https://raw.githubusercontent.com/bloomberg/stricli/8317de7/packages/core/src/routing/scanner.ts | bloomberg/stricli 8317de7 packages/core/src/routing/scanner.ts | true | 200 | 4,440 | // Copyright 2024 Bloomberg Finance L.P.
// Distributed under the terms of the Apache 2.0 license.
import type { DisplayCaseStyle, ScannerConfiguration } from "../config";
import type { CommandContext } from "../context";
import { convertKebabCaseToCamelCase } from "../util/case-style";
import { CommandSymbol } from ".... | 0 |
itoudium/reed-music-player | 07c06b5 | src/service/playbackManager/playbackContextManager.ts | TypeScript | www.github.com/itoudium/reed-music-player/tree/main/src/service/playbackManager/playbackContextManager.ts | https://raw.githubusercontent.com/itoudium/reed-music-player/07c06b5/src/service/playbackManager/playbackContextManager.ts | itoudium/reed-music-player 07c06b5 src/service/playbackManager/playbackContextManager.ts | true | 200 | 3,476 | import { Content } from '@prisma/client';
import { prisma } from '../prisma';
import { PlaybackContext } from '../../../types/AppStateType';
export class PlaybackContextManager {
private _context: PlaybackContext;
private _rawContents: Content[] = [];
private _contents: Content[] = [];
private currentTrackInde... | 2 |
LuyandraBranco/API-PSFotos | 0ae3d1d | src/auth/auth.controller.ts | TypeScript | www.github.com/LuyandraBranco/API-PSFotos/tree/main/src/auth/auth.controller.ts | https://raw.githubusercontent.com/LuyandraBranco/API-PSFotos/0ae3d1d/src/auth/auth.controller.ts | LuyandraBranco/API-PSFotos 0ae3d1d src/auth/auth.controller.ts | true | 200 | 967 | import { Body, Controller, Get, HttpCode, HttpStatus, Post, UseGuards, Request, UnauthorizedException } from '@nestjs/common';
import { UserDTO } from 'src/dtos/user.dots';
import { AuthService } from './auth.service';
import { AuthGuard } from './auth.guard';
import { Public } from './decorators/public.decorator';
@C... | 3 |
huvadev/ravn-challenge-v2-hugo-valencia | c7fbab4 | src/prisma/enums/prisma-errors.enum.ts | TypeScript | www.github.com/huvadev/ravn-challenge-v2-hugo-valencia/tree/main/src/prisma/enums/prisma-errors.enum.ts | https://raw.githubusercontent.com/huvadev/ravn-challenge-v2-hugo-valencia/c7fbab4/src/prisma/enums/prisma-errors.enum.ts | huvadev/ravn-challenge-v2-hugo-valencia c7fbab4 src/prisma/enums/prisma-errors.enum.ts | true | 200 | 449 | export const PrismaErrorsEnum = {
/**
* P2002: Unique constraint failed
*/
P2002: 'P2002',
/**
* P2003: Foreign key constraint failed
*/
P2003: 'P2003',
/**
* P2025: An operation failed because it depends on one or more records that were required but not found
*/
P2025: 'P2025',
/**
*... | 1 |
fellipe-s-brandao/RENTX | f3f19aa | src/modules/cars/useCases/createCar/CreateCarController.ts | TypeScript | www.github.com/fellipe-s-brandao/RENTX/tree/main/src/modules/cars/useCases/createCar/CreateCarController.ts | https://raw.githubusercontent.com/fellipe-s-brandao/RENTX/f3f19aa/src/modules/cars/useCases/createCar/CreateCarController.ts | fellipe-s-brandao/RENTX f3f19aa src/modules/cars/useCases/createCar/CreateCarController.ts | true | 200 | 991 | import { Request, Response } from "express";
import { container } from "tsyringe";
import { CreateCarUseCase } from "./CreateCarUseCase";
class CreateCarController {
async handle(request: Request, response: Response) {
const { name,
description,
daily_rate,
... | 4 |
Shelif26/nest_MONGO | 5ad6ff1 | src/provider/entities/provider.entity.ts | TypeScript | www.github.com/Shelif26/nest_MONGO/tree/main/src/provider/entities/provider.entity.ts | https://raw.githubusercontent.com/Shelif26/nest_MONGO/5ad6ff1/src/provider/entities/provider.entity.ts | Shelif26/nest_MONGO 5ad6ff1 src/provider/entities/provider.entity.ts | true | 200 | 982 | import {
Entity,
Column,
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
ObjectIdColumn,
} from 'typeorm';
@Entity('provider')
export class Provider {
@ObjectIdColumn()
id: number;
@Column('varchar', { name: 'provider Id', length: 100 })
providerId!: string
... | 0 |
rohitsengundhar192/wowfeesclient | 7c313ab | src/app/modules/launch-screen-app/Components/testing/testing.component.ts | TypeScript | www.github.com/rohitsengundhar192/wowfeesclient/tree/main/src/app/modules/launch-screen-app/Components/testing/testing.component.ts | https://raw.githubusercontent.com/rohitsengundhar192/wowfeesclient/7c313ab/src/app/modules/launch-screen-app/Components/testing/testing.component.ts | rohitsengundhar192/wowfeesclient 7c313ab src/app/modules/launch-screen-app/Components/testing/testing.component.ts | true | 200 | 2,071 | import { HttpClient } from '@angular/common/http';
import { Component, NgZone, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ThemePalette } from '@angular/material/core';
import {
MatCalendar,
MatDatepicker,
MatDatepickerInputEvent,
} from ... | 3 |
kacper-helpfind/testing-features-env | aefd37c | src/lib/i18n.ts | TypeScript | www.github.com/kacper-helpfind/testing-features-env/tree/main/src/lib/i18n.ts | https://raw.githubusercontent.com/kacper-helpfind/testing-features-env/aefd37c/src/lib/i18n.ts | kacper-helpfind/testing-features-env aefd37c src/lib/i18n.ts | true | 200 | 347 | import { i18n } from '@lingui/core';
export const locales = {
pl: 'Polski',
en: 'English',
};
export const defaultLocale: keyof typeof locales = 'pl';
export async function langDynamic(locale: keyof typeof locales) {
const { messages } = await import(`../locales/${locale}.po`);
i18n.load(locale, messages);
... | 2 |
Poxie/outlet-test | 17adba8 | admin/hooks/products/useMutateProductPositions.ts | TypeScript | www.github.com/Poxie/outlet-test/tree/main/admin/hooks/products/useMutateProductPositions.ts | https://raw.githubusercontent.com/Poxie/outlet-test/17adba8/admin/hooks/products/useMutateProductPositions.ts | Poxie/outlet-test 17adba8 admin/hooks/products/useMutateProductPositions.ts | true | 200 | 429 | import updateProductPositions from "@/api/products/updateProductPositions";
import { useMutation } from "@tanstack/react-query"
export default function useMutateProductPositions(parentId: string) {
return useMutation({
mutationKey: ['products', 'positions'],
mutationFn: (positions: {
id... | 4 |
viniciuskellersicoob/sb1-tdkkxu2i | 3c90536 | src/app/components/login/login.component.ts | TypeScript | www.github.com/viniciuskellersicoob/sb1-tdkkxu2i/tree/main/src/app/components/login/login.component.ts | https://raw.githubusercontent.com/viniciuskellersicoob/sb1-tdkkxu2i/3c90536/src/app/components/login/login.component.ts | viniciuskellersicoob/sb1-tdkkxu2i 3c90536 src/app/components/login/login.component.ts | true | 200 | 9,316 | import { Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import... | 1 |
fariamg/iostraordinarios | bfe42bc | backend/src/comment/comment.service.ts | TypeScript | www.github.com/fariamg/iostraordinarios/tree/main/backend/src/comment/comment.service.ts | https://raw.githubusercontent.com/fariamg/iostraordinarios/bfe42bc/backend/src/comment/comment.service.ts | fariamg/iostraordinarios bfe42bc backend/src/comment/comment.service.ts | true | 200 | 1,647 | import { Injectable } from '@nestjs/common';
import { CreateCommentDto } from './dto/create-comment.dto';
import { Comment } from './entities/comment.entity';
import { Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from '../user/entities/user.entity';
import { Publish }... | 5 |
MMaazQureshi/PersonalProjectsAndPOCs | 2953abb | angular/Thinkster/src/app/app.module.ts | TypeScript | www.github.com/MMaazQureshi/PersonalProjectsAndPOCs/tree/main/angular/Thinkster/src/app/app.module.ts | https://raw.githubusercontent.com/MMaazQureshi/PersonalProjectsAndPOCs/2953abb/angular/Thinkster/src/app/app.module.ts | MMaazQureshi/PersonalProjectsAndPOCs 2953abb angular/Thinkster/src/app/app.module.ts | true | 200 | 1,106 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/com... | 3 |
L-Marcel/ignite-06-reactjs-2022-ignite-call | 38052c1 | src/components/Brand/styles.ts | TypeScript | www.github.com/L-Marcel/ignite-06-reactjs-2022-ignite-call/tree/main/src/components/Brand/styles.ts | https://raw.githubusercontent.com/L-Marcel/ignite-06-reactjs-2022-ignite-call/38052c1/src/components/Brand/styles.ts | L-Marcel/ignite-06-reactjs-2022-ignite-call 38052c1 src/components/Brand/styles.ts | true | 200 | 336 | import { styled } from "@ignite-ui/react";
import tw from "twin.macro";
export const BrandContainer = styled("a", {
...tw`
absolute
bottom-0
right-8
text-lg
2xl:text-xl
md:right-7
text-zinc-300
bg-zinc-800
hover:underline
underline-offset-2
rounded-t-md
h-min
py-1
... | 2 |
thiagobasalles/controle-tarefas-frontend | 5c7be9f | src/app/component/tarefa-card-form/tarefa-card-form.component.ts | TypeScript | www.github.com/thiagobasalles/controle-tarefas-frontend/tree/main/src/app/component/tarefa-card-form/tarefa-card-form.component.ts | https://raw.githubusercontent.com/thiagobasalles/controle-tarefas-frontend/5c7be9f/src/app/component/tarefa-card-form/tarefa-card-form.component.ts | thiagobasalles/controle-tarefas-frontend 5c7be9f src/app/component/tarefa-card-form/tarefa-card-form.component.ts | true | 200 | 3,143 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatCardModule } from '@angular/material/card';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatFormFieldModule } from '@angular/material/form-field';
import ... | 4 |
AlexandriaDeveloper/SallaryV2 | c7c7559 | UI/src/app/shared/services/order-file.service.ts | TypeScript | www.github.com/AlexandriaDeveloper/SallaryV2/tree/main/UI/src/app/shared/services/order-file.service.ts | https://raw.githubusercontent.com/AlexandriaDeveloper/SallaryV2/c7c7559/UI/src/app/shared/services/order-file.service.ts | AlexandriaDeveloper/SallaryV2 c7c7559 UI/src/app/shared/services/order-file.service.ts | true | 200 | 528 | import { HttpClient, HttpParams } from '@angular/common/http';
import { HttpCustomClientService } from './http-custom-client.service';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class OrderFileService extends HttpCustomClientService {
constructor() {
super('orderFil... | 7 |
ab7762/finde_mobile | cf2e01a | src/app/app.component.ts | TypeScript | www.github.com/ab7762/finde_mobile/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/ab7762/finde_mobile/cf2e01a/src/app/app.component.ts | ab7762/finde_mobile cf2e01a src/app/app.component.ts | true | 200 | 968 | import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import { SecureStorage } from "@nativescript/secure-storage";
import { Store } from "@ngrx/store";
import { AuthState } from "./auth.reducer";
import { login, logout } from "./auth.actions";
const secureStorage = new SecureStor... | 0 |
sapon-tcc/sanpon-frontend | bcc85ff | src/app/services/book.service.ts | TypeScript | www.github.com/sapon-tcc/sanpon-frontend/tree/main/src/app/services/book.service.ts | https://raw.githubusercontent.com/sapon-tcc/sanpon-frontend/bcc85ff/src/app/services/book.service.ts | sapon-tcc/sanpon-frontend bcc85ff src/app/services/book.service.ts | true | 200 | 1,257 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, Observable } from 'rxjs';
import { Book } from '../book.interface';
import { ToastrService } from 'ngx-toastr';
@Injectable({
providedIn: 'root'
})
export class BookService {
private apiBook = ... | 6 |
devitalo97/uniworld-aircraft | c939dcc | lib/definitions/flight.definition.ts | TypeScript | www.github.com/devitalo97/uniworld-aircraft/tree/main/lib/definitions/flight.definition.ts | https://raw.githubusercontent.com/devitalo97/uniworld-aircraft/c939dcc/lib/definitions/flight.definition.ts | devitalo97/uniworld-aircraft c939dcc lib/definitions/flight.definition.ts | true | 200 | 2,752 | // interface AirportCode {
// icao: string;
// iata: string;
// }
interface Airport {
// code: AirportCode;
// longitudeDec?: number;
// latitudeDec?: number;
// name?: string;
city: string;
// country?: string;
}
// interface BuyerRepresentative {
// name: string;
// surname: string;
// }
... | 1 |
obah/dyve | 1700001 | dyve-nextjs/dyve/tailwind.config.ts | TypeScript | www.github.com/obah/dyve/tree/main/dyve-nextjs/dyve/tailwind.config.ts | https://raw.githubusercontent.com/obah/dyve/1700001/dyve-nextjs/dyve/tailwind.config.ts | obah/dyve 1700001 dyve-nextjs/dyve/tailwind.config.ts | true | 200 | 2,815 | import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gr... | 3 |
Affluent-Closet/client | f898a31 | src/hooks/common/useToggle.ts | TypeScript | www.github.com/Affluent-Closet/client/tree/main/src/hooks/common/useToggle.ts | https://raw.githubusercontent.com/Affluent-Closet/client/f898a31/src/hooks/common/useToggle.ts | Affluent-Closet/client f898a31 src/hooks/common/useToggle.ts | true | 200 | 322 | import { useCallback, useState } from 'react';
type ReturnTypes = [boolean, () => void];
export default function useToggle(initialValue = false): ReturnTypes {
const [value, setValue] = useState(initialValue);
const onToggle = useCallback(() => {
setValue(!value);
}, [value]);
return [value, onToggle];
... | 5 |
vibhor2310/bank-frontend | 17f3f03 | src/app/components/customer/open-bank-account/open-bank-account.component.ts | TypeScript | www.github.com/vibhor2310/bank-frontend/tree/main/src/app/components/customer/open-bank-account/open-bank-account.component.ts | https://raw.githubusercontent.com/vibhor2310/bank-frontend/17f3f03/src/app/components/customer/open-bank-account/open-bank-account.component.ts | vibhor2310/bank-frontend 17f3f03 src/app/components/customer/open-bank-account/open-bank-account.component.ts | true | 200 | 1,825 | import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { CustomerService } from '../../../service/customer.service';
import { NgIf } from '@angular/common';
import { Router } from '@angular/router';
@Component({
selector: 'a... | 2 |
Ankitha-Karyam/Fuel-Drop-Application-Frontend | 5cc02d9 | src/app/components/home/home.component.ts | TypeScript | www.github.com/Ankitha-Karyam/Fuel-Drop-Application-Frontend/tree/main/src/app/components/home/home.component.ts | https://raw.githubusercontent.com/Ankitha-Karyam/Fuel-Drop-Application-Frontend/5cc02d9/src/app/components/home/home.component.ts | Ankitha-Karyam/Fuel-Drop-Application-Frontend 5cc02d9 src/app/components/home/home.component.ts | true | 200 | 682 | import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { UserService } from '../../services/user.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrl: './home.component.css'
})
export class HomeComponent {
constructor(private router:R... | 7 |
milotriss/Cake-Project-ReacJS | 6de0dd7 | src/configs/firebase.config.ts | TypeScript | www.github.com/milotriss/Cake-Project-ReacJS/tree/main/src/configs/firebase.config.ts | https://raw.githubusercontent.com/milotriss/Cake-Project-ReacJS/6de0dd7/src/configs/firebase.config.ts | milotriss/Cake-Project-ReacJS 6de0dd7 src/configs/firebase.config.ts | true | 200 | 555 |
import { initializeApp } from "firebase/app";
import { getStorage } from "firebase/storage";
const firebaseConfig = {
apiKey: "AIzaSyBPE4xj8dv5am5U2FOPUNp5bODg1uVcrFo",
authDomain: "learn-firebase-bd824.firebaseapp.com",
projectId: "learn-firebase-bd824",
storageBucket: "learn-firebase-bd824.appspot.c... | 4 |
matheustkaczyk/fabricaDeStartup-technical-assessment | 22fdaa3 | src/validations/joi/userSchema.ts | TypeScript | www.github.com/matheustkaczyk/fabricaDeStartup-technical-assessment/tree/main/src/validations/joi/userSchema.ts | https://raw.githubusercontent.com/matheustkaczyk/fabricaDeStartup-technical-assessment/22fdaa3/src/validations/joi/userSchema.ts | matheustkaczyk/fabricaDeStartup-technical-assessment 22fdaa3 src/validations/joi/userSchema.ts | true | 200 | 1,455 | import Joi from 'joi';
export const userSchema = Joi.object({
email: Joi.string()
.email()
.required()
.messages({
'string.email': 'Email must be a valid email',
'string.empty': 'Email is required',
}),
password: Joi.string()
.min(6)
.max(30)
.required()
.message... | 0 |
haha27lim/Google-OAuth2-Spring-Boot-and-Angular | c1a1f96 | angular/src/app/register/register.component.ts | TypeScript | www.github.com/haha27lim/Google-OAuth2-Spring-Boot-and-Angular/tree/main/angular/src/app/register/register.component.ts | https://raw.githubusercontent.com/haha27lim/Google-OAuth2-Spring-Boot-and-Angular/c1a1f96/angular/src/app/register/register.component.ts | haha27lim/Google-OAuth2-Spring-Boot-and-Angular c1a1f96 angular/src/app/register/register.component.ts | true | 200 | 2,560 | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../_services/auth.service';
import { GoogleAuthService } from '../_services/google-auth.service';
import { ActivatedRoute } from '@angular/router';
import { environment } from 'src/environments/environment';
@Component({
selector: 'app-r... | 6 |
smenaquispe/math-operations-package-npm | dc0ed5d | __test__/SumOperation.test.ts | TypeScript | www.github.com/smenaquispe/math-operations-package-npm/tree/main/__test__/SumOperation.test.ts | https://raw.githubusercontent.com/smenaquispe/math-operations-package-npm/dc0ed5d/__test__/SumOperation.test.ts | smenaquispe/math-operations-package-npm dc0ed5d __test__/SumOperation.test.ts | true | 200 | 466 | import SumOperation from "../src/operations/SumOperation";
import { describe, test, expect } from "@jest/globals"
describe("Make a sum", () => {
test('Returns the correct value', () => {
let sum = new SumOperation();
expect(sum.run(5, 3, 56)).toEqual(64)
})
test('Throws an error when no nu... | 1 |
hainam1411/demo-angular | b7ebf1b | src/app/cart/cart.component.ts | TypeScript | www.github.com/hainam1411/demo-angular/tree/main/src/app/cart/cart.component.ts | https://raw.githubusercontent.com/hainam1411/demo-angular/b7ebf1b/src/app/cart/cart.component.ts | hainam1411/demo-angular b7ebf1b src/app/cart/cart.component.ts | true | 200 | 2,591 | import { Component } from '@angular/core';
import {NgIf, NgStyle} from '@angular/common';
import {BookItem} from '../shared/type/bookItem';
import {BookItemComponent} from '../shared/product-item/book-item.component';
import {HttpClient} from '@angular/common/http';
import {BookService} from '../../service/BookService'... | 3 |
AuxencePetit/skillmate | 8a584cf | src/app/models/personnel.model.ts | TypeScript | www.github.com/AuxencePetit/skillmate/tree/main/src/app/models/personnel.model.ts | https://raw.githubusercontent.com/AuxencePetit/skillmate/8a584cf/src/app/models/personnel.model.ts | AuxencePetit/skillmate 8a584cf src/app/models/personnel.model.ts | true | 200 | 503 | export interface Personnel {
idUtilisateur: number;
nom: string;
prenom: string;
email: string;
statut_personnel: 'employe' | 'chef_projet' | 'admin';
date_embauche: Date;
date_naissance: Date;
competences?: Competence[]; // Liste des compétences
}
export interface Competence {
... | 5 |
philjin97/fluent-erp | 246a9db | lib/api.ts | TypeScript | www.github.com/philjin97/fluent-erp/tree/main/lib/api.ts | https://raw.githubusercontent.com/philjin97/fluent-erp/246a9db/lib/api.ts | philjin97/fluent-erp 246a9db lib/api.ts | true | 200 | 3,406 | import { MongoClient, ObjectId } from "mongodb"
import dotenv from "dotenv";
// Load environment variables
dotenv.config();
const uri = process.env.MONGODB_URI
if (!uri) {
throw new Error("MONGODB_URI is not defined in the .env file");
}
const client = new MongoClient(uri)
export type Student = {
_id: strin... | 2 |
DonikR0807/vk-internship-challenge | 4a927db | src/utils/typePredicates/isMovie.ts | TypeScript | www.github.com/DonikR0807/vk-internship-challenge/tree/main/src/utils/typePredicates/isMovie.ts | https://raw.githubusercontent.com/DonikR0807/vk-internship-challenge/4a927db/src/utils/typePredicates/isMovie.ts | DonikR0807/vk-internship-challenge 4a927db src/utils/typePredicates/isMovie.ts | true | 200 | 774 | import { Movie } from "../../Redux/Entities/Movies/moviesSlice";
import { isMovieRating } from "./isMovieRating";
export function isMovie(data: unknown): data is Movie {
const movie = data as Movie;
if (!movie) {
return false;
}
const hasId = typeof movie.id === "number";
const hasName = typeof movie.... | 7 |
sandhya838/RecruiterSite-Project | 7a386a6 | job portal/src/app/services/company-detail.service.ts | TypeScript | www.github.com/sandhya838/RecruiterSite-Project/tree/main/job portal/src/app/services/company-detail.service.ts | https://raw.githubusercontent.com/sandhya838/RecruiterSite-Project/7a386a6/job%20portal/src/app/services/company-detail.service.ts | sandhya838/RecruiterSite-Project 7a386a6 job portal/src/app/services/company-detail.service.ts | true | 200 | 981 | import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Injectable } from '@angular/core';
import { Observable } from "rxjs";
import { CONSTANTS } from "../helper/constants";
import { CommonService } from "./common.service";
@Injectable({
providedIn: 'root'
})
export class CompanyDetailService {
... | 4 |
DaniRS4/actividad6_CRUD_angular | 70bc459 | UsersCRUD/src/app/pages/users/users.component.ts | TypeScript | www.github.com/DaniRS4/actividad6_CRUD_angular/tree/main/UsersCRUD/src/app/pages/users/users.component.ts | https://raw.githubusercontent.com/DaniRS4/actividad6_CRUD_angular/70bc459/UsersCRUD/src/app/pages/users/users.component.ts | DaniRS4/actividad6_CRUD_angular 70bc459 UsersCRUD/src/app/pages/users/users.component.ts | true | 200 | 342 | import { Component } from '@angular/core';
import { HeaderComponent } from "../../shared/header/header.component";
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-users',
imports: [RouterOutlet],
templateUrl: './users.component.html',
styleUrl: './users.component.css'
})
export clas... | 0 |
Alex-H-YW/Paytron-test | 1c8a1fd | be-test/src/getPayment.ts | TypeScript | www.github.com/Alex-H-YW/Paytron-test/tree/main/be-test/src/getPayment.ts | https://raw.githubusercontent.com/Alex-H-YW/Paytron-test/1c8a1fd/be-test/src/getPayment.ts | Alex-H-YW/Paytron-test 1c8a1fd be-test/src/getPayment.ts | true | 200 | 616 | import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda';
import { getPayment } from './lib/payments';
import { buildResponse } from './lib/apigateway';
export const handler = async (event:APIGatewayProxyEvent): Promise<APIGatewayProxyResult> => {
const id = event.pathParameters?.id;
try {
... | 1 |
devcaballero/panel-informativo-front | b4b93ab | src/app/pan/pan.component.ts | TypeScript | www.github.com/devcaballero/panel-informativo-front/tree/main/src/app/pan/pan.component.ts | https://raw.githubusercontent.com/devcaballero/panel-informativo-front/b4b93ab/src/app/pan/pan.component.ts | devcaballero/panel-informativo-front b4b93ab src/app/pan/pan.component.ts | true | 200 | 852 | import { Component, OnInit } from '@angular/core';
import { ApiService } from '../api.service';
@Component({
selector: 'app-pan',
templateUrl: './pan.component.html',
styleUrls: ['./pan.component.css']
})
export class PanComponent implements OnInit {
pan: string | undefined;
isLoading: boolean = true;
co... | 6 |
foldaren/gear_idle | e3cd05a | src/messagingBus.ts | TypeScript | www.github.com/foldaren/gear_idle/tree/main/src/messagingBus.ts | https://raw.githubusercontent.com/foldaren/gear_idle/e3cd05a/src/messagingBus.ts | foldaren/gear_idle e3cd05a src/messagingBus.ts | true | 200 | 3,348 | import { Zones } from "./zones/zones";
export namespace MessagingBus {
export class Subscription<T> {
private registrationId: number;
private parent: MessagingBusData<T>;
/** @internal */
constructor(parent: MessagingBusData<T>, id: number) {
this.registrationId = id;
... | 3 |
TIDC/ssml-document | 4f6d98e | src/lib/Compiler.ts | TypeScript | www.github.com/TIDC/ssml-document/tree/main/src/lib/Compiler.ts | https://raw.githubusercontent.com/TIDC/ssml-document/4f6d98e/src/lib/Compiler.ts | TIDC/ssml-document 4f6d98e src/lib/Compiler.ts | true | 200 | 9,318 | import ICompilerOptions from './interface/ICompilerOptions';
import extension from './extension';
import util from './util';
const DISABLE_TARGETS_SCRIPT = `const ${["require", "process", "eval", "Buffer", "Function", "fetch", "global", "window", "alert"].join("={},")}={};`; //禁用的方法和对象
export default class Compiler ... | 5 |
venunye88/omatrack-web | e582954 | src/app/services/station.service.ts | TypeScript | www.github.com/venunye88/omatrack-web/tree/main/src/app/services/station.service.ts | https://raw.githubusercontent.com/venunye88/omatrack-web/e582954/src/app/services/station.service.ts | venunye88/omatrack-web e582954 src/app/services/station.service.ts | true | 200 | 509 | import { Injectable } from '@angular/core';
import { BaseService } from './base-service';
import { HttpClient } from '@angular/common/http';
import { environment } from 'environments/environment';
import { Outlet } from 'app/models/station.model';
@Injectable({
providedIn: 'root'
})
export class StationService exten... | 2 |
santosmarco/ttypes | 76cef9d | src/types/pipeline.ts | TypeScript | www.github.com/santosmarco/ttypes/tree/main/src/types/pipeline.ts | https://raw.githubusercontent.com/santosmarco/ttypes/76cef9d/src/types/pipeline.ts | santosmarco/ttypes 76cef9d src/types/pipeline.ts | true | 200 | 3,041 | import type { TDef } from '../def'
import { TManifest } from '../manifest'
import type { TOptions } from '../options'
import type { ParseContextOf, ParseResultOf } from '../parse'
import { TTypeName } from '../type-names'
import type { u } from '../utils'
import { TType, type InputOf, type OutputOf } from './_internal'... | 4 |
KSergey-web/demo-server-social-network | db53306 | src/organization/schemas/organization.schema.ts | TypeScript | www.github.com/KSergey-web/demo-server-social-network/tree/main/src/organization/schemas/organization.schema.ts | https://raw.githubusercontent.com/KSergey-web/demo-server-social-network/db53306/src/organization/schemas/organization.schema.ts | KSergey-web/demo-server-social-network db53306 src/organization/schemas/organization.schema.ts | true | 200 | 469 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type OrganizationDocument = Organization & Document;
@Schema()
export class Organization {
@Prop({ required: true })
name: string;
@Prop({ required: false })
description: string;
@Prop({ required: t... | 7 |
NayanaKeshavamurthy/Logictics-and-Shipping-Hub | 3f606b1 | frontend/src/app/login/modify-order/modify-order.component.ts | TypeScript | www.github.com/NayanaKeshavamurthy/Logictics-and-Shipping-Hub/tree/main/frontend/src/app/login/modify-order/modify-order.component.ts | https://raw.githubusercontent.com/NayanaKeshavamurthy/Logictics-and-Shipping-Hub/3f606b1/frontend/src/app/login/modify-order/modify-order.component.ts | NayanaKeshavamurthy/Logictics-and-Shipping-Hub 3f606b1 frontend/src/app/login/modify-order/modify-order.component.ts | true | 200 | 2,160 |
import { AuthService } from 'app/services/auth.service';
import { FormBuilder } from '@angular/forms';
import { Component, OnInit } from '@angular/core';
import { OrderService } from 'app/services/order.service';
import { Observable } from "rxjs";
import { Router } from "@angular/router";
export class orderModify {
... | 0 |
Jad-Kh/situu-ngrx-example | 51a7dfd | application/src/app/list/list.component.ts | TypeScript | www.github.com/Jad-Kh/situu-ngrx-example/tree/main/application/src/app/list/list.component.ts | https://raw.githubusercontent.com/Jad-Kh/situu-ngrx-example/51a7dfd/application/src/app/list/list.component.ts | Jad-Kh/situu-ngrx-example 51a7dfd application/src/app/list/list.component.ts | true | 200 | 1,523 | import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { List } from 'src/app/models/List';
import { Record } from 'src/app/models/Record';
import { Store } from '@ngrx/store';
import { AppState } from '../state/app.state';
import { addRecordToList, loadLists, removeRecordFromList,... | 1 |
hubegaw/cookboy | d17dd86 | frontend/src/app/services/api-service.service.ts | TypeScript | www.github.com/hubegaw/cookboy/tree/main/frontend/src/app/services/api-service.service.ts | https://raw.githubusercontent.com/hubegaw/cookboy/d17dd86/frontend/src/app/services/api-service.service.ts | hubegaw/cookboy d17dd86 frontend/src/app/services/api-service.service.ts | true | 200 | 1,996 | import { Injectable } from '@angular/core';
import {HttpClient, HttpHeaders} from "@angular/common/http";
import {Observable} from "rxjs";
import jwt_decode from 'jwt-decode';
@Injectable({
providedIn: 'root'
})
export class ApiService {
private apiUrl = 'http://localhost:8080/api/v1/recipes'; // Update with your... | 6 |
gatziscallin/padlet_angular | a29aec0 | src/app/app.module.ts | TypeScript | www.github.com/gatziscallin/padlet_angular/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/gatziscallin/padlet_angular/a29aec0/src/app/app.module.ts | gatziscallin/padlet_angular a29aec0 src/app/app.module.ts | true | 200 | 1,924 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { PadletListComponent } from './padlet-list/padlet-list.component';
import { PadletListItemComponent } from './padlet-list-item/padlet-list-item.component';
import... | 5 |
prophetw/testMerge | c000cdc | webgl/sub/ch05/MultiAttributeSize_Interleaved.ts | TypeScript | www.github.com/prophetw/testMerge/tree/main/webgl/sub/ch05/MultiAttributeSize_Interleaved.ts | https://raw.githubusercontent.com/prophetw/testMerge/c000cdc/webgl/sub/ch05/MultiAttributeSize_Interleaved.ts | prophetw/testMerge c000cdc webgl/sub/ch05/MultiAttributeSize_Interleaved.ts | true | 200 | 2,951 | import FSHADER_SOURCE from './MultiAttributeSize_Interleaved.frag.glsl'
import VSHADER_SOURCE from './MultiAttributeSize_Interleaved.vert.glsl'
// MultiAttributeSize_Interleaved.js (c) 2012 matsuda
// Vertex shader program
// var VSHADER_SOURCE =
// 'attribute vec4 a_Position;\n' +
// 'attribute float a_PointSize;\... | 7 |
arthurtosi/Backend-CT | 41149d2 | src/utils/extensions/array.ts | TypeScript | www.github.com/arthurtosi/Backend-CT/tree/main/src/utils/extensions/array.ts | https://raw.githubusercontent.com/arthurtosi/Backend-CT/41149d2/src/utils/extensions/array.ts | arthurtosi/Backend-CT 41149d2 src/utils/extensions/array.ts | true | 200 | 809 | export {};
declare global {
export interface Array<T> {
groupBy<TKey extends string | number | symbol>(
this: Array<T>,
keySelector: (source: T) => TKey
): Record<TKey, T[]>;
}
}
Array.prototype.groupBy = function <
TSource,
TKey extends string | number | symbol
>(
this: TSource[],
key... | 2 |
davidkapuza/aedice | 83a5928 | middleware.ts | TypeScript | www.github.com/davidkapuza/aedice/tree/main/middleware.ts | https://raw.githubusercontent.com/davidkapuza/aedice/83a5928/middleware.ts | davidkapuza/aedice 83a5928 middleware.ts | true | 200 | 870 | import { getToken } from "next-auth/jwt";
import { withAuth } from "next-auth/middleware";
import { NextResponse } from "next/server";
export default withAuth(
async function middleware(req) {
const token = await getToken({ req });
const isAuth = !!token;
const isAuthPage = req.nextUrl.pathname === "/";
... | 3 |
shirogin/whats-your-choice | 4507360 | src/app/contexts/game.ts | TypeScript | www.github.com/shirogin/whats-your-choice/tree/main/src/app/contexts/game.ts | https://raw.githubusercontent.com/shirogin/whats-your-choice/4507360/src/app/contexts/game.ts | shirogin/whats-your-choice 4507360 src/app/contexts/game.ts | true | 200 | 1,683 | import { createSlice } from '@reduxjs/toolkit';
const username = sessionStorage.getItem('username') || '';
const room = sessionStorage.getItem('room') || null;
const initialState: GameManagerI = {
choices: [],
mode: 'switch',
selectedCard: null,
room,
currentPlayer: { username },
cards: null,
gameState: {
canS... | 4 |
DAVIDOJONUGWAMOSES/DAVIDOJONUGWAMOSES | 6bea884 | src/app/list-of-instruments/list-of-instruments.component.ts | TypeScript | www.github.com/DAVIDOJONUGWAMOSES/DAVIDOJONUGWAMOSES/tree/main/src/app/list-of-instruments/list-of-instruments.component.ts | https://raw.githubusercontent.com/DAVIDOJONUGWAMOSES/DAVIDOJONUGWAMOSES/6bea884/src/app/list-of-instruments/list-of-instruments.component.ts | DAVIDOJONUGWAMOSES/DAVIDOJONUGWAMOSES 6bea884 src/app/list-of-instruments/list-of-instruments.component.ts | true | 200 | 1,857 | import { Component, OnInit } from '@angular/core';
import {ServiceService} from '../service.service';
export interface type{
id: number;
name: string;
type: string;
date: any;
}
@Component({
selector: 'app-list-of-instruments',
templateUrl: './list-of-instruments.component.html',
styleUrls: ['./list-of-i... | 0 |
Halimdeveloper/projet-vero | fdb721b | projet-vero-frontend/src/app/app.module.ts | TypeScript | www.github.com/Halimdeveloper/projet-vero/tree/main/projet-vero-frontend/src/app/app.module.ts | https://raw.githubusercontent.com/Halimdeveloper/projet-vero/fdb721b/projet-vero-frontend/src/app/app.module.ts | Halimdeveloper/projet-vero fdb721b projet-vero-frontend/src/app/app.module.ts | true | 200 | 1,279 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MaterialModule } from '.... | 1 |
tclarkston/academind-angular-complete | 7abc02e | ch05 - component databinding/src/app/server-element/server-element.component.ts | TypeScript | www.github.com/tclarkston/academind-angular-complete/tree/main/ch05 - component databinding/src/app/server-element/server-element.component.ts | https://raw.githubusercontent.com/tclarkston/academind-angular-complete/7abc02e/ch05%20-%20component%20databinding/src/app/server-element/server-element.component.ts | tclarkston/academind-angular-complete 7abc02e ch05 - component databinding/src/app/server-element/server-element.component.ts | true | 200 | 1,468 | import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, Component, DoCheck, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewChild, ViewEncapsulation, ElementRef } from '@angular/core';
@Component({
selector: 'app-server-element',
templateUrl: './server-element.component.html',
st... | 6 |
Arundath2001/Angular_Promise | 21d59ae | src/app/employee/employee.component.ts | TypeScript | www.github.com/Arundath2001/Angular_Promise/tree/main/src/app/employee/employee.component.ts | https://raw.githubusercontent.com/Arundath2001/Angular_Promise/21d59ae/src/app/employee/employee.component.ts | Arundath2001/Angular_Promise 21d59ae src/app/employee/employee.component.ts | true | 200 | 1,932 | import { Component } from '@angular/core';
import Swal from 'sweetalert2';
interface Employee {
empId: number;
name: string;
place: string;
department: string;
salary: number;
}
@Component({
selector: 'app-employee',
templateUrl: './employee.component.html',
styleUrls: ['./employee.component.scss']
})... | 5 |
williamniemiec/nbarber-app | 6b87c17 | src/models/stars-props.model.ts | TypeScript | www.github.com/williamniemiec/nbarber-app/tree/main/src/models/stars-props.model.ts | https://raw.githubusercontent.com/williamniemiec/nbarber-app/6b87c17/src/models/stars-props.model.ts | williamniemiec/nbarber-app 6b87c17 src/models/stars-props.model.ts | true | 200 | 264 | /*
* Copyright (c) William Niemiec.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
interface StarsProps {
stars: number,
showNumber: boolean
}
export default StarsProps;
| 7 |
emeltec/reto-promotick | 5a1559e | src/app/data/vales.data.ts | TypeScript | www.github.com/emeltec/reto-promotick/tree/main/src/app/data/vales.data.ts | https://raw.githubusercontent.com/emeltec/reto-promotick/5a1559e/src/app/data/vales.data.ts | emeltec/reto-promotick 5a1559e src/app/data/vales.data.ts | true | 200 | 556 | export const DATA_VALES = [
{
id: 1,
brand: 'San Fernando',
title: 'Vale de Pavo San Fernando 8Kg',
points: 4400,
image: 'vales1.png'
},
{
id: 2,
brand: 'Saga Falabella',
title: 'Saga Falabella S/. 50',
points: 1667,
image: 'vales2.png'
},
{
id: 3,
brand: 'TOTTU... | 4 |
emirazimov/landing_website_2023 | 5fbbba4 | invoice.d.ts | TypeScript | www.github.com/emirazimov/landing_website_2023/tree/main/invoice.d.ts | https://raw.githubusercontent.com/emirazimov/landing_website_2023/5fbbba4/invoice.d.ts | emirazimov/landing_website_2023 5fbbba4 invoice.d.ts | true | 200 | 746 | type InvoiceCompanyInfo = {
companyLogo: string,
companyName: string,
};
type InvoiceReservationDetail = {
addressFrom: string,
addressTo: string,
date: string,
paymentId: number,
personsQty: number,
total: number,
};
type InvoiceDetailType = {
allowTip: boolean,
cardNickname: ... | 3 |
manggic/Auth-nextJs-youtube | d54d8ea | src/app/api/users/signup/route.ts | TypeScript | www.github.com/manggic/Auth-nextJs-youtube/tree/main/src/app/api/users/signup/route.ts | https://raw.githubusercontent.com/manggic/Auth-nextJs-youtube/d54d8ea/src/app/api/users/signup/route.ts | manggic/Auth-nextJs-youtube d54d8ea src/app/api/users/signup/route.ts | true | 200 | 1,508 | import User from "@/models/UserModel";
import { connect } from "@/db/config";
import { NextRequest, NextResponse } from "next/server";
import bcrypt from "bcryptjs";
import { sendEmail } from "@/helpers/mailer";
connect();
export async function POST(request: Request) {
try {
// accepting data from req body
... | 2 |
Wellpt/API-E-Comerce-academico | 7c129fd | src/useCases/produto/getProduto.ts | TypeScript | www.github.com/Wellpt/API-E-Comerce-academico/tree/main/src/useCases/produto/getProduto.ts | https://raw.githubusercontent.com/Wellpt/API-E-Comerce-academico/7c129fd/src/useCases/produto/getProduto.ts | Wellpt/API-E-Comerce-academico 7c129fd src/useCases/produto/getProduto.ts | true | 200 | 680 | import { PrismaClient, Produto } from "@prisma/client";
import { NotFoundException } from "@domain/exceptions/naoLocalizado";
const prisma = new PrismaClient()
// para listar somente 1 produto
export class GetProdutoUseCase {
constructor (){}
async handle(id: string): Promise<Produto | null> {
const... | 1 |
Krishn-aa/WanderTales | 89827df | client/src/app/components/landing-page/landing-page.component.ts | TypeScript | www.github.com/Krishn-aa/WanderTales/tree/main/client/src/app/components/landing-page/landing-page.component.ts | https://raw.githubusercontent.com/Krishn-aa/WanderTales/89827df/client/src/app/components/landing-page/landing-page.component.ts | Krishn-aa/WanderTales 89827df client/src/app/components/landing-page/landing-page.component.ts | true | 200 | 1,224 | import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import { trigger, transition, style, animate, query, stagger } from '@angular/animations';
@Component({
selector: 'app-landing-page',
standalone: true,
imports: [Router... | 0 |
esau-morais/next-paint | 95636ab | src/hooks/windowSize.ts | TypeScript | www.github.com/esau-morais/next-paint/tree/main/src/hooks/windowSize.ts | https://raw.githubusercontent.com/esau-morais/next-paint/95636ab/src/hooks/windowSize.ts | esau-morais/next-paint 95636ab src/hooks/windowSize.ts | true | 200 | 599 | import { useEffect, useState } from 'react'
interface WindowSize {
width: number
height: number
}
export const useWindowSize = (): WindowSize => {
const [windowSize, setWindowSize] = useState<WindowSize>({
width: 0,
height: 0,
})
useEffect(() => {
const handleSizeChange = () => {
setWindo... | 6 |
dldc-packages/zenapi | 1ff8a63 | examples/family-planner/resolvers.ts | TypeScript | www.github.com/dldc-packages/zenapi/tree/main/examples/family-planner/resolvers.ts | https://raw.githubusercontent.com/dldc-packages/zenapi/1ff8a63/examples/family-planner/resolvers.ts | dldc-packages/zenapi 1ff8a63 examples/family-planner/resolvers.ts | true | 200 | 2,460 | import { ApiContext, createKey, resolver } from "../../server.ts";
import * as db from "./database.ts";
import { graph } from "./graph.ts";
/**
* Note: This file only implements the resolvers needed for the example to work.
*/
const membersListResolver = resolver(
graph.MembersNamespace.list.return,
(ctx) => {
... | 5 |
hiteshmeta85/ecommerce-api | d05e8b4 | app/Controllers/Http/CartItemsController.ts | TypeScript | www.github.com/hiteshmeta85/ecommerce-api/tree/main/app/Controllers/Http/CartItemsController.ts | https://raw.githubusercontent.com/hiteshmeta85/ecommerce-api/d05e8b4/app/Controllers/Http/CartItemsController.ts | hiteshmeta85/ecommerce-api d05e8b4 app/Controllers/Http/CartItemsController.ts | true | 200 | 2,248 | import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import CartItem from 'App/Models/CartItem'
import Product from 'App/Models/Product'
export default class CartItemsController {
public async index({ response, auth }: HttpContextContract) {
const cartItems = await CartItem.query()
.wher... | 3 |
GihanKLG/FyProjectDashboard | 1677ff5 | src/app/dashboard/dashboard.component.ts | TypeScript | www.github.com/GihanKLG/FyProjectDashboard/tree/main/src/app/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/GihanKLG/FyProjectDashboard/1677ff5/src/app/dashboard/dashboard.component.ts | GihanKLG/FyProjectDashboard 1677ff5 src/app/dashboard/dashboard.component.ts | true | 200 | 1,203 | import { Component, AfterViewInit, ViewChild, ElementRef } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { google } from "google-maps";
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.css']
})
export class Das... | 7 |
pasciaks/EventTrackerProject | 3ad6d8c | ngCities/src/app/components/tabs/tabs.component.ts | TypeScript | www.github.com/pasciaks/EventTrackerProject/tree/main/ngCities/src/app/components/tabs/tabs.component.ts | https://raw.githubusercontent.com/pasciaks/EventTrackerProject/3ad6d8c/ngCities/src/app/components/tabs/tabs.component.ts | pasciaks/EventTrackerProject 3ad6d8c ngCities/src/app/components/tabs/tabs.component.ts | true | 200 | 334 | import { Component } from '@angular/core';
import { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-tabs',
standalone: true,
imports: [NgbNavModule, NgbDropdownModule],
templateUrl: './tabs.component.html',
styleUrl: './tabs.component.css',
})
export class Tab... | 4 |
Deusto-IoT-2024-2025-G03/PillSync | b8edd0e | packages/util/tsup.config.ts | TypeScript | www.github.com/Deusto-IoT-2024-2025-G03/PillSync/tree/main/packages/util/tsup.config.ts | https://raw.githubusercontent.com/Deusto-IoT-2024-2025-G03/PillSync/b8edd0e/packages/util/tsup.config.ts | Deusto-IoT-2024-2025-G03/PillSync b8edd0e packages/util/tsup.config.ts | true | 200 | 320 | import { defineConfig } from 'tsup'
export default defineConfig({
entryPoints: ['src/array/Arrayify.ts', 'src/array/Dearrayify.ts'],
format: ['cjs', 'esm'],
sourcemap: true,
splitting: true,
clean: true,
minify: true,
bundle: false,
target: 'es2022',
tsconfig: './tsconfig.json',
})
| 2 |
RafaelFigueiredo2203/igniteTeams-ReactNative | 7e4345b | src/storage/group/groupCreate.ts | TypeScript | www.github.com/RafaelFigueiredo2203/igniteTeams-ReactNative/tree/main/src/storage/group/groupCreate.ts | https://raw.githubusercontent.com/RafaelFigueiredo2203/igniteTeams-ReactNative/7e4345b/src/storage/group/groupCreate.ts | RafaelFigueiredo2203/igniteTeams-ReactNative 7e4345b src/storage/group/groupCreate.ts | true | 200 | 657 | import AsyncStorage from "@react-native-async-storage/async-storage";
import { AppError } from "../../utils/appError";
import { GROUP_COLLECTION } from "../sorage_config";
import { getAllGroups } from "./getAllGroups";
export async function groupCreate(newGroupName: string){
try{
const storagedGroups = await get... | 0 |
howudoindante/working-api | 5be7195 | src/users/users.module.ts | TypeScript | www.github.com/howudoindante/working-api/tree/main/src/users/users.module.ts | https://raw.githubusercontent.com/howudoindante/working-api/5be7195/src/users/users.module.ts | howudoindante/working-api 5be7195 src/users/users.module.ts | true | 200 | 479 | import { Module } from '@nestjs/common';
import { UsersService } from './users.service';
import { UsersController } from './users.controller';
import { JwtService } from '../services/jwt.service';
import { PrismaService } from '../services/prisma.service';
import { TranslationService } from '../services/translation.ser... | 6 |
Tech-Challenge-18-Burguers/auth-service | f2a8042 | src/application/service/CognitoIdentityProviderService.ts | TypeScript | www.github.com/Tech-Challenge-18-Burguers/auth-service/tree/main/src/application/service/CognitoIdentityProviderService.ts | https://raw.githubusercontent.com/Tech-Challenge-18-Burguers/auth-service/f2a8042/src/application/service/CognitoIdentityProviderService.ts | Tech-Challenge-18-Burguers/auth-service f2a8042 src/application/service/CognitoIdentityProviderService.ts | true | 200 | 3,678 | import { AdminConfirmSignUpCommand, AdminCreateUserCommand, AdminSetUserPasswordCommand, CognitoIdentityProviderClient, InitiateAuthCommand, SignUpCommand } from "@aws-sdk/client-cognito-identity-provider";
import User from "../../core/entity/User";
import IdentityProviderService, { AuthenticationResponse, Authenticati... | 5 |
LexxLuey/demo-credit | b448a0c | src/modules/wallet/tests/transfer.test.ts | TypeScript | www.github.com/LexxLuey/demo-credit/tree/main/src/modules/wallet/tests/transfer.test.ts | https://raw.githubusercontent.com/LexxLuey/demo-credit/b448a0c/src/modules/wallet/tests/transfer.test.ts | LexxLuey/demo-credit b448a0c src/modules/wallet/tests/transfer.test.ts | true | 200 | 4,853 | import request from 'supertest';
import app from '../../../app';
import knex from '../../../config/knex';
import { v4 as uuidv4 } from 'uuid';
import { fauxAuth } from '../../../middleware/fauxAuth';
describe('Wallet Transfer Endpoint', () => {
let senderUserId: string;
let senderWalletId: string;
let rec... | 3 |
mastergo-design/html-to-mastergo | 1a5bc8a | src/lib/mixins/shape.ts | TypeScript | www.github.com/mastergo-design/html-to-mastergo/tree/main/src/lib/mixins/shape.ts | https://raw.githubusercontent.com/mastergo-design/html-to-mastergo/1a5bc8a/src/lib/mixins/shape.ts | mastergo-design/html-to-mastergo 1a5bc8a src/lib/mixins/shape.ts | true | 200 | 588 | import { TargetProps } from '../index.d';
import {
transBase,
transScene,
transBlend,
transGeometry,
transLayout,
transConstraints,
} from './index';
export const transShape = (name: string, styles: TargetProps, parentStyles: TargetProps, nodeType: NodeType) => {
return {
...transBase(name, styles),
... | 4 |
Elisaragao/Projetos-javascript | 2898d70 | Typescript/src/valor_default.ts | TypeScript | www.github.com/Elisaragao/Projetos-javascript/tree/main/Typescript/src/valor_default.ts | https://raw.githubusercontent.com/Elisaragao/Projetos-javascript/2898d70/Typescript/src/valor_default.ts | Elisaragao/Projetos-javascript 2898d70 Typescript/src/valor_default.ts | true | 200 | 1,358 | /*RELEMBRANDO COMO DECLARAR UM OBJETO*/
// let objeto = {
// nome: "Elisangela",
// email: "elis@gmail.com.br"
// }
// console.log(objeto)
/*APLICANDO VALOR DEFAULT NA FUNÇÃO*/
// function cadastro(email: string, senha: string, nome = "Aluno", idade?: number): void{ // Essa '?' significa que é opcional
// ... | 0 |
Ramijawadi/Housing-Angular-App | b95962a | src/app/services/housing.service.ts | TypeScript | www.github.com/Ramijawadi/Housing-Angular-App/tree/main/src/app/services/housing.service.ts | https://raw.githubusercontent.com/Ramijawadi/Housing-Angular-App/b95962a/src/app/services/housing.service.ts | Ramijawadi/Housing-Angular-App b95962a src/app/services/housing.service.ts | true | 200 | 677 | import { Injectable } from '@angular/core';
import { HousingLocation } from '../housing-location';
@Injectable({
providedIn: 'root'
})
export class HousingService {
baseUrl = 'http://localhost:3000/locations'
constructor() { }
async getAllHousingLocations() : Promise<HousingLocation[]> {
const data = await f... | 1 |
Perfontana/tests | bee8ec2 | client/src/redux/sagas/tokenSaga.ts | TypeScript | www.github.com/Perfontana/tests/tree/main/client/src/redux/sagas/tokenSaga.ts | https://raw.githubusercontent.com/Perfontana/tests/bee8ec2/client/src/redux/sagas/tokenSaga.ts | Perfontana/tests bee8ec2 client/src/redux/sagas/tokenSaga.ts | true | 200 | 783 | import { put, call, takeLatest } from 'redux-saga/effects';
import { AxiosError } from 'axios';
import * as actionTypes from '../../utils/constants';
import { fetchTokenSuccessed, getTokenError } from '../actions/token';
import api from '../api/index';
function getErrorMessage(error: unknown): string {
if (error in... | 2 |
RVRTelecomunicaciones/api_allemant | 7b117e2 | src/main.ts | TypeScript | www.github.com/RVRTelecomunicaciones/api_allemant/tree/main/src/main.ts | https://raw.githubusercontent.com/RVRTelecomunicaciones/api_allemant/7b117e2/src/main.ts | RVRTelecomunicaciones/api_allemant 7b117e2 src/main.ts | true | 200 | 1,411 | import { NestFactory } from '@nestjs/core';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { AppModule } from './app.module';
import helmet from 'helmet';
import cors from 'cors';
import compression from 'compression';
import rateLimit from 'express-rate-limit';
import express, { json, urlenc... | 4 |
payamss/covid19stat.info | 26e9e86 | src/app/loadtotal.service.spec.ts | TypeScript | www.github.com/payamss/covid19stat.info/tree/main/src/app/loadtotal.service.spec.ts | https://raw.githubusercontent.com/payamss/covid19stat.info/26e9e86/src/app/loadtotal.service.spec.ts | payamss/covid19stat.info 26e9e86 src/app/loadtotal.service.spec.ts | true | 200 | 372 | import { TestBed } from '@angular/core/testing';
import { LoadtotalService } from './loadtotal.service';
describe('LoadtotalService', () => {
let service: LoadtotalService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(LoadtotalService);
});
it('should be created', ... | 3 |
WilliamsEnabulele/Nest-Blog-Api | 92830d0 | src/features/post/post-engagement/post-engagement.service.spec.ts | TypeScript | www.github.com/WilliamsEnabulele/Nest-Blog-Api/tree/main/src/features/post/post-engagement/post-engagement.service.spec.ts | https://raw.githubusercontent.com/WilliamsEnabulele/Nest-Blog-Api/92830d0/src/features/post/post-engagement/post-engagement.service.spec.ts | WilliamsEnabulele/Nest-Blog-Api 92830d0 src/features/post/post-engagement/post-engagement.service.spec.ts | true | 200 | 517 | import { Test, TestingModule } from '@nestjs/testing';
import { PostEngagementService } from './post-engagement.service';
describe('PostEngagementService', () => {
let service: PostEngagementService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [Post... | 5 |
TylerJang27/Scav_Hunt_Extension | cccd251 | src/providers/__mocks__/example.ts | TypeScript | www.github.com/TylerJang27/Scav_Hunt_Extension/tree/main/src/providers/__mocks__/example.ts | https://raw.githubusercontent.com/TylerJang27/Scav_Hunt_Extension/cccd251/src/providers/__mocks__/example.ts | TylerJang27/Scav_Hunt_Extension cccd251 src/providers/__mocks__/example.ts | true | 200 | 1,073 | import { HuntConfig } from "src/types/hunt_config";
const MOCKED_DEFAULT_BACKGROUND = "../graphics/background.png";
// Change this to change which clue is rendered when visiting popup
export const DEFAULT_CURRENT_PROGRESS = 1;
export const DEFAULT_MAX_PROGRESS = 2;
export const DEFAULT_HUNT_CONFIG: HuntConfig = {
... | 1 |
jbaddley/admin-simply-put | 6843f10 | app/api/call-to-action/batch/route.ts | TypeScript | www.github.com/jbaddley/admin-simply-put/tree/main/app/api/call-to-action/batch/route.ts | https://raw.githubusercontent.com/jbaddley/admin-simply-put/6843f10/app/api/call-to-action/batch/route.ts | jbaddley/admin-simply-put 6843f10 app/api/call-to-action/batch/route.ts | true | 200 | 1,041 | import { NextResponse } from "next/server";
import { getServerSession } from "next-auth/next";
import { authOptions } from "../../auth/[...nextauth]/route";
import prisma from "../../../lib/prismadb";
export async function POST(req: Request) {
const session = await getServerSession(authOptions);
if (!session) {
... | 2 |
sayfelanjos/Hematology-App-with-Carbon-Design-System | 1bef709 | backend/users/users-ms/src/auth/auth.controller.spec.ts | TypeScript | www.github.com/sayfelanjos/Hematology-App-with-Carbon-Design-System/tree/main/backend/users/users-ms/src/auth/auth.controller.spec.ts | https://raw.githubusercontent.com/sayfelanjos/Hematology-App-with-Carbon-Design-System/1bef709/backend/users/users-ms/src/auth/auth.controller.spec.ts | sayfelanjos/Hematology-App-with-Carbon-Design-System 1bef709 backend/users/users-ms/src/auth/auth.controller.spec.ts | true | 200 | 490 | import { Test, TestingModule } from "@nestjs/testing";
import { AuthController } from "./auth.controller";
describe("AuthController", () => {
let authController: AuthController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [AuthController],
}).... | 4 |
eolinker/apinto-dashboard | e64b242 | frontend/projects/core/src/app/layout/serv-governance/group/group.component.ts | TypeScript | www.github.com/eolinker/apinto-dashboard/tree/main/frontend/projects/core/src/app/layout/serv-governance/group/group.component.ts | https://raw.githubusercontent.com/eolinker/apinto-dashboard/e64b242/frontend/projects/core/src/app/layout/serv-governance/group/group.component.ts | eolinker/apinto-dashboard e64b242 frontend/projects/core/src/app/layout/serv-governance/group/group.component.ts | true | 200 | 6,229 | /* eslint-disable dot-notation */
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'
import { Router } from '@angular/router'
import { EoNgTreeDefaultComponent } from 'eo-ng-tree'
import { NzTreeNodeOptions, NzTreeNode } from 'ng-zorro-antd/tree'
import { ClusterEnum } from '../../../constant/typ... | 3 |
tx-tomcat/croco | dbc3117 | packages/api/src/auth/jwt.strategy.ts | TypeScript | www.github.com/tx-tomcat/croco/tree/main/packages/api/src/auth/jwt.strategy.ts | https://raw.githubusercontent.com/tx-tomcat/croco/dbc3117/packages/api/src/auth/jwt.strategy.ts | tx-tomcat/croco dbc3117 packages/api/src/auth/jwt.strategy.ts | true | 200 | 982 | import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PrismaService } from '../prisma/prisma.service';
import { withAccelerate } from '@prisma/extension-accelerate';
@Injectable()
export cla... | 6 |
mahmoudattef/FreshCart-E-Commers | 6c0baff | src/app/components/product/product.component.ts | TypeScript | www.github.com/mahmoudattef/FreshCart-E-Commers/tree/main/src/app/components/product/product.component.ts | https://raw.githubusercontent.com/mahmoudattef/FreshCart-E-Commers/6c0baff/src/app/components/product/product.component.ts | mahmoudattef/FreshCart-E-Commers 6c0baff src/app/components/product/product.component.ts | true | 200 | 3,406 | import { Component, inject, OnDestroy, OnInit } from '@angular/core';
import { IProduct } from '../../core/interfaces/iproduct';
import { ProductsService } from '../../core/services/products.service';
import { CartService } from '../../core/services/cart.service';
import { WishlistService } from '../../core/services/wi... | 5 |
anthonyhuang07/discord-formatter | 0d7eecf | src/scripts/index.ts | TypeScript | www.github.com/anthonyhuang07/discord-formatter/tree/main/src/scripts/index.ts | https://raw.githubusercontent.com/anthonyhuang07/discord-formatter/0d7eecf/src/scripts/index.ts | anthonyhuang07/discord-formatter 0d7eecf src/scripts/index.ts | true | 200 | 4,021 | const textArea = (document.getElementById("textArea") as HTMLInputElement)
const dateArea = (document.getElementById("datepicker") as HTMLInputElement)
const resetBtn = (document.getElementById("reset") as HTMLInputElement)
const copyBtn = (document.getElementById("copy") as HTMLInputElement)
const textDiv = (doc... | 1 |
muthu0101/Service-todo_list1 | 8dba35a | src/common/filters/global-exception.filter.ts | TypeScript | www.github.com/muthu0101/Service-todo_list1/tree/main/src/common/filters/global-exception.filter.ts | https://raw.githubusercontent.com/muthu0101/Service-todo_list1/8dba35a/src/common/filters/global-exception.filter.ts | muthu0101/Service-todo_list1 8dba35a src/common/filters/global-exception.filter.ts | true | 200 | 1,803 | import {
ExceptionFilter,
Catch,
ArgumentsHost,
HttpException,
HttpStatus,
Logger,
} from '@nestjs/common';
import { Request, Response } from 'express';
@Catch()
export class GlobalExceptionFilter implements ExceptionFilter {
private readonly logger = new Logger(GlobalExceptionFilter.name);
catch(exce... | 2 |
sgautier-dev/holistis-site | a451b93 | app/api/quotes/route.ts | TypeScript | www.github.com/sgautier-dev/holistis-site/tree/main/app/api/quotes/route.ts | https://raw.githubusercontent.com/sgautier-dev/holistis-site/a451b93/app/api/quotes/route.ts | sgautier-dev/holistis-site a451b93 app/api/quotes/route.ts | true | 200 | 1,093 | import { NextRequest, NextResponse } from "next/server";
import logger from "@/lib/logger";
import { client } from "@/sanity/lib/client";
export const dynamic = "force-dynamic";
/*
Quotes route: It fetches a list of quotes from a database and returns them as a JSON response.
If there is an error during the fetching ... | 3 |
sishopnil/relaxy-backend | 59cd94d | relaxy-api/src/main.ts | TypeScript | www.github.com/sishopnil/relaxy-backend/tree/main/relaxy-api/src/main.ts | https://raw.githubusercontent.com/sishopnil/relaxy-backend/59cd94d/relaxy-api/src/main.ts | sishopnil/relaxy-backend 59cd94d relaxy-api/src/main.ts | true | 200 | 797 | import { NestFactory } from '@nestjs/core';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
app.setGlobalPrefix('api');
const config = new DocumentBuilder(... | 6 |
v4nz777/distri-gate | 001bc5f | distri-gate-nuxt/stores/carts.ts | TypeScript | www.github.com/v4nz777/distri-gate/tree/main/distri-gate-nuxt/stores/carts.ts | https://raw.githubusercontent.com/v4nz777/distri-gate/001bc5f/distri-gate-nuxt/stores/carts.ts | v4nz777/distri-gate 001bc5f distri-gate-nuxt/stores/carts.ts | true | 200 | 6,065 | import type { Item,GiftCode } from "@/types"
import { skipHydrate } from "pinia"
import { useAlertStore } from "./alerts"
export const useCart = defineStore('cart-store', ()=> {
const alertstore = useAlertStore()
const userstore = useUserStore()
// STATES
const cartOwner = useLocalSto... | 5 |
sabun123/jlpt-n5-short-stories | 20d568d | stores/stories.ts | TypeScript | www.github.com/sabun123/jlpt-n5-short-stories/tree/main/stores/stories.ts | https://raw.githubusercontent.com/sabun123/jlpt-n5-short-stories/20d568d/stores/stories.ts | sabun123/jlpt-n5-short-stories 20d568d stores/stories.ts | true | 200 | 3,723 | import { defineStore } from "pinia";
import { ref, computed } from "vue";
import { useLocalStorage } from "@vueuse/core";
import { stories } from "~/data/stories";
import type { UserProgress, StoryProgress } from "~/types/progress";
export const useStoryStore = defineStore("stories", () => {
const currentStoryId = r... | 4 |
miguel2m/ingreso-egreso-app | 42045f8 | src/environments/environment.ts | TypeScript | www.github.com/miguel2m/ingreso-egreso-app/tree/main/src/environments/environment.ts | https://raw.githubusercontent.com/miguel2m/ingreso-egreso-app/42045f8/src/environments/environment.ts | miguel2m/ingreso-egreso-app 42045f8 src/environments/environment.ts | true | 200 | 1,059 | // 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: 'AIzaSyC2hMKtxBCw_Be0U... | 1 |
francoisloue/bipbip | d1c1dd2 | bipbip-back/src/controller/medication.ts | TypeScript | www.github.com/francoisloue/bipbip/tree/main/bipbip-back/src/controller/medication.ts | https://raw.githubusercontent.com/francoisloue/bipbip/d1c1dd2/bipbip-back/src/controller/medication.ts | francoisloue/bipbip d1c1dd2 bipbip-back/src/controller/medication.ts | true | 200 | 2,250 | import { ResultSetHeader, RowDataPacket } from "mysql2";
import connection from "../db";
import { Event } from "../types/event.type";
import { Medication } from "../types/medication.type";
interface MedicationControllerInterface {
save(medication: Medication): Promise<Medication>;
retrieveById(medicationId: st... | 2 |
nyp-tech/nyp-tech | ce235c2 | bihance/actions/queries.ts | TypeScript | www.github.com/nyp-tech/nyp-tech/tree/main/bihance/actions/queries.ts | https://raw.githubusercontent.com/nyp-tech/nyp-tech/ce235c2/bihance/actions/queries.ts | nyp-tech/nyp-tech ce235c2 bihance/actions/queries.ts | true | 200 | 621 | import { auth } from '@clerk/nextjs/server';
import { PrismaClient } from '@prisma/client';
import { cache } from 'react';
const prisma = new PrismaClient();
const DAY_IN_MS = 86_400_400;
export const getUserSubscription = cache(async () => {
const { userId } = await auth();
if (!userId) return null;
con... | 3 |
MuhammadNasar008/Playwright | c8a4661 | src/steps/login.steps.ts | TypeScript | www.github.com/MuhammadNasar008/Playwright/tree/main/src/steps/login.steps.ts | https://raw.githubusercontent.com/MuhammadNasar008/Playwright/c8a4661/src/steps/login.steps.ts | MuhammadNasar008/Playwright c8a4661 src/steps/login.steps.ts | true | 200 | 1,380 | import { Given, When, Then } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { LoginPage } from '../page-objects/login.page';
let loginPage: LoginPage;
Given('I am on the login page', async function () {
loginPage = new LoginPage(this.page);
await loginPage.navigate();
await this.pa... | 4 |
XardasLord/EOP.GeoLink | 60d3cd9 | src/GeoLink.Client/src/app/core/interceptor/error-handler.interceptor.ts | TypeScript | www.github.com/XardasLord/EOP.GeoLink/tree/main/src/GeoLink.Client/src/app/core/interceptor/error-handler.interceptor.ts | https://raw.githubusercontent.com/XardasLord/EOP.GeoLink/60d3cd9/src/GeoLink.Client/src/app/core/interceptor/error-handler.interceptor.ts | XardasLord/EOP.GeoLink 60d3cd9 src/GeoLink.Client/src/app/core/interceptor/error-handler.interceptor.ts | true | 200 | 864 | import { ErrorHandler, Injectable, NgZone } from '@angular/core';
import { ErrorService } from '../../shared/errors/error.service';
import { MessageStatusEnum } from '../../shared/errors/message-status.enum';
@Injectable()
export class GlobalErrorHandler implements ErrorHandler {
constructor(
private errorServic... | 6 |
dwnmmsnn/bit | 0f56c9a | mitbit/src/index.ts | TypeScript | www.github.com/dwnmmsnn/bit/tree/main/mitbit/src/index.ts | https://raw.githubusercontent.com/dwnmmsnn/bit/0f56c9a/mitbit/src/index.ts | dwnmmsnn/bit 0f56c9a mitbit/src/index.ts | true | 200 | 2,980 | import express from 'express';
import path from 'path';
import session from 'express-session';
const app = express();
const port = process.env.PORT || 3000;
const cors=require('cors');
app.use(cors());
const mysqlStore = require('express-mysql-session')(session);
const options = {
connectionLimit: 10,
host: '127... | 5 |
Ghergutftw/Vetclinic | 0c5f668 | FE/src/app/appointments/appointments.component.ts | TypeScript | www.github.com/Ghergutftw/Vetclinic/tree/main/FE/src/app/appointments/appointments.component.ts | https://raw.githubusercontent.com/Ghergutftw/Vetclinic/0c5f668/FE/src/app/appointments/appointments.component.ts | Ghergutftw/Vetclinic 0c5f668 FE/src/app/appointments/appointments.component.ts | true | 200 | 1,824 | import {Component, OnInit} from '@angular/core';
import {DataService} from "../service/data.service";
import {Appointment} from "../models/Appointment";
import {Router} from "@angular/router";
import {Status} from "../Enums/Status";
import {NotificationService} from "../service/notification.service";
@Component({
se... | 1 |
masternone/BravoLT | 65d50c1 | src/app/guest-form/guest-form.component.spec.ts | TypeScript | www.github.com/masternone/BravoLT/tree/main/src/app/guest-form/guest-form.component.spec.ts | https://raw.githubusercontent.com/masternone/BravoLT/65d50c1/src/app/guest-form/guest-form.component.spec.ts | masternone/BravoLT 65d50c1 src/app/guest-form/guest-form.component.spec.ts | true | 200 | 1,002 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GuestFormComponent } from './guest-form.component';
import { MaterialModule } from '../material/material.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platf... | 2 |
centii123/sistema-inventario-yavirac | d63c08d | sistema-inventario-frontend/src/app/modules/principal/componentes/persona/pipes/tipo-sangre.pipe.ts | TypeScript | www.github.com/centii123/sistema-inventario-yavirac/tree/main/sistema-inventario-frontend/src/app/modules/principal/componentes/persona/pipes/tipo-sangre.pipe.ts | https://raw.githubusercontent.com/centii123/sistema-inventario-yavirac/d63c08d/sistema-inventario-frontend/src/app/modules/principal/componentes/persona/pipes/tipo-sangre.pipe.ts | centii123/sistema-inventario-yavirac d63c08d sistema-inventario-frontend/src/app/modules/principal/componentes/persona/pipes/tipo-sangre.pipe.ts | true | 200 | 389 | import { Pipe, PipeTransform } from '@angular/core';
import { TipoDeSangre } from '../constants/constantes-persona';
@Pipe({
name: 'tipoSangre'
})
export class TipoSangrePipe implements PipeTransform {
transform(value: number): string {
const TipoSangre = TipoDeSangre.find(provincia => provincia.value === val... | 3 |
zakzakst/canvas-practice | 87dfdf4 | src/_old/11_sprite/script.ts | TypeScript | www.github.com/zakzakst/canvas-practice/tree/main/src/_old/11_sprite/script.ts | https://raw.githubusercontent.com/zakzakst/canvas-practice/87dfdf4/src/_old/11_sprite/script.ts | zakzakst/canvas-practice 87dfdf4 src/_old/11_sprite/script.ts | true | 200 | 1,360 | import * as THREE from "three";
const canvasEl = document.getElementById("canvas");
const width = 1600;
const height = 900;
const renderer = new THREE.WebGLRenderer({
canvas: canvasEl,
});
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(width, height);
renderer.setClearColor(0xf9f9f9, 1.0);
const... | 4 |
KIARIE-97/Hono-DrizzleORM-assessment | 8c45d71 | src/orderStatus/orderS.router.ts | TypeScript | www.github.com/KIARIE-97/Hono-DrizzleORM-assessment/tree/main/src/orderStatus/orderS.router.ts | https://raw.githubusercontent.com/KIARIE-97/Hono-DrizzleORM-assessment/8c45d71/src/orderStatus/orderS.router.ts | KIARIE-97/Hono-DrizzleORM-assessment 8c45d71 src/orderStatus/orderS.router.ts | true | 200 | 678 | import { Hono } from "hono";
import { type Context } from "hono";
import {zValidator} from "@hono/zod-validator";
import { listorderStatus, getSingleorderStatus, createorderStatus, updateorderStatus, deleteRestaurant } from "./orderS.controller";
import { get } from "http";
// import { restaurantsSchema } from "../val... | 1 |
agill18/437Project | c3ee54a | packages/express-backend/src/routes/profile.ts | TypeScript | www.github.com/agill18/437Project/tree/main/packages/express-backend/src/routes/profile.ts | https://raw.githubusercontent.com/agill18/437Project/c3ee54a/packages/express-backend/src/routes/profile.ts | agill18/437Project c3ee54a packages/express-backend/src/routes/profile.ts | true | 200 | 1,290 | import express, { Request, Response } from "express";
import { Profile } from "ts-models";
import profiles from "../services/profiles";
const router = express.Router();
// Get profile
// Request Params: email
router.get("/:email", (req: Request, res: Response) => {
console.log("got get request");
const { email } ... | 2 |
david1pc/checktrip-frontend | a89fd57 | src/app/shared/home/home.component.ts | TypeScript | www.github.com/david1pc/checktrip-frontend/tree/main/src/app/shared/home/home.component.ts | https://raw.githubusercontent.com/david1pc/checktrip-frontend/a89fd57/src/app/shared/home/home.component.ts | david1pc/checktrip-frontend a89fd57 src/app/shared/home/home.component.ts | true | 200 | 320 | import { Component } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css'],
})
export class HomeComponent {
username!: string;
ngOnInit() {
this.username = '';
this.username = sessionStorage.getItem('username') ?? '';
}
}
| 6 |
BigOnwer/Alias-Services | b3be086 | app/api/stripe/update-subscription/route.ts | TypeScript | www.github.com/BigOnwer/Alias-Services/tree/main/app/api/stripe/update-subscription/route.ts | https://raw.githubusercontent.com/BigOnwer/Alias-Services/b3be086/app/api/stripe/update-subscription/route.ts | BigOnwer/Alias-Services b3be086 app/api/stripe/update-subscription/route.ts | true | 200 | 832 | // app/api/update-subscription/route.ts
import { NextResponse } from "next/server";
import { db } from "@/lib/db"; // Assumindo que você tem o Prisma configurado na pasta lib
export async function POST(req: Request) {
const { email, status } = await req.json();
if (!email || !status) {
return NextResponse.js... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.