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
RamazBor/Alte_Angular_Tasks
ab05b0f
src/app/Homework 2/Services/logger.service.ts
TypeScript
www.github.com/RamazBor/Alte_Angular_Tasks/tree/main/src/app/Homework 2/Services/logger.service.ts
https://raw.githubusercontent.com/RamazBor/Alte_Angular_Tasks/ab05b0f/src/app/Homework%202/Services/logger.service.ts
RamazBor/Alte_Angular_Tasks ab05b0f src/app/Homework 2/Services/logger.service.ts
true
200
269
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class LoggerService { LogMessage(name: string, status: string) { console.log( `A new user with name ${name} and status ${status} is added to user list.` ); } }
7
lokesh75way/kokutalk_backend
05d112e
app/services/notification.ts
TypeScript
www.github.com/lokesh75way/kokutalk_backend/tree/main/app/services/notification.ts
https://raw.githubusercontent.com/lokesh75way/kokutalk_backend/05d112e/app/services/notification.ts
lokesh75way/kokutalk_backend 05d112e app/services/notification.ts
true
200
8,313
import Notification, { INotification } from "../schema/Notification"; import createHttpError from "http-errors"; import { escapeRegex } from "../helper/common"; import mongoose from "mongoose"; import moment = require("moment-timezone"); import User from "../schema/User"; import { parsePagination } from "../helper/comm...
2
brandnewjinah/ecommerce
94be9fa
admin/src/redux/productActionsReducer.ts
TypeScript
www.github.com/brandnewjinah/ecommerce/tree/main/admin/src/redux/productActionsReducer.ts
https://raw.githubusercontent.com/brandnewjinah/ecommerce/94be9fa/admin/src/redux/productActionsReducer.ts
brandnewjinah/ecommerce 94be9fa admin/src/redux/productActionsReducer.ts
true
200
2,198
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit"; import * as api from "../api"; import { ProductFullIF } from "../interfaces/productInterface"; import { Status } from "../interfaces/baseInterface"; export interface ProductResponse extends Status { productDetails: { _id: string; }; } export in...
6
OrsolicIvan/POSApp
1cff36f
client/src/app/bills/point-of-sale/point-of-sale.component.ts
TypeScript
www.github.com/OrsolicIvan/POSApp/tree/main/client/src/app/bills/point-of-sale/point-of-sale.component.ts
https://raw.githubusercontent.com/OrsolicIvan/POSApp/1cff36f/client/src/app/bills/point-of-sale/point-of-sale.component.ts
OrsolicIvan/POSApp 1cff36f client/src/app/bills/point-of-sale/point-of-sale.component.ts
true
200
6,414
import { AccountService } from 'src/app/_services/account.service'; import { IZaglavljeRacuna, ZaglavljeRacuna } from './../../_models/product'; import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout'; import { AfterViewInit, Component, HostListener, OnInit } from '@angular/core'; import { FormControl, Fo...
0
MS-D-rei/NestJS-mycarvalue-sample-app
1fa6e79
src/main.ts
TypeScript
www.github.com/MS-D-rei/NestJS-mycarvalue-sample-app/tree/main/src/main.ts
https://raw.githubusercontent.com/MS-D-rei/NestJS-mycarvalue-sample-app/1fa6e79/src/main.ts
MS-D-rei/NestJS-mycarvalue-sample-app 1fa6e79 src/main.ts
true
200
406
import { NestFactory } from '@nestjs/core'; import { AppModule } from '@/app.module'; import { setupGlobal } from '@/utils/setupGlobal'; async function bootstrap() { const app = await NestFactory.create(AppModule); // move to module // app.use( // cookieSession({ // name: 'session', // keys: ['ke...
4
O-Z-Z-Y/next-bnb
612b9c3
store/registerRoom.ts
TypeScript
www.github.com/O-Z-Z-Y/next-bnb/tree/main/store/registerRoom.ts
https://raw.githubusercontent.com/O-Z-Z-Y/next-bnb/612b9c3/store/registerRoom.ts
O-Z-Z-Y/next-bnb 612b9c3 store/registerRoom.ts
true
200
7,410
import { RegisterRoomState } from './../types/reduxState.d'; import { PayloadAction } from '@reduxjs/toolkit'; import { createSlice } from '@reduxjs/toolkit'; import { BedType } from '../types/room'; //* ์ดˆ๊ธฐ ์ƒํƒœ const initialState: RegisterRoomState = { //* ๊ฑด๋ฌผ ์œ ํ˜• ํฐ ๋ฒ”์ฃผ largeBuildingType: null, //* ๊ฑด๋ฌผ ์œ ํ˜• buildingT...
3
caldeira-leonardo/portifolio
38f61ec
src/components/elements/UserInfosSections/userInfosSections.style.ts
TypeScript
www.github.com/caldeira-leonardo/portifolio/tree/main/src/components/elements/UserInfosSections/userInfosSections.style.ts
https://raw.githubusercontent.com/caldeira-leonardo/portifolio/38f61ec/src/components/elements/UserInfosSections/userInfosSections.style.ts
caldeira-leonardo/portifolio 38f61ec src/components/elements/UserInfosSections/userInfosSections.style.ts
true
200
617
import { styled } from "styled-components" import { colors } from "theme/theme" export const InfoSectionsWrapper = styled.section` display: flex; align-items: center; flex-direction: column; h1 { margin-top: 30px; } ` export const Separator = styled.span` min-height: 6px; height: ...
7
nguyenbong15/AssignmentNguyenThiBong
4cd1a31
steps/client/formAuthenticationStep.ts
TypeScript
www.github.com/nguyenbong15/AssignmentNguyenThiBong/tree/main/steps/client/formAuthenticationStep.ts
https://raw.githubusercontent.com/nguyenbong15/AssignmentNguyenThiBong/4cd1a31/steps/client/formAuthenticationStep.ts
nguyenbong15/AssignmentNguyenThiBong 4cd1a31 steps/client/formAuthenticationStep.ts
true
200
507
import { expect } from "@playwright/test"; import { createBdd } from "playwright-bdd"; import { test } from "../../core/fixturesFile/fixtures"; const {Given, When, Then} = createBdd(test) When('User enters {string} text into {string} field', async ({formAuthenticationPage}, value: string, fileName: string) => { await...
5
ShonSagoro/soa_api_exam
313ec2a
src/databases/mongodb.ts
TypeScript
www.github.com/ShonSagoro/soa_api_exam/tree/main/src/databases/mongodb.ts
https://raw.githubusercontent.com/ShonSagoro/soa_api_exam/313ec2a/src/databases/mongodb.ts
ShonSagoro/soa_api_exam 313ec2a src/databases/mongodb.ts
true
200
931
import dotenv from "dotenv"; import { MongoClient, MongoClientOptions, Collection } from "mongodb"; import { Signale } from "signale"; dotenv.config(); const signale = new Signale(); const MONGO_USER = process.env.MONGO_USER; const MONGO_PASS = process.env.MONGO_PASS; const MONGO_HOST = process.env.MONGO_HOST; const...
6
konfig-dev/gigs-sdks
de8fa5f
typescript/src/core/Page.ts
TypeScript
www.github.com/konfig-dev/gigs-sdks/tree/main/typescript/src/core/Page.ts
https://raw.githubusercontent.com/konfig-dev/gigs-sdks/de8fa5f/typescript/src/core/Page.ts
konfig-dev/gigs-sdks de8fa5f typescript/src/core/Page.ts
true
200
790
import { Pageable } from "./Pageable"; export interface PageParameters { after?: string; before?: string; } export interface PageInfo { moreItemsAfter: string | null; moreItemsBefore: string | null; } export class Page< Data extends PageInfo, Parameters extends PageParameters > extends Pageable<Data, Par...
4
Name-Later-Team/presenti
422789c
src/constants/mock-data.ts
TypeScript
www.github.com/Name-Later-Team/presenti/tree/main/src/constants/mock-data.ts
https://raw.githubusercontent.com/Name-Later-Team/presenti/422789c/src/constants/mock-data.ts
Name-Later-Team/presenti 422789c src/constants/mock-data.ts
true
200
2,432
export const presentationDetail = { createdAt: "2023-04-01T10:25:19.077Z", updatedAt: "2023-04-12T09:29:04.293Z", name: "Demo", identifier: "977949fe-6fff-4388-9641-7426c9daa5fb", ownerIdentifier: "dfd0cdab-13b2-4fde-8462-9727286bcebd", ownerDisplayName: "Hua Hung", pace: { mode: "pr...
7
NimrodScH/milisWebsiteBuild
beed095
src/components/Contact/Types.ts
TypeScript
www.github.com/NimrodScH/milisWebsiteBuild/tree/main/src/components/Contact/Types.ts
https://raw.githubusercontent.com/NimrodScH/milisWebsiteBuild/beed095/src/components/Contact/Types.ts
NimrodScH/milisWebsiteBuild beed095 src/components/Contact/Types.ts
true
200
771
export type FormState = { errors: { [key: string]: string | null }; enteredValues: { firstName?: string; lastName?: string; email?: string; phone?: string; contactingReason?: string; acquisitionChannel?: string; textBox?: string; terms?: string; }; }; e...
0
EduardoMolina07/frontend
2db6eb1
composables/useAuth.ts
TypeScript
www.github.com/EduardoMolina07/frontend/tree/main/composables/useAuth.ts
https://raw.githubusercontent.com/EduardoMolina07/frontend/2db6eb1/composables/useAuth.ts
EduardoMolina07/frontend 2db6eb1 composables/useAuth.ts
true
200
2,315
// composables/useAuth.ts import { ref, onMounted } from 'vue' // Importamos runtimeConfig desde '#imports' (Nuxt 3) import { useRuntimeConfig } from '#imports' const token = ref<string | null>(null) const userName = ref<string | null>(null) const userEmail = ref<string | null>(null) const avatarColor = ref<string | n...
5
Playground0/ReTodoFE
841f693
src/app/shared/components/header/header.component.ts
TypeScript
www.github.com/Playground0/ReTodoFE/tree/main/src/app/shared/components/header/header.component.ts
https://raw.githubusercontent.com/Playground0/ReTodoFE/841f693/src/app/shared/components/header/header.component.ts
Playground0/ReTodoFE 841f693 src/app/shared/components/header/header.component.ts
true
200
2,784
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Subscription } from 'rxjs'; import { AuthService } from 'src/app/core/services/auth.service'; import { LocalDataService } from 'src/app/core/services/localdata.service'; import { IUser } from '../../../core/model/auth-page.model'; import { APIStatus...
2
FollowZero/mydocs
41fb460
.vitepress/configs/nav.ts
TypeScript
www.github.com/FollowZero/mydocs/tree/main/.vitepress/configs/nav.ts
https://raw.githubusercontent.com/FollowZero/mydocs/41fb460/.vitepress/configs/nav.ts
FollowZero/mydocs 41fb460 .vitepress/configs/nav.ts
true
200
967
import type { DefaultTheme } from 'vitepress' export const nav: DefaultTheme.Config['nav'] = [ { text: '้ฆ–้กต', link: '/' }, { text: 'ๅฏผ่ˆช', link: '/nav' }, { text: 'ๅšๅฎข', link: '/blog/' }, { text: 'ๆ ‡็ญพ', link: '/tags' }, { text: 'ๅฝ’ๆกฃ', link: '/archives' }, { text: 'ๆ‰‹ๅ†Œ', items:[ { items: [ ...
6
vinizer4/sujeito-pizza
1c7b764
backend/src/controllers/user/DetailUserController.ts
TypeScript
www.github.com/vinizer4/sujeito-pizza/tree/main/backend/src/controllers/user/DetailUserController.ts
https://raw.githubusercontent.com/vinizer4/sujeito-pizza/1c7b764/backend/src/controllers/user/DetailUserController.ts
vinizer4/sujeito-pizza 1c7b764 backend/src/controllers/user/DetailUserController.ts
true
200
480
import { Request, Response} from "express"; import { DatailUserService } from '../../services/user/DatailUserService'; class DatailUserController{ async handle(req: Request, res: Response) { const user_id = req.user_id; console.log("ID DO USER ", user_id) const datailUserService = new D...
7
LuisFSanches/Portfolio
ad8f5d0
src/components/ZoomedImage/style.ts
TypeScript
www.github.com/LuisFSanches/Portfolio/tree/main/src/components/ZoomedImage/style.ts
https://raw.githubusercontent.com/LuisFSanches/Portfolio/ad8f5d0/src/components/ZoomedImage/style.ts
LuisFSanches/Portfolio ad8f5d0 src/components/ZoomedImage/style.ts
true
200
606
import styled from 'styled-components' interface ZoomedImageProps{ showImage: boolean } export const Container = styled.div<ZoomedImageProps>` max-width: 10%; display: ${(props)=> props.showImage ? 'flex' : 'none'}; justify-content: center; align-items: center; margin: 0 auto; position: ...
0
fosatt/stackbuld_assesment
59a0cfd
task-management/src/task/task.controller.ts
TypeScript
www.github.com/fosatt/stackbuld_assesment/tree/main/task-management/src/task/task.controller.ts
https://raw.githubusercontent.com/fosatt/stackbuld_assesment/59a0cfd/task-management/src/task/task.controller.ts
fosatt/stackbuld_assesment 59a0cfd task-management/src/task/task.controller.ts
true
200
1,282
import { Controller, Get, Post, Body, Patch, Param, Delete, Query, UseInterceptors, } from '@nestjs/common'; import { TaskService } from './task.service'; import { CreateTaskDto } from './dto/create-task.dto'; import { UpdateTaskDto } from './dto/update-task.dto'; import { CacheInterceptor, CacheKey }...
5
allannmsilva/video-locadora
6e38dc9
src/app/locations/model/location.ts
TypeScript
www.github.com/allannmsilva/video-locadora/tree/main/src/app/locations/model/location.ts
https://raw.githubusercontent.com/allannmsilva/video-locadora/6e38dc9/src/app/locations/model/location.ts
allannmsilva/video-locadora 6e38dc9 src/app/locations/model/location.ts
true
200
331
import { Customer } from "src/app/customers/model/customer"; import { Item } from "src/app/items/model/item"; export interface LocationModel { _id: string; item: Item; customer: Customer; worth: string; fine: string; estimatedDevolutionDate: string; devolutionDate: string; locationDate: string; paid:...
2
ngovanvu2003/Datn_main
6d46570
src/api/order.ts
TypeScript
www.github.com/ngovanvu2003/Datn_main/tree/main/src/api/order.ts
https://raw.githubusercontent.com/ngovanvu2003/Datn_main/6d46570/src/api/order.ts
ngovanvu2003/Datn_main 6d46570 src/api/order.ts
true
200
2,393
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; const orderApi = createApi({ reducerPath: "orders", tagTypes: ["Order"], baseQuery: fetchBaseQuery({ baseUrl: import.meta.env.VITE_BASE_URL_API, // Set token vร o header prepareHeaders: (headers) => { const user = localSto...
6
wahur666/CFW-Demake
40d59d3
src/utils/custom.hooks.ts
TypeScript
www.github.com/wahur666/CFW-Demake/tree/main/src/utils/custom.hooks.ts
https://raw.githubusercontent.com/wahur666/CFW-Demake/40d59d3/src/utils/custom.hooks.ts
wahur666/CFW-Demake 40d59d3 src/utils/custom.hooks.ts
true
200
715
import { RefObject } from "preact"; import { useLayoutEffect } from "preact/hooks"; export function useRescale(aRef: RefObject<HTMLDivElement>, scale: number) { useLayoutEffect(() => { function updateSize() { const root = document.body.getBoundingClientRect(); if (aRef.current) { ...
7
Asmaesabbahi/Tool-EquipmentMangementFrontEnd
209676b
src/app/components/ecran/addecran/addecran.component.ts
TypeScript
www.github.com/Asmaesabbahi/Tool-EquipmentMangementFrontEnd/tree/main/src/app/components/ecran/addecran/addecran.component.ts
https://raw.githubusercontent.com/Asmaesabbahi/Tool-EquipmentMangementFrontEnd/209676b/src/app/components/ecran/addecran/addecran.component.ts
Asmaesabbahi/Tool-EquipmentMangementFrontEnd 209676b src/app/components/ecran/addecran/addecran.component.ts
true
200
1,747
import { Component, Input, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { ecran } from 'src/app/ecran'; import { EcranService } from 'src/app/services/ecran.service'; @Component({ selector: 'app-addecran', templ...
0
weizihua/fastgpt-admin
d3542ba
packages/tushan/client/hooks/useDataReady.ts
TypeScript
www.github.com/weizihua/fastgpt-admin/tree/main/packages/tushan/client/hooks/useDataReady.ts
https://raw.githubusercontent.com/weizihua/fastgpt-admin/d3542ba/packages/tushan/client/hooks/useDataReady.ts
weizihua/fastgpt-admin d3542ba packages/tushan/client/hooks/useDataReady.ts
true
200
324
import { useEffect, useState } from 'react'; /** * Listen for changes and apply callbacks */ export function useDataReady(validator: () => boolean, callback: () => void) { const [pass, setPass] = useState(false); useEffect(() => { if (!pass && validator()) { setPass(true); callback(); } })...
2
timoconnellaus/payload-test
3adc3ce
src/payload/collections/Posts/index.ts
TypeScript
www.github.com/timoconnellaus/payload-test/tree/main/src/payload/collections/Posts/index.ts
https://raw.githubusercontent.com/timoconnellaus/payload-test/3adc3ce/src/payload/collections/Posts/index.ts
timoconnellaus/payload-test 3adc3ce src/payload/collections/Posts/index.ts
true
200
4,172
import type { CollectionConfig } from 'payload/types' import { admins } from '../../access/admins' import { adminsOrPublished } from '../../access/adminsOrPublished' import { Archive } from '../../blocks/ArchiveBlock' import { CallToAction } from '../../blocks/CallToAction' import { Content } from '../../blocks/Conten...
6
Japoncio3k/onboard-backend
936f6b6
src/typeDefs.ts
TypeScript
www.github.com/Japoncio3k/onboard-backend/tree/main/src/typeDefs.ts
https://raw.githubusercontent.com/Japoncio3k/onboard-backend/936f6b6/src/typeDefs.ts
Japoncio3k/onboard-backend 936f6b6 src/typeDefs.ts
true
200
1,434
export const typeDefs = ` interface CommonResponse { message: String code: String } enum UpsertUserActions { Create Update } type Query { hello: String! } type Response implements CommonResponse { message: String code: String } input UserInput { name: String! email: String! password: String! b...
7
nadeem-elbarbari/sara7a-app
e610118
src/utils/mail/sendEmail.ts
TypeScript
www.github.com/nadeem-elbarbari/sara7a-app/tree/main/src/utils/mail/sendEmail.ts
https://raw.githubusercontent.com/nadeem-elbarbari/sara7a-app/e610118/src/utils/mail/sendEmail.ts
nadeem-elbarbari/sara7a-app e610118 src/utils/mail/sendEmail.ts
true
200
860
import nodemailer from "nodemailer"; const transporter = nodemailer.createTransport({ host: "smtp.mail.yahoo.com", port: 587, secure: false, // true for port 465, false for other ports auth: { user: process.env.EMAIL, pass: process.env.MAIL_APP_PASSWORD, }, }); // async..await is n...
5
yamaton/triton-lsp
0030a29
src/server.ts
TypeScript
www.github.com/yamaton/triton-lsp/tree/main/src/server.ts
https://raw.githubusercontent.com/yamaton/triton-lsp/0030a29/src/server.ts
yamaton/triton-lsp 0030a29 src/server.ts
true
200
3,316
import * as LSP from 'vscode-languageserver/node'; import { CompletionParams, DidChangeConfigurationNotification, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidOpenTextDocumentParams, HoverParams, InitializeParams, InitializeResult, ServerCapabilities, TextDocumentSyncKind } from 'vscode-languages...
0
dqli164/stakingpool
8e1d396
test/5.BoxProxyV3.test.ts
TypeScript
www.github.com/dqli164/stakingpool/tree/main/test/5.BoxProxyV3.test.ts
https://raw.githubusercontent.com/dqli164/stakingpool/8e1d396/test/5.BoxProxyV3.test.ts
dqli164/stakingpool 8e1d396 test/5.BoxProxyV3.test.ts
true
200
1,255
import { expect } from "chai" import { ethers, upgrades } from "hardhat" import { Contract, BigNumber } from "ethers" describe("Box (proxy) V3 with name", function () { let box:Contract let boxV2:Contract let boxV3:Contract beforeEach(async function () { const Box = await ethers.getContractFactory("Box") ...
2
NamaWorks/malauva-frontend
a2815de
src/utils/functions/parsers/cartItemsFunctions.ts
TypeScript
www.github.com/NamaWorks/malauva-frontend/tree/main/src/utils/functions/parsers/cartItemsFunctions.ts
https://raw.githubusercontent.com/NamaWorks/malauva-frontend/a2815de/src/utils/functions/parsers/cartItemsFunctions.ts
NamaWorks/malauva-frontend a2815de src/utils/functions/parsers/cartItemsFunctions.ts
true
200
858
import { cartItem } from "../../types/types"; import { fetchData } from "../api_fn/fetchData" export const parseCartItems = (strArr: string[]):cartItem[] => { return strArr.map((item) => JSON.parse(item)); }; export const createObjsToPrint = async (objArr: any[]): Promise<any[]> => { // we use Promise.all to make...
6
venkymano-akamai/aclp_manager
f787b09
packages/manager/cypress/e2e/core/kubernetes/lke-landing-page.spec.ts
TypeScript
www.github.com/venkymano-akamai/aclp_manager/tree/main/packages/manager/cypress/e2e/core/kubernetes/lke-landing-page.spec.ts
https://raw.githubusercontent.com/venkymano-akamai/aclp_manager/f787b09/packages/manager/cypress/e2e/core/kubernetes/lke-landing-page.spec.ts
venkymano-akamai/aclp_manager f787b09 packages/manager/cypress/e2e/core/kubernetes/lke-landing-page.spec.ts
true
200
5,634
import type { KubernetesCluster } from '@linode/api-v4'; import { mockGetClusters, mockGetClusterPools, mockGetKubeconfig, } from 'support/intercepts/lke'; import { accountFactory, kubernetesClusterFactory, nodePoolFactory, } from 'src/factories'; import { getRegionById } from 'support/util/regions'; import...
5
chunkily/spellbook
4bff618
domain/actions/spellDelete.ts
TypeScript
www.github.com/chunkily/spellbook/tree/main/domain/actions/spellDelete.ts
https://raw.githubusercontent.com/chunkily/spellbook/4bff618/domain/actions/spellDelete.ts
chunkily/spellbook 4bff618 domain/actions/spellDelete.ts
true
200
397
import db from "@/utils/db"; import type MaybeError from "../MaybeError"; import { ErrorResult, SuccessResult } from "../MaybeError"; export default async function spellDelete( id: string, ): Promise<MaybeError<string>> { try { await db.spells.delete(id); } catch (error) { console.error(error); return ErrorRe...
7
tlthiago/project-management
ec11776
src/app/api/projetos/get-projects-by-team.ts
TypeScript
www.github.com/tlthiago/project-management/tree/main/src/app/api/projetos/get-projects-by-team.ts
https://raw.githubusercontent.com/tlthiago/project-management/ec11776/src/app/api/projetos/get-projects-by-team.ts
tlthiago/project-management ec11776 src/app/api/projetos/get-projects-by-team.ts
true
200
795
import { api } from '@/lib/axios'; export interface GetProjectsByTeamBody { codDepartment: string; chapa: string; } interface Member { CHAPA: string; NOME: string; } interface Team { ID: number; NOME: string; MEMBROS: Member[]; } interface GetProjectsByTeamResponse { ID: number; NOME: string; DA...
0
aws-samples/aws-iam-identity-center-extensions
b213f8f
lib/build/buildConfig.ts
TypeScript
www.github.com/aws-samples/aws-iam-identity-center-extensions/tree/main/lib/build/buildConfig.ts
https://raw.githubusercontent.com/aws-samples/aws-iam-identity-center-extensions/b213f8f/lib/build/buildConfig.ts
aws-samples/aws-iam-identity-center-extensions b213f8f lib/build/buildConfig.ts
true
200
3,603
/** * Build parameters inteface Used for validating configuration files at * synthesis time for correctness of data type and data ranges/values */ export interface BuildConfig { readonly App: string /** Used as prefix for resource and stack names */; readonly Environment: string /** Used as prefix for resource a...
2
XiaoXiaoWu98/vite-react-web
cf07215
src/hooks/useUser.ts
TypeScript
www.github.com/XiaoXiaoWu98/vite-react-web/tree/main/src/hooks/useUser.ts
https://raw.githubusercontent.com/XiaoXiaoWu98/vite-react-web/cf07215/src/hooks/useUser.ts
XiaoXiaoWu98/vite-react-web cf07215 src/hooks/useUser.ts
true
200
978
import { useNavigate } from 'react-router-dom'; import { userInfoAtom } from "@/constants/jotail"; import { getLocal, rmLocal, setLocal } from "@/utils/storage"; import { useAsyncEffect, useRequest } from "ahooks"; import { useAtom } from "jotai"; import { useState } from "react"; export default function useCurrentUse...
6
cartolin/YupaySite
26ac954
chatbot-back/src/modules/chat/chat-langchain.service.spec.ts
TypeScript
www.github.com/cartolin/YupaySite/tree/main/chatbot-back/src/modules/chat/chat-langchain.service.spec.ts
https://raw.githubusercontent.com/cartolin/YupaySite/26ac954/chatbot-back/src/modules/chat/chat-langchain.service.spec.ts
cartolin/YupaySite 26ac954 chatbot-back/src/modules/chat/chat-langchain.service.spec.ts
true
200
510
import { Test, TestingModule } from '@nestjs/testing'; import { ChatLangchainService } from './chat-langchain.service'; describe('ChatLangchainService', () => { let service: ChatLangchainService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ChatLang...
5
abelacco/MaqSystem
1e83c83
src/app/modules/inspection-sheets/inspection-sheets.module.ts
TypeScript
www.github.com/abelacco/MaqSystem/tree/main/src/app/modules/inspection-sheets/inspection-sheets.module.ts
https://raw.githubusercontent.com/abelacco/MaqSystem/1e83c83/src/app/modules/inspection-sheets/inspection-sheets.module.ts
abelacco/MaqSystem 1e83c83 src/app/modules/inspection-sheets/inspection-sheets.module.ts
true
200
2,219
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ListInspectionsComponent } from './components/list-inspections/list-inspections.component'; import { ManageInspectionsComponent } from './components/manage-inspections/manage-inspections.component'; import { InspectionShe...
7
syakirzahari/fyp-ionic
b5a45fa
src/pages/past/past.ts
TypeScript
www.github.com/syakirzahari/fyp-ionic/tree/main/src/pages/past/past.ts
https://raw.githubusercontent.com/syakirzahari/fyp-ionic/b5a45fa/src/pages/past/past.ts
syakirzahari/fyp-ionic b5a45fa src/pages/past/past.ts
true
200
2,581
import { Component, OnInit } from '@angular/core'; import { IonicPage, NavController, NavParams, Platform } from 'ionic-angular'; import { AngularFireAuth } from 'angularfire2/auth'; import { AngularFireDatabase } from 'angularfire2/database'; import { Observable } from 'rxjs/Observable'; import { Appointment } from '....
0
chrisvg-dev/cvillegas-dev-angular
2294e1f
src/app/security/dialogs/login/login.component.ts
TypeScript
www.github.com/chrisvg-dev/cvillegas-dev-angular/tree/main/src/app/security/dialogs/login/login.component.ts
https://raw.githubusercontent.com/chrisvg-dev/cvillegas-dev-angular/2294e1f/src/app/security/dialogs/login/login.component.ts
chrisvg-dev/cvillegas-dev-angular 2294e1f src/app/security/dialogs/login/login.component.ts
true
200
2,044
import { Component, TemplateRef, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef } from '@angular/material/dialog'; import { ToastrService } from 'ngx-toastr'; import { SpringbootService } from 'src/app/services/springboot.service'; import { L...
2
red-hat-storage/odf-console
a8fb4fd
packages/odf/hooks/useSafeK8sWatchResource.ts
TypeScript
www.github.com/red-hat-storage/odf-console/tree/main/packages/odf/hooks/useSafeK8sWatchResource.ts
https://raw.githubusercontent.com/red-hat-storage/odf-console/a8fb4fd/packages/odf/hooks/useSafeK8sWatchResource.ts
red-hat-storage/odf-console a8fb4fd packages/odf/hooks/useSafeK8sWatchResource.ts
true
200
1,028
import { K8sResourceObj } from '@odf/core/types'; import { getValidWatchK8sResourceObj } from '@odf/shared/utils'; import { useK8sWatchResource, K8sResourceCommon, WatchK8sResult, } from '@openshift-console/dynamic-plugin-sdk'; import { useODFNamespaceSelector } from '../redux'; type UseSafeK8sWatchResource = < ...
5
purplemoon11/aitc-task
8a24d7f
src/configs/database.ts
TypeScript
www.github.com/purplemoon11/aitc-task/tree/main/src/configs/database.ts
https://raw.githubusercontent.com/purplemoon11/aitc-task/8a24d7f/src/configs/database.ts
purplemoon11/aitc-task 8a24d7f src/configs/database.ts
true
200
519
import { DataSource } from "typeorm"; import env from "./env"; export const AppDataSource = new DataSource({ type: "postgres", host: env.dbHost, port: parseInt(env.dbPort!), username: env.dbUserName, password: env.dbPassword ? env.dbPassword : "", database: env.dbName, entities: [`src/**/entities/*.entit...
6
inagib21/TwitterClone
8b03cb8
src/server/api/root.ts
TypeScript
www.github.com/inagib21/TwitterClone/tree/main/src/server/api/root.ts
https://raw.githubusercontent.com/inagib21/TwitterClone/8b03cb8/src/server/api/root.ts
inagib21/TwitterClone 8b03cb8 src/server/api/root.ts
true
200
461
import { tweetRouter } from " /server/api/routers/tweet"; import { createTRPCRouter } from " /server/api/trpc"; import { profileRouter } from "./routers/profile"; /** * This is the primary router for your server. * * All routers added in /api/routers should be manually added here. */ export const appRouter = creat...
0
mollyzhangdev/ActiveTO_web
81fbbeb
src/app/app.component.ts
TypeScript
www.github.com/mollyzhangdev/ActiveTO_web/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/mollyzhangdev/ActiveTO_web/81fbbeb/src/app/app.component.ts
mollyzhangdev/ActiveTO_web 81fbbeb src/app/app.component.ts
true
200
2,109
import { AfterViewInit, Component, inject, OnInit } from '@angular/core'; import { DataService } from './store/data.service'; import { Store } from '@ngrx/store'; import { AppState, Location } from './store/reducer'; import { setLocation } from './store/actions'; import { NgToastService, ToastType } from 'ng-angular-po...
7
kdbvier/Uruloki_trading
675eae6
tsuka-group-proj/src/pages/api/strategies/[strategyid]/removeOrder.ts
TypeScript
www.github.com/kdbvier/Uruloki_trading/tree/main/tsuka-group-proj/src/pages/api/strategies/[strategyid]/removeOrder.ts
https://raw.githubusercontent.com/kdbvier/Uruloki_trading/675eae6/tsuka-group-proj/src/pages/api/strategies/%5Bstrategyid%5D/removeOrder.ts
kdbvier/Uruloki_trading 675eae6 tsuka-group-proj/src/pages/api/strategies/[strategyid]/removeOrder.ts
true
200
2,213
import type { ApiResponse, OrderStrategy } from "@/types"; import { PrismaClient } from "@prisma/client"; import type { NextApiRequest, NextApiResponse } from "next"; import Joi from "joi"; const reqBodySchema = Joi.object({ order_id: Joi.string().required(), }); const prisma = new PrismaClient(); export default a...
2
Angryniu/typescript-study
e32f7f5
6ใ€็ฑป/1.ๅฑžๆ€งไธŽๆ–นๆณ•.ts
TypeScript
www.github.com/Angryniu/typescript-study/tree/main/6ใ€็ฑป/1.ๅฑžๆ€งไธŽๆ–นๆณ•.ts
https://raw.githubusercontent.com/Angryniu/typescript-study/e32f7f5/6%E3%80%81%E7%B1%BB/1.%E5%B1%9E%E6%80%A7%E4%B8%8E%E6%96%B9%E6%B3%95.ts
Angryniu/typescript-study e32f7f5 6ใ€็ฑป/1.ๅฑžๆ€งไธŽๆ–นๆณ•.ts
true
200
693
// ็ฑป ๅฎšไน‰ไบ†ไธ€ไปถไบ‹็‰ฉ็š„ๆŠฝ่ฑก็‰น็‚น๏ผŒๅŒ…ๅซๅฎƒ็š„ๅฑžๆ€งๅ’Œๆ–นๆณ• // ๅฏน่ฑก ็ฑป็š„ๅฎžไพ‹๏ผŒ้€š่ฟ‡new็”Ÿๆˆ // ้ขๅ‘ๅฏน่ฑก็š„ไธ‰ๅคง็‰นๆ€ง๏ผš็ปงๆ‰ฟ๏ผˆๅญไผผ็ˆถ๏ผŒๆ›ด็ชๅ‡บ๏ผ‰ใ€ๅฐ่ฃ…๏ผˆ้š่—็ป†่Š‚๏ผŒๆไพ›ๆŽฅๅฃ๏ผ‰ใ€ๅคšๆ€๏ผˆไธๅŒ็ฑปๅฏนๅŒไธ€ๆ–นๆณ•็š„ไธๅŒๅ“ๅบ”๏ผ‰ // ๅญ˜ๅ–ๅ™จใ€ไฟฎ้ฅฐ็ฌฆใ€ๆŠฝ่ฑก็ฑปใ€ๆŽฅๅฃ // ๅฎžไพ‹ๅŒ–ๅฏน่ฑก class Person{ public name:string private age:number constructor(name:string,age:number){ this.name=name; this.age = age; } sayHi(name:string,age:number...
6
camipony/samfy-app
6871f7b
src/app/components/my-playlist/new-playlist/new-playlist.component.ts
TypeScript
www.github.com/camipony/samfy-app/tree/main/src/app/components/my-playlist/new-playlist/new-playlist.component.ts
https://raw.githubusercontent.com/camipony/samfy-app/6871f7b/src/app/components/my-playlist/new-playlist/new-playlist.component.ts
camipony/samfy-app 6871f7b src/app/components/my-playlist/new-playlist/new-playlist.component.ts
true
200
1,129
import { Component, OnInit } from '@angular/core'; import { SpotifyService } from 'src/app/services/spotify.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-new-playlist', templateUrl: './new-playlist.component.html', styleUrls: ['./new-playlist.component.css'] }) export class NewP...
5
projectSamples/latestcode
e37097f
employee-allocation/src/app/employee-dashboard/employee-dashboard.component.ts
TypeScript
www.github.com/projectSamples/latestcode/tree/main/employee-allocation/src/app/employee-dashboard/employee-dashboard.component.ts
https://raw.githubusercontent.com/projectSamples/latestcode/e37097f/employee-allocation/src/app/employee-dashboard/employee-dashboard.component.ts
projectSamples/latestcode e37097f employee-allocation/src/app/employee-dashboard/employee-dashboard.component.ts
true
200
2,092
import { Component, OnInit } from '@angular/core'; import {ICountry} from '../services/employee-data.service'; import {HttpDataService} from '../services/http-data.service'; import {Router} from '@angular/router'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; @Component({ selector: 'app-employ...
0
Ayrat-Kh/pexels-app
632cf64
src/components/PhotoDetailsPage/PhotoDetailsPage.styles.ts
TypeScript
www.github.com/Ayrat-Kh/pexels-app/tree/main/src/components/PhotoDetailsPage/PhotoDetailsPage.styles.ts
https://raw.githubusercontent.com/Ayrat-Kh/pexels-app/632cf64/src/components/PhotoDetailsPage/PhotoDetailsPage.styles.ts
Ayrat-Kh/pexels-app 632cf64 src/components/PhotoDetailsPage/PhotoDetailsPage.styles.ts
true
200
1,136
import { styled } from 'styled-components'; export const PhotoDetailsSection = styled.div({ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', marginTop: '20px', padding: '20px', background: '#fff', borderRadius: '12px', boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', }); export const Phot...
2
Frank-Colorado/Git-Gud-Games
74248a7
client/src/utils/auth.ts
TypeScript
www.github.com/Frank-Colorado/Git-Gud-Games/tree/main/client/src/utils/auth.ts
https://raw.githubusercontent.com/Frank-Colorado/Git-Gud-Games/74248a7/client/src/utils/auth.ts
Frank-Colorado/Git-Gud-Games 74248a7 client/src/utils/auth.ts
true
200
694
import decode from 'jwt-decode'; class AuthService { loggedIn() { const token = this.getToken(); return !!token && !this.isTokenExpired(token); } isTokenExpired(token: string) { try { const decoded = decode(token) as any; if (decoded.exp < Date.now() / 1000) { return true; ...
6
fads122/BEST_IN_CAPSTONE
480839d
src/app/flashcard/flashcard.component.ts
TypeScript
www.github.com/fads122/BEST_IN_CAPSTONE/tree/main/src/app/flashcard/flashcard.component.ts
https://raw.githubusercontent.com/fads122/BEST_IN_CAPSTONE/480839d/src/app/flashcard/flashcard.component.ts
fads122/BEST_IN_CAPSTONE 480839d src/app/flashcard/flashcard.component.ts
true
200
2,490
import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { UserService } from '../user.service'; import { Router } from '@angular/router'; // Define the Flashcard interface interface Flashcard { title: string; content: string; userID?: string; // Change userId ...
5
BobbaruK/nuxt-bundle-tehnique
dd46cd3
translations/navigation/02.it-IT.navigation.ts
TypeScript
www.github.com/BobbaruK/nuxt-bundle-tehnique/tree/main/translations/navigation/02.it-IT.navigation.ts
https://raw.githubusercontent.com/BobbaruK/nuxt-bundle-tehnique/dd46cd3/translations/navigation/02.it-IT.navigation.ts
BobbaruK/nuxt-bundle-tehnique dd46cd3 translations/navigation/02.it-IT.navigation.ts
true
200
1,921
function navigation_IT() { return { home: "Casa", cfds: "CFDs", forex: "Forex", shares: "Azioni", commodities: "Materie prime", indices: "Indici", cryptocurrencies: "Trading di CFD su Criptovalute", etfs: "ETFs", investing: "Investire", realShares: "Azioni reali"...
7
Me-Phew/pietrucha-portfolio-web
12f8b24
src/router/index.ts
TypeScript
www.github.com/Me-Phew/pietrucha-portfolio-web/tree/main/src/router/index.ts
https://raw.githubusercontent.com/Me-Phew/pietrucha-portfolio-web/12f8b24/src/router/index.ts
Me-Phew/pietrucha-portfolio-web 12f8b24 src/router/index.ts
true
200
926
import { useAuthStore } from '@/stores/auth'; import HomeView from '@/views/HomeView.vue'; import { createRouter, createWebHistory } from 'vue-router'; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', component: HomeView, ...
0
smithy-lang/smithy-typescript
76264f4
packages/chunked-blob-reader/src/index.ts
TypeScript
www.github.com/smithy-lang/smithy-typescript/tree/main/packages/chunked-blob-reader/src/index.ts
https://raw.githubusercontent.com/smithy-lang/smithy-typescript/76264f4/packages/chunked-blob-reader/src/index.ts
smithy-lang/smithy-typescript 76264f4 packages/chunked-blob-reader/src/index.ts
true
200
491
/** * @internal * Reads the blob data into the onChunk consumer. */ export async function blobReader( blob: Blob, onChunk: (chunk: Uint8Array) => void, chunkSize: number = 1024 * 1024 ): Promise<void> { const size = blob.size; let totalBytesRead = 0; while (totalBytesRead < size) { const slice: Blob...
3
Sedres/Wolf-Rockstar-Editor
88fc6a5
vue/src/utils/useServerMessages.ts
TypeScript
www.github.com/Sedres/Wolf-Rockstar-Editor/tree/main/vue/src/utils/useServerMessages.ts
https://raw.githubusercontent.com/Sedres/Wolf-Rockstar-Editor/88fc6a5/vue/src/utils/useServerMessages.ts
Sedres/Wolf-Rockstar-Editor 88fc6a5 vue/src/utils/useServerMessages.ts
true
200
391
// utils/useServerMessages.ts import { onMounted, onUnmounted } from 'vue' export function useEventListener( event: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions ) { onMounted(() => { window.addEventListener(event, callback, options) }) onUnmounted((...
2
rgpl-xyz/client
41f130a
client/src/app/shared/pipes/kebab-case.pipe.ts
TypeScript
www.github.com/rgpl-xyz/client/tree/main/client/src/app/shared/pipes/kebab-case.pipe.ts
https://raw.githubusercontent.com/rgpl-xyz/client/41f130a/client/src/app/shared/pipes/kebab-case.pipe.ts
rgpl-xyz/client 41f130a client/src/app/shared/pipes/kebab-case.pipe.ts
true
200
784
import { TitleCasePipe } from '@angular/common'; import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'kebabcase' }) export class KebabCasePipe implements PipeTransform { transform(value: string): unknown { let kebabizeString = value.trim(); if (kebabizeString.indexOf(' ') !== -1) { ke...
6
ShimanskayaElena/task-management
eb08a90
src/app/views/tasks-list/tasks-list.module.ts
TypeScript
www.github.com/ShimanskayaElena/task-management/tree/main/src/app/views/tasks-list/tasks-list.module.ts
https://raw.githubusercontent.com/ShimanskayaElena/task-management/eb08a90/src/app/views/tasks-list/tasks-list.module.ts
ShimanskayaElena/task-management eb08a90 src/app/views/tasks-list/tasks-list.module.ts
true
200
820
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { TasksListRoutingModule } from './tasks-list-routing.module'; import { TasksListComponent } from './tasks-list.component'; import { NewTaskComponent } fro...
7
PadelHubEngineering/padelhub
b97c9a7
src/classes/SessionePagamento.ts
TypeScript
www.github.com/PadelHubEngineering/padelhub/tree/main/src/classes/SessionePagamento.ts
https://raw.githubusercontent.com/PadelHubEngineering/padelhub/b97c9a7/src/classes/SessionePagamento.ts
PadelHubEngineering/padelhub b97c9a7 src/classes/SessionePagamento.ts
true
200
1,459
import { Ref, index, prop, DocumentType, getModelForClass, modelOptions, ReturnModelType } from "@typegoose/typegoose" import { PrenotazioneGiocatore } from "./PrenotazionePartita" import mongoose, { mongo } from "mongoose" import { add } from "winston" @modelOptions({ schemaOptions: { collection: 'SessionePagamento' ...
4
truongnguyenuit/Loopback4App
cb6390b
.history/src/keys_20220921211743.ts
TypeScript
www.github.com/truongnguyenuit/Loopback4App/tree/main/.history/src/keys_20220921211743.ts
https://raw.githubusercontent.com/truongnguyenuit/Loopback4App/cb6390b/.history/src/keys_20220921211743.ts
truongnguyenuit/Loopback4App cb6390b .history/src/keys_20220921211743.ts
true
200
1,937
import { UserService } from '@loopback/authentication' import { BindingKey } from '@loopback/context' import dotenv from 'dotenv' import { EnvironmentEnum } from './enums' import { User } from './models' import { Credentials } from './repositories/user.repository' import { PasswordHasher } from './services/hash.passwor...
0
sneub/pixel
7fba3f4
packages/nextjs/src/server.ts
TypeScript
www.github.com/sneub/pixel/tree/main/packages/nextjs/src/server.ts
https://raw.githubusercontent.com/sneub/pixel/7fba3f4/packages/nextjs/src/server.ts
sneub/pixel 7fba3f4 packages/nextjs/src/server.ts
true
200
5,529
import { NextRequest, NextResponse } from 'next/server'; import { mintJwt, verifyToken, TokenPayload } from './jwt'; const random = () => Math.floor(Math.random() * 10000000000) + Date.now(); export class Pixel { private jwtSecret: string | undefined; private adapter: Adapter; constructor(adapter: Adapter) { ...
5
GuilhermeGonSoares/backend-ART
db52388
src/utils/validates/date.validation.ts
TypeScript
www.github.com/GuilhermeGonSoares/backend-ART/tree/main/src/utils/validates/date.validation.ts
https://raw.githubusercontent.com/GuilhermeGonSoares/backend-ART/db52388/src/utils/validates/date.validation.ts
GuilhermeGonSoares/backend-ART db52388 src/utils/validates/date.validation.ts
true
200
1,504
import { ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface, } from 'class-validator'; import { CreateSubscriptionDto } from '../../subscription/dtos/create-subscription.dto'; @ValidatorConstraint({ name: 'IsDateLaterThan', async: false }) export class IsDateLaterThan implements Valid...
3
Andcool-Systems/skin-api
28150bc
src/minecraft/minecraft.controller.ts
TypeScript
www.github.com/Andcool-Systems/skin-api/tree/main/src/minecraft/minecraft.controller.ts
https://raw.githubusercontent.com/Andcool-Systems/skin-api/28150bc/src/minecraft/minecraft.controller.ts
Andcool-Systems/skin-api 28150bc src/minecraft/minecraft.controller.ts
true
200
4,272
import { Controller, Get, HttpStatus, Param, Query, Res, StreamableFile, HttpException } from '@nestjs/common'; import type { Response } from 'express' import { MinecraftService } from 'src/minecraft/minecraft.service'; import { generateSvg } from './svg.module'; import * as sharp from 'sharp'; import { SttService } fr...
2
mehejar/social-article-backend
046d412
src/app/modules/auth/auth.service.ts
TypeScript
www.github.com/mehejar/social-article-backend/tree/main/src/app/modules/auth/auth.service.ts
https://raw.githubusercontent.com/mehejar/social-article-backend/046d412/src/app/modules/auth/auth.service.ts
mehejar/social-article-backend 046d412 src/app/modules/auth/auth.service.ts
true
200
2,335
import config from "../../config" import { User } from "../user/user.model" import { TLoginUser } from "./auth.interface" import jwt, { JwtPayload } from 'jsonwebtoken' import { createToken } from "./auth.utils" import { AppError } from "../../errorHandlers/AppError" const loginUser = async (payload: TLoginUser) => {...
7
oluseunakin/chatroom
6bf68f5
src/type.ts
TypeScript
www.github.com/oluseunakin/chatroom/tree/main/src/type.ts
https://raw.githubusercontent.com/oluseunakin/chatroom/6bf68f5/src/type.ts
oluseunakin/chatroom 6bf68f5 src/type.ts
true
200
968
export type User = { name: string; id?: number; password?: String; }; export type Conversation = { id?: number; talker?: User; room: Room; agree?: User[]; disagree?: User[]; comments?: Conversation[]; convo: string; media?: string[] createdAt: Date; _count: { comments: number } }; expo...
6
muhammadzadeh/nester
6391d2c
apps/gateway/src/notifications/infrastructure/providers/email/sendgrid.ts
TypeScript
www.github.com/muhammadzadeh/nester/tree/main/apps/gateway/src/notifications/infrastructure/providers/email/sendgrid.ts
https://raw.githubusercontent.com/muhammadzadeh/nester/6391d2c/apps/gateway/src/notifications/infrastructure/providers/email/sendgrid.ts
muhammadzadeh/nester 6391d2c apps/gateway/src/notifications/infrastructure/providers/email/sendgrid.ts
true
200
1,501
import { Injectable, Logger } from '@nestjs/common'; import nodemailer from 'nodemailer'; import { Configuration } from '@package/config'; import { SendEmailData, Mailer } from '../../../application/email-provider.interface'; import { NotificationChannelStatus } from '../../../domain/entities/notification.entity'; impo...
4
patricia-correia/trybers-and-dragons
a9846c8
src/Races/Elf.ts
TypeScript
www.github.com/patricia-correia/trybers-and-dragons/tree/main/src/Races/Elf.ts
https://raw.githubusercontent.com/patricia-correia/trybers-and-dragons/a9846c8/src/Races/Elf.ts
patricia-correia/trybers-and-dragons a9846c8 src/Races/Elf.ts
true
200
319
import Race from './Race'; class Elf extends Race { maxLifePoints: number; static _Elf = 0; constructor(name: string, dexterity: number) { super(name, dexterity); this.maxLifePoints = 99; Elf._Elf += 1; } static createdRacesInstances(): number { return this._Elf; } } export default Elf;
3
krizhik-eugen/prod-learning
4e5ff4c
src/shared/lib/classNames/classNames.ts
TypeScript
www.github.com/krizhik-eugen/prod-learning/tree/main/src/shared/lib/classNames/classNames.ts
https://raw.githubusercontent.com/krizhik-eugen/prod-learning/4e5ff4c/src/shared/lib/classNames/classNames.ts
krizhik-eugen/prod-learning 4e5ff4c src/shared/lib/classNames/classNames.ts
true
200
369
export const classNames = ( mainClass: string, mods: Record<string, boolean | string> = {}, additional: string[] = [], ) => { const optionalClassnames = Object.entries(mods) .filter(([key, value]) => value) .map(([key, value]) => key); return [mainClass, ...optionalClassnames.filter...
5
sambit826059/blogging-page
800673c
backend/src/router/blog.ts
TypeScript
www.github.com/sambit826059/blogging-page/tree/main/backend/src/router/blog.ts
https://raw.githubusercontent.com/sambit826059/blogging-page/800673c/backend/src/router/blog.ts
sambit826059/blogging-page 800673c backend/src/router/blog.ts
true
200
3,459
import { Hono } from 'hono' import { PrismaClient } from '@prisma/client/edge' import { withAccelerate } from '@prisma/extension-accelerate' import { verify } from "hono/jwt"; import { createBlogInput, updateBlogInput } from '@sambit123456/blog-common'; export const blogRouter = new Hono<{ Bindings: { DATABASE_U...
2
dhyunkim/tour-server
c86ff12
src/tour-holiday/dto/add-tour-specific-holiday.args.ts
TypeScript
www.github.com/dhyunkim/tour-server/tree/main/src/tour-holiday/dto/add-tour-specific-holiday.args.ts
https://raw.githubusercontent.com/dhyunkim/tour-server/c86ff12/src/tour-holiday/dto/add-tour-specific-holiday.args.ts
dhyunkim/tour-server c86ff12 src/tour-holiday/dto/add-tour-specific-holiday.args.ts
true
200
538
import { ArgsType, Field, Int } from '@nestjs/graphql'; import { IsDateString, IsInt, MaxLength, Min, MinLength, } from 'class-validator'; @ArgsType() export class AddTourSpecificHolidayArgs { @Min(1) @IsInt() @Field(() => Int) tourId: number; @MaxLength(10, { message: '๋‚ ์งœ๋ฅผ ์ •ํ™•ํ•˜๊ฒŒ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”. e.g) 2023-...
6
alimarchi/notes-app
8b84070
frontend/src/errors/httpErrors.ts
TypeScript
www.github.com/alimarchi/notes-app/tree/main/frontend/src/errors/httpErrors.ts
https://raw.githubusercontent.com/alimarchi/notes-app/8b84070/frontend/src/errors/httpErrors.ts
alimarchi/notes-app 8b84070 frontend/src/errors/httpErrors.ts
true
200
385
class HttpError extends Error { constructor(message?: string) { super(message); this.name = this.constructor.name; } } /** * Status code: 401 */ export class UnauthorizedError extends HttpError {} /** * Status code: 409 */ export class ConflictError extends HttpError {} // this happens for...
0
emallom/angular-primeros-pasos
177278d
src/app/heroes/components/list/list.component.ts
TypeScript
www.github.com/emallom/angular-primeros-pasos/tree/main/src/app/heroes/components/list/list.component.ts
https://raw.githubusercontent.com/emallom/angular-primeros-pasos/177278d/src/app/heroes/components/list/list.component.ts
emallom/angular-primeros-pasos 177278d src/app/heroes/components/list/list.component.ts
true
200
388
import { Component } from '@angular/core'; @Component({ selector: 'app-heroes-list', templateUrl: './list.component.html', styleUrls: ['./list.component.css'] }) export class ListComponent { public heroName: string[] = ['Spiderman','Iroman','Hulk','She Hulk', 'Thor']; public deleteHero? : string; removeL...
7
muzammaldev/ecom-web-backend
02dc5e6
src/main.ts
TypeScript
www.github.com/muzammaldev/ecom-web-backend/tree/main/src/main.ts
https://raw.githubusercontent.com/muzammaldev/ecom-web-backend/02dc5e6/src/main.ts
muzammaldev/ecom-web-backend 02dc5e6 src/main.ts
true
200
326
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule, { cors: true }); const port = 8000; await app.listen(port); console.log(`App running Port is ${port}`); console.log("MongoDb Conected"); } bootstr...
3
zubeirom/podhead
386b4b5
src/channel/channel.service.spec.ts
TypeScript
www.github.com/zubeirom/podhead/tree/main/src/channel/channel.service.spec.ts
https://raw.githubusercontent.com/zubeirom/podhead/386b4b5/src/channel/channel.service.spec.ts
zubeirom/podhead 386b4b5 src/channel/channel.service.spec.ts
true
200
499
import { Test, TestingModule } from '@nestjs/testing'; import { ChannelService } from './channel.service'; describe('ChannelService', () => { let service: ChannelService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ChannelService], ...
4
ImadNait/User-Authentication
19f62e2
Authentication/node_modules/@mongodb-js/devtools-proxy-support/dist/socks5.d.ts
TypeScript
www.github.com/ImadNait/User-Authentication/tree/main/Authentication/node_modules/@mongodb-js/devtools-proxy-support/dist/socks5.d.ts
https://raw.githubusercontent.com/ImadNait/User-Authentication/19f62e2/Authentication/node_modules/%40mongodb-js/devtools-proxy-support/dist/socks5.d.ts
ImadNait/User-Authentication 19f62e2 Authentication/node_modules/@mongodb-js/devtools-proxy-support/dist/socks5.d.ts
true
200
837
import type { DevtoolsProxyOptions } from './proxy-options'; import type { AgentWithInitialize } from './agent'; import type { ProxyLogEmitter } from './logging'; export interface TunnelOptions { proxyHost: string; proxyPort: number; proxyUsername?: string; proxyPassword?: string; } export interface Tun...
5
Angelos8/sep
db6207e
web/src/components/molecules/navbar.stories.ts
TypeScript
www.github.com/Angelos8/sep/tree/main/web/src/components/molecules/navbar.stories.ts
https://raw.githubusercontent.com/Angelos8/sep/db6207e/web/src/components/molecules/navbar.stories.ts
Angelos8/sep db6207e web/src/components/molecules/navbar.stories.ts
true
200
416
// Nav.stories.ts import type { Meta, StoryObj } from '@storybook/vue3'; import Navbar from './navbar.vue'; const meta: Meta<typeof Navbar> = { component: Navbar, }; export default meta; type Story = StoryObj<typeof Navbar>; export const Primary: Story = { render: (args: any) => ({ components: { Navbar}, se...
2
joselopezbinoovo/Angular-Jest
c6ad82d
angular-testing/src/app/basic/charizard/charizard.component.spec.ts
TypeScript
www.github.com/joselopezbinoovo/Angular-Jest/tree/main/angular-testing/src/app/basic/charizard/charizard.component.spec.ts
https://raw.githubusercontent.com/joselopezbinoovo/Angular-Jest/c6ad82d/angular-testing/src/app/basic/charizard/charizard.component.spec.ts
joselopezbinoovo/Angular-Jest c6ad82d angular-testing/src/app/basic/charizard/charizard.component.spec.ts
true
200
1,580
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { CharizardComponent } from './charizard.component'; import { PokemonService } from '../services/pokemon.service'; describe('CharizardComponent', () ...
6
dat2403/whatsapp
bf06d40
whatsapp/src/styles/AppColors.ts
TypeScript
www.github.com/dat2403/whatsapp/tree/main/whatsapp/src/styles/AppColors.ts
https://raw.githubusercontent.com/dat2403/whatsapp/bf06d40/whatsapp/src/styles/AppColors.ts
dat2403/whatsapp bf06d40 whatsapp/src/styles/AppColors.ts
true
200
746
const AppColors = { transparent : '#FFFFFF00', white : '#FFFFFF', light_grey: '#F2F6FC', light_grey2: '#E0E6F3', grey: '#9DA8C3', dark_grey: '#7A85A1', black: '#1A1C24', purple: '#6A4CE2', yellow: '#FFD25F', green: '#03D691', red: '#FF3B5E', blue: '#1D91FF', whitesmoke: "whitesmoke", //purp...
7
DonHeidi/wtg
1efc071
packages/generator/src/Types/Clip.ts
TypeScript
www.github.com/DonHeidi/wtg/tree/main/packages/generator/src/Types/Clip.ts
https://raw.githubusercontent.com/DonHeidi/wtg/1efc071/packages/generator/src/Types/Clip.ts
DonHeidi/wtg 1efc071 packages/generator/src/Types/Clip.ts
true
200
1,881
import type { CreativeWork } from './CreativeWork.ts' import type { Person } from './Person.ts' import type { PerformingGroup } from './PerformingGroup.ts' import type { CreativeWorkSeason } from './CreativeWorkSeason.ts' import type { CreativeWorkSeries } from './CreativeWorkSeries.ts' import type { HyperTocEntry...
3
arielclement/my-blog-backend
d6b13d4
src/app.module.ts
TypeScript
www.github.com/arielclement/my-blog-backend/tree/main/src/app.module.ts
https://raw.githubusercontent.com/arielclement/my-blog-backend/d6b13d4/src/app.module.ts
arielclement/my-blog-backend d6b13d4 src/app.module.ts
true
200
676
import { Module } from '@nestjs/common'; import { SequelizeModule } from '@nestjs/sequelize'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { Blog } from './blogs/blog.model'; import { BlogsModule } from './blogs/blogs.module'; @Module({ imports: [ Sequelize...
4
Snapchain/op-bridge-ui
22d31b0
lib/ethers.ts
TypeScript
www.github.com/Snapchain/op-bridge-ui/tree/main/lib/ethers.ts
https://raw.githubusercontent.com/Snapchain/op-bridge-ui/22d31b0/lib/ethers.ts
Snapchain/op-bridge-ui 22d31b0 lib/ethers.ts
true
200
812
import { Config, getConnectorClient } from "@wagmi/core"; import { providers } from "ethers"; import type { Account, Chain, Client, Transport } from "viem"; export function clientToSigner(client: Client<Transport, Chain, Account>) { const { account, chain, transport } = client; const network = { chainId: chain...
0
violaguilherme/gobarber
3b9fcea
backend/src/modules/appointments/infra/http/controllers/ProviderAppointmentsController.ts
TypeScript
www.github.com/violaguilherme/gobarber/tree/main/backend/src/modules/appointments/infra/http/controllers/ProviderAppointmentsController.ts
https://raw.githubusercontent.com/violaguilherme/gobarber/3b9fcea/backend/src/modules/appointments/infra/http/controllers/ProviderAppointmentsController.ts
violaguilherme/gobarber 3b9fcea backend/src/modules/appointments/infra/http/controllers/ProviderAppointmentsController.ts
true
200
860
import { classToClass } from "class-transformer" import { Request, Response } from "express" import { container } from "tsyringe" import ListProviderAppointmentsService from "../../../services/ListProviderAppointmentsService" class ProviderAppointmentsController { public async index(request: Request, response: Re...
5
saltylassi/rn_i-hate-winter
736c71a
src/utils/apis.ts
TypeScript
www.github.com/saltylassi/rn_i-hate-winter/tree/main/src/utils/apis.ts
https://raw.githubusercontent.com/saltylassi/rn_i-hate-winter/736c71a/src/utils/apis.ts
saltylassi/rn_i-hate-winter 736c71a src/utils/apis.ts
true
200
928
import axios from 'axios'; export interface IAPIs { getTemperature(nx: string, ny: string, baseDate: string, baseTime: string): any; } export class APIs implements IAPIs { constructor() {} public async getTemperature(nx: string, ny: string, baseDate: string, baseTime: string) { if (baseDate.length !== 8) {...
2
Bryanovi/WEB
43e0c5f
Web_Telefonia/projects/appstore/src/app/app.component.ts
TypeScript
www.github.com/Bryanovi/WEB/tree/main/Web_Telefonia/projects/appstore/src/app/app.component.ts
https://raw.githubusercontent.com/Bryanovi/WEB/43e0c5f/Web_Telefonia/projects/appstore/src/app/app.component.ts
Bryanovi/WEB 43e0c5f Web_Telefonia/projects/appstore/src/app/app.component.ts
true
200
855
import { Component } from '@angular/core'; @Component({ selector: 'stp-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'appstore'; public productos = []; /* constructor(private carritoService: CarritoService, private dataSharingServic...
3
volha1/node.js_course
8c962d7
task07/auth/middlewares.ts
TypeScript
www.github.com/volha1/node.js_course/tree/main/task07/auth/middlewares.ts
https://raw.githubusercontent.com/volha1/node.js_course/8c962d7/task07/auth/middlewares.ts
volha1/node.js_course 8c962d7 task07/auth/middlewares.ts
true
200
830
import { NextFunction, Request, Response } from 'express'; import { fetchUser } from '../service/user.service'; import { AppError } from '../error/appError'; import { HttpStatusCode } from '../error/statusCode'; import catchAsync from '../error/catchAsync'; export const authenticateUserMiddleware = catchAsync( async...
6
rize-the-flag/ArtNetLib
7cc16e8
packages/artnet-packets/lib/sync/sync.ts
TypeScript
www.github.com/rize-the-flag/ArtNetLib/tree/main/packages/artnet-packets/lib/sync/sync.ts
https://raw.githubusercontent.com/rize-the-flag/ArtNetLib/7cc16e8/packages/artnet-packets/lib/sync/sync.ts
rize-the-flag/ArtNetLib 7cc16e8 packages/artnet-packets/lib/sync/sync.ts
true
200
1,181
import { ArtNetPacket } from '../common/art-net-packet'; import { OP_CODE, PROTOCOL_VERSION } from '../constants'; import { decode, Schema } from '@rtf-dm/protocol'; import { SyncPacketPayload } from './sync.interface'; export class Sync extends ArtNetPacket<SyncPacketPayload> { //order of schema fields make sense d...
4
LongEledevo/HRM_TYPESCRIPT
0077829
src/sagas/ItemSaga.ts
TypeScript
www.github.com/LongEledevo/HRM_TYPESCRIPT/tree/main/src/sagas/ItemSaga.ts
https://raw.githubusercontent.com/LongEledevo/HRM_TYPESCRIPT/0077829/src/sagas/ItemSaga.ts
LongEledevo/HRM_TYPESCRIPT 0077829 src/sagas/ItemSaga.ts
true
200
682
import { takeLatest, put } from "redux-saga/effects"; import { ItemAction } from "../actions"; import { actionTypes } from "../constants"; import { itemApi } from "../apis/ItemApi"; import { IDataDi } from "../apis/ItemApi/configType"; function* handleFetchListItems() { try { const res:IDataDi = yield ite...
0
xjq15812601641/blog-vue
720bbd7
src/utils/dom/method/addClass.ts
TypeScript
www.github.com/xjq15812601641/blog-vue/tree/main/src/utils/dom/method/addClass.ts
https://raw.githubusercontent.com/xjq15812601641/blog-vue/720bbd7/src/utils/dom/method/addClass.ts
xjq15812601641/blog-vue 720bbd7 src/utils/dom/method/addClass.ts
true
200
537
import { hasClass } from "/@/utils/dom/method/hasClass"; export function addClass(el: Element, cls: string) { if (!el) return; let curClass = el.className; const classes = (cls || '').split(' '); for (let i = 0, j = classes.length; i < j; i++) { const clsName = classes[i]; if (!clsName) conti...
5
samuelige/xpress-fe
9fd181f
src/_lib/yup/index.ts
TypeScript
www.github.com/samuelige/xpress-fe/tree/main/src/_lib/yup/index.ts
https://raw.githubusercontent.com/samuelige/xpress-fe/9fd181f/src/_lib/yup/index.ts
samuelige/xpress-fe 9fd181f src/_lib/yup/index.ts
true
200
1,092
import * as yup from 'yup'; import { StringSchema, DateSchema } from 'yup'; import parsePhoneNumberFromString from 'libphonenumber-js'; import isEmail from 'validator/lib/isEmail'; yup.addMethod<StringSchema>( yup.string, 'extMobilePhone', function extMobilePhone(errorMessage: string): StringSchema { ...
2
Deoprag/prysme
847fe22
src/app/layout/seller/seller.component.ts
TypeScript
www.github.com/Deoprag/prysme/tree/main/src/app/layout/seller/seller.component.ts
https://raw.githubusercontent.com/Deoprag/prysme/847fe22/src/app/layout/seller/seller.component.ts
Deoprag/prysme 847fe22 src/app/layout/seller/seller.component.ts
true
200
11,451
import { Component, OnInit } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { User } from "../../model/user"; import { TableModule } from "primeng/table"; import { ButtonModule } from "primeng/button"; import { InputTextModule } from 'primeng/inputtext'; import { InputMa...
7
Adbhut07/cohort-learning
c898c88
week-9/node-app/src/d.ts
TypeScript
www.github.com/Adbhut07/cohort-learning/tree/main/week-9/node-app/src/d.ts
https://raw.githubusercontent.com/Adbhut07/cohort-learning/c898c88/week-9/node-app/src/d.ts
Adbhut07/cohort-learning c898c88 week-9/node-app/src/d.ts
true
200
1,161
//enums ******** // enum Direction { // Up = "up", // Down ="down", // Left = "left", // Right = "right" // } // function doSomething(keyPressed: Direction) { // if(keyPressed == Direction.Up){ // } // } // doSomething(Direction.Right); // doSomething(Direction.Up); // console.log(Directi...
3
giotuccio/cli
0171c4c
src/app/components/review/review.component.ts
TypeScript
www.github.com/giotuccio/cli/tree/main/src/app/components/review/review.component.ts
https://raw.githubusercontent.com/giotuccio/cli/0171c4c/src/app/components/review/review.component.ts
giotuccio/cli 0171c4c src/app/components/review/review.component.ts
true
200
947
import { Component, OnInit } from '@angular/core'; import { Product } from 'src/app/objects/products'; import { ProductService } from 'src/app/service/productservice.service'; @Component({ selector: 'app-review', templateUrl: './review.component.html', styleUrls: ['./review.component.css'] }) export class Review...
6
companieshouse/limited-partnerships-web
69901fd
src/infrastructure/gateway/companyProfile/CompanyGateway.ts
TypeScript
www.github.com/companieshouse/limited-partnerships-web/tree/main/src/infrastructure/gateway/companyProfile/CompanyGateway.ts
https://raw.githubusercontent.com/companieshouse/limited-partnerships-web/69901fd/src/infrastructure/gateway/companyProfile/CompanyGateway.ts
companieshouse/limited-partnerships-web 69901fd src/infrastructure/gateway/companyProfile/CompanyGateway.ts
true
200
1,159
import { CompanyProfile } from "@companieshouse/api-sdk-node/dist/services/company-profile/types"; import { Resource } from "@companieshouse/api-sdk-node"; import ICompanyGateway from "../../../domain/ICompanyGateway"; import { makeApiCallWithRetry } from "../api"; import UIErrors from "../../../domain/entities/UIErro...
4
moneyadviceservice/maps-apps
5d0c795
apps/moneyhelper-tools/utils/SavingsCalculator/savingsCalculatorResults.ts
TypeScript
www.github.com/moneyadviceservice/maps-apps/tree/main/apps/moneyhelper-tools/utils/SavingsCalculator/savingsCalculatorResults.ts
https://raw.githubusercontent.com/moneyadviceservice/maps-apps/5d0c795/apps/moneyhelper-tools/utils/SavingsCalculator/savingsCalculatorResults.ts
moneyadviceservice/maps-apps 5d0c795 apps/moneyhelper-tools/utils/SavingsCalculator/savingsCalculatorResults.ts
true
200
8,501
import { getDurationOptions } from 'data/form-content/questions/savings-calculator'; import { useTranslation } from '@maps-react/hooks/useTranslation'; enum SavingsCalculatorDuration { MAX_MONTHS = 6000, MONTHS_PER_YEAR = 12, } enum SavingsCalculatorRateWarning { HIGH = 10, LOW = 3, } export enum SavingsCal...
0
michaelmlp/delivery-all-app
073ca1a
src/app/categories/categories.service.ts
TypeScript
www.github.com/michaelmlp/delivery-all-app/tree/main/src/app/categories/categories.service.ts
https://raw.githubusercontent.com/michaelmlp/delivery-all-app/073ca1a/src/app/categories/categories.service.ts
michaelmlp/delivery-all-app 073ca1a src/app/categories/categories.service.ts
true
200
1,333
import {Injectable} from '@angular/core' import {Http} from '@angular/http' import {Observable} from 'rxjs/Observable' import 'rxjs/add/operator/map' import 'rxjs/add/operator/catch' import {Category} from "./category/category.model" import {MenuItem} from '../restaurant-detail/menu-item/menu-item.model' import {MEA...
2
proj-poppin/poppin-app
6872134
src/Zustand/User/user.zustand.ts
TypeScript
www.github.com/proj-poppin/poppin-app/tree/main/src/Zustand/User/user.zustand.ts
https://raw.githubusercontent.com/proj-poppin/poppin-app/6872134/src/Zustand/User/user.zustand.ts
proj-poppin/poppin-app 6872134 src/Zustand/User/user.zustand.ts
true
200
21,584
import create from 'zustand'; import {BlankUser, UserSchema} from 'src/Schema/User/user.schema'; import { BlankUserNotice, UserNoticeSchema, } from '../../Schema/User/userNotice.schema'; import { BlankUserNotificationSetting, UserNotificationSettingSchema, } from '../../Schema/User/userNotificationSetting.schem...
7
VINNE7/dompixelback
f92f1d0
src/modules/products/useCases/showProductById/ShowProductByIdUseCase.ts
TypeScript
www.github.com/VINNE7/dompixelback/tree/main/src/modules/products/useCases/showProductById/ShowProductByIdUseCase.ts
https://raw.githubusercontent.com/VINNE7/dompixelback/f92f1d0/src/modules/products/useCases/showProductById/ShowProductByIdUseCase.ts
VINNE7/dompixelback f92f1d0 src/modules/products/useCases/showProductById/ShowProductByIdUseCase.ts
true
200
341
import { Products } from ".prisma/client"; import { prisma } from "../../../../prisma/client"; export class ShowProductByIdUseCase { async execute(product_id: string): Promise<Products[] | null | Products> { const product = await prisma.products.findUnique({ where: { product_id: product_id }, }); r...
6
drny85/new-deli
201ac0f
hooks/category/useAvailableCategories.ts
TypeScript
www.github.com/drny85/new-deli/tree/main/hooks/category/useAvailableCategories.ts
https://raw.githubusercontent.com/drny85/new-deli/201ac0f/hooks/category/useAvailableCategories.ts
drny85/new-deli 201ac0f hooks/category/useAvailableCategories.ts
true
200
1,282
import { Category } from '@/shared/types' import { useEffect, useState } from 'react' import { useAllCategories } from './useAllCategories' import { useAuth } from '@/providers/authProvider' import { useAllProducts } from '../restaurants/useAllProducts' import { useRestaurants } from '../restaurants/useRestaurants' imp...
4
jayant-080/Nodejs--Microservice
4f4c6ae
order-service/src/application/use_case/CreateOrder.ts
TypeScript
www.github.com/jayant-080/Nodejs--Microservice/tree/main/order-service/src/application/use_case/CreateOrder.ts
https://raw.githubusercontent.com/jayant-080/Nodejs--Microservice/4f4c6ae/order-service/src/application/use_case/CreateOrder.ts
jayant-080/Nodejs--Microservice 4f4c6ae order-service/src/application/use_case/CreateOrder.ts
true
200
756
import { createOrderDto } from "../dto/createOrderDto"; import { CreateOrderResponseDto } from "../dto/createOrderResponseDto"; import { OrderResponseMapper } from "../mappers/OrderResponse"; import { HttpClientProductService } from "../services/HttpClientProductService"; import { OrderService } from "../services/Order...
1
Hamzaali565/nest-learning
3fc78af
src/app.module.ts
TypeScript
www.github.com/Hamzaali565/nest-learning/tree/main/src/app.module.ts
https://raw.githubusercontent.com/Hamzaali565/nest-learning/3fc78af/src/app.module.ts
Hamzaali565/nest-learning 3fc78af src/app.module.ts
true
200
705
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { MongooseModule } from '@nestjs/mongoose'; import { AuthModule } from './auth/auth.module'; import { JwtModule } from '@nestjs/jwt'; import { JWT_KEY } from './constant'; @Modu...
5
Chakravarthy7102/Tunnel
7b10a6a
products/webapp/utils/integration-redirect-url.ts
TypeScript
www.github.com/Chakravarthy7102/Tunnel/tree/main/products/webapp/utils/integration-redirect-url.ts
https://raw.githubusercontent.com/Chakravarthy7102/Tunnel/7b10a6a/products/webapp/utils/integration-redirect-url.ts
Chakravarthy7102/Tunnel 7b10a6a products/webapp/utils/integration-redirect-url.ts
true
200
1,928
import type { Selection, ServerDoc } from '@-/database'; import { ApiUrl } from '@-/url/api'; import { NextResponse } from 'next/server'; export function getIntegrationRedirects( request: Request, integrationSlug: string, ) { const getResponse = ( { path, query }: { path: string; query?: Record<string, string> },...
0
Tomsjosephj/ecart-frontend
7a9b1f5
src/app/products/pipes/filter.pipe.ts
TypeScript
www.github.com/Tomsjosephj/ecart-frontend/tree/main/src/app/products/pipes/filter.pipe.ts
https://raw.githubusercontent.com/Tomsjosephj/ecart-frontend/7a9b1f5/src/app/products/pipes/filter.pipe.ts
Tomsjosephj/ecart-frontend 7a9b1f5 src/app/products/pipes/filter.pipe.ts
true
200
521
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'filter' }) export class FilterPipe implements PipeTransform { transform(allproducts:any[],searchterm:string,propertyname:string): any[]{ const result:any=[] if(!allproducts ||searchterm=="" ||propertyname==""){ return allproducts...
2
AtGbemiga/backend-evenue-update
1215201
controllers/events/getEvent.ts
TypeScript
www.github.com/AtGbemiga/backend-evenue-update/tree/main/controllers/events/getEvent.ts
https://raw.githubusercontent.com/AtGbemiga/backend-evenue-update/1215201/controllers/events/getEvent.ts
AtGbemiga/backend-evenue-update 1215201 controllers/events/getEvent.ts
true
200
1,440
import express, { Request, Response } from "express"; import pool from "../../db/db"; import { RowDataPacket } from "mysql2"; export const getEvent: express.RequestHandler = ( req: Request, res: Response ) => { const { event_id } = req.params; console.log(event_id ?? "no event_id"); if (!event_id) { res...
7