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
ciurea-gabriela/outsource-owl-client
7f8703b
src/app/security/jwt-interceptor.ts
TypeScript
www.github.com/ciurea-gabriela/outsource-owl-client/tree/main/src/app/security/jwt-interceptor.ts
https://raw.githubusercontent.com/ciurea-gabriela/outsource-owl-client/7f8703b/src/app/security/jwt-interceptor.ts
ciurea-gabriela/outsource-owl-client 7f8703b src/app/security/jwt-interceptor.ts
true
200
712
import {Injectable} from '@angular/core'; import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {Observable} from 'rxjs'; import {AuthService} from '../core/services/auth.service'; @Injectable() export class JwtInterceptor implements HttpInterceptor { constructor(private...
6
noufjafari/Wise-Wallet
338e56b
Wise-Wallet/Finel/node_modules/igniteui-react-charts/lib/igr-label-click-event-args.d.ts
TypeScript
www.github.com/noufjafari/Wise-Wallet/tree/main/Wise-Wallet/Finel/node_modules/igniteui-react-charts/lib/igr-label-click-event-args.d.ts
https://raw.githubusercontent.com/noufjafari/Wise-Wallet/338e56b/Wise-Wallet/Finel/node_modules/igniteui-react-charts/lib/igr-label-click-event-args.d.ts
noufjafari/Wise-Wallet 338e56b Wise-Wallet/Finel/node_modules/igniteui-react-charts/lib/igr-label-click-event-args.d.ts
true
200
661
import { LabelClickEventArgs as LabelClickEventArgs_internal } from "./LabelClickEventArgs"; /** * Contains PieChart label click event data. */ export declare class IgrLabelClickEventArgs { protected _implementation: any; /** * @hidden */ get i(): LabelClickEventArgs_internal; private onImple...
7
MN-Sandratra/nestjs-planify
a9df375
src/categorie/queries/getAllCategories/get-all-categories.handler.ts
TypeScript
www.github.com/MN-Sandratra/nestjs-planify/tree/main/src/categorie/queries/getAllCategories/get-all-categories.handler.ts
https://raw.githubusercontent.com/MN-Sandratra/nestjs-planify/a9df375/src/categorie/queries/getAllCategories/get-all-categories.handler.ts
MN-Sandratra/nestjs-planify a9df375 src/categorie/queries/getAllCategories/get-all-categories.handler.ts
true
200
855
import { IQueryHandler, QueryHandler } from '@nestjs/cqrs'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { Category, CategoryDocument, } from 'src/categorie/schemas/categorie.schema'; import { CategorieDto } from 'src/types/categories.dto'; import { GetAllCategoriesQuery ...
1
Rushiahire/chat-app-frontend
0472f86
services/api/auth-api.ts
TypeScript
www.github.com/Rushiahire/chat-app-frontend/tree/main/services/api/auth-api.ts
https://raw.githubusercontent.com/Rushiahire/chat-app-frontend/0472f86/services/api/auth-api.ts
Rushiahire/chat-app-frontend 0472f86 services/api/auth-api.ts
true
200
792
import { CONSTANTS } from "../config/api-config"; import { callPostAPI } from "../utils"; export const loginAPI: any = async (values: any) => { let response: any; const body = { email: values.username, password: values.password } const url: any = `${CONSTANTS.API_BASE_URL}/v1/login`;...
0
FirasJedidi1995/MiniProjetAngular
bd21a6d
src/app/color/color.component.ts
TypeScript
www.github.com/FirasJedidi1995/MiniProjetAngular/tree/main/src/app/color/color.component.ts
https://raw.githubusercontent.com/FirasJedidi1995/MiniProjetAngular/bd21a6d/src/app/color/color.component.ts
FirasJedidi1995/MiniProjetAngular bd21a6d src/app/color/color.component.ts
true
200
825
import { Component, OnInit } from '@angular/core'; import { PremierService } from '../premier.service'; import { ActivatedRoute, Router } from '@angular/router'; @Component({ selector: 'app-color', templateUrl: './color.component.html', styleUrls: ['./color.component.css'], providers: [PremierService], }) expo...
4
VoQuyLong/pse
c7de02b
src/session/session.service.ts
TypeScript
www.github.com/VoQuyLong/pse/tree/main/src/session/session.service.ts
https://raw.githubusercontent.com/VoQuyLong/pse/c7de02b/src/session/session.service.ts
VoQuyLong/pse c7de02b src/session/session.service.ts
true
200
1,170
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { FindOptions } from '../utils/types/find-options.type'; import { DeepPartial, Repository } from 'typeorm'; import { Session } from './entities/session.entity'; import { NullableType } from '../utils/types/nullable.t...
2
maxdmo/nlw-week-01
9057d1d
server/src/controllers/PointsController.ts
TypeScript
www.github.com/maxdmo/nlw-week-01/tree/main/server/src/controllers/PointsController.ts
https://raw.githubusercontent.com/maxdmo/nlw-week-01/9057d1d/server/src/controllers/PointsController.ts
maxdmo/nlw-week-01 9057d1d server/src/controllers/PointsController.ts
true
200
3,084
import { Request, Response } from 'express' ; import knex from '../database/connection'; class PointsController { async index(request: Request, response: Response) { const { city, uf, items } = request.query; const parsedItems = String(items) .split(',') ...
3
EdamAme-x/BrowserJSXCompiler
4b07ed7
index.ts
TypeScript
www.github.com/EdamAme-x/BrowserJSXCompiler/tree/main/index.ts
https://raw.githubusercontent.com/EdamAme-x/BrowserJSXCompiler/4b07ed7/index.ts
EdamAme-x/BrowserJSXCompiler 4b07ed7 index.ts
true
200
774
import initSwc, { Options, Output, transformSync } from '@swc/wasm-web'; export class JSXCompiler { config: Options; constructor(config?: Options) { this.config = config ? config : { jsc: { parser: { syntax: 'typescript', tsx: true, ...
6
ThamyrisSantana/store-api
642b89a
src/model/product.ts
TypeScript
www.github.com/ThamyrisSantana/store-api/tree/main/src/model/product.ts
https://raw.githubusercontent.com/ThamyrisSantana/store-api/642b89a/src/model/product.ts
ThamyrisSantana/store-api 642b89a src/model/product.ts
true
200
482
import { Schema, model } from "mongoose"; import type { IProduct } from "../types/Product.types"; const productSchema = new Schema<IProduct>({ name: { type: String, required: true }, description: { type: String, require: true }, image_url: { type: String, require: true }, price: { type: Number, require: true }, ...
1
andiz2/fullstack_part9
16a724e
9c/9_8/backend/src/utils.ts
TypeScript
www.github.com/andiz2/fullstack_part9/tree/main/9c/9_8/backend/src/utils.ts
https://raw.githubusercontent.com/andiz2/fullstack_part9/16a724e/9c/9_8/backend/src/utils.ts
andiz2/fullstack_part9 16a724e 9c/9_8/backend/src/utils.ts
true
200
2,539
import { NewPatientEntry, Gender } from "./types"; import {z} from 'zod'; /* const isString = (text: unknown): text is string => { return typeof text === 'string' || text instanceof String; }; const parseName = (name: unknown): string => { if (!isString(name)) { throw new Error('Incorrect na...
7
augustocesarsouza/project-angular-shoope
1c4c1f6
src/app/user-my-account-all-info/my-account-all-component/perfil-components/profile/profile.component.spec.ts
TypeScript
www.github.com/augustocesarsouza/project-angular-shoope/tree/main/src/app/user-my-account-all-info/my-account-all-component/perfil-components/profile/profile.component.spec.ts
https://raw.githubusercontent.com/augustocesarsouza/project-angular-shoope/1c4c1f6/src/app/user-my-account-all-info/my-account-all-component/perfil-components/profile/profile.component.spec.ts
augustocesarsouza/project-angular-shoope 1c4c1f6 src/app/user-my-account-all-info/my-account-all-component/perfil-components/profile/profile.component.spec.ts
true
200
1,238
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ProfileComponent } from './profile.component'; import { AllSvgModule } from '../../../../all-svg/all-svg.module'; import { HomeComponent } from '../../../../home-page/home/home.component'; import { RouterTestingModule } from '@angular/router/t...
5
zyronon/react-admin
49b046b
src/router/asyncRoutes.ts
TypeScript
www.github.com/zyronon/react-admin/tree/main/src/router/asyncRoutes.ts
https://raw.githubusercontent.com/zyronon/react-admin/49b046b/src/router/asyncRoutes.ts
zyronon/react-admin 49b046b src/router/asyncRoutes.ts
true
200
893
import Home from "../pages/home/Home"; import About from "../pages/about/About"; import BaseLayout from "../pages/layout/BaseLayout"; import Hooks from "../pages/hooks/Hooks"; import Redux from "../pages/reduxPage/Redux"; import Hoc from "../pages/hoc/Hoc"; import Canvas from "../pages/canvas/Canvas"; import Test from ...
0
yuanzhaoyang001/data-x-front
4b1a10e
src/views/formgen/utils/loadWxSdk.ts
TypeScript
www.github.com/yuanzhaoyang001/data-x-front/tree/main/src/views/formgen/utils/loadWxSdk.ts
https://raw.githubusercontent.com/yuanzhaoyang001/data-x-front/4b1a10e/src/views/formgen/utils/loadWxSdk.ts
yuanzhaoyang001/data-x-front 4b1a10e src/views/formgen/utils/loadWxSdk.ts
true
200
615
import loadScript from "./loadScript"; import { ElLoading } from "element-plus"; let wxObj: any; export default function loadWXJs(cb: (wxObj: any) => void): void { if (wxObj) { cb(wxObj); return; } const loading = ElLoading.service({ fullscreen: true, lock: true, text: "wxsdk่ต„ๆบๅŠ ่ฝฝไธญ...", ...
2
karifrederiksen/painter
9518a2c
src/lib/canvas/context.ts
TypeScript
www.github.com/karifrederiksen/painter/tree/main/src/lib/canvas/context.ts
https://raw.githubusercontent.com/karifrederiksen/painter/9518a2c/src/lib/canvas/context.ts
karifrederiksen/painter 9518a2c src/lib/canvas/context.ts
true
200
15,692
import * as OutputShader from "./outputShader.js"; import * as BrushTextureShader from "./brushTextureGenerator.js"; import * as TextureShader from "./textureShader.js"; import * as ClearBlocksShader from "./clearBlocksShader.js"; import * as BlockHighlightShader from "./blockHighlightShader.js"; import * as BrushShade...
4
metodej-janota/collabmate-v1
be648f7
src/supabase/lib/databaseLogic.ts
TypeScript
www.github.com/metodej-janota/collabmate-v1/tree/main/src/supabase/lib/databaseLogic.ts
https://raw.githubusercontent.com/metodej-janota/collabmate-v1/be648f7/src/supabase/lib/databaseLogic.ts
metodej-janota/collabmate-v1 be648f7 src/supabase/lib/databaseLogic.ts
true
200
931
import { supabase } from "../supabase"; const insertUserToDatabase = async ( userAuthId: string, email: string, name: string ) => { const { error } = await supabase.from("users").insert({ userauthid: userAuthId, email: email, name: name, created_at: new Date(), }); if (error) { console...
3
mohammedhelal591/my-movies-app
4e1b52e
src/app/now-playing/now-playing.component.ts
TypeScript
www.github.com/mohammedhelal591/my-movies-app/tree/main/src/app/now-playing/now-playing.component.ts
https://raw.githubusercontent.com/mohammedhelal591/my-movies-app/4e1b52e/src/app/now-playing/now-playing.component.ts
mohammedhelal591/my-movies-app 4e1b52e src/app/now-playing/now-playing.component.ts
true
200
636
import { Component, OnInit } from '@angular/core'; import { MoviesService } from '../movies.service'; @Component({ selector: 'app-now-playing', templateUrl: './now-playing.component.html', styleUrls: ['./now-playing.component.css'] }) export class NowPlayingComponent implements OnInit { nowPlaying:any; no...
6
DilanLopezN/RestfullAPIStudies
7d23038
src/modules/cars/useCases/listCategory/ListCategoiresController.ts
TypeScript
www.github.com/DilanLopezN/RestfullAPIStudies/tree/main/src/modules/cars/useCases/listCategory/ListCategoiresController.ts
https://raw.githubusercontent.com/DilanLopezN/RestfullAPIStudies/7d23038/src/modules/cars/useCases/listCategory/ListCategoiresController.ts
DilanLopezN/RestfullAPIStudies 7d23038 src/modules/cars/useCases/listCategory/ListCategoiresController.ts
true
200
396
import { Response, Request } from 'express' import { ListCategoriesUseCase } from './ListCategoriesUseCase' class ListCategoriesController { constructor(private listCategoriesUseCase: ListCategoriesUseCase) {} handle(req: Request, res: Response): Response { const all = this.listCategoriesUseCase.execute() ...
1
jcbkdev/rasp-tv-server
4085ff2
src/middlewares/auth.ts
TypeScript
www.github.com/jcbkdev/rasp-tv-server/tree/main/src/middlewares/auth.ts
https://raw.githubusercontent.com/jcbkdev/rasp-tv-server/4085ff2/src/middlewares/auth.ts
jcbkdev/rasp-tv-server 4085ff2 src/middlewares/auth.ts
true
200
826
import { isAuthenticated } from "../db/db.auth"; import { Request, Response, NextFunction } from "express"; export async function authMiddleware( req: Request, res: Response, next: NextFunction ): Promise<void> { try { const { uid, sid } = req.cookies; if (!uid || !sid) { re...
7
fadhilahrf/social-network
ae3eb95
src/main/webapp/app/entities/user/modal/list-modal/list-modal.component.ts
TypeScript
www.github.com/fadhilahrf/social-network/tree/main/src/main/webapp/app/entities/user/modal/list-modal/list-modal.component.ts
https://raw.githubusercontent.com/fadhilahrf/social-network/ae3eb95/src/main/webapp/app/entities/user/modal/list-modal/list-modal.component.ts
fadhilahrf/social-network ae3eb95 src/main/webapp/app/entities/user/modal/list-modal/list-modal.component.ts
true
200
743
import { Component } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { IUser } from '../../user.model'; import SharedModule from 'app/shared/shared.module'; import { Router } from '@angular/router'; @Component({ selector: 'list-modal', standalone: true, imports: [SharedM...
0
kritsimar8/next-Auth
397442b
middleware.ts
TypeScript
www.github.com/kritsimar8/next-Auth/tree/main/middleware.ts
https://raw.githubusercontent.com/kritsimar8/next-Auth/397442b/middleware.ts
kritsimar8/next-Auth 397442b middleware.ts
true
200
955
import NextAuth from "next-auth"; import authConfig from "./auth.config"; import { DEFAULT_LOGIN_REDIRECT, apiAuthPrefix, authRoutes, publicRoutes } from "@/routes" const {auth}= NextAuth(authConfig); export default auth((req)=>{ const {nextUrl} = req const isLoggedin= !!req.auth; co...
5
half144/gpttalk
01924d7
src/components/Switch/styles.ts
TypeScript
www.github.com/half144/gpttalk/tree/main/src/components/Switch/styles.ts
https://raw.githubusercontent.com/half144/gpttalk/01924d7/src/components/Switch/styles.ts
half144/gpttalk 01924d7 src/components/Switch/styles.ts
true
200
505
import styled from "styled-components"; import { motion } from "framer-motion"; export const Container = styled(motion.div)` position: relative; height: 22px; width: 40px; background-color: ${({ theme }) => theme.colors.primary}; border-radius: 20px; display: flex; align-items: center; `; type BallProps...
4
scorpion712/GYM-API
d8f2566
src/adapters/workouts/GetAllWorkoutsAdapter.ts
TypeScript
www.github.com/scorpion712/GYM-API/tree/main/src/adapters/workouts/GetAllWorkoutsAdapter.ts
https://raw.githubusercontent.com/scorpion712/GYM-API/d8f2566/src/adapters/workouts/GetAllWorkoutsAdapter.ts
scorpion712/GYM-API d8f2566 src/adapters/workouts/GetAllWorkoutsAdapter.ts
true
200
592
import { GetWorkoutPlansResponse, WorkoutPlan } from "../../models" export const adaptGetAllWorkoutsToResponse = (res: any): GetWorkoutPlansResponse => { return { workouts: res.map((wp: any) => ({ id: wp.workoutPlanId, name: wp.name, objective: wp.objective, ...
1
acnefree0516/GamePage
202a521
src/services/image-url.ts
TypeScript
www.github.com/acnefree0516/GamePage/tree/main/src/services/image-url.ts
https://raw.githubusercontent.com/acnefree0516/GamePage/202a521/src/services/image-url.ts
acnefree0516/GamePage 202a521 src/services/image-url.ts
true
200
312
import noImage from '../assets/noimage.webp' const getCroppedImageUrl = (url:string) => { if(!url) return noImage; const target = 'media/' const index = url.indexOf(target) + target.length; return url.slice(0,index) + 'crop/600/400/'+url.slice(index); } export default getCroppedImageUrl
7
RimoVR/Planetbyte
075e6a4
apps/server/src/types/common.ts
TypeScript
www.github.com/RimoVR/Planetbyte/tree/main/apps/server/src/types/common.ts
https://raw.githubusercontent.com/RimoVR/Planetbyte/075e6a4/apps/server/src/types/common.ts
RimoVR/Planetbyte 075e6a4 apps/server/src/types/common.ts
true
200
3,875
// Local definitions for types and constants from @planetbyte/common // This is a temporary solution until the module resolution issues are fixed export enum MessageType { JOIN = 'JOIN', LEAVE = 'LEAVE', MOVE = 'MOVE', ATTACK = 'ATTACK', DEFEND = 'DEFEND', CHAT = 'CHAT', PLAYER_INPUT = 'PLAYER_INPUT', ...
6
aws/language-servers
1457cb3
chat-client/src/client/tabs/tabFactory.ts
TypeScript
www.github.com/aws/language-servers/tree/main/chat-client/src/client/tabs/tabFactory.ts
https://raw.githubusercontent.com/aws/language-servers/1457cb3/chat-client/src/client/tabs/tabFactory.ts
aws/language-servers 1457cb3 chat-client/src/client/tabs/tabFactory.ts
true
200
3,859
import { ChatItem, ChatItemType, MynahIcons, MynahUIDataModel, QuickActionCommandGroup, TabBarMainAction, } from '@aws/mynah-ui' import { disclaimerCard } from '../texts/disclaimer' import { ChatMessage } from '@aws/language-server-runtimes-types' import { ChatHistory } from '../features/history...
0
patrick0806/english-school-api
3640e45
src/shared/connector/brasilAPI/brasilAPI.connector.ts
TypeScript
www.github.com/patrick0806/english-school-api/tree/main/src/shared/connector/brasilAPI/brasilAPI.connector.ts
https://raw.githubusercontent.com/patrick0806/english-school-api/3640e45/src/shared/connector/brasilAPI/brasilAPI.connector.ts
patrick0806/english-school-api 3640e45 src/shared/connector/brasilAPI/brasilAPI.connector.ts
true
200
804
import { HttpService } from '@nestjs/axios'; import { Injectable } from '@nestjs/common'; import { AxiosError } from 'axios'; import { catchError, firstValueFrom } from 'rxjs'; import { FindAddressByZipCodeDTOs } from './dtos'; @Injectable() export class BrasilAPIConnector { constructor(private readonly httpService...
5
imredoyyy/gen-magic
34410e4
src/lib/subscription.ts
TypeScript
www.github.com/imredoyyy/gen-magic/tree/main/src/lib/subscription.ts
https://raw.githubusercontent.com/imredoyyy/gen-magic/34410e4/src/lib/subscription.ts
imredoyyy/gen-magic 34410e4 src/lib/subscription.ts
true
200
781
import { auth } from "@clerk/nextjs/server"; import UserSubscription from "@/models/user-subscription"; import { connectToDb } from "./connect-to-db"; const dayInMs = 86400000; export const checkSubscription = async () => { const { userId } = auth(); if (!userId) { return false; } await connectToDb(); ...
4
gaborsar/form-builder
cbabfee
src/packages/dfrm-designer/features/form-schema-tree/hooks/useLeafProps.ts
TypeScript
www.github.com/gaborsar/form-builder/tree/main/src/packages/dfrm-designer/features/form-schema-tree/hooks/useLeafProps.ts
https://raw.githubusercontent.com/gaborsar/form-builder/cbabfee/src/packages/dfrm-designer/features/form-schema-tree/hooks/useLeafProps.ts
gaborsar/form-builder cbabfee src/packages/dfrm-designer/features/form-schema-tree/hooks/useLeafProps.ts
true
200
808
import React from "react"; import { type SchemaTreeNodeData, useDispatch, useFormSchemaTreeState } from "../../../model"; import { type Node, isSamePath } from "../../../utils/tree"; interface UseLeafPropsResult { isSelected: boolean; isVisible: boolean; onSelect(): void; } export function useLeafProps(path: st...
3
cmgriffing/giffium
42a1acb
packages/shiki-magic-move/src/vue/ShikiMagicMovePrecompiled.ts
TypeScript
www.github.com/cmgriffing/giffium/tree/main/packages/shiki-magic-move/src/vue/ShikiMagicMovePrecompiled.ts
https://raw.githubusercontent.com/cmgriffing/giffium/42a1acb/packages/shiki-magic-move/src/vue/ShikiMagicMovePrecompiled.ts
cmgriffing/giffium 42a1acb packages/shiki-magic-move/src/vue/ShikiMagicMovePrecompiled.ts
true
200
1,515
import type { PropType } from 'vue' import type { KeyedTokensInfo, MagicMoveDifferOptions, MagicMoveRenderOptions } from '../types' import { computed, defineComponent, h } from 'vue' import { syncTokenKeys, toKeyedTokens } from '../core' import { ShikiMagicMoveRenderer } from './ShikiMagicMoveRenderer' /** * Componen...
2
JoaoPaulo-creator/forst-step-graphql
2c8196b
src/dto/inputs/create-appointments.ts
TypeScript
www.github.com/JoaoPaulo-creator/forst-step-graphql/tree/main/src/dto/inputs/create-appointments.ts
https://raw.githubusercontent.com/JoaoPaulo-creator/forst-step-graphql/2c8196b/src/dto/inputs/create-appointments.ts
JoaoPaulo-creator/forst-step-graphql 2c8196b src/dto/inputs/create-appointments.ts
true
200
307
import { Field, InputType } from "type-graphql"; /** * * Inputs sao parametros que devem ser passados para uma mutation * */ @InputType() export class CreateAppointmentInput { @Field(() => String) customerId: string; @Field(() => Date) startsAt: Date; @Field(() => Date) endsAt: Date; }
7
canadacannabyss/canada-cannabyss-user-api
3f11530
src/config/db/index.ts
TypeScript
www.github.com/canadacannabyss/canada-cannabyss-user-api/tree/main/src/config/db/index.ts
https://raw.githubusercontent.com/canadacannabyss/canada-cannabyss-user-api/3f11530/src/config/db/index.ts
canadacannabyss/canada-cannabyss-user-api 3f11530 src/config/db/index.ts
true
200
616
import mongoose from 'mongoose' import { success } from '../../utils/logger/logger' export const connectDB = async (): Promise<void> => { try { let dbURI = process.env.ATLAS_URI console.log('process.env.NODE_ENV:', process.env.NODE_ENV) if (process.env.NODE_ENV === 'production') { dbURI = process...
1
min-sungs/arreo
c371c07
src/apis/api/sendMessageApi.ts
TypeScript
www.github.com/min-sungs/arreo/tree/main/src/apis/api/sendMessageApi.ts
https://raw.githubusercontent.com/min-sungs/arreo/c371c07/src/apis/api/sendMessageApi.ts
min-sungs/arreo c371c07 src/apis/api/sendMessageApi.ts
true
200
2,609
import axios from 'axios'; import { instance } from './clientAxios'; export function sendMessage({ MessageData }: any) { const SERVER_URL = process.env.REACT_APP_SERVER_URL; return new Promise<void>((resolve, reject) => { const config = { method: 'post', // maxBodyLength: Infinity, url: `${S...
6
pedro-bigz/api-ppgco-v2
8b14045
src/crud-generator/file-templates/service.template.ts
TypeScript
www.github.com/pedro-bigz/api-ppgco-v2/tree/main/src/crud-generator/file-templates/service.template.ts
https://raw.githubusercontent.com/pedro-bigz/api-ppgco-v2/8b14045/src/crud-generator/file-templates/service.template.ts
pedro-bigz/api-ppgco-v2 8b14045 src/crud-generator/file-templates/service.template.ts
true
200
1,908
import { TemplateCompiler } from './base.template'; export const getCompiler = (props: object) => { return TemplateCompiler.create() .setContent( ` import { Inject, Injectable } from '@nestjs/common'; import { <%= model.repository %> } from './<%= constantsPath %>'; import { <%= model.type %> } from './ent...
5
AhCamargo/poc-quikdev-be
8a595be
src/app/controller/PermissionController.ts
TypeScript
www.github.com/AhCamargo/poc-quikdev-be/tree/main/src/app/controller/PermissionController.ts
https://raw.githubusercontent.com/AhCamargo/poc-quikdev-be/8a595be/src/app/controller/PermissionController.ts
AhCamargo/poc-quikdev-be 8a595be src/app/controller/PermissionController.ts
true
200
786
import { Request, Response } from "express"; import { PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); export class PermissionController { async update(req: Request, res: Response) { const { id } = req.params; const { rules } = req.body; try { const existingPermission = awa...
4
Marshall-Hao/REACT_COPYCAT
1d32742
packages/react-reconciler/src/beginWork.ts
TypeScript
www.github.com/Marshall-Hao/REACT_COPYCAT/tree/main/packages/react-reconciler/src/beginWork.ts
https://raw.githubusercontent.com/Marshall-Hao/REACT_COPYCAT/1d32742/packages/react-reconciler/src/beginWork.ts
Marshall-Hao/REACT_COPYCAT 1d32742 packages/react-reconciler/src/beginWork.ts
true
200
1,853
import { ReactElementType } from 'shared/ReactTypes'; import { FiberNode } from './fiber'; import { processUpdateQueue, UpdateQueue } from './updateQueue'; import { HostRoot, HostText, HostComponent } from './workTags'; import { mountChildFibers, reconcileChildFibers } from './childFibers'; // recursion begin work exp...
3
TonySemikin/WebshopTaskWhitelabel
9d5d452
server/src/subdomains/shopping/api/rest/v1/ims/mappers/category.output-dto.mapper.ts
TypeScript
www.github.com/TonySemikin/WebshopTaskWhitelabel/tree/main/server/src/subdomains/shopping/api/rest/v1/ims/mappers/category.output-dto.mapper.ts
https://raw.githubusercontent.com/TonySemikin/WebshopTaskWhitelabel/9d5d452/server/src/subdomains/shopping/api/rest/v1/ims/mappers/category.output-dto.mapper.ts
TonySemikin/WebshopTaskWhitelabel 9d5d452 server/src/subdomains/shopping/api/rest/v1/ims/mappers/category.output-dto.mapper.ts
true
200
440
import { Category } from 'src/subdomains/shopping/domain/entities/category'; import { CategoryOutputDto } from '../dto/output/category.output-dto'; export class CategoryOutputDtoMapper { public static entityToDto(entity: Category): CategoryOutputDto { const { id, name, description } = entity; const dto = ne...
2
hossainchisty/TurboMove-Ride-Sharing-Platform
d103271
routers/auth.routers.ts
TypeScript
www.github.com/hossainchisty/TurboMove-Ride-Sharing-Platform/tree/main/routers/auth.routers.ts
https://raw.githubusercontent.com/hossainchisty/TurboMove-Ride-Sharing-Platform/d103271/routers/auth.routers.ts
hossainchisty/TurboMove-Ride-Sharing-Platform d103271 routers/auth.routers.ts
true
200
725
import express from "express"; import rateLimit from "express-rate-limit"; import { register, login, verifyOTP } from "../controllers/auth.controller"; import protect from "../middleware/auth.middleware"; const authRouters = express.Router(); // Apply rate limiting middleware const otpRateLimiter = rateLimit({ wind...
0
VanQuan34/ladingpage
9fd9500
src/app/landing/editor/inspector/design/elements/background/background.component.ts
TypeScript
www.github.com/VanQuan34/ladingpage/tree/main/src/app/landing/editor/inspector/design/elements/background/background.component.ts
https://raw.githubusercontent.com/VanQuan34/ladingpage/9fd9500/src/app/landing/editor/inspector/design/elements/background/background.component.ts
VanQuan34/ladingpage 9fd9500 src/app/landing/editor/inspector/design/elements/background/background.component.ts
true
200
11,411
import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; import { MoLandingEditorInspectorBaseComponent } from '../../../base.component'; import { IColorVar } from '../../../../../../common/common-types'; import { GLOBAL } from 'src/app/landing/editor/editor-wrapper'; import { IGradient, IGradientI...
1
takanoria0612/TypeScriptAPI
617db7a
src/models/user.model.ts
TypeScript
www.github.com/takanoria0612/TypeScriptAPI/tree/main/src/models/user.model.ts
https://raw.githubusercontent.com/takanoria0612/TypeScriptAPI/617db7a/src/models/user.model.ts
takanoria0612/TypeScriptAPI 617db7a src/models/user.model.ts
true
200
1,180
import mongoose from "mongoose"; import bcrypt from "bcrypt"; import config from "config"; export interface UserDocument extends mongoose.Document { email: string; name: string; password: string; createdAt: Date; updatedAt: Date; comparePassword(candidatePassword: string): Promise<boolean>; } c...
7
prakharsaxena1/Thunder-Store
6354470
client/src/redux/RootReducers.ts
TypeScript
www.github.com/prakharsaxena1/Thunder-Store/tree/main/client/src/redux/RootReducers.ts
https://raw.githubusercontent.com/prakharsaxena1/Thunder-Store/6354470/client/src/redux/RootReducers.ts
prakharsaxena1/Thunder-Store 6354470 client/src/redux/RootReducers.ts
true
200
344
import { combineReducers } from '@reduxjs/toolkit'; import userSlice from './slices/user/userSlice'; import baseApi from './apis/baseQuery'; import cartSlice from './slices/cart/cartSlice'; const RootReducers = combineReducers({ user: userSlice, cart: cartSlice, [baseApi.reducerPath]: baseApi.reducer, }); expor...
6
Yuriks-Ss/fullStackcc
78ef516
client/src/app/shared/layouts/site-layouts/site-layouts.component.ts
TypeScript
www.github.com/Yuriks-Ss/fullStackcc/tree/main/client/src/app/shared/layouts/site-layouts/site-layouts.component.ts
https://raw.githubusercontent.com/Yuriks-Ss/fullStackcc/78ef516/client/src/app/shared/layouts/site-layouts/site-layouts.component.ts
Yuriks-Ss/fullStackcc 78ef516 client/src/app/shared/layouts/site-layouts/site-layouts.component.ts
true
200
1,020
import {AfterViewInit, Component, ElementRef, ViewChild} from '@angular/core'; import {AuthService} from "../../services/auth.service"; import {Router} from "@angular/router"; import {MaterialService} from "../../classes/material.service"; @Component({ selector: 'app-site-layouts', templateUrl: './site-layouts.com...
3
BruceManuelwayne/OpenJira
b70449c
open-kira/context/entries/entriesReducer.ts
TypeScript
www.github.com/BruceManuelwayne/OpenJira/tree/main/open-kira/context/entries/entriesReducer.ts
https://raw.githubusercontent.com/BruceManuelwayne/OpenJira/b70449c/open-kira/context/entries/entriesReducer.ts
BruceManuelwayne/OpenJira b70449c open-kira/context/entries/entriesReducer.ts
true
200
1,097
import { EntriesState } from './'; import { Entry } from '../../interfaces/entry'; type EntriesActionType = |{type: '[Entry] Add-Entry', payload: Entry } |{type: '[Entry] Entry-Updated', payload: Entry } |{type: '[Entry] Refresh-Data', payload: Entry[]} |{type: '[Entry] Entry-Select', payload: Entry } export const e...
4
MarisaRichmond94/TaskManager
ebfef4f
client/src/providers/utils/buildTaskLists.ts
TypeScript
www.github.com/MarisaRichmond94/TaskManager/tree/main/client/src/providers/utils/buildTaskLists.ts
https://raw.githubusercontent.com/MarisaRichmond94/TaskManager/ebfef4f/client/src/providers/utils/buildTaskLists.ts
MarisaRichmond94/TaskManager ebfef4f client/src/providers/utils/buildTaskLists.ts
true
200
1,303
import { ARCHIVED_TASK_STATUS_NAMES } from 'settings'; import { SectionType } from 'enums'; import { getModifiedDate, toClientDatetime } from 'utils'; const buildTaskLists = ( taskList: Task[], setTaskMap: (taskMap: Map<string, Task[]>) => void, shouldUpdate: boolean = true, ): Map<string, Task[]> => { const ...
2
jlmodell/busseforce-nextjs-v2
780d493
src/utilities/server/actions/countOpportunities.ts
TypeScript
www.github.com/jlmodell/busseforce-nextjs-v2/tree/main/src/utilities/server/actions/countOpportunities.ts
https://raw.githubusercontent.com/jlmodell/busseforce-nextjs-v2/780d493/src/utilities/server/actions/countOpportunities.ts
jlmodell/busseforce-nextjs-v2 780d493 src/utilities/server/actions/countOpportunities.ts
true
200
514
"use server"; import atlasClientPromise from "@/utilities/db/atlas"; import { ObjectId } from "mongodb"; import { type BusseUser } from "@/app/api/auth/[...nextauth]/route"; export default async function countOpportunities(user: BusseUser) { const client = await atlasClientPromise; const db = client.db("busseforce...
7
Aliensbis/project2
aeb9fab
src/config/subscription.ts
TypeScript
www.github.com/Aliensbis/project2/tree/main/src/config/subscription.ts
https://raw.githubusercontent.com/Aliensbis/project2/aeb9fab/src/config/subscription.ts
Aliensbis/project2 aeb9fab src/config/subscription.ts
true
200
315
import { SubscriptionPlan } from '../types/Subscription'; export const SUBSCRIPTION_PLANS: Record<string, SubscriptionPlan> = { standard: { id: 'standard', name: 'Piano Standard', price: 150, currency: 'EUR', interval: 'month', trialDays: 30 } }; export const TRIAL_DURATION_DAYS = 30;
0
muniif10/todo-w-api
72581ca
src/controllers/taskController.ts
TypeScript
www.github.com/muniif10/todo-w-api/tree/main/src/controllers/taskController.ts
https://raw.githubusercontent.com/muniif10/todo-w-api/72581ca/src/controllers/taskController.ts
muniif10/todo-w-api 72581ca src/controllers/taskController.ts
true
200
1,620
import { Request, response, Response } from "express"; import * as taskModel from '../models/taskModel'; export const createTask = (req: Request, res: Response): void => { const title = req.body.title; const task = taskModel.createTask(title); res.status(201).json(task); } // Get all tasks in array expo...
1
playgamesgo/PetWorld
14b96e5
Frontend/src/app/profile/services/guards/profile.resolver.ts
TypeScript
www.github.com/playgamesgo/PetWorld/tree/main/Frontend/src/app/profile/services/guards/profile.resolver.ts
https://raw.githubusercontent.com/playgamesgo/PetWorld/14b96e5/Frontend/src/app/profile/services/guards/profile.resolver.ts
playgamesgo/PetWorld 14b96e5 Frontend/src/app/profile/services/guards/profile.resolver.ts
true
200
1,028
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router'; import { inject } from '@angular/core'; import { catchError, EMPTY, Observable } from 'rxjs'; import { ProfileApiService } from '../profile-api.service'; import { ToasterService } from '../../../services/toaster.service'; import { T...
4
ildevelop/fsm-react
4418e2b
jest.config.ts
TypeScript
www.github.com/ildevelop/fsm-react/tree/main/jest.config.ts
https://raw.githubusercontent.com/ildevelop/fsm-react/4418e2b/jest.config.ts
ildevelop/fsm-react 4418e2b jest.config.ts
true
200
524
import type { Config } from '@jest/types'; const config: Config.InitialOptions = { preset: 'ts-jest', testEnvironment: 'jest-environment-jsdom', transform: { '^.+\\.(t|j)sx?$': [ 'ts-jest', { useESM: true, tsconfig: '<rootDir>/tsconfig.json', }, ], }, moduleNameMappe...
3
MahamFayyaz/DineMarketPlace
6047d34
sanity/ProductSan.ts
TypeScript
www.github.com/MahamFayyaz/DineMarketPlace/tree/main/sanity/ProductSan.ts
https://raw.githubusercontent.com/MahamFayyaz/DineMarketPlace/6047d34/sanity/ProductSan.ts
MahamFayyaz/DineMarketPlace 6047d34 sanity/ProductSan.ts
true
200
1,354
export const productsan = { name: "productsan", type: "document", title: "ProductSan", fields: [ { name: "title", title: "Title", type: "string", }, { title:"slug", name:"slug", type:"slug", options:{ source:"title", maxLength:200, sl...
7
fabiooliveirajjd/Condominio-front
6f0e168
src/app/components/app-routing.module.ts
TypeScript
www.github.com/fabiooliveirajjd/Condominio-front/tree/main/src/app/components/app-routing.module.ts
https://raw.githubusercontent.com/fabiooliveirajjd/Condominio-front/6f0e168/src/app/components/app-routing.module.ts
fabiooliveirajjd/Condominio-front 6f0e168 src/app/components/app-routing.module.ts
true
200
2,143
import {DespesaListComponent} from "./despesa/despesa-list/despesa-list.component"; import {TaxaDeleteComponent} from "./taxa/taxa-delete/taxa-delete.component"; import {TaxaViewComponent} from "./taxa/taxa-view/taxa-view.component"; import {TaxaUpdateComponent} from "./taxa/taxa-update/taxa-update.component"; import {...
2
shaikhisaleh/first-project
eb67779
src/app/recipes/recipe.service.ts
TypeScript
www.github.com/shaikhisaleh/first-project/tree/main/src/app/recipes/recipe.service.ts
https://raw.githubusercontent.com/shaikhisaleh/first-project/eb67779/src/app/recipes/recipe.service.ts
shaikhisaleh/first-project eb67779 src/app/recipes/recipe.service.ts
true
200
2,358
import { Injectable } from "@angular/core"; import { Subject } from "rxjs"; import { Ingredient } from "../shared/ingredient.model"; import { ShoppingListService } from "../shopping-list/shopping-list.service"; import { Recipe } from "./recipe.model"; @Injectable() export class RecipeService{ recipesChanged = new ...
4
minari515/susan2023
d5422ce
front/src/pages/api/v1/line/libs/connectDB/postNewQuestion.ts
TypeScript
www.github.com/minari515/susan2023/tree/main/front/src/pages/api/v1/line/libs/connectDB/postNewQuestion.ts
https://raw.githubusercontent.com/minari515/susan2023/d5422ce/front/src/pages/api/v1/line/libs/connectDB/postNewQuestion.ts
minari515/susan2023 d5422ce front/src/pages/api/v1/line/libs/connectDB/postNewQuestion.ts
true
200
845
import type { postNewQuestionParams } from "@/types/payloads"; import type { postNewQuestionResponse } from "@/types/response"; import axios from "axios"; /** * ๆ–ฐ่ฆใฎ่ณชๅ•ใ‚’DBใซ็™ป้Œฒใ™ใ‚‹ * ่ณชๅ•ใฎใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚น๏ผŒๅ›ž็ญ”ใ‚’ไพ้ ผใ™ใ‚‹ๅญฆ็”Ÿๅ”ๅŠ›่€…ใฎใƒฆใƒผใ‚ถIDใ‚’่ฟ”ใ™ */ const postNewQuestion = async ({ userId, lectureNumber, questionText, }: postNewQuestionParams) => { ...
3
hupe1980/github-actions-cdk
cdfc862
packages/github-actions-cdk/src/runner.ts
TypeScript
www.github.com/hupe1980/github-actions-cdk/tree/main/packages/github-actions-cdk/src/runner.ts
https://raw.githubusercontent.com/hupe1980/github-actions-cdk/cdfc862/packages/github-actions-cdk/src/runner.ts
hupe1980/github-actions-cdk cdfc862 packages/github-actions-cdk/src/runner.ts
true
200
2,786
/** * Represents a GitHub Actions runner environment for executing jobs. * * @remarks * This class provides both GitHub-hosted runner options (`ubuntu-latest`, `windows-latest`, `macos-latest`) * and options for configuring self-hosted runners with custom labels. If using self-hosted runners, it is recommended * ...
7
kudokuapp/Audea-Web
8ff8f99
app/app/client/script/getNotionAccount.ts
TypeScript
www.github.com/kudokuapp/Audea-Web/tree/main/app/app/client/script/getNotionAccount.ts
https://raw.githubusercontent.com/kudokuapp/Audea-Web/8ff8f99/app/app/client/script/getNotionAccount.ts
kudokuapp/Audea-Web 8ff8f99 app/app/client/script/getNotionAccount.ts
true
200
1,117
import client from '@/utils/graphql' import { gql } from '@apollo/client' export interface IGetNotionAccount { __typename: 'NotionAccount' accessToken: string automaticPost: boolean primaryDatabase: string | null } export function getNotionAccount(token: string): Promise<IGetNotionAccount | null> { const qu...
4
Likos50/ccxt-master
08e8347
js/src/wavesexchange.d.ts
TypeScript
www.github.com/Likos50/ccxt-master/tree/main/js/src/wavesexchange.d.ts
https://raw.githubusercontent.com/Likos50/ccxt-master/08e8347/js/src/wavesexchange.d.ts
Likos50/ccxt-master 08e8347 js/src/wavesexchange.d.ts
true
200
13,800
import Exchange from './abstract/wavesexchange.js'; import type { Balances, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int, DepositAddress } from './base/types.js'; /** * @class wavesexchange * @augments Exchange */ export defau...
2
Hafizarslanbutt/vending-Machine-Reactjs-Nestjs
d4d9e76
backend/src/app.module.ts
TypeScript
www.github.com/Hafizarslanbutt/vending-Machine-Reactjs-Nestjs/tree/main/backend/src/app.module.ts
https://raw.githubusercontent.com/Hafizarslanbutt/vending-Machine-Reactjs-Nestjs/d4d9e76/backend/src/app.module.ts
Hafizarslanbutt/vending-Machine-Reactjs-Nestjs d4d9e76 backend/src/app.module.ts
true
200
987
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ConfigModule } from '@nestjs/config'; import { MongooseModule } from '@nestjs/mongoose'; import { AuthModule } from './entities/auth/auth.module'; import configuration from '....
3
aws-samples/amazon-gamelift-testing-toolkit
b31255a
ManagementConsole/UI/src/Data/ScreenResolution.ts
TypeScript
www.github.com/aws-samples/amazon-gamelift-testing-toolkit/tree/main/ManagementConsole/UI/src/Data/ScreenResolution.ts
https://raw.githubusercontent.com/aws-samples/amazon-gamelift-testing-toolkit/b31255a/ManagementConsole/UI/src/Data/ScreenResolution.ts
aws-samples/amazon-gamelift-testing-toolkit b31255a ManagementConsole/UI/src/Data/ScreenResolution.ts
true
200
1,278
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 export class ScreenResolution { public static RES_1080P : string = "1080P"; public static RES_720P : string = "720P"; private static _width: number = 1920; private static _height: number = 1080...
7
AmmarKhalili/TandKilnikIkarlstad
b6fdaab
node_modules/next/dist/server/send-payload.d.ts
TypeScript
www.github.com/AmmarKhalili/TandKilnikIkarlstad/tree/main/node_modules/next/dist/server/send-payload.d.ts
https://raw.githubusercontent.com/AmmarKhalili/TandKilnikIkarlstad/b6fdaab/node_modules/next/dist/server/send-payload.d.ts
AmmarKhalili/TandKilnikIkarlstad b6fdaab node_modules/next/dist/server/send-payload.d.ts
true
200
638
import type { IncomingMessage, ServerResponse } from 'http'; import type RenderResult from './render-result'; import type { CacheControl } from './lib/cache-control'; export declare function sendEtagResponse(req: IncomingMessage, res: ServerResponse, etag: string | undefined): boolean; export declare function sendRende...
4
isramartin/MiSalud_back
8b9ec8e
src/medicinas/medicinas.module.ts
TypeScript
www.github.com/isramartin/MiSalud_back/tree/main/src/medicinas/medicinas.module.ts
https://raw.githubusercontent.com/isramartin/MiSalud_back/8b9ec8e/src/medicinas/medicinas.module.ts
isramartin/MiSalud_back 8b9ec8e src/medicinas/medicinas.module.ts
true
200
430
import { Module } from '@nestjs/common'; import { MedicinasController } from './medicinas.controller'; import { MedicinasService } from './medicinas.service'; import { Medicina } from './entity/medicinas.entity'; import { TypeOrmModule } from '@nestjs/typeorm'; @Module({ imports: [TypeOrmModule.forFeature([Medicina]...
3
anthonystewardt/anthony-blog
50c497a
src/app/api/blog/route.ts
TypeScript
www.github.com/anthonystewardt/anthony-blog/tree/main/src/app/api/blog/route.ts
https://raw.githubusercontent.com/anthonystewardt/anthony-blog/50c497a/src/app/api/blog/route.ts
anthonystewardt/anthony-blog 50c497a src/app/api/blog/route.ts
true
200
1,290
import prisma from '@/lib/db'; import { NextResponse, NextRequest } from 'next/server' import { v2 as cloudinary } from "cloudinary"; cloudinary.config({ cloud_name: process.env.CLOUD_NAME, api_key: process.env.API_KEY, api_secret: process.env.API_SECRET, }); export async function GET(request: Request) { ...
2
harshal2804/TaskTrackr
a233310
src/infrastructure/services/User/deleteUser.service.ts
TypeScript
www.github.com/harshal2804/TaskTrackr/tree/main/src/infrastructure/services/User/deleteUser.service.ts
https://raw.githubusercontent.com/harshal2804/TaskTrackr/a233310/src/infrastructure/services/User/deleteUser.service.ts
harshal2804/TaskTrackr a233310 src/infrastructure/services/User/deleteUser.service.ts
true
200
610
import { deleteUser } from "../../../application/usecases/user/impls/DeleteUser"; import { IController } from "../../../presentation/http/controllers/controller"; import { deleteUserController } from "../../../presentation/http/controllers/User/deleteUser.controller"; import { userRepositoryMongoDB } from "../../databa...
7
kojofl/cns-vc-integration
968d577
packages/cns-transport/test/testHelpers/ACollectionItem.ts
TypeScript
www.github.com/kojofl/cns-vc-integration/tree/main/packages/cns-transport/test/testHelpers/ACollectionItem.ts
https://raw.githubusercontent.com/kojofl/cns-vc-integration/968d577/packages/cns-transport/test/testHelpers/ACollectionItem.ts
kojofl/cns-vc-integration 968d577 packages/cns-transport/test/testHelpers/ACollectionItem.ts
true
200
1,328
import { serialize, type, validate } from "@js-soft/ts-serval" import { CoreId, CoreSerializable, ICoreSerializable } from "@nmshd/transport" import { nameof } from "ts-simple-nameof" export interface IACollectionItem extends ICoreSerializable { id: CoreId someTechnicalStringProperty?: string someUserdat...
3
Tranthaibao-cmd/hagiang
bc5be25
src/app/features/table/position-table/position-table.component.ts
TypeScript
www.github.com/Tranthaibao-cmd/hagiang/tree/main/src/app/features/table/position-table/position-table.component.ts
https://raw.githubusercontent.com/Tranthaibao-cmd/hagiang/bc5be25/src/app/features/table/position-table/position-table.component.ts
Tranthaibao-cmd/hagiang bc5be25 src/app/features/table/position-table/position-table.component.ts
true
200
9,119
import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { AuthenticationService } from '@features/service/authentication-service/authentication.service'; import { PositionService } from '@features/service/position-service/position.service'; import { RoleService } f...
2
LearnCraft-Spanish/learncraft-spanish
167d783
src/hooks/CoachingData/queries/useWeeks.ts
TypeScript
www.github.com/LearnCraft-Spanish/learncraft-spanish/tree/main/src/hooks/CoachingData/queries/useWeeks.ts
https://raw.githubusercontent.com/LearnCraft-Spanish/learncraft-spanish/167d783/src/hooks/CoachingData/queries/useWeeks.ts
LearnCraft-Spanish/learncraft-spanish 167d783 src/hooks/CoachingData/queries/useWeeks.ts
true
200
1,489
import { useMutation, useQuery } from '@tanstack/react-query'; import { toast } from 'react-toastify'; import { useBackendHelpers } from '../../useBackend'; import { useUserData } from '../../UserData/useUserData'; import useStudentRecordsBackend from './StudentRecordsBackendFunctions'; export default function useWee...
4
acoustic-content-samples/prod-wch-sdk-ng9
6a77e99
packages/redux-utils/src/content/content.utils.ts
TypeScript
www.github.com/acoustic-content-samples/prod-wch-sdk-ng9/tree/main/packages/redux-utils/src/content/content.utils.ts
https://raw.githubusercontent.com/acoustic-content-samples/prod-wch-sdk-ng9/6a77e99/packages/redux-utils/src/content/content.utils.ts
acoustic-content-samples/prod-wch-sdk-ng9 6a77e99 packages/redux-utils/src/content/content.utils.ts
true
200
7,596
import { AuthoringAsset, AuthoringContentItem, BaseAuthoringItem, CLASSIFICATION_ASSET, DraftStatus, ELEMENT_TYPE_IMAGE, ELEMENT_TYPE_VIDEO, Status, User } from '@acoustic-content-sdk/api'; import { AccessorType } from '@acoustic-content-sdk/edit-api'; import { getPath, getProperty, isArray, i...
2
alexatennea/troll-slayer
062081e
TrollSlayer/src/app/app.component.ts
TypeScript
www.github.com/alexatennea/troll-slayer/tree/main/TrollSlayer/src/app/app.component.ts
https://raw.githubusercontent.com/alexatennea/troll-slayer/062081e/TrollSlayer/src/app/app.component.ts
alexatennea/troll-slayer 062081e TrollSlayer/src/app/app.component.ts
true
200
1,754
import { Component, ViewEncapsulation } from '@angular/core'; import { GameService } from './game.service'; import { GameData, AttackData, ReturnedGameData } from './models'; @Component({ selector: 'app-root', encapsulation: ViewEncapsulation.None, templateUrl: './app.component.html', styleUrls: ['./app.compon...
4
Pasantia-TCS/TCS-FE
3e22c26
src/app/auth/interfaces/user.ts
TypeScript
www.github.com/Pasantia-TCS/TCS-FE/tree/main/src/app/auth/interfaces/user.ts
https://raw.githubusercontent.com/Pasantia-TCS/TCS-FE/3e22c26/src/app/auth/interfaces/user.ts
Pasantia-TCS/TCS-FE 3e22c26 src/app/auth/interfaces/user.ts
true
200
296
export interface User { id_numero_Ultimatix?: string, clave?: string, nombre?: string, apellido?: string, telefono?: string, correo?: string, fecha_login?: string, intentos?: number, token?: string, estado?: boolean, mensaje?: string status?: string timestamp?: string }
7
YevheniiaDehtiarova/Watchlist-app
04b8aee
src/app/api/store/app.reducer.ts
TypeScript
www.github.com/YevheniiaDehtiarova/Watchlist-app/tree/main/src/app/api/store/app.reducer.ts
https://raw.githubusercontent.com/YevheniiaDehtiarova/Watchlist-app/04b8aee/src/app/api/store/app.reducer.ts
YevheniiaDehtiarova/Watchlist-app 04b8aee src/app/api/store/app.reducer.ts
true
200
3,650
import { createReducer, on } from '@ngrx/store'; import * as appActions from './app.actions'; import { AppState } from './app.state'; export const initialState: AppState = { currentTitle: null, watchList: [], searchResults: null, searchError: null, suggestions: [], loading: false, }; export const appRed...
3
Paul7Peterson/THEDesignSystem
25b8aa3
lit/src/components/molecules/Select/z-select.ts
TypeScript
www.github.com/Paul7Peterson/THEDesignSystem/tree/main/lit/src/components/molecules/Select/z-select.ts
https://raw.githubusercontent.com/Paul7Peterson/THEDesignSystem/25b8aa3/lit/src/components/molecules/Select/z-select.ts
Paul7Peterson/THEDesignSystem 25b8aa3 lit/src/components/molecules/Select/z-select.ts
true
200
1,110
import { html, unsafeCSS } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import SCSS from './z-select.scss?inline'; import { ArrayConverter } from '~/utils/converters'; import type { ZSelectProps } from './z-select.props'; import { FormElement } from '../_shared/FormElement'; import '../L...
4
ManuelaGarciaYebra/HeroApp
7add653
src/app/heroes/components/confirm-message/confirm-message.component.ts
TypeScript
www.github.com/ManuelaGarciaYebra/HeroApp/tree/main/src/app/heroes/components/confirm-message/confirm-message.component.ts
https://raw.githubusercontent.com/ManuelaGarciaYebra/HeroApp/7add653/src/app/heroes/components/confirm-message/confirm-message.component.ts
ManuelaGarciaYebra/HeroApp 7add653 src/app/heroes/components/confirm-message/confirm-message.component.ts
true
200
703
import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Hero } from '../../interfaces/heroes.interfaces'; @Component({ selector: 'app-confirm-message', templateUrl: './confirm-message.component.html', styleUrls: ['./confirm-mes...
7
tanvir8321/nodejs-vercel
f670c75
src/sequelizeConfig.ts
TypeScript
www.github.com/tanvir8321/nodejs-vercel/tree/main/src/sequelizeConfig.ts
https://raw.githubusercontent.com/tanvir8321/nodejs-vercel/f670c75/src/sequelizeConfig.ts
tanvir8321/nodejs-vercel f670c75 src/sequelizeConfig.ts
true
200
641
// src/sequelizeConfig.ts import { Sequelize } from "sequelize"; // Define the types for your environment variables type Env = { DB_NAME: string; DB_USER: string; DB_PASSWORD: string; DB_HOST: string; }; // Ensure that process.env contains the required variables const env: Env = { DB_NAME: process.env.DB_NA...
3
szq19980523/typescript-learn
a7c5b1c
่”ๅˆ็ฑปๅž‹.ts
TypeScript
www.github.com/szq19980523/typescript-learn/tree/main/่”ๅˆ็ฑปๅž‹.ts
https://raw.githubusercontent.com/szq19980523/typescript-learn/a7c5b1c/%E8%81%94%E5%90%88%E7%B1%BB%E5%9E%8B.ts
szq19980523/typescript-learn a7c5b1c ่”ๅˆ็ฑปๅž‹.ts
true
200
229
const fns = (x: string | number) => { return x } type Obj1 = { a: string, b: number } type Obj2 = { c: string, d: number } const obj: Obj1 | Obj2 = { a: '123', b: 456, // f: '124', d: 123, } // true export { }
4
shakthi1810/Angular-Residential
b4c91a4
src/app/pages/enquiry/enquiry.component.ts
TypeScript
www.github.com/shakthi1810/Angular-Residential/tree/main/src/app/pages/enquiry/enquiry.component.ts
https://raw.githubusercontent.com/shakthi1810/Angular-Residential/b4c91a4/src/app/pages/enquiry/enquiry.component.ts
shakthi1810/Angular-Residential b4c91a4 src/app/pages/enquiry/enquiry.component.ts
true
200
2,982
import { Component, OnInit, OnChanges, HostListener, ElementRef, } from '@angular/core'; import { EnquiryFormService } from 'src/app/services/enquiry-form.service'; import { Data, Event, Router } from '@angular/router'; import { ModalService } from 'src/app/services/modal.service'; interface enquiryData { ...
2
alekseylovchikov/eventso
3ea16fd
src/features/auth/mutations/changePassword.ts
TypeScript
www.github.com/alekseylovchikov/eventso/tree/main/src/features/auth/mutations/changePassword.ts
https://raw.githubusercontent.com/alekseylovchikov/eventso/3ea16fd/src/features/auth/mutations/changePassword.ts
alekseylovchikov/eventso 3ea16fd src/features/auth/mutations/changePassword.ts
true
200
1,065
import { NotFoundError, AuthenticationError } from 'blitz'; import { resolver } from '@blitzjs/rpc'; import { SecurePassword } from '@blitzjs/auth/secure-password'; import { z } from 'zod'; import { authenticateUser } from '@/utils/auth-utils'; import { password } from '../schemas'; import db from '~/db'; const Input ...
5
israelgenzel/mm_02
673d2f3
node_modules/israeli-bank-scrapers/lib/scrapers/yahav.d.ts
TypeScript
www.github.com/israelgenzel/mm_02/tree/main/node_modules/israeli-bank-scrapers/lib/scrapers/yahav.d.ts
https://raw.githubusercontent.com/israelgenzel/mm_02/673d2f3/node_modules/israeli-bank-scrapers/lib/scrapers/yahav.d.ts
israelgenzel/mm_02 673d2f3 node_modules/israeli-bank-scrapers/lib/scrapers/yahav.d.ts
true
200
841
import { type TransactionsAccount } from '../transactions'; import { BaseScraperWithBrowser, type PossibleLoginResults } from './base-scraper-with-browser'; type ScraperSpecificCredentials = { username: string; password: string; nationalID: string; }; declare class YahavScraper extends BaseScraperWithBrowse...
7
saket-kr-jha/Angular_Traffic_Light
7e96d24
src/app/app.component.ts
TypeScript
www.github.com/saket-kr-jha/Angular_Traffic_Light/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/saket-kr-jha/Angular_Traffic_Light/7e96d24/src/app/app.component.ts
saket-kr-jha/Angular_Traffic_Light 7e96d24 src/app/app.component.ts
true
200
661
import { Component } from '@angular/core'; import { TrafficLightConfig } from './traffic-light/traffic-light.component'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrl: './app.component.css', }) export class AppComponent { config: TrafficLightConfig<'red' | 'yellow' | 'green'>...
3
aristizabaru/nodejs-de-cero-a-experto-REST-SERVER
389bf48
src/domain/use-case/get-todo.ts
TypeScript
www.github.com/aristizabaru/nodejs-de-cero-a-experto-REST-SERVER/tree/main/src/domain/use-case/get-todo.ts
https://raw.githubusercontent.com/aristizabaru/nodejs-de-cero-a-experto-REST-SERVER/389bf48/src/domain/use-case/get-todo.ts
aristizabaru/nodejs-de-cero-a-experto-REST-SERVER 389bf48 src/domain/use-case/get-todo.ts
true
200
429
import { TodoEntity } from "../entity/todo.enetity"; import { TodoRepository } from "../repository/todo.repository"; export interface GetTodoUseCase { execute(id: number): Promise<TodoEntity> } export class GetTodo implements GetTodoUseCase { constructor( private readonly repository: TodoRepository ...
4
Kenzie-Academy-Brasil-Developers/m4-entrega-sprint4-zrafael
dc00b96
src/app.ts
TypeScript
www.github.com/Kenzie-Academy-Brasil-Developers/m4-entrega-sprint4-zrafael/tree/main/src/app.ts
https://raw.githubusercontent.com/Kenzie-Academy-Brasil-Developers/m4-entrega-sprint4-zrafael/dc00b96/src/app.ts
Kenzie-Academy-Brasil-Developers/m4-entrega-sprint4-zrafael dc00b96 src/app.ts
true
200
286
import "reflect-metadata" import express from "express" import userRoutes from './routes/users.routes' import sessionRoutes from './routes/session.routes' const app = express() app.use(express.json()) app.use('/users', userRoutes) app.use('/login', sessionRoutes) export default app
2
MFNO/CruxRoute
f67253f
web/src/app/event-display/event-display.component.ts
TypeScript
www.github.com/MFNO/CruxRoute/tree/main/web/src/app/event-display/event-display.component.ts
https://raw.githubusercontent.com/MFNO/CruxRoute/f67253f/web/src/app/event-display/event-display.component.ts
MFNO/CruxRoute f67253f web/src/app/event-display/event-display.component.ts
true
200
1,717
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, } from '@angular/core'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { CalendarEvent } from 'angular-calendar'; import { EventService } from '../services/event.service'; import { DeleteTrainingEventDialogCom...
5
Josespinozav/PRUEBAS_PERSONALES
5a4622a
sidemenu/src/app/personacerca/personacerca.module.ts
TypeScript
www.github.com/Josespinozav/PRUEBAS_PERSONALES/tree/main/sidemenu/src/app/personacerca/personacerca.module.ts
https://raw.githubusercontent.com/Josespinozav/PRUEBAS_PERSONALES/5a4622a/sidemenu/src/app/personacerca/personacerca.module.ts
Josespinozav/PRUEBAS_PERSONALES 5a4622a sidemenu/src/app/personacerca/personacerca.module.ts
true
200
514
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { PersonacercaPageRoutingModule } from './personacerca-routing.module'; import { PersonacercaPage } from './personacerca.page'; ...
7
imob-innovation/imob-core
7bac456
projects/imob-core/src/lib/imob-core.module.ts
TypeScript
www.github.com/imob-innovation/imob-core/tree/main/projects/imob-core/src/lib/imob-core.module.ts
https://raw.githubusercontent.com/imob-innovation/imob-core/7bac456/projects/imob-core/src/lib/imob-core.module.ts
imob-innovation/imob-core 7bac456 projects/imob-core/src/lib/imob-core.module.ts
true
200
783
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { NzTableModule } from 'ng-zorro-antd/table'; import { NzIconModule } from 'ng-zorro-antd/icon'; import { NzButtonModule } from 'ng-zorro-antd/button'; import { Nz...
3
De-Hype/appbay
11cc7c1
backend/src/errors/customErrors.ts
TypeScript
www.github.com/De-Hype/appbay/tree/main/backend/src/errors/customErrors.ts
https://raw.githubusercontent.com/De-Hype/appbay/11cc7c1/backend/src/errors/customErrors.ts
De-Hype/appbay 11cc7c1 backend/src/errors/customErrors.ts
true
200
891
import AppError from "./AppError"; //All Custom errors will be handled here, including mongodb errors, jwt error etc export const handleCastErrorDB = (err:any)=>{ const message = `Invalid ${err.path}: ${err.value}`; return new AppError(message, 400); } export const handleDuplicateFieldDB = (err:any)=>{ con...
4
SaiSiThu112/zhask-bbms-frontend
6af76be
src/app/board/board.component.ts
TypeScript
www.github.com/SaiSiThu112/zhask-bbms-frontend/tree/main/src/app/board/board.component.ts
https://raw.githubusercontent.com/SaiSiThu112/zhask-bbms-frontend/6af76be/src/app/board/board.component.ts
SaiSiThu112/zhask-bbms-frontend 6af76be src/app/board/board.component.ts
true
200
4,041
import {Component, Input, OnInit} from '@angular/core'; import {AbstractControl, FormBuilder, FormControl, FormGroup, Validators} from "@angular/forms"; import { TaskListService } from '../services/tasklist.service'; import { ActivatedRoute } from '@angular/router'; import { Board } from '../models/board'; import {Task...
2
jsaleix/cinqoo-microservices
f665e25
gateway-service/src/app.controller.ts
TypeScript
www.github.com/jsaleix/cinqoo-microservices/tree/main/gateway-service/src/app.controller.ts
https://raw.githubusercontent.com/jsaleix/cinqoo-microservices/f665e25/gateway-service/src/app.controller.ts
jsaleix/cinqoo-microservices f665e25 gateway-service/src/app.controller.ts
true
200
485
import { Controller, Get, HttpCode, Req } from '@nestjs/common'; import { Public } from 'src/auth/decorators/public.decorator'; @Controller() export class AppController { @Public() @Get() async getHello(@Req() req): Promise<string> { return 'Welcome to Cinqoo API-GATEWAY'; } @Get() getHelloTest(): stri...
0
alexeychikk/vpo-help
4b7cbbb
apps/api/src/main.ts
TypeScript
www.github.com/alexeychikk/vpo-help/tree/main/apps/api/src/main.ts
https://raw.githubusercontent.com/alexeychikk/vpo-help/4b7cbbb/apps/api/src/main.ts
alexeychikk/vpo-help 4b7cbbb apps/api/src/main.ts
true
200
714
import 'reflect-metadata'; import { LoggerService } from '@vpo-help/server'; import { createApp } from './createApp'; import { EnvService } from './services'; async function bootstrap() { try { const env = new EnvService(); env.ensureVariablesSet(); const app = await createApp({ env }); app.enableSh...
1
sowndev0106/tinh-diem-iuh-v3
69f15b8
src/data/data-preprocessing.ts
TypeScript
www.github.com/sowndev0106/tinh-diem-iuh-v3/tree/main/src/data/data-preprocessing.ts
https://raw.githubusercontent.com/sowndev0106/tinh-diem-iuh-v3/69f15b8/src/data/data-preprocessing.ts
sowndev0106/tinh-diem-iuh-v3 69f15b8 src/data/data-preprocessing.ts
true
200
2,826
import { Term, Overview, Subject } from "../interface"; export const dataPreprocessing = (data: Term[]) => { return data.map((term, index) => { const subjects: Subject[] = term.subjects.map((subject, index) => { const creditPractical = findPracticalCredit(subject); const creditTheory = (subject...
7
kennedyeruba/inheritance-funds-contract
3f088f4
test/InheritanceFunds.ts
TypeScript
www.github.com/kennedyeruba/inheritance-funds-contract/tree/main/test/InheritanceFunds.ts
https://raw.githubusercontent.com/kennedyeruba/inheritance-funds-contract/3f088f4/test/InheritanceFunds.ts
kennedyeruba/inheritance-funds-contract 3f088f4 test/InheritanceFunds.ts
true
200
3,694
import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { anyValue } from "@nomicfoundation/hardhat-chai-matchers/withArgs"; import { expect } from "chai"; import { ethers } from "hardhat"; describe("Inheritance Funds", function () { // We define a fixture to reuse the same setup in ever...
3
Pierre-FABIEN/APIRestFul-Sveltekit-NodeJS-MongoDB
3b185aa
backend/routes/auth/userRoutes.ts
TypeScript
www.github.com/Pierre-FABIEN/APIRestFul-Sveltekit-NodeJS-MongoDB/tree/main/backend/routes/auth/userRoutes.ts
https://raw.githubusercontent.com/Pierre-FABIEN/APIRestFul-Sveltekit-NodeJS-MongoDB/3b185aa/backend/routes/auth/userRoutes.ts
Pierre-FABIEN/APIRestFul-Sveltekit-NodeJS-MongoDB 3b185aa backend/routes/auth/userRoutes.ts
true
200
1,351
import { Router } from 'express'; import { handleValidationErrors } from '../../middlewares/handleValidationErrors.js'; import { checkRole } from '../../middlewares/checkRole.js'; import { isAuthenticated } from '../../middlewares/isAuthenticated.js'; import { updateUserValidators } from '../../validations/validators.j...
4
eizemazal/butlerov
436c488
src/controller/Controller.ts
TypeScript
www.github.com/eizemazal/butlerov/tree/main/src/controller/Controller.ts
https://raw.githubusercontent.com/eizemazal/butlerov/436c488/src/controller/Controller.ts
eizemazal/butlerov 436c488 src/controller/Controller.ts
true
200
4,397
import Konva from "konva"; import { Stylesheet } from "./Stylesheet"; import { Action, UpdatableAction, ActionDirection } from "../action/Action"; import { Drawable } from "../drawable/Drawable"; /** * This is a base class for controller. It performs basic actions like keeping track of the stage, * undo and redo */...
0
Raffayet/UberApp
fff3666
uber-frontend/src/app/app.module.ts
TypeScript
www.github.com/Raffayet/UberApp/tree/main/uber-frontend/src/app/app.module.ts
https://raw.githubusercontent.com/Raffayet/UberApp/fff3666/uber-frontend/src/app/app.module.ts
Raffayet/UberApp fff3666 uber-frontend/src/app/app.module.ts
true
200
3,429
import { RegisteredDriverComponent } from './modules/auth/pages/registered-driver/registered-driver.component'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-...
2
monnomlog-donkasu/monnomlog-alpha
d541f0c
src/common/hooks/use-edit-property-internal-value.ts
TypeScript
www.github.com/monnomlog-donkasu/monnomlog-alpha/tree/main/src/common/hooks/use-edit-property-internal-value.ts
https://raw.githubusercontent.com/monnomlog-donkasu/monnomlog-alpha/d541f0c/src/common/hooks/use-edit-property-internal-value.ts
monnomlog-donkasu/monnomlog-alpha d541f0c src/common/hooks/use-edit-property-internal-value.ts
true
200
866
import { useState, useCallback, useEffect } from "react"; /** * ์†์„ฑ ํŽธ์ง‘ ์ฐฝ์—์„œ ๊ฐ„์ ‘์ ์œผ๋กœ ๊ฐ’์„ ์—…๋ฐ์ดํŠธ ํ•˜๋Š” ํ›„ํฌ ํ•จ์ˆ˜. * Slate์—์„œ ๊ด€๋ฆฌํ•˜๋Š” ๊ฐ’์— ์˜์กด์„ฑ์„ ๊ฑธ๋ฉด ํ•œ๊ธ€ ์ž๋ชจ๊ฐ€ ๋ถ„๋ฆฌ๋˜์–ด ์ž…๋ ค๋˜๋Š” ๋ฒ„๊ทธ ํ˜„์ƒ์ด ๋ฐœ์ƒํ•จ. * ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋‚ด๋ถ€ ์ƒํƒœ๊ฐ’์„ ๋‘์–ด ๊ฐ„์ ‘์ ์œผ๋กœ ์—…๋ฐ์ดํŠธํ•˜๋„๋ก ํ•จ. */ export default function useEditPropertyInternalValue<T>({ externalValue, onChange, }: { externalValue: T; onCh...
1
ritz-ganguly/Phase-4-Final-Project-Online-Exam-
115ca33
Phase 4 Angular Part/src/app/app.module.ts
TypeScript
www.github.com/ritz-ganguly/Phase-4-Final-Project-Online-Exam-/tree/main/Phase 4 Angular Part/src/app/app.module.ts
https://raw.githubusercontent.com/ritz-ganguly/Phase-4-Final-Project-Online-Exam-/115ca33/Phase%204%20Angular%20Part/src/app/app.module.ts
ritz-ganguly/Phase-4-Final-Project-Online-Exam- 115ca33 Phase 4 Angular Part/src/app/app.module.ts
true
200
2,809
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { StudentLoginComponent } from './student-login/student-login...
5
duongtran19997/Module4-Bai5-Middleware
227907d
[Thuc-hanh]-Xay-dung-middleware-do-thoi-gian-xu-ly-request/index.ts
TypeScript
www.github.com/duongtran19997/Module4-Bai5-Middleware/tree/main/[Thuc-hanh]-Xay-dung-middleware-do-thoi-gian-xu-ly-request/index.ts
https://raw.githubusercontent.com/duongtran19997/Module4-Bai5-Middleware/227907d/%5BThuc-hanh%5D-Xay-dung-middleware-do-thoi-gian-xu-ly-request/index.ts
duongtran19997/Module4-Bai5-Middleware 227907d [Thuc-hanh]-Xay-dung-middleware-do-thoi-gian-xu-ly-request/index.ts
true
200
840
import express from 'express'; import bodyParser from "body-parser"; import axios from 'axios'; import {responseTime} from './src/middleware/responseTime' import routes from './src/router/router' const PORT = 3000; const app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended: true})); app....
7
alireza-sohrabi/ngx-mat-select
bbb8a94
src/app/examples/examples.component.ts
TypeScript
www.github.com/alireza-sohrabi/ngx-mat-select/tree/main/src/app/examples/examples.component.ts
https://raw.githubusercontent.com/alireza-sohrabi/ngx-mat-select/bbb8a94/src/app/examples/examples.component.ts
alireza-sohrabi/ngx-mat-select bbb8a94 src/app/examples/examples.component.ts
true
200
2,196
import {ChangeDetectionStrategy, Component, QueryList, ViewChildren, ViewEncapsulation} from '@angular/core'; import { Validators} from '@angular/forms'; import {NgxMatSelectConfigExample, NgxMatSelectExampleForms} from './expamles-select'; @Component({ selector: 'app-examples', templateUrl: './examples.component...
3
GyoHeon/coding_test
44c5bec
leetcode/medium/494.ts
TypeScript
www.github.com/GyoHeon/coding_test/tree/main/leetcode/medium/494.ts
https://raw.githubusercontent.com/GyoHeon/coding_test/44c5bec/leetcode/medium/494.ts
GyoHeon/coding_test 44c5bec leetcode/medium/494.ts
true
200
718
function findTargetSumWays(nums: number[], target: number): number { const sum = nums.reduce((acc, cur) => acc + cur); if (sum < target || sum + target < 0 || (sum + target) % 2) return 0; const subS = (sum + target) / 2; function dp() { const memo = Array(nums.length + 1) .fill(true) .map(()...
4
mahdichaari01/Angular-TP-GL4
c8b61c9
src/app/components/products/products.component.ts
TypeScript
www.github.com/mahdichaari01/Angular-TP-GL4/tree/main/src/app/components/products/products.component.ts
https://raw.githubusercontent.com/mahdichaari01/Angular-TP-GL4/c8b61c9/src/app/components/products/products.component.ts
mahdichaari01/Angular-TP-GL4 c8b61c9 src/app/components/products/products.component.ts
true
200
1,132
import { Component } from '@angular/core'; import {ProductsService} from "./services/products.service"; import {BehaviorSubject, Observable, scan, switchMap} from "rxjs"; import {Product} from "./model/product"; @Component({ selector: 'app-products', templateUrl: './products.component.html', styleUrls: ['./produ...
2
nicholascostadev/coffee-shop
f49e244
src/components/PaymentOptionButton/styles.ts
TypeScript
www.github.com/nicholascostadev/coffee-shop/tree/main/src/components/PaymentOptionButton/styles.ts
https://raw.githubusercontent.com/nicholascostadev/coffee-shop/f49e244/src/components/PaymentOptionButton/styles.ts
nicholascostadev/coffee-shop f49e244 src/components/PaymentOptionButton/styles.ts
true
200
732
/* eslint-disable indent */ import styled from "styled-components"; interface ButtonProps { active?: boolean; } export const Button = styled.button<ButtonProps>` height: 51px; border: 0; border-radius: 6px; padding: 1.125rem; display: flex; justify-content: center; align-items: center; gap: 0 12px...
1
zqshier/wx-fed
5f277ea
src/api/missions.ts
TypeScript
www.github.com/zqshier/wx-fed/tree/main/src/api/missions.ts
https://raw.githubusercontent.com/zqshier/wx-fed/5f277ea/src/api/missions.ts
zqshier/wx-fed 5f277ea src/api/missions.ts
true
200
515
import { IMissionsList } from '@/dto/missions'; import { get, post } from '@/utils/http'; enum Api { missions = '/api/missions', } export const getMissionsApi = async () => get<{ list: IMissionsList[] }>({ url: `${Api.missions}` }); export const getMissionsRecordsApi = async data => post({ url: `${Api.missions}/re...
5
Cpidar/tbs-frontend
c8f24f8
src/components/SectionGridMoreExplore/data.ts
TypeScript
www.github.com/Cpidar/tbs-frontend/tree/main/src/components/SectionGridMoreExplore/data.ts
https://raw.githubusercontent.com/Cpidar/tbs-frontend/c8f24f8/src/components/SectionGridMoreExplore/data.ts
Cpidar/tbs-frontend c8f24f8 src/components/SectionGridMoreExplore/data.ts
true
200
3,373
import { StaticImageData } from "next/image"; import explore1Svg from "@/images/collections/explore1.svg"; import explore2Svg from "@/images/collections/explore2.svg"; import explore3Svg from "@/images/collections/explore3.svg"; import explore4Svg from "@/images/collections/explore4.svg"; import explore5Svg from "@/ima...
3
Richard-Chimama/eda
d8f9db5
src/Pages/Main/CalendarPage/styled.ts
TypeScript
www.github.com/Richard-Chimama/eda/tree/main/src/Pages/Main/CalendarPage/styled.ts
https://raw.githubusercontent.com/Richard-Chimama/eda/d8f9db5/src/Pages/Main/CalendarPage/styled.ts
Richard-Chimama/eda d8f9db5 src/Pages/Main/CalendarPage/styled.ts
true
200
326
import styled from "styled-components" const Height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) export const Container = styled.div` width: 80%; margin: 0 auto; padding-top: 2rem; height: ${Height+20}px; @media screen and (max-width: 450px){ width: 95%; ...
4