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
nadeenmahmoudd/Graduation-AN
68bca34
B-app/src/app/services/categories.service.ts
TypeScript
www.github.com/nadeenmahmoudd/Graduation-AN/tree/main/B-app/src/app/services/categories.service.ts
https://raw.githubusercontent.com/nadeenmahmoudd/Graduation-AN/68bca34/B-app/src/app/services/categories.service.ts
nadeenmahmoudd/Graduation-AN 68bca34 B-app/src/app/services/categories.service.ts
true
200
699
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class CategoriesService { constructor( private _httpClient:HttpClient) { } getAllCategories():Observable<any>{ return this._httpClient.get(...
4
handersoncoq/soll
a405e9d
src/app/interaces/GroupDetails.ts
TypeScript
www.github.com/handersoncoq/soll/tree/main/src/app/interaces/GroupDetails.ts
https://raw.githubusercontent.com/handersoncoq/soll/a405e9d/src/app/interaces/GroupDetails.ts
handersoncoq/soll a405e9d src/app/interaces/GroupDetails.ts
true
200
514
import { GroupLeader } from "./GroupLeader"; import { GroupMember } from "./GroupMember"; import { User } from "./User"; export interface GroupDetail { groupName: string; groupLocation: string, payoutSystem: string; savingsTarget: number; contribution: number, frequency: string, groupSize: ...
7
bitnerrd/nest_starter
a3cd47b
src/api/stripe/stripe.module.ts
TypeScript
www.github.com/bitnerrd/nest_starter/tree/main/src/api/stripe/stripe.module.ts
https://raw.githubusercontent.com/bitnerrd/nest_starter/a3cd47b/src/api/stripe/stripe.module.ts
bitnerrd/nest_starter a3cd47b src/api/stripe/stripe.module.ts
true
200
629
import { Module } from "@nestjs/common"; import { StripeService } from "./stripe.service"; import { StripeController } from "./stripe.controller"; import { MongooseModule } from "@nestjs/mongoose"; import { Payment, PaymentModel } from "./stripe.model"; import { AuthService } from "../auth/auth.service"; import { Login...
2
katsumiok/askit-artifact
e8609af
GSM8K/ts/src2/1116.ts
TypeScript
www.github.com/katsumiok/askit-artifact/tree/main/GSM8K/ts/src2/1116.ts
https://raw.githubusercontent.com/katsumiok/askit-artifact/e8609af/GSM8K/ts/src2/1116.ts
katsumiok/askit-artifact e8609af GSM8K/ts/src2/1116.ts
true
200
1,454
import { define, getErrors, getReason, getCompletion } from 'ts-askit' import * as t from 'ts-askit/types' import * as fs from 'fs' async function doit() { if (fs.existsSync('json2/1116.json')) { console.log("Skipping 1116") return; } // measure time const f = define<number, {x1: number}...
1
manueldago/typescriptCustomSort
84a3943
CustomSort.Test.ts
TypeScript
www.github.com/manueldago/typescriptCustomSort/tree/main/CustomSort.Test.ts
https://raw.githubusercontent.com/manueldago/typescriptCustomSort/84a3943/CustomSort.Test.ts
manueldago/typescriptCustomSort 84a3943 CustomSort.Test.ts
true
200
761
import { CustomSort } from "./CustomSort" export interface IArray { id: number, state: string, } let originalArray : Array<IArray>= []; originalArray = [ { id: 1, state:"pending"}, { id: 2, state:"done"}, { id: 3, state:"inprogress"}, ...
6
rodrisan/typescript-advanced-types-functions
94237ad
src/app/products/product.service.ts
TypeScript
www.github.com/rodrisan/typescript-advanced-types-functions/tree/main/src/app/products/product.service.ts
https://raw.githubusercontent.com/rodrisan/typescript-advanced-types-functions/94237ad/src/app/products/product.service.ts
rodrisan/typescript-advanced-types-functions 94237ad src/app/products/product.service.ts
true
200
1,422
import { faker } from '@faker-js/faker'; import { CreateProductDto, FindProductDto, UpdateProductDto } from './product.dto'; import { Product } from './product.model' export const products: Product[] = []; export const addProduct = (data: CreateProductDto): Product => { const newProduct = { ...data, id: fak...
5
bangkitwira16/usersBio
7af8a5a
src/app/shared/components/table/table.component.ts
TypeScript
www.github.com/bangkitwira16/usersBio/tree/main/src/app/shared/components/table/table.component.ts
https://raw.githubusercontent.com/bangkitwira16/usersBio/7af8a5a/src/app/shared/components/table/table.component.ts
bangkitwira16/usersBio 7af8a5a src/app/shared/components/table/table.component.ts
true
200
2,104
import { Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, } from '@angular/core'; import { MatSort, Sort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { TableColumn } from './table.model'; @Component({ select...
4
AyushShivhare79/doctor-book
1091af7
packages/db/prisma/seed.ts
TypeScript
www.github.com/AyushShivhare79/doctor-book/tree/main/packages/db/prisma/seed.ts
https://raw.githubusercontent.com/AyushShivhare79/doctor-book/1091af7/packages/db/prisma/seed.ts
AyushShivhare79/doctor-book 1091af7 packages/db/prisma/seed.ts
true
200
4,286
import prisma from "@repo/db/client"; async function main() { //Admins const seedData: any = [ { firstName: "Light", lastName: "Yagami", emailId: "light@gmail.com", address: "GOD", phoneNumber: 1234567881, fees: 1000, password: "12345678", image: "https:/...
7
dextermontero/typescript-with-localstorage
7be4c1e
src/index.ts
TypeScript
www.github.com/dextermontero/typescript-with-localstorage/tree/main/src/index.ts
https://raw.githubusercontent.com/dextermontero/typescript-with-localstorage/7be4c1e/src/index.ts
dextermontero/typescript-with-localstorage 7be4c1e src/index.ts
true
200
3,847
const input_name = (<HTMLOutputElement>document.getElementById('name')); const input_email = (<HTMLOutputElement>document.getElementById('email')); const input_address = (<HTMLOutputElement>document.getElementById('address')); const input_phone = (<HTMLOutputElement>document.getElementById('phone')); const input_btn = ...
1
diegojimenes/teste_hygea
4937269
api/src/repositories/mongoDb/index.ts
TypeScript
www.github.com/diegojimenes/teste_hygea/tree/main/api/src/repositories/mongoDb/index.ts
https://raw.githubusercontent.com/diegojimenes/teste_hygea/4937269/api/src/repositories/mongoDb/index.ts
diegojimenes/teste_hygea 4937269 api/src/repositories/mongoDb/index.ts
true
200
264
import * as dotenv from "dotenv" import mongoose from "mongoose" dotenv.config() mongoose.connect(process.env.DATA_BASE ?? '') .then(() => { console.log('new connection') }).catch(() => { console.log('connection failed') }) export default mongoose
2
ma3332/fidec
2b8875e
src/store/StoreComponents/Networks/networks.ts
TypeScript
www.github.com/ma3332/fidec/tree/main/src/store/StoreComponents/Networks/networks.ts
https://raw.githubusercontent.com/ma3332/fidec/2b8875e/src/store/StoreComponents/Networks/networks.ts
ma3332/fidec 2b8875e src/store/StoreComponents/Networks/networks.ts
true
200
1,820
import { createSlice } from "@reduxjs/toolkit"; type InitialState = { loading: boolean; network: { name?: string, url?: string, ws?: string, chainID?: number, symbol?: string, }; networks: [{ name?: string, url?: string, ws?: string, chainID?: number, symbol?: string, ...
3
thienha20/sellers-center
aa03d13
pages/api/users/create.ts
TypeScript
www.github.com/thienha20/sellers-center/tree/main/pages/api/users/create.ts
https://raw.githubusercontent.com/thienha20/sellers-center/aa03d13/pages/api/users/create.ts
thienha20/sellers-center aa03d13 pages/api/users/create.ts
true
200
1,442
import { withIronSessionApiRoute } from "iron-session/next"; import { sessionOptions } from "../../../utils/iron-auth/session"; import { NextApiRequest, NextApiResponse } from "next"; import axios from "axios"; import { fnApiUrl } from "../../../utils/url"; export default withIronSessionApiRoute(createRoute, sessionOp...
6
Traam0/nextjs-invoices
9a6ee14
services/appSlice.ts
TypeScript
www.github.com/Traam0/nextjs-invoices/tree/main/services/appSlice.ts
https://raw.githubusercontent.com/Traam0/nextjs-invoices/9a6ee14/services/appSlice.ts
Traam0/nextjs-invoices 9a6ee14 services/appSlice.ts
true
200
383
import { createSlice } from "@reduxjs/toolkit"; import { getCookie } from "cookies-next"; interface InitialStateProps { locked: boolean; } const initialState: InitialStateProps = { locked: getCookie("app@locked") ? JSON.parse(getCookie("app@locked") as string).state : false, }; export const appSlice = cr...
5
hongha88/demo
0d33cbf
src/services/demo/master/master.controller.ts
TypeScript
www.github.com/hongha88/demo/tree/main/src/services/demo/master/master.controller.ts
https://raw.githubusercontent.com/hongha88/demo/0d33cbf/src/services/demo/master/master.controller.ts
hongha88/demo 0d33cbf src/services/demo/master/master.controller.ts
true
200
2,753
import { Body, Controller, Get, Param, Post, Put, Req } from '@nestjs/common'; import { MasterService } from './master.service'; import { Request } from 'express'; import { MasterIdParam } from './params/masterId.param'; import { CreateMasterRequest } from './requests/createMaster.request'; import { DemoController } fr...
4
filiperaiz/roots-ds
3aa006c
src/utils/media.ts
TypeScript
www.github.com/filiperaiz/roots-ds/tree/main/src/utils/media.ts
https://raw.githubusercontent.com/filiperaiz/roots-ds/3aa006c/src/utils/media.ts
filiperaiz/roots-ds 3aa006c src/utils/media.ts
true
200
747
/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-nocheck import { css } from 'styled-components' export const defaultBreakpoints = { xxlarge: '1584px', xlarge: '1312px', large: '1056px', medium: '672px', small: '320px' } export function generateMedia(breakpoints = defaultBreakpoints) { const ...
7
cristiansn14/AgroPro
e334711
src/app/usuario/cambiar-contraseña/change-password.component.ts
TypeScript
www.github.com/cristiansn14/AgroPro/tree/main/src/app/usuario/cambiar-contraseña/change-password.component.ts
https://raw.githubusercontent.com/cristiansn14/AgroPro/e334711/src/app/usuario/cambiar-contrase%C3%B1a/change-password.component.ts
cristiansn14/AgroPro e334711 src/app/usuario/cambiar-contraseña/change-password.component.ts
true
200
2,366
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { ChangePassword } from 'src/app/model/changePassword'; import { AuthService } from 'src/app/service/auth.service'; @Component({ selector: 'app-change-passwo...
3
website-local/website-scrap-engine
e29476d
src/life-cycle/default-life-cycle.ts
TypeScript
www.github.com/website-local/website-scrap-engine/tree/main/src/life-cycle/default-life-cycle.ts
https://raw.githubusercontent.com/website-local/website-scrap-engine/e29476d/src/life-cycle/default-life-cycle.ts
website-local/website-scrap-engine e29476d src/life-cycle/default-life-cycle.ts
true
200
1,399
import type {ProcessingLifeCycle} from './types.js'; import {skipLinks} from './skip-links.js'; import {detectResourceType} from './detect-resource-type.js'; import {createResource} from '../resource.js'; import {downloadResource} from './download-resource.js'; import {processHtml} from './process-html.js'; import {pro...
2
ericknathan/easy-aluga
bf887d5
src/routes/company/[slug]/+layout.ts
TypeScript
www.github.com/ericknathan/easy-aluga/tree/main/src/routes/company/[slug]/+layout.ts
https://raw.githubusercontent.com/ericknathan/easy-aluga/bf887d5/src/routes/company/%5Bslug%5D/%2Blayout.ts
ericknathan/easy-aluga bf887d5 src/routes/company/[slug]/+layout.ts
true
200
758
import { error } from '@sveltejs/kit'; import type { LayoutLoad } from './$types'; import { companyData } from '$lib/stores'; import type { CompanyModel, VehicleModel } from '$lib/types'; import companies from '$lib/database/companies.json'; export const load: LayoutLoad = async ({ params, fetch, url }) => { const ...
1
ndt0812/demoBuyIco
5f6ff6f
src/themes/index.ts
TypeScript
www.github.com/ndt0812/demoBuyIco/tree/main/src/themes/index.ts
https://raw.githubusercontent.com/ndt0812/demoBuyIco/5f6ff6f/src/themes/index.ts
ndt0812/demoBuyIco 5f6ff6f src/themes/index.ts
true
200
824
import { ChakraProvider,ComponentStyleConfig,extendTheme } from "@chakra-ui/react"; import { ThemeConfig } from "tailwindcss/types/config"; const config: ThemeConfig = { initialColorMode: 'dark', useSystemColorMode: false } const Button: ComponentStyleConfig = { variants: { 'primary': { bg: '#fedf56'...
6
chankruze/chatsock
4370f97
lib/db.ts
TypeScript
www.github.com/chankruze/chatsock/tree/main/lib/db.ts
https://raw.githubusercontent.com/chankruze/chatsock/4370f97/lib/db.ts
chankruze/chatsock 4370f97 lib/db.ts
true
200
442
/* Author: chankruze (chankruze@gmail.com) Created: Sat Aug 26 2023 08:00:23 GMT-0400 (Eastern Daylight Time) Copyright (c) geekofia 2023 and beyond */ import { PrismaClient } from '@prisma/client'; declare global { var prisma: PrismaClient | undefined; } export const prisma = globalThis.prisma || new PrismaC...
5
Akshata-444/AngularFrontend
2f305f9
src/app/component/dashboard/dashboard.component.ts
TypeScript
www.github.com/Akshata-444/AngularFrontend/tree/main/src/app/component/dashboard/dashboard.component.ts
https://raw.githubusercontent.com/Akshata-444/AngularFrontend/2f305f9/src/app/component/dashboard/dashboard.component.ts
Akshata-444/AngularFrontend 2f305f9 src/app/component/dashboard/dashboard.component.ts
true
200
1,268
import { Component ,OnInit} from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { User } from 'src/app/Models/user'; import { GetuserdetailService } from 'src/app/Services/getuserdetail.service'; import { AuthService } from 'src/app/Services/auth.service'; import { FormBuilder, FormGr...
4
Brometey/Microservices_entry
80b7330
apps/account/src/app/user/sagas/buy-course.state.ts
TypeScript
www.github.com/Brometey/Microservices_entry/tree/main/apps/account/src/app/user/sagas/buy-course.state.ts
https://raw.githubusercontent.com/Brometey/Microservices_entry/80b7330/apps/account/src/app/user/sagas/buy-course.state.ts
Brometey/Microservices_entry 80b7330 apps/account/src/app/user/sagas/buy-course.state.ts
true
200
508
import { PaymentStatus } from "@purple/contracts"; import { UserEntity } from "../entities/user.entity"; import { BuyCourseSaga } from "./buy-course.saga"; export abstract class BuyCourseSagaState { public saga: BuyCourseSaga; public setContext(saga: BuyCourseSaga){ this.saga = saga; } public abstract pay(): P...
7
davidhartsough/minder-web-app
0d02192
netlify/db/dt.ts
TypeScript
www.github.com/davidhartsough/minder-web-app/tree/main/netlify/db/dt.ts
https://raw.githubusercontent.com/davidhartsough/minder-web-app/0d02192/netlify/db/dt.ts
davidhartsough/minder-web-app 0d02192 netlify/db/dt.ts
true
200
1,540
import { fromZonedTime, toZonedTime } from "date-fns-tz"; // window 1 = 9-14, window 2 = 14-20 // inclusive start and end times function getRandomTimeInWindow1(): number { return 9 + Math.floor(Math.random() * 6); } function getRandomTimeInWindow2(start = 14): number { return start + Math.floor(Math.random() * (21...
1
digicatapult/nice-agent-portal
1855970
backend-issuer/src/env.ts
TypeScript
www.github.com/digicatapult/nice-agent-portal/tree/main/backend-issuer/src/env.ts
https://raw.githubusercontent.com/digicatapult/nice-agent-portal/1855970/backend-issuer/src/env.ts
digicatapult/nice-agent-portal 1855970 backend-issuer/src/env.ts
true
200
1,334
import { container } from 'tsyringe' import * as envalid from 'envalid' import dotenv from 'dotenv' if (process.env.NODE_ENV === 'test') { dotenv.config({ path: 'test/test.env' }) } else if (process.env.DOTENV_FILE_PATHS) { dotenv.config({ path: process.env.DOTENV_FILE_PATHS.split(' ') }) } else { dotenv.config(...
3
auresolll/Nest
08a6f3b
src/shared/pipe/parse-object-id.pipe.ts
TypeScript
www.github.com/auresolll/Nest/tree/main/src/shared/pipe/parse-object-id.pipe.ts
https://raw.githubusercontent.com/auresolll/Nest/08a6f3b/src/shared/pipe/parse-object-id.pipe.ts
auresolll/Nest 08a6f3b src/shared/pipe/parse-object-id.pipe.ts
true
200
505
import { ArgumentMetadata, BadRequestException, Injectable, PipeTransform, } from '@nestjs/common'; import { ObjectId } from 'mongodb'; @Injectable() export class ParseObjectIdPipe implements PipeTransform { transform(value: any, metadata: ArgumentMetadata) { if (!ObjectId.isValid(value)) {...
6
emmyzee45/soundctrl-frontend
f436c80
src/assets/index.ts
TypeScript
www.github.com/emmyzee45/soundctrl-frontend/tree/main/src/assets/index.ts
https://raw.githubusercontent.com/emmyzee45/soundctrl-frontend/f436c80/src/assets/index.ts
emmyzee45/soundctrl-frontend f436c80 src/assets/index.ts
true
200
2,747
import CrowdImage from "./images/crowd-image.png"; import LikeIceSpice from "./images/ice-spice.png"; import RecordsBackground from "./images/records-background.png"; import UserImage from "./images/user-image-1.png"; import UserImageTwo from "./images/user-image-2.png"; import UserImageThree from "./images/user-image-...
4
Matii96/nodiator
17582ec
packages/core/lib/extensions/extensions-manager.impl.ts
TypeScript
www.github.com/Matii96/nodiator/tree/main/packages/core/lib/extensions/extensions-manager.impl.ts
https://raw.githubusercontent.com/Matii96/nodiator/17582ec/packages/core/lib/extensions/extensions-manager.impl.ts
Matii96/nodiator 17582ec packages/core/lib/extensions/extensions-manager.impl.ts
true
200
480
import { Mediator } from '../mediator/mediator'; import { MediatorExtension } from './extension'; import { ExtensionsManager } from './extensions-manager'; export class MediatorExtensionsManager implements ExtensionsManager { private readonly _extensions = new Set<MediatorExtension>(); list() { return Array.f...
7
LuisAlejandro2003/apiC2
06f7dba
src/users/src/users/infrastructure/services/PasswordHasher.ts
TypeScript
www.github.com/LuisAlejandro2003/apiC2/tree/main/src/users/src/users/infrastructure/services/PasswordHasher.ts
https://raw.githubusercontent.com/LuisAlejandro2003/apiC2/06f7dba/src/users/src/users/infrastructure/services/PasswordHasher.ts
LuisAlejandro2003/apiC2 06f7dba src/users/src/users/infrastructure/services/PasswordHasher.ts
true
200
445
import bcrypt from 'bcrypt'; import { PasswordHasher } from '../../domain/ports/PasswordHasher'; export class BcryptPasswordHasher implements PasswordHasher { async hash(password: string): Promise<string> { const saltRounds = 10; return bcrypt.hash(password, saltRounds); } async compare(pa...
6
pbdsce/pbwebsite
63a87c8
app/(default)/api/registration/sih/route.ts
TypeScript
www.github.com/pbdsce/pbwebsite/tree/main/app/(default)/api/registration/sih/route.ts
https://raw.githubusercontent.com/pbdsce/pbwebsite/63a87c8/app/%28default%29/api/registration/sih/route.ts
pbdsce/pbwebsite 63a87c8 app/(default)/api/registration/sih/route.ts
true
200
11,108
import { db } from "@/Firebase"; import connectMongoDB from "@/lib/dbConnect"; import { sihValidate } from "@/lib/server/utils"; import { addDoc, collection, getDocs, query, where } from "firebase/firestore"; import { NextResponse } from "next/server"; /** * @swagger * components: * schemas: * TeamLeader: * ...
4
Makistos/suomisf-ui
e5d45ec
src/features/publisher/types/index.ts
TypeScript
www.github.com/Makistos/suomisf-ui/tree/main/src/features/publisher/types/index.ts
https://raw.githubusercontent.com/Makistos/suomisf-ui/e5d45ec/src/features/publisher/types/index.ts
Makistos/suomisf-ui e5d45ec src/features/publisher/types/index.ts
true
200
700
import { Edition } from "../../edition"; import { Pubseries } from "../../pubseries/types"; import { LinkType } from "../../../types/link"; import { Magazine } from "../../magazine"; export interface Publisher { description: string; edition_count?: number; edition_oldest?: number | null; edition_newes...
7
thanhhung-art/babbel-server
4198547
src/user/user.module.ts
TypeScript
www.github.com/thanhhung-art/babbel-server/tree/main/src/user/user.module.ts
https://raw.githubusercontent.com/thanhhung-art/babbel-server/4198547/src/user/user.module.ts
thanhhung-art/babbel-server 4198547 src/user/user.module.ts
true
200
739
import { Module } from '@nestjs/common'; import { UserService } from './user.service'; import { UserController } from './user.controller'; import { PrismaModule } from 'src/prisma/prisma.module'; import { UserActionService } from './services/user.action.service'; import { UserFriendService } from './services/user.frien...
6
blockchaingate/metaloo
74ec510
src/app/admin/chain-add/chain-add.component.ts
TypeScript
www.github.com/blockchaingate/metaloo/tree/main/src/app/admin/chain-add/chain-add.component.ts
https://raw.githubusercontent.com/blockchaingate/metaloo/74ec510/src/app/admin/chain-add/chain-add.component.ts
blockchaingate/metaloo 74ec510 src/app/admin/chain-add/chain-add.component.ts
true
200
630
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { ChainService } from 'src/app/services/chain.service'; @Component({ selector: 'app-chain-add', templateUrl: './chain-add.component.html', styleUrls: ['./chain-add.component.scss'] }) export class ChainAddComponent { na...
4
davi1985/api-node-solid
a7aa4f9
src/http/controllers/register.ts
TypeScript
www.github.com/davi1985/api-node-solid/tree/main/src/http/controllers/register.ts
https://raw.githubusercontent.com/davi1985/api-node-solid/a7aa4f9/src/http/controllers/register.ts
davi1985/api-node-solid a7aa4f9 src/http/controllers/register.ts
true
200
1,095
import { z } from 'zod' import { FastifyReply, FastifyRequest } from 'fastify' import { PrismaUsersRepository } from '@/repositories/prisma/prisma-users-repository' import { UserAlreadyExistsError } from '@/use-cases/errors/user-already-exists-error' import { RegisterUserCase } from '@/use-cases/register' export cons...
7
jlarson4/VueForm
b995255
src/constants/util.ts
TypeScript
www.github.com/jlarson4/VueForm/tree/main/src/constants/util.ts
https://raw.githubusercontent.com/jlarson4/VueForm/b995255/src/constants/util.ts
jlarson4/VueForm b995255 src/constants/util.ts
true
200
1,707
/** * * @function - Adds a class to an element * * @param elements - the element(s) to add a class to * @param className - the class name to be added * **/ export function elementAddClass (element: HTMLElement, className: string) { // If the element exists if (element != null) { // If the classList is ...
6
playtunedIn/tunedIN
e7ed508
packages/server/src/testing/mocks/question-generating-service/spotify-api/get-current-users-profile.ts
TypeScript
www.github.com/playtunedIn/tunedIN/tree/main/packages/server/src/testing/mocks/question-generating-service/spotify-api/get-current-users-profile.ts
https://raw.githubusercontent.com/playtunedIn/tunedIN/e7ed508/packages/server/src/testing/mocks/question-generating-service/spotify-api/get-current-users-profile.ts
playtunedIn/tunedIN e7ed508 packages/server/src/testing/mocks/question-generating-service/spotify-api/get-current-users-profile.ts
true
200
2,186
export const shayneProfileData = { country: 'US', display_name: 'Shayne Preston', email: 'shayne.acc.records+social@gmail.com', explicit_content: { filter_enabled: false, filter_locked: false, }, external_urls: { spotify: 'https://open.spotify.com/user/121592825', }, followers: { href: n...
4
jessicasantosb/ecommerce-admin
708972b
environment.d.ts
TypeScript
www.github.com/jessicasantosb/ecommerce-admin/tree/main/environment.d.ts
https://raw.githubusercontent.com/jessicasantosb/ecommerce-admin/708972b/environment.d.ts
jessicasantosb/ecommerce-admin 708972b environment.d.ts
true
200
464
declare global { namespace NodeJS { interface ProcessEnv { NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: string; CLERK_SECRET_KEY: string; NEXT_PUBLIC_CLERK_SIGN_IN_URL: string; NEXT_PUBLIC_CLERK_SIGN_UP_URL: string; DATABASE_URL: string; DIRECT_URL: string; NEXT_PUBLIC_CLOUDINARY_C...
0
sofialindner/dummy-api-consumer
c7b7c9d
src/app/components/sidebar/sidebar.component.ts
TypeScript
www.github.com/sofialindner/dummy-api-consumer/tree/main/src/app/components/sidebar/sidebar.component.ts
https://raw.githubusercontent.com/sofialindner/dummy-api-consumer/c7b7c9d/src/app/components/sidebar/sidebar.component.ts
sofialindner/dummy-api-consumer c7b7c9d src/app/components/sidebar/sidebar.component.ts
true
200
1,022
import { Component } from '@angular/core'; import { EmployeesService } from '../../services/employees.service'; @Component({ selector: 'app-sidebar', templateUrl: './sidebar.component.html', styleUrl: './sidebar.component.css' }) export class SidebarComponent { constructor(private employeesService: EmployeesS...
7
quocnguyencoder/core-ui-admin-angular
32997db
src/app/views/pages/new-page/new-page.component.spec.ts
TypeScript
www.github.com/quocnguyencoder/core-ui-admin-angular/tree/main/src/app/views/pages/new-page/new-page.component.spec.ts
https://raw.githubusercontent.com/quocnguyencoder/core-ui-admin-angular/32997db/src/app/views/pages/new-page/new-page.component.spec.ts
quocnguyencoder/core-ui-admin-angular 32997db src/app/views/pages/new-page/new-page.component.spec.ts
true
200
600
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NewPageComponent } from './new-page.component'; describe('NewPageComponent', () => { let component: NewPageComponent; let fixture: ComponentFixture<NewPageComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ ...
6
bassarou120/THAngularMobile
d93e92f
src/app/back-office/campagne/choisir-gagnant/choisir-gagnant.component.ts
TypeScript
www.github.com/bassarou120/THAngularMobile/tree/main/src/app/back-office/campagne/choisir-gagnant/choisir-gagnant.component.ts
https://raw.githubusercontent.com/bassarou120/THAngularMobile/d93e92f/src/app/back-office/campagne/choisir-gagnant/choisir-gagnant.component.ts
bassarou120/THAngularMobile d93e92f src/app/back-office/campagne/choisir-gagnant/choisir-gagnant.component.ts
true
200
4,087
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { Campagne } from 'src/app/models/campagne'; import { Post } from 'src/app/models/post'; import { User } from 'src/app/models/user'; import { CampagneService } ...
0
Starcom-jkt/lets_stream_be
b3bde32
src/app/adminPanel/currency/controller.ts
TypeScript
www.github.com/Starcom-jkt/lets_stream_be/tree/main/src/app/adminPanel/currency/controller.ts
https://raw.githubusercontent.com/Starcom-jkt/lets_stream_be/b3bde32/src/app/adminPanel/currency/controller.ts
Starcom-jkt/lets_stream_be b3bde32 src/app/adminPanel/currency/controller.ts
true
200
2,730
import pool from "../../../../db"; import { Request, Response } from "express"; import { ResultSetHeader, RowDataPacket } from "mysql2"; export const index = async (req: Request, res: Response) => { try { const alertMessage = req.flash("alertMessage"); const alertStatus = req.flash("alertStatus"); const...
4
mi-examples/pp-dev-js
8c08c2a
packages/pp-dev/src/lib/icon-font-generator.ts
TypeScript
www.github.com/mi-examples/pp-dev-js/tree/main/packages/pp-dev/src/lib/icon-font-generator.ts
https://raw.githubusercontent.com/mi-examples/pp-dev-js/8c08c2a/packages/pp-dev/src/lib/icon-font-generator.ts
mi-examples/pp-dev-js 8c08c2a packages/pp-dev/src/lib/icon-font-generator.ts
true
200
761
import svgToFont from 'svgtofont'; export interface IconFontGeneratorOptions { sourceDir: string; outputDir: string; fontName: string; } export class IconFontGenerator { private readonly sourceDir: string; private readonly outputDir: string; private readonly fontName: string; constructor(options: IconF...
7
memser-spaceport/pln-directory-portal
60d1305
apps/web-api/src/app.module.spec.ts
TypeScript
www.github.com/memser-spaceport/pln-directory-portal/tree/main/apps/web-api/src/app.module.spec.ts
https://raw.githubusercontent.com/memser-spaceport/pln-directory-portal/60d1305/apps/web-api/src/app.module.spec.ts
memser-spaceport/pln-directory-portal 60d1305 apps/web-api/src/app.module.spec.ts
true
200
1,495
import { BullModule } from '@nestjs/bull'; import { CacheModule } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { ThrottlerModule } from '@nestjs/throttler'; import { AppController } from './app.controller'; import { AppModule } from './app.module'; describe('App Module', () => {...
6
Compsciler/Verticle
09ae152
src/lib/statuses.ts
TypeScript
www.github.com/Compsciler/Verticle/tree/main/src/lib/statuses.ts
https://raw.githubusercontent.com/Compsciler/Verticle/09ae152/src/lib/statuses.ts
Compsciler/Verticle 09ae152 src/lib/statuses.ts
true
200
4,830
import { Dispatch, SetStateAction } from 'react' import { unicodeSplit } from './words' export type CharStatus = 'absent' | 'present' | 'correct' export const getStatuses = ( solution: string, guesses: string[] ): { [key: string]: CharStatus } => { const charObj: { [key: string]: CharStatus } = {} const split...
4
hasan71224/mean-Client
e749da5
src/app/list-student/list-student.component.ts
TypeScript
www.github.com/hasan71224/mean-Client/tree/main/src/app/list-student/list-student.component.ts
https://raw.githubusercontent.com/hasan71224/mean-Client/e749da5/src/app/list-student/list-student.component.ts
hasan71224/mean-Client e749da5 src/app/list-student/list-student.component.ts
true
200
1,037
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { StudentsService } from '../students.service'; @Component({ selector: 'app-list-student', templateUrl: './list-student.component.html', styleUrls: ['./list-student.component.css'] }) export class ListStudentCompo...
7
lightning-js/threadx
6247a86
browser-tests/buffer-structs/TestBufferStruct.ts
TypeScript
www.github.com/lightning-js/threadx/tree/main/browser-tests/buffer-structs/TestBufferStruct.ts
https://raw.githubusercontent.com/lightning-js/threadx/6247a86/browser-tests/buffer-structs/TestBufferStruct.ts
lightning-js/threadx 6247a86 browser-tests/buffer-structs/TestBufferStruct.ts
true
200
2,096
/* * Copyright 2023 Comcast Cable Communications Management, LLC * 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 ap...
0
yandex-prac/Game
ef7c57c
packages/client/src/store/reducers/snackbarSlice.ts
TypeScript
www.github.com/yandex-prac/Game/tree/main/packages/client/src/store/reducers/snackbarSlice.ts
https://raw.githubusercontent.com/yandex-prac/Game/ef7c57c/packages/client/src/store/reducers/snackbarSlice.ts
yandex-prac/Game ef7c57c packages/client/src/store/reducers/snackbarSlice.ts
true
200
717
import { createSlice, PayloadAction } from '@reduxjs/toolkit' import { RenderIconType } from '@/types' import { SNACKBAR_TYPE } from '@/utils' type SnackBarType = { isOpen: boolean message: string type: RenderIconType } const initialState: SnackBarType = { isOpen: false, message: '', type: SNACKBAR_TYPE.S...
4
getasewtilahun/cde-condigital
c7756d1
app/src/redux/User/User.type.ts
TypeScript
www.github.com/getasewtilahun/cde-condigital/tree/main/app/src/redux/User/User.type.ts
https://raw.githubusercontent.com/getasewtilahun/cde-condigital/c7756d1/app/src/redux/User/User.type.ts
getasewtilahun/cde-condigital c7756d1 app/src/redux/User/User.type.ts
true
200
1,718
import { ApiCallState } from "../Utils"; export type User = { organization: string; status: string; is_super_user: any; access_type: string; id: number; email: string; phone_number: string; role_id: string; chat_id: string; full_name: string; roles: string[]; user_role: { user_accesses: any...
7
ThiyagarajanShanmugam/Supermarket_Management_System
ebc601a
src/app/app.component.ts
TypeScript
www.github.com/ThiyagarajanShanmugam/Supermarket_Management_System/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/ThiyagarajanShanmugam/Supermarket_Management_System/ebc601a/src/app/app.component.ts
ThiyagarajanShanmugam/Supermarket_Management_System ebc601a src/app/app.component.ts
true
200
1,192
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { CommonModule } from '@angular/common'; import { HeaderComponent } from './core/components/header/header.component'; import { SidenavComponent } from './core/components/sidenav/sidenav.component'; import { FooterComponent...
6
demithehomie/road-connect
8118b7a
assets/Scripts/LoadAnimation.ts
TypeScript
www.github.com/demithehomie/road-connect/tree/main/assets/Scripts/LoadAnimation.ts
https://raw.githubusercontent.com/demithehomie/road-connect/8118b7a/assets/Scripts/LoadAnimation.ts
demithehomie/road-connect 8118b7a assets/Scripts/LoadAnimation.ts
true
200
502
import { _decorator, Component, Node, tween, Vec3 } from 'cc'; const { ccclass, property } = _decorator; @ccclass('LoadAnimation') export class LoadAnimation extends Component { start() { // Definir a posição inicial fora da tela this.node.setPosition(new Vec3(0, -800, 0)); // Twee...
0
Wlisfes/nest-basic-customer
09d28af
src/api/mailer.service.ts
TypeScript
www.github.com/Wlisfes/nest-basic-customer/tree/main/src/api/mailer.service.ts
https://raw.githubusercontent.com/Wlisfes/nest-basic-customer/09d28af/src/api/mailer.service.ts
Wlisfes/nest-basic-customer 09d28af src/api/mailer.service.ts
true
200
3,240
import { request } from '@/utils/utils-request' import type { Result, IColumn, Notice } from '@/interface/static.resolver' import type { ServiceMailer, BundleMailer, UserBundleMailer, MailerTemplate, MailerSchedule } from '@/interface/mailer.resolver' /**创建邮件应用**/ export function httpCreateServiceMailer(data: { name: ...
4
xharris/eventful
0dba57e
api/routes/plan.ts
TypeScript
www.github.com/xharris/eventful/tree/main/api/routes/plan.ts
https://raw.githubusercontent.com/xharris/eventful/0dba57e/api/routes/plan.ts
xharris/eventful 0dba57e api/routes/plan.ts
true
200
2,746
import { plan } from 'api/models' import express, { Request, Response } from 'express' import { PipelineStage, Types } from 'mongoose' import { Eventful } from 'types' export const CATEGORY = { None: 0, Lodging: 1, Carpool: 2, Meet: 3, } export const getTitle = (plan: Eventful.Plan) => plan.category === CAT...
7
the-programmer-dude/api-rest-test
d926a85
src/middlewares/admin-access.ts
TypeScript
www.github.com/the-programmer-dude/api-rest-test/tree/main/src/middlewares/admin-access.ts
https://raw.githubusercontent.com/the-programmer-dude/api-rest-test/d926a85/src/middlewares/admin-access.ts
the-programmer-dude/api-rest-test d926a85 src/middlewares/admin-access.ts
true
200
494
import { Request, Response, NextFunction } from "express"; import AppError from "../utils/appError"; export default (...roles: string[]) => { return (req: Request, res: Response, next: NextFunction) => { const user: any = req.user.user; if (!user) return next(new AppError(403, "Error: none user provided"));...
6
NarawitC/template-nest-js
eb92bcc
src/feature/customer/customer.controller.ts
TypeScript
www.github.com/NarawitC/template-nest-js/tree/main/src/feature/customer/customer.controller.ts
https://raw.githubusercontent.com/NarawitC/template-nest-js/eb92bcc/src/feature/customer/customer.controller.ts
NarawitC/template-nest-js eb92bcc src/feature/customer/customer.controller.ts
true
200
411
import { Controller, Post, Body } from '@nestjs/common' import { CustomerService } from './customer.service' import { CreateCustomerDto } from './dto/create-customer.dto' @Controller('customer') export class CustomerController { constructor(private userService: CustomerService) {} @Post() async create(@Body() c...
0
vini3001/project_tcc
e4d2f74
src/app/entities/Auth.ts
TypeScript
www.github.com/vini3001/project_tcc/tree/main/src/app/entities/Auth.ts
https://raw.githubusercontent.com/vini3001/project_tcc/e4d2f74/src/app/entities/Auth.ts
vini3001/project_tcc e4d2f74 src/app/entities/Auth.ts
true
200
517
import { User } from "./User" export interface LoginRequestData { email: string password: string } export interface LoginResponse { token: string user: User } export interface RegisterRequestData { name: string email: string personType: "física" | "jurídica" phone: string document...
2
AyobamiAjibola/Zues-WebApp
7a70b98
client/src/hooks/useAppTheme.ts
TypeScript
www.github.com/AyobamiAjibola/Zues-WebApp/tree/main/client/src/hooks/useAppTheme.ts
https://raw.githubusercontent.com/AyobamiAjibola/Zues-WebApp/7a70b98/client/src/hooks/useAppTheme.ts
AyobamiAjibola/Zues-WebApp 7a70b98 client/src/hooks/useAppTheme.ts
true
200
1,140
import { useMemo } from 'react'; import { createTheme, responsiveFontSizes } from '@mui/material/styles'; // import { useMediaQuery } from '@mui/material'; export default function useAppTheme(darkMode: boolean) { // const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)'); // changes to dark mode automa...
5
SJY9195/Project
7579114
climb-on/src/main/node_modules/@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.d.ts
TypeScript
www.github.com/SJY9195/Project/tree/main/climb-on/src/main/node_modules/@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.d.ts
https://raw.githubusercontent.com/SJY9195/Project/7579114/climb-on/src/main/node_modules/%40ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.d.ts
SJY9195/Project 7579114 climb-on/src/main/node_modules/@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.d.ts
true
200
6,381
/** * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module engine/view/observer/selectionobserver */ import Observer from './observer.js'; import MutationObserver from './mutationobserv...
4
EduardoVazquezEspin/advent-of-code-2023
91ef1cb
src/day4/index.ts
TypeScript
www.github.com/EduardoVazquezEspin/advent-of-code-2023/tree/main/src/day4/index.ts
https://raw.githubusercontent.com/EduardoVazquezEspin/advent-of-code-2023/91ef1cb/src/day4/index.ts
EduardoVazquezEspin/advent-of-code-2023 91ef1cb src/day4/index.ts
true
200
1,703
import {matchStringTemplate, getDIO} from '../helpers/index.ts' import path from 'path' export const dio = getDIO(path.resolve('./src/day4')) dio.params.template = /^Card\s+(\d+):\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+\|\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d...
7
ehsanmunna/buildingUI
1c3db36
src/app/modules/building/building-routing.module.ts
TypeScript
www.github.com/ehsanmunna/buildingUI/tree/main/src/app/modules/building/building-routing.module.ts
https://raw.githubusercontent.com/ehsanmunna/buildingUI/1c3db36/src/app/modules/building/building-routing.module.ts
ehsanmunna/buildingUI 1c3db36 src/app/modules/building/building-routing.module.ts
true
200
392
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BuildingChartComponent } from './building-chart/building-chart.component'; const routes: Routes = [ {path: 'chart', component: BuildingChartComponent} ]; @NgModule({ imports: [RouterModule.forChild(routes...
6
cold-pizza/mlog
290788c
src/controller/create/createComments.ts
TypeScript
www.github.com/cold-pizza/mlog/tree/main/src/controller/create/createComments.ts
https://raw.githubusercontent.com/cold-pizza/mlog/290788c/src/controller/create/createComments.ts
cold-pizza/mlog 290788c src/controller/create/createComments.ts
true
200
685
/* 코드기능: 댓글 생성하는 기능. 생성날짜: 2023-01-09 */ import axios from "axios"; import { Function } from "../../types"; const createComments: Function["CreateCommentsType"] = ( title, writer, days, comments, postId ) => { axios .post("/api/posts-comments/create", { title: title, ...
0
varfish-org/varfish-server
6acdb90
frontend/playwright.config.ts
TypeScript
www.github.com/varfish-org/varfish-server/tree/main/frontend/playwright.config.ts
https://raw.githubusercontent.com/varfish-org/varfish-server/6acdb90/frontend/playwright.config.ts
varfish-org/varfish-server 6acdb90 frontend/playwright.config.ts
true
200
717
import { defineConfig, devices } from '@playwright/test' export default defineConfig({ testDir: './end-to-end-tests', fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { trace: 'on-first-retry', }, ...
2
undigitals/tenx-fin-pay
4b654bc
src/components/layouts/TenxLayout/TenxLayoutHeader/TenxLayoutHeader.styles.ts
TypeScript
www.github.com/undigitals/tenx-fin-pay/tree/main/src/components/layouts/TenxLayout/TenxLayoutHeader/TenxLayoutHeader.styles.ts
https://raw.githubusercontent.com/undigitals/tenx-fin-pay/4b654bc/src/components/layouts/TenxLayout/TenxLayoutHeader/TenxLayoutHeader.styles.ts
undigitals/tenx-fin-pay 4b654bc src/components/layouts/TenxLayout/TenxLayoutHeader/TenxLayoutHeader.styles.ts
true
200
570
import { tenxLayoutLogo } from 'assets/images'; import styled from 'styled-components'; import { getColor } from 'utils/helpers/styleHelpers'; export const STenxLayoutHeader = styled.header` display: flex; justify-content: center; align-items: center; height: 84px; background: ${getColor('blue')}; h1 { ...
3
BARR9898/SIDGDEP-API
f5658e2
src/validators/events.validators.ts
TypeScript
www.github.com/BARR9898/SIDGDEP-API/tree/main/src/validators/events.validators.ts
https://raw.githubusercontent.com/BARR9898/SIDGDEP-API/f5658e2/src/validators/events.validators.ts
BARR9898/SIDGDEP-API f5658e2 src/validators/events.validators.ts
true
200
7,525
import { NextFunction, Request, Response } from "express"; import { check, param, query } from "express-validator"; import { handleValidatons } from "../middelwares/validaitons.handle"; const createEventValidations = [ check("nombre") .exists().withMessage("El nombre es requerido") .notEmpty().wit...
7
AliLahbib/SmartHouseFront
3f244da
src/app/components/users/user-form/user-form.component.ts
TypeScript
www.github.com/AliLahbib/SmartHouseFront/tree/main/src/app/components/users/user-form/user-form.component.ts
https://raw.githubusercontent.com/AliLahbib/SmartHouseFront/3f244da/src/app/components/users/user-form/user-form.component.ts
AliLahbib/SmartHouseFront 3f244da src/app/components/users/user-form/user-form.component.ts
true
200
3,683
import {Component, EventEmitter, Input, Output} from '@angular/core'; import {User} from "../../../models/user.model"; import {FormBuilder, FormGroup, Validators} from "@angular/forms"; import {Piece} from "../../../models/piece.model"; import {UserService} from "../../../services/user.service"; import {PieceService} f...
6
Jabotics/Wardan-Management
40dc5a5
src/store/actions/slices/otherMaterialsSlice.ts
TypeScript
www.github.com/Jabotics/Wardan-Management/tree/main/src/store/actions/slices/otherMaterialsSlice.ts
https://raw.githubusercontent.com/Jabotics/Wardan-Management/40dc5a5/src/store/actions/slices/otherMaterialsSlice.ts
Jabotics/Wardan-Management 40dc5a5 src/store/actions/slices/otherMaterialsSlice.ts
true
200
3,934
/* eslint-disable @typescript-eslint/no-explicit-any */ import { APIEndPoints } from '@/APIEndpoints' import { IOtherMaterial } from '@/interfaces' import { getCustomParams } from '@/lib/utils' import { createSlice, PayloadAction } from '@reduxjs/toolkit' import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/quer...
5
jhanrq8888/DAD-2024
d6242c9
app_vin/src/app/views/dashboard/setup/category/components/lists/category-list.component.ts
TypeScript
www.github.com/jhanrq8888/DAD-2024/tree/main/app_vin/src/app/views/dashboard/setup/category/components/lists/category-list.component.ts
https://raw.githubusercontent.com/jhanrq8888/DAD-2024/d6242c9/app_vin/src/app/views/dashboard/setup/category/components/lists/category-list.component.ts
jhanrq8888/DAD-2024 d6242c9 app_vin/src/app/views/dashboard/setup/category/components/lists/category-list.component.ts
true
200
5,485
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { abcForms } from '../../../../../../../environments/generals'; import { Category } from '../../models/category'; import { CommonModule } from '@angular/common'; import { RouterOutlet } from '@angular/router'; import { MatButtonModul...
0
Kenyson/Meu-TCC
b050bca
pms/src/app/components/pms-header/pms-header.component.spec.ts
TypeScript
www.github.com/Kenyson/Meu-TCC/tree/main/pms/src/app/components/pms-header/pms-header.component.spec.ts
https://raw.githubusercontent.com/Kenyson/Meu-TCC/b050bca/pms/src/app/components/pms-header/pms-header.component.spec.ts
Kenyson/Meu-TCC b050bca pms/src/app/components/pms-header/pms-header.component.spec.ts
true
200
621
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PmsHeaderComponent } from './pms-header.component'; describe('PmsHeaderComponent', () => { let component: PmsHeaderComponent; let fixture: ComponentFixture<PmsHeaderComponent>; beforeEach(async () => { await TestBed.configureTestin...
1
arash-ramy/nodeeweb
ed7563b
admin/src/functions/transform/out.type.ts
TypeScript
www.github.com/arash-ramy/nodeeweb/tree/main/admin/src/functions/transform/out.type.ts
https://raw.githubusercontent.com/arash-ramy/nodeeweb/ed7563b/admin/src/functions/transform/out.type.ts
arash-ramy/nodeeweb ed7563b admin/src/functions/transform/out.type.ts
true
200
1,057
export enum PriceType { Normal = 'normal', Variable = 'variable', } export enum PublishStatus { Published = 'published', Processing = 'processing', } export type ProductOut = { title: { [key: string]: string }; miniTitle: { [key: string]: string }; metatitle?: { [key: string]: string }; metadescriptio...
4
Zeeeforzain/LogIn
73be913
src/validators/schemas.ts
TypeScript
www.github.com/Zeeeforzain/LogIn/tree/main/src/validators/schemas.ts
https://raw.githubusercontent.com/Zeeeforzain/LogIn/73be913/src/validators/schemas.ts
Zeeeforzain/LogIn 73be913 src/validators/schemas.ts
true
200
917
const Joi = require('joi'); // Define validation schema const adminValidationSchema = Joi.object({ email: Joi.string() .email({ tlds: { allow: true } }) // Ensures email format .required() .messages({ 'string.email': 'Please enter a valid email address', 'any.require...
3
TranPhucThinh/learn_node_with_twitter
38422c3
src/routes/users.routes.ts
TypeScript
www.github.com/TranPhucThinh/learn_node_with_twitter/tree/main/src/routes/users.routes.ts
https://raw.githubusercontent.com/TranPhucThinh/learn_node_with_twitter/38422c3/src/routes/users.routes.ts
TranPhucThinh/learn_node_with_twitter 38422c3 src/routes/users.routes.ts
true
200
673
import { Router } from 'express' import { loginController, registerController } from '~/controllers/users.controllers' import { loginValidator, registerValidator } from '~/middlewares/users.middlewares' import { wrapRequestHandler } from '~/utils/handlers' const usersRouter = Router() usersRouter.post('/login', login...
2
Annavaramgit/Eidiko-Employee-Portal-Project
8ecabbf
UniversityApplication/src/app/services/interceptor.service.ts
TypeScript
www.github.com/Annavaramgit/Eidiko-Employee-Portal-Project/tree/main/UniversityApplication/src/app/services/interceptor.service.ts
https://raw.githubusercontent.com/Annavaramgit/Eidiko-Employee-Portal-Project/8ecabbf/UniversityApplication/src/app/services/interceptor.service.ts
Annavaramgit/Eidiko-Employee-Portal-Project 8ecabbf UniversityApplication/src/app/services/interceptor.service.ts
true
200
1,285
import { HttpEvent, HttpHandler, HttpHeaders, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, tap } from 'rxjs'; import { LoginService } from './login.service'; @Injectable({ providedIn: 'root' }) export class InterceptorService implements ...
7
budproj/execution-mode
3cd8022
src/components/TaskManagement/hooks/new-task/use-update-task.ts
TypeScript
www.github.com/budproj/execution-mode/tree/main/src/components/TaskManagement/hooks/new-task/use-update-task.ts
https://raw.githubusercontent.com/budproj/execution-mode/3cd8022/src/components/TaskManagement/hooks/new-task/use-update-task.ts
budproj/execution-mode 3cd8022 src/components/TaskManagement/hooks/new-task/use-update-task.ts
true
200
1,028
import { useMutation, useQueryClient } from '@tanstack/react-query' import { useContext } from 'react' import { ServicesContext } from 'src/components/Base/ServicesProvider/services-provider' import { TaskUpdate } from 'src/services/new-task-management/new-task-management.service' const MODULE = 'taskManager' const A...
6
Yuwenjun1997/visual-editor-pro
3f90b50
src/uni_modules/visual-components/utils/tools.ts
TypeScript
www.github.com/Yuwenjun1997/visual-editor-pro/tree/main/src/uni_modules/visual-components/utils/tools.ts
https://raw.githubusercontent.com/Yuwenjun1997/visual-editor-pro/3f90b50/src/uni_modules/visual-components/utils/tools.ts
Yuwenjun1997/visual-editor-pro 3f90b50 src/uni_modules/visual-components/utils/tools.ts
true
200
326
/** * 格式化数字为合法数字 * @param val * @param defaultVal * @returns */ export const formatNumber = (val: any, defaultVal: number = 0) => { if (typeof val === 'number') return val if (typeof val === 'string' && val.trim() === '') return defaultVal return isNaN(Number(val)) ? defaultVal : Number(val) }
5
ClassicWannabe/ddb-orm-comparison
5fbacf3
src/typedorm/entities/floor.ts
TypeScript
www.github.com/ClassicWannabe/ddb-orm-comparison/tree/main/src/typedorm/entities/floor.ts
https://raw.githubusercontent.com/ClassicWannabe/ddb-orm-comparison/5fbacf3/src/typedorm/entities/floor.ts
ClassicWannabe/ddb-orm-comparison 5fbacf3 src/typedorm/entities/floor.ts
true
200
672
import { Attribute, Entity, INDEX_TYPE } from "@typedorm/common"; import { getPrefix } from "../../helpers"; import { EntityType, GSI } from "../../constants"; @Entity({ name: EntityType.FLOOR, primaryKey: { partitionKey: `${getPrefix(EntityType.BUILDING)}{{buildingId}}`, sortKey: `${getPrefix(EntityType....
1
JonasLeonhard/vps
5c783a2
frontend/src/lib/utils/getPercentageOfElementVisible.ts
TypeScript
www.github.com/JonasLeonhard/vps/tree/main/frontend/src/lib/utils/getPercentageOfElementVisible.ts
https://raw.githubusercontent.com/JonasLeonhard/vps/5c783a2/frontend/src/lib/utils/getPercentageOfElementVisible.ts
JonasLeonhard/vps 5c783a2 frontend/src/lib/utils/getPercentageOfElementVisible.ts
true
200
768
const getPercentageOfElementVisible = ( element: HTMLElement, innerHeight: number, scrollY: number ) => { if (!element) return 0; // Get the relevant measurements and positions const viewportHeight = innerHeight; const scrollTop = scrollY; const elementOffsetTop = element.offsetTop; const elementHeigh...
0
Pangeli70/apg-mng
590680f
lib/classes/ApgMngService.ts
TypeScript
www.github.com/Pangeli70/apg-mng/tree/main/lib/classes/ApgMngService.ts
https://raw.githubusercontent.com/Pangeli70/apg-mng/590680f/lib/classes/ApgMngService.ts
Pangeli70/apg-mng 590680f lib/classes/ApgMngService.ts
true
200
1,474
/** ----------------------------------------------------------------------- * @module [apg-mng] * @author [APG] ANGELI Paolo Giusto * @version 0.9.2 [APG 2022/10/04] Github Beta * @version 0.9.5 [APG 2023/02/14] Rst simplification * @version 0.9.7 [APG 2023/05/21] Separation of concerns lib/srv * ----------------...
4
fgsreally/view-engine
66c05a8
packages/playground/src/js/code.ts
TypeScript
www.github.com/fgsreally/view-engine/tree/main/packages/playground/src/js/code.ts
https://raw.githubusercontent.com/fgsreally/view-engine/66c05a8/packages/playground/src/js/code.ts
fgsreally/view-engine 66c05a8 packages/playground/src/js/code.ts
true
200
2,540
import { codeGenerator, sourceGenerator, COMPUTE_RE, getComponent, } from "@view-engine/core"; import { BlockType, Container, instance } from "./init"; import { getService } from "./service"; export class myCodeGenerator extends sourceGenerator<any, any> {} // export class myCodeGenerator extends cod...
3
felipemotarocha/aceleramais-api
c286dd1
src/repositories/team/team.repository.test.ts
TypeScript
www.github.com/felipemotarocha/aceleramais-api/tree/main/src/repositories/team/team.repository.test.ts
https://raw.githubusercontent.com/felipemotarocha/aceleramais-api/c286dd1/src/repositories/team/team.repository.test.ts
felipemotarocha/aceleramais-api c286dd1 src/repositories/team/team.repository.test.ts
true
200
4,472
import { Types } from 'mongoose' import { env } from '../../config/env.config' import { CreateTeamDto, UpdateTeamDto } from '../../dtos/team.dtos' import Team from '../../entities/team.entity' import MongooseHelper from '../../helpers/mongoose.helpers' import TeamModel from '../../models/team.model' import { MongoTeam...
2
cleitonpqz-cacsis/turbo-winner
3aac6bb
@types/index.d.ts
TypeScript
www.github.com/cleitonpqz-cacsis/turbo-winner/tree/main/@types/index.d.ts
https://raw.githubusercontent.com/cleitonpqz-cacsis/turbo-winner/3aac6bb/%40types/index.d.ts
cleitonpqz-cacsis/turbo-winner 3aac6bb @types/index.d.ts
true
200
344
interface Base { _id?: string; createdAt?: Date; updatedAt?: Date; } interface Customer extends Base { name: string; phoneNumber: string; } interface Invoice extends Base { customer_id: string; customer?: Customer; item: string; totalAmount: number; dueDate: Date; paymentFrequency: string; numb...
7
Anusha-Mudupu/Anu-AnguEva
bc1bd07
src/app/subheader/add-shipping-address/add-shipping-address.component.ts
TypeScript
www.github.com/Anusha-Mudupu/Anu-AnguEva/tree/main/src/app/subheader/add-shipping-address/add-shipping-address.component.ts
https://raw.githubusercontent.com/Anusha-Mudupu/Anu-AnguEva/bc1bd07/src/app/subheader/add-shipping-address/add-shipping-address.component.ts
Anusha-Mudupu/Anu-AnguEva bc1bd07 src/app/subheader/add-shipping-address/add-shipping-address.component.ts
true
200
6,911
/* * Copyright (c) 2023 Dmantz Technologies private limited * All rights reserved. */ import { Component, OnInit } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; // import { ThemePalette } from '@angular/material'; import { ActivatedRoute, Router } from '...
6
createyourevent/createyourevent-mobile
193dec6
src/app/pages/entities/chips-collection-chips/chips-collection-chips-update.ts
TypeScript
www.github.com/createyourevent/createyourevent-mobile/tree/main/src/app/pages/entities/chips-collection-chips/chips-collection-chips-update.ts
https://raw.githubusercontent.com/createyourevent/createyourevent-mobile/193dec6/src/app/pages/entities/chips-collection-chips/chips-collection-chips-update.ts
createyourevent/createyourevent-mobile 193dec6 src/app/pages/entities/chips-collection-chips/chips-collection-chips-update.ts
true
200
4,542
import { Component, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { NavController, Platform, ToastController } from '@ionic/angular'; import { HttpResponse, HttpErrorResponse } from '@angular/common/http'; import { ActivatedRoute } from '@angular/router'; import { Obser...
5
zg04ckpt/zlearn
d762247
Client/Web/src/app/components/login-2/login-2.component.ts
TypeScript
www.github.com/zg04ckpt/zlearn/tree/main/Client/Web/src/app/components/login-2/login-2.component.ts
https://raw.githubusercontent.com/zg04ckpt/zlearn/d762247/Client/Web/src/app/components/login-2/login-2.component.ts
zg04ckpt/zlearn d762247 Client/Web/src/app/components/login-2/login-2.component.ts
true
200
2,635
import { NgClass } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { RouterLink } from '@angular/router'; import { debounceTime, Subject } from 'rxjs'; import { ComponentService } from '../../services/component.service'; import { AuthServic...
1
larbisahli/storefront
239702f
packages/dropgala-utils/src/countries.ts
TypeScript
www.github.com/larbisahli/storefront/tree/main/packages/dropgala-utils/src/countries.ts
https://raw.githubusercontent.com/larbisahli/storefront/239702f/packages/dropgala-utils/src/countries.ts
larbisahli/storefront 239702f packages/dropgala-utils/src/countries.ts
true
200
46,199
export const Countries = [ { currency: 'AFN', currencySymbol: '؋', id: 1, iso2: 'AF', name: 'Afghanistan', phoneCode: '93', region: 'Asia', subregion: 'Southern Asia' }, { currency: 'EUR', currencySymbol: '€', id: 2, iso2: 'AX', name: 'Aland Islands', phoneC...
0
marcusradell/lab_copilot_binary_search
9429bf2
src/main.ts
TypeScript
www.github.com/marcusradell/lab_copilot_binary_search/tree/main/src/main.ts
https://raw.githubusercontent.com/marcusradell/lab_copilot_binary_search/9429bf2/src/main.ts
marcusradell/lab_copilot_binary_search 9429bf2 src/main.ts
true
200
371
import express from "express"; import { createToysRouter } from "./kits"; export const main = () => { const app = express(); app.use(express.static("public")); app.use(express.json()); const toysRouter = createToysRouter(); app.use("/api/v1/toys", toysRouter); app.get("/api/v1/status", (req, res) => { ...
4
Nikhil-Muddamsetty/loan-tracker
4629cea
src/auth/auth.controller.ts
TypeScript
www.github.com/Nikhil-Muddamsetty/loan-tracker/tree/main/src/auth/auth.controller.ts
https://raw.githubusercontent.com/Nikhil-Muddamsetty/loan-tracker/4629cea/src/auth/auth.controller.ts
Nikhil-Muddamsetty/loan-tracker 4629cea src/auth/auth.controller.ts
true
200
992
import { Body, Controller, Post } from '@nestjs/common'; import { AuthService } from './auth.service'; import { Res } from 'src/utils/response'; import { ContinueWithGoogleDto, FetchAccessTokenDto } from './auth.dto'; import { Public } from './auth.guard'; @Controller('auth') export class AuthController { constructo...
3
EduaRuiz/package_tracking_backend
1b07da0
src/infrastructure/persistance/databases/mongo/models/__test__/user.mongo-model.spec.ts
TypeScript
www.github.com/EduaRuiz/package_tracking_backend/tree/main/src/infrastructure/persistance/databases/mongo/models/__test__/user.mongo-model.spec.ts
https://raw.githubusercontent.com/EduaRuiz/package_tracking_backend/1b07da0/src/infrastructure/persistance/databases/mongo/models/__test__/user.mongo-model.spec.ts
EduaRuiz/package_tracking_backend 1b07da0 src/infrastructure/persistance/databases/mongo/models/__test__/user.mongo-model.spec.ts
true
200
1,278
import { UserMongoModel } from '..'; describe('UserMongoModel', () => { let _id = '123456789'; let firebaseId = 'firebaseId'; let email = 'email'; let name = 'name'; let document = 'document'; let phone = 'phone'; it('should be defined', () => { // Act const entity = new UserMongoModel(firebaseI...
2
LudivineSa/angularQuestWild
8d13477
src/app/app.routes.ts
TypeScript
www.github.com/LudivineSa/angularQuestWild/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/LudivineSa/angularQuestWild/8d13477/src/app/app.routes.ts
LudivineSa/angularQuestWild 8d13477 src/app/app.routes.ts
true
200
1,376
import { Routes } from "@angular/router"; import { SignUpComponent } from "./sign-up/sign-up.component"; import { UserProfileComponent } from "./user-profile/user-profile.component"; import { UserComponent } from "./user/user.component"; import { SearchMovieComponent } from "./search-movie/search-movie.component"; impo...
7
taikidev0922/wijmo-next
5615601
api/api/reservation_and_stocks/oldest_stock_change/index.ts
TypeScript
www.github.com/taikidev0922/wijmo-next/tree/main/api/api/reservation_and_stocks/oldest_stock_change/index.ts
https://raw.githubusercontent.com/taikidev0922/wijmo-next/5615601/api/api/reservation_and_stocks/oldest_stock_change/index.ts
taikidev0922/wijmo-next 5615601 api/api/reservation_and_stocks/oldest_stock_change/index.ts
true
200
486
/* eslint-disable */ import type * as Types from '../../../@types' export type Methods = { /** 指定の品番、倉庫IDMに該当するうち、依頼日が最も古い在庫振替Noを取得します。 */ get: { query: Types.Embed & { /** 品番 */ invent_idm: string /** 倉庫IDM */ location_idm: string } status: 200 /** OK */ resBody: { ...
6
alihanafy10/ticket_maneger
64e58cd
src/modules/ticket/ticket.service.ts
TypeScript
www.github.com/alihanafy10/ticket_maneger/tree/main/src/modules/ticket/ticket.service.ts
https://raw.githubusercontent.com/alihanafy10/ticket_maneger/64e58cd/src/modules/ticket/ticket.service.ts
alihanafy10/ticket_maneger 64e58cd src/modules/ticket/ticket.service.ts
true
200
5,494
import { Injectable, NotFoundException } from "@nestjs/common"; import { DateTime } from "luxon"; import { nanoid } from 'nanoid'; import { Model } from "mongoose"; import { InjectModel } from "@nestjs/mongoose"; import { TaddTicketBodyDto, TgetTicketQueryDto, TupdateTicketParamDto, TupdateTicketQueryDto } from "../.....
1
muskansaini1804/supabase-practice
96c0920
src/middleware.ts
TypeScript
www.github.com/muskansaini1804/supabase-practice/tree/main/src/middleware.ts
https://raw.githubusercontent.com/muskansaini1804/supabase-practice/96c0920/src/middleware.ts
muskansaini1804/supabase-practice 96c0920 src/middleware.ts
true
200
1,431
import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs"; import { NextResponse } from "next/server"; import type { NextRequest } from "next/server"; let redirectedToRoot = false; // Flag to track if redirected to "/" export async function middleware(req: NextRequest) { const res = NextResponse.next()...
5
praveens2709/Angular_Ecommerce
c24ef1f
ecom-frontend/src/app/app-routing.module.ts
TypeScript
www.github.com/praveens2709/Angular_Ecommerce/tree/main/ecom-frontend/src/app/app-routing.module.ts
https://raw.githubusercontent.com/praveens2709/Angular_Ecommerce/c24ef1f/ecom-frontend/src/app/app-routing.module.ts
praveens2709/Angular_Ecommerce c24ef1f ecom-frontend/src/app/app-routing.module.ts
true
200
751
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ // Default redirect to public home page { path: '', redirectTo: '/home', // Redirect to home for public users pathMatch: 'full', }, // Admin routes are prefixed with 'admin'...
0
crosettiremi/beyondthepines
77070fe
src/router/routes.ts
TypeScript
www.github.com/crosettiremi/beyondthepines/tree/main/src/router/routes.ts
https://raw.githubusercontent.com/crosettiremi/beyondthepines/77070fe/src/router/routes.ts
crosettiremi/beyondthepines 77070fe src/router/routes.ts
true
200
432
import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' import Home from '../pages/Home.vue' import Info from '../pages/Info.vue' const routes: RouteRecordRaw[] = [ { path: '/', name: 'Home', component: Home, }, { path: '/info', name: 'Info', compone...
4
RSYR1906/vttp5a_csf_workshop36_and_37
a964d97
client/src/app/components/view-image/view-image.component.ts
TypeScript
www.github.com/RSYR1906/vttp5a_csf_workshop36_and_37/tree/main/client/src/app/components/view-image/view-image.component.ts
https://raw.githubusercontent.com/RSYR1906/vttp5a_csf_workshop36_and_37/a964d97/client/src/app/components/view-image/view-image.component.ts
RSYR1906/vttp5a_csf_workshop36_and_37 a964d97 client/src/app/components/view-image/view-image.component.ts
true
200
1,038
import { Component, inject, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Subscription } from 'rxjs'; import { FileuploadService } from '../../fileupload.service'; @Component({ selector: 'app-view-image', standalone: false, templateUrl: './view-image...
2
aadilmallick/my-notes-docusaurus
d86566b
src/examples/WorkerClass.ts
TypeScript
www.github.com/aadilmallick/my-notes-docusaurus/tree/main/src/examples/WorkerClass.ts
https://raw.githubusercontent.com/aadilmallick/my-notes-docusaurus/d86566b/src/examples/WorkerClass.ts
aadilmallick/my-notes-docusaurus d86566b src/examples/WorkerClass.ts
true
200
814
interface Messages { terminate: { type: "terminate"; payload: undefined; }; countToACertainNumber: { type: "countToACertainNumber"; payload: number; }; } export class WorkerClass { constructor(public worker: Worker) {} onError(callback: (err: ErrorEvent) => void) { this.worker.onerror ...
3
fedexxF/FrontEnd-Porfolio-NuevoDeploy
4053519
src/app/componets/recuperar-password/recuperar-password.component.ts
TypeScript
www.github.com/fedexxF/FrontEnd-Porfolio-NuevoDeploy/tree/main/src/app/componets/recuperar-password/recuperar-password.component.ts
https://raw.githubusercontent.com/fedexxF/FrontEnd-Porfolio-NuevoDeploy/4053519/src/app/componets/recuperar-password/recuperar-password.component.ts
fedexxF/FrontEnd-Porfolio-NuevoDeploy 4053519 src/app/componets/recuperar-password/recuperar-password.component.ts
true
200
1,466
import { Component, OnInit } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/compat/auth'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { FirebaseErrorService } from 'src/app/service...
1
a-tarasyuk/eslint-plugin-redundant-undefined
3ce71e4
src/redundant-undefined.ts
TypeScript
www.github.com/a-tarasyuk/eslint-plugin-redundant-undefined/tree/main/src/redundant-undefined.ts
https://raw.githubusercontent.com/a-tarasyuk/eslint-plugin-redundant-undefined/3ce71e4/src/redundant-undefined.ts
a-tarasyuk/eslint-plugin-redundant-undefined 3ce71e4 src/redundant-undefined.ts
true
200
7,205
import type { TSESTree, TSESLint } from '@typescript-eslint/utils'; import { AST_NODE_TYPES, AST_TOKEN_TYPES, ESLintUtils, } from '@typescript-eslint/utils'; const createRule = ESLintUtils.RuleCreator(() => ''); type Options = [ { followExactOptionalPropertyTypes?: boolean; }, ]; type MessageIds = | ...
6
bgarciaoliveira/openai-enhanced-sdk
8b3ddc1
src/openai-client.ts
TypeScript
www.github.com/bgarciaoliveira/openai-enhanced-sdk/tree/main/src/openai-client.ts
https://raw.githubusercontent.com/bgarciaoliveira/openai-enhanced-sdk/8b3ddc1/src/openai-client.ts
bgarciaoliveira/openai-enhanced-sdk 8b3ddc1 src/openai-client.ts
true
200
20,552
// src/openai-client.ts import axios, { AxiosInstance, AxiosError, AxiosRequestConfig } from 'axios'; import axiosRetry, { exponentialDelay, isRetryableError } from 'axios-retry'; import FormData from 'form-data'; import fs from 'fs'; import { Readable } from 'stream'; import winston, { format, transports } from 'wins...
5
luisrondow/repo-flix
a47e962
src/hooks/useFirebase/index.ts
TypeScript
www.github.com/luisrondow/repo-flix/tree/main/src/hooks/useFirebase/index.ts
https://raw.githubusercontent.com/luisrondow/repo-flix/a47e962/src/hooks/useFirebase/index.ts
luisrondow/repo-flix a47e962 src/hooks/useFirebase/index.ts
true
200
1,988
import { getAuth, signInWithEmailAndPassword, createUserWithEmailAndPassword, signOut, } from 'firebase/auth' import { getFirestore, collection, addDoc, getDocs, updateDoc, doc, query, where, } from 'firebase/firestore' import app from '../../services/firebase' export default function useFireb...
0
Onchain-Computer-International/computer-interface
76f0719
src/hooks/useWindowManager.ts
TypeScript
www.github.com/Onchain-Computer-International/computer-interface/tree/main/src/hooks/useWindowManager.ts
https://raw.githubusercontent.com/Onchain-Computer-International/computer-interface/76f0719/src/hooks/useWindowManager.ts
Onchain-Computer-International/computer-interface 76f0719 src/hooks/useWindowManager.ts
true
200
3,975
import { useAtom } from 'jotai'; import { atomWithStorage } from 'jotai/utils'; import { playWindowOpenSound, playWindowCloseSound } from '../components/Desktop/Sounds'; export type WindowState = { id: string; isMinimized: boolean; isMaximized: boolean; zIndex: number; position: { x: number; y: number }; s...
7
havietlong/CoffeeShopMain
9e378e7
src/app/services/cart/cart.service.ts
TypeScript
www.github.com/havietlong/CoffeeShopMain/tree/main/src/app/services/cart/cart.service.ts
https://raw.githubusercontent.com/havietlong/CoffeeShopMain/9e378e7/src/app/services/cart/cart.service.ts
havietlong/CoffeeShopMain 9e378e7 src/app/services/cart/cart.service.ts
true
200
1,136
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, tap } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class CartService { private apiBaseUrl = 'http://localhost:5265/api/carts'; private token: string | null = null; constr...
2
enesozmus/Shopizer
7a46bf0
client/src/app/ui/components/baskets/baskets.component.ts
TypeScript
www.github.com/enesozmus/Shopizer/tree/main/client/src/app/ui/components/baskets/baskets.component.ts
https://raw.githubusercontent.com/enesozmus/Shopizer/7a46bf0/client/src/app/ui/components/baskets/baskets.component.ts
enesozmus/Shopizer 7a46bf0 client/src/app/ui/components/baskets/baskets.component.ts
true
200
1,947
import { Component, OnInit } from '@angular/core'; import { NgxSpinnerService } from 'ngx-spinner'; import { BaseComponent, SpinnerType } from 'src/app/base/base.component'; import { BasketService } from 'src/app/services/basket/basket.service'; import { List_Basket_Item } from 'src/app/shared/contracts/baskets/list_ba...
4