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
PawelKoralewicz/Training-Support-System
32a0db4
TrainingSupportSystem/src/app/main/training-planner/plan-creator/plan-saver-form/plan-saver-form.component.ts
TypeScript
www.github.com/PawelKoralewicz/Training-Support-System/tree/main/TrainingSupportSystem/src/app/main/training-planner/plan-creator/plan-saver-form/plan-saver-form.component.ts
https://raw.githubusercontent.com/PawelKoralewicz/Training-Support-System/32a0db4/TrainingSupportSystem/src/app/main/training-planner/plan-creator/plan-saver-form/plan-saver-form.component.ts
PawelKoralewicz/Training-Support-System 32a0db4 TrainingSupportSystem/src/app/main/training-planner/plan-creator/plan-saver-form/plan-saver-form.component.ts
true
200
3,299
import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core'; import { DynamicDialogRef } from 'primeng/dynamicdialog'; import { muscleOptionsLegs, muscleOptionsUpper, strengthOptionsLegs, strengthOptionsUpper } fr...
3
Marpuriganesh/ui-library
f4cf74c
src/stories/EmotionFilter.stories.ts
TypeScript
www.github.com/Marpuriganesh/ui-library/tree/main/src/stories/EmotionFilter.stories.ts
https://raw.githubusercontent.com/Marpuriganesh/ui-library/f4cf74c/src/stories/EmotionFilter.stories.ts
Marpuriganesh/ui-library f4cf74c src/stories/EmotionFilter.stories.ts
true
200
806
import { EmotionFilter } from "../components"; import { Meta, StoryObj } from "@storybook/react"; const meta: Meta<typeof EmotionFilter> = { title: "Components/EmotionFilter", component: EmotionFilter, parameters: { // Optional parameter to center the component in the Canvas. More info: https://storybook.js....
7
devinekadeni/movie-stack_BE
4f58254
src/utils/logging.ts
TypeScript
www.github.com/devinekadeni/movie-stack_BE/tree/main/src/utils/logging.ts
https://raw.githubusercontent.com/devinekadeni/movie-stack_BE/4f58254/src/utils/logging.ts
devinekadeni/movie-stack_BE 4f58254 src/utils/logging.ts
true
200
1,209
import { Request, Response, Application } from 'express' import morgan from 'morgan' import chalk from 'chalk' const logText = ( responseTime: number, operationName: string, variables: any, query: string ) => { return `${chalk.cyan('GraphQL:')} on ${responseTime}ms Operation Name: ${operationName} Variab...
6
mtanzim/ticketing-microservices-common
f360954
src/middleware/error-handler.ts
TypeScript
www.github.com/mtanzim/ticketing-microservices-common/tree/main/src/middleware/error-handler.ts
https://raw.githubusercontent.com/mtanzim/ticketing-microservices-common/f360954/src/middleware/error-handler.ts
mtanzim/ticketing-microservices-common f360954 src/middleware/error-handler.ts
true
200
643
import { NextFunction, Request, Response } from "express"; import { CustomError } from "../errors/custom-error"; export type ErrorResponse = { errors: Array<{ message: string; field?: string }>; }; export interface FormattedError {} export const errorHandler = ( err: Error, req: Request, res: Response, nex...
5
shaponpal6/twitter-clone
5a9ccbb
server/src/murmurs/murmurs.controller.spec.ts
TypeScript
www.github.com/shaponpal6/twitter-clone/tree/main/server/src/murmurs/murmurs.controller.spec.ts
https://raw.githubusercontent.com/shaponpal6/twitter-clone/5a9ccbb/server/src/murmurs/murmurs.controller.spec.ts
shaponpal6/twitter-clone 5a9ccbb server/src/murmurs/murmurs.controller.spec.ts
true
200
499
import { Test, TestingModule } from '@nestjs/testing'; import { MurmursController } from './murmurs.controller'; describe('MurmursController', () => { let controller: MurmursController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [MurmursControlle...
2
zaguiini/movie-reviews-next
f182dac
src/app/movies/[movieId]/reviews/actions/add-review/validation.ts
TypeScript
www.github.com/zaguiini/movie-reviews-next/tree/main/src/app/movies/[movieId]/reviews/actions/add-review/validation.ts
https://raw.githubusercontent.com/zaguiini/movie-reviews-next/f182dac/src/app/movies/%5BmovieId%5D/reviews/actions/add-review/validation.ts
zaguiini/movie-reviews-next f182dac src/app/movies/[movieId]/reviews/actions/add-review/validation.ts
true
200
502
import { InferInsertModel } from 'drizzle-orm'; import { z } from 'zod'; import { schema } from 'root/db/db'; type ReviewFormFields = Omit< InferInsertModel<typeof schema.reviews>, 'id' | 'owner' | 'createdAt' >; export const reviewForm: z.ZodType< ReviewFormFields, z.ZodTypeDef, ReviewFormFields > = z.obje...
1
MykolaRudnytskyi/log-stream
a9ec2f9
src/queue/queue.ts
TypeScript
www.github.com/MykolaRudnytskyi/log-stream/tree/main/src/queue/queue.ts
https://raw.githubusercontent.com/MykolaRudnytskyi/log-stream/a9ec2f9/src/queue/queue.ts
MykolaRudnytskyi/log-stream a9ec2f9 src/queue/queue.ts
true
200
1,896
import { EventEmitter } from 'events' import { Task } from './task' enum Events { TRIGGER_PROCESSING = 'TRIGGER_PROCESSING', } export class Queue { private ee = new EventEmitter() private queue: Task[] = [] constructor() { this.addTriggerProcessingListener() } private async processTasksRecurrently()...
4
leitolima/hexagonal-typescript-system
3ce276f
src/users/infrastructure/database/schemas/product-schema.ts
TypeScript
www.github.com/leitolima/hexagonal-typescript-system/tree/main/src/users/infrastructure/database/schemas/product-schema.ts
https://raw.githubusercontent.com/leitolima/hexagonal-typescript-system/3ce276f/src/users/infrastructure/database/schemas/product-schema.ts
leitolima/hexagonal-typescript-system 3ce276f src/users/infrastructure/database/schemas/product-schema.ts
true
200
524
import { Schema, model } from 'mongoose'; const ProductSchema = new Schema({ _user: { type: Schema.Types.ObjectId, ref: 'users', require: true, }, title: { type: String, default: '', require: true, }, price: { type: Number, default: 0, require: true, }, description: { ...
0
wiemkjiari/projetpfeTTstock
d2e986e
pfe/src/app/services/services/fournisseur-controller.service.ts
TypeScript
www.github.com/wiemkjiari/projetpfeTTstock/tree/main/pfe/src/app/services/services/fournisseur-controller.service.ts
https://raw.githubusercontent.com/wiemkjiari/projetpfeTTstock/d2e986e/pfe/src/app/services/services/fournisseur-controller.service.ts
wiemkjiari/projetpfeTTstock d2e986e pfe/src/app/services/services/fournisseur-controller.service.ts
true
200
5,242
/* tslint:disable */ /* eslint-disable */ import { HttpClient, HttpContext } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configur...
7
codergm123/translationApp-RN-chatgpt
ec4d8c2
src/services/api/index.ts
TypeScript
www.github.com/codergm123/translationApp-RN-chatgpt/tree/main/src/services/api/index.ts
https://raw.githubusercontent.com/codergm123/translationApp-RN-chatgpt/ec4d8c2/src/services/api/index.ts
codergm123/translationApp-RN-chatgpt ec4d8c2 src/services/api/index.ts
true
200
648
import axios from 'axios'; const BASE_URL = 'http://nextjs-chatgpt-be.vercel.app/api/'; export const getAnswer = async (question: string) => { try { const res = await axios.post( `${BASE_URL}ask-a-question`, {question}, ); return res?.data?.result; } catch (e) { console.error(e); re...
6
powiedl/25-jobster-typescript
60b0e57
src/utils/localStorage.ts
TypeScript
www.github.com/powiedl/25-jobster-typescript/tree/main/src/utils/localStorage.ts
https://raw.githubusercontent.com/powiedl/25-jobster-typescript/60b0e57/src/utils/localStorage.ts
powiedl/25-jobster-typescript 60b0e57 src/utils/localStorage.ts
true
200
414
import { User } from '@/features/user/userSlice'; export const addUserToLocalStorage = (user: User): void => { localStorage.setItem('user', JSON.stringify(user)); }; export const getUserFromLocalStorage = (): User | null => { const user = localStorage.getItem('user'); return user ? JSON.parse(user) : null; }; ...
3
MaxSUD84/jsm_care_pulse
4ad5776
lib/actions/appointment.actions.ts
TypeScript
www.github.com/MaxSUD84/jsm_care_pulse/tree/main/lib/actions/appointment.actions.ts
https://raw.githubusercontent.com/MaxSUD84/jsm_care_pulse/4ad5776/lib/actions/appointment.actions.ts
MaxSUD84/jsm_care_pulse 4ad5776 lib/actions/appointment.actions.ts
true
200
3,405
'use server'; import { ID, Query } from 'node-appwrite'; import { APPOINTMENT_COLLECTION_ID, DATABASE_ID, databases, messaging, } from '@/lib/appwrite.config'; import { formatDateTime, parseStringify } from '@/lib/utils'; import { Appointment } from '@/types/appwire.types'; import { revalidatePath } from 'next...
2
akachi11/contributor-stockAfrika
a06626d
src/utils/errorManager.ts
TypeScript
www.github.com/akachi11/contributor-stockAfrika/tree/main/src/utils/errorManager.ts
https://raw.githubusercontent.com/akachi11/contributor-stockAfrika/a06626d/src/utils/errorManager.ts
akachi11/contributor-stockAfrika a06626d src/utils/errorManager.ts
true
200
675
/** * Returns an appropriate error message based on the provided error object. * @returns {string} An error message corresponding to the type of error encountered. */ export interface Error { response: {status: number, data: string}, message: string } export const returnErrorMessage = (error: Error) => { c...
1
school-projects-gwb/avans-adweb-2324
b7ab618
src/app/models/expense.models.ts
TypeScript
www.github.com/school-projects-gwb/avans-adweb-2324/tree/main/src/app/models/expense.models.ts
https://raw.githubusercontent.com/school-projects-gwb/avans-adweb-2324/b7ab618/src/app/models/expense.models.ts
school-projects-gwb/avans-adweb-2324 b7ab618 src/app/models/expense.models.ts
true
200
525
export class Expense { id: string; bookletId: string; amount: number; date: Date; name: string; isIncome: boolean; categoryId: string; categoryName?: string; constructor( id: string, bookletId: string, amount: number, date: Date, name: string, isIncome: boolean, categoryId...
5
devasagayam/angularMFE
f8289db
User-Management/projects/host-app/src/app/remote-loader.service.ts
TypeScript
www.github.com/devasagayam/angularMFE/tree/main/User-Management/projects/host-app/src/app/remote-loader.service.ts
https://raw.githubusercontent.com/devasagayam/angularMFE/f8289db/User-Management/projects/host-app/src/app/remote-loader.service.ts
devasagayam/angularMFE f8289db User-Management/projects/host-app/src/app/remote-loader.service.ts
true
200
956
import { loadRemoteModule } from '@angular-architects/module-federation'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class RemoteLoaderService { private moduleRef: any; async loadDynamicModule() { if (this.moduleRef) { return this.moduleRef; } try...
0
golemfactory/gpu-on-golem-poc
63a3fff
client/src/slices/queue.ts
TypeScript
www.github.com/golemfactory/gpu-on-golem-poc/tree/main/client/src/slices/queue.ts
https://raw.githubusercontent.com/golemfactory/gpu-on-golem-poc/63a3fff/client/src/slices/queue.ts
golemfactory/gpu-on-golem-poc 63a3fff client/src/slices/queue.ts
true
200
702
import type { PayloadAction } from '@reduxjs/toolkit'; import { createSlice } from '@reduxjs/toolkit'; import { RootState } from 'store'; const initialState = { jobs_in_queue: 0, max_queue_size: 0, queue_position: 0, }; export const queueSlice = createSlice({ name: 'queue', initialState, reducers: { s...
7
ozturkmmurat/YazProject
73d5f03
src/app/pages/admin/educator-crud/educator-crud.component.ts
TypeScript
www.github.com/ozturkmmurat/YazProject/tree/main/src/app/pages/admin/educator-crud/educator-crud.component.ts
https://raw.githubusercontent.com/ozturkmmurat/YazProject/73d5f03/src/app/pages/admin/educator-crud/educator-crud.component.ts
ozturkmmurat/YazProject 73d5f03 src/app/pages/admin/educator-crud/educator-crud.component.ts
true
200
2,101
import { HttpErrorResponse } from '@angular/common/http'; import { Component, ViewChild } from '@angular/core'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { ToastrService } from 'ngx-toastr'; import { EMPTY, catchError } from 'rxjs'; import { Educator } from 'src/app/models/educator/educator'; import...
3
DavidTrinhTb/base-reactjs
99c8d38
src/hooks/useDisableDateRange.ts
TypeScript
www.github.com/DavidTrinhTb/base-reactjs/tree/main/src/hooks/useDisableDateRange.ts
https://raw.githubusercontent.com/DavidTrinhTb/base-reactjs/99c8d38/src/hooks/useDisableDateRange.ts
DavidTrinhTb/base-reactjs 99c8d38 src/hooks/useDisableDateRange.ts
true
200
8,322
import { useCallback } from 'react'; import type { FieldValues, Path, UseFormWatch } from 'react-hook-form'; import { addDays, parseISO, startOfDay } from 'date-fns'; import endOfDay from 'date-fns/endOfDay'; import format from 'date-fns/format'; import subDays from 'date-fns/subDays'; import range from 'lodash/range'...
2
HooliganhordeTurfs/Hooliganhorde-UI
1930042
src/constants/copy.ts
TypeScript
www.github.com/HooliganhordeTurfs/Hooliganhorde-UI/tree/main/src/constants/copy.ts
https://raw.githubusercontent.com/HooliganhordeTurfs/Hooliganhorde-UI/1930042/src/constants/copy.ts
HooliganhordeTurfs/Hooliganhorde-UI 1930042 src/constants/copy.ts
true
200
335
import { FarmFromMode, FarmToMode } from '~/lib/Hooliganhorde/Farm'; const MODES = { [FarmToMode.INTERNAL]: 'Farm Balance', [FarmFromMode.INTERNAL]: 'Farm Balance', [FarmToMode.EXTERNAL]: 'Circulating Balance', [FarmFromMode.EXTERNAL]: 'Circulating Balance', }; const copy = { MODES: MODES }; export...
5
jgable/inngest-api-repro
e9ef4a3
src/pages/api/inngest.ts
TypeScript
www.github.com/jgable/inngest-api-repro/tree/main/src/pages/api/inngest.ts
https://raw.githubusercontent.com/jgable/inngest-api-repro/e9ef4a3/src/pages/api/inngest.ts
jgable/inngest-api-repro e9ef4a3 src/pages/api/inngest.ts
true
200
2,148
import { EventSchemas, GetEvents, Inngest } from "inngest"; import { serve } from "inngest/next"; export const eventSchemas = new EventSchemas().fromRecord<{ "merge/merge-all": { data: undefined; }; "merge/merge-locations": { data: { splc: string; locations: Array<{ provider: string; ...
1
sumitgangwar-cedcommerce/newdataTable
9317b5e
dist/components/Button/Button.d.ts
TypeScript
www.github.com/sumitgangwar-cedcommerce/newdataTable/tree/main/dist/components/Button/Button.d.ts
https://raw.githubusercontent.com/sumitgangwar-cedcommerce/newdataTable/9317b5e/dist/components/Button/Button.d.ts
sumitgangwar-cedcommerce/newdataTable 9317b5e dist/components/Button/Button.d.ts
true
200
772
import React from "react"; import "./Button.css"; declare const Button: ({ type, FullBtn, thickness, halign, loading, disable, ...props }: ButtonI) => JSX.Element; export interface ButtonI { children?: string | React.ReactNode | JSX.Element | any; content?: string; type?: "Primary" | "Danger" | "Dange...
4
kingbob6th/AwesomeCmsFront
376e1ce
src/app/app-routing.module.ts
TypeScript
www.github.com/kingbob6th/AwesomeCmsFront/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/kingbob6th/AwesomeCmsFront/376e1ce/src/app/app-routing.module.ts
kingbob6th/AwesomeCmsFront 376e1ce src/app/app-routing.module.ts
true
200
1,209
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; import { DashboardComponent } from './dashboard/dashboard.component'; import { ManagersComponent } from './managers/managers.component'; import { EmployeesComponent...
6
IgMominKhan/apollo-first-project
fd84036
src/app/modules/faculty/faculty.validation.ts
TypeScript
www.github.com/IgMominKhan/apollo-first-project/tree/main/src/app/modules/faculty/faculty.validation.ts
https://raw.githubusercontent.com/IgMominKhan/apollo-first-project/fd84036/src/app/modules/faculty/faculty.validation.ts
IgMominKhan/apollo-first-project fd84036 src/app/modules/faculty/faculty.validation.ts
true
200
1,574
import { z } from 'zod'; import { createUserNameValidationSchema, updateUserNameValidationSchema, } from '../student/student.validation'; const create = z.object({ body: z.object({ password: z.string().optional(), faculty: z.object({ name: createUserNameValidationSchema, gender: z.enum(['male...
7
barantarasNEW/Right-Way
50e1f7e
src/helpers/checkValidInput.ts
TypeScript
www.github.com/barantarasNEW/Right-Way/tree/main/src/helpers/checkValidInput.ts
https://raw.githubusercontent.com/barantarasNEW/Right-Way/50e1f7e/src/helpers/checkValidInput.ts
barantarasNEW/Right-Way 50e1f7e src/helpers/checkValidInput.ts
true
200
548
import { AuthErrors } from "../types/AuthErrors"; export const checkValidInput = (checkError: AuthErrors, input: string) => { switch (checkError) { case AuthErrors.EMAIL: const validRegexEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; return input.match(validRegexEmai...
0
HitmanWiki/paw-beta
37f4889
webpack---/src/models-ts/chat/messages/ApplicationChatMessage.ts
TypeScript
www.github.com/HitmanWiki/paw-beta/tree/main/webpack---/src/models-ts/chat/messages/ApplicationChatMessage.ts
https://raw.githubusercontent.com/HitmanWiki/paw-beta/37f4889/webpack---/src/models-ts/chat/messages/ApplicationChatMessage.ts
HitmanWiki/paw-beta 37f4889 webpack---/src/models-ts/chat/messages/ApplicationChatMessage.ts
true
200
1,420
import { MessageTypes } from '@/constants-ts/chat/MessageTypes' import { formatUsd } from '@/utils/moneyFormat' import AbstractChatMessage, { AbstractChatMessageServerProps } from './AbstractChatMessage' export default class ApplicationChatMessage extends AbstractChatMessage { body: string = '' budget?: number d...
3
Rishiraj124/fathers-club-pwa-app
c4753b3
src/types/index.ts
TypeScript
www.github.com/Rishiraj124/fathers-club-pwa-app/tree/main/src/types/index.ts
https://raw.githubusercontent.com/Rishiraj124/fathers-club-pwa-app/c4753b3/src/types/index.ts
Rishiraj124/fathers-club-pwa-app c4753b3 src/types/index.ts
true
200
499
// ====== EVENT PARAMS export type CreateEventParams = { userId: string; event: { title: string; description: string; location: string; imageUrl: string; startDateTime: Date; endDateTime: Date; categoryId: string; price: string; isFree: boolean; url: string; }; path: stri...
2
samuelsilva/Angular-Leaflet-OpenStreetMap
6749549
src/app/components/pointed-map/pointed-map.component.ts
TypeScript
www.github.com/samuelsilva/Angular-Leaflet-OpenStreetMap/tree/main/src/app/components/pointed-map/pointed-map.component.ts
https://raw.githubusercontent.com/samuelsilva/Angular-Leaflet-OpenStreetMap/6749549/src/app/components/pointed-map/pointed-map.component.ts
samuelsilva/Angular-Leaflet-OpenStreetMap 6749549 src/app/components/pointed-map/pointed-map.component.ts
true
200
4,230
import { Component, AfterViewInit } from '@angular/core'; import * as Leaflet from 'leaflet'; //import { LatLng, Leaflet } from 'leaflet'; import "leaflet-control-geocoder"; // image path //Leaflet.Icon.Default.imagePath = 'assets/'; @Component({ selector: 'app-pointed-map', templateUrl: './pointed-map.component....
4
CorentinDebrabant/ProjGL
84cfd27
src/app/models/bd.service.ts
TypeScript
www.github.com/CorentinDebrabant/ProjGL/tree/main/src/app/models/bd.service.ts
https://raw.githubusercontent.com/CorentinDebrabant/ProjGL/84cfd27/src/app/models/bd.service.ts
CorentinDebrabant/ProjGL 84cfd27 src/app/models/bd.service.ts
true
200
12,817
import { Injectable } from '@angular/core'; import { Livre } from "./livre"; import { Utilisateur } from './utilisateur'; import { Observable, of } from 'rxjs'; import { Panier } from './panier'; import { Avis } from './avis'; @Injectable({ providedIn: 'root' }) export class BDService { mockLivre: Livre[] = []; ...
1
pedrofrohmut/learning-javascript
338c6c0
traversy-media/angular-crash-2021/src/app/components/button/button.component.ts
TypeScript
www.github.com/pedrofrohmut/learning-javascript/tree/main/traversy-media/angular-crash-2021/src/app/components/button/button.component.ts
https://raw.githubusercontent.com/pedrofrohmut/learning-javascript/338c6c0/traversy-media/angular-crash-2021/src/app/components/button/button.component.ts
pedrofrohmut/learning-javascript 338c6c0 traversy-media/angular-crash-2021/src/app/components/button/button.component.ts
true
200
581
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core" @Component({ selector: "app-button", template: ` <button [ngStyle]="{ 'background-color': color, color: textColor }" class="btn" (click)="handleClick()" > {{ text }} </button> `, styles: [``] }) e...
5
Monika-dhiman/resilient-message-architecture
98a3e90
ormconfig.ts
TypeScript
www.github.com/Monika-dhiman/resilient-message-architecture/tree/main/ormconfig.ts
https://raw.githubusercontent.com/Monika-dhiman/resilient-message-architecture/98a3e90/ormconfig.ts
Monika-dhiman/resilient-message-architecture 98a3e90 ormconfig.ts
true
200
1,061
import { DataSource, DataSourceOptions } from 'typeorm'; import { SeederOptions } from 'typeorm-extension'; import { ConfigService } from '@nestjs/config'; require('dotenv').config(); export const dataSourceOptions = ( configService: ConfigService, domain: 'shipping' | 'sales' | 'product-catalog' | 'billing' | '**...
6
archiveprotocol/blueprint-lib
37a1401
src/common/config/xdaiNetworkConfig.ts
TypeScript
www.github.com/archiveprotocol/blueprint-lib/tree/main/src/common/config/xdaiNetworkConfig.ts
https://raw.githubusercontent.com/archiveprotocol/blueprint-lib/37a1401/src/common/config/xdaiNetworkConfig.ts
archiveprotocol/blueprint-lib 37a1401 src/common/config/xdaiNetworkConfig.ts
true
200
420
import { BaseEvmNetworkConfig } from './baseEvmNetworkConfig'; import { CHAINID } from 'apy-vision-config'; export class XdaiNetworkConfig extends BaseEvmNetworkConfig { getInitStartBlock(): number { return 11813493; } getNetwork(): number { return Number(CHAINID.XDAI); } getNetworkName(): string {...
7
oleksandr-danylchenko/bsa-summer-2022-autoline
da63f1d
backend/src/middlewares/exceptions/exceptions.middleware.ts
TypeScript
www.github.com/oleksandr-danylchenko/bsa-summer-2022-autoline/tree/main/backend/src/middlewares/exceptions/exceptions.middleware.ts
https://raw.githubusercontent.com/oleksandr-danylchenko/bsa-summer-2022-autoline/da63f1d/backend/src/middlewares/exceptions/exceptions.middleware.ts
oleksandr-danylchenko/bsa-summer-2022-autoline da63f1d backend/src/middlewares/exceptions/exceptions.middleware.ts
true
200
451
import httpStatus from 'http-status-codes'; import type { NextFunction, Request, Response } from 'express'; export const errorsHandler = ( error: Error, req: Request, res: Response, next: NextFunction, ): void => { console.error(JSON.stringify(error), error.message); if (res.headersSent) { return next...
0
kriziu/kripoll
cc706e6
common/lib/getPublicPoll.ts
TypeScript
www.github.com/kriziu/kripoll/tree/main/common/lib/getPublicPoll.ts
https://raw.githubusercontent.com/kriziu/kripoll/cc706e6/common/lib/getPublicPoll.ts
kriziu/kripoll cc706e6 common/lib/getPublicPoll.ts
true
200
415
import { prisma } from './prisma'; export const getPublicPoll = async (id: string) => { const poll = await prisma.poll.findUnique({ where: { id }, select: { id: true, title: true, description: true, answers: true, createdAt: true, allowCreateAnswer: true, allowMultip...
3
520Girl/react-wenjuan-vite
ec8e413
src/components/QuestionComponents/QuestionCheckbox/interface.ts
TypeScript
www.github.com/520Girl/react-wenjuan-vite/tree/main/src/components/QuestionComponents/QuestionCheckbox/interface.ts
https://raw.githubusercontent.com/520Girl/react-wenjuan-vite/ec8e413/src/components/QuestionComponents/QuestionCheckbox/interface.ts
520Girl/react-wenjuan-vite ec8e413 src/components/QuestionComponents/QuestionCheckbox/interface.ts
true
200
662
export type OptionType = { value: string text: string checked: boolean } export type QuestionCheckboxProps = { title?: string isVertical?: boolean list?: OptionType[] //用于PropComponent onChange?: (value: QuestionCheckboxProps) => void disabled?: boolean } export const QuestionCheckboxDefaultProps: Question...
2
toatpor/nestjs
da22d4a
src/tags/services/tags.service.ts
TypeScript
www.github.com/toatpor/nestjs/tree/main/src/tags/services/tags.service.ts
https://raw.githubusercontent.com/toatpor/nestjs/da22d4a/src/tags/services/tags.service.ts
toatpor/nestjs da22d4a src/tags/services/tags.service.ts
true
200
1,285
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Tags } from '../tags.entity'; import { In, Repository } from 'typeorm'; import { CreateTagsDto } from '../dtos/create.tags.dto'; @Injectable() export class TagsService { constructor( @InjectRepository(Tags) ...
4
phaelslima/rentx
686996f
src/database/index.ts
TypeScript
www.github.com/phaelslima/rentx/tree/main/src/database/index.ts
https://raw.githubusercontent.com/phaelslima/rentx/686996f/src/database/index.ts
phaelslima/rentx 686996f src/database/index.ts
true
200
357
import { Database } from '@nozbe/watermelondb' import SQLiteAdapter from '@nozbe/watermelondb/adapters/sqlite' import { schemas } from './schema' import { User } from './model/User' import { Car } from './model/Car' const adapter = new SQLiteAdapter({ schema: schemas }) export const database = new Database({ ad...
5
joshholly/netmirrorProxy
0184771
src/index.ts
TypeScript
www.github.com/joshholly/netmirrorProxy/tree/main/src/index.ts
https://raw.githubusercontent.com/joshholly/netmirrorProxy/0184771/src/index.ts
joshholly/netmirrorProxy 0184771 src/index.ts
true
200
719
import {M3u8ProxyV1} from "./logic/v1"; import {M3u8ProxyV2} from "./logic/v2"; addEventListener("fetch", (event) => { event.respondWith(respondfetch(event.request)); }); async function respondfetch(request: Request) { const url = new URL(request.url); const pathname = url.pathname; if (pathname === "/") ret...
1
jhonatanoc96/megapagos-frontend
7b144a6
app/lib/http-client.ts
TypeScript
www.github.com/jhonatanoc96/megapagos-frontend/tree/main/app/lib/http-client.ts
https://raw.githubusercontent.com/jhonatanoc96/megapagos-frontend/7b144a6/app/lib/http-client.ts
jhonatanoc96/megapagos-frontend 7b144a6 app/lib/http-client.ts
true
200
765
'use server' import { redirect } from 'next/navigation'; import { SERVER_URL } from './constants/server-url.constant'; export async function sendHttpRequest( path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', token: string, body?: any ) { const url = SERVER_URL + path; const response = await fetch(...
7
Anselmo-Dias/coffee-delivery
e2ac930
src/pages/Cart/ItemOfShoppingCart/styles.ts
TypeScript
www.github.com/Anselmo-Dias/coffee-delivery/tree/main/src/pages/Cart/ItemOfShoppingCart/styles.ts
https://raw.githubusercontent.com/Anselmo-Dias/coffee-delivery/e2ac930/src/pages/Cart/ItemOfShoppingCart/styles.ts
Anselmo-Dias/coffee-delivery e2ac930 src/pages/Cart/ItemOfShoppingCart/styles.ts
true
200
1,215
import styled from 'styled-components' export const ItemsOfCard = styled.div` display: flex; align-items: flex-start; justify-content: flex-start; /* flex-direction: column; */ border-bottom: 1px solid ${(props) => props.theme['base-button']}; padding-bottom: 2.4rem; & + & { padding-top: 2.4rem; ...
0
meetoseh/frontend-app
e0b69e5
src/user/core/screens/fork/ForkStyles.ts
TypeScript
www.github.com/meetoseh/frontend-app/tree/main/src/user/core/screens/fork/ForkStyles.ts
https://raw.githubusercontent.com/meetoseh/frontend-app/e0b69e5/src/user/core/screens/fork/ForkStyles.ts
meetoseh/frontend-app e0b69e5 src/user/core/screens/fork/ForkStyles.ts
true
200
891
import { StyleSheet } from 'react-native'; import * as Colors from '../../../../styling/colors'; export const styles = StyleSheet.create({ header: { textAlign: 'center', fontFamily: 'OpenSans-SemiBold', fontSize: 20, color: Colors.PRIMARY_LIGHT, }, message: { textAlign: 'center', fontFami...
3
Lu1815/expo-test-app-for-stackoverflow
a13a90f
src/components/postForm/PostForm.Styles.ts
TypeScript
www.github.com/Lu1815/expo-test-app-for-stackoverflow/tree/main/src/components/postForm/PostForm.Styles.ts
https://raw.githubusercontent.com/Lu1815/expo-test-app-for-stackoverflow/a13a90f/src/components/postForm/PostForm.Styles.ts
Lu1815/expo-test-app-for-stackoverflow a13a90f src/components/postForm/PostForm.Styles.ts
true
200
1,149
import { StyleSheet } from 'react-native'; import { primaryColor } from '../../theme/Style'; export const postformStyles = StyleSheet.create({ pillsContainer: { flexDirection: 'row', flexWrap: 'wrap', alignContent: 'center', padding: 5 }, pill: { flexDirection: 'row...
4
Elomolina/brawl-stars-app
17599f7
src/app/brawl-stars/interfaces/brawlers.interface.ts
TypeScript
www.github.com/Elomolina/brawl-stars-app/tree/main/src/app/brawl-stars/interfaces/brawlers.interface.ts
https://raw.githubusercontent.com/Elomolina/brawl-stars-app/17599f7/src/app/brawl-stars/interfaces/brawlers.interface.ts
Elomolina/brawl-stars-app 17599f7 src/app/brawl-stars/interfaces/brawlers.interface.ts
true
200
1,327
export interface Brawler { list: List[]; } export interface List { id: number; avatarId: number; name: string; hash: string; path: string; fankit: string; released: boolean; version: number; link: string; imageUrl: string; imageUrl2: string; imageUrl3: string; class: Class; rarity: Rarity...
2
2897731718/umijs
25db363
src/models/information.ts
TypeScript
www.github.com/2897731718/umijs/tree/main/src/models/information.ts
https://raw.githubusercontent.com/2897731718/umijs/25db363/src/models/information.ts
2897731718/umijs 25db363 src/models/information.ts
true
200
2,977
import { Effect, Subscription } from 'dva'; import { informationList, informationDelete, informationAdd, informationPatch, } from '../api/information'; const namespace = 'information'; interface informationType { namespace: string; state: any; reducers: {}; effects: { getTable: Effect; remove...
1
Debugirls/DYSOCIAL
29d09b0
Front/src/store/publications/state.ts
TypeScript
www.github.com/Debugirls/DYSOCIAL/tree/main/Front/src/store/publications/state.ts
https://raw.githubusercontent.com/Debugirls/DYSOCIAL/29d09b0/Front/src/store/publications/state.ts
Debugirls/DYSOCIAL 29d09b0 Front/src/store/publications/state.ts
true
200
510
import { Publication } from './../../models/publications'; export interface IPublicationsState { publications: Publication[]; selectedPublication: Publication | null; publicationsFiltered: Publication[]; totalItems: number, totalPages: number, currentPage: number, } function state(): IPublicationsSta...
5
Stabien/esgi-js-s1
549af57
src/services/index.ts
TypeScript
www.github.com/Stabien/esgi-js-s1/tree/main/src/services/index.ts
https://raw.githubusercontent.com/Stabien/esgi-js-s1/549af57/src/services/index.ts
Stabien/esgi-js-s1 549af57 src/services/index.ts
true
200
1,007
import { SettingsData } from '../types' const defaultSettings: SettingsData = { dateSettings: { hideDate: false, hideTime: false, hideDays: false, hideMonths: false, hideYears: false, hideHours: false, hideMinutes: false, hideSeconds: false, }, batterySettings: { hideBattery: ...
6
rajibdas-it/doctor-portal-server-types-prisma
62b0359
src/server.ts
TypeScript
www.github.com/rajibdas-it/doctor-portal-server-types-prisma/tree/main/src/server.ts
https://raw.githubusercontent.com/rajibdas-it/doctor-portal-server-types-prisma/62b0359/src/server.ts
rajibdas-it/doctor-portal-server-types-prisma 62b0359 src/server.ts
true
200
279
import app from './app' import { config } from './config' const doctorPortalServer = async () => { try { app.listen(config.port, () => { console.log('server running on port', config.port) }) } catch (error) { console.log(error) } } doctorPortalServer()
7
Enpal/interview-qa-automation
77514dc
cypress/integration/parabank/parabank-unique-usercreation.spec.ts
TypeScript
www.github.com/Enpal/interview-qa-automation/tree/main/cypress/integration/parabank/parabank-unique-usercreation.spec.ts
https://raw.githubusercontent.com/Enpal/interview-qa-automation/77514dc/cypress/integration/parabank/parabank-unique-usercreation.spec.ts
Enpal/interview-qa-automation 77514dc cypress/integration/parabank/parabank-unique-usercreation.spec.ts
true
200
1,960
/// <reference types="cypress" /> import { faker } from '@faker-js/faker' import { UserInfo } from '../../fixtures/types' const user: UserInfo = { name: faker.name.firstName(), lname: faker.name.lastName(), city: faker.address.cityName(), phone: faker.phone.number('############'), zipCode: faker.address.zi...
0
typed-ember/glint
6e222ff
test-packages/ts-ember-app/tests/integration/components/render-test.ts
TypeScript
www.github.com/typed-ember/glint/tree/main/test-packages/ts-ember-app/tests/integration/components/render-test.ts
https://raw.githubusercontent.com/typed-ember/glint/6e222ff/test-packages/ts-ember-app/tests/integration/components/render-test.ts
typed-ember/glint 6e222ff test-packages/ts-ember-app/tests/integration/components/render-test.ts
true
200
2,414
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import type { TestContext } from '@ember/test-helpers'; module('Integration | Component | bar', function (hooks) { setupRenderingTest(hooks);...
3
Mateus0808/chuck-norris-api
e106510
src/chuck-norris-fact/chuck-norris.service.ts
TypeScript
www.github.com/Mateus0808/chuck-norris-api/tree/main/src/chuck-norris-fact/chuck-norris.service.ts
https://raw.githubusercontent.com/Mateus0808/chuck-norris-api/e106510/src/chuck-norris-fact/chuck-norris.service.ts
Mateus0808/chuck-norris-api e106510 src/chuck-norris-fact/chuck-norris.service.ts
true
200
1,687
import { ChuckNorrisEntity } from './../models/chuck-norris/entities/chuck-norris.entity'; import { IChuckNorrisRepository } from './../models/chuck-norris/interfaces/chuck-norris-data.interface'; import { BadRequestException } from './../common/exceptions/bad-request.exception'; import { Inject, Injectable } from '@ne...
4
Granipouss/fdj-test-project
2501598
frontend/src/app/leagues/league-resolve.ts
TypeScript
www.github.com/Granipouss/fdj-test-project/tree/main/frontend/src/app/leagues/league-resolve.ts
https://raw.githubusercontent.com/Granipouss/fdj-test-project/2501598/frontend/src/app/leagues/league-resolve.ts
Granipouss/fdj-test-project 2501598 frontend/src/app/leagues/league-resolve.ts
true
200
503
import { inject } from '@angular/core'; import { ResolveFn, Router } from '@angular/router'; import { LeagueDTO } from 'api-interfaces'; import { catchResolverError } from '../helpers/catchResolverError'; import { LeaguesApiService } from './leagues-api.service'; export const leagueResolver: ResolveFn<LeagueDTO> = (...
2
rezavafadar/chatapp-socketio
12771e3
server/src/libs/express-routing/index.ts
TypeScript
www.github.com/rezavafadar/chatapp-socketio/tree/main/server/src/libs/express-routing/index.ts
https://raw.githubusercontent.com/rezavafadar/chatapp-socketio/12771e3/server/src/libs/express-routing/index.ts
rezavafadar/chatapp-socketio 12771e3 server/src/libs/express-routing/index.ts
true
200
452
import { Router } from 'express'; import { Controller } from './decorators/controller.decorator'; import { DELETE, GET, POST, PUT } from './decorators/method.decorator'; export { Controller, DELETE, GET, POST, PUT }; export function getRouters(controllers: any[]) { const router = Router(); for (const controller ...
1
edgarp-dev/lifting-budy
5fc598f
backend/api/src/auth/AuthRouter.ts
TypeScript
www.github.com/edgarp-dev/lifting-budy/tree/main/backend/api/src/auth/AuthRouter.ts
https://raw.githubusercontent.com/edgarp-dev/lifting-budy/5fc598f/backend/api/src/auth/AuthRouter.ts
edgarp-dev/lifting-budy 5fc598f backend/api/src/auth/AuthRouter.ts
true
200
288
import { Router } from "https://deno.land/x/oak@v17.1.1/mod.ts"; import { login, refreshToken, signup } from "./AuthController.ts"; const router = new Router(); router.post("/login", login); router.post("/singup", signup); router.post("/refresh", refreshToken); export default router;
5
medineshpoudel/MERN-Auth
db9fd32
client/src/stories/data/sample-dashboard-data.ts
TypeScript
www.github.com/medineshpoudel/MERN-Auth/tree/main/client/src/stories/data/sample-dashboard-data.ts
https://raw.githubusercontent.com/medineshpoudel/MERN-Auth/db9fd32/client/src/stories/data/sample-dashboard-data.ts
medineshpoudel/MERN-Auth db9fd32 client/src/stories/data/sample-dashboard-data.ts
true
200
10,102
export const sampleColumnData = [ { id: 1, name: 'Football', followers: 2000, }, { id: 2, name: 'Basketball', followers: 1000, }, { id: 3, name: 'Volleyball', followers: 5000, }, ]; export const ActivityByPriorityData = [ { id: 1, _name: 'Menu Panel', _prio...
6
abdulfattahKh/learning
bcc8170
src/app/models/bases/base.ts
TypeScript
www.github.com/abdulfattahKh/learning/tree/main/src/app/models/bases/base.ts
https://raw.githubusercontent.com/abdulfattahKh/learning/bcc8170/src/app/models/bases/base.ts
abdulfattahKh/learning bcc8170 src/app/models/bases/base.ts
true
200
351
import { Directive, OnDestroy, SimpleChange } from '@angular/core'; import { Subject } from 'rxjs'; @Directive() export abstract class Base implements OnDestroy { destroy$: Subject<boolean> = new Subject(); ngOnDestroy(): void { this.destroy$.next(true); this.destroy$.complete(); this.d...
0
juliomeza/sales_orders_system
d394b77
backend/src/controllers/__tests__/carriersController.test.ts
TypeScript
www.github.com/juliomeza/sales_orders_system/tree/main/backend/src/controllers/__tests__/carriersController.test.ts
https://raw.githubusercontent.com/juliomeza/sales_orders_system/d394b77/backend/src/controllers/__tests__/carriersController.test.ts
juliomeza/sales_orders_system d394b77 backend/src/controllers/__tests__/carriersController.test.ts
true
200
4,277
// backend/src/controllers/__tests__/carriersController.test.ts import request from 'supertest'; import { Express } from 'express'; import { createServer } from '../../server'; import { createTestUser } from './setup'; import prisma from '../../config/database'; let app: Express; beforeAll(async () => { app = await...
7
TONG77777/crm-management
186c644
src/app/vessels/vessels.component.ts
TypeScript
www.github.com/TONG77777/crm-management/tree/main/src/app/vessels/vessels.component.ts
https://raw.githubusercontent.com/TONG77777/crm-management/186c644/src/app/vessels/vessels.component.ts
TONG77777/crm-management 186c644 src/app/vessels/vessels.component.ts
true
200
2,696
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { VesselFormComponent } from '../vessels/vessel-form/vessel-form.component'; import { ActivatedRoute, Params } from '@angular/router'; import { VesselService } from '../services/vessel.service'; import { Vess...
3
themalikx/FoodMobileApp
629af16
src/app/contact-support/contact-support.page.ts
TypeScript
www.github.com/themalikx/FoodMobileApp/tree/main/src/app/contact-support/contact-support.page.ts
https://raw.githubusercontent.com/themalikx/FoodMobileApp/629af16/src/app/contact-support/contact-support.page.ts
themalikx/FoodMobileApp 629af16 src/app/contact-support/contact-support.page.ts
true
200
1,537
import { Component } from '@angular/core'; import { ToastController } from '@ionic/angular'; @Component({ selector: 'app-contact-support', templateUrl: './contact-support.page.html', styleUrls: ['./contact-support.page.scss'], }) export class ContactSupportPage { name: string = 'John Doe'; email: string = 'j...
2
miyajimayui/FirstDev
dc6519d
src/index.ts
TypeScript
www.github.com/miyajimayui/FirstDev/tree/main/src/index.ts
https://raw.githubusercontent.com/miyajimayui/FirstDev/dc6519d/src/index.ts
miyajimayui/FirstDev dc6519d src/index.ts
true
200
3,263
//変数の宣言(型宣言と初期化を同時に行う) const r : number = 23; console.log(r); const v: string = "hello"; console.log(v); //条件分岐 if(r > 25) { console.log("rは25以上です") } else { console.log("rは25以下です。") } //クラスの宣言 class Dummy { dummyCd01 : number = 2 dummyCd02 : number = 0 dummyMei01 : string = "" dummyKna01? : ...
4
AndresXX1/Mar-y-Sol-Commerse-Front-
9ee04fe
dist/user/dto/updateFullUser.dto.d.ts
TypeScript
www.github.com/AndresXX1/Mar-y-Sol-Commerse-Front-/tree/main/dist/user/dto/updateFullUser.dto.d.ts
https://raw.githubusercontent.com/AndresXX1/Mar-y-Sol-Commerse-Front-/9ee04fe/dist/user/dto/updateFullUser.dto.d.ts
AndresXX1/Mar-y-Sol-Commerse-Front- 9ee04fe dist/user/dto/updateFullUser.dto.d.ts
true
200
444
import { Role } from 'src/common/enums/rol.enum'; import { Status } from 'src/common/enums/status.enum'; export declare class UpdateFullUserDto { id: string; name?: string; lastName?: string; country?: string; email?: string; password?: string; role?: Role; phone?: string; age?: stri...
1
diluwara/credit-card
80fa71d
src/interfaces/Itable.ts
TypeScript
www.github.com/diluwara/credit-card/tree/main/src/interfaces/Itable.ts
https://raw.githubusercontent.com/diluwara/credit-card/80fa71d/src/interfaces/Itable.ts
diluwara/credit-card 80fa71d src/interfaces/Itable.ts
true
200
1,441
export interface IprofilesTableColumns { headerName: string; field: string; width?: number; } export interface IProfilesTableData { first_name: string; last_name: string; sex: string; dob: string; father_name: string; address: string; aadhar: string; credit_card_number: string; credit_card_cvv:...
5
weishour/wsbm-backend
6f8a943
apps/wsbm/src/app/menus/menus.controller.ts
TypeScript
www.github.com/weishour/wsbm-backend/tree/main/apps/wsbm/src/app/menus/menus.controller.ts
https://raw.githubusercontent.com/weishour/wsbm-backend/6f8a943/apps/wsbm/src/app/menus/menus.controller.ts
weishour/wsbm-backend 6f8a943 apps/wsbm/src/app/menus/menus.controller.ts
true
200
1,910
import { Controller, UseGuards, Get, Param, Post, Body } from '@nestjs/common'; import { ApiTags, ApiOperation } from '@nestjs/swagger'; import { Result } from '@weishour/core/interfaces'; import { User } from '@weishour/core/decorators'; import { JwtAuthGuard } from '@weishour/core/guards'; import { MenusService } fro...
6
ultrashiny/harmony_frontend
0963e31
src/constants/ethnicity.ts
TypeScript
www.github.com/ultrashiny/harmony_frontend/tree/main/src/constants/ethnicity.ts
https://raw.githubusercontent.com/ultrashiny/harmony_frontend/0963e31/src/constants/ethnicity.ts
ultrashiny/harmony_frontend 0963e31 src/constants/ethnicity.ts
true
200
433
export const ETHNICITIES = [ { title: 'Caucasian', value: 'caucasian', }, { title: 'African', value: 'african', }, { title: 'East Asian', value: 'east-asian', }, { title: 'South Asian', value: 'south-asian', }, { title: 'Hispanic', value: 'hispanic', }, { ...
2
byteball/cascading-donations-v2
eab8d37
src/cache/repositoryMeta.ts
TypeScript
www.github.com/byteball/cascading-donations-v2/tree/main/src/cache/repositoryMeta.ts
https://raw.githubusercontent.com/byteball/cascading-donations-v2/eab8d37/src/cache/repositoryMeta.ts
byteball/cascading-donations-v2 eab8d37 src/cache/repositoryMeta.ts
true
200
410
"use server"; export interface RepositoryMeta { name: string; owner: string; last_update: number; description: string | null; language: string | null; stargazers_count: number; forks_count: number; license: string | null; created_at: string; pushed_at: string; } const repositoryMetaMap = new Map<...
1
sisirdhakal/dbmsproject
1cc7023
middleware.ts
TypeScript
www.github.com/sisirdhakal/dbmsproject/tree/main/middleware.ts
https://raw.githubusercontent.com/sisirdhakal/dbmsproject/1cc7023/middleware.ts
sisirdhakal/dbmsproject 1cc7023 middleware.ts
true
200
703
import { NextResponse } from "next/server" export const middleware = async (req) => { if (req.nextUrl.pathname.startsWith('/dashboard')) { const token = req.cookies.get('token')?.value if (token) { return NextResponse.next(); } const loginUrl = new URL("/", req.nextU...
6
IosifAlexandruMorar/BrokenSpoke
50ba882
webapp/src/app/repairs/add-repair/add-repair.component.ts
TypeScript
www.github.com/IosifAlexandruMorar/BrokenSpoke/tree/main/webapp/src/app/repairs/add-repair/add-repair.component.ts
https://raw.githubusercontent.com/IosifAlexandruMorar/BrokenSpoke/50ba882/webapp/src/app/repairs/add-repair/add-repair.component.ts
IosifAlexandruMorar/BrokenSpoke 50ba882 webapp/src/app/repairs/add-repair/add-repair.component.ts
true
200
1,481
import { Component, OnInit } from '@angular/core'; import {BikeRepair} from "../../_model/bike-repair.model"; import {BikeRepairService} from "../../services/bike-repair.service"; import {Router} from "@angular/router"; import {EmployeeModel} from "../../_model/employee.model"; import {EmployeeService} from "../../serv...
5
rafael135/chatSocket-trabalho-redes
438ffd1
trabalho-redes-frontEnd/src/utils/queries.ts
TypeScript
www.github.com/rafael135/chatSocket-trabalho-redes/tree/main/trabalho-redes-frontEnd/src/utils/queries.ts
https://raw.githubusercontent.com/rafael135/chatSocket-trabalho-redes/438ffd1/trabalho-redes-frontEnd/src/utils/queries.ts
rafael135/chatSocket-trabalho-redes 438ffd1 trabalho-redes-frontEnd/src/utils/queries.ts
true
200
3,591
import { getGroupMembers, getGroupMessages, getUserMessages, searchFriends } from "@/lib/actions"; import { GroupMessage, MessageType, UserMessage } from "@/types/Message"; import { useQuery } from "@tanstack/react-query"; import { queryClient } from "./queryClient"; import { User, UserFriend } from "@/types/User"; e...
2
Erel0251/bookshop_server
e2efd30
src/modules/category/category.resolver.ts
TypeScript
www.github.com/Erel0251/bookshop_server/tree/main/src/modules/category/category.resolver.ts
https://raw.githubusercontent.com/Erel0251/bookshop_server/e2efd30/src/modules/category/category.resolver.ts
Erel0251/bookshop_server e2efd30 src/modules/category/category.resolver.ts
true
200
1,477
import { Args, Parent, Query, ResolveField, Resolver } from '@nestjs/graphql'; import { Category } from '../category/entities/category.entity'; import { ParseUUIDPipe } from '@nestjs/common'; import { CategoryService } from './category.service'; import { Book } from '../book/entities/book.entity'; @Resolver(() => Cate...
6
WildCodeSchool/Sugar-rush-project-sugar-rush
33d917c
src/app/shared/interfaces/article.ts
TypeScript
www.github.com/WildCodeSchool/Sugar-rush-project-sugar-rush/tree/main/src/app/shared/interfaces/article.ts
https://raw.githubusercontent.com/WildCodeSchool/Sugar-rush-project-sugar-rush/33d917c/src/app/shared/interfaces/article.ts
WildCodeSchool/Sugar-rush-project-sugar-rush 33d917c src/app/shared/interfaces/article.ts
true
200
360
import { Category } from './category' import { Paragraph } from './paragraph' import { User } from './user' export interface Article { id: number isMain: boolean title: string slug: string publicationDate: Date modificationDate: Date leads: string publicationImage: string author: User category: Ca...
1
JuanLuuca/appleworld-ecommerce
3dc2362
app/api/product/[id]/route.ts
TypeScript
www.github.com/JuanLuuca/appleworld-ecommerce/tree/main/app/api/product/[id]/route.ts
https://raw.githubusercontent.com/JuanLuuca/appleworld-ecommerce/3dc2362/app/api/product/%5Bid%5D/route.ts
JuanLuuca/appleworld-ecommerce 3dc2362 app/api/product/[id]/route.ts
true
200
556
import { getCurrentUser } from "@/actions/getCurrentUser"; import { NextResponse } from "next/server"; import prisma from "@/libs/prismadb"; export async function DELETE( request: Request, { params }: { params: { id: string } } ) { const currentUser = await getCurrentUser(); if(!currentUser) return Ne...
5
heqing0712/nuxt-web-enicetytech
cd69187
store/app.ts
TypeScript
www.github.com/heqing0712/nuxt-web-enicetytech/tree/main/store/app.ts
https://raw.githubusercontent.com/heqing0712/nuxt-web-enicetytech/cd69187/store/app.ts
heqing0712/nuxt-web-enicetytech cd69187 store/app.ts
true
200
2,158
import { VuexModule, Module, Mutation, Action } from 'vuex-module-decorators' // import request from '@/service' import Vue from 'vue' import { ShopConfigs } from '@/types' import { getWebConfig, getGoodsClassList, getLangList } from '@/service/api' import { getLocale } from '@/utils' @Module({ name: 'app', stateFact...
2
monterway/nextjs-skeleton
9bb6a11
firebase/functions/src/core/modules/Auth/Auth.ts
TypeScript
www.github.com/monterway/nextjs-skeleton/tree/main/firebase/functions/src/core/modules/Auth/Auth.ts
https://raw.githubusercontent.com/monterway/nextjs-skeleton/9bb6a11/firebase/functions/src/core/modules/Auth/Auth.ts
monterway/nextjs-skeleton 9bb6a11 firebase/functions/src/core/modules/Auth/Auth.ts
true
200
1,036
import * as express from "express"; import * as admin from "firebase-admin"; export interface AuthType { setUserInRequest: ( req: express.Request, res: express.Response, next: express.NextFunction ) => Promise<void>; } const Auth = (): AuthType => ({ setUserInRequest: async (req, res, next) => { ...
6
Dgiftedx/startev-web-client
c66bd7b
src/app/_services/broadcast-message.service.ts
TypeScript
www.github.com/Dgiftedx/startev-web-client/tree/main/src/app/_services/broadcast-message.service.ts
https://raw.githubusercontent.com/Dgiftedx/startev-web-client/c66bd7b/src/app/_services/broadcast-message.service.ts
Dgiftedx/startev-web-client c66bd7b src/app/_services/broadcast-message.service.ts
true
200
1,292
import { Injectable } from '@angular/core'; import { Subject, Observable } from 'rxjs'; import { BroadcastMessage } from '../_models/broadcastMessage'; import { BaseService } from './base.service'; import Pusher from 'pusher-js'; @Injectable({ providedIn: 'root' }) export class BroadcastMessageService { private subj...
1
DedeOli21/campaign-manager
2dc672e
test/campaign/setup.ts
TypeScript
www.github.com/DedeOli21/campaign-manager/tree/main/test/campaign/setup.ts
https://raw.githubusercontent.com/DedeOli21/campaign-manager/2dc672e/test/campaign/setup.ts
DedeOli21/campaign-manager 2dc672e test/campaign/setup.ts
true
200
957
import { config } from '../../datasource'; import { newDb, DataType } from 'pg-mem'; import { DataSource } from 'typeorm'; import { v4 } from 'uuid'; export const setupDataSource = async () => { const db = newDb({ autoCreateForeignKeyIndices: true, }); db.public.registerFunction({ implementation: () => ...
5
Aingareng/healthcare_reminder_app
194b28d
server/src/index.ts
TypeScript
www.github.com/Aingareng/healthcare_reminder_app/tree/main/server/src/index.ts
https://raw.githubusercontent.com/Aingareng/healthcare_reminder_app/194b28d/server/src/index.ts
Aingareng/healthcare_reminder_app 194b28d server/src/index.ts
true
200
1,833
import http from "http" import Mongo from "./repository/Mongo"; import dotenv from "dotenv"; import nodeMailer from "nodemailer"; dotenv.config() const { URI } = process.env const db: Mongo = new Mongo(String(URI)) db.Connect() http.createServer((req, res) => { switch (String(req.method)) { case "POST": ...
2
JoseFdri/express-ts-clean-arch
f61131f
src/main/factories/validations/add-employee-validation-factory.ts
TypeScript
www.github.com/JoseFdri/express-ts-clean-arch/tree/main/src/main/factories/validations/add-employee-validation-factory.ts
https://raw.githubusercontent.com/JoseFdri/express-ts-clean-arch/f61131f/src/main/factories/validations/add-employee-validation-factory.ts
JoseFdri/express-ts-clean-arch f61131f src/main/factories/validations/add-employee-validation-factory.ts
true
200
427
import { ValidationComposite, RequiredFieldValidation } from '@/validation/validators' import { Validation } from '@/presentation/protocols' export const makeAddEmployeeValidation = (): ValidationComposite => { const validations: Validation[] = [] const fields = ['name', 'email'] for (const field of fields) { ...
6
prosekit/prosekit
0fcbcba
packages/extensions/src/mark-rule/types.ts
TypeScript
www.github.com/prosekit/prosekit/tree/main/packages/extensions/src/mark-rule/types.ts
https://raw.githubusercontent.com/prosekit/prosekit/0fcbcba/packages/extensions/src/mark-rule/types.ts
prosekit/prosekit 0fcbcba packages/extensions/src/mark-rule/types.ts
true
200
642
import { type Attrs, type MarkType, } from '@prosekit/pm/model' /** * The options for {@link defineMarkRule}. * * @public */ export interface MarkRuleOptions { /** * The regular expression to match against. It must has a `g` flag to match * all instances of the mark. */ regex: RegExp /** * T...
1
FaisalAyub/BookMSFyp
493748a
Angular-Theme/BookApp/src/app/shared/interceptors/auth.token.interceptor.ts
TypeScript
www.github.com/FaisalAyub/BookMSFyp/tree/main/Angular-Theme/BookApp/src/app/shared/interceptors/auth.token.interceptor.ts
https://raw.githubusercontent.com/FaisalAyub/BookMSFyp/493748a/Angular-Theme/BookApp/src/app/shared/interceptors/auth.token.interceptor.ts
FaisalAyub/BookMSFyp 493748a Angular-Theme/BookApp/src/app/shared/interceptors/auth.token.interceptor.ts
true
200
654
import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable() export class AuthTokenInterceptor implements HttpInterceptor { constructor() {} intercept( request...
2
Greedious/doctor-home
e77901d
src/review/data/review.schema.ts
TypeScript
www.github.com/Greedious/doctor-home/tree/main/src/review/data/review.schema.ts
https://raw.githubusercontent.com/Greedious/doctor-home/e77901d/src/review/data/review.schema.ts
Greedious/doctor-home e77901d src/review/data/review.schema.ts
true
200
812
import { BelongsTo, Column, DataType, ForeignKey, Model, Table, } from 'sequelize-typescript'; import { User } from 'src/account/user/data/user.schema'; import { Product } from 'src/product/data/product.schema'; @Table({ tableName: 'reviews', modelName: 'Review', timestamps: true, paranoid: true, }...
5
onxJi/carta-psicrometrica-web
fd2748b
src/app/components/grafica-delta-t/grafica-delta-t.component.ts
TypeScript
www.github.com/onxJi/carta-psicrometrica-web/tree/main/src/app/components/grafica-delta-t/grafica-delta-t.component.ts
https://raw.githubusercontent.com/onxJi/carta-psicrometrica-web/fd2748b/src/app/components/grafica-delta-t/grafica-delta-t.component.ts
onxJi/carta-psicrometrica-web fd2748b src/app/components/grafica-delta-t/grafica-delta-t.component.ts
true
200
12,760
import { Component, OnInit, signal } from '@angular/core'; import { PrimeNgExportModule } from '../../shared/primengExportModule/PrimeNgExportModule.module'; import { CustomTableComponent } from '../../shared/custom-table/custom-table.component'; import { Ecuations } from '../../shared/maths/Ecuaciones.ecuation'; impor...
6
ricdotnet/photohost
81ccd95
frontend-react/src/bus/EventBus.ts
TypeScript
www.github.com/ricdotnet/photohost/tree/main/frontend-react/src/bus/EventBus.ts
https://raw.githubusercontent.com/ricdotnet/photohost/81ccd95/frontend-react/src/bus/EventBus.ts
ricdotnet/photohost 81ccd95 frontend-react/src/bus/EventBus.ts
true
200
971
type EventKey = string; type EventHandler<T = any> = (payload: T) => void; type EventMap = Record<EventKey, EventHandler>; type Events = Record<keyof EventMap, EventHandler> interface EventBusInterface<T = EventMap> { subscribe<Key extends keyof T>(key: Key, handler: EventHandler): void; dispatch<P, Key extends k...
1
elwyncrestha/digital-memo-ui
ea44fac
src/app/feature/component/role/role-form/role-form.component.ts
TypeScript
www.github.com/elwyncrestha/digital-memo-ui/tree/main/src/app/feature/component/role/role-form/role-form.component.ts
https://raw.githubusercontent.com/elwyncrestha/digital-memo-ui/ea44fac/src/app/feature/component/role/role-form/role-form.component.ts
elwyncrestha/digital-memo-ui ea44fac src/app/feature/component/role/role-form/role-form.component.ts
true
200
2,505
import { Component, Input, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { NbDialogRef } from '@nebular/theme'; import { RoleType, Status } from 'src/app/@core/enums'; import { Role, User } from 'src/app/@core/models'; import { RoleService } from 'src/app/@co...
2
adilsoncarvalho/nestjs-restapi
8de4339
src/app.module.ts
TypeScript
www.github.com/adilsoncarvalho/nestjs-restapi/tree/main/src/app.module.ts
https://raw.githubusercontent.com/adilsoncarvalho/nestjs-restapi/8de4339/src/app.module.ts
adilsoncarvalho/nestjs-restapi 8de4339 src/app.module.ts
true
200
572
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { OrganizationsModule } from './organizations/organizations.module'; import typeOr...
5
Dwolla/integration-examples
29b5a2a
packages/secure-token-exchange/mastercard/src/utils/getFormValidation.ts
TypeScript
www.github.com/Dwolla/integration-examples/tree/main/packages/secure-token-exchange/mastercard/src/utils/getFormValidation.ts
https://raw.githubusercontent.com/Dwolla/integration-examples/29b5a2a/packages/secure-token-exchange/mastercard/src/utils/getFormValidation.ts
Dwolla/integration-examples 29b5a2a packages/secure-token-exchange/mastercard/src/utils/getFormValidation.ts
true
200
603
import { getMissingKeys } from "./index"; export interface ValidationResult<T> { isValid: boolean; missingKeys: (keyof T)[]; } /** * Gets if the form is valid by ensuring all required fields have a present value. * @returns a {@link ValidationResult} object that contains if the form was valid as well * as ...
6
itstor/nestjs-boilerplate
c91b432
src/app.module.ts
TypeScript
www.github.com/itstor/nestjs-boilerplate/tree/main/src/app.module.ts
https://raw.githubusercontent.com/itstor/nestjs-boilerplate/c91b432/src/app.module.ts
itstor/nestjs-boilerplate c91b432 src/app.module.ts
true
200
1,954
import { HttpException, Module } from '@nestjs/common'; import { APP_GUARD, APP_INTERCEPTOR } from '@nestjs/core'; import { SentryInterceptor } from '@ntegral/nestjs-sentry'; import { ThrottlerBehindProxyGuard } from './common/guards/throttler-behind-proxy.guard'; import { AppConfigModule, BullNestModule, JWTCon...
1
ChristopheBarth/Wildseries
a9b49d5
server/src/modules/program/programActions.ts
TypeScript
www.github.com/ChristopheBarth/Wildseries/tree/main/server/src/modules/program/programActions.ts
https://raw.githubusercontent.com/ChristopheBarth/Wildseries/a9b49d5/server/src/modules/program/programActions.ts
ChristopheBarth/Wildseries a9b49d5 server/src/modules/program/programActions.ts
true
200
1,772
// Some data to make the trick import ProgramRepository from "./ProgramRepository"; const programs = [ { id: 1, title: "The Good Place", synopsis: "À sa mort, Eleanor Shellstrop est envoyée au Bon Endroit, un paradis fantaisiste réservé aux individus exceptionnellement bienveillants. Or Eleanor n'e...
2
MYassineMarouani/FrontUniManagement
a9c3f4b
src/app/components/etudiantnavbar/etudiantnavbar.component.ts
TypeScript
www.github.com/MYassineMarouani/FrontUniManagement/tree/main/src/app/components/etudiantnavbar/etudiantnavbar.component.ts
https://raw.githubusercontent.com/MYassineMarouani/FrontUniManagement/a9c3f4b/src/app/components/etudiantnavbar/etudiantnavbar.component.ts
MYassineMarouani/FrontUniManagement a9c3f4b src/app/components/etudiantnavbar/etudiantnavbar.component.ts
true
200
1,011
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { EndpointService } from 'src/app/services/endpoint.service'; import { EtudiantService } from 'src/app/services/etudiant.service'; @Component({ selector: 'app-etudiantnavbar', templateUrl: './etudiantnavbar.componen...
5
oh-jinsu/lambdaf
30daaaf
src/lambdas/event_bridge.ts
TypeScript
www.github.com/oh-jinsu/lambdaf/tree/main/src/lambdas/event_bridge.ts
https://raw.githubusercontent.com/oh-jinsu/lambdaf/30daaaf/src/lambdas/event_bridge.ts
oh-jinsu/lambdaf 30daaaf src/lambdas/event_bridge.ts
true
200
804
import { EventBridgeHandler } from "aws-lambda"; import { lambda, Lambda, UseCase } from "../core"; import { eventBridgeRequestMapper, WithEventBridgeEvent } from "../request_mappers"; /** * A type of [`eventBridgeLambda`] function. */ export type EventBridgeLambda<DetailType extends string, Detail> = Lambda< Ev...
1
LeoGao1/weihang_site
6da3c33
node_modules/astro/dist/runtime/server/render/slot.d.ts
TypeScript
www.github.com/LeoGao1/weihang_site/tree/main/node_modules/astro/dist/runtime/server/render/slot.d.ts
https://raw.githubusercontent.com/LeoGao1/weihang_site/6da3c33/node_modules/astro/dist/runtime/server/render/slot.d.ts
LeoGao1/weihang_site 6da3c33 node_modules/astro/dist/runtime/server/render/slot.d.ts
true
200
1,518
import { renderTemplate } from './astro/render-template.js'; import type { RenderInstruction } from './instruction.js'; import type { SSRResult } from '../../../types/public/internal.js'; import { HTMLString } from '../escape.js'; import { type RenderInstance } from './common.js'; type RenderTemplateResult = ReturnType...
6
AkhileshKr1098/SRIS-ACADEMY
e14a590
src/app/student/StudayMatrial/Notes/std-noteslist/std-noteslist.component.ts
TypeScript
www.github.com/AkhileshKr1098/SRIS-ACADEMY/tree/main/src/app/student/StudayMatrial/Notes/std-noteslist/std-noteslist.component.ts
https://raw.githubusercontent.com/AkhileshKr1098/SRIS-ACADEMY/e14a590/src/app/student/StudayMatrial/Notes/std-noteslist/std-noteslist.component.ts
AkhileshKr1098/SRIS-ACADEMY e14a590 src/app/student/StudayMatrial/Notes/std-noteslist/std-noteslist.component.ts
true
200
1,849
import { Component, OnInit, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { Router } from '@angular/router'; import { ManageService } from 'src/app/manag...
2
Boulamayme/sharepoint-test
d2748f0
src/webparts/faqMilieu/FaqMilieuWebPart.ts
TypeScript
www.github.com/Boulamayme/sharepoint-test/tree/main/src/webparts/faqMilieu/FaqMilieuWebPart.ts
https://raw.githubusercontent.com/Boulamayme/sharepoint-test/d2748f0/src/webparts/faqMilieu/FaqMilieuWebPart.ts
Boulamayme/sharepoint-test d2748f0 src/webparts/faqMilieu/FaqMilieuWebPart.ts
true
200
4,560
import 'bootstrap/dist/css/bootstrap.min.css'; import 'jquery'; import 'popper.js'; import './scripts/customScript.js'; // import { escape } from '@microsoft/sp-lodash-subset'; import { Environment, EnvironmentType } from '@microsoft/sp-core-library'; import { IPropertyPaneConfiguration, PropertyPaneTextField, ...
5
pujaa02/food_app_prisma
30df929
backend/src/modules/rating/repository/rating.repository.ts
TypeScript
www.github.com/pujaa02/food_app_prisma/tree/main/backend/src/modules/rating/repository/rating.repository.ts
https://raw.githubusercontent.com/pujaa02/food_app_prisma/30df929/backend/src/modules/rating/repository/rating.repository.ts
pujaa02/food_app_prisma 30df929 backend/src/modules/rating/repository/rating.repository.ts
true
200
945
import { prisma } from "../../.."; import { RatingAttributes } from "../types/rating.types"; export async function ratingAddQuery2(input: RatingAttributes) { return await prisma.rating.upsert({ where: { user_id_menu_id: { user_id: Number(input.user_id), menu_id: Number(input.men...
1
andrecrimb/agro-master-api
449bf54
src/index.ts
TypeScript
www.github.com/andrecrimb/agro-master-api/tree/main/src/index.ts
https://raw.githubusercontent.com/andrecrimb/agro-master-api/449bf54/src/index.ts
andrecrimb/agro-master-api 449bf54 src/index.ts
true
200
1,877
import express from 'express' import helmet from 'helmet' import prisma from './client' import authRoutes from './routes/auth' import userRoutes from './routes/user' import rootstockRoutes from './routes/rootstock' import customerRoutes from './routes/customer' import propertyRoutes from './routes/property' import gree...
2
sarra404/worshops
c8a29eb
src/app/app.module.ts
TypeScript
www.github.com/sarra404/worshops/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/sarra404/worshops/c8a29eb/src/app/app.module.ts
sarra404/worshops c8a29eb src/app/app.module.ts
true
200
1,197
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ResidencesComponent } from './Residences/residences/residences.component'; import { FormsModule, Reactiv...
0
Nidja2021/fakestore_angular
fc8247e
src/app/components/card/card.component.ts
TypeScript
www.github.com/Nidja2021/fakestore_angular/tree/main/src/app/components/card/card.component.ts
https://raw.githubusercontent.com/Nidja2021/fakestore_angular/fc8247e/src/app/components/card/card.component.ts
Nidja2021/fakestore_angular fc8247e src/app/components/card/card.component.ts
true
200
559
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { Product } from 'src/app/models/Product.interface'; import { Router } from '@angular/router'; @Component({ selector: 'app-card', templateUrl: './card.component.html', styleUrls: ['./card.component.scss'] }) export class CardComponent...
5
alirezashn79/todox
aaba886
src/app/api/auth/sms/send/route.ts
TypeScript
www.github.com/alirezashn79/todox/tree/main/src/app/api/auth/sms/send/route.ts
https://raw.githubusercontent.com/alirezashn79/todox/aaba886/src/app/api/auth/sms/send/route.ts
alirezashn79/todox aaba886 src/app/api/auth/sms/send/route.ts
true
200
1,993
import otpModel from "@/models/Otp"; import { zPhoneSchema } from "@/schemas/schema"; import DbConnect from "@/utils/dbConnection"; import axios from "axios"; export async function POST(req: Request) { try { const reqBody = await req.json(); const validationResult = await zPhoneSchema.parseAsync(reqBody); ...
1
meoomura/fullcycle-docker
bc317ce
monolitico/src/modules/payment/factory/payment.facade.factory.ts
TypeScript
www.github.com/meoomura/fullcycle-docker/tree/main/monolitico/src/modules/payment/factory/payment.facade.factory.ts
https://raw.githubusercontent.com/meoomura/fullcycle-docker/bc317ce/monolitico/src/modules/payment/factory/payment.facade.factory.ts
meoomura/fullcycle-docker bc317ce monolitico/src/modules/payment/factory/payment.facade.factory.ts
true
200
577
import PaymentFacade from "../facade/payment.facade"; import PaymentFacadeInterface from "../facade/payment.facade.interface"; import TransactionRepository from "../repository/transaction.repository"; import ProcessPaymentUseCase from "../usecase/process-payment/process-payment.usecase"; export default class PaymentFa...
3
visualize-admin/covid19-dashboard
6f5b83e
packages/client/src/app/routes/dashboard/weekly-report/weekly-report-methods-and-sources/weekly-report-methods-and-sources.module.ts
TypeScript
www.github.com/visualize-admin/covid19-dashboard/tree/main/packages/client/src/app/routes/dashboard/weekly-report/weekly-report-methods-and-sources/weekly-report-methods-and-sources.module.ts
https://raw.githubusercontent.com/visualize-admin/covid19-dashboard/6f5b83e/packages/client/src/app/routes/dashboard/weekly-report/weekly-report-methods-and-sources/weekly-report-methods-and-sources.module.ts
visualize-admin/covid19-dashboard 6f5b83e packages/client/src/app/routes/dashboard/weekly-report/weekly-report-methods-and-sources/weekly-report-methods-and-sources.module.ts
true
200
433
import { CommonModule } from '@angular/common' import { NgModule } from '@angular/core' import { CommonsModule } from '../../../../shared/commons/commons.module' import { WeeklyReportMethodsAndSourcesComponent } from './weekly-report-methods-and-sources.component' @NgModule({ declarations: [WeeklyReportMethodsAndSou...
4
DrSmithFr/psy
42f7237
src/app/modules/meds/pages/meds-edition/meds-edition.component.ts
TypeScript
www.github.com/DrSmithFr/psy/tree/main/src/app/modules/meds/pages/meds-edition/meds-edition.component.ts
https://raw.githubusercontent.com/DrSmithFr/psy/42f7237/src/app/modules/meds/pages/meds-edition/meds-edition.component.ts
DrSmithFr/psy 42f7237 src/app/modules/meds/pages/meds-edition/meds-edition.component.ts
true
200
916
import {Component, OnInit} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {MedsModel} from '../../../../../models/meds.model'; import {DbService} from '../../../shared/services/db.service'; @Component( { selector: 'app-meds-edition', templateUrl: './meds-edition.compo...
2
LizavetaY/tracker
1cbd1b7
src/auth/schemas/user.schema.ts
TypeScript
www.github.com/LizavetaY/tracker/tree/main/src/auth/schemas/user.schema.ts
https://raw.githubusercontent.com/LizavetaY/tracker/1cbd1b7/src/auth/schemas/user.schema.ts
LizavetaY/tracker 1cbd1b7 src/auth/schemas/user.schema.ts
true
200
547
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document } from 'mongoose'; import { Role } from '../enums/role.enum'; @Schema({ timestamps: true, }) export class User extends Document { @Prop() name: string; @Prop() surname: string; @Prop({ unique: [ true, 'Email already exists'...
6
victormesquitta/SENAC-PWA107-1142516614-Victor
f18db04
axios/Backend/src/services/user/ReadUserService.ts
TypeScript
www.github.com/victormesquitta/SENAC-PWA107-1142516614-Victor/tree/main/axios/Backend/src/services/user/ReadUserService.ts
https://raw.githubusercontent.com/victormesquitta/SENAC-PWA107-1142516614-Victor/f18db04/axios/Backend/src/services/user/ReadUserService.ts
victormesquitta/SENAC-PWA107-1142516614-Victor f18db04 axios/Backend/src/services/user/ReadUserService.ts
true
200
848
import { json } from 'express'; import prismaClient from '../../prisma'; interface UserRequest { nmuser: string; } class ReadUserService { async execute({ nmuser }: UserRequest) { //nmuser="Adalberto Piotto" console.log(nmuser) //vamos verificar se enviou Usename ...
0