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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
CrispenGari/petmall | efc3841 | api/src/utils/index.ts | TypeScript | www.github.com/CrispenGari/petmall/tree/main/api/src/utils/index.ts | https://raw.githubusercontent.com/CrispenGari/petmall/efc3841/api/src/utils/index.ts | CrispenGari/petmall efc3841 api/src/utils/index.ts | true | 200 | 1,814 | import { User } from "@prisma/client";
import { FastifyReply } from "fastify";
import jwt from "jsonwebtoken";
import { __cookieName__ } from "../constants";
import nodemailer from "nodemailer";
import { unlink } from "fs/promises";
export const sendEmail = async (
email: string,
html: string,
subject: string
) ... | 3 |
sanskarsoni51/HBTEST | eef3357 | BACKEND/src/Repository/userRepository.ts | TypeScript | www.github.com/sanskarsoni51/HBTEST/tree/main/BACKEND/src/Repository/userRepository.ts | https://raw.githubusercontent.com/sanskarsoni51/HBTEST/eef3357/BACKEND/src/Repository/userRepository.ts | sanskarsoni51/HBTEST eef3357 BACKEND/src/Repository/userRepository.ts | true | 200 | 3,661 | import { ObjectId } from "mongodb";
import { Request, Response,NextFunction } from "express";
import {userModel} from "../models/User.js";
import AppError from "../utels/AppError.js";
import APIFeatures from "../utels/apiFeatures.js";
import { NewUserRequestBody } from "../types/requestBody.js";
import catchAsync from ... | 7 |
SeifeddineTouj0/HotelProject | 48183e6 | hotel-front/src/app/room/components/room-list/room-list.component.ts | TypeScript | www.github.com/SeifeddineTouj0/HotelProject/tree/main/hotel-front/src/app/room/components/room-list/room-list.component.ts | https://raw.githubusercontent.com/SeifeddineTouj0/HotelProject/48183e6/hotel-front/src/app/room/components/room-list/room-list.component.ts | SeifeddineTouj0/HotelProject 48183e6 hotel-front/src/app/room/components/room-list/room-list.component.ts | true | 200 | 2,644 | import { Component } from '@angular/core';
import { RoomService } from './../../services/room.service';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
selector: 'app-room-list',
templateUrl: './room-list.component.html',
styleUrls: ['./room-list.c... | 0 |
amir-mc/personal-portfolio | fc80ce3 | pages/api/contact.ts | TypeScript | www.github.com/amir-mc/personal-portfolio/tree/main/pages/api/contact.ts | https://raw.githubusercontent.com/amir-mc/personal-portfolio/fc80ce3/pages/api/contact.ts | amir-mc/personal-portfolio fc80ce3 pages/api/contact.ts | true | 200 | 794 | import { NextApiRequest, NextApiResponse } from "next";
import { connectToDatabase } from "@/lib/mongodb";
import Contact from "@/models/Contact";
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== "POST") {
return res.status(405).json({ message: "Method Not All... | 4 |
EU-web-eucossa/products_service | 38a75fe | src/domains/testDomain/routes/testRoute.ts | TypeScript | www.github.com/EU-web-eucossa/products_service/tree/main/src/domains/testDomain/routes/testRoute.ts | https://raw.githubusercontent.com/EU-web-eucossa/products_service/38a75fe/src/domains/testDomain/routes/testRoute.ts | EU-web-eucossa/products_service 38a75fe src/domains/testDomain/routes/testRoute.ts | true | 200 | 1,182 | import { Router } from 'express';
export const testRoute = ({ app }: { app: Router }) => {
const router = Router();
app.use(router);
router.get('/test', async (req, res) => {
return res.status(200).send(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compati... | 1 |
AlaaDesouky/activity-logger | f761483 | src/app/services/mutations.ts | TypeScript | www.github.com/AlaaDesouky/activity-logger/tree/main/src/app/services/mutations.ts | https://raw.githubusercontent.com/AlaaDesouky/activity-logger/f761483/src/app/services/mutations.ts | AlaaDesouky/activity-logger f761483 src/app/services/mutations.ts | true | 200 | 352 | import useSWRMutation from "swr/mutation";
import { useEvents } from "./queries";
import { createEvent } from "./api";
export function useCreateEvent() {
const { mutate } = useEvents({ limit: 10 });
return useSWRMutation("/event", createEvent, {
onError() {
console.log("error");
},
onSuccess() {... | 6 |
Natalienovaela/client-management | 5e40d84 | src/db.ts | TypeScript | www.github.com/Natalienovaela/client-management/tree/main/src/db.ts | https://raw.githubusercontent.com/Natalienovaela/client-management/5e40d84/src/db.ts | Natalienovaela/client-management 5e40d84 src/db.ts | true | 200 | 543 | import { Sequelize } from "sequelize";
import * as dotenv from "dotenv";
const path = require("path");
const envPath = path.resolve("../client-management/.env");
require("dotenv").config({ path: envPath }); // For my laptop
const conn = new Sequelize(
process.env.MYSQL_DB || "client",
process.env.MYSQL_USER || "ro... | 2 |
rkmahale17/goal | 51c4569 | Client/src/app/components/Home/home.component.ts | TypeScript | www.github.com/rkmahale17/goal/tree/main/Client/src/app/components/Home/home.component.ts | https://raw.githubusercontent.com/rkmahale17/goal/51c4569/Client/src/app/components/Home/home.component.ts | rkmahale17/goal 51c4569 Client/src/app/components/Home/home.component.ts | true | 200 | 1,114 | import { Component, OnInit } from '@angular/core';
import { LoaderService } from '../Loader/loader.service';
import { Router } from '@angular/router';
import { AuthService } from '../../services';
import { IUser } from 'src/app/models/users.model';
@Component({
selector: 'app-home',
templateUrl: './home.component.... | 5 |
Termin89/HState | cc56a6d | src/functions/createActor/createActor.test.ts | TypeScript | www.github.com/Termin89/HState/tree/main/src/functions/createActor/createActor.test.ts | https://raw.githubusercontent.com/Termin89/HState/cc56a6d/src/functions/createActor/createActor.test.ts | Termin89/HState cc56a6d src/functions/createActor/createActor.test.ts | true | 200 | 6,470 | // @ts-nocheck
import { Schema } from "@/types/main";
import createState from "@/utils/createState/createState";
import createMachine from "../createMashine/createMachine";
import createActor from "./createActor";
import { describe, it, expect } from "vitest";
import createSchema from "../createSchema/createSchema";
i... | 3 |
Amirmohamadhejazi/Fortnite | d907a30 | src/components/UI/organisms/FAllCosmetics/resources/calculator/calculator.ts | TypeScript | www.github.com/Amirmohamadhejazi/Fortnite/tree/main/src/components/UI/organisms/FAllCosmetics/resources/calculator/calculator.ts | https://raw.githubusercontent.com/Amirmohamadhejazi/Fortnite/d907a30/src/components/UI/organisms/FAllCosmetics/resources/calculator/calculator.ts | Amirmohamadhejazi/Fortnite d907a30 src/components/UI/organisms/FAllCosmetics/resources/calculator/calculator.ts | true | 200 | 805 | /* eslint-disable @typescript-eslint/no-explicit-any */
import type TCriticalAny from '@core/types/critical-any/types'
import { bgChecker } from '@core/utils/common'
const calculator = (AllItems: TCriticalAny[]) => {
const convertedData = AllItems.map((itemsData: TCriticalAny) => {
return {
nam... | 7 |
Bukhariu33/front-next-app | 7a3afd9 | src/libs/hooks/kyc/useKycStepper.ts | TypeScript | www.github.com/Bukhariu33/front-next-app/tree/main/src/libs/hooks/kyc/useKycStepper.ts | https://raw.githubusercontent.com/Bukhariu33/front-next-app/7a3afd9/src/libs/hooks/kyc/useKycStepper.ts | Bukhariu33/front-next-app 7a3afd9 src/libs/hooks/kyc/useKycStepper.ts | true | 200 | 2,075 | import { useRouter } from 'next/router';
import useUser from '@/libs/hooks/useUser';
import type { KycTranslationKeys } from '@/libs/types/kyc';
const mapTranslationKeyToUrl = {
personalInformation: 'personal-information',
clientClassification: 'client-classification',
financialSituation: 'financial-condition',... | 4 |
elanelan81/front-end | 31a370f | social-platform/src/app/user/user.service.ts | TypeScript | www.github.com/elanelan81/front-end/tree/main/social-platform/src/app/user/user.service.ts | https://raw.githubusercontent.com/elanelan81/front-end/31a370f/social-platform/src/app/user/user.service.ts | elanelan81/front-end 31a370f social-platform/src/app/user/user.service.ts | true | 200 | 301 | import { Injectable } from '@angular/core';
import { of } from 'rxjs/internal/observable/of';
@Injectable({
providedIn: 'root'
})
export class UserService {
users = [
{id: 1, name: "AAAA"},
{id: 2, name: "BBBB"}
];
constructor() { }
getUsers() {
return of(this.users);
}
}
| 0 |
dhruvb26/sherpa | b763ae5 | src/middleware.ts | TypeScript | www.github.com/dhruvb26/sherpa/tree/main/src/middleware.ts | https://raw.githubusercontent.com/dhruvb26/sherpa/b763ae5/src/middleware.ts | dhruvb26/sherpa b763ae5 src/middleware.ts | true | 200 | 729 | import { clerkMiddleware } from "@clerk/nextjs/server";
import { createRouteMatcher } from "@clerk/nextjs/server";
export default clerkMiddleware(async (auth, req) => {
const { userId, redirectToSignIn } = await auth();
if (!userId && isProtectedRoute(req)) {
// Add custom logic to run before redirecting
... | 1 |
alissondel/nexus-erp-server | 9a6f686 | src/modules/users/dto/create-user.input.ts | TypeScript | www.github.com/alissondel/nexus-erp-server/tree/main/src/modules/users/dto/create-user.input.ts | https://raw.githubusercontent.com/alissondel/nexus-erp-server/9a6f686/src/modules/users/dto/create-user.input.ts | alissondel/nexus-erp-server 9a6f686 src/modules/users/dto/create-user.input.ts | true | 200 | 1,021 | import { InputType, Int, Field } from '@nestjs/graphql'
import {
IsEmail,
IsNotEmpty,
IsString,
IsBoolean,
IsDate,
IsNumber,
} from 'class-validator'
@InputType()
export class CreateUserInput {
@IsString()
@IsNotEmpty({ message: 'Caracteres Invalidos' })
@Field()
name: string
@IsString()
@IsN... | 6 |
LucaAs98/AI-Feedback-Management-System | 9fe51f0 | src/app/main/dashboard/product-page/product-page.component.ts | TypeScript | www.github.com/LucaAs98/AI-Feedback-Management-System/tree/main/src/app/main/dashboard/product-page/product-page.component.ts | https://raw.githubusercontent.com/LucaAs98/AI-Feedback-Management-System/9fe51f0/src/app/main/dashboard/product-page/product-page.component.ts | LucaAs98/AI-Feedback-Management-System 9fe51f0 src/app/main/dashboard/product-page/product-page.component.ts | true | 200 | 5,991 | import {
Component,
EventEmitter,
OnDestroy,
OnInit,
Output,
} from '@angular/core';
import { FeedbackService } from '../../../services/feedback.service';
import { ProductService } from '../../../services/product.service';
import { CompleteProduct, ProductType } from '../../../types/product.types';
import { U... | 2 |
jordanbreis/atividade-getllab | 742e70f | libs/feature/src/lib/forms/team.form.ts | TypeScript | www.github.com/jordanbreis/atividade-getllab/tree/main/libs/feature/src/lib/forms/team.form.ts | https://raw.githubusercontent.com/jordanbreis/atividade-getllab/742e70f/libs/feature/src/lib/forms/team.form.ts | jordanbreis/atividade-getllab 742e70f libs/feature/src/lib/forms/team.form.ts | true | 200 | 810 | import { FormControl, FormGroup, Validators } from '@angular/forms';
import { CreateTeamDto, Team, UpdateTeamDto } from '@getlab/data-access';
import { TypedForm } from '@getlab/util-core';
export class TeamForm extends FormGroup<TypedForm<CreateTeamDto | Team>> {
constructor() {
super({
id: new FormContro... | 5 |
PraXiPle/fiveM | 2737281 | resource/client/client.ts | TypeScript | www.github.com/PraXiPle/fiveM/tree/main/resource/client/client.ts | https://raw.githubusercontent.com/PraXiPle/fiveM/2737281/resource/client/client.ts | PraXiPle/fiveM 2737281 resource/client/client.ts | true | 200 | 2,572 | import config from "../shared/config";
const Delay = (time: number) =>
new Promise((resolve) => setTimeout(resolve, time));
RegisterCommand(
"openMenu",
() => {
SendNUIMessage({
action: "openPage",
data: {
pageName: "App",
},
});
SetNuiFocus(true, true);
},
false
);
// R... | 4 |
1661021512/smart-community | 47f8c24 | web/src/app/building-bungalow/add/add.component.spec.ts | TypeScript | www.github.com/1661021512/smart-community/tree/main/web/src/app/building-bungalow/add/add.component.spec.ts | https://raw.githubusercontent.com/1661021512/smart-community/47f8c24/web/src/app/building-bungalow/add/add.component.spec.ts | 1661021512/smart-community 47f8c24 web/src/app/building-bungalow/add/add.component.spec.ts | true | 200 | 1,072 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {ApiTestingModule} from '../../../../projects/lib/src/api/api.testing.module';
import {AddComponent} from './add.component';
import {getTestScheduler} from 'jasmine-marbles';
import {ActivatedRoute, Router} from '@angular/router';
import {Activated... | 7 |
Squad-Atlas/atlas-challenger | 7abcf73 | src/controllers/instructorControllers/instructorList.ts | TypeScript | www.github.com/Squad-Atlas/atlas-challenger/tree/main/src/controllers/instructorControllers/instructorList.ts | https://raw.githubusercontent.com/Squad-Atlas/atlas-challenger/7abcf73/src/controllers/instructorControllers/instructorList.ts | Squad-Atlas/atlas-challenger 7abcf73 src/controllers/instructorControllers/instructorList.ts | true | 200 | 2,154 | import { NotFoundError } from "@/helpers/api-errors";
import ClassroomModel from "@/models/classroom";
import { Request, Response } from "express";
/**
* @swagger
* /instructors/getClassroom/{id}:
* get:
* security:
* - cookieAuth: []
* - bearerAuth: []
* tags:
* - Instructor
* summar... | 0 |
saunah/saunah-frontend | d2db6d2 | src/networking/cookieStore.ts | TypeScript | www.github.com/saunah/saunah-frontend/tree/main/src/networking/cookieStore.ts | https://raw.githubusercontent.com/saunah/saunah-frontend/d2db6d2/src/networking/cookieStore.ts | saunah/saunah-frontend d2db6d2 src/networking/cookieStore.ts | true | 200 | 1,332 | import Cookies from 'js-cookie'
import moment from 'moment'
import { readonly } from '../utils/object'
export type CookieKeys = 'saunah-token'
const DEFAULT_CONFIG: Cookies.CookieAttributes = {
expires: moment().add(30, 'days').toDate(),
secure: true,
sameSite: 'strict',
}
const cookieStore = {
/**
... | 6 |
Directware/territory-offline-workspace | 7e47b08 | apps/website/src/app/features/components/features-main/features-main.component.ts | TypeScript | www.github.com/Directware/territory-offline-workspace/tree/main/apps/website/src/app/features/components/features-main/features-main.component.ts | https://raw.githubusercontent.com/Directware/territory-offline-workspace/7e47b08/apps/website/src/app/features/components/features-main/features-main.component.ts | Directware/territory-offline-workspace 7e47b08 apps/website/src/app/features/components/features-main/features-main.component.ts | true | 200 | 957 | import {Component, OnInit, Input, HostListener} from '@angular/core';
import {trigger, transition, style, animate, state} from '@angular/animations';
import {ScrollToService, ScrollToConfigOptions} from '@nicky-lenaers/ngx-scroll-to';
@Component({
selector: 'app-features-main',
templateUrl: './features-main.compon... | 1 |
porkus1990/steeve.jopps | aec0818 | dm-jobs/api/src/services/userAddresses/userAddresses.test.ts | TypeScript | www.github.com/porkus1990/steeve.jopps/tree/main/dm-jobs/api/src/services/userAddresses/userAddresses.test.ts | https://raw.githubusercontent.com/porkus1990/steeve.jopps/aec0818/dm-jobs/api/src/services/userAddresses/userAddresses.test.ts | porkus1990/steeve.jopps aec0818 dm-jobs/api/src/services/userAddresses/userAddresses.test.ts | true | 200 | 2,087 | import {
userAddresses,
userAddress,
createUserAddress,
updateUserAddress,
deleteUserAddress,
} from './userAddresses';
import type { StandardScenario } from './userAddresses.scenarios';
// Generated boilerplate tests do not account for all circumstances
// and can fail without adjustments, e.g. Float and Da... | 2 |
typexs/typexs | db3e84d | packages/server/test/functional/controllers/system_node_info_controller.remote_node.spec.ts | TypeScript | www.github.com/typexs/typexs/tree/main/packages/server/test/functional/controllers/system_node_info_controller.remote_node.spec.ts | https://raw.githubusercontent.com/typexs/typexs/db3e84d/packages/server/test/functional/controllers/system_node_info_controller.remote_node.spec.ts | typexs/typexs db3e84d packages/server/test/functional/controllers/system_node_info_controller.remote_node.spec.ts | true | 200 | 2,937 | import { suite, test, timeout } from '@testdeck/mocha';
import { Bootstrap, Config, Injector } from '@typexs/base';
import { API_CTRL_SYSTEM_RUNTIME_NODES, C_API, K_ROUTE_CONTROLLER } from '../../../src/libs/Constants';
import { expect } from 'chai';
import { SpawnHandle } from '@typexs/testing';
import { TestHelper }... | 3 |
D4N23/Initial-APP-Angular | d7442aa | src/app/login/login.module.ts | TypeScript | www.github.com/D4N23/Initial-APP-Angular/tree/main/src/app/login/login.module.ts | https://raw.githubusercontent.com/D4N23/Initial-APP-Angular/d7442aa/src/app/login/login.module.ts | D4N23/Initial-APP-Angular d7442aa src/app/login/login.module.ts | true | 200 | 378 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LoginComponent } from './login.component';
import { FormsModule } from '@angular/forms';
import { AuthService } from '../services/auth.service';
@NgModule({
declarations: [LoginComponent],
imports: [
CommonModu... | 5 |
Fen747/sparta | d16ae46 | src/routes/(private)/clients/prospect-details/[slug]/+page.server.ts | TypeScript | www.github.com/Fen747/sparta/tree/main/src/routes/(private)/clients/prospect-details/[slug]/+page.server.ts | https://raw.githubusercontent.com/Fen747/sparta/d16ae46/src/routes/%28private%29/clients/prospect-details/%5Bslug%5D/%2Bpage.server.ts | Fen747/sparta d16ae46 src/routes/(private)/clients/prospect-details/[slug]/+page.server.ts | true | 200 | 4,698 | import { goto } from '$app/navigation';
import type { PageServerLoad } from './$types';
import { SpartaApi, getSpartaApi } from '~/lib/api-sdk';
import type { Clients } from '~/lib/api-sdk/types';
import {
formatDate,
convertToSecondsFromMidnight,
getSeanceBilan
} from '~/lib/utils';
const date = formatDate(new Dat... | 0 |
mxp131011/element-plus-doc | 3ffe570 | src/documents/modules/tree-select.ts | TypeScript | www.github.com/mxp131011/element-plus-doc/tree/main/src/documents/modules/tree-select.ts | https://raw.githubusercontent.com/mxp131011/element-plus-doc/3ffe570/src/documents/modules/tree-select.ts | mxp131011/element-plus-doc 3ffe570 src/documents/modules/tree-select.ts | true | 200 | 689 | import type { TagDoc } from '@/types/tag-doc';
const doc: TagDoc.TagDocInstance = {
url: 'component/tree-select.html',
attributes: [
{
name: 'tree',
description: { cn: '参照`el-tree`组件的,事件、方法、属性、插槽', en: 'Refer to the `el-tree` component, events, methods, Attributes、Slots' },
type: 'object',
... | 6 |
GP-2024/gp-backend | 93f0991 | src/common/interfaces/generalDto.ts | TypeScript | www.github.com/GP-2024/gp-backend/tree/main/src/common/interfaces/generalDto.ts | https://raw.githubusercontent.com/GP-2024/gp-backend/93f0991/src/common/interfaces/generalDto.ts | GP-2024/gp-backend 93f0991 src/common/interfaces/generalDto.ts | true | 200 | 404 | import { Exclude } from 'class-transformer';
import { IsOptional, IsInt, Min, IsUUID } from 'class-validator';
export abstract class GeneralDto {
@IsOptional()
@IsUUID('4')
id: string;
@Exclude()
updatedAt?: Date;
@Exclude()
createdAt?: Date;
@Exclude()
deletedAt?: Date;
@Exclude()
createdBy?... | 7 |
PatricioOrce/TP-SalaDeJuegos-LABIV | 29a0505 | src/app/modules/ahorcado/ahorcado.component.ts | TypeScript | www.github.com/PatricioOrce/TP-SalaDeJuegos-LABIV/tree/main/src/app/modules/ahorcado/ahorcado.component.ts | https://raw.githubusercontent.com/PatricioOrce/TP-SalaDeJuegos-LABIV/29a0505/src/app/modules/ahorcado/ahorcado.component.ts | PatricioOrce/TP-SalaDeJuegos-LABIV 29a0505 src/app/modules/ahorcado/ahorcado.component.ts | true | 200 | 2,774 | import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
// import { PuntajeService } from 'src/app/servicios/puntaje.service';
const CANTIDAD_INTENTOS_FALLIDOS = 5;
@Component({
selector: 'a... | 4 |
deepbludev/nestjs-microservices-example | 5dbdf9e | libs/shared/infra/comms/src/cqrs/eventbus.ts | TypeScript | www.github.com/deepbludev/nestjs-microservices-example/tree/main/libs/shared/infra/comms/src/cqrs/eventbus.ts | https://raw.githubusercontent.com/deepbludev/nestjs-microservices-example/5dbdf9e/libs/shared/infra/comms/src/cqrs/eventbus.ts | deepbludev/nestjs-microservices-example 5dbdf9e libs/shared/infra/comms/src/cqrs/eventbus.ts | true | 200 | 410 | import { Inject, Injectable } from '@nestjs/common'
import { IEventSubscriber, InMemoryAsyncEventBus } from '@obeya/shared/core'
import { CQRS } from './cqrs.tokens'
@Injectable()
export class EventBus extends InMemoryAsyncEventBus {
constructor(
@Inject(CQRS.EVENT_SUBSCRIBERS)
private readonly eventSubscri... | 2 |
siwar2019/wind-repair-api | 9248441 | src/models/subStore.model.ts | TypeScript | www.github.com/siwar2019/wind-repair-api/tree/main/src/models/subStore.model.ts | https://raw.githubusercontent.com/siwar2019/wind-repair-api/9248441/src/models/subStore.model.ts | siwar2019/wind-repair-api 9248441 src/models/subStore.model.ts | true | 200 | 978 | import {
Table,
Model,
Column,
DataType,
AutoIncrement,
PrimaryKey,
AllowNull,
HasMany,
ForeignKey,
BelongsTo
} from 'sequelize-typescript'
import { Store } from './store.model'
import { Product } from './product.model'
@Table({
timestamps: true,
tableName: 'sub_store'
}... | 0 |
ManuelCarrascal/heroesApp-Angular | c2deafc | src/app/auth/pages/login-page/login-page.component.ts | TypeScript | www.github.com/ManuelCarrascal/heroesApp-Angular/tree/main/src/app/auth/pages/login-page/login-page.component.ts | https://raw.githubusercontent.com/ManuelCarrascal/heroesApp-Angular/c2deafc/src/app/auth/pages/login-page/login-page.component.ts | ManuelCarrascal/heroesApp-Angular c2deafc src/app/auth/pages/login-page/login-page.component.ts | true | 200 | 590 | import { Component } from '@angular/core';
import { AuthService } from '../../services/auth.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-login-page',
standalone: false,
templateUrl: './login-page.component.html',
styleUrl: './login-page.component.scss',
})
export class Login... | 7 |
RaaPeixoto/phone-book-SOAP-health | a988e85 | phone_book_front/src/assets/styles/globalStyle.ts | TypeScript | www.github.com/RaaPeixoto/phone-book-SOAP-health/tree/main/phone_book_front/src/assets/styles/globalStyle.ts | https://raw.githubusercontent.com/RaaPeixoto/phone-book-SOAP-health/a988e85/phone_book_front/src/assets/styles/globalStyle.ts | RaaPeixoto/phone-book-SOAP-health a988e85 phone_book_front/src/assets/styles/globalStyle.ts | true | 200 | 1,356 | import { createGlobalStyle } from "styled-components";
const GlobalStyle = createGlobalStyle`
html, body, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i,... | 6 |
HitaloDev/BlogPosts | f168e61 | src/app/screens/publication/styles.ts | TypeScript | www.github.com/HitaloDev/BlogPosts/tree/main/src/app/screens/publication/styles.ts | https://raw.githubusercontent.com/HitaloDev/BlogPosts/f168e61/src/app/screens/publication/styles.ts | HitaloDev/BlogPosts f168e61 src/app/screens/publication/styles.ts | true | 200 | 2,439 | import { colors } from '@/src/styles/colors';
import { AntDesign } from '@expo/vector-icons';
import styled from 'styled-components/native';
export const Container = styled.View`
padding: 16px;
background-color: white;
height: 100%;
`;
export const HeaderRow = styled.View`
flex-direction: row;
align-items: ... | 4 |
BlackGlory/wait-for | dc331a3 | __tests__/wait-for-all-elements-matching-selector-detached.spec.ts | TypeScript | www.github.com/BlackGlory/wait-for/tree/main/__tests__/wait-for-all-elements-matching-selector-detached.spec.ts | https://raw.githubusercontent.com/BlackGlory/wait-for/dc331a3/__tests__/wait-for-all-elements-matching-selector-detached.spec.ts | BlackGlory/wait-for dc331a3 __tests__/wait-for-all-elements-matching-selector-detached.spec.ts | true | 200 | 938 | import { waitForAllElementsMatchingSelectorDetached } from '@src/wait-for-all-elements-matching-selector-detached.js'
describe(`
waitForAllElementsMatchingSelectorDetached(
selector: string
): Promise<void>
`, () => {
describe('elements do not exist', () => {
it('resolves immediately', async () => {
... | 2 |
gabogim27/MyPortfolio | 407dc95 | PortfolioClient/src/app/core/models/basics.ts | TypeScript | www.github.com/gabogim27/MyPortfolio/tree/main/PortfolioClient/src/app/core/models/basics.ts | https://raw.githubusercontent.com/gabogim27/MyPortfolio/407dc95/PortfolioClient/src/app/core/models/basics.ts | gabogim27/MyPortfolio 407dc95 PortfolioClient/src/app/core/models/basics.ts | true | 200 | 641 | import { Profile } from "./profile";
export interface Basics {
name: string;
label: string;
image: string;
email: string;
phone: string;
url: null;
summary: string;
profiles: Profile[];
headline: st... | 7 |
quinsberry/budget-tracking-app | 410f7c0 | src/v1/transactions/dto/update-transaction.dto.ts | TypeScript | www.github.com/quinsberry/budget-tracking-app/tree/main/src/v1/transactions/dto/update-transaction.dto.ts | https://raw.githubusercontent.com/quinsberry/budget-tracking-app/410f7c0/src/v1/transactions/dto/update-transaction.dto.ts | quinsberry/budget-tracking-app 410f7c0 src/v1/transactions/dto/update-transaction.dto.ts | true | 200 | 504 | import { ApiProperty } from '@nestjs/swagger';
import { createZodDto } from 'nestjs-zod';
import { z } from 'nestjs-zod/z';
const UpdateTransactionSchema = z.object({
description: z.string().optional(),
tags: z.array(z.string()).optional(),
});
export class UpdateTransactionDto extends createZodDto(UpdateTran... | 6 |
mauricio-corredor/Proyecto_Final | 07bb844 | backend/login/src/auth/auth.module.ts | TypeScript | www.github.com/mauricio-corredor/Proyecto_Final/tree/main/backend/login/src/auth/auth.module.ts | https://raw.githubusercontent.com/mauricio-corredor/Proyecto_Final/07bb844/backend/login/src/auth/auth.module.ts | mauricio-corredor/Proyecto_Final 07bb844 backend/login/src/auth/auth.module.ts | true | 200 | 948 | /* eslint-disable prettier/prettier */
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsuarioEntity } from 'src/usuario/usuario.entity';
import { RolEntity } from 'src/ro... | 4 |
GokulVGirish/VITAMEDICA-BACKEND | 1a03e92 | src/interface_adapters/controllers/admin/department.ts | TypeScript | www.github.com/GokulVGirish/VITAMEDICA-BACKEND/tree/main/src/interface_adapters/controllers/admin/department.ts | https://raw.githubusercontent.com/GokulVGirish/VITAMEDICA-BACKEND/1a03e92/src/interface_adapters/controllers/admin/department.ts | GokulVGirish/VITAMEDICA-BACKEND 1a03e92 src/interface_adapters/controllers/admin/department.ts | true | 200 | 1,862 | import IAdminDepartmentInteractor from "../../../entities/iuse_cases/admin/iDepartment";
import { Request, Response, NextFunction } from "express";
class AdminDepartmentControllers {
constructor(private readonly interactor: IAdminDepartmentInteractor) {}
async getDepartments(req: Request, res: Response, next: Nex... | 2 |
Bayes-T/07-pokemon | beb1bc4 | src/app/app.module.ts | TypeScript | www.github.com/Bayes-T/07-pokemon/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Bayes-T/07-pokemon/beb1bc4/src/app/app.module.ts | Bayes-T/07-pokemon beb1bc4 src/app/app.module.ts | true | 200 | 769 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { SharedModule } from './shared/shared.module';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { PokemonesModule } from './pokemones/pokemones.modu... | 0 |
SirGavith/advent | c16e609 | src/Advent2022/Advent2022.ts | TypeScript | www.github.com/SirGavith/advent/tree/main/src/Advent2022/Advent2022.ts | https://raw.githubusercontent.com/SirGavith/advent/c16e609/src/Advent2022/Advent2022.ts | SirGavith/advent c16e609 src/Advent2022/Advent2022.ts | true | 200 | 80,233 | const UseExample = false
import { Stack } from '../Glib/Stack'
import { Array2D, XY } from '../Glib/XY'
import { Filer } from '../Glib/Filer'
import { Sorts } from '../Glib/Sort'
import * as GArray from '../Glib/Array'
import * as Console from '../Glib/Console'
import { BigSet } from '../Glib/BigSet'
import { X... | 7 |
mr-flannery/aoc23 | 9060fa8 | src/day14.ts | TypeScript | www.github.com/mr-flannery/aoc23/tree/main/src/day14.ts | https://raw.githubusercontent.com/mr-flannery/aoc23/9060fa8/src/day14.ts | mr-flannery/aoc23 9060fa8 src/day14.ts | true | 200 | 3,273 | import { writeFile } from "fs/promises";
import { readInputFile, readSampleInputFile } from "./util"
import _ from "lodash";
import levenshtein from "js-levenshtein";
import { createHash } from "crypto";
function transpose(matrix): string[][] {
return _.zip(...matrix) as string[][];
}
async function part1() {
co... | 4 |
GustavoAraujo26/investment-simulation | 894bb94 | src/app/components/table-actions/table-actions.component.ts | TypeScript | www.github.com/GustavoAraujo26/investment-simulation/tree/main/src/app/components/table-actions/table-actions.component.ts | https://raw.githubusercontent.com/GustavoAraujo26/investment-simulation/894bb94/src/app/components/table-actions/table-actions.component.ts | GustavoAraujo26/investment-simulation 894bb94 src/app/components/table-actions/table-actions.component.ts | true | 200 | 954 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatTooltipModule } from '@angular/material/tooltip';
@Component({
selector: 'app-table-actions',
templateUrl: ... | 0 |
mrstalon/next-boilerplate | 94c51d5 | types/api.ts | TypeScript | www.github.com/mrstalon/next-boilerplate/tree/main/types/api.ts | https://raw.githubusercontent.com/mrstalon/next-boilerplate/94c51d5/types/api.ts | mrstalon/next-boilerplate 94c51d5 types/api.ts | true | 200 | 665 | import { User } from '@/types';
interface BackendBasicResponse {
err?: any;
err_str?: string;
status_code?: number;
err_code?: number;
}
type BackendResponse<T = {}> = BackendBasicResponse & T & {
isClientResponseError: boolean;
};
export type LogInResponse = BackendResponse<{
me: User;
}>;
type Fetcher = <Re... | 2 |
muhammadsahad1/SkillHub-server | 261dbcf | src/usecases/usecases/group/getGroup.ts | TypeScript | www.github.com/muhammadsahad1/SkillHub-server/tree/main/src/usecases/usecases/group/getGroup.ts | https://raw.githubusercontent.com/muhammadsahad1/SkillHub-server/261dbcf/src/usecases/usecases/group/getGroup.ts | muhammadsahad1/SkillHub-server 261dbcf src/usecases/usecases/group/getGroup.ts | true | 200 | 809 | import { IGroup } from "../../../commonEntities/entities/group.js";
import { IS3Operations } from "../../../framework/service/s3Bucket.js";
import { Next } from "../../../framework/types/serverPackageType.js";
import { IGroupRepository } from "../../interface/repositoryInterface/groupRepository.js";
import { ErrorHandl... | 6 |
AswaniTech95/Angular17-backup | 24e2cd9 | src/app/atma/paymentedit/paymentedit.component.ts | TypeScript | www.github.com/AswaniTech95/Angular17-backup/tree/main/src/app/atma/paymentedit/paymentedit.component.ts | https://raw.githubusercontent.com/AswaniTech95/Angular17-backup/24e2cd9/src/app/atma/paymentedit/paymentedit.component.ts | AswaniTech95/Angular17-backup 24e2cd9 src/app/atma/paymentedit/paymentedit.component.ts | true | 200 | 19,012 | import { Component, OnInit ,EventEmitter,Input,Output,ViewChild} from '@angular/core';
import { AtmaService } from '../atma.service'
import { NotificationService } from '../notification.service'
import { ShareService } from '../share.service'
import { FormGroup, FormControl, FormBuilder, Validators } from '@angular/for... | 7 |
Akalanka-1996/Task-Tracker | 1085850 | backend/src/main.ts | TypeScript | www.github.com/Akalanka-1996/Task-Tracker/tree/main/backend/src/main.ts | https://raw.githubusercontent.com/Akalanka-1996/Task-Tracker/1085850/backend/src/main.ts | Akalanka-1996/Task-Tracker 1085850 backend/src/main.ts | true | 200 | 278 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {cors: true});
app.setGlobalPrefix('api');
// app.enableCors();
await app.listen(5001);
}
bootstrap();
| 4 |
3dacceltech/OTT_Agent_v1.0 | 8cb8055 | node_modules/@mediapipe/tasks-genai/genai.d.ts | TypeScript | www.github.com/3dacceltech/OTT_Agent_v1.0/tree/main/node_modules/@mediapipe/tasks-genai/genai.d.ts | https://raw.githubusercontent.com/3dacceltech/OTT_Agent_v1.0/8cb8055/node_modules/%40mediapipe/tasks-genai/genai.d.ts | 3dacceltech/OTT_Agent_v1.0 8cb8055 node_modules/@mediapipe/tasks-genai/genai.d.ts | true | 200 | 16,147 | /// <reference types="@webgpu/types" />
/**
* Copyright 2022 The MediaPipe Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | 6 |
tolerevo/typescript | 612d4cb | getSunriseAndSunset.ts | TypeScript | www.github.com/tolerevo/typescript/tree/main/getSunriseAndSunset.ts | https://raw.githubusercontent.com/tolerevo/typescript/612d4cb/getSunriseAndSunset.ts | tolerevo/typescript 612d4cb getSunriseAndSunset.ts | true | 200 | 950 | import fetch from 'node-fetch';
type Options = {
latitude: number;
longitude: number;
};
type ApiResponseJSON = {
results: {
sunrise: string;
sunset: string;
solar_noon: string;
day_length: string;
civil_twighlight_begin: string;
civil_twighlight_end: string;
nautical_twighlight_begi... | 0 |
AlexFlores23/retoYape | e62f0ba | yape-with-kafka/dist/transaction/application/query/find-transaction-by-transactionid.result.d.ts | TypeScript | www.github.com/AlexFlores23/retoYape/tree/main/yape-with-kafka/dist/transaction/application/query/find-transaction-by-transactionid.result.d.ts | https://raw.githubusercontent.com/AlexFlores23/retoYape/e62f0ba/yape-with-kafka/dist/transaction/application/query/find-transaction-by-transactionid.result.d.ts | AlexFlores23/retoYape e62f0ba yape-with-kafka/dist/transaction/application/query/find-transaction-by-transactionid.result.d.ts | true | 200 | 386 | import { IQueryResult } from '@nestjs/cqrs';
export declare class FindTransactionByTransactionIdResult implements IQueryResult {
readonly transactionId: string;
readonly transactionType: number;
readonly transactionAccount: number;
readonly transactionAmount: number;
readonly transactionStatus: numb... | 2 |
cintiasana/portfolioangular | 2022018 | angular/src/app/componentes/servicios/persona.service.ts | TypeScript | www.github.com/cintiasana/portfolioangular/tree/main/angular/src/app/componentes/servicios/persona.service.ts | https://raw.githubusercontent.com/cintiasana/portfolioangular/2022018/angular/src/app/componentes/servicios/persona.service.ts | cintiasana/portfolioangular 2022018 angular/src/app/componentes/servicios/persona.service.ts | true | 200 | 957 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Persona } from '../modelo/persona';
@Injectable({
providedIn: 'root'
})
export class PersonaService {
url= 'http://localhost:8080/persona/';
constructor(private httpClient:H... | 7 |
HoMaiQue/lms_server | 3e3a013 | src/constants/enum.ts | TypeScript | www.github.com/HoMaiQue/lms_server/tree/main/src/constants/enum.ts | https://raw.githubusercontent.com/HoMaiQue/lms_server/3e3a013/src/constants/enum.ts | HoMaiQue/lms_server 3e3a013 src/constants/enum.ts | true | 200 | 378 | export enum ROLE {
client = 'client',
vendor = 'vendor'
}
export enum LayoutType {
Banner = 'Banner',
Faq = 'Faq',
Category = 'Category'
}
export enum UserVerifyStatus {
Unverified,
Verified,
Banned
}
export enum TokenType {
AccessToken,
RefreshToken,
ForgotPasswordToken,
EmailVerifyToken,
Act... | 4 |
hankeyyh/feishu-mcp-server | 9b51a64 | src/index.ts | TypeScript | www.github.com/hankeyyh/feishu-mcp-server/tree/main/src/index.ts | https://raw.githubusercontent.com/hankeyyh/feishu-mcp-server/9b51a64/src/index.ts | hankeyyh/feishu-mcp-server 9b51a64 src/index.ts | true | 200 | 2,445 | #!/usr/bin/env node
import { Command } from 'commander';
import { readFileSync } from 'fs';
import { join } from 'path';
import * as lark from '@larksuiteoapi/node-sdk';
import { FeiShuMcpServer } from './feishu_mcp_server';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { logger } from '.... | 0 |
eggsy/website | af0fb14 | plugins/Tippy.ts | TypeScript | www.github.com/eggsy/website/tree/main/plugins/Tippy.ts | https://raw.githubusercontent.com/eggsy/website/af0fb14/plugins/Tippy.ts | eggsy/website af0fb14 plugins/Tippy.ts | true | 200 | 295 | import { plugin as VueTippy } from "vue-tippy"
import "tippy.js/dist/tippy.css"
import "~/assets/css/modules/tippy.scss"
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueTippy, {
defaultProps: {
theme: "discord",
animation: "discord-anim",
},
})
})
| 6 |
zyzski/aoc22 | 4ef56d5 | src/8/8.test.ts | TypeScript | www.github.com/zyzski/aoc22/tree/main/src/8/8.test.ts | https://raw.githubusercontent.com/zyzski/aoc22/4ef56d5/src/8/8.test.ts | zyzski/aoc22 4ef56d5 src/8/8.test.ts | true | 200 | 933 | import path from 'path';
import { describe, expect, test } from 'vitest';
import { loadFile } from '../utils/load-file';
import { findBestTreeViewScore, findVisibleTrees } from './treetop-tree-house';
const samplePath = path.resolve(__dirname, './sample.txt');
const sample = loadFile(samplePath);
const puzzlePath = p... | 2 |
johnkrator/shopper.api | 99033ae | src/database/models/category.model.ts | TypeScript | www.github.com/johnkrator/shopper.api/tree/main/src/database/models/category.model.ts | https://raw.githubusercontent.com/johnkrator/shopper.api/99033ae/src/database/models/category.model.ts | johnkrator/shopper.api 99033ae src/database/models/category.model.ts | true | 200 | 518 | import mongoose, {Document, Schema} from "mongoose";
// Define the interface for the category schema
export interface ICategory extends Document {
name: string;
}
// Create the schema using the interface
const categorySchema: Schema<ICategory> = new mongoose.Schema({
name: {
type: String,
trim... | 7 |
Anujjoshi3105/fictora | 06ab5a0 | src/services/tmdb/api/watch-providers/index.ts | TypeScript | www.github.com/Anujjoshi3105/fictora/tree/main/src/services/tmdb/api/watch-providers/index.ts | https://raw.githubusercontent.com/Anujjoshi3105/fictora/06ab5a0/src/services/tmdb/api/watch-providers/index.ts | Anujjoshi3105/fictora 06ab5a0 src/services/tmdb/api/watch-providers/index.ts | true | 200 | 1,549 | import { api } from "@/services/tmdb/api/api";
import {
ListResponse,
WatchProvidersRequestParams,
} from "@/services/tmdb/api/types";
import {
GetAvailableRegionsResponse,
WatchProvider,
} from "@/services/tmdb/models";
/**
* Fetches the available regions for watch providers.
*
* @returns {Promise<GetAvail... | 4 |
Hughes89/form-gen-old | fb2d326 | src/hooks/useWaivers.ts | TypeScript | www.github.com/Hughes89/form-gen-old/tree/main/src/hooks/useWaivers.ts | https://raw.githubusercontent.com/Hughes89/form-gen-old/fb2d326/src/hooks/useWaivers.ts | Hughes89/form-gen-old fb2d326 src/hooks/useWaivers.ts | true | 200 | 972 | import { useCallback } from 'react'
import { useSelector } from 'react-redux'
import { IWaiver, postWaiver } from '../store/waivers'
import { ApplicationState } from '../store'
export const useWaivers = () => {
// const dispatch = useDispatch()
const loading: boolean = useSelector(
(state: ApplicationState):... | 0 |
gsasouza/no-code-ga | 528b8e9 | packages/relay/src/setupSubscription.ts | TypeScript | www.github.com/gsasouza/no-code-ga/tree/main/packages/relay/src/setupSubscription.ts | https://raw.githubusercontent.com/gsasouza/no-code-ga/528b8e9/packages/relay/src/setupSubscription.ts | gsasouza/no-code-ga 528b8e9 packages/relay/src/setupSubscription.ts | true | 200 | 552 | import { SubscribeFunction, Observable } from 'relay-runtime';
import { SubscriptionClient } from 'subscriptions-transport-ws';
const websocketURL = 'wss://qi4dcv7dn5.execute-api.us-east-1.amazonaws.com/dev';
export const setupSubscription: SubscribeFunction = (request, variables) => {
const query = request.text;
... | 6 |
rsns-0/5-star-frontend | 53f0589 | src/models/validationSchemas.ts | TypeScript | www.github.com/rsns-0/5-star-frontend/tree/main/src/models/validationSchemas.ts | https://raw.githubusercontent.com/rsns-0/5-star-frontend/53f0589/src/models/validationSchemas.ts | rsns-0/5-star-frontend 53f0589 src/models/validationSchemas.ts | true | 200 | 1,771 | import { z } from "zod"
import { commandArgumentSchema, commandSchema } from "./prismaZod"
export const reminderIdSchema = z
.number()
.gte(0, "ID was negative.")
.lte(Number.MAX_SAFE_INTEGER, "ID was too large.")
export const remindersFormSchema = z.object({
time: z
.date()
.max(new Date(99_999, 1, 1), { mes... | 7 |
CHNsPart/Lienzo-App | 2b894c3 | app/api/analytics/products/company-size/route.ts | TypeScript | www.github.com/CHNsPart/Lienzo-App/tree/main/app/api/analytics/products/company-size/route.ts | https://raw.githubusercontent.com/CHNsPart/Lienzo-App/2b894c3/app/api/analytics/products/company-size/route.ts | CHNsPart/Lienzo-App 2b894c3 app/api/analytics/products/company-size/route.ts | true | 200 | 2,294 | // app/api/analytics/products/company-size/route.ts
import { NextResponse } from "next/server";
import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server";
import prisma from "@/lib/prisma";
import { isAdminOrManager } from "@/lib/auth";
export async function GET() {
try {
const { getUser } = g... | 4 |
AbhishekD879/IVY-OZONE | 8ed8ea8 | oxygen-cms-ui/src/app/stream-and-bet/stream-and-bet.component.ts | TypeScript | www.github.com/AbhishekD879/IVY-OZONE/tree/main/oxygen-cms-ui/src/app/stream-and-bet/stream-and-bet.component.ts | https://raw.githubusercontent.com/AbhishekD879/IVY-OZONE/8ed8ea8/oxygen-cms-ui/src/app/stream-and-bet/stream-and-bet.component.ts | AbhishekD879/IVY-OZONE 8ed8ea8 oxygen-cms-ui/src/app/stream-and-bet/stream-and-bet.component.ts | true | 200 | 7,769 | import {Component, OnInit} from '@angular/core';
import {DialogService} from '../shared/dialog/dialog.service';
import { MatDialog } from '@angular/material/dialog';
import {AppConstants} from '../app.constants';
import {GlobalLoaderService} from '../shared/globalLoader/loader.service';
import {StreamAndBetAPIService} ... | 2 |
Scaling-Insights/Scaling-CMS | 25a5516 | backend/src/modules/content/content.controller.ts | TypeScript | www.github.com/Scaling-Insights/Scaling-CMS/tree/main/backend/src/modules/content/content.controller.ts | https://raw.githubusercontent.com/Scaling-Insights/Scaling-CMS/25a5516/backend/src/modules/content/content.controller.ts | Scaling-Insights/Scaling-CMS 25a5516 backend/src/modules/content/content.controller.ts | true | 200 | 3,355 | import { UploadContentDto } from 'src/modules/content/dto/upload-content.dto';
import { ContentService } from 'src/modules/content/content.service';
import { GetAllContentDto } from 'src/modules/content/dto/get-all-content.dto';
import { AuthGuard } from 'src/modules/auth/auth.guard';
import { StreamService } from '../... | 0 |
aaronjonesii/aaronjonesii | d363a46 | src/app/features/errors/error/error.component.ts | TypeScript | www.github.com/aaronjonesii/aaronjonesii/tree/main/src/app/features/errors/error/error.component.ts | https://raw.githubusercontent.com/aaronjonesii/aaronjonesii/d363a46/src/app/features/errors/error/error.component.ts | aaronjonesii/aaronjonesii d363a46 src/app/features/errors/error/error.component.ts | true | 200 | 429 | import { Component } from '@angular/core';
import { MatButton } from '@angular/material/button';
import { navPath } from '../../../app.routes';
import { RouterLink } from '@angular/router';
@Component({
selector: 'aj-error',
templateUrl: './error.component.html',
styleUrl: './error.component.scss',
standalone:... | 6 |
daugardas/nekilnojamas_turtas | 2b11df5 | app/Models/ataskaitaModel.ts | TypeScript | www.github.com/daugardas/nekilnojamas_turtas/tree/main/app/Models/ataskaitaModel.ts | https://raw.githubusercontent.com/daugardas/nekilnojamas_turtas/2b11df5/app/Models/ataskaitaModel.ts | daugardas/nekilnojamas_turtas 2b11df5 app/Models/ataskaitaModel.ts | true | 200 | 1,258 | // export type AtaskaitaModel = {
// asmens_kodas: number;
// vardas: string;
// pavarde: string;
// objekto_id: number;
// plotas: number;
// verte: number;
// nt_tipas: string;
// suteikimo_data: string; // paskolos suteikimo data siam objektui
// paskutinio_mokejimo_data: string; // paskolos paskut... | 7 |
AoftionStyle/simple-pubsub | 0aaf0ba | src/machine/MachineSubscriber.ts | TypeScript | www.github.com/AoftionStyle/simple-pubsub/tree/main/src/machine/MachineSubscriber.ts | https://raw.githubusercontent.com/AoftionStyle/simple-pubsub/0aaf0ba/src/machine/MachineSubscriber.ts | AoftionStyle/simple-pubsub 0aaf0ba src/machine/MachineSubscriber.ts | true | 200 | 2,149 | import { IEvent } from "../utils/pubsub/IEvent";
import { ISubscriber } from "../utils/pubsub/ISubscriber";
import { Machine } from "./Machine";
import { MachineRefillEvent, MachineSaleEvent } from "./MachineEvent";
export abstract class MachineSubscriber implements ISubscriber {
constructor (protected machines: Mac... | 4 |
communitynostalgiaproject/Nostalgia-Project-Server | e0208e8 | src/controllers/users.controller.ts | TypeScript | www.github.com/communitynostalgiaproject/Nostalgia-Project-Server/tree/main/src/controllers/users.controller.ts | https://raw.githubusercontent.com/communitynostalgiaproject/Nostalgia-Project-Server/e0208e8/src/controllers/users.controller.ts | communitynostalgiaproject/Nostalgia-Project-Server e0208e8 src/controllers/users.controller.ts | true | 200 | 2,007 | import { User } from "@projectTypes/user";
import { CRUDControllerBase } from "./base/CRUDControllerBase";
import { Document } from "mongoose";
import { Request, Response, NextFunction } from "express";
import UserModel from "../models/user.model";
import ExperienceModel from "../models/experience.model";
export class... | 1 |
nTz9/blocConnect | f624387 | blocConnect/src/app/components/admin-panel/manage-maintenance/manage-maintenance/manage-maintenance.component.ts | TypeScript | www.github.com/nTz9/blocConnect/tree/main/blocConnect/src/app/components/admin-panel/manage-maintenance/manage-maintenance/manage-maintenance.component.ts | https://raw.githubusercontent.com/nTz9/blocConnect/f624387/blocConnect/src/app/components/admin-panel/manage-maintenance/manage-maintenance/manage-maintenance.component.ts | nTz9/blocConnect f624387 blocConnect/src/app/components/admin-panel/manage-maintenance/manage-maintenance/manage-maintenance.component.ts | true | 200 | 3,707 | import { Component, OnInit } from '@angular/core';
import { ApartamentService } from 'src/app/services/apartament.service';
import { BlockService } from 'src/app/services/block.service';
import { MaintenanceService } from 'src/app/services/maintenance.service';
interface Bills {
apartament_number: string;
blockID:... | 0 |
xompass/web-sdk | 0688044 | src/models/ProjectOperabilitySummary.ts | TypeScript | www.github.com/xompass/web-sdk/tree/main/src/models/ProjectOperabilitySummary.ts | https://raw.githubusercontent.com/xompass/web-sdk/0688044/src/models/ProjectOperabilitySummary.ts | xompass/web-sdk 0688044 src/models/ProjectOperabilitySummary.ts | true | 200 | 637 | import { Log } from './Log';
import { Project } from './Project';
export type ProjectOperabilitySummary = {
month?: Date;
totalOperativeAssets?: number;
connectedAssetsEndPeriod?: number;
connectedAssetsStartPeriod?: number;
connectedAssets?: number;
disconnectedAssets?: number;
createdAssets?: number;
... | 6 |
yuforium/http-signature | 8cd125f | src/stringify.ts | TypeScript | www.github.com/yuforium/http-signature/tree/main/src/stringify.ts | https://raw.githubusercontent.com/yuforium/http-signature/8cd125f/src/stringify.ts | yuforium/http-signature 8cd125f src/stringify.ts | true | 200 | 1,379 | /*
Copyright 2020 Matti Hiltunen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 3 |
AdejokeOgunyinka/mainstack-challenge2 | 65ca791 | src/store/slices/userSlice.ts | TypeScript | www.github.com/AdejokeOgunyinka/mainstack-challenge2/tree/main/src/store/slices/userSlice.ts | https://raw.githubusercontent.com/AdejokeOgunyinka/mainstack-challenge2/65ca791/src/store/slices/userSlice.ts | AdejokeOgunyinka/mainstack-challenge2 65ca791 src/store/slices/userSlice.ts | true | 200 | 571 | import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { IUser } from './types'
interface IUserSliceState {
userDetails: IUser | null
}
const initialState: IUserSliceState = {
userDetails: null,
}
export const userSlice = createSlice({
name: 'user',
initialState,
reducers: {
... | 7 |
Altyair/nestjs-blog | 5317436 | src/modules/auth/services/auth-service.ts | TypeScript | www.github.com/Altyair/nestjs-blog/tree/main/src/modules/auth/services/auth-service.ts | https://raw.githubusercontent.com/Altyair/nestjs-blog/5317436/src/modules/auth/services/auth-service.ts | Altyair/nestjs-blog 5317436 src/modules/auth/services/auth-service.ts | true | 200 | 1,008 | import { Admin } from "../../admin/models/admin.entity";
import { Injectable } from "@nestjs/common";
import { JwtService } from "@nestjs/jwt";
import { Connection, Repository } from "typeorm";
import * as bcrypt from 'bcrypt';
@Injectable()
export class AuthService {
private adminRepository: Repository<Admin>;
... | 5 |
ehmicky/modern-errors-switch | 86d0efc | src/main.d.ts | TypeScript | www.github.com/ehmicky/modern-errors-switch/tree/main/src/main.d.ts | https://raw.githubusercontent.com/ehmicky/modern-errors-switch/86d0efc/src/main.d.ts | ehmicky/modern-errors-switch 86d0efc src/main.d.ts | true | 200 | 2,920 | import type { ErrorInstance, Info } from 'modern-errors'
/**
* The `condition` can be:
* - An error class, matched with
* [`instanceof`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof)
* - An error
* [`name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/R... | 4 |
Pranay-Tej/projecthub | ff4ec47 | ui-angular/src/app/projects/store/repo.effects.ts | TypeScript | www.github.com/Pranay-Tej/projecthub/tree/main/ui-angular/src/app/projects/store/repo.effects.ts | https://raw.githubusercontent.com/Pranay-Tej/projecthub/ff4ec47/ui-angular/src/app/projects/store/repo.effects.ts | Pranay-Tej/projecthub ff4ec47 ui-angular/src/app/projects/store/repo.effects.ts | true | 200 | 5,782 | import { authSelectors } from 'src/app/auth/store/auth.selectors';
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { Store } from '@ngrx/store';
import { EMPTY } from 'rxjs';
import {
catchError,
map,
mergeMap,
switchMap,
tap,
withLatestFrom,... | 2 |
zstobi/Angular-Randomizers | e6a1a29 | src/app/app.module.ts | TypeScript | www.github.com/zstobi/Angular-Randomizers/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/zstobi/Angular-Randomizers/e6a1a29/src/app/app.module.ts | zstobi/Angular-Randomizers e6a1a29 src/app/app.module.ts | true | 200 | 571 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { IntroComponent } from './components/intro/intro.component';
import { WordsComponent } from './components... | 1 |
CostantinoGouveia/SGM_ProjetoMonografia | 725df60 | transito_api/src/controllers/MultaController.ts | TypeScript | www.github.com/CostantinoGouveia/SGM_ProjetoMonografia/tree/main/transito_api/src/controllers/MultaController.ts | https://raw.githubusercontent.com/CostantinoGouveia/SGM_ProjetoMonografia/725df60/transito_api/src/controllers/MultaController.ts | CostantinoGouveia/SGM_ProjetoMonografia 725df60 transito_api/src/controllers/MultaController.ts | true | 200 | 10,434 | // src/controllers/MultaController.ts
import { Request, Response } from 'express';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
export const getMultas1 = async (req: Request, res: Response): Promise<void> => {
try {
const dataAtual = new Date();
const mesAtual ... | 0 |
US-EPA-CAMD/easey-qa-certification-api | 1613294 | src/unit-default-test-run/unit-default-test-run.repository.ts | TypeScript | www.github.com/US-EPA-CAMD/easey-qa-certification-api/tree/main/src/unit-default-test-run/unit-default-test-run.repository.ts | https://raw.githubusercontent.com/US-EPA-CAMD/easey-qa-certification-api/1613294/src/unit-default-test-run/unit-default-test-run.repository.ts | US-EPA-CAMD/easey-qa-certification-api 1613294 src/unit-default-test-run/unit-default-test-run.repository.ts | true | 200 | 378 | import { Injectable } from '@nestjs/common';
import { EntityManager, Repository } from 'typeorm';
import { UnitDefaultTestRun } from '../entities/unit-default-test-run.entity';
@Injectable()
export class UnitDefaultTestRunRepository extends Repository<
UnitDefaultTestRun
> {
constructor(entityManager: EntityManag... | 6 |
DisneyMjr/conectamaiszap | b0d6f9f | backend/src/config/upload.ts | TypeScript | www.github.com/DisneyMjr/conectamaiszap/tree/main/backend/src/config/upload.ts | https://raw.githubusercontent.com/DisneyMjr/conectamaiszap/b0d6f9f/backend/src/config/upload.ts | DisneyMjr/conectamaiszap b0d6f9f backend/src/config/upload.ts | true | 200 | 1,619 | import path from "path";
import multer from "multer";
import fs from "fs";
import Whatsapp from "../models/Whatsapp";
import { isEmpty, isNil } from "lodash";
const publicFolder = path.resolve(__dirname, "..", "..", "public");
export default {
directory: publicFolder,
storage: multer.diskStorage({
destination... | 5 |
ishaqyusuf/prodesk-turbo-latest | a12fce7 | apps/www/app/(v2)/(loggedIn)/sales-v2/_utils/find-door-svg.ts | TypeScript | www.github.com/ishaqyusuf/prodesk-turbo-latest/tree/main/apps/www/app/(v2)/(loggedIn)/sales-v2/_utils/find-door-svg.ts | https://raw.githubusercontent.com/ishaqyusuf/prodesk-turbo-latest/a12fce7/apps/www/app/%28v2%29/%28loggedIn%29/sales-v2/_utils/find-door-svg.ts | ishaqyusuf/prodesk-turbo-latest a12fce7 apps/www/app/(v2)/(loggedIn)/sales-v2/_utils/find-door-svg.ts | true | 200 | 777 | import JsonSearch from "@/_v2/lib/json-search";
import {
_dykeDoorsSvg2,
doorSvgsById,
dykeDoorsSvg,
} from "@/lib/data/dyke-doors-svg";
export function findDoorSvg(title, img) {
if (img) return {};
const s = new JsonSearch(_dykeDoorsSvg2, {
sort: true,
indices: {
... | 3 |
internetnacht/space-runner | 7655c80 | src/scenes/FinishedScreen.ts | TypeScript | www.github.com/internetnacht/space-runner/tree/main/src/scenes/FinishedScreen.ts | https://raw.githubusercontent.com/internetnacht/space-runner/7655c80/src/scenes/FinishedScreen.ts | internetnacht/space-runner 7655c80 src/scenes/FinishedScreen.ts | true | 200 | 3,132 | import { GameSettings } from '../components/GameSettings'
import { FancyClickButton } from '../components/buttons/FancyClickButton'
import { MusicPlayer } from '../components/MusicPlayer'
import { TaskId, TaskUnlocker } from '../auth/TaskUnlocker'
import { InternalGameError } from '../errors/InternalGameError'
export ... | 4 |
mjacob2/ohipo | f5468d7 | AngularTable3/src/app/app.component.ts | TypeScript | www.github.com/mjacob2/ohipo/tree/main/AngularTable3/src/app/app.component.ts | https://raw.githubusercontent.com/mjacob2/ohipo/f5468d7/AngularTable3/src/app/app.component.ts | mjacob2/ohipo f5468d7 AngularTable3/src/app/app.component.ts | true | 200 | 8,881 | import {
Component,
OnInit,
ViewChild,
ChangeDetectorRef,
ElementRef,
} from "@angular/core";
import { MatTableDataSource } from "@angular/material/table";
import { MatSort, MatSortable } from "@angular/material/sort";
import { SelectionModel } from "@angular/cdk/collections";
import {
animate,
state,
s... | 2 |
igorisolomon/ctnaija-admin | 7d3b9bd | src/app/shared/guards/auth.guard.ts | TypeScript | www.github.com/igorisolomon/ctnaija-admin/tree/main/src/app/shared/guards/auth.guard.ts | https://raw.githubusercontent.com/igorisolomon/ctnaija-admin/7d3b9bd/src/app/shared/guards/auth.guard.ts | igorisolomon/ctnaija-admin 7d3b9bd src/app/shared/guards/auth.guard.ts | true | 200 | 792 | import { Injectable } from '@angular/core';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';
import { Observable } from 'rxjs';
import { AuthService } from '../services/auth.service';
@Injectable({
providedIn: 'root'
})
export class AuthGuard implements Can... | 1 |
sunder-kirei/expense-tracker | a52582d | schema/PostAccount.schema.ts | TypeScript | www.github.com/sunder-kirei/expense-tracker/tree/main/schema/PostAccount.schema.ts | https://raw.githubusercontent.com/sunder-kirei/expense-tracker/a52582d/schema/PostAccount.schema.ts | sunder-kirei/expense-tracker a52582d schema/PostAccount.schema.ts | true | 200 | 319 | import { z } from "zod";
export const PostAccountSchema = z.object({
accountName: z.string(),
accountType: z.enum(["DEBIT", "CREDIT"]),
accountNumber: z.optional(z.string()),
bankName: z.string(),
isPrimary: z.optional(z.boolean()),
});
export type PostAccountInterface = z.infer<typeof PostAccountSchema>;
| 6 |
djordi10/staking-solidity-test | 55e0ae6 | ignition/modules/SetupStakingRewards.ts | TypeScript | www.github.com/djordi10/staking-solidity-test/tree/main/ignition/modules/SetupStakingRewards.ts | https://raw.githubusercontent.com/djordi10/staking-solidity-test/55e0ae6/ignition/modules/SetupStakingRewards.ts | djordi10/staking-solidity-test 55e0ae6 ignition/modules/SetupStakingRewards.ts | true | 200 | 431 | import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
const SetupStakingRewardsModule = buildModule("SetupStakingRewardsModule", (m) => {
const stakingAddress = "0xc3928A267b411Df684960ED6C5f62dB0bBDfC3fd"; // Replace with actual address
const staking = m.contractAt("Staking", stakingAddress);
... | 7 |
gandlafbtc/nutstash-wallet | cff1d1b | src/lib/stores/local/message.ts | TypeScript | www.github.com/gandlafbtc/nutstash-wallet/tree/main/src/lib/stores/local/message.ts | https://raw.githubusercontent.com/gandlafbtc/nutstash-wallet/cff1d1b/src/lib/stores/local/message.ts | gandlafbtc/nutstash-wallet cff1d1b src/lib/stores/local/message.ts | true | 200 | 469 | import { browser } from '$app/environment';
import { writable } from 'svelte/store';
const initialValueSting: string = browser
? (window.localStorage.getItem('isOnBoarded') ?? 'false')
: 'false';
const initialValue: boolean = JSON.parse(initialValueSting);
const isOnboarded = writable<boolean>(initialValue);
isO... | 0 |
Katrinasms/Dairy | bc3dae1 | src/app/app.module.ts | TypeScript | www.github.com/Katrinasms/Dairy/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Katrinasms/Dairy/bc3dae1/src/app/app.module.ts | Katrinasms/Dairy bc3dae1 src/app/app.module.ts | true | 200 | 2,522 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.comp... | 5 |
milieuinfo/uigov-web-components | d960392 | libs/common/utilities/src/css/base/paragraph/vl-paragraph.css.ts | TypeScript | www.github.com/milieuinfo/uigov-web-components/tree/main/libs/common/utilities/src/css/base/paragraph/vl-paragraph.css.ts | https://raw.githubusercontent.com/milieuinfo/uigov-web-components/d960392/libs/common/utilities/src/css/base/paragraph/vl-paragraph.css.ts | milieuinfo/uigov-web-components d960392 libs/common/utilities/src/css/base/paragraph/vl-paragraph.css.ts | true | 200 | 773 | import { css } from 'lit';
import { vlMediaScreenMedium, vlMediaScreenSmall } from '../var/vl-media-screen.css';
export const vlParagraphStyles = css`
p {
&.bold {
font-weight: 500;
}
&.introduction {
font-family: var(--vl-font);
font-size: var(--vl-font... | 4 |
openTdataCH/OJP-Showcase | 6b00b7a | apps/hrdf-duplicates-report/src/app/hrdf-duplicates/types/hrdf-duplicates-report.ts | TypeScript | www.github.com/openTdataCH/OJP-Showcase/tree/main/apps/hrdf-duplicates-report/src/app/hrdf-duplicates/types/hrdf-duplicates-report.ts | https://raw.githubusercontent.com/openTdataCH/OJP-Showcase/6b00b7a/apps/hrdf-duplicates-report/src/app/hrdf-duplicates/types/hrdf-duplicates-report.ts | openTdataCH/OJP-Showcase 6b00b7a apps/hrdf-duplicates-report/src/app/hrdf-duplicates/types/hrdf-duplicates-report.ts | true | 200 | 479 | import Agency from "../models/gtfs/agency";
import Trip_Variant from "../models/hrdf/trip_variant";
export interface HRDF_DuplicatesReport {
agenciesData: HRDF_DuplicatesAgencyData[],
serviceData: Record<string, string>
}
export interface HRDF_DuplicatesAgencyData {
agency: Agency
sortKey: string
... | 3 |
hansireit/angular-lib | 7c286cb | libs/angular-base/src/lib/util/remove-nil-values-recursively.ts | TypeScript | www.github.com/hansireit/angular-lib/tree/main/libs/angular-base/src/lib/util/remove-nil-values-recursively.ts | https://raw.githubusercontent.com/hansireit/angular-lib/7c286cb/libs/angular-base/src/lib/util/remove-nil-values-recursively.ts | hansireit/angular-lib 7c286cb libs/angular-base/src/lib/util/remove-nil-values-recursively.ts | true | 200 | 839 | /* eslint-disable @typescript-eslint/no-explicit-any */
import { isNil } from './is-nil';
export const removeNullValuesRecursively = (object: any): any => {
if (Array.isArray(object)) {
const newObject = [];
for (const obj of object) {
newObject.push(removeNullValuesRecursively(obj));
}
retur... | 2 |
moochannel/todo-sst-sveltekit | 287125e | packages/frontend/src/domain/todo/usecases/toggleDone.ts | TypeScript | www.github.com/moochannel/todo-sst-sveltekit/tree/main/packages/frontend/src/domain/todo/usecases/toggleDone.ts | https://raw.githubusercontent.com/moochannel/todo-sst-sveltekit/287125e/packages/frontend/src/domain/todo/usecases/toggleDone.ts | moochannel/todo-sst-sveltekit 287125e packages/frontend/src/domain/todo/usecases/toggleDone.ts | true | 200 | 909 | import { inject, injectable } from 'inversify'
import { type ResultAsync } from 'neverthrow'
import { exhaustive } from '$lib/utils/typing'
import { TYPES } from '../../../di/types'
import type { ITodoRepository } from '../models/iTodoRepository'
import { ActiveTodo, CompletedTodo, type Todo } from '../models/todo'
... | 1 |
kjpar0317/airflow_custom | e5872a0 | frontend/src/app/api/flows/dag/[dag_id]/route.ts | TypeScript | www.github.com/kjpar0317/airflow_custom/tree/main/frontend/src/app/api/flows/dag/[dag_id]/route.ts | https://raw.githubusercontent.com/kjpar0317/airflow_custom/e5872a0/frontend/src/app/api/flows/dag/%5Bdag_id%5D/route.ts | kjpar0317/airflow_custom e5872a0 frontend/src/app/api/flows/dag/[dag_id]/route.ts | true | 200 | 1,511 | import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import connection from "@/util/dbconn_util";
export const PUT = async (
req: NextRequest,
{ params }: { params: IAirflowDag }
) => {
try {
const body: IAirflowDag = await req.json();
if (!params.dag_id) return;... | 6 |
andrey-chubov/shop | 3d58b0c | src/app/cart-page/cart-page.component.ts | TypeScript | www.github.com/andrey-chubov/shop/tree/main/src/app/cart-page/cart-page.component.ts | https://raw.githubusercontent.com/andrey-chubov/shop/3d58b0c/src/app/cart-page/cart-page.component.ts | andrey-chubov/shop 3d58b0c src/app/cart-page/cart-page.component.ts | true | 200 | 1,907 | import { Component, OnInit } from '@angular/core';
import { ProductService } from '../shared/product.service';
import { Product } from '../shared/interfaces';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { OrderService } from '../shared/order.service';
import { Router } from '@angular/rou... | 0 |
FYP-Learner-Support-System/lss-frontend | 14ee2c0 | src/app/pipes/filterChat/filter-chat.pipe.ts | TypeScript | www.github.com/FYP-Learner-Support-System/lss-frontend/tree/main/src/app/pipes/filterChat/filter-chat.pipe.ts | https://raw.githubusercontent.com/FYP-Learner-Support-System/lss-frontend/14ee2c0/src/app/pipes/filterChat/filter-chat.pipe.ts | FYP-Learner-Support-System/lss-frontend 14ee2c0 src/app/pipes/filterChat/filter-chat.pipe.ts | true | 200 | 802 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'filterChat',
standalone: true
})
export class FilterChatPipe implements PipeTransform {
transform(value: any, ...args: any[]): any {
// console.log("value: ",value)
// console.log("arg: ",args)
if(args[0]===undefined){
arg... | 5 |
oriML/portfoliogular | 0d88e16 | src/app/pages/models/index.ts | TypeScript | www.github.com/oriML/portfoliogular/tree/main/src/app/pages/models/index.ts | https://raw.githubusercontent.com/oriML/portfoliogular/0d88e16/src/app/pages/models/index.ts | oriML/portfoliogular 0d88e16 src/app/pages/models/index.ts | true | 200 | 648 | export interface ITimeLineModel {
company: string;
content: string;
date: string;
stack: string;
role: string;
logo?: {
src: string;
alt: string;
}
color: string;
dir: string;
}
export interface IEducationModel {
school: string;
degree: string;
content: s... | 4 |
Alan-Nixon/av_streams | 181e240 | client-side-stream/src/Redux/sideBarRedux.ts | TypeScript | www.github.com/Alan-Nixon/av_streams/tree/main/client-side-stream/src/Redux/sideBarRedux.ts | https://raw.githubusercontent.com/Alan-Nixon/av_streams/181e240/client-side-stream/src/Redux/sideBarRedux.ts | Alan-Nixon/av_streams 181e240 client-side-stream/src/Redux/sideBarRedux.ts | true | 200 | 542 | import { createSlice } from '@reduxjs/toolkit';
const initialState = {
width: window.innerWidth,
height: window.innerHeight
};
const counterSlice = createSlice({
name: 'authentication',
initialState,
reducers: {
setSceenWidth(state, action) {
state.width = action.payload;
... | 7 |
andrii-nastenko/ui-playwright-tests | af87e14 | src/fixtures/traces.ts | TypeScript | www.github.com/andrii-nastenko/ui-playwright-tests/tree/main/src/fixtures/traces.ts | https://raw.githubusercontent.com/andrii-nastenko/ui-playwright-tests/af87e14/src/fixtures/traces.ts | andrii-nastenko/ui-playwright-tests af87e14 src/fixtures/traces.ts | true | 200 | 1,398 | import {type test} from '@playwright/test';
export interface TracesFixture {
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
traces: void;
}
type TracesFixtureExtended = Parameters<typeof test.extend<TracesFixture>>;
/** save traces and screenshot for failed tests */
const tracesFixture: Trace... | 3 |
Mar-Falcon/Movies-App | 8b82c53 | src/types/models.ts | TypeScript | www.github.com/Mar-Falcon/Movies-App/tree/main/src/types/models.ts | https://raw.githubusercontent.com/Mar-Falcon/Movies-App/8b82c53/src/types/models.ts | Mar-Falcon/Movies-App 8b82c53 src/types/models.ts | true | 200 | 1,082 | export type User = {
id: string,
email: string,
password: string,
name: string,
lastName: string,
birthdate: string,
sessionToken?: string,
role: string,
viewed?: string[],
};
export type AddUserType = Omit<User, "id">;
export type Item = {
poster_path?: string | undefined,
adult?: boolean,
overview... | 2 |
JoseEduardoRivera/didaskalia | c1a72f2 | src/interfaces/courses-interface.ts | TypeScript | www.github.com/JoseEduardoRivera/didaskalia/tree/main/src/interfaces/courses-interface.ts | https://raw.githubusercontent.com/JoseEduardoRivera/didaskalia/c1a72f2/src/interfaces/courses-interface.ts | JoseEduardoRivera/didaskalia c1a72f2 src/interfaces/courses-interface.ts | true | 200 | 1,817 | export type ValidFormat = 'video' | 'image';
export interface Course {
name: string; //Titulo del curso
description: string; //Descripcion del curso
image:string; //Imagen principal del curso
slug:string,
tags:string[],
price:number; //precio del curso
author:string; //autor del curso
... | 1 |
botmi25102002/datn | 3dd27be | BE/Internal/src/Repositories/implementation/CartItemRepository.ts | TypeScript | www.github.com/botmi25102002/datn/tree/main/BE/Internal/src/Repositories/implementation/CartItemRepository.ts | https://raw.githubusercontent.com/botmi25102002/datn/3dd27be/BE/Internal/src/Repositories/implementation/CartItemRepository.ts | botmi25102002/datn 3dd27be BE/Internal/src/Repositories/implementation/CartItemRepository.ts | true | 200 | 781 | import { injectable } from "inversify";
import "reflect-metadata";
import { ICartItemRepository } from "../ICartItemRepository";
import { BaseRepository } from "./BaseRepository";
import { CartItem } from "../../Models";
import message from "../../Utils/Message";
@injectable()
export class CartItemRepository
extends ... | 0 |
bilipapapa/prome | 28977f9 | src/hooks/vxeTable.ts | TypeScript | www.github.com/bilipapapa/prome/tree/main/src/hooks/vxeTable.ts | https://raw.githubusercontent.com/bilipapapa/prome/28977f9/src/hooks/vxeTable.ts | bilipapapa/prome 28977f9 src/hooks/vxeTable.ts | true | 200 | 4,367 | import { ElMessage } from 'element-plus';
import tools from '@/utils/tools';
export function useVxeTable(options?: VxeGridOptions) {
const initOptions: VxeHookProps = {
// 列表数据是否正在加载中,默认为false
dataListLoading: false,
// 是否需要自动请求创建接口来获取表格数据,默认为true
immediate: true,
// 是否展示分页组件,默认为true
isPage: true,
// 查询... | 6 |
akbaraditamasp/njin-whatsapp | 8511914 | src/modules/logger.ts | TypeScript | www.github.com/akbaraditamasp/njin-whatsapp/tree/main/src/modules/logger.ts | https://raw.githubusercontent.com/akbaraditamasp/njin-whatsapp/8511914/src/modules/logger.ts | akbaraditamasp/njin-whatsapp 8511914 src/modules/logger.ts | true | 200 | 579 | import { resolve } from "path";
import { default as pino } from "pino";
import pinoPretty from "pino-pretty";
import SonicBoom from "sonic-boom";
function logger() {
const logger = pino.default(
pino.transport({
target: "pino-pretty",
})
);
const toFile = (id: string) =>
pino.default(
pi... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.