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
amiruln/SpotifyApps
1b041c2
src/app/components/home/home.component.ts
TypeScript
www.github.com/amiruln/SpotifyApps/tree/main/src/app/components/home/home.component.ts
https://raw.githubusercontent.com/amiruln/SpotifyApps/1b041c2/src/app/components/home/home.component.ts
amiruln/SpotifyApps 1b041c2 src/app/components/home/home.component.ts
true
200
848
import { Component, OnInit } from '@angular/core'; import { SpotifyService } from '../../services/spotify.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent implements OnInit { newReleases: any[] = [] artists: a...
4
Elydev26/Task-0ne-
be16848
src/index.ts
TypeScript
www.github.com/Elydev26/Task-0ne-/tree/main/src/index.ts
https://raw.githubusercontent.com/Elydev26/Task-0ne-/be16848/src/index.ts
Elydev26/Task-0ne- be16848 src/index.ts
true
200
755
import express from 'express' import mongoose from 'mongoose'; import router from './routes/userRoute' import { DB } from './config/config' import dotenv from 'dotenv' dotenv.config() const app = express() app.use(express.json()) const startApp = async () => { mongoose.set('strictQuery', false) await mongoose...
0
alexandra-la/FriendlyBeads
23757ed
friendly-beads/src/app/app.module.ts
TypeScript
www.github.com/alexandra-la/FriendlyBeads/tree/main/friendly-beads/src/app/app.module.ts
https://raw.githubusercontent.com/alexandra-la/FriendlyBeads/23757ed/friendly-beads/src/app/app.module.ts
alexandra-la/FriendlyBeads 23757ed friendly-beads/src/app/app.module.ts
true
200
1,550
import { NgModule, isDevMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouteReuseStrategy } from '@angular/router'; import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; import { AppComponent } from './app.component'; import { AppRoutingModule } from './ap...
7
drio-inc/client
96a42a6
root.drio/src/state/slices/contractRuleSlice.ts
TypeScript
www.github.com/drio-inc/client/tree/main/root.drio/src/state/slices/contractRuleSlice.ts
https://raw.githubusercontent.com/drio-inc/client/96a42a6/root.drio/src/state/slices/contractRuleSlice.ts
drio-inc/client 96a42a6 root.drio/src/state/slices/contractRuleSlice.ts
true
200
1,108
import contractRules from "../../data/contract_rules.json"; import { createSlice, PayloadAction } from "@reduxjs/toolkit"; export type Rule = { id?: string; name?: string; action?: string; dataset?: string; defaultAllow?: boolean; subrules?: { id?: string; value: string; subrule: string; me...
2
elmarti/camadb
38d98ce
src/modules/query/query.service.ts
TypeScript
www.github.com/elmarti/camadb/tree/main/src/modules/query/query.service.ts
https://raw.githubusercontent.com/elmarti/camadb/38d98ce/src/modules/query/query.service.ts
elmarti/camadb 38d98ce src/modules/query/query.service.ts
true
200
2,496
import { IQueryService } from '../../interfaces/query-service.interface'; import { inject, injectable } from 'inversify'; import { TYPES } from '../../types'; import { IPersistenceAdapter } from '../../interfaces/persistence-adapter.interface'; import sift from "sift"; import { sort } from 'fast-sort'; import { IQuery...
1
himanshurawat-10/ebs_front
2cbbbe7
src/app/app.module.ts
TypeScript
www.github.com/himanshurawat-10/ebs_front/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/himanshurawat-10/ebs_front/2cbbbe7/src/app/app.module.ts
himanshurawat-10/ebs_front 2cbbbe7 src/app/app.module.ts
true
200
1,065
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http' import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ConsumerListComponent } from './consumer-list/con...
5
cp-git/uhpocms-web
5a4c9a3
services/src/app/forgotpassword/forgotpassword.component.ts
TypeScript
www.github.com/cp-git/uhpocms-web/tree/main/services/src/app/forgotpassword/forgotpassword.component.ts
https://raw.githubusercontent.com/cp-git/uhpocms-web/5a4c9a3/services/src/app/forgotpassword/forgotpassword.component.ts
cp-git/uhpocms-web 5a4c9a3 services/src/app/forgotpassword/forgotpassword.component.ts
true
200
1,469
import { Component } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { AuthUserService } from 'app/auth-user/services/auth-user.service'; import { HomeComponent } from 'app/home/home.component'; import { DialogBoxService } from 'app/shared/services/HttpInterceptor/dialog-box.servi...
4
ateneadevgit/FRONTEND
07899de
src/app/components/admin/template/template.module.ts
TypeScript
www.github.com/ateneadevgit/FRONTEND/tree/main/src/app/components/admin/template/template.module.ts
https://raw.githubusercontent.com/ateneadevgit/FRONTEND/07899de/src/app/components/admin/template/template.module.ts
ateneadevgit/FRONTEND 07899de src/app/components/admin/template/template.module.ts
true
200
892
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TemplateRoutingModule } from './template-routing.module'; import { TemplateComponent } from './template.component'; import { TableModule } from 'primeng/table'; import { InputSwitchModule } from 'primeng/inputswitch'; im...
0
sys-repo/sys
c5718c7
code/sys/crypto/src/m.Hash/u.shorten.ts
TypeScript
www.github.com/sys-repo/sys/tree/main/code/sys/crypto/src/m.Hash/u.shorten.ts
https://raw.githubusercontent.com/sys-repo/sys/c5718c7/code/sys/crypto/src/m.Hash/u.shorten.ts
sys-repo/sys c5718c7 code/sys/crypto/src/m.Hash/u.shorten.ts
true
200
1,416
import type { t } from '../common.ts'; export const shorten: t.HashLib['shorten'] = (hash, length, op = {}) => { const options = wrangle.options(op); const { divider = '..' } = options; hash = wrangle.trimPrefixes((hash || '').trim(), options); if (!hash) return ''; const lengths = Array.isArray(length) ? ...
3
DamonFinch/project5
bcc6e94
pages/api/participants/get/index.ts
TypeScript
www.github.com/DamonFinch/project5/tree/main/pages/api/participants/get/index.ts
https://raw.githubusercontent.com/DamonFinch/project5/bcc6e94/pages/api/participants/get/index.ts
DamonFinch/project5 bcc6e94 pages/api/participants/get/index.ts
true
200
688
import { createHandler, Get } from "next-api-decorators" import * as _ from "lodash" import { ParticipantsAuthGuard } from "../../../../middleware/auth.middleware" /* eslint-disable class-methods-use-this */ import { getAllParticipants } from "../../../../helpers/db" class GetParticipants { @Get() @ParticipantsAut...
6
zuoez02/siyuan-plugin-dida365
94bb1f2
src/index.ts
TypeScript
www.github.com/zuoez02/siyuan-plugin-dida365/tree/main/src/index.ts
https://raw.githubusercontent.com/zuoez02/siyuan-plugin-dida365/94bb1f2/src/index.ts
zuoez02/siyuan-plugin-dida365 94bb1f2 src/index.ts
true
200
8,061
import { Plugin, Menu, showMessage } from "siyuan"; import "@/index.scss"; import { ExceedQueryLimitError, OpenAPI, UnauthorizedError } from "./api/openapi"; import { initDock } from "./utils/component"; import { i18n, syncData } from "./store"; import { loadIcon } from "./assets/iconDida"; const client_id = "h7KTvc0S...
7
ChuzOP/desafio-360-frontend
8ac978f
src/services/productos.ts
TypeScript
www.github.com/ChuzOP/desafio-360-frontend/tree/main/src/services/productos.ts
https://raw.githubusercontent.com/ChuzOP/desafio-360-frontend/8ac978f/src/services/productos.ts
ChuzOP/desafio-360-frontend 8ac978f src/services/productos.ts
true
200
1,991
import { IResBackend } from '../interfaces'; import apiClient from './axios.config'; export const crearProducto = async (data: any): Promise<IResBackend> => { try { const response = await apiClient.post<any>('/producto', data, { headers: { 'Content-Type': 'multipart/form-data' ...
4
CamiFranca/projeto-labEddit
a083a3f
src/controller/CommentsController.ts
TypeScript
www.github.com/CamiFranca/projeto-labEddit/tree/main/src/controller/CommentsController.ts
https://raw.githubusercontent.com/CamiFranca/projeto-labEddit/a083a3f/src/controller/CommentsController.ts
CamiFranca/projeto-labEddit a083a3f src/controller/CommentsController.ts
true
200
2,477
import { Request, Response } from "express" import { CommentsBusiness } from "../business/CommentsBusiness"; import { CreateCommentsInputDTO, GetCommentInputDTO, LikedislikeCommentInputDTO } from "../dtos/CommentsDTO"; import { BaseError } from "../errors/BaseError"; export class CommmentsController { constructor(...
0
RoxVell/Programming-Language
7fbb0c3
src/interpreter/tests/interpreter.spec.ts
TypeScript
www.github.com/RoxVell/Programming-Language/tree/main/src/interpreter/tests/interpreter.spec.ts
https://raw.githubusercontent.com/RoxVell/Programming-Language/7fbb0c3/src/interpreter/tests/interpreter.spec.ts
RoxVell/Programming-Language 7fbb0c3 src/interpreter/tests/interpreter.spec.ts
true
200
3,201
import { Interpreter } from '../interpreter'; function testInterpreter(code: string, expectedValue: unknown) { const interpreter = new Interpreter(); expect(interpreter.evaluate(code)).toBe(expectedValue); } function testExpressionResult(code: string, result: any) { it(`should evaluate expression "${code}" corr...
2
DuvanRozoP/Cbtic
6b42921
Backend/src/index.ts
TypeScript
www.github.com/DuvanRozoP/Cbtic/tree/main/Backend/src/index.ts
https://raw.githubusercontent.com/DuvanRozoP/Cbtic/6b42921/Backend/src/index.ts
DuvanRozoP/Cbtic 6b42921 Backend/src/index.ts
true
200
1,114
import express from 'express'; import dotenv from 'dotenv'; import morgan from 'morgan'; import cors from 'cors'; // * DataBase.ts and Router.ts / imports // import conexion from './DataBase'; import router from './Router'; dotenv.config(); const app = express(); // * DATA CONNECTION DATABASE const port = process.env...
3
abacaxiguy/ts-jest
3617bdc
src/classes/customer.spec.ts
TypeScript
www.github.com/abacaxiguy/ts-jest/tree/main/src/classes/customer.spec.ts
https://raw.githubusercontent.com/abacaxiguy/ts-jest/3617bdc/src/classes/customer.spec.ts
abacaxiguy/ts-jest 3617bdc src/classes/customer.spec.ts
true
200
1,428
import { EnterpriseCustomer, IndividualCustomer } from "./customer"; const createIndividualCustomer = ( firstName: string, lastName: string, cpf: string, ) => { return new IndividualCustomer(firstName, lastName, cpf); }; const createEnterpriseCustomer = (name: string, cnpj: string) => { return new...
4
yuvalfisher123/eCommerce
0e7c8f5
back/src/services/productService.ts
TypeScript
www.github.com/yuvalfisher123/eCommerce/tree/main/back/src/services/productService.ts
https://raw.githubusercontent.com/yuvalfisher123/eCommerce/0e7c8f5/back/src/services/productService.ts
yuvalfisher123/eCommerce 0e7c8f5 back/src/services/productService.ts
true
200
1,947
import { PrismaClient } from '@prisma/client' import { Request, Response } from "express"; const productRepository = new PrismaClient().product; export const getProductsSevice = async (req : Request, res : Response) => { const search = (req.query.search || '').toString().replace('+', ' '); const fromIdx = +(r...
0
JoshiWorld/rotekurve_frontend
c9ed955
src/app/app.component.ts
TypeScript
www.github.com/JoshiWorld/rotekurve_frontend/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/JoshiWorld/rotekurve_frontend/c9ed955/src/app/app.component.ts
JoshiWorld/rotekurve_frontend c9ed955 src/app/app.component.ts
true
200
502
import { Component, OnInit } from '@angular/core'; import { initFlowbite } from 'flowbite'; import { Router } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { title = 'rotekurve_fr...
3
Gyufei/FL
943421e
lib/hooks/contract/use-create-offer.ts
TypeScript
www.github.com/Gyufei/FL/tree/main/lib/hooks/contract/use-create-offer.ts
https://raw.githubusercontent.com/Gyufei/FL/943421e/lib/hooks/contract/use-create-offer.ts
Gyufei/FL 943421e lib/hooks/contract/use-create-offer.ts
true
200
654
import { useCreateOfferSol } from "./solana/use-create-offer-sol"; import { useCreateOfferEth } from "./eth/use-create-offer-eth"; import { useChainTx } from "./help/use-chain-tx"; import { ChainType } from "@/lib/types/chain"; export function useCreateOffer({ chain, marketSymbol, marketplaceStr: marketplaceStr,...
2
GastonDev02/data-job-api
0b07d99
src/user/user.controller.ts
TypeScript
www.github.com/GastonDev02/data-job-api/tree/main/src/user/user.controller.ts
https://raw.githubusercontent.com/GastonDev02/data-job-api/0b07d99/src/user/user.controller.ts
GastonDev02/data-job-api 0b07d99 src/user/user.controller.ts
true
200
10,445
/* eslint-disable prettier/prettier */ import { Body, Controller, Delete, Get, HttpStatus, NotFoundException, Param, Post, Put, Res } from '@nestjs/common'; import { UserService } from './user.service'; import { AddSkillsDto, ChangeImageDto, ChangeInfoDto, RoleDto } from 'src/dto/user.dto'; import { Response } from 'ex...
4
Inam20/edva-strapi
15c4dbb
src/app/components/pages/elearning-school/elearning-banner/elearning-banner.service.spec.ts
TypeScript
www.github.com/Inam20/edva-strapi/tree/main/src/app/components/pages/elearning-school/elearning-banner/elearning-banner.service.spec.ts
https://raw.githubusercontent.com/Inam20/edva-strapi/15c4dbb/src/app/components/pages/elearning-school/elearning-banner/elearning-banner.service.spec.ts
Inam20/edva-strapi 15c4dbb src/app/components/pages/elearning-school/elearning-banner/elearning-banner.service.spec.ts
true
200
403
import { TestBed } from '@angular/core/testing'; import { ElearningBannerService } from './elearning-banner.service'; describe('ElearningBannerService', () => { let service: ElearningBannerService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ElearningBannerService); ...
2
phucpham-infinity/supper-web-app
3cb6a75
packages/host/src/router/api/user/controllers/loginWithEmailPassword.ts
TypeScript
www.github.com/phucpham-infinity/supper-web-app/tree/main/packages/host/src/router/api/user/controllers/loginWithEmailPassword.ts
https://raw.githubusercontent.com/phucpham-infinity/supper-web-app/3cb6a75/packages/host/src/router/api/user/controllers/loginWithEmailPassword.ts
phucpham-infinity/supper-web-app 3cb6a75 packages/host/src/router/api/user/controllers/loginWithEmailPassword.ts
true
200
908
import { Request, Response } from "express"; import UserSchema from "@/models/user"; export const loginWithEmailPassword = async (req: Request, res: Response) => { const body = req.body; const password = body?.password || ""; const email = body?.email || ""; try { const user = await UserSchema.findOne({ em...
0
Doist/todoist-integration-examples
e20d9f6
lorem-ipsum-ui-extension/src/services/actions.service.ts
TypeScript
www.github.com/Doist/todoist-integration-examples/tree/main/lorem-ipsum-ui-extension/src/services/actions.service.ts
https://raw.githubusercontent.com/Doist/todoist-integration-examples/e20d9f6/lorem-ipsum-ui-extension/src/services/actions.service.ts
Doist/todoist-integration-examples e20d9f6 lorem-ipsum-ui-extension/src/services/actions.service.ts
true
200
4,086
import type { ContextMenuData, DoistCardRequest, DoistCardResponse, } from '@doist/ui-extensions-core' import { AdaptiveCardService } from './adaptive-card.service' import { TodoistApi } from '@doist/todoist-api-typescript' import { loremIpsum } from 'lorem-ipsum' export class ActionsService { async...
3
danixl30/test-repository-improvement
3d0d63d
@app/client/src/core/infraestructure/input-manager/useInputManager.ts
TypeScript
www.github.com/danixl30/test-repository-improvement/tree/main/@app/client/src/core/infraestructure/input-manager/useInputManager.ts
https://raw.githubusercontent.com/danixl30/test-repository-improvement/3d0d63d/%40app/client/src/core/infraestructure/input-manager/useInputManager.ts
danixl30/test-repository-improvement 3d0d63d @app/client/src/core/infraestructure/input-manager/useInputManager.ts
true
200
815
import { InputManager } from '../../application/input-manager/input-manager' import { StateFactory } from '../../application/state/state-factory' export const createInputManager = (stateFactory: StateFactory): InputManager => <T>( initialValue: T, validator: (d: T) => string = (_: T) => '', ...
4
ElPepeShido/FerreteriaMobilFrontend
b340b2c
src/app/pages/my-perfil/my-perfil.page.spec.ts
TypeScript
www.github.com/ElPepeShido/FerreteriaMobilFrontend/tree/main/src/app/pages/my-perfil/my-perfil.page.spec.ts
https://raw.githubusercontent.com/ElPepeShido/FerreteriaMobilFrontend/b340b2c/src/app/pages/my-perfil/my-perfil.page.spec.ts
ElPepeShido/FerreteriaMobilFrontend b340b2c src/app/pages/my-perfil/my-perfil.page.spec.ts
true
200
458
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MyPerfilPage } from './my-perfil.page'; describe('MyPerfilPage', () => { let component: MyPerfilPage; let fixture: ComponentFixture<MyPerfilPage>; beforeEach(() => { fixture = TestBed.createComponent(MyPerfilPage); component = f...
2
mohamednoureldeen/startframework
b6b531b
src/app/app.routes.ts
TypeScript
www.github.com/mohamednoureldeen/startframework/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/mohamednoureldeen/startframework/b6b531b/src/app/app.routes.ts
mohamednoureldeen/startframework b6b531b src/app/app.routes.ts
true
200
867
import { Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { AboutComponent } from './about/about.component'; import { PortfolioComponent } from './portfolio/portfolio.component'; import { ContactComponent } from './contact/contact.component'; import { NotfoundComponent } fr...
3
sbm-waltersouza/padawan-revisao-geral-02
a54c7db
frontend/src/app/canal-form/canal-form.component.ts
TypeScript
www.github.com/sbm-waltersouza/padawan-revisao-geral-02/tree/main/frontend/src/app/canal-form/canal-form.component.ts
https://raw.githubusercontent.com/sbm-waltersouza/padawan-revisao-geral-02/a54c7db/frontend/src/app/canal-form/canal-form.component.ts
sbm-waltersouza/padawan-revisao-geral-02 a54c7db frontend/src/app/canal-form/canal-form.component.ts
true
200
1,193
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { CanalService } from '../canal.service'; @Component({ selector: 'app-canal-form', templateUrl: './canal-form.component.html', styleUrls: ['./canal-form.component.css'] }) export class CanalFormCom...
0
tonyjara/podcast-solutions
7f0aafe
src/lib/utils/durationUtils.ts
TypeScript
www.github.com/tonyjara/podcast-solutions/tree/main/src/lib/utils/durationUtils.ts
https://raw.githubusercontent.com/tonyjara/podcast-solutions/7f0aafe/src/lib/utils/durationUtils.ts
tonyjara/podcast-solutions 7f0aafe src/lib/utils/durationUtils.ts
true
200
1,499
export const parseDurationToSeconds = (x: unknown) => { // Some podcasts have their duration in hours minutes and seconds, others in hours and minutes //If it's a string with semi-colons, parse it, else return as is if (typeof x === "string") { if (x.includes(":")) { if (x.split(":").len...
3
navgurukul/zuvy-server
271eb0c
src/controller/bootcamp/bootcamp.module.ts
TypeScript
www.github.com/navgurukul/zuvy-server/tree/main/src/controller/bootcamp/bootcamp.module.ts
https://raw.githubusercontent.com/navgurukul/zuvy-server/271eb0c/src/controller/bootcamp/bootcamp.module.ts
navgurukul/zuvy-server 271eb0c src/controller/bootcamp/bootcamp.module.ts
true
200
722
import { Module ,NestModule,MiddlewareConsumer} from '@nestjs/common'; import { BootcampController } from './bootcamp.controller'; import { BootcampService } from './bootcamp.service'; import { BatchesModule } from '../batches/batch.module'; import { JwtModule,JwtService } from '@nestjs/jwt'; import { JwtMiddleware } f...
0
oyerindedaniel/spotta
f529eb4
packages/api/src/router/amenity.ts
TypeScript
www.github.com/oyerindedaniel/spotta/tree/main/packages/api/src/router/amenity.ts
https://raw.githubusercontent.com/oyerindedaniel/spotta/f529eb4/packages/api/src/router/amenity.ts
oyerindedaniel/spotta f529eb4 packages/api/src/router/amenity.ts
true
200
3,527
import { TRPCRouterRecord } from "@trpc/server"; import { z } from "zod"; import { createAmenitySchema, updateAmenitySchema } from "@repo/validations"; import { adminProtectedProcedure, publicProcedure } from "../trpc"; export const amenityRouter = { create: adminProtectedProcedure .input(createAmenitySchema) ...
2
Vidhyanandcs/algodesk-monorepo
e3e75b1
packages/algodesk-core/src/signers/walletSigner.ts
TypeScript
www.github.com/Vidhyanandcs/algodesk-monorepo/tree/main/packages/algodesk-core/src/signers/walletSigner.ts
https://raw.githubusercontent.com/Vidhyanandcs/algodesk-monorepo/e3e75b1/packages/algodesk-core/src/signers/walletSigner.ts
Vidhyanandcs/algodesk-monorepo e3e75b1 packages/algodesk-core/src/signers/walletSigner.ts
true
200
1,058
import {Signer} from "../types"; import {Account, Transaction} from "algosdk"; import {NETWORKS} from "../constants"; export class WalletSigner implements Signer{ private wallet: Account; private supportedNetworks: string[]; constructor(wallet?: Account) { if (wallet) { this.setWallet(...
4
ekbal42/asifekbal-portfolio
2db7d64
app/actions/gitFile.ts
TypeScript
www.github.com/ekbal42/asifekbal-portfolio/tree/main/app/actions/gitFile.ts
https://raw.githubusercontent.com/ekbal42/asifekbal-portfolio/2db7d64/app/actions/gitFile.ts
ekbal42/asifekbal-portfolio 2db7d64 app/actions/gitFile.ts
true
200
401
export async function getGitHubFileContent(filename: string) { const apiUrl = `https://api.github.com/repos/ekbal42/asifekbal-portfolio/contents/${filename}`; const res = await fetch(apiUrl); const data = await res.json(); if (data && data.content) { const decodedContent = Buffer.from(data.content, "base64"...
3
mrwitherspoone/employeevacationdemo
834b26a
employeeui/angularclient/src/app/employee/employee.component.ts
TypeScript
www.github.com/mrwitherspoone/employeevacationdemo/tree/main/employeeui/angularclient/src/app/employee/employee.component.ts
https://raw.githubusercontent.com/mrwitherspoone/employeevacationdemo/834b26a/employeeui/angularclient/src/app/employee/employee.component.ts
mrwitherspoone/employeevacationdemo 834b26a employeeui/angularclient/src/app/employee/employee.component.ts
true
200
572
import { Component, OnInit } from '@angular/core'; import { Employee } from '../model/employee'; import { EmployeeService } from '../service/employee.service'; @Component({ selector: 'app-employee', templateUrl: './employee.component.html', styleUrls: ['./employee.component.sass'] }) export class EmployeeCompone...
0
Lotthar/voice-to-gpt
822219c
src/bot.ts
TypeScript
www.github.com/Lotthar/voice-to-gpt/tree/main/src/bot.ts
https://raw.githubusercontent.com/Lotthar/voice-to-gpt/822219c/src/bot.ts
Lotthar/voice-to-gpt 822219c src/bot.ts
true
200
2,196
import { Client, Collection, Events, GatewayIntentBits, Interaction, Message, VoiceState, } from "discord.js"; import { joinVoiceChannelAndGetConnection, checkIfInvalidVoiceChannel, getConnection, addVoiceConnectionReadyEvent, } from "./discord/discord-util.js"; import { VoiceConnection } from "@...
2
srbljaninivana/my-warehouse
fc1b885
src/app/app.module.ts
TypeScript
www.github.com/srbljaninivana/my-warehouse/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/srbljaninivana/my-warehouse/fc1b885/src/app/app.module.ts
srbljaninivana/my-warehouse fc1b885 src/app/app.module.ts
true
200
2,186
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ProductsComponent } from './components...
4
warp-contracts/warpy
edc839e
src/commands/help.ts
TypeScript
www.github.com/warp-contracts/warpy/tree/main/src/commands/help.ts
https://raw.githubusercontent.com/warp-contracts/warpy/edc839e/src/commands/help.ts
warp-contracts/warpy edc839e src/commands/help.ts
true
200
1,886
import { SlashCommandBuilder } from 'discord.js'; import { warpyIconUrl } from '../utils'; export default { data: new SlashCommandBuilder().setName('help').setDescription(`Displays list of possible commands.`), async execute(interaction: any) { // interaction.channel.sendTyping(); await interaction.reply(...
2
NRG64/frc-scouting-app
11a48c4
src/utils/api.ts
TypeScript
www.github.com/NRG64/frc-scouting-app/tree/main/src/utils/api.ts
https://raw.githubusercontent.com/NRG64/frc-scouting-app/11a48c4/src/utils/api.ts
NRG64/frc-scouting-app 11a48c4 src/utils/api.ts
true
200
578
import axios from "axios"; import type { MatchData, MatchMetadata } from "@/app/types"; const API_URL = ""; interface SubmitMatchDataParams { metadata: MatchMetadata; matchData: MatchData[]; } export async function submitMatchToServer({ metadata, matchData, }: SubmitMatchDataParams) { try { const respo...
3
TheWikiGame/TheWikiGame
8f43608
src/data/MockedDataSource.ts
TypeScript
www.github.com/TheWikiGame/TheWikiGame/tree/main/src/data/MockedDataSource.ts
https://raw.githubusercontent.com/TheWikiGame/TheWikiGame/8f43608/src/data/MockedDataSource.ts
TheWikiGame/TheWikiGame 8f43608 src/data/MockedDataSource.ts
true
200
1,249
import { listOfTitlesToListOfPages, Page } from "../model/Page"; import { logger } from "../util/Logger"; import { WikiGameDataSource } from "./WikiGameDataSource"; class MockedDataSource implements WikiGameDataSource { async getLinkedInternalPagesFromArticleTitle( articleTitle: string ): Promise<Array<Page>> ...
0
R35007/Mock-Server
6f8f4ff
tests/server/index.test.ts
TypeScript
www.github.com/R35007/Mock-Server/tree/main/tests/server/index.test.ts
https://raw.githubusercontent.com/R35007/Mock-Server/6f8f4ff/tests/server/index.test.ts
R35007/Mock-Server 6f8f4ff tests/server/index.test.ts
true
200
21,839
import { Router } from 'express'; import ip from 'ip'; import request from 'supertest'; import * as Defaults from '../../src/defaults'; import { MockServer } from '../../src/index'; import { Db, Injectors, Middlewares, Rewriters, Store } from '../../src/types/user.types'; const constructor = () => { describe('new Mo...
4
fabianLeon/clases
0894cf9
angularClass/src/app/app-routing.module.ts
TypeScript
www.github.com/fabianLeon/clases/tree/main/angularClass/src/app/app-routing.module.ts
https://raw.githubusercontent.com/fabianLeon/clases/0894cf9/angularClass/src/app/app-routing.module.ts
fabianLeon/clases 0894cf9 angularClass/src/app/app-routing.module.ts
true
200
551
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { CategoryListComponent } from './category-list/category-list.component'; import { ProductListComponent } from './product-list/product-list.component'; const routes: Routes = [ { path: 'product/:category', ...
2
Cotter45/dupecord
fb16e08
backend/prisma/seed.ts
TypeScript
www.github.com/Cotter45/dupecord/tree/main/backend/prisma/seed.ts
https://raw.githubusercontent.com/Cotter45/dupecord/fb16e08/backend/prisma/seed.ts
Cotter45/dupecord fb16e08 backend/prisma/seed.ts
true
200
1,904
import { PrismaClient } from '@prisma/client'; import bcrypt from 'bcryptjs'; const prisma = new PrismaClient(); async function seed() { const email = 'demo@demo.com'; const password = await bcrypt.hash('password', 10); await prisma.user.delete({ where: { email } }).catch(() => { return console.log('User n...
3
DenysSidorov/shine-app-v1
71be6a5
vite.config.ts
TypeScript
www.github.com/DenysSidorov/shine-app-v1/tree/main/vite.config.ts
https://raw.githubusercontent.com/DenysSidorov/shine-app-v1/71be6a5/vite.config.ts
DenysSidorov/shine-app-v1 71be6a5 vite.config.ts
true
200
689
// import { defineConfig } from "vite"; import { defineConfig } from "vitest/config"; import dotenv from "dotenv"; import path from "path"; import react from "@vitejs/plugin-react-swc"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error import eslint from "vite-plugin-eslint"; dotenv.con...
0
dxfjs/writer
8b895cb
__tests__/helpers/primitives/line.test.ts
TypeScript
www.github.com/dxfjs/writer/tree/main/__tests__/helpers/primitives/line.test.ts
https://raw.githubusercontent.com/dxfjs/writer/8b895cb/__tests__/helpers/primitives/line.test.ts
dxfjs/writer 8b895cb __tests__/helpers/primitives/line.test.ts
true
200
527
import { LinePrimitive } from "@/helpers"; import { Writer } from "@/writer"; import { point } from "@/utils"; describe("LinePrimitive class", () => { it("should cover all code", () => { const line = new LinePrimitive(point(), point(100)); const writer1 = new Writer(); line.write(writer1.document.modelS...
4
Danielpl03/ml-web
bfd7c64
src/app/core/services/carrito.service.ts
TypeScript
www.github.com/Danielpl03/ml-web/tree/main/src/app/core/services/carrito.service.ts
https://raw.githubusercontent.com/Danielpl03/ml-web/bfd7c64/src/app/core/services/carrito.service.ts
Danielpl03/ml-web bfd7c64 src/app/core/services/carrito.service.ts
true
200
4,258
import { Injectable, WritableSignal, computed, inject, signal } from '@angular/core'; import { Carrito, ItemCarrito } from '../interfaces/carrito'; import { Moneda, Producto } from '../interfaces/producto'; import { ProductosService } from './productos.service'; import { MonedaService } from './moneda.service'; @Injec...
1
danielamoreno699/admincambios
077bd01
src/app/auth/login/login.component.ts
TypeScript
www.github.com/danielamoreno699/admincambios/tree/main/src/app/auth/login/login.component.ts
https://raw.githubusercontent.com/danielamoreno699/admincambios/077bd01/src/app/auth/login/login.component.ts
danielamoreno699/admincambios 077bd01 src/app/auth/login/login.component.ts
true
200
2,544
import { Component, OnInit, AfterViewInit, ViewChild, ElementRef, NgZone } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { UsuarioService } from 'src/app/services/usuario.service'; import Swal from 'sweetalert2' declare const google: an...
5
mybricks-team/mybricks-midback
b0e3ee6
packages/mybricks-app-demo/src/aiDemoPage/useProjectFiles.ts
TypeScript
www.github.com/mybricks-team/mybricks-midback/tree/main/packages/mybricks-app-demo/src/aiDemoPage/useProjectFiles.ts
https://raw.githubusercontent.com/mybricks-team/mybricks-midback/b0e3ee6/packages/mybricks-app-demo/src/aiDemoPage/useProjectFiles.ts
mybricks-team/mybricks-midback b0e3ee6 packages/mybricks-app-demo/src/aiDemoPage/useProjectFiles.ts
true
200
3,342
import { getDefaultProjectFiles } from './const'; import { useEffect, useState } from 'react'; import _debounce from 'lodash/debounce'; interface ProjectFiles { '/index.tsx': string; '/index.less': string; '/package.json': string; '/app.jsx': string; '/vite.config.js': string; } const preInstallDependencies...
3
Satronic/angular-blog-template
ee3246e
src/app/app.module.ts
TypeScript
www.github.com/Satronic/angular-blog-template/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Satronic/angular-blog-template/ee3246e/src/app/app.module.ts
Satronic/angular-blog-template ee3246e src/app/app.module.ts
true
200
803
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ToolbarModule } from 'p...
0
PrtyshC/React-Nest-ToDoApp
93e0cf1
todo2-backend/src/auth/auth.controller.spec.ts
TypeScript
www.github.com/PrtyshC/React-Nest-ToDoApp/tree/main/todo2-backend/src/auth/auth.controller.spec.ts
https://raw.githubusercontent.com/PrtyshC/React-Nest-ToDoApp/93e0cf1/todo2-backend/src/auth/auth.controller.spec.ts
PrtyshC/React-Nest-ToDoApp 93e0cf1 todo2-backend/src/auth/auth.controller.spec.ts
true
200
3,933
import { Test, TestingModule } from '@nestjs/testing'; import { AuthController } from './auth.controller'; import { AuthService } from './auth.service'; import { CustomJwtService } from '../jwt/custom-jwt.service'; import { UnauthorizedException } from '@nestjs/common'; import { Response } from 'express'; // Mock Auth...
6
Vinbug1/template-backend
6e5fa78
src/index.ts
TypeScript
www.github.com/Vinbug1/template-backend/tree/main/src/index.ts
https://raw.githubusercontent.com/Vinbug1/template-backend/6e5fa78/src/index.ts
Vinbug1/template-backend 6e5fa78 src/index.ts
true
200
1,119
import express from "express"; import bodyParser from "body-parser"; import { config } from "dotenv"; import cors from "cors"; import { AppDataSource } from "./config/database"; import userRoutes from "./routes/UserRouters"; import expenseRoutes from "./routes/ExpenseRouters"; import "reflect-metadata"; // Load enviro...
4
VISHWA-191999/EmployeProject
d00fa0c
src/app/emp-info/emp-info.component.ts
TypeScript
www.github.com/VISHWA-191999/EmployeProject/tree/main/src/app/emp-info/emp-info.component.ts
https://raw.githubusercontent.com/VISHWA-191999/EmployeProject/d00fa0c/src/app/emp-info/emp-info.component.ts
VISHWA-191999/EmployeProject d00fa0c src/app/emp-info/emp-info.component.ts
true
200
1,283
// import { HttpClient, HttpClientModule, HttpHeaders } from '@angular/common/http'; import { Component } from '@angular/core'; import { EmpServiceService } from '../emp-service.service'; @Component({ selector: 'app-emp-info', templateUrl: './emp-info.component.html', styleUrls: ['./emp-info.component.css'] }) e...
2
jianjianai/jjaw.cn
bceda7e
.vuepress/config.ts
TypeScript
www.github.com/jianjianai/jjaw.cn/tree/main/.vuepress/config.ts
https://raw.githubusercontent.com/jianjianai/jjaw.cn/bceda7e/.vuepress/config.ts
jianjianai/jjaw.cn bceda7e .vuepress/config.ts
true
200
2,216
import { defineUserConfig } from 'vuepress' import { viteBundler } from '@vuepress/bundler-vite' import { jjawBlogTheme } from './jjaw-blog-theme/index.ts' const hostName = 'jjaw.cn'; export default defineUserConfig({ lang: 'zh-CN', title: '神奇小破站', description: '欢迎来到神奇小破站,专注于分享最新的Java Web、前端开发、网络技术、Vue、JavaScrip...
1
alvinosh/trainum
39046ba
apps/trainum/src/app/shared/interceptors/auth.interceptor.ts
TypeScript
www.github.com/alvinosh/trainum/tree/main/apps/trainum/src/app/shared/interceptors/auth.interceptor.ts
https://raw.githubusercontent.com/alvinosh/trainum/39046ba/apps/trainum/src/app/shared/interceptors/auth.interceptor.ts
alvinosh/trainum 39046ba apps/trainum/src/app/shared/interceptors/auth.interceptor.ts
true
200
1,733
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { catchError, Observable, switchMap } from 'rxjs'; import { AuthService } from '../../auth/services/auth.service'; import { TokenService } from '../../auth/services/to...
5
ErikLysne/acquirejs
5bd8c4d
packages/core/tests/decorators/transformers/ToUpperCaseString.test.ts
TypeScript
www.github.com/ErikLysne/acquirejs/tree/main/packages/core/tests/decorators/transformers/ToUpperCaseString.test.ts
https://raw.githubusercontent.com/ErikLysne/acquirejs/5bd8c4d/packages/core/tests/decorators/transformers/ToUpperCaseString.test.ts
ErikLysne/acquirejs 5bd8c4d packages/core/tests/decorators/transformers/ToUpperCaseString.test.ts
true
200
1,532
import ToUpperCaseString from "@/decorators/transformers/ToUpperCaseString.decorator"; import { plainToInstance } from "class-transformer"; class TestClass { @ToUpperCaseString() value: string; @ToUpperCaseString({ fallback: "default" }) valueWithFallback: string; } function getTransformedValue(key: ke...
7
CosmoS1X/brain-games
60b3053
src/games/BrainGCD.ts
TypeScript
www.github.com/CosmoS1X/brain-games/tree/main/src/games/BrainGCD.ts
https://raw.githubusercontent.com/CosmoS1X/brain-games/60b3053/src/games/BrainGCD.ts
CosmoS1X/brain-games 60b3053 src/games/BrainGCD.ts
true
200
670
import getRandomInteger from '../getRandomInteger'; import GameEngine from './GameEngine'; export default class BrainGCD extends GameEngine { constructor() { super('Find the greatest common divisor of given numbers.'); } // Euclidean algorithm private findGCD(integer1: number, integer2: number): number { ...
3
fareedfarooqi/waste-recycling-erp
8b4eee1
middleware.ts
TypeScript
www.github.com/fareedfarooqi/waste-recycling-erp/tree/main/middleware.ts
https://raw.githubusercontent.com/fareedfarooqi/waste-recycling-erp/8b4eee1/middleware.ts
fareedfarooqi/waste-recycling-erp 8b4eee1 middleware.ts
true
200
1,735
import { createMiddlewareClient } from '@supabase/auth-helpers-nextjs'; import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; export async function middleware(req: NextRequest) { const res = NextResponse.next(); const supabase = createMiddlewareClient({ req, res }); c...
6
gnsnomos/car-service
93c969b
src/app/models/frontend/item/index.ts
TypeScript
www.github.com/gnsnomos/car-service/tree/main/src/app/models/frontend/item/index.ts
https://raw.githubusercontent.com/gnsnomos/car-service/93c969b/src/app/models/frontend/item/index.ts
gnsnomos/car-service 93c969b src/app/models/frontend/item/index.ts
true
200
491
import {Icon} from '../icon'; export interface Vehicle { id: string; brand: string; model: string; year: string; icon?: Icon; } export interface TypeOfService { id: TypesOfService; values: {[key: string]: string}; } export enum TypesOfService { SintirisiIgra = 'sintirisi-igra', SintirisiIlektrologi...
2
hutamatr/urban-fashion-shop-backend
f52ead1
src/v1/routes/category.routes.ts
TypeScript
www.github.com/hutamatr/urban-fashion-shop-backend/tree/main/src/v1/routes/category.routes.ts
https://raw.githubusercontent.com/hutamatr/urban-fashion-shop-backend/f52ead1/src/v1/routes/category.routes.ts
hutamatr/urban-fashion-shop-backend f52ead1 src/v1/routes/category.routes.ts
true
200
734
import { Router } from 'express'; import { createCategory, deleteCategory, getCategories, getCategory, updateCategory, } from '../controllers/category.controller'; import { authMiddleware } from '../../middleware/auth'; import { validate } from '../../middleware/validation'; import { categoryValidation } fro...
1
kennedybm/WheelDeals-API
16183e4
src/services/Sessions/Sessions.service.ts
TypeScript
www.github.com/kennedybm/WheelDeals-API/tree/main/src/services/Sessions/Sessions.service.ts
https://raw.githubusercontent.com/kennedybm/WheelDeals-API/16183e4/src/services/Sessions/Sessions.service.ts
kennedybm/WheelDeals-API 16183e4 src/services/Sessions/Sessions.service.ts
true
200
1,067
import AppDataSource from "../../data-source"; import { User } from "../../entities/User"; import { AppError } from "../../errors/AppError"; import * as bcrypt from "bcryptjs"; import jwt from "jsonwebtoken"; import { ILoginUser } from "../../interfaces/Sessions"; class SessionsService { static async createSessionSe...
4
GPalhares/trybesmith-node
406b561
src/services/products.service.ts
TypeScript
www.github.com/GPalhares/trybesmith-node/tree/main/src/services/products.service.ts
https://raw.githubusercontent.com/GPalhares/trybesmith-node/406b561/src/services/products.service.ts
GPalhares/trybesmith-node 406b561 src/services/products.service.ts
true
200
544
import { Product } from '../interfaces/product.interface'; import ProductModel from '../models/products.model'; import connection from '../models/connection'; class ProductService { model: ProductModel; constructor() { this.model = new ProductModel(connection); } createProduct(product: Product): Promise<...
0
c-o-l-i-n/personal-website
bd1a1d1
src/app/shell/ui/header.component.ts
TypeScript
www.github.com/c-o-l-i-n/personal-website/tree/main/src/app/shell/ui/header.component.ts
https://raw.githubusercontent.com/c-o-l-i-n/personal-website/bd1a1d1/src/app/shell/ui/header.component.ts
c-o-l-i-n/personal-website bd1a1d1 src/app/shell/ui/header.component.ts
true
200
1,562
import { ChangeDetectionStrategy, Component } from '@angular/core'; @Component({ selector: 'colin-header', template: ` <nav class="mb-6 flex w-full flex-col items-center justify-between gap-4 md:flex-row" > <a routerLink="/" class="group flex w-max flex-col items-center justify-...
5
Sri3567/FirstProject
a973aee
firstproject/src/app/header/header.component.ts
TypeScript
www.github.com/Sri3567/FirstProject/tree/main/firstproject/src/app/header/header.component.ts
https://raw.githubusercontent.com/Sri3567/FirstProject/a973aee/firstproject/src/app/header/header.component.ts
Sri3567/FirstProject a973aee firstproject/src/app/header/header.component.ts
true
200
396
import { Component } from '@angular/core'; import { ProductService } from '../myservices/product.service'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.css'] }) export class HeaderComponent { constructor(private pservice:ProductService) { c...
7
mjcarbonell/nextJS_chillax
6aaf727
src/app/api/openai/download-image/route.ts
TypeScript
www.github.com/mjcarbonell/nextJS_chillax/tree/main/src/app/api/openai/download-image/route.ts
https://raw.githubusercontent.com/mjcarbonell/nextJS_chillax/6aaf727/src/app/api/openai/download-image/route.ts
mjcarbonell/nextJS_chillax 6aaf727 src/app/api/openai/download-image/route.ts
true
200
598
import { NextResponse } from 'next/server'; import axios from 'axios'; import fs from 'fs'; export async function POST(req: Request, res: NextResponse) { const imageUrl = await req.json(); const response = await axios.get(imageUrl, { responseType: 'arraybuffer' }); const base64Image = Buffer.from(response.data,...
3
nguyenviet02/xssethub-landing-page
c1ad3bd
vite.config.ts
TypeScript
www.github.com/nguyenviet02/xssethub-landing-page/tree/main/vite.config.ts
https://raw.githubusercontent.com/nguyenviet02/xssethub-landing-page/c1ad3bd/vite.config.ts
nguyenviet02/xssethub-landing-page c1ad3bd vite.config.ts
true
200
406
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: { "@": "/src", "@icons": "/src/assets/icons", "@images": "/src/assets/images", "@ui": "/src/components/ui", ...
6
rajambigai/Assignment-2
fc498a1
cypress/e2e/features/Menu-page/Menu-page.ts
TypeScript
www.github.com/rajambigai/Assignment-2/tree/main/cypress/e2e/features/Menu-page/Menu-page.ts
https://raw.githubusercontent.com/rajambigai/Assignment-2/fc498a1/cypress/e2e/features/Menu-page/Menu-page.ts
rajambigai/Assignment-2 fc498a1 cypress/e2e/features/Menu-page/Menu-page.ts
true
200
2,351
/// <reference types="cypress" /> import { Then, When } from "@badeball/cypress-cucumber-preprocessor"; Then("I should see explore button functionality on Menu screen", () => { cy.get(".btn").should("be.visible").click(); }); Then("I should see Navigation bar visible on Menu screen", () => { cy.get(".nav-item")...
2
z7pz/ticket
9115f84
src/commands/tickets/rename.ts
TypeScript
www.github.com/z7pz/ticket/tree/main/src/commands/tickets/rename.ts
https://raw.githubusercontent.com/z7pz/ticket/9115f84/src/commands/tickets/rename.ts
z7pz/ticket 9115f84 src/commands/tickets/rename.ts
true
200
1,191
import { Args, Command } from "@sapphire/framework"; import type { Message, TextChannel } from "discord.js"; import { ERoles, is_ticket } from "../../utils"; export class RenameCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, name:...
1
girishnuli/nextjs-chatbot-app-demo
2712849
tailwind.config.ts
TypeScript
www.github.com/girishnuli/nextjs-chatbot-app-demo/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/girishnuli/nextjs-chatbot-app-demo/2712849/tailwind.config.ts
girishnuli/nextjs-chatbot-app-demo 2712849 tailwind.config.ts
true
200
587
import type { Config } from 'tailwindcss' const config: Config = { content: [ './pages/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}' ], theme: { extend: { backgroundImage: { 'gradient-radial':...
4
Punitron-eng/view-tickets
3034c32
src/store/domestic/admin-pages/view-ticket/getters.ts
TypeScript
www.github.com/Punitron-eng/view-tickets/tree/main/src/store/domestic/admin-pages/view-ticket/getters.ts
https://raw.githubusercontent.com/Punitron-eng/view-tickets/3034c32/src/store/domestic/admin-pages/view-ticket/getters.ts
Punitron-eng/view-tickets 3034c32 src/store/domestic/admin-pages/view-ticket/getters.ts
true
200
9,454
import { NEWVIEWTICKET } from './constants'; import { getFilterMappedPayload, getFilterMappedValues } from '../../../commonStoreFuncs'; const createGetters = () => ({ // For datatable action modals [NEWVIEWTICKET.GETTERS.GETDTMODAL](state: any) { const dtModal = { ViewDetailsModal: state.dtM...
0
marcosdelfrari/TaskSync
39d3bbd
src/app/lista-tarefas/lista-tarefas.component.ts
TypeScript
www.github.com/marcosdelfrari/TaskSync/tree/main/src/app/lista-tarefas/lista-tarefas.component.ts
https://raw.githubusercontent.com/marcosdelfrari/TaskSync/39d3bbd/src/app/lista-tarefas/lista-tarefas.component.ts
marcosdelfrari/TaskSync 39d3bbd src/app/lista-tarefas/lista-tarefas.component.ts
true
200
1,081
import { Component } from '@angular/core'; @Component({ selector: 'app-lista-tarefas', templateUrl: './lista-tarefas.component.html', styleUrls: ['./lista-tarefas.component.scss'] }) export class ListaTarefasComponent { tarefas: any[] = [ { id: 1, nome: 'Tarefa 1', concluida: false }, { id: 2, nome: 'T...
7
omerenma/hospital-management-system-frontend
26df50c
src/app/admin/add-user/state/add.user.reducers.ts
TypeScript
www.github.com/omerenma/hospital-management-system-frontend/tree/main/src/app/admin/add-user/state/add.user.reducers.ts
https://raw.githubusercontent.com/omerenma/hospital-management-system-frontend/26df50c/src/app/admin/add-user/state/add.user.reducers.ts
omerenma/hospital-management-system-frontend 26df50c src/app/admin/add-user/state/add.user.reducers.ts
true
200
351
import {createReducer, on} from '@ngrx/store' import { AddUserRequestAction } from './add.user.action' import { AddUser } from './add.user.model' export const initialState: ReadonlyArray<AddUser> = []; export const addUserReducer = createReducer( initialState, on(AddUserRequestAction.addUser, (state:any, {users}...
5
kuzditomi/cost-sort
8415f4d
src/result/resultToClipboard.ts
TypeScript
www.github.com/kuzditomi/cost-sort/tree/main/src/result/resultToClipboard.ts
https://raw.githubusercontent.com/kuzditomi/cost-sort/8415f4d/src/result/resultToClipboard.ts
kuzditomi/cost-sort 8415f4d src/result/resultToClipboard.ts
true
200
779
import { SortResult } from "../types"; export const createTableFromResult = (result: SortResult, dateTransformer: (date: string) => string): string => { const content = result.entries.map((entry) => { const entryContent = `<td>${dateTransformer(entry.date)}</td><td>${entry.amount}</td><td>${ en...
3
NUM-Forschungsdatenplattform/num-portal-webapp
be32c08
src/app/core/constants/default-filter-organization.ts
TypeScript
www.github.com/NUM-Forschungsdatenplattform/num-portal-webapp/tree/main/src/app/core/constants/default-filter-organization.ts
https://raw.githubusercontent.com/NUM-Forschungsdatenplattform/num-portal-webapp/be32c08/src/app/core/constants/default-filter-organization.ts
NUM-Forschungsdatenplattform/num-portal-webapp be32c08 src/app/core/constants/default-filter-organization.ts
true
200
734
import { OrganizationUserFilterChipId } from 'src/app/shared/models/organization/organization-filter-chip.enum' import { IOrganizationFilter } from 'src/app/shared/models/organization/organization-filter.interface' export const DEFAULT_ORGANIZATION_FILTER: IOrganizationFilter = { filterItem: [ { id: Organi...
2
Josimarhdev/atividadeAngular
9a5d424
src/app/services/livro.service.ts
TypeScript
www.github.com/Josimarhdev/atividadeAngular/tree/main/src/app/services/livro.service.ts
https://raw.githubusercontent.com/Josimarhdev/atividadeAngular/9a5d424/src/app/services/livro.service.ts
Josimarhdev/atividadeAngular 9a5d424 src/app/services/livro.service.ts
true
200
780
import { Injectable, inject } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Livro } from '../app/livros/livro'; @Injectable({ providedIn: 'root' }) export class LivroService { API: string = 'http://localhost:8080/api/livro'; http...
0
ameh-samson/lendsqr-fe-test
d69a283
src/hooks/useAppState.ts
TypeScript
www.github.com/ameh-samson/lendsqr-fe-test/tree/main/src/hooks/useAppState.ts
https://raw.githubusercontent.com/ameh-samson/lendsqr-fe-test/d69a283/src/hooks/useAppState.ts
ameh-samson/lendsqr-fe-test d69a283 src/hooks/useAppState.ts
true
200
1,662
import { fetchUsers } from "@/configurations/fetchUsers"; import { UserType } from "@/types"; import { useQuery } from "@tanstack/react-query"; import { useState, useEffect } from "react"; export const useAppState = () => { const [toggleSidebar, setToggleSidebar] = useState<boolean>(false); const [localData, setLo...
4
Mohammed-Boukhari/our-ecommerce
11653fd
src/hooks/uesOrders.ts
TypeScript
www.github.com/Mohammed-Boukhari/our-ecommerce/tree/main/src/hooks/uesOrders.ts
https://raw.githubusercontent.com/Mohammed-Boukhari/our-ecommerce/11653fd/src/hooks/uesOrders.ts
Mohammed-Boukhari/our-ecommerce 11653fd src/hooks/uesOrders.ts
true
200
1,246
import { useEffect, useState } from "react"; import { useAppDispatch, useAppSelector } from "@store/hooks"; import { actGetOrders, resetOrderStatus } from "@store/orders/ordersSlice"; /* type */ import { TProduct } from "@types"; const uesOrders = () => { const dispatch = useAppDispatch(); const { error, loading...
1
syfjackey/base-project-vue3
c357a88
src/axios/index.ts
TypeScript
www.github.com/syfjackey/base-project-vue3/tree/main/src/axios/index.ts
https://raw.githubusercontent.com/syfjackey/base-project-vue3/c357a88/src/axios/index.ts
syfjackey/base-project-vue3 c357a88 src/axios/index.ts
true
200
4,164
/** * request 请求函数 * @description 基于axios进行封装,支持防抖 */ import axios from 'axios' import type { AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios' import handleMessage from './handleMessage' import { useLoginStore } from '@/stores/useLoginStore' interface RequestConfig extends AxiosRequestConfig { cancel...
5
Azfar41268/hackathon-one
5d61cb9
app/api/cart/route.ts
TypeScript
www.github.com/Azfar41268/hackathon-one/tree/main/app/api/cart/route.ts
https://raw.githubusercontent.com/Azfar41268/hackathon-one/5d61cb9/app/api/cart/route.ts
Azfar41268/hackathon-one 5d61cb9 app/api/cart/route.ts
true
200
2,146
import { NextRequest, NextResponse } from "next/server"; import { cartTable, db } from "@/lib/drizzle"; import { eq } from "drizzle-orm"; import { v4 as uuid } from "uuid"; import { cookies } from "next/headers"; export async function GET(request: NextRequest) { const url = request.nextUrl; if (url.searchPara...
6
khoapham12397/malgo-be
a1ac2f3
controllers/threadController.ts
TypeScript
www.github.com/khoapham12397/malgo-be/tree/main/controllers/threadController.ts
https://raw.githubusercontent.com/khoapham12397/malgo-be/a1ac2f3/controllers/threadController.ts
khoapham12397/malgo-be a1ac2f3 controllers/threadController.ts
true
200
9,837
import { PrismaClient } from "@prisma/client"; import express from "express"; import CustomAPIError from "../config/CustomAPIError"; import { searchSimilarThread } from "../elasticsearch/searchService"; import { createThread, editThread, getCategoriesAndTags, getChildComments, getRootComments, getThread, ...
2
yacodev/testlo-shop-angular
711291b
src/app/shared/components/form-error-label/form-error-label.component.ts
TypeScript
www.github.com/yacodev/testlo-shop-angular/tree/main/src/app/shared/components/form-error-label/form-error-label.component.ts
https://raw.githubusercontent.com/yacodev/testlo-shop-angular/711291b/src/app/shared/components/form-error-label/form-error-label.component.ts
yacodev/testlo-shop-angular 711291b src/app/shared/components/form-error-label/form-error-label.component.ts
true
200
585
import { FormUtils } from '@/utils/form-utils'; import { Component, input } from '@angular/core'; import { AbstractControl, ValidationErrors } from '@angular/forms'; @Component({ selector: 'form-error-label', imports: [], templateUrl: './form-error-label.component.html', }) export class FormErrorLabelComponent {...
7
Mohammad-Nafis-Abdullah/myatt-academy-backend
300f1a0
themes/themes.ts
TypeScript
www.github.com/Mohammad-Nafis-Abdullah/myatt-academy-backend/tree/main/themes/themes.ts
https://raw.githubusercontent.com/Mohammad-Nafis-Abdullah/myatt-academy-backend/300f1a0/themes/themes.ts
Mohammad-Nafis-Abdullah/myatt-academy-backend 300f1a0 themes/themes.ts
true
200
6,682
"use client"; import { Select, extendTheme } from "@chakra-ui/react"; import { Button } from "./Button"; import { selectTheme } from "./Select"; import { radioTheme } from "./Radio"; import { inputTheme } from "./Input"; import { tabsTheme } from "./Tabs"; import { accordionTheme } from "./Accordion"; import { listThem...
3
rsldgn14/intern-place
9dae6ff
libs/components/src/index.ts
TypeScript
www.github.com/rsldgn14/intern-place/tree/main/libs/components/src/index.ts
https://raw.githubusercontent.com/rsldgn14/intern-place/9dae6ff/libs/components/src/index.ts
rsldgn14/intern-place 9dae6ff libs/components/src/index.ts
true
200
2,296
import NoticeCard from './lib/NoticeCard'; import Header from './lib/header/Header'; import NoticeDetailContainer from './lib/layout/Notice/NoticeDetailCotainer'; import SectorNoticeSections from './lib/notice/SectorNoticeSections'; import Input from './lib/inputs/Input'; import useClickOutside from './lib/hooks/useCli...
4
neil-morgan/neilmorgan.dev
3888daa
components/atoms/Separator/styles.ts
TypeScript
www.github.com/neil-morgan/neilmorgan.dev/tree/main/components/atoms/Separator/styles.ts
https://raw.githubusercontent.com/neil-morgan/neilmorgan.dev/3888daa/components/atoms/Separator/styles.ts
neil-morgan/neilmorgan.dev 3888daa components/atoms/Separator/styles.ts
true
200
936
"use client"; import { Root } from "@radix-ui/react-separator"; import { styled } from "@/lib/stitches"; const color = "$border"; export const VerticalSeparator = styled(Root, { backgroundColor: color, height: "100%", width: "2px", transition: "$theme", variants: { size: { xs: { margin: "...
0
velascoandres/oh-backend
ea411a9
src/properties/category/category.service.ts
TypeScript
www.github.com/velascoandres/oh-backend/tree/main/src/properties/category/category.service.ts
https://raw.githubusercontent.com/velascoandres/oh-backend/ea411a9/src/properties/category/category.service.ts
velascoandres/oh-backend ea411a9 src/properties/category/category.service.ts
true
200
554
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { MongoRepository } from 'typeorm'; import { AbstractMongoService } from '@nest-excalibur/common-api/lib'; import { CategoryEntity } from './category.entity'; @Injectable() export class CategoryService extends Ab...
5
krush30/HotelBooking-backend
f2629f9
src/main.ts
TypeScript
www.github.com/krush30/HotelBooking-backend/tree/main/src/main.ts
https://raw.githubusercontent.com/krush30/HotelBooking-backend/f2629f9/src/main.ts
krush30/HotelBooking-backend f2629f9 src/main.ts
true
200
1,015
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { NestExpressApplication } from '@nestjs/platform-express'; import { resolve } from 'path'; async function bootstrap() { const app = await NestFactory.create<NestExpressApplication>(AppModule); // Use resolve() to get the...
6
gdkimaiyo/netflix
a7b07b0
src/app/components/login-form/login-form.component.ts
TypeScript
www.github.com/gdkimaiyo/netflix/tree/main/src/app/components/login-form/login-form.component.ts
https://raw.githubusercontent.com/gdkimaiyo/netflix/a7b07b0/src/app/components/login-form/login-form.component.ts
gdkimaiyo/netflix a7b07b0 src/app/components/login-form/login-form.component.ts
true
200
4,834
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Observable, Observer } from 'rxjs'; import { NzNotificationService } from 'ng-zorro-antd/notification'; import { FormBuilder, FormControl, FormGroup, ValidationErrors, Validators } from '@angular/forms'; import { AuthS...
2
Aadameqq/blog
40503eb
src/lib/server/pagination.test.ts
TypeScript
www.github.com/Aadameqq/blog/tree/main/src/lib/server/pagination.test.ts
https://raw.githubusercontent.com/Aadameqq/blog/40503eb/src/lib/server/pagination.test.ts
Aadameqq/blog 40503eb src/lib/server/pagination.test.ts
true
200
1,041
import { describe, expect, test } from 'vitest'; import { calculatePagesFromPostsCount, paginatePosts } from '$lib/server/pagination'; import type { TPost } from '$lib/types/TPost'; import { getArrayWithRangeOfN } from '../../tests/utils'; describe('calculatePagesFromPostsCount', () => { test('When postsCount and per...
7
Muhammadadhil/opportune
6961fc0
backend/services/postService/src/routes/router.ts
TypeScript
www.github.com/Muhammadadhil/opportune/tree/main/backend/services/postService/src/routes/router.ts
https://raw.githubusercontent.com/Muhammadadhil/opportune/6961fc0/backend/services/postService/src/routes/router.ts
Muhammadadhil/opportune 6961fc0 backend/services/postService/src/routes/router.ts
true
200
2,885
import { Router } from "express"; import applicationSchema from "../validators/applicationValidator"; import editGigValidator from "../validators/editGigValidator"; // import { deleteGigValidator } from "../validators/deleteGigvalidator"; import upload from "../utils/multerConfig"; import { DataValidation } from '@_o...
1
iqb-berlin/verona-modules-aspect
ede1efb
projects/common/directives/dynamic-rows.directive.ts
TypeScript
www.github.com/iqb-berlin/verona-modules-aspect/tree/main/projects/common/directives/dynamic-rows.directive.ts
https://raw.githubusercontent.com/iqb-berlin/verona-modules-aspect/ede1efb/projects/common/directives/dynamic-rows.directive.ts
iqb-berlin/verona-modules-aspect ede1efb projects/common/directives/dynamic-rows.directive.ts
true
200
1,458
import { AfterViewInit, ChangeDetectorRef, Directive, ElementRef, EventEmitter, Input, NgZone, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core'; @Directive({ selector: '[dynamicRows]' }) export class DynamicRowsDirective implements OnInit, AfterViewInit, OnChanges { @Input() fo...
0
archibald7812/middle.messenger.praktikum.yandex
622d11b
src/utils/request.ts
TypeScript
www.github.com/archibald7812/middle.messenger.praktikum.yandex/tree/main/src/utils/request.ts
https://raw.githubusercontent.com/archibald7812/middle.messenger.praktikum.yandex/622d11b/src/utils/request.ts
archibald7812/middle.messenger.praktikum.yandex 622d11b src/utils/request.ts
true
200
1,404
export enum Methods { GET = 'GET', POST = 'POST', PUT = 'PUT', DELETE = 'DELETE', PATCH = 'PATCH' } interface RequestParams { payload?: Record<string, unknown> | unknown method: Methods query?: Record<string, unknown> timeout?: number url: string } export const request = ({ payload, method, query, timeo...
4
Muzikanto/react-near
85bd20e
src/standards/nft-core/useNftMetadata.ts
TypeScript
www.github.com/Muzikanto/react-near/tree/main/src/standards/nft-core/useNftMetadata.ts
https://raw.githubusercontent.com/Muzikanto/react-near/85bd20e/src/standards/nft-core/useNftMetadata.ts
Muzikanto/react-near 85bd20e src/standards/nft-core/useNftMetadata.ts
true
200
523
import useNearQuery, { NearQueryOptions } from '../../hooks/query'; import { NftContractMetadata } from '../nft/types'; import { NftCoreMethods } from './methods'; export type NftMetadataArgs = {}; export type NftMetadataResult = NftContractMetadata; function useNftMetadata< Res extends NftMetadataResult = NftMeta...
6
tienpmath/dulichnew
62656a4
prisma/queries.ts
TypeScript
www.github.com/tienpmath/dulichnew/tree/main/prisma/queries.ts
https://raw.githubusercontent.com/tienpmath/dulichnew/62656a4/prisma/queries.ts
tienpmath/dulichnew 62656a4 prisma/queries.ts
true
200
515
import { PrismaClient, Prisma } from '@prisma/client' import _ from "lodash"; import slug from "slug"; const prisma = new PrismaClient() async function main() { const title = "STEP NT644U sink" const data = await prisma.product.findMany({ where: { NOT: { images: { equals: [] } } }, select...
5
bswebdevlpr/CodingTest
bfcecee
LeetCode/medium/week60-add_two_numbers.ts
TypeScript
www.github.com/bswebdevlpr/CodingTest/tree/main/LeetCode/medium/week60-add_two_numbers.ts
https://raw.githubusercontent.com/bswebdevlpr/CodingTest/bfcecee/LeetCode/medium/week60-add_two_numbers.ts
bswebdevlpr/CodingTest bfcecee LeetCode/medium/week60-add_two_numbers.ts
true
200
1,013
// Definition for singly-linked list. // class ListNode { // val: number // next: ListNode | null // constructor(val?: number, next?: ListNode | null) { // this.val = (val===undefined ? 0 : val) // this.next = (next===undefined ? null : next) // } // } function addTwoNumbers( l1: ListNode |...
3
Markol17/CoLab
ba75ade
server/src/services/ProjectService.ts
TypeScript
www.github.com/Markol17/CoLab/tree/main/server/src/services/ProjectService.ts
https://raw.githubusercontent.com/Markol17/CoLab/ba75ade/server/src/services/ProjectService.ts
Markol17/CoLab ba75ade server/src/services/ProjectService.ts
true
200
4,222
import { ProjectRepository } from "../repositories/ProjectRepository"; import { getCustomRepository } from "typeorm"; import { JoinProjectResponse, PaginatedProjects, ProjectResponse } from "src/resolvers/ResponseTypes/ProjectResponse"; import { Context } from "../types"; import { CreateProjectInput } from "../resolver...
2
bastienesquiros/library_project_v2
6399265
frontend/src/app/signup/signup.component.ts
TypeScript
www.github.com/bastienesquiros/library_project_v2/tree/main/frontend/src/app/signup/signup.component.ts
https://raw.githubusercontent.com/bastienesquiros/library_project_v2/6399265/frontend/src/app/signup/signup.component.ts
bastienesquiros/library_project_v2 6399265 frontend/src/app/signup/signup.component.ts
true
200
1,086
import {Component} from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {Router} from "@angular/router"; @Component({ selector: 'app-signup', templateUrl: './signup.component.html', styleUrls: ['./signup.component.css'] }) export class SignupComponent { prenom: string = ''; nom: st...
7
danielsimao/asitiswritten
645acb5
utils/index.ts
TypeScript
www.github.com/danielsimao/asitiswritten/tree/main/utils/index.ts
https://raw.githubusercontent.com/danielsimao/asitiswritten/645acb5/utils/index.ts
danielsimao/asitiswritten 645acb5 utils/index.ts
true
200
1,209
import { BibleBook } from '../data/bible-books'; export function autocompleteMatch(search_terms: any[], input: string) { if (input == '') { return search_terms; } var reg = new RegExp(input, 'i'); return search_terms.filter(function (term) { if (term.book_pt.match(reg) || term.book_pt_norm.match(reg)) ...
1
TUM-DiStaT/stochus
5acd86e
libs/assignments/core/backend/src/lib/assignments-core-backend.service.spec.ts
TypeScript
www.github.com/TUM-DiStaT/stochus/tree/main/libs/assignments/core/backend/src/lib/assignments-core-backend.service.spec.ts
https://raw.githubusercontent.com/TUM-DiStaT/stochus/5acd86e/libs/assignments/core/backend/src/lib/assignments-core-backend.service.spec.ts
TUM-DiStaT/stochus 5acd86e libs/assignments/core/backend/src/lib/assignments-core-backend.service.spec.ts
true
200
742
import { Test } from '@nestjs/testing' import { AssignmentsCoreBackendService } from './assignments-core-backend.service' describe('AssignmentsCoreBackendService', () => { let service: AssignmentsCoreBackendService beforeEach(async () => { const module = await Test.createTestingModule({ providers: [Assi...
0
judarito/citas
e79d24f
src/procedimiento/procedimiento.controller.ts
TypeScript
www.github.com/judarito/citas/tree/main/src/procedimiento/procedimiento.controller.ts
https://raw.githubusercontent.com/judarito/citas/e79d24f/src/procedimiento/procedimiento.controller.ts
judarito/citas e79d24f src/procedimiento/procedimiento.controller.ts
true
200
960
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'; import { ProcedimientoService } from './procedimiento.service'; import { Procedimiento } from 'src/Interfaces/Procedimiento'; @Controller('procedimiento') export class ProcedimientoController { constructor(private readonly procedim...
5
nivalis-studio/openapi-next
487e787
src/lib/content-type.ts
TypeScript
www.github.com/nivalis-studio/openapi-next/tree/main/src/lib/content-type.ts
https://raw.githubusercontent.com/nivalis-studio/openapi-next/487e787/src/lib/content-type.ts
nivalis-studio/openapi-next 487e787 src/lib/content-type.ts
true
200
3,128
/** * This code is adapted from fast-content-type-parse * @see https://github.com/fastify/fast-content-type-parse/blob/master/index.js * @license MIT */ type NullObjectType = { [key: string]: string; }; const createNullObject = (): NullObjectType => { // eslint-disable-next-line @typescript-eslint/no-unsafe-r...
3
ayonsaha2011/payWall-tmp
c8c2c13
src/middlewares/PublicMiddleware.ts
TypeScript
www.github.com/ayonsaha2011/payWall-tmp/tree/main/src/middlewares/PublicMiddleware.ts
https://raw.githubusercontent.com/ayonsaha2011/payWall-tmp/c8c2c13/src/middlewares/PublicMiddleware.ts
ayonsaha2011/payWall-tmp c8c2c13 src/middlewares/PublicMiddleware.ts
true
200
755
import { Req } from "@tsed/common"; import { Context } from "@tsed/platform-params"; import { Middleware, MiddlewareMethods } from "@tsed/platform-middlewares"; @Middleware() export class PublicMiddleware implements MiddlewareMethods { public use(@Req() request: Req, @Context() ctx: Context) { // retrieve ...
6
IqthishamB/NYTimesFE
70b9ba9
src/app/helper/jwt.interceptor.ts
TypeScript
www.github.com/IqthishamB/NYTimesFE/tree/main/src/app/helper/jwt.interceptor.ts
https://raw.githubusercontent.com/IqthishamB/NYTimesFE/70b9ba9/src/app/helper/jwt.interceptor.ts
IqthishamB/NYTimesFE 70b9ba9 src/app/helper/jwt.interceptor.ts
true
200
951
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { Observable } from "rxjs"; import { AuthenticationService } from "../services/authentication.service"; @Injectable() export class JwtInterceptor implements HttpInterceptor { ...
4
ivanterzic/Striparnica
8ae674c
src/backend/__tests__/zaposlenik.test.ts
TypeScript
www.github.com/ivanterzic/Striparnica/tree/main/src/backend/__tests__/zaposlenik.test.ts
https://raw.githubusercontent.com/ivanterzic/Striparnica/8ae674c/src/backend/__tests__/zaposlenik.test.ts
ivanterzic/Striparnica 8ae674c src/backend/__tests__/zaposlenik.test.ts
true
200
1,142
import { Zaposlenik } from "../models/zaposlenik"; jest.mock('@prisma/client', () => { const prismaClientMock = { zaposlenik: { findMany: jest.fn().mockResolvedValue([ { mbr: "1", name: "Zaposlenik 1" }, { mbr: "2", name: "Zaposlenik 2" }, ]), ...
2