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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
AlexanderACgi/datalogicTest | c3bd6b3 | src/app/bardecoder/bardecoder.module.ts | TypeScript | www.github.com/AlexanderACgi/datalogicTest/tree/main/src/app/bardecoder/bardecoder.module.ts | https://raw.githubusercontent.com/AlexanderACgi/datalogicTest/c3bd6b3/src/app/bardecoder/bardecoder.module.ts | AlexanderACgi/datalogicTest c3bd6b3 src/app/bardecoder/bardecoder.module.ts | true | 200 | 500 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { BardecoderPageRoutingModule } from './bardecoder-routing.module';
import { BardecoderPage } from './bardecoder.page';
@NgModu... | 7 |
lamphung12/back-end | 1514660 | src/app/product-be/list-product-backend/list-product-backend.component.ts | TypeScript | www.github.com/lamphung12/back-end/tree/main/src/app/product-be/list-product-backend/list-product-backend.component.ts | https://raw.githubusercontent.com/lamphung12/back-end/1514660/src/app/product-be/list-product-backend/list-product-backend.component.ts | lamphung12/back-end 1514660 src/app/product-be/list-product-backend/list-product-backend.component.ts | true | 200 | 740 | import { Component, OnInit } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {error} from "@angular/compiler-cli/src/transformers/util";
import {ProductBeService} from "../../service/product-be.service";
@Component({
selector: 'app-list-product-backend',
templateUrl: './list-product-b... | 1 |
jasonshu1229/Composition-Admin | 4b706e0 | src/service/request/type.ts | TypeScript | www.github.com/jasonshu1229/Composition-Admin/tree/main/src/service/request/type.ts | https://raw.githubusercontent.com/jasonshu1229/Composition-Admin/4b706e0/src/service/request/type.ts | jasonshu1229/Composition-Admin 4b706e0 src/service/request/type.ts | true | 200 | 554 | // 自定义拦截器
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
export interface SHRequestInterceptors<T = AxiosResponse> {
requestInterceptor?: (config: AxiosRequestConfig) => AxiosRequestConfig;
requestInterceptorCatch?: (error: any) => any;
responseInterceptor?: (res: T) => T;
responseInterceptorCatch... | 0 |
Austinsahm/Tank_Mobile | 6f1f142 | src/app/widgets/devices/device-location/device-location.component.ts | TypeScript | www.github.com/Austinsahm/Tank_Mobile/tree/main/src/app/widgets/devices/device-location/device-location.component.ts | https://raw.githubusercontent.com/Austinsahm/Tank_Mobile/6f1f142/src/app/widgets/devices/device-location/device-location.component.ts | Austinsahm/Tank_Mobile 6f1f142 src/app/widgets/devices/device-location/device-location.component.ts | true | 200 | 4,013 | import { AfterViewInit, Component, ElementRef, Input, OnInit, Renderer2, ViewChild } from '@angular/core';
import { DashboardHttpService } from 'src/app/service/dashboard-http.service';
import { GoogleMapLoader } from '../../sdk/geofencing/google-map-loader';
import { tap } from "rxjs/operators";
import { Points } from... | 3 |
shaw1236/angular-samples | d85ca5c | src/app/table-test/table-test-example.component.ts | TypeScript | www.github.com/shaw1236/angular-samples/tree/main/src/app/table-test/table-test-example.component.ts | https://raw.githubusercontent.com/shaw1236/angular-samples/d85ca5c/src/app/table-test/table-test-example.component.ts | shaw1236/angular-samples d85ca5c src/app/table-test/table-test-example.component.ts | true | 200 | 9,253 | import { OnInit, AfterViewInit, AfterContentInit, AfterContentChecked, Component, ViewChild, ViewChildren, ContentChild, QueryList } from '@angular/core';
import { Observable } from 'rxjs';
import { animate, state, style, transition, trigger } from '@angular/animations';
import { FormControl } from '@angular/forms';
i... | 5 |
Suresh-Jagwani/Ledgers-new | a16b31e | src/app/components/profile/overview/profile-overview.component.ts | TypeScript | www.github.com/Suresh-Jagwani/Ledgers-new/tree/main/src/app/components/profile/overview/profile-overview.component.ts | https://raw.githubusercontent.com/Suresh-Jagwani/Ledgers-new/a16b31e/src/app/components/profile/overview/profile-overview.component.ts | Suresh-Jagwani/Ledgers-new a16b31e src/app/components/profile/overview/profile-overview.component.ts | true | 200 | 2,021 | import { Component, OnInit } from '@angular/core';
import { MaterialModule } from '../../../modules/material.module';
import { ProfileService } from '../../../services/profile.service';
import { MatTableDataSource } from '@angular/material/table';
import { MerchantModel, OwnerModel } from '../../../models/database.mode... | 6 |
joseluis-dev/generic-erp | 613f65f | src/server/models/payment/payment.resolver.ts | TypeScript | www.github.com/joseluis-dev/generic-erp/tree/main/src/server/models/payment/payment.resolver.ts | https://raw.githubusercontent.com/joseluis-dev/generic-erp/613f65f/src/server/models/payment/payment.resolver.ts | joseluis-dev/generic-erp 613f65f src/server/models/payment/payment.resolver.ts | true | 200 | 2,500 | import { GraphQLError } from 'graphql'
import { paymentService } from './payment.service'
export const paymentQueryResolver = {
async allPayments (root: any, args: any, context: any) {
const { secretPass } = args
if (secretPass !== process.env.SECRET_PASSWORD) throw new GraphQLError('Usuario no Autorizado')
... | 4 |
tinfe34/booking-movie-react | 64f6e7a | src/interface/movie.ts | TypeScript | www.github.com/tinfe34/booking-movie-react/tree/main/src/interface/movie.ts | https://raw.githubusercontent.com/tinfe34/booking-movie-react/64f6e7a/src/interface/movie.ts | tinfe34/booking-movie-react 64f6e7a src/interface/movie.ts | true | 200 | 934 | export interface Movie {
maPhim: number;
tenPhim: string;
biDanh: string;
trailer: string;
hinhAnh: string;
moTa: string;
maNhom: string;
ngayKhoiChieu: string;
danhGia: number;
hot: boolean;
dangChieu: boolean;
sapChieu: boolean;
}
export interface Film {
idFilm: number | null;
nameFilm: st... | 7 |
tanloc10203/server-node-endcool | 246d409 | src/utils/introServer.utils.ts | TypeScript | www.github.com/tanloc10203/server-node-endcool/tree/main/src/utils/introServer.utils.ts | https://raw.githubusercontent.com/tanloc10203/server-node-endcool/246d409/src/utils/introServer.utils.ts | tanloc10203/server-node-endcool 246d409 src/utils/introServer.utils.ts | true | 200 | 3,595 | export const introServer = {
SERVER_NAME: 'SERVER API OF END COOL',
COPY_RIGHT: 'BY END COOL',
EMAIL_CONTACT: 'ginga550504@gmail.com',
SERVER_MESSAGE: 'SERVER ON RUNNING',
SERVER_HOST: process.env.DOMAIN + 'api',
GENERAL_RESPONSE_SERVER: {
error: 'boolean',
data: 'any',
message: 'string',
},
... | 2 |
DianaKot13/finalprojectichgram | 0921457 | Backend/src/routes/mainRouter.ts | TypeScript | www.github.com/DianaKot13/finalprojectichgram/tree/main/Backend/src/routes/mainRouter.ts | https://raw.githubusercontent.com/DianaKot13/finalprojectichgram/0921457/Backend/src/routes/mainRouter.ts | DianaKot13/finalprojectichgram 0921457 Backend/src/routes/mainRouter.ts | true | 200 | 587 | import { Application } from "express";
import authRouter from "./authRoutes";
import usersRouter from "./userRoutes";
import postsRouter from "./postRoutes";
import commentRouter from "./commentRoutes";
import messagesRouter from "./messageRoutes";
export const mainRouter = (app: Application) => {
app.use("/api/au... | 3 |
tarik02-org/mediabot | 46137ba | packages/broker/processRequests.ts | TypeScript | www.github.com/tarik02-org/mediabot/tree/main/packages/broker/processRequests.ts | https://raw.githubusercontent.com/tarik02-org/mediabot/46137ba/packages/broker/processRequests.ts | tarik02-org/mediabot 46137ba packages/broker/processRequests.ts | true | 200 | 5,230 | import { PrismaClient } from '@prisma/client';
import PQueue from 'p-queue';
import { Logger } from 'pino';
import { RedisManager } from '@mediabot/app/redis';
import { RequestProcessor } from './RequestProcessor';
import { RetryRequestError } from './RetryRequestError';
export const processRequests = async <TQuery,... | 1 |
Hajin-Bang/Project_BookMark | 5ddd9ae | packages/design-system/src/select/types.ts | TypeScript | www.github.com/Hajin-Bang/Project_BookMark/tree/main/packages/design-system/src/select/types.ts | https://raw.githubusercontent.com/Hajin-Bang/Project_BookMark/5ddd9ae/packages/design-system/src/select/types.ts | Hajin-Bang/Project_BookMark 5ddd9ae packages/design-system/src/select/types.ts | true | 200 | 666 | export interface SelectContextType {
isOpen?: boolean;
selectedValue?: { value: string; label: string } | null;
toggleOpen?: () => void;
selectOption?: (value: string, label: string) => void;
value?: string | null;
onValueChange?: (value: string) => void;
}
export interface SelectProps {
children: React.... | 0 |
GiftAide2025/GA_25_1_2025_for_DEMO_DAY_FINAL_ITr2 | 2c072a8 | src/services/googleSearch.ts | TypeScript | www.github.com/GiftAide2025/GA_25_1_2025_for_DEMO_DAY_FINAL_ITr2/tree/main/src/services/googleSearch.ts | https://raw.githubusercontent.com/GiftAide2025/GA_25_1_2025_for_DEMO_DAY_FINAL_ITr2/2c072a8/src/services/googleSearch.ts | GiftAide2025/GA_25_1_2025_for_DEMO_DAY_FINAL_ITr2 2c072a8 src/services/googleSearch.ts | true | 200 | 2,604 | import axios from 'axios';
const API_KEY = 'AIzaSyBFMQsIdE4E8m2dWDspX2TjiH70wnMh3pI';
const SEARCH_ENGINE_ID = '666db8f0dedde425f';
export interface GoogleSearchResult {
title: string;
imageUrl: string;
error?: string;
}
export const searchProductImage = async (query: string): Promise<GoogleSearchResult> => {
... | 5 |
arocull/Luchadores | 887e8da | src/common/events/TypeEnum.ts | TypeScript | www.github.com/arocull/Luchadores/tree/main/src/common/events/TypeEnum.ts | https://raw.githubusercontent.com/arocull/Luchadores/887e8da/src/common/events/TypeEnum.ts | arocull/Luchadores 887e8da src/common/events/TypeEnum.ts | true | 200 | 469 | enum TypeEnum {
Ping = 100,
Pong = 101,
LobbyRequest = 150,
LobbyResponse = 151,
ClientConnecting = 200,
ClientAcknowledged = 201,
ClientConnected = 202,
ClientDisconnected = 203,
PlayerConnect = 300,
PlayerSpawned = 301,
PlayerInputState = 302,
PlayerDied = 303,
PlayerState = 304,
Player... | 6 |
ivaspavlo/massage-therapy-ui-v2 | 21e20d9 | src/app/shared/components/ad-countdown/ad-countdown.component.spec.ts | TypeScript | www.github.com/ivaspavlo/massage-therapy-ui-v2/tree/main/src/app/shared/components/ad-countdown/ad-countdown.component.spec.ts | https://raw.githubusercontent.com/ivaspavlo/massage-therapy-ui-v2/21e20d9/src/app/shared/components/ad-countdown/ad-countdown.component.spec.ts | ivaspavlo/massage-therapy-ui-v2 21e20d9 src/app/shared/components/ad-countdown/ad-countdown.component.spec.ts | true | 200 | 662 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AdCountdownComponent } from './ad-countdown.component';
describe('AdCountdownComponent', () => {
let component: AdCountdownComponent;
let fixture: ComponentFixture<AdCountdownComponent>;
beforeEach(async () => {
await TestBed.confi... | 4 |
laihuynhnhatminh/advent-of-code-2024 | 574827a | src/utils.ts | TypeScript | www.github.com/laihuynhnhatminh/advent-of-code-2024/tree/main/src/utils.ts | https://raw.githubusercontent.com/laihuynhnhatminh/advent-of-code-2024/574827a/src/utils.ts | laihuynhnhatminh/advent-of-code-2024 574827a src/utils.ts | true | 200 | 2,444 | /**
* Run a solution with performance timer
*
* @export
* @param {Function} fn
*/
export function runSolutionWithPerformance(fn: Function): void {
console.log(
'\x1b[0m',
'\x1b[30m',
'\x1b[42m',
`EXECUTING function ${fn.name}`,
'\x1b[0m',
);
const startTimer = performance.now();
const... | 7 |
AdinaJ02/Love_for_Dogs | fd57257 | src/app/accept-info/accept-info-page2/accept-info-page2.page.spec.ts | TypeScript | www.github.com/AdinaJ02/Love_for_Dogs/tree/main/src/app/accept-info/accept-info-page2/accept-info-page2.page.spec.ts | https://raw.githubusercontent.com/AdinaJ02/Love_for_Dogs/fd57257/src/app/accept-info/accept-info-page2/accept-info-page2.page.spec.ts | AdinaJ02/Love_for_Dogs fd57257 src/app/accept-info/accept-info-page2/accept-info-page2.page.spec.ts | true | 200 | 726 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { AcceptInfoPage2Page } from './accept-info-page2.page';
describe('AcceptInfoPage2Page', () => {
let component: AcceptInfoPage2Page;
let fixture: ComponentFixture<AcceptInfoPage2Pa... | 2 |
DevistK/ArtDelivery-API | 31772b4 | src/repository/pointConfig/pointConfig.query.ts | TypeScript | www.github.com/DevistK/ArtDelivery-API/tree/main/src/repository/pointConfig/pointConfig.query.ts | https://raw.githubusercontent.com/DevistK/ArtDelivery-API/31772b4/src/repository/pointConfig/pointConfig.query.ts | DevistK/ArtDelivery-API 31772b4 src/repository/pointConfig/pointConfig.query.ts | true | 200 | 506 | import { Repository } from 'typeorm';
import { Quality, Size, Style } from '../../constant/enum';
import { PointConfig } from '../pointConfig/entity/pointConfig.entity';
export default class PointConfigQuery {
static getDeductPoint = (
pointConfigRepository: Repository<PointConfig>,
size: Size,
quality: ... | 3 |
ZirixCZ/Spellcaster | 99140fd | frontend/src/pages/unprotected/register/services/handleSubmit.ts | TypeScript | www.github.com/ZirixCZ/Spellcaster/tree/main/frontend/src/pages/unprotected/register/services/handleSubmit.ts | https://raw.githubusercontent.com/ZirixCZ/Spellcaster/99140fd/frontend/src/pages/unprotected/register/services/handleSubmit.ts | ZirixCZ/Spellcaster 99140fd frontend/src/pages/unprotected/register/services/handleSubmit.ts | true | 200 | 2,267 | import * as React from "react";
import Swal from "sweetalert2";
import callApi from "../../../../utils/callApi";
const checkValidityRegex = (
userName: string | undefined,
email: string | undefined,
password: string | undefined
) => {
let validate;
if (
typeof userName === "string" &&
typeof email ==... | 1 |
arojast/front_pervolare | c829101 | src/app/navbar/navbar.component.ts | TypeScript | www.github.com/arojast/front_pervolare/tree/main/src/app/navbar/navbar.component.ts | https://raw.githubusercontent.com/arojast/front_pervolare/c829101/src/app/navbar/navbar.component.ts | arojast/front_pervolare c829101 src/app/navbar/navbar.component.ts | true | 200 | 607 | import { Component, OnInit } from '@angular/core';
import { AuthenticationService } from './../services/authentication.service';
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.css']
})
export class NavbarComponent implements OnInit {
public isLogged... | 0 |
AbdulRahman-Sharief/lms-backend | 7ed8043 | src/app.controller.ts | TypeScript | www.github.com/AbdulRahman-Sharief/lms-backend/tree/main/src/app.controller.ts | https://raw.githubusercontent.com/AbdulRahman-Sharief/lms-backend/7ed8043/src/app.controller.ts | AbdulRahman-Sharief/lms-backend 7ed8043 src/app.controller.ts | true | 200 | 501 | import {
Controller,
Get,
HttpCode,
HttpStatus,
UnauthorizedException,
} from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get('/test')
@HttpCode(HttpStatus.OK)
getHello(): any {
... | 6 |
Tacodiva/Scuff | bf0e99a | scratch/scuff-scratch/vm/ProjectIFrame.ts | TypeScript | www.github.com/Tacodiva/Scuff/tree/main/scratch/scuff-scratch/vm/ProjectIFrame.ts | https://raw.githubusercontent.com/Tacodiva/Scuff/bf0e99a/scratch/scuff-scratch/vm/ProjectIFrame.ts | Tacodiva/Scuff bf0e99a scratch/scuff-scratch/vm/ProjectIFrame.ts | true | 200 | 2,700 | import { ScuffEditorLoadingComponent } from 'scuff';
import vmSource from '../../virtual-machine.js.txt';
import { EXT } from '../ScuffScratch';
import { VMChildboundMessages, VMParentboundMessages } from '../../shared/messages';
import { Messenger } from '../../shared/Messenger';
import vmMessageHandlers from './messa... | 4 |
marcus-deans/hypothetical-books-t3 | 14f8ddf | src/server/api/routers/imageUpload.ts | TypeScript | www.github.com/marcus-deans/hypothetical-books-t3/tree/main/src/server/api/routers/imageUpload.ts | https://raw.githubusercontent.com/marcus-deans/hypothetical-books-t3/14f8ddf/src/server/api/routers/imageUpload.ts | marcus-deans/hypothetical-books-t3 14f8ddf src/server/api/routers/imageUpload.ts | true | 200 | 4,815 | import { z } from "zod";
import { createTRPCRouter, publicProcedure } from "../trpc";
import * as AWS from "aws-sdk";
import type { Image } from "@prisma/client";
import { TRPCError } from "@trpc/server";
import { env } from "../../../env/server.mjs";
import { prisma } from "../../db";
import { v2 as cloudinary } fro... | 5 |
4n-ch4n/countries-app | ae268e0 | src/app/country/mappers/country.mapper.ts | TypeScript | www.github.com/4n-ch4n/countries-app/tree/main/src/app/country/mappers/country.mapper.ts | https://raw.githubusercontent.com/4n-ch4n/countries-app/ae268e0/src/app/country/mappers/country.mapper.ts | 4n-ch4n/countries-app ae268e0 src/app/country/mappers/country.mapper.ts | true | 200 | 749 | import type { Country } from "../interfaces/country.interface";
import type { RESTCountry } from "../interfaces/rest-countries.interfaces";
export class CountryMapper {
static mapRestCountryToCountry(restCountry: RESTCountry): Country {
return {
cca2: restCountry.cca2,
flag: restCountry.flag,
f... | 2 |
ilhanordukaya/e-Muhasebe | 3e86e51 | eMuhasebeClient/src/app/models/cash-register-detail.model.ts | TypeScript | www.github.com/ilhanordukaya/e-Muhasebe/tree/main/eMuhasebeClient/src/app/models/cash-register-detail.model.ts | https://raw.githubusercontent.com/ilhanordukaya/e-Muhasebe/3e86e51/eMuhasebeClient/src/app/models/cash-register-detail.model.ts | ilhanordukaya/e-Muhasebe 3e86e51 eMuhasebeClient/src/app/models/cash-register-detail.model.ts | true | 200 | 694 |
import { CashRegisterModel } from "./cash-register.model";
export class CashRegisterDetailModel{
id: string = ""
cashRegisterId: string = "";
date: string = "";
type: number = 0;
amount: number = 0;
depositAmount: number = 0;
withdrawalAmount: number = 0;
cashRegisterDetailId: string =... | 7 |
geunyoungno/nestjs-boilerplate | 3ee2502 | libs/framework/src/cors/cors.service.ts | TypeScript | www.github.com/geunyoungno/nestjs-boilerplate/tree/main/libs/framework/src/cors/cors.service.ts | https://raw.githubusercontent.com/geunyoungno/nestjs-boilerplate/3ee2502/libs/framework/src/cors/cors.service.ts | geunyoungno/nestjs-boilerplate 3ee2502 libs/framework/src/cors/cors.service.ts | true | 200 | 817 | import { CE_RUN_MODE } from '#common/shared/const-enum/CE_RUN_MODE';
import { Injectable } from '@nestjs/common';
import { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface';
import { ConfigService } from '@nestjs/config';
// import { ConfigService } from '@nestjs/config';
import { type Nest... | 6 |
srinikandula/myBus-angular | 97a6c1a | src/app/main/layout/customer-reports/service-feedback/service-feedback-routing.module.ts | TypeScript | www.github.com/srinikandula/myBus-angular/tree/main/src/app/main/layout/customer-reports/service-feedback/service-feedback-routing.module.ts | https://raw.githubusercontent.com/srinikandula/myBus-angular/97a6c1a/src/app/main/layout/customer-reports/service-feedback/service-feedback-routing.module.ts | srinikandula/myBus-angular 97a6c1a src/app/main/layout/customer-reports/service-feedback/service-feedback-routing.module.ts | true | 200 | 693 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {ServiceFeedbackComponent} from './service-feedback.component';
import {ServiceFeedbackReportComponent} from './service-feedback-report/service-feedback-report.component';
const routes: Routes = [
{
path: '',... | 0 |
mgcunado/newTasksToDo | f87b435 | src/priority/priority.controller.spec.ts | TypeScript | www.github.com/mgcunado/newTasksToDo/tree/main/src/priority/priority.controller.spec.ts | https://raw.githubusercontent.com/mgcunado/newTasksToDo/f87b435/src/priority/priority.controller.spec.ts | mgcunado/newTasksToDo f87b435 src/priority/priority.controller.spec.ts | true | 200 | 596 | import { Test, TestingModule } from '@nestjs/testing';
import { PriorityController } from './priority.controller';
import { PriorityService } from './priority.service';
describe('PriorityController', () => {
let controller: PriorityController;
beforeEach(async () => {
const module: TestingModule = await Test.... | 3 |
fidGaib/anidale | 25942ca | client/src/pages/watch/module.ts | TypeScript | www.github.com/fidGaib/anidale/tree/main/client/src/pages/watch/module.ts | https://raw.githubusercontent.com/fidGaib/anidale/25942ca/client/src/pages/watch/module.ts | fidGaib/anidale 25942ca client/src/pages/watch/module.ts | true | 200 | 1,383 | import { ChangeEvent } from 'react'
import { create } from 'zustand'
export interface DataTypes {
title: string
src: string
desc: string
}
export const dataAnime: DataTypes[] = [
{
title: 'Башня бога',
src: '/grand blue/1.mkv',
desc: `Lorem ipsum dolor sit amet consectetur, adipisicing elit. Volupt... | 1 |
PandaCrab/next-test | ad01a8a | hooks/sortProducts.ts | TypeScript | www.github.com/PandaCrab/next-test/tree/main/hooks/sortProducts.ts | https://raw.githubusercontent.com/PandaCrab/next-test/ad01a8a/hooks/sortProducts.ts | PandaCrab/next-test ad01a8a hooks/sortProducts.ts | true | 200 | 2,673 | import PropTypes from 'prop-types';
import React, { useState, useEffect, SetStateAction } from 'react';
import type { Stuff } from '../types/types';
interface Stars {
five: number;
four: number;
three: number;
two: number;
one: number;
}
const useSortProducts = (sortItems: Stuff[]): [Stuff[] | []... | 4 |
wendellestradairely/horde-flow | 7d911d6 | src/Hris/ClientApp/hordeflow/projects/hordeflowkit/src/lib/components/clr-forms-clone/common/hf-layout.ts | TypeScript | www.github.com/wendellestradairely/horde-flow/tree/main/src/Hris/ClientApp/hordeflow/projects/hordeflowkit/src/lib/components/clr-forms-clone/common/hf-layout.ts | https://raw.githubusercontent.com/wendellestradairely/horde-flow/7d911d6/src/Hris/ClientApp/hordeflow/projects/hordeflowkit/src/lib/components/clr-forms-clone/common/hf-layout.ts | wendellestradairely/horde-flow 7d911d6 src/Hris/ClientApp/hordeflow/projects/hordeflowkit/src/lib/components/clr-forms-clone/common/hf-layout.ts | true | 200 | 714 | /**
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { Directive, Input, OnInit } from "@angular/core";
import { HfLayouts, HfLayoutService } from "./pro... | 7 |
HighlanderRobotics/ScoutingServer2023-24 | 2035172 | manager2/editData.ts | TypeScript | www.github.com/HighlanderRobotics/ScoutingServer2023-24/tree/main/manager2/editData.ts | https://raw.githubusercontent.com/HighlanderRobotics/ScoutingServer2023-24/2035172/manager2/editData.ts | HighlanderRobotics/ScoutingServer2023-24 2035172 manager2/editData.ts | true | 200 | 322 | import { supabase } from './supabaseClient.js';
import axios from "axios";
import { addData } from './addData.js';
import {deleteData} from './deleteData.js';
export const editData = async (req: any, res: any) => {
deleteData(req, res)
addData(req, res)
res.status(200).send('done editing data')
}
... | 2 |
TrentStrum/Webulae | 6b9e342 | src/hooks/react-query/useProjects/useDeveloperProjects.ts | TypeScript | www.github.com/TrentStrum/Webulae/tree/main/src/hooks/react-query/useProjects/useDeveloperProjects.ts | https://raw.githubusercontent.com/TrentStrum/Webulae/6b9e342/src/hooks/react-query/useProjects/useDeveloperProjects.ts | TrentStrum/Webulae 6b9e342 src/hooks/react-query/useProjects/useDeveloperProjects.ts | true | 200 | 495 | import { useQuery } from '@tanstack/react-query';
import { apiClient } from '@/src/lib/apiClient';
import type { Project } from '@/src/types/project.types';
import type { UseQueryResult } from '@tanstack/react-query';
export const useDeveloperProjects = (): UseQueryResult<Project[], Error> =>
useQuery({
queryKey:... | 1 |
evgeny-gist/coxel-belgrade-frontend | b3ba78a | src/repositories/messages/messages-repository.ts | TypeScript | www.github.com/evgeny-gist/coxel-belgrade-frontend/tree/main/src/repositories/messages/messages-repository.ts | https://raw.githubusercontent.com/evgeny-gist/coxel-belgrade-frontend/b3ba78a/src/repositories/messages/messages-repository.ts | evgeny-gist/coxel-belgrade-frontend b3ba78a src/repositories/messages/messages-repository.ts | true | 200 | 2,707 | import { IMessagesApi, ResolveResponse } from "./dependencies/messages-api.interface";
import { makeAutoObservable } from "mobx";
import { Message } from "@domain/message";
import { selectAttributes, selectCompletedAttributes } from "./helpers";
import { CompletedAttribute } from "@domain/attribute";
import { IRequests... | 3 |
dataregion/DataEtatRegion-front | 48618ba | apps/financial-data/src/app/models/financial/financial-data.models.ts | TypeScript | www.github.com/dataregion/DataEtatRegion-front/tree/main/apps/financial-data/src/app/models/financial/financial-data.models.ts | https://raw.githubusercontent.com/dataregion/DataEtatRegion-front/48618ba/apps/financial-data/src/app/models/financial/financial-data.models.ts | dataregion/DataEtatRegion-front 48618ba apps/financial-data/src/app/models/financial/financial-data.models.ts | true | 200 | 1,572 | import {
CentreCouts,
Commune,
DomaineFonctionnel,
GroupeMarchandise,
LocalisationInterministerielle,
Programme,
Siret,
SourceFinancialData
} from './common.models';
import { Tag } from '../refs/tag.model';
import { ReferentielProgrammation } from '@models/refs/referentiel_programmation.model';
import {... | 6 |
StackmeisterGmbH/typescript-packages | 86d6a76 | packages/react-use-merged-ref/src/useMergedRef.ts | TypeScript | www.github.com/StackmeisterGmbH/typescript-packages/tree/main/packages/react-use-merged-ref/src/useMergedRef.ts | https://raw.githubusercontent.com/StackmeisterGmbH/typescript-packages/86d6a76/packages/react-use-merged-ref/src/useMergedRef.ts | StackmeisterGmbH/typescript-packages 86d6a76 packages/react-use-merged-ref/src/useMergedRef.ts | true | 200 | 648 | import type { ForwardedRef, Ref, RefCallback } from 'react'
import { useCallback } from 'react'
const updateRef = <Value>(ref: ForwardedRef<Value>, value: Value | null): void => {
if (typeof ref === 'function') {
ref(value)
} else if (typeof ref === 'object' && ref !== null && 'current' in ref) {
ref.curre... | 4 |
toannguyen112/tn-uptech-backend | 2f4f479 | src/infra/sequelize/models/category.model.ts | TypeScript | www.github.com/toannguyen112/tn-uptech-backend/tree/main/src/infra/sequelize/models/category.model.ts | https://raw.githubusercontent.com/toannguyen112/tn-uptech-backend/2f4f479/src/infra/sequelize/models/category.model.ts | toannguyen112/tn-uptech-backend 2f4f479 src/infra/sequelize/models/category.model.ts | true | 200 | 1,234 | import Helper from "../../../utils/Helper";
module.exports = function (sequelize, DataTypes) {
const Category = sequelize.define(
"categories",
{
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true,
},
... | 0 |
ShaakhDev/Dict | e6a40a8 | src/types/index.ts | TypeScript | www.github.com/ShaakhDev/Dict/tree/main/src/types/index.ts | https://raw.githubusercontent.com/ShaakhDev/Dict/e6a40a8/src/types/index.ts | ShaakhDev/Dict e6a40a8 src/types/index.ts | true | 200 | 486 | import {ImageSourcePropType} from 'react-native';
export type MainCategory = {
name: string;
image: string;
id: string;
};
export type Department = {
_id: string;
name: string;
image: string;
};
export type Category = {
_id: string;
name: string;
deparment: Department;
};
export type Word = {
_i... | 7 |
duongnghia222/OnBehalf | 8182468 | onbehalf/submodules/n8n/packages/nodes-base/nodes/Asana/GenericFunctions.ts | TypeScript | www.github.com/duongnghia222/OnBehalf/tree/main/onbehalf/submodules/n8n/packages/nodes-base/nodes/Asana/GenericFunctions.ts | https://raw.githubusercontent.com/duongnghia222/OnBehalf/8182468/onbehalf/submodules/n8n/packages/nodes-base/nodes/Asana/GenericFunctions.ts | duongnghia222/OnBehalf 8182468 onbehalf/submodules/n8n/packages/nodes-base/nodes/Asana/GenericFunctions.ts | true | 200 | 3,495 | import get from 'lodash/get';
import type {
IDataObject,
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IHttpRequestMethods,
IHttpRequestOptions,
INodePropertyOptions,
} from 'n8n-workflow';
/**
* Make an API request to Asana
*
*/
export async function asanaApiRequest(
this: IHookFunctions | IExe... | 2 |
Farfetch/blackout | 34b7791 | packages/react/src/contents/utils/getCategories.ts | TypeScript | www.github.com/Farfetch/blackout/tree/main/packages/react/src/contents/utils/getCategories.ts | https://raw.githubusercontent.com/Farfetch/blackout/34b7791/packages/react/src/contents/utils/getCategories.ts | Farfetch/blackout 34b7791 packages/react/src/contents/utils/getCategories.ts | true | 200 | 909 | import { initial } from 'lodash-es';
import type { Breadcrumb } from '../types/index.js';
/**
* Agreggate all the url texts in breadcrumbs into strings separated by commas.
*
* @example
* ```
* const breadcrumbs = [{ text: 'Homepage' }, { text: 'About' }];
* const categories = getCategories(breadcrumbs);
* Resu... | 6 |
masaki632d/yumemi_test_chart | d317302 | src/components/TopPage/PopulationGraph/setupHighcharts.ts | TypeScript | www.github.com/masaki632d/yumemi_test_chart/tree/main/src/components/TopPage/PopulationGraph/setupHighcharts.ts | https://raw.githubusercontent.com/masaki632d/yumemi_test_chart/d317302/src/components/TopPage/PopulationGraph/setupHighcharts.ts | masaki632d/yumemi_test_chart d317302 src/components/TopPage/PopulationGraph/setupHighcharts.ts | true | 200 | 788 | import Highcharts from 'highcharts'
import HighchartsMore from 'highcharts/highcharts-more'
import HighchartsExporting from 'highcharts/modules/exporting'
import NoDataToDisplay from 'highcharts/modules/no-data-to-display'
/**
* Highchartsの拡張モジュールとプラグイン を設定する関数
*/
export const setupHighcharts = () => {
if (typeof ... | 1 |
mk1808/MyPin | 5275336 | userInterface/src/main/ts/src/app/core/services/api/maps-api.service.ts | TypeScript | www.github.com/mk1808/MyPin/tree/main/userInterface/src/main/ts/src/app/core/services/api/maps-api.service.ts | https://raw.githubusercontent.com/mk1808/MyPin/5275336/userInterface/src/main/ts/src/app/core/services/api/maps-api.service.ts | mk1808/MyPin 5275336 userInterface/src/main/ts/src/app/core/services/api/maps-api.service.ts | true | 200 | 1,566 | import { Injectable } from '@angular/core';
import { RestService } from '../rest.service';
import { Observable } from 'rxjs';
import { MpMap } from '../../models/MpMap';
import { Sharing } from '../../models/Sharing';
import { SharingDto } from '../../models/SharingDto';
import { MapFilterDto } from '../../models/MapFi... | 3 |
OumaimaDghaies/Frontend-Angular-Stage | caa2f25 | src/app/manageintervention/intervention.component.ts | TypeScript | www.github.com/OumaimaDghaies/Frontend-Angular-Stage/tree/main/src/app/manageintervention/intervention.component.ts | https://raw.githubusercontent.com/OumaimaDghaies/Frontend-Angular-Stage/caa2f25/src/app/manageintervention/intervention.component.ts | OumaimaDghaies/Frontend-Angular-Stage caa2f25 src/app/manageintervention/intervention.component.ts | true | 200 | 11,236 | import { ManageInterventionService } from './manageintervention.service';
import { Employee, Intervention, Panne, Preparation, Immobilisation, Operation } from './manageintervention';
import { registerLocaleData } from '@angular/common';
import {
AfterViewInit,
Component,
EventEmitter,
Input,
LOCALE_ID,
OnC... | 4 |
diegooliveira21/uparking-api | 9675f4d | src/builder/logger/logger.ts | TypeScript | www.github.com/diegooliveira21/uparking-api/tree/main/src/builder/logger/logger.ts | https://raw.githubusercontent.com/diegooliveira21/uparking-api/9675f4d/src/builder/logger/logger.ts | diegooliveira21/uparking-api 9675f4d src/builder/logger/logger.ts | true | 200 | 1,168 | import { Log, Logging } from "@google-cloud/logging";
import { google } from "@google-cloud/logging/build/protos/protos";
import LogSeverity = google.logging.type.LogSeverity;
import { Label } from "./logger.type";
export default class Logger {
private logging = new Logging({
projectId: '',
})
private log: ... | 0 |
dderakhshani/ClassAid | 151fe60 | src/app/pages/reports/class-report/class-report-routing.module.ts | TypeScript | www.github.com/dderakhshani/ClassAid/tree/main/src/app/pages/reports/class-report/class-report-routing.module.ts | https://raw.githubusercontent.com/dderakhshani/ClassAid/151fe60/src/app/pages/reports/class-report/class-report-routing.module.ts | dderakhshani/ClassAid 151fe60 src/app/pages/reports/class-report/class-report-routing.module.ts | true | 200 | 550 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ClassReportPage } from './class-report.page';
const routes: Routes = [
{
path: ':sessionId',
component: ClassReportPage
},
{
path: 'home-work',
loadChildren: () => imp... | 7 |
hreis/aws-secret-manager | 6a87b7f | src/app/app.module.ts | TypeScript | www.github.com/hreis/aws-secret-manager/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/hreis/aws-secret-manager/6a87b7f/src/app/app.module.ts | hreis/aws-secret-manager 6a87b7f src/app/app.module.ts | true | 200 | 1,902 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { LogonComponent } from '... | 2 |
shubham3971/testing-powerbi | 5a40b9a | src/common/interfaces/user/auth.interface.ts | TypeScript | www.github.com/shubham3971/testing-powerbi/tree/main/src/common/interfaces/user/auth.interface.ts | https://raw.githubusercontent.com/shubham3971/testing-powerbi/5a40b9a/src/common/interfaces/user/auth.interface.ts | shubham3971/testing-powerbi 5a40b9a src/common/interfaces/user/auth.interface.ts | true | 200 | 397 | export interface IUserRole {
key: RoleKey | string;
role: string;
}
enum RoleKey {
ADMIN,
AUDITOR,
TRANSCRIBER,
PREPARER,
MANAGEMENT,
SITEADMIN,
GLOBALSITEADMIN
}
export enum Roles {
ADMIN = 'ADMIN',
SITEADMIN = 'SITEADMIN',
AUDITOR = 'AUDITOR',
MANAGEMENT = 'MANAGEMENT',
TRANSCRIBER = 'TR... | 6 |
Kenya-West/coub2rss-nhost | ef90ce5 | services/coub-rss.facade.ts | TypeScript | www.github.com/Kenya-West/coub2rss-nhost/tree/main/services/coub-rss.facade.ts | https://raw.githubusercontent.com/Kenya-West/coub2rss-nhost/ef90ce5/services/coub-rss.facade.ts | Kenya-West/coub2rss-nhost ef90ce5 services/coub-rss.facade.ts | true | 200 | 6,268 | import { CoubTimelineModel} from '../models/coub-timelines.model';
import { Rss2ItemFeedPost } from '../models/atom-feed-post.model';
import { CoubFeedConfigModel } from '../models/coub-feed-config.model';
import xml from 'xml';
const feedObject = {
rss: [
{
_attr: {
version: "2.0",
... | 3 |
Fo-ox/connor-server | 6ceaaaa | src/modules/user/user.module.ts | TypeScript | www.github.com/Fo-ox/connor-server/tree/main/src/modules/user/user.module.ts | https://raw.githubusercontent.com/Fo-ox/connor-server/6ceaaaa/src/modules/user/user.module.ts | Fo-ox/connor-server 6ceaaaa src/modules/user/user.module.ts | true | 200 | 1,046 | import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from './entities/user-entity';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@... | 1 |
hellzz13/api-rest-node-typescript | 7576f94 | src/server/controllers/cidades/Create.ts | TypeScript | www.github.com/hellzz13/api-rest-node-typescript/tree/main/src/server/controllers/cidades/Create.ts | https://raw.githubusercontent.com/hellzz13/api-rest-node-typescript/7576f94/src/server/controllers/cidades/Create.ts | hellzz13/api-rest-node-typescript 7576f94 src/server/controllers/cidades/Create.ts | true | 200 | 607 | import { Request, Response } from "express";
import * as yup from "yup";
import { validation } from "../../shared/middleware";
import { StatusCodes } from "http-status-codes";
interface ICidade {
nome: string;
}
export const createValidation = validation((getSchema) => ({
body: getSchema<ICidade>(
yup.object... | 4 |
XasYer/YePanel | 4c9405a | src/api/login/index.ts | TypeScript | www.github.com/XasYer/YePanel/tree/main/src/api/login/index.ts | https://raw.githubusercontent.com/XasYer/YePanel/4c9405a/src/api/login/index.ts | XasYer/YePanel 4c9405a src/api/login/index.ts | true | 200 | 7,916 | import { randomUUID } from 'crypto'
import { RouteOptions } from 'fastify'
import { config, version } from '@/common'
import fs from 'fs'
import { join } from 'path'
import { setConfigDataCache, setPluginIconPath, addCustomRoutes } from '@/api/plugins'
const token: { [uin: string]: string } = {}
export const getToken... | 0 |
jtappen1/tweeter-project | 131b35b | tweeter-server/src/dao/FollowsDao.ts | TypeScript | www.github.com/jtappen1/tweeter-project/tree/main/tweeter-server/src/dao/FollowsDao.ts | https://raw.githubusercontent.com/jtappen1/tweeter-project/131b35b/tweeter-server/src/dao/FollowsDao.ts | jtappen1/tweeter-project 131b35b tweeter-server/src/dao/FollowsDao.ts | true | 200 | 12,194 | import {
DeleteCommand,
DynamoDBDocumentClient,
GetCommand,
PutCommand,
QueryCommand,
UpdateCommand,
} from "@aws-sdk/lib-dynamodb";
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { follows } from "../entity/Follower";
import { DataPage } from "../entity/DataPage";
imp... | 7 |
fonsy91/ComunicacionesAngular | 4c3e66c | src/app/components/hijo4/hijo4.component.ts | TypeScript | www.github.com/fonsy91/ComunicacionesAngular/tree/main/src/app/components/hijo4/hijo4.component.ts | https://raw.githubusercontent.com/fonsy91/ComunicacionesAngular/4c3e66c/src/app/components/hijo4/hijo4.component.ts | fonsy91/ComunicacionesAngular 4c3e66c src/app/components/hijo4/hijo4.component.ts | true | 200 | 1,322 | import { Component, OnInit } from '@angular/core';
import { Subscription, delay, of } from 'rxjs';
import { Comunicacion4Component } from '../comunicacion4/comunicacion4.component';
import { ComunicacionRxjsService } from 'src/app/services/comunicacion-rxjs.service';
@Component({
selector: 'app-hijo4',
templateUrl... | 2 |
IcyScany/chat-room | 4fb82dc | client/src/api/fetch.ts | TypeScript | www.github.com/IcyScany/chat-room/tree/main/client/src/api/fetch.ts | https://raw.githubusercontent.com/IcyScany/chat-room/4fb82dc/client/src/api/fetch.ts | IcyScany/chat-room 4fb82dc client/src/api/fetch.ts | true | 200 | 940 | import axios, { AxiosInstance } from 'axios'
import { AxiosResponse, InternalAxiosRequestConfig } from 'axios'
import cookie from 'js-cookie'
export const baseURL = '//127.0.0.1:3000'
const fetch: AxiosInstance = axios.create({
timeout: 60000,
baseURL: baseURL,
headers: {
'Cache-Control': 'no-cache',
Pa... | 3 |
Pewtro/blizzard-api | 64899a1 | packages/wow/src/character-hunter-pets/character-hunter-pets.ts | TypeScript | www.github.com/Pewtro/blizzard-api/tree/main/packages/wow/src/character-hunter-pets/character-hunter-pets.ts | https://raw.githubusercontent.com/Pewtro/blizzard-api/64899a1/packages/wow/src/character-hunter-pets/character-hunter-pets.ts | Pewtro/blizzard-api 64899a1 packages/wow/src/character-hunter-pets/character-hunter-pets.ts | true | 200 | 697 | import type { Resource } from '@blizzard-api/core';
import type { CharacterHunterPetsSummaryResponse } from './types';
/**
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
* @param realmSlug The slug of the realm.
* @param charac... | 6 |
bhumika4731/NESTJS-order-management | 1d5562d | src/auth/jwt.strategy.ts | TypeScript | www.github.com/bhumika4731/NESTJS-order-management/tree/main/src/auth/jwt.strategy.ts | https://raw.githubusercontent.com/bhumika4731/NESTJS-order-management/1d5562d/src/auth/jwt.strategy.ts | bhumika4731/NESTJS-order-management 1d5562d src/auth/jwt.strategy.ts | true | 200 | 1,276 | import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy as JwtStrategyBase } from 'passport-jwt'; // Import the base Strategy class from passport-jwt
import { ExtractJwt } from 'passport-jwt';
import { AuthService } from './auth.service';
import { ConfigS... | 0 |
iambilalriaz/expense-tracker | 9b064cb | src/app/store.ts | TypeScript | www.github.com/iambilalriaz/expense-tracker/tree/main/src/app/store.ts | https://raw.githubusercontent.com/iambilalriaz/expense-tracker/9b064cb/src/app/store.ts | iambilalriaz/expense-tracker 9b064cb src/app/store.ts | true | 200 | 598 | import { configureStore } from '@reduxjs/toolkit';
import authReducer from '@components/auth/authSlice';
import budgetFormReducer from '@components/Budget/BudgetForm/budgetFormSlice';
import homeReducer from '@components/Home/homeSlice';
import expenseFormSReducer from '@components/Expenses/expenseFormSlice';
export co... | 2 |
ConGustoAI/chat | 6a4508e | src/lib/utils/pdf.svelte.ts | TypeScript | www.github.com/ConGustoAI/chat/tree/main/src/lib/utils/pdf.svelte.ts | https://raw.githubusercontent.com/ConGustoAI/chat/6a4508e/src/lib/utils/pdf.svelte.ts | ConGustoAI/chat 6a4508e src/lib/utils/pdf.svelte.ts | true | 200 | 3,927 | import { A } from '$lib/appstate.svelte';
import { assert } from './utils';
import dbg from 'debug';
const debug = dbg('app:utils:pdf');
import * as pdfjs from 'pdfjs-dist';
pdfjs.GlobalWorkerOptions.workerSrc = '/pdf.worker.mjs';
export { pdfjs };
export async function PDFThumbnail(media: MediaInterface): Promise<F... | 7 |
nonsense9/react-online-store | be8d51b | src/models/index.ts | TypeScript | www.github.com/nonsense9/react-online-store/tree/main/src/models/index.ts | https://raw.githubusercontent.com/nonsense9/react-online-store/be8d51b/src/models/index.ts | nonsense9/react-online-store be8d51b src/models/index.ts | true | 200 | 310 | export interface Filter {
label: string;
items: { text: string | number; id: number }[];
}
export interface Item {
id: string;
title: string;
brand: string;
memory: string;
color: string;
display: string;
camera: string;
ram: string;
sim: string;
imageSrc: string;
price: string;
}
| 6 |
Roiney/TFC | 5515acf | app/backend/src/utilis/decodeToken.ts | TypeScript | www.github.com/Roiney/TFC/tree/main/app/backend/src/utilis/decodeToken.ts | https://raw.githubusercontent.com/Roiney/TFC/5515acf/app/backend/src/utilis/decodeToken.ts | Roiney/TFC 5515acf app/backend/src/utilis/decodeToken.ts | true | 200 | 311 | import { verify } from 'jsonwebtoken';
import { IJWT } from '../interfaces/IJwt';
const decodeToken = (token: string) => {
console.log('decode', token);
const { payload } = verify(token, process.env.JWT_SECRET as string) as IJWT;
console.log(payload);
return payload;
};
export default decodeToken;
| 0 |
blenderskool/react-localstorage-hooks | 88e5b7d | tests/useLocalStorageState.test.ts | TypeScript | www.github.com/blenderskool/react-localstorage-hooks/tree/main/tests/useLocalStorageState.test.ts | https://raw.githubusercontent.com/blenderskool/react-localstorage-hooks/88e5b7d/tests/useLocalStorageState.test.ts | blenderskool/react-localstorage-hooks 88e5b7d tests/useLocalStorageState.test.ts | true | 200 | 4,984 | import { act, renderHook } from '@testing-library/react-hooks';
import { useLocalStorageState } from '../src';
describe('useLocalStorageState', () => {
it('keeps localstorage to null if initialState is not set', () => {
const { result } = renderHook(() => useLocalStorageState<number>('test'));
expect(result... | 3 |
Chakir-Ayoub/PFA_Front | e6775ed | src/app/admin/terrain/terrain-add/terrain-add.component.ts | TypeScript | www.github.com/Chakir-Ayoub/PFA_Front/tree/main/src/app/admin/terrain/terrain-add/terrain-add.component.ts | https://raw.githubusercontent.com/Chakir-Ayoub/PFA_Front/e6775ed/src/app/admin/terrain/terrain-add/terrain-add.component.ts | Chakir-Ayoub/PFA_Front e6775ed src/app/admin/terrain/terrain-add/terrain-add.component.ts | true | 200 | 2,768 | import { Component, Inject, OnInit } from '@angular/core';
import { inject } from '@angular/core/testing';
import { FormBuilder, FormGroup } from '@angular/forms';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { TerrainServiceService } from 'src/app/services/terrain-service.service';
... | 2 |
DanielGonzlez/TFG | 20f5cc7 | start/nodemailer.ts | TypeScript | www.github.com/DanielGonzlez/TFG/tree/main/start/nodemailer.ts | https://raw.githubusercontent.com/DanielGonzlez/TFG/20f5cc7/start/nodemailer.ts | DanielGonzlez/TFG 20f5cc7 start/nodemailer.ts | true | 200 | 331 | import nodemailer from 'nodemailer';
const transporter = nodemailer.createTransport({
host: 'smtp.gmail.com',
port: 587, //! Esta usando el puerto 587 para conexiones seguras (STARTTLS)
secure: false,
auth: {
user: 'equipodeluminaria@gmail.com',
pass: 'acrf rlvx bmun sqmc ',
},
});
export default tr... | 7 |
ZOUANI/ormvh-v2 | 14705fe | src/test/javascript/spec/app/entities/le-service/le-service.service.spec.ts | TypeScript | www.github.com/ZOUANI/ormvh-v2/tree/main/src/test/javascript/spec/app/entities/le-service/le-service.service.spec.ts | https://raw.githubusercontent.com/ZOUANI/ormvh-v2/14705fe/src/test/javascript/spec/app/entities/le-service/le-service.service.spec.ts | ZOUANI/ormvh-v2 14705fe src/test/javascript/spec/app/entities/le-service/le-service.service.spec.ts | true | 200 | 4,489 | import { TestBed, getTestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import * as moment from 'moment';
import { DATE_TIME_FORMAT } from 'app/shared/constants/input.constants';
import { LeServiceService } from 'app/entities/le-service... | 0 |
oktapodia/royco-sdk | 8cebf90 | sdk/constants/token-map/1/definitions/1-0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70.ts | TypeScript | www.github.com/oktapodia/royco-sdk/tree/main/sdk/constants/token-map/1/definitions/1-0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70.ts | https://raw.githubusercontent.com/oktapodia/royco-sdk/8cebf90/sdk/constants/token-map/1/definitions/1-0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70.ts | oktapodia/royco-sdk 8cebf90 sdk/constants/token-map/1/definitions/1-0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70.ts | true | 200 | 413 | import { defineToken } from "@/sdk/constants";
export default defineToken({
id: "1-0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70",
chain_id: 1,
contract_address: "0xba386a4ca26b85fd057ab1ef86e3dc7bdeb5ce70",
name: "Jesus Coin",
symbol: "JESUS",
image: "https://s2.coinmarketcap.com/static/img/coins/64x64/24747... | 2 |
geetansh7/angular | 23c7212 | ng-style-class-app/src/app/app.component.ts | TypeScript | www.github.com/geetansh7/angular/tree/main/ng-style-class-app/src/app/app.component.ts | https://raw.githubusercontent.com/geetansh7/angular/23c7212/ng-style-class-app/src/app/app.component.ts | geetansh7/angular 23c7212 ng-style-class-app/src/app/app.component.ts | true | 200 | 290 | import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'ng-style-class-app';
blackColor = 'black';
getClass(){
return ['one', 'two'];
}
}
| 7 |
gabe2207/Bike-Cripto | f7b544e | src/index.ts | TypeScript | www.github.com/gabe2207/Bike-Cripto/tree/main/src/index.ts | https://raw.githubusercontent.com/gabe2207/Bike-Cripto/f7b544e/src/index.ts | gabe2207/Bike-Cripto f7b544e src/index.ts | true | 200 | 1,312 | import { App } from "./app";
import { Bike } from "./bike";
import { Rent } from "./rent";
import { User } from "./user";
const bike = new Bike('mountain bike', 'mountain',
123, 500, 100.5, 'desc', 5, [], '101', false)
const bike2 = new Bike('run bike', 'mountain',
123, 500, 100.5, 'desc', 5, [], '11... | 6 |
yovogi/angular-basics | b65426b | src/app/components/data-manipulation/user-events/user-events.component.ts | TypeScript | www.github.com/yovogi/angular-basics/tree/main/src/app/components/data-manipulation/user-events/user-events.component.ts | https://raw.githubusercontent.com/yovogi/angular-basics/b65426b/src/app/components/data-manipulation/user-events/user-events.component.ts | yovogi/angular-basics b65426b src/app/components/data-manipulation/user-events/user-events.component.ts | true | 200 | 695 | import { Component } from "@angular/core";
@Component({
selector: "user-events",
templateUrl: "./user-events.component.html",
styleUrls: ["./user-events.component.scss"],
})
export class UserEventsComponent {
public lastPressedKey: string = "Implement This";
public isRedSquareHovered: boolean = fal... | 3 |
nikail23/Diplom | 7064163 | FlowerShop/client/src/app/services/cart.service.ts | TypeScript | www.github.com/nikail23/Diplom/tree/main/FlowerShop/client/src/app/services/cart.service.ts | https://raw.githubusercontent.com/nikail23/Diplom/7064163/FlowerShop/client/src/app/services/cart.service.ts | nikail23/Diplom 7064163 FlowerShop/client/src/app/services/cart.service.ts | true | 200 | 4,616 | import { CatalogService } from './catalog.service';
import { ItemOrderDto, ShoppingCartDto } from '../classes/cart';
import { EventEmitter, Injectable, Output } from '@angular/core';
import { Flower } from '../classes/flower';
import { UserService } from './user.service';
import { Observable, of, forkJoin } from 'rxjs'... | 0 |
FranciscoJavier04/DWEC | 07b836a | proyectoAngular/frontend/src/app/services/posicione.service.spec.ts | TypeScript | www.github.com/FranciscoJavier04/DWEC/tree/main/proyectoAngular/frontend/src/app/services/posicione.service.spec.ts | https://raw.githubusercontent.com/FranciscoJavier04/DWEC/07b836a/proyectoAngular/frontend/src/app/services/posicione.service.spec.ts | FranciscoJavier04/DWEC 07b836a proyectoAngular/frontend/src/app/services/posicione.service.spec.ts | true | 200 | 371 | import { TestBed } from '@angular/core/testing';
import { PosicioneService } from './posicione.service';
describe('PosicioneService', () => {
let service: PosicioneService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(PosicioneService);
});
it('should be created', (... | 2 |
BryanMendoza1997/PlataformaEducativaIT | 22a574a | src/app/asignatura/pages/ejercicio-page/ejercicio-page.component.ts | TypeScript | www.github.com/BryanMendoza1997/PlataformaEducativaIT/tree/main/src/app/asignatura/pages/ejercicio-page/ejercicio-page.component.ts | https://raw.githubusercontent.com/BryanMendoza1997/PlataformaEducativaIT/22a574a/src/app/asignatura/pages/ejercicio-page/ejercicio-page.component.ts | BryanMendoza1997/PlataformaEducativaIT 22a574a src/app/asignatura/pages/ejercicio-page/ejercicio-page.component.ts | true | 200 | 710 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-ejercicio-page',
templateUrl: './ejercicio-page.component.html',
styleUrls: ['./ejercicio-page.component.scss']
})
export class EjercicioPageComponent implements OnInit {
act... | 7 |
pamateo/IMC | 0389465 | src/app/home/home.module.ts | TypeScript | www.github.com/pamateo/IMC/tree/main/src/app/home/home.module.ts | https://raw.githubusercontent.com/pamateo/IMC/0389465/src/app/home/home.module.ts | pamateo/IMC 0389465 src/app/home/home.module.ts | true | 200 | 596 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HomePage } from './home.page';
import { HomePageRoutingModule } from './home-routing.module';
import { Moda... | 6 |
gunnermadsen/portfolioapis-nest | 3c52fd7 | src/modules/account/controllers/account.controller.ts | TypeScript | www.github.com/gunnermadsen/portfolioapis-nest/tree/main/src/modules/account/controllers/account.controller.ts | https://raw.githubusercontent.com/gunnermadsen/portfolioapis-nest/3c52fd7/src/modules/account/controllers/account.controller.ts | gunnermadsen/portfolioapis-nest 3c52fd7 src/modules/account/controllers/account.controller.ts | true | 200 | 1,809 | import { Controller, Get, Res, Req, UseGuards, NotFoundException, InternalServerErrorException, Delete } from '@nestjs/common'
import { Request, Response } from 'express'
import { AuthGuard } from '@nestjs/passport';
import { AccountService } from '@/modules/account/service/account.service'
@Controller('api/account')
... | 3 |
kaiqueealm/github-clone | f3a12b1 | src/pages/Repo/styles.ts | TypeScript | www.github.com/kaiqueealm/github-clone/tree/main/src/pages/Repo/styles.ts | https://raw.githubusercontent.com/kaiqueealm/github-clone/f3a12b1/src/pages/Repo/styles.ts | kaiqueealm/github-clone f3a12b1 src/pages/Repo/styles.ts | true | 200 | 1,743 | import styled, { css } from 'styled-components';
import { RiBookMarkLine, RiStarLine } from 'react-icons/ri'
import { AiOutlineFork } from 'react-icons/ai'
import { FaGithub } from 'react-icons/fa'
export const Container = styled.div`
display: flex;
flex-direction: column;
padding: 16px;
>p{
font-size: 16... | 0 |
surisoko/nestjs-domain-driven-design | dfea7a5 | src/products/domain/repository/product.repository.ts | TypeScript | www.github.com/surisoko/nestjs-domain-driven-design/tree/main/src/products/domain/repository/product.repository.ts | https://raw.githubusercontent.com/surisoko/nestjs-domain-driven-design/dfea7a5/src/products/domain/repository/product.repository.ts | surisoko/nestjs-domain-driven-design dfea7a5 src/products/domain/repository/product.repository.ts | true | 200 | 354 | import { Product } from '../entity/product.entity'
import { ProductId } from '../value-object/product-id.value-object'
export interface ProductRepository {
create(product: Product): Promise<void>
findById(id: ProductId): Promise<Product>
findAll(): Promise<Product[]>
}
export const productRepositoryDefinition =... | 2 |
VasilyVP/aws-cognito-s3-webapp | 9826a88 | src/StorageManagement.ts | TypeScript | www.github.com/VasilyVP/aws-cognito-s3-webapp/tree/main/src/StorageManagement.ts | https://raw.githubusercontent.com/VasilyVP/aws-cognito-s3-webapp/9826a88/src/StorageManagement.ts | VasilyVP/aws-cognito-s3-webapp 9826a88 src/StorageManagement.ts | true | 200 | 648 | import { Storage } from '@aws-amplify/storage'
type StorageListOptions = {
level?: 'private' | 'protected' | 'public';
maxKeys?: number;
}
type StoragePutOptions = {
level?: 'private' | 'protected' | 'public';
contentType?: string;
}
export default class StorageManagement {
static list(path = '',... | 7 |
Riccardo9190/electron-translate-app | f23da20 | src/index.ts | TypeScript | www.github.com/Riccardo9190/electron-translate-app/tree/main/src/index.ts | https://raw.githubusercontent.com/Riccardo9190/electron-translate-app/f23da20/src/index.ts | Riccardo9190/electron-translate-app f23da20 src/index.ts | true | 200 | 518 | const { app, BrowserWindow } = require('electron')
function createWindow() {
const window = new BrowserWindow({
width: 800,
height: 800,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
}
})
window.loadFile('index.html')
};
app.whenReady().then(createWindow);
app.o... | 6 |
picoloto/pior-filme | d7ec8a4 | src/app/shared/mocks/movie-winner-by-year.mock.ts | TypeScript | www.github.com/picoloto/pior-filme/tree/main/src/app/shared/mocks/movie-winner-by-year.mock.ts | https://raw.githubusercontent.com/picoloto/pior-filme/d7ec8a4/src/app/shared/mocks/movie-winner-by-year.mock.ts | picoloto/pior-filme d7ec8a4 src/app/shared/mocks/movie-winner-by-year.mock.ts | true | 200 | 521 | export const Movie_Winner_By_Year_Mock = [
{
id: 181,
year: 2015,
title: 'Fantastic Four',
studios: ['20th Century Fox'],
producers: [
'Gregory Goodman',
'Hutch Parker',
'Matthew Vaughn',
'Robert Kulzer',
'Simon Kinberg',
],
winner: true,
},
{
id: 182,... | 5 |
danharold/advent-of-code | 95b7935 | src/2023/q4/p2/main.ts | TypeScript | www.github.com/danharold/advent-of-code/tree/main/src/2023/q4/p2/main.ts | https://raw.githubusercontent.com/danharold/advent-of-code/95b7935/src/2023/q4/p2/main.ts | danharold/advent-of-code 95b7935 src/2023/q4/p2/main.ts | true | 200 | 1,211 | import { read } from '../../../utils/utils';
import { log } from 'console';
import { parseCard, findMatches } from '../p1/main';
/*
populate array that tracks number of copies
- initialise array of 1s of length = # of cards
- iterate through the cards:
* find the number of matches m
... | 3 |
seb-oss/Spark-packages | f5e4fd2 | packages/openapi-typegen/src/generator/formatter.ts | TypeScript | www.github.com/seb-oss/Spark-packages/tree/main/packages/openapi-typegen/src/generator/formatter.ts | https://raw.githubusercontent.com/seb-oss/Spark-packages/f5e4fd2/packages/openapi-typegen/src/generator/formatter.ts | seb-oss/Spark-packages f5e4fd2 packages/openapi-typegen/src/generator/formatter.ts | true | 200 | 262 | import { type Options, format as pFormat } from 'prettier'
const options: Options = {
parser: 'typescript',
singleQuote: true,
semi: false,
trailingComma: 'all',
}
export const format = async (code: string): Promise<string> =>
pFormat(code, options)
| 0 |
Bedwards55/eit-prod | e9f94e5 | src/app/components/common/navbar/navbar.component.ts | TypeScript | www.github.com/Bedwards55/eit-prod/tree/main/src/app/components/common/navbar/navbar.component.ts | https://raw.githubusercontent.com/Bedwards55/eit-prod/e9f94e5/src/app/components/common/navbar/navbar.component.ts | Bedwards55/eit-prod e9f94e5 src/app/components/common/navbar/navbar.component.ts | true | 200 | 1,126 | import { Component, OnInit } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.scss']... | 2 |
HelyxXZeng/MangArchive | 7288f9f | src/reduxState/reducer/sessionReducer.ts | TypeScript | www.github.com/HelyxXZeng/MangArchive/tree/main/src/reduxState/reducer/sessionReducer.ts | https://raw.githubusercontent.com/HelyxXZeng/MangArchive/7288f9f/src/reduxState/reducer/sessionReducer.ts | HelyxXZeng/MangArchive 7288f9f src/reduxState/reducer/sessionReducer.ts | true | 200 | 614 | import { createSlice } from "@reduxjs/toolkit";
const sessionSlice = createSlice({
name: "sessionState",
initialState: {
isSignOut: true,
current_userID: null,
current_userName: "",
},
reducers: {
setSessionState: (state, action) => {
state.isSignOut = action.payload;
},
setUserID... | 7 |
yameneltahhan/Woofer | c483f0f | routes/ventes.ts | TypeScript | www.github.com/yameneltahhan/Woofer/tree/main/routes/ventes.ts | https://raw.githubusercontent.com/yameneltahhan/Woofer/c483f0f/routes/ventes.ts | yameneltahhan/Woofer c483f0f routes/ventes.ts | true | 200 | 2,819 | import { Hono } from 'hono';
import { db } from '../db';
export const ventesRoute = new Hono();
// Toutes les ventes
ventesRoute.get('/ventes', (c) => {
return new Promise((resolve) => {
db.all(`
SELECT V.ID_Vente, V.Nom_Produit, V.Quantite_Achat, V.Montant_Total, V.Date_Vente, W.Nom_Woofer
FROM Ve... | 6 |
kirti-byte/polaris-genai-poc | 69a6165 | promptfoo/node_modules/promptfoo/dist/src/providers/cohere.d.ts | TypeScript | www.github.com/kirti-byte/polaris-genai-poc/tree/main/promptfoo/node_modules/promptfoo/dist/src/providers/cohere.d.ts | https://raw.githubusercontent.com/kirti-byte/polaris-genai-poc/69a6165/promptfoo/node_modules/promptfoo/dist/src/providers/cohere.d.ts | kirti-byte/polaris-genai-poc 69a6165 promptfoo/node_modules/promptfoo/dist/src/providers/cohere.d.ts | true | 200 | 1,796 | import type { ApiProvider, ProviderResponse, ApiEmbeddingProvider, ProviderEmbeddingResponse } from '../types';
import type { EnvOverrides } from '../types/env';
interface CohereChatOptions {
apiKey?: string;
modelName?: string;
chatHistory?: Array<{
role: string;
message: string;
us... | 3 |
TERITORI/teritori-dapp | 6402d06 | packages/hooks/useNFTInfo.ts | TypeScript | www.github.com/TERITORI/teritori-dapp/tree/main/packages/hooks/useNFTInfo.ts | https://raw.githubusercontent.com/TERITORI/teritori-dapp/6402d06/packages/hooks/useNFTInfo.ts | TERITORI/teritori-dapp 6402d06 packages/hooks/useNFTInfo.ts | true | 200 | 16,016 | import { useQuery } from "@tanstack/react-query";
import { z } from "zod";
import { useBreedingConfig } from "./useBreedingConfig";
import { ConfigResponse as BreedingConfigResponse } from "../contracts-clients/teritori-breeding/TeritoriBreeding.types";
import { Metadata as Cw721MembershipMetadata } from "@/contracts... | 0 |
IvanRobak/my-auth-app | caad20c | src/theme/index.ts | TypeScript | www.github.com/IvanRobak/my-auth-app/tree/main/src/theme/index.ts | https://raw.githubusercontent.com/IvanRobak/my-auth-app/caad20c/src/theme/index.ts | IvanRobak/my-auth-app caad20c src/theme/index.ts | true | 200 | 1,888 | import { createTheme } from '@mui/material/styles';
export const theme = createTheme({
palette: {
primary: {
main: '#2563eb',
light: '#60a5fa',
dark: '#1d4ed8',
},
secondary: {
main: '#7c3aed',
light: '#a78bfa',
dark: '#5b21b6',
},
background: {
default: ... | 7 |
Moondevbeam/moondex | 4c3a871 | src/types/pokemon.ts | TypeScript | www.github.com/Moondevbeam/moondex/tree/main/src/types/pokemon.ts | https://raw.githubusercontent.com/Moondevbeam/moondex/4c3a871/src/types/pokemon.ts | Moondevbeam/moondex 4c3a871 src/types/pokemon.ts | true | 200 | 1,488 | export type PokemonType =
| 'normal'
| 'fire'
| 'water'
| 'electric'
| 'grass'
| 'ice'
| 'fighting'
| 'poison'
| 'ground'
| 'flying'
| 'psychic'
| 'bug'
| 'rock'
| 'ghost'
| 'dragon'
| 'dark'
| 'steel'
| 'fairy';
export type TypeColors = Record<PokemonType, string>... | 2 |
mabozed/vica-next-course | adace51 | src/app/api/comments/route.ts | TypeScript | www.github.com/mabozed/vica-next-course/tree/main/src/app/api/comments/route.ts | https://raw.githubusercontent.com/mabozed/vica-next-course/adace51/src/app/api/comments/route.ts | mabozed/vica-next-course adace51 src/app/api/comments/route.ts | true | 200 | 1,903 | import { NextRequest, NextResponse } from 'next/server'
import prisma from '@/utils/db'
import { verifyToken } from '@/utils/verifyToken'
import { CreateCommentDto } from '@/utils/dtos'
import { createCommentSchema } from '@/utils/validationSchemas'
/**
* @method POST
* @route ~/api/comments
* @desc Create... | 5 |
DmytroQIvanov/cloud_backend | 4477db1 | src/file/file.module.ts | TypeScript | www.github.com/DmytroQIvanov/cloud_backend/tree/main/src/file/file.module.ts | https://raw.githubusercontent.com/DmytroQIvanov/cloud_backend/4477db1/src/file/file.module.ts | DmytroQIvanov/cloud_backend 4477db1 src/file/file.module.ts | true | 200 | 1,202 | import { Module } from '@nestjs/common';
import { DatabaseModule } from '../database/database.module';
// import { fileProviders } from '../database/entities/file.providers';
// import { PhotoService } from './photo.service';
import { FileService } from './file.service';
import { TypeOrmModule } from '@nestjs/typeorm';... | 3 |
Deepjyoti554/AdminKit2 | ca008e5 | src/app/sign-up/sign-up.component.ts | TypeScript | www.github.com/Deepjyoti554/AdminKit2/tree/main/src/app/sign-up/sign-up.component.ts | https://raw.githubusercontent.com/Deepjyoti554/AdminKit2/ca008e5/src/app/sign-up/sign-up.component.ts | Deepjyoti554/AdminKit2 ca008e5 src/app/sign-up/sign-up.component.ts | true | 200 | 963 | import { Component, OnInit} from '@angular/core';
import { FormGroup, FormControl, FormControlName, FormBuilder, ReactiveFormsModule, FormsModule } from '@angular/forms';
import { FormService } from '../form.service';
interface User{
id?: number,
name: string,
email: string,
password: number
}
@Component({
... | 6 |
edsoft17/rick-and-morty | 7a78521 | src/app/characters/characters.component.ts | TypeScript | www.github.com/edsoft17/rick-and-morty/tree/main/src/app/characters/characters.component.ts | https://raw.githubusercontent.com/edsoft17/rick-and-morty/7a78521/src/app/characters/characters.component.ts | edsoft17/rick-and-morty 7a78521 src/app/characters/characters.component.ts | true | 200 | 4,686 | import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { interval } from 'rxjs'
import { Character } from '../class/RickMorty.model';
import { ResponseModel } from '../class/response.model';
import { RickMortyService } from '../services/rick-morty.service';
import { HttpErrorResponse } from '... | 0 |
ssobupak/tasks-app-django-react | b5083d7 | client/src/api/tasks.api.ts | TypeScript | www.github.com/ssobupak/tasks-app-django-react/tree/main/client/src/api/tasks.api.ts | https://raw.githubusercontent.com/ssobupak/tasks-app-django-react/b5083d7/client/src/api/tasks.api.ts | ssobupak/tasks-app-django-react b5083d7 client/src/api/tasks.api.ts | true | 200 | 503 | import axios from 'axios';
const tasksApi = axios.create({
baseURL: `http://localhost:8000/tasks/api/v1/tasks`,
});
export const getAllTasks = () => tasksApi.get('/');
export const getTask = (id: string | undefined) => tasksApi.get(`/${id}`);
export const createTask = (task: object) => tasksApi.post('/', task);
... | 2 |
ShmelyovOleg/calendar | 2765a22 | source/src/users/users.controller.ts | TypeScript | www.github.com/ShmelyovOleg/calendar/tree/main/source/src/users/users.controller.ts | https://raw.githubusercontent.com/ShmelyovOleg/calendar/2765a22/source/src/users/users.controller.ts | ShmelyovOleg/calendar 2765a22 source/src/users/users.controller.ts | true | 200 | 836 | import { Controller, Post, Body, Get, UseGuards } from '@nestjs/common';
import { UsersService } from './users.service';
import { Users } from './users.model';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { JwtAuthGuard } from 'src/auth/jwt-auth.guard';
@ApiTags('Users')
@Controller('us... | 7 |
newbieboiz/Sport-Hub | b509db5 | services/ratingFirebase.ts | TypeScript | www.github.com/newbieboiz/Sport-Hub/tree/main/services/ratingFirebase.ts | https://raw.githubusercontent.com/newbieboiz/Sport-Hub/b509db5/services/ratingFirebase.ts | newbieboiz/Sport-Hub b509db5 services/ratingFirebase.ts | true | 200 | 1,323 | import { ref, onValue, set, push } from 'firebase/database';
import { Rating } from 'types';
import { database } from './firebase';
export const getHubRatings = async (
hubId: number,
cb: (values: any[]) => void,
) => {
const hubRatingRef = ref(database, `ratings/${hubId}`);
onValue(hubRatingRef, (snapshot) =>... | 5 |
micheal081/Duplo-technical-test | 3ee5c48 | src/providers/beeceptor/beeceptor.controller.ts | TypeScript | www.github.com/micheal081/Duplo-technical-test/tree/main/src/providers/beeceptor/beeceptor.controller.ts | https://raw.githubusercontent.com/micheal081/Duplo-technical-test/3ee5c48/src/providers/beeceptor/beeceptor.controller.ts | micheal081/Duplo-technical-test 3ee5c48 src/providers/beeceptor/beeceptor.controller.ts | true | 200 | 750 | import { Body, Controller, Post, UseGuards } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { BeeceptorService } from './beeceptor.service';
import { NewTaxDto } from './dto/tax-dto';
import { TaxData } from './types';
import { Aut... | 3 |
FunTomas11/projekt-zesp-express | 1056271 | ClientApp/src/app/components/chat/chat.component.ts | TypeScript | www.github.com/FunTomas11/projekt-zesp-express/tree/main/ClientApp/src/app/components/chat/chat.component.ts | https://raw.githubusercontent.com/FunTomas11/projekt-zesp-express/1056271/ClientApp/src/app/components/chat/chat.component.ts | FunTomas11/projekt-zesp-express 1056271 ClientApp/src/app/components/chat/chat.component.ts | true | 200 | 7,322 | import {AfterViewChecked, Component, ElementRef, OnInit, ViewChild} from '@angular/core';
import { CommonModule } from "@angular/common";
import { MatInputModule } from "@angular/material/input";
import { MatFormFieldModule } from "@angular/material/form-field";
import { MatButtonModule } from "@angular/material/button... | 6 |
chelizichen/BasicHqServer | 6a2e99a | src/types/index.d.ts | TypeScript | www.github.com/chelizichen/BasicHqServer/tree/main/src/types/index.d.ts | https://raw.githubusercontent.com/chelizichen/BasicHqServer/6a2e99a/src/types/index.d.ts | chelizichen/BasicHqServer 6a2e99a src/types/index.d.ts | true | 200 | 815 | type CamelizeString<T extends PropertyKey> = T extends string
? string extends T
? string
: T extends `${infer F}_${infer R}`
? `${F}${Capitalize<CamelizeString<R>>}`
: T
: T
type Camelize<T> = { [K in keyof T as CamelizeString<K>]: T[K] }
type UnderlineCase<Str extends string> =
Str extends... | 0 |
sobh7771/job-board | f4f42d3 | domain/user/UserRepository.ts | TypeScript | www.github.com/sobh7771/job-board/tree/main/domain/user/UserRepository.ts | https://raw.githubusercontent.com/sobh7771/job-board/f4f42d3/domain/user/UserRepository.ts | sobh7771/job-board f4f42d3 domain/user/UserRepository.ts | true | 200 | 1,266 | import { Result } from 'neverthrow';
import { User } from '@/lib/drizzle/schema';
// Custom error types for repository operations
/**
* Error thrown when a user cannot be found by email.
*/
class UserNotFoundError extends Error {
constructor() {
super('Failed to find user by email');
this.name = 'UserNot... | 2 |
dalgit/moyagi | 07dad33 | hooks/common/useUploadImage.ts | TypeScript | www.github.com/dalgit/moyagi/tree/main/hooks/common/useUploadImage.ts | https://raw.githubusercontent.com/dalgit/moyagi/07dad33/hooks/common/useUploadImage.ts | dalgit/moyagi 07dad33 hooks/common/useUploadImage.ts | true | 200 | 768 | import { useRecoilCallback } from 'recoil'
import fileSelector from 'recoil/file/fileSelector'
import fileUrlSelector from 'recoil/file/fileUrlSelector'
const useUploadImage = () => {
const getFileUrl = useRecoilCallback(
({ snapshot }) =>
(key: string) => {
setTimeout(() => removeFile(key), 3000)
... | 4 |
photo-ground/FE | 710b729 | src/app/photographer/[id]/_libs/follow.ts | TypeScript | www.github.com/photo-ground/FE/tree/main/src/app/photographer/[id]/_libs/follow.ts | https://raw.githubusercontent.com/photo-ground/FE/710b729/src/app/photographer/%5Bid%5D/_libs/follow.ts | photo-ground/FE 710b729 src/app/photographer/[id]/_libs/follow.ts | true | 200 | 793 | import { PhotographerId } from '@/types/photographer';
import fetchWithAuth from '@/lib/fetchWithAuth';
import getAccessToken from '@/lib/getAccessToken';
export default async function follow(photographerId: PhotographerId) {
try {
const rawResponse = await fetchWithAuth(
`${process.env.NEXT_PUBLIC_BASE_UR... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.