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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
matheusteodoro01/node-clean | eda222a | src/infra/common/http-exception-filter.ts | TypeScript | www.github.com/matheusteodoro01/node-clean/tree/main/src/infra/common/http-exception-filter.ts | https://raw.githubusercontent.com/matheusteodoro01/node-clean/eda222a/src/infra/common/http-exception-filter.ts | matheusteodoro01/node-clean eda222a src/infra/common/http-exception-filter.ts | true | 200 | 637 | import { ExceptionFilter, Catch, ArgumentsHost } from '@nestjs/common'
import { Request, Response } from 'express'
import { getStatusCode } from './get-status-code'
@Catch()
export class HttpExceptionFilter implements ExceptionFilter {
catch(exception: Error, host: ArgumentsHost) {
const ctx = host.switchToHttp(... | 6 |
OlyaIv/api-task | e651de4 | demo-central/src/pages/base.page.ts | TypeScript | www.github.com/OlyaIv/api-task/tree/main/demo-central/src/pages/base.page.ts | https://raw.githubusercontent.com/OlyaIv/api-task/e651de4/demo-central/src/pages/base.page.ts | OlyaIv/api-task e651de4 demo-central/src/pages/base.page.ts | true | 200 | 805 | import { Locator, Page } from '@playwright/test';
export abstract class BasePage {
page: Page;
constructor(page: Page) {
this.page = page;
}
browserControlMenuBttn(): Locator {
return this.page.locator('#MiniBrowsePanelClosedFolder');
}
openBrowserControlMenu(): Locator {
return this.page.lo... | 2 |
US-EPA-CAMD/easey-camd-services | 46d090a | src/bulk-file/bulk-file.service.spec.ts | TypeScript | www.github.com/US-EPA-CAMD/easey-camd-services/tree/main/src/bulk-file/bulk-file.service.spec.ts | https://raw.githubusercontent.com/US-EPA-CAMD/easey-camd-services/46d090a/src/bulk-file/bulk-file.service.spec.ts | US-EPA-CAMD/easey-camd-services 46d090a src/bulk-file/bulk-file.service.spec.ts | true | 200 | 2,700 | import { HttpModule } from '@nestjs/axios';
import { ConfigService } from '@nestjs/config';
import { Test } from '@nestjs/testing';
import { LoggerModule } from '@us-epa-camd/easey-common/logger';
import { BulkFileDTO } from '../dto/bulk_file.dto';
import { BulkFileInputDTO } from '../dto/bulk_file_input.dto';
import {... | 1 |
incredible-phoenix246/mail-service | a7e093d | src/compiler/wcf.ts | TypeScript | www.github.com/incredible-phoenix246/mail-service/tree/main/src/compiler/wcf.ts | https://raw.githubusercontent.com/incredible-phoenix246/mail-service/a7e093d/src/compiler/wcf.ts | incredible-phoenix246/mail-service a7e093d src/compiler/wcf.ts | true | 200 | 316 | import handlebars from "handlebars";
import { welcomeMessage } from "..//templates/wcf";
export function compilerWcf(otp_code: number, name: string) {
const template = handlebars.compile(welcomeMessage);
const htmlBody = template({
otp: otp_code,
name: name,
});
return htmlBody;
}
| 3 |
MiteraI/StartedIn_CapstoneProject_FE | c38fd96 | src/app/components/investment-call-page/investment-call-filter/investment-call-filter.component.ts | TypeScript | www.github.com/MiteraI/StartedIn_CapstoneProject_FE/tree/main/src/app/components/investment-call-page/investment-call-filter/investment-call-filter.component.ts | https://raw.githubusercontent.com/MiteraI/StartedIn_CapstoneProject_FE/c38fd96/src/app/components/investment-call-page/investment-call-filter/investment-call-filter.component.ts | MiteraI/StartedIn_CapstoneProject_FE c38fd96 src/app/components/investment-call-page/investment-call-filter/investment-call-filter.component.ts | true | 200 | 5,592 | import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
import { NzButtonModule } from 'ng-zorro-antd/... | 2 |
tommylinks/lyra-test | 3d20087 | app/src/hooks/rewards/useLyraStaking.ts | TypeScript | www.github.com/tommylinks/lyra-test/tree/main/app/src/hooks/rewards/useLyraStaking.ts | https://raw.githubusercontent.com/tommylinks/lyra-test/3d20087/app/src/hooks/rewards/useLyraStaking.ts | tommylinks/lyra-test 3d20087 app/src/hooks/rewards/useLyraStaking.ts | true | 200 | 670 | import { useCallback } from 'react'
import { FetchId } from '@/app/constants/fetch'
import fetchLyraStaking from '@/app/utils/rewards/fetchLyraStaking'
import useWalletAccount from '../account/useWalletAccount'
import useFetch, { useMutate } from '../data/useFetch'
export default function useLyraStaking() {
const ... | 6 |
WellitonAlt/angular-pokedex | 98ee1cd | src/app/shared/components/index.ts | TypeScript | www.github.com/WellitonAlt/angular-pokedex/tree/main/src/app/shared/components/index.ts | https://raw.githubusercontent.com/WellitonAlt/angular-pokedex/98ee1cd/src/app/shared/components/index.ts | WellitonAlt/angular-pokedex 98ee1cd src/app/shared/components/index.ts | true | 200 | 1,140 | import { EvolutionChainComponent } from './evolution/evolution-chain/evolution-chain.component';
import { EvolutionDetailComponent } from './evolution/evolution-detail/evolution-detail.component';
import { EvolutionPokemonComponent } from './evolution/evolution-pokemon/evolution-pokemon.component';
import { EvolutionCo... | 1 |
programer96-bot/portfolio | b1c8409 | src/app/componentes/home/home.component.ts | TypeScript | www.github.com/programer96-bot/portfolio/tree/main/src/app/componentes/home/home.component.ts | https://raw.githubusercontent.com/programer96-bot/portfolio/b1c8409/src/app/componentes/home/home.component.ts | programer96-bot/portfolio b1c8409 src/app/componentes/home/home.component.ts | true | 200 | 1,220 | import { Component, OnInit } from '@angular/core';
import { Esteban } from '../../models/misDatos/MisDatos';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css',]
})
export class HomeComponent implements OnInit {
public title: string = 'BIENVENIDO';
p... | 3 |
EddDevv/mg_dev | 9cfe273 | src/application/dto/likes/likes.request.ts | TypeScript | www.github.com/EddDevv/mg_dev/tree/main/src/application/dto/likes/likes.request.ts | https://raw.githubusercontent.com/EddDevv/mg_dev/9cfe273/src/application/dto/likes/likes.request.ts | EddDevv/mg_dev 9cfe273 src/application/dto/likes/likes.request.ts | true | 200 | 555 | import { ILike } from '../../../domain/likes/likes.entity';
import { ApiProperty } from '@nestjs/swagger';
import { Pagination } from '../../../config/pagination';
export class LikePostRequest
implements Omit<ILike, 'comment' | 'commentId' | 'post' | 'user' | 'userId'>
{
@ApiProperty()
postId: number;
}
export ... | 6 |
webdoky/platform-astro | 1d6fd42 | src/plugins/remark/macros/localize.ts | TypeScript | www.github.com/webdoky/platform-astro/tree/main/src/plugins/remark/macros/localize.ts | https://raw.githubusercontent.com/webdoky/platform-astro/1d6fd42/src/plugins/remark/macros/localize.ts | webdoky/platform-astro 1d6fd42 src/plugins/remark/macros/localize.ts | true | 200 | 470 | import { z } from 'zod';
import getJsonData from './get-json-data.ts';
export default function localize(packName: string, key: string) {
const targetLocale = process.env.TARGET_LOCALE;
if (!targetLocale) {
throw new Error('TARGET_LOCALE is not defined');
}
const rawPack = getJsonData(packName);
const pac... | 2 |
Muichiro96/Muichiro-Gallery | 5b9ccdf | src/app/auth.guard.ts | TypeScript | www.github.com/Muichiro96/Muichiro-Gallery/tree/main/src/app/auth.guard.ts | https://raw.githubusercontent.com/Muichiro96/Muichiro-Gallery/5b9ccdf/src/app/auth.guard.ts | Muichiro96/Muichiro-Gallery 5b9ccdf src/app/auth.guard.ts | true | 200 | 443 | import { Router ,CanActivateFn} from '@angular/router';
import { AuthService } from './auth.service';
import { inject } from '@angular/core';
export const canActivateUser : CanActivateFn = ( route, state) => {
const authService = inject(AuthService);
const router = inject(Router);
if (authService.isAuthenth... | 1 |
Lydia-coder/Unravel-Assigment | edacc7e | my-app/src/Store/store.ts | TypeScript | www.github.com/Lydia-coder/Unravel-Assigment/tree/main/my-app/src/Store/store.ts | https://raw.githubusercontent.com/Lydia-coder/Unravel-Assigment/edacc7e/my-app/src/Store/store.ts | Lydia-coder/Unravel-Assigment edacc7e my-app/src/Store/store.ts | true | 200 | 587 | import { createStore, applyMiddleware, compose } from "redux";
import rootReducer from "./reducer";
import rootSaga from "./sagas";
import createSagaMiddleware from "redux-saga";
declare global {
interface Window {
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?: typeof compose;
}
}
const composeEnhancers = window.__RE... | 3 |
jomonthomas1987/HRPayrollUI | 2a260fb | src/app/HrPayroll/Employee/employee-update/employee-update.component.ts | TypeScript | www.github.com/jomonthomas1987/HRPayrollUI/tree/main/src/app/HrPayroll/Employee/employee-update/employee-update.component.ts | https://raw.githubusercontent.com/jomonthomas1987/HRPayrollUI/2a260fb/src/app/HrPayroll/Employee/employee-update/employee-update.component.ts | jomonthomas1987/HRPayrollUI 2a260fb src/app/HrPayroll/Employee/employee-update/employee-update.component.ts | true | 200 | 2,612 | import { Component, OnInit, ViewChild } from '@angular/core';
import { NgForm } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { EmployeeService } from 'src/app/HarPayrollServices/employee.service';
@Component({
selector: 'app-employee-update',
templateUrl: './employee-upda... | 2 |
elhilali-48/ArchiWeb | bf30403 | frontend/src/app/modules/dashbord/components/administrateur/afficher-enseignant/afficher-enseignant.component.ts | TypeScript | www.github.com/elhilali-48/ArchiWeb/tree/main/frontend/src/app/modules/dashbord/components/administrateur/afficher-enseignant/afficher-enseignant.component.ts | https://raw.githubusercontent.com/elhilali-48/ArchiWeb/bf30403/frontend/src/app/modules/dashbord/components/administrateur/afficher-enseignant/afficher-enseignant.component.ts | elhilali-48/ArchiWeb bf30403 frontend/src/app/modules/dashbord/components/administrateur/afficher-enseignant/afficher-enseignant.component.ts | true | 200 | 1,215 | import { HttpClient } from '@angular/common/http';
import { Component , OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import Swal from 'sweetalert2';
@Component({
selector: 'app-afficher-enseignant',
templateUrl: './afficher-enseignant.component.html',
styleUrls: ['./af... | 6 |
Handehoch/skillbox-ts | 369bc83 | src/module-4/task-2/transported-order-item.ts | TypeScript | www.github.com/Handehoch/skillbox-ts/tree/main/src/module-4/task-2/transported-order-item.ts | https://raw.githubusercontent.com/Handehoch/skillbox-ts/369bc83/src/module-4/task-2/transported-order-item.ts | Handehoch/skillbox-ts 369bc83 src/module-4/task-2/transported-order-item.ts | true | 200 | 424 | import { OrderItem } from "./order-item";
import { Product } from "./product";
export class TransportedOrderItem extends OrderItem {
private _transportCost: number;
constructor(product: Product, quantity: number, transportCost: number) {
super(product, quantity);
this._transportCost = transportCost;
}
... | 3 |
obi-wan-jacobi/template-plasmastrapi-app | 1ca39d7 | src/app/main.ts | TypeScript | www.github.com/obi-wan-jacobi/template-plasmastrapi-app/tree/main/src/app/main.ts | https://raw.githubusercontent.com/obi-wan-jacobi/template-plasmastrapi-app/1ca39d7/src/app/main.ts | obi-wan-jacobi/template-plasmastrapi-app 1ca39d7 src/app/main.ts | true | 200 | 1,192 | import { AnimationSystem } from '@plasmastrapi/animation';
import { FPSSystem } from '@plasmastrapi/diagnostics';
import { ImageSystem, LabelSystem, LineSystem, PoseSystem, ShapeSystem } from '@plasmastrapi/engine';
import { InputController } from '@plasmastrapi/html5-canvas';
import { AccelerationSystem, GravitySystem... | 1 |
engineerchirag/nextleap-dec | 44de368 | Class3/example1/index.ts | TypeScript | www.github.com/engineerchirag/nextleap-dec/tree/main/Class3/example1/index.ts | https://raw.githubusercontent.com/engineerchirag/nextleap-dec/44de368/Class3/example1/index.ts | engineerchirag/nextleap-dec 44de368 Class3/example1/index.ts | true | 200 | 597 |
// console.log(sum(1,2)); // A. 3
// console.log(sum1(1,2)); // B. Error
// Named function
function sum(a: number | string, b: number | string, c: number | string=0): number { // Function Hoisting
return Number(a) + Number(b) + Number(c);
}
sum('1', '2', 3);
// Anonymous Function
var sum1 = function(a, b) { /... | 2 |
Qytera-Gmbh/xray-client-node | b0bd0fb | src/endpoints/cloud/dataset/dataset.ts | TypeScript | www.github.com/Qytera-Gmbh/xray-client-node/tree/main/src/endpoints/cloud/dataset/dataset.ts | https://raw.githubusercontent.com/Qytera-Gmbh/xray-client-node/b0bd0fb/src/endpoints/cloud/dataset/dataset.ts | Qytera-Gmbh/xray-client-node b0bd0fb src/endpoints/cloud/dataset/dataset.ts | true | 200 | 1,589 | import { BaseApi } from "../../base-api.js";
/**
* Models the dataset endpoints.
*/
export class DatasetApi extends BaseApi {
/**
* Returns the CSV file with the requested dataset for the input issue ids.
*
* One of `testIssueId` or `testIssueKey` is required. If both are provided, `testIssueId` is
* u... | 6 |
EmmanuelML78/Blog-de-Noticias | 921199f | back/src/config/express.ts | TypeScript | www.github.com/EmmanuelML78/Blog-de-Noticias/tree/main/back/src/config/express.ts | https://raw.githubusercontent.com/EmmanuelML78/Blog-de-Noticias/921199f/back/src/config/express.ts | EmmanuelML78/Blog-de-Noticias 921199f back/src/config/express.ts | true | 200 | 571 | import express from "express";
import cors from "cors";
import morgan from "morgan";
import bodyParser from "body-parser";
import newsRoutes from "../routes/newsRoutes";
import commentRoutes from "../routes/commentRoutes";
import authRoutes from "../routes/authRoutes";
import session from "express-session";
const app ... | 3 |
leordev/web5-js-releases2 | 079cdcf | packages/crypto/tests/primitives/ed25519.spec.ts | TypeScript | www.github.com/leordev/web5-js-releases2/tree/main/packages/crypto/tests/primitives/ed25519.spec.ts | https://raw.githubusercontent.com/leordev/web5-js-releases2/079cdcf/packages/crypto/tests/primitives/ed25519.spec.ts | leordev/web5-js-releases2 079cdcf packages/crypto/tests/primitives/ed25519.spec.ts | true | 200 | 16,505 | import chai, { expect } from "chai";
import { Convert } from "@leordev-web5/common";
import chaiAsPromised from "chai-as-promised";
import type { Jwk, JwkParamsOkpPrivate } from "../../src/jose/jwk.js";
import CryptoEd25519SignTestVector from "../../../../web5-spec/test-vectors/crypto_ed25519/sign.json" assert { type... | 1 |
MarcinBereta/engineering_thesis | e9fb8cd | api/src/quiz/quiz.module.ts | TypeScript | www.github.com/MarcinBereta/engineering_thesis/tree/main/api/src/quiz/quiz.module.ts | https://raw.githubusercontent.com/MarcinBereta/engineering_thesis/e9fb8cd/api/src/quiz/quiz.module.ts | MarcinBereta/engineering_thesis e9fb8cd api/src/quiz/quiz.module.ts | true | 200 | 334 | import { Module } from '@nestjs/common';
import { QuizService } from './quiz.service';
import { QuizResolver } from './quiz.resolver';
import { PrismaModule } from 'src/prisma/prisma.module';
@Module({
providers: [QuizService, QuizResolver],
imports: [PrismaModule],
exports: [QuizService],
})
export class ... | 2 |
visdesignlab/ferret | 510034a | src/lib/vis/pcp/utils.ts | TypeScript | www.github.com/visdesignlab/ferret/tree/main/src/lib/vis/pcp/utils.ts | https://raw.githubusercontent.com/visdesignlab/ferret/510034a/src/lib/vis/pcp/utils.ts | visdesignlab/ferret 510034a src/lib/vis/pcp/utils.ts | true | 200 | 4,446 | import * as d3 from 'd3';
import { merge } from 'lodash';
import {
PlotlyInfo,
PlotlyData,
VisCategoricalColumn,
ColumnInfo,
EColumnTypes,
ESupportedPlotlyVis,
IVisConfig,
VisNumericalColumn,
VisColumn
} from '../interfaces';
import { resolveColumnValues } from '../general/layoutUti... | 3 |
boostcampwm-2024/web01-youQuiz | e4bb68d | packages/server/src/module/utils/dto/response.dto.ts | TypeScript | www.github.com/boostcampwm-2024/web01-youQuiz/tree/main/packages/server/src/module/utils/dto/response.dto.ts | https://raw.githubusercontent.com/boostcampwm-2024/web01-youQuiz/e4bb68d/packages/server/src/module/utils/dto/response.dto.ts | boostcampwm-2024/web01-youQuiz e4bb68d packages/server/src/module/utils/dto/response.dto.ts | true | 200 | 394 | import { IsString, IsNumber, ValidateNested } from 'class-validator';
import { Expose, Type } from 'class-transformer';
export class ResponseDto<T> {
@Expose()
statusCode: number;
@Expose()
message: string;
@Expose()
data: T;
constructor(statusCode: number, message: string, data: T) {
this.statusC... | 6 |
BartPelsma/LC_Frontend | 607d642 | livechatfrontend/src/app/Services/api.service.ts | TypeScript | www.github.com/BartPelsma/LC_Frontend/tree/main/livechatfrontend/src/app/Services/api.service.ts | https://raw.githubusercontent.com/BartPelsma/LC_Frontend/607d642/livechatfrontend/src/app/Services/api.service.ts | BartPelsma/LC_Frontend 607d642 livechatfrontend/src/app/Services/api.service.ts | true | 200 | 979 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { map } from 'rxjs';
import { JwtHelperService } from '@auth0/angular-jwt';
import { Dialog } from '../Models/dialog';
@Injectable({
providedIn: 'root'
})
export class APIService {
authUrl = "http://... | 1 |
itzTerra/Gameplay.gg | 79eb84c | composables/useUser.ts | TypeScript | www.github.com/itzTerra/Gameplay.gg/tree/main/composables/useUser.ts | https://raw.githubusercontent.com/itzTerra/Gameplay.gg/79eb84c/composables/useUser.ts | itzTerra/Gameplay.gg 79eb84c composables/useUser.ts | true | 200 | 900 | import { getCookie } from "h3";
const getUserFromCookie = async (idToken: string) => {
const res = await $fetch("/api/auth", {
method: "GET",
query: {
idToken: idToken,
},
}).catch(() => null);
return res;
};
export const useUser = async () => {
const user = getUser();
const cookieName =... | 2 |
todelusion/petbooker | f690943 | src/components/Input/data.ts | TypeScript | www.github.com/todelusion/petbooker/tree/main/src/components/Input/data.ts | https://raw.githubusercontent.com/todelusion/petbooker/f690943/src/components/Input/data.ts | todelusion/petbooker f690943 src/components/Input/data.ts | true | 200 | 641 | const InputRegex: { [index: string]: { regex: RegExp; message?: string } } = {
email: {
regex: /^\w+((-\w+)|(.\w+))@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+).[A-Za-z]+$/,
},
phoneNumber: {
regex: /^09[0-9]{8}$/,
message: "手機請以09開頭,市話請在區域碼後加入 - ex:07-123456",
},
telNumber: {
regex: /0\d{1,2}-\d{6,8}/,
... | 3 |
FateZeros/create-vite-app | a8bec83 | packages/vite-cli/src/shared/constant.ts | TypeScript | www.github.com/FateZeros/create-vite-app/tree/main/packages/vite-cli/src/shared/constant.ts | https://raw.githubusercontent.com/FateZeros/create-vite-app/a8bec83/packages/vite-cli/src/shared/constant.ts | FateZeros/create-vite-app a8bec83 packages/vite-cli/src/shared/constant.ts | true | 200 | 341 | import PKG = require("../../package.json");
const PKG_NAME = PKG.name
import { getNowDate } from "../utils/tools"
const VITE_CLI_VERSION = `
🌱🌱 Published ${PKG.version} Build ${PKG_NAME} 🌱🌱 /r
🌱🌱 Build last date: ${getNowDate()} 🌱🌱
`
// const TEMPLATE_PROJECTS =
export { PKG, VITE_CLI_VERSION, PKG_NA... | 6 |
fresha/api-tools | 1378327 | packages/openapi-model/src/3.0.3/model/Response.test.ts | TypeScript | www.github.com/fresha/api-tools/tree/main/packages/openapi-model/src/3.0.3/model/Response.test.ts | https://raw.githubusercontent.com/fresha/api-tools/1378327/packages/openapi-model/src/3.0.3/model/Response.test.ts | fresha/api-tools 1378327 packages/openapi-model/src/3.0.3/model/Response.test.ts | true | 200 | 3,305 | import { OpenAPIFactory } from './OpenAPI';
import type { ResponseModel } from './types';
let response: ResponseModel = {} as ResponseModel;
beforeEach(() => {
response = OpenAPIFactory.create().components.setResponse('JSONResponse', 'test');
});
describe('headers collection', () => {
test('querying', () => {
... | 1 |
SwarajMhashakhetri/Top-Artists | 6a1fb4a | app/swarajIsStupid.ts | TypeScript | www.github.com/SwarajMhashakhetri/Top-Artists/tree/main/app/swarajIsStupid.ts | https://raw.githubusercontent.com/SwarajMhashakhetri/Top-Artists/6a1fb4a/app/swarajIsStupid.ts | SwarajMhashakhetri/Top-Artists 6a1fb4a app/swarajIsStupid.ts | true | 200 | 941 | import { NextAuthOptions } from "next-auth"
import SpotifyProvider from "next-auth/providers/spotify"
export const authOptions: NextAuthOptions = {
providers: [
SpotifyProvider({
clientId: process.env.SPOTIFY_CLIENT_ID ?? "",
clientSecret: process.env.SPOTIFY_CLIENT_SECRET ?? "",
... | 2 |
RuslanMirets/wp-nextjs-smirnov-school | bfa4563 | src/services/course.service.ts | TypeScript | www.github.com/RuslanMirets/wp-nextjs-smirnov-school/tree/main/src/services/course.service.ts | https://raw.githubusercontent.com/RuslanMirets/wp-nextjs-smirnov-school/bfa4563/src/services/course.service.ts | RuslanMirets/wp-nextjs-smirnov-school bfa4563 src/services/course.service.ts | true | 200 | 288 | import axios from "axios";
export const CourseService = {
async getAll() {
const response = await axios.get(
`${process.env.WORDPRESS_API_URL}/wp-json/ldlms/v1/sfwd-courses?per_page=100`,
{ headers: { "Content-Type": "application/json" } },
);
return response.data;
},
};
| 4 |
VandeurenGlenn/swap | bec2596 | src/provider.ts | TypeScript | www.github.com/VandeurenGlenn/swap/tree/main/src/provider.ts | https://raw.githubusercontent.com/VandeurenGlenn/swap/bec2596/src/provider.ts | VandeurenGlenn/swap bec2596 src/provider.ts | true | 200 | 1,467 | import chainMap from 'chainmap'
import { ChainInfo } from './types/provider.js'
import { FallbackProvider, JsonRpcProvider } from 'ethers'
export default class Provider {
chainInfo: ChainInfo
providers: JsonRpcProvider[]
constructor(chainId) {
this.chainInfo = chainMap[chainId]
console.log(this.chainInf... | 5 |
tushar80078/nexjs-netflix-clone | 1326b78 | src/app/api/favorites/route.ts | TypeScript | www.github.com/tushar80078/nexjs-netflix-clone/tree/main/src/app/api/favorites/route.ts | https://raw.githubusercontent.com/tushar80078/nexjs-netflix-clone/1326b78/src/app/api/favorites/route.ts | tushar80078/nexjs-netflix-clone 1326b78 src/app/api/favorites/route.ts | true | 200 | 638 | import prismadb from "../../../../lib/prismadb"
import serverAuth from "../../../../lib/serverAuth";
import { NextRequest, NextResponse } from "next/server";
export async function GET(
req: NextRequest,
){
try {
const {currentUser}= await serverAuth(req);
const favoriteMovies = await prismadb.... | 0 |
HimanshuLadva/Frontend_Backend | f1ba388 | live projects/kamara-FE/kamara/src/app/services/product.service.ts | TypeScript | www.github.com/HimanshuLadva/Frontend_Backend/tree/main/live projects/kamara-FE/kamara/src/app/services/product.service.ts | https://raw.githubusercontent.com/HimanshuLadva/Frontend_Backend/f1ba388/live%20projects/kamara-FE/kamara/src/app/services/product.service.ts | HimanshuLadva/Frontend_Backend f1ba388 live projects/kamara-FE/kamara/src/app/services/product.service.ts | true | 200 | 3,327 | import { Injectable } from '@angular/core';
import { Urls } from '../shared/config/url';
import { HttpClient } from '@angular/common/http';
import { Pagination } from '@modals/pagination.modal';
import { Subscription } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class ProductService {
baseUrl = Urls.p... | 3 |
Varenzoee/pkk2 | 5cbb007 | api/app/Controllers/Http/Authentication/RegisterController.ts | TypeScript | www.github.com/Varenzoee/pkk2/tree/main/api/app/Controllers/Http/Authentication/RegisterController.ts | https://raw.githubusercontent.com/Varenzoee/pkk2/5cbb007/api/app/Controllers/Http/Authentication/RegisterController.ts | Varenzoee/pkk2 5cbb007 api/app/Controllers/Http/Authentication/RegisterController.ts | true | 200 | 719 | import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import Role from 'App/Models/Role'
import User from 'App/Models/User'
import RegisterValidator from 'App/Validators/RegisterValidator'
export default class RegisterController {
public async index({ auth, request, response }: HttpContextContract)... | 6 |
eggplantiny/nuxt-base-project | 52ff1de | composables/utils/usePublicKey.ts | TypeScript | www.github.com/eggplantiny/nuxt-base-project/tree/main/composables/utils/usePublicKey.ts | https://raw.githubusercontent.com/eggplantiny/nuxt-base-project/52ff1de/composables/utils/usePublicKey.ts | eggplantiny/nuxt-base-project 52ff1de composables/utils/usePublicKey.ts | true | 200 | 1,610 | import forge from 'node-forge'
import { useTimeoutFn } from '@vueuse/shared'
import { useKSnackbar } from '~/composables/useKSnackbar'
function makePEM(message: string): string {
return `-----BEGIN PUBLIC KEY-----\n${message}-----END PUBLIC KEY-----`
}
const PUBLIC_KEY_LIFE_TIME = 1000 * 60 * 3 // 3 minutes
export... | 1 |
SectionJ/nest-js-example | b93d518 | src/shared/shared.module.ts | TypeScript | www.github.com/SectionJ/nest-js-example/tree/main/src/shared/shared.module.ts | https://raw.githubusercontent.com/SectionJ/nest-js-example/b93d518/src/shared/shared.module.ts | SectionJ/nest-js-example b93d518 src/shared/shared.module.ts | true | 200 | 747 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from './domain/entities/UserEntity';
import { UserRepositoryImpl } from './infrastructure/UserRepositoryImpl';
import { GetUserServices } from './application/GetUser.service';
import { GetUsersController } fr... | 2 |
wtaiatella/mercdomalte-frontend | 6e9b3e4 | src/components/LostPasswordModal/styles.ts | TypeScript | www.github.com/wtaiatella/mercdomalte-frontend/tree/main/src/components/LostPasswordModal/styles.ts | https://raw.githubusercontent.com/wtaiatella/mercdomalte-frontend/6e9b3e4/src/components/LostPasswordModal/styles.ts | wtaiatella/mercdomalte-frontend 6e9b3e4 src/components/LostPasswordModal/styles.ts | true | 200 | 496 | import styled from 'styled-components';
export const Container = styled.main`
background-image: url('/images/bg-site.jpg');
background-repeat: repeat;
height: calc(100vh - 93px - 2.6rem);
`;
export const Content = styled.div`
max-width: 500px;
margin: 0 auto;
padding: 0 1rem;
h1 {
padding: 2rem 0 0 0;
}
... | 7 |
antojoy23/url-shortner | 7526169 | app/a/[url_hash]/route.ts | TypeScript | www.github.com/antojoy23/url-shortner/tree/main/app/a/[url_hash]/route.ts | https://raw.githubusercontent.com/antojoy23/url-shortner/7526169/app/a/%5Burl_hash%5D/route.ts | antojoy23/url-shortner 7526169 app/a/[url_hash]/route.ts | true | 200 | 592 | import { getUrl, updateUrlVists } from '@/app/lib/db/database';
import whitelist from 'validator/es/lib/whitelist';
export async function GET(request: Request, { params }: { params: { url_hash: string } }) {
let santizedUrlHash = whitelist(params.url_hash, "a-zA-Z0-9")
const urls = await getUrl(santizedUrlHash... | 4 |
cliffordkleinsr/intuitive | b25e071 | src/lib/server/email-send.ts | TypeScript | www.github.com/cliffordkleinsr/intuitive/tree/main/src/lib/server/email-send.ts | https://raw.githubusercontent.com/cliffordkleinsr/intuitive/b25e071/src/lib/server/email-send.ts | cliffordkleinsr/intuitive b25e071 src/lib/server/email-send.ts | true | 200 | 2,092 | import nodemailer, { type Transporter } from 'nodemailer';
import {
SECRET_MAILJET_PASSWORD,
SECRET_MAILJET_USERNAME,
SECRET_SMTP2GO_PASSWORD,
SECRET_SMTP2GO_USERNAME
} from '$env/static/private';
let transporter: Transporter;
// create Nodemailer SMTP transporter
transporter = nodemailer.createTransport({
host: ... | 5 |
tretton37/kontan | d41dafd | kontan-server/src/scripts/update.db.script.ts | TypeScript | www.github.com/tretton37/kontan/tree/main/kontan-server/src/scripts/update.db.script.ts | https://raw.githubusercontent.com/tretton37/kontan/d41dafd/kontan-server/src/scripts/update.db.script.ts | tretton37/kontan d41dafd kontan-server/src/scripts/update.db.script.ts | true | 200 | 735 | #!/usr/bin/env ts-node-script
import { initializeApp, App, cert, ServiceAccount } from 'firebase-admin/app';
import { getFirestore } from 'firebase-admin/firestore';
let app: App;
const db = () => getFirestore(app);
async function init() {
const path =
process.argv[3] === 'production'
? '../../serviceAcc... | 0 |
tatisap/rs-lang | a7ae036 | src/components/games/sprint/view/card-constructor.ts | TypeScript | www.github.com/tatisap/rs-lang/tree/main/src/components/games/sprint/view/card-constructor.ts | https://raw.githubusercontent.com/tatisap/rs-lang/a7ae036/src/components/games/sprint/view/card-constructor.ts | tatisap/rs-lang a7ae036 src/components/games/sprint/view/card-constructor.ts | true | 200 | 2,822 | import UIElementsConstructor from '../../../../utils/ui-elements-creator';
import { ISprintQuestionInfo, KeyboardCode } from '../../../../types';
import AnswerProcessor from '../answer-processor';
export default class QuestionCardConstructor {
private elementConstructor: UIElementsConstructor;
private answerProce... | 3 |
aymen-omri/user_management | 1ff2849 | frontend/src/app/services/auth.service.ts | TypeScript | www.github.com/aymen-omri/user_management/tree/main/frontend/src/app/services/auth.service.ts | https://raw.githubusercontent.com/aymen-omri/user_management/1ff2849/frontend/src/app/services/auth.service.ts | aymen-omri/user_management 1ff2849 frontend/src/app/services/auth.service.ts | true | 200 | 796 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { catchError, map, throwError } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(private http: HttpClient) { }
apiUrl = "http://localhost:3000/login";
public login(use... | 6 |
zhangyixuan96/vue3-project | 327b2fd | vite.config.ts | TypeScript | www.github.com/zhangyixuan96/vue3-project/tree/main/vite.config.ts | https://raw.githubusercontent.com/zhangyixuan96/vue3-project/327b2fd/vite.config.ts | zhangyixuan96/vue3-project 327b2fd vite.config.ts | true | 200 | 1,420 | import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import * as path from 'path';
// import {
// createStyleImportPlugin,
// ElementPlusResolve,
// } from 'vite-plugin-style-import';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
//设置别名
alias: ... | 1 |
RedMarshall37/RODSite | daf2e27 | backend/src/app.module.ts | TypeScript | www.github.com/RedMarshall37/RODSite/tree/main/backend/src/app.module.ts | https://raw.githubusercontent.com/RedMarshall37/RODSite/daf2e27/backend/src/app.module.ts | RedMarshall37/RODSite daf2e27 backend/src/app.module.ts | true | 200 | 2,081 | import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { SequelizeModule } from '@nestjs/sequelize';
import { User } from './models/users.model';
import { UsersModule } from './users/users.module';
import { AuthModule } from './auth/auth.module';
import { AppController } from './... | 4 |
llucasspot/boomboom | 49a97a0 | apps/boumboumapp/src/modules/core/language/Languages/fr.ts | TypeScript | www.github.com/llucasspot/boomboom/tree/main/apps/boumboumapp/src/modules/core/language/Languages/fr.ts | https://raw.githubusercontent.com/llucasspot/boomboom/49a97a0/apps/boumboumapp/src/modules/core/language/Languages/fr.ts | llucasspot/boomboom 49a97a0 apps/boumboumapp/src/modules/core/language/Languages/fr.ts | true | 200 | 2,752 | import { CreateOneProfileBodyGenderEnum } from "@boumboum/swagger-backend";
import { LanguageTranslationType } from "#modules/core/language/beans/LanguageTranslationType";
export const fr: LanguageTranslationType = {
common: {
over: "Terminer",
description: "Description",
next: "Suivant",
toImplemen... | 2 |
babylon-finance/dapp-public | 6dd287a | src/models/GardenDetails.ts | TypeScript | www.github.com/babylon-finance/dapp-public/tree/main/src/models/GardenDetails.ts | https://raw.githubusercontent.com/babylon-finance/dapp-public/6dd287a/src/models/GardenDetails.ts | babylon-finance/dapp-public 6dd287a src/models/GardenDetails.ts | true | 200 | 4,111 | // Note: these imports are relative due to dependency in autotask/ project
// plan is to fix transitive imports for autotask and then move back to 'models' pattern
import { StrategyDetails } from './Strategies';
import { Contributor } from './Contributor';
import { Token } from './Token';
import { BigNumber } from '@e... | 7 |
programmer-jafir/Sports-Facility-Booking-Platform | 2266238 | src/middlwares/notFound.ts | TypeScript | www.github.com/programmer-jafir/Sports-Facility-Booking-Platform/tree/main/src/middlwares/notFound.ts | https://raw.githubusercontent.com/programmer-jafir/Sports-Facility-Booking-Platform/2266238/src/middlwares/notFound.ts | programmer-jafir/Sports-Facility-Booking-Platform 2266238 src/middlwares/notFound.ts | true | 200 | 345 | import { NextFunction, Request, Response } from "express";
import httpStatus from "http-status";
const notFound = (req:Request,res:Response,next:NextFunction)=>{
return res.status(httpStatus.NOT_FOUND).json({
success: false,
statusCode: httpStatus.NOT_FOUND,
message: 'Not Found',
})
}
... | 5 |
ManuelP84/sofkaU-store-challenge-react-redux | 536ee0c | src/actions/receiptsAction.ts | TypeScript | www.github.com/ManuelP84/sofkaU-store-challenge-react-redux/tree/main/src/actions/receiptsAction.ts | https://raw.githubusercontent.com/ManuelP84/sofkaU-store-challenge-react-redux/536ee0c/src/actions/receiptsAction.ts | ManuelP84/sofkaU-store-challenge-react-redux 536ee0c src/actions/receiptsAction.ts | true | 200 | 896 | import { createAsyncThunk } from "@reduxjs/toolkit";
import { receiptType } from "../state/receiptSlice";
const GET_ALL_RECEIPTS_URL =
"https://store-management-challenge.herokuapp.com/v1/api/get/receipts";
const POST_RECEIPT_URL =
"https://store-management-challenge.herokuapp.com/v1/api/save/receipt/";
//GET Act... | 3 |
IFBank/back-end | 71673ec | src/http/app.ts | TypeScript | www.github.com/IFBank/back-end/tree/main/src/http/app.ts | https://raw.githubusercontent.com/IFBank/back-end/71673ec/src/http/app.ts | IFBank/back-end 71673ec src/http/app.ts | true | 200 | 847 | import "reflect-metadata";
import "dotenv/config";
import express, { NextFunction, Request, Response } from "express";
import "express-async-errors";
import cors from "cors";
import { router } from "./routes";
import { AppError } from "../errors/AppError";
const app = express();
app.use(cors());
app.use(express.json(... | 6 |
bacchus-snu/id-front | ed246ce | app/(nolocale)/group/[id]/membership/route.ts | TypeScript | www.github.com/bacchus-snu/id-front/tree/main/app/(nolocale)/group/[id]/membership/route.ts | https://raw.githubusercontent.com/bacchus-snu/id-front/ed246ce/app/%28nolocale%29/group/%5Bid%5D/membership/route.ts | bacchus-snu/id-front ed246ce app/(nolocale)/group/[id]/membership/route.ts | true | 200 | 1,964 | import { NextResponse } from 'next/server';
import * as z from 'zod';
import {
acceptPendingGroupMembers,
applyToGroup,
BadRequestError,
ForbiddenError,
leaveGroup,
rejectOrRemoveGroupMembers,
} from '@/api';
import { getDictionary, getLocaleFromCookie } from '@/locale';
const bodySchema = z.intersection(... | 1 |
minjman2659/NestJS-rest-api | a3303ab | src/common/guards/auth.guard.ts | TypeScript | www.github.com/minjman2659/NestJS-rest-api/tree/main/src/common/guards/auth.guard.ts | https://raw.githubusercontent.com/minjman2659/NestJS-rest-api/a3303ab/src/common/guards/auth.guard.ts | minjman2659/NestJS-rest-api a3303ab src/common/guards/auth.guard.ts | true | 200 | 518 | import {
CanActivate,
ExecutionContext,
Injectable,
UnauthorizedException,
} from '@nestjs/common';
import { FastifyRequestWithUser } from '@common/types/fastify';
@Injectable()
export class AuthGuard implements CanActivate {
async canActivate(context: ExecutionContext) {
const request: FastifyRequestWit... | 0 |
egrommet/kendal_g | a12444a | src/services/newsletterService.ts | TypeScript | www.github.com/egrommet/kendal_g/tree/main/src/services/newsletterService.ts | https://raw.githubusercontent.com/egrommet/kendal_g/a12444a/src/services/newsletterService.ts | egrommet/kendal_g a12444a src/services/newsletterService.ts | true | 200 | 1,801 | import mailchimp from '@mailchimp/mailchimp_marketing';
interface SubscriptionResponse {
success: boolean;
message: string;
}
class NewsletterService {
private initialized = false;
private initialize() {
if (!this.initialized) {
mailchimp.setConfig({
apiKey: import.meta.env.VITE_MAILCHIMP_A... | 2 |
Feza-Roheel/adb | 94f54c2 | libraries/adb/esm/commands/subprocess/protocols/none.d.ts | TypeScript | www.github.com/Feza-Roheel/adb/tree/main/libraries/adb/esm/commands/subprocess/protocols/none.d.ts | https://raw.githubusercontent.com/Feza-Roheel/adb/94f54c2/libraries/adb/esm/commands/subprocess/protocols/none.d.ts | Feza-Roheel/adb 94f54c2 libraries/adb/esm/commands/subprocess/protocols/none.d.ts | true | 200 | 1,174 | import { Adb } from "../../../adb.js";
import { AdbSocket } from "../../../socket/index.js";
import { ReadableStream } from "../../../stream/index.js";
import { AdbSubprocessProtocol } from "./types.js";
/**
* The legacy shell
*
* Features:
* * `stderr`: No
* * `exit` exit code: No
* * `resize`: No
*/... | 4 |
Yangzongtai/play-node-koa-ts | 16a7268 | src/router/upload/index.ts | TypeScript | www.github.com/Yangzongtai/play-node-koa-ts/tree/main/src/router/upload/index.ts | https://raw.githubusercontent.com/Yangzongtai/play-node-koa-ts/16a7268/src/router/upload/index.ts | Yangzongtai/play-node-koa-ts 16a7268 src/router/upload/index.ts | true | 200 | 1,999 | /*
* @Author: Yongxin Donald
* @Date: 2024-03-18 14:39:04
* @LastEditors: yzt
* @LastEditTime: 2025-03-11 21:22:33
* @FilePath: \fontback\src\router\upload\index.ts
* @Description:
* Copyright (c) 2024 by Donald/Yongxin, All Rights Reserved.
*/
import Router from "koa-router";
import { Context } from "koa";
imp... | 5 |
vitorhugomarcal/DailyDiet_vhm | 79dd1fb | src/components/ButtonDiet/styles.ts | TypeScript | www.github.com/vitorhugomarcal/DailyDiet_vhm/tree/main/src/components/ButtonDiet/styles.ts | https://raw.githubusercontent.com/vitorhugomarcal/DailyDiet_vhm/79dd1fb/src/components/ButtonDiet/styles.ts | vitorhugomarcal/DailyDiet_vhm 79dd1fb src/components/ButtonDiet/styles.ts | true | 200 | 1,257 | import { Plus } from "phosphor-react-native";
import { TouchableOpacity } from "react-native";
import styled, { css } from "styled-components/native";
export type ButtonTypeStyleProps = 'PRIMARY' | 'SECONDARY';
interface Props {
type: ButtonTypeStyleProps
isActive?: boolean
}
export const Container = styled(Touc... | 3 |
kcsommers/LoWolfMusic | e989636 | lowolf-client/src/app/pages/home-page/home-page.component.ts | TypeScript | www.github.com/kcsommers/LoWolfMusic/tree/main/lowolf-client/src/app/pages/home-page/home-page.component.ts | https://raw.githubusercontent.com/kcsommers/LoWolfMusic/e989636/lowolf-client/src/app/pages/home-page/home-page.component.ts | kcsommers/LoWolfMusic e989636 lowolf-client/src/app/pages/home-page/home-page.component.ts | true | 200 | 494 | import { Component } from '@angular/core';
import { albums, BasePage, HtmlMetaService } from '@lo/core';
@Component({
selector: 'lo-home-page',
templateUrl: './home-page.component.html',
styleUrls: ['./home-page.component.scss']
})
export class HomePageComponent extends BasePage {
public albums = albums;
... | 1 |
FernandoGinelli/angular | 96147bf | src/app/clientes/clientes/clientes.component.ts | TypeScript | www.github.com/FernandoGinelli/angular/tree/main/src/app/clientes/clientes/clientes.component.ts | https://raw.githubusercontent.com/FernandoGinelli/angular/96147bf/src/app/clientes/clientes/clientes.component.ts | FernandoGinelli/angular 96147bf src/app/clientes/clientes/clientes.component.ts | true | 200 | 625 | import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Clientes } from '../model/clientes';
import { ClientesService } from '../services/clientes.service';
@Component({
selector: 'app-clientes',
templateUrl: './clientes.component.html',
styleUrls: ['./clientes.component.cs... | 6 |
Bashmaistro/LeetCodeProblems | 8a29e92 | 2352.equal-row-and-column-pairs.ts | TypeScript | www.github.com/Bashmaistro/LeetCodeProblems/tree/main/2352.equal-row-and-column-pairs.ts | https://raw.githubusercontent.com/Bashmaistro/LeetCodeProblems/8a29e92/2352.equal-row-and-column-pairs.ts | Bashmaistro/LeetCodeProblems 8a29e92 2352.equal-row-and-column-pairs.ts | true | 200 | 689 | /*
* @lc app=leetcode id=2352 lang=typescript
*
* [2352] Equal Row and Column Pairs
*/
// @lc code=start
function equalPairs(grid: number[][]): number {
const n = grid.length;
let count = 0;
const rows = grid.map(row => row.join(','));
const columns: string[] = [];
for (let j = 0; j < n; ... | 0 |
fernandondev/superheroi | 6042412 | src/modules/superheroi/dtos/paginacao.dto.ts | TypeScript | www.github.com/fernandondev/superheroi/tree/main/src/modules/superheroi/dtos/paginacao.dto.ts | https://raw.githubusercontent.com/fernandondev/superheroi/6042412/src/modules/superheroi/dtos/paginacao.dto.ts | fernandondev/superheroi 6042412 src/modules/superheroi/dtos/paginacao.dto.ts | true | 200 | 1,687 | import { ApiProperty } from "@nestjs/swagger";
import { IsBoolean, IsDefined, IsInt, IsOptional, IsPositive } from "class-validator";
export class FiltroEPaginacaoDto {
@ApiProperty({
required: true,
example: 3
})
@IsInt()
@IsPositive()
@IsDefined()
numeroPagina: number;
@... | 4 |
pallabbarman/lens-shot-backend | 3d2c2f0 | src/modules/comment/route.ts | TypeScript | www.github.com/pallabbarman/lens-shot-backend/tree/main/src/modules/comment/route.ts | https://raw.githubusercontent.com/pallabbarman/lens-shot-backend/3d2c2f0/src/modules/comment/route.ts | pallabbarman/lens-shot-backend 3d2c2f0 src/modules/comment/route.ts | true | 200 | 918 | /* eslint-disable comma-dangle */
import { Roles } from '@prisma/client';
import { Router } from 'express';
import auth from 'middlewares/auth';
import validateRequest from 'middlewares/validateRequest';
import {
createComment,
deleteComment,
getAllComments,
getComment,
updateComment,
} from './cont... | 7 |
fourThePet/GATE-FrontEnd | 72fb06d | src/utils/convertImageUrlToFile.ts | TypeScript | www.github.com/fourThePet/GATE-FrontEnd/tree/main/src/utils/convertImageUrlToFile.ts | https://raw.githubusercontent.com/fourThePet/GATE-FrontEnd/72fb06d/src/utils/convertImageUrlToFile.ts | fourThePet/GATE-FrontEnd 72fb06d src/utils/convertImageUrlToFile.ts | true | 200 | 332 | import axios from "axios";
export const convertImageUrlToFile = async (url, fileName) => {
const response = await axios.get(url, {
responseType: "blob",
withCredentials: false // 크로스 도메인 인증 정보 제외
});
return new File([response.data], fileName, { type: response.data.type });
};
| 2 |
shiva5152/MontageIndia-MGTeam | b284a89 | server/src/model/subscriptions/subscriptionPlan.ts | TypeScript | www.github.com/shiva5152/MontageIndia-MGTeam/tree/main/server/src/model/subscriptions/subscriptionPlan.ts | https://raw.githubusercontent.com/shiva5152/MontageIndia-MGTeam/b284a89/server/src/model/subscriptions/subscriptionPlan.ts | shiva5152/MontageIndia-MGTeam b284a89 server/src/model/subscriptions/subscriptionPlan.ts | true | 200 | 1,572 | import mongoose, { Document, Schema } from 'mongoose';
interface ISubscriptionPlan extends Document {
planId: string;
entity: string;
interval: number;
period: string;
total_count: number;
customer_notify: number;
item: {
id: string;
active: boolean;
name: string;
... | 5 |
f-lab-edu/alg-everyday | 02b84a8 | 1.programmers/lv.2/투포인터_숫자의표현.ts | TypeScript | www.github.com/f-lab-edu/alg-everyday/tree/main/1.programmers/lv.2/투포인터_숫자의표현.ts | https://raw.githubusercontent.com/f-lab-edu/alg-everyday/02b84a8/1.programmers/lv.2/%ED%88%AC%ED%8F%AC%EC%9D%B8%ED%84%B0_%EC%88%AB%EC%9E%90%EC%9D%98%ED%91%9C%ED%98%84.ts | f-lab-edu/alg-everyday 02b84a8 1.programmers/lv.2/투포인터_숫자의표현.ts | true | 200 | 1,458 | // https://school.programmers.co.kr/learn/courses/30/lessons/12924
//! 1. 브루트포스 방식
// 아주 단순하게 모든 가능성을 하나하나 다 해보는 방법
const 숫자의표현 = (n: number): number => {
let ans = 0;
for (let i = 1; i <= n; i++) {
let j = i;
let sum = 0;
while (sum < n) {
sum += j;
if (sum === n) ans++;
j++;
}
... | 3 |
tako-discord/typescript-discord-bot | 970669e | src/i18n.ts | TypeScript | www.github.com/tako-discord/typescript-discord-bot/tree/main/src/i18n.ts | https://raw.githubusercontent.com/tako-discord/typescript-discord-bot/970669e/src/i18n.ts | tako-discord/typescript-discord-bot 970669e src/i18n.ts | true | 200 | 696 | import { readdirSync } from 'node:fs';
import i18next from 'i18next';
import type { FsBackendOptions } from 'i18next-fs-backend';
import FsBackend from 'i18next-fs-backend';
await i18next
.use(FsBackend)
.init<FsBackendOptions>({
fallbackLng: 'en',
returnEmptyString: false,
backend: {
loadPath: (import.meta... | 6 |
jandersonvb/clean-react | 3295708 | src/data/test/mock-http-client.ts | TypeScript | www.github.com/jandersonvb/clean-react/tree/main/src/data/test/mock-http-client.ts | https://raw.githubusercontent.com/jandersonvb/clean-react/3295708/src/data/test/mock-http-client.ts | jandersonvb/clean-react 3295708 src/data/test/mock-http-client.ts | true | 200 | 462 | import { type HttpResponse, type HttpPostClient, HttpStatusCode, type HttpPostParams } from '@/data/protocols/http'
export class HttpPostClientSpy<T, R> implements HttpPostClient<T, R> {
url?: string
body?: T
response: HttpResponse<R> = {
statusCode: HttpStatusCode.ok
}
async post(params: HttpPostParams... | 0 |
LovHurt/weather-app | fff99ae | src/Hooks/useDebounce.ts | TypeScript | www.github.com/LovHurt/weather-app/tree/main/src/Hooks/useDebounce.ts | https://raw.githubusercontent.com/LovHurt/weather-app/fff99ae/src/Hooks/useDebounce.ts | LovHurt/weather-app fff99ae src/Hooks/useDebounce.ts | true | 200 | 380 | import { useEffect, useState } from "react";
const useDebounce = (value: string, delay = 250) => {
const [debouncedCity, setDebouncedCity] = useState(value);
useEffect(() => {
const timeout = setTimeout(() => setDebouncedCity(value), delay);
return () => {
clearTimeout(timeout);
};
}, [value]... | 7 |
nextcaptcha/nextcaptcha-typescript | 70b45b5 | test/index.test.ts | TypeScript | www.github.com/nextcaptcha/nextcaptcha-typescript/tree/main/test/index.test.ts | https://raw.githubusercontent.com/nextcaptcha/nextcaptcha-typescript/70b45b5/test/index.test.ts | nextcaptcha/nextcaptcha-typescript 70b45b5 test/index.test.ts | true | 200 | 2,874 | import {describe, expect, test} from '@jest/globals';
import NextCaptcha from '../src'
require('dotenv').config();
const clientKey = process.env.CLIENT_KEY || '';
const client = new NextCaptcha(clientKey);
describe('client', () => {
test('getBalance', async () => {
const balance = await client.getBalance();
... | 2 |
repowpolsturk/Deploycha | a11beed | src/types/types.service.ts | TypeScript | www.github.com/repowpolsturk/Deploycha/tree/main/src/types/types.service.ts | https://raw.githubusercontent.com/repowpolsturk/Deploycha/a11beed/src/types/types.service.ts | repowpolsturk/Deploycha a11beed src/types/types.service.ts | true | 200 | 1,188 | import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CreateTypeDto } from './dto/type.dto';
import { Type } from './entity/type.entity';
@Injectable()
export class TypeService {
constructor(
@InjectRepo... | 5 |
youngsun4786/inventory-management | 8800a26 | server/src/controllers/product.controller.ts | TypeScript | www.github.com/youngsun4786/inventory-management/tree/main/server/src/controllers/product.controller.ts | https://raw.githubusercontent.com/youngsun4786/inventory-management/8800a26/server/src/controllers/product.controller.ts | youngsun4786/inventory-management 8800a26 server/src/controllers/product.controller.ts | true | 200 | 1,021 | import { Request, Response } from "express";
import prisma from "../../prisma";
export class ProductController {
constructor() {}
getProducts = async (req: Request, res: Response): Promise<void> => {
try {
const search = req.query.search?.toString();
const products = await prisma.products.findMany(... | 1 |
EsraOzdogan/etiyaAcademy | 52b4040 | etiyaAngular/etiya-angular/src/app/features/customers/pages/customer-dashboard/customer-dashboard.component.ts | TypeScript | www.github.com/EsraOzdogan/etiyaAcademy/tree/main/etiyaAngular/etiya-angular/src/app/features/customers/pages/customer-dashboard/customer-dashboard.component.ts | https://raw.githubusercontent.com/EsraOzdogan/etiyaAcademy/52b4040/etiyaAngular/etiya-angular/src/app/features/customers/pages/customer-dashboard/customer-dashboard.component.ts | EsraOzdogan/etiyaAcademy 52b4040 etiyaAngular/etiya-angular/src/app/features/customers/pages/customer-dashboard/customer-dashboard.component.ts | true | 200 | 1,312 | import { Customer } from './../../models/customer';
import { Component, OnInit } from '@angular/core';
//import { ListResponseModel } from 'src/app/core/models/listResponseModel';
import { CustomerService } from 'src/app/features/customers/services/customers/customer.service';
@Component({
selector: 'app-customer-da... | 3 |
CodeWithShamim/book-catallog-backend | d773ca3 | src/shared/hanldeFilters.ts | TypeScript | www.github.com/CodeWithShamim/book-catallog-backend/tree/main/src/shared/hanldeFilters.ts | https://raw.githubusercontent.com/CodeWithShamim/book-catallog-backend/d773ca3/src/shared/hanldeFilters.ts | CodeWithShamim/book-catallog-backend d773ca3 src/shared/hanldeFilters.ts | true | 200 | 1,297 | /* eslint-disable @typescript-eslint/no-explicit-any */
const handleFilters = (filters: any, searchFields: string[]) => {
const { search, ...filtersData } = filters;
const andConditons = [];
if (filtersData.minPrice || filtersData.maxPrice) {
const minPrice = Number(filtersData.minPrice) || 0;
const maxP... | 6 |
DouglasD18/youtube-content | 662e9f0 | simple-api/src/service/index.ts | TypeScript | www.github.com/DouglasD18/youtube-content/tree/main/simple-api/src/service/index.ts | https://raw.githubusercontent.com/DouglasD18/youtube-content/662e9f0/simple-api/src/service/index.ts | DouglasD18/youtube-content 662e9f0 simple-api/src/service/index.ts | true | 200 | 778 | import { BooksModel } from "../model";
export class BooksServices {
constructor(private model: BooksModel) {}
async add(book: any) {
const fields = ["author", "title", "price"];
fields.forEach((field) => {
if (!book[field]) {
throw new Error(`Missing field ${field}`);
}
});
... | 4 |
EltonWhybrow/widesign-eltonwhybrow | 043f686 | src/app/features/about/pages/about/about.component.ts | TypeScript | www.github.com/EltonWhybrow/widesign-eltonwhybrow/tree/main/src/app/features/about/pages/about/about.component.ts | https://raw.githubusercontent.com/EltonWhybrow/widesign-eltonwhybrow/043f686/src/app/features/about/pages/about/about.component.ts | EltonWhybrow/widesign-eltonwhybrow 043f686 src/app/features/about/pages/about/about.component.ts | true | 200 | 962 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { Meta } from '@angular/platform-browser';
import { CanonicalService } from 'src/app/shared/services/canonical.service';
@Component({
selector: 'app-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
})
export ... | 0 |
bahrus/for-fetch | fca76bd | config.ts | TypeScript | www.github.com/bahrus/for-fetch/tree/main/config.ts | https://raw.githubusercontent.com/bahrus/for-fetch/fca76bd/config.ts | bahrus/for-fetch fca76bd config.ts | true | 200 | 2,828 | import {OConfig} from './ts-refs/trans-render/froop/types';
import { Actions, AllProps } from './ts-refs/for-fetch/types';
export const config: OConfig<AllProps, Actions> = {
propDefaults:{
accept: '',
/**
* this is a test
*/
credentials: 'omit',
method: 'GET',
... | 7 |
felixxwu/label-manage | 18a908e | utils/scrape.ts | TypeScript | www.github.com/felixxwu/label-manage/tree/main/utils/scrape.ts | https://raw.githubusercontent.com/felixxwu/label-manage/18a908e/utils/scrape.ts | felixxwu/label-manage 18a908e utils/scrape.ts | true | 200 | 5,426 | import { updateDocTyped } from './db'
import { load } from './load'
import { snackErrorReturn } from './snackError'
import { store } from './store'
import { Label } from './types'
export async function scrape(url: string) {
const res = await fetch('/api/scraper', {
method: 'post',
headers: {
'content-t... | 2 |
Tayyib-A60/ZSAccountTMUI | bce1b17 | src/app/app.module.ts | TypeScript | www.github.com/Tayyib-A60/ZSAccountTMUI/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Tayyib-A60/ZSAccountTMUI/bce1b17/src/app/app.module.ts | Tayyib-A60/ZSAccountTMUI bce1b17 src/app/app.module.ts | true | 200 | 1,197 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { MDBBootstrapModule } from 'angular-bootstrap-md';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { NavComponent } from ... | 1 |
Elemental-Imperium-Web3-Deployments/token-factory | 9808c3f | scripts/wallet.ts | TypeScript | www.github.com/Elemental-Imperium-Web3-Deployments/token-factory/tree/main/scripts/wallet.ts | https://raw.githubusercontent.com/Elemental-Imperium-Web3-Deployments/token-factory/9808c3f/scripts/wallet.ts | Elemental-Imperium-Web3-Deployments/token-factory 9808c3f scripts/wallet.ts | true | 200 | 1,307 | import { Network, TatumSDK, Ethereum, ApiVersion } from "@tatumio/tatum";
export async function initializeWallet(contractAddress: string) {
if (!process.env.TATUM_API_KEY) {
throw new Error("TATUM_API_KEY environment variable is not set");
}
const tatum = await TatumSDK.init<Ethereum>({
ne... | 5 |
SaidGandur01/frisbee-golf | 15b64a3 | src/app/components/frisbee-list/frisbee-list.component.spec.ts | TypeScript | www.github.com/SaidGandur01/frisbee-golf/tree/main/src/app/components/frisbee-list/frisbee-list.component.spec.ts | https://raw.githubusercontent.com/SaidGandur01/frisbee-golf/15b64a3/src/app/components/frisbee-list/frisbee-list.component.spec.ts | SaidGandur01/frisbee-golf 15b64a3 src/app/components/frisbee-list/frisbee-list.component.spec.ts | true | 200 | 3,115 | import { Component, Input } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Frisbee } from '@utils/frisbee.interface';
import { frisbeeData } from '@utils/frisbee-data';
import { FrisbeeListComponent } from './frisbee-list.component';
import { FrisbeeService } from '@se... | 6 |
rsoli/rastreo | 5ecd35a | kolosu/src/app/demo/components/modelos/geocerca-modelo.ts | TypeScript | www.github.com/rsoli/rastreo/tree/main/kolosu/src/app/demo/components/modelos/geocerca-modelo.ts | https://raw.githubusercontent.com/rsoli/rastreo/5ecd35a/kolosu/src/app/demo/components/modelos/geocerca-modelo.ts | rsoli/rastreo 5ecd35a kolosu/src/app/demo/components/modelos/geocerca-modelo.ts | true | 200 | 2,022 |
import { ApiService } from './../servicios/api.service';
export class GeocercaModelo {
id: number = 0;
area: string = "";
descripcion: string = "";
nombre_geocerca: string = "";
tipo_geocerca: string = "";
usuario: number = 0;
// Otros atributos del modelo
static columns = [
{ field: 'id', heade... | 4 |
akijoey/webssh | d6b6f95 | lib/banner.ts | TypeScript | www.github.com/akijoey/webssh/tree/main/lib/banner.ts | https://raw.githubusercontent.com/akijoey/webssh/d6b6f95/lib/banner.ts | akijoey/webssh d6b6f95 lib/banner.ts | true | 200 | 1,857 | import { note } from 'lognote'
import { description, homepage, bugs, author, license } from '../package.json'
const banner = `
██╗ ██╗███████╗██████╗ ${note.blueBright('███████╗███████╗██╗ ██╗')}
██║ ██║██╔════╝██╔══██╗${note.blueBright('██╔════╝██╔════╝██║ ██║')}
██║ █╗ ██║█████╗ ██████╔╝${note.blueBright('█... | 7 |
utoker/bookwise | 74db574 | src/pages/api/getbooks.ts | TypeScript | www.github.com/utoker/bookwise/tree/main/src/pages/api/getbooks.ts | https://raw.githubusercontent.com/utoker/bookwise/74db574/src/pages/api/getbooks.ts | utoker/bookwise 74db574 src/pages/api/getbooks.ts | true | 200 | 1,308 | import eucDistance from 'lib/euclideanDistance';
import clientPromise from 'lib/mango';
import type { NextApiRequest, NextApiResponse } from 'next';
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const user = req.body;
try {
const client = await clientPromise;
const db = client.db('... | 0 |
manswami/tryhydra | a010021 | packages/cli/src/commands/hydrogen/build.test.ts | TypeScript | www.github.com/manswami/tryhydra/tree/main/packages/cli/src/commands/hydrogen/build.test.ts | https://raw.githubusercontent.com/manswami/tryhydra/a010021/packages/cli/src/commands/hydrogen/build.test.ts | manswami/tryhydra a010021 packages/cli/src/commands/hydrogen/build.test.ts | true | 200 | 1,945 | import '../../lib/onboarding/setup-template.mocks.js';
import {
readFile,
fileExists,
inTemporaryDirectory,
} from '@shopify/cli-kit/node/fs';
import {describe, it, expect, vi} from 'vitest';
import {joinPath} from '@shopify/cli-kit/node/path';
import {mockAndCaptureOutput} from '@shopify/cli-kit/node/testing/out... | 2 |
TruongSon00/nestjs | 8271ad7 | mms-service-develop/src/components/maintenance-attribute/dto/response/get-list-all-maintenance-attribute.response.dto.ts | TypeScript | www.github.com/TruongSon00/nestjs/tree/main/mms-service-develop/src/components/maintenance-attribute/dto/response/get-list-all-maintenance-attribute.response.dto.ts | https://raw.githubusercontent.com/TruongSon00/nestjs/8271ad7/mms-service-develop/src/components/maintenance-attribute/dto/response/get-list-all-maintenance-attribute.response.dto.ts | TruongSon00/nestjs 8271ad7 mms-service-develop/src/components/maintenance-attribute/dto/response/get-list-all-maintenance-attribute.response.dto.ts | true | 200 | 328 | import { BaseResponseDto } from '@core/dto/base.response.dto';
import { ApiProperty } from '@nestjs/swagger';
import { Expose } from 'class-transformer';
export class GetListAllMaintenanceAttributeResponseDto extends BaseResponseDto {
@ApiProperty()
@Expose()
code: string;
@ApiProperty()
@Expose()
name: s... | 1 |
PintaAI/aquarium-v4.0 | bad6e78 | app/manifest.ts | TypeScript | www.github.com/PintaAI/aquarium-v4.0/tree/main/app/manifest.ts | https://raw.githubusercontent.com/PintaAI/aquarium-v4.0/bad6e78/app/manifest.ts | PintaAI/aquarium-v4.0 bad6e78 app/manifest.ts | true | 200 | 768 | import { MetadataRoute } from 'next'
export default function manifest(): MetadataRoute.Manifest {
return {
name: "Pejuangkorea Academy",
short_name: "Pejuangkorea",
description: "Learn Korean language and culture",
start_url: "/",
display: "standalone",
background_color: "#000000",
theme_... | 5 |
listspa/groot | 8af000a | projects/groot/src/lib/groot-table-autocol/components/groot-table-autocol/columns-selector/columns-selector.component.ts | TypeScript | www.github.com/listspa/groot/tree/main/projects/groot/src/lib/groot-table-autocol/components/groot-table-autocol/columns-selector/columns-selector.component.ts | https://raw.githubusercontent.com/listspa/groot/8af000a/projects/groot/src/lib/groot-table-autocol/components/groot-table-autocol/columns-selector/columns-selector.component.ts | listspa/groot 8af000a projects/groot/src/lib/groot-table-autocol/components/groot-table-autocol/columns-selector/columns-selector.component.ts | true | 200 | 1,614 | import {Component, EventEmitter, OnInit} from '@angular/core';
import {BsModalRef} from 'ngx-bootstrap/modal';
import {CdkDragDrop, moveItemInArray, transferArrayItem} from '@angular/cdk/drag-drop';
import {SelectedColumns, TableColumns} from '../../../model/table-columns.model';
@Component({
selector: 'groot-column... | 3 |
harluss/react-springboot-postgres-notes-app | 5d4c3a4 | src/client/src/features/notes/notesSlice.ts | TypeScript | www.github.com/harluss/react-springboot-postgres-notes-app/tree/main/src/client/src/features/notes/notesSlice.ts | https://raw.githubusercontent.com/harluss/react-springboot-postgres-notes-app/5d4c3a4/src/client/src/features/notes/notesSlice.ts | harluss/react-springboot-postgres-notes-app 5d4c3a4 src/client/src/features/notes/notesSlice.ts | true | 200 | 4,078 | import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
import { RootState } from 'app/store';
import { NoteAdd, NoteEdit, Note } from 'types';
import { apiClientCancelToken, notesAPI } from 'api';
import { ABORT_REQ_ERROR_NAME } from 'constants/const';
type NotesState = {
data: Note[];
status: 'idle' | ... | 6 |
LiebingMaximilian/cardlearning | 1196a97 | src/app/create-card/create-card.component.ts | TypeScript | www.github.com/LiebingMaximilian/cardlearning/tree/main/src/app/create-card/create-card.component.ts | https://raw.githubusercontent.com/LiebingMaximilian/cardlearning/1196a97/src/app/create-card/create-card.component.ts | LiebingMaximilian/cardlearning 1196a97 src/app/create-card/create-card.component.ts | true | 200 | 1,603 | import { Component } from '@angular/core';
import { CardService } from '../card-service.service';
import { Card } from '../card';
import {MatCardModule} from '@angular/material/card';
import {MatButtonModule} from '@angular/material/button';
import { MatFormField } from '@angular/material/form-field';
import { MatLabel... | 4 |
HappyVirgo/teqqed-test-react | 1a544c1 | src/store/sagas/assetsSaga.ts | TypeScript | www.github.com/HappyVirgo/teqqed-test-react/tree/main/src/store/sagas/assetsSaga.ts | https://raw.githubusercontent.com/HappyVirgo/teqqed-test-react/1a544c1/src/store/sagas/assetsSaga.ts | HappyVirgo/teqqed-test-react 1a544c1 src/store/sagas/assetsSaga.ts | true | 200 | 872 | import * as assetsActionTypes from "../actions/assets-action/assets-action-types";
import { all, call, put, takeLatest } from "redux-saga/effects";
import { getAssets } from "../../services";
import {
fetchAssetsFailure,
fetchAssetsSuccess,
} from "../actions/assets-action/assets-action";
function* fetchAssetsSag... | 7 |
khadyjaGueye/move_skills_front | 62b9fb5 | src/app/components/formateur/list-parcours/list-parcours.component.ts | TypeScript | www.github.com/khadyjaGueye/move_skills_front/tree/main/src/app/components/formateur/list-parcours/list-parcours.component.ts | https://raw.githubusercontent.com/khadyjaGueye/move_skills_front/62b9fb5/src/app/components/formateur/list-parcours/list-parcours.component.ts | khadyjaGueye/move_skills_front 62b9fb5 src/app/components/formateur/list-parcours/list-parcours.component.ts | true | 200 | 10,521 | import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { Skill, FormDataT, VideoFile, Parcour } from '../../../interfaces/model';
import { FormateurService } from '../../../services/formateurs/formateur... | 0 |
tereshchenkovladyslav4/peak-browser | 5a3f651 | src/app/modules/assignments/components/assignment-status/assignment-status.component.ts | TypeScript | www.github.com/tereshchenkovladyslav4/peak-browser/tree/main/src/app/modules/assignments/components/assignment-status/assignment-status.component.ts | https://raw.githubusercontent.com/tereshchenkovladyslav4/peak-browser/5a3f651/src/app/modules/assignments/components/assignment-status/assignment-status.component.ts | tereshchenkovladyslav4/peak-browser 5a3f651 src/app/modules/assignments/components/assignment-status/assignment-status.component.ts | true | 200 | 515 | import { NgIf } from '@angular/common';
import { Component, Input } from '@angular/core';
import { SharedModule } from 'src/app/modules/shared/shared.module';
import { Assignment } from 'src/app/resources/models/assignment';
@Component({
selector: 'ep-assignment-status',
templateUrl: './assignment-status.component... | 1 |
hypermedia-app/shape-to-query | b5a89ed | packages/shape-to-query/test/model/nodeExpression/LimitExpression.test.ts | TypeScript | www.github.com/hypermedia-app/shape-to-query/tree/main/packages/shape-to-query/test/model/nodeExpression/LimitExpression.test.ts | https://raw.githubusercontent.com/hypermedia-app/shape-to-query/b5a89ed/packages/shape-to-query/test/model/nodeExpression/LimitExpression.test.ts | hypermedia-app/shape-to-query b5a89ed packages/shape-to-query/test/model/nodeExpression/LimitExpression.test.ts | true | 200 | 4,620 | import { rdf, schema } from '@tpluscode/rdf-ns-builders'
import { sh } from '@tpluscode/rdf-ns-builders/loose'
import { expect } from 'chai'
import sinon from 'sinon'
import { SELECT, sparql } from '@tpluscode/sparql-builder'
import $rdf from '@zazuko/env/web.js'
import { LimitExpression } from '../../../model/nodeExpr... | 2 |
ankittyagi140/Auth-service-using-JWT-and-Redis- | 933bf91 | src/routes/api.ts | TypeScript | www.github.com/ankittyagi140/Auth-service-using-JWT-and-Redis-/tree/main/src/routes/api.ts | https://raw.githubusercontent.com/ankittyagi140/Auth-service-using-JWT-and-Redis-/933bf91/src/routes/api.ts | ankittyagi140/Auth-service-using-JWT-and-Redis- 933bf91 src/routes/api.ts | true | 200 | 637 | import express from "express";
import AuthController from "../controllers/AuthController";
import { registerValidation } from "../validations/authValidation";
import { authenticateJwtToken } from "../middleware/authMiddleware";
import UsersController from "../controllers/UsersController";
const router = express.Router... | 5 |
devruchoa/vitalcore-frontend | 758589c | src/app/features/auth/state/auth/auth.reducer.ts | TypeScript | www.github.com/devruchoa/vitalcore-frontend/tree/main/src/app/features/auth/state/auth/auth.reducer.ts | https://raw.githubusercontent.com/devruchoa/vitalcore-frontend/758589c/src/app/features/auth/state/auth/auth.reducer.ts | devruchoa/vitalcore-frontend 758589c src/app/features/auth/state/auth/auth.reducer.ts | true | 200 | 762 | import { createReducer, on } from '@ngrx/store';
import { initialAuthState } from '@features/auth/models/user.model';
import * as AuthActions from './auth.actions';
export const authFeatureKey = 'auth';
export const authReducer = createReducer(
initialAuthState,
on(AuthActions.login, (state) => ({
...state,
... | 3 |
mchrmo/tms | 857ee22 | src/lib/controllers/users.controller.ts | TypeScript | www.github.com/mchrmo/tms/tree/main/src/lib/controllers/users.controller.ts | https://raw.githubusercontent.com/mchrmo/tms/857ee22/src/lib/controllers/users.controller.ts | mchrmo/tms 857ee22 src/lib/controllers/users.controller.ts | true | 200 | 3,425 | import { NextRequest, NextResponse } from "next/server";
import userService, { CurrentUserDetail, UserDetail } from "../services/user.service";
import { ApiError } from "next/dist/server/api-utils";
import { passwordSchema, userColumns, UserCreateSchema, userListIncludes, UserUpdateSchema } from "../models/user.model";... | 6 |
NirmalNyaupane/ticket-sathi | 6dbc82e | apps/server/src/schemas/user/auth.schemas.ts | TypeScript | www.github.com/NirmalNyaupane/ticket-sathi/tree/main/apps/server/src/schemas/user/auth.schemas.ts | https://raw.githubusercontent.com/NirmalNyaupane/ticket-sathi/6dbc82e/apps/server/src/schemas/user/auth.schemas.ts | NirmalNyaupane/ticket-sathi 6dbc82e apps/server/src/schemas/user/auth.schemas.ts | true | 200 | 1,058 | import { Field, InputType, ObjectType } from "type-graphql";
import { RegisterValidator } from "../../validators/auth/register.validator";
import { CommonResponse } from "..";
import { UserRole } from "../../constants/enums/auth.enum";
@InputType()
class RegisterUserSchema extends RegisterValidator { }
@Objec... | 4 |
RichAyotte/baktz | 1e39e55 | nuxt.config.ts | TypeScript | www.github.com/RichAyotte/baktz/tree/main/nuxt.config.ts | https://raw.githubusercontent.com/RichAyotte/baktz/1e39e55/nuxt.config.ts | RichAyotte/baktz 1e39e55 nuxt.config.ts | true | 200 | 2,137 | import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
import inject from '@rollup/plugin-inject'
import { defineNuxtConfig } from 'nuxt/config'
import pkg from './package.json'
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
htmlAttrs: {
lang: 'en',
},
... | 7 |
VxrRoot/Electronic_journal | 596a182 | src/components/templates/main-template/MainTemplate.styles.ts | TypeScript | www.github.com/VxrRoot/Electronic_journal/tree/main/src/components/templates/main-template/MainTemplate.styles.ts | https://raw.githubusercontent.com/VxrRoot/Electronic_journal/596a182/src/components/templates/main-template/MainTemplate.styles.ts | VxrRoot/Electronic_journal 596a182 src/components/templates/main-template/MainTemplate.styles.ts | true | 200 | 372 | import styled from 'styled-components';
import {Input} from '../../atoms/input/Input.styles';
export const Wrapper = styled.div`
width: 100%;
height: 100%;
display: grid;
grid-template-columns: 150px 1fr 0.75fr;
grid-template-rows: 90px 1fr;
`;
export const StyledMain = styled.div`
width: calc(100% - 1... | 1 |
MykhailoShchuka/realtime_tickers | 08a761a | client/src/utils/tests/constants.ts | TypeScript | www.github.com/MykhailoShchuka/realtime_tickers/tree/main/client/src/utils/tests/constants.ts | https://raw.githubusercontent.com/MykhailoShchuka/realtime_tickers/08a761a/client/src/utils/tests/constants.ts | MykhailoShchuka/realtime_tickers 08a761a client/src/utils/tests/constants.ts | true | 200 | 1,571 | import { Ticker } from '../../types/Ticker';
const prevTicker1: Ticker = {
ticker: '1',
change: '0',
change_percent: '0',
dividend: '0',
exchange: '0',
last_trade_time: '',
price: '100',
yield: '0',
};
const ticker1: Ticker = {
ticker: '1',
change: '0',
change_percent: '0',
dividend: '0',
ex... | 2 |
Developer-GoQuestMedia/QA-APP | deb8377 | app/api/voice-models/available/route.ts | TypeScript | www.github.com/Developer-GoQuestMedia/QA-APP/tree/main/app/api/voice-models/available/route.ts | https://raw.githubusercontent.com/Developer-GoQuestMedia/QA-APP/deb8377/app/api/voice-models/available/route.ts | Developer-GoQuestMedia/QA-APP deb8377 app/api/voice-models/available/route.ts | true | 200 | 3,150 | import { NextResponse } from 'next/server';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth';
import { connectToDatabase } from '@/lib/mongodb';
// Set runtime config
export const dynamic = 'force-dynamic';
export const runtime = 'nodejs';
const REQUIRED_MODEL = 'eleven_multiling... | 3 |
MostakemHossain/sports-facility-booking-platform-backend | 7e1e742 | src/app/modules/payment/payment.service.ts | TypeScript | www.github.com/MostakemHossain/sports-facility-booking-platform-backend/tree/main/src/app/modules/payment/payment.service.ts | https://raw.githubusercontent.com/MostakemHossain/sports-facility-booking-platform-backend/7e1e742/src/app/modules/payment/payment.service.ts | MostakemHossain/sports-facility-booking-platform-backend 7e1e742 src/app/modules/payment/payment.service.ts | true | 200 | 1,079 | /* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { readFileSync } from "fs";
import { join } from "path";
import Booking from "../Booking/Booking.model";
import { Order } from "../Order/order.model";
const confirmationService = async (
transactionId: string,
status:... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.