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
ujjwal1309/NXM-201
bfe3db7
LLD PSC/src/Full-Solution.ts
TypeScript
www.github.com/ujjwal1309/NXM-201/tree/main/LLD PSC/src/Full-Solution.ts
https://raw.githubusercontent.com/ujjwal1309/NXM-201/bfe3db7/LLD%20PSC/src/Full-Solution.ts
ujjwal1309/NXM-201 bfe3db7 LLD PSC/src/Full-Solution.ts
true
200
8,758
export const SubcriptionPrice = 199; export enum DatabaseModel { users = "users", videos = "videos", notifications = "notifications", } interface IModel { id: number; model: DatabaseModel; } interface User extends IModel { name: string; email: string; type: "Consumer" | "Creator"; isPremium?: boolea...
3
ts-factory/bublik-ui
2312a8e
libs/bublik/features/history/src/lib/history-measurements/plot-list.utils.ts
TypeScript
www.github.com/ts-factory/bublik-ui/tree/main/libs/bublik/features/history/src/lib/history-measurements/plot-list.utils.ts
https://raw.githubusercontent.com/ts-factory/bublik-ui/2312a8e/libs/bublik/features/history/src/lib/history-measurements/plot-list.utils.ts
ts-factory/bublik-ui 2312a8e libs/bublik/features/history/src/lib/history-measurements/plot-list.utils.ts
true
200
1,471
/* SPDX-License-Identifier: Apache-2.0 */ /* SPDX-FileCopyrightText: 2021-2023 OKTET Labs Ltd. */ import { SingleMeasurementChart } from '@/services/bublik-api'; import { PointSchema } from '@/shared/types'; import { Point } from '@/shared/types'; function isDisabledForCombined( plot: SingleMeasurementChart, selecte...
6
fauvet/guitab
5122b73
src/app/components/bottom-sheet-settings/bottom-sheet-settings.component.ts
TypeScript
www.github.com/fauvet/guitab/tree/main/src/app/components/bottom-sheet-settings/bottom-sheet-settings.component.ts
https://raw.githubusercontent.com/fauvet/guitab/5122b73/src/app/components/bottom-sheet-settings/bottom-sheet-settings.component.ts
fauvet/guitab 5122b73 src/app/components/bottom-sheet-settings/bottom-sheet-settings.component.ts
true
200
1,354
import { Component, inject } from "@angular/core"; import { MatRipple } from "@angular/material/core"; import { MatIcon } from "@angular/material/icon"; import { MatListModule } from "@angular/material/list"; import { ChordproService } from "../../services/chordpro/chordpro.service"; import { AsyncPipe } from "@angular...
0
dl-nft-books/web-client
3521a47
src/types/nft-tokens.types.ts
TypeScript
www.github.com/dl-nft-books/web-client/tree/main/src/types/nft-tokens.types.ts
https://raw.githubusercontent.com/dl-nft-books/web-client/3521a47/src/types/nft-tokens.types.ts
dl-nft-books/web-client 3521a47 src/types/nft-tokens.types.ts
true
200
649
import { TOKEN_TYPES } from '@/enums' export type NftMetadata = { name: string description: string image: string external_url: string } export type Payment = { amount: string book_id: number contract_address: string minted_token_price: string payer_address: string payment_token_price: string pur...
2
yeonna-dev/yeonna-config
91eb1a0
src/types.ts
TypeScript
www.github.com/yeonna-dev/yeonna-config/tree/main/src/types.ts
https://raw.githubusercontent.com/yeonna-dev/yeonna-config/91eb1a0/src/types.ts
yeonna-dev/yeonna-config 91eb1a0 src/types.ts
true
200
1,393
import { DocumentData } from 'firebase/firestore'; /* Firestore */ export interface Document { id: string; data: DocumentData; } /* Config */ export interface Configs { global: ConfigType; [key: string]: ConfigType; }; export interface ConfigType { prefix?: string; enabledCommands?: st...
5
liteflow-labs/liteflow-js
91a529a
packages/core/src/asset/index.ts
TypeScript
www.github.com/liteflow-labs/liteflow-js/tree/main/packages/core/src/asset/index.ts
https://raw.githubusercontent.com/liteflow-labs/liteflow-js/91a529a/packages/core/src/asset/index.ts
liteflow-labs/liteflow-js 91a529a packages/core/src/asset/index.ts
true
200
2,787
import type { BigNumberish } from '@ethersproject/bignumber' import type { Sdk } from '../graphql' import type { Address, ChainId, Signer, UUID } from '../types' import type { Uploader } from '../uploader' import type { State as LazymintState } from './lazymint' import { lazymint } from './lazymint' import type { State...
4
xnxchoi/payload
d126c2b
packages/translations/src/utilities/getTranslation.ts
TypeScript
www.github.com/xnxchoi/payload/tree/main/packages/translations/src/utilities/getTranslation.ts
https://raw.githubusercontent.com/xnxchoi/payload/d126c2b/packages/translations/src/utilities/getTranslation.ts
xnxchoi/payload d126c2b packages/translations/src/utilities/getTranslation.ts
true
200
1,333
import type { JSX } from 'react' import type { I18n, TFunction } from '../types.js' type LabelType = | (({ t }: { t: TFunction }) => string) | JSX.Element | Record<string, string> | string export const getTranslation = <T extends LabelType>( label: T, i18n: Pick<I18n<any, any>, 'fallbackLanguage' | 'lang...
1
centlax/utica
486365e
src/lib/config/plugins/app/default.ts
TypeScript
www.github.com/centlax/utica/tree/main/src/lib/config/plugins/app/default.ts
https://raw.githubusercontent.com/centlax/utica/486365e/src/lib/config/plugins/app/default.ts
centlax/utica 486365e src/lib/config/plugins/app/default.ts
true
200
1,765
import type { DeepPartial } from '$lib/types/ui.js'; export const colors = { foreground: [ 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose', 'primary', 'success', 'warning', ...
7
AzzamTaqi28/user-profile-app
4f2ad56
backend/src/middlewares/auth.middleware.ts
TypeScript
www.github.com/AzzamTaqi28/user-profile-app/tree/main/backend/src/middlewares/auth.middleware.ts
https://raw.githubusercontent.com/AzzamTaqi28/user-profile-app/4f2ad56/backend/src/middlewares/auth.middleware.ts
AzzamTaqi28/user-profile-app 4f2ad56 backend/src/middlewares/auth.middleware.ts
true
200
1,805
import { NextFunction, Request, Response } from 'express'; import DB from '@/databases'; import jwt from 'jsonwebtoken'; const authMiddleware = (req: any, res: Response, next: NextFunction) => { try { const User = DB.User; let decodedToken = null; const secretKey = process.env.JWT_SECRET_KEY; const authHeader...
6
empawlowski/playwright-online-shop
5744666
e2e/fixtures/pages.fixture.ts
TypeScript
www.github.com/empawlowski/playwright-online-shop/tree/main/e2e/fixtures/pages.fixture.ts
https://raw.githubusercontent.com/empawlowski/playwright-online-shop/5744666/e2e/fixtures/pages.fixture.ts
empawlowski/playwright-online-shop 5744666 e2e/fixtures/pages.fixture.ts
true
200
1,642
import { LoginPage } from '@_e2e/pages/e2e/authentication/login.page'; import { SignupPage } from '@_e2e/pages/e2e/authentication/signup.page'; import { CartPage } from '@_e2e/pages/e2e/cart.page'; import { CheckoutPage } from '@_e2e/pages/e2e/checkout.page'; import { ContactUsPage } from '@_e2e/pages/e2e/contact-us.pa...
3
SeanCollings/food-diary-client
eef19dc
lib/server-props/index.ts
TypeScript
www.github.com/SeanCollings/food-diary-client/tree/main/lib/server-props/index.ts
https://raw.githubusercontent.com/SeanCollings/food-diary-client/eef19dc/lib/server-props/index.ts
SeanCollings/food-diary-client eef19dc lib/server-props/index.ts
true
200
394
import { GetServerSideProps } from 'next'; import { getSession } from 'next-auth/react'; export const protectedSeverSideProps: GetServerSideProps = async (context) => { const session = await getSession({ req: context.req }); if (!session) { return { redirect: { destination: '/', permanen...
5
izonit/sillyapple
ce0a40e
src/commands/image-manipulaton/advancement-gen.ts
TypeScript
www.github.com/izonit/sillyapple/tree/main/src/commands/image-manipulaton/advancement-gen.ts
https://raw.githubusercontent.com/izonit/sillyapple/ce0a40e/src/commands/image-manipulaton/advancement-gen.ts
izonit/sillyapple ce0a40e src/commands/image-manipulaton/advancement-gen.ts
true
200
3,074
import { Command } from '@sapphire/framework'; import axios from 'axios'; import { emojis } from '../../lib/emojis.json'; export class AdvancementCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, name: 'advancement-gen', ...
0
GroupProjectSecondYear/Drivo-FrontEnd
1ab3d9c
Client/src/app/service/paper-mark/paper-mark-service.service.ts
TypeScript
www.github.com/GroupProjectSecondYear/Drivo-FrontEnd/tree/main/Client/src/app/service/paper-mark/paper-mark-service.service.ts
https://raw.githubusercontent.com/GroupProjectSecondYear/Drivo-FrontEnd/1ab3d9c/Client/src/app/service/paper-mark/paper-mark-service.service.ts
GroupProjectSecondYear/Drivo-FrontEnd 1ab3d9c Client/src/app/service/paper-mark/paper-mark-service.service.ts
true
200
465
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { StudentPaperModel } from '../../ClassModel/StudentPaperModel'; import { API_URL } from '../../app.constants'; @Injectable({ providedIn: 'root' }) export class PaperMarkServiceService { constructor( private ...
2
loveagile/PARTNER_ASFEEL
30c0dc5
partner/models/clubTypeMediumCategories.model.ts
TypeScript
www.github.com/loveagile/PARTNER_ASFEEL/tree/main/partner/models/clubTypeMediumCategories.model.ts
https://raw.githubusercontent.com/loveagile/PARTNER_ASFEEL/30c0dc5/partner/models/clubTypeMediumCategories.model.ts
loveagile/PARTNER_ASFEEL 30c0dc5 partner/models/clubTypeMediumCategories.model.ts
true
200
507
import { Timestamp } from "firebase/firestore"; export class ClubTypeMediumCategory { id?: string; createdAt: Timestamp; updatedAt: Timestamp; name: string; largeCategory: string; index: number; constructor(id: string, createdAt: Timestamp, updatedAt: Timestamp, name: string, largeCategory: string, inde...
7
samvimes01/amplify-job-search-diary
e51fd27
amplify/backend.ts
TypeScript
www.github.com/samvimes01/amplify-job-search-diary/tree/main/amplify/backend.ts
https://raw.githubusercontent.com/samvimes01/amplify-job-search-diary/e51fd27/amplify/backend.ts
samvimes01/amplify-job-search-diary e51fd27 amplify/backend.ts
true
200
697
import { defineBackend } from '@aws-amplify/backend'; import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { auth } from './auth/resource'; import { data } from './data/resource'; import { storage } from './storage/resource'; import { genCoverLetter } from './functions/gen-cover-letter/resource'; impor...
4
Clarke96/fe-demos
3c44b65
angular/apps/signal-store-demo/src/global-store/user/user.actions.ts
TypeScript
www.github.com/Clarke96/fe-demos/tree/main/angular/apps/signal-store-demo/src/global-store/user/user.actions.ts
https://raw.githubusercontent.com/Clarke96/fe-demos/3c44b65/angular/apps/signal-store-demo/src/global-store/user/user.actions.ts
Clarke96/fe-demos 3c44b65 angular/apps/signal-store-demo/src/global-store/user/user.actions.ts
true
200
361
import { createActionGroup, emptyProps, props } from '@ngrx/store'; import { Item } from '../../models/item'; export const UserActions = createActionGroup({ source: 'User', events: { AddToBasket: props<{ item: Item }>(), RemoveFromBasket: props<{ item: Item }>(), ClearBasket: emptyProps(), SetCredi...
1
CodewindOnGithub/apps-template
034f3b3
libs/authentication/shell-web/src/bootstrap.ts
TypeScript
www.github.com/CodewindOnGithub/apps-template/tree/main/libs/authentication/shell-web/src/bootstrap.ts
https://raw.githubusercontent.com/CodewindOnGithub/apps-template/034f3b3/libs/authentication/shell-web/src/bootstrap.ts
CodewindOnGithub/apps-template 034f3b3 libs/authentication/shell-web/src/bootstrap.ts
true
200
760
import { provideHttpClient } from '@angular/common/http'; import { bootstrapApplication } from '@angular/platform-browser'; import { provideRouter, withEnabledBlockingInitialNavigation } from '@angular/router'; import { provideEffects } from '@ngrx/effects'; import { provideStore } from '@ngrx/store'; import { prov...
6
Maumendez21/Examen.NETShopOnlineMauroMM
4c675b3
Frontend/src/app/Pages/products/products.component.ts
TypeScript
www.github.com/Maumendez21/Examen.NETShopOnlineMauroMM/tree/main/Frontend/src/app/Pages/products/products.component.ts
https://raw.githubusercontent.com/Maumendez21/Examen.NETShopOnlineMauroMM/4c675b3/Frontend/src/app/Pages/products/products.component.ts
Maumendez21/Examen.NETShopOnlineMauroMM 4c675b3 Frontend/src/app/Pages/products/products.component.ts
true
200
5,710
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ToastrService } from 'ngx-toastr'; import { Product } from 'src/app/Interfaces/Product.interface'; import { ProductService } from 'src/app/Services/product.service'; declare var $: any; @Com...
5
ivanTrullenque/Reservar-Turnos
aeaf513
back/src/index.ts
TypeScript
www.github.com/ivanTrullenque/Reservar-Turnos/tree/main/back/src/index.ts
https://raw.githubusercontent.com/ivanTrullenque/Reservar-Turnos/aeaf513/back/src/index.ts
ivanTrullenque/Reservar-Turnos aeaf513 back/src/index.ts
true
200
360
import server from "./server"; import { PORT } from "./config/envs"; import "reflect-metadata" import { AppDataSource } from "./config/data-source"; AppDataSource.initialize() .then(()=>{ console.log("Conectado a la base de datos") server.listen(PORT, ()=>{ console.log(`listening on ${PORT}`) }) }...
0
ofcoursefyi/monorepo
74e69a3
packages/retriever/src/fetch.ts
TypeScript
www.github.com/ofcoursefyi/monorepo/tree/main/packages/retriever/src/fetch.ts
https://raw.githubusercontent.com/ofcoursefyi/monorepo/74e69a3/packages/retriever/src/fetch.ts
ofcoursefyi/monorepo 74e69a3 packages/retriever/src/fetch.ts
true
200
1,310
import { validate } from "./validate"; const URL = "https://web-app.usc.edu/web/soc/api"; export const get = { terms: async () => { const res = await fetch(`${URL}/terms`); if (!res.ok) throw new Error("Failed to fetch terms"); return validate.terms.parse(await res.json()); }, departments: async (...
7
electric-sql/d2ts
250ae73
packages/d2ts/tests/operators-sqlite/injection.test.ts
TypeScript
www.github.com/electric-sql/d2ts/tree/main/packages/d2ts/tests/operators-sqlite/injection.test.ts
https://raw.githubusercontent.com/electric-sql/d2ts/250ae73/packages/d2ts/tests/operators-sqlite/injection.test.ts
electric-sql/d2ts 250ae73 packages/d2ts/tests/operators-sqlite/injection.test.ts
true
200
8,156
import { describe, test, expect, beforeEach, afterEach } from 'vitest' import { D2 } from '../../src/d2.js' import { MultiSet } from '../../src/multiset.js' import { Antichain, v } from '../../src/order.js' import { DataMessage, MessageType, KeyValue } from '../../src/types.js' import { output, map } from '../../src/op...
1
Fllorent0D/pokemon-graphql
3abc877
src/@generated/move-flag-map/move-flag-map-upsert-with-where-unique-without-moves.input.ts
TypeScript
www.github.com/Fllorent0D/pokemon-graphql/tree/main/src/@generated/move-flag-map/move-flag-map-upsert-with-where-unique-without-moves.input.ts
https://raw.githubusercontent.com/Fllorent0D/pokemon-graphql/3abc877/src/%40generated/move-flag-map/move-flag-map-upsert-with-where-unique-without-moves.input.ts
Fllorent0D/pokemon-graphql 3abc877 src/@generated/move-flag-map/move-flag-map-upsert-with-where-unique-without-moves.input.ts
true
200
1,008
import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { move_flag_mapWhereUniqueInput } from './move-flag-map-where-unique.input'; import { Type } from 'class-transformer'; import { move_flag_mapUpdateWithoutMovesInput } from './move-flag-map-update-without-moves.input'; import { ...
3
A-S-T-R-A/AstraShop
4e81d5c
config/build/buildLoaders.ts
TypeScript
www.github.com/A-S-T-R-A/AstraShop/tree/main/config/build/buildLoaders.ts
https://raw.githubusercontent.com/A-S-T-R-A/AstraShop/4e81d5c/config/build/buildLoaders.ts
A-S-T-R-A/AstraShop 4e81d5c config/build/buildLoaders.ts
true
200
849
import webpack from "webpack" import { buildCssLoader } from "./loaders/buildCssLoader" import { BuildOptions } from "./types/config" import { buildBabelLoader } from "./loaders/buildBabelLoader" export function buildLoaders(options: BuildOptions): webpack.RuleSetRule[] { const { isDev } = options const svgLo...
6
IliaKrivulin/KinescopeTest-Playwright
2798f45
tests/tokenTest.spec.ts
TypeScript
www.github.com/IliaKrivulin/KinescopeTest-Playwright/tree/main/tests/tokenTest.spec.ts
https://raw.githubusercontent.com/IliaKrivulin/KinescopeTest-Playwright/2798f45/tests/tokenTest.spec.ts
IliaKrivulin/KinescopeTest-Playwright 2798f45 tests/tokenTest.spec.ts
true
200
2,498
// @ts-nocheck import { test, expect } from '@playwright/test'; test('Token test', async ({ page }) => { const locators = { mailInputField: 'Work email', passwordInputField: 'Password', tokenTextLocator: 'div._1xspbv5 > div._1bdq89a._1sw6t2s > div._1xiwm8f._1w45odf.column__left.fals...
4
DominicSieli/computer-science
ce0559a
algorithms/typescript/counting-sort.ts
TypeScript
www.github.com/DominicSieli/computer-science/tree/main/algorithms/typescript/counting-sort.ts
https://raw.githubusercontent.com/DominicSieli/computer-science/ce0559a/algorithms/typescript/counting-sort.ts
DominicSieli/computer-science ce0559a algorithms/typescript/counting-sort.ts
true
200
583
function countingSort(array: number[]) { let min = Math.min(...array); let max = Math.max(...array); let range = (max - min) + 1; let count = new Array(range).fill(0); let sortedArray = new Array(array.length).fill(0); for(let i = 0; i < array.length; i++) count[array[i] - min]++; for(let i = 1; i < count.lengt...
5
purelengend/MERN-CRUD
d39cb4f
backend/src/app.ts
TypeScript
www.github.com/purelengend/MERN-CRUD/tree/main/backend/src/app.ts
https://raw.githubusercontent.com/purelengend/MERN-CRUD/d39cb4f/backend/src/app.ts
purelengend/MERN-CRUD d39cb4f backend/src/app.ts
true
200
1,481
import 'dotenv/config'; import express, { NextFunction, Request, Response } from 'express'; import notesRoutes from './routes/notes'; import userRoutes from './routes/users'; import morgan from 'morgan'; import createHttpError, { isHttpError } from 'http-errors'; import session from 'express-session'; import env from '...
2
Dk0309/Kanban-Board
2317974
src/app/modules/admin/components/card/card.component.ts
TypeScript
www.github.com/Dk0309/Kanban-Board/tree/main/src/app/modules/admin/components/card/card.component.ts
https://raw.githubusercontent.com/Dk0309/Kanban-Board/2317974/src/app/modules/admin/components/card/card.component.ts
Dk0309/Kanban-Board 2317974 src/app/modules/admin/components/card/card.component.ts
true
200
669
import { Component, OnInit } from '@angular/core'; import { WorkspaceService } from 'src/app/services/workspace.service'; import { FormControl, FormGroup, Validators } from '@angular/forms'; @Component({ selector: 'app-card', templateUrl: './card.component.html', styleUrls: ['./card.component.css'] }) export cla...
1
SLeep-Room/SLeepRW-Public
f03412b
src/data/bean/battle/module.ts
TypeScript
www.github.com/SLeep-Room/SLeepRW-Public/tree/main/src/data/bean/battle/module.ts
https://raw.githubusercontent.com/SLeep-Room/SLeepRW-Public/f03412b/src/data/bean/battle/module.ts
SLeep-Room/SLeepRW-Public f03412b src/data/bean/battle/module.ts
true
200
790
import {Buffer} from 'buffer' import BufferWriter from '../../../util/buffer/BufferWriter'; import BufferReader from '../../../util/buffer/BufferReader'; interface Module { id : number; statue : number; } class Module { static DefaultData: Module = { id : 0, statue : 0, } static Unmarshal(buffer: Bu...
3
xschildw/synapse-web-monorepo-test
fc5ffcf
packages/synapse-react-client/src/lib/utils/hooks/SynapseAPI/KeyFactory.ts
TypeScript
www.github.com/xschildw/synapse-web-monorepo-test/tree/main/packages/synapse-react-client/src/lib/utils/hooks/SynapseAPI/KeyFactory.ts
https://raw.githubusercontent.com/xschildw/synapse-web-monorepo-test/fc5ffcf/packages/synapse-react-client/src/lib/utils/hooks/SynapseAPI/KeyFactory.ts
xschildw/synapse-web-monorepo-test fc5ffcf packages/synapse-react-client/src/lib/utils/hooks/SynapseAPI/KeyFactory.ts
true
200
16,820
import { SubmissionSearchRequest } from '../../synapseTypes/AccessSubmission' import { AccessApprovalSearchRequest, BatchFileRequest, EntityBundleRequest, EntityChildrenRequest, FileHandle, QueryBundleRequest, ReferenceList, RestrictionInformationRequest, TYPE_FILTER, } from '../../synapseTypes' impor...
6
gregory051184/my_ivi
f6a2206
apps/gateway_api/src/Controllers/roles_gateway_api.controller.ts
TypeScript
www.github.com/gregory051184/my_ivi/tree/main/apps/gateway_api/src/Controllers/roles_gateway_api.controller.ts
https://raw.githubusercontent.com/gregory051184/my_ivi/f6a2206/apps/gateway_api/src/Controllers/roles_gateway_api.controller.ts
gregory051184/my_ivi f6a2206 apps/gateway_api/src/Controllers/roles_gateway_api.controller.ts
true
200
2,600
import {Body, Controller, Delete, Get, Inject, Param, Post, Put, UseGuards} from '@nestjs/common'; import {ClientProxy} from "@nestjs/microservices"; import {CreateRoleGTO} from "../../../roles/src/ROLES_DTO/role_create_dto"; import {Role, Roles, RolesGuard} from "@lib/global"; import {ApiOperation, ApiResponse, ApiTag...
1
Black-Forrest-Development/open-event
4ab81bc
src/main/webapp/src/app/auth/auth.service.ts
TypeScript
www.github.com/Black-Forrest-Development/open-event/tree/main/src/main/webapp/src/app/auth/auth.service.ts
https://raw.githubusercontent.com/Black-Forrest-Development/open-event/4ab81bc/src/main/webapp/src/app/auth/auth.service.ts
Black-Forrest-Development/open-event 4ab81bc src/main/webapp/src/app/auth/auth.service.ts
true
200
3,261
import {Injectable} from '@angular/core'; import {KeycloakService} from "keycloak-angular"; import {Principal} from "./principal"; import {environment} from "../../environments/environment"; @Injectable({ providedIn: 'root' }) export class AuthService { public static SETTINGS_READ = "openevent.settings.read" p...
3
Mshafei2010/buy-and-sell
fb56af8
src/app/editing-listings-page/editing-listings-page.component.ts
TypeScript
www.github.com/Mshafei2010/buy-and-sell/tree/main/src/app/editing-listings-page/editing-listings-page.component.ts
https://raw.githubusercontent.com/Mshafei2010/buy-and-sell/fb56af8/src/app/editing-listings-page/editing-listings-page.component.ts
Mshafei2010/buy-and-sell fb56af8 src/app/editing-listings-page/editing-listings-page.component.ts
true
200
1,086
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { fakeMyListings } from '../fake-data'; import { ListingsService } from '../listings.service'; import { Listing } from '../types'; @Component({ selector: 'app-editing-listings-page', templateUrl: './...
0
villgard/movie-catalogue
a5a0459
vite.config.ts
TypeScript
www.github.com/villgard/movie-catalogue/tree/main/vite.config.ts
https://raw.githubusercontent.com/villgard/movie-catalogue/a5a0459/vite.config.ts
villgard/movie-catalogue a5a0459 vite.config.ts
true
200
538
import { fileURLToPath, URL } from 'node:url'; import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import svgLoader from 'vite-svg-loader'; import vueTypeImports from 'vite-plugin-vue-type-imports'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), svgLoader...
6
0x006E/linkup
ccb34d9
server/src/routes/auth.ts
TypeScript
www.github.com/0x006E/linkup/tree/main/server/src/routes/auth.ts
https://raw.githubusercontent.com/0x006E/linkup/ccb34d9/server/src/routes/auth.ts
0x006E/linkup ccb34d9 server/src/routes/auth.ts
true
200
565
import express from "express" import { forgotPasswordController, loginController, logoutController, registerController } from "../controllers/auth.controller" import { checkLoggedIn, passportAuth } from "../middlewares/checkAuthentication" const authRouter = express.Router() authRouter.post("/login", checkLoggedIn,pa...
0
Shark-Auction/front-end
05bdb72
src/model/auction.ts
TypeScript
www.github.com/Shark-Auction/front-end/tree/main/src/model/auction.ts
https://raw.githubusercontent.com/Shark-Auction/front-end/05bdb72/src/model/auction.ts
Shark-Auction/front-end 05bdb72 src/model/auction.ts
true
200
1,337
export interface UserAuction { id: number; full_name: string; user_name: string; phone_number: string; email: string; address: string; imageUrl: string; date_of_birth: string; role_id: { id: number; name: string; }; email_verified: boolean; is_active: boolean; } interface Category { i...
3
Leon0102/task3-ddd
df01395
src/history/history.module.ts
TypeScript
www.github.com/Leon0102/task3-ddd/tree/main/src/history/history.module.ts
https://raw.githubusercontent.com/Leon0102/task3-ddd/df01395/src/history/history.module.ts
Leon0102/task3-ddd df01395 src/history/history.module.ts
true
200
479
/* eslint-disable prettier/prettier */ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { HistoryService } from 'src/history/history.service'; import { HistoryController } from './history.controller'; import { HistoryRepository } from './history.repository'; @Module({ ...
6
jiahui0309/jobHub
9de3e09
hooks/useJobHooks.ts
TypeScript
www.github.com/jiahui0309/jobHub/tree/main/hooks/useJobHooks.ts
https://raw.githubusercontent.com/jiahui0309/jobHub/9de3e09/hooks/useJobHooks.ts
jiahui0309/jobHub 9de3e09 hooks/useJobHooks.ts
true
200
1,407
import { useMutation, useQuery } from '@tanstack/react-query'; import axios from 'axios'; import { queryClient } from '@/context/ReactQueryProvider'; import { Job } from '@/types/job'; export const useCreateJobMutation = () => useMutation({ mutationFn: async (jobData: Job) => (await axios.post('/api/job',...
1
Crispyshill/Aromatherapy
6948160
public/aroma/src/app/essentialoils/essentialoils.component.ts
TypeScript
www.github.com/Crispyshill/Aromatherapy/tree/main/public/aroma/src/app/essentialoils/essentialoils.component.ts
https://raw.githubusercontent.com/Crispyshill/Aromatherapy/6948160/public/aroma/src/app/essentialoils/essentialoils.component.ts
Crispyshill/Aromatherapy 6948160 public/aroma/src/app/essentialoils/essentialoils.component.ts
true
200
3,296
import { Component, OnInit } from '@angular/core'; import { Essentialoil } from '../essentialoil.service'; import { EssentialoilDataService } from '../essentialoil-data.service'; import { Router, NavigationExtras } from '@angular/router'; import { AuthenticationService } from '../authentication.service'; import { envi...
0
RickyTickyTavy69/AiBackend
e8f937c
src/auth/auth.guard.ts
TypeScript
www.github.com/RickyTickyTavy69/AiBackend/tree/main/src/auth/auth.guard.ts
https://raw.githubusercontent.com/RickyTickyTavy69/AiBackend/e8f937c/src/auth/auth.guard.ts
RickyTickyTavy69/AiBackend e8f937c src/auth/auth.guard.ts
true
200
1,301
import {CanActivate, ExecutionContext, Injectable, UnauthorizedException} from '@nestjs/common'; import {Request} from 'express'; import { Reflector } from '@nestjs/core'; import {JwtService } from '@nestjs/jwt'; import { IS_PUBLIC_KEY } from './public-strategy'; @Injectable() export class AuthGuard implements CanAct...
3
nappernick/llm-gui
aaffd09
api/src/services/embeddings/embeddings.scenarios.ts
TypeScript
www.github.com/nappernick/llm-gui/tree/main/api/src/services/embeddings/embeddings.scenarios.ts
https://raw.githubusercontent.com/nappernick/llm-gui/aaffd09/api/src/services/embeddings/embeddings.scenarios.ts
nappernick/llm-gui aaffd09 api/src/services/embeddings/embeddings.scenarios.ts
true
200
402
import type { Embedding, Prisma } from '@prisma/client' import type { ScenarioData } from '@redwoodjs/testing/api' export const standard = defineScenario<Prisma.EmbeddingCreateArgs>({ queryEmbedding: { one: { data: { text: 'String', vector: 'String' } }, two: { data: { text: 'String', vector: 'String' } }, ...
6
rodolfole/angular-real-state
6c16585
src/app/services/auth.service.ts
TypeScript
www.github.com/rodolfole/angular-real-state/tree/main/src/app/services/auth.service.ts
https://raw.githubusercontent.com/rodolfole/angular-real-state/6c16585/src/app/services/auth.service.ts
rodolfole/angular-real-state 6c16585 src/app/services/auth.service.ts
true
200
2,744
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { EventEmitter, Injectable } from '@angular/core'; import { catchError, map, throwError } from 'rxjs'; import { environment } from '../../environments/environment'; import { SafeUser } from '../types'; import { getStorage, removeStorage, setStorage...
1
ppdx999/ts-errorset
c935dcf
extensible-error.ts
TypeScript
www.github.com/ppdx999/ts-errorset/tree/main/extensible-error.ts
https://raw.githubusercontent.com/ppdx999/ts-errorset/c935dcf/extensible-error.ts
ppdx999/ts-errorset c935dcf extensible-error.ts
true
200
1,899
// This code is highly inspired by // https://github.com/necojackarc/extensible-custom-error/tree/master // The MIT License (MIT) // Thank you to necojackarc export class ExtensibleError extends Error { constructor(message?: string, err?: Error) { super(message); // Align with Object.getOwnPropertyDescripto...
3
dev-030/ecommerce
145e1ea
app/api/order/route.ts
TypeScript
www.github.com/dev-030/ecommerce/tree/main/app/api/order/route.ts
https://raw.githubusercontent.com/dev-030/ecommerce/145e1ea/app/api/order/route.ts
dev-030/ecommerce 145e1ea app/api/order/route.ts
true
200
545
import { getCurrentUser } from "@/actions/getCurrentUser"; import prisma from "@/libs/prismaClient"; import { NextResponse } from "next/server"; export async function PUT(request:Request){ const currentUser = await getCurrentUser(); if(!currentUser) return NextResponse.error(); if(currentUser.role !== 'ADMIN') r...
0
kaiquye/DDD-NODEJS
686d8dd
server/src/infra/database/prisma/team-repository-prisma.ts
TypeScript
www.github.com/kaiquye/DDD-NODEJS/tree/main/server/src/infra/database/prisma/team-repository-prisma.ts
https://raw.githubusercontent.com/kaiquye/DDD-NODEJS/686d8dd/server/src/infra/database/prisma/team-repository-prisma.ts
kaiquye/DDD-NODEJS 686d8dd server/src/infra/database/prisma/team-repository-prisma.ts
true
200
1,273
import { ITeamRepository } from "../../../application/team/repository/team-repository-interface"; import { Team } from "../../../domain/models/team-model"; import { PrismaClient } from "@prisma/client"; export class TeamRepositoryPrisma implements ITeamRepository { private readonly prisma: PrismaClient; constructo...
6
decentraland/reels
837ba05
src/worker/image.ts
TypeScript
www.github.com/decentraland/reels/tree/main/src/worker/image.ts
https://raw.githubusercontent.com/decentraland/reels/837ba05/src/worker/image.ts
decentraland/reels 837ba05 src/worker/image.ts
true
200
969
import { OpenGraphWriterOptions } from "./writer" import { Image } from "../@types/image" export async function getImageOpenGraph( imageId: string, reelServiceUrl: string ) { try { const imageResponse = await fetch( `${reelServiceUrl}/api/images/${imageId}/metadata` ) const imagesResult: Image...
1
dilyor91/dbridgeapptestrepo
41011e6
src/main/webapp/app/entities/tb-board-view-cnt/detail/tb-board-view-cnt-detail.component.spec.ts
TypeScript
www.github.com/dilyor91/dbridgeapptestrepo/tree/main/src/main/webapp/app/entities/tb-board-view-cnt/detail/tb-board-view-cnt-detail.component.spec.ts
https://raw.githubusercontent.com/dilyor91/dbridgeapptestrepo/41011e6/src/main/webapp/app/entities/tb-board-view-cnt/detail/tb-board-view-cnt-detail.component.spec.ts
dilyor91/dbridgeapptestrepo 41011e6 src/main/webapp/app/entities/tb-board-view-cnt/detail/tb-board-view-cnt-detail.component.spec.ts
true
200
1,107
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ActivatedRoute } from '@angular/router'; import { of } from 'rxjs'; import { TbBoardViewCntDetailComponent } from './tb-board-view-cnt-detail.component'; describe('TbBoardViewCnt Management Detail Component', () => { let comp: TbBoardViewCn...
3
future4code/julian-labook5
dcafd40
src/controller/UserController.ts
TypeScript
www.github.com/future4code/julian-labook5/tree/main/src/controller/UserController.ts
https://raw.githubusercontent.com/future4code/julian-labook5/dcafd40/src/controller/UserController.ts
future4code/julian-labook5 dcafd40 src/controller/UserController.ts
true
200
6,667
import express, { Request, Response } from "express"; import { Authenticator } from "../services/Authenticator"; import { FriendDatabase } from "../data/FriendDatabase"; import { UserDatabase } from "../data/UserDatabase"; import { PostDatabase } from "../data/PostDatabase"; import {InviteFriendDTO, UndoFriendshipDTO} ...
6
roman-t-nor/translator
e37ccd1
frontend/src/app/components/list/read/popup/body/edit/edit.component.ts
TypeScript
www.github.com/roman-t-nor/translator/tree/main/frontend/src/app/components/list/read/popup/body/edit/edit.component.ts
https://raw.githubusercontent.com/roman-t-nor/translator/e37ccd1/frontend/src/app/components/list/read/popup/body/edit/edit.component.ts
roman-t-nor/translator e37ccd1 frontend/src/app/components/list/read/popup/body/edit/edit.component.ts
true
200
633
import { Component } from '@angular/core'; import { Entry } from '@/Entry'; import { FormsModule } from '@angular/forms'; import { ReadService } from '@/services/read.service'; @Component({ selector: 'edit', standalone: true, templateUrl: 'edit.component.html', imports: [FormsModule], }) export class EditCompo...
0
ani3321r/next.js-practice
cdacb89
secretmessage/src/model/User.ts
TypeScript
www.github.com/ani3321r/next.js-practice/tree/main/secretmessage/src/model/User.ts
https://raw.githubusercontent.com/ani3321r/next.js-practice/cdacb89/secretmessage/src/model/User.ts
ani3321r/next.js-practice cdacb89 secretmessage/src/model/User.ts
true
200
1,474
import mongoose, {Schema, Document} from "mongoose"; export interface Message extends Document{ content: string; createdAt: Date } const MessageSchema: Schema<Message> = new Schema({ content: { type: String, required: true, }, createdAt: { type: Date, required: true...
1
Ahmed11711/render
7353a28
src/common/Provider/otp/sendGrid/sendgrid.service.ts
TypeScript
www.github.com/Ahmed11711/render/tree/main/src/common/Provider/otp/sendGrid/sendgrid.service.ts
https://raw.githubusercontent.com/Ahmed11711/render/7353a28/src/common/Provider/otp/sendGrid/sendgrid.service.ts
Ahmed11711/render 7353a28 src/common/Provider/otp/sendGrid/sendgrid.service.ts
true
200
2,884
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { MailService } from '@sendgrid/mail'; import { TypeOtp } from 'src/modules/otp/enum/typeOtp.snum'; @Injectable() export class SendGridService { private readonly mailService: MailService; constructor() { this.m...
3
yusuf-cirak/ArticleExamples
6cea5aa
AspNetAngularSamePort/frontend/src/app/app.module.ts
TypeScript
www.github.com/yusuf-cirak/ArticleExamples/tree/main/AspNetAngularSamePort/frontend/src/app/app.module.ts
https://raw.githubusercontent.com/yusuf-cirak/ArticleExamples/6cea5aa/AspNetAngularSamePort/frontend/src/app/app.module.ts
yusuf-cirak/ArticleExamples 6cea5aa AspNetAngularSamePort/frontend/src/app/app.module.ts
true
200
765
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouterModule, Routes } from '@angular/router'; import { AppComponent } from './app.component'; import { NotFoundComponent } from './not-found/not-found.component'; import { HomeComponent } from './home/home.co...
6
sugurufukui/tokushi-kyouzai
87c7507
front/src/hooks/material/useEditMaterial.ts
TypeScript
www.github.com/sugurufukui/tokushi-kyouzai/tree/main/front/src/hooks/material/useEditMaterial.ts
https://raw.githubusercontent.com/sugurufukui/tokushi-kyouzai/87c7507/front/src/hooks/material/useEditMaterial.ts
sugurufukui/tokushi-kyouzai 87c7507 front/src/hooks/material/useEditMaterial.ts
true
200
3,205
import { useContext, useEffect, useState } from "react"; import { useHistory, useParams } from "react-router-dom"; import { getDetailMaterial, updateMaterial } from "lib/api/material"; import { useImageUpload } from "hooks/material/useImageUpload"; import { AuthContext } from "providers/AuthProvider"; import { useSnac...
0
samheyman/self-driving-car
30bb84d
src/controls.ts
TypeScript
www.github.com/samheyman/self-driving-car/tree/main/src/controls.ts
https://raw.githubusercontent.com/samheyman/self-driving-car/30bb84d/src/controls.ts
samheyman/self-driving-car 30bb84d src/controls.ts
true
200
1,309
export class Controls { forward: boolean | null; reverse: boolean | null; left: boolean | null; right: boolean | null; constructor( forward: boolean = false, reverse: boolean = false, left: boolean = false, right: boolean = false ) { this.forward = forward; this.reverse = reverse; ...
1
Spanserki/gestor-tickets
5163222
src/pages/api/ticket/index.ts
TypeScript
www.github.com/Spanserki/gestor-tickets/tree/main/src/pages/api/ticket/index.ts
https://raw.githubusercontent.com/Spanserki/gestor-tickets/5163222/src/pages/api/ticket/index.ts
Spanserki/gestor-tickets 5163222 src/pages/api/ticket/index.ts
true
200
2,587
import { prisma } from "@/lib/prisma"; import { GetDateWithFinalHour, GetDateWithInitialHour } from "@/utils/format"; import { addDays } from "date-fns"; import { NextApiRequest, NextApiResponse } from "next"; import { createRouter } from "next-connect"; const handler = createRouter<NextApiRequest, NextApiResponse>();...
3
hshijing/datingForum
e65cdab
easybbs-admin/src/stores/index.ts
TypeScript
www.github.com/hshijing/datingForum/tree/main/easybbs-admin/src/stores/index.ts
https://raw.githubusercontent.com/hshijing/datingForum/e65cdab/easybbs-admin/src/stores/index.ts
hshijing/datingForum e65cdab easybbs-admin/src/stores/index.ts
true
200
508
import { createPinia } from "pinia"; import pin from "pinia-plugin-persistedstate"; import { defineStore } from 'pinia' import { ref } from 'vue' const store = createPinia(); export const UserStore = defineStore( 'User-store', () => { const deactivate = ref<string>() //菜单高亮选中 const Updatedeactivate = (date:...
1
danielOuattara/React_John_Smilga
daa5513
33_NextJS_Typescript/src/utils/actions.ts
TypeScript
www.github.com/danielOuattara/React_John_Smilga/tree/main/33_NextJS_Typescript/src/utils/actions.ts
https://raw.githubusercontent.com/danielOuattara/React_John_Smilga/daa5513/33_NextJS_Typescript/src/utils/actions.ts
danielOuattara/React_John_Smilga daa5513 33_NextJS_Typescript/src/utils/actions.ts
true
200
3,063
"use server"; import { readFile, writeFile } from "fs/promises"; import { revalidatePath } from "next/cache"; // import { redirect } from "next/navigation"; // export const createUser = async (formData: FormData) => { // const firstName = formData.get("firstName") as string; // const lastName = formData.get("last...
6
chrisdel101/cs476-project
00478da
src/controllers/AccountScreen/donationController.ts
TypeScript
www.github.com/chrisdel101/cs476-project/tree/main/src/controllers/AccountScreen/donationController.ts
https://raw.githubusercontent.com/chrisdel101/cs476-project/00478da/src/controllers/AccountScreen/donationController.ts
chrisdel101/cs476-project 00478da src/controllers/AccountScreen/donationController.ts
true
200
4,576
import { ItemStates, Notifications, Observers, UserTypes, } from '../../../constants' import crudFunctions from '../../api/crudFunctions' import User from '../../models/abstractClasses/User' import Item from '../../models/Item' interface FProps { item: Item notify: ( observerID: string, notificatio...
0
Ahmed-Mhm/angular
8c0d67c
src/app/admin/role/role-routing.module.ts
TypeScript
www.github.com/Ahmed-Mhm/angular/tree/main/src/app/admin/role/role-routing.module.ts
https://raw.githubusercontent.com/Ahmed-Mhm/angular/8c0d67c/src/app/admin/role/role-routing.module.ts
Ahmed-Mhm/angular 8c0d67c src/app/admin/role/role-routing.module.ts
true
200
857
import { NgModule } from "@angular/core"; import { Routes, RouterModule } from "@angular/router"; import { Page404Component } from "./../../authentication/page404/page404.component"; import { AllRolesComponent } from "./allroles/allroles.component"; import { AddRoleComponent } from "./addrole/addrole.component"; import...
3
JablDouble/boston-taxi
7066218
src/app/data/service/trip-data.service.ts
TypeScript
www.github.com/JablDouble/boston-taxi/tree/main/src/app/data/service/trip-data.service.ts
https://raw.githubusercontent.com/JablDouble/boston-taxi/7066218/src/app/data/service/trip-data.service.ts
JablDouble/boston-taxi 7066218 src/app/data/service/trip-data.service.ts
true
200
2,244
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { concatAll, first, map, Observable } from 'rxjs'; import { Coordinate } from 'src/app/shared/types'; import { environment } from 'src/environments/environment'; import { TaxiDriver, Trip, TripResponse, TripStatus } fr...
7
imericxu/mazejs
3fef001
src/lib/MazeCell.ts
TypeScript
www.github.com/imericxu/mazejs/tree/main/src/lib/MazeCell.ts
https://raw.githubusercontent.com/imericxu/mazejs/3fef001/src/lib/MazeCell.ts
imericxu/mazejs 3fef001 src/lib/MazeCell.ts
true
200
2,174
import { type Idx2d } from "./twoDimens"; export type CellState = "empty" | "partial" | "solid"; /** Represents a single cell in a maze. */ export class MazeCell { /** State used for rendering. */ state: CellState = "empty"; get idx2d(): Readonly<Idx2d> { return this._idx2d; } get row(): number { ...
1
JoelTorresGluo/starterkit-composable
5a69a26
apps/storefront/src/modules/server/api/routers/commerce/procedures/customer/get-order.ts
TypeScript
www.github.com/JoelTorresGluo/starterkit-composable/tree/main/apps/storefront/src/modules/server/api/routers/commerce/procedures/customer/get-order.ts
https://raw.githubusercontent.com/JoelTorresGluo/starterkit-composable/5a69a26/apps/storefront/src/modules/server/api/routers/commerce/procedures/customer/get-order.ts
JoelTorresGluo/starterkit-composable 5a69a26 apps/storefront/src/modules/server/api/routers/commerce/procedures/customer/get-order.ts
true
200
1,080
import { CurrencySchema, LocaleSchema } from '@oriuminc/base' import { TRPCError } from '@trpc/server' import { publicProcedure } from '@modules/server/api/trpc' import { withRetry } from '@modules/utils' import { z } from 'zod' export const getOrder = publicProcedure .input( z.object({ orderId: z.string()...
4
Rudenwork/Signals
621c752
Signals.Web/ClientApp/src/app/components/users/user-form/user-form.component.ts
TypeScript
www.github.com/Rudenwork/Signals/tree/main/Signals.Web/ClientApp/src/app/components/users/user-form/user-form.component.ts
https://raw.githubusercontent.com/Rudenwork/Signals/621c752/Signals.Web/ClientApp/src/app/components/users/user-form/user-form.component.ts
Rudenwork/Signals 621c752 Signals.Web/ClientApp/src/app/components/users/user-form/user-form.component.ts
true
200
2,739
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { User } from 'src/app/models/user.model'; import { ModalComponent } from '../../modal/modal.component'; @Component({ selector: 'app-user-form', templateUr...
6
kjigian/city-drifter-game
3e03bb3
game/objects/city-map.ts
TypeScript
www.github.com/kjigian/city-drifter-game/tree/main/game/objects/city-map.ts
https://raw.githubusercontent.com/kjigian/city-drifter-game/3e03bb3/game/objects/city-map.ts
kjigian/city-drifter-game 3e03bb3 game/objects/city-map.ts
true
200
2,969
import Phaser from "phaser" export class CityMap { private scene: Phaser.Scene private tileSize = 128 private mapWidth = 40 private mapHeight = 40 private roadTiles: Phaser.GameObjects.TileSprite[] = [] private buildings: Phaser.GameObjects.Sprite[] = [] constructor(scene: Phaser.Scene) { this.scene...
2
MHNS-CS2/backend
1bf4b2b
src/auth/infrastructure/migrations/1712678424813-AuthConfirmTable.ts
TypeScript
www.github.com/MHNS-CS2/backend/tree/main/src/auth/infrastructure/migrations/1712678424813-AuthConfirmTable.ts
https://raw.githubusercontent.com/MHNS-CS2/backend/1bf4b2b/src/auth/infrastructure/migrations/1712678424813-AuthConfirmTable.ts
MHNS-CS2/backend 1bf4b2b src/auth/infrastructure/migrations/1712678424813-AuthConfirmTable.ts
true
200
1,227
import {MigrationInterface, QueryRunner} from '@steroidsjs/typeorm'; export class AuthConfirmTable1712678424813 implements MigrationInterface { name = 'AuthConfirmTable1712678424813' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(` CREATE TABLE "auth_con...
3
mahmoud-syam/Fresh-Cart
fa0d42b
src/app/shared/interfaces/product.ts
TypeScript
www.github.com/mahmoud-syam/Fresh-Cart/tree/main/src/app/shared/interfaces/product.ts
https://raw.githubusercontent.com/mahmoud-syam/Fresh-Cart/fa0d42b/src/app/shared/interfaces/product.ts
mahmoud-syam/Fresh-Cart fa0d42b src/app/shared/interfaces/product.ts
true
200
942
// export interface Product { // imageCover: string; // title: string; // category: {name:string} // price:number; // ratingsAverage:number; // _id:string; // description:string; // images:[]; // } export interface Product { sold: number images: string[] subcategory: Subcate...
5
ceduardodch/mapis-app
07901ac
src/app/mapis2/acciones2/acciones2.module.ts
TypeScript
www.github.com/ceduardodch/mapis-app/tree/main/src/app/mapis2/acciones2/acciones2.module.ts
https://raw.githubusercontent.com/ceduardodch/mapis-app/07901ac/src/app/mapis2/acciones2/acciones2.module.ts
ceduardodch/mapis-app 07901ac src/app/mapis2/acciones2/acciones2.module.ts
true
200
493
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { Acciones2PageRoutingModule } from './acciones2-routing.module'; import { Acciones2Page } from './acciones2.page'; @NgModule({...
7
userfrosting/theme-pink-cupcake
288f0e3
src/tests/components/Content/FormRegister.test.ts
TypeScript
www.github.com/userfrosting/theme-pink-cupcake/tree/main/src/tests/components/Content/FormRegister.test.ts
https://raw.githubusercontent.com/userfrosting/theme-pink-cupcake/288f0e3/src/tests/components/Content/FormRegister.test.ts
userfrosting/theme-pink-cupcake 288f0e3 src/tests/components/Content/FormRegister.test.ts
true
200
7,512
import { ref } from 'vue' import { mount, config } from '@vue/test-utils' import { describe, test, expect, vi, afterEach } from 'vitest' import UIkit from 'uikit' import type { UserInterface, RegisterRequest } from '@userfrosting/sprinkle-account/interfaces' import { useRegisterApi } from '@userfrosting/sprinkle-accoun...
1
wujinhjun/auto-create-page
c4e4ef9
packages/ui/src/utils/retry.ts
TypeScript
www.github.com/wujinhjun/auto-create-page/tree/main/packages/ui/src/utils/retry.ts
https://raw.githubusercontent.com/wujinhjun/auto-create-page/c4e4ef9/packages/ui/src/utils/retry.ts
wujinhjun/auto-create-page c4e4ef9 packages/ui/src/utils/retry.ts
true
200
822
export default function retryFn<T>( fn: () => Promise<T>, maxCount = 3, interval = 1000 ): Promise<T> { let count = 0; const errors: unknown[] = []; return new Promise((resolve, reject) => { const basicFn = async () => { try { const res = await fn(); resolve(res); ...
4
ivportilla/dsa-study-record
0ec452e
algorithms/hash/maps/longest-substr-unique-chars.ts
TypeScript
www.github.com/ivportilla/dsa-study-record/tree/main/algorithms/hash/maps/longest-substr-unique-chars.ts
https://raw.githubusercontent.com/ivportilla/dsa-study-record/0ec452e/algorithms/hash/maps/longest-substr-unique-chars.ts
ivportilla/dsa-study-record 0ec452e algorithms/hash/maps/longest-substr-unique-chars.ts
true
200
994
/* Given a string s, find the length of the longest substring without repeating characters. */ /* TC: O(n) SC: O(n) */ function lengthOfLongestSubstring(s: string): number { const map = new Map<string, number>(); let left = 0; let ans = 0; for (let right = 0; right < s.length; right++) { map.set(s...
6
tedwin007/Boilerplate-playground
b240aa8
tw/tools/generators/shared/saveSwaggerFile.ts
TypeScript
www.github.com/tedwin007/Boilerplate-playground/tree/main/tw/tools/generators/shared/saveSwaggerFile.ts
https://raw.githubusercontent.com/tedwin007/Boilerplate-playground/b240aa8/tw/tools/generators/shared/saveSwaggerFile.ts
tedwin007/Boilerplate-playground b240aa8 tw/tools/generators/shared/saveSwaggerFile.ts
true
200
448
import * as fs from "fs"; import * as path from "path"; export async function saveSwaggerFile(folderPath: string, data: any) { try { if (!fs.existsSync(folderPath)) { throw new Error('Could not find dest path in: ' + folderPath); } const destPath = path.join(folderPath, 'swagger...
5
fcasibu/node-projects
6613c0c
arrayMethods/myEvery.spec.ts
TypeScript
www.github.com/fcasibu/node-projects/tree/main/arrayMethods/myEvery.spec.ts
https://raw.githubusercontent.com/fcasibu/node-projects/6613c0c/arrayMethods/myEvery.spec.ts
fcasibu/node-projects 6613c0c arrayMethods/myEvery.spec.ts
true
200
587
import MyArray from "."; describe("#myEvery", () => { it("should return false if every elements in the array does not satisfy the condition in the predicate", () => { const array = new MyArray(1, 2, 3, 4, 5); const expected = array.myEvery((element) => element <= 4); expect(expected).toBeFalsy(); }); ...
3
manikantachalla/express-typescript-sequelize
8365058
src/controllers/user.controller.ts
TypeScript
www.github.com/manikantachalla/express-typescript-sequelize/tree/main/src/controllers/user.controller.ts
https://raw.githubusercontent.com/manikantachalla/express-typescript-sequelize/8365058/src/controllers/user.controller.ts
manikantachalla/express-typescript-sequelize 8365058 src/controllers/user.controller.ts
true
200
1,323
// src/controllers/user.controller.ts import { Request, Response, NextFunction } from 'express'; import User from '../models/user.model'; import sequelize from '../config/database'; export class UserController { async createUser(req: Request, res: Response, next: NextFunction) { const { name, email } = req.body...
7
Cat-Training-Force/tongji-code
dc6013d
src/vs/workbench/contrib/search/test/browser/searchModel.test.ts
TypeScript
www.github.com/Cat-Training-Force/tongji-code/tree/main/src/vs/workbench/contrib/search/test/browser/searchModel.test.ts
https://raw.githubusercontent.com/Cat-Training-Force/tongji-code/dc6013d/src/vs/workbench/contrib/search/test/browser/searchModel.test.ts
Cat-Training-Force/tongji-code dc6013d src/vs/workbench/contrib/search/test/browser/searchModel.test.ts
true
200
26,313
/*--------------------------------------------------------------------------------------------- * Copyright (c) Tongji University. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------------------------------------...
0
hpgo6688/lifi-route-test-slippage-too-large
2387d7d
server.ts
TypeScript
www.github.com/hpgo6688/lifi-route-test-slippage-too-large/tree/main/server.ts
https://raw.githubusercontent.com/hpgo6688/lifi-route-test-slippage-too-large/2387d7d/server.ts
hpgo6688/lifi-route-test-slippage-too-large 2387d7d server.ts
true
200
599
import express, { Request, Response, NextFunction } from 'express'; import { createProxyMiddleware, RequestHandler } from 'http-proxy-middleware'; import dotenv from 'dotenv'; dotenv.config(); const app = express(); app.use( '/', createProxyMiddleware({ target: 'https://li.quest', changeOrigin: true, ...
1
lightdash/lightdash
c0d9d30
packages/warehouses/src/warehouseClients/BigqueryWarehouseClient.test.ts
TypeScript
www.github.com/lightdash/lightdash/tree/main/packages/warehouses/src/warehouseClients/BigqueryWarehouseClient.test.ts
https://raw.githubusercontent.com/lightdash/lightdash/c0d9d30/packages/warehouses/src/warehouseClients/BigqueryWarehouseClient.test.ts
lightdash/lightdash c0d9d30 packages/warehouses/src/warehouseClients/BigqueryWarehouseClient.test.ts
true
200
1,491
import { Dataset } from '@google-cloud/bigquery'; import { BigqueryWarehouseClient } from './BigqueryWarehouseClient'; import { createJobResponse, credentials, getTableResponse, } from './BigqueryWarehouseClient.mock'; import { config, expectedFields, expectedRow, expectedWarehouseSchema, } ...
4
ddekerr/team-project-server
e521417
src/modules/orders/orders.controller.ts
TypeScript
www.github.com/ddekerr/team-project-server/tree/main/src/modules/orders/orders.controller.ts
https://raw.githubusercontent.com/ddekerr/team-project-server/e521417/src/modules/orders/orders.controller.ts
ddekerr/team-project-server e521417 src/modules/orders/orders.controller.ts
true
200
2,448
import { Body, Controller, Delete, Get, HttpCode, Param, ParseIntPipe, Patch, Post, Query } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { OrdersService } from './orders.service'; import { CreateOrderDto } from './dto/create-order.dto'; import { Order, OrderDocument } from './schemas/order....
6
codex49/CoinTracker
0d78797
client/src/app/components/raydium/raydium.component.ts
TypeScript
www.github.com/codex49/CoinTracker/tree/main/client/src/app/components/raydium/raydium.component.ts
https://raw.githubusercontent.com/codex49/CoinTracker/0d78797/client/src/app/components/raydium/raydium.component.ts
codex49/CoinTracker 0d78797 client/src/app/components/raydium/raydium.component.ts
true
200
682
import { Component } from '@angular/core'; import { NewCoinsService } from 'src/app/services/newCoins.service'; @Component({ selector: 'app-raydium', templateUrl: './raydium.component.html', styleUrls: ['./raydium.component.css'] }) export class RaydiumComponent { tokens: any[] = []; constructor(private newC...
2
Ivan-Oliinyk/pr-Practic
0705940
goally_and_API/API-master/src/utils/getTimeZoneByAddress.ts
TypeScript
www.github.com/Ivan-Oliinyk/pr-Practic/tree/main/goally_and_API/API-master/src/utils/getTimeZoneByAddress.ts
https://raw.githubusercontent.com/Ivan-Oliinyk/pr-Practic/0705940/goally_and_API/API-master/src/utils/getTimeZoneByAddress.ts
Ivan-Oliinyk/pr-Practic 0705940 goally_and_API/API-master/src/utils/getTimeZoneByAddress.ts
true
200
1,250
import { head } from 'lodash'; import * as NodeGeocoder from 'node-geocoder'; import { config } from 'src/config'; import * as superagent from 'superagent'; export async function getTimeZoneByAddress(address: string): Promise<string> { try { const googleMapApiKey = config().GOOGLE_MAPS_API_KEY; console.log('...
7
lmoraesdev/api-adopet-ts
677b374
src/controller/AbrigoController.ts
TypeScript
www.github.com/lmoraesdev/api-adopet-ts/tree/main/src/controller/AbrigoController.ts
https://raw.githubusercontent.com/lmoraesdev/api-adopet-ts/677b374/src/controller/AbrigoController.ts
lmoraesdev/api-adopet-ts 677b374 src/controller/AbrigoController.ts
true
200
2,435
import { Request, Response } from 'express'; import AbrigoEntity from '../entities/AbrigoEntity'; import { EnumHttpStatusCode } from '../enum/EnumHttpStatusCode'; import AbrigoRepository from '../repositories/AbrigoRepository'; import { TipoRequestBodyAbrigo, TipoRequestParamsAbrigo, TipoResponseBodyAbrigo, } fro...
0
agataszus/portfolio
9a8d5b7
src/hooks/useProjectsOnArrowsClickScroll.ts
TypeScript
www.github.com/agataszus/portfolio/tree/main/src/hooks/useProjectsOnArrowsClickScroll.ts
https://raw.githubusercontent.com/agataszus/portfolio/9a8d5b7/src/hooks/useProjectsOnArrowsClickScroll.ts
agataszus/portfolio 9a8d5b7 src/hooks/useProjectsOnArrowsClickScroll.ts
true
200
795
import { RefObject } from "react"; import { DESKTOP, useMediaQueries } from "./useMediaQueries"; export const useProjectsOnArrowsClickScroll = (ref: RefObject<HTMLDivElement>) => { const mediaQuery = useMediaQueries(); return (direction: "left" | "right") => { const clientWidth = ref.current?.clientWidth; ...
5
gustavoventieri/MEmployees
31d758d
api/src/server/controller/employee/GetAll.ts
TypeScript
www.github.com/gustavoventieri/MEmployees/tree/main/api/src/server/controller/employee/GetAll.ts
https://raw.githubusercontent.com/gustavoventieri/MEmployees/31d758d/api/src/server/controller/employee/GetAll.ts
gustavoventieri/MEmployees 31d758d api/src/server/controller/employee/GetAll.ts
true
200
1,440
import { Request, Response } from "express"; import { StatusCodes } from "http-status-codes"; import * as yup from "yup"; import { EmployeesProviders } from "../../database/providers/employee"; import { validation } from "../../shared/middlewares"; interface IQueryProps { page?: number; limit?: number; filter?: ...
3
AnselChang/Tetrisfish2
8f15508
client/src/app/services/user.service.ts
TypeScript
www.github.com/AnselChang/Tetrisfish2/tree/main/client/src/app/services/user.service.ts
https://raw.githubusercontent.com/AnselChang/Tetrisfish2/8f15508/client/src/app/services/user.service.ts
AnselChang/Tetrisfish2 8f15508 client/src/app/services/user.service.ts
true
200
4,321
import { Injectable } from '@angular/core'; import { Method, fetchServer } from '../scripts/fetch-server'; import { BehaviorSubject } from 'rxjs'; import { UserInfo } from 'shared/models/user-info'; import { CaptureSettingsService } from './capture/capture-settings.service'; import { UserSettings } from 'shared/models/...
1
amanidy/tractor-online-store
0f4ca5d
actions/get-details.ts
TypeScript
www.github.com/amanidy/tractor-online-store/tree/main/actions/get-details.ts
https://raw.githubusercontent.com/amanidy/tractor-online-store/0f4ca5d/actions/get-details.ts
amanidy/tractor-online-store 0f4ca5d actions/get-details.ts
true
200
2,356
import { db } from "@/app/lib/db"; import { Attachment, Detail } from "@prisma/client"; interface GetDetailsProps{ userId: string ; tractorId: string; detailId: string; } export const getDetail = async ({ userId, tractorId, detailId, }: GetDetailsProps) => { if (!userId || !tractorId || !detail...
4
Digital39999/npm-templates
ebec54b
templates/discord-bot/src/events/interactionCreate.ts
TypeScript
www.github.com/Digital39999/npm-templates/tree/main/templates/discord-bot/src/events/interactionCreate.ts
https://raw.githubusercontent.com/Digital39999/npm-templates/ebec54b/templates/discord-bot/src/events/interactionCreate.ts
Digital39999/npm-templates ebec54b templates/discord-bot/src/events/interactionCreate.ts
true
200
2,283
import { AnySelectMenuInteraction, AutocompleteInteraction, ButtonInteraction, ChatInputCommandInteraction, ContextMenuCommandInteraction, ModalSubmitInteraction, PermissionsBitField, PermissionsString } from 'discord.js'; import { logError } from '../modules/logger'; import { EventType } from '../data/typings'; import...
0
wistoft/jawis
e0b1710
packages/tests/all/jatev TestCollection getTestUpdate 1.ja.ts
TypeScript
www.github.com/wistoft/jawis/tree/main/packages/tests/all/jatev TestCollection getTestUpdate 1.ja.ts
https://raw.githubusercontent.com/wistoft/jawis/e0b1710/packages/tests/all/jatev%20TestCollection%20getTestUpdate%201.ja.ts
wistoft/jawis e0b1710 packages/tests/all/jatev TestCollection getTestUpdate 1.ja.ts
true
200
569
import { TestProvision } from "^jarun"; import { testSelectionToCollection } from "^jatev/TestCollection"; export default ({ eq }: TestProvision) => { const empty = testSelectionToCollection([]); eq([], empty.tests); const a = testSelectionToCollection([[{ id: "1" }]]); const a2 = a.getTestUpdate({ id: "1",...
2
antstanley/create-cdk-typescript
b48abbb
lib/actions/updateGitNpmIgnore.ts
TypeScript
www.github.com/antstanley/create-cdk-typescript/tree/main/lib/actions/updateGitNpmIgnore.ts
https://raw.githubusercontent.com/antstanley/create-cdk-typescript/b48abbb/lib/actions/updateGitNpmIgnore.ts
antstanley/create-cdk-typescript b48abbb lib/actions/updateGitNpmIgnore.ts
true
200
1,216
import { readFileSync, writeFileSync, existsSync } from 'node:fs'; import { join } from 'node:path'; const ignoreSnippet = ` # CDK asset staging directory .cdk.staging cdk.out ` function updateGitNpmIgnore(currentPath: string) { let result = false; try { const gitignorePath = join(currentPath, '.gitignore')...
5
0K-Team/HH_backend
c517376
src/assets/sendMail.ts
TypeScript
www.github.com/0K-Team/HH_backend/tree/main/src/assets/sendMail.ts
https://raw.githubusercontent.com/0K-Team/HH_backend/c517376/src/assets/sendMail.ts
0K-Team/HH_backend c517376 src/assets/sendMail.ts
true
200
730
import { EmailClient } from "@azure/communication-email"; import dotenv from "dotenv"; dotenv.config(); const connectionString = process.env.COMMUNICATION_SERVICES_CONNECTION_STRING || ""; const client = new EmailClient(connectionString); const sendMail = async (subject: string, html: string, recipient: string) => {...
7
rapha-developer/css-dictionary
a3a6430
src/data/mocks/properties/p/data/placeSelf.ts
TypeScript
www.github.com/rapha-developer/css-dictionary/tree/main/src/data/mocks/properties/p/data/placeSelf.ts
https://raw.githubusercontent.com/rapha-developer/css-dictionary/a3a6430/src/data/mocks/properties/p/data/placeSelf.ts
rapha-developer/css-dictionary a3a6430 src/data/mocks/properties/p/data/placeSelf.ts
true
200
3,776
import { PropertyProps } from "../../../../../types/PropertyProps"; import { genericPropertyExamplesData, genericPropertyValuesData } from "../../../GenericPropertyAtributes"; export const placeSelfData: PropertyProps = { name: "place self", definition: "A propriedade place-self é usada para alinhar itens de g...
3
jp-knj/praha
b60cd87
03_テスト/01_jestで単体テストを書こう/implementation/error-middleware.ts
TypeScript
www.github.com/jp-knj/praha/tree/main/03_テスト/01_jestで単体テストを書こう/implementation/error-middleware.ts
https://raw.githubusercontent.com/jp-knj/praha/b60cd87/03_%E3%83%86%E3%82%B9%E3%83%88/01_jest%E3%81%A7%E5%8D%98%E4%BD%93%E3%83%86%E3%82%B9%E3%83%88%E3%82%92%E6%9B%B8%E3%81%93%E3%81%86/implementation/error-middleware.ts
jp-knj/praha b60cd87 03_テスト/01_jestで単体テストを書こう/implementation/error-middleware.ts
true
200
655
import { UnauthorizedError } from 'express-jwt' import type { Request, Response, NextFunction, } from "express"; const errorMiddleware = (error: Error, req: Request, res: Response, next: NextFunction) => { if (res.headersSent) { next(error) } else if (error instanceof UnauthorizedError) { res.status(...
6
felipeAndradeMendes/trybe-futebol-clube
849deca
app/backend/src/services/MatchService.ts
TypeScript
www.github.com/felipeAndradeMendes/trybe-futebol-clube/tree/main/app/backend/src/services/MatchService.ts
https://raw.githubusercontent.com/felipeAndradeMendes/trybe-futebol-clube/849deca/app/backend/src/services/MatchService.ts
felipeAndradeMendes/trybe-futebol-clube 849deca app/backend/src/services/MatchService.ts
true
200
2,749
import TeamModel from '../database/models/TeamModel'; import MatchModel from '../database/models/MatchModel'; import { IMatch, IMatchCreateBody, IMatchModel, IMatchUpdateBody } from '../Interfaces/Match'; import { ServiceMessage, ServiceResponse } from '../Interfaces/ServiceResponse'; import { ITeamModel } from '../Int...
1
LilVoidx/action-history-service
f2ce879
src/app.ts
TypeScript
www.github.com/LilVoidx/action-history-service/tree/main/src/app.ts
https://raw.githubusercontent.com/LilVoidx/action-history-service/f2ce879/src/app.ts
LilVoidx/action-history-service f2ce879 src/app.ts
true
200
716
import express from "express"; import helmet from "helmet"; import morgan from "morgan"; import cors from "cors"; import paginate from "express-paginate"; import historyRoutes from "./routes/history.route"; import { notFound, errorHandler } from "./middlewares/error.middleware"; import { config } from "./config/env.con...
4
hoangman1108/TS-BE-USER-FROM-CN
1cd5162
src/migrations/20200526-create-table-and-constraint.migration.ts
TypeScript
www.github.com/hoangman1108/TS-BE-USER-FROM-CN/tree/main/src/migrations/20200526-create-table-and-constraint.migration.ts
https://raw.githubusercontent.com/hoangman1108/TS-BE-USER-FROM-CN/1cd5162/src/migrations/20200526-create-table-and-constraint.migration.ts
hoangman1108/TS-BE-USER-FROM-CN 1cd5162 src/migrations/20200526-create-table-and-constraint.migration.ts
true
200
511
import sequelize from '../models/sequelize'; import fs = require('fs'); const migration = { up: (): Promise<[any, number]> => new Promise((resolve, reject): void => { fs.readFile(`${__dirname}/init-script.sql`, (err: NodeJS.ErrnoException | null, content: Buffer): void => { if (err) reject(err); e...
5
fgrzesiak/academic-workload-manager-hsnr
3f2ebfa
apps/api/src/modules/supervision/controllers/supervisionType.controller.ts
TypeScript
www.github.com/fgrzesiak/academic-workload-manager-hsnr/tree/main/apps/api/src/modules/supervision/controllers/supervisionType.controller.ts
https://raw.githubusercontent.com/fgrzesiak/academic-workload-manager-hsnr/3f2ebfa/apps/api/src/modules/supervision/controllers/supervisionType.controller.ts
fgrzesiak/academic-workload-manager-hsnr 3f2ebfa apps/api/src/modules/supervision/controllers/supervisionType.controller.ts
true
200
2,185
import { Body, Controller, Get, Post, Put } from "@nestjs/common"; import { ICreateSupervisionTypeRequest, ISupervisionTypeResponse, IUpdateSupervisionTypeRequest, } from "@workspace/shared"; import { Auth } from "../../../common/decorators/auth.decorator"; import { Role } from "../../../common/enums/role.enum";...
3
TLNegrao/BombChairGame_v1.0
743e9ae
frontGame - BombChairGame/src/app/services/web3.service.ts
TypeScript
www.github.com/TLNegrao/BombChairGame_v1.0/tree/main/frontGame - BombChairGame/src/app/services/web3.service.ts
https://raw.githubusercontent.com/TLNegrao/BombChairGame_v1.0/743e9ae/frontGame%20-%20BombChairGame/src/app/services/web3.service.ts
TLNegrao/BombChairGame_v1.0 743e9ae frontGame - BombChairGame/src/app/services/web3.service.ts
true
200
5,147
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import Web3 from 'web3'; import { Contract } from 'web3-eth-contract'; import { GameService } from './game.service'; declare var window: any; @Injectable({ providedIn: 'root' }) export class Web3Service { private web3!: Web3; pr...
2
jounijoh/Portfolio-Frontend
74e07b3
src/components/Layout/styles.ts
TypeScript
www.github.com/jounijoh/Portfolio-Frontend/tree/main/src/components/Layout/styles.ts
https://raw.githubusercontent.com/jounijoh/Portfolio-Frontend/74e07b3/src/components/Layout/styles.ts
jounijoh/Portfolio-Frontend 74e07b3 src/components/Layout/styles.ts
true
200
1,566
import styled, { css, keyframes } from 'styled-components'; import { colors } from '../../global/Colors'; import { inter } from '../../global/fonts'; export const LayoutContainer = styled.div` display: flex; min-height: 100vh; min-width: 150px; `; export const FullHeightSection = styled.div` height: 100vh; ...
0
NuanceDevs/Api-Gateway
790c95e
src/blog/blog.service.ts
TypeScript
www.github.com/NuanceDevs/Api-Gateway/tree/main/src/blog/blog.service.ts
https://raw.githubusercontent.com/NuanceDevs/Api-Gateway/790c95e/src/blog/blog.service.ts
NuanceDevs/Api-Gateway 790c95e src/blog/blog.service.ts
true
200
1,530
import { Inject, Injectable } from '@nestjs/common'; import { CreatePostDto } from './dto/CreatePost.dto'; import { ClientProxy } from '@nestjs/microservices'; import { DeletePostDto } from './dto/DeletePost.dto'; import { UpdatePostDto } from './dto/UpdatePost.dto'; import { WINSTON_MODULE_PROVIDER } from 'nest-winsto...
7
yuruyu6/nuxt-todolist
668e2cc
api/product.ts
TypeScript
www.github.com/yuruyu6/nuxt-todolist/tree/main/api/product.ts
https://raw.githubusercontent.com/yuruyu6/nuxt-todolist/668e2cc/api/product.ts
yuruyu6/nuxt-todolist 668e2cc api/product.ts
true
200
629
import { useQuery } from "@tanstack/vue-query"; import { api } from "."; import type { Product } from "~/types/product"; import type { PaginatedResponse } from "~/types"; export const useProducts = () => { return useQuery<PaginatedResponse<Product>>({ queryKey: ["products"], queryFn: async () => { cons...
6
VitorLazzaretti/just-relax-app
3f35a71
src/components/SoundOption/styles.ts
TypeScript
www.github.com/VitorLazzaretti/just-relax-app/tree/main/src/components/SoundOption/styles.ts
https://raw.githubusercontent.com/VitorLazzaretti/just-relax-app/3f35a71/src/components/SoundOption/styles.ts
VitorLazzaretti/just-relax-app 3f35a71 src/components/SoundOption/styles.ts
true
200
1,068
import { css, styled } from "styled-components/native"; export const Container = styled.TouchableOpacity.attrs({ activeOpacity: 0.3 })` ${({ theme }) => css` flex: 1; flex-direction: row; align-items: center; justify-content: space-between; height: 80px; padding: 0 12px; `} `; export con...
1
nhn042/web_shop
43a4f01
src/app.module.ts
TypeScript
www.github.com/nhn042/web_shop/tree/main/src/app.module.ts
https://raw.githubusercontent.com/nhn042/web_shop/43a4f01/src/app.module.ts
nhn042/web_shop 43a4f01 src/app.module.ts
true
200
879
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AuthModule } from './api/auth/auth.module'; import { UsersModule } from './api/users/users.module'; import { config } from './configs/typeorm.config'; import { OrderModule } from './api/order/order.module'; import { Produ...
4
leo-prata/api-posts-and-comments
8298b25
src/controllers/post/RemovePostController.ts
TypeScript
www.github.com/leo-prata/api-posts-and-comments/tree/main/src/controllers/post/RemovePostController.ts
https://raw.githubusercontent.com/leo-prata/api-posts-and-comments/8298b25/src/controllers/post/RemovePostController.ts
leo-prata/api-posts-and-comments 8298b25 src/controllers/post/RemovePostController.ts
true
200
442
import { Request, Response } from 'express'; import RemovePostService from '../../services/post/RemovePostService'; class RemovePostController{ async handle(req: Request, res: Response){ const { id } = req.params; const post = await RemovePostService.execute({ id: Number(id) })...
3