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
lucassdantas/forum-seu-treino
72f61a1
src/api/comments/addComment.ts
TypeScript
www.github.com/lucassdantas/forum-seu-treino/tree/main/src/api/comments/addComment.ts
https://raw.githubusercontent.com/lucassdantas/forum-seu-treino/72f61a1/src/api/comments/addComment.ts
lucassdantas/forum-seu-treino 72f61a1 src/api/comments/addComment.ts
true
200
428
// api/comments/addComment.ts import { BACKEND_URL } from '@/constants'; import axios from 'axios'; export const addComment = async (newComment: { commentContent: string; commentPostId: number; commentAuthorId: number; commentAuthorName:string; }) => { try { await axios.post(`${BACKEND_URL}controllers/co...
7
kiba9/fuelApp
b2928f1
src/app/components/settings/settings.component.ts
TypeScript
www.github.com/kiba9/fuelApp/tree/main/src/app/components/settings/settings.component.ts
https://raw.githubusercontent.com/kiba9/fuelApp/b2928f1/src/app/components/settings/settings.component.ts
kiba9/fuelApp b2928f1 src/app/components/settings/settings.component.ts
true
200
438
import { Component, OnInit } from '@angular/core'; import {PopoverController} from '@ionic/angular'; @Component({ selector: 'app-settings', templateUrl: './settings.component.html', styleUrls: ['./settings.component.scss'], }) export class SettingsComponent implements OnInit { constructor(public popoverCtrl: ...
5
trybento/bento-oss
dd87302
apps/miso/mutations/SetStepCompletion.ts
TypeScript
www.github.com/trybento/bento-oss/tree/main/apps/miso/mutations/SetStepCompletion.ts
https://raw.githubusercontent.com/trybento/bento-oss/dd87302/apps/miso/mutations/SetStepCompletion.ts
trybento/bento-oss dd87302 apps/miso/mutations/SetStepCompletion.ts
true
200
961
import { graphql } from 'react-relay'; import commitMutation from './commitMutation'; import { SetStepCompletionMutation } from 'relay-types/SetStepCompletionMutation.graphql'; const mutationName = 'setStepCompletion'; const mutation = graphql` mutation SetStepCompletionMutation($input: SetStepCompletionInput!) { ...
1
iqra-umer/45_assignment_question
63c88ef
q.15/main.ts
TypeScript
www.github.com/iqra-umer/45_assignment_question/tree/main/q.15/main.ts
https://raw.githubusercontent.com/iqra-umer/45_assignment_question/63c88ef/q.15/main.ts
iqra-umer/45_assignment_question 63c88ef q.15/main.ts
true
200
357
let guestList = ["Tuba", "Namra", "Jaweriya"]; //print the name who cant make dinner let unableAttend: string = guestList.splice(1,1)[0]; console.log(`${unableAttend} not invited for dinner`); //add new guest guestList.push("mahrukh"); // print a message guestList.forEach((guest) => console.log(`assalam o alaikum $...
3
istvanoliva/car-shop
f763139
src/controllers/Controller.ts
TypeScript
www.github.com/istvanoliva/car-shop/tree/main/src/controllers/Controller.ts
https://raw.githubusercontent.com/istvanoliva/car-shop/f763139/src/controllers/Controller.ts
istvanoliva/car-shop f763139 src/controllers/Controller.ts
true
200
1,091
import { Request, Response } from 'express'; import { IController } from '../interfaces/IController'; import { IService } from '../interfaces/IService'; abstract class Controller<T> implements IController { protected _service: IService<T>; constructor(service: IService<T>) { this._service = service; } as...
4
vietvvpd09813/angular10
6966528
src/app/admincomponent/adproduct/adproduct.component.ts
TypeScript
www.github.com/vietvvpd09813/angular10/tree/main/src/app/admincomponent/adproduct/adproduct.component.ts
https://raw.githubusercontent.com/vietvvpd09813/angular10/6966528/src/app/admincomponent/adproduct/adproduct.component.ts
vietvvpd09813/angular10 6966528 src/app/admincomponent/adproduct/adproduct.component.ts
true
200
346
import { Component,OnInit } from '@angular/core'; declare function addproduct():void; @Component({ selector: 'app-adproduct', standalone: true, imports: [], templateUrl: './adproduct.component.html', styleUrl: './adproduct.component.css' }) export class AdproductComponent implements OnInit { ngOnInit(): voi...
7
guorunfa/dataos
0204cfb
src/main.ts
TypeScript
www.github.com/guorunfa/dataos/tree/main/src/main.ts
https://raw.githubusercontent.com/guorunfa/dataos/0204cfb/src/main.ts
guorunfa/dataos 0204cfb src/main.ts
true
200
843
import { createApp } from 'vue' import App from './App.vue' import { componentRegistration, setupNaiveUI } from '@/plugins' import { setPinia } from '@/store' import i18n from './i18n' import router, { setupRouter } from './router' import { keepTheme } from './utils' async function appInit() { const app = createApp(...
6
TimiBolu/audit-logs-new
e236753
src/aws/logToS3.ts
TypeScript
www.github.com/TimiBolu/audit-logs-new/tree/main/src/aws/logToS3.ts
https://raw.githubusercontent.com/TimiBolu/audit-logs-new/e236753/src/aws/logToS3.ts
TimiBolu/audit-logs-new e236753 src/aws/logToS3.ts
true
200
2,115
import { NextFunction, // Request, Response } from "express"; import { v4 as uuidv4 } from "uuid"; import { AWSConfig, LogEntry, customRequest } from "../typings/config.type"; import { getUserIpAddress } from "../getUserIpAddress"; import { createS3Client } from "../config/s3.config"; // interface customRe...
0
zacharymims/pop
fcfa911
cdl-tests/wisconsin/hazmat/test-1.ts
TypeScript
www.github.com/zacharymims/pop/tree/main/cdl-tests/wisconsin/hazmat/test-1.ts
https://raw.githubusercontent.com/zacharymims/pop/fcfa911/cdl-tests/wisconsin/hazmat/test-1.ts
zacharymims/pop fcfa911 cdl-tests/wisconsin/hazmat/test-1.ts
true
200
412
import { Question } from '../../../../types'; export const wisconsinHazmat1: Question[] = [ { id: 'wi-h1-1', question: 'Sample question for wisconsin hazmat?', answers: [ 'Option 1', 'Option 2', 'Option 3', 'Option 4' ], correctAnswers: ['Option 1'], explanation: 'This...
5
okaydivyansh/luganodesTask21BIT0708
b006291
src/utils/env.ts
TypeScript
www.github.com/okaydivyansh/luganodesTask21BIT0708/tree/main/src/utils/env.ts
https://raw.githubusercontent.com/okaydivyansh/luganodesTask21BIT0708/b006291/src/utils/env.ts
okaydivyansh/luganodesTask21BIT0708 b006291 src/utils/env.ts
true
200
231
import dotenv from "dotenv"; dotenv.config(); const envs = { ALCHEMY_API_KEY: process.env.ALCHEMY_API_KEY!, MONGO_URI: process.env.MONGO_URI!, ETH_BLOCK_FROM: parseInt(process.env.ETH_BLOCK_FROM!), }; export default envs;
1
Hollowone1/vitrine
5f1b7c0
src/app/pages/stories/stories-routing.module.ts
TypeScript
www.github.com/Hollowone1/vitrine/tree/main/src/app/pages/stories/stories-routing.module.ts
https://raw.githubusercontent.com/Hollowone1/vitrine/5f1b7c0/src/app/pages/stories/stories-routing.module.ts
Hollowone1/vitrine 5f1b7c0 src/app/pages/stories/stories-routing.module.ts
true
200
576
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { StoriesDetailsComponent } from './stories-details/stories-details.component'; import { StoriesIndexComponent } from './stories-index/stories-index.component'; const routes: Routes = [ { path: '', child...
4
Andrew-Franklin-Leo/CarbonDAO
b0e9916
test/ProjectRegistry.test.ts
TypeScript
www.github.com/Andrew-Franklin-Leo/CarbonDAO/tree/main/test/ProjectRegistry.test.ts
https://raw.githubusercontent.com/Andrew-Franklin-Leo/CarbonDAO/b0e9916/test/ProjectRegistry.test.ts
Andrew-Franklin-Leo/CarbonDAO b0e9916 test/ProjectRegistry.test.ts
true
200
5,714
import { expect } from "chai"; import { ethers } from "hardhat"; import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; import { ProjectRegistry, CarbonCreditToken } from "../typechain-types"; describe("ProjectRegistry", function () { let projectRegistry: ProjectRegistry; let carbonCreditToken: Car...
6
RachitSrivastava12/Solana-Indexer
03e6f8e
vite-project/node_modules/@trezor/websocket-client/lib/client.d.ts
TypeScript
www.github.com/RachitSrivastava12/Solana-Indexer/tree/main/vite-project/node_modules/@trezor/websocket-client/lib/client.d.ts
https://raw.githubusercontent.com/RachitSrivastava12/Solana-Indexer/03e6f8e/vite-project/node_modules/%40trezor/websocket-client/lib/client.d.ts
RachitSrivastava12/Solana-Indexer 03e6f8e vite-project/node_modules/@trezor/websocket-client/lib/client.d.ts
true
200
1,747
import WebSocket from 'ws'; import { TypedEmitter } from '@trezor/utils'; type WebsocketOptions = { url: string; timeout?: number; agent?: WebSocket.ClientOptions['agent']; headers?: WebSocket.ClientOptions['headers']; }; type Options = WebsocketOptions & { pingTimeout?: number; connectionTimeou...
7
CleanCodersRojo/BackendMyNotes
363099e
src/Note/test/ModificarNota.test.ts
TypeScript
www.github.com/CleanCodersRojo/BackendMyNotes/tree/main/src/Note/test/ModificarNota.test.ts
https://raw.githubusercontent.com/CleanCodersRojo/BackendMyNotes/363099e/src/Note/test/ModificarNota.test.ts
CleanCodersRojo/BackendMyNotes 363099e src/Note/test/ModificarNota.test.ts
true
200
1,342
import { EliminarNotaComando } from "../application/eliminar_Nota/EliminarNotaComando"; import { EliminarNota} from "../application/eliminar_Nota/EliminarNota"; import { MongoNotaAdapter } from "../infraestructure/repositories_adapter/MongoNotaAdapter"; import { Model } from "mongoose"; import { ModificarNota } from "....
0
Stevenic/alphawave
9185e1a
samples/11.macbeth/src/commands/EndSceneCommand.ts
TypeScript
www.github.com/Stevenic/alphawave/tree/main/samples/11.macbeth/src/commands/EndSceneCommand.ts
https://raw.githubusercontent.com/Stevenic/alphawave/9185e1a/samples/11.macbeth/src/commands/EndSceneCommand.ts
Stevenic/alphawave 9185e1a samples/11.macbeth/src/commands/EndSceneCommand.ts
true
200
1,085
import { SchemaBasedCommand, CommandSchema, TaskResponse, TaskContext } from "alphawave-agents"; interface EndSceneCommandInput { question: string; } const EndSceneCommandSchema: CommandSchema = { type: "object", title: "endScene", description: "marks the end of a scene and lets the narrator ask the u...
3
leofelix077/git-feed
d51b48d
client/src/constants.ts
TypeScript
www.github.com/leofelix077/git-feed/tree/main/client/src/constants.ts
https://raw.githubusercontent.com/leofelix077/git-feed/d51b48d/client/src/constants.ts
leofelix077/git-feed d51b48d client/src/constants.ts
true
200
898
export enum SupportedLocale { English = "en-gb", Portuguese = "pt-br", } export const LOCALE_KEY = "locale"; export const TOKEN_KEY = "token"; const useDevEnvironment = process.env.REACT_ENV !== "production"; // "https://git-repos-dev.bunchofnothing.com/repos"; let GIT_CLIENT_ID = "de35513896095c9a5ad6"; let GI...
5
yamachig/Lawtext
af4a0ab
core/src/law/num.ts
TypeScript
www.github.com/yamachig/Lawtext/tree/main/core/src/law/num.ts
https://raw.githubusercontent.com/yamachig/Lawtext/af4a0ab/core/src/law/num.ts
yamachig/Lawtext af4a0ab core/src/law/num.ts
true
200
8,446
import { assertNever } from "../util"; const reKanjiNum = /((\S*)千)?((\S*)百)?((\S*)十)?(\S*)/; export const parseKanjiNum = (text: string): number | null => { if (text === "元") return 1; const m = reKanjiNum.exec(text); if (m) { if (!m[1] && !m[2] && !m[3] && m[7] && m[7].length > 1) { ...
1
naerzl/next_client
a11f25c
src/app/material-approach/types/index.d.ts
TypeScript
www.github.com/naerzl/next_client/tree/main/src/app/material-approach/types/index.d.ts
https://raw.githubusercontent.com/naerzl/next_client/a11f25c/src/app/material-approach/types/index.d.ts
naerzl/next_client a11f25c src/app/material-approach/types/index.d.ts
true
200
1,948
import { BaseApiPager } from "@/types/api" export interface GetMaterialApproachParams { page?: number limit?: number project_id: number has_test?: boolean name?: string manufacturer?: string status?: string created_between?: string creator?: string } export interface GetMaterialApproachResponse { ...
4
Khariton90/guitar-shop
3fb82c2
apps/frontend/src/store/index.ts
TypeScript
www.github.com/Khariton90/guitar-shop/tree/main/apps/frontend/src/store/index.ts
https://raw.githubusercontent.com/Khariton90/guitar-shop/3fb82c2/apps/frontend/src/store/index.ts
Khariton90/guitar-shop 3fb82c2 apps/frontend/src/store/index.ts
true
200
436
import { rootReducer } from './root-reducer'; import { redirect } from '../middlewares/redirect'; import { configureStore } from '@reduxjs/toolkit'; import { createApi } from '../services/api'; export const api = createApi(); export const store = configureStore({ reducer: rootReducer, middleware: (getDefaultMiddl...
2
Djikine11/quran
e234ec2
src/app/quran.service.ts
TypeScript
www.github.com/Djikine11/quran/tree/main/src/app/quran.service.ts
https://raw.githubusercontent.com/Djikine11/quran/e234ec2/src/app/quran.service.ts
Djikine11/quran e234ec2 src/app/quran.service.ts
true
200
364
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class QuranService { APIUrl = 'https://api.alquran.cloud/v1/surah/18' constructor(private http: HttpClient) { } connectBack(): Observable<any...
6
MaxiJ16/lost-pet-app
1891d88
fe-src/pages/report-pets/index.ts
TypeScript
www.github.com/MaxiJ16/lost-pet-app/tree/main/fe-src/pages/report-pets/index.ts
https://raw.githubusercontent.com/MaxiJ16/lost-pet-app/1891d88/fe-src/pages/report-pets/index.ts
MaxiJ16/lost-pet-app 1891d88 fe-src/pages/report-pets/index.ts
true
200
6,050
import { Router } from "@vaadin/router"; import Dropzone from "dropzone"; //mapbox import * as mapboxgl from "mapbox-gl"; import { mapboxClient, MAPBOX_TOKEN } from "../../lib/mapbox"; import { state } from "../../state"; class ReportPets extends HTMLElement { map: any; connectedCallback() { this.render(); ...
0
tbghg/ELAB-registration-system-Frontend
8d46583
types/application.ts
TypeScript
www.github.com/tbghg/ELAB-registration-system-Frontend/tree/main/types/application.ts
https://raw.githubusercontent.com/tbghg/ELAB-registration-system-Frontend/8d46583/types/application.ts
tbghg/ELAB-registration-system-Frontend 8d46583 types/application.ts
true
200
725
interface LongTextForm { reason: string; experience: string; selfEvaluation: string; } interface InterviewRoom { id: string; name: string; time: Date; capacity: number; currentOccupancy: number; place: string; } interface FormContentPageParam { preview?: boolean; } function createEmptyLongTextFor...
7
ilias-b-tech/simple-chess
796dd02
src/types/chess.ts
TypeScript
www.github.com/ilias-b-tech/simple-chess/tree/main/src/types/chess.ts
https://raw.githubusercontent.com/ilias-b-tech/simple-chess/796dd02/src/types/chess.ts
ilias-b-tech/simple-chess 796dd02 src/types/chess.ts
true
200
395
export type PieceType = 'pawn' | 'rook' | 'knight' | 'bishop' | 'queen' | 'king'; export type PieceColor = 'white' | 'black'; export interface Position { x: number; y: number; } export interface Piece { type: PieceType; color: PieceColor; position: Position; hasMoved?: boolean; } export interface Square ...
5
Trimesteret/AngGUI
9e24aa0
src/app/shared/services/authentication/authentication.service.ts
TypeScript
www.github.com/Trimesteret/AngGUI/tree/main/src/app/shared/services/authentication/authentication.service.ts
https://raw.githubusercontent.com/Trimesteret/AngGUI/9e24aa0/src/app/shared/services/authentication/authentication.service.ts
Trimesteret/AngGUI 9e24aa0 src/app/shared/services/authentication/authentication.service.ts
true
200
3,506
import { Injectable } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable, of, tap } from 'rxjs'; import { CookieService } from 'ngx-cookie-service'; import { environment } from '../../../../environments/environment'; import { Role } from '../../enums/role'; import {...
3
imminh123/oversea-ordering-platform-client
7012ff5
src/features/cart/api/useDeleteAddress.ts
TypeScript
www.github.com/imminh123/oversea-ordering-platform-client/tree/main/src/features/cart/api/useDeleteAddress.ts
https://raw.githubusercontent.com/imminh123/oversea-ordering-platform-client/7012ff5/src/features/cart/api/useDeleteAddress.ts
imminh123/oversea-ordering-platform-client 7012ff5 src/features/cart/api/useDeleteAddress.ts
true
200
797
import { apiWrapper } from 'app/api/axiosClient'; import { MutationConfig } from 'app/api/react-query'; import useAlert from 'app/hooks/useAlert'; import { useMutation, useQueryClient } from 'react-query'; export const deleteAddress = async (id: string) => { return apiWrapper._delete(`/address/${id}`, {}); }; type ...
1
lihaixing/derlegeder
9fe3f1b
src/type/index.ts
TypeScript
www.github.com/lihaixing/derlegeder/tree/main/src/type/index.ts
https://raw.githubusercontent.com/lihaixing/derlegeder/9fe3f1b/src/type/index.ts
lihaixing/derlegeder 9fe3f1b src/type/index.ts
true
200
518
export interface IConfig { panelWidth: number; panelHeight: number; cubeTypeCount: number; cubeCount: number; slotCount: number; cubeWidth: number;// 宽高一样 destroyCount?: number; } export interface ICubeInfo { coordinate: [number, number]; cubeTypeKey: number; zIndex: number; id: string; covered...
2
Santiscano/CoderHouse-Backend
4c5f108
Backend-30930/47-Deno/15-servest/app.ts
TypeScript
www.github.com/Santiscano/CoderHouse-Backend/tree/main/Backend-30930/47-Deno/15-servest/app.ts
https://raw.githubusercontent.com/Santiscano/CoderHouse-Backend/4c5f108/Backend-30930/47-Deno/15-servest/app.ts
Santiscano/CoderHouse-Backend 4c5f108 Backend-30930/47-Deno/15-servest/app.ts
true
200
582
//https://servestjs.org/ import { createApp } from "https://deno.land/x/servest@v1.3.1/mod.ts"; const app = createApp(); app.get("/", async (req) => { await req.respond({ status: 200, headers: new Headers({ "content-type": "text/plain", }), body: "hello deno!", }); }); app.post("/post", a...
4
Jatin-cheti/movie-ratings-app
5f79c8a
movie-rating/src/app/components/admin/admin-panel/admin-panel.component.ts
TypeScript
www.github.com/Jatin-cheti/movie-ratings-app/tree/main/movie-rating/src/app/components/admin/admin-panel/admin-panel.component.ts
https://raw.githubusercontent.com/Jatin-cheti/movie-ratings-app/5f79c8a/movie-rating/src/app/components/admin/admin-panel/admin-panel.component.ts
Jatin-cheti/movie-ratings-app 5f79c8a movie-rating/src/app/components/admin/admin-panel/admin-panel.component.ts
true
200
4,281
import { Component, OnInit } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { MovieService } from '../../../services/movie.service'; import { ReviewService } from '../../../services/review.service'; import { ToastrModule, ToastrService } from ...
6
Yadira-Ferrer/RxJS-Curso
7919cad
src/ejercicios-terminados/03-randoms.ts
TypeScript
www.github.com/Yadira-Ferrer/RxJS-Curso/tree/main/src/ejercicios-terminados/03-randoms.ts
https://raw.githubusercontent.com/Yadira-Ferrer/RxJS-Curso/7919cad/src/ejercicios-terminados/03-randoms.ts
Yadira-Ferrer/RxJS-Curso 7919cad src/ejercicios-terminados/03-randoms.ts
true
200
742
import { interval, Subject } from 'rxjs'; import { take, map } from 'rxjs/operators'; /** * Ejercicio: Realizar que los dos observables finales, * emitan exactamente el mismo valor * * Tip: Hot Observable? subjects? */ (() => { // == NO TOCAR este bloque ==================== const reloj$ = interval(1000).pipe...
0
crojasrojas/backend-red-social
8a160c3
src/shared/services/db/auth.service.ts
TypeScript
www.github.com/crojasrojas/backend-red-social/tree/main/src/shared/services/db/auth.service.ts
https://raw.githubusercontent.com/crojasrojas/backend-red-social/8a160c3/src/shared/services/db/auth.service.ts
crojasrojas/backend-red-social 8a160c3 src/shared/services/db/auth.service.ts
true
200
674
import { AuthModel } from "@auth/models/auth.schema"; import { IAuthDocument } from "@auth/interfaces/authDocument.interface"; class AuthService { public async createAuthUser(data: IAuthDocument): Promise<void> { await AuthModel.create(data); } public async getUserByUserNameOrEmail(u...
7
nghia3110/nestjs-final
76d42ff
src/modules/admin/admin.controller.ts
TypeScript
www.github.com/nghia3110/nestjs-final/tree/main/src/modules/admin/admin.controller.ts
https://raw.githubusercontent.com/nghia3110/nestjs-final/76d42ff/src/modules/admin/admin.controller.ts
nghia3110/nestjs-final 76d42ff src/modules/admin/admin.controller.ts
true
200
4,346
import { Body, Controller, Delete, Get, HttpCode, Post, Put, Query, UseGuards } from "@nestjs/common"; import { ApiBearerAuth, ApiBody, ApiOperation, ApiTags } from "@nestjs/swagger"; import { GetListDto } from "src/database"; import { AdminGuard, UuidParam } from "sr...
3
Torpass/hackaton
4246416
src/validators/medication_disposal.validator.ts
TypeScript
www.github.com/Torpass/hackaton/tree/main/src/validators/medication_disposal.validator.ts
https://raw.githubusercontent.com/Torpass/hackaton/4246416/src/validators/medication_disposal.validator.ts
Torpass/hackaton 4246416 src/validators/medication_disposal.validator.ts
true
200
1,361
import { body } from "express-validator"; export class MedicationDisposalValidator { public createValidate = [ body('medication_id') .isInt({ min: 1 }).withMessage('El ID del medicamento debe ser un número entero positivo.') .notEmpty().withMessage('El ID del medicamento no puede es...
1
OlehKozii/Blog-Test
ab4a38a
src/common/validation/envValidation.ts
TypeScript
www.github.com/OlehKozii/Blog-Test/tree/main/src/common/validation/envValidation.ts
https://raw.githubusercontent.com/OlehKozii/Blog-Test/ab4a38a/src/common/validation/envValidation.ts
OlehKozii/Blog-Test ab4a38a src/common/validation/envValidation.ts
true
200
921
import * as Joi from 'joi'; const joi = Joi.object({ NODE_ENV: Joi.string() .valid('development', 'production') .required() .messages({ 'any.required': `\n❌NODE_ENV should be defined❌\n`, 'any.valid': `\n❌NODE_ENV should be defined❌\n`, 'string.empty': `\n❌NODE_ENV is missing❌\n`, }...
4
Jkeez2/multifit-front
f7c10fe
src/app/shared/shared.module.ts
TypeScript
www.github.com/Jkeez2/multifit-front/tree/main/src/app/shared/shared.module.ts
https://raw.githubusercontent.com/Jkeez2/multifit-front/f7c10fe/src/app/shared/shared.module.ts
Jkeez2/multifit-front f7c10fe src/app/shared/shared.module.ts
true
200
604
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MultifitSpinnerComponent } from './components/multifit-spinner/multifit-spinner.component'; import {MatProgressSpinnerModule} from "@angular/material/progress-spinner"; import { ArrayToStringPipe } from './pipes/array-to-...
5
shrishti0308/univoc_frontend
b42a48d
src/data/headerConstant.ts
TypeScript
www.github.com/shrishti0308/univoc_frontend/tree/main/src/data/headerConstant.ts
https://raw.githubusercontent.com/shrishti0308/univoc_frontend/b42a48d/src/data/headerConstant.ts
shrishti0308/univoc_frontend b42a48d src/data/headerConstant.ts
true
200
502
export const headerData = { navbar: [ { title: "Explore", items: [ { title: "Courses", link: "/courses" }, { title: "Programs", link: "/programs" }, { title: "Categories", link: "/categories" }, ], }, { title: "Resources", items...
6
levante-framework/core-tasks
a715d94
task-launcher/src/tasks/same-different-selection/trials/afcMatch.ts
TypeScript
www.github.com/levante-framework/core-tasks/tree/main/task-launcher/src/tasks/same-different-selection/trials/afcMatch.ts
https://raw.githubusercontent.com/levante-framework/core-tasks/a715d94/task-launcher/src/tasks/same-different-selection/trials/afcMatch.ts
levante-framework/core-tasks a715d94 task-launcher/src/tasks/same-different-selection/trials/afcMatch.ts
true
200
10,001
import jsPsychAudioMultiResponse from '@jspsych-contrib/plugin-audio-multi-response'; import { mediaAssets } from '../../..'; import { jsPsych } from '../../taskSetup'; import { prepareChoices, replayButtonSvg, setupReplayAudio, PageStateHandler, PageAudioHandler, camelize, } from '../../shared/helpers'; im...
0
thomson0313/stablecoin-borrowing-app
4c544e8
src/features/markets/logic/transformers.ts
TypeScript
www.github.com/thomson0313/stablecoin-borrowing-app/tree/main/src/features/markets/logic/transformers.ts
https://raw.githubusercontent.com/thomson0313/stablecoin-borrowing-app/4c544e8/src/features/markets/logic/transformers.ts
thomson0313/stablecoin-borrowing-app 4c544e8 src/features/markets/logic/transformers.ts
true
200
3,069
import { getChainConfigEntry } from '@/config/chain' import { getAirdropsData } from '@/config/chain/utils/airdrops' import { paths } from '@/config/paths' import { sortByUsdValue } from '@/domain/common/sorters' import { MarketInfo, Reserve } from '@/domain/market-info/marketInfo' import { RowClickOptions } from '@/ui...
7
Thanaphat-Sr/Backend-Project
652eabd
src/index.ts
TypeScript
www.github.com/Thanaphat-Sr/Backend-Project/tree/main/src/index.ts
https://raw.githubusercontent.com/Thanaphat-Sr/Backend-Project/652eabd/src/index.ts
Thanaphat-Sr/Backend-Project 652eabd src/index.ts
true
200
966
import express from 'express'; import adminRoutes from './routes/adminRoutes'; import authRoutes from './routes/authRoutes'; import commentRoutes from './routes/commentRoutes'; import appointmentRoutes from './routes/appointmentRoutes'; import announcementRoutes from './routes/announcementRoutes'; import register...
3
adamkiss/aoc
d48444e
php/2024/17.ts
TypeScript
www.github.com/adamkiss/aoc/tree/main/php/2024/17.ts
https://raw.githubusercontent.com/adamkiss/aoc/d48444e/php/2024/17.ts
adamkiss/aoc d48444e php/2024/17.ts
true
200
2,870
const ins = [2, 4, 1, 7, 7, 5, 1, 7, 4, 6, 0, 3, 5, 5, 3, 0]; // const ins = [0, 3, 5, 4, 3, 0]; const insLength = ins.length; function doit(initialA: number = -1, compare: boolean = false) { const output = []; const ops = [ // ADV (operand: number) => { const combo = combos[operand](); //console.log('A m...
2
benard-g/a-project
c416155
packages/api-gateway/src/utils/Logger.test.ts
TypeScript
www.github.com/benard-g/a-project/tree/main/packages/api-gateway/src/utils/Logger.test.ts
https://raw.githubusercontent.com/benard-g/a-project/c416155/packages/api-gateway/src/utils/Logger.test.ts
benard-g/a-project c416155 packages/api-gateway/src/utils/Logger.test.ts
true
200
2,382
import Pino from 'pino'; import { mocked } from 'ts-jest/utils'; import { Logger } from './Logger'; jest.mock('pino'); const pinoMock = mocked(Pino, true); describe('utils/Logger', () => { const pinoDebugMock = jest.fn(); const pinoInfoMock = jest.fn(); const pinoWarnMock = jest.fn(); const pinoErrorMock = j...
1
IrishBruse/CSharp-Utilities
a7eb736
src/utility.ts
TypeScript
www.github.com/IrishBruse/CSharp-Utilities/tree/main/src/utility.ts
https://raw.githubusercontent.com/IrishBruse/CSharp-Utilities/a7eb736/src/utility.ts
IrishBruse/CSharp-Utilities a7eb736 src/utility.ts
true
200
846
import * as vscode from "vscode"; export async function getSolutionFile(): Promise<string | undefined> { const slnFiles = await vscode.workspace.findFiles("{**/*.sln}", "**/.git/**}", 100); if (slnFiles.length === 0) { return; } let sln = slnFiles[0].fsPath; if (slnFiles.length > 1) ...
4
fangzhioo/fz-design
dacd029
packages/fz-design/hooks/use-escape-keydown.ts
TypeScript
www.github.com/fangzhioo/fz-design/tree/main/packages/fz-design/hooks/use-escape-keydown.ts
https://raw.githubusercontent.com/fangzhioo/fz-design/dacd029/packages/fz-design/hooks/use-escape-keydown.ts
fangzhioo/fz-design dacd029 packages/fz-design/hooks/use-escape-keydown.ts
true
200
516
import { onMounted, onBeforeUnmount } from 'vue'; import { EVENT_CODE } from '../constants'; export const useEscapeKeydown = (handler?: (e: KeyboardEvent) => void) => { const cachedHandler = (e: Event) => { const event = e as KeyboardEvent; if (event.key === EVENT_CODE.esc) { handler?.(event); } ...
6
iffypixy/monoempire
98c03bf
apps/server/src/main.ts
TypeScript
www.github.com/iffypixy/monoempire/tree/main/apps/server/src/main.ts
https://raw.githubusercontent.com/iffypixy/monoempire/98c03bf/apps/server/src/main.ts
iffypixy/monoempire 98c03bf apps/server/src/main.ts
true
200
560
import {NestFactory} from "@nestjs/core"; import {session} from "@lib/session"; import {redis} from "@lib/redis"; import {WsAdapter} from "@lib/ws"; import {AppModule} from "./app.module"; async function bootstrap() { const app = await NestFactory.create(AppModule, { cors: { credentials: true...
5
CirroBio/Cirro-client-ts
5b61ed1
packages/api-client/src/models/GovernanceExpiry.ts
TypeScript
www.github.com/CirroBio/Cirro-client-ts/tree/main/packages/api-client/src/models/GovernanceExpiry.ts
https://raw.githubusercontent.com/CirroBio/Cirro-client-ts/5b61ed1/packages/api-client/src/models/GovernanceExpiry.ts
CirroBio/Cirro-client-ts 5b61ed1 packages/api-client/src/models/GovernanceExpiry.ts
true
200
2,358
/* tslint:disable */ /* eslint-disable */ /** * Cirro Data * Cirro Data Platform service API * * The version of the OpenAPI document: latest * Contact: support@cirro.bio * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit ...
7
michael-abbaspour/advanced-notes-platform
252a4ca
src/public/js/createNote.ts
TypeScript
www.github.com/michael-abbaspour/advanced-notes-platform/tree/main/src/public/js/createNote.ts
https://raw.githubusercontent.com/michael-abbaspour/advanced-notes-platform/252a4ca/src/public/js/createNote.ts
michael-abbaspour/advanced-notes-platform 252a4ca src/public/js/createNote.ts
true
200
1,798
/** * Scripts used for the Add/Create Note form. */ import {isRequired, maxCharLength, showError, showSuccess} from "./utilities/validation.js"; const createNoteForm = document.querySelector("#create-note-form"); const noteTitleInput: HTMLInputElement | null = document.querySelector("#note_title"); const tagSelect ...
3
Interpret-APP/tcc_cco
d83f415
back-end/src/interpretesAuth/interpretesAuth.controller.ts
TypeScript
www.github.com/Interpret-APP/tcc_cco/tree/main/back-end/src/interpretesAuth/interpretesAuth.controller.ts
https://raw.githubusercontent.com/Interpret-APP/tcc_cco/d83f415/back-end/src/interpretesAuth/interpretesAuth.controller.ts
Interpret-APP/tcc_cco d83f415 back-end/src/interpretesAuth/interpretesAuth.controller.ts
true
200
726
import { Controller, Get, Request, Post, UseGuards } from '@nestjs/common'; import { InterpretesAuthService } from './interpretesAuth.service'; import { InterpretesAuthGuard } from './interpretesAuth.guard'; import { InterpretesJwtAuthGuard } from './interpretesAuth-jwt-auth.guard'; @Controller('auth/interpretes') exp...
0
willamemouzinho/fastify-auth-v3
088a9f1
src/use-cases/delete-task/delete-task-controller.ts
TypeScript
www.github.com/willamemouzinho/fastify-auth-v3/tree/main/src/use-cases/delete-task/delete-task-controller.ts
https://raw.githubusercontent.com/willamemouzinho/fastify-auth-v3/088a9f1/src/use-cases/delete-task/delete-task-controller.ts
willamemouzinho/fastify-auth-v3 088a9f1 src/use-cases/delete-task/delete-task-controller.ts
true
200
573
import { FastifyReply, FastifyRequest } from 'fastify' import { DeleteTaskUseCase } from './delete-task-use-case' export class DeleteTaskController { async handle(req: FastifyRequest, reply: FastifyReply) { // const user = req.user as { // id: string // name: string // username: string // ...
2
bestkoby/AngularCRM
39d11ed
src/app/product/product-routing.module.ts
TypeScript
www.github.com/bestkoby/AngularCRM/tree/main/src/app/product/product-routing.module.ts
https://raw.githubusercontent.com/bestkoby/AngularCRM/39d11ed/src/app/product/product-routing.module.ts
bestkoby/AngularCRM 39d11ed src/app/product/product-routing.module.ts
true
200
654
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ProductCreateComponent } from './product-create/product-create.component'; import { ProductEditComponent } from './product-edit/product-edit.component'; import { ProductlistComponent } from './productlist/produc...
5
damaloonazhret/eCommerce-Application
ac83926
src/helpers/createNavLink.ts
TypeScript
www.github.com/damaloonazhret/eCommerce-Application/tree/main/src/helpers/createNavLink.ts
https://raw.githubusercontent.com/damaloonazhret/eCommerce-Application/ac83926/src/helpers/createNavLink.ts
damaloonazhret/eCommerce-Application ac83926 src/helpers/createNavLink.ts
true
200
364
export default function createNavLink( href: string, className: string, text: string, dataRoute = true ): HTMLAnchorElement { const link = document.createElement('a'); link.className = className; link.href = href; link.textContent = text; if (dataRoute) { link.setAttribute('...
4
dat15061999/basic_react
459bba4
src/store/index.ts
TypeScript
www.github.com/dat15061999/basic_react/tree/main/src/store/index.ts
https://raw.githubusercontent.com/dat15061999/basic_react/459bba4/src/store/index.ts
dat15061999/basic_react 459bba4 src/store/index.ts
true
200
316
import userSlice from "./userSlice"; import { configureStore } from "@reduxjs/toolkit"; export const store = configureStore({ reducer: { auth: userSlice, }, }); export type RootState = ReturnType<typeof store.getState>; export type AppDispatch = typeof store.dispatch; export type AppStore = typeof store;
6
T800-M101/fitness-tracker
64b7b62
src/app/training/training.reducer.ts
TypeScript
www.github.com/T800-M101/fitness-tracker/tree/main/src/app/training/training.reducer.ts
https://raw.githubusercontent.com/T800-M101/fitness-tracker/64b7b62/src/app/training/training.reducer.ts
T800-M101/fitness-tracker 64b7b62 src/app/training/training.reducer.ts
true
200
1,997
import { Exercise } from './exercise.model'; import { TrainingActions, SET_AVAILABLE_EXERCISES, SET_FINISHED_EXERCISES, START_EXERCISE, STOP_EXERCISE } from './training.actions'; import * as fromRoot from '../app.reducer'; import { createFeatureSelector, createSelector } from '@ngrx/store'; export interface TrainingS...
7
akhil683/Tribal-ArtWork
6fe8736
app/actions.ts
TypeScript
www.github.com/akhil683/Tribal-ArtWork/tree/main/app/actions.ts
https://raw.githubusercontent.com/akhil683/Tribal-ArtWork/6fe8736/app/actions.ts
akhil683/Tribal-ArtWork 6fe8736 app/actions.ts
true
200
901
'use server' import { z } from 'zod' const FormSchema = z.object({ firstName: z.string().min(1, 'First name is required'), lastName: z.string().min(1, 'Last name is required'), email: z.string().email('Invalid email address'), phone: z.string().min(1, 'Phone number is required'), message: z.string().min(1, ...
3
felippebutland/erp-monorepo
25e83f2
erp-frontend/src/app/get-sales/get-sales.component.spec.ts
TypeScript
www.github.com/felippebutland/erp-monorepo/tree/main/erp-frontend/src/app/get-sales/get-sales.component.spec.ts
https://raw.githubusercontent.com/felippebutland/erp-monorepo/25e83f2/erp-frontend/src/app/get-sales/get-sales.component.spec.ts
felippebutland/erp-monorepo 25e83f2 erp-frontend/src/app/get-sales/get-sales.component.spec.ts
true
200
614
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { GetSalesComponent } from './get-sales.component'; describe('GetSalesComponent', () => { let component: GetSalesComponent; let fixture: ComponentFixture<GetSalesComponent>; beforeEach(async () => { await TestBed.configureTestingModu...
0
Akshayjosephtomy/company-app-frontend
5a864ca
src/app/mylogs/mylogs.component.ts
TypeScript
www.github.com/Akshayjosephtomy/company-app-frontend/tree/main/src/app/mylogs/mylogs.component.ts
https://raw.githubusercontent.com/Akshayjosephtomy/company-app-frontend/5a864ca/src/app/mylogs/mylogs.component.ts
Akshayjosephtomy/company-app-frontend 5a864ca src/app/mylogs/mylogs.component.ts
true
200
763
import { Component, OnInit } from '@angular/core'; import { ApiService } from '../api.service'; @Component({ selector: 'app-mylogs', templateUrl: './mylogs.component.html', styleUrls: ['./mylogs.component.css'] }) export class MylogsComponent implements OnInit { constructor(private myApi:ApiService) { th...
2
JohnCR92/fdifirebaseangular
6487500
src/app/deportistabaja/form/deportistabaja-form.component.ts
TypeScript
www.github.com/JohnCR92/fdifirebaseangular/tree/main/src/app/deportistabaja/form/deportistabaja-form.component.ts
https://raw.githubusercontent.com/JohnCR92/fdifirebaseangular/6487500/src/app/deportistabaja/form/deportistabaja-form.component.ts
JohnCR92/fdifirebaseangular 6487500 src/app/deportistabaja/form/deportistabaja-form.component.ts
true
200
5,145
import { DISABLED } from '@angular/forms/src/model'; import { AlertasService, DeportistaService } from '../service/deportistabaja.services'; import { FileUploadService } from 'app/core/service/fileupload.service'; import { Component, OnInit, ChangeDetectorRef, ViewChild, Renderer2, Input, ElementRef } from '@angular/c...
1
kjts20/tool
9a1ec23
src/utils/money.ts
TypeScript
www.github.com/kjts20/tool/tree/main/src/utils/money.ts
https://raw.githubusercontent.com/kjts20/tool/9a1ec23/src/utils/money.ts
kjts20/tool 9a1ec23 src/utils/money.ts
true
200
1,287
import { isNum } from './type'; /** * 将金额转换为带逗号格式 * @param num 金额 * @param decimal 小数点位数 */ export const moneyFormt = function (num, decimal = 2) { let numbers = ''; numbers = typeof num === 'number' ? num.toFixed(decimal) : Number(num).toFixed(decimal); numbers = numbers.indexOf('.') < 0 ? numbers + ...
4
kikachukwu137/scissor
e1d0ec4
src/auth/jwt.strategy.ts
TypeScript
www.github.com/kikachukwu137/scissor/tree/main/src/auth/jwt.strategy.ts
https://raw.githubusercontent.com/kikachukwu137/scissor/e1d0ec4/src/auth/jwt.strategy.ts
kikachukwu137/scissor e1d0ec4 src/auth/jwt.strategy.ts
true
200
920
import { Injectable, UnauthorizedException } from "@nestjs/common"; import { PassportStrategy } from "@nestjs/passport"; import { Strategy, ExtractJwt } from "passport-jwt"; import { InjectModel } from "@nestjs/mongoose"; import { Model } from "mongoose"; import { User, UserDocument } from "src/schemas/user.schema...
6
yaduveesh07/Training-Projects
4219474
training-project/src/app/housing.service.ts
TypeScript
www.github.com/yaduveesh07/Training-Projects/tree/main/training-project/src/app/housing.service.ts
https://raw.githubusercontent.com/yaduveesh07/Training-Projects/4219474/training-project/src/app/housing.service.ts
yaduveesh07/Training-Projects 4219474 training-project/src/app/housing.service.ts
true
200
528
import { Injectable } from '@angular/core'; import { HousingLocationModel } from './housing-location.model'; import { housingLocationList } from './housing-location.mock'; @Injectable({ providedIn: 'root', }) export class HousingService { constructor() {} getAllHousingLocations(): HousingLocationModel[] { r...
5
mateusdeitos/fullcycle-keycloak
8ebd0ec
implicit-flow/src/utils.ts
TypeScript
www.github.com/mateusdeitos/fullcycle-keycloak/tree/main/implicit-flow/src/utils.ts
https://raw.githubusercontent.com/mateusdeitos/fullcycle-keycloak/8ebd0ec/implicit-flow/src/utils.ts
mateusdeitos/fullcycle-keycloak 8ebd0ec implicit-flow/src/utils.ts
true
200
2,181
import { decodeJwt } from "jose"; import Cookies from "js-cookie"; export function loginURL() { const nonce = Math.random().toString(36); const state = Math.random().toString(36); Cookies.set("nonce", nonce); Cookies.set("state", state); const params = new URLSearchParams({ client_id: "fullcycle-client...
7
Seiyial/PACK
5892d22
daybreak-ts/ajax/ajax.ts
TypeScript
www.github.com/Seiyial/PACK/tree/main/daybreak-ts/ajax/ajax.ts
https://raw.githubusercontent.com/Seiyial/PACK/5892d22/daybreak-ts/ajax/ajax.ts
Seiyial/PACK 5892d22 daybreak-ts/ajax/ajax.ts
true
200
4,207
import axios, { AxiosResponse } from 'axios' import { DkResult, DkSuccessResult, DkFailureResult } from '../core/DkResult' const kBaseURL = import.meta.env.API_BASE_URL // if not using vite (or if there are diff. setups), modify accordingly type HTTPMethod = 'POST' | 'GET' | 'DELETE' type FExecuteQuery = { method: ...
3
DarshanKundu/portfolio-website
b102a66
src/app/app.module.ts
TypeScript
www.github.com/DarshanKundu/portfolio-website/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/DarshanKundu/portfolio-website/b102a66/src/app/app.module.ts
DarshanKundu/portfolio-website b102a66 src/app/app.module.ts
true
200
1,489
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatToolbarModule } from ...
0
nutint/dora
aa1d63c
src/conventional-commit/__tests__/conventional-commit-reader.test.ts
TypeScript
www.github.com/nutint/dora/tree/main/src/conventional-commit/__tests__/conventional-commit-reader.test.ts
https://raw.githubusercontent.com/nutint/dora/aa1d63c/src/conventional-commit/__tests__/conventional-commit-reader.test.ts
nutint/dora aa1d63c src/conventional-commit/__tests__/conventional-commit-reader.test.ts
true
200
5,906
import { describe, it, expect } from "vitest" import { readCommitMessage } from "../conventional-commit-reader" import { ConventionalCommitTypes } from "../types" describe("ConventionalCommitReader", () => { describe("readCommitMessage", () => { it("should return isConventionalCommit false when commit is not con...
2
HappyCodingWizard/TypeScript
fd89ddb
search/jump_search.ts
TypeScript
www.github.com/HappyCodingWizard/TypeScript/tree/main/search/jump_search.ts
https://raw.githubusercontent.com/HappyCodingWizard/TypeScript/fd89ddb/search/jump_search.ts
HappyCodingWizard/TypeScript fd89ddb search/jump_search.ts
true
200
1,640
/** * @function jumpSearch * @description Jump search algorithm for a sorted array. * * Jump search is a searching algorithm for sorted arrays that checks elements * by jumping ahead by fixed steps. The optimal step size is the square root of the array length. * * The algorithm works as follows: * 1.Start from ...
1
JexLau/livetranslate
1591ef3
src/pages/content/handler/Source/AudioSource/AudioInputStream.ts
TypeScript
www.github.com/JexLau/livetranslate/tree/main/src/pages/content/handler/Source/AudioSource/AudioInputStream.ts
https://raw.githubusercontent.com/JexLau/livetranslate/1591ef3/src/pages/content/handler/Source/AudioSource/AudioInputStream.ts
JexLau/livetranslate 1591ef3 src/pages/content/handler/Source/AudioSource/AudioInputStream.ts
true
200
9,429
import { createNoDashGuid, EventSource, Events } from "../../Util"; import { AudioStreamFormat, AudioStreamFormatImpl } from "./AudioStreamFormatImpl"; import { ChunkedArrayBufferStream } from "../ChunkedArrayBufferStream"; import { AudioSourceInitializingEvent, AudioSourceReadyEvent, AudioSourceEvent } from "./AudioSo...
4
EmonCodingFrontEnd/frontend-preframe-learning
054ff8d
04_TypeScript/04_TS_Object_Oriented/src/06_接口.ts
TypeScript
www.github.com/EmonCodingFrontEnd/frontend-preframe-learning/tree/main/04_TypeScript/04_TS_Object_Oriented/src/06_接口.ts
https://raw.githubusercontent.com/EmonCodingFrontEnd/frontend-preframe-learning/054ff8d/04_TypeScript/04_TS_Object_Oriented/src/06_%E6%8E%A5%E5%8F%A3.ts
EmonCodingFrontEnd/frontend-preframe-learning 054ff8d 04_TypeScript/04_TS_Object_Oriented/src/06_接口.ts
true
200
1,333
(function () { // 描述一个对象的类型 type myType = { name: string; age: number; [propName: string]: any; }; const obj1: myType = { name: "sss", age: 111, }; /** * 接口用来定义一个类结构,用来定义一个类中应该包含安歇属性和方法。 * 同时接口也可以当成类型声明去使用。 */ interface myInterface { ...
6
jatinderji/crud-app-angular14
9a4a860
src/app/app.module.ts
TypeScript
www.github.com/jatinderji/crud-app-angular14/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/jatinderji/crud-app-angular14/9a4a860/src/app/app.module.ts
jatinderji/crud-app-angular14 9a4a860 src/app/app.module.ts
true
200
1,742
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; // https://www.npmjs.com/package/bootstrap // https://www.npmjs.com/package/font-awesome // https://www.npmjs....
7
HaoYuToDo/yg-ui-plus
a6424b7
src/typings/global.d.ts
TypeScript
www.github.com/HaoYuToDo/yg-ui-plus/tree/main/src/typings/global.d.ts
https://raw.githubusercontent.com/HaoYuToDo/yg-ui-plus/a6424b7/src/typings/global.d.ts
HaoYuToDo/yg-ui-plus a6424b7 src/typings/global.d.ts
true
200
442
// ts识别.md文件 declare module "*.md" { import type { ComponentOptions } from "vue"; const Component: ComponentOptions; export default Component; } // 声明第三方库 declare module "yg-ui-plus"; // 定义菜单 declare namespace Menu { interface MenuOptions { path: string; name: string; component: object; redire...
5
CyberMonk1996/Sweeft-Digital-Internship-project
f3bfe87
Task_01/src/app/app.component.ts
TypeScript
www.github.com/CyberMonk1996/Sweeft-Digital-Internship-project/tree/main/Task_01/src/app/app.component.ts
https://raw.githubusercontent.com/CyberMonk1996/Sweeft-Digital-Internship-project/f3bfe87/Task_01/src/app/app.component.ts
CyberMonk1996/Sweeft-Digital-Internship-project f3bfe87 Task_01/src/app/app.component.ts
true
200
443
import { Component, OnInit } from '@angular/core'; import { MoviesService } from './services/movies-service.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], }) export class AppComponent implements OnInit { constructor(private movServ: Movies...
3
timaxin/minesweeper
9b24814
src/utils/index.ts
TypeScript
www.github.com/timaxin/minesweeper/tree/main/src/utils/index.ts
https://raw.githubusercontent.com/timaxin/minesweeper/9b24814/src/utils/index.ts
timaxin/minesweeper 9b24814 src/utils/index.ts
true
200
2,966
import { Cell, Field } from '../types'; export const findCell = (x: number, y: number, field: Field): Cell | null => { if (x < 0 || x >= field[0].length) return null; if (y < 0 || y >= field.length) return null; return field[y][x]; }; // The coordinate offsets of all cells around the cell [y, x]. export const ...
0
charlesdev96/trendmart
0da317d
src/controller/userActivityController.ts
TypeScript
www.github.com/charlesdev96/trendmart/tree/main/src/controller/userActivityController.ts
https://raw.githubusercontent.com/charlesdev96/trendmart/0da317d/src/controller/userActivityController.ts
charlesdev96/trendmart 0da317d src/controller/userActivityController.ts
true
200
12,584
import { Response } from "express"; import { StatusCodes } from "http-status-codes"; import { CustomRequest, findUserById, findPostById, getAllFollwers, getAllFollowings, sendFollowNotification, existingNotification, followersPost, } from "../services"; import { followerUserInputs, likePostInputs, removeFoll...
2
TimWallaceDev/melody-party
6af68cb
backend/src/functions/getRandomTracks.ts
TypeScript
www.github.com/TimWallaceDev/melody-party/tree/main/backend/src/functions/getRandomTracks.ts
https://raw.githubusercontent.com/TimWallaceDev/melody-party/6af68cb/backend/src/functions/getRandomTracks.ts
TimWallaceDev/melody-party 6af68cb backend/src/functions/getRandomTracks.ts
true
200
631
import shuffle from "shuffle-array" export function getRandomTracks(numberOfTracks: number, correctIndex: number): number[] | "not enough tracks"{ //check that there are enough tracks if (numberOfTracks < 4){ return "not enough tracks" } const randomIndices: number[] = [correctIndex] let r...
1
cjy513203427/IADBE_Frontend
e258b01
src/app/pages/charts/echarts/echarts-pie.component.ts
TypeScript
www.github.com/cjy513203427/IADBE_Frontend/tree/main/src/app/pages/charts/echarts/echarts-pie.component.ts
https://raw.githubusercontent.com/cjy513203427/IADBE_Frontend/e258b01/src/app/pages/charts/echarts/echarts-pie.component.ts
cjy513203427/IADBE_Frontend e258b01 src/app/pages/charts/echarts/echarts-pie.component.ts
true
200
2,354
import { AfterViewInit, Component, OnDestroy } from '@angular/core'; import { NbThemeService } from '@nebular/theme'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'ngx-echarts-pie', template: ` <div echarts [options]="options" class="echart"></div> `, }) export class EchartsPieCo...
4
hee-ju-kim/nest
f54a02c
backend/src/modules/user/user.module.ts
TypeScript
www.github.com/hee-ju-kim/nest/tree/main/backend/src/modules/user/user.module.ts
https://raw.githubusercontent.com/hee-ju-kim/nest/f54a02c/backend/src/modules/user/user.module.ts
hee-ju-kim/nest f54a02c backend/src/modules/user/user.module.ts
true
200
546
import { Module } from '@nestjs/common'; import { UserService } from './user.service'; import { UserController } from './user.controller'; import { WinstonLoggerService } from '../../config/winston/winston.service'; import { AuthService } from '../auth/auth.service'; @Module({ controllers: [UserController], provid...
6
heyjohnis/tjc-portal-server
af5f21d
src/middleware/auth.ts
TypeScript
www.github.com/heyjohnis/tjc-portal-server/tree/main/src/middleware/auth.ts
https://raw.githubusercontent.com/heyjohnis/tjc-portal-server/af5f21d/src/middleware/auth.ts
heyjohnis/tjc-portal-server af5f21d src/middleware/auth.ts
true
200
676
import { Request, Response, NextFunction } from "express"; import jwt from "jsonwebtoken"; import { config } from "../config.js"; const AUTH_ERROR = { message: "Authentication Error" }; export const isAuth = async ( req: Request, res: Response, next: NextFunction ) => { const authHeader = req.get("Authorizati...
5
Siebe-Studio/projectD-v2
85ce286
backend/src/main.ts
TypeScript
www.github.com/Siebe-Studio/projectD-v2/tree/main/backend/src/main.ts
https://raw.githubusercontent.com/Siebe-Studio/projectD-v2/85ce286/backend/src/main.ts
Siebe-Studio/projectD-v2 85ce286 backend/src/main.ts
true
200
795
import { NestFactory } from '@nestjs/core'; import { ValidationPipe } from '@nestjs/common'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); // ValidationPipe is a built-in pip...
7
nhan228/Ecommerce-Fullstack_NestJS
f944d57
server/src/modules/user/dto/create-user.dto.ts
TypeScript
www.github.com/nhan228/Ecommerce-Fullstack_NestJS/tree/main/server/src/modules/user/dto/create-user.dto.ts
https://raw.githubusercontent.com/nhan228/Ecommerce-Fullstack_NestJS/f944d57/server/src/modules/user/dto/create-user.dto.ts
nhan228/Ecommerce-Fullstack_NestJS f944d57 server/src/modules/user/dto/create-user.dto.ts
true
200
1,128
import { IsEmail, IsNotEmpty, IsString, Matches, MaxLength, MinLength, Validate } from "class-validator"; export class CreateUserDTO { @IsNotEmpty({ message: "FirstName is required" }) @IsString() firstName: string; @IsNotEmpty({ message: "LastName is required" }) @IsString() lastName...
3
EmmaWedi/Taxi-App-Backend
cd82b16
src/app/module/uploader/file.uploader.ts
TypeScript
www.github.com/EmmaWedi/Taxi-App-Backend/tree/main/src/app/module/uploader/file.uploader.ts
https://raw.githubusercontent.com/EmmaWedi/Taxi-App-Backend/cd82b16/src/app/module/uploader/file.uploader.ts
EmmaWedi/Taxi-App-Backend cd82b16 src/app/module/uploader/file.uploader.ts
true
200
859
import * as fs from "fs"; import * as path from "path"; interface fileProps { image: string, id: string } const uploader = ({ image, id }: fileProps) => new Promise((resolve, reject) => { const _path = path.resolve(`images/${id}.jpg`); var base64Data = image.split(',')[1]; fs.writeFile(_path, bas...
0
anilpujaraofficial/cypress-sample
deb375e
cypress/pages/login/login.ts
TypeScript
www.github.com/anilpujaraofficial/cypress-sample/tree/main/cypress/pages/login/login.ts
https://raw.githubusercontent.com/anilpujaraofficial/cypress-sample/deb375e/cypress/pages/login/login.ts
anilpujaraofficial/cypress-sample deb375e cypress/pages/login/login.ts
true
200
451
class LoginPage { form() { return { username: "#username", password: "#password", }; } button() { return { submit: "button[type='submit']", }; } alert() { return { login_success: "Login Successfully !", }; } form_validation() { return...
1
Ismael1930/condominiumfront
dd9172a
src/api/index.ts
TypeScript
www.github.com/Ismael1930/condominiumfront/tree/main/src/api/index.ts
https://raw.githubusercontent.com/Ismael1930/condominiumfront/dd9172a/src/api/index.ts
Ismael1930/condominiumfront dd9172a src/api/index.ts
true
200
411
import axios from 'axios' import { getToken } from './sessionUtils'; const api = axios.create({ baseURL: process.env.NEXT_PUBLIC_BACKEND_URL, headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, }); api.interceptors.request.use(async (config) => { const token = await getToken(...
2
sevakraynov/kata
74c3b44
kata-ts/src/tasks/first-and-last-el-in-sorted-array/first-and-last-el-in-sorted-array.test.ts
TypeScript
www.github.com/sevakraynov/kata/tree/main/kata-ts/src/tasks/first-and-last-el-in-sorted-array/first-and-last-el-in-sorted-array.test.ts
https://raw.githubusercontent.com/sevakraynov/kata/74c3b44/kata-ts/src/tasks/first-and-last-el-in-sorted-array/first-and-last-el-in-sorted-array.test.ts
sevakraynov/kata 74c3b44 kata-ts/src/tasks/first-and-last-el-in-sorted-array/first-and-last-el-in-sorted-array.test.ts
true
200
520
import { searchRange } from "./first-and-last-el-in-sorted-array"; describe("find first and last position of element in sorted array", () => { test.each` nums | target | expected ${[5, 7, 7, 8, 8, 10]} | ${8} | ${[3, 4]} ${[5, 7, 7, 8, 8, 10]} | ${6} | ${[-1, -1]} ${[]} ...
4
ChayaEtrog/PixHiveApp
79bcad1
control-project/src/components/user-details/user-details.component.ts
TypeScript
www.github.com/ChayaEtrog/PixHiveApp/tree/main/control-project/src/components/user-details/user-details.component.ts
https://raw.githubusercontent.com/ChayaEtrog/PixHiveApp/79bcad1/control-project/src/components/user-details/user-details.component.ts
ChayaEtrog/PixHiveApp 79bcad1 control-project/src/components/user-details/user-details.component.ts
true
200
2,560
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { UserService } from '../../services/user.service'; import { User } from '../../types/User'; import { MatCardModule } from '@angular/material/card'; import { MatButton } from '@angular/material/button'; i...
6
diaspd/daily-diet
d0f5091
src/screens/EditMeal/styles.ts
TypeScript
www.github.com/diaspd/daily-diet/tree/main/src/screens/EditMeal/styles.ts
https://raw.githubusercontent.com/diaspd/daily-diet/d0f5091/src/screens/EditMeal/styles.ts
diaspd/daily-diet d0f5091 src/screens/EditMeal/styles.ts
true
200
1,399
import { SafeAreaView } from "react-native"; import styled, { css, useTheme } from "styled-components/native"; export const Container = styled(SafeAreaView)` flex: 1; background-color: ${() => useTheme().COLORS.GRAY_300}; padding-top: 60px; `; export const HeaderContent = styled.View` align-items: center; f...
5
ita-social-projects/Space2Study-node-Client-mvp
6b7880a
src/containers/my-resources/add-resource-modal/AddResourceModal.styles.ts
TypeScript
www.github.com/ita-social-projects/Space2Study-node-Client-mvp/tree/main/src/containers/my-resources/add-resource-modal/AddResourceModal.styles.ts
https://raw.githubusercontent.com/ita-social-projects/Space2Study-node-Client-mvp/6b7880a/src/containers/my-resources/add-resource-modal/AddResourceModal.styles.ts
ita-social-projects/Space2Study-node-Client-mvp 6b7880a src/containers/my-resources/add-resource-modal/AddResourceModal.styles.ts
true
200
1,084
import palette from '~/styles/app-theme/app.pallete' import { TypographyVariantEnum, VisibilityEnum } from '~/types' const input = { width: '100%', borderColor: 'primary.200', borderRadius: '6px' } export const styles = { root: { width: '65vw', p: '20px' }, title: { mb: '32px', typography: Typograph...
7
JosuePercy/mapbox-document
142364a
src/app/maps/pages/full-screen-page/full-screen-page.component.ts
TypeScript
www.github.com/JosuePercy/mapbox-document/tree/main/src/app/maps/pages/full-screen-page/full-screen-page.component.ts
https://raw.githubusercontent.com/JosuePercy/mapbox-document/142364a/src/app/maps/pages/full-screen-page/full-screen-page.component.ts
JosuePercy/mapbox-document 142364a src/app/maps/pages/full-screen-page/full-screen-page.component.ts
true
200
729
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'; import { Map } from 'mapbox-gl'; @Component({ templateUrl: './full-screen-page.component.html', styleUrls: ['./full-screen-page.component.css'], }) export class FullScreenPageComponent implements AfterViewInit { @ViewChild('map')...
0
Momfus/angularAdv-pruebasTesting
b4d31ea
src/app/app.component.spec.ts
TypeScript
www.github.com/Momfus/angularAdv-pruebasTesting/tree/main/src/app/app.component.spec.ts
https://raw.githubusercontent.com/Momfus/angularAdv-pruebasTesting/b4d31ea/src/app/app.component.spec.ts
Momfus/angularAdv-pruebasTesting b4d31ea src/app/app.component.spec.ts
true
200
1,399
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; import { RouterTestingModule } from '@angular/router/testing'; import { By } from '@angular/platform-browser'; import { RouterOutlet } from '@angular/router'; import { NO_ERRORS_SCHEMA } from '@angular/core'; describe('App...
1
ojasteredesai/AcademyEmsWeb
ad0c166
AcademyEmsWeb/src/app/Home/AcademyEmsApp.MainModule.ts
TypeScript
www.github.com/ojasteredesai/AcademyEmsWeb/tree/main/AcademyEmsWeb/src/app/Home/AcademyEmsApp.MainModule.ts
https://raw.githubusercontent.com/ojasteredesai/AcademyEmsWeb/ad0c166/AcademyEmsWeb/src/app/Home/AcademyEmsApp.MainModule.ts
ojasteredesai/AcademyEmsWeb ad0c166 AcademyEmsWeb/src/app/Home/AcademyEmsApp.MainModule.ts
true
200
796
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { MasterPageComponent } from './AcademyEmsApp.MasterPageComponent'; import { HomeComponent } from './AcademyEmsApp.HomeComponent'; import {MainRoutes} from "../Routin...
2
BharatPratap/fletnix
e38d420
frontend/src/app/pages/register/register.component.ts
TypeScript
www.github.com/BharatPratap/fletnix/tree/main/frontend/src/app/pages/register/register.component.ts
https://raw.githubusercontent.com/BharatPratap/fletnix/e38d420/frontend/src/app/pages/register/register.component.ts
BharatPratap/fletnix e38d420 frontend/src/app/pages/register/register.component.ts
true
200
959
import { Component } from '@angular/core'; import { AuthService } from '../../_services/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-register', templateUrl: './register.component.html', styleUrl: './register.component.css' }) export class RegisterComponent { form: any = ...
4
rafaeltab/dotfiles
0acf836
tools/apps/previ/src/processing/ajv_processor.test.ts
TypeScript
www.github.com/rafaeltab/dotfiles/tree/main/tools/apps/previ/src/processing/ajv_processor.test.ts
https://raw.githubusercontent.com/rafaeltab/dotfiles/0acf836/tools/apps/previ/src/processing/ajv_processor.test.ts
rafaeltab/dotfiles 0acf836 tools/apps/previ/src/processing/ajv_processor.test.ts
true
200
4,349
import { describe, it, expect, beforeEach } from 'vitest'; import { AjvMessageProcessor } from './ajv_processor'; import { IMessageProcessor } from './message_processor'; import * as Types from '../protocols/v1/types'; describe('AjvMessageProcessor', () => { let messageProcessor: IMessageProcessor; beforeEach...
6
infinit-xyz/infinit-cli
48f7af2
src/errors/errorList.ts
TypeScript
www.github.com/infinit-xyz/infinit-cli/tree/main/src/errors/errorList.ts
https://raw.githubusercontent.com/infinit-xyz/infinit-cli/48f7af2/src/errors/errorList.ts
infinit-xyz/infinit-cli 48f7af2 src/errors/errorList.ts
true
200
646
export const ERROR_MESSAGE_RECORD = { ACCOUNT_NOT_FOUND: (id: string) => `Account with id ${id} not found`, FILE_PATH_NOT_FOUND: (path: string) => `File not found at ${path}`, PERMISSION_DENIED: 'Permission required, run the command with sudo permission', PROTOCOL_NOT_SUPPORTED: 'Protocol module not supported...
3
goodhuman-me/mantine-demo
9977985
packages/ui/src/theme/input/textinput/text-input-props.ts
TypeScript
www.github.com/goodhuman-me/mantine-demo/tree/main/packages/ui/src/theme/input/textinput/text-input-props.ts
https://raw.githubusercontent.com/goodhuman-me/mantine-demo/9977985/packages/ui/src/theme/input/textinput/text-input-props.ts
goodhuman-me/mantine-demo 9977985 packages/ui/src/theme/input/textinput/text-input-props.ts
true
200
315
import { TextInput } from "@mantine/core"; import { inputVars } from "../input-vars"; import classes from "../input.module.css"; import { defaultInputProps } from "../default-props"; export const textInputProps = TextInput.extend({ classNames: classes, defaultProps: defaultInputProps, vars: inputVars, });
0
uldisgabers/HOUSE-BLOG-APP
6e9a5ed
src/app/api/posts/[id]/route.ts
TypeScript
www.github.com/uldisgabers/HOUSE-BLOG-APP/tree/main/src/app/api/posts/[id]/route.ts
https://raw.githubusercontent.com/uldisgabers/HOUSE-BLOG-APP/6e9a5ed/src/app/api/posts/%5Bid%5D/route.ts
uldisgabers/HOUSE-BLOG-APP 6e9a5ed src/app/api/posts/[id]/route.ts
true
200
762
import { NextResponse, NextRequest } from "next/server"; import mysql from "mysql2/promise"; import { connectionToDB } from "@/db"; export async function GET(request: Request, { params }: { params: { id: number } }) { try { const connection = await mysql.createConnection(connectionToDB) let get_exp_query = ...
2
danu263/nala
01d1b8d
playground-server/stack.ts
TypeScript
www.github.com/danu263/nala/tree/main/playground-server/stack.ts
https://raw.githubusercontent.com/danu263/nala/01d1b8d/playground-server/stack.ts
danu263/nala 01d1b8d playground-server/stack.ts
true
200
1,070
import { Stack, StackProps, aws_ec2 as ec2 } from 'aws-cdk-lib'; import { Construct } from 'constructs'; export class PlaygroundServerStack extends Stack { constructor(scope: Construct, id: string, props?: StackProps) { super(scope, id, props); const vpc = new ec2.Vpc(this, 'playground-vpc', { maxAzs:...
3
matheusdalbone/curso-angular
c19b148
src/app/app.component.ts
TypeScript
www.github.com/matheusdalbone/curso-angular/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/matheusdalbone/curso-angular/c19b148/src/app/app.component.ts
matheusdalbone/curso-angular c19b148 src/app/app.component.ts
true
200
484
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { AppRoutes } from './app.routes'; @Component({ selector: 'app-root', imports: [RouterOutlet, AppRoutes], templateUrl: './app.component.html', styleUrl: './app.component.css', standalone: true }) export class Ap...
6
RizalPradanaaa/belajar-typescript-oop
3732fd2
test/visibility.test.ts
TypeScript
www.github.com/RizalPradanaaa/belajar-typescript-oop/tree/main/test/visibility.test.ts
https://raw.githubusercontent.com/RizalPradanaaa/belajar-typescript-oop/3732fd2/test/visibility.test.ts
RizalPradanaaa/belajar-typescript-oop 3732fd2 test/visibility.test.ts
true
200
636
describe("Visibility", () => { class Counter { protected counter: number = 0; public increment() { this.counter++; } public getCounter() { return this.counter; } } class DoubleCounter extends Counter { public increment(): void { this.counter + 2; } } it("should ...
2
imennasri123IMEN/SOA
de4177f
src/app/admin-details/admin-details.component.ts
TypeScript
www.github.com/imennasri123IMEN/SOA/tree/main/src/app/admin-details/admin-details.component.ts
https://raw.githubusercontent.com/imennasri123IMEN/SOA/de4177f/src/app/admin-details/admin-details.component.ts
imennasri123IMEN/SOA de4177f src/app/admin-details/admin-details.component.ts
true
200
664
import { Component } from '@angular/core'; import { admin } from '../admin'; import { ActivatedRoute } from '@angular/router'; import { AdminService } from '../admin.service'; @Component({ selector: 'app-admin-details', templateUrl: './admin-details.component.html', styleUrls: ['./admin-details.component.css'] }...
0
1varshil/News_Angular
fee9b2a
src/app/app-routing.module.ts
TypeScript
www.github.com/1varshil/News_Angular/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/1varshil/News_Angular/fee9b2a/src/app/app-routing.module.ts
1varshil/News_Angular fee9b2a src/app/app-routing.module.ts
true
200
486
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { PaymentComponent } from './payment/payment.component'; const routes: Routes = [ { path:'admin', loadChildren: () => import('./admin/admin.module') .then(mod => mod.AdminModule) }, { path:'pa...
6
douglascandido99/nestjs-clean-architecture
ed78dff
src/users/application/dtos/user-output.dto.ts
TypeScript
www.github.com/douglascandido99/nestjs-clean-architecture/tree/main/src/users/application/dtos/user-output.dto.ts
https://raw.githubusercontent.com/douglascandido99/nestjs-clean-architecture/ed78dff/src/users/application/dtos/user-output.dto.ts
douglascandido99/nestjs-clean-architecture ed78dff src/users/application/dtos/user-output.dto.ts
true
200
293
import { UserEntity } from '@/users/domain/entities/user.entity' export class UserOutput { id: string name: string email: string password: string createdAt: Date } export class UserOutputMapper { static toOutput(entity: UserEntity): UserOutput { return entity.toJSON() } }
3
trilitech/umami-v2
cea4c77
apps/desktop-e2e/src/steps/hooks.ts
TypeScript
www.github.com/trilitech/umami-v2/tree/main/apps/desktop-e2e/src/steps/hooks.ts
https://raw.githubusercontent.com/trilitech/umami-v2/cea4c77/apps/desktop-e2e/src/steps/hooks.ts
trilitech/umami-v2 cea4c77 apps/desktop-e2e/src/steps/hooks.ts
true
200
3,584
import crypto from "crypto"; import { After, AfterAll, Before, BeforeAll, setDefaultTimeout } from "@cucumber/cucumber"; import { type ChromiumBrowser, chromium } from "@playwright/test"; import { makeStore, VERSION as stateVersion } from "@umami/state"; import { secondsToMilliseconds } from "date-fns"; import { omit ...
2
VictorCMoro/testeAlphacode
57e27cd
src/app/components/home/home.service.ts
TypeScript
www.github.com/VictorCMoro/testeAlphacode/tree/main/src/app/components/home/home.service.ts
https://raw.githubusercontent.com/VictorCMoro/testeAlphacode/57e27cd/src/app/components/home/home.service.ts
VictorCMoro/testeAlphacode 57e27cd src/app/components/home/home.service.ts
true
200
723
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Contato } from 'src/models/contato'; @Injectable({ providedIn: 'root' }) export class HomeService { private apiUrl = 'http://localhost/backend' constructor(private http: Htt...
0
vinistm/Trybe
ebf11ae
src/controllers/account/createAccount.controller.ts
TypeScript
www.github.com/vinistm/Trybe/tree/main/src/controllers/account/createAccount.controller.ts
https://raw.githubusercontent.com/vinistm/Trybe/ebf11ae/src/controllers/account/createAccount.controller.ts
vinistm/Trybe ebf11ae src/controllers/account/createAccount.controller.ts
true
200
397
import { Request, Response } from "express"; import createAccountService from "../../services/account/createAccount.service"; const createAccountController = async (req: Request, res: Response) => { const { userId,balance } = req.body; const debt = await createAccountService({ userId,balance }); re...
6