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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Bachi007/jpmcbanking | dc2f9bf | src/app/services/login.service.ts | TypeScript | www.github.com/Bachi007/jpmcbanking/tree/main/src/app/services/login.service.ts | https://raw.githubusercontent.com/Bachi007/jpmcbanking/dc2f9bf/src/app/services/login.service.ts | Bachi007/jpmcbanking dc2f9bf src/app/services/login.service.ts | true | 200 | 737 | import { HttpClient, HttpClientModule } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class LoginService {
constructor(private http:HttpClient) { }
signup(user:any){
return this.http.post('http://localhost:4300/users/registration',user,({... | 0 |
imtiyaz27932/Pharma-labs | f6d49ff | Pages/admin/addCategory.ts | TypeScript | www.github.com/imtiyaz27932/Pharma-labs/tree/main/Pages/admin/addCategory.ts | https://raw.githubusercontent.com/imtiyaz27932/Pharma-labs/f6d49ff/Pages/admin/addCategory.ts | imtiyaz27932/Pharma-labs f6d49ff Pages/admin/addCategory.ts | true | 200 | 2,531 |
import { Locator, Page } from "playwright/test";
import { getCategoryData } from "./categoryData";
import { faker } from "@faker-js/faker";
export class addCategory {
readonly page: Page;
readonly uploadicon: Locator;
readonly addcategoryicon: Locator;
readonly addcategorybutton: Locator;
readonly... | 5 |
Grigor1994/test-task | 269046f | auth-service/src/main.ts | TypeScript | www.github.com/Grigor1994/test-task/tree/main/auth-service/src/main.ts | https://raw.githubusercontent.com/Grigor1994/test-task/269046f/auth-service/src/main.ts | Grigor1994/test-task 269046f auth-service/src/main.ts | true | 200 | 468 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ConfigService } from '@nestjs/config';
import { Common } from './utils/constants';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
app.setGlobalPrefix(Common.GLOBAL_PREFI... | 6 |
brilliantsole/Tap-Strap-JavaScript-SDK | b9ea49e | src/InputManager.ts | TypeScript | www.github.com/brilliantsole/Tap-Strap-JavaScript-SDK/tree/main/src/InputManager.ts | https://raw.githubusercontent.com/brilliantsole/Tap-Strap-JavaScript-SDK/b9ea49e/src/InputManager.ts | brilliantsole/Tap-Strap-JavaScript-SDK b9ea49e src/InputManager.ts | true | 200 | 3,328 | import { createConsole } from "./utils/Console.ts";
import autoBind from "auto-bind";
import { SendDataCallback } from "./connection/BaseConnectionManager.ts";
import { concatenateArrayBuffers } from "./utils/ArrayBufferUtils.ts";
import {
assertValidRawSensorSensitivity,
assertValidRawSensorSensitivityForType,
D... | 4 |
Rahul2322/medium-nestjs | 73289ef | src/users/user.controller.ts | TypeScript | www.github.com/Rahul2322/medium-nestjs/tree/main/src/users/user.controller.ts | https://raw.githubusercontent.com/Rahul2322/medium-nestjs/73289ef/src/users/user.controller.ts | Rahul2322/medium-nestjs 73289ef src/users/user.controller.ts | true | 200 | 1,821 | import { Body, Controller, Get, Post, Put, UseGuards, UsePipes, ValidationPipe } from "@nestjs/common";
import { CreateUserDto } from "./dto/create-user.dto";
import { UserService } from "./user.service";
import { UserResponse } from "./types/userResponse.interface";
import { LoginDto } from "./dto/login.dto";
import {... | 0 |
Samuel-H-Dev/typescriptIntro | 8190e45 | src/employees.ts | TypeScript | www.github.com/Samuel-H-Dev/typescriptIntro/tree/main/src/employees.ts | https://raw.githubusercontent.com/Samuel-H-Dev/typescriptIntro/8190e45/src/employees.ts | Samuel-H-Dev/typescriptIntro 8190e45 src/employees.ts | true | 200 | 491 | interface IEmployee {
fName: string,
lName: string,
age: number,
cool?: boolean,
apps: {appName: string; production: boolean }
}
interface IManager extends IEmployee {
salaryTier:number
}
let student1: IEmployee = {
fName: 'jon',
lName: 'smith',
age: 24,
cool: true,
apps: {appName: "Cf Akeneo", pr... | 1 |
Winmix713/nyamaas | 06a1a73 | app/api/h2h/route.ts | TypeScript | www.github.com/Winmix713/nyamaas/tree/main/app/api/h2h/route.ts | https://raw.githubusercontent.com/Winmix713/nyamaas/06a1a73/app/api/h2h/route.ts | Winmix713/nyamaas 06a1a73 app/api/h2h/route.ts | true | 200 | 5,855 | import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"
export async function GET(request: NextRequest) {
const searchParams = request.nextUrl.searchParams
const team1 = searchParams.get("team1")
const team2 = searchParams.get("team2")
if (!team1 || !team2) {
return NextR... | 5 |
benb116/Ball-Street | 75993d8 | server/features/nflgame/nflgame.model.ts | TypeScript | www.github.com/benb116/Ball-Street/tree/main/server/features/nflgame/nflgame.model.ts | https://raw.githubusercontent.com/benb116/Ball-Street/75993d8/server/features/nflgame/nflgame.model.ts | benb116/Ball-Street 75993d8 server/features/nflgame/nflgame.model.ts | true | 200 | 1,744 | // Info about an NFL Game
// Home team, away team, week #, and start timestamp
// Also includes a phase to determine whether players can be traded
import {
Model, InferAttributes, InferCreationAttributes, CreationOptional, DataTypes, NonAttribute, Association,
} from 'sequelize';
import { gamePhases, GamePhaseType }... | 3 |
AndrewJ99/challenge-6-levels | 95087cd | main.ts | TypeScript | www.github.com/AndrewJ99/challenge-6-levels/tree/main/main.ts | https://raw.githubusercontent.com/AndrewJ99/challenge-6-levels/95087cd/main.ts | AndrewJ99/challenge-6-levels 95087cd main.ts | true | 200 | 1,539 | function levelStart () {
if (currentLevel == 1) {
tiles.setCurrentTilemap(tilemap`level1`)
scene.setBackgroundColor(0)
} else if (currentLevel == 2) {
tiles.setCurrentTilemap(tilemap`level2`)
} else if (currentLevel == 3) {
tiles.setCurrentTilemap(tilemap`level6`)
} else ... | 6 |
vortegar/angular-1 | f08ab8b | src/app/dbz/services/dbz.service.ts | TypeScript | www.github.com/vortegar/angular-1/tree/main/src/app/dbz/services/dbz.service.ts | https://raw.githubusercontent.com/vortegar/angular-1/f08ab8b/src/app/dbz/services/dbz.service.ts | vortegar/angular-1 f08ab8b src/app/dbz/services/dbz.service.ts | true | 200 | 852 | import { Injectable } from '@angular/core';
import { Character } from '../interfaces/character.interface';
import { v4 as uuid } from 'uuid';
@Injectable({
providedIn: 'root'
})
export class DbzService {
public characters: Character[] = [
{
id: uuid(),
name: 'krillin',
power: 1000
},
{... | 1 |
MohamedAliMoula/CRM_ANGULAR | 8c750ec | app/pages/vente/modif-devis/modif-devis.component.ts | TypeScript | www.github.com/MohamedAliMoula/CRM_ANGULAR/tree/main/app/pages/vente/modif-devis/modif-devis.component.ts | https://raw.githubusercontent.com/MohamedAliMoula/CRM_ANGULAR/8c750ec/app/pages/vente/modif-devis/modif-devis.component.ts | MohamedAliMoula/CRM_ANGULAR 8c750ec app/pages/vente/modif-devis/modif-devis.component.ts | true | 200 | 4,460 | import { Component, Inject, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ToastrService } from 'ngx-toastr';
import { Observable } from 'rxjs';
import { map, startWith } ... | 0 |
leandrojpinh/bc-database-upload | 3e49758 | src/routes/transactions.routes.ts | TypeScript | www.github.com/leandrojpinh/bc-database-upload/tree/main/src/routes/transactions.routes.ts | https://raw.githubusercontent.com/leandrojpinh/bc-database-upload/3e49758/src/routes/transactions.routes.ts | leandrojpinh/bc-database-upload 3e49758 src/routes/transactions.routes.ts | true | 200 | 1,829 | import { Router } from 'express';
import { getCustomRepository } from 'typeorm';
import multer from 'multer';
import CreateTransactionService from '../services/CreateTransactionService';
import TransactionsRepository from '../repositories/TransactionsRepository';
import DeleteTransactionService from '../services/Delet... | 5 |
BenjaminPeyre/NuitInfo2023 | 5402727 | src/app/app.module.ts | TypeScript | www.github.com/BenjaminPeyre/NuitInfo2023/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/BenjaminPeyre/NuitInfo2023/5402727/src/app/app.module.ts | BenjaminPeyre/NuitInfo2023 5402727 src/app/app.module.ts | true | 200 | 947 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderComponent } from './header/header.component';
import { HomeComponent } from './home/home.component... | 6 |
tatev-avalyan/vue3-nuxt3-cats-app | b2378ce | nuxt.config.ts | TypeScript | www.github.com/tatev-avalyan/vue3-nuxt3-cats-app/tree/main/nuxt.config.ts | https://raw.githubusercontent.com/tatev-avalyan/vue3-nuxt3-cats-app/b2378ce/nuxt.config.ts | tatev-avalyan/vue3-nuxt3-cats-app b2378ce nuxt.config.ts | true | 200 | 692 | export default defineNuxtConfig({
// Points Nuxt to the src directory for all source files
srcDir: 'src/',
modules: [
'@pinia/nuxt', // Pinia for state management
],
css: [
'~/assets/css/tailwind.css', // Tailwind CSS file
],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer... | 3 |
viettd56/nodejs-backend-starter | 49e3aae | src/helpers/Bcrypt.helper.ts | TypeScript | www.github.com/viettd56/nodejs-backend-starter/tree/main/src/helpers/Bcrypt.helper.ts | https://raw.githubusercontent.com/viettd56/nodejs-backend-starter/49e3aae/src/helpers/Bcrypt.helper.ts | viettd56/nodejs-backend-starter 49e3aae src/helpers/Bcrypt.helper.ts | true | 200 | 897 | import bcrypt from 'bcryptjs';
export const BcryptHelper = () => {
const SALT_ROUNDS = 12;
return {
hashPassword(password: string): Promise<string> {
return new Promise((resovle, reject) => {
bcrypt.hash(password, SALT_ROUNDS, (err, passwordHash) => {
if ... | 4 |
0xsksingh/bnbdevsdk | c1e0e98 | cli/src/create/helpers/templates.ts | TypeScript | www.github.com/0xsksingh/bnbdevsdk/tree/main/cli/src/create/helpers/templates.ts | https://raw.githubusercontent.com/0xsksingh/bnbdevsdk/c1e0e98/cli/src/create/helpers/templates.ts | 0xsksingh/bnbdevsdk c1e0e98 cli/src/create/helpers/templates.ts | true | 200 | 1,225 | import got from "got";
import tar from "tar";
import { Stream } from "stream";
import { promisify } from "util";
import { join } from "path";
import { tmpdir } from "os";
import { createWriteStream, promises as fs } from "fs";
const pipeline = promisify(Stream.pipeline);
type RepoInfo = {
name: string;
filePath: ... | 0 |
Kelgors/archimedes-api | fe7a3f3 | src/routes/auth.ts | TypeScript | www.github.com/Kelgors/archimedes-api/tree/main/src/routes/auth.ts | https://raw.githubusercontent.com/Kelgors/archimedes-api/fe7a3f3/src/routes/auth.ts | Kelgors/archimedes-api fe7a3f3 src/routes/auth.ts | true | 200 | 1,733 | import type { FastifyInstance } from 'fastify';
import type { ZodTypeProvider } from 'fastify-type-provider-zod';
import { z } from 'zod';
import type { RefreshToken } from '../schemas/Auth';
import { AuthRefreshInputBodySchema, AuthSignInputBodySchema } from '../schemas/Auth';
import { authService } from '../services/... | 1 |
Ivanzmartins/trybesmith | 79eb339 | src/middlewares/userValidation.ts | TypeScript | www.github.com/Ivanzmartins/trybesmith/tree/main/src/middlewares/userValidation.ts | https://raw.githubusercontent.com/Ivanzmartins/trybesmith/79eb339/src/middlewares/userValidation.ts | Ivanzmartins/trybesmith 79eb339 src/middlewares/userValidation.ts | true | 200 | 690 | import { Request, Response, NextFunction } from 'express';
import Joi from 'joi';
const userSchema = Joi.object({
username: Joi.string().required().min(3),
vocation: Joi.string().required().min(3),
level: Joi.number().required().min(1),
password: Joi.string().required().min(8) });
const userValidation = async... | 5 |
rhannachi/booking | 811a93e | src/store/room/room.thunk.ts | TypeScript | www.github.com/rhannachi/booking/tree/main/src/store/room/room.thunk.ts | https://raw.githubusercontent.com/rhannachi/booking/811a93e/src/store/room/room.thunk.ts | rhannachi/booking 811a93e src/store/room/room.thunk.ts | true | 200 | 896 | import { IApiRoomsResponse } from '@/shared/schemas'
import { createAsyncThunk } from '@reduxjs/toolkit'
import { ROOM_SLICE_NAME } from '@/helpers'
import { fetchRoomsService } from '@/services'
type FetchRoomsPayloadType = {
baseUrl: string
}
export type FetchRoomsType = Omit<IApiRoomsResponse, 'status'>
export t... | 6 |
ChristianAlbaladejo/meetSportApp | 5da11a5 | src/app/other-user/other-user.page.ts | TypeScript | www.github.com/ChristianAlbaladejo/meetSportApp/tree/main/src/app/other-user/other-user.page.ts | https://raw.githubusercontent.com/ChristianAlbaladejo/meetSportApp/5da11a5/src/app/other-user/other-user.page.ts | ChristianAlbaladejo/meetSportApp 5da11a5 src/app/other-user/other-user.page.ts | true | 200 | 2,693 | import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { UserService } from '../services/user.service';
import { User } from '../models/user';
import { AlertController, LoadingController, NavController, ModalController, NavParams } from '@ionic/angula... | 3 |
dev-holics/happy-care-server | 310fbf7 | src/modules/location/dtos/branch.input.query.dto.ts | TypeScript | www.github.com/dev-holics/happy-care-server/tree/main/src/modules/location/dtos/branch.input.query.dto.ts | https://raw.githubusercontent.com/dev-holics/happy-care-server/310fbf7/src/modules/location/dtos/branch.input.query.dto.ts | dev-holics/happy-care-server 310fbf7 src/modules/location/dtos/branch.input.query.dto.ts | true | 200 | 944 | import { faker } from '@faker-js/faker';
import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString, IsUUID } from 'class-validator';
import { PaginationListAbstract } from 'src/common/pagination/abstracts/pagination.abstract';
import {
PaginationPage,
PaginationLimit,
} from 'src/common/pagination/... | 1 |
HemantKunwar/mel-tool | 08ce8fc | app/utils/session.server.ts | TypeScript | www.github.com/HemantKunwar/mel-tool/tree/main/app/utils/session.server.ts | https://raw.githubusercontent.com/HemantKunwar/mel-tool/08ce8fc/app/utils/session.server.ts | HemantKunwar/mel-tool 08ce8fc app/utils/session.server.ts | true | 200 | 2,504 | // app/utils/session.server.ts
import { createCookieSessionStorage, redirect } from "@remix-run/node";
import { db } from "./db.server";
type SessionData = {
userId: string;
};
type SessionFlashData = {
error: string;
};
const sessionSecret = process.env.SESSION_SECRET;
if (!sessionSecret) {
if (process.env.N... | 4 |
gtsaroj/trello_prototype | cd77496 | backend/src/app.ts | TypeScript | www.github.com/gtsaroj/trello_prototype/tree/main/backend/src/app.ts | https://raw.githubusercontent.com/gtsaroj/trello_prototype/cd77496/backend/src/app.ts | gtsaroj/trello_prototype cd77496 backend/src/app.ts | true | 200 | 367 | import express from "express";
import cors from "cors";
import cookieParser from "cookie-parser";
const app = express();
app.use(cors());
app.use(cookieParser());
app.use(express.json({ limit: "16kb" }));
app.use(express.urlencoded({ extended: true, limit: "16kb" }));
app.use(express.static("public"));
app.use("/asse... | 0 |
jstampella/crud_mern_ts | 1f78a8a | client/src/theme/theme.ts | TypeScript | www.github.com/jstampella/crud_mern_ts/tree/main/client/src/theme/theme.ts | https://raw.githubusercontent.com/jstampella/crud_mern_ts/1f78a8a/client/src/theme/theme.ts | jstampella/crud_mern_ts 1f78a8a client/src/theme/theme.ts | true | 200 | 2,061 | import { createTheme } from '@mui/material/styles';
import colorConfigs from '../configs/colorConfigs';
import { Typography } from '@mui/material/styles/createTypography';
const breakpoints = {
values: {
xs: 0, // Extra Small, para pantallas pequeñas
sm: 600, // Small, para pantallas de tamaño mediano
md... | 5 |
Eawitikuffour/event-sysem | d398c2a | src/app/event-form/event-form.routing.ts | TypeScript | www.github.com/Eawitikuffour/event-sysem/tree/main/src/app/event-form/event-form.routing.ts | https://raw.githubusercontent.com/Eawitikuffour/event-sysem/d398c2a/src/app/event-form/event-form.routing.ts | Eawitikuffour/event-sysem d398c2a src/app/event-form/event-form.routing.ts | true | 200 | 478 | import { Routes, RouterModule } from '@angular/router';
import { EventFormComponent } from './event-form/event-form.component';
import { RegisterComponent } from './register/register.component';
const routes: Routes = [
{
path: 'add-new/:event_name',
component: EventFormComponent,
pathMatch: 'full',
},... | 6 |
Prosper226/Neo4j_spi_killers_frontend | 74ef3cf | src/app/neo4j/components/killers/killers.module.ts | TypeScript | www.github.com/Prosper226/Neo4j_spi_killers_frontend/tree/main/src/app/neo4j/components/killers/killers.module.ts | https://raw.githubusercontent.com/Prosper226/Neo4j_spi_killers_frontend/74ef3cf/src/app/neo4j/components/killers/killers.module.ts | Prosper226/Neo4j_spi_killers_frontend 74ef3cf src/app/neo4j/components/killers/killers.module.ts | true | 200 | 1,799 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { KillersRoutingModule } from './killers-routing.module';
import { KillersComponent } from './killers.component';
import { TableModule } from 'primeng/table';
import { FileUploa... | 3 |
projeto-reciclagem/projeto-reciclagem-front | 6c6a0eb | src/api/get-schedule-details.ts | TypeScript | www.github.com/projeto-reciclagem/projeto-reciclagem-front/tree/main/src/api/get-schedule-details.ts | https://raw.githubusercontent.com/projeto-reciclagem/projeto-reciclagem-front/6c6a0eb/src/api/get-schedule-details.ts | projeto-reciclagem/projeto-reciclagem-front 6c6a0eb src/api/get-schedule-details.ts | true | 200 | 1,299 | import { api } from '@/lib/axios'
export interface GetSchedulesRequest {
scheduleId: number
}
export interface GetSchedulesResponse {
id: number
datAgendamento: string
datRetirada: string
qtBag: number
status: 'pending' | 'scheduled' | 'completed' | 'canceled'
cooperativa: {
id: number
nome: str... | 4 |
harishkumark96/ecommerce-FrontEnd | 9acff9b | src/app/pages/cart/cart.component.ts | TypeScript | www.github.com/harishkumark96/ecommerce-FrontEnd/tree/main/src/app/pages/cart/cart.component.ts | https://raw.githubusercontent.com/harishkumark96/ecommerce-FrontEnd/9acff9b/src/app/pages/cart/cart.component.ts | harishkumark96/ecommerce-FrontEnd 9acff9b src/app/pages/cart/cart.component.ts | true | 200 | 1,721 | import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { loadStripe } from '@stripe/stripe-js';
import { Cart, CartItem } from 'src/app/models/cart.model';
import { CartService } from 'src/app/services/cart.service';
import { environment } from 'src/environments/env... | 0 |
La-Sectoblique/septrotrip-service | 55c6859 | src/utils/Config.ts | TypeScript | www.github.com/La-Sectoblique/septrotrip-service/tree/main/src/utils/Config.ts | https://raw.githubusercontent.com/La-Sectoblique/septrotrip-service/55c6859/src/utils/Config.ts | La-Sectoblique/septrotrip-service 55c6859 src/utils/Config.ts | true | 200 | 1,177 | import axios from "axios";
import { log } from "./Log";
import Platform from "./Platform";
/**
* Contient toutes les informations dont a besoin le package pour fonctionner
*
* @interface
* @
*/
export interface InitParameters {
/**
* L'URL de l'api Septotrip
*/
url: string;
/**
* La plateform sur laquel... | 1 |
ryuuzera/devpira-sorteio | 0e51332 | server/src/application/use-cases/createUser/createuser.usecase.ts | TypeScript | www.github.com/ryuuzera/devpira-sorteio/tree/main/server/src/application/use-cases/createUser/createuser.usecase.ts | https://raw.githubusercontent.com/ryuuzera/devpira-sorteio/0e51332/server/src/application/use-cases/createUser/createuser.usecase.ts | ryuuzera/devpira-sorteio 0e51332 server/src/application/use-cases/createUser/createuser.usecase.ts | true | 200 | 366 | import User from '../../../domain/entities/user';
import IRepository from '../../../domain/repositories/@types/irepository';
import { CreateUserDTO } from './createuser.dto';
export class CreateUserUseCase {
constructor(private userRepository: IRepository<User>) {}
async execute(data: CreateUserDTO) {
return ... | 6 |
AMTC-prof/Pokedex | 32cba08 | src/app/components/main/main.component.spec.ts | TypeScript | www.github.com/AMTC-prof/Pokedex/tree/main/src/app/components/main/main.component.spec.ts | https://raw.githubusercontent.com/AMTC-prof/Pokedex/32cba08/src/app/components/main/main.component.spec.ts | AMTC-prof/Pokedex 32cba08 src/app/components/main/main.component.spec.ts | true | 200 | 2,922 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MainComponent } from './main.component';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterModule } from '@angular/router';
import { PokemonService } from '../../services/pokemon.service';
import { PokemonDe... | 3 |
rayriffy/mirai | 724636a | web/src/modules/auth/onboarding/services/useStores.ts | TypeScript | www.github.com/rayriffy/mirai/tree/main/web/src/modules/auth/onboarding/services/useStores.ts | https://raw.githubusercontent.com/rayriffy/mirai/724636a/web/src/modules/auth/onboarding/services/useStores.ts | rayriffy/mirai 724636a web/src/modules/auth/onboarding/services/useStores.ts | true | 200 | 938 | import { useState, useEffect } from 'react'
import { collection, onSnapshot, query, where } from 'firebase/firestore'
import { Store } from '../../../../core/@types/firebase/Store'
import { StoreWithId } from '../../../../core/@types/StoreWithId'
import { getFirestoreInstance } from '../../../../core/services/getFire... | 0 |
TrainLCD/MobileApp | 0f79695 | src/utils/line.ts | TypeScript | www.github.com/TrainLCD/MobileApp/tree/main/src/utils/line.ts | https://raw.githubusercontent.com/TrainLCD/MobileApp/0f79695/src/utils/line.ts | TrainLCD/MobileApp 0f79695 src/utils/line.ts | true | 200 | 866 | import type { Line, Station } from '../../gen/proto/stationapi_pb';
export const filterWithoutCurrentLine = (
stations: Station[],
currentLine: Line | null,
stationIndex: number
): Line[] => {
const currentStation = stations[stationIndex];
if (!currentLine || !currentStation) {
return [];
}
return cu... | 4 |
alfanrckz/knowledge-test-fs-enginer | 1d5a426 | frontend/src/stores/rootReducer.ts | TypeScript | www.github.com/alfanrckz/knowledge-test-fs-enginer/tree/main/frontend/src/stores/rootReducer.ts | https://raw.githubusercontent.com/alfanrckz/knowledge-test-fs-enginer/1d5a426/frontend/src/stores/rootReducer.ts | alfanrckz/knowledge-test-fs-enginer 1d5a426 frontend/src/stores/rootReducer.ts | true | 200 | 434 | import { combineReducers } from "@reduxjs/toolkit";
import { productSlice } from "./slices/productSlice";
import profileSlice from "./slices/profileSlice";
export const { setProducts} = productSlice.actions;
export const productReducer = productSlice.reducer;
export const profileReducer = profileSlice;
const rootRe... | 5 |
NicholasDenaro/node-game-engine | 4734c18 | blank-demo/src/button.ts | TypeScript | www.github.com/NicholasDenaro/node-game-engine/tree/main/blank-demo/src/button.ts | https://raw.githubusercontent.com/NicholasDenaro/node-game-engine/4734c18/blank-demo/src/button.ts | NicholasDenaro/node-game-engine 4734c18 blank-demo/src/button.ts | true | 200 | 287 | import { Engine, Entity, Scene, Sprite, SpriteEntity, SpritePainter, UIPainter } from "game-engine";
export class Button extends SpriteEntity {
constructor() {
super(new UIPainter(Sprite.Sprites['button']));
}
tick(engine: Engine, scene: Scene): void | Promise<void> {
}
} | 1 |
CtrI-Alt-Del/stocker | 42f060a | apps/server/src/api/controllers/locations/delete-locations-controller.ts | TypeScript | www.github.com/CtrI-Alt-Del/stocker/tree/main/apps/server/src/api/controllers/locations/delete-locations-controller.ts | https://raw.githubusercontent.com/CtrI-Alt-Del/stocker/42f060a/apps/server/src/api/controllers/locations/delete-locations-controller.ts | CtrI-Alt-Del/stocker 42f060a apps/server/src/api/controllers/locations/delete-locations-controller.ts | true | 200 | 640 | import type { LocationDto } from '@stocker/core/dtos'
import type { IHttp } from '@stocker/core/interfaces'
import { DeleteLocationsUseCase } from '@stocker/core/use-cases'
import { locationsRepository } from '@/database'
import { HTTP_STATUS_CODE } from '@stocker/core/constants'
type RouteParamsj = {
locationId: st... | 3 |
DebarshiDas1/ProjEMR | 3c793e3 | ClientApp/src/app/template/template-preview/template-preview.component.spec.ts | TypeScript | www.github.com/DebarshiDas1/ProjEMR/tree/main/ClientApp/src/app/template/template-preview/template-preview.component.spec.ts | https://raw.githubusercontent.com/DebarshiDas1/ProjEMR/3c793e3/ClientApp/src/app/template/template-preview/template-preview.component.spec.ts | DebarshiDas1/ProjEMR 3c793e3 ClientApp/src/app/template/template-preview/template-preview.component.spec.ts | true | 200 | 2,367 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { TemplatePreviewComponent } from './template-preview.component';
import { TemplateAddComponent } from '../template-add/template-add.component';
import { E... | 6 |
backytadev/uptask-backend | 6757ffe | src/config/nodemailer.ts | TypeScript | www.github.com/backytadev/uptask-backend/tree/main/src/config/nodemailer.ts | https://raw.githubusercontent.com/backytadev/uptask-backend/6757ffe/src/config/nodemailer.ts | backytadev/uptask-backend 6757ffe src/config/nodemailer.ts | true | 200 | 460 | // Looking to send emails in production? Check out our Email API/SMTP product!
import dotenv from 'dotenv';
import nodemailer from 'nodemailer';
dotenv.config({});
const { SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD } = process.env;
const config = () => {
return {
host: SMTP_HOST,
port: +SMTP_PORT,
... | 0 |
adika3121/AYP_Putu-Adhika-Dharmesta | 59de419 | cypress/e2e/computer-database.ts | TypeScript | www.github.com/adika3121/AYP_Putu-Adhika-Dharmesta/tree/main/cypress/e2e/computer-database.ts | https://raw.githubusercontent.com/adika3121/AYP_Putu-Adhika-Dharmesta/59de419/cypress/e2e/computer-database.ts | adika3121/AYP_Putu-Adhika-Dharmesta 59de419 cypress/e2e/computer-database.ts | true | 200 | 2,104 | import { When, Then, Given } from "@badeball/cypress-cucumber-preprocessor";
import { when } from "cypress/types/jquery";
const randomComputerName = Math.random().toString(36).substring(2,7);
When("I visit duckduckgo.com", () => {
cy.visit("https://www.duckduckgo.com");
});
Given('I visit the Computer Database pag... | 4 |
hs-wolf/rpg-together | c069c9e | apps/client/src/types.ts | TypeScript | www.github.com/hs-wolf/rpg-together/tree/main/apps/client/src/types.ts | https://raw.githubusercontent.com/hs-wolf/rpg-together/c069c9e/apps/client/src/types.ts | hs-wolf/rpg-together c069c9e apps/client/src/types.ts | true | 200 | 494 | import type { Table } from '@rpg-together/models'
export enum AppDirections {
RTL = 'rtl',
LTR = 'ltr',
}
export enum SnackType {
SUCCESS = 'SUCCESS',
WARNING = 'WARNING',
ERROR = 'ERROR',
}
export interface ISnack {
type: SnackType
message: string
}
export interface AdvancedSelectOption {
id?: strin... | 5 |
EduaRuiz/storage-management | 92c2f59 | apps/inventory/src/application/use-cases/__test__/get-product-info.use-case.spec.ts | TypeScript | www.github.com/EduaRuiz/storage-management/tree/main/apps/inventory/src/application/use-cases/__test__/get-product-info.use-case.spec.ts | https://raw.githubusercontent.com/EduaRuiz/storage-management/92c2f59/apps/inventory/src/application/use-cases/__test__/get-product-info.use-case.spec.ts | EduaRuiz/storage-management 92c2f59 apps/inventory/src/application/use-cases/__test__/get-product-info.use-case.spec.ts | true | 200 | 1,474 | import { IProductDomainService } from 'apps/inventory/src/domain';
import { of } from 'rxjs';
import { GetProductInfoUseCase } from '../get-product-info.use-case';
import { ProductDomainModel } from 'apps/inventory/src/domain/models';
describe('GetProductInfoUseCase', () => {
let product$: IProductDomainService;
l... | 1 |
CryptedEx/animet-tv-client | a533530 | src/app/pages/home/home.component.ts | TypeScript | www.github.com/CryptedEx/animet-tv-client/tree/main/src/app/pages/home/home.component.ts | https://raw.githubusercontent.com/CryptedEx/animet-tv-client/a533530/src/app/pages/home/home.component.ts | CryptedEx/animet-tv-client a533530 src/app/pages/home/home.component.ts | true | 200 | 10,709 | import { Component, HostListener, OnInit, Pipe, PipeTransform } from '@angular/core';
import { SynopsisDialogService } from '../../@core/services/synopsis-dialog.service';
import { MatDialog, } from '@angular/material/dialog';
import { LastOpen, Spotlight } from '../../types/interface';
import { BehaviorSubject, Observ... | 2 |
ThanhQuoc0719/Hotelmanagement1 | f6225bc | src/app/components/manager/manager-item/manager-item.component.ts | TypeScript | www.github.com/ThanhQuoc0719/Hotelmanagement1/tree/main/src/app/components/manager/manager-item/manager-item.component.ts | https://raw.githubusercontent.com/ThanhQuoc0719/Hotelmanagement1/f6225bc/src/app/components/manager/manager-item/manager-item.component.ts | ThanhQuoc0719/Hotelmanagement1 f6225bc src/app/components/manager/manager-item/manager-item.component.ts | true | 200 | 338 | import { Component, Input } from '@angular/core';
import { NavigationItem } from '../../../models/NavigationItem';
@Component({
selector: 'app-manager-item',
templateUrl: './manager-item.component.html',
styleUrls: ['./manager-item.component.scss']
})
export class ManagerItemComponent {
@Input() managerItem!: ... | 3 |
Pogakco/FE | 19ae954 | src/models/room.model.ts | TypeScript | www.github.com/Pogakco/FE/tree/main/src/models/room.model.ts | https://raw.githubusercontent.com/Pogakco/FE/19ae954/src/models/room.model.ts | Pogakco/FE 19ae954 src/models/room.model.ts | true | 200 | 922 | export interface IroomData {
id: number;
roomTitle: string;
roomDescription: string;
totalCycles: number;
currentCycles: number;
focusTime: number;
startedAt: string;
shortBreakTime: number;
isJoined? : boolean;
longBreakTime: number;
isRunning: boolean;
maxParticipants: number;
currentPartici... | 6 |
basiljilani/FinTech-Pulse-Network-BLOG-CMS | 8a79c33 | src/types/amazon-cognito-identity-js.d.ts | TypeScript | www.github.com/basiljilani/FinTech-Pulse-Network-BLOG-CMS/tree/main/src/types/amazon-cognito-identity-js.d.ts | https://raw.githubusercontent.com/basiljilani/FinTech-Pulse-Network-BLOG-CMS/8a79c33/src/types/amazon-cognito-identity-js.d.ts | basiljilani/FinTech-Pulse-Network-BLOG-CMS 8a79c33 src/types/amazon-cognito-identity-js.d.ts | true | 200 | 904 | declare module 'amazon-cognito-identity-js' {
export class CognitoUserPool {
constructor(data: {
UserPoolId: string;
ClientId: string;
});
signUp(
username: string,
password: string,
attributeList: { Name: string; Value: string }[],
validationData: a... | 1 |
utkinn/NewsMap | 5c5d531 | Frontend/src/slices/userSlice.ts | TypeScript | www.github.com/utkinn/NewsMap/tree/main/Frontend/src/slices/userSlice.ts | https://raw.githubusercontent.com/utkinn/NewsMap/5c5d531/Frontend/src/slices/userSlice.ts | utkinn/NewsMap 5c5d531 Frontend/src/slices/userSlice.ts | true | 200 | 865 | import { createSlice } from "@reduxjs/toolkit";
export interface userState {
logged: boolean;
token: null|string;
userName: string;
email: string;
}
const initialState: userState = {
logged: false,
token: null,
userName: "",
email: ""
};
export const userSlice = createSlice({... | 4 |
Vadym-Prydatok/react_todo_app_local_storage | 6b20268 | src/api/api.ts | TypeScript | www.github.com/Vadym-Prydatok/react_todo_app_local_storage/tree/main/src/api/api.ts | https://raw.githubusercontent.com/Vadym-Prydatok/react_todo_app_local_storage/6b20268/src/api/api.ts | Vadym-Prydatok/react_todo_app_local_storage 6b20268 src/api/api.ts | true | 200 | 855 | import { Todo } from '../types/Todo';
import { User } from '../types/User';
import { client } from '../utils/fetchClient';
export const getTodos = (userId: number) => {
return client.get<Todo[]>(`/todos?userId=${userId}`);
};
export const addTodoOnServer = (data: Todo) => {
return client.post('/todos', data);
};
... | 2 |
DelclecianoSuporte/Gerenciador-Financeiro | fe1b689 | src/app/app.module.ts | TypeScript | www.github.com/DelclecianoSuporte/Gerenciador-Financeiro/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/DelclecianoSuporte/Gerenciador-Financeiro/fe1b689/src/app/app.module.ts | DelclecianoSuporte/Gerenciador-Financeiro fe1b689 src/app/app.module.ts | true | 200 | 2,221 | import { NgModule, LOCALE_ID } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { RouterModule } from '@angular/router';
import { routes } from './app.routes';
import { CommonModule } from '@angular/common';
import { provideHttpClien... | 3 |
toan5ks1/React-Typescript-template | 933c924 | src/squads/communication/internals/errors/errors.ts | TypeScript | www.github.com/toan5ks1/React-Typescript-template/tree/main/src/squads/communication/internals/errors/errors.ts | https://raw.githubusercontent.com/toan5ks1/React-Typescript-template/933c924/src/squads/communication/internals/errors/errors.ts | toan5ks1/React-Typescript-template 933c924 src/squads/communication/internals/errors/errors.ts | true | 200 | 408 | import { ErrorInfo } from "react";
export class AppError extends Error {
name: string = "AppError";
originMessage?: string;
static isAppError(err: Error) {
return err instanceof AppError;
}
constructor(message: string) {
super(message);
}
}
export interface IErrorBoundary {
... | 5 |
agiratech-nikkel/jwt-auth-gaurd | ffab7db | src/environments/environment.ts | TypeScript | www.github.com/agiratech-nikkel/jwt-auth-gaurd/tree/main/src/environments/environment.ts | https://raw.githubusercontent.com/agiratech-nikkel/jwt-auth-gaurd/ffab7db/src/environments/environment.ts | agiratech-nikkel/jwt-auth-gaurd ffab7db src/environments/environment.ts | true | 200 | 1,083 | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
firebase: {
projectId: 'jwt-role-base',
appId: '1:367936589481:web... | 6 |
moogawilson/RealMusic | 6660fa6 | lambda-node/src/handlers/fetchsongs.ts | TypeScript | www.github.com/moogawilson/RealMusic/tree/main/lambda-node/src/handlers/fetchsongs.ts | https://raw.githubusercontent.com/moogawilson/RealMusic/6660fa6/lambda-node/src/handlers/fetchsongs.ts | moogawilson/RealMusic 6660fa6 lambda-node/src/handlers/fetchsongs.ts | true | 200 | 2,336 | import { APIGatewayProxyEvent, APIGatewayProxyResult } from "aws-lambda";
import { getSongSelections } from "../utils/selectorAPI";
import { authenticateUser } from "../middleware/authenticate";
import { addLike } from "../../prisma/src/songs";
import { error } from "console";
if (!process.env.FRONTEND_URL) {
throw ... | 0 |
sahilpawar007/clothing-website | 699caa5 | frontend/src/redux/reducer/productSlice.ts | TypeScript | www.github.com/sahilpawar007/clothing-website/tree/main/frontend/src/redux/reducer/productSlice.ts | https://raw.githubusercontent.com/sahilpawar007/clothing-website/699caa5/frontend/src/redux/reducer/productSlice.ts | sahilpawar007/clothing-website 699caa5 frontend/src/redux/reducer/productSlice.ts | true | 200 | 1,755 | import { createSlice, PayloadAction } from "@reduxjs/toolkit";
// Product State Type
interface ProductState {
products: [] | null;
loading: boolean;
productsCount: any;
resultPerPage: any;
filteredProductsCount: any;
error: any;
}
// Initial State
const initialState: ProductState = {
products: null,
l... | 7 |
muinmundzir/eigen | ece9c36 | src/member/member.controller.ts | TypeScript | www.github.com/muinmundzir/eigen/tree/main/src/member/member.controller.ts | https://raw.githubusercontent.com/muinmundzir/eigen/ece9c36/src/member/member.controller.ts | muinmundzir/eigen ece9c36 src/member/member.controller.ts | true | 200 | 764 | import { Body, Controller, Get, Post } from '@nestjs/common';
import { ApiBadRequestResponse, ApiOkResponse } from '@nestjs/swagger';
import { MemberService } from './member.service';
import { CreateMember } from './dto/create-member.dto';
@Controller('/members')
export class MemberController {
constructor(private ... | 1 |
renan-rs/angular-nerd-things-ecommerce | e72f356 | src/app/barra-pesquisa/barra-pesquisa.component.ts | TypeScript | www.github.com/renan-rs/angular-nerd-things-ecommerce/tree/main/src/app/barra-pesquisa/barra-pesquisa.component.ts | https://raw.githubusercontent.com/renan-rs/angular-nerd-things-ecommerce/e72f356/src/app/barra-pesquisa/barra-pesquisa.component.ts | renan-rs/angular-nerd-things-ecommerce e72f356 src/app/barra-pesquisa/barra-pesquisa.component.ts | true | 200 | 678 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { faSearch } from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-barra-pesquisa',
templateUrl: './barra-pesquisa.component.html',
styleUrls: ['./barra-pesquisa.component.css']
})
export class Bar... | 2 |
fabiomorales/internet-service-provider-back | 340e2f0 | src/modules/plans/infra/knexorm/BenefitRepository.ts | TypeScript | www.github.com/fabiomorales/internet-service-provider-back/tree/main/src/modules/plans/infra/knexorm/BenefitRepository.ts | https://raw.githubusercontent.com/fabiomorales/internet-service-provider-back/340e2f0/src/modules/plans/infra/knexorm/BenefitRepository.ts | fabiomorales/internet-service-provider-back 340e2f0 src/modules/plans/infra/knexorm/BenefitRepository.ts | true | 200 | 556 | import { IBenefit } from '@modules/plans/domain/models/IBenefit';
import { IBenefitRepository } from '@modules/plans/domain/repositories/IBenefitRepository';
import { knexormHelper } from '@shared/infra/knexorm';
import { Knex } from 'knex';
class BenefitRepository implements IBenefitRepository {
private ormReposito... | 3 |
alexnt2499/ob-ui-test | 86eda0a | src/recoil/types/index.ts | TypeScript | www.github.com/alexnt2499/ob-ui-test/tree/main/src/recoil/types/index.ts | https://raw.githubusercontent.com/alexnt2499/ob-ui-test/86eda0a/src/recoil/types/index.ts | alexnt2499/ob-ui-test 86eda0a src/recoil/types/index.ts | true | 200 | 360 | import { ArrayTheInfoItem, PairSearched, SystemCurrency } from '@/api/models';
export interface LimitOrder {
action: 'SELL' | 'BUY';
sell: SystemCurrency;
buy: SystemCurrency;
}
export interface FavoredState {
listFavored: PairSearched[];
listTopSearch: PairSearched[];
}
export interface ArrangeTheInfoStat... | 6 |
faithfulojebiyi/ai-analyst | e0a6231 | src/app/api/limit/route.ts | TypeScript | www.github.com/faithfulojebiyi/ai-analyst/tree/main/src/app/api/limit/route.ts | https://raw.githubusercontent.com/faithfulojebiyi/ai-analyst/e0a6231/src/app/api/limit/route.ts | faithfulojebiyi/ai-analyst e0a6231 src/app/api/limit/route.ts | true | 200 | 1,788 | import { FINGERPRINT_HEADER } from "@/constants/configs";
import { getCompanyEnrichmentCountByFingerprint } from "@/core/company/queries";
import { getUserByEmail } from "@/core/user/queries";
import { captureApiException } from "@/lib/sentry/sentry-browser";
import type { APILimitResponse } from "@/types/api.type";
im... | 5 |
yanzzzzzzzzz/shopping-cart-frontend | 06eaeb7 | src/utils/tokenUtils.ts | TypeScript | www.github.com/yanzzzzzzzzz/shopping-cart-frontend/tree/main/src/utils/tokenUtils.ts | https://raw.githubusercontent.com/yanzzzzzzzzz/shopping-cart-frontend/06eaeb7/src/utils/tokenUtils.ts | yanzzzzzzzzz/shopping-cart-frontend 06eaeb7 src/utils/tokenUtils.ts | true | 200 | 694 | import { tokenIsExpired } from '@/api/user.api';
import { DecodedPayload } from '@/Model/type';
export const checkTokenValidity = async (token: string) => {
const isExpired = await tokenIsExpired(token);
if (isExpired) {
localStorage.removeItem('token');
alert('您的登入已過期,請重新登入');
return false;
}... | 2 |
devkacperwozniak/foodie-api | 7471c18 | src/mailing/email-confirmation/email-confirmation.service.ts | TypeScript | www.github.com/devkacperwozniak/foodie-api/tree/main/src/mailing/email-confirmation/email-confirmation.service.ts | https://raw.githubusercontent.com/devkacperwozniak/foodie-api/7471c18/src/mailing/email-confirmation/email-confirmation.service.ts | devkacperwozniak/foodie-api 7471c18 src/mailing/email-confirmation/email-confirmation.service.ts | true | 200 | 1,698 | import { BadRequestException, Inject, Injectable } from '@nestjs/common';
import { UsersService } from '../../users/users.service';
import mailingConfig from '../config/mailing.config';
import { ConfigType } from '@nestjs/config';
import { JwtService } from '@nestjs/jwt';
import { MailingService } from '../mailing.serv... | 3 |
gauravupadhyay1994/hyperhire | 5974089 | src/price/price.controller.ts | TypeScript | www.github.com/gauravupadhyay1994/hyperhire/tree/main/src/price/price.controller.ts | https://raw.githubusercontent.com/gauravupadhyay1994/hyperhire/5974089/src/price/price.controller.ts | gauravupadhyay1994/hyperhire 5974089 src/price/price.controller.ts | true | 200 | 985 | import { Controller, Get, Param } from '@nestjs/common';
import { PriceService } from './price.service';
import { BigNumber } from 'bignumber.js';
@Controller('prices')
export class PriceController {
constructor(private readonly priceService: PriceService) {}
// Endpoint to get hourly prices
@Get('hourly')
as... | 5 |
morfey897/sonic2dn | 588eefc | src/pages/api/user/[id].ts | TypeScript | www.github.com/morfey897/sonic2dn/tree/main/src/pages/api/user/[id].ts | https://raw.githubusercontent.com/morfey897/sonic2dn/588eefc/src/pages/api/user/%5Bid%5D.ts | morfey897/sonic2dn 588eefc src/pages/api/user/[id].ts | true | 200 | 773 | import type { NextRequest } from 'next/server';
import { json } from '@/edge/response';
import type { D1Database } from "@cloudflare/workers-types";
export const config = {
runtime: 'edge',
};
type UserType = {
id: number;
name: string;
email: string;
}
export default async function handler(req: NextRequest)... | 2 |
AndreyB7/lpds-everhour | f9ad5f7 | server/services/monitoringService.ts | TypeScript | www.github.com/AndreyB7/lpds-everhour/tree/main/server/services/monitoringService.ts | https://raw.githubusercontent.com/AndreyB7/lpds-everhour/f9ad5f7/server/services/monitoringService.ts | AndreyB7/lpds-everhour f9ad5f7 server/services/monitoringService.ts | true | 200 | 3,185 | import { getWorkingDays } from "../helpers/time";
import { Project, tMonitoring } from "../../types/types";
import fs from "fs";
import path from "path";
import ejs from "ejs";
import { sendMail } from "./mailerService";
import { slackMessage } from "./slackNotifierService";
import { everhourDataRefresh } from "./refre... | 3 |
JuGeonjeong/hhp-concert | 1a45426 | src/domain/user/application/usecase/findPoint.usecase.ts | TypeScript | www.github.com/JuGeonjeong/hhp-concert/tree/main/src/domain/user/application/usecase/findPoint.usecase.ts | https://raw.githubusercontent.com/JuGeonjeong/hhp-concert/1a45426/src/domain/user/application/usecase/findPoint.usecase.ts | JuGeonjeong/hhp-concert 1a45426 src/domain/user/application/usecase/findPoint.usecase.ts | true | 200 | 514 | import { Inject } from '@nestjs/common';
import { PointService } from '../../domain/service/point.service';
import { UserService } from '../../domain/service/user.service';
export class FindPointUsecase {
constructor(
@Inject(PointService)
private readonly pointService: PointService,
@Inject(UserService)... | 6 |
emtee40/music-artist-website | cce0b9b | src/i18n.ts | TypeScript | www.github.com/emtee40/music-artist-website/tree/main/src/i18n.ts | https://raw.githubusercontent.com/emtee40/music-artist-website/cce0b9b/src/i18n.ts | emtee40/music-artist-website cce0b9b src/i18n.ts | true | 200 | 726 | import i18n from 'i18next';
import {initReactI18next} from 'react-i18next';
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import {getRandomInt} from "./util";
i18n.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
.init({
fall... | 5 |
henriqueykajihara/9910-construcao_software | 9bafad1 | api/src/ingredients/ingredients.service.ts | TypeScript | www.github.com/henriqueykajihara/9910-construcao_software/tree/main/api/src/ingredients/ingredients.service.ts | https://raw.githubusercontent.com/henriqueykajihara/9910-construcao_software/9bafad1/api/src/ingredients/ingredients.service.ts | henriqueykajihara/9910-construcao_software 9bafad1 api/src/ingredients/ingredients.service.ts | true | 200 | 1,240 | import { Injectable } from '@nestjs/common';
export interface Ingredient {
id: number;
name: string;
status: number;
}
@Injectable()
export class IngredientsService {
private ingredients: Ingredient[];
private idAtual = 1;
constructor() {
this.ingredients = [];
}
async getAll... | 2 |
belm960/mandi1 | c93f729 | src/app/pages/edit-advert/edit-advert.component.ts | TypeScript | www.github.com/belm960/mandi1/tree/main/src/app/pages/edit-advert/edit-advert.component.ts | https://raw.githubusercontent.com/belm960/mandi1/c93f729/src/app/pages/edit-advert/edit-advert.component.ts | belm960/mandi1 c93f729 src/app/pages/edit-advert/edit-advert.component.ts | true | 200 | 2,762 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { AddInfo } from 'src/app/models/addInfo';
import { AddGroupService } from 'src/app/services/addgroup.service';
import Swal from 'sweetalert2';
@C... | 3 |
rinickolous/gcsga | e971ddc | types/foundry/client/apps/templates.d.ts | TypeScript | www.github.com/rinickolous/gcsga/tree/main/types/foundry/client/apps/templates.d.ts | https://raw.githubusercontent.com/rinickolous/gcsga/e971ddc/types/foundry/client/apps/templates.d.ts | rinickolous/gcsga e971ddc types/foundry/client/apps/templates.d.ts | true | 200 | 11,703 | export {}
declare global {
let _templateCache: Record<string, Handlebars.TemplateDelegate>
/**
* Get a template from the server by fetch request and caching the retrieved result
* @param path - The web-accessible HTML template URL
* @returns A Promise which resolves to the compiled Handlebars template
*/
f... | 6 |
uvenegas/svc-app-prueba | ff25c6d | src/domains/drugs/service/drugsServices.test.ts | TypeScript | www.github.com/uvenegas/svc-app-prueba/tree/main/src/domains/drugs/service/drugsServices.test.ts | https://raw.githubusercontent.com/uvenegas/svc-app-prueba/ff25c6d/src/domains/drugs/service/drugsServices.test.ts | uvenegas/svc-app-prueba ff25c6d src/domains/drugs/service/drugsServices.test.ts | true | 200 | 1,235 | import { IDrugs } from '@domains/drugs/interface/IDrugs';
import { DrugsServices } from '@domains/drugs/service/DrugsServices';
describe('Test Drugs Service', () => {
it('post drug - Success', async () => {
const requestTest: IDrugs.IRequestDrugs = {
id: 123,
name: 'adrenalina',
... | 5 |
droid664/todo-app-backend | b8a9684 | src/app.module.ts | TypeScript | www.github.com/droid664/todo-app-backend/tree/main/src/app.module.ts | https://raw.githubusercontent.com/droid664/todo-app-backend/b8a9684/src/app.module.ts | droid664/todo-app-backend b8a9684 src/app.module.ts | true | 200 | 750 | import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { TypeOrmModule } from '@nestjs/typeorm'
import { dbdatasource } from './data.source'
import { ConfigModule } from '@nestjs/config'
import { UserModule } from './user/user.module'
i... | 3 |
boostcampwm-2022/web13-moyeomoyeo | 399ce79 | frontend/src/hooks/queries/useFetchArticle.ts | TypeScript | www.github.com/boostcampwm-2022/web13-moyeomoyeo/tree/main/frontend/src/hooks/queries/useFetchArticle.ts | https://raw.githubusercontent.com/boostcampwm-2022/web13-moyeomoyeo/399ce79/frontend/src/hooks/queries/useFetchArticle.ts | boostcampwm-2022/web13-moyeomoyeo 399ce79 frontend/src/hooks/queries/useFetchArticle.ts | true | 200 | 709 | import { AxiosError, AxiosResponse } from 'axios';
import useAuthQuery from '@hooks/useAuthQuery';
import { ArticleType } from '@typings/types';
import { clientAxios } from '@utils/commonAxios';
interface ResponseType {
status: string;
message: string;
data: ArticleType;
}
const getSpecificArticle = async (id:... | 6 |
miat-dev/fp | f88c271 | src/app/exam/exam.module.ts | TypeScript | www.github.com/miat-dev/fp/tree/main/src/app/exam/exam.module.ts | https://raw.githubusercontent.com/miat-dev/fp/f88c271/src/app/exam/exam.module.ts | miat-dev/fp f88c271 src/app/exam/exam.module.ts | true | 200 | 1,304 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Exam } from './exam.component';
import { CountdownLocalVarParentComponent, CountdownTimerComponent} from './timer/timer.component';
import { CdDirective } from './cd.directive';
import { Exam2 } from './vscomm/vscomm.comp... | 5 |
kortkamp/search | 907fbae | backend/src/shared/infra/typeorm/seed/admin.ts | TypeScript | www.github.com/kortkamp/search/tree/main/backend/src/shared/infra/typeorm/seed/admin.ts | https://raw.githubusercontent.com/kortkamp/search/907fbae/backend/src/shared/infra/typeorm/seed/admin.ts | kortkamp/search 907fbae backend/src/shared/infra/typeorm/seed/admin.ts | true | 200 | 854 | import { hash } from 'bcryptjs';
import { ICreateUserDTO } from '@modules/users/dtos/ICreateUserDTO';
import { UserRole } from '@modules/users/models/IUser';
import { UsersRepository } from '@modules/users/infra/typeorm/repositories/UsersRepository';
import crypto from 'crypto';
import 'dotenv/config';
import { AppDat... | 2 |
guilhermemcardoso/tvmazeapp | f45e950 | src/domains/favorites/components/favorite-item/styles.ts | TypeScript | www.github.com/guilhermemcardoso/tvmazeapp/tree/main/src/domains/favorites/components/favorite-item/styles.ts | https://raw.githubusercontent.com/guilhermemcardoso/tvmazeapp/f45e950/src/domains/favorites/components/favorite-item/styles.ts | guilhermemcardoso/tvmazeapp f45e950 src/domains/favorites/components/favorite-item/styles.ts | true | 200 | 1,255 | import {StyleSheet} from 'react-native';
const styles = StyleSheet.create({
itemContainer: {
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'flex-start',
borderRadius: 8,
marginBottom: 8,
},
image: {
borderTopLeftRadius: 8,
borderBottomLeftRadius: 8,
},
infoContai... | 3 |
AugustoGitH/ONLINKS-BACKEND--DEV | 8e1876b | src/models/TokenRegistration/validation.ts | TypeScript | www.github.com/AugustoGitH/ONLINKS-BACKEND--DEV/tree/main/src/models/TokenRegistration/validation.ts | https://raw.githubusercontent.com/AugustoGitH/ONLINKS-BACKEND--DEV/8e1876b/src/models/TokenRegistration/validation.ts | AugustoGitH/ONLINKS-BACKEND--DEV 8e1876b src/models/TokenRegistration/validation.ts | true | 200 | 1,444 | import Joi from "@hapi/joi";
import { CreateTokenRegistration, UpdateTokenRegistration } from "./types";
import validPermissions from "../../helpers/validPermissions";
export const validateTokenRegistrationchema = (
tokenRegistration: Omit<CreateTokenRegistration, "token" | "userId">
) => {
const schema = Joi.obje... | 6 |
MADeit0/algososh | 2a0a656 | src/components/string/utils.ts | TypeScript | www.github.com/MADeit0/algososh/tree/main/src/components/string/utils.ts | https://raw.githubusercontent.com/MADeit0/algososh/2a0a656/src/components/string/utils.ts | MADeit0/algososh 2a0a656 src/components/string/utils.ts | true | 200 | 3,119 | import { ElementStates } from "../../types/element-states";
import { swap } from "../utils/utils";
/**
*Алгоритм разворота строки
*
* @export
* @param {string} str Входящая строка символов
* @param {React.Dispatch<React.SetStateAction<boolean>>} setIsSorting функция React хука указывающий флаг выполнения функции ... | 5 |
matheusvitors/financer-api | acd230a | src/server.ts | TypeScript | www.github.com/matheusvitors/financer-api/tree/main/src/server.ts | https://raw.githubusercontent.com/matheusvitors/financer-api/acd230a/src/server.ts | matheusvitors/financer-api acd230a src/server.ts | true | 200 | 448 | import express, {Response, Request} from "express";
import 'dotenv/config';
import project from '../package.json';
const app = express();
app.get('/', (request: Request, response: Response) => {
return response.status(200).send({
name: 'Finanças',
teste: 2,
version: project.version
});
});
if(process.env.N... | 2 |
zargham-leanix/nx-cloud-demo | a768224 | libs/lib67/src/lib/components/lib67-demo41/lib67-demo41.component.spec.ts | TypeScript | www.github.com/zargham-leanix/nx-cloud-demo/tree/main/libs/lib67/src/lib/components/lib67-demo41/lib67-demo41.component.spec.ts | https://raw.githubusercontent.com/zargham-leanix/nx-cloud-demo/a768224/libs/lib67/src/lib/components/lib67-demo41/lib67-demo41.component.spec.ts | zargham-leanix/nx-cloud-demo a768224 libs/lib67/src/lib/components/lib67-demo41/lib67-demo41.component.spec.ts | true | 200 | 628 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Lib67Demo41Component } from './lib67-demo41.component';
describe('Lib67Demo41Component', () => {
let component: Lib67Demo41Component;
let fixture: ComponentFixture<Lib67Demo41Component>;
beforeEach(async () => {
await TestBed.config... | 3 |
the-nerve/nerve.web | b1262f8 | packages/web/src/domains/performance/show/constants.ts | TypeScript | www.github.com/the-nerve/nerve.web/tree/main/packages/web/src/domains/performance/show/constants.ts | https://raw.githubusercontent.com/the-nerve/nerve.web/b1262f8/packages/web/src/domains/performance/show/constants.ts | the-nerve/nerve.web b1262f8 packages/web/src/domains/performance/show/constants.ts | true | 200 | 1,307 | export enum SHOW_STATUS {
ACTIVE = 'active',
FUTURE = 'future',
PAST = 'archived',
COMING_SOON = 'coming-soon',
DEFAULT = 'unknown',
}
export const SHOW_STATUS_MESSAGE = {
[SHOW_STATUS.PAST]: 'Archived',
[SHOW_STATUS.ACTIVE]: 'Now Playing',
[SHOW_STATUS.COMING_SOON]: 'Coming Soon',
... | 2 |
Keireira/aloe | 4c57482 | src/core/routes.ts | TypeScript | www.github.com/Keireira/aloe/tree/main/src/core/routes.ts | https://raw.githubusercontent.com/Keireira/aloe/4c57482/src/core/routes.ts | Keireira/aloe 4c57482 src/core/routes.ts | true | 200 | 539 | const AUTH = '/auth';
const REGISTER = '/register';
const MAIN = '/main';
const ROUTES = {
ROOT: '/',
AUTH: {
ROOT: AUTH,
LOGIN: `${AUTH}/login`,
LOGOUT: `${AUTH}/logout`
},
REGISTER: {
ROOT: REGISTER
},
MAIN: {
ROOT: MAIN
}
};
export const createRoute = (route: string, params: object, search?: strin... | 6 |
asselzhl/cv-app | 750195b | src/helpers/lists/projectsList.ts | TypeScript | www.github.com/asselzhl/cv-app/tree/main/src/helpers/lists/projectsList.ts | https://raw.githubusercontent.com/asselzhl/cv-app/750195b/src/helpers/lists/projectsList.ts | asselzhl/cv-app 750195b src/helpers/lists/projectsList.ts | true | 200 | 1,427 | import project01 from '../../assets/project01.jpg';
import project02 from '../../assets/project02.png';
type ProjectType = 'ui' | 'code';
interface ProjectInfo {
title: string;
description: string;
link: string;
}
export interface ProjectsItem {
imgSrc: string;
type: ProjectType;
info: ProjectInfo;
}
export i... | 3 |
pashitox/todo-redux-typescript | 678bf9c | src/todo/component/LocalStore/LocalStore.ts | TypeScript | www.github.com/pashitox/todo-redux-typescript/tree/main/src/todo/component/LocalStore/LocalStore.ts | https://raw.githubusercontent.com/pashitox/todo-redux-typescript/678bf9c/src/todo/component/LocalStore/LocalStore.ts | pashitox/todo-redux-typescript 678bf9c src/todo/component/LocalStore/LocalStore.ts | true | 200 | 253 | export default {
get: <T>(key: string): T | null => {
return JSON.parse(localStorage.getItem(key) as string) as T | null;
},
set: <T>(key: string, value: T) => {
localStorage.setItem(key, JSON.stringify(value));
},
};
| 5 |
arinjaybhowmick/Library_Management | 84e8b84 | ui/src/app/admin/admin.component.ts | TypeScript | www.github.com/arinjaybhowmick/Library_Management/tree/main/ui/src/app/admin/admin.component.ts | https://raw.githubusercontent.com/arinjaybhowmick/Library_Management/84e8b84/ui/src/app/admin/admin.component.ts | arinjaybhowmick/Library_Management 84e8b84 ui/src/app/admin/admin.component.ts | true | 200 | 1,686 | import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-admin',
templateUrl: './admin.component.html',
styleUrls: ['./admin.component.css']
})
export class AdminComponent implements OnInit {
tit... | 2 |
NataliaVeiga/ignews | ec5e142 | src/pages/api/webhooks.ts | TypeScript | www.github.com/NataliaVeiga/ignews/tree/main/src/pages/api/webhooks.ts | https://raw.githubusercontent.com/NataliaVeiga/ignews/ec5e142/src/pages/api/webhooks.ts | NataliaVeiga/ignews ec5e142 src/pages/api/webhooks.ts | true | 200 | 2,088 | import { NextApiRequest, NextApiResponse } from "next"
import {Readable} from 'stream'
import Stripe from "stripe";
import { stripe } from "../../services/stripe";
import { saveSubscription } from "./_lib/manageSubscription";
async function buffer (readable: Readable ){
const chunks = [];
for await (const chunk of ... | 6 |
RVRTelecomunicaciones/back_sisgedo | 38fee24 | src/app.module.ts | TypeScript | www.github.com/RVRTelecomunicaciones/back_sisgedo/tree/main/src/app.module.ts | https://raw.githubusercontent.com/RVRTelecomunicaciones/back_sisgedo/38fee24/src/app.module.ts | RVRTelecomunicaciones/back_sisgedo 38fee24 src/app.module.ts | true | 200 | 930 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from './auth/auth.module';
import { AuthService } from './auth/auth.service';
import { UsuarioModule } from './usuario/usuario.module';
import { JwtModule } from '@nestjs/jwt';
import { UsuarioApiModule } fro... | 3 |
glncy/ExpoApp | 3c58f47 | src/db/schemas/download.ts | TypeScript | www.github.com/glncy/ExpoApp/tree/main/src/db/schemas/download.ts | https://raw.githubusercontent.com/glncy/ExpoApp/3c58f47/src/db/schemas/download.ts | glncy/ExpoApp 3c58f47 src/db/schemas/download.ts | true | 200 | 354 | import { int, text, sqliteTable } from "drizzle-orm/sqlite-core";
export const download = sqliteTable("downloads", {
localId: int("localId").primaryKey({ autoIncrement: true }),
url: text("url"),
fileName: text("fileName"),
});
export type SelectDownload = typeof download.$inferSelect;
export type InsertDownloa... | 5 |
RivysonClaudio/VanessaStudio | 63fab84 | src/app/components/workers/worker-panel/worker-panel.component.ts | TypeScript | www.github.com/RivysonClaudio/VanessaStudio/tree/main/src/app/components/workers/worker-panel/worker-panel.component.ts | https://raw.githubusercontent.com/RivysonClaudio/VanessaStudio/63fab84/src/app/components/workers/worker-panel/worker-panel.component.ts | RivysonClaudio/VanessaStudio 63fab84 src/app/components/workers/worker-panel/worker-panel.component.ts | true | 200 | 8,444 | import { Component, ElementRef, ViewChild } from '@angular/core';
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from '../../../app.component';
@Component({
selector: 'app-worker-panel',
imports: [FormsModule, ReactiveFormsModule],
templateUrl: ... | 2 |
Jean-Michel-David/Medifyer | e64ab0c | frontend/src/app/services/recup-password.service.ts | TypeScript | www.github.com/Jean-Michel-David/Medifyer/tree/main/frontend/src/app/services/recup-password.service.ts | https://raw.githubusercontent.com/Jean-Michel-David/Medifyer/e64ab0c/frontend/src/app/services/recup-password.service.ts | Jean-Michel-David/Medifyer e64ab0c frontend/src/app/services/recup-password.service.ts | true | 200 | 764 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import { User } from '../userInscription';
@Injectable({
providedIn: 'root'
})
export class RecupPasswordService {
static us... | 6 |
nguyenson66/aad-api | 755597d | src/modules/auth/strategies/refresh-token.strategy.ts | TypeScript | www.github.com/nguyenson66/aad-api/tree/main/src/modules/auth/strategies/refresh-token.strategy.ts | https://raw.githubusercontent.com/nguyenson66/aad-api/755597d/src/modules/auth/strategies/refresh-token.strategy.ts | nguyenson66/aad-api 755597d src/modules/auth/strategies/refresh-token.strategy.ts | true | 200 | 659 | import { Strategy, ExtractJwt } from 'passport-jwt';
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { jwtConfig } from '../../../configs/configs.constants';
import { IJwtRefreshToken } from '../interface/jwt.interface';
@Injectable()
export class JwtStrategy ex... | 3 |
hawrisson350/onic-a | f0433fe | ui/src/lib/file-input/file-input.component.ts | TypeScript | www.github.com/hawrisson350/onic-a/tree/main/ui/src/lib/file-input/file-input.component.ts | https://raw.githubusercontent.com/hawrisson350/onic-a/f0433fe/ui/src/lib/file-input/file-input.component.ts | hawrisson350/onic-a f0433fe ui/src/lib/file-input/file-input.component.ts | true | 200 | 7,774 | import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, OnInit, OnChanges} from '@angular/core';
import axios from 'axios';
import { HttpHeaders} from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
interface FeaturesFile {
... | 4 |
popperro-001/threads | db5d7d7 | lib/validations/thread.ts | TypeScript | www.github.com/popperro-001/threads/tree/main/lib/validations/thread.ts | https://raw.githubusercontent.com/popperro-001/threads/db5d7d7/lib/validations/thread.ts | popperro-001/threads db5d7d7 lib/validations/thread.ts | true | 200 | 302 | import * as z from "zod";
export const ThreadValidation = z.object({
thread: z.string().min(3, { message: "Minimum 3 characters" }).nonempty(),
accountId: z.string(),
});
export const CommentValidation = z.object({
thread: z.string().min(3, { message: "Minimum 3 characters" }).nonempty(),
});
| 1 |
nhuanh9/c0222-angular | 5bf3b9e | src/app/app-routing.module.ts | TypeScript | www.github.com/nhuanh9/c0222-angular/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/nhuanh9/c0222-angular/5bf3b9e/src/app/app-routing.module.ts | nhuanh9/c0222-angular 5bf3b9e src/app/app-routing.module.ts | true | 200 | 1,120 | import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {LoginComponent} from "./login/login.component";
import {AdminComponent} from "./admin/admin.component";
import {HomeComponent} from "./home/home/home.component";
import {ListProductComponent} from "./home/list-product/... | 0 |
KlemanDavid/doga05 | a0bf7a0 | src/app/app.config.ts | TypeScript | www.github.com/KlemanDavid/doga05/tree/main/src/app/app.config.ts | https://raw.githubusercontent.com/KlemanDavid/doga05/a0bf7a0/src/app/app.config.ts | KlemanDavid/doga05 a0bf7a0 src/app/app.config.ts | true | 200 | 586 | /*
*File: app.config.ts
*Author: Klemán Dávid
*Copyright: 2025, Klemán Dávid
*Group: 2/II/E
*Date: 2035-03-02
*Github: https://github.com/KlemanDavid/doga05
*Licenc: MIT
*/
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideH... | 7 |
Likeur/ng-ui-dev | 5ef2852 | src/app/components/home-code/home-code.component.ts | TypeScript | www.github.com/Likeur/ng-ui-dev/tree/main/src/app/components/home-code/home-code.component.ts | https://raw.githubusercontent.com/Likeur/ng-ui-dev/5ef2852/src/app/components/home-code/home-code.component.ts | Likeur/ng-ui-dev 5ef2852 src/app/components/home-code/home-code.component.ts | true | 200 | 2,252 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HighlightJsDirective } from 'ngx-highlight-js';
@Component({
selector: 'app-home-code',
standalone: true,
imports: [CommonModule, HighlightJsDirective],
templateUrl: './home-code.component.html',
})
export clas... | 5 |
hrishabhpatel09/nextJS | e852041 | src/lib/dbConnect.ts | TypeScript | www.github.com/hrishabhpatel09/nextJS/tree/main/src/lib/dbConnect.ts | https://raw.githubusercontent.com/hrishabhpatel09/nextJS/e852041/src/lib/dbConnect.ts | hrishabhpatel09/nextJS e852041 src/lib/dbConnect.ts | true | 200 | 582 | import mongoose from "mongoose";
import { any } from "zod";
type ConnectionObject = {
isConnected?: number;
};
const connection: ConnectionObject = {};
const dbConnect = async (): Promise<void> => {
if (connection.isConnected) {
console.log("Already Connected to database");
return;
}
try {
const ... | 2 |
thoraf20/api-user | be82972 | src/user/user.controller.ts | TypeScript | www.github.com/thoraf20/api-user/tree/main/src/user/user.controller.ts | https://raw.githubusercontent.com/thoraf20/api-user/be82972/src/user/user.controller.ts | thoraf20/api-user be82972 src/user/user.controller.ts | true | 200 | 1,703 | import * as express from "express";
import Controller from "../interfaces/controller.interface";
import validationMiddleware from "../middlewares/validation.middleware";
import {CreateUserDto, ResetUserKeyDto} from "../user/user.dto";
import UserService from "./user.service";
import { ResponseCode } from "../utils/resp... | 6 |
techamit95ch/we-fo-you | 920daa1 | src/hooks/useSocialLogin.ts | TypeScript | www.github.com/techamit95ch/we-fo-you/tree/main/src/hooks/useSocialLogin.ts | https://raw.githubusercontent.com/techamit95ch/we-fo-you/920daa1/src/hooks/useSocialLogin.ts | techamit95ch/we-fo-you 920daa1 src/hooks/useSocialLogin.ts | true | 200 | 3,744 | import { useCallback, useEffect, useState } from 'react';
import { Platform } from 'react-native';
import { GoogleSignin } from '@react-native-google-signin/google-signin';
import * as AppleAuthentication from 'expo-apple-authentication';
import * as Application from 'expo-application';
import { ResponseType } from 'ex... | 3 |
AssiaAbdennour/Digital_Banking_Angular_Frontend | 5769728 | src/app/accounts/accounts.component.ts | TypeScript | www.github.com/AssiaAbdennour/Digital_Banking_Angular_Frontend/tree/main/src/app/accounts/accounts.component.ts | https://raw.githubusercontent.com/AssiaAbdennour/Digital_Banking_Angular_Frontend/5769728/src/app/accounts/accounts.component.ts | AssiaAbdennour/Digital_Banking_Angular_Frontend 5769728 src/app/accounts/accounts.component.ts | true | 200 | 2,979 | import { Component, OnInit } from '@angular/core';
import {FormBuilder, FormGroup} from "@angular/forms";
import {AccountsService} from "../services/accounts.service";
import {AccountDetails} from "../model/account.model";
import {catchError, Observable, throwError} from "rxjs";
@Component({
selector: 'app-accounts'... | 7 |
adnan-sheikh/react-weather-dashboard | d221c7f | src/features/dashboard/api/useWeatherForecast.ts | TypeScript | www.github.com/adnan-sheikh/react-weather-dashboard/tree/main/src/features/dashboard/api/useWeatherForecast.ts | https://raw.githubusercontent.com/adnan-sheikh/react-weather-dashboard/d221c7f/src/features/dashboard/api/useWeatherForecast.ts | adnan-sheikh/react-weather-dashboard d221c7f src/features/dashboard/api/useWeatherForecast.ts | true | 200 | 638 | import { config } from "@/config";
import { formatCityLocation } from "@/utils";
import { useQuery } from "@tanstack/react-query";
import axios from "axios";
type Params = {
lat: number;
lon: number;
};
const fetchWeatherForecast = async ({ lat, lon }: Params) => {
const response = await axios.get(
`${config... | 1 |
sumedhTirodkar1508/scanAndSave | 69eb5aa | src/app/api/admin/qr/get-pending-qr-requests/route.ts | TypeScript | www.github.com/sumedhTirodkar1508/scanAndSave/tree/main/src/app/api/admin/qr/get-pending-qr-requests/route.ts | https://raw.githubusercontent.com/sumedhTirodkar1508/scanAndSave/69eb5aa/src/app/api/admin/qr/get-pending-qr-requests/route.ts | sumedhTirodkar1508/scanAndSave 69eb5aa src/app/api/admin/qr/get-pending-qr-requests/route.ts | true | 200 | 1,096 | import { getServerSession } from "next-auth";
import { authOptions } from "@/app/api/auth/[...nextauth]/options";
import { NextRequest, NextResponse } from "next/server";
import prisma from "@/lib/prisma";
export const dynamic = "force-dynamic"; // Forces the route to be dynamic and prevents caching
export async func... | 0 |
doingandlearning/cli-crm | 7968af4 | src/tests/bookingOperations.test.ts | TypeScript | www.github.com/doingandlearning/cli-crm/tree/main/src/tests/bookingOperations.test.ts | https://raw.githubusercontent.com/doingandlearning/cli-crm/7968af4/src/tests/bookingOperations.test.ts | doingandlearning/cli-crm 7968af4 src/tests/bookingOperations.test.ts | true | 200 | 2,016 | import { describe, it, expect, beforeAll, afterAll } from "vitest";
import { PrismaClient } from "@prisma/client";
import { addBooking, listUnconfirmedBookings } from "../cli/bookingOperations";
const prisma = new PrismaClient();
describe("Booking Operations", () => {
beforeAll(async () => {
// Disable foreign ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.