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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
DGomez9803/sales-date-prediction | de85259 | Web/src/app/components/new-order/new-order.component.ts | TypeScript | www.github.com/DGomez9803/sales-date-prediction/tree/main/Web/src/app/components/new-order/new-order.component.ts | https://raw.githubusercontent.com/DGomez9803/sales-date-prediction/de85259/Web/src/app/components/new-order/new-order.component.ts | DGomez9803/sales-date-prediction de85259 Web/src/app/components/new-order/new-order.component.ts | true | 200 | 3,503 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
import { ServicesResources } from '../../services/servicesResources ';
import { SelectItem } from '../../models/common/selectItem.model';... | 0 |
Avvir/avvir-javascript-client | b3d6bc5 | source/models/api/api_construction_grid.ts | TypeScript | www.github.com/Avvir/avvir-javascript-client/tree/main/source/models/api/api_construction_grid.ts | https://raw.githubusercontent.com/Avvir/avvir-javascript-client/b3d6bc5/source/models/api/api_construction_grid.ts | Avvir/avvir-javascript-client b3d6bc5 source/models/api/api_construction_grid.ts | true | 200 | 636 | import { addReadOnlyPropertiesToModel } from "../../mixins";
import type ApiGridLine from "./api_grid_line";
export class ApiConstructionGrid {
constructor({ id, globalId, axisULines, axisVLines, firebaseFloorId }: Partial<ApiConstructionGrid>) {
addReadOnlyPropertiesToModel(this, { id, firebaseFloorId, globalI... | 3 |
Ihor-Zaiets/booking_university_project | 9049c4d | front-end/src/app/user-profile/user-profile.component.ts | TypeScript | www.github.com/Ihor-Zaiets/booking_university_project/tree/main/front-end/src/app/user-profile/user-profile.component.ts | https://raw.githubusercontent.com/Ihor-Zaiets/booking_university_project/9049c4d/front-end/src/app/user-profile/user-profile.component.ts | Ihor-Zaiets/booking_university_project 9049c4d front-end/src/app/user-profile/user-profile.component.ts | true | 200 | 1,188 | import { Component, OnInit } from '@angular/core'
import { User } from '../model/User'
import { ApartmentService } from '../apartment/apartment.service'
import { ApartmentForReservationService } from '../apartment-for-reservation/apartment-for-reservation.service'
import { UserService } from '../user/user.service'
impo... | 7 |
jrTilak/lazykit | 8708977 | src/www/src/registry/functions/objects/mapObj/index.test.ts | TypeScript | www.github.com/jrTilak/lazykit/tree/main/src/www/src/registry/functions/objects/mapObj/index.test.ts | https://raw.githubusercontent.com/jrTilak/lazykit/8708977/src/www/src/registry/functions/objects/mapObj/index.test.ts | jrTilak/lazykit 8708977 src/www/src/registry/functions/objects/mapObj/index.test.ts | true | 200 | 850 | import { describe, expect, it } from "vitest";
import mapObj from ".";
describe("mapObj", () => {
it("should map each value in the object using the callback function", () => {
const obj = { a: 1, b: 2, c: 3 };
const callback = (value: number) => value * 2;
const result = mapObj(obj, callback);
expe... | 4 |
av2o26/cst391milestone | 3f08a5b | src/services/mysql.connector.ts | TypeScript | www.github.com/av2o26/cst391milestone/tree/main/src/services/mysql.connector.ts | https://raw.githubusercontent.com/av2o26/cst391milestone/3f08a5b/src/services/mysql.connector.ts | av2o26/cst391milestone 3f08a5b src/services/mysql.connector.ts | true | 200 | 1,999 | import { createPool, Pool } from 'mysql';
let pool : Pool | null = null;
const initializeMySqlConnector = () => {
try
{
pool = createPool({
connectionLimit:
parseInt(process.env.MY_SQL_DB_CONNECTION_LIMIT != undefined ? process.env.MY_SQL_DB_CONNECTION_LIMIT : ""),
... | 5 |
muralibho/my-app | bbd7566 | src/app/bank/bank.component.ts | TypeScript | www.github.com/muralibho/my-app/tree/main/src/app/bank/bank.component.ts | https://raw.githubusercontent.com/muralibho/my-app/bbd7566/src/app/bank/bank.component.ts | muralibho/my-app bbd7566 src/app/bank/bank.component.ts | true | 200 | 2,357 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { BankService } from '../bank.service';
@Component({
selector: 'app-bank',
templateUrl: './bank.component.html',
styleUrls: ['./bank.component.css']
})
export class BankComponent implements OnInit
{
... | 1 |
igordamicost/teste-cadastro-meraking | 6f1247e | src/app/app.component.ts | TypeScript | www.github.com/igordamicost/teste-cadastro-meraking/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/igordamicost/teste-cadastro-meraking/6f1247e/src/app/app.component.ts | igordamicost/teste-cadastro-meraking 6f1247e src/app/app.component.ts | true | 200 | 521 | import { Component, OnInit } from '@angular/core';
import { load } from './shared/load-component/load-component';
import { Router } from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit{
... | 2 |
oscarsaraza/csj | 5c438a4 | src/routes/(public)/login/+page.server.ts | TypeScript | www.github.com/oscarsaraza/csj/tree/main/src/routes/(public)/login/+page.server.ts | https://raw.githubusercontent.com/oscarsaraza/csj/5c438a4/src/routes/%28public%29/login/%2Bpage.server.ts | oscarsaraza/csj 5c438a4 src/routes/(public)/login/+page.server.ts | true | 200 | 2,924 | import { db } from '$lib/server/db-client';
import { lucia } from '$lib/server/auth';
import { sendEmail } from '$lib/server/email.js';
import { hash, verify } from '@node-rs/argon2';
import { fail, redirect } from '@sveltejs/kit';
import dayjs from 'dayjs';
import { ObjectId } from 'mongodb';
// recommended minimum p... | 0 |
danielribas1105/cod3r-gamer-store | 7c9c08e | apps/backend/src/pedido/pedido.controller.ts | TypeScript | www.github.com/danielribas1105/cod3r-gamer-store/tree/main/apps/backend/src/pedido/pedido.controller.ts | https://raw.githubusercontent.com/danielribas1105/cod3r-gamer-store/7c9c08e/apps/backend/src/pedido/pedido.controller.ts | danielribas1105/cod3r-gamer-store 7c9c08e apps/backend/src/pedido/pedido.controller.ts | true | 200 | 675 | import { Body, Controller, Delete, Get, Param, Post } from '@nestjs/common';
import { PedidoPrisma } from './pedido.prisma';
import { Pedido } from '@gstore/core';
@Controller('pedidos')
export class PedidoController {
constructor(private readonly repo: PedidoPrisma) { }
@Post()
async salvar(@Body() pedido: ... | 3 |
kelvinward1010/Dasuka_CO | db41b0e | src/module/quan-ly-ho-so-co/views/them-moi-ho-so-co/tables/fakedata.ts | TypeScript | www.github.com/kelvinward1010/Dasuka_CO/tree/main/src/module/quan-ly-ho-so-co/views/them-moi-ho-so-co/tables/fakedata.ts | https://raw.githubusercontent.com/kelvinward1010/Dasuka_CO/db41b0e/src/module/quan-ly-ho-so-co/views/them-moi-ho-so-co/tables/fakedata.ts | kelvinward1010/Dasuka_CO db41b0e src/module/quan-ly-ho-so-co/views/them-moi-ho-so-co/tables/fakedata.ts | true | 200 | 3,366 | export const chitiethosodata = [
{
key: "1",
stk: 305156790430,
productInfomation: "73269099 - Cube-to-cube connection",
quantity: 25,
sl_done_co: "",
sl_no_co: 0,
unit: "SET",
value_usd: 6478.25,
dm: "",
tieu_chi: "",
result: "",
},
{
key: "2",
stk: 30515679042... | 6 |
mishimastar/ryabtestbot | 400008f | src/strbuilder.ts | TypeScript | www.github.com/mishimastar/ryabtestbot/tree/main/src/strbuilder.ts | https://raw.githubusercontent.com/mishimastar/ryabtestbot/400008f/src/strbuilder.ts | mishimastar/ryabtestbot 400008f src/strbuilder.ts | true | 200 | 6,371 | import { Banks, Crypto } from './banks';
import { GetBIN } from './bin';
import { LastData } from './main';
export const ParseNum = (inp: string): number | undefined => {
try {
const out = Number(inp);
return out ? out : undefined;
} catch (error) {
console.log(error);
return un... | 7 |
Valvillavel/valvillavel.github.io | ddb29cf | newwebui/src/app/app.module.ts | TypeScript | www.github.com/Valvillavel/valvillavel.github.io/tree/main/newwebui/src/app/app.module.ts | https://raw.githubusercontent.com/Valvillavel/valvillavel.github.io/ddb29cf/newwebui/src/app/app.module.ts | Valvillavel/valvillavel.github.io ddb29cf newwebui/src/app/app.module.ts | true | 200 | 2,809 | import { NgModule, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { AppC... | 4 |
Turnip1202/Trunip-Vue3 | bac7f90 | src/router/index.ts | TypeScript | www.github.com/Turnip1202/Trunip-Vue3/tree/main/src/router/index.ts | https://raw.githubusercontent.com/Turnip1202/Trunip-Vue3/bac7f90/src/router/index.ts | Turnip1202/Trunip-Vue3 bac7f90 src/router/index.ts | true | 200 | 2,292 | import { createRouter, createWebHashHistory, } from "vue-router";
//路由类型
import type { RouteRecordRaw,RouteLocationNormalizedLoadedGeneric } from "vue-router";
//store
import { LSInstance} from "@/store/storage.config"
import {useUserStore} from "@/store/user"
const routes: RouteRecordRaw[] = [
{
path: "/",
redi... | 5 |
sherif927/ideas-api | eea3c62 | src/shared/logger/logging.interceptor.ts | TypeScript | www.github.com/sherif927/ideas-api/tree/main/src/shared/logger/logging.interceptor.ts | https://raw.githubusercontent.com/sherif927/ideas-api/eea3c62/src/shared/logger/logging.interceptor.ts | sherif927/ideas-api eea3c62 src/shared/logger/logging.interceptor.ts | true | 200 | 900 | import { Injectable, NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { Logger } from '@nestjs/common';
/**
* interceptor class implemented
* as a logging service.
*
* @export
* @class LoggingInterceptor
* @imp... | 0 |
abhishekw1/angular-cloud-powered-firebase-dashboard | aa9f67e | src/app/core/auth.service.ts | TypeScript | www.github.com/abhishekw1/angular-cloud-powered-firebase-dashboard/tree/main/src/app/core/auth.service.ts | https://raw.githubusercontent.com/abhishekw1/angular-cloud-powered-firebase-dashboard/aa9f67e/src/app/core/auth.service.ts | abhishekw1/angular-cloud-powered-firebase-dashboard aa9f67e src/app/core/auth.service.ts | true | 200 | 3,684 | import { Injectable } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import {
AngularFirestore,
AngularFirestoreDocument,
} from '@angular/fire/compat/firestore';
import { Router } from '@angular/router';
@Injectable({
providedIn: 'root',
})
export class AuthService {
userDa... | 3 |
yogi-prasetio/backend-realta | f898c4d | src/purchasing/vendor-product/vendor-product.service.ts | TypeScript | www.github.com/yogi-prasetio/backend-realta/tree/main/src/purchasing/vendor-product/vendor-product.service.ts | https://raw.githubusercontent.com/yogi-prasetio/backend-realta/f898c4d/src/purchasing/vendor-product/vendor-product.service.ts | yogi-prasetio/backend-realta f898c4d src/purchasing/vendor-product/vendor-product.service.ts | true | 200 | 2,686 | import { Injectable } from '@nestjs/common';
import { VendorProduct } from 'output/entities/VendorProduct';
import { InjectRepository } from '@nestjs/typeorm';
import { FindManyOptions, ILike, Repository } from 'typeorm';
import {
CreateVendorProductDto,
PaginationOptions,
UpdateVendorProductDto,
filterVendorPr... | 6 |
cokuarnels64/tournament-backend | ee12c6b | platform/src/game/entities/mappers/game-session.mapper.ts | TypeScript | www.github.com/cokuarnels64/tournament-backend/tree/main/platform/src/game/entities/mappers/game-session.mapper.ts | https://raw.githubusercontent.com/cokuarnels64/tournament-backend/ee12c6b/platform/src/game/entities/mappers/game-session.mapper.ts | cokuarnels64/tournament-backend ee12c6b platform/src/game/entities/mappers/game-session.mapper.ts | true | 200 | 1,363 | import { Singleton } from '../../../core/ioc';
import { GameSession } from '../../game-session';
import { GameSessionEntity } from '../game-session.entity';
import { NewGameSession } from '../../new-game-session';
@Singleton
export class GameSessionEntityMapper {
public newSessionToEntity(source: NewGameSession): ... | 4 |
FabzDev/nest-fh | de59c97 | 02-car-dealership/src/seed/seed.service.ts | TypeScript | www.github.com/FabzDev/nest-fh/tree/main/02-car-dealership/src/seed/seed.service.ts | https://raw.githubusercontent.com/FabzDev/nest-fh/de59c97/02-car-dealership/src/seed/seed.service.ts | FabzDev/nest-fh de59c97 02-car-dealership/src/seed/seed.service.ts | true | 200 | 541 | import { Injectable } from '@nestjs/common';
import { BrandsService } from 'src/brands/brands.service';
import { CarsService } from 'src/cars/cars.service';
import { BRANDS_SEED } from './data/brands.seed';
import { CARS_SEED } from './data/cars.seed';
@Injectable()
export class SeedService {
constructor (public c... | 7 |
AnteroGC/TFG_2.0 | 199afc0 | api/src/post/dto/create-post.dto.ts | TypeScript | www.github.com/AnteroGC/TFG_2.0/tree/main/api/src/post/dto/create-post.dto.ts | https://raw.githubusercontent.com/AnteroGC/TFG_2.0/199afc0/api/src/post/dto/create-post.dto.ts | AnteroGC/TFG_2.0 199afc0 api/src/post/dto/create-post.dto.ts | true | 200 | 522 | import { IsNotEmpty, IsOptional, IsString } from "class-validator";
import { User } from "src/auth/entities/user.entity";
import { Category } from "src/category/entities/category.entity";
export class CreatePostDto {
@IsNotEmpty()
@IsString()
tittle: string;
@IsNotEmpty()
@IsString()
content: ... | 1 |
qialex/js-full-stack | c1872e2 | monorepo/apps/client/src/services/fetch-wrapper.function.ts | TypeScript | www.github.com/qialex/js-full-stack/tree/main/monorepo/apps/client/src/services/fetch-wrapper.function.ts | https://raw.githubusercontent.com/qialex/js-full-stack/c1872e2/monorepo/apps/client/src/services/fetch-wrapper.function.ts | qialex/js-full-stack c1872e2 monorepo/apps/client/src/services/fetch-wrapper.function.ts | true | 200 | 1,652 | import { AuthUserDto, AuthDto, AuthUserReqDto, TokenDto } from '@monorepo/lib-common'
export { useFetchWrapper }
export const defautltApiUrl = 'http://localhost:3001'
const ENDPOINTS = {
SIGN_UP : '/auth/sign-up',
SIGN_IN : '/auth/sign-in',
TOKEN : '/auth/token',
LOGOUT : '/auth/logout',
}
function useFe... | 2 |
GVISHO/Angular_Project | 01e5069 | src/app/shared/services/profile.service.ts | TypeScript | www.github.com/GVISHO/Angular_Project/tree/main/src/app/shared/services/profile.service.ts | https://raw.githubusercontent.com/GVISHO/Angular_Project/01e5069/src/app/shared/services/profile.service.ts | GVISHO/Angular_Project 01e5069 src/app/shared/services/profile.service.ts | true | 200 | 879 | import { HttpClient } from '@angular/common/http';
import { Injectable, inject } from '@angular/core';
import { Router } from '@angular/router';
import { JwtHelperService } from '@auth0/angular-jwt';
import { AlertService } from './alert.service';
import { SignUpUser, User, UserChangePassword } from '../interfaces';
im... | 5 |
FuzzyFade/react-native-turbo-networksdk | ebfaf1e | src/NativeTurboNetworksdk.ts | TypeScript | www.github.com/FuzzyFade/react-native-turbo-networksdk/tree/main/src/NativeTurboNetworksdk.ts | https://raw.githubusercontent.com/FuzzyFade/react-native-turbo-networksdk/ebfaf1e/src/NativeTurboNetworksdk.ts | FuzzyFade/react-native-turbo-networksdk ebfaf1e src/NativeTurboNetworksdk.ts | true | 200 | 348 | import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
updateConfig(
enableHTTPCache: boolean,
quicPreHintHost?: string[],
blackList?: string[]
): Promise<number>;
}
export default TurboModuleRegistry.getEnforcin... | 0 |
Nurhalizahkaamil/elysia_inventory | 7f5848d | src/repositories/categories.ts | TypeScript | www.github.com/Nurhalizahkaamil/elysia_inventory/tree/main/src/repositories/categories.ts | https://raw.githubusercontent.com/Nurhalizahkaamil/elysia_inventory/7f5848d/src/repositories/categories.ts | Nurhalizahkaamil/elysia_inventory 7f5848d src/repositories/categories.ts | true | 200 | 1,565 | import db from "../database/db";
import type { AddCategoryDto, UpdateCategoryDto } from "../dtos/category";
async function getCategories() {
return await db.category.findMany({
select: {
id: true,
name: true,
description: true,
status: true,
creat... | 3 |
Lhukas/FINAL-NESTJS-NELHOMME-LHUKAS | 8c59dcb | src/task/task.service.ts | TypeScript | www.github.com/Lhukas/FINAL-NESTJS-NELHOMME-LHUKAS/tree/main/src/task/task.service.ts | https://raw.githubusercontent.com/Lhukas/FINAL-NESTJS-NELHOMME-LHUKAS/8c59dcb/src/task/task.service.ts | Lhukas/FINAL-NESTJS-NELHOMME-LHUKAS 8c59dcb src/task/task.service.ts | true | 200 | 1,169 | import { Injectable, NotImplementedException } from '@nestjs/common';
import { PrismaService } from '../infrastructure/database/prisma.service';
import { Prisma, Task } from '@prisma/client';
@Injectable()
export class TaskService {
constructor(private prisma:PrismaService) {}
async addTask(name: string, user... | 4 |
ginesbal/studyMate_app | 1acdf05 | src/utils/groupTasksByDate.ts | TypeScript | www.github.com/ginesbal/studyMate_app/tree/main/src/utils/groupTasksByDate.ts | https://raw.githubusercontent.com/ginesbal/studyMate_app/1acdf05/src/utils/groupTasksByDate.ts | ginesbal/studyMate_app 1acdf05 src/utils/groupTasksByDate.ts | true | 200 | 398 | // src/utils/groupTasksByDate.ts
import { Task } from '../types';
export const groupTasksByDate = (tasks: Task[]): { [date: string]: Task[] } => {
return tasks.reduce((acc, task) => {
const date = task.dueDate.split('T')[0];
if (!acc[date]) {
acc[date] = [];
}
acc[date]... | 6 |
muhfarkhans/eventuy | 692e8cb | src/auth-admin/strategy/jwt.strategy.ts | TypeScript | www.github.com/muhfarkhans/eventuy/tree/main/src/auth-admin/strategy/jwt.strategy.ts | https://raw.githubusercontent.com/muhfarkhans/eventuy/692e8cb/src/auth-admin/strategy/jwt.strategy.ts | muhfarkhans/eventuy 692e8cb src/auth-admin/strategy/jwt.strategy.ts | true | 200 | 853 | import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PrismaService } from 'src/prisma/prisma.service';
@Injectable()
export class JwtStrategy extends PassportStrate... | 7 |
edvarderos/poke-app | a156ca8 | poke-api/src/controllers/auth.controller.ts | TypeScript | www.github.com/edvarderos/poke-app/tree/main/poke-api/src/controllers/auth.controller.ts | https://raw.githubusercontent.com/edvarderos/poke-app/a156ca8/poke-api/src/controllers/auth.controller.ts | edvarderos/poke-app a156ca8 poke-api/src/controllers/auth.controller.ts | true | 200 | 1,934 | import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
import { Request, Response } from 'express';
import prisma from '../lib/prisma';
export const register = async (req: Request, res: Response): Promise<void> => {
const { username, email, password } = req.body;
try {
const hashedPassword = awai... | 2 |
ciN-6/gm-tool-spa | 79dac26 | src/app/services/srb-model/models/spell/types.d.ts | TypeScript | www.github.com/ciN-6/gm-tool-spa/tree/main/src/app/services/srb-model/models/spell/types.d.ts | https://raw.githubusercontent.com/ciN-6/gm-tool-spa/79dac26/src/app/services/srb-model/models/spell/types.d.ts | ciN-6/gm-tool-spa 79dac26 src/app/services/srb-model/models/spell/types.d.ts | true | 200 | 915 | import * as mongoose from 'mongoose';
import { APIReference, AreaOfEffect } from '../common/types';
interface Damage {
_id?: boolean;
damage_at_slot_level?: Record<number, string>;
damage_at_character_level?: Record<number, string>;
damage_type?: APIReference;
}
interface DC {
_id?: boolean;
dc_success: s... | 1 |
renish47/whatsapp_clone | 98712f5 | client/scrap/checkForNewUser.ts | TypeScript | www.github.com/renish47/whatsapp_clone/tree/main/client/scrap/checkForNewUser.ts | https://raw.githubusercontent.com/renish47/whatsapp_clone/98712f5/client/scrap/checkForNewUser.ts | renish47/whatsapp_clone 98712f5 client/scrap/checkForNewUser.ts | true | 200 | 491 | import { CHECK_USER_ROUTE } from "@/utils/apiRoutes";
import axios, { AxiosError } from "axios";
export const chechForNewUser = async (email: string) => {
try {
if (email) {
const { data } = await axios.post(`${CHECK_USER_ROUTE}`, {
email: email,
});
if (data.status) return "/";
... | 5 |
hmy751/inter-persona | 40e7a00 | apps/frontend/src/_tests/_mocks/recorder.ts | TypeScript | www.github.com/hmy751/inter-persona/tree/main/apps/frontend/src/_tests/_mocks/recorder.ts | https://raw.githubusercontent.com/hmy751/inter-persona/40e7a00/apps/frontend/src/_tests/_mocks/recorder.ts | hmy751/inter-persona 40e7a00 apps/frontend/src/_tests/_mocks/recorder.ts | true | 200 | 857 | interface RecorderMockType extends jest.Mock {
mockRecorderInit: jest.Mock;
mockRecorderStart: jest.Mock;
mockRecorderStop: jest.Mock;
}
const mockRecorderInit = jest.fn().mockResolvedValue(undefined);
const mockRecorderStart = jest.fn().mockResolvedValue(undefined);
const mockRecorderStop = jest.fn().mockResolv... | 6 |
QqqIAs/NetEase-Cloud-Music | 0f36cef | src/hooks/useMountedState.ts | TypeScript | www.github.com/QqqIAs/NetEase-Cloud-Music/tree/main/src/hooks/useMountedState.ts | https://raw.githubusercontent.com/QqqIAs/NetEase-Cloud-Music/0f36cef/src/hooks/useMountedState.ts | QqqIAs/NetEase-Cloud-Music 0f36cef src/hooks/useMountedState.ts | true | 200 | 388 | // 判断组件是否挂载
import { useCallback, useEffect, useRef } from "react";
function useMountedState(): () => boolean {
const mountRef = useRef<boolean>(false);
const get = useCallback(() => mountRef.current, [])
useEffect(() => {
mountRef.current = true
return () => {
mountRef.current = false
}
... | 0 |
cory-evans/location-tracker | 2b5a18b | ui/src/app/devices/devices.component.ts | TypeScript | www.github.com/cory-evans/location-tracker/tree/main/ui/src/app/devices/devices.component.ts | https://raw.githubusercontent.com/cory-evans/location-tracker/2b5a18b/ui/src/app/devices/devices.component.ts | cory-evans/location-tracker 2b5a18b ui/src/app/devices/devices.component.ts | true | 200 | 517 | import { Component, OnInit } from '@angular/core';
import { MenuItems } from '../shared/components/sidebar/sidebar.component';
@Component({
selector: 'app-devices',
templateUrl: './devices.component.html',
host: {
class: 'flex-1 flex flex-col',
},
})
export class DevicesComponent implements OnInit {
menu... | 4 |
2811267153/react-travel | bb4fdaf | src/store/recommendProduct/recommmendProducrAction.ts | TypeScript | www.github.com/2811267153/react-travel/tree/main/src/store/recommendProduct/recommmendProducrAction.ts | https://raw.githubusercontent.com/2811267153/react-travel/bb4fdaf/src/store/recommendProduct/recommmendProducrAction.ts | 2811267153/react-travel bb4fdaf src/store/recommendProduct/recommmendProducrAction.ts | true | 200 | 2,189 | import {ThunkAction} from "redux-thunk";
import {RootState} from "../store";
import axios from "axios";
export const FETCH_RECOMMEND_PRODUCT_START = "FETCH_RECOMMEND_PRODUCT_START" //正在调用的api
export const FETCH_RECOMMEND_PRODUCT_SUCCES = "FETCH_RECOMMEND_PRODUCT_SUCCES" //接口调用成功
export const FETCH_RECOMMEND_PRODUCT_F... | 7 |
TriggerMeNot/app | f725b6c | backend/app/interfaces/github.ts | TypeScript | www.github.com/TriggerMeNot/app/tree/main/backend/app/interfaces/github.ts | https://raw.githubusercontent.com/TriggerMeNot/app/f725b6c/backend/app/interfaces/github.ts | TriggerMeNot/app f725b6c backend/app/interfaces/github.ts | true | 200 | 380 | import z from "zod";
import "zod-openapi/extend";
export default {
Authenticate: {
Body: z.object({
code: z.string(),
}),
},
Authorize: {
Body: z.object({
code: z.string(),
}),
},
};
const GithubIssueSettings = z.object({
owner: z.string(),
repo: z.string(),
title: z.string(... | 2 |
maverickf0/Directus-Medusa-Sync | 17e7265 | express-server/node_modules/@medusajs/types/dist/tax/common.d.ts | TypeScript | www.github.com/maverickf0/Directus-Medusa-Sync/tree/main/express-server/node_modules/@medusajs/types/dist/tax/common.d.ts | https://raw.githubusercontent.com/maverickf0/Directus-Medusa-Sync/17e7265/express-server/node_modules/%40medusajs/types/dist/tax/common.d.ts | maverickf0/Directus-Medusa-Sync 17e7265 express-server/node_modules/@medusajs/types/dist/tax/common.d.ts | true | 200 | 10,994 | import { BaseFilterable } from "../dal";
import { OperatorMap } from "../dal/utils";
import { BigNumberInput } from "../totals";
/**
* The tax rate details.
*/
export interface TaxRateDTO {
/**
* The ID of the tax rate.
*/
id: string;
/**
* The rate to charge.
* @example
* 10
... | 1 |
31-moviles-ago22/PIA-1677599 | 60855db | src/app/productos/productos.page.ts | TypeScript | www.github.com/31-moviles-ago22/PIA-1677599/tree/main/src/app/productos/productos.page.ts | https://raw.githubusercontent.com/31-moviles-ago22/PIA-1677599/60855db/src/app/productos/productos.page.ts | 31-moviles-ago22/PIA-1677599 60855db src/app/productos/productos.page.ts | true | 200 | 947 | import { Component, Input, OnInit } from '@angular/core';
import { Productos } from '../models';
import { CarritoService } from '../services/carrito.service';
import { FirestoreService } from '../services/firestore.service';
@Component({
selector: 'app-productos',
templateUrl: './productos.page.html',
styleUrls:... | 3 |
Lauraaact/eCommerce_Project | be723bf | frontend/src/app/pages/productos/productos.component.ts | TypeScript | www.github.com/Lauraaact/eCommerce_Project/tree/main/frontend/src/app/pages/productos/productos.component.ts | https://raw.githubusercontent.com/Lauraaact/eCommerce_Project/be723bf/frontend/src/app/pages/productos/productos.component.ts | Lauraaact/eCommerce_Project be723bf frontend/src/app/pages/productos/productos.component.ts | true | 200 | 1,870 | import { Component, inject } from '@angular/core';
import { ProductsService } from '../../services/products.service'; //Productos
import { CommonModule } from '@angular/common'; //Condicionales
import { NavegacionComponent } from '../../components/navegacion/navegacion.component'; //Menú nav.
import { FooterComponent }... | 5 |
ELMAALMI/MASTER-GLCL-PFE-2023-FRONT-END | 3ece780 | src/store/app/application/application-slice.ts | TypeScript | www.github.com/ELMAALMI/MASTER-GLCL-PFE-2023-FRONT-END/tree/main/src/store/app/application/application-slice.ts | https://raw.githubusercontent.com/ELMAALMI/MASTER-GLCL-PFE-2023-FRONT-END/3ece780/src/store/app/application/application-slice.ts | ELMAALMI/MASTER-GLCL-PFE-2023-FRONT-END 3ece780 src/store/app/application/application-slice.ts | true | 200 | 1,195 | import Application from '@/types/Application;';
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
export interface ApplicationState {
applications: Application[];
}
const ini_state: ApplicationState = {
applications: []
};
const ApplicationSlice = createSlice({
name: 'ApplicationSlice/slice'... | 4 |
eduart1989/VOne | be22956 | src/routers/__tests__/tenantsRouters.spec.ts | TypeScript | www.github.com/eduart1989/VOne/tree/main/src/routers/__tests__/tenantsRouters.spec.ts | https://raw.githubusercontent.com/eduart1989/VOne/be22956/src/routers/__tests__/tenantsRouters.spec.ts | eduart1989/VOne be22956 src/routers/__tests__/tenantsRouters.spec.ts | true | 200 | 1,168 | import request from 'supertest';
import { app } from '../../index';
// Mocking CRUD operations
jest.mock('../../operations/crud', () => ({
createRecord: jest.fn(),
findRecords: jest.fn().mockResolvedValue([]),
}));
describe('Tenants API', () => {
describe('GET /tenant', () => {
it('should return all tenants... | 6 |
Garment-WMS/garment-wms-be | ae79d65 | src/modules/import-request/dto/import-request/manager-process.dto.ts | TypeScript | www.github.com/Garment-WMS/garment-wms-be/tree/main/src/modules/import-request/dto/import-request/manager-process.dto.ts | https://raw.githubusercontent.com/Garment-WMS/garment-wms-be/ae79d65/src/modules/import-request/dto/import-request/manager-process.dto.ts | Garment-WMS/garment-wms-be ae79d65 src/modules/import-request/dto/import-request/manager-process.dto.ts | true | 200 | 2,006 | import { ApiProperty } from '@nestjs/swagger';
import { RoleCode } from '@prisma/client';
import {
IsDateString,
IsEnum,
IsNotEmpty,
IsOptional,
IsString,
IsUUID,
ValidateIf,
} from 'class-validator';
import { IsUserRoleExist } from 'src/modules/user/validator/is-user-of-role-exist.validator';
export enu... | 7 |
hpeuscher/loopinsight1 | 9a60920 | src/frontend/util/Colors.ts | TypeScript | www.github.com/hpeuscher/loopinsight1/tree/main/src/frontend/util/Colors.ts | https://raw.githubusercontent.com/hpeuscher/loopinsight1/9a60920/src/frontend/util/Colors.ts | hpeuscher/loopinsight1 9a60920 src/frontend/util/Colors.ts | true | 200 | 404 | /**
* This file is part of LoopInsighT1, an open source tool to
* simulate closed-loop glycemic control in type 1 diabetes.
* Distributed under the MIT software license.
* See https://lt1.org for further information.
*/
export default {
'THUDarkBlue': '#003160',
'THUBlue': '#0055A3',
'THURed': '#CA0928',
... | 0 |
hejuby/mini-frontend | 6a564e4 | src/redux/slices/searchSlice.ts | TypeScript | www.github.com/hejuby/mini-frontend/tree/main/src/redux/slices/searchSlice.ts | https://raw.githubusercontent.com/hejuby/mini-frontend/6a564e4/src/redux/slices/searchSlice.ts | hejuby/mini-frontend 6a564e4 src/redux/slices/searchSlice.ts | true | 200 | 1,826 | import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { City } from '../../schema/roomSchema.ts';
interface Coordinates {
top: number;
bottom: number;
left: number;
right: number;
}
export interface SearchState {
location: City | '';
checkInDate: string | null;
checkOutDate: string | nul... | 2 |
catDonutInsane/pryanicTest | e12202d | src/store/store.ts | TypeScript | www.github.com/catDonutInsane/pryanicTest/tree/main/src/store/store.ts | https://raw.githubusercontent.com/catDonutInsane/pryanicTest/e12202d/src/store/store.ts | catDonutInsane/pryanicTest e12202d src/store/store.ts | true | 200 | 295 | import {configureStore} from '@reduxjs/toolkit'
import reducer from './slices/reducer'
const store= configureStore({
reducer:{
red:reducer
},
})
export default store;
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch; | 1 |
sheinsight/shineout-next | 8d03e48 | packages/hooks/src/components/use-cascader/use-cascader.ts | TypeScript | www.github.com/sheinsight/shineout-next/tree/main/packages/hooks/src/components/use-cascader/use-cascader.ts | https://raw.githubusercontent.com/sheinsight/shineout-next/8d03e48/packages/hooks/src/components/use-cascader/use-cascader.ts | sheinsight/shineout-next 8d03e48 packages/hooks/src/components/use-cascader/use-cascader.ts | true | 200 | 955 | import { KeygenResult } from '../../common/type';
import { useInputAble } from '../../common/use-input-able';
import { BaseCascaderProps } from './use-cascader.type';
import useTree from '../use-tree';
const useCascader = <DataItem, Value extends KeygenResult[]>(
props: BaseCascaderProps<DataItem, Value>,
) => {
c... | 3 |
riverDeer12/b2b-frontend | b795777 | src/app/layout/public/core/resolvers/organizations/public-organization.resolver.ts | TypeScript | www.github.com/riverDeer12/b2b-frontend/tree/main/src/app/layout/public/core/resolvers/organizations/public-organization.resolver.ts | https://raw.githubusercontent.com/riverDeer12/b2b-frontend/b795777/src/app/layout/public/core/resolvers/organizations/public-organization.resolver.ts | riverDeer12/b2b-frontend b795777 src/app/layout/public/core/resolvers/organizations/public-organization.resolver.ts | true | 200 | 886 | import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot} from '@angular/router';
import {Observable} from 'rxjs';
import {PublicService} from "../../services/public.service";
import {Organization} from "../../../../../organizations/core/models/organization";
@Inje... | 5 |
MichaelShawUK/frontend-mentor | 366d098 | src/projects/intermediate/interactive-comments-section-main/src/app/commentsSlice.ts | TypeScript | www.github.com/MichaelShawUK/frontend-mentor/tree/main/src/projects/intermediate/interactive-comments-section-main/src/app/commentsSlice.ts | https://raw.githubusercontent.com/MichaelShawUK/frontend-mentor/366d098/src/projects/intermediate/interactive-comments-section-main/src/app/commentsSlice.ts | MichaelShawUK/frontend-mentor 366d098 src/projects/intermediate/interactive-comments-section-main/src/app/commentsSlice.ts | true | 200 | 3,857 | import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import data from "../data.json";
import { revertPath } from "../util/transformPath";
import { RootState } from "./store";
import { CommentType, ReplyType, AddReplyPayload } from "../types/types";
interface CommentsState {
entities: CommentType[];
next... | 7 |
aura-nw/horoscope-v2 | c0cb4ba | src/services/api-gateways/evm_proxy.service.ts | TypeScript | www.github.com/aura-nw/horoscope-v2/tree/main/src/services/api-gateways/evm_proxy.service.ts | https://raw.githubusercontent.com/aura-nw/horoscope-v2/c0cb4ba/src/services/api-gateways/evm_proxy.service.ts | aura-nw/horoscope-v2 c0cb4ba src/services/api-gateways/evm_proxy.service.ts | true | 200 | 1,197 | import { Context, ServiceBroker } from 'moleculer';
import { Get, Service } from '@ourparentcenter/moleculer-decorators-extended';
import BaseService from '../../base/base.service';
import networks from '../../../network.json' assert { type: 'json' };
import { SERVICE } from '../evm/constant';
@Service({
name: 'evm-... | 4 |
eliteSchwein/mooncord | 3a8b21c | src/events/discord/interactions/commands/RestartCommand.ts | TypeScript | www.github.com/eliteSchwein/mooncord/tree/main/src/events/discord/interactions/commands/RestartCommand.ts | https://raw.githubusercontent.com/eliteSchwein/mooncord/3a8b21c/src/events/discord/interactions/commands/RestartCommand.ts | eliteSchwein/mooncord 3a8b21c src/events/discord/interactions/commands/RestartCommand.ts | true | 200 | 2,032 | import BaseCommand from "../abstracts/BaseCommand";
import {ChatInputCommandInteraction, User} from "discord.js";
export default class RestartCommand extends BaseCommand {
commandId = 'restart'
protected user: User
async handleCommand(interaction: ChatInputCommandInteraction) {
const service = int... | 6 |
gregorynepos/My_IRC | c4b755e | index.ts | TypeScript | www.github.com/gregorynepos/My_IRC/tree/main/index.ts | https://raw.githubusercontent.com/gregorynepos/My_IRC/c4b755e/index.ts | gregorynepos/My_IRC c4b755e index.ts | true | 200 | 4,989 | import express from 'express';
import http from 'http';
import bodyParser from 'body-parser';
import { Server } from 'socket.io';
import { createConnection, RowDataPacket } from 'mysql2';
import { db } from './db'
import expressSession, { SessionData } from 'express-session';
declare module 'express-session' {
inte... | 0 |
Isaeveg/Angular | b8728da | src/app/app.module.ts | TypeScript | www.github.com/Isaeveg/Angular/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Isaeveg/Angular/b8728da/src/app/app.module.ts | Isaeveg/Angular b8728da src/app/app.module.ts | true | 200 | 734 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderUserComponent } from './header-user/header-user.component';
import { HomeComponent } from './home/... | 2 |
devgmarques/connectfy | 0d546bd | connectify-web/src/http/get-profile.ts | TypeScript | www.github.com/devgmarques/connectfy/tree/main/connectify-web/src/http/get-profile.ts | https://raw.githubusercontent.com/devgmarques/connectfy/0d546bd/connectify-web/src/http/get-profile.ts | devgmarques/connectfy 0d546bd connectify-web/src/http/get-profile.ts | true | 200 | 403 | import { api } from '@/lib'
import { Follow, Post, User } from '@/@types'
type GetProfileRequest = {
nickname: string
}
type GetProfileResponse = {
user: User
posts: Post[]
follows: Follow
}
export async function getProfile({
nickname,
}: GetProfileRequest): Promise<GetProfileResponse> {
const profile = ... | 1 |
InTEGr8or/handterm | 2756379 | src/e2e/tests/signal-value.spec.ts | TypeScript | www.github.com/InTEGr8or/handterm/tree/main/src/e2e/tests/signal-value.spec.ts | https://raw.githubusercontent.com/InTEGr8or/handterm/2756379/src/e2e/tests/signal-value.spec.ts | InTEGr8or/handterm 2756379 src/e2e/tests/signal-value.spec.ts | true | 200 | 798 | import { test, expect, type Page } from '@playwright/test';
import { TEST_CONFIG } from '../config';
test.describe('Signal Value', () => {
let page: Page;
test.beforeEach(async ({ browser }) => {
page = await browser.newPage();
await page.goto(TEST_CONFIG.baseUrl);
});
test('completedTutorialsSignal.... | 5 |
wintersakuraa/nest-finance-manager | d87fe69 | src/bank/service/bank.service.ts | TypeScript | www.github.com/wintersakuraa/nest-finance-manager/tree/main/src/bank/service/bank.service.ts | https://raw.githubusercontent.com/wintersakuraa/nest-finance-manager/d87fe69/src/bank/service/bank.service.ts | wintersakuraa/nest-finance-manager d87fe69 src/bank/service/bank.service.ts | true | 200 | 3,185 | import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Bank } from '../bank.entity';
import { BankDto, BankStatisticsDto } from '../dto';
import { Injectable } from '@nestjs/common';
import { User } from '../../user/user.entity';
import { CategoryService } from '../../categor... | 4 |
ThyagoLucas/Projex-System-Challenge-front | 6e338bb | src/app/auth/create-account/create-account.component.ts | TypeScript | www.github.com/ThyagoLucas/Projex-System-Challenge-front/tree/main/src/app/auth/create-account/create-account.component.ts | https://raw.githubusercontent.com/ThyagoLucas/Projex-System-Challenge-front/6e338bb/src/app/auth/create-account/create-account.component.ts | ThyagoLucas/Projex-System-Challenge-front 6e338bb src/app/auth/create-account/create-account.component.ts | true | 200 | 1,457 | import { NotificationService } from 'src/app/components/template/notification.service';
import { UserCreate } from './../shared/account.model';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from '../auth.service';
import { FormControl, FormGroup, Val... | 7 |
bithin2008/node-admin-app | 0465a8c | src/app/@shared/shared.module.ts | TypeScript | www.github.com/bithin2008/node-admin-app/tree/main/src/app/@shared/shared.module.ts | https://raw.githubusercontent.com/bithin2008/node-admin-app/0465a8c/src/app/%40shared/shared.module.ts | bithin2008/node-admin-app 0465a8c src/app/@shared/shared.module.ts | true | 200 | 6,049 | import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HighlightDirective } from './directives/highlight.directive';
import { CheckCapsLo... | 0 |
simplifiedcourses/ngx-vest-forms | e4ee6ee | projects/ngx-vest-forms/src/lib/testing/simple-form-with-validation-config.stories.ts | TypeScript | www.github.com/simplifiedcourses/ngx-vest-forms/tree/main/projects/ngx-vest-forms/src/lib/testing/simple-form-with-validation-config.stories.ts | https://raw.githubusercontent.com/simplifiedcourses/ngx-vest-forms/e4ee6ee/projects/ngx-vest-forms/src/lib/testing/simple-form-with-validation-config.stories.ts | simplifiedcourses/ngx-vest-forms e4ee6ee projects/ngx-vest-forms/src/lib/testing/simple-form-with-validation-config.stories.ts | true | 200 | 8,606 | import { componentWrapperDecorator, Meta, StoryObj } from '@storybook/angular';
import { Component, computed, signal } from '@angular/core';
import { vestForms } from '../exports';
import { getByText, userEvent, waitFor, within } from '@storybook/test';
import { expect } from '@storybook/jest';
import {
FormModel,
... | 6 |
JackPMalone/PRJ400 | c00c17d | src/app/main/base/base.component.ts | TypeScript | www.github.com/JackPMalone/PRJ400/tree/main/src/app/main/base/base.component.ts | https://raw.githubusercontent.com/JackPMalone/PRJ400/c00c17d/src/app/main/base/base.component.ts | JackPMalone/PRJ400 c00c17d src/app/main/base/base.component.ts | true | 200 | 3,879 | import { Component } from '@angular/core';
import { DatePipe } from '@angular/common';
import { OnInit } from '@angular/core';
import { Chart } from 'chart.js'
import { Router } from '@angular/router';
import { FirebaseService } from '../../services/firebase/firebase.service';
import { FirebaseAuthService } from '../..... | 3 |
ThoCos/blog-api | 721f99e | routes/api/article/[id].ts | TypeScript | www.github.com/ThoCos/blog-api/tree/main/routes/api/article/[id].ts | https://raw.githubusercontent.com/ThoCos/blog-api/721f99e/routes/api/article/%5Bid%5D.ts | ThoCos/blog-api 721f99e routes/api/article/[id].ts | true | 200 | 371 | import { useStorage } from '#imports';
export default defineEventHandler(async (event) => {
const id = event.context.params.id;
const article = await useStorage('assets:server').getItem(`db/article.json`);
const articles = article.find((p) => p.id === Number.parseInt(id));
if (!articles) {
return new Err... | 1 |
Akasitori/Fahrschule-Admin-UI | 1efc52e | src/libs/dashboard/feature-lehrer/lehrer-kontaktdaten/lehrer-kontaktdaten.component.ts | TypeScript | www.github.com/Akasitori/Fahrschule-Admin-UI/tree/main/src/libs/dashboard/feature-lehrer/lehrer-kontaktdaten/lehrer-kontaktdaten.component.ts | https://raw.githubusercontent.com/Akasitori/Fahrschule-Admin-UI/1efc52e/src/libs/dashboard/feature-lehrer/lehrer-kontaktdaten/lehrer-kontaktdaten.component.ts | Akasitori/Fahrschule-Admin-UI 1efc52e src/libs/dashboard/feature-lehrer/lehrer-kontaktdaten/lehrer-kontaktdaten.component.ts | true | 200 | 4,465 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute } from '@angular/router';
import { LehrerFacade } from 'src/libs/domain/application/lehrer/lehrer.facade';
import { Aktual... | 5 |
9von10/conventional-commits-migrator | 27a1b59 | src/app/component/migrator/migrator.component.ts | TypeScript | www.github.com/9von10/conventional-commits-migrator/tree/main/src/app/component/migrator/migrator.component.ts | https://raw.githubusercontent.com/9von10/conventional-commits-migrator/27a1b59/src/app/component/migrator/migrator.component.ts | 9von10/conventional-commits-migrator 27a1b59 src/app/component/migrator/migrator.component.ts | true | 200 | 1,052 | import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { Release } from 'src/app/schema/release';
import { DataService } from 'src/app/service/data.service';
@Component({
selector: 'app-migrator',
templateUrl: './migrator.component.html',
styleUrls: ['./migrator.component.scs... | 0 |
andriandresson/tracka | 119c553 | sendiradid-internship/apps/tracka/pages/api/auth/[...nextauth].ts | TypeScript | www.github.com/andriandresson/tracka/tree/main/sendiradid-internship/apps/tracka/pages/api/auth/[...nextauth].ts | https://raw.githubusercontent.com/andriandresson/tracka/119c553/sendiradid-internship/apps/tracka/pages/api/auth/%5B...nextauth%5D.ts | andriandresson/tracka 119c553 sendiradid-internship/apps/tracka/pages/api/auth/[...nextauth].ts | true | 200 | 5,107 | import NextAuth, { Session } from 'next-auth';
import CredentialsProvider from 'next-auth/providers/credentials';
import { ILoginResponse } from '../../../src/lib/types';
import axios from 'axios';
import { JWT } from 'next-auth/jwt';
const BASE_URL_APP = 'https://app.clickup.com/v1';
const BASE_URL_API = 'https://api... | 4 |
lucastrindade222/gubeeAngular | 69f56f3 | src/app/view/link-product/link-product.component.ts | TypeScript | www.github.com/lucastrindade222/gubeeAngular/tree/main/src/app/view/link-product/link-product.component.ts | https://raw.githubusercontent.com/lucastrindade222/gubeeAngular/69f56f3/src/app/view/link-product/link-product.component.ts | lucastrindade222/gubeeAngular 69f56f3 src/app/view/link-product/link-product.component.ts | true | 200 | 1,816 | import { Component, OnInit } from '@angular/core';
import { Stack, TargetMarket } from 'src/app/_shared/model/product.model';
import { TargetMarketService } from 'src/app/service/target-market.service';
import { StackService } from 'src/app/service/stack.service';
import {MatSnackBar} from '@angular/material/snack-bar'... | 7 |
seven-io/js-client | c67b3c3 | vite.config.ts | TypeScript | www.github.com/seven-io/js-client/tree/main/vite.config.ts | https://raw.githubusercontent.com/seven-io/js-client/c67b3c3/vite.config.ts | seven-io/js-client c67b3c3 vite.config.ts | true | 200 | 730 | import {resolve} from 'node:path'
import {defineConfig} from 'vite'
import dts from 'vite-plugin-dts'
import {nodePolyfills} from 'vite-plugin-node-polyfills'
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'seven-client',
... | 2 |
offrhq/offr-shopify-sdk | ef14e64 | lib/appBlockScript/src/index.ts | TypeScript | www.github.com/offrhq/offr-shopify-sdk/tree/main/lib/appBlockScript/src/index.ts | https://raw.githubusercontent.com/offrhq/offr-shopify-sdk/ef14e64/lib/appBlockScript/src/index.ts | offrhq/offr-shopify-sdk ef14e64 lib/appBlockScript/src/index.ts | true | 200 | 7,441 | // adding zod and schema adds ~300kb to script; instead use type
import { parseGid } from "@shopify/admin-graphql-api-utilities";
import { type HtmlFormControlElement } from "./elements.ts";
import { buildSellingPlanPicker, getPickerListener } from "./picker.ts";
import { getOffrBlockData } from "./forOffr.ts";
import ... | 3 |
anshidanu7861/airlinesBooking | 3fa6cc6 | server/src/adaptors/authController.ts | TypeScript | www.github.com/anshidanu7861/airlinesBooking/tree/main/server/src/adaptors/authController.ts | https://raw.githubusercontent.com/anshidanu7861/airlinesBooking/3fa6cc6/server/src/adaptors/authController.ts | anshidanu7861/airlinesBooking 3fa6cc6 server/src/adaptors/authController.ts | true | 200 | 2,865 | import { Request, Response } from "express";
import { userInterface } from "../types/authIterface";
import { usertypeofRepository } from "../application/repository/userRepository";
import { authType } from "../framework/database/mongodb/repository/userRpositoryMongo";
import { addUser, addBooking, getAllBookings } from... | 1 |
sambit24795/torvic | 6a0185a | src/hooks/socket/index.ts | TypeScript | www.github.com/sambit24795/torvic/tree/main/src/hooks/socket/index.ts | https://raw.githubusercontent.com/sambit24795/torvic/6a0185a/src/hooks/socket/index.ts | sambit24795/torvic 6a0185a src/hooks/socket/index.ts | true | 200 | 2,934 | import io, { Socket } from "socket.io-client";
import {
SocketCallbacks,
Chat,
RoomType,
GroupRoomType,
GroupChat,
} from "../types";
let socket: Socket | null;
function connect(username?: string) {
if (!socket) {
socket = io("http://localhost:4000", {
auth: { user: { username } },
});
}
... | 6 |
gridironzone/grid-borrow | 6394f32 | features/stateMachines/transaction/transactionStateMachine.ts | TypeScript | www.github.com/gridironzone/grid-borrow/tree/main/features/stateMachines/transaction/transactionStateMachine.ts | https://raw.githubusercontent.com/gridironzone/grid-borrow/6394f32/features/stateMachines/transaction/transactionStateMachine.ts | gridironzone/grid-borrow 6394f32 features/stateMachines/transaction/transactionStateMachine.ts | true | 200 | 7,033 | import { TxMeta, TxState, TxStatus } from '@oasisdex/transactions'
import { TransactionDef } from 'blockchain/calls/callsHelpers'
import { Context, ContextConnected } from 'blockchain/network'
import { TxHelpers } from 'components/AppContext'
import { transactionToX } from 'helpers/form'
import { combineLatest, Observa... | 5 |
diegogcanonico/TTPS-JAVA | 362b3a8 | Entregable 6/manguito-frontend/src/app/componentes/donacion/donacion.component.ts | TypeScript | www.github.com/diegogcanonico/TTPS-JAVA/tree/main/Entregable 6/manguito-frontend/src/app/componentes/donacion/donacion.component.ts | https://raw.githubusercontent.com/diegogcanonico/TTPS-JAVA/362b3a8/Entregable%206/manguito-frontend/src/app/componentes/donacion/donacion.component.ts | diegogcanonico/TTPS-JAVA 362b3a8 Entregable 6/manguito-frontend/src/app/componentes/donacion/donacion.component.ts | true | 200 | 1,609 | import { Component } from '@angular/core';
import { ManguitoService } from '../../Service/manguito.service';
import { NgForm } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { Router, } from '@angular/router';
import { Donacion } from '../../Model/donacion';
import { AuthService } from ... | 0 |
BlakeHoks/UserRequestService | 048c243 | server/src/request/request.service.ts | TypeScript | www.github.com/BlakeHoks/UserRequestService/tree/main/server/src/request/request.service.ts | https://raw.githubusercontent.com/BlakeHoks/UserRequestService/048c243/server/src/request/request.service.ts | BlakeHoks/UserRequestService 048c243 server/src/request/request.service.ts | true | 200 | 1,908 | import { Inject, Injectable } from '@nestjs/common'
import { CreateRequestDto } from './dto/create-request.dto'
import { UpdateRequestDto } from './dto/update-request.dto'
import { PG_CONNECTION } from '../constants'
import { Request } from './entities/request.entity'
@Injectable()
export class RequestService {
cons... | 4 |
yrnoah/common-package-demo | a0d0a03 | demo-project/packages/sui/src/components/Input/BaseInput/styles.input.ts | TypeScript | www.github.com/yrnoah/common-package-demo/tree/main/demo-project/packages/sui/src/components/Input/BaseInput/styles.input.ts | https://raw.githubusercontent.com/yrnoah/common-package-demo/a0d0a03/demo-project/packages/sui/src/components/Input/BaseInput/styles.input.ts | yrnoah/common-package-demo a0d0a03 demo-project/packages/sui/src/components/Input/BaseInput/styles.input.ts | true | 200 | 2,571 | import styled, { css } from "styled-components";
import {
Functional2Error,
Neutral1,
Neutral2,
Neutral,
Neutral3,
Neutral4,
Neutral6,
Neutral8,
} from "../../../styles/colors";
import { Body2CSS } from "../../../styles/fonts";
export interface IBaseInputProps {
error?: boolean;
disableBorder?: boo... | 7 |
beauty-force/Web3-UI-kits | e27b953 | packages/web3/src/lib/ConnectButton/types.ts | TypeScript | www.github.com/beauty-force/Web3-UI-kits/tree/main/packages/web3/src/lib/ConnectButton/types.ts | https://raw.githubusercontent.com/beauty-force/Web3-UI-kits/e27b953/packages/web3/src/lib/ConnectButton/types.ts | beauty-force/Web3-UI-kits e27b953 packages/web3/src/lib/ConnectButton/types.ts | true | 200 | 557 | import type { HTMLAttributes } from 'react';
export interface IConnectButtonProps extends HTMLAttributes<HTMLDivElement> {
/**
* an optional chain id of the blockchain that the web3 wallet is connected to
*/
chainId?: number;
/**
* if true & server is connected & web3 is enabled will automa... | 2 |
daniele-koerber/test-datatables-ng14 | 669d55d | src/app/pages/overview/notifications-card/downtime-acknowledge-button/downtime-acknowledge-button.component.ts | TypeScript | www.github.com/daniele-koerber/test-datatables-ng14/tree/main/src/app/pages/overview/notifications-card/downtime-acknowledge-button/downtime-acknowledge-button.component.ts | https://raw.githubusercontent.com/daniele-koerber/test-datatables-ng14/669d55d/src/app/pages/overview/notifications-card/downtime-acknowledge-button/downtime-acknowledge-button.component.ts | daniele-koerber/test-datatables-ng14 669d55d src/app/pages/overview/notifications-card/downtime-acknowledge-button/downtime-acknowledge-button.component.ts | true | 200 | 5,517 | import { Component, OnInit } from '@angular/core';
import { NbDialogService } from '@nebular/theme';
import { DowntimeAcknowledgeModalComponent } from '../downtime-acknowledge-modal/downtime-acknowledge-modal.component';
import {NbAuthJWTToken, NbAuthService} from '@nebular/auth';
import { Subscription } from 'rxjs';
i... | 1 |
bitcoinil-site/main-site | a524d01 | packages/locale-handler/src/page-manager/database.handler.ts | TypeScript | www.github.com/bitcoinil-site/main-site/tree/main/packages/locale-handler/src/page-manager/database.handler.ts | https://raw.githubusercontent.com/bitcoinil-site/main-site/a524d01/packages/locale-handler/src/page-manager/database.handler.ts | bitcoinil-site/main-site a524d01 packages/locale-handler/src/page-manager/database.handler.ts | true | 200 | 6,272 | import { Client as NotionClient } from '@notionhq/client'
import PageManager from '.'
import {
DatabaseInstance,
DatabaseSchema,
TableSchema
} from '../database.types'
class NotionDatabaseHandler {
ref: typeof NotionDatabaseHandler
page: PageManager
databases: Record<string, DatabaseInstance>
schema: Dat... | 6 |
jeferson-menezes/imperium | a22bb1b | src/router/routes.ts | TypeScript | www.github.com/jeferson-menezes/imperium/tree/main/src/router/routes.ts | https://raw.githubusercontent.com/jeferson-menezes/imperium/a22bb1b/src/router/routes.ts | jeferson-menezes/imperium a22bb1b src/router/routes.ts | true | 200 | 356 | import { RouteRecordRaw } from "vue-router";
import accesslayout from "src/layouts/access.routes";
import mainlayout from "src/layouts/main.routes";
const routes: RouteRecordRaw[] = [
...accesslayout,
...mainlayout,
{
path: "/:catchAll(.*)*",
component: () => import("pages/ErrorNotFound.vue... | 0 |
roberto4tisantos/20-Deployment_CICD | 1e4eeeb | server/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts | TypeScript | www.github.com/roberto4tisantos/20-Deployment_CICD/tree/main/server/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts | https://raw.githubusercontent.com/roberto4tisantos/20-Deployment_CICD/1e4eeeb/server/node_modules/%40mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts | roberto4tisantos/20-Deployment_CICD 1e4eeeb server/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts | true | 200 | 4,240 | import type { WebSocketData, WebSocketTransport } from './WebSocketTransport'
import type { WebSocketEventListener } from './WebSocketOverride'
import { bindEvent } from './utils/bindEvent'
import { CancelableMessageEvent, CloseEvent } from './utils/events'
import { createRequestId } from '../../createRequestId'
const... | 5 |
vuppalavanchunavya/Inventory-application | 2fcdcbd | src/app/pages/organization/organization.page.ts | TypeScript | www.github.com/vuppalavanchunavya/Inventory-application/tree/main/src/app/pages/organization/organization.page.ts | https://raw.githubusercontent.com/vuppalavanchunavya/Inventory-application/2fcdcbd/src/app/pages/organization/organization.page.ts | vuppalavanchunavya/Inventory-application 2fcdcbd src/app/pages/organization/organization.page.ts | true | 200 | 5,915 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { DatabaseService } from 'src/app/services/database.service';
import { ToastController } from '@ionic/angular';
import { NetworkService } from 'src/app/services/network.service';
import { ApiService } from 'src/app/servi... | 3 |
Denis-Milashuk/Node.js-MP-tasks-2-3-4 | c6c98e7 | src/logging/winstonLogger.ts | TypeScript | www.github.com/Denis-Milashuk/Node.js-MP-tasks-2-3-4/tree/main/src/logging/winstonLogger.ts | https://raw.githubusercontent.com/Denis-Milashuk/Node.js-MP-tasks-2-3-4/c6c98e7/src/logging/winstonLogger.ts | Denis-Milashuk/Node.js-MP-tasks-2-3-4 c6c98e7 src/logging/winstonLogger.ts | true | 200 | 456 | import winston, { createLogger, format } from "winston";
export const logger = createLogger({
level: "debug",
format: format.combine(
format.colorize(),
format.timestamp(),
format.printf(({ timestamp, level, message }) => {
return `[${timestamp}] ${level}: ${message}`;
})
),
transports: [... | 7 |
tungwithconga/session08-M24 | a56b583 | baitap/b2.ts | TypeScript | www.github.com/tungwithconga/session08-M24/tree/main/baitap/b2.ts | https://raw.githubusercontent.com/tungwithconga/session08-M24/a56b583/baitap/b2.ts | tungwithconga/session08-M24 a56b583 baitap/b2.ts | true | 200 | 1,039 | interface Person {
name: string;
age: number;
address: {
street: string;
city: string;
};
}
function thongTin(obj: any): obj is Person {
if (
typeof obj === "object" &&
obj !== null &&
"name" in obj &&
"age" in obj &&
"address" ... | 4 |
MaferMarques/apicosmo | a33ebb5 | src/modules/publications/services/CreateCommentService.spec.ts | TypeScript | www.github.com/MaferMarques/apicosmo/tree/main/src/modules/publications/services/CreateCommentService.spec.ts | https://raw.githubusercontent.com/MaferMarques/apicosmo/a33ebb5/src/modules/publications/services/CreateCommentService.spec.ts | MaferMarques/apicosmo a33ebb5 src/modules/publications/services/CreateCommentService.spec.ts | true | 200 | 2,217 | import AppError from '@shared/errors/AppError';
import FakeUsersRepository from '@modules/users/repositories/fakes/FakeUsersRepository';
import FakePostsRepository from '../repositories/fakes/FakePostsRepository';
import FakeCommentsRepository from '../repositories/fakes/FakeCommentsRepository';
import CreateCommentS... | 0 |
xp2000926/min-sheep-ui-plus | a2cc80a | src/main.ts | TypeScript | www.github.com/xp2000926/min-sheep-ui-plus/tree/main/src/main.ts | https://raw.githubusercontent.com/xp2000926/min-sheep-ui-plus/a2cc80a/src/main.ts | xp2000926/min-sheep-ui-plus a2cc80a src/main.ts | true | 200 | 259 | import { createApp } from 'vue';
// import './style.css';
import App from './App.vue';
// import './index.scss';
import Button from './button';
import Calendar from './calendar';
// 使用全量导出
createApp(App).use(Button).use(Calendar).mount('#app');
| 6 |
Rittik-kumar19/test_project | ff1f006 | src/app/firstcomponent/firstcomponent.component.ts | TypeScript | www.github.com/Rittik-kumar19/test_project/tree/main/src/app/firstcomponent/firstcomponent.component.ts | https://raw.githubusercontent.com/Rittik-kumar19/test_project/ff1f006/src/app/firstcomponent/firstcomponent.component.ts | Rittik-kumar19/test_project ff1f006 src/app/firstcomponent/firstcomponent.component.ts | true | 200 | 875 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { DataService } from '../data.service';
@Component({
selector: 'app-firstcomponent',
templateUrl: './firstcomponent.component.html',
styleUrls: ['./firstcomponent.component.css']
})
export class FirstcomponentComponent impleme... | 5 |
ChrisostomosVals/DnDRenia | d0f0081 | src/screens/SpecialAbilities/SpecialAbilities.style.ts | TypeScript | www.github.com/ChrisostomosVals/DnDRenia/tree/main/src/screens/SpecialAbilities/SpecialAbilities.style.ts | https://raw.githubusercontent.com/ChrisostomosVals/DnDRenia/d0f0081/src/screens/SpecialAbilities/SpecialAbilities.style.ts | ChrisostomosVals/DnDRenia d0f0081 src/screens/SpecialAbilities/SpecialAbilities.style.ts | true | 200 | 1,500 | import { StyleProp, StyleSheet, TextStyle, ViewStyle } from "react-native";
import { theme } from "../../theme/theme";
type JustifyContentType = | 'flex-start'
| 'flex-end'
| 'center'
| 'space-between'
| 'space-around'
| 'space-evenly'
| undefined;
type SpecialAbilitiesStyles = {
lineBr... | 3 |
Tasteles-Scholar/RCat | 8721888 | rcat/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts | TypeScript | www.github.com/Tasteles-Scholar/RCat/tree/main/rcat/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts | https://raw.githubusercontent.com/Tasteles-Scholar/RCat/8721888/rcat/node_modules/%40babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts | Tasteles-Scholar/RCat 8721888 rcat/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts | true | 200 | 1,060 | import type { IGLTFLoaderExtension } from "../glTFLoaderExtension";
import type { GLTFLoader } from "../glTFLoader";
declare module "../../glTFFileLoader" {
interface GLTFLoaderExtensionOptions {
/**
* Defines options for the KHR_xmp_json_ld extension.
*/
["KHR_xmp_json_ld"]: {};
... | 7 |
vepifanio/simple-gallery | c7ecd53 | drizzle.config.ts | TypeScript | www.github.com/vepifanio/simple-gallery/tree/main/drizzle.config.ts | https://raw.githubusercontent.com/vepifanio/simple-gallery/c7ecd53/drizzle.config.ts | vepifanio/simple-gallery c7ecd53 drizzle.config.ts | true | 200 | 499 | import type { Config } from 'drizzle-kit';
import dotenv from 'dotenv';
dotenv.config();
const { DB_HOST, DB_USER, DB_NAME, DB_PASSWORD } = process.env;
if (!(DB_HOST && DB_USER && DB_NAME && DB_PASSWORD)) {
throw new Error('Some db environment variable is missing.');
}
export default {
schema: './src/db/schemas... | 2 |
sbhor007/Symbiosis-j-100 | f8b9b80 | movieTickitBokking/Client/src/app/Gard/user-auth-guard.guard.ts | TypeScript | www.github.com/sbhor007/Symbiosis-j-100/tree/main/movieTickitBokking/Client/src/app/Gard/user-auth-guard.guard.ts | https://raw.githubusercontent.com/sbhor007/Symbiosis-j-100/f8b9b80/movieTickitBokking/Client/src/app/Gard/user-auth-guard.guard.ts | sbhor007/Symbiosis-j-100 f8b9b80 movieTickitBokking/Client/src/app/Gard/user-auth-guard.guard.ts | true | 200 | 416 | import { inject } from '@angular/core';
import { CanActivateFn } from '@angular/router';
import { Router } from 'express';
export const userAuthGuardGuard: CanActivateFn = (route, state) => {
const router = inject(Router);
const userLoggerdData = localStorage.getItem('userToken')
if (userLoggerdData !... | 1 |
asachoihk/nf2fdemo | 9101550 | src/app/app-routing.module.ts | TypeScript | www.github.com/asachoihk/nf2fdemo/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/asachoihk/nf2fdemo/9101550/src/app/app-routing.module.ts | asachoihk/nf2fdemo 9101550 src/app/app-routing.module.ts | true | 200 | 2,145 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { PageSignComponent } from './page-sign/page-sign.component';
import { PageFileComponent } from './page-file/page-file.component';
import { PagePaymentComponent } fro... | 4 |
somervda/netProbeUI | a4116b5 | src/app/shared/valuecell/valuecell.component.ts | TypeScript | www.github.com/somervda/netProbeUI/tree/main/src/app/shared/valuecell/valuecell.component.ts | https://raw.githubusercontent.com/somervda/netProbeUI/a4116b5/src/app/shared/valuecell/valuecell.component.ts | somervda/netProbeUI a4116b5 src/app/shared/valuecell/valuecell.component.ts | true | 200 | 1,090 | import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'valuecell',
templateUrl: './valuecell.component.html',
styleUrls: ['./valuecell.component.css'],
})
export class ValuecellComponent implements OnInit {
@Input() value = 0;
@Input() UOM = '';
@Input() scale = false;
@Input()... | 0 |
patriciadoromal/nutrition | 7b115d7 | src/app/core/helpers/helper.ts | TypeScript | www.github.com/patriciadoromal/nutrition/tree/main/src/app/core/helpers/helper.ts | https://raw.githubusercontent.com/patriciadoromal/nutrition/7b115d7/src/app/core/helpers/helper.ts | patriciadoromal/nutrition 7b115d7 src/app/core/helpers/helper.ts | true | 200 | 4,187 | import {Combination} from 'app/modules/generator/combination.class'
import {ActivityLevelEnum} from '../enum/activity-level.enum'
import {GoalEnum} from '../enum/goal.enum'
import {MealCombinationEnum} from '../enum/meal.combination.enum'
import {SexEnum} from '../enum/sex.enum'
import {DailyMacroNeeds} from '../models... | 6 |
dpwl0974/Lo8r | be030f6 | app_public/src/app/app-routing/app-routing.module.ts | TypeScript | www.github.com/dpwl0974/Lo8r/tree/main/app_public/src/app/app-routing/app-routing.module.ts | https://raw.githubusercontent.com/dpwl0974/Lo8r/be030f6/app_public/src/app/app-routing/app-routing.module.ts | dpwl0974/Lo8r be030f6 app_public/src/app/app-routing/app-routing.module.ts | true | 200 | 981 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { HomepageComponent } from '../homepage/homepage.component';
import { AboutComponent } from '../about/about.component';
import { DetailsPageComponent } from '../detail... | 5 |
MoonRize86/MoonRize | 8066c24 | server/src/guardHandlers/treasures/12.test.ts | TypeScript | www.github.com/MoonRize86/MoonRize/tree/main/server/src/guardHandlers/treasures/12.test.ts | https://raw.githubusercontent.com/MoonRize86/MoonRize/8066c24/server/src/guardHandlers/treasures/12.test.ts | MoonRize86/MoonRize 8066c24 server/src/guardHandlers/treasures/12.test.ts | true | 200 | 3,293 | import { cardMap, propMap } from 'AvailableCards';
import { ECardTypes } from '@coolgedon/shared';
import type { Room } from 'Entity/room';
import type { Player } from 'Entity/player';
import type { Card } from 'Entity/card';
import * as testHelper from 'Helpers/tests';
import spyOn = jest.spyOn;
import fn = jest.fn... | 3 |
ledrose/data_analysis_platform | b9bab59 | backend/src/source/source.service.ts | TypeScript | www.github.com/ledrose/data_analysis_platform/tree/main/backend/src/source/source.service.ts | https://raw.githubusercontent.com/ledrose/data_analysis_platform/b9bab59/backend/src/source/source.service.ts | ledrose/data_analysis_platform b9bab59 backend/src/source/source.service.ts | true | 200 | 7,423 | import { BadRequestException, Injectable } from '@nestjs/common';
import { DataSource, In, Repository } from 'typeorm';
import { SourceTable } from './entities/source-table.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { SourceField } from './entities/source-field.entity';
import { ConnectionsServ... | 7 |
hudsonlhMartins/ecommerce_study | 00e4dcf | backend/src/useCase/AddProductInCategoryUseCase.ts | TypeScript | www.github.com/hudsonlhMartins/ecommerce_study/tree/main/backend/src/useCase/AddProductInCategoryUseCase.ts | https://raw.githubusercontent.com/hudsonlhMartins/ecommerce_study/00e4dcf/backend/src/useCase/AddProductInCategoryUseCase.ts | hudsonlhMartins/ecommerce_study 00e4dcf backend/src/useCase/AddProductInCategoryUseCase.ts | true | 200 | 530 | import { IProductInCategoryRepository } from '@/repositories/IProductInCategoryRepository'
import { UUID } from 'node:crypto'
export interface Product_Category {
categoryId: UUID
productId: UUID
}
export class AddProductInCategoryUseCase {
// eslint-disable-next-line
constructor(private readonly productInCat... | 2 |
jfkeci/my-groups-api | d3881bb | src/resources/community-users/service/community-users.service.spec.ts | TypeScript | www.github.com/jfkeci/my-groups-api/tree/main/src/resources/community-users/service/community-users.service.spec.ts | https://raw.githubusercontent.com/jfkeci/my-groups-api/d3881bb/src/resources/community-users/service/community-users.service.spec.ts | jfkeci/my-groups-api d3881bb src/resources/community-users/service/community-users.service.spec.ts | true | 200 | 516 | import { Test, TestingModule } from '@nestjs/testing';
import { CommunityUsersService } from './community-users.service';
describe('CommunityUsersService', () => {
let service: CommunityUsersService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [Comm... | 1 |
Tanishq0411/IntegratedPlatformProject | 7d18830 | Backend/node_modules/twilio/lib/rest/studio/v2/flow/flowRevision.d.ts | TypeScript | www.github.com/Tanishq0411/IntegratedPlatformProject/tree/main/Backend/node_modules/twilio/lib/rest/studio/v2/flow/flowRevision.d.ts | https://raw.githubusercontent.com/Tanishq0411/IntegratedPlatformProject/7d18830/Backend/node_modules/twilio/lib/rest/studio/v2/flow/flowRevision.d.ts | Tanishq0411/IntegratedPlatformProject 7d18830 Backend/node_modules/twilio/lib/rest/studio/v2/flow/flowRevision.d.ts | true | 200 | 9,574 | /// <reference types="node" />
import { inspect, InspectOptions } from "util";
import Page, { TwilioResponsePayload } from "../../../../base/Page";
import Response from "../../../../http/response";
import V2 from "../../V2";
export type FlowRevisionStatus = "draft" | "published";
/**
* Options to pass to each
... | 4 |
FabricioMedeiros/DocCareWeb | fd4675e | frontend/doccareweb/src/app/features/navigation/components/menu-login/menu-login.component.spec.ts | TypeScript | www.github.com/FabricioMedeiros/DocCareWeb/tree/main/frontend/doccareweb/src/app/features/navigation/components/menu-login/menu-login.component.spec.ts | https://raw.githubusercontent.com/FabricioMedeiros/DocCareWeb/fd4675e/frontend/doccareweb/src/app/features/navigation/components/menu-login/menu-login.component.spec.ts | FabricioMedeiros/DocCareWeb fd4675e frontend/doccareweb/src/app/features/navigation/components/menu-login/menu-login.component.spec.ts | true | 200 | 581 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MenuLoginComponent } from './menu-login.component';
describe('MenuLoginComponent', () => {
let component: MenuLoginComponent;
let fixture: ComponentFixture<MenuLoginComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
... | 0 |
mahakamal1/hospital | ffe47ac | src/app/features/admin/nurse-managements/services/nurse.service.ts | TypeScript | www.github.com/mahakamal1/hospital/tree/main/src/app/features/admin/nurse-managements/services/nurse.service.ts | https://raw.githubusercontent.com/mahakamal1/hospital/ffe47ac/src/app/features/admin/nurse-managements/services/nurse.service.ts | mahakamal1/hospital ffe47ac src/app/features/admin/nurse-managements/services/nurse.service.ts | true | 200 | 862 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { nurse } from '../models/model';
import { environment } from 'src/environments/environment.prod';
import { Addworkers } from '../../doctor-management/models/model';
@Injectable({
... | 6 |
anhquan219/Twitter-BE | 5a65993 | src/index.ts | TypeScript | www.github.com/anhquan219/Twitter-BE/tree/main/src/index.ts | https://raw.githubusercontent.com/anhquan219/Twitter-BE/5a65993/src/index.ts | anhquan219/Twitter-BE 5a65993 src/index.ts | true | 200 | 3,639 | import express from 'express'
import usersRouter from '~/routes/users.routes'
import databaseServce from '~/services/database.services'
import { defaultErrorHandler } from './middlewares/error.middlewares'
import mediasRouter from './routes/media.routes'
import { initFolder } from './utils/file'
import { config } from ... | 5 |
simonwyse/comp-repair-shop | db95857 | src/lib/safe-action.ts | TypeScript | www.github.com/simonwyse/comp-repair-shop/tree/main/src/lib/safe-action.ts | https://raw.githubusercontent.com/simonwyse/comp-repair-shop/db95857/src/lib/safe-action.ts | simonwyse/comp-repair-shop db95857 src/lib/safe-action.ts | true | 200 | 1,158 | import { createSafeActionClient } from "next-safe-action"
import { z } from "zod"
import * as Sentry from "@sentry/nextjs"
import type { NeonDbError } from "@neondatabase/serverless"
export const actionClient = createSafeActionClient({
defineMetadataSchema() {
return z.object({
actionName: z.st... | 3 |
Jorgyg/jgl-angular-crud | d86e746 | src/app/database.service.ts | TypeScript | www.github.com/Jorgyg/jgl-angular-crud/tree/main/src/app/database.service.ts | https://raw.githubusercontent.com/Jorgyg/jgl-angular-crud/d86e746/src/app/database.service.ts | Jorgyg/jgl-angular-crud d86e746 src/app/database.service.ts | true | 200 | 430 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Character } from './character.model';
import { Observable } from 'rxjs';
const url = `http://localhost:3000/results`;
@Injectable({
providedIn: 'root'
})
export class DatabaseService {
constructor(private h... | 2 |
foretoo/blah-blah | fc3dd64 | pkg/clear.ts | TypeScript | www.github.com/foretoo/blah-blah/tree/main/pkg/clear.ts | https://raw.githubusercontent.com/foretoo/blah-blah/fc3dd64/pkg/clear.ts | foretoo/blah-blah fc3dd64 pkg/clear.ts | true | 200 | 755 | import { Mesh, MeshBasicMaterial, PlaneBufferGeometry, Vector2 } from "three"
import { camera, renderer, scene } from "./init"
export const initClearPlane = (
opacity: number
) => {
renderer.autoClearColor = false
const clearPlane = new Mesh(
new PlaneBufferGeometry(2, 2),
new MeshBasicMaterial({
... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.