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
braganetx/api-solid
ee83c11
src/http/controllers/gyms/nearby.spec.ts
TypeScript
www.github.com/braganetx/api-solid/tree/main/src/http/controllers/gyms/nearby.spec.ts
https://raw.githubusercontent.com/braganetx/api-solid/ee83c11/src/http/controllers/gyms/nearby.spec.ts
braganetx/api-solid ee83c11 src/http/controllers/gyms/nearby.spec.ts
true
200
1,755
import request from "supertest"; import { app } from "@/app"; import { afterAll, beforeAll, describe, expect, it } from "vitest"; import { createAndAuthenticateUser } from "@/ultils/create-end-authenticate-user"; describe('Nearby Gyms (e2e)', () => { beforeAll(async () => { await app.ready() }) aft...
4
Milos-24/FitnessAppFrontend
d59d1c7
src/app/auth.service.ts
TypeScript
www.github.com/Milos-24/FitnessAppFrontend/tree/main/src/app/auth.service.ts
https://raw.githubusercontent.com/Milos-24/FitnessAppFrontend/d59d1c7/src/app/auth.service.ts
Milos-24/FitnessAppFrontend d59d1c7 src/app/auth.service.ts
true
200
427
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Injectable({ providedIn: 'root', }) export class AuthService { private baseUrl = 'http://localhost:8080'; constructor(private http: HttpClient) {} login(username: string, password: string) { const user ...
1
felixzieger/sonnenhof-spiel
286532f
src/utils/animalUtils.ts
TypeScript
www.github.com/felixzieger/sonnenhof-spiel/tree/main/src/utils/animalUtils.ts
https://raw.githubusercontent.com/felixzieger/sonnenhof-spiel/286532f/src/utils/animalUtils.ts
felixzieger/sonnenhof-spiel 286532f src/utils/animalUtils.ts
true
200
336
import { AnimalType } from '../components/Game'; export const getAnimalName = (type: AnimalType['type']): string => { switch (type) { case 'cat': return 'Katze'; case 'chicken': return 'Huhn'; case 'pig': return 'Schwein'; case 'horse': return 'Pferd'; default: retur...
2
JaredReisinger/wordpressed
935d4cb
src/util/routes.ts
TypeScript
www.github.com/JaredReisinger/wordpressed/tree/main/src/util/routes.ts
https://raw.githubusercontent.com/JaredReisinger/wordpressed/935d4cb/src/util/routes.ts
JaredReisinger/wordpressed 935d4cb src/util/routes.ts
true
200
3,869
// helper functions for dealing with WordPress routes. /** * Analyze a WordPress REST API route path for any path variables. We use this * to help define what's needed when calling this route. * * TODO: Do we need something that also defines a general-purpose regexp that * matches a full path? * * @param route ...
3
AkshayGadekar/Node-Express-Sequelize-Boilerplate
6538913
models/User.ts
TypeScript
www.github.com/AkshayGadekar/Node-Express-Sequelize-Boilerplate/tree/main/models/User.ts
https://raw.githubusercontent.com/AkshayGadekar/Node-Express-Sequelize-Boilerplate/6538913/models/User.ts
AkshayGadekar/Node-Express-Sequelize-Boilerplate 6538913 models/User.ts
true
200
2,796
import { sequelize, DataTypes, Model, InferAttributes, InferCreationAttributes, CreationOptional } from './../config/sequelize' import bcrypt from 'bcryptjs' import jwt from 'jsonwebtoken' import { encrypt, randomString, getTokenPayload } from '../utils' import { jwt_secret, jwt_expire_access_token, jwt_expire_refresh_...
7
Pupinia/currency-converter
c21b3ef
src/stores/useCurrencyStore.ts
TypeScript
www.github.com/Pupinia/currency-converter/tree/main/src/stores/useCurrencyStore.ts
https://raw.githubusercontent.com/Pupinia/currency-converter/c21b3ef/src/stores/useCurrencyStore.ts
Pupinia/currency-converter c21b3ef src/stores/useCurrencyStore.ts
true
200
840
import { defineStore } from "pinia"; import axios from "axios"; import { CURRENCY } from "@/constants/currency"; export const useCurrencyStore = defineStore("currency", { state: () => ({ currentCurrency: CURRENCY.RUB as CURRENCY, currencies: [CURRENCY.RUB, CURRENCY.EUR, CURRENCY.USD] as CURRENCY[], curr...
6
pensoft/awt2-article-backoffice-client
519f8f8
src/app/core/models/user.model.ts
TypeScript
www.github.com/pensoft/awt2-article-backoffice-client/tree/main/src/app/core/models/user.model.ts
https://raw.githubusercontent.com/pensoft/awt2-article-backoffice-client/519f8f8/src/app/core/models/user.model.ts
pensoft/awt2-article-backoffice-client 519f8f8 src/app/core/models/user.model.ts
true
200
510
import { AuthModel } from '@core/models/auth.model'; import { IRole, IRoleData } from '../../backoffice/users/interfaces/roles.interface'; export class UserModel extends AuthModel { id: number; username: string; password: string; fullname: string; email: string; pic?: string; name?: string; role?: IRol...
4
Team-Lecue/Lecue-Client
ca42e80
src/Splash/hook/useGetNoteNum.ts
TypeScript
www.github.com/Team-Lecue/Lecue-Client/tree/main/src/Splash/hook/useGetNoteNum.ts
https://raw.githubusercontent.com/Team-Lecue/Lecue-Client/ca42e80/src/Splash/hook/useGetNoteNum.ts
Team-Lecue/Lecue-Client ca42e80 src/Splash/hook/useGetNoteNum.ts
true
200
447
import { useQuery } from 'react-query'; import { useNavigate } from 'react-router-dom'; import getNoteNum from '../api/getNoteNum'; const useGetNoteNum = () => { const navigate = useNavigate(); const { isLoading, data } = useQuery({ queryKey: ['get-note-num'], queryFn: () => getNoteNum(), onError: () ...
5
Luke265/tuya-local
81bf2a8
packages/tuya-local/src/lib/tuya-local.ts
TypeScript
www.github.com/Luke265/tuya-local/tree/main/packages/tuya-local/src/lib/tuya-local.ts
https://raw.githubusercontent.com/Luke265/tuya-local/81bf2a8/packages/tuya-local/src/lib/tuya-local.ts
Luke265/tuya-local 81bf2a8 packages/tuya-local/src/lib/tuya-local.ts
true
200
426
import { ITuyaLocal, Options } from './types.js'; import { TuyaLocal as TuyaLocal33 } from './33/tuya-local.js'; import { TuyaLocal as TuyaLocal34 } from './34/tuya-local.js'; export function TuyaLocal(options: Options): ITuyaLocal { switch (options.version) { case '3.3': return new TuyaLocal33(options); ...
0
marcosdgi/pet-guard-backend
2c15e22
app/models/mascota.ts
TypeScript
www.github.com/marcosdgi/pet-guard-backend/tree/main/app/models/mascota.ts
https://raw.githubusercontent.com/marcosdgi/pet-guard-backend/2c15e22/app/models/mascota.ts
marcosdgi/pet-guard-backend 2c15e22 app/models/mascota.ts
true
200
965
import { DateTime } from 'luxon' import { BaseModel, column, hasOne } from '@adonisjs/lucid/orm' import TipoRaza from './tipo_raza.js' import type { HasOne } from '@adonisjs/lucid/types/relations' export default class Mascota extends BaseModel { @column({ isPrimary: true }) declare id: number @column.dateTime({ a...
1
davidmg512/ProyectoTienda
c6693ee
TiendaOnlineFrontend/src/app/login/login.component.ts
TypeScript
www.github.com/davidmg512/ProyectoTienda/tree/main/TiendaOnlineFrontend/src/app/login/login.component.ts
https://raw.githubusercontent.com/davidmg512/ProyectoTienda/c6693ee/TiendaOnlineFrontend/src/app/login/login.component.ts
davidmg512/ProyectoTienda c6693ee TiendaOnlineFrontend/src/app/login/login.component.ts
true
200
4,565
import { Component } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { UserServiceTsService } from 'src/app/services/user.service.ts.service'; import { Router } from '@angular/router'; import axios from 'axios'; import { TranslateService } from '@ngx-translate/core'; im...
3
Kareem-24/POS-Frontend
890c5ab
src/app/shared/components/image-uploader/image-uploader.component.ts
TypeScript
www.github.com/Kareem-24/POS-Frontend/tree/main/src/app/shared/components/image-uploader/image-uploader.component.ts
https://raw.githubusercontent.com/Kareem-24/POS-Frontend/890c5ab/src/app/shared/components/image-uploader/image-uploader.component.ts
Kareem-24/POS-Frontend 890c5ab src/app/shared/components/image-uploader/image-uploader.component.ts
true
200
1,527
import { CommonModule } from '@angular/common'; import { Component, EventEmitter, Output } from '@angular/core'; import { MatIconModule} from '@angular/material/icon'; import { MatFormFieldModule } from '@angular/material/form-field'; const deleteIcon = 'src/assets/icons/delete.svg'; @Component({ selector: 'app-image...
7
abehan7/crowd-starter
83250dd
src/routes/image.ts
TypeScript
www.github.com/abehan7/crowd-starter/tree/main/src/routes/image.ts
https://raw.githubusercontent.com/abehan7/crowd-starter/83250dd/src/routes/image.ts
abehan7/crowd-starter 83250dd src/routes/image.ts
true
200
362
import express from "express"; import multer from "multer"; const multerSingle = multer(); import { uploadImage } from "../controller/image"; import { authWallet } from "../middleware/authWallet"; const router = express.Router(); // router.get("/:id", getImage); router.post("/", authWallet, multerSingle.single("image...
2
core-admin/my-electron-vite-template
8d6fb0c
src/main/window/login.ts
TypeScript
www.github.com/core-admin/my-electron-vite-template/tree/main/src/main/window/login.ts
https://raw.githubusercontent.com/core-admin/my-electron-vite-template/8d6fb0c/src/main/window/login.ts
core-admin/my-electron-vite-template 8d6fb0c src/main/window/login.ts
true
200
737
import { BrowserWindow } from 'electron'; import { getBaseConfig } from '../config/windows-config'; import { loadWinUrl } from '../utils/window'; import path from 'path'; let browserWindow: Nullable<BrowserWindow> = null; export function createLoginWindow() { browserWindow = new BrowserWindow( getBaseConfig({ ...
4
kagire/sensors-monitor
7bc4ad6
frontend/src/app/services/local-storage.service.ts
TypeScript
www.github.com/kagire/sensors-monitor/tree/main/frontend/src/app/services/local-storage.service.ts
https://raw.githubusercontent.com/kagire/sensors-monitor/7bc4ad6/frontend/src/app/services/local-storage.service.ts
kagire/sensors-monitor 7bc4ad6 frontend/src/app/services/local-storage.service.ts
true
200
475
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class LocalStorageService { constructor() { } public getItem(key: string): string | null { return localStorage.getItem(key); } public setItem(key: string, value: string): void { localStorage.setItem(key, valu...
6
rzndr/issp
65ef518
libs/auth/src/lib/components/error/error.component.ts
TypeScript
www.github.com/rzndr/issp/tree/main/libs/auth/src/lib/components/error/error.component.ts
https://raw.githubusercontent.com/rzndr/issp/65ef518/libs/auth/src/lib/components/error/error.component.ts
rzndr/issp 65ef518 libs/auth/src/lib/components/error/error.component.ts
true
200
333
import { Component } from '@angular/core'; import { RouterModule } from '@angular/router'; import { MaterialModule } from '@issp/common/ui/libraries'; @Component({ selector: 'issp-error', standalone: true, imports: [RouterModule, MaterialModule], templateUrl: './error.component.html', }) export class IsspError...
0
Micosilent/devspace
1fe72cd
client/src/app/loginSlice.ts
TypeScript
www.github.com/Micosilent/devspace/tree/main/client/src/app/loginSlice.ts
https://raw.githubusercontent.com/Micosilent/devspace/1fe72cd/client/src/app/loginSlice.ts
Micosilent/devspace 1fe72cd client/src/app/loginSlice.ts
true
200
4,900
import { createSlice } from "@reduxjs/toolkit"; import { Status } from "../util/types"; import { AuthLoginPostRequest, AuthSignupPostRequest, AuthenticationApi, Configuration, UsersApi, } from "../api"; import { AppThunk } from "./store"; interface loginState { loggedIn: boolean; status: Status; error:...
5
GlAutomationTestingRepo/Playwright-Frontend
ee6215e
ApplicationLogic/Components/Posters/Product/ReviewList.ts
TypeScript
www.github.com/GlAutomationTestingRepo/Playwright-Frontend/tree/main/ApplicationLogic/Components/Posters/Product/ReviewList.ts
https://raw.githubusercontent.com/GlAutomationTestingRepo/Playwright-Frontend/ee6215e/ApplicationLogic/Components/Posters/Product/ReviewList.ts
GlAutomationTestingRepo/Playwright-Frontend ee6215e ApplicationLogic/Components/Posters/Product/ReviewList.ts
true
200
394
import {BasePage} from "../../../Pages/BasePage"; export class ReviewList extends BasePage { constructor(page,container) { super (page,container); }; Elements ={ Customer:this.container.locator("(//div[@class='MuiTypography-root MuiTypography-body2 css-1wk3cmv'])[1]"), }; get getReviewListContainer(){ ret...
1
JoseFuentes21/Proyecto2Angular
2fca64f
src/app/modules/upcalendar/uploadfile/uploadfile.component.ts
TypeScript
www.github.com/JoseFuentes21/Proyecto2Angular/tree/main/src/app/modules/upcalendar/uploadfile/uploadfile.component.ts
https://raw.githubusercontent.com/JoseFuentes21/Proyecto2Angular/2fca64f/src/app/modules/upcalendar/uploadfile/uploadfile.component.ts
JoseFuentes21/Proyecto2Angular 2fca64f src/app/modules/upcalendar/uploadfile/uploadfile.component.ts
true
200
1,364
import { Component, OnInit } from '@angular/core'; import { FileService } from '../service/file.service'; import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper'; @Component({ selector: 'app-uploadfile', templateUrl: './uploadfile.component.html', styleUrls: ['./uploadfile.component.scss'] }) export class...
3
LerroG/fullstack-auth
b008170
src/app.module.ts
TypeScript
www.github.com/LerroG/fullstack-auth/tree/main/src/app.module.ts
https://raw.githubusercontent.com/LerroG/fullstack-auth/b008170/src/app.module.ts
LerroG/fullstack-auth b008170 src/app.module.ts
true
200
560
import { Module } from '@nestjs/common' import { ConfigModule } from '@nestjs/config' import { AuthModule } from './auth/auth.module' import { IS_DEV_ENV } from './libs/common/utils/is-dev.util' import { PrismaModule } from './prisma/prisma.module' import { UserModule } from './user/user.module' import { ProviderModul...
7
mirror-media/Lilith
0b6e680
packages/mirrordaily/lists/index.ts
TypeScript
www.github.com/mirror-media/Lilith/tree/main/packages/mirrordaily/lists/index.ts
https://raw.githubusercontent.com/mirror-media/Lilith/0b6e680/packages/mirrordaily/lists/index.ts
mirror-media/Lilith 0b6e680 packages/mirrordaily/lists/index.ts
true
200
821
import Post from './Post' import Tag from './Tag' import Category from './Category' import Audio from './Audio' import Contact from './Contact' import Video from './Video' import EditorChoice from './EditorChoice' import User from './User' import Section from './Section' import Image from './Image' import Partner from ...
6
KimotoYanke/tech-blog-webperf-observer
1aa2e80
src/usecase/monitoring-usecase.ts
TypeScript
www.github.com/KimotoYanke/tech-blog-webperf-observer/tree/main/src/usecase/monitoring-usecase.ts
https://raw.githubusercontent.com/KimotoYanke/tech-blog-webperf-observer/1aa2e80/src/usecase/monitoring-usecase.ts
KimotoYanke/tech-blog-webperf-observer 1aa2e80 src/usecase/monitoring-usecase.ts
true
200
843
import { Metric } from '../entity/entity'; import ObserverRepository from '../repository/observer-repository'; import ReporterRepository from '../repository/reporter-repository'; import UrlGeneratorRepository from '../repository/url-generator-repository'; export const monitoringUsecase = async ( urlGenerator: UrlGen...
2
BruceLuooo/so-yummy-back
2fdf9c2
src/middleware/validateToken.ts
TypeScript
www.github.com/BruceLuooo/so-yummy-back/tree/main/src/middleware/validateToken.ts
https://raw.githubusercontent.com/BruceLuooo/so-yummy-back/2fdf9c2/src/middleware/validateToken.ts
BruceLuooo/so-yummy-back 2fdf9c2 src/middleware/validateToken.ts
true
200
596
import jwt from 'jsonwebtoken'; import { Request, Response, NextFunction } from 'express'; interface JwtPayload { id?: string; } const validateToken = async ( req: Request, res: Response, next: NextFunction, ) => { const token = req.headers.authorization; if (!token) { return res.status(401).send('No token f...
4
LoTwT/exports-walker
5919233
tsup.config.ts
TypeScript
www.github.com/LoTwT/exports-walker/tree/main/tsup.config.ts
https://raw.githubusercontent.com/LoTwT/exports-walker/5919233/tsup.config.ts
LoTwT/exports-walker 5919233 tsup.config.ts
true
200
423
import { defineConfig } from "tsup" export default defineConfig([ { entry: ["./src/index.ts"], format: ["esm", "cjs"], target: "esnext", clean: true, dts: true, splitting: true, cjsInterop: true, }, { entry: ["./src/bin/index.ts"], format: ["cjs"], target: "esnext", ou...
0
pavan6357/MelodiStreaming
a9057f4
app/api/spotify/route.ts
TypeScript
www.github.com/pavan6357/MelodiStreaming/tree/main/app/api/spotify/route.ts
https://raw.githubusercontent.com/pavan6357/MelodiStreaming/a9057f4/app/api/spotify/route.ts
pavan6357/MelodiStreaming a9057f4 app/api/spotify/route.ts
true
200
2,297
import { NextRequest, NextResponse } from 'next/server'; import spotifyApi from '@/lib/spotify'; async function refreshAccessToken(refreshToken: string) { try { spotifyApi.setRefreshToken(refreshToken); const data = await spotifyApi.refreshAccessToken(); return data.body['access_token']; } catch (error...
1
kalyanAyyagari/threads_frontend
4dffc24
src/app/feature/auth/signup/signup.component.ts
TypeScript
www.github.com/kalyanAyyagari/threads_frontend/tree/main/src/app/feature/auth/signup/signup.component.ts
https://raw.githubusercontent.com/kalyanAyyagari/threads_frontend/4dffc24/src/app/feature/auth/signup/signup.component.ts
kalyanAyyagari/threads_frontend 4dffc24 src/app/feature/auth/signup/signup.component.ts
true
200
1,338
import { Component } from '@angular/core'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { MatInputModule } from '@angular/material/input'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { MatI...
3
ViacheslavRW/Rick-and-Morty-App
f67e788
app/hooks/useCharacter.ts
TypeScript
www.github.com/ViacheslavRW/Rick-and-Morty-App/tree/main/app/hooks/useCharacter.ts
https://raw.githubusercontent.com/ViacheslavRW/Rick-and-Morty-App/f67e788/app/hooks/useCharacter.ts
ViacheslavRW/Rick-and-Morty-App f67e788 app/hooks/useCharacter.ts
true
200
1,460
import { useMemo, useState } from "react"; import { useInfiniteQuery } from "@tanstack/react-query"; import { ICharacterAPI } from "../models/ICharacter"; import axios from "axios"; import { useDebounce } from "./useDebounce"; export const useCharacter = () => { const [search, setSearch] = useState(""); const [lif...
7
SoeLTun/mock-stocks
568d6ad
src/app/components/stocks-overview/stocks-overview.component.ts
TypeScript
www.github.com/SoeLTun/mock-stocks/tree/main/src/app/components/stocks-overview/stocks-overview.component.ts
https://raw.githubusercontent.com/SoeLTun/mock-stocks/568d6ad/src/app/components/stocks-overview/stocks-overview.component.ts
SoeLTun/mock-stocks 568d6ad src/app/components/stocks-overview/stocks-overview.component.ts
true
200
3,461
import { Component, OnDestroy, OnInit } from '@angular/core'; import { StockService } from '../../services/stock.service'; import { ActivatedRoute, Router } from '@angular/router'; import { Stock, TAG_ALL } from '../../stocks.models'; import { FormControl } from '@angular/forms'; import { ComboboxModel } from '@clr/ang...
6
osamaeshmilh/digital-dinar
c541b3a
src/main/webapp/app/entities/voucher-type/voucher-type-update.component.ts
TypeScript
www.github.com/osamaeshmilh/digital-dinar/tree/main/src/main/webapp/app/entities/voucher-type/voucher-type-update.component.ts
https://raw.githubusercontent.com/osamaeshmilh/digital-dinar/c541b3a/src/main/webapp/app/entities/voucher-type/voucher-type-update.component.ts
osamaeshmilh/digital-dinar c541b3a src/main/webapp/app/entities/voucher-type/voucher-type-update.component.ts
true
200
3,780
import { computed, defineComponent, inject, ref, type Ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRoute, useRouter } from 'vue-router'; import { useVuelidate } from '@vuelidate/core'; import VoucherTypeService from './voucher-type.service'; import { useValidation, useDateFormat } from '@/shared/c...
4
HomoDevus/alfa-test-task
95de4c4
src/features/artworks/arotwroksAPI.ts
TypeScript
www.github.com/HomoDevus/alfa-test-task/tree/main/src/features/artworks/arotwroksAPI.ts
https://raw.githubusercontent.com/HomoDevus/alfa-test-task/95de4c4/src/features/artworks/arotwroksAPI.ts
HomoDevus/alfa-test-task 95de4c4 src/features/artworks/arotwroksAPI.ts
true
200
1,305
import { JSONResponse } from './artworksAPITypes' enum URLS { ARTWORKS = 'https://api.artic.edu/api/v1/artworks', IMAGES = 'https://www.artic.edu/iiif/2/', } const QUERY_PARAMS = { fields: 'id,title,artist_display,image_id,alt_text,width,height,thumbnail', } export async function fetchArtworks(page: number, li...
2
Tyler-Hervey/urbangate-frontend
5eec422
middleware.ts
TypeScript
www.github.com/Tyler-Hervey/urbangate-frontend/tree/main/middleware.ts
https://raw.githubusercontent.com/Tyler-Hervey/urbangate-frontend/5eec422/middleware.ts
Tyler-Hervey/urbangate-frontend 5eec422 middleware.ts
true
200
508
// File: middleware.ts import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs"; import { NextResponse } from "next/server"; import type { NextRequest } from 'next/server' export async function middleware(req: NextRequest) { const res = NextResponse.next(); // Create a Supabase client configured to...
0
prawl/winona_todo_app
09ecfb2
web-client/src/app/modules/tasks/pages/task-list/task-list.component.ts
TypeScript
www.github.com/prawl/winona_todo_app/tree/main/web-client/src/app/modules/tasks/pages/task-list/task-list.component.ts
https://raw.githubusercontent.com/prawl/winona_todo_app/09ecfb2/web-client/src/app/modules/tasks/pages/task-list/task-list.component.ts
prawl/winona_todo_app 09ecfb2 web-client/src/app/modules/tasks/pages/task-list/task-list.component.ts
true
200
3,901
import { TasksService } from '../../services/tasks.service'; import { TodoItem } from '../../models/todoItem'; import { MatDialog } from '@angular/material/dialog'; import { AddTodoComponent } from '../../components/add-todo/add-todo.component'; import { ConfirmDeleteToDoComponent } from '../../components/confirm-delet...
3
newjersey/feedback-api
0f82e52
src/libs/google-sheets.test.ts
TypeScript
www.github.com/newjersey/feedback-api/tree/main/src/libs/google-sheets.test.ts
https://raw.githubusercontent.com/newjersey/feedback-api/0f82e52/src/libs/google-sheets.test.ts
newjersey/feedback-api 0f82e52 src/libs/google-sheets.test.ts
true
200
7,320
import { google } from 'googleapis'; import { getAuthClient, getLastNComments } from './google-sheets'; const MOCK_AUTHORIZE = jest.fn().mockResolvedValue(undefined); const MOCK_SHEETS = { spreadsheets: { values: { get: jest.fn(), append: jest.fn(), update: jest.fn() } } }; jest.mock('go...
7
ryokat3/wikipack
dfbb4bd
src/utils/proxyData.ts
TypeScript
www.github.com/ryokat3/wikipack/tree/main/src/utils/proxyData.ts
https://raw.githubusercontent.com/ryokat3/wikipack/dfbb4bd/src/utils/proxyData.ts
ryokat3/wikipack dfbb4bd src/utils/proxyData.ts
true
200
1,009
type Constructor = new (...args: any[]) => any export function addProxyProperty<Data extends { [key:string]:any },T extends Data>(obj:T, data:Data, prop:keyof Data):T { Object.defineProperty(obj, prop, { get: function() { return data[prop] }, set: function(x) { data[...
6
danghVo/SupEdu
8d1ef78
tailwind.config.ts
TypeScript
www.github.com/danghVo/SupEdu/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/danghVo/SupEdu/8d1ef78/tailwind.config.ts
danghVo/SupEdu 8d1ef78 tailwind.config.ts
true
200
1,771
import type { Config } from 'tailwindcss'; const config: Config = { content: [ './src/pages/**/*.{js,ts,jsx,tsx,mdx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}', './src/app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { backgroundImage: { 'gra...
2
chanwoo00106/React
857dc37
react-clean-architecture/src/infra/HttpClientImpl.ts
TypeScript
www.github.com/chanwoo00106/React/tree/main/react-clean-architecture/src/infra/HttpClientImpl.ts
https://raw.githubusercontent.com/chanwoo00106/React/857dc37/react-clean-architecture/src/infra/HttpClientImpl.ts
chanwoo00106/React 857dc37 react-clean-architecture/src/infra/HttpClientImpl.ts
true
200
588
import HttpClient, { RequestType } from '@/domain/base/HttpClient' import axios from 'axios' import { injectable } from 'inversify' import 'reflect-metadata' @injectable() class HttpClientImpl implements HttpClient { private httpClient constructor() { const httpClient = axios.create({ baseURL: 'http://localho...
4
Logeshcodes/HealthX-Backend
73625ea
userService/src/routes/userRoutes.ts
TypeScript
www.github.com/Logeshcodes/HealthX-Backend/tree/main/userService/src/routes/userRoutes.ts
https://raw.githubusercontent.com/Logeshcodes/HealthX-Backend/73625ea/userService/src/routes/userRoutes.ts
Logeshcodes/HealthX-Backend 73625ea userService/src/routes/userRoutes.ts
true
200
1,518
import { userController } from "../config/dependencyInjector"; import { Router } from "express"; import upload from "../helpers/multer"; import authenticateToken from "../helpers/UserAuthRoutes"; import { IsUser } from "../middleware/RoleBasedAuth"; import { IsUserBlocked } from "../middleware/blockedUsers"; const ro...
0
red-devil002/feedback-app
495b1a7
src/app/api/sign-up/route.ts
TypeScript
www.github.com/red-devil002/feedback-app/tree/main/src/app/api/sign-up/route.ts
https://raw.githubusercontent.com/red-devil002/feedback-app/495b1a7/src/app/api/sign-up/route.ts
red-devil002/feedback-app 495b1a7 src/app/api/sign-up/route.ts
true
200
3,032
import dbConnect from "@/lib/dbConnect"; import UserModel from "@/models/User.model"; import bcrypt from "bcryptjs" import { sendVerificationEmail } from "@/helpers/emailVarification.helper"; export async function POST(req: Request){ await dbConnect() try { const { username, email, password } = await ...
3
DayMartin/SoftwareCRM
40affaa
back/src/Server/controllers/marcaController.ts
TypeScript
www.github.com/DayMartin/SoftwareCRM/tree/main/back/src/Server/controllers/marcaController.ts
https://raw.githubusercontent.com/DayMartin/SoftwareCRM/40affaa/back/src/Server/controllers/marcaController.ts
DayMartin/SoftwareCRM 40affaa back/src/Server/controllers/marcaController.ts
true
200
4,577
import { Request, Response } from 'express'; import queryDatabase from '../database/queryPromise' import { Marca } from '../models/marca.interface'; import { Produto } from '../models/produto.interface'; // Função para buscar todos as Marca const marcaController = { getMarcas: async (_: Request, res: Response) => {...
7
JhonDavidHernandezCampus/componente
a01c8df
components/utils/calculateTaxes.ts
TypeScript
www.github.com/JhonDavidHernandezCampus/componente/tree/main/components/utils/calculateTaxes.ts
https://raw.githubusercontent.com/JhonDavidHernandezCampus/componente/a01c8df/components/utils/calculateTaxes.ts
JhonDavidHernandezCampus/componente a01c8df components/utils/calculateTaxes.ts
true
200
920
import { MultipleAttributes, ProductList } from "./../interface/productList"; export const calculateTaxes = ( tax: MultipleAttributes, product: ProductList, ) => { const subtotal = product.price! / (tax.percentage! / 100 + 1); // console.log(product) if (tax.isUnitAmount) { return tax.value ?? 0; } els...
6
iftifar-taz/jwtAuth
01e9903
jwtAuth-SPA/src/app/pages/login/login.component.ts
TypeScript
www.github.com/iftifar-taz/jwtAuth/tree/main/jwtAuth-SPA/src/app/pages/login/login.component.ts
https://raw.githubusercontent.com/iftifar-taz/jwtAuth/01e9903/jwtAuth-SPA/src/app/pages/login/login.component.ts
iftifar-taz/jwtAuth 01e9903 jwtAuth-SPA/src/app/pages/login/login.component.ts
true
200
1,607
import { Component, inject } from '@angular/core'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { MatIconModule } from '@angular/material/icon'; import { MatInputModule } from '@angular/material/input'; import { Router, RouterLink } from '@angular/router'; import { Au...
4
Ratanov/middle.messenger.praktikum.yandex
1322cd5
src/core/registerComponent.ts
TypeScript
www.github.com/Ratanov/middle.messenger.praktikum.yandex/tree/main/src/core/registerComponent.ts
https://raw.githubusercontent.com/Ratanov/middle.messenger.praktikum.yandex/1322cd5/src/core/registerComponent.ts
Ratanov/middle.messenger.praktikum.yandex 1322cd5 src/core/registerComponent.ts
true
200
1,496
import Handlebars, { HelperOptions } from 'handlebars'; import Block, { RefType } from './Block'; // eslint-disable-next-line interface BlockConstructable<Props extends object, R extends {}> { new (props: Props): Block<Props, R>; } export interface IChildren<Props extends object, R extends RefType> { component: B...
2
boostcampwm-2024/web07-Ask-It
8a2560f
apps/client/src/features/session/session.dto.ts
TypeScript
www.github.com/boostcampwm-2024/web07-Ask-It/tree/main/apps/client/src/features/session/session.dto.ts
https://raw.githubusercontent.com/boostcampwm-2024/web07-Ask-It/8a2560f/apps/client/src/features/session/session.dto.ts
boostcampwm-2024/web07-Ask-It 8a2560f apps/client/src/features/session/session.dto.ts
true
200
2,102
import { z } from 'zod'; import { UserSchema } from '@/features/session/session.type'; export const PostSessionRequestSchema = z.object({ title: z.string().min(1), }); export const PostSessionResponseSchema = z.object({ sessionId: z.string(), }); export const GetSessionsResponseSchema = z.object({ sessionData...
0
vladmir-ACE/connectum_v1
1b7c118
src/app/auth/auth.module.ts
TypeScript
www.github.com/vladmir-ACE/connectum_v1/tree/main/src/app/auth/auth.module.ts
https://raw.githubusercontent.com/vladmir-ACE/connectum_v1/1b7c118/src/app/auth/auth.module.ts
vladmir-ACE/connectum_v1 1b7c118 src/app/auth/auth.module.ts
true
200
726
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { AuthRoutingModule } from './auth-routing.module'; import { AuthComponent } from './auth.component'; import { LoginComponent } from './pages/login/login.component'; import { RegisterComponent } from './pages/register/regi...
3
Azaz234/5
7e76065
js/packages/common/src/contexts/meta/processMetaplexAccounts.ts
TypeScript
www.github.com/Azaz234/5/tree/main/js/packages/common/src/contexts/meta/processMetaplexAccounts.ts
https://raw.githubusercontent.com/Azaz234/5/7e76065/js/packages/common/src/contexts/meta/processMetaplexAccounts.ts
Azaz234/5 7e76065 js/packages/common/src/contexts/meta/processMetaplexAccounts.ts
true
200
6,989
import { AccountInfo, PublicKey } from '@solana/web3.js'; import { AuctionManagerV1, AuctionManagerV2, BidRedemptionTicket, decodeAuctionManager, decodeBidRedemptionTicket, decodeStore, isCreatorPartOfTheStore, MetaplexKey, Store, WhitelistedCreator, WhitelistedCreatorParser, Payout...
7
jeremyb20/plaquitas-cr
9adfbf7
src/app/common/guards/admin/admin.guard.ts
TypeScript
www.github.com/jeremyb20/plaquitas-cr/tree/main/src/app/common/guards/admin/admin.guard.ts
https://raw.githubusercontent.com/jeremyb20/plaquitas-cr/9adfbf7/src/app/common/guards/admin/admin.guard.ts
jeremyb20/plaquitas-cr 9adfbf7 src/app/common/guards/admin/admin.guard.ts
true
200
2,353
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, RouterStateSnapshot, Router, UrlTree, NavigationEnd } from '@angular/router'; import { Observable, filter } from 'rxjs'; import { ApiService } from '@services/api.service'; import { NotificationService } from '@services/notification.service'; ...
6
mharko24/PaymentDetails-using-Angular-.NET-Web-API
1e44698
src/app/payment-details/payment-details.component.ts
TypeScript
www.github.com/mharko24/PaymentDetails-using-Angular-.NET-Web-API/tree/main/src/app/payment-details/payment-details.component.ts
https://raw.githubusercontent.com/mharko24/PaymentDetails-using-Angular-.NET-Web-API/1e44698/src/app/payment-details/payment-details.component.ts
mharko24/PaymentDetails-using-Angular-.NET-Web-API 1e44698 src/app/payment-details/payment-details.component.ts
true
200
1,030
import { Component,OnInit } from '@angular/core'; import { PaymentDetailService } from '../shared/payment-detail.service'; import { PaymentDetail } from '../shared/payment-detail.model'; import { ToastrService } from 'ngx-toastr'; import { from } from 'rxjs'; @Component({ selector: 'app-payment-details', templateU...
4
hypnos-io/hypnos-api
76a5177
src/domain/use_cases/supervisor/FindById.ts
TypeScript
www.github.com/hypnos-io/hypnos-api/tree/main/src/domain/use_cases/supervisor/FindById.ts
https://raw.githubusercontent.com/hypnos-io/hypnos-api/76a5177/src/domain/use_cases/supervisor/FindById.ts
hypnos-io/hypnos-api 76a5177 src/domain/use_cases/supervisor/FindById.ts
true
200
410
import {ID} from '../../entities/common' import {ISupervisorService} from '../../ports/isupervisor_service' export class FindById { constructor(private readonly supervisorService: ISupervisorService) {} async execute(id: ID) { const foundSupervisor = await this.supervisorService.findById(id) if (!foundSup...
2
muitdebos/blender-d2tools
9652582
d2levels/src/router/index.ts
TypeScript
www.github.com/muitdebos/blender-d2tools/tree/main/d2levels/src/router/index.ts
https://raw.githubusercontent.com/muitdebos/blender-d2tools/9652582/d2levels/src/router/index.ts
muitdebos/blender-d2tools 9652582 d2levels/src/router/index.ts
true
200
639
import { createRouter, createWebHistory } from 'vue-router' import WorldSpaceView from '../views/WorldSpaceView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'WorldSpaceView', component: WorldSpaceView }, // { ...
7
Tiffinger-Thiel-GmbH/husky-rules
432e129
src/config.ts
TypeScript
www.github.com/Tiffinger-Thiel-GmbH/husky-rules/tree/main/src/config.ts
https://raw.githubusercontent.com/Tiffinger-Thiel-GmbH/husky-rules/432e129/src/config.ts
Tiffinger-Thiel-GmbH/husky-rules 432e129 src/config.ts
true
200
1,666
import { cosmiconfig } from 'cosmiconfig'; import { debug, error } from './log'; export interface JPCMConfig { branchRegexp: string; beforeGitmojiRegexp: string; commentChar: string; // Default comment char in the message allowEmptyCommitMessage: boolean; gitRoot: string; } const defaultConfig = { branchR...
6
Emily-38/E-Shop
aa69602
src/app.module.ts
TypeScript
www.github.com/Emily-38/E-Shop/tree/main/src/app.module.ts
https://raw.githubusercontent.com/Emily-38/E-Shop/aa69602/src/app.module.ts
Emily-38/E-Shop aa69602 src/app.module.ts
true
200
942
import { Module } from '@nestjs/common'; import { PrismaModule } from './prisma/prisma.module'; import { ConfigModule } from '@nestjs/config'; import { AuthModule } from './auth/auth.module'; import { EmailModule } from './email/email.module'; import { ProductModule } from './product/product.module'; import { StockMod...
0
YoungBeom90/maumlab-survey
1fa0a2a
src/app.module.ts
TypeScript
www.github.com/YoungBeom90/maumlab-survey/tree/main/src/app.module.ts
https://raw.githubusercontent.com/YoungBeom90/maumlab-survey/1fa0a2a/src/app.module.ts
YoungBeom90/maumlab-survey 1fa0a2a src/app.module.ts
true
200
394
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { maumlabDb } from 'src/config/db-connection-config'; import { SurveyModule } from 'src/domain/survey/survey.module'; import { AnswerModule } from 'src/domain/answer/answer.module'; @Module({ imports: [TypeOrmModule.forR...
2
NativeScript/ui-kit
dca883a
tools/demo/swift-ui/index.ts
TypeScript
www.github.com/NativeScript/ui-kit/tree/main/tools/demo/swift-ui/index.ts
https://raw.githubusercontent.com/NativeScript/ui-kit/dca883a/tools/demo/swift-ui/index.ts
NativeScript/ui-kit dca883a tools/demo/swift-ui/index.ts
true
200
1,246
import { DemoSharedBase } from '../utils'; import { UIDataDriver, registerSwiftUI, SwiftUI, SwiftUIEventData, WindowManager } from '@nativescript/swift-ui'; declare const BasicViewProvider: any; registerSwiftUI('basicView', (view) => new UIDataDriver(BasicViewProvider.alloc().init(), view)); interface CountData { ...
3
Badis8/annuaireAgence
ad220e0
agencydirectory-frontend/src/app/employe-card/employe-card.component.spec.ts
TypeScript
www.github.com/Badis8/annuaireAgence/tree/main/agencydirectory-frontend/src/app/employe-card/employe-card.component.spec.ts
https://raw.githubusercontent.com/Badis8/annuaireAgence/ad220e0/agencydirectory-frontend/src/app/employe-card/employe-card.component.spec.ts
Badis8/annuaireAgence ad220e0 agencydirectory-frontend/src/app/employe-card/employe-card.component.spec.ts
true
200
651
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { EmployeCardComponent } from './employe-card.component'; describe('EmployeCardComponent', () => { let component: EmployeCardComponent; let fixture: ComponentFixture<EmployeCardComponent>; beforeEach(async () => { await Test...
4
f1aring/maker_efficiency
608aa58
src/app/service/customer/customer.service.ts
TypeScript
www.github.com/f1aring/maker_efficiency/tree/main/src/app/service/customer/customer.service.ts
https://raw.githubusercontent.com/f1aring/maker_efficiency/608aa58/src/app/service/customer/customer.service.ts
f1aring/maker_efficiency 608aa58 src/app/service/customer/customer.service.ts
true
200
712
import { Injectable } from '@angular/core'; import { HttpClient, HttpParams, } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class CustomerService { private apiUrl = 'http://localhost:3000/customer/search'; constructor(private http: HttpClient) { } ...
7
HuyPham2409/Do-An
e45bfd7
emr/benh-an-emr/benh-an-tai-mui-hong/benh-an-tai-mui-hong.component.ts
TypeScript
www.github.com/HuyPham2409/Do-An/tree/main/emr/benh-an-emr/benh-an-tai-mui-hong/benh-an-tai-mui-hong.component.ts
https://raw.githubusercontent.com/HuyPham2409/Do-An/e45bfd7/emr/benh-an-emr/benh-an-tai-mui-hong/benh-an-tai-mui-hong.component.ts
HuyPham2409/Do-An e45bfd7 emr/benh-an-emr/benh-an-tai-mui-hong/benh-an-tai-mui-hong.component.ts
true
200
1,033
import { Component, OnInit, Input } from '@angular/core'; import {ReceptionService} from "../../../../services/reception.service"; import { BenhAnComponent } from '../benh-an.component'; import { EmrService } from '../../../../services/emr.service'; @Component({ selector: 'app-benh-an-tai-mui-hong', templateUrl: '...
0
Whoj01/Answer-q-backend
de6cff3
src/repositories/participants/change-is-allowed/prisma-change-is-allowed.ts
TypeScript
www.github.com/Whoj01/Answer-q-backend/tree/main/src/repositories/participants/change-is-allowed/prisma-change-is-allowed.ts
https://raw.githubusercontent.com/Whoj01/Answer-q-backend/de6cff3/src/repositories/participants/change-is-allowed/prisma-change-is-allowed.ts
Whoj01/Answer-q-backend de6cff3 src/repositories/participants/change-is-allowed/prisma-change-is-allowed.ts
true
200
781
import { prismaDB } from "../../../../prisma/db/prisma"; import { IChangeIsAllowedRepository, changeIsAllowedParams, } from "../../../controllers/participants/change-is-allowed/protocols"; export class PrismaChangeIsAllowedRepository implements IChangeIsAllowedRepository { async changeIsAllowed(params: changeI...
2
HogarStrashni/HydraCalc
6983ad1
src/lib/server/db-utils/mutations.ts
TypeScript
www.github.com/HogarStrashni/HydraCalc/tree/main/src/lib/server/db-utils/mutations.ts
https://raw.githubusercontent.com/HogarStrashni/HydraCalc/6983ad1/src/lib/server/db-utils/mutations.ts
HogarStrashni/HydraCalc 6983ad1 src/lib/server/db-utils/mutations.ts
true
200
2,552
import { db } from '@/database/db.server'; import { emailVerificationCodeTable, passwordResetTokenTable, usersTable } from '@/database/schema'; import { eq } from 'drizzle-orm'; import type { User } from '.'; export const createOAuthUser = async (id: string, email: string, password: string) => { await db.insert(use...
6
Haresh-thumar/Angular-Task-CRUD-with-Json-Server
a23d410
src/app/dashboard/dashboard-routing.module.ts
TypeScript
www.github.com/Haresh-thumar/Angular-Task-CRUD-with-Json-Server/tree/main/src/app/dashboard/dashboard-routing.module.ts
https://raw.githubusercontent.com/Haresh-thumar/Angular-Task-CRUD-with-Json-Server/a23d410/src/app/dashboard/dashboard-routing.module.ts
Haresh-thumar/Angular-Task-CRUD-with-Json-Server a23d410 src/app/dashboard/dashboard-routing.module.ts
true
200
740
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { OfficesComponent } from './offices/offices.component'; import { UserGroupManagementComponent } from './user-group-management/user-group-management.component'; import { UserManagementComponent } from './user-manage...
3
CamiloCastro/FrontEndMaterias
56000e2
src/app/pages/inscripcion/listar/listar.component.ts
TypeScript
www.github.com/CamiloCastro/FrontEndMaterias/tree/main/src/app/pages/inscripcion/listar/listar.component.ts
https://raw.githubusercontent.com/CamiloCastro/FrontEndMaterias/56000e2/src/app/pages/inscripcion/listar/listar.component.ts
CamiloCastro/FrontEndMaterias 56000e2 src/app/pages/inscripcion/listar/listar.component.ts
true
200
1,851
import { Component, OnInit } from '@angular/core'; import { Inscripcion } from '../../../modelos/inscripcion.model'; import { Materia } from '../../../modelos/materia.model'; import { EstudianteService } from '../../../servicios/estudiante.service'; import { InscripcionService } from '../../../servicios/inscripcion.ser...
7
aryan02420/PromptSleuth
e2dec4d
libs/core/src/lib/entity/tag.entity.ts
TypeScript
www.github.com/aryan02420/PromptSleuth/tree/main/libs/core/src/lib/entity/tag.entity.ts
https://raw.githubusercontent.com/aryan02420/PromptSleuth/e2dec4d/libs/core/src/lib/entity/tag.entity.ts
aryan02420/PromptSleuth e2dec4d libs/core/src/lib/entity/tag.entity.ts
true
200
1,452
import { BaseEntity } from "./base.entity.js"; type Category = "Perfect" | "Ok" | "Neutral" | "Bad"; const categoryIcon: Record<Category, string> = { Perfect: "👍", Ok: "👌", Neutral: "🤷", Bad: "👎", } as const; export class TagEntity extends BaseEntity { private _name: string; private _value: string; ...
0
EmilynnJ/boltSoulSeer
1a92b6d
supabase/functions/create-payment-intent/index.ts
TypeScript
www.github.com/EmilynnJ/boltSoulSeer/tree/main/supabase/functions/create-payment-intent/index.ts
https://raw.githubusercontent.com/EmilynnJ/boltSoulSeer/1a92b6d/supabase/functions/create-payment-intent/index.ts
EmilynnJ/boltSoulSeer 1a92b6d supabase/functions/create-payment-intent/index.ts
true
200
1,075
import { serve } from 'https://deno.land/std@0.168.0/http/server.ts'; import { stripe } from '../_shared/stripe.ts'; import { createClient } from 'https://esm.sh/@supabase/supabase-js@2.39.7'; serve(async (req) => { try { const { amount } = await req.json(); const supabase = createClient( Deno.env.get(...
6
Azrielx86/anime-chan
bd35359
src/app/anime/anime.page.ts
TypeScript
www.github.com/Azrielx86/anime-chan/tree/main/src/app/anime/anime.page.ts
https://raw.githubusercontent.com/Azrielx86/anime-chan/bd35359/src/app/anime/anime.page.ts
Azrielx86/anime-chan bd35359 src/app/anime/anime.page.ts
true
200
6,129
import { Component, OnInit } from '@angular/core'; import { async } from '@angular/core/testing'; import { ActivatedRoute } from '@angular/router'; import { AlertController } from '@ionic/angular'; import { IAnimeEpisodes, IAnimeFull, IAnimePictures, IAnimeStats, } from '@shineiichijo/marika'; import { EChartsO...
2
GDSC-CAU/PuangFilm-FE
e857317
src/utils/DownloadImage.ts
TypeScript
www.github.com/GDSC-CAU/PuangFilm-FE/tree/main/src/utils/DownloadImage.ts
https://raw.githubusercontent.com/GDSC-CAU/PuangFilm-FE/e857317/src/utils/DownloadImage.ts
GDSC-CAU/PuangFilm-FE e857317 src/utils/DownloadImage.ts
true
200
2,217
import { DownloadImageProps } from '@/interfaces'; export default async function DownloadImage({ colorOfCircle, imageSrc, frameWidth, frameHeight, }: DownloadImageProps) { const imgX = colorOfCircle === '/premiumframe2.png' ? 37 : 16; const imgY = colorOfCircle === '/premiumframe2.png' ? 37 : 16; try { ...
3
Sh4reef/remote-config-prisma
adfc5fd
src/utils.ts
TypeScript
www.github.com/Sh4reef/remote-config-prisma/tree/main/src/utils.ts
https://raw.githubusercontent.com/Sh4reef/remote-config-prisma/adfc5fd/src/utils.ts
Sh4reef/remote-config-prisma adfc5fd src/utils.ts
true
200
521
import { verify } from "jsonwebtoken"; import { Context } from "./context"; import { User } from "@prisma/client"; import { IncomingMessage } from "http"; import { JWT_ACCESS_SECRET } from "./variables"; export const getUser = (req: IncomingMessage): User => { const authorization = req.headers["authorization"]!; r...
7
YasirHussainTs/gov-guardian-app
fd7d6c2
govguardian_app/backend/src/main/webapp/app/entities/report-header/update/report-header-form.service.ts
TypeScript
www.github.com/YasirHussainTs/gov-guardian-app/tree/main/govguardian_app/backend/src/main/webapp/app/entities/report-header/update/report-header-form.service.ts
https://raw.githubusercontent.com/YasirHussainTs/gov-guardian-app/fd7d6c2/govguardian_app/backend/src/main/webapp/app/entities/report-header/update/report-header-form.service.ts
YasirHussainTs/gov-guardian-app fd7d6c2 govguardian_app/backend/src/main/webapp/app/entities/report-header/update/report-header-form.service.ts
true
200
3,982
import { Injectable } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import dayjs from 'dayjs/esm'; import { DATE_TIME_FORMAT } from 'app/config/input.constants'; import { IReportHeader, NewReportHeader } from '../report-header.model'; /** * A partial Type with required ke...
0
CoffeJeanCode/dejavu-cli
b02cda7
src/templates/component.template.ts
TypeScript
www.github.com/CoffeJeanCode/dejavu-cli/tree/main/src/templates/component.template.ts
https://raw.githubusercontent.com/CoffeJeanCode/dejavu-cli/b02cda7/src/templates/component.template.ts
CoffeJeanCode/dejavu-cli b02cda7 src/templates/component.template.ts
true
200
4,834
import { join } from "path"; import { BaseTemplate } from "../models/base-template.model"; import { Extension, Language, TypeComponent } from "../models/config.model"; import { FileManager } from "../services/file-manager.service"; import { Logger } from "../services/logger.service"; import { formatComponentName } from...
2
elian-r-ribeiro/saorpgsystem
67cd6d6
src/app/view/login/login.page.ts
TypeScript
www.github.com/elian-r-ribeiro/saorpgsystem/tree/main/src/app/view/login/login.page.ts
https://raw.githubusercontent.com/elian-r-ribeiro/saorpgsystem/67cd6d6/src/app/view/login/login.page.ts
elian-r-ribeiro/saorpgsystem 67cd6d6 src/app/view/login/login.page.ts
true
200
1,079
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { RoutingService } from 'src/app/model/common/routing.service'; import { AuthService } from 'src/app/model/services/auth.service'; @Component({ selector: 'app-login', templateUrl: './login...
6
joaobraganca555/LockerServiceFrontend
5d84d75
src/app/app.module.ts
TypeScript
www.github.com/joaobraganca555/LockerServiceFrontend/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/joaobraganca555/LockerServiceFrontend/5d84d75/src/app/app.module.ts
joaobraganca555/LockerServiceFrontend 5d84d75 src/app/app.module.ts
true
200
916
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HomeModule } from './home/home.module'; import { SharedModule } from './shared/shared.module'; import { A...
3
kushagra-nt/subscription-management-system
106a5cb
app/api/plan/route.ts
TypeScript
www.github.com/kushagra-nt/subscription-management-system/tree/main/app/api/plan/route.ts
https://raw.githubusercontent.com/kushagra-nt/subscription-management-system/106a5cb/app/api/plan/route.ts
kushagra-nt/subscription-management-system 106a5cb app/api/plan/route.ts
true
200
311
import { NextRequest, NextResponse } from "next/server"; import prisma from "@/lib/prismadb"; export const GET = async (req: NextRequest) => { try{ const plans = await prisma.plan.findMany({}); return NextResponse.json({plans: plans},{status:200}); } catch(err){ } }
7
chrisjm/meditation-timer
8c9c122
src/lib/stores/intervalHandler.ts
TypeScript
www.github.com/chrisjm/meditation-timer/tree/main/src/lib/stores/intervalHandler.ts
https://raw.githubusercontent.com/chrisjm/meditation-timer/8c9c122/src/lib/stores/intervalHandler.ts
chrisjm/meditation-timer 8c9c122 src/lib/stores/intervalHandler.ts
true
200
698
import { derived } from 'svelte/store'; import { masterTimer } from './masterTimer'; import { timerSettings } from './timerSettings'; export const shouldPlayInterval = derived( [masterTimer, timerSettings], ([$timer, $settings]) => { if (!$timer.isRunning || $timer.isPaused) return false; cons...
0
AnhKimDev/projectraidapi
66cad73
src/routes/event/index.ts
TypeScript
www.github.com/AnhKimDev/projectraidapi/tree/main/src/routes/event/index.ts
https://raw.githubusercontent.com/AnhKimDev/projectraidapi/66cad73/src/routes/event/index.ts
AnhKimDev/projectraidapi 66cad73 src/routes/event/index.ts
true
200
3,128
import { Router } from "express"; import { Request, Response } from "express"; import EventService from "../../services/EventService"; const EventRouter = Router(); const eventService = new EventService(); EventRouter.get("/", (req, res) => { res.status(200).send("Hello Event!"); }); EventRouter.post("/getEventByE...
2
jnordhagen/photowars
084fa03
src/development/battles/03-crabFish/submissions/02-workout/comments.ts
TypeScript
www.github.com/jnordhagen/photowars/tree/main/src/development/battles/03-crabFish/submissions/02-workout/comments.ts
https://raw.githubusercontent.com/jnordhagen/photowars/084fa03/src/development/battles/03-crabFish/submissions/02-workout/comments.ts
jnordhagen/photowars 084fa03 src/development/battles/03-crabFish/submissions/02-workout/comments.ts
true
200
281
import { fakeUsers } from "../../../../users"; const comments = [ { author: fakeUsers[0]!._id, caption: 'Lmao this is a good one', votes: [] }, { author: fakeUsers[4]!._id, caption: 'Livin like Larrrrry', votes: [] } ] as any; export { comments };
6
rafirafi03/Evento-venue_booking
279004f
backend/companyService/src/useCases/editVenueUseCase.ts
TypeScript
www.github.com/rafirafi03/Evento-venue_booking/tree/main/backend/companyService/src/useCases/editVenueUseCase.ts
https://raw.githubusercontent.com/rafirafi03/Evento-venue_booking/279004f/backend/companyService/src/useCases/editVenueUseCase.ts
rafirafi03/Evento-venue_booking 279004f backend/companyService/src/useCases/editVenueUseCase.ts
true
200
1,212
import { ICompanyRepository } from '../repositories/interfaces'; interface data { id: string name: string; type: string; description: string; capacity: number; address: string; amount:number; phone: number; city: string; state: string; imagePaths: string[]; existingImages: string[] } export cl...
5
JuanRCifuentes/personal-website
726c6ee
tailwind.config.ts
TypeScript
www.github.com/JuanRCifuentes/personal-website/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/JuanRCifuentes/personal-website/726c6ee/tailwind.config.ts
JuanRCifuentes/personal-website 726c6ee tailwind.config.ts
true
200
387
import type { Config } from "tailwindcss"; const config: Config = { content: [ "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { screens: { 'xs': '480px', 'sm': '640px', 'md': '840px', 'lg': '1024px', 'xl': '1280px', '2x...
3
woowacourse-teams/2022-moamoa
5430b5c
frontend/src/api/reviews/index.ts
TypeScript
www.github.com/woowacourse-teams/2022-moamoa/tree/main/frontend/src/api/reviews/index.ts
https://raw.githubusercontent.com/woowacourse-teams/2022-moamoa/5430b5c/frontend/src/api/reviews/index.ts
woowacourse-teams/2022-moamoa 5430b5c frontend/src/api/reviews/index.ts
true
200
1,184
import { type AxiosError } from 'axios'; import { useQuery } from 'react-query'; import type { Size, StudyId, StudyReview } from '@custom-types'; import axiosInstance from '@api/axiosInstance'; import { checkStudyReviews } from '@api/reviews/typeChecker'; export const QK_STUDY_REVIEWS = 'study-reviews'; export type...
7
one-click-studio/gabin
b9eca33
src/main/utils/db.ts
TypeScript
www.github.com/one-click-studio/gabin/tree/main/src/main/utils/db.ts
https://raw.githubusercontent.com/one-click-studio/gabin/b9eca33/src/main/utils/db.ts
one-click-studio/gabin b9eca33 src/main/utils/db.ts
true
200
3,590
import JsonDb from 'simple-json-db' import path from 'path' import { app as electronApp } from 'electron' import dotenv from 'dotenv' import deepEqual from 'deep-eql' import { BehaviorSubject } from 'rxjs' import { map, distinctUntilChanged, skip } from 'rxjs/operators' import type { Observable } from 'rxjs' import ...
0
jorniks/devault
621a98f
src/hooks/useDisconnectFromWallet.ts
TypeScript
www.github.com/jorniks/devault/tree/main/src/hooks/useDisconnectFromWallet.ts
https://raw.githubusercontent.com/jorniks/devault/621a98f/src/hooks/useDisconnectFromWallet.ts
jorniks/devault 621a98f src/hooks/useDisconnectFromWallet.ts
true
200
1,195
import { toast } from "@/components/ui/use-toast"; import { getConnection } from "@/lib/wallet/connector"; import { ConnectionType } from "@/lib/wallet/supported-connectors"; import { Connector } from "@web3-react/types"; import { useRouter } from "next/navigation"; export default function useDisconnectFromWallet() {...
2
alexd991/SpaceTravel
7631f46
src/app/app.component.ts
TypeScript
www.github.com/alexd991/SpaceTravel/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/alexd991/SpaceTravel/7631f46/src/app/app.component.ts
alexd991/SpaceTravel 7631f46 src/app/app.component.ts
true
200
961
import { Component, ElementRef, HostListener, ViewChild } from '@angular/core'; import { BasketService } from './basket/services/basket.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.less'] }) export class AppComponent { title = 'SpaceTravel'; ...
1
KevinNoe3/pokepedia
5ab3ca8
src/app/login/login.page.ts
TypeScript
www.github.com/KevinNoe3/pokepedia/tree/main/src/app/login/login.page.ts
https://raw.githubusercontent.com/KevinNoe3/pokepedia/5ab3ca8/src/app/login/login.page.ts
KevinNoe3/pokepedia 5ab3ca8 src/app/login/login.page.ts
true
200
1,084
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './login.page.html', styleUrls: ['./login.page.scss'], }) export class LoginPage{ miFormulario: Fo...
5
maxglassman/send-credits
7d849d2
src/models/PoolContract.ts
TypeScript
www.github.com/maxglassman/send-credits/tree/main/src/models/PoolContract.ts
https://raw.githubusercontent.com/maxglassman/send-credits/7d849d2/src/models/PoolContract.ts
maxglassman/send-credits 7d849d2 src/models/PoolContract.ts
true
200
3,089
import { chainIds } from '../shared/constants/chainIds'; import { poolIds } from '../shared/constants/poolIds'; //may want to add functions for calling delta & sending credits export class Pool { private _chainId: number; private _poolId: number; private _address: string; private _sharedDecimals: number; pri...
6
nirajameta/appadmin
c9d07cd
src/app/resetpsw/resetpsw.component.spec.ts
TypeScript
www.github.com/nirajameta/appadmin/tree/main/src/app/resetpsw/resetpsw.component.spec.ts
https://raw.githubusercontent.com/nirajameta/appadmin/c9d07cd/src/app/resetpsw/resetpsw.component.spec.ts
nirajameta/appadmin c9d07cd src/app/resetpsw/resetpsw.component.spec.ts
true
200
642
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ResetpswComponent } from './resetpsw.component'; describe('ResetpswComponent', () => { let component: ResetpswComponent; let fixture: ComponentFixture<ResetpswComponent>; beforeEach(async(() => { TestBed.configureTestingModu...
7
jiliangmason/qiankun-demo-vue2
bfe0dd7
wocwin-admin/src/api/index.ts
TypeScript
www.github.com/jiliangmason/qiankun-demo-vue2/tree/main/wocwin-admin/src/api/index.ts
https://raw.githubusercontent.com/jiliangmason/qiankun-demo-vue2/bfe0dd7/wocwin-admin/src/api/index.ts
jiliangmason/qiankun-demo-vue2 bfe0dd7 wocwin-admin/src/api/index.ts
true
200
317
import request from "@/utils/request"; import * as masterData from "./mes/masterData"; // 主数据接口 // 数据字典-查询 公共api export const getDicts = (dictType: any) => { return request({ url: `/system/dict/data/type/${dictType}`, method: "GET" }); }; export default { getDicts, ...masterData };
0
H-AbdulGhani99/WMD
0c46f6f
ex26.ts
TypeScript
www.github.com/H-AbdulGhani99/WMD/tree/main/ex26.ts
https://raw.githubusercontent.com/H-AbdulGhani99/WMD/0c46f6f/ex26.ts
H-AbdulGhani99/WMD 0c46f6f ex26.ts
true
200
782
// Alien Colors #3: Turn your if-else chain from Exercise 5-4 into an if-else chain. // • If the alien is green, print a message that the player earned 5 points. // • If the alien is yellow, print a message that the player earned 10 points. // • If the alien is red, print a message that the player earned 15 poin...
3
VIVEK-SUTHAR/solana-gas-pulse
891d421
src/hooks/useTotalSpentOnGas.ts
TypeScript
www.github.com/VIVEK-SUTHAR/solana-gas-pulse/tree/main/src/hooks/useTotalSpentOnGas.ts
https://raw.githubusercontent.com/VIVEK-SUTHAR/solana-gas-pulse/891d421/src/hooks/useTotalSpentOnGas.ts
VIVEK-SUTHAR/solana-gas-pulse 891d421 src/hooks/useTotalSpentOnGas.ts
true
200
3,503
import React, { useState } from "react" import { SOL_DOMAIN_POSTFIX } from "@/constants" import Events from "@/constants/events" import event from "@/utils/event" import isWithin24Hours from "@/utils/isWithin24Hours" import useSnsDomainResolver from "./useSnsDomainResolver" import useTransactionAPI from "./useTransact...
1
lhotovy/websters-eshop
2dde6f4
src/lib/helpers.ts
TypeScript
www.github.com/lhotovy/websters-eshop/tree/main/src/lib/helpers.ts
https://raw.githubusercontent.com/lhotovy/websters-eshop/2dde6f4/src/lib/helpers.ts
lhotovy/websters-eshop 2dde6f4 src/lib/helpers.ts
true
200
376
import { FormData } from "@/lib/types"; export const sendMessage = async (info: FormData) => { const endpoint = '/api/contact'; const res = await fetch(endpoint, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(info) })...
5
cristianordonez/the-macro-trainer
66feb69
server/auth/localStrategy.ts
TypeScript
www.github.com/cristianordonez/the-macro-trainer/tree/main/server/auth/localStrategy.ts
https://raw.githubusercontent.com/cristianordonez/the-macro-trainer/66feb69/server/auth/localStrategy.ts
cristianordonez/the-macro-trainer 66feb69 server/auth/localStrategy.ts
true
200
1,388
import bcrypt from 'bcryptjs'; import { Strategy as LocalStrategy } from 'passport-local'; import { db } from '../database/db'; type HashResponse = { hash: string; user_id: string; }; export const customLocalStrategy = new LocalStrategy( (username, password, cb) => { //expects key in body called userna...
6
shubhangiK25/Frontend_Hospital_mgmt_system
90be831
src/app/patient.service.ts
TypeScript
www.github.com/shubhangiK25/Frontend_Hospital_mgmt_system/tree/main/src/app/patient.service.ts
https://raw.githubusercontent.com/shubhangiK25/Frontend_Hospital_mgmt_system/90be831/src/app/patient.service.ts
shubhangiK25/Frontend_Hospital_mgmt_system 90be831 src/app/patient.service.ts
true
200
456
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Patient } from './patient'; @Injectable({ providedIn: 'root' }) export class PatientService { constructor(private httpClient:HttpClient) { } private baseUrl="http://localho...
7
Himmelklavier/back2023-2
ea3d11a
src/app/app-routing.module.ts
TypeScript
www.github.com/Himmelklavier/back2023-2/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/Himmelklavier/back2023-2/ea3d11a/src/app/app-routing.module.ts
Himmelklavier/back2023-2 ea3d11a src/app/app-routing.module.ts
true
200
1,519
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AdminComponent } from './componentes/admin/admin.component'; import { CarritoComponent } from './componentes/carrito/carrito.component'; import { HomeComponent } from './componentes/home/home.component'; import {...
2
the-orange-alliance/project-ems
46e5ad1
libs/models/src/base/BonusPeriod.ts
TypeScript
www.github.com/the-orange-alliance/project-ems/tree/main/libs/models/src/base/BonusPeriod.ts
https://raw.githubusercontent.com/the-orange-alliance/project-ems/46e5ad1/libs/models/src/base/BonusPeriod.ts
the-orange-alliance/project-ems 46e5ad1 libs/models/src/base/BonusPeriod.ts
true
200
2,055
import { Match } from './Match.js'; import { Crescendo } from '../seasons/index.js'; export enum BonusPeriodConfig { FRC_2024_AMPLIFY_RED = 'FRC_2024_AMPLIFY_RED', FRC_2024_AMPLIFY_BLUE = 'FRC_2024_AMPLIFY_BLUE' } /* * This is a bonus period. It is a period of time in a match where certain actions can be taken t...
0
SwitchCaseKam/dart-counter
f7d9869
dart-counter/src/app/store/reducer/game-status.reducer.ts
TypeScript
www.github.com/SwitchCaseKam/dart-counter/tree/main/dart-counter/src/app/store/reducer/game-status.reducer.ts
https://raw.githubusercontent.com/SwitchCaseKam/dart-counter/f7d9869/dart-counter/src/app/store/reducer/game-status.reducer.ts
SwitchCaseKam/dart-counter f7d9869 dart-counter/src/app/store/reducer/game-status.reducer.ts
true
200
5,683
import { Action, createReducer, on } from '@ngrx/store'; import { pointsMode } from 'src/app/game-config/models/game-configuration.models'; import { GameConfigState } from 'src/app/models/game-config.model'; import { createInitPlayer, GameStatusState, Player } from 'src/app/models/game-status.model'; import * as GameSt...
1
Bryansss1/prueba-oberstaff
e3ab5ec
src/utils/errors/general/general.error.ts
TypeScript
www.github.com/Bryansss1/prueba-oberstaff/tree/main/src/utils/errors/general/general.error.ts
https://raw.githubusercontent.com/Bryansss1/prueba-oberstaff/e3ab5ec/src/utils/errors/general/general.error.ts
Bryansss1/prueba-oberstaff e3ab5ec src/utils/errors/general/general.error.ts
true
200
570
import { getReasonPhrase } from "http-status-codes"; import { GeneralErrorParams, GeneralErrorResponse } from "./type"; import HttpStatusCode from "http-status-codes"; export const generalErrorObject = ( information: GeneralErrorParams ): GeneralErrorResponse => { const { message, status, req } = information; re...
3
akashproject/bikriworld-app
25afd85
src/app/all-pages/repair-view-order/repair-view-order.module.ts
TypeScript
www.github.com/akashproject/bikriworld-app/tree/main/src/app/all-pages/repair-view-order/repair-view-order.module.ts
https://raw.githubusercontent.com/akashproject/bikriworld-app/25afd85/src/app/all-pages/repair-view-order/repair-view-order.module.ts
akashproject/bikriworld-app 25afd85 src/app/all-pages/repair-view-order/repair-view-order.module.ts
true
200
539
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { RepairViewOrderPageRoutingModule } from './repair-view-order-routing.module'; import { RepairViewOrderPage } from './repair-vi...
6
robinprause1/Icon-Konfigurator
99990b6
icon-configurator_angular/src/app/views/register-view/register-view.component.ts
TypeScript
www.github.com/robinprause1/Icon-Konfigurator/tree/main/icon-configurator_angular/src/app/views/register-view/register-view.component.ts
https://raw.githubusercontent.com/robinprause1/Icon-Konfigurator/99990b6/icon-configurator_angular/src/app/views/register-view/register-view.component.ts
robinprause1/Icon-Konfigurator 99990b6 icon-configurator_angular/src/app/views/register-view/register-view.component.ts
true
200
1,438
import { Component, OnInit } from '@angular/core'; import User from 'src/models/user'; import authService from "../../../services/auth.service"; import {AppState} from "../../../state/app.state"; import {Store} from "@ngrx/store"; import {AuthActions} from "../../../state/auth/auth.actions"; import {MessageActions} fro...
5
guitoledo/pokemon-tcg
525e83f
pokemon-tcg/src/app/components/pokemon-details/pokemon-details.component.ts
TypeScript
www.github.com/guitoledo/pokemon-tcg/tree/main/pokemon-tcg/src/app/components/pokemon-details/pokemon-details.component.ts
https://raw.githubusercontent.com/guitoledo/pokemon-tcg/525e83f/pokemon-tcg/src/app/components/pokemon-details/pokemon-details.component.ts
guitoledo/pokemon-tcg 525e83f pokemon-tcg/src/app/components/pokemon-details/pokemon-details.component.ts
true
200
1,423
import { Component, ViewChild } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IgxCardModule, IgxDialogComponent, IgxDialogModule, IgxIconModule } from 'igniteui-angular'; @Component({ selector: 'app-pokemon-details', standalone: true, imports: [CommonModule, IgxCardModule, IgxDia...
7
SilaevAlex/react_ts
85a5eb0
src/features/home/hooks/useAddPost.ts
TypeScript
www.github.com/SilaevAlex/react_ts/tree/main/src/features/home/hooks/useAddPost.ts
https://raw.githubusercontent.com/SilaevAlex/react_ts/85a5eb0/src/features/home/hooks/useAddPost.ts
SilaevAlex/react_ts 85a5eb0 src/features/home/hooks/useAddPost.ts
true
200
1,281
import { useState } from "react"; interface fields { tags: string[]; title: string; } export const initialErr = { tags: false, title: false, }; export const useAddPost = (handleClose: () => void) => { const [errors, setErrors] = useState(initialErr); const resetErr = () => setErrors(initialErr); cons...
2
mkaubr007/command-center
98192e6
src/app/home/dashboard/dashboard.component.spec.ts
TypeScript
www.github.com/mkaubr007/command-center/tree/main/src/app/home/dashboard/dashboard.component.spec.ts
https://raw.githubusercontent.com/mkaubr007/command-center/98192e6/src/app/home/dashboard/dashboard.component.spec.ts
mkaubr007/command-center 98192e6 src/app/home/dashboard/dashboard.component.spec.ts
true
200
5,284
import { ComponentFactory,ComponentRef,ElementRef, EmbeddedViewRef, Injector, NgModuleRef, Renderer2,RendererStyleFlags2,TemplateRef, ViewContainerRef,ViewRef } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AuthService } from '../../auth/auth.service';...
1
OneBitCodeBlog/simulaTRIX
0801a84
node_modules/openai/lib/AbstractChatCompletionRunner.d.ts
TypeScript
www.github.com/OneBitCodeBlog/simulaTRIX/tree/main/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts
https://raw.githubusercontent.com/OneBitCodeBlog/simulaTRIX/0801a84/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts
OneBitCodeBlog/simulaTRIX 0801a84 node_modules/openai/lib/AbstractChatCompletionRunner.d.ts
true
200
4,291
import * as Core from 'openai/core'; import { type CompletionUsage } from 'openai/resources/completions'; import { type Completions, type ChatCompletion, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionCreateParams } from 'openai/resources/chat/completions'; import { type BaseFunctionsAr...
0
guilhermekuni/rocketseat-bootcamp-challenge-05
50388ad
src/repositories/TransactionsRepository.ts
TypeScript
www.github.com/guilhermekuni/rocketseat-bootcamp-challenge-05/tree/main/src/repositories/TransactionsRepository.ts
https://raw.githubusercontent.com/guilhermekuni/rocketseat-bootcamp-challenge-05/50388ad/src/repositories/TransactionsRepository.ts
guilhermekuni/rocketseat-bootcamp-challenge-05 50388ad src/repositories/TransactionsRepository.ts
true
200
1,388
import Transaction from '../models/Transaction'; interface CreateTransactionDTO { title: string; value: number; type: 'income' | 'outcome'; } interface Balance { income: number; outcome: number; total: number; } class TransactionsRepository { private transactions: Transaction[]; constructor() { ...
6
mayur035/E-comm_website_TS
8a4bf95
src/types/types.ts
TypeScript
www.github.com/mayur035/E-comm_website_TS/tree/main/src/types/types.ts
https://raw.githubusercontent.com/mayur035/E-comm_website_TS/8a4bf95/src/types/types.ts
mayur035/E-comm_website_TS 8a4bf95 src/types/types.ts
true
200
1,415
export interface generalType{ id:number; name?:string; slug?:string; created_at?:string; } export interface brandsType extends generalType{ details:string; image_logo:{ alt:string; url:string } } export interface userProfileType extends generalType { firstname: string;...
5