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
nawaj68/HRM
786e254
Forntend/src/app/feature/service/assettype.service.ts
TypeScript
www.github.com/nawaj68/HRM/tree/main/Forntend/src/app/feature/service/assettype.service.ts
https://raw.githubusercontent.com/nawaj68/HRM/786e254/Forntend/src/app/feature/service/assettype.service.ts
nawaj68/HRM 786e254 Forntend/src/app/feature/service/assettype.service.ts
true
200
1,950
import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { catchError, Observable } from 'rxjs'; import { HttpService } from 'src/app/core/services/http/http.service'; import { AssetType } from './../model/assettype.model'; const routePrefix = '/api/assettype'; ...
4
InctagramTeam/inctagram-front
2061b23
src/widgets/add-profile-photo/add-avatar-button/hooks/useAddAvatarButton.ts
TypeScript
www.github.com/InctagramTeam/inctagram-front/tree/main/src/widgets/add-profile-photo/add-avatar-button/hooks/useAddAvatarButton.ts
https://raw.githubusercontent.com/InctagramTeam/inctagram-front/2061b23/src/widgets/add-profile-photo/add-avatar-button/hooks/useAddAvatarButton.ts
InctagramTeam/inctagram-front 2061b23 src/widgets/add-profile-photo/add-avatar-button/hooks/useAddAvatarButton.ts
true
200
653
import { useTranslation } from '@/shared' import { toast } from '@/shared/ui/toast/use-toast' import { useUpdateAvatar } from '@/widgets/add-profile-photo/add-avatar-button/hooks/useUpdateAvatar' export const useAddAvatarButton = () => { const { t } = useTranslation() const { mutate: updateAvatar } = useUpdateAva...
7
IT21277054/QuickWorks
26d74c8
server/src/routes/admin.route.ts
TypeScript
www.github.com/IT21277054/QuickWorks/tree/main/server/src/routes/admin.route.ts
https://raw.githubusercontent.com/IT21277054/QuickWorks/26d74c8/server/src/routes/admin.route.ts
IT21277054/QuickWorks 26d74c8 server/src/routes/admin.route.ts
true
200
627
// routes/workerRoutes.ts import { Router } from 'express'; import workerController from '../controllers/admin.controller'; export const adminRoute = Router(); // adminRoute.get('/all', workerController.getAllNonPendingWorkers); adminRoute.get('/worker/:workerId', workerController.getWorkerById); adminRoute.post('/...
3
AndriiSerkhovetcDev/custom-directives
d206c50
src/app/directives/tooltip/tooltip.directive.ts
TypeScript
www.github.com/AndriiSerkhovetcDev/custom-directives/tree/main/src/app/directives/tooltip/tooltip.directive.ts
https://raw.githubusercontent.com/AndriiSerkhovetcDev/custom-directives/d206c50/src/app/directives/tooltip/tooltip.directive.ts
AndriiSerkhovetcDev/custom-directives d206c50 src/app/directives/tooltip/tooltip.directive.ts
true
200
1,569
import { Directive, ElementRef, HostListener, Input, OnInit, Renderer2 } from '@angular/core'; @Directive({ selector: '[appTooltip]', standalone: true }) export class TooltipDirective implements OnInit { @Input() appTooltip!: string; private tooltipElement!: HTMLDivElement; private isVisible: boolean = fals...
6
baanss/action-test
b9a0487
src/feedback/service/feedback.service.ts
TypeScript
www.github.com/baanss/action-test/tree/main/src/feedback/service/feedback.service.ts
https://raw.githubusercontent.com/baanss/action-test/b9a0487/src/feedback/service/feedback.service.ts
baanss/action-test b9a0487 src/feedback/service/feedback.service.ts
true
200
491
import { Injectable } from "@nestjs/common"; import { Feedback } from "@src/common/entity/feedback.entity"; import { FeedbackRepository } from "@src/feedback/repository/feedback.repository"; @Injectable() export class FeedbackService { constructor(private readonly feedbackRepository: FeedbackRepository) {} // 하나 ...
1
MamataYeul/AngularApp
3b7ca6f
angularapp/src/app/services/post.service.ts
TypeScript
www.github.com/MamataYeul/AngularApp/tree/main/angularapp/src/app/services/post.service.ts
https://raw.githubusercontent.com/MamataYeul/AngularApp/3b7ca6f/angularapp/src/app/services/post.service.ts
MamataYeul/AngularApp 3b7ca6f angularapp/src/app/services/post.service.ts
true
200
565
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { devAPIUrl } from 'src/environments/environment'; @Injectable({ providedIn: 'root' }) export class PostService { constructor(private httpClient: HttpClient) { } getPosts():Ob...
2
codeborne/translate-tool
1a2fc9d
src/editor/languageStats.test.ts
TypeScript
www.github.com/codeborne/translate-tool/tree/main/src/editor/languageStats.test.ts
https://raw.githubusercontent.com/codeborne/translate-tool/1a2fc9d/src/editor/languageStats.test.ts
codeborne/translate-tool 1a2fc9d src/editor/languageStats.test.ts
true
200
1,044
import {countChangedValues, totalKeys} from './languageStats' import {expect} from 'chai' describe('totalKeys', () => { it('counts total keys recursively', () => { const dict = totalKeys({t1: '1', t2: '2', t: {t3: '3', t4: '4', t: {t5: '5', t6: '6'}}}) expect(dict).to.deep.equal(6) expect(totalKeys({}))....
0
manhbv001/datn
c010883
api-server/src/modules/occupation/occupation.entity.ts
TypeScript
www.github.com/manhbv001/datn/tree/main/api-server/src/modules/occupation/occupation.entity.ts
https://raw.githubusercontent.com/manhbv001/datn/c010883/api-server/src/modules/occupation/occupation.entity.ts
manhbv001/datn c010883 api-server/src/modules/occupation/occupation.entity.ts
true
200
816
import { ApiProperty } from '@nestjs/swagger'; import BaseEntity from 'src/shared/entities/base.entity'; import { Utils } from 'src/utils/data.util'; import { BeforeInsert, BeforeUpdate, Column, Entity, ManyToMany, OneToMany, } from 'typeorm'; import { ApplicantProfile } from '../applicant-profile/applicant...
7
manimaranRadhakrishnan/TBIS
2d74afb
TBIS_SOURCE/TBIS_SOURCE/src/app/features/transactions/partrequest/partrequest.component.ts
TypeScript
www.github.com/manimaranRadhakrishnan/TBIS/tree/main/TBIS_SOURCE/TBIS_SOURCE/src/app/features/transactions/partrequest/partrequest.component.ts
https://raw.githubusercontent.com/manimaranRadhakrishnan/TBIS/2d74afb/TBIS_SOURCE/TBIS_SOURCE/src/app/features/transactions/partrequest/partrequest.component.ts
manimaranRadhakrishnan/TBIS 2d74afb TBIS_SOURCE/TBIS_SOURCE/src/app/features/transactions/partrequest/partrequest.component.ts
true
200
14,978
import { Component,Input,ViewChild, ElementRef } from '@angular/core'; import { AppGlobal } from '../../../services/appglobal.service'; import { ConfirmDialogService } from '../../../components/confirm-dialog/confirm-dialog.service'; import { Observable, Subject, scan } from 'rxjs'; import { TransactionService } from ...
3
nekimuntu/API
662de02
client/src/app/shared/paging-header/paging-header.component.ts
TypeScript
www.github.com/nekimuntu/API/tree/main/client/src/app/shared/paging-header/paging-header.component.ts
https://raw.githubusercontent.com/nekimuntu/API/662de02/client/src/app/shared/paging-header/paging-header.component.ts
nekimuntu/API 662de02 client/src/app/shared/paging-header/paging-header.component.ts
true
200
436
import { Component,Input } from '@angular/core'; @Component({ selector: 'app-paging-header', templateUrl: './paging-header.component.html', styleUrls: ['./paging-header.component.scss'] }) export class PagingHeaderComponent { //SECTION9 pagination header as a shared component //ne ps oublier de rajouter dans...
1
nedzelskiy/node-jwt-auth
1388274
webpack.config.ts
TypeScript
www.github.com/nedzelskiy/node-jwt-auth/tree/main/webpack.config.ts
https://raw.githubusercontent.com/nedzelskiy/node-jwt-auth/1388274/webpack.config.ts
nedzelskiy/node-jwt-auth 1388274 webpack.config.ts
true
200
973
import minimist from 'minimist'; import { normalize } from 'path'; import { Mode } from './interfaces'; import { Configuration as WebpackConfiguration } from 'webpack'; import nodeExternals from 'webpack-node-externals'; const args = minimist(process.argv.slice(2)); const MODE = args.mode === Mode.PRODUCTION ? Mode.PR...
7
datdevs/real-estate
244869f
src/app/core/services/uploader.service.ts
TypeScript
www.github.com/datdevs/real-estate/tree/main/src/app/core/services/uploader.service.ts
https://raw.githubusercontent.com/datdevs/real-estate/244869f/src/app/core/services/uploader.service.ts
datdevs/real-estate 244869f src/app/core/services/uploader.service.ts
true
200
1,090
import { Injectable, signal } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class UploaderService { progressMap = signal(new Map<string, { percent: number; success: boolean }>()); failedFiles = signal<string[]>([]); updateProgress(fileName: string, percent: number, success: boolean) { ...
3
Gavriloskii/Internet-Programming
36649db
chas4/exercises/2/2.ts
TypeScript
www.github.com/Gavriloskii/Internet-Programming/tree/main/chas4/exercises/2/2.ts
https://raw.githubusercontent.com/Gavriloskii/Internet-Programming/36649db/chas4/exercises/2/2.ts
Gavriloskii/Internet-Programming 36649db chas4/exercises/2/2.ts
true
200
251
console.log("Starting script..."); let godini: number = 21; const ime: string = "Filip"; function greet(person: string, age: number): string { return `Hello, my name is ${person} and I am ${age} years old.`; } console.log(greet(ime, godini));
1
sofiacabreraM/parcial2
190ef4a
DCA/src/services/getData.ts
TypeScript
www.github.com/sofiacabreraM/parcial2/tree/main/DCA/src/services/getData.ts
https://raw.githubusercontent.com/sofiacabreraM/parcial2/190ef4a/DCA/src/services/getData.ts
sofiacabreraM/parcial2 190ef4a DCA/src/services/getData.ts
true
200
488
export async function getData() { try { const data = await fetch(`https://catfact.ninja/fact`).then(res =>res.json()) console.log(data) return data } catch (error) { console.error(error) } } export async function getData2 () { try { const data2 = awai...
7
karlwernsman/DougDnD
1df963e
backend/server.ts
TypeScript
www.github.com/karlwernsman/DougDnD/tree/main/backend/server.ts
https://raw.githubusercontent.com/karlwernsman/DougDnD/1df963e/backend/server.ts
karlwernsman/DougDnD 1df963e backend/server.ts
true
200
1,070
import { Configuration, OpenAIApi } from "openai"; import express from "express"; const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration); const app = express(); const API_URL = process.env.API_URL || "http://localhost"; const PORT = process.env.PO...
3
hjjang511/WebCasset
2e45d97
webfrontend/src/app/component/chonbiangoai/chonbiangoai.component.ts
TypeScript
www.github.com/hjjang511/WebCasset/tree/main/webfrontend/src/app/component/chonbiangoai/chonbiangoai.component.ts
https://raw.githubusercontent.com/hjjang511/WebCasset/2e45d97/webfrontend/src/app/component/chonbiangoai/chonbiangoai.component.ts
hjjang511/WebCasset 2e45d97 webfrontend/src/app/component/chonbiangoai/chonbiangoai.component.ts
true
200
2,711
import { Component, Inject, OnInit } from '@angular/core'; import { HeaderComponent } from '../header/header.component'; import { FooterComponent } from '../footer/footer.component'; import { HeaderMixtapeComponent } from '../header-mixtape/header-mixtape.component'; import { Router, RouterModule } from '@angular/rout...
1
shmil111/myproject
f7dbeec
src/database/migrations/20240306createcommentstable.ts
TypeScript
www.github.com/shmil111/myproject/tree/main/src/database/migrations/20240306createcommentstable.ts
https://raw.githubusercontent.com/shmil111/myproject/f7dbeec/src/database/migrations/20240306createcommentstable.ts
shmil111/myproject f7dbeec src/database/migrations/20240306createcommentstable.ts
true
200
1,261
import { Knex } from 'knex'; export async function up(knex: Knex): Promise<void> { await knex.schema.createTable('comments', (table) => { table.increments('id').primary(); table.integer('postId').unsigned().notNullable(); table.integer('userId').unsigned().notNullable(); table.text('content').notNull...
7
maciej-trebacz/mavbot
a9ff60c
src/app.module.ts
TypeScript
www.github.com/maciej-trebacz/mavbot/tree/main/src/app.module.ts
https://raw.githubusercontent.com/maciej-trebacz/mavbot/a9ff60c/src/app.module.ts
maciej-trebacz/mavbot a9ff60c src/app.module.ts
true
200
834
import { Module, Logger } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { BotModule, BotService } from './bot'; import { SettingsModule } from './settings'; @Module({ imports: [...
3
lixiang4u/airplayTV-web
6ae744a
public/avp/src/avrender/pcm/AudioSourceBufferNode.d.ts
TypeScript
www.github.com/lixiang4u/airplayTV-web/tree/main/public/avp/src/avrender/pcm/AudioSourceBufferNode.d.ts
https://raw.githubusercontent.com/lixiang4u/airplayTV-web/6ae744a/public/avp/src/avrender/pcm/AudioSourceBufferNode.d.ts
lixiang4u/airplayTV-web 6ae744a public/avp/src/avrender/pcm/AudioSourceBufferNode.d.ts
true
200
969
import { AudioWorkletNodeObserver } from './audioWorklet/base/AudioWorkletNodeBase'; import { Data } from 'common/types/type'; export interface AudioSourceBufferNodeOptions extends AudioWorkletNodeOptions { isMainWorker?: boolean; } export default class AudioSourceBufferNode { private context; private obser...
7
willian-moreno/ignite-lab-04
d9cc813
src/app/use-cases/unread-notification/index.spec.ts
TypeScript
www.github.com/willian-moreno/ignite-lab-04/tree/main/src/app/use-cases/unread-notification/index.spec.ts
https://raw.githubusercontent.com/willian-moreno/ignite-lab-04/d9cc813/src/app/use-cases/unread-notification/index.spec.ts
willian-moreno/ignite-lab-04 d9cc813 src/app/use-cases/unread-notification/index.spec.ts
true
200
1,498
import { InMemoryNotificationsRepository } from '@test/app/repositories/in-memory-notifications-repository'; import { UnreadNotification } from '@app/use-cases/unread-notification'; import { Notification } from '@src/app/entities/notification'; import { NotificationNotFound } from '../errors/notification-not-found'; im...
1
Xblade9/Angular_14_Practices
5b7bd05
src/services/crud.service.ts
TypeScript
www.github.com/Xblade9/Angular_14_Practices/tree/main/src/services/crud.service.ts
https://raw.githubusercontent.com/Xblade9/Angular_14_Practices/5b7bd05/src/services/crud.service.ts
Xblade9/Angular_14_Practices 5b7bd05 src/services/crud.service.ts
true
200
1,007
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from 'src/environments/environment'; import { Users } from 'src/models/users'; @Injectable({ providedIn: 'root', }) export class CrudService { public apiUrl = env...
5
Tran-Duc-Viet/project3-selling-phone-web
85880c8
src/app/app.module.ts
TypeScript
www.github.com/Tran-Duc-Viet/project3-selling-phone-web/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Tran-Duc-Viet/project3-selling-phone-web/85880c8/src/app/app.module.ts
Tran-Duc-Viet/project3-selling-phone-web 85880c8 src/app/app.module.ts
true
200
4,040
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { initializeApp, provideFirebaseApp } from '@angular/fire/app'; import { getAuth, provideAuth } from '@ang...
3
KamilGrocholski/vue-start
3e29443
src/aipl/jokes-app/api/jokesApi.ts
TypeScript
www.github.com/KamilGrocholski/vue-start/tree/main/src/aipl/jokes-app/api/jokesApi.ts
https://raw.githubusercontent.com/KamilGrocholski/vue-start/3e29443/src/aipl/jokes-app/api/jokesApi.ts
KamilGrocholski/vue-start 3e29443 src/aipl/jokes-app/api/jokesApi.ts
true
200
792
export const JOKE_URL = 'https://api.chucknorris.io/jokes/random' as const export type Joke = { value: string id: string url: string } export type JokesPair = { joke1: Joke joke2: Joke } export type JokeVote = { votedAt: number for: Joke against: Joke } export type CastVoteData = { ...
7
thomasbarenghi/llego-delivery
1c11710
client/src/services/auth/register.service.ts
TypeScript
www.github.com/thomasbarenghi/llego-delivery/tree/main/client/src/services/auth/register.service.ts
https://raw.githubusercontent.com/thomasbarenghi/llego-delivery/1c11710/client/src/services/auth/register.service.ts
thomasbarenghi/llego-delivery 1c11710 client/src/services/auth/register.service.ts
true
200
460
import { mutationRequest } from '@/services/api.requests' import { type User, type Response } from '@/interfaces' import { Endpoints } from '@/utils/constants/endpoints.const' export const registerService = async (user: Omit<User, 'id'>): Promise<Response<Omit<User, 'id'>>> => { const response = await mutationReques...
1
LochiQF/ttvd
06066d6
src/Streamlink.ts
TypeScript
www.github.com/LochiQF/ttvd/tree/main/src/Streamlink.ts
https://raw.githubusercontent.com/LochiQF/ttvd/06066d6/src/Streamlink.ts
LochiQF/ttvd 06066d6 src/Streamlink.ts
true
200
2,065
import childProcess, { spawn } from 'child_process'; import util from 'util'; import path from 'path'; const exec = util.promisify(childProcess.exec); const VIDEO_QUALITIES = [ //'audio', '160p', '320p', '480p', '720p', '720p60', '1080p', '1080p60', 'best' ]; class Streamlink { ...
5
Abdelrahman120/Vacation-Rentals-Client-Side
a8d3e95
src/app/properties/properties.component.ts
TypeScript
www.github.com/Abdelrahman120/Vacation-Rentals-Client-Side/tree/main/src/app/properties/properties.component.ts
https://raw.githubusercontent.com/Abdelrahman120/Vacation-Rentals-Client-Side/a8d3e95/src/app/properties/properties.component.ts
Abdelrahman120/Vacation-Rentals-Client-Side a8d3e95 src/app/properties/properties.component.ts
true
200
1,726
import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { AdminServices } from '../services/admin-services.service'; import { SidebarComponent } from '../admin-dashboard/sidebar/sidebar.component'; import { CommonModule, DatePipe } from '@angular/common'; import { TruncatePipe } ...
3
jus1xd/summit-hack
d3a2eb2
src/store/services/messageService.ts
TypeScript
www.github.com/jus1xd/summit-hack/tree/main/src/store/services/messageService.ts
https://raw.githubusercontent.com/jus1xd/summit-hack/d3a2eb2/src/store/services/messageService.ts
jus1xd/summit-hack d3a2eb2 src/store/services/messageService.ts
true
200
1,440
// Need to use the React-specific entry point to import createApi import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; import { IDataMessage, IFullMessage } from "../../models/IMessage"; const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJiNWEyYjk5Mi1kZjYxLTQ4YjctODA0My04NGUwN2U2M...
1
HDraba/marvel-app-react-ts
4318f64
helper/fetchingCharacters.ts
TypeScript
www.github.com/HDraba/marvel-app-react-ts/tree/main/helper/fetchingCharacters.ts
https://raw.githubusercontent.com/HDraba/marvel-app-react-ts/4318f64/helper/fetchingCharacters.ts
HDraba/marvel-app-react-ts 4318f64 helper/fetchingCharacters.ts
true
200
1,086
import { getTotalNumOfCharacters } from './getTotalNumberOfCharacters'; import { PRIVATE_API_KEY, PUBLIC_API_KEY } from '../private/keys'; const md5 = require('md5'); // for URL let offset = 0; const ts = new Date().getTime(); const newhash = md5(ts + PRIVATE_API_KEY + PUBLIC_API_KEY); let characters: object[] = [];...
7
mnmhbbb/nest-strudy
5694dc4
src/auth/auth.service.ts
TypeScript
www.github.com/mnmhbbb/nest-strudy/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/mnmhbbb/nest-strudy/5694dc4/src/auth/auth.service.ts
mnmhbbb/nest-strudy 5694dc4 src/auth/auth.service.ts
true
200
3,433
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { UsersModel } from 'src/users/entities/users.entity'; import { ENV_JWT_SECRET, HASH_ROUNDS } from './const/auth.const'; import { UsersService } from 'src/users/users.service'; import * as bcrypt from 'b...
5
aura-nw/horoscope-v2
c0cb4ba
src/services/job/rename_event_with_event_partition.service.ts
TypeScript
www.github.com/aura-nw/horoscope-v2/tree/main/src/services/job/rename_event_with_event_partition.service.ts
https://raw.githubusercontent.com/aura-nw/horoscope-v2/c0cb4ba/src/services/job/rename_event_with_event_partition.service.ts
aura-nw/horoscope-v2 c0cb4ba src/services/job/rename_event_with_event_partition.service.ts
true
200
3,906
import Redis from 'ioredis'; import { Service } from '@ourparentcenter/moleculer-decorators-extended'; import { ServiceBroker } from 'moleculer'; import { Queue } from 'bullmq'; import BullableService, { QueueHandler, DEFAULT_PREFIX, } from '../../base/bullable.service'; import { BULL_JOB_NAME, SERVICE, Config } fr...
3
Cirodejesus/curso-typescript-fundamentos
603c259
src/12-functions.ts
TypeScript
www.github.com/Cirodejesus/curso-typescript-fundamentos/tree/main/src/12-functions.ts
https://raw.githubusercontent.com/Cirodejesus/curso-typescript-fundamentos/603c259/src/12-functions.ts
Cirodejesus/curso-typescript-fundamentos 603c259 src/12-functions.ts
true
200
1,050
(()=> { type Sizes = 's' | 'M' | 'L' | 'XL'; //Alias y Tipos Literales function createProductToJson( title: string, createdAt: Date, stock?: number, size?: Sizes ){ /*Código de la función*/ return { title, createdAt, stock, size } } c...
7
ubo-dev/edufree-app
6f61269
src/app/pages/student-profile/student-profile.component.ts
TypeScript
www.github.com/ubo-dev/edufree-app/tree/main/src/app/pages/student-profile/student-profile.component.ts
https://raw.githubusercontent.com/ubo-dev/edufree-app/6f61269/src/app/pages/student-profile/student-profile.component.ts
ubo-dev/edufree-app 6f61269 src/app/pages/student-profile/student-profile.component.ts
true
200
647
import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { AuthService } from 'src/app/services/auth.service'; import { UserService } from 'src/app/services/user.service'; @Component({ selector: 'app-student-profile', templateUrl: './student-profile.component.html', styleUrls:...
1
rcrombe/myBatideko
0df1c7f
intra_front/src/app/dashboard/administration/administration.component.ts
TypeScript
www.github.com/rcrombe/myBatideko/tree/main/intra_front/src/app/dashboard/administration/administration.component.ts
https://raw.githubusercontent.com/rcrombe/myBatideko/0df1c7f/intra_front/src/app/dashboard/administration/administration.component.ts
rcrombe/myBatideko 0df1c7f intra_front/src/app/dashboard/administration/administration.component.ts
true
200
1,985
import { Component, ViewChild, AfterViewInit, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators, ValidatorFn, AbstractControl } from '@angular/forms'; import { JwtHelperService } from '@auth0/angular-jwt'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Constants } ...
5
Josuerx12/Frota-CAP
4990fd2
src/provider/provider.service.ts
TypeScript
www.github.com/Josuerx12/Frota-CAP/tree/main/src/provider/provider.service.ts
https://raw.githubusercontent.com/Josuerx12/Frota-CAP/4990fd2/src/provider/provider.service.ts
Josuerx12/Frota-CAP 4990fd2 src/provider/provider.service.ts
true
200
2,950
import { BadRequestException, Injectable } from '@nestjs/common'; import { CreateProviderDto } from './dto/create-provider.dto'; import { UpdateProviderDto } from './dto/update-provider.dto'; import { PrismaService } from 'src/prisma.service'; import { IUser } from 'src/interfaces/User'; @Injectable() export class Pro...
3
ppsus-mpa/ppsus-ears-node
f9966c9
src/controllers/institution/InstitutionErrors.ts
TypeScript
www.github.com/ppsus-mpa/ppsus-ears-node/tree/main/src/controllers/institution/InstitutionErrors.ts
https://raw.githubusercontent.com/ppsus-mpa/ppsus-ears-node/f9966c9/src/controllers/institution/InstitutionErrors.ts
ppsus-mpa/ppsus-ears-node f9966c9 src/controllers/institution/InstitutionErrors.ts
true
200
779
import { BadRequestError, ConflictError, NotFoundError } from '../../helpers/http/AbstractHttpErrors'; export class NotFoundInstitutionError extends NotFoundError { constructor() { super('Nenhuma Instituição encontrada', 'Not Found all'); } } export class NotFoundOneInstitutionError extends NotFoundEr...
1
RANDRESS23/emazon
90bb961
src/app/features/admin/category/add-category/add-category.component.ts
TypeScript
www.github.com/RANDRESS23/emazon/tree/main/src/app/features/admin/category/add-category/add-category.component.ts
https://raw.githubusercontent.com/RANDRESS23/emazon/90bb961/src/app/features/admin/category/add-category/add-category.component.ts
RANDRESS23/emazon 90bb961 src/app/features/admin/category/add-category/add-category.component.ts
true
200
3,550
import { Component, Input, OnInit } from '@angular/core'; import { ADD_CATEGORY_BUTTON_TEXT, CATEGORY_SAVED_TEXT, DESCRIPTION_CATEGORY_TEXTAREA_LABEL, DESCRIPTION_CATEGORY_TEXTAREA_NAME, DESCRIPTION_CATEGORY_TEXTAREA_PLACEHOLDER, MAX_LENGTH_CATEGORY_DESCRIPTION_FIELD, MAX_LENGTH_CATEGORY_NAME_FIELD, NAME_CATEGORY_INPUT...
7
blockchain-certificates/explorer-lookup
7fc8b24
src/explorers/ethereum/etherscan.ts
TypeScript
www.github.com/blockchain-certificates/explorer-lookup/tree/main/src/explorers/ethereum/etherscan.ts
https://raw.githubusercontent.com/blockchain-certificates/explorer-lookup/7fc8b24/src/explorers/ethereum/etherscan.ts
blockchain-certificates/explorer-lookup 7fc8b24 src/explorers/ethereum/etherscan.ts
true
200
4,496
import request from '../../services/request'; import { stripHashPrefix } from '../../utils/stripHashPrefix'; import { buildTransactionServiceUrl } from '../../services/transaction-apis'; import { BLOCKCHAINS } from '../../constants/blockchains'; import { type TransactionData } from '../../models/transactionData'; impor...
5
rrajiv07/MachBees
62ac454
src/main/webapp/app/entities/project-category-master/project-category-master.service.ts
TypeScript
www.github.com/rrajiv07/MachBees/tree/main/src/main/webapp/app/entities/project-category-master/project-category-master.service.ts
https://raw.githubusercontent.com/rrajiv07/MachBees/62ac454/src/main/webapp/app/entities/project-category-master/project-category-master.service.ts
rrajiv07/MachBees 62ac454 src/main/webapp/app/entities/project-category-master/project-category-master.service.ts
true
200
1,638
import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { SERVER_API_URL } from 'app/app.constants'; import { createRequestOption } from 'app/shared/util/request-util'; import { IProjectCategoryMaster } from 'app/shared/mode...
3
AIESECGermany/polar
0f7fafe
PolarCRM-Frontend/src/app/recruitment/recruitment.component.ts
TypeScript
www.github.com/AIESECGermany/polar/tree/main/PolarCRM-Frontend/src/app/recruitment/recruitment.component.ts
https://raw.githubusercontent.com/AIESECGermany/polar/0f7fafe/PolarCRM-Frontend/src/app/recruitment/recruitment.component.ts
AIESECGermany/polar 0f7fafe PolarCRM-Frontend/src/app/recruitment/recruitment.component.ts
true
200
3,448
import { Component, OnInit, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { Recrui...
4
phenomenalamit/CS-AIMS-Console
31e9fe3
src/app/Service/marker-master.service.spec.ts
TypeScript
www.github.com/phenomenalamit/CS-AIMS-Console/tree/main/src/app/Service/marker-master.service.spec.ts
https://raw.githubusercontent.com/phenomenalamit/CS-AIMS-Console/31e9fe3/src/app/Service/marker-master.service.spec.ts
phenomenalamit/CS-AIMS-Console 31e9fe3 src/app/Service/marker-master.service.spec.ts
true
200
388
import { TestBed } from '@angular/core/testing'; import { MarkerMasterService } from './marker-master.service'; describe('MarkerMasterService', () => { let service: MarkerMasterService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(MarkerMasterService); }); it('shou...
1
ikbaleddiani/alx-backend-javascript
e1be542
0x04-TypeScript/task_1/js/main.ts
TypeScript
www.github.com/ikbaleddiani/alx-backend-javascript/tree/main/0x04-TypeScript/task_1/js/main.ts
https://raw.githubusercontent.com/ikbaleddiani/alx-backend-javascript/e1be542/0x04-TypeScript/task_1/js/main.ts
ikbaleddiani/alx-backend-javascript e1be542 0x04-TypeScript/task_1/js/main.ts
true
200
1,106
interface Teacher { readonly firstName: string; readonly lastName: string; fullTimeEmployee: boolean; yearsOfExperience?: number; location: string; [propName: string]: any; } interface Directors extends Teacher { numberOfReports: number; } interface printTeacherFunction { (firstName: string, la...
7
Sj-001/InkFinance
096c04b
test/__setup.test.ts
TypeScript
www.github.com/Sj-001/InkFinance/tree/main/test/__setup.test.ts
https://raw.githubusercontent.com/Sj-001/InkFinance/096c04b/test/__setup.test.ts
Sj-001/InkFinance 096c04b test/__setup.test.ts
true
200
394
import { expect } from "chai"; import { ethers, network } from "hardhat"; import { Contract, Signer } from "ethers"; import hre from "hardhat"; import { getEthersSigners } from "../scripts/helpers/contracts-helpers"; before(async () => { const [deployer, daoOwner, operator, signer1, signer2, auditor ] = await getEt...
6
martinwisor/Cart
7ce71c3
index.ts
TypeScript
www.github.com/martinwisor/Cart/tree/main/index.ts
https://raw.githubusercontent.com/martinwisor/Cart/7ce71c3/index.ts
martinwisor/Cart 7ce71c3 index.ts
true
200
527
import express, { Application, Request, Response } from "express"; import { itemRouter } from "./routes"; const app: Application = express(); const port = 3000; // We just created a server! app.use(express.json()); app.use(express.urlencoded({ extended: true })); // use function specifies if we are to use express a...
5
shanicegipson/ng-girls-todo
2f4bf83
src/app/input-button-unit/input-button-unit.component.ts
TypeScript
www.github.com/shanicegipson/ng-girls-todo/tree/main/src/app/input-button-unit/input-button-unit.component.ts
https://raw.githubusercontent.com/shanicegipson/ng-girls-todo/2f4bf83/src/app/input-button-unit/input-button-unit.component.ts
shanicegipson/ng-girls-todo 2f4bf83 src/app/input-button-unit/input-button-unit.component.ts
true
200
731
import { Component, Output, OnInit, EventEmitter } from '@angular/core'; @Component({ selector: 'app-input-button-unit', template: ` <input #inputElementRef [value]="title" (keyup.enter)="submitValue($event.target.value)"> <button ((click)="submitValue(inputElementRef.value)"> ...
2
houssemhannachi/esprit-infirmerie
0a378f6
front/src/app/core/services/specialist.service.ts
TypeScript
www.github.com/houssemhannachi/esprit-infirmerie/tree/main/front/src/app/core/services/specialist.service.ts
https://raw.githubusercontent.com/houssemhannachi/esprit-infirmerie/0a378f6/front/src/app/core/services/specialist.service.ts
houssemhannachi/esprit-infirmerie 0a378f6 front/src/app/core/services/specialist.service.ts
true
200
1,248
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {Observable} from 'rxjs'; import {Medicine} from '../../shared/models/Medicine'; import {MedicalRecord} from '../../shared/models/MedicalRecord'; import {Appointment} from '../../shared/models/Appointment'; import {User} f...
0
bbugh/factorio-spaceship-blueprint-generator
426d315
apps/se-spaceship-web/src/main.ts
TypeScript
www.github.com/bbugh/factorio-spaceship-blueprint-generator/tree/main/apps/se-spaceship-web/src/main.ts
https://raw.githubusercontent.com/bbugh/factorio-spaceship-blueprint-generator/426d315/apps/se-spaceship-web/src/main.ts
bbugh/factorio-spaceship-blueprint-generator 426d315 apps/se-spaceship-web/src/main.ts
true
200
371
import "./app.css"; import App from "./App.svelte"; import init from "image-to-blueprint"; const load = async () => { const startTime = performance.now(); await init(); const endTime = performance.now(); console.debug(`Call to wasm init took ${endTime - startTime} milliseconds`); new App({ target: docu...
3
StanEffy/bikery
3152a3c
src/zustand/stores/tripsStore.ts
TypeScript
www.github.com/StanEffy/bikery/tree/main/src/zustand/stores/tripsStore.ts
https://raw.githubusercontent.com/StanEffy/bikery/3152a3c/src/zustand/stores/tripsStore.ts
StanEffy/bikery 3152a3c src/zustand/stores/tripsStore.ts
true
200
1,000
import { create } from "zustand" import { Trip } from "../../store/actions/types" import { StationsStats } from "../../components/SingleStation/OtherStationStats" export type TTripsState = { tripsForActiveStation: Trip[] mostPopularStations: null | { departures: StationsStats returns: StationsStats } filteredT...
4
Jarda236/p2p-marketplace
abab75e
backend/src/controller/fundsAccountController.ts
TypeScript
www.github.com/Jarda236/p2p-marketplace/tree/main/backend/src/controller/fundsAccountController.ts
https://raw.githubusercontent.com/Jarda236/p2p-marketplace/abab75e/backend/src/controller/fundsAccountController.ts
Jarda236/p2p-marketplace abab75e backend/src/controller/fundsAccountController.ts
true
200
2,344
import { Router } from "express"; import { FundsAccountCreateSchema, FundsAccountUpdateSchema } from "../models/fundsAccountModels"; import { FundsAccountRepository } from "../repository"; import { handleErrorResp, handleOkResp } from "../utils"; import { ParamsWithIdSchema } from "../models/baseModels"; import { valid...
1
dimslaev/fullstack-template
1a4ccf5
lib/client/useAuth.ts
TypeScript
www.github.com/dimslaev/fullstack-template/tree/main/lib/client/useAuth.ts
https://raw.githubusercontent.com/dimslaev/fullstack-template/1a4ccf5/lib/client/useAuth.ts
dimslaev/fullstack-template 1a4ccf5 lib/client/useAuth.ts
true
200
2,224
import { useMutation } from "react-query"; import { UserWithoutPassword } from "@/lib/server/interfaces"; import { useLocalStorage } from "react-use"; import { TSignupSchema, TSigninSchema, TChangePasswordSchema, TResetPasswordSchema, } from "@/pages/api/auth/_schemas"; import { api } from "@/lib/client/api"; i...
7
hemedani/fresh-barg
a37e117
libs/bc/dbs/schemas/core/form_answer.ts
TypeScript
www.github.com/hemedani/fresh-barg/tree/main/libs/bc/dbs/schemas/core/form_answer.ts
https://raw.githubusercontent.com/hemedani/fresh-barg/a37e117/libs/bc/dbs/schemas/core/form_answer.ts
hemedani/fresh-barg a37e117 libs/bc/dbs/schemas/core/form_answer.ts
true
200
1,075
import { boolean, date, number, optional, RelationDataType, string, } from "../../deps.ts"; import { coreApp } from "../../../../../back/mod.ts"; import { RelationSortOrderType } from "../../deps.ts"; export const formAnswerPure = { order: number(), title: string(), is_approved: optional(boolean()), ...
2
henrywulff97/Webanwendungen
cdec2dc
Meilensten 3/Recordz/src/app/edit-album-modal/edit-album-modal.module.ts
TypeScript
www.github.com/henrywulff97/Webanwendungen/tree/main/Meilensten 3/Recordz/src/app/edit-album-modal/edit-album-modal.module.ts
https://raw.githubusercontent.com/henrywulff97/Webanwendungen/cdec2dc/Meilensten%203/Recordz/src/app/edit-album-modal/edit-album-modal.module.ts
henrywulff97/Webanwendungen cdec2dc Meilensten 3/Recordz/src/app/edit-album-modal/edit-album-modal.module.ts
true
200
439
import {NgModule} from '@angular/core'; import {IonicModule} from "@ionic/angular"; import {CommonModule} from "@angular/common"; import {FormsModule} from "@angular/forms"; import {EditAlbumModalComponent} from "./edit-album-modal.component"; @NgModule({ imports: [CommonModule, FormsModule, IonicModule], declarat...
5
yutakobayashidev/blockly-bot
a6316fa
apps/frontend/vite.config.ts
TypeScript
www.github.com/yutakobayashidev/blockly-bot/tree/main/apps/frontend/vite.config.ts
https://raw.githubusercontent.com/yutakobayashidev/blockly-bot/a6316fa/apps/frontend/vite.config.ts
yutakobayashidev/blockly-bot a6316fa apps/frontend/vite.config.ts
true
200
321
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import path from "path"; import svgr from "vite-plugin-svgr"; export default defineConfig({ server: { open: true, }, plugins: [react(),svgr()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, });...
3
chepash/react-burger
70c6ab1
src/services/actions/constructor-actions.ts
TypeScript
www.github.com/chepash/react-burger/tree/main/src/services/actions/constructor-actions.ts
https://raw.githubusercontent.com/chepash/react-burger/70c6ab1/src/services/actions/constructor-actions.ts
chepash/react-burger 70c6ab1 src/services/actions/constructor-actions.ts
true
200
1,543
import { v4 as uuidv4 } from 'uuid' import { TIngredient, TIngredientWithUUID } from '../types/data' export const ADD_INGREDIENT = 'ADD_INGREDIENT' export const DELETE_INGREDIENT = 'DELETE_INGREDIENT' export const EMPTY_CONSTRUCTOR = 'EMPTY_CONSTRUCTOR' export const MOVE_INGREDIENT = 'MOVE_INGREDIENT' interface IAddI...
0
Lakhdher/front_end_projet
8776363
src/app/pages/products/UI/accordion/directives/accordion-item.directive.ts
TypeScript
www.github.com/Lakhdher/front_end_projet/tree/main/src/app/pages/products/UI/accordion/directives/accordion-item.directive.ts
https://raw.githubusercontent.com/Lakhdher/front_end_projet/8776363/src/app/pages/products/UI/accordion/directives/accordion-item.directive.ts
Lakhdher/front_end_projet 8776363 src/app/pages/products/UI/accordion/directives/accordion-item.directive.ts
true
200
633
import {ContentChild, Directive, Input} from '@angular/core'; import {AccordionContent} from './accordion-content.directive'; import {AccordionHeader} from './accordion-header.directive'; import {AccordionTitle} from './accordion-title.directive'; @Directive({ selector: 'app-accordion-item', standalone: true, }) e...
4
ShaistaTanveer/MyShoppingApp
11ba0ce
src/app/manager/manager-sign-up/manager-sign-up.component.ts
TypeScript
www.github.com/ShaistaTanveer/MyShoppingApp/tree/main/src/app/manager/manager-sign-up/manager-sign-up.component.ts
https://raw.githubusercontent.com/ShaistaTanveer/MyShoppingApp/11ba0ce/src/app/manager/manager-sign-up/manager-sign-up.component.ts
ShaistaTanveer/MyShoppingApp 11ba0ce src/app/manager/manager-sign-up/manager-sign-up.component.ts
true
200
1,435
import { Component, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { AuthData } from '../auth-data.model'; import { AuthService } from '../auth.service'; @Component({ selector: 'app-manager-sign-up', templateUrl: './manager-sign-up.c...
6
IamHaque/Advent-of-Code-2024
2ae55e2
day_12/main.ts
TypeScript
www.github.com/IamHaque/Advent-of-Code-2024/tree/main/day_12/main.ts
https://raw.githubusercontent.com/IamHaque/Advent-of-Code-2024/2ae55e2/day_12/main.ts
IamHaque/Advent-of-Code-2024 2ae55e2 day_12/main.ts
true
200
4,465
import { evalResult } from '../utils.ts'; type Plot = { area: number; plant: string; visited: boolean; checks: string[]; region?: Record<Direction, [number, number][]> | null; }; type Garden = Plot[][]; type Direction = (typeof DIRECTIONS_NAME)[number]; const DIRECTIONS_NAME = ['UP', 'RIGHT', 'DOWN', 'LEFT'...
1
Maheshbiradar/Angular-Projects
7b58177
art-book-angular-intermediate-master/src/app/art-shopping-cart/shopping-cart-edit/shopping-cart-edit.component.ts
TypeScript
www.github.com/Maheshbiradar/Angular-Projects/tree/main/art-book-angular-intermediate-master/src/app/art-shopping-cart/shopping-cart-edit/shopping-cart-edit.component.ts
https://raw.githubusercontent.com/Maheshbiradar/Angular-Projects/7b58177/art-book-angular-intermediate-master/src/app/art-shopping-cart/shopping-cart-edit/shopping-cart-edit.component.ts
Maheshbiradar/Angular-Projects 7b58177 art-book-angular-intermediate-master/src/app/art-shopping-cart/shopping-cart-edit/shopping-cart-edit.component.ts
true
200
919
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { ArtMeterial } from 'src/app/models/art-material-model'; import { CartService } from 'src/app/services/cart.service'; @Component({ selector: 'app-shopping-cart-edit', templateUrl: './shopping-cart-edit.component.html', styleUrls: [...
7
wzp123321/vue-vite-template
da96d84
uniapp-vite-vue3-template/src/pages/energy-consumption/ec-detail-card/ec-detail-card.service.ts
TypeScript
www.github.com/wzp123321/vue-vite-template/tree/main/uniapp-vite-vue3-template/src/pages/energy-consumption/ec-detail-card/ec-detail-card.service.ts
https://raw.githubusercontent.com/wzp123321/vue-vite-template/da96d84/uniapp-vite-vue3-template/src/pages/energy-consumption/ec-detail-card/ec-detail-card.service.ts
wzp123321/vue-vite-template da96d84 uniapp-vite-vue3-template/src/pages/energy-consumption/ec-detail-card/ec-detail-card.service.ts
true
200
1,111
/* * @Author: yut * @Date: 2023-12-28 10:54:54 * @LastEditors: yut * @LastEditTime: 2023-12-29 11:06:18 * @Descripttion: */ import type { Common_ICodeName } from '@/api/model'; import { ref } from 'vue'; class EcsDetailCardService { //标签列表 private _tagList = ref<Common_ICodeName<string>[]>(); public get t...
5
nassirnasr/ICT-projectmanagementsystem
ad1f053
server/src/index.ts
TypeScript
www.github.com/nassirnasr/ICT-projectmanagementsystem/tree/main/server/src/index.ts
https://raw.githubusercontent.com/nassirnasr/ICT-projectmanagementsystem/ad1f053/server/src/index.ts
nassirnasr/ICT-projectmanagementsystem ad1f053 server/src/index.ts
true
200
980
// root of node js application import express from "express"; import helmet from "helmet"; import cors from "cors"; import dotenv from "dotenv"; import concurrently from "concurrently"; import bodyParser from "body-parser"; import morgan from "morgan"; import projectRoutes from "./routes/projectRoutes" import taskRout...
3
Mhemidhun/Imposters_Aura
1711218
backend/src/integration/authenticateService.ts
TypeScript
www.github.com/Mhemidhun/Imposters_Aura/tree/main/backend/src/integration/authenticateService.ts
https://raw.githubusercontent.com/Mhemidhun/Imposters_Aura/1711218/backend/src/integration/authenticateService.ts
Mhemidhun/Imposters_Aura 1711218 backend/src/integration/authenticateService.ts
true
200
657
import { UserModel } from "../models/user.model" // Check User Block export const isBlocked = async (userId: string): Promise<boolean> => { try{ const isBlock = await UserModel.findById(userId) if(isBlock?.isBlocked){ return true } return false }catch(error: unknown)...
0
phoenix-stark/prayoonorchid-api-nestjs
3508f4e
src/food-plant/food-plant.controller.ts
TypeScript
www.github.com/phoenix-stark/prayoonorchid-api-nestjs/tree/main/src/food-plant/food-plant.controller.ts
https://raw.githubusercontent.com/phoenix-stark/prayoonorchid-api-nestjs/3508f4e/src/food-plant/food-plant.controller.ts
phoenix-stark/prayoonorchid-api-nestjs 3508f4e src/food-plant/food-plant.controller.ts
true
200
1,993
import { Body, Controller, Delete, Get, HttpCode, Post, Put, Query, } from '@nestjs/common'; import { FoodPlantService } from './food-plant.service'; import { FoodPlantCreateInput } from './dto/food-plant-create.input'; import { FoodPlantUpdateInput } from './dto/food-plant-update.input'; import { FoodP...
2
marcinsobchuck/Trippin
00922f5
src/components/FormHero/FormHero.styled.ts
TypeScript
www.github.com/marcinsobchuck/Trippin/tree/main/src/components/FormHero/FormHero.styled.ts
https://raw.githubusercontent.com/marcinsobchuck/Trippin/00922f5/src/components/FormHero/FormHero.styled.ts
marcinsobchuck/Trippin 00922f5 src/components/FormHero/FormHero.styled.ts
true
200
838
import styled from 'styled-components'; import formHero from 'src/assets/images/formHero.jpg'; import { Breakpoint } from '../../enums/breakpoint.enum'; import { Logo } from '../Logo/Logo'; export const Wrapper = styled.div` display: flex; flex-direction: column; align-items: center; `; export const ImageWra...
6
bangumi/server-private
0f00b79
tests/utils.ts
TypeScript
www.github.com/bangumi/server-private/tree/main/tests/utils.ts
https://raw.githubusercontent.com/bangumi/server-private/0f00b79/tests/utils.ts
bangumi/server-private 0f00b79 tests/utils.ts
true
200
1,568
import * as path from 'node:path'; import fastifyView from '@fastify/view'; import type Ajv from 'ajv'; import addFormats from 'ajv-formats'; import type { FastifyServerOptions } from 'fastify'; import { fastify } from 'fastify'; import { Liquid } from 'liquidjs'; import type { IAuth } from '@app/lib/auth/index.ts'; ...
1
WilliamVSan/ChampionshipProj
e88a758
Frontend/ChampionshipApp/src/app/components/matches/matches-list/matches-list.component.ts
TypeScript
www.github.com/WilliamVSan/ChampionshipProj/tree/main/Frontend/ChampionshipApp/src/app/components/matches/matches-list/matches-list.component.ts
https://raw.githubusercontent.com/WilliamVSan/ChampionshipProj/e88a758/Frontend/ChampionshipApp/src/app/components/matches/matches-list/matches-list.component.ts
WilliamVSan/ChampionshipProj e88a758 Frontend/ChampionshipApp/src/app/components/matches/matches-list/matches-list.component.ts
true
200
3,067
import { Component, OnInit, TemplateRef } from '@angular/core'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; import { NgxSpinnerService } from 'ngx-spinner'; import { ToastrService } from 'ngx-toastr'; import { Match, MatchResponse } from 'src/app/models/Matches'; import { Player } from 'src/app/mo...
7
jackdbd/performance-audit
a5bed87
backend/src/dialogs.ts
TypeScript
www.github.com/jackdbd/performance-audit/tree/main/backend/src/dialogs.ts
https://raw.githubusercontent.com/jackdbd/performance-audit/a5bed87/backend/src/dialogs.ts
jackdbd/performance-audit a5bed87 backend/src/dialogs.ts
true
200
729
export interface ShowWebPageTestDialogConfig { summary: string test_ids: string[] } /** * Shows a custom dialog. * * @param {Object} config - A configuration object with summary, test IDs. * @return {void} * @see {@link https://developers.google.com/apps-script/guides/dialogs#custom_dialogs Custom dialogs} *...
5
dragenet/ai4devs3_task
189fb58
common/services/http/http.service.ts
TypeScript
www.github.com/dragenet/ai4devs3_task/tree/main/common/services/http/http.service.ts
https://raw.githubusercontent.com/dragenet/ai4devs3_task/189fb58/common/services/http/http.service.ts
dragenet/ai4devs3_task 189fb58 common/services/http/http.service.ts
true
200
846
import path from 'path'; export class HttpService { constructor(private readonly baseUrl: string = '', private readonly apiKey?: string) {} async get(url: string) { const response = await fetch(this.getUrl(url)); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } ...
3
huynhtruong01/blog_project
32d0218
src/utils/interface/blog_interface.ts
TypeScript
www.github.com/huynhtruong01/blog_project/tree/main/src/utils/interface/blog_interface.ts
https://raw.githubusercontent.com/huynhtruong01/blog_project/32d0218/src/utils/interface/blog_interface.ts
huynhtruong01/blog_project 32d0218 src/utils/interface/blog_interface.ts
true
200
317
// api export interface BlogData { _id?: string user?: any title: string description: string thumbnail: string content: string category: any likes?: number | any[] createdAt?: string updatedAt?: string } export interface BlogDataLike { blogId: string userId: string }
0
Veronika2811/WB-Smiayun.Veranika-Suppliers
3eafa21
frontend/src/ui/icons/index.ts
TypeScript
www.github.com/Veronika2811/WB-Smiayun.Veranika-Suppliers/tree/main/frontend/src/ui/icons/index.ts
https://raw.githubusercontent.com/Veronika2811/WB-Smiayun.Veranika-Suppliers/3eafa21/frontend/src/ui/icons/index.ts
Veronika2811/WB-Smiayun.Veranika-Suppliers 3eafa21 frontend/src/ui/icons/index.ts
true
200
524
export { AddIcon } from './AddIcon'; export { CalendarIcon } from './CalendarIcon'; export { CheckIcon } from './CheckIcon'; export { ChevronDownIcon } from './ChevronDownIcon'; export { ChevronUpIcon } from './ChevronUpIcon'; export { DocIcon } from './DocIcon'; export { EditIcon } from './EditIcon'; export { L...
2
TCC-DevSharks/BackEnd
21f4792
src/mala-maternidade/mala-maternidade.module.ts
TypeScript
www.github.com/TCC-DevSharks/BackEnd/tree/main/src/mala-maternidade/mala-maternidade.module.ts
https://raw.githubusercontent.com/TCC-DevSharks/BackEnd/21f4792/src/mala-maternidade/mala-maternidade.module.ts
TCC-DevSharks/BackEnd 21f4792 src/mala-maternidade/mala-maternidade.module.ts
true
200
476
import { Module } from '@nestjs/common'; import { MalaMaternidadeService } from './mala-maternidade.service'; import { MalaMaternidadeController } from './mala-maternidade.controller'; import { PrismaModule } from '../prisma/prisma.module'; import { PrismaService } from '../prisma/prisma.service'; @Module({ imports:...
4
bhupi29491/contact-manager-app
413b371
controllers/groupController.ts
TypeScript
www.github.com/bhupi29491/contact-manager-app/tree/main/controllers/groupController.ts
https://raw.githubusercontent.com/bhupi29491/contact-manager-app/413b371/controllers/groupController.ts
bhupi29491/contact-manager-app 413b371 controllers/groupController.ts
true
200
2,545
import { Request, Response } from "express"; import { validationResult } from "express-validator"; import GroupCollection from "../db/util/schemas/groupSchema"; import { IGroup } from "../db/util/models/IGroup"; import mongoose from "mongoose"; /** * @usage : Get all groups * @method : GET * @url : http://...
1
programadorisgod/API-REST-TYPESCRIPT
1cc13bd
src/middleware/validateBody.ts
TypeScript
www.github.com/programadorisgod/API-REST-TYPESCRIPT/tree/main/src/middleware/validateBody.ts
https://raw.githubusercontent.com/programadorisgod/API-REST-TYPESCRIPT/1cc13bd/src/middleware/validateBody.ts
programadorisgod/API-REST-TYPESCRIPT 1cc13bd src/middleware/validateBody.ts
true
200
355
import { NextFunction, Request, Response } from 'express' import { handlerError } from '../utils/handlerError' export const validateBody = (req:Request, res:Response, next:NextFunction) => { if (req.body && typeof req.body === 'object' && Object.keys(req.body).length > 0) { next() }else{ handlerError(null...
6
Mathusan/enrich-time-logger-api
e5ddf96
src/services/time/timeService.ts
TypeScript
www.github.com/Mathusan/enrich-time-logger-api/tree/main/src/services/time/timeService.ts
https://raw.githubusercontent.com/Mathusan/enrich-time-logger-api/e5ddf96/src/services/time/timeService.ts
Mathusan/enrich-time-logger-api e5ddf96 src/services/time/timeService.ts
true
200
997
import {createTimeEntryRepo , updateTimeEntryRepo , getCurrentProjectRepo} from '../../database/repository/time.repository' export interface timeCreateInputs { id : string, project : string } export const createTimeEntryService = async (timeInputs: timeCreateInputs)=> { try { const { ...
7
koakh/TypescriptReactMaterialUIAppShellBarcode
c01c768
src/app/state/reducer.ts
TypeScript
www.github.com/koakh/TypescriptReactMaterialUIAppShellBarcode/tree/main/src/app/state/reducer.ts
https://raw.githubusercontent.com/koakh/TypescriptReactMaterialUIAppShellBarcode/c01c768/src/app/state/reducer.ts
koakh/TypescriptReactMaterialUIAppShellBarcode c01c768 src/app/state/reducer.ts
true
200
1,602
export const initialState = { shellWidth: 0, counter: 0, person: { age: 0, firstName: '', lastName: '', }, }; // this infers State type from initialState object??? export type State = typeof initialState; export enum ActionTypes { setShellWidth = 'SET_SHELL_WIDTH', increment = 'INCREMENT', d...
3
vah7id/powerpuff-girls
7ef01fc
src/modules/program/interfaces.ts
TypeScript
www.github.com/vah7id/powerpuff-girls/tree/main/src/modules/program/interfaces.ts
https://raw.githubusercontent.com/vah7id/powerpuff-girls/7ef01fc/src/modules/program/interfaces.ts
vah7id/powerpuff-girls 7ef01fc src/modules/program/interfaces.ts
true
200
543
// interface (typing) export interface coverImage { medium: string | null; original: string | null; } export interface Program { name: string; summary: string; image?: coverImage; episodes?: Episode[]; id: string | null; } export interface Episode { idx: number; name: string; ...
0
TareHimself/cv-label
ed13edf
SourcePlugin.ts
TypeScript
www.github.com/TareHimself/cv-label/tree/main/SourcePlugin.ts
https://raw.githubusercontent.com/TareHimself/cv-label/ed13edf/SourcePlugin.ts
TareHimself/cv-label ed13edf SourcePlugin.ts
true
200
2,299
/* eslint-disable @typescript-eslint/no-unused-vars */ import { PluginBase } from '@electron-forge/plugin-base'; import { ForgeMultiHookMap, ResolvedForgeConfig, StartResult, ForgePlatform, ForgeArch, StartOptions } from '@electron-forge/shared-types'; import * as fs from 'fs'; import path from 'path'; import chalk fro...
5
akashhrawat80/Dashboard_Angular
eeecc8b
src/app/components/showdialog/showdialog.component.ts
TypeScript
www.github.com/akashhrawat80/Dashboard_Angular/tree/main/src/app/components/showdialog/showdialog.component.ts
https://raw.githubusercontent.com/akashhrawat80/Dashboard_Angular/eeecc8b/src/app/components/showdialog/showdialog.component.ts
akashhrawat80/Dashboard_Angular eeecc8b src/app/components/showdialog/showdialog.component.ts
true
200
896
import { Component, Inject } from '@angular/core'; import {MatDialog, MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog'; import { Person } from 'src/app/task/tables/tables.component'; @Component({ selector: 'app-showdialog', templateUrl: './showdialog.component.html', styleUrls: ['./showdialog.compo...
4
AlbertoCabreraJr/learn-through-ar-frontend
6b775f3
src/services/module/createModuleService.ts
TypeScript
www.github.com/AlbertoCabreraJr/learn-through-ar-frontend/tree/main/src/services/module/createModuleService.ts
https://raw.githubusercontent.com/AlbertoCabreraJr/learn-through-ar-frontend/6b775f3/src/services/module/createModuleService.ts
AlbertoCabreraJr/learn-through-ar-frontend 6b775f3 src/services/module/createModuleService.ts
true
200
554
import mongoose from 'mongoose' import Module from 'src/types/module' type Args = { db: typeof mongoose module: { moduleNumber: number title: string subtitle: string totalTopicsAndExam: number topics: mongoose.Types.ObjectId[] progress: number exam: mongoose.Types.ObjectId finished:...
1
NpoolPlatform/npool-cli
1c51079
src/store/frontend/orders/types.ts
TypeScript
www.github.com/NpoolPlatform/npool-cli/tree/main/src/store/frontend/orders/types.ts
https://raw.githubusercontent.com/NpoolPlatform/npool-cli/1c51079/src/store/frontend/orders/types.ts
NpoolPlatform/npool-cli 1c51079 src/store/frontend/orders/types.ts
true
200
2,508
import { Account } from '../accounts/types' import { Coin } from '../coins/types' import { Good } from '../goods/types' import { BaseRequest } from '../../base' interface OrderBase { ID: string AppID: string CouponID: string DiscountCouponID: string Start: number End: number GoodID: string Units: numbe...
6
Tayyam/cleanone
824060f
src/stores/pilgrimGuide/actions/deleteActions.ts
TypeScript
www.github.com/Tayyam/cleanone/tree/main/src/stores/pilgrimGuide/actions/deleteActions.ts
https://raw.githubusercontent.com/Tayyam/cleanone/824060f/src/stores/pilgrimGuide/actions/deleteActions.ts
Tayyam/cleanone 824060f src/stores/pilgrimGuide/actions/deleteActions.ts
true
200
4,342
import { doc, deleteDoc, getDoc, writeBatch, collection, getDocs, query, where } from 'firebase/firestore'; import { firestore } from '../../../lib/firebase/config'; import { PilgrimGuideState } from '../types'; import { COLLECTIONS } from '../constants'; import { checkPilgrimAccommodation } from '../../../utils/accomm...
7
DanielVigano17/Hero-Code-Project
1d05f43
API/src/server.ts
TypeScript
www.github.com/DanielVigano17/Hero-Code-Project/tree/main/API/src/server.ts
https://raw.githubusercontent.com/DanielVigano17/Hero-Code-Project/1d05f43/API/src/server.ts
DanielVigano17/Hero-Code-Project 1d05f43 API/src/server.ts
true
200
700
import express, { Application, NextFunction, Request,Response } from 'express' import { UsersRoutes } from './routes/users.routes'; const app:Application = express() app.use(express.json()); app.use(express.urlencoded({ extended: true })); const usersRoutes = new UsersRoutes().getRoutes(); app.use('/users', usersRo...
5
bouakram/nest-students-managment
8d1d3cb
src/auth/auth.service.ts
TypeScript
www.github.com/bouakram/nest-students-managment/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/bouakram/nest-students-managment/8d1d3cb/src/auth/auth.service.ts
bouakram/nest-students-managment 8d1d3cb src/auth/auth.service.ts
true
200
1,020
import { faker } from '@faker-js/faker'; import { Injectable, NotFoundException } from '@nestjs/common'; import { Authenticate, Role } from './interface/Role'; import { AuthenticationDto } from './dto/authentictaion.dto'; import { sign } from 'jsonwebtoken'; @Injectable() export class AuthService { users = [ ...
3
Kwiket/jets-seatmap-angular-wrapper
ae897e6
projects/seatmap-angular-lib/src/lib/seatmap-angular-lib.service.spec.ts
TypeScript
www.github.com/Kwiket/jets-seatmap-angular-wrapper/tree/main/projects/seatmap-angular-lib/src/lib/seatmap-angular-lib.service.spec.ts
https://raw.githubusercontent.com/Kwiket/jets-seatmap-angular-wrapper/ae897e6/projects/seatmap-angular-lib/src/lib/seatmap-angular-lib.service.spec.ts
Kwiket/jets-seatmap-angular-wrapper ae897e6 projects/seatmap-angular-lib/src/lib/seatmap-angular-lib.service.spec.ts
true
200
414
import { TestBed } from '@angular/core/testing'; import { SeatmapAngularLibService } from './seatmap-angular-lib.service'; describe('SeatmapAngularLibService', () => { let service: SeatmapAngularLibService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SeatmapAngularLibS...
2
demyankov/kinopoisk
bc2a363
src/components/FiltersPopup/filtersPopupStyles.ts
TypeScript
www.github.com/demyankov/kinopoisk/tree/main/src/components/FiltersPopup/filtersPopupStyles.ts
https://raw.githubusercontent.com/demyankov/kinopoisk/bc2a363/src/components/FiltersPopup/filtersPopupStyles.ts
demyankov/kinopoisk bc2a363 src/components/FiltersPopup/filtersPopupStyles.ts
true
200
2,231
import styled from "@emotion/styled"; import { Breakpoints } from "../../enums/breakpoints"; export const PopupWrapper = styled.form` position: fixed; z-index: 9999; top: 0; right: -32rem; max-width: 32rem; border-bottom-left-radius: var(--spacing-7); border-top-left-radius: var(--spacing-7); backgroun...
0
sahilkumar6006/MERN-PROJECTS
fb8c364
chipin-mvp/src/features/product/useProducts.ts
TypeScript
www.github.com/sahilkumar6006/MERN-PROJECTS/tree/main/chipin-mvp/src/features/product/useProducts.ts
https://raw.githubusercontent.com/sahilkumar6006/MERN-PROJECTS/fb8c364/chipin-mvp/src/features/product/useProducts.ts
sahilkumar6006/MERN-PROJECTS fb8c364 chipin-mvp/src/features/product/useProducts.ts
true
200
369
import { getAllProducts } from "@/services/apiProducts"; import { useQuery } from "@tanstack/react-query"; export function useProducts() { const { isPending, data: products, error, } = useQuery({ queryKey: ["products"], queryFn: () => getAllProducts(), staleTime: 5 * 60000, }); return ...
4
Ninjaneer87/blockstarter-next
2ce8fd4
hooks/web3/useRefund.ts
TypeScript
www.github.com/Ninjaneer87/blockstarter-next/tree/main/hooks/web3/useRefund.ts
https://raw.githubusercontent.com/Ninjaneer87/blockstarter-next/2ce8fd4/hooks/web3/useRefund.ts
Ninjaneer87/blockstarter-next 2ce8fd4 hooks/web3/useRefund.ts
true
200
616
import { useWeb3Context } from "context/web3Context"; import { ethers } from "ethers"; import { useMutation, UseMutationOptions } from "react-query"; export type RefundParams = { campaignId: number; amount: string }; export const useRefund = ( options?: Omit< UseMutationOptions<unknown, unknown, RefundParams, u...
6
zenobiapanvelwalla/ticketing
aab2048
tickets/src/events/listeners/__test__/order-cancelled-listener.test.ts
TypeScript
www.github.com/zenobiapanvelwalla/ticketing/tree/main/tickets/src/events/listeners/__test__/order-cancelled-listener.test.ts
https://raw.githubusercontent.com/zenobiapanvelwalla/ticketing/aab2048/tickets/src/events/listeners/__test__/order-cancelled-listener.test.ts
zenobiapanvelwalla/ticketing aab2048 tickets/src/events/listeners/__test__/order-cancelled-listener.test.ts
true
200
1,309
import { natsWrapper } from "../../../nats-wrapper" import { OrderCancelledListener } from "../order-cancelled-listener" import { Ticket } from "../../../models/ticket"; import mongoose from "mongoose"; import { OrderCancelledEvent } from "@zenobiapanvelwala/common"; import { Message } from "node-nats-streaming"; cons...
1
reza22050/WikipediaSearch-Angular
df196fd
src/app/_services/wikipedia.service.ts
TypeScript
www.github.com/reza22050/WikipediaSearch-Angular/tree/main/src/app/_services/wikipedia.service.ts
https://raw.githubusercontent.com/reza22050/WikipediaSearch-Angular/df196fd/src/app/_services/wikipedia.service.ts
reza22050/WikipediaSearch-Angular df196fd src/app/_services/wikipedia.service.ts
true
200
489
import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class WikipediaService { constructor(private http: HttpClient) { } public onSearch(search: string) { return this.http.get('https://en.wikipedia.org/w/api.php'...
7
NguyenHiep2003/extreme-learning-be
6fc4dac
src/main.ts
TypeScript
www.github.com/NguyenHiep2003/extreme-learning-be/tree/main/src/main.ts
https://raw.githubusercontent.com/NguyenHiep2003/extreme-learning-be/6fc4dac/src/main.ts
NguyenHiep2003/extreme-learning-be 6fc4dac src/main.ts
true
200
1,300
import { HttpAdapterHost, NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { ConfigService } from '@nestjs/config'; import { Logger, ValidationPipe } from '@nestjs/common'; import { BusinessExceptionFilter } from './shared/exception-filters/business-exception'; import { BadRequestExce...
3
HardcoreMagazine/SelenicSparkApp_v2_Angular
fb02715
src/app/home/rules/rules.component.spec.ts
TypeScript
www.github.com/HardcoreMagazine/SelenicSparkApp_v2_Angular/tree/main/src/app/home/rules/rules.component.spec.ts
https://raw.githubusercontent.com/HardcoreMagazine/SelenicSparkApp_v2_Angular/fb02715/src/app/home/rules/rules.component.spec.ts
HardcoreMagazine/SelenicSparkApp_v2_Angular fb02715 src/app/home/rules/rules.component.spec.ts
true
200
572
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { HomeRulesComponent } from './rules.component'; describe('RulesComponent', () => { let component: HomeRulesComponent; let fixture: ComponentFixture<HomeRulesComponent>; beforeEach(() => { TestBed.configureTestingModule({ decla...
5
AlejandroNZ11/Sistema-enneto
e7a0e42
src/app/shared/models/paciente-alergia.ts
TypeScript
www.github.com/AlejandroNZ11/Sistema-enneto/tree/main/src/app/shared/models/paciente-alergia.ts
https://raw.githubusercontent.com/AlejandroNZ11/Sistema-enneto/e7a0e42/src/app/shared/models/paciente-alergia.ts
AlejandroNZ11/Sistema-enneto e7a0e42 src/app/shared/models/paciente-alergia.ts
true
200
616
export class pacienteAlergia{ clinicaId= 'D30C2D1E-E883-4B2D-818A-6813E15046E6'; usuarioId=''; pacienteId=''; alergiaId=''; observacion=''; estado=1; } export class updatePacienteAlergia{ clinicaId= "D30C2D1E-E883-4B2D-818A-6813E15046E6"; usuarioId= "" ; pacienteAlergiaId?= ""; alergiaId?= ""; o...
4
StevenVanBlerk/code-portfolio
d7819d4
src/app/_layout/helpers/useUniversalLayoutHandler/helpers/buildPercentageBasedDimensions.ts
TypeScript
www.github.com/StevenVanBlerk/code-portfolio/tree/main/src/app/_layout/helpers/useUniversalLayoutHandler/helpers/buildPercentageBasedDimensions.ts
https://raw.githubusercontent.com/StevenVanBlerk/code-portfolio/d7819d4/src/app/_layout/helpers/useUniversalLayoutHandler/helpers/buildPercentageBasedDimensions.ts
StevenVanBlerk/code-portfolio d7819d4 src/app/_layout/helpers/useUniversalLayoutHandler/helpers/buildPercentageBasedDimensions.ts
true
200
515
import { StrokeWidths } from "../../../types"; const buildPercentageBasedDimensions = (canvasWidth: number) => { const onePercentOfCanvas = canvasWidth / 100; const strokeWidths: StrokeWidths = { xxs: 0.02 * onePercentOfCanvas, xs: 0.05 * onePercentOfCanvas, sm: 0.1 * onePercentOfCanvas, md: 0.15 ...
2
someimportantcompany/lambda-edge-authorizers
6cabe0e
packages/lambda-private-site/page.ts
TypeScript
www.github.com/someimportantcompany/lambda-edge-authorizers/tree/main/packages/lambda-private-site/page.ts
https://raw.githubusercontent.com/someimportantcompany/lambda-edge-authorizers/6cabe0e/packages/lambda-private-site/page.ts
someimportantcompany/lambda-edge-authorizers 6cabe0e packages/lambda-private-site/page.ts
true
200
821
export function renderHomepage(): string { return /* HTML */ ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <meta name="robots" content="noindex, nofollow, nocache, noim...
0
Matd127/ManageMe
30b66ab
src/store/projectStore/project.reducer.ts
TypeScript
www.github.com/Matd127/ManageMe/tree/main/src/store/projectStore/project.reducer.ts
https://raw.githubusercontent.com/Matd127/ManageMe/30b66ab/src/store/projectStore/project.reducer.ts
Matd127/ManageMe 30b66ab src/store/projectStore/project.reducer.ts
true
200
1,850
import { Action } from '@ngrx/store'; import { ActionTypes, Add, Edit, Delete } from './project.action'; import Project from 'src/models/Project'; const dataFromLocalStorage = localStorage.getItem('projects') const existingData = dataFromLocalStorage && JSON.parse(dataFromLocalStorage) const projects : Project[] = ex...
6
profalexresende/ionic_appCep_validaFormulario
5a10be8
src/app/home/home.page.ts
TypeScript
www.github.com/profalexresende/ionic_appCep_validaFormulario/tree/main/src/app/home/home.page.ts
https://raw.githubusercontent.com/profalexresende/ionic_appCep_validaFormulario/5a10be8/src/app/home/home.page.ts
profalexresende/ionic_appCep_validaFormulario 5a10be8 src/app/home/home.page.ts
true
200
758
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'app-home', templateUrl: 'home.page.html', styleUrls: ['home.page.scss'], }) export class HomePage { dadosCEP: any; cep:string =''; exibirProgress:...
7
bilal-23/Emojica
f56f2ae
src/queries/profileQueries.ts
TypeScript
www.github.com/bilal-23/Emojica/tree/main/src/queries/profileQueries.ts
https://raw.githubusercontent.com/bilal-23/Emojica/f56f2ae/src/queries/profileQueries.ts
bilal-23/Emojica f56f2ae src/queries/profileQueries.ts
true
200
4,001
import { toast } from "react-toastify"; import axios, { AxiosError } from "axios"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { profile } from "@/types/user"; import { Post } from "@/types/post"; // get profile of current logged in user export const useGetProfileQuery = () =>...
1
ELProfessor67/go-mac
7b3c76d
apps/web/app/api/v1/events/verify-interview/[token]/route.ts
TypeScript
www.github.com/ELProfessor67/go-mac/tree/main/apps/web/app/api/v1/events/verify-interview/[token]/route.ts
https://raw.githubusercontent.com/ELProfessor67/go-mac/7b3c76d/apps/web/app/api/v1/events/verify-interview/%5Btoken%5D/route.ts
ELProfessor67/go-mac 7b3c76d apps/web/app/api/v1/events/verify-interview/[token]/route.ts
true
200
1,398
import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { apiProvider as apiConnector } from "@/mongo/index"; import { NextRequest, NextResponse } from "next/server"; import { getServerSession as unstable_getServerSession } from "next-auth/next"; async function connectDB() { try { const connect ...
5
DaviCecilio/e-commerce_courses
a718178
classroom/src/database/prisma/prisma.service.ts
TypeScript
www.github.com/DaviCecilio/e-commerce_courses/tree/main/classroom/src/database/prisma/prisma.service.ts
https://raw.githubusercontent.com/DaviCecilio/e-commerce_courses/a718178/classroom/src/database/prisma/prisma.service.ts
DaviCecilio/e-commerce_courses a718178 classroom/src/database/prisma/prisma.service.ts
true
200
542
import { PrismaClient } from '@prisma/client' import { Injectable, OnModuleInit, OnModuleDestroy, INestApplication, } from '@nestjs/common' @Injectable() export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy { constructor() { super() } async onModuleInit() { ...
3
seiyugh/aicom
abaa520
middleware.ts
TypeScript
www.github.com/seiyugh/aicom/tree/main/middleware.ts
https://raw.githubusercontent.com/seiyugh/aicom/abaa520/middleware.ts
seiyugh/aicom abaa520 middleware.ts
true
200
1,553
import { NextResponse } from "next/server"; import type { NextRequest } from "next/server"; export function middleware(request: NextRequest) { const path = request.nextUrl.pathname; // Define public paths that don't require authentication const isPublicPath = path === "/login"; // Get the token from the cook...
4
shivamshukla21/MyOTT
212e9cf
src/routes/list.ts
TypeScript
www.github.com/shivamshukla21/MyOTT/tree/main/src/routes/list.ts
https://raw.githubusercontent.com/shivamshukla21/MyOTT/212e9cf/src/routes/list.ts
shivamshukla21/MyOTT 212e9cf src/routes/list.ts
true
200
2,849
import express, { Request, Response } from 'express'; import List from '../models/list'; import NodeCache from 'node-cache'; const router = express.Router(); const cache = new NodeCache({ stdTTL: 100, checkperiod: 120 }); // Add a favorite TV show or movie to My List router.post('/add-favorite', async (req: Request, ...
2
LoganXav/KeniaAPI
53eed81
src/api/modules/classDivision/providers/ClassDivisionCreate.provider.ts
TypeScript
www.github.com/LoganXav/KeniaAPI/tree/main/src/api/modules/classDivision/providers/ClassDivisionCreate.provider.ts
https://raw.githubusercontent.com/LoganXav/KeniaAPI/53eed81/src/api/modules/classDivision/providers/ClassDivisionCreate.provider.ts
LoganXav/KeniaAPI 53eed81 src/api/modules/classDivision/providers/ClassDivisionCreate.provider.ts
true
200
829
import DbClient, { PrismaTransactionClient } from "~/infrastructure/internal/database"; import { ClassDivisionCreateRequestType } from "../types/ClassDivisionTypes"; import { InternalServerError } from "~/infrastructure/internal/exceptions/InternalServerError"; export default class ClassDivisionCreateProvider { publ...
6