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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
rapv97/Curso-de-angular-de-cero-a-experto | e684f41 | Angular/02-bases/src/app/app.component.ts | TypeScript | www.github.com/rapv97/Curso-de-angular-de-cero-a-experto/tree/main/Angular/02-bases/src/app/app.component.ts | https://raw.githubusercontent.com/rapv97/Curso-de-angular-de-cero-a-experto/e684f41/Angular/02-bases/src/app/app.component.ts | rapv97/Curso-de-angular-de-cero-a-experto e684f41 Angular/02-bases/src/app/app.component.ts | true | 200 | 334 | import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent {
public title: string = 'Hola mundo';
// sumar(){
// this.counter += 1;
// }
// restar(): void{
// this.counter -... | 1 |
Tekalo/common-app-api | c16d4ae | src/routes/applicants.ts | TypeScript | www.github.com/Tekalo/common-app-api/tree/main/src/routes/applicants.ts | https://raw.githubusercontent.com/Tekalo/common-app-api/c16d4ae/src/routes/applicants.ts | Tekalo/common-app-api c16d4ae src/routes/applicants.ts | true | 200 | 10,240 | import express, {
NextFunction,
Request,
RequestHandler,
Response,
} from 'express';
import ApplicantController from '@App/controllers/ApplicantController.js';
import { Applicants, Uploads } from '@capp/schemas';
import {
ApplicantRequestBody,
RawApplicantDraftSubmissionBody,
ApplicantStateRequestBody,
... | 4 |
Boki87/pdf-forms | b153c96 | lib/utils.ts | TypeScript | www.github.com/Boki87/pdf-forms/tree/main/lib/utils.ts | https://raw.githubusercontent.com/Boki87/pdf-forms/b153c96/lib/utils.ts | Boki87/pdf-forms b153c96 lib/utils.ts | true | 200 | 327 | import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
async function wait(time: number = 2000) {
return new Promise((res, rej) => {
setTimeout(() => {
res(true);
}, time);
});
}
export { cn, w... | 0 |
H3aven-Labs/h3-api-management | 35f914a | app/api/keys/route.ts | TypeScript | www.github.com/H3aven-Labs/h3-api-management/tree/main/app/api/keys/route.ts | https://raw.githubusercontent.com/H3aven-Labs/h3-api-management/35f914a/app/api/keys/route.ts | H3aven-Labs/h3-api-management 35f914a app/api/keys/route.ts | true | 200 | 1,988 | import { NextResponse } from 'next/server'
import crypto from 'crypto'
// In a real application, you would store API keys in a database
// This is a simplified example for demonstration purposes
const apiKeys = new Map()
export async function GET(request: Request) {
// In a real app, you would authenticate the user... | 6 |
Tonirobert/microfrontend | 11cef50 | projects/dashboard/src/app/dialog/dialog.component.ts | TypeScript | www.github.com/Tonirobert/microfrontend/tree/main/projects/dashboard/src/app/dialog/dialog.component.ts | https://raw.githubusercontent.com/Tonirobert/microfrontend/11cef50/projects/dashboard/src/app/dialog/dialog.component.ts | Tonirobert/microfrontend 11cef50 projects/dashboard/src/app/dialog/dialog.component.ts | true | 200 | 1,072 | import { Component, Inject, OnInit } from '@angular/core';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule, FormGroup} from '@angular/forms';
import { MAT_DIALOG_DATA, MatDialogRef ... | 3 |
CS-3035-2024/examples | 69264f8 | drawing-lecture/drawable/main.ts | TypeScript | www.github.com/CS-3035-2024/examples/tree/main/drawing-lecture/drawable/main.ts | https://raw.githubusercontent.com/CS-3035-2024/examples/69264f8/drawing-lecture/drawable/main.ts | CS-3035-2024/examples 69264f8 drawing-lecture/drawable/main.ts | true | 200 | 2,198 | import { startSimpleKit, setSKDrawCallback } from "../../simplekit/src/canvas-mode";
startSimpleKit();
setSKDrawCallback((gc) => {
gc.clearRect(0, 0, gc.canvas.width, gc.canvas.height);
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const demo = urlParams.get("... | 5 |
Edson-Arriaga/super-zenith-ai | 3845e93 | actions/substract-zenith-point.ts | TypeScript | www.github.com/Edson-Arriaga/super-zenith-ai/tree/main/actions/substract-zenith-point.ts | https://raw.githubusercontent.com/Edson-Arriaga/super-zenith-ai/3845e93/actions/substract-zenith-point.ts | Edson-Arriaga/super-zenith-ai 3845e93 actions/substract-zenith-point.ts | true | 200 | 597 | "use server"
import prisma from "@/src/lib/prisma";
import { getUser } from "./get-user";
export default async function substractZenithPoint(){
const user = await getUser()
let newPoints
if(user.zenithPoints > 0){
newPoints = user.zenithPoints - 1
await prisma.user.update({
... | 2 |
Hugo-Gehringer/WebRtcVideoChat | 39d2a12 | src/app/service/webrtc.service.ts | TypeScript | www.github.com/Hugo-Gehringer/WebRtcVideoChat/tree/main/src/app/service/webrtc.service.ts | https://raw.githubusercontent.com/Hugo-Gehringer/WebRtcVideoChat/39d2a12/src/app/service/webrtc.service.ts | Hugo-Gehringer/WebRtcVideoChat 39d2a12 src/app/service/webrtc.service.ts | true | 200 | 5,994 | import { Injectable } from '@angular/core';
import { io, Socket } from 'socket.io-client';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class WebrtcService {
private socket: Socket;
public localStream!: MediaStream;
private peerConnections: Map<string, RTCPeerConnection> ... | 7 |
velll/pirates | 8f40a1b | src/js/player.ts | TypeScript | www.github.com/velll/pirates/tree/main/src/js/player.ts | https://raw.githubusercontent.com/velll/pirates/8f40a1b/src/js/player.ts | velll/pirates 8f40a1b src/js/player.ts | true | 200 | 620 | import { Fleet } from "./game/fleet";
import { includes } from "./lib/includes";
class Player {
constructor(private readonly fleets: Fleet[]) {
}
public canPlay(fleet: Fleet) {
return includes(this.fleets, fleet);
}
// get the player fleet but only if there's a SINGLE fleet
// Will return null in a h... | 1 |
mohiuddin007/used-car-worth | df92efb | src/users/auth.service.spec.ts | TypeScript | www.github.com/mohiuddin007/used-car-worth/tree/main/src/users/auth.service.spec.ts | https://raw.githubusercontent.com/mohiuddin007/used-car-worth/df92efb/src/users/auth.service.spec.ts | mohiuddin007/used-car-worth df92efb src/users/auth.service.spec.ts | true | 200 | 661 | import { Test } from '@nestjs/testing';
import { AuthService } from './auth.service';
import { UsersService } from './users.service';
it('can create an instance of auth service', async () => {
//create a fake copy of the auth service
const fakeUsersService = {
find: () => Promise.resolve([]),
create: (emai... | 4 |
puzannshakya/project-2 | 91fa686 | frontend/src/features/cropEncyclopedia/cropEncyclopediaApiSlice.ts | TypeScript | www.github.com/puzannshakya/project-2/tree/main/frontend/src/features/cropEncyclopedia/cropEncyclopediaApiSlice.ts | https://raw.githubusercontent.com/puzannshakya/project-2/91fa686/frontend/src/features/cropEncyclopedia/cropEncyclopediaApiSlice.ts | puzannshakya/project-2 91fa686 frontend/src/features/cropEncyclopedia/cropEncyclopediaApiSlice.ts | true | 200 | 976 | import { TAG_TYPE } from "../../const/tags";
import { apiSlice } from "../../app/api/apiSlice";
export const cropEncyclopediaApiSlice = apiSlice.injectEndpoints({
endpoints: (builder) => ({
getCropAbout: builder.query<any, string>({
query: (id) => `/api/cropencyclopedias/${id}`,
providesTags: (result... | 6 |
gogogodeng/book-lending | 1390c10 | src/strategies/jwt.strategy.ts | TypeScript | www.github.com/gogogodeng/book-lending/tree/main/src/strategies/jwt.strategy.ts | https://raw.githubusercontent.com/gogogodeng/book-lending/1390c10/src/strategies/jwt.strategy.ts | gogogodeng/book-lending 1390c10 src/strategies/jwt.strategy.ts | true | 200 | 651 | import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { jwtConstants } from './constants';
@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy) {
constructor() {
super({
jwt... | 3 |
JasperCDev/Our-Universe | 503afa8 | client/components/app/main/userDeity/userDeity.styles.ts | TypeScript | www.github.com/JasperCDev/Our-Universe/tree/main/client/components/app/main/userDeity/userDeity.styles.ts | https://raw.githubusercontent.com/JasperCDev/Our-Universe/503afa8/client/components/app/main/userDeity/userDeity.styles.ts | JasperCDev/Our-Universe 503afa8 client/components/app/main/userDeity/userDeity.styles.ts | true | 200 | 4,353 | import styled, { keyframes } from 'styled-components';
import { Button } from '@material-ui/core';
const pulse = keyframes`
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
`;
export const UserDeityContainer = styled.div <{ red: number; green: number; b... | 5 |
ashabuljannat/assignment-4 | 4d49b2b | src/app/modules/review/review.controller.ts | TypeScript | www.github.com/ashabuljannat/assignment-4/tree/main/src/app/modules/review/review.controller.ts | https://raw.githubusercontent.com/ashabuljannat/assignment-4/4d49b2b/src/app/modules/review/review.controller.ts | ashabuljannat/assignment-4 4d49b2b src/app/modules/review/review.controller.ts | true | 200 | 1,138 | import httpStatus from 'http-status';
import config from '../../config';
import catchAsync from '../../utils/catchAsync';
import sendResponse from '../../utils/sendResponse';
import { ReviewServices } from './review.service';
import jwt, { JwtPayload } from 'jsonwebtoken';
const createReview = catchAsync(async (req, r... | 2 |
vinulays/eventmanagement-frontend | 82525cc | src/app/view/modules/event/event.component.ts | TypeScript | www.github.com/vinulays/eventmanagement-frontend/tree/main/src/app/view/modules/event/event.component.ts | https://raw.githubusercontent.com/vinulays/eventmanagement-frontend/82525cc/src/app/view/modules/event/event.component.ts | vinulays/eventmanagement-frontend 82525cc src/app/view/modules/event/event.component.ts | true | 200 | 21,142 | import { DatePipe } from '@angular/common';
import { Component, Inject, Input, ViewChild } from '@angular/core';
import {
FormBuilder,
FormControl,
FormGroup,
Validators,
} from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import {
MAT_DIALOG_DATA,
MatDialog,
MatDialogModu... | 7 |
YanivWein24/Similarity-API-Next.js | ca49341 | src/pages/api/v1/similarity.ts | TypeScript | www.github.com/YanivWein24/Similarity-API-Next.js/tree/main/src/pages/api/v1/similarity.ts | https://raw.githubusercontent.com/YanivWein24/Similarity-API-Next.js/ca49341/src/pages/api/v1/similarity.ts | YanivWein24/Similarity-API-Next.js ca49341 src/pages/api/v1/similarity.ts | true | 200 | 2,041 | import withMethods from "@/lib/api-middleware/withMethods";
import { NextApiRequest, NextApiResponse } from "next";
import { z } from "zod";
import openai from "@/lib/openai";
import cosineSimilarity from "@/helpers/cosine-similarity";
import db from "../../../../prisma/db";
const reqSchema = z.object({
text1: z.str... | 0 |
dKargo/dkargo-validator-utils | a433e00 | src/libs/ValidatorWalletCreator.ts | TypeScript | www.github.com/dKargo/dkargo-validator-utils/tree/main/src/libs/ValidatorWalletCreator.ts | https://raw.githubusercontent.com/dKargo/dkargo-validator-utils/a433e00/src/libs/ValidatorWalletCreator.ts | dKargo/dkargo-validator-utils a433e00 src/libs/ValidatorWalletCreator.ts | true | 200 | 762 | import { ValidatorWalletCreator__factory } from '@arbitrum/sdk/dist/lib/abi/factories/ValidatorWalletCreator__factory';
import { ValidatorWalletCreator as IValidatorWalletCreator } from '@arbitrum/sdk/dist/lib/abi/ValidatorWalletCreator';
import { SignerOrProvider } from '@arbitrum/sdk/dist/lib/dataEntities/signerOrPro... | 1 |
nelo92/tradingviewlist | 675ace6 | src/app/app.component.ts | TypeScript | www.github.com/nelo92/tradingviewlist/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/nelo92/tradingviewlist/675ace6/src/app/app.component.ts | nelo92/tradingviewlist 675ace6 src/app/app.component.ts | true | 200 | 336 | import { Component } from '@angular/core';
import { environment } from 'src/environments/environment.development';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
appName = 'Tradingview List';
version: string = environ... | 4 |
CristianRodrigue/PQR | a6b2f4e | src/app/models/pqr.model.ts | TypeScript | www.github.com/CristianRodrigue/PQR/tree/main/src/app/models/pqr.model.ts | https://raw.githubusercontent.com/CristianRodrigue/PQR/a6b2f4e/src/app/models/pqr.model.ts | CristianRodrigue/PQR a6b2f4e src/app/models/pqr.model.ts | true | 200 | 439 | import { Byte } from "@angular/compiler/src/util";
export interface PQRModel {
id: string;
countryId: string;
caseTypeId: string;
userTypeId: string;
razonSocial: string;
nit: string;
cedula: string;
name: string;
email: string;
phoneNumber: string;
file: Byte;
comentari... | 6 |
litojason/node-sequelize-furniture-store | 75942d4 | src/routes/constant.router.ts | TypeScript | www.github.com/litojason/node-sequelize-furniture-store/tree/main/src/routes/constant.router.ts | https://raw.githubusercontent.com/litojason/node-sequelize-furniture-store/75942d4/src/routes/constant.router.ts | litojason/node-sequelize-furniture-store 75942d4 src/routes/constant.router.ts | true | 200 | 410 | import { Router } from "express";
import * as constantController from "../controllers/constant.controller";
const constantRouter = Router();
constantRouter.get("/payment-methods", constantController.getPaymentMethods);
constantRouter.get("/order-statuses", constantController.getOrderStatuses);
constantRouter.get("/p... | 3 |
MinWooPK/Angular-Ecommerce-Coffe | b68a5d1 | src/app/cart/pages/checkout/checkout.module.ts | TypeScript | www.github.com/MinWooPK/Angular-Ecommerce-Coffe/tree/main/src/app/cart/pages/checkout/checkout.module.ts | https://raw.githubusercontent.com/MinWooPK/Angular-Ecommerce-Coffe/b68a5d1/src/app/cart/pages/checkout/checkout.module.ts | MinWooPK/Angular-Ecommerce-Coffe b68a5d1 src/app/cart/pages/checkout/checkout.module.ts | true | 200 | 360 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PaymentModule } from './components/payment/payment.module';
import { DirectionModule } from './components/direction/direction.module';
@NgModule({
declarations: [],
imports: [CommonModule, PaymentModule, DirectionMod... | 5 |
manimaranRadhakrishnan/TBIS | 2d74afb | TBIS_SOURCE/TBIS_SOURCE/src/app/features/masters/esoptoc/esoptoc.component.ts | TypeScript | www.github.com/manimaranRadhakrishnan/TBIS/tree/main/TBIS_SOURCE/TBIS_SOURCE/src/app/features/masters/esoptoc/esoptoc.component.ts | https://raw.githubusercontent.com/manimaranRadhakrishnan/TBIS/2d74afb/TBIS_SOURCE/TBIS_SOURCE/src/app/features/masters/esoptoc/esoptoc.component.ts | manimaranRadhakrishnan/TBIS 2d74afb TBIS_SOURCE/TBIS_SOURCE/src/app/features/masters/esoptoc/esoptoc.component.ts | true | 200 | 8,886 | import { Component,Input,OnInit,AfterViewInit } from '@angular/core';
import { AppGlobal } from '../../../services/appglobal.service';
import { MastersService } from '../../../services/masters.service';
import { Subject } from 'rxjs';
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-esoptoc'... | 2 |
perfcreg-solutions/comecari-backend | 655039b | src/modules/user/dtos/user.update-role.dto.ts | TypeScript | www.github.com/perfcreg-solutions/comecari-backend/tree/main/src/modules/user/dtos/user.update-role.dto.ts | https://raw.githubusercontent.com/perfcreg-solutions/comecari-backend/655039b/src/modules/user/dtos/user.update-role.dto.ts | perfcreg-solutions/comecari-backend 655039b src/modules/user/dtos/user.update-role.dto.ts | true | 200 | 460 | import { faker } from '@faker-js/faker';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import {
IsNotEmpty,
IsString,
MaxLength,
IsOptional,
ValidateIf,
MinLength,
IsUUID} from 'class-validator';
export class UserUpdateRoleDto{
@ApiProper... | 0 |
2019-2020-ps6/2023-2024-ps6-dndeveloppers | 68635ad | front-end/src/app/quiz/reponse/reponse.component.ts | TypeScript | www.github.com/2019-2020-ps6/2023-2024-ps6-dndeveloppers/tree/main/front-end/src/app/quiz/reponse/reponse.component.ts | https://raw.githubusercontent.com/2019-2020-ps6/2023-2024-ps6-dndeveloppers/68635ad/front-end/src/app/quiz/reponse/reponse.component.ts | 2019-2020-ps6/2023-2024-ps6-dndeveloppers 68635ad front-end/src/app/quiz/reponse/reponse.component.ts | true | 200 | 395 | import { Component, Input, OnInit } from "@angular/core";
import { Answer } from "src/models/question.models";
@Component({
selector: 'app-reponse',
templateUrl: './reponse.component.html',
styleUrls: ['./reponse.component.scss']
})
export class ReponseComponent implements OnInit {
constructor(){
... | 7 |
JoaoGabrielRochaDev/tcc-backend | a88eb70 | src/app.module.ts | TypeScript | www.github.com/JoaoGabrielRochaDev/tcc-backend/tree/main/src/app.module.ts | https://raw.githubusercontent.com/JoaoGabrielRochaDev/tcc-backend/a88eb70/src/app.module.ts | JoaoGabrielRochaDev/tcc-backend a88eb70 src/app.module.ts | true | 200 | 1,038 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Neo4jModule } from './neo4j/neo4j.module';
import { AuthModule } from './auth/auth.module';
import { UserModule } from './user/user.module';
import { ConfigModule, ConfigServic... | 4 |
Manushprajwal7/safestep | add77a2 | models/Steps.ts | TypeScript | www.github.com/Manushprajwal7/safestep/tree/main/models/Steps.ts | https://raw.githubusercontent.com/Manushprajwal7/safestep/add77a2/models/Steps.ts | Manushprajwal7/safestep add77a2 models/Steps.ts | true | 200 | 1,019 | import { sql } from "@/utils/database";
export interface Steps {
id: number;
userId: string;
date: Date;
count: number;
createdAt: Date;
}
export async function addSteps(steps: Omit<Steps, "id" | "createdAt">) {
const result = await sql`
INSERT INTO steps (user_id, date, count)
VALUES (${steps.use... | 3 |
ilijanovic/nuxiblog | b46089f | server/api/createpost.post.ts | TypeScript | www.github.com/ilijanovic/nuxiblog/tree/main/server/api/createpost.post.ts | https://raw.githubusercontent.com/ilijanovic/nuxiblog/b46089f/server/api/createpost.post.ts | ilijanovic/nuxiblog b46089f server/api/createpost.post.ts | true | 200 | 2,378 | import { BlogI, BlogResponseI } from "~~/types";
import { Blog } from "../model/blog";
import { verifyUser } from "../auth/verifyuser";
import { fileService } from "../service/fileService";
import { config } from "../configuration/config";
import { utilsService } from "../service/utilsService";
export default defineEv... | 2 |
Gowtham-SK-Dev/inventory-management | 1270b8a | src/helpers/generalHelper.ts | TypeScript | www.github.com/Gowtham-SK-Dev/inventory-management/tree/main/src/helpers/generalHelper.ts | https://raw.githubusercontent.com/Gowtham-SK-Dev/inventory-management/1270b8a/src/helpers/generalHelper.ts | Gowtham-SK-Dev/inventory-management 1270b8a src/helpers/generalHelper.ts | true | 200 | 1,012 | // Check Empty
export function isEmpty(value: any): boolean {
return (
value === undefined ||
value === null ||
value === 0 ||
value === '0' ||
(typeof value === 'object' && Object.keys(value).length === 0) ||
(typeof value === 'string' && value.trim().length === 0)
);
}
export function for... | 5 |
SmartAdSignage/SmartAdSignage.Web | 7848e46 | src/app/features/users/get-users/get-users.component.ts | TypeScript | www.github.com/SmartAdSignage/SmartAdSignage.Web/tree/main/src/app/features/users/get-users/get-users.component.ts | https://raw.githubusercontent.com/SmartAdSignage/SmartAdSignage.Web/7848e46/src/app/features/users/get-users/get-users.component.ts | SmartAdSignage/SmartAdSignage.Web 7848e46 src/app/features/users/get-users/get-users.component.ts | true | 200 | 1,157 | import { HttpClient, HttpParams, HttpErrorResponse } from '@angular/common/http';
import { Component } from '@angular/core';
import { Observable, Subscription, of } from 'rxjs';
import { User } from '../models/user.model';
@Component({
selector: 'app-get-users',
templateUrl: './get-users.component.html',
styleUr... | 1 |
itsjohncs/dice.sh | 4dd7797 | packages/cli/src/parseArgs.ts | TypeScript | www.github.com/itsjohncs/dice.sh/tree/main/packages/cli/src/parseArgs.ts | https://raw.githubusercontent.com/itsjohncs/dice.sh/4dd7797/packages/cli/src/parseArgs.ts | itsjohncs/dice.sh 4dd7797 packages/cli/src/parseArgs.ts | true | 200 | 371 | import {Command, program} from "commander";
export default function parseArgs(): Command {
program
.name("npx @dice-sh/cli")
.description("Dice.sh command line interface.")
.argument(
"[dice...]",
"Dice rolls. If provided, will roll and then exit immediately.",
... | 6 |
SebastienPede/Lil-Buggers | 1faada0 | src/environments/environment.ts | TypeScript | www.github.com/SebastienPede/Lil-Buggers/tree/main/src/environments/environment.ts | https://raw.githubusercontent.com/SebastienPede/Lil-Buggers/1faada0/src/environments/environment.ts | SebastienPede/Lil-Buggers 1faada0 src/environments/environment.ts | true | 200 | 1,052 | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
// For Firebase JS SDK v7.20.0 and later, measuremen... | 0 |
pingdotgg/uploadthing | cff049c | packages/nuxt/src/runtime/server/api/uploadthing.ts | TypeScript | www.github.com/pingdotgg/uploadthing/tree/main/packages/nuxt/src/runtime/server/api/uploadthing.ts | https://raw.githubusercontent.com/pingdotgg/uploadthing/cff049c/packages/nuxt/src/runtime/server/api/uploadthing.ts | pingdotgg/uploadthing cff049c packages/nuxt/src/runtime/server/api/uploadthing.ts | true | 200 | 781 | import { useRuntimeConfig } from "#imports";
import { uploadRouter } from "#uploadthing-router";
import { defineEventHandler } from "h3";
import { createRouteHandler } from "uploadthing/h3";
import type { RouteHandlerConfig } from "uploadthing/types";
const emptyStringToUndefined = (obj: Record<string, unknown>) => {... | 7 |
exodoo/match-app | fffd99d | src/service/user.client.ts | TypeScript | www.github.com/exodoo/match-app/tree/main/src/service/user.client.ts | https://raw.githubusercontent.com/exodoo/match-app/fffd99d/src/service/user.client.ts | exodoo/match-app fffd99d src/service/user.client.ts | true | 200 | 1,325 | export class UserClientService {
private static _instance: UserClientService;
private readonly avatarPath = "/avatars/";
private readonly avatars: Record<string, string> = {
black: "BLACK.png",
blue: "BLUE.png",
green: "GREEN.png",
orange: "ORANGE.png",
pink: "PINK.p... | 3 |
paulmv34/ReactGameWithSVG | e8bcbd1 | packages/client/src/features/user/userSlice.ts | TypeScript | www.github.com/paulmv34/ReactGameWithSVG/tree/main/packages/client/src/features/user/userSlice.ts | https://raw.githubusercontent.com/paulmv34/ReactGameWithSVG/e8bcbd1/packages/client/src/features/user/userSlice.ts | paulmv34/ReactGameWithSVG e8bcbd1 packages/client/src/features/user/userSlice.ts | true | 200 | 1,193 | import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import { UserState } from '@/features/user/types'
import authAPI from '@/api/Auth/AuthAPI'
import { ErrorObject } from '@/types/types'
import { getErrorMessage } from '@/utils/getErrorMessage'
const initialState: UserState = {
user: null,
isLoggedIn:... | 4 |
mohitmp9107/Realtime-Scalable-Chat-app | 9943e42 | apps/server/src/index.ts | TypeScript | www.github.com/mohitmp9107/Realtime-Scalable-Chat-app/tree/main/apps/server/src/index.ts | https://raw.githubusercontent.com/mohitmp9107/Realtime-Scalable-Chat-app/9943e42/apps/server/src/index.ts | mohitmp9107/Realtime-Scalable-Chat-app 9943e42 apps/server/src/index.ts | true | 200 | 524 | import http from "http";
import SocketService from "./services/socket";
import {startMessageConsumer} from './services/kafka';
async function init(){
startMessageConsumer();
const socketService = new SocketService();
const httpServer = http.createServer();
const PORT = process.env.PORT ?process.e... | 5 |
simaomenezes/projeto03_api_node_solid | c81661f | src/user-cases/get-user-metrics.spec.ts | TypeScript | www.github.com/simaomenezes/projeto03_api_node_solid/tree/main/src/user-cases/get-user-metrics.spec.ts | https://raw.githubusercontent.com/simaomenezes/projeto03_api_node_solid/c81661f/src/user-cases/get-user-metrics.spec.ts | simaomenezes/projeto03_api_node_solid c81661f src/user-cases/get-user-metrics.spec.ts | true | 200 | 982 | import { expect, describe, it, beforeEach } from 'vitest'
import { InMemoryCheckInsRepository } from '@/repositories/in-memory/in-memory-check-ins-repository'
import { GetUserMetricsUseCase } from './get-user-metrics'
let checkInsRepository = new InMemoryCheckInsRepository()
let sut = new GetUserMetricsUseCase(checkIn... | 2 |
bodyavl/suggest-me-api | 4133d16 | src/auth/auth.service.spec.ts | TypeScript | www.github.com/bodyavl/suggest-me-api/tree/main/src/auth/auth.service.spec.ts | https://raw.githubusercontent.com/bodyavl/suggest-me-api/4133d16/src/auth/auth.service.spec.ts | bodyavl/suggest-me-api 4133d16 src/auth/auth.service.spec.ts | true | 200 | 3,378 | import { Test, TestingModule } from '@nestjs/testing';
import { AuthService } from './auth.service';
import { getRepositoryToken } from '@nestjs/typeorm';
import { User } from '../user/entities';
import { Stat } from '../stat/entities';
import { JwtService } from '@nestjs/jwt';
import * as argon from 'argon2'
describe... | 1 |
Siam777/Messenger-App-Front-End | 5ae2019 | src/app/users/users.component.ts | TypeScript | www.github.com/Siam777/Messenger-App-Front-End/tree/main/src/app/users/users.component.ts | https://raw.githubusercontent.com/Siam777/Messenger-App-Front-End/5ae2019/src/app/users/users.component.ts | Siam777/Messenger-App-Front-End 5ae2019 src/app/users/users.component.ts | true | 200 | 490 | import { Component, OnInit } from '@angular/core';
import {CommonService} from 'src/app/common.service';
@Component({
selector: 'app-users',
templateUrl: './users.component.html',
styleUrls: ['./users.component.css']
})
export class UsersComponent implements OnInit {
constructor(private commonService:CommonSer... | 7 |
asendia/legacy-web | 9ef97c8 | src/lib/core/storageKeys.ts | TypeScript | www.github.com/asendia/legacy-web/tree/main/src/lib/core/storageKeys.ts | https://raw.githubusercontent.com/asendia/legacy-web/9ef97c8/src/lib/core/storageKeys.ts | asendia/legacy-web 9ef97c8 src/lib/core/storageKeys.ts | true | 200 | 608 | // Key for local or sessionStorage
// e.g. localStorage|sessionStorage.getItem(STORAGE_GOTRUE)
// [LocalStorage] User session data: https://github.com/netlify/gotrue
export const STORAGE_GOTRUE = 'gotrue.user';
// [LocalStorage] AES encryption key (crypto.js) to encrypt & decrypt message content on browser-side
export... | 3 |
ChainReaction-LleidaHack/Frontend | 282f5d9 | chain-reaction/src/app/splash-screen/splash-screen.component.ts | TypeScript | www.github.com/ChainReaction-LleidaHack/Frontend/tree/main/chain-reaction/src/app/splash-screen/splash-screen.component.ts | https://raw.githubusercontent.com/ChainReaction-LleidaHack/Frontend/282f5d9/chain-reaction/src/app/splash-screen/splash-screen.component.ts | ChainReaction-LleidaHack/Frontend 282f5d9 chain-reaction/src/app/splash-screen/splash-screen.component.ts | true | 200 | 763 | import { Component, ElementRef, OnInit, Renderer2 } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-splash-screen',
standalone: true,
imports: [],
templateUrl: './splash-screen.component.html',
styleUrl: './splash-screen.component.scss'
})
export class SplashScreen... | 4 |
vkot91/tweeter-2 | dfcc1dc | client/src/utils/validation/restore-password.ts | TypeScript | www.github.com/vkot91/tweeter-2/tree/main/client/src/utils/validation/restore-password.ts | https://raw.githubusercontent.com/vkot91/tweeter-2/dfcc1dc/client/src/utils/validation/restore-password.ts | vkot91/tweeter-2 dfcc1dc client/src/utils/validation/restore-password.ts | true | 200 | 765 | import * as yup from 'yup';
export const restorePasswordValidationSchema = yup
.object({
email: yup.string().email('Please provide email in correct format').required('Please enter email'),
password: yup
.string()
.min(8, 'Password should be of minimum 8 characters length')
.matches(
... | 1 |
hiroshi75/photoword-devin | e9c0da1 | app/api/upload/__tests__/route.test.ts | TypeScript | www.github.com/hiroshi75/photoword-devin/tree/main/app/api/upload/__tests__/route.test.ts | https://raw.githubusercontent.com/hiroshi75/photoword-devin/e9c0da1/app/api/upload/__tests__/route.test.ts | hiroshi75/photoword-devin e9c0da1 app/api/upload/__tests__/route.test.ts | true | 200 | 1,425 | import { NextRequest, NextResponse } from 'next/server';
import { POST } from '../route';
import { analyzeImage } from '@/lib/image-analysis';
import path from 'path';
import fs from 'fs/promises';
jest.mock('@/lib/image-analysis');
describe('Upload API Route', () => {
it('should analyze restaurant image correctly'... | 5 |
jgabrielfdc/EngenhariaDeSoftwareJGF | 0b934d8 | src/modules/User/useCases/UpdatePhone/UpdatePhoneController.ts | TypeScript | www.github.com/jgabrielfdc/EngenhariaDeSoftwareJGF/tree/main/src/modules/User/useCases/UpdatePhone/UpdatePhoneController.ts | https://raw.githubusercontent.com/jgabrielfdc/EngenhariaDeSoftwareJGF/0b934d8/src/modules/User/useCases/UpdatePhone/UpdatePhoneController.ts | jgabrielfdc/EngenhariaDeSoftwareJGF 0b934d8 src/modules/User/useCases/UpdatePhone/UpdatePhoneController.ts | true | 200 | 674 | import { NextFunction, Request, Response } from "express";
import UpdatePhoneUseCase from "./UpdatePhoneUseCase";
export default class UpdatePhoneController {
constructor(private updatePhoneUseCase: UpdatePhoneUseCase) {
this.updatePhoneUseCase = updatePhoneUseCase;
}
async handle(request: Request, response... | 7 |
mbarz/advent-of-code | b5c4da9 | src/2021/04/bingo.spec.ts | TypeScript | www.github.com/mbarz/advent-of-code/tree/main/src/2021/04/bingo.spec.ts | https://raw.githubusercontent.com/mbarz/advent-of-code/b5c4da9/src/2021/04/bingo.spec.ts | mbarz/advent-of-code b5c4da9 src/2021/04/bingo.spec.ts | true | 200 | 1,677 | import {
findBingoWinner,
getFirstBingoWinner,
getLastBingoWinner,
parseBingoInput,
removeNumberFromBoards,
} from './bingo';
const exampleInput = `7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1
22 13 17 11 0
8 2 23 4 24
21 9 14 16 7
6 10 3 18 5
1 12 20 15 19
3 15 0 2 2... | 3 |
Fercho2022/AppRegistroTarjetaCreditoAngularFirebase | 3a11d9d | src/app/app.module.ts | TypeScript | www.github.com/Fercho2022/AppRegistroTarjetaCreditoAngularFirebase/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Fercho2022/AppRegistroTarjetaCreditoAngularFirebase/3a11d9d/src/app/app.module.ts | Fercho2022/AppRegistroTarjetaCreditoAngularFirebase 3a11d9d src/app/app.module.ts | true | 200 | 1,556 | import { NgModule, isDevMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule} from '@angular/forms';
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
import { environment } from '../environments/environment';
import { provideFirestore... | 4 |
CKleijn/UnreleasedClothing | 5f8cf8b | apps/uc-api/src/app/user/user.schema.ts | TypeScript | www.github.com/CKleijn/UnreleasedClothing/tree/main/apps/uc-api/src/app/user/user.schema.ts | https://raw.githubusercontent.com/CKleijn/UnreleasedClothing/5f8cf8b/apps/uc-api/src/app/user/user.schema.ts | CKleijn/UnreleasedClothing 5f8cf8b apps/uc-api/src/app/user/user.schema.ts | true | 200 | 1,372 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ObjectId } from 'mongoose';
import { Role } from '../auth/roles/role.enum';
@Schema()
export class User {
@Prop()
_id: ObjectId;
@Prop({
required: [true, 'Name is required!'],
})
name: String;
@Prop({
req... | 1 |
NikitaVologdin/React-TicTacToe-Game | 2b39c34 | src/utils/checkIsWinner.ts | TypeScript | www.github.com/NikitaVologdin/React-TicTacToe-Game/tree/main/src/utils/checkIsWinner.ts | https://raw.githubusercontent.com/NikitaVologdin/React-TicTacToe-Game/2b39c34/src/utils/checkIsWinner.ts | NikitaVologdin/React-TicTacToe-Game 2b39c34 src/utils/checkIsWinner.ts | true | 200 | 1,469 | import { TMark } from "../Types/configTypes"
export interface IPlayersMoves {
x: number[]
o: number[]
}
const winningCombinations = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8],
[0, 3, 6],
[1, 4, 7],
[2, 5, 8],
[0, 4, 8],
[2, 4, 6],
]
function checkCombination(
combination: number[],
playerIndexes: numb... | 5 |
daedalus-v4/daedalus | a38c0ab | dashboard/src/routes/docs/modules/[module]/+page.ts | TypeScript | www.github.com/daedalus-v4/daedalus/tree/main/dashboard/src/routes/docs/modules/[module]/+page.ts | https://raw.githubusercontent.com/daedalus-v4/daedalus/a38c0ab/dashboard/src/routes/docs/modules/%5Bmodule%5D/%2Bpage.ts | daedalus-v4/daedalus a38c0ab dashboard/src/routes/docs/modules/[module]/+page.ts | true | 200 | 305 | import { error } from "@sveltejs/kit";
import { modules } from "shared";
import type { PageLoad } from "./$types.js";
export const load: PageLoad = async ({ params: { module: mid } }) => {
const module = modules[mid];
if (!module) throw error(404, "Module Not Found");
return { module };
};
| 7 |
gbertin12/ft_transcendence | 038b956 | app/back/src/auth/auth.module.ts | TypeScript | www.github.com/gbertin12/ft_transcendence/tree/main/app/back/src/auth/auth.module.ts | https://raw.githubusercontent.com/gbertin12/ft_transcendence/038b956/app/back/src/auth/auth.module.ts | gbertin12/ft_transcendence 038b956 app/back/src/auth/auth.module.ts | true | 200 | 1,004 | import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { UserModule } from '../user/user.module';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { JwtStrategy } from './strategies/jwt.strategy';
import { Jwt2faStrategy } from '.... | 3 |
LokendraJargha/KnowPrice | 65e0c8a | backend/types/generated/components.d.ts | TypeScript | www.github.com/LokendraJargha/KnowPrice/tree/main/backend/types/generated/components.d.ts | https://raw.githubusercontent.com/LokendraJargha/KnowPrice/65e0c8a/backend/types/generated/components.d.ts | LokendraJargha/KnowPrice 65e0c8a backend/types/generated/components.d.ts | true | 200 | 10,057 | import type { Schema, Attribute } from '@strapi/strapi';
export interface StoragesStorages extends Schema.Component {
collectionName: 'components_storages_storages';
info: {
displayName: 'Storages';
};
attributes: {
Primary: Attribute.String;
Secondary: Attribute.String;
Icon: Attribute.Media<'... | 4 |
parameshwar-arroju/websocket | e82cf2e | server/src/index.ts | TypeScript | www.github.com/parameshwar-arroju/websocket/tree/main/server/src/index.ts | https://raw.githubusercontent.com/parameshwar-arroju/websocket/e82cf2e/server/src/index.ts | parameshwar-arroju/websocket e82cf2e server/src/index.ts | true | 200 | 583 | import express from 'express'
import { WebSocketServer, WebSocket } from 'ws'
const app = express()
const httpServer = app.listen(8080)
const wss = new WebSocketServer({ server: httpServer });
wss.on('connection', function connection(ws) {
ws.on('error', console.error);
ws.on('message', function message(dat... | 1 |
Muahammad-Ali/Shoppin-website | 4fe98ed | src/lib/auth.ts | TypeScript | www.github.com/Muahammad-Ali/Shoppin-website/tree/main/src/lib/auth.ts | https://raw.githubusercontent.com/Muahammad-Ali/Shoppin-website/4fe98ed/src/lib/auth.ts | Muahammad-Ali/Shoppin-website 4fe98ed src/lib/auth.ts | true | 200 | 2,174 | import { NextAuthOptions } from "next-auth";
import CredentialsProvider from "next-auth/providers/credentials";
import { PrismaAdapter } from "@next-auth/prisma-adapter"
import {db} from "./db";
import { compare } from "bcrypt";
export const authOptions: NextAuthOptions = {
adapter: PrismaAdapter(db),
session:... | 5 |
JasonLauret/MagasinEnLigne-frontend | 791b582 | src/app/services/country-service.service.ts | TypeScript | www.github.com/JasonLauret/MagasinEnLigne-frontend/tree/main/src/app/services/country-service.service.ts | https://raw.githubusercontent.com/JasonLauret/MagasinEnLigne-frontend/791b582/src/app/services/country-service.service.ts | JasonLauret/MagasinEnLigne-frontend 791b582 src/app/services/country-service.service.ts | true | 200 | 1,632 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import { Country } from '../common/country';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class CountryService {
private baseU... | 3 |
TypeScript-OSS/react-bindings | 3dc34eb | src/internal-utils/extract-binding-dependency-values.ts | TypeScript | www.github.com/TypeScript-OSS/react-bindings/tree/main/src/internal-utils/extract-binding-dependency-values.ts | https://raw.githubusercontent.com/TypeScript-OSS/react-bindings/3dc34eb/src/internal-utils/extract-binding-dependency-values.ts | TypeScript-OSS/react-bindings 3dc34eb src/internal-utils/extract-binding-dependency-values.ts | true | 200 | 1,620 | import type { BindingDependencies, NamedBindingDependencies } from '../binding/types/binding-dependencies';
import type { InferBindingValueTypes } from '../binding/types/infer-binding-value-types';
import { isBinding } from '../binding-utils/type-utils.js';
export const extractBindingDependencyValues = <DependenciesT ... | 7 |
oriel-beck/TA9 | f49692f | src/app/components/header/header.component.ts | TypeScript | www.github.com/oriel-beck/TA9/tree/main/src/app/components/header/header.component.ts | https://raw.githubusercontent.com/oriel-beck/TA9/f49692f/src/app/components/header/header.component.ts | oriel-beck/TA9 f49692f src/app/components/header/header.component.ts | true | 200 | 1,420 | import { ChangeDetectionStrategy, Component, input, OnDestroy, OnInit, output } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatFormFieldModule } from... | 4 |
crdigital/Desafio-Final-Gama-XP47-ecommerce-back-end | 5cd0c39 | src/utils/formatData.ts | TypeScript | www.github.com/crdigital/Desafio-Final-Gama-XP47-ecommerce-back-end/tree/main/src/utils/formatData.ts | https://raw.githubusercontent.com/crdigital/Desafio-Final-Gama-XP47-ecommerce-back-end/5cd0c39/src/utils/formatData.ts | crdigital/Desafio-Final-Gama-XP47-ecommerce-back-end 5cd0c39 src/utils/formatData.ts | true | 200 | 528 | // Retorna a data atual, com dia, mês e ano no padrões
// brasileiro e americano
const dateFormats = {
dateBr: () => {
let date = new Date();
let dateFormat = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear();
return dateFormat;
},
dateUs: () => {... | 1 |
thiag0ferreira/HiPizza_Estabelecimento | 57ef8a6 | src/app/modals/entregadormodal/entregadormodal.page.spec.ts | TypeScript | www.github.com/thiag0ferreira/HiPizza_Estabelecimento/tree/main/src/app/modals/entregadormodal/entregadormodal.page.spec.ts | https://raw.githubusercontent.com/thiag0ferreira/HiPizza_Estabelecimento/57ef8a6/src/app/modals/entregadormodal/entregadormodal.page.spec.ts | thiag0ferreira/HiPizza_Estabelecimento 57ef8a6 src/app/modals/entregadormodal/entregadormodal.page.spec.ts | true | 200 | 710 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { EntregadormodalPage } from './entregadormodal.page';
describe('EntregadormodalPage', () => {
let component: EntregadormodalPage;
let fixture: ComponentFixture<EntregadormodalPage>;
b... | 7 |
VishalAmbhore1429/Angular-Repo | 62b5048 | src/app/Services/book-serviece.service.ts | TypeScript | www.github.com/VishalAmbhore1429/Angular-Repo/tree/main/src/app/Services/book-serviece.service.ts | https://raw.githubusercontent.com/VishalAmbhore1429/Angular-Repo/62b5048/src/app/Services/book-serviece.service.ts | VishalAmbhore1429/Angular-Repo 62b5048 src/app/Services/book-serviece.service.ts | true | 200 | 864 | // src/app/book.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
interface Book {
id?: number;
bookname: string;
authorname: string;
language: string;
}
@Injectable({
providedIn: 'root',
})
export class BookService ... | 3 |
kirodoras/pass | 91f9f9c | src/services/notesServices.ts | TypeScript | www.github.com/kirodoras/pass/tree/main/src/services/notesServices.ts | https://raw.githubusercontent.com/kirodoras/pass/91f9f9c/src/services/notesServices.ts | kirodoras/pass 91f9f9c src/services/notesServices.ts | true | 200 | 1,238 | import * as notesRepository from "../repositories/notesRepository";
import * as notesTypes from "../types/notesTypes";
export async function create(noteObj: notesTypes.Note) {
const { tittle, user_id } = noteObj;
await checkNoteExistsByTittleAndUserId(tittle, user_id);
await notesRepository.insert(noteObj);
co... | 4 |
garrettguycharles/ts-library | 551f418 | src/engines/Semaphore.d.ts | TypeScript | www.github.com/garrettguycharles/ts-library/tree/main/src/engines/Semaphore.d.ts | https://raw.githubusercontent.com/garrettguycharles/ts-library/551f418/src/engines/Semaphore.d.ts | garrettguycharles/ts-library 551f418 src/engines/Semaphore.d.ts | true | 200 | 756 | import { Tickable } from "./Tickable";
import { LinkedList } from "../structures/LinkedList";
export declare class SemaphoreFunctionCall {
resolve: (value: any) => void;
reject: (reason?: any) => void;
fn: (...args: any) => any;
args: any[];
constructor(resolve: (value: any) => void, reject: (reason... | 5 |
JoryJoestar/AIi18n | c6f72f7 | app/frontend/src/stores/appStore.ts | TypeScript | www.github.com/JoryJoestar/AIi18n/tree/main/app/frontend/src/stores/appStore.ts | https://raw.githubusercontent.com/JoryJoestar/AIi18n/c6f72f7/app/frontend/src/stores/appStore.ts | JoryJoestar/AIi18n c6f72f7 app/frontend/src/stores/appStore.ts | true | 200 | 1,071 | import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useAppStore = defineStore('app', () => {
const settingsSwitch = ref<boolean>(false);
const settingsApiKeyStatus = ref<string[]>([])
const messageVisible = ref(false);
const messageContent = ref(''); // 用于存储消息内容
const messageDuratio... | 1 |
UniqueStudio/UniqueSSOFrontend | d85a881 | src/utils/sort.ts | TypeScript | www.github.com/UniqueStudio/UniqueSSOFrontend/tree/main/src/utils/sort.ts | https://raw.githubusercontent.com/UniqueStudio/UniqueSSOFrontend/d85a881/src/utils/sort.ts | UniqueStudio/UniqueSSOFrontend d85a881 src/utils/sort.ts | true | 200 | 696 | import { compareAllocation } from './comparators'
import { Application } from '@uniqs/config'
export const teamSort = (i: Application, j: Application) => {
const l = i.interviewAllocations.team
? new Date(i.interviewAllocations.team)
: undefined
const r = j.interviewAllocations.team
? new Date(j.inter... | 7 |
AlekseyVerba/ai-vision | a378800 | controller-microservice/src/validations/newExists.validation.ts | TypeScript | www.github.com/AlekseyVerba/ai-vision/tree/main/controller-microservice/src/validations/newExists.validation.ts | https://raw.githubusercontent.com/AlekseyVerba/ai-vision/a378800/controller-microservice/src/validations/newExists.validation.ts | AlekseyVerba/ai-vision a378800 controller-microservice/src/validations/newExists.validation.ts | true | 200 | 1,022 | import { Inject, Injectable } from '@nestjs/common';
import {
registerDecorator,
ValidationOptions,
ValidatorConstraint,
ValidatorConstraintInterface,
ValidationArguments,
} from 'class-validator';
import { NewService } from '../modules/new/new.service';
@Injectable()
@ValidatorConstraint({ async: true })
ex... | 3 |
Neaven/platform-for-good | f206c1c | src/app/auth/auth.service.ts | TypeScript | www.github.com/Neaven/platform-for-good/tree/main/src/app/auth/auth.service.ts | https://raw.githubusercontent.com/Neaven/platform-for-good/f206c1c/src/app/auth/auth.service.ts | Neaven/platform-for-good f206c1c src/app/auth/auth.service.ts | true | 200 | 3,762 | import { Injectable } from '@angular/core';
import { CrudService } from '../core/services/http/crud.service';
import { HttpClient } from '@angular/common/http';
// import { Auth } from 'aws-amplify';
import { StorageService } from '../core/services/storage/storage.service';
import { StorageKey } from '../core/services/... | 4 |
Hbisedm/mini-vue-guide | d94a398 | src/reactivity/tests/readonly.spec.ts | TypeScript | www.github.com/Hbisedm/mini-vue-guide/tree/main/src/reactivity/tests/readonly.spec.ts | https://raw.githubusercontent.com/Hbisedm/mini-vue-guide/d94a398/src/reactivity/tests/readonly.spec.ts | Hbisedm/mini-vue-guide d94a398 src/reactivity/tests/readonly.spec.ts | true | 200 | 834 | import { effect } from "../effect";
import { isProxy, isReadonly, reactive, readonly } from "../reactive";
describe("readonly", () => {
it("happy path", () => {
const original = {
foo: 1,
bar: {
foo: "test",
},
};
const wrapped = readonly(original);
expect(wrapped).not.toBe(... | 5 |
pdelaplana/tindera_v1 | f799de4 | src/app/pages/order/order.module.ts | TypeScript | www.github.com/pdelaplana/tindera_v1/tree/main/src/app/pages/order/order.module.ts | https://raw.githubusercontent.com/pdelaplana/tindera_v1/f799de4/src/app/pages/order/order.module.ts | pdelaplana/tindera_v1 f799de4 src/app/pages/order/order.module.ts | true | 200 | 683 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { OrderPageRoutingModule } from './order-routing.module';
import { OrderPage } from './order.page';
import { OrderProductPageMod... | 7 |
webflorist/privacy-policy-generator | 4708577 | app/router.options.ts | TypeScript | www.github.com/webflorist/privacy-policy-generator/tree/main/app/router.options.ts | https://raw.githubusercontent.com/webflorist/privacy-policy-generator/4708577/app/router.options.ts | webflorist/privacy-policy-generator 4708577 app/router.options.ts | true | 200 | 349 | import type { RouterConfig } from '@nuxt/schema'
// https://router.vuejs.org/api/#routeroptions
export default <RouterConfig>{
scrollBehavior(to, from, savedPosition) {
if (to.hash && from.path === to.path) {
return { el: to.hash, behavior: 'smooth' }
}
if (savedPosition) {
return savedPosition
}
retu... | 3 |
teddyBear02/Social-App | 30705dc | src/store/comment/comment.slice.ts | TypeScript | www.github.com/teddyBear02/Social-App/tree/main/src/store/comment/comment.slice.ts | https://raw.githubusercontent.com/teddyBear02/Social-App/30705dc/src/store/comment/comment.slice.ts | teddyBear02/Social-App 30705dc src/store/comment/comment.slice.ts | true | 200 | 2,861 | import { createSlice } from '@reduxjs/toolkit'
import { createComment, getCommentByPostId } from './comment.actions'
import { CommentInitState } from '@/model'
export const initialState : CommentInitState= {
content: '',
commentList: [],
loading: false
}
export const commentSlice = createSlice({... | 4 |
DJAndries/dreamfire | 5f754e4 | backend/src/pubsub.ts | TypeScript | www.github.com/DJAndries/dreamfire/tree/main/backend/src/pubsub.ts | https://raw.githubusercontent.com/DJAndries/dreamfire/5f754e4/backend/src/pubsub.ts | DJAndries/dreamfire 5f754e4 backend/src/pubsub.ts | true | 200 | 476 | import { PubSub, withFilter, FilterFn } from 'apollo-server'
export { FilterFn } from 'apollo-server'
export const pubsub = new PubSub()
export const publish = (eventName : string, payload : any, customInfo : object = null) => {
pubsub.publish(eventName, Object.assign({ [eventName]: payload }, customInfo))
}
expor... | 1 |
dmtrPllp/modsen-task | d53bc8f | prisma/seed.ts | TypeScript | www.github.com/dmtrPllp/modsen-task/tree/main/prisma/seed.ts | https://raw.githubusercontent.com/dmtrPllp/modsen-task/d53bc8f/prisma/seed.ts | dmtrPllp/modsen-task d53bc8f prisma/seed.ts | true | 200 | 958 | import { PrismaClient } from '@prisma/client';
import { meetings } from './data/meetings';
import { permissions } from './data/permissions';
import { roles } from './data/roles';
import { users } from './data/users';
const prisma = new PrismaClient();
async function main() {
await prisma.role.createMany({
data... | 5 |
profburial/bun-hono-drizzle | 6ed9747 | src/routes/auth.ts | TypeScript | www.github.com/profburial/bun-hono-drizzle/tree/main/src/routes/auth.ts | https://raw.githubusercontent.com/profburial/bun-hono-drizzle/6ed9747/src/routes/auth.ts | profburial/bun-hono-drizzle 6ed9747 src/routes/auth.ts | true | 200 | 659 | import { Hono } from "hono";
import { authenticate, register, token } from "@app/lib/auth";
import { userValidate, loginValidate } from "@app/db/schema";
import { validate } from "@app/lib/util/validate";
const authRoutes = new Hono()
.post("/login", async (c) => {
const input = await validate(c, loginValidate);... | 7 |
ngocyeuhuong2805/zalominiapp | babe9c6 | src/states/selectors/TaskListPlaySelector.ts | TypeScript | www.github.com/ngocyeuhuong2805/zalominiapp/tree/main/src/states/selectors/TaskListPlaySelector.ts | https://raw.githubusercontent.com/ngocyeuhuong2805/zalominiapp/babe9c6/src/states/selectors/TaskListPlaySelector.ts | ngocyeuhuong2805/zalominiapp babe9c6 src/states/selectors/TaskListPlaySelector.ts | true | 200 | 1,150 | import { selector, selectorFamily } from "recoil";
import { Task } from "../../models/Task";
import { TaskListPlayAtom } from "../atoms/TaskListPlayAtom";
//Lấy cả đối tượng nhiệm vụ của game
export const TaskListPLaySelector = selector<Task[]>({
key: 'TaskListPLaySelector',
get: ({ get }) => {
const gameData... | 3 |
bmalasani/eforms | 53c0f79 | app/src/styles/index.ts | TypeScript | www.github.com/bmalasani/eforms/tree/main/app/src/styles/index.ts | https://raw.githubusercontent.com/bmalasani/eforms/53c0f79/app/src/styles/index.ts | bmalasani/eforms 53c0f79 app/src/styles/index.ts | true | 200 | 4,836 | import { alpha, Theme, ThemeOptions } from '@mui/material/styles';
import { boxShadows, systemFont } from './constants';
import { pxToRem } from './utils';
export function getThemedComponents(theme: Theme): Theme['components'] {
return {
MuiAppBar: {
defaultProps: {
position: 'sticky',
vari... | 4 |
HugoMendes98/graph-flow | 220104e | apps/frontend/src/app/home/views/home/home.view.spec.ts | TypeScript | www.github.com/HugoMendes98/graph-flow/tree/main/apps/frontend/src/app/home/views/home/home.view.spec.ts | https://raw.githubusercontent.com/HugoMendes98/graph-flow/220104e/apps/frontend/src/app/home/views/home/home.view.spec.ts | HugoMendes98/graph-flow 220104e apps/frontend/src/app/home/views/home/home.view.spec.ts | true | 200 | 517 | import { ComponentFixture, TestBed } from "@angular/core/testing";
import { HomeView } from "./home.view";
describe("HomeView", () => {
let component: HomeView;
let fixture: ComponentFixture<HomeView>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HomeView]
}).compileComponents(... | 1 |
Mimi8298/nakama-game | 8dffec5 | src/logic/level/tilemap.ts | TypeScript | www.github.com/Mimi8298/nakama-game/tree/main/src/logic/level/tilemap.ts | https://raw.githubusercontent.com/Mimi8298/nakama-game/8dffec5/src/logic/level/tilemap.ts | Mimi8298/nakama-game 8dffec5 src/logic/level/tilemap.ts | true | 200 | 2,902 | import { Vector2 } from "@babylonjs/core";
import PathFinder from "../util/pathfinder";
export default class TileMap {
private static readonly TILE_BITS_SIZE = 4;
private static readonly TILE_PER_BYTE = 8 / TileMap.TILE_BITS_SIZE;
private static readonly TILE_STATE_MASK = (1 << TileMap.TILE_BITS_SIZE) - 1;... | 5 |
Shahriar-Utchas/Adv-Web-Tech-2024-2025-Spring-B | 79d6d81 | Lab-1(basic TypeScript)/src/tuple.ts | TypeScript | www.github.com/Shahriar-Utchas/Adv-Web-Tech-2024-2025-Spring-B/tree/main/Lab-1(basic TypeScript)/src/tuple.ts | https://raw.githubusercontent.com/Shahriar-Utchas/Adv-Web-Tech-2024-2025-Spring-B/79d6d81/Lab-1%28basic%20TypeScript%29/src/tuple.ts | Shahriar-Utchas/Adv-Web-Tech-2024-2025-Spring-B 79d6d81 Lab-1(basic TypeScript)/src/tuple.ts | true | 200 | 1,368 | // Tuple is a fixed-size collection of elements of different types.
// Basic Tuple
let userInfo: [string, number, boolean] = ["Shahriar", 23, true];
console.log(userInfo);
// Accessing Tuple Elements
console.log(`Name: ${userInfo[0]}`);
console.log(`Age: ${userInfo[1]}`);
console.log(`Is Active: ${userInfo[2]}`);
// ... | 3 |
ErKeLost/nest-project | 8e041aa | meeting-project/frontend/src/services/request.ts | TypeScript | www.github.com/ErKeLost/nest-project/tree/main/meeting-project/frontend/src/services/request.ts | https://raw.githubusercontent.com/ErKeLost/nest-project/8e041aa/meeting-project/frontend/src/services/request.ts | ErKeLost/nest-project 8e041aa meeting-project/frontend/src/services/request.ts | true | 200 | 2,711 | /* eslint-disable @typescript-eslint/no-shadow */
import axios from "axios";
import type { AxiosInstance } from "axios";
import type { RequestInterceptors, RequestConfig } from "./type";
class Request {
instance: AxiosInstance;
interceptors?: RequestInterceptors;
constructor(config: RequestConfig) {
// 创建a... | 7 |
srkayrez/Unip | 6d66682 | src/app/horas-complementares/horas-complementares.component.ts | TypeScript | www.github.com/srkayrez/Unip/tree/main/src/app/horas-complementares/horas-complementares.component.ts | https://raw.githubusercontent.com/srkayrez/Unip/6d66682/src/app/horas-complementares/horas-complementares.component.ts | srkayrez/Unip 6d66682 src/app/horas-complementares/horas-complementares.component.ts | true | 200 | 512 | import { Component, OnInit } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
@Component({
selector: 'app-horas-complementares',
templateUrl: './horas-complementares.component.html',
styleUrls: ['./horas-complementares.component.scss']
})
export class HorasComplementaresComponent im... | 4 |
enrick-dev/teddy_page | 9d8dd18 | backend/src/client/payload/clear-selected-client-response.payload.ts | TypeScript | www.github.com/enrick-dev/teddy_page/tree/main/backend/src/client/payload/clear-selected-client-response.payload.ts | https://raw.githubusercontent.com/enrick-dev/teddy_page/9d8dd18/backend/src/client/payload/clear-selected-client-response.payload.ts | enrick-dev/teddy_page 9d8dd18 backend/src/client/payload/clear-selected-client-response.payload.ts | true | 200 | 352 | import { ApiProperty } from '@nestjs/swagger';
import { SuccessMessages } from 'src/response-messages/success-messages';
export class ClearSelectedClientResponsePayload {
@ApiProperty({
description: 'Mensagem de sucesso',
type: String,
default: SuccessMessages.REMOVE_SELECTION_ALL_CLIENTS,
required: ... | 5 |
supabasecore/gqlclinic | 28fd33a | src/resolvers/auxiliary.resolver.ts | TypeScript | www.github.com/supabasecore/gqlclinic/tree/main/src/resolvers/auxiliary.resolver.ts | https://raw.githubusercontent.com/supabasecore/gqlclinic/28fd33a/src/resolvers/auxiliary.resolver.ts | supabasecore/gqlclinic 28fd33a src/resolvers/auxiliary.resolver.ts | true | 200 | 1,096 | import { Arg, Field, Mutation, ObjectType, Resolver } from "type-graphql";
import { Auxiliary } from "../schemas/auxiliary";
import { AuxiliaryInput } from "../res/auxiliary";
@ObjectType()
class AuxiliaryFieldError {
@Field()
field: string;
@Field()
message: string;
}
@ObjectType()
class AuxiliaryResponse {... | 2 |
kalkafox/deno-docker-deploy | bb9effa | main.ts | TypeScript | www.github.com/kalkafox/deno-docker-deploy/tree/main/main.ts | https://raw.githubusercontent.com/kalkafox/deno-docker-deploy/bb9effa/main.ts | kalkafox/deno-docker-deploy bb9effa main.ts | true | 200 | 1,043 | const server = Deno.listen({ port: 443 })
// Connections to the server will be yielded up as an async iterable.
for await (const conn of server) {
// In order to not be blocking, we need to handle each connection individually
// without awaiting the function
serveHttp(conn)
}
async function serveHttp(c... | 6 |
kuaker/autom-fer-portfolio | 2938200 | cypress/e2e/steps/common/common.ts | TypeScript | www.github.com/kuaker/autom-fer-portfolio/tree/main/cypress/e2e/steps/common/common.ts | https://raw.githubusercontent.com/kuaker/autom-fer-portfolio/2938200/cypress/e2e/steps/common/common.ts | kuaker/autom-fer-portfolio 2938200 cypress/e2e/steps/common/common.ts | true | 200 | 569 | import { Given, Then, When } from "@badeball/cypress-cucumber-preprocessor";
import HomePage from "../../../support/pages/HomePage";
import AssertHomePage from "../../../support/assertPages/AssertHomePage";
import AccountCreatedPage from "../../../support/pages/AccountCreatedPage";
Given('I navigate to home page', () ... | 1 |
DouglasBGavioli/Nearby | df23652 | src/components/step/styles.ts | TypeScript | www.github.com/DouglasBGavioli/Nearby/tree/main/src/components/step/styles.ts | https://raw.githubusercontent.com/DouglasBGavioli/Nearby/df23652/src/components/step/styles.ts | DouglasBGavioli/Nearby df23652 src/components/step/styles.ts | true | 200 | 517 | import { StyleSheet } from "react-native";
import {colors, fontFamily} from "@/styles/theme"
export const s = StyleSheet.create({
container:{
width: "100%",
flexDirection: "row",
gap: 16,
},
details:{
flex:1
},
title:{
fontSize: 16,
fontFamily: fontFa... | 3 |
FinalJTth/hl-answer | 1666ce9 | hl-answer-nestjs/src/database/services/database.service.ts | TypeScript | www.github.com/FinalJTth/hl-answer/tree/main/hl-answer-nestjs/src/database/services/database.service.ts | https://raw.githubusercontent.com/FinalJTth/hl-answer/1666ce9/hl-answer-nestjs/src/database/services/database.service.ts | FinalJTth/hl-answer 1666ce9 hl-answer-nestjs/src/database/services/database.service.ts | true | 200 | 428 | import { Injectable } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { PrismaClient } from "@prisma/client";
@Injectable()
export class DatabaseService extends PrismaClient {
constructor(private config: ConfigService) {
super({
datasources: {
db: {... | 4 |
vinuvatassery/cms-spa | 60733e2 | cms/libs/shared/util-core/src/lib/application/services/app-error-handler.service.ts | TypeScript | www.github.com/vinuvatassery/cms-spa/tree/main/cms/libs/shared/util-core/src/lib/application/services/app-error-handler.service.ts | https://raw.githubusercontent.com/vinuvatassery/cms-spa/60733e2/cms/libs/shared/util-core/src/lib/application/services/app-error-handler.service.ts | vinuvatassery/cms-spa 60733e2 cms/libs/shared/util-core/src/lib/application/services/app-error-handler.service.ts | true | 200 | 668 | /** Angular **/
import { HttpErrorResponse } from '@angular/common/http';
import { ErrorHandler, Injectable } from '@angular/core';
/** Services **/
import { NotificationService } from '../../api/services/notification.service';
/* Application-wide error handler that adds a UI notification to the error handling
* prov... | 0 |
storybookjs/auto-config | e0f62ec | src/@storybook/addon-themes/strategies/vanilla-extract/vanilla-extract.strategy.test.ts | TypeScript | www.github.com/storybookjs/auto-config/tree/main/src/@storybook/addon-themes/strategies/vanilla-extract/vanilla-extract.strategy.test.ts | https://raw.githubusercontent.com/storybookjs/auto-config/e0f62ec/src/%40storybook/addon-themes/strategies/vanilla-extract/vanilla-extract.strategy.test.ts | storybookjs/auto-config e0f62ec src/@storybook/addon-themes/strategies/vanilla-extract/vanilla-extract.strategy.test.ts | true | 200 | 5,353 | import { describe, it, expect } from 'vitest';
import { printConfig, readConfig } from '@storybook/csf-tools';
import { resolve } from 'node:path';
import { vanillaExtractStrategy } from './vanilla-extract.strategy';
import { SUPPORTED_BUILDERS, StorybookProjectMeta } from '../../../../utils/strategy.utils';
import mo... | 5 |
red-hat-storage/odf-console | a8fb4fd | cypress/views/block-pool.ts | TypeScript | www.github.com/red-hat-storage/odf-console/tree/main/cypress/views/block-pool.ts | https://raw.githubusercontent.com/red-hat-storage/odf-console/a8fb4fd/cypress/views/block-pool.ts | red-hat-storage/odf-console a8fb4fd cypress/views/block-pool.ts | true | 200 | 3,436 | import {
CEPH_DEFAULT_BLOCK_POOL_NAME,
PoolProgress,
} from '../constants/storage-pool-const';
import { STORAGE_SYSTEM_NAME } from '../consts';
import { app } from '../support/pages/app';
import { NS } from '../utils/consts';
import { ODFCommon } from '../views/odf-common';
import { triggerPoolFormFooterAction } fr... | 2 |
angaboli/car-rental | 767d939 | services/sendEmail.ts | TypeScript | www.github.com/angaboli/car-rental/tree/main/services/sendEmail.ts | https://raw.githubusercontent.com/angaboli/car-rental/767d939/services/sendEmail.ts | angaboli/car-rental 767d939 services/sendEmail.ts | true | 200 | 800 | import { FormData } from '@/components/contact';
import { IFormValues } from '@/types';
async function sendRequest(apiEndpoint: string, data: object): Promise<string> {
try {
const response = await fetch(apiEndpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
... | 6 |
mayank1513/vscode-extension-trello-kanban-board | d64f03d | src/utils/vscode.ts | TypeScript | www.github.com/mayank1513/vscode-extension-trello-kanban-board/tree/main/src/utils/vscode.ts | https://raw.githubusercontent.com/mayank1513/vscode-extension-trello-kanban-board/d64f03d/src/utils/vscode.ts | mayank1513/vscode-extension-trello-kanban-board d64f03d src/utils/vscode.ts | true | 200 | 2,879 | import type { WebviewApi } from "vscode-webview";
import type { BoardType, MessageType, ScopeType } from "@/interface";
import { defaultBoard } from "./data";
import { toast as _toast } from "react-toastify";
class VSCodeAPIWrapper {
private readonly vsCodeApi: WebviewApi<unknown> | undefined;
constructor() {
... | 7 |
MuritalaAhmed05/shopdesk-fe | 3c5fbe6 | app/api/product/get/route.ts | TypeScript | www.github.com/MuritalaAhmed05/shopdesk-fe/tree/main/app/api/product/get/route.ts | https://raw.githubusercontent.com/MuritalaAhmed05/shopdesk-fe/3c5fbe6/app/api/product/get/route.ts | MuritalaAhmed05/shopdesk-fe 3c5fbe6 app/api/product/get/route.ts | true | 200 | 942 | import { NextResponse } from "next/server";
export async function GET(req: Request) {
try {
const { searchParams } = new URL(req.url);
const organization_id = searchParams.get("organization_id");
if (!organization_id) {
return NextResponse.json({ error: "organization_id is required" }, { stat... | 4 |
RobbieTheWagner/ember-math-helpers | ca3d5c6 | ember-math-helpers/src/helpers/sin.ts | TypeScript | www.github.com/RobbieTheWagner/ember-math-helpers/tree/main/ember-math-helpers/src/helpers/sin.ts | https://raw.githubusercontent.com/RobbieTheWagner/ember-math-helpers/ca3d5c6/ember-math-helpers/src/helpers/sin.ts | RobbieTheWagner/ember-math-helpers ca3d5c6 ember-math-helpers/src/helpers/sin.ts | true | 200 | 487 | import { helper } from '@ember/component/helper';
export interface SinSignature {
Args: {
Positional: [number];
};
Return: number;
}
/**
* Executes `Math.sin` on the number passed to the helper.
*
* ```hbs
* {{sin a}}
* ```
*
* @function sin
* @param {number} number The number to pass to `Math.sin`
... | 3 |
MayraCVZ/socialsecurityws-lb | 05914fe | src/controllers/agenda-controller.controller.ts | TypeScript | www.github.com/MayraCVZ/socialsecurityws-lb/tree/main/src/controllers/agenda-controller.controller.ts | https://raw.githubusercontent.com/MayraCVZ/socialsecurityws-lb/05914fe/src/controllers/agenda-controller.controller.ts | MayraCVZ/socialsecurityws-lb 05914fe src/controllers/agenda-controller.controller.ts | true | 200 | 3,730 | import {
Count,
CountSchema,
Filter,
FilterExcludingWhere,
repository,
Where,
} from '@loopback/repository';
import {
del,
get,
getModelSchemaRef,
param,
patch,
post,
put,
requestBody,
response,
} from '@loopback/rest';
import {Agenda} from '../models';
import {AgendaRepository} from '../r... | 0 |
MaticDejan/Movies | 9f3b234 | src/app/search-bar/search-bar.component.ts | TypeScript | www.github.com/MaticDejan/Movies/tree/main/src/app/search-bar/search-bar.component.ts | https://raw.githubusercontent.com/MaticDejan/Movies/9f3b234/src/app/search-bar/search-bar.component.ts | MaticDejan/Movies 9f3b234 src/app/search-bar/search-bar.component.ts | true | 200 | 786 | import {Component, OnInit, Input, EventEmitter, Output} from '@angular/core';
import {MovieService} from "../services/movie.service";
import {Router} from "@angular/router";
@Component({
selector: 'app-search-bar',
templateUrl: './search-bar.component.html',
styleUrls: ['./search-bar.component.css']
})
export ... | 5 |
alexradu95/webllm-experiment | bd692cc | src/hooks/useWorker.ts | TypeScript | www.github.com/alexradu95/webllm-experiment/tree/main/src/hooks/useWorker.ts | https://raw.githubusercontent.com/alexradu95/webllm-experiment/bd692cc/src/hooks/useWorker.ts | alexradu95/webllm-experiment bd692cc src/hooks/useWorker.ts | true | 200 | 5,808 | import { useEffect, useRef, useState, useCallback } from 'react';
import { useDebug } from '../context/DebugContext';
import type {
ChatStatus,
WorkerMessage,
WorkerResponse,
Message,
DebugContextValue
} from '@/types';
interface UseWorkerReturn {
status: ChatStatus;
error: string | null;
... | 1 |
weboscar1164/discord_clone_udemy | 55b3031 | src/app/store.ts | TypeScript | www.github.com/weboscar1164/discord_clone_udemy/tree/main/src/app/store.ts | https://raw.githubusercontent.com/weboscar1164/discord_clone_udemy/55b3031/src/app/store.ts | weboscar1164/discord_clone_udemy 55b3031 src/app/store.ts | true | 200 | 377 | import { configureStore } from "@reduxjs/toolkit";
import userReducer from "../features/userSlice";
import channelReducer from "../features/channelSlice";
export const store = configureStore({
reducer: { user: userReducer, channel: channelReducer },
});
export type Appdispatch = typeof store.dispatch;
exp... | 2 |
harman-d97/easymaintenancemanager | 44b0520 | frontend/node_modules/@angular/cdk/a11y/typings/focus-monitor/focus-monitor.d.ts | TypeScript | www.github.com/harman-d97/easymaintenancemanager/tree/main/frontend/node_modules/@angular/cdk/a11y/typings/focus-monitor/focus-monitor.d.ts | https://raw.githubusercontent.com/harman-d97/easymaintenancemanager/44b0520/frontend/node_modules/%40angular/cdk/a11y/typings/focus-monitor/focus-monitor.d.ts | harman-d97/easymaintenancemanager 44b0520 frontend/node_modules/@angular/cdk/a11y/typings/focus-monitor/focus-monitor.d.ts | true | 200 | 6,967 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Platform } from '@angular/cdk/platform';
import { ElementRef, EventEmitter, NgZone, OnDestroy, Optional } fro... | 6 |
npmrun/rush-mono | 235b028 | internal/build/src/engine/vite/vue3.component.ts | TypeScript | www.github.com/npmrun/rush-mono/tree/main/internal/build/src/engine/vite/vue3.component.ts | https://raw.githubusercontent.com/npmrun/rush-mono/235b028/internal/build/src/engine/vite/vue3.component.ts | npmrun/rush-mono 235b028 internal/build/src/engine/vite/vue3.component.ts | true | 200 | 1,728 | import { defineConfig, InlineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import dts from 'vite-plugin-dts'
import _ from 'lodash'
import libCss from './plugins/vite-plugin-libcss'
import { buildInfo, externals, globals } from '@/parse'
import path from 'path'
im... | 7 |
emrecunlu/react-uretim-app | 98a00dd | src/renderer/src/utils/columns/producedItemColumn.ts | TypeScript | www.github.com/emrecunlu/react-uretim-app/tree/main/src/renderer/src/utils/columns/producedItemColumn.ts | https://raw.githubusercontent.com/emrecunlu/react-uretim-app/98a00dd/src/renderer/src/utils/columns/producedItemColumn.ts | emrecunlu/react-uretim-app 98a00dd src/renderer/src/utils/columns/producedItemColumn.ts | true | 200 | 1,007 | import { GridColDef } from '@mui/x-data-grid'
import ProductionHelper from '../helpers/ProductionHelper'
import moment from 'moment'
import { TIME_FORMAT } from '../constants'
const producedItemColumns: GridColDef[] = [
{
headerName: 'Seri Numarası',
field: 'seriNo',
flex: 1
},
{
headerName: 'Bir... | 3 |
eodya/eodya-frontend | 5a0b013 | src/store/features/main/spotInfo/InfoSlice.ts | TypeScript | www.github.com/eodya/eodya-frontend/tree/main/src/store/features/main/spotInfo/InfoSlice.ts | https://raw.githubusercontent.com/eodya/eodya-frontend/5a0b013/src/store/features/main/spotInfo/InfoSlice.ts | eodya/eodya-frontend 5a0b013 src/store/features/main/spotInfo/InfoSlice.ts | true | 200 | 369 | import { PayloadAction, createSlice } from "@reduxjs/toolkit";
const initialState = false;
const spotInfoOpen = createSlice({
name: "spotInfoOpen",
initialState,
reducers: {
change: (_, actions: PayloadAction<boolean>) => {
return actions.payload;
},
},
});
export const { change } = spotInfoOpe... | 4 |
faavsun/Asistenciapp | ae6bf41 | src/app/components/custom-input/custom-input.component.ts | TypeScript | www.github.com/faavsun/Asistenciapp/tree/main/src/app/components/custom-input/custom-input.component.ts | https://raw.githubusercontent.com/faavsun/Asistenciapp/ae6bf41/src/app/components/custom-input/custom-input.component.ts | faavsun/Asistenciapp ae6bf41 src/app/components/custom-input/custom-input.component.ts | true | 200 | 769 | import { Component, Input, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@Component({
selector: 'app-custom-input',
templateUrl: './custom-input.component.html',
styleUrls: ['./custom-input.component.scss'],
})
export class CustomInputComponent implements OnInit {
@Input() cont... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.