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
KDT-IaaS-Class-Two-Group/pre-project-vending-machine-4-RockCoders
313b1aa
src/DB/modules/manipulation/update/UpdateData.ts
TypeScript
www.github.com/KDT-IaaS-Class-Two-Group/pre-project-vending-machine-4-RockCoders/tree/main/src/DB/modules/manipulation/update/UpdateData.ts
https://raw.githubusercontent.com/KDT-IaaS-Class-Two-Group/pre-project-vending-machine-4-RockCoders/313b1aa/src/DB/modules/manipulation/update/UpdateData.ts
KDT-IaaS-Class-Two-Group/pre-project-vending-machine-4-RockCoders 313b1aa src/DB/modules/manipulation/update/UpdateData.ts
true
200
2,083
import DBManager from "../../../DBMANAGER.js"; import instanceChecker from "../../../throw/instanceChecker.js"; import IUpdateData from "./UpdateData.interface"; abstract class AbstractUpdateData extends DBManager implements IUpdateData { constructor(fileWithPath: string) { super(fileWithPath); } public abst...
0
AlexWind96/react-template
7591d18
src/routes/path/index.ts
TypeScript
www.github.com/AlexWind96/react-template/tree/main/src/routes/path/index.ts
https://raw.githubusercontent.com/AlexWind96/react-template/7591d18/src/routes/path/index.ts
AlexWind96/react-template 7591d18 src/routes/path/index.ts
true
200
322
export const PATH = { dashboard: 'dashboard', home: 'home', about: 'about', error: 'error', auth: 'auth', login: 'login', register: 'register', director: 'director', app: 'app', subscription: 'subscription', employee: 'employee', protected: 'protected', profile: 'profile', models: 'models', ...
1
rabby4/FoundX-Client
01e161c
src/config/site.ts
TypeScript
www.github.com/rabby4/FoundX-Client/tree/main/src/config/site.ts
https://raw.githubusercontent.com/rabby4/FoundX-Client/01e161c/src/config/site.ts
rabby4/FoundX-Client 01e161c src/config/site.ts
true
200
512
export type SiteConfig = typeof siteConfig export const siteConfig = { name: "Next.js + NextUI", description: "Make beautiful websites regardless of your design experience.", navItems: [ { label: "Home", href: "/", }, { label: "About", href: "/about", }, { label: "Found Items", href: "/f...
3
imfaisalshehzad/learning-platform
8c28b58
src/school/academic/class-group/entities/class-group.entity.ts
TypeScript
www.github.com/imfaisalshehzad/learning-platform/tree/main/src/school/academic/class-group/entities/class-group.entity.ts
https://raw.githubusercontent.com/imfaisalshehzad/learning-platform/8c28b58/src/school/academic/class-group/entities/class-group.entity.ts
imfaisalshehzad/learning-platform 8c28b58 src/school/academic/class-group/entities/class-group.entity.ts
true
200
4,141
import BaseTable from "../../../../core/entity/base.entity"; import {Column, Entity, ManyToMany, ManyToOne, OneToMany} from "typeorm"; import {SchoolEntity} from "../../../entities/school.entity"; import {TeacherEntity} from "../../../../teacher/entities/teacher.entity"; import {StudentEntity} from "../../../../student...
6
anhcoming/datn_v1_fe_client
900c24f
src/app/services/product.service.ts
TypeScript
www.github.com/anhcoming/datn_v1_fe_client/tree/main/src/app/services/product.service.ts
https://raw.githubusercontent.com/anhcoming/datn_v1_fe_client/900c24f/src/app/services/product.service.ts
anhcoming/datn_v1_fe_client 900c24f src/app/services/product.service.ts
true
200
1,158
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { environment } from '../../environments/environment'; import { Observable } from 'rxjs'; const API = environment.baseUrl; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/j...
5
RobertaMeireles/JobNow-Angular-NodeJS-TypeScript
7e00356
job-now/src/app/app.component.ts
TypeScript
www.github.com/RobertaMeireles/JobNow-Angular-NodeJS-TypeScript/tree/main/job-now/src/app/app.component.ts
https://raw.githubusercontent.com/RobertaMeireles/JobNow-Angular-NodeJS-TypeScript/7e00356/job-now/src/app/app.component.ts
RobertaMeireles/JobNow-Angular-NodeJS-TypeScript 7e00356 job-now/src/app/app.component.ts
true
200
1,276
import { Component } from '@angular/core'; import { LoginService } from './services-project/login/login.service'; import { NoNavbarService } from './services-project/no-navbar/no-navbar.service'; import { JwtModule, JwtHelperService } from '@auth0/angular-jwt'; import { User } from './models-project/users'; @Componen...
4
MbaUser1/restoreu
d843c6f
src/app/api/point_depot/route.ts
TypeScript
www.github.com/MbaUser1/restoreu/tree/main/src/app/api/point_depot/route.ts
https://raw.githubusercontent.com/MbaUser1/restoreu/d843c6f/src/app/api/point_depot/route.ts
MbaUser1/restoreu d843c6f src/app/api/point_depot/route.ts
true
200
2,769
import { NextRequest, NextResponse } from "next/server"; import db from "@/lib/db"; import bcrypt from "bcrypt"; export async function GET(request: NextRequest) { try { const pointsDeDepot = await db.lieu_depot.findMany(); return NextResponse.json({ success: true, data: pointsDeDepot, }); }...
2
Juan-Gualteros/linktic
48f36f9
Linktik-prueba/src/app/core/services/auth.service.ts
TypeScript
www.github.com/Juan-Gualteros/linktic/tree/main/Linktik-prueba/src/app/core/services/auth.service.ts
https://raw.githubusercontent.com/Juan-Gualteros/linktic/48f36f9/Linktik-prueba/src/app/core/services/auth.service.ts
Juan-Gualteros/linktic 48f36f9 Linktik-prueba/src/app/core/services/auth.service.ts
true
200
1,677
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable, tap } from 'rxjs'; import { environment } from '../../../environments/environment'; import { Router } from '@angular/router'; import { User } from '../../interface/user'; @Injectable({ pro...
7
Aishwarya7201/UI
69341b3
https.ts
TypeScript
www.github.com/Aishwarya7201/UI/tree/main/https.ts
https://raw.githubusercontent.com/Aishwarya7201/UI/69341b3/https.ts
Aishwarya7201/UI 69341b3 https.ts
true
200
1,468
document.addEventListener('DOMContentLoaded', function() { const form = document.getElementById('converter-form'); const resultElement = document.getElementById('result'); if (form && resultElement) { form.addEventListener('submit', async function(event) { event.preventDefault(); const a...
1
simona-at/monis-padlet-app
5b554eb
src/app/padlet-users-form/padlet-users-form.component.ts
TypeScript
www.github.com/simona-at/monis-padlet-app/tree/main/src/app/padlet-users-form/padlet-users-form.component.ts
https://raw.githubusercontent.com/simona-at/monis-padlet-app/5b554eb/src/app/padlet-users-form/padlet-users-form.component.ts
simona-at/monis-padlet-app 5b554eb src/app/padlet-users-form/padlet-users-form.component.ts
true
200
7,840
import {Component, OnInit} from '@angular/core'; import {FormArray, FormBuilder, FormControl, FormGroup, Validators} from "@angular/forms"; import {ActivatedRoute, Router} from "@angular/router"; import {AuthenticationService} from "../shared/authentication.service"; import {UserService} from "../shared/user.service"; ...
0
TerenceG01/study-notes-ninja
66bea11
src/components/landing/useVisibilityObserver.ts
TypeScript
www.github.com/TerenceG01/study-notes-ninja/tree/main/src/components/landing/useVisibilityObserver.ts
https://raw.githubusercontent.com/TerenceG01/study-notes-ninja/66bea11/src/components/landing/useVisibilityObserver.ts
TerenceG01/study-notes-ninja 66bea11 src/components/landing/useVisibilityObserver.ts
true
200
1,010
import { useState, useEffect } from 'react'; export const useVisibilityObserver = (sectionIds: string[]) => { const [isVisible, setIsVisible] = useState<Record<string, boolean>>( sectionIds.reduce((acc, id) => ({ ...acc, [id]: false }), {}) ); useEffect(() => { const observerOptions = { root: nul...
3
pat13310/autom8
db7afb9
src/lib/auth-superuser.ts
TypeScript
www.github.com/pat13310/autom8/tree/main/src/lib/auth-superuser.ts
https://raw.githubusercontent.com/pat13310/autom8/db7afb9/src/lib/auth-superuser.ts
pat13310/autom8 db7afb9 src/lib/auth-superuser.ts
true
200
8,954
import { supabase } from './supabase'; import * as crypto from 'crypto'; interface AdminUser { id: string; email: string; name: string; role?: 'admin' | 'superuser'; } /** * Fonction pour hacher un mot de passe avec SHA-256 (pour les mots de passe hashés côté client) */ function hashPasswordSHA256(password:...
6
ezemartlopez/Copal-Angular
b47fa53
src/app/sidebar/sidebar.module.ts
TypeScript
www.github.com/ezemartlopez/Copal-Angular/tree/main/src/app/sidebar/sidebar.module.ts
https://raw.githubusercontent.com/ezemartlopez/Copal-Angular/b47fa53/src/app/sidebar/sidebar.module.ts
ezemartlopez/Copal-Angular b47fa53 src/app/sidebar/sidebar.module.ts
true
200
344
import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { SidebarComponent } from "./sidebar.component"; import { RouterLink } from "@angular/router"; @NgModule({ declarations: [SidebarComponent], imports: [CommonModule, RouterLink], exports: [SidebarComponent], }) export...
2
StanPisotskyi/tasks-manager-client
f861bef
src/app/comments/comments.component.ts
TypeScript
www.github.com/StanPisotskyi/tasks-manager-client/tree/main/src/app/comments/comments.component.ts
https://raw.githubusercontent.com/StanPisotskyi/tasks-manager-client/f861bef/src/app/comments/comments.component.ts
StanPisotskyi/tasks-manager-client f861bef src/app/comments/comments.component.ts
true
200
6,731
import {Component, Input} from '@angular/core'; import {Comment} from "../interfaces/comment"; import {CommentNode} from "../interfaces/comment-node"; import { MatNestedTreeNode, MatTree, MatTreeFlatDataSource, MatTreeFlattener, MatTreeNode, MatTreeNodeDef, MatTreeNodeOutlet, MatTreeNodePadding, MatTreeNode...
5
alcazararturo/orders-ms
828785a
src/orders/dto/order-pagination.dto.ts
TypeScript
www.github.com/alcazararturo/orders-ms/tree/main/src/orders/dto/order-pagination.dto.ts
https://raw.githubusercontent.com/alcazararturo/orders-ms/828785a/src/orders/dto/order-pagination.dto.ts
alcazararturo/orders-ms 828785a src/orders/dto/order-pagination.dto.ts
true
200
389
import { IsEnum, IsOptional } from 'class-validator'; import { PaginationDto } from '../../common' import { OrderStatus } from '@prisma/client'; import { OrderStatusList } from '../enum/order-enum'; export class OrderPaginationDto extends PaginationDto { @IsOptional() @IsEnum( OrderStatusList, { message: `V...
7
mikedevelops/puzzle-a-day
555b10d
archive/grass-sim/state/sheep/SheepHoverState.ts
TypeScript
www.github.com/mikedevelops/puzzle-a-day/tree/main/archive/grass-sim/state/sheep/SheepHoverState.ts
https://raw.githubusercontent.com/mikedevelops/puzzle-a-day/555b10d/archive/grass-sim/state/sheep/SheepHoverState.ts
mikedevelops/puzzle-a-day 555b10d archive/grass-sim/state/sheep/SheepHoverState.ts
true
200
704
import { State } from "../../../../src/engine/stateMachine"; import { Sheep } from "../../sheep"; import { ui } from "../../global"; import { createPanel, Position, Size } from "../../../../src/engine/ui/panel"; import { createSheepPanel } from "../../ui/sheepPanel"; export class SheepHoverState extends State { publ...
4
Jaimedfalla/vue-ts-issues-app
fe00cd3
src/issues/composables/useLabels.ts
TypeScript
www.github.com/Jaimedfalla/vue-ts-issues-app/tree/main/src/issues/composables/useLabels.ts
https://raw.githubusercontent.com/Jaimedfalla/vue-ts-issues-app/fe00cd3/src/issues/composables/useLabels.ts
Jaimedfalla/vue-ts-issues-app fe00cd3 src/issues/composables/useLabels.ts
true
200
691
import { Label } from './../interfaces/Label'; import { githubApi } from './../api/GithubApi'; import { useQuery } from '@tanstack/vue-query'; import { useIssuesStore } from '../store'; import { storeToRefs } from 'pinia'; const getLabels = async (): Promise<Label[]> => { const { data } = await githubApi.get<Label[]...
0
AlexPereverzyev/sip_tel
f69afcc
freeswitch/configurator/src/events.ts
TypeScript
www.github.com/AlexPereverzyev/sip_tel/tree/main/freeswitch/configurator/src/events.ts
https://raw.githubusercontent.com/AlexPereverzyev/sip_tel/f69afcc/freeswitch/configurator/src/events.ts
AlexPereverzyev/sip_tel f69afcc freeswitch/configurator/src/events.ts
true
200
4,189
import esl from 'modesl'; import config from './config'; export enum EslEvents { Bridge = 'CHANNEL_BRIDGE', HangupComplete = 'CHANNEL_HANGUP_COMPLETE', ExecuteComplete = 'CHANNEL_EXECUTE_COMPLETE', } export default class EslServer implements IEventsServer { private server: esl.Server | null = null; start(p...
1
77TecShaeer/TASK_DDD
330c270
src/utils/scaling.ts
TypeScript
www.github.com/77TecShaeer/TASK_DDD/tree/main/src/utils/scaling.ts
https://raw.githubusercontent.com/77TecShaeer/TASK_DDD/330c270/src/utils/scaling.ts
77TecShaeer/TASK_DDD 330c270 src/utils/scaling.ts
true
200
723
import {Dimensions, StatusBar, Platform} from 'react-native'; const isAndroid = Platform.OS === 'android' && Platform.Version > 26; const {width: screenWidth, height: screenHeight} = Dimensions.get( isAndroid ? 'screen' : 'window', ); const guidelineBaseWidth = 375; const guidelineBaseHeight = 812; const sWidth =...
3
praveencloudlab/usa-fullstack
b152f08
angular/7-child-parent/src/app/app.component.spec.ts
TypeScript
www.github.com/praveencloudlab/usa-fullstack/tree/main/angular/7-child-parent/src/app/app.component.spec.ts
https://raw.githubusercontent.com/praveencloudlab/usa-fullstack/b152f08/angular/7-child-parent/src/app/app.component.spec.ts
praveencloudlab/usa-fullstack b152f08 angular/7-child-parent/src/app/app.component.spec.ts
true
200
980
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); }); it('should create the app', ()...
2
hakim220619/payypmb
16fd39c
src/pages/api/createMidtransTransactionFree.ts
TypeScript
www.github.com/hakim220619/payypmb/tree/main/src/pages/api/createMidtransTransactionFree.ts
https://raw.githubusercontent.com/hakim220619/payypmb/16fd39c/src/pages/api/createMidtransTransactionFree.ts
hakim220619/payypmb 16fd39c src/pages/api/createMidtransTransactionFree.ts
true
200
2,928
import type { NextApiRequest, NextApiResponse } from 'next/types' // @ts-ignore: midtrans-client has no type definitions import midtransClient from 'midtrans-client' import mysql from 'mysql2/promise' const { DB_HOST, DB_NAME, DB_USER, DB_PASSWORD } = process.env // Function to create connection to MySQL database as...
7
milavidoeska5/E-Commerce-GraphQL-API
2880563
src/images/images.resolver.ts
TypeScript
www.github.com/milavidoeska5/E-Commerce-GraphQL-API/tree/main/src/images/images.resolver.ts
https://raw.githubusercontent.com/milavidoeska5/E-Commerce-GraphQL-API/2880563/src/images/images.resolver.ts
milavidoeska5/E-Commerce-GraphQL-API 2880563 src/images/images.resolver.ts
true
200
1,741
import { Args, Mutation, Parent, Query, ResolveField, Resolver } from '@nestjs/graphql'; import { Image } from './image.entity'; import { ImagesService } from './images.service'; import { NotFoundException } from '@nestjs/common'; import { UpdateImageInput } from './dto/update-image.input'; import { CreateImageInput } ...
4
ggardiakos/src1
fdb52d6
test2/csrf.guard.spec.ts
TypeScript
www.github.com/ggardiakos/src1/tree/main/test2/csrf.guard.spec.ts
https://raw.githubusercontent.com/ggardiakos/src1/fdb52d6/test2/csrf.guard.spec.ts
ggardiakos/src1 fdb52d6 test2/csrf.guard.spec.ts
true
200
1,412
import type { ExecutionContext } from '@nestjs/common' import type { TestingModule } from '@nestjs/testing' import { Test } from '@nestjs/testing' import { CsrfGuard } from './csrf.guard' describe('csrfGuard', () => { let guard: CsrfGuard beforeEach(async () => { const module: TestingModule = await T...
3
AmbireTech/ambire-common
09b2144
src/interfaces/keystore.ts
TypeScript
www.github.com/AmbireTech/ambire-common/tree/main/src/interfaces/keystore.ts
https://raw.githubusercontent.com/AmbireTech/ambire-common/09b2144/src/interfaces/keystore.ts
AmbireTech/ambire-common 09b2144 src/interfaces/keystore.ts
true
200
4,824
import { Transaction } from 'ethers' import { HD_PATH_TEMPLATE_TYPE } from '../consts/derivation' import { GasFeePayment } from '../libs/accountOp/accountOp' import { Call } from '../libs/accountOp/types' import { getHdPathFromTemplate } from '../utils/hdPath' import { Account } from './account' import { Network } fro...
0
tennysontbardwell/tennyson.ts
7b97191
src/lib/infra/aws.ts
TypeScript
www.github.com/tennysontbardwell/tennyson.ts/tree/main/src/lib/infra/aws.ts
https://raw.githubusercontent.com/tennysontbardwell/tennyson.ts/7b97191/src/lib/infra/aws.ts
tennysontbardwell/tennyson.ts 7b97191 src/lib/infra/aws.ts
true
200
909
// import * as client_ec2 from '@aws-sdk/client-ec2'; import * as client_route_53 from "@aws-sdk/client-route-53"; export async function setARecord(subdomain: string, ip: string) { const route53 = new client_route_53.Route53Client({ region: "us-east-1" }); const cmd = new client_route_53.ChangeResourceRecordSetsCo...
1
piavgh/sui-playground-js
b03e3e6
src/subscribe-transactions.ts
TypeScript
www.github.com/piavgh/sui-playground-js/tree/main/src/subscribe-transactions.ts
https://raw.githubusercontent.com/piavgh/sui-playground-js/b03e3e6/src/subscribe-transactions.ts
piavgh/sui-playground-js b03e3e6 src/subscribe-transactions.ts
true
200
964
import 'dotenv/config'; import { getFullnodeUrl, SuiClient, SuiHTTPTransport } from '@mysten/sui.js/client'; import { WebSocket } from 'ws'; (async () => { const myAddress = process.env.WALLET; if (!myAddress) { throw new Error('WALLET environment variable must be set'); } const client = new ...
5
forkanselise/Gallery-angular
d586dbd
src/app/Services/cloudinary.service.ts
TypeScript
www.github.com/forkanselise/Gallery-angular/tree/main/src/app/Services/cloudinary.service.ts
https://raw.githubusercontent.com/forkanselise/Gallery-angular/d586dbd/src/app/Services/cloudinary.service.ts
forkanselise/Gallery-angular d586dbd src/app/Services/cloudinary.service.ts
true
200
1,190
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Cloudinary, CloudinaryImage } from '@cloudinary/url-gen'; import { environment } from 'src/environments/environment'; @Injectable({ providedIn: 'root' }) export class CloudinaryService { Uploadh...
6
AJTech2002/WebGPU-Particles
32fdb72
gameTypes/game/components/house_spawner.d.ts
TypeScript
www.github.com/AJTech2002/WebGPU-Particles/tree/main/gameTypes/game/components/house_spawner.d.ts
https://raw.githubusercontent.com/AJTech2002/WebGPU-Particles/32fdb72/gameTypes/game/components/house_spawner.d.ts
AJTech2002/WebGPU-Particles 32fdb72 gameTypes/game/components/house_spawner.d.ts
true
200
342
import Component from "../../engine/scene/component"; import GameObject from "../../engine/scene/gameobject"; export declare class HouseSpawner extends Component { private houseCount; private grid; private houseMaterial; trees: GameObject[]; constructor(); awake(): void; start(): void; p...
2
AnassNDRI/M-M_Consulting_Backend_Frontend
da1471e
frontend_Agular/src/app/component/register-recruiter/register-recruiter.component.ts
TypeScript
www.github.com/AnassNDRI/M-M_Consulting_Backend_Frontend/tree/main/frontend_Agular/src/app/component/register-recruiter/register-recruiter.component.ts
https://raw.githubusercontent.com/AnassNDRI/M-M_Consulting_Backend_Frontend/da1471e/frontend_Agular/src/app/component/register-recruiter/register-recruiter.component.ts
AnassNDRI/M-M_Consulting_Backend_Frontend da1471e frontend_Agular/src/app/component/register-recruiter/register-recruiter.component.ts
true
200
18,101
import { CommonModule } from '@angular/common'; import { Component, Inject, OnInit, Optional } from '@angular/core'; import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators, } from '@angular/forms'; import { MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogRef, } from '@angu...
7
staviasz/shopper
d37a0a4
back/src/main/adapter/fetch.adapter.ts
TypeScript
www.github.com/staviasz/shopper/tree/main/back/src/main/adapter/fetch.adapter.ts
https://raw.githubusercontent.com/staviasz/shopper/d37a0a4/back/src/main/adapter/fetch.adapter.ts
staviasz/shopper d37a0a4 back/src/main/adapter/fetch.adapter.ts
true
200
1,146
import { ExternalRequestsContract, Headers, RequestOptions, Response, } from '@/main/contracts/external-requests.contract'; import { CustomHttpError } from '@/main/errors/custom-http.erros'; import { badRequest } from '@/main/helpers/http.helpers'; export class FetchAdapter implements ExternalRequestsContract ...
4
Temporaza/FitQuestJuniorFinal
35e04c4
src/app/pages/games/sound-animals/sound-animals.page.spec.ts
TypeScript
www.github.com/Temporaza/FitQuestJuniorFinal/tree/main/src/app/pages/games/sound-animals/sound-animals.page.spec.ts
https://raw.githubusercontent.com/Temporaza/FitQuestJuniorFinal/35e04c4/src/app/pages/games/sound-animals/sound-animals.page.spec.ts
Temporaza/FitQuestJuniorFinal 35e04c4 src/app/pages/games/sound-animals/sound-animals.page.spec.ts
true
200
489
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SoundAnimalsPage } from './sound-animals.page'; describe('SoundAnimalsPage', () => { let component: SoundAnimalsPage; let fixture: ComponentFixture<SoundAnimalsPage>; beforeEach(async(() => { fixture = TestBed.createComponent(SoundA...
3
frenovatoa/Admin-PLT
9203943
src/app/pages/orders/orders-routing.module.ts
TypeScript
www.github.com/frenovatoa/Admin-PLT/tree/main/src/app/pages/orders/orders-routing.module.ts
https://raw.githubusercontent.com/frenovatoa/Admin-PLT/9203943/src/app/pages/orders/orders-routing.module.ts
frenovatoa/Admin-PLT 9203943 src/app/pages/orders/orders-routing.module.ts
true
200
647
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { CreateOrdersComponent } from './create-orders/create-orders.component'; import { ScheduleComponent } from './schedule/schedule.component'; const routes: Routes =[ ...
0
neskorozhena/web-cursova-frontend
afe4015
src/rootSaga.ts
TypeScript
www.github.com/neskorozhena/web-cursova-frontend/tree/main/src/rootSaga.ts
https://raw.githubusercontent.com/neskorozhena/web-cursova-frontend/afe4015/src/rootSaga.ts
neskorozhena/web-cursova-frontend afe4015 src/rootSaga.ts
true
200
394
import { all } from 'redux-saga/effects'; import { loginPageWatcherSaga } from './containers/LoginPage/saga'; import { ordersPageWatcherSaga } from './containers/OrdersPage/saga'; import { orderPageWatcherSaga } from './containers/OrderPage/saga'; export default function* rootSaga() { yield all([ loginPageWatche...
5
node-modz/api-identity
4bea7cf
api/src/seeder/identity/tenant-seeder.ts
TypeScript
www.github.com/node-modz/api-identity/tree/main/api/src/seeder/identity/tenant-seeder.ts
https://raw.githubusercontent.com/node-modz/api-identity/4bea7cf/api/src/seeder/identity/tenant-seeder.ts
node-modz/api-identity 4bea7cf api/src/seeder/identity/tenant-seeder.ts
true
200
1,074
import { Tenant } from "../../entities/identity"; import { CsvProcessor } from "../csv-processor"; import { Seeder } from "../seeder"; import { createConnection, Db, getConnection, QueryRunner } from "typeorm"; import { Service } from 'typedi'; import Logger from "../../lib/Logger"; const logger = Logger(module) @Ser...
6
Olesya-Derevyanko/react-native-first-app
fdb9d5f
src/hooks/useCurrentUser.ts
TypeScript
www.github.com/Olesya-Derevyanko/react-native-first-app/tree/main/src/hooks/useCurrentUser.ts
https://raw.githubusercontent.com/Olesya-Derevyanko/react-native-first-app/fdb9d5f/src/hooks/useCurrentUser.ts
Olesya-Derevyanko/react-native-first-app fdb9d5f src/hooks/useCurrentUser.ts
true
200
4,309
import { useAppDispatch, useAppSelector } from '../store/hooks'; import { logoutUser, setActualUser } from '../store/user/userSlice'; import { FormResetPassType, FormSignInType, FormSignUpType, FormUserType, UserType, } from '../types/userTypes'; import { AsyncStorageItem } from '../utils/AsyncStorageHelper';...
1
chukwiz/hardhat-fund
2a8fa74
utils/verify.ts
TypeScript
www.github.com/chukwiz/hardhat-fund/tree/main/utils/verify.ts
https://raw.githubusercontent.com/chukwiz/hardhat-fund/2a8fa74/utils/verify.ts
chukwiz/hardhat-fund 2a8fa74 utils/verify.ts
true
200
538
import { run } from "hardhat" import { SubtaskArguments, TaskArguments } from "hardhat/types" const verify = async (contractAddress:TaskArguments, args:SubtaskArguments) => { try { await run("verify:verify", { address: contractAddress, constructorArguments: args, }) }...
7
ManiEids/vef2v4
b5d0236
src/middleware.ts
TypeScript
www.github.com/ManiEids/vef2v4/tree/main/src/middleware.ts
https://raw.githubusercontent.com/ManiEids/vef2v4/b5d0236/src/middleware.ts
ManiEids/vef2v4 b5d0236 src/middleware.ts
true
200
443
import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; // async export function middleware(request: NextRequest) { // logga api if (request.nextUrl.pathname.startsWith('/api/proxy')) { console.log(`[Middleware] API Proxy Request: ${request.method} ${request.nextUrl.toStrin...
4
def-SpaceWar/theseus-mythology-project
22fc2ec
src/MinotaurBackstory.ts
TypeScript
www.github.com/def-SpaceWar/theseus-mythology-project/tree/main/src/MinotaurBackstory.ts
https://raw.githubusercontent.com/def-SpaceWar/theseus-mythology-project/22fc2ec/src/MinotaurBackstory.ts
def-SpaceWar/theseus-mythology-project 22fc2ec src/MinotaurBackstory.ts
true
200
2,026
import AnimatedText from "./AnimatedText"; import { blackScreen } from "./ImageLoading"; export default async function minotaurBackstory(ctx: CanvasRenderingContext2D) { const readSpeed = 2.5; const lines: string[] = [ "The Minotaur is a child of Minos' wife and a bull. It is", "a very vicious creature an...
3
GrayBismuthMaster/JAAP
1799241
src/app/components/sensibilizaciondos/sensibilizaciondos.component.ts
TypeScript
www.github.com/GrayBismuthMaster/JAAP/tree/main/src/app/components/sensibilizaciondos/sensibilizaciondos.component.ts
https://raw.githubusercontent.com/GrayBismuthMaster/JAAP/1799241/src/app/components/sensibilizaciondos/sensibilizaciondos.component.ts
GrayBismuthMaster/JAAP 1799241 src/app/components/sensibilizaciondos/sensibilizaciondos.component.ts
true
200
700
import { Component, OnInit } from '@angular/core'; import { viewerType } from 'ngx-doc-viewer'; @Component({ selector: 'app-sensibilizaciondos', templateUrl: './sensibilizaciondos.component.html', styleUrls: ['./sensibilizaciondos.component.css'] }) export class SensibilizaciondosComponent implements OnInit { ...
0
amaldev07/DSA
6f0b87b
algorithms/algorithms/112. Path Sum/index.ts
TypeScript
www.github.com/amaldev07/DSA/tree/main/algorithms/algorithms/112. Path Sum/index.ts
https://raw.githubusercontent.com/amaldev07/DSA/6f0b87b/algorithms/algorithms/112.%20Path%20Sum/index.ts
amaldev07/DSA 6f0b87b algorithms/algorithms/112. Path Sum/index.ts
true
200
1,023
class TreeNode { val: number left: TreeNode | null right: TreeNode | null constructor(val?: number, left?: TreeNode | null, right?: TreeNode | null) { this.val = (val === undefined ? 0 : val) this.left = (left === undefined ? null : left) this.right = (right === undefined ? null ...
5
RobinCC95/Plataforma_Didactica_SistemIntel
c304c79
frontend/analizadorGrafos/src/app/informacion/busqueda-grafo/busqueda-grafo.component.ts
TypeScript
www.github.com/RobinCC95/Plataforma_Didactica_SistemIntel/tree/main/frontend/analizadorGrafos/src/app/informacion/busqueda-grafo/busqueda-grafo.component.ts
https://raw.githubusercontent.com/RobinCC95/Plataforma_Didactica_SistemIntel/c304c79/frontend/analizadorGrafos/src/app/informacion/busqueda-grafo/busqueda-grafo.component.ts
RobinCC95/Plataforma_Didactica_SistemIntel c304c79 frontend/analizadorGrafos/src/app/informacion/busqueda-grafo/busqueda-grafo.component.ts
true
200
2,650
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; import { ProblemaEnum } from 'src/app/enums/problema.enum'; import { GrafoService } from 'src/app/grafo/grafo.service'; import { ParametrosEjercicioDTO } from 'src/app/modelos/parametros.ejercicio.dto'; import { Router } from '@angular/router';...
2
ThyagoSCoelho/quanto-gastarei-api
061b448
app/Controllers/Http/ItinerariesController.ts
TypeScript
www.github.com/ThyagoSCoelho/quanto-gastarei-api/tree/main/app/Controllers/Http/ItinerariesController.ts
https://raw.githubusercontent.com/ThyagoSCoelho/quanto-gastarei-api/061b448/app/Controllers/Http/ItinerariesController.ts
ThyagoSCoelho/quanto-gastarei-api 061b448 app/Controllers/Http/ItinerariesController.ts
true
200
976
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' import { ItineraryCreateDto, ItineraryValidation } from 'App/Dtos/itineraryCreate'; import Itineraries from "App/Resource/Itineraries"; export default class ItinerariesController { public async store({request}: HttpContextContract) { ...
1
infojanio/icompras_backend
d44d255
src/modules/orders/usesCases/createOrder/CreateOrderController.ts
TypeScript
www.github.com/infojanio/icompras_backend/tree/main/src/modules/orders/usesCases/createOrder/CreateOrderController.ts
https://raw.githubusercontent.com/infojanio/icompras_backend/d44d255/src/modules/orders/usesCases/createOrder/CreateOrderController.ts
infojanio/icompras_backend d44d255 src/modules/orders/usesCases/createOrder/CreateOrderController.ts
true
200
628
import { Request, Response } from 'express'; import { container } from 'tsyringe'; import { CreateOrderUseCase } from './CreateOrderUseCase'; class CreateOrderController { async handle(request: Request, response: Response): Promise<Response> { const { expected_return_date, product_id } = request.body; const ...
7
LAYA-Iraq/nextgen-backend
7068ebc
src/models/flag-questions.model.ts
TypeScript
www.github.com/LAYA-Iraq/nextgen-backend/tree/main/src/models/flag-questions.model.ts
https://raw.githubusercontent.com/LAYA-Iraq/nextgen-backend/7068ebc/src/models/flag-questions.model.ts
LAYA-Iraq/nextgen-backend 7068ebc src/models/flag-questions.model.ts
true
200
849
// See https://sequelize.org/master/manual/model-basics.html // for more of what you can do here. import { Sequelize, DataTypes, Model } from 'sequelize' import { Application } from '../declarations' import { HookReturn } from 'sequelize/types/hooks' export default function (app: Application): typeof Model { const s...
4
GerArJe/financial-products
2a133b9
src/app/domain/financial-product/usecases/get-financial-products.usecase.ts
TypeScript
www.github.com/GerArJe/financial-products/tree/main/src/app/domain/financial-product/usecases/get-financial-products.usecase.ts
https://raw.githubusercontent.com/GerArJe/financial-products/2a133b9/src/app/domain/financial-product/usecases/get-financial-products.usecase.ts
GerArJe/financial-products 2a133b9 src/app/domain/financial-product/usecases/get-financial-products.usecase.ts
true
200
622
import { inject, Injectable } from "@angular/core"; import { UseCase } from "../../../base/use-case"; import { FinancialProduct } from "../models/financial-product.model"; import { Observable } from "rxjs"; import { FinancialProductGateway } from "../models/gateway/financial-product.gateway"; @Injectable({ provide...
3
JosafatJimenezB/Managment-escihu-virtual-UI
6e64fb7
src/app/classrooms/classrooms-routing.module.ts
TypeScript
www.github.com/JosafatJimenezB/Managment-escihu-virtual-UI/tree/main/src/app/classrooms/classrooms-routing.module.ts
https://raw.githubusercontent.com/JosafatJimenezB/Managment-escihu-virtual-UI/6e64fb7/src/app/classrooms/classrooms-routing.module.ts
JosafatJimenezB/Managment-escihu-virtual-UI 6e64fb7 src/app/classrooms/classrooms-routing.module.ts
true
200
430
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ClassroomMainPageComponent } from './pages/all/all.component'; const routes: Routes = [{ path: '', children: [ { path: '', component: ClassroomMainPageComponent } ] }]; @NgModule({ im...
5
vanzinvestor/hashbasedtoken
c0dde8a
tests/index.spec.ts
TypeScript
www.github.com/vanzinvestor/hashbasedtoken/tree/main/tests/index.spec.ts
https://raw.githubusercontent.com/vanzinvestor/hashbasedtoken/c0dde8a/tests/index.spec.ts
vanzinvestor/hashbasedtoken c0dde8a tests/index.spec.ts
true
200
4,201
import { getTokenExpires, getTokenId, isExpires, sign, verify, } from '../src/index'; import assert from 'assert'; import { correctToken, incorrectSecretKey, incorrectTokenExpiresIn, incorrectTokenFormat, secretKey, tokenExpiresIn, tokenId, } from './test.data'; async function assertThrowsAsync...
0
AR-Ashik-9997/Book_Catallog
1c2ae51
src/app/modules/categories/category.validation.ts
TypeScript
www.github.com/AR-Ashik-9997/Book_Catallog/tree/main/src/app/modules/categories/category.validation.ts
https://raw.githubusercontent.com/AR-Ashik-9997/Book_Catallog/1c2ae51/src/app/modules/categories/category.validation.ts
AR-Ashik-9997/Book_Catallog 1c2ae51 src/app/modules/categories/category.validation.ts
true
200
330
import { z } from 'zod'; const createCategory = z.object({ body: z.object({ title: z.string({ required_error: 'title is required', }), }), }); const updateCategory = z.object({ body: z.object({ title: z.string().optional(), }), }); export const CategoryValidation = { createCategory, updateCa...
6
pkratosp/forum-app-ddd
17b01ff
src/domain/forum/application/use-cases/create-question-use-casae.spec.ts
TypeScript
www.github.com/pkratosp/forum-app-ddd/tree/main/src/domain/forum/application/use-cases/create-question-use-casae.spec.ts
https://raw.githubusercontent.com/pkratosp/forum-app-ddd/17b01ff/src/domain/forum/application/use-cases/create-question-use-casae.spec.ts
pkratosp/forum-app-ddd 17b01ff src/domain/forum/application/use-cases/create-question-use-casae.spec.ts
true
200
1,239
import { InMemoryQuestionsRepository } from 'test/repositories/in-memory-questions-repository' import { CreateQuestionUseCase } from './create-question-use-case' import { InMemoryQuestionsAttachmentsRepository } from 'test/repositories/in-memory-questions-attachments-repository' let inMemoryQuestionsAttachmentsReposit...
2
huynhtuvinh87/node_typeorm
97ba663
src/services/SettingService.ts
TypeScript
www.github.com/huynhtuvinh87/node_typeorm/tree/main/src/services/SettingService.ts
https://raw.githubusercontent.com/huynhtuvinh87/node_typeorm/97ba663/src/services/SettingService.ts
huynhtuvinh87/node_typeorm 97ba663 src/services/SettingService.ts
true
200
453
import { Setting } from '../entities/Setting'; import { SettingRepository } from '../repositories/SettingRepository'; import { BaseService } from './BaseService'; import { Service } from 'typedi'; import { InjectRepository } from 'typeorm-typedi-extensions'; @Service() export class SettingService extends BaseService<S...
1
fabriciojr7/waiterapp
4bcd3e5
api/src/app/useCases/categories/createCategory.ts
TypeScript
www.github.com/fabriciojr7/waiterapp/tree/main/api/src/app/useCases/categories/createCategory.ts
https://raw.githubusercontent.com/fabriciojr7/waiterapp/4bcd3e5/api/src/app/useCases/categories/createCategory.ts
fabriciojr7/waiterapp 4bcd3e5 api/src/app/useCases/categories/createCategory.ts
true
200
490
import { Request, Response } from 'express'; import { Category } from '../../models/Category'; export async function createCategory(req: Request, res: Response){ try { const {icon, name } = req.body; if(!name){ return res.status(400).json({ error: 'Name is required!' }); } cons...
7
new-challenges/new-challenges-api
7f47c95
src/services/level.service.ts
TypeScript
www.github.com/new-challenges/new-challenges-api/tree/main/src/services/level.service.ts
https://raw.githubusercontent.com/new-challenges/new-challenges-api/7f47c95/src/services/level.service.ts
new-challenges/new-challenges-api 7f47c95 src/services/level.service.ts
true
200
483
import { Injectable } from "@nestjs/common"; import { LevelResponse } from "../dtos/level/responses/level.response"; import { LevelRepository } from '../repositories/level.repository'; import { LevelEntity } from '../share/entities/level.entity'; import { BaseService } from "./base/base.service"; @Injectable() export ...
3
awwknee/LeagueBuddy-2.0
a2d4dc3
src/shared/lcu/Manager.ts
TypeScript
www.github.com/awwknee/LeagueBuddy-2.0/tree/main/src/shared/lcu/Manager.ts
https://raw.githubusercontent.com/awwknee/LeagueBuddy-2.0/a2d4dc3/src/shared/lcu/Manager.ts
awwknee/LeagueBuddy-2.0 a2d4dc3 src/shared/lcu/Manager.ts
true
200
4,197
import Client from "./Client"; import RiotClient from "./RiotClient"; import { exec, spawn } from './utils'; const command = (riotClient: boolean) => `Get-CimInstance -Query "SELECT * from Win32_Process WHERE name LIKE '${riotClient ? 'Riot Client.exe' : 'LeagueClientUx.exe'}'" | SELECT CommandLine, Path | format-list...
5
ndrwbv/react-component-generator-vs-code-extension
d698fde
src/shared/utils/createComponentToString.ts
TypeScript
www.github.com/ndrwbv/react-component-generator-vs-code-extension/tree/main/src/shared/utils/createComponentToString.ts
https://raw.githubusercontent.com/ndrwbv/react-component-generator-vs-code-extension/d698fde/src/shared/utils/createComponentToString.ts
ndrwbv/react-component-generator-vs-code-extension d698fde src/shared/utils/createComponentToString.ts
true
200
730
import * as path from "path"; import * as fs from "fs"; import * as vscode from "vscode"; import { removeFirstLine } from "./removeFirstLine"; export const createComponentToString = async ( folderName: string, fileName: string, componentName: string ): Promise<string> => { const indexPath = path.join( __di...
6
renserrano/branas-clean-arch-t10
8b8df94
projeto-parte-4/backend/checkout/tests/integration/cli.test.ts
TypeScript
www.github.com/renserrano/branas-clean-arch-t10/tree/main/projeto-parte-4/backend/checkout/tests/integration/cli.test.ts
https://raw.githubusercontent.com/renserrano/branas-clean-arch-t10/8b8df94/projeto-parte-4/backend/checkout/tests/integration/cli.test.ts
renserrano/branas-clean-arch-t10 8b8df94 projeto-parte-4/backend/checkout/tests/integration/cli.test.ts
true
200
2,366
import Checkout from "../../src/application/usecase/Checkout"; import AxiosAdapter from "../../src/infra/http/AxiosAdapter"; import CLIController from "../../src/infra/cli/CLIController"; import CLIHandler from "../../src/infra/cli/CLIHandler"; import Connection from "../../src/infra/database/Connection"; import Coupon...
0
HeRainbow/hfut-api-master
96532dd
hfut-api-master/main.ts
TypeScript
www.github.com/HeRainbow/hfut-api-master/tree/main/hfut-api-master/main.ts
https://raw.githubusercontent.com/HeRainbow/hfut-api-master/96532dd/hfut-api-master/main.ts
HeRainbow/hfut-api-master 96532dd hfut-api-master/main.ts
true
200
404
import express from 'express' import { setupServer } from '@/server' const app = express() app.use(express.json()) // 端口 const port = 8082 async function bootstrap() { app.get('/', async(req, res) => { res.send({ msg: '你干嘛~,哎哟', }) }) await setupServer(app) app.listen(port, async() => { c...
1
pry20220181/pry20220181-web-app
5b21889
Front/front/src/app/component/register/childform/childform.component.ts
TypeScript
www.github.com/pry20220181/pry20220181-web-app/tree/main/Front/front/src/app/component/register/childform/childform.component.ts
https://raw.githubusercontent.com/pry20220181/pry20220181-web-app/5b21889/Front/front/src/app/component/register/childform/childform.component.ts
pry20220181/pry20220181-web-app 5b21889 Front/front/src/app/component/register/childform/childform.component.ts
true
200
2,668
import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Register } from 'src/app/request/register-user-request'; @Component({ selector: 'app-childform', templateUrl: './childform.component.html', styleUrls: ['./childform.component.css'] }) export class Childfo...
4
chadstewart/devops-sandbox
9c23b69
react-vite/src/lib/api/graphql/internal-apis/test/index.ts
TypeScript
www.github.com/chadstewart/devops-sandbox/tree/main/react-vite/src/lib/api/graphql/internal-apis/test/index.ts
https://raw.githubusercontent.com/chadstewart/devops-sandbox/9c23b69/react-vite/src/lib/api/graphql/internal-apis/test/index.ts
chadstewart/devops-sandbox 9c23b69 react-vite/src/lib/api/graphql/internal-apis/test/index.ts
true
200
510
import api from "@/lib/api/config/api"; import { graphql } from "@/gql"; export const testGraphQLQuery = async () => { const requestBody = { query: graphql(/* GraphQL */ ` query GetOrders($authorization: String!) { getOrders(authorization: $authorization) { order_id } }`), variabl...
7
bygxs/bygxs-notes
590a1ab
src/lib/firebase.ts
TypeScript
www.github.com/bygxs/bygxs-notes/tree/main/src/lib/firebase.ts
https://raw.githubusercontent.com/bygxs/bygxs-notes/590a1ab/src/lib/firebase.ts
bygxs/bygxs-notes 590a1ab src/lib/firebase.ts
true
200
1,176
// Import the functions you need from the SDKs you need import { initializeApp } from "firebase/app"; import { getAuth } from "firebase/auth"; // Import Firebase Authentication import { signOut } from "firebase/auth"; import { getFirestore } from "firebase/firestore"; // Import Firestore import { getStorage } from "fir...
3
marcotgs/appwbi-dashboard
e9a1cda
client/src/app/table/rotinas/rotinas.component.ts
TypeScript
www.github.com/marcotgs/appwbi-dashboard/tree/main/client/src/app/table/rotinas/rotinas.component.ts
https://raw.githubusercontent.com/marcotgs/appwbi-dashboard/e9a1cda/client/src/app/table/rotinas/rotinas.component.ts
marcotgs/appwbi-dashboard e9a1cda client/src/app/table/rotinas/rotinas.component.ts
true
200
8,795
import { Component, ViewEncapsulation, ViewChild, TemplateRef, OnInit } from '@angular/core'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { NgxSpinnerService } from 'ngx-spinner'; import { SwalComponent } from '@sweetalert2/ngx-sweetalert2'; import { Subject, Observable, merge } from 'rxjs'; import { ...
5
TremaineJScott/FullStack
8d68627
full-stack-app/src/app/components/pet-list/pet-list.component.ts
TypeScript
www.github.com/TremaineJScott/FullStack/tree/main/full-stack-app/src/app/components/pet-list/pet-list.component.ts
https://raw.githubusercontent.com/TremaineJScott/FullStack/8d68627/full-stack-app/src/app/components/pet-list/pet-list.component.ts
TremaineJScott/FullStack 8d68627 full-stack-app/src/app/components/pet-list/pet-list.component.ts
true
200
1,318
import { Component, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { PetService } from '../../services/pet.service'; import { Pet } from '../../models/pet.model'; import { HttpClientModul...
6
snowball-tech/fractal
aa59cda
packages/fractal/src/components/InputText/InputText.types.ts
TypeScript
www.github.com/snowball-tech/fractal/tree/main/packages/fractal/src/components/InputText/InputText.types.ts
https://raw.githubusercontent.com/snowball-tech/fractal/aa59cda/packages/fractal/src/components/InputText/InputText.types.ts
snowball-tech/fractal aa59cda packages/fractal/src/components/InputText/InputText.types.ts
true
200
4,311
import type { AllHTMLAttributes, ChangeEvent, MouseEvent, ReactNode, } from 'react' import type { ButtonProps } from '../Button/Button.types' export interface InputTextProps extends Omit<AllHTMLAttributes<HTMLInputElement>, 'onChange' | 'prefix'> { /** Indicates if the text input must be focused on render...
1
EduaRuiz/package_tracking_frontend
77914c4
src/app/presentation/components/pipes/iso-date.pipe.ts
TypeScript
www.github.com/EduaRuiz/package_tracking_frontend/tree/main/src/app/presentation/components/pipes/iso-date.pipe.ts
https://raw.githubusercontent.com/EduaRuiz/package_tracking_frontend/77914c4/src/app/presentation/components/pipes/iso-date.pipe.ts
EduaRuiz/package_tracking_frontend 77914c4 src/app/presentation/components/pipes/iso-date.pipe.ts
true
200
442
import { Pipe, PipeTransform } from '@angular/core'; import { DatePipe } from '@angular/common'; @Pipe({ name: 'isoDate', }) export class IsoDatePipe implements PipeTransform { transform(value: string): string { const datePipe = new DatePipe('en-US'); try { const date = new Date(value); const r...
7
Cai0ba/ionicGymApp
c1a3017
src/app/register/register.page.ts
TypeScript
www.github.com/Cai0ba/ionicGymApp/tree/main/src/app/register/register.page.ts
https://raw.githubusercontent.com/Cai0ba/ionicGymApp/c1a3017/src/app/register/register.page.ts
Cai0ba/ionicGymApp c1a3017 src/app/register/register.page.ts
true
200
2,336
import { ToastController } from '@ionic/angular'; import { Component } from '@angular/core'; import { NavController } from '@ionic/angular'; @Component({ selector: 'app-register', templateUrl: 'register.page.html', styleUrls: ['register.page.scss'], }) export class RegisterPage { nome: string = ''; cpf: stri...
3
IsaiasMalvar/Bonsai-back
d6b5543
src/server/index.ts
TypeScript
www.github.com/IsaiasMalvar/Bonsai-back/tree/main/src/server/index.ts
https://raw.githubusercontent.com/IsaiasMalvar/Bonsai-back/d6b5543/src/server/index.ts
IsaiasMalvar/Bonsai-back d6b5543 src/server/index.ts
true
200
956
import cors from "cors"; import "../loadEnvironment.js"; import express from "express"; import morgan from "morgan"; import pingController from "./controllers/pingController/pingController.js"; import paths from "./utils/paths/paths.js"; import { generalError, notFoundError, } from "./middlewares/error/errorMiddlew...
1
sc0rp10n16/edmission-world-crm
fc81f02
app/api/tasks/[taskId]/status/route.ts
TypeScript
www.github.com/sc0rp10n16/edmission-world-crm/tree/main/app/api/tasks/[taskId]/status/route.ts
https://raw.githubusercontent.com/sc0rp10n16/edmission-world-crm/fc81f02/app/api/tasks/%5BtaskId%5D/status/route.ts
sc0rp10n16/edmission-world-crm fc81f02 app/api/tasks/[taskId]/status/route.ts
true
200
769
import { NextResponse } from "next/server" import { prisma } from "@/lib/prisma" import { getServerSession } from "next-auth" import { authOptions } from "@/app/api/auth/[...nextauth]/route" export async function PATCH( req: Request, { params }: { params: { taskId: string } } ) { try { const session = await ...
7
RodrigoCSolari/quiz-dapp
23add44
lib/ethereum.ts
TypeScript
www.github.com/RodrigoCSolari/quiz-dapp/tree/main/lib/ethereum.ts
https://raw.githubusercontent.com/RodrigoCSolari/quiz-dapp/23add44/lib/ethereum.ts
RodrigoCSolari/quiz-dapp 23add44 lib/ethereum.ts
true
200
791
import { CallArgs } from "./ethereum.types"; import { BigNumber, Contract, ContractInterface, ethers, providers, Signer, } from "ethers"; export const callChangeMethod = ( method: string, args: CallArgs, value: BigNumber = BigNumber.from("0"), signer: Signer, contractAddress: string, abi: Contr...
3
SGO-ERP/erp-web-personal-file
9bcd7a9
src/API/Generated/services/ViolationService.ts
TypeScript
www.github.com/SGO-ERP/erp-web-personal-file/tree/main/src/API/Generated/services/ViolationService.ts
https://raw.githubusercontent.com/SGO-ERP/erp-web-personal-file/9bcd7a9/src/API/Generated/services/ViolationService.ts
SGO-ERP/erp-web-personal-file 9bcd7a9 src/API/Generated/services/ViolationService.ts
true
200
3,558
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { ViolationCreate } from '../models/ViolationCreate'; import type { ViolationRead } from '../models/ViolationRead'; import type { ViolationUpdate } from '../models/ViolationUpdate'; import type { CancelablePromise } from '../core/Cancelab...
1
iamatinan/spaAPI
4a38ebf
src/generated/type-graphql/resolvers/crud/Promotion/UpdateManyPromotionResolver.ts
TypeScript
www.github.com/iamatinan/spaAPI/tree/main/src/generated/type-graphql/resolvers/crud/Promotion/UpdateManyPromotionResolver.ts
https://raw.githubusercontent.com/iamatinan/spaAPI/4a38ebf/src/generated/type-graphql/resolvers/crud/Promotion/UpdateManyPromotionResolver.ts
iamatinan/spaAPI 4a38ebf src/generated/type-graphql/resolvers/crud/Promotion/UpdateManyPromotionResolver.ts
true
200
1,049
import * as TypeGraphQL from "type-graphql"; import graphqlFields from "graphql-fields"; import { GraphQLResolveInfo } from "graphql"; import { UpdateManyPromotionArgs } from "./args/UpdateManyPromotionArgs"; import { Promotion } from "../../../models/Promotion"; import { AffectedRowsOutput } from "../../outputs/Affect...
3
rohiniharnale24/machineTest2
c33c131
src/app/directives/user-dropdown.directive.ts
TypeScript
www.github.com/rohiniharnale24/machineTest2/tree/main/src/app/directives/user-dropdown.directive.ts
https://raw.githubusercontent.com/rohiniharnale24/machineTest2/c33c131/src/app/directives/user-dropdown.directive.ts
rohiniharnale24/machineTest2 c33c131 src/app/directives/user-dropdown.directive.ts
true
200
1,246
// import { Directive, HostListener, OnInit } from '@angular/core'; // @Directive({ // selector: '[appDropdown]', // }) // export class DropdownDirective implements OnInit { // constructor() {} // ngOnInit(): void {} // @HostListener('click', ['$event']) // onClick(eve: Event) { // let ele = eve.target ...
7
Dqvinh20/awp-nestjs-be
dbd3359
src/modules/class_grades/entities/grade_column.entity.ts
TypeScript
www.github.com/Dqvinh20/awp-nestjs-be/tree/main/src/modules/class_grades/entities/grade_column.entity.ts
https://raw.githubusercontent.com/Dqvinh20/awp-nestjs-be/dbd3359/src/modules/class_grades/entities/grade_column.entity.ts
Dqvinh20/awp-nestjs-be dbd3359 src/modules/class_grades/entities/grade_column.entity.ts
true
200
741
import { BaseEntity } from '@modules/shared/base/base.entity'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { HydratedDocument } from 'mongoose'; export type GradeColumnDocument = HydratedDocument<GradeColumn>; @Schema({ toJSON: { getters: true, virtuals: true, }, }) export class Grade...
1
dimabonda/friends-api
a47c59d
src/api/comment/routes/comment.ts
TypeScript
www.github.com/dimabonda/friends-api/tree/main/src/api/comment/routes/comment.ts
https://raw.githubusercontent.com/dimabonda/friends-api/a47c59d/src/api/comment/routes/comment.ts
dimabonda/friends-api a47c59d src/api/comment/routes/comment.ts
true
200
768
/** * comment router */ import { factories } from '@strapi/strapi'; const defaultRouter = factories.createCoreRouter('api::comment.comment'); const router = (innerRouter: any, extraRoutes = []) => { let routes: any; return { get prefix() { return innerRouter.prefix; }, g...
3
Nithinpunathumkandy/v2-source-code
ad4620f
src/app/modules/bcm/pages/test-exercise/pages/test-and-exercise-details/test-and-exercise-details.component.ts
TypeScript
www.github.com/Nithinpunathumkandy/v2-source-code/tree/main/src/app/modules/bcm/pages/test-exercise/pages/test-and-exercise-details/test-and-exercise-details.component.ts
https://raw.githubusercontent.com/Nithinpunathumkandy/v2-source-code/ad4620f/src/app/modules/bcm/pages/test-exercise/pages/test-and-exercise-details/test-and-exercise-details.component.ts
Nithinpunathumkandy/v2-source-code ad4620f src/app/modules/bcm/pages/test-exercise/pages/test-and-exercise-details/test-and-exercise-details.component.ts
true
200
2,224
import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { TestAndExerciseService } from 'src/app/core/services/bcm/test-and-exercise/test-and-exercise.service'; import { UtilityService } from 'src/app/shared/service...
7
oskreduard/ProyectoFinal_Front
0c006ee
src/app/pages/candidato/buscar/buscar.component.ts
TypeScript
www.github.com/oskreduard/ProyectoFinal_Front/tree/main/src/app/pages/candidato/buscar/buscar.component.ts
https://raw.githubusercontent.com/oskreduard/ProyectoFinal_Front/0c006ee/src/app/pages/candidato/buscar/buscar.component.ts
oskreduard/ProyectoFinal_Front 0c006ee src/app/pages/candidato/buscar/buscar.component.ts
true
200
4,831
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import Swal from 'sweetalert2'; import { Candidato } from '../../../modelos/candidato.model'; import { CandidatoService } from '../../../servicios/candidato.service'; @Component({ selector: 'ngx-buscar', t...
1
nikaPair/timeline-block
f1944eb
src/components/History.styled.ts
TypeScript
www.github.com/nikaPair/timeline-block/tree/main/src/components/History.styled.ts
https://raw.githubusercontent.com/nikaPair/timeline-block/f1944eb/src/components/History.styled.ts
nikaPair/timeline-block f1944eb src/components/History.styled.ts
true
200
454
import styled from 'styled-components'; export const CHistory = styled.div` display: flex; position: relative; flex-direction: column; max-width: 1440px; margin: 0 auto; background-color: #f4f5f9; min-height: 100vh; overflow: hidden; border-left: 1px solid #e2e5ec; border-right:...
3
Demobilizer/barsa_app
225fd17
src/main/webapp/app/shared/model/cliente.model.ts
TypeScript
www.github.com/Demobilizer/barsa_app/tree/main/src/main/webapp/app/shared/model/cliente.model.ts
https://raw.githubusercontent.com/Demobilizer/barsa_app/225fd17/src/main/webapp/app/shared/model/cliente.model.ts
Demobilizer/barsa_app 225fd17 src/main/webapp/app/shared/model/cliente.model.ts
true
200
382
import { IPedidoCabecera } from 'app/shared/model/pedido-cabecera.model'; export interface ICliente { id?: number; tipoDoc?: string; noIdentificacion?: number; nombre?: string; apellido?: string; direccion?: string; telefono?: string; celular?: string; email?: string; pedidoCabeceras?: IPedidoCabec...
7
Wowboylol/Book-Manager-V2
8b29078
src/app/shared/pipes/tag-search.pipe.spec.ts
TypeScript
www.github.com/Wowboylol/Book-Manager-V2/tree/main/src/app/shared/pipes/tag-search.pipe.spec.ts
https://raw.githubusercontent.com/Wowboylol/Book-Manager-V2/8b29078/src/app/shared/pipes/tag-search.pipe.spec.ts
Wowboylol/Book-Manager-V2 8b29078 src/app/shared/pipes/tag-search.pipe.spec.ts
true
200
2,422
import { Tag } from '../models/tag.model'; import { TagSearchPipe } from './tag-search.pipe'; import { testData } from '../../../../src/test-data/test-data'; describe('TagSearchPipe', () => { let tagSearchPipe: TagSearchPipe; let testTags: Tag[]; let testSearchCount; beforeEach(() => { tagSearchPipe = new TagSe...
1
PiscitelloLuciano/Portfolio-Frontend
4cda79b
src/app/components/login/formulario/formulario.component.ts
TypeScript
www.github.com/PiscitelloLuciano/Portfolio-Frontend/tree/main/src/app/components/login/formulario/formulario.component.ts
https://raw.githubusercontent.com/PiscitelloLuciano/Portfolio-Frontend/4cda79b/src/app/components/login/formulario/formulario.component.ts
PiscitelloLuciano/Portfolio-Frontend 4cda79b src/app/components/login/formulario/formulario.component.ts
true
200
794
import { Component } from '@angular/core'; import { FormBuilder, FormGroup, FormControl, Validators, } from '@angular/forms'; @Component({ selector: 'app-formulario', templateUrl: './formulario.component.html', styleUrls: ['./formulario.component.css'], }) export class FormularioComponent { loginForm: ...
3
hx-code/mini-vue
040850e
src/reactivity/effect.ts
TypeScript
www.github.com/hx-code/mini-vue/tree/main/src/reactivity/effect.ts
https://raw.githubusercontent.com/hx-code/mini-vue/040850e/src/reactivity/effect.ts
hx-code/mini-vue 040850e src/reactivity/effect.ts
true
200
2,092
import{extend}from "../share" let activeEffect; let shouldTrack ; class ReactiveEffect{ private _fn: any; deps = []; active = true onStop?:()=> void public scheduler: Function | undefined; constructor(fn,scheduler?: Function){ this._fn = fn; this.scheduler = scheduler; } ...
7
RobolabGs2/mememaker
e776fe9
src/ui/inputs/text_settings_input.ts
TypeScript
www.github.com/RobolabGs2/mememaker/tree/main/src/ui/inputs/text_settings_input.ts
https://raw.githubusercontent.com/RobolabGs2/mememaker/e776fe9/src/ui/inputs/text_settings_input.ts
RobolabGs2/mememaker e776fe9 src/ui/inputs/text_settings_input.ts
true
200
1,738
import * as HTML from "../../html"; import { PatchData, ChangedData, getValueByPath } from "../../patch"; import { TextStylePrototype } from "../../text_style"; import { ObjectInputComponent, Input } from "./input_component"; import { Selector } from "./selector"; import { SwitchButton } from "./switch_button"; import ...
1
EltonWhybrow/stranger-things-quiz
b4b3b2c
src/app/shared/my-dialog/my-dialog.component.ts
TypeScript
www.github.com/EltonWhybrow/stranger-things-quiz/tree/main/src/app/shared/my-dialog/my-dialog.component.ts
https://raw.githubusercontent.com/EltonWhybrow/stranger-things-quiz/b4b3b2c/src/app/shared/my-dialog/my-dialog.component.ts
EltonWhybrow/stranger-things-quiz b4b3b2c src/app/shared/my-dialog/my-dialog.component.ts
true
200
478
import { Component, Inject } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; @Component({ selector: 'app-my-dialog', templateUrl: './my-dialog.component.html', styleUrls: ['./my-dialog.component.scss'] }) export class MyDialogComponent { constructor( public...
3
nahawandmanai/Angular-Microservices-internship-project
ad7dd6e
projects/mfe1/src/app/widgets/icons/icons.component.ts
TypeScript
www.github.com/nahawandmanai/Angular-Microservices-internship-project/tree/main/projects/mfe1/src/app/widgets/icons/icons.component.ts
https://raw.githubusercontent.com/nahawandmanai/Angular-Microservices-internship-project/ad7dd6e/projects/mfe1/src/app/widgets/icons/icons.component.ts
nahawandmanai/Angular-Microservices-internship-project ad7dd6e projects/mfe1/src/app/widgets/icons/icons.component.ts
true
200
1,738
import { Component, OnInit } from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; import {MatIconRegistry} from '@angular/material/icon'; import { MatDialog } from '@angular/material/dialog'; import { DialogComponent } from '../dialog/dialog.component'; import { NgbModal } from '@ng-bootstrap/n...
1
mysvit/server-cli
116295e
client/src/app/modules/user/user-profile/user-profile.module.ts
TypeScript
www.github.com/mysvit/server-cli/tree/main/client/src/app/modules/user/user-profile/user-profile.module.ts
https://raw.githubusercontent.com/mysvit/server-cli/116295e/client/src/app/modules/user/user-profile/user-profile.module.ts
mysvit/server-cli 116295e client/src/app/modules/user/user-profile/user-profile.module.ts
true
200
1,817
import { CommonModule } from '@angular/common' import { NgModule } from '@angular/core' import { ReactiveFormsModule } from '@angular/forms' import { MatButtonModule } from '@angular/material/button' import { MatExpansionModule } from '@angular/material/expansion' import { MatFormFieldModule } from '@angular/material/f...
2
ihebtrablsi/TS_Gateway
943a2dc
src/main/webapp/app/entities/ProductInventory/mouvement-stock/mouvement-stock-update.component.ts
TypeScript
www.github.com/ihebtrablsi/TS_Gateway/tree/main/src/main/webapp/app/entities/ProductInventory/mouvement-stock/mouvement-stock-update.component.ts
https://raw.githubusercontent.com/ihebtrablsi/TS_Gateway/943a2dc/src/main/webapp/app/entities/ProductInventory/mouvement-stock/mouvement-stock-update.component.ts
ihebtrablsi/TS_Gateway 943a2dc src/main/webapp/app/entities/ProductInventory/mouvement-stock/mouvement-stock-update.component.ts
true
200
3,988
import { Component, OnInit } from '@angular/core'; import { HttpResponse } from '@angular/common/http'; // eslint-disable-next-line @typescript-eslint/no-unused-vars import { FormBuilder, Validators } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { Observable } from 'rxjs'; import * as...
7
AndreyPesh/reap
8762b03
src/migrations/1683812706926-migration.ts
TypeScript
www.github.com/AndreyPesh/reap/tree/main/src/migrations/1683812706926-migration.ts
https://raw.githubusercontent.com/AndreyPesh/reap/8762b03/src/migrations/1683812706926-migration.ts
AndreyPesh/reap 8762b03 src/migrations/1683812706926-migration.ts
true
200
841
import { MigrationInterface, QueryRunner } from "typeorm"; export class Migration1683812706926 implements MigrationInterface { name = 'Migration1683812706926' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(`CREATE TABLE "user" ("id" uuid NOT NULL DEFAULT uuid_genera...
3
SatishPal786/nest_basic_project
36d0c40
src/app.module.ts
TypeScript
www.github.com/SatishPal786/nest_basic_project/tree/main/src/app.module.ts
https://raw.githubusercontent.com/SatishPal786/nest_basic_project/36d0c40/src/app.module.ts
SatishPal786/nest_basic_project 36d0c40 src/app.module.ts
true
200
416
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { MongooseConfigModule } from './common/mongoose/mongoose.module'; import { UserModule } from './application/user/user.module'; @Module({ imports: [MongooseConfigModule, UserM...
1
alexwing/MapPuzzle.gl
f9871cb
backend/src/routes/mapCreator.ts
TypeScript
www.github.com/alexwing/MapPuzzle.gl/tree/main/backend/src/routes/mapCreator.ts
https://raw.githubusercontent.com/alexwing/MapPuzzle.gl/f9871cb/backend/src/routes/mapCreator.ts
alexwing/MapPuzzle.gl f9871cb backend/src/routes/mapCreator.ts
true
200
6,321
import { MapGeneratorModel } from "../../../src/models/Interfaces"; import express, { Request, Response } from "express"; import Puzzles from "../models/puzzles"; import { connection } from "../server/database"; import { MapGenerator } from "../server/MapGenerator"; import path from "path"; import * as fs from "fs"; i...
2
J-Chan1602/frontend
f5d9a1e
actions/delete-list/index.ts
TypeScript
www.github.com/J-Chan1602/frontend/tree/main/actions/delete-list/index.ts
https://raw.githubusercontent.com/J-Chan1602/frontend/f5d9a1e/actions/delete-list/index.ts
J-Chan1602/frontend f5d9a1e actions/delete-list/index.ts
true
200
964
"use server"; import { auth } from "@clerk/nextjs"; import { InputType, ReturnType } from "./types"; import { db } from "@/lib/db"; import { revalidatePath } from "next/cache"; import { createSafeAction } from "@/lib/create-safe-action"; import { DeleteList } from "./schema"; const handler = async (data: InputType): ...
7
hoangbru/blulog
891dc5b
utils/format.ts
TypeScript
www.github.com/hoangbru/blulog/tree/main/utils/format.ts
https://raw.githubusercontent.com/hoangbru/blulog/891dc5b/utils/format.ts
hoangbru/blulog 891dc5b utils/format.ts
true
200
1,139
export const formatPrice = ( price: number, locale: string = "vi-VN", currency: string = "VND" ): string => { return new Intl.NumberFormat(locale, { style: "currency", currency: currency, minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(price); }; export const formatDate = ( da...
0
IagoMesquita/Traca-de-recados---NestJS
e940442
src/common/interceptors/simple-cache.interceptor.ts
TypeScript
www.github.com/IagoMesquita/Traca-de-recados---NestJS/tree/main/src/common/interceptors/simple-cache.interceptor.ts
https://raw.githubusercontent.com/IagoMesquita/Traca-de-recados---NestJS/e940442/src/common/interceptors/simple-cache.interceptor.ts
IagoMesquita/Traca-de-recados---NestJS e940442 src/common/interceptors/simple-cache.interceptor.ts
true
200
871
import { CallHandler, ExecutionContext, Injectable, NestInterceptor, } from '@nestjs/common'; import { Observable, of, tap } from 'rxjs'; @Injectable() export class SimpleCacheInteceptor implements NestInterceptor { private readonly cache = new Map(); intercept( context: ExecutionContext, next: Ca...
3
Ashutosh-Panda2004/ProjectAssignment-1-Version-1-AshutoshPanda
b9497a0
backend/node_modules/date-fns/differenceInMinutes.d.ts
TypeScript
www.github.com/Ashutosh-Panda2004/ProjectAssignment-1-Version-1-AshutoshPanda/tree/main/backend/node_modules/date-fns/differenceInMinutes.d.ts
https://raw.githubusercontent.com/Ashutosh-Panda2004/ProjectAssignment-1-Version-1-AshutoshPanda/b9497a0/backend/node_modules/date-fns/differenceInMinutes.d.ts
Ashutosh-Panda2004/ProjectAssignment-1-Version-1-AshutoshPanda b9497a0 backend/node_modules/date-fns/differenceInMinutes.d.ts
true
200
1,173
import type { DateArg, RoundingOptions } from "./types.js"; /** * The {@link differenceInMinutes} function options. */ export interface DifferenceInMinutesOptions extends RoundingOptions {} /** * @name differenceInMinutes * @category Minute Helpers * @summary Get the number of minutes between the given dates. * ...
1
AomDEV/social-commerce-api
74bbfd9
src/facebook/postback/confirm-order.postback.ts
TypeScript
www.github.com/AomDEV/social-commerce-api/tree/main/src/facebook/postback/confirm-order.postback.ts
https://raw.githubusercontent.com/AomDEV/social-commerce-api/74bbfd9/src/facebook/postback/confirm-order.postback.ts
AomDEV/social-commerce-api 74bbfd9 src/facebook/postback/confirm-order.postback.ts
true
200
1,153
import { IFacebookPostback } from "@/common/interfaces/facebook.interface"; import { Injectable } from "@nestjs/common"; import { FacebookWebhookEvent } from "@/common/types/facebook.type"; import { EActionPayload } from "@/common/types/payload.type" import { CartUsecase } from "@/order/usecase/cart.usecase"; import { ...
6
cossieB/meme-machine
ee2fe07
server/routers/_app.ts
TypeScript
www.github.com/cossieB/meme-machine/tree/main/server/routers/_app.ts
https://raw.githubusercontent.com/cossieB/meme-machine/ee2fe07/server/routers/_app.ts
cossieB/meme-machine ee2fe07 server/routers/_app.ts
true
200
470
import { router } from '../trpc'; import { commentRouter } from './comments'; import { followRouter } from './follows'; import { likesRouter } from './likes'; import { memeRouter } from './memes'; import { userRouter } from './users'; export const appRouter = router({ user: userRouter, meme: memeRouter, li...
5
abdullahzayed812/SHIPPING_DRIVER_MOBILE_APP
19872d4
src/redux/invoices/invoicesListSlice.ts
TypeScript
www.github.com/abdullahzayed812/SHIPPING_DRIVER_MOBILE_APP/tree/main/src/redux/invoices/invoicesListSlice.ts
https://raw.githubusercontent.com/abdullahzayed812/SHIPPING_DRIVER_MOBILE_APP/19872d4/src/redux/invoices/invoicesListSlice.ts
abdullahzayed812/SHIPPING_DRIVER_MOBILE_APP 19872d4 src/redux/invoices/invoicesListSlice.ts
true
200
1,313
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { INVOICES_LIST_URL_END_POINT } from '../../constants/urls'; import { getData } from '../../helpers/api'; import { AppDispatch } from '../store'; interface InvoicesListState { invoicesListLoading: boolean; invoicesList: []; } const initialState...
0
nickmonteleone/dsa-recursion
cec21f9
recursion/gather-strings/gatherStrings.ts
TypeScript
www.github.com/nickmonteleone/dsa-recursion/tree/main/recursion/gather-strings/gatherStrings.ts
https://raw.githubusercontent.com/nickmonteleone/dsa-recursion/cec21f9/recursion/gather-strings/gatherStrings.ts
nickmonteleone/dsa-recursion cec21f9 recursion/gather-strings/gatherStrings.ts
true
200
492
/** gatherStrings: given an object, return array of all the string values. */ function gatherStrings(obj: Record<string, any>): string[] { let output: string[] = []; for (const key in obj) { const value = obj[key]; if (typeof value === "string") { output.push(value); } else if (typeof value...
7
shippedbrain/shipped-brain-frontend
19a3590
src/app/directives/hashtag/hashtag.directive.ts
TypeScript
www.github.com/shippedbrain/shipped-brain-frontend/tree/main/src/app/directives/hashtag/hashtag.directive.ts
https://raw.githubusercontent.com/shippedbrain/shipped-brain-frontend/19a3590/src/app/directives/hashtag/hashtag.directive.ts
shippedbrain/shipped-brain-frontend 19a3590 src/app/directives/hashtag/hashtag.directive.ts
true
200
615
import { Directive, ElementRef, Input, OnInit } from '@angular/core'; @Directive({ selector: '[hashtag]', }) export class HashtagDirective implements OnInit { @Input() hashtagKey: string; @Input() hashtagValue: string; constructor(private elementRef: ElementRef) {} ngOnInit(): void { this...
3
NoxFly/angular-nest
bce63b7
back/src/modules/auth/auth.guard.ts
TypeScript
www.github.com/NoxFly/angular-nest/tree/main/back/src/modules/auth/auth.guard.ts
https://raw.githubusercontent.com/NoxFly/angular-nest/bce63b7/back/src/modules/auth/auth.guard.ts
NoxFly/angular-nest bce63b7 back/src/modules/auth/auth.guard.ts
true
200
3,073
import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common'; import { Request, Response } from 'express'; import { TokenType } from 'src/modules/_shared/interfaces/jwt.interfaces'; import { JwtTokenService } from 'src/modules/_shared/services/jwt.service'; import { UserDTO } fr...
4
Inun572/eshop-api
58626c5
app/routes/routes.ts
TypeScript
www.github.com/Inun572/eshop-api/tree/main/app/routes/routes.ts
https://raw.githubusercontent.com/Inun572/eshop-api/58626c5/app/routes/routes.ts
Inun572/eshop-api 58626c5 app/routes/routes.ts
true
200
621
import { Router } from 'express'; import authRoutes from '../routes/authRoutes'; import userRoutes from '../routes/userRoutes'; import categoryRoutes from '../routes/categoryRoutes'; import productRoutes from '../routes/productRoutes'; import cartRoutes from '../routes/cartRoutes'; import orderRoutes from '../rou...
1
cmmnct/cardGame_Update
f49999a
src/app/memorygame.component.ts
TypeScript
www.github.com/cmmnct/cardGame_Update/tree/main/src/app/memorygame.component.ts
https://raw.githubusercontent.com/cmmnct/cardGame_Update/f49999a/src/app/memorygame.component.ts
cmmnct/cardGame_Update f49999a src/app/memorygame.component.ts
true
200
1,935
import { Component } from '@angular/core'; import { CardService } from './services/card.service'; import { SoundService } from './services/sound.service'; import { Observable, timer, Subscription } from 'rxjs'; import { Card } from './models/card.model'; import { TimerService } from './services/timer.service'; import {...
2
ManorSailor/chatroom-sse
96719ed
src/server/app.ts
TypeScript
www.github.com/ManorSailor/chatroom-sse/tree/main/src/server/app.ts
https://raw.githubusercontent.com/ManorSailor/chatroom-sse/96719ed/src/server/app.ts
ManorSailor/chatroom-sse 96719ed src/server/app.ts
true
200
320
import express from "express"; import rootRoutes from "./routes/root.routes"; import userRoutes from "./routes/user.routes"; import chatroomRoutes from "./routes/chatroom.routes"; const app = express(); app.use(express.json()); app.use(rootRoutes); app.use(userRoutes); app.use(chatroomRoutes); export default app;
6