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
camilarib/ProgInt-AtvdEndereco-api
d71fffc
src/app/models/Endereco.ts
TypeScript
www.github.com/camilarib/ProgInt-AtvdEndereco-api/tree/main/src/app/models/Endereco.ts
https://raw.githubusercontent.com/camilarib/ProgInt-AtvdEndereco-api/d71fffc/src/app/models/Endereco.ts
camilarib/ProgInt-AtvdEndereco-api d71fffc src/app/models/Endereco.ts
true
200
521
import {model, Schema } from "mongoose"; export const Endereco = model("Endereco", new Schema({ //criar nova categoria name: { // atributo nome da categoria de tipo str type: String, required: true, }, numero: { // icon da categoria type: String, required: true, }, complemento: { type: String...
5
Unnati16-dv/AuthECClient
4144229
src/app/user/login/login.component.ts
TypeScript
www.github.com/Unnati16-dv/AuthECClient/tree/main/src/app/user/login/login.component.ts
https://raw.githubusercontent.com/Unnati16-dv/AuthECClient/4144229/src/app/user/login/login.component.ts
Unnati16-dv/AuthECClient 4144229 src/app/user/login/login.component.ts
true
200
1,450
import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { Router, RouterLink } from '@angular/router'; import { AuthService } from '../../shared/services/auth.service'; @Component({ sel...
2
riquemorozine/note-me
0a4121d
front/src/styles/components/loginComponent/CustomButton.ts
TypeScript
www.github.com/riquemorozine/note-me/tree/main/front/src/styles/components/loginComponent/CustomButton.ts
https://raw.githubusercontent.com/riquemorozine/note-me/0a4121d/front/src/styles/components/loginComponent/CustomButton.ts
riquemorozine/note-me 0a4121d front/src/styles/components/loginComponent/CustomButton.ts
true
200
381
"use client"; import { CustomButtonColor } from "@/styles/colors"; import styled from "styled-components"; export const CustomButton = styled.button` width: 20rem; height: 3rem; font-size: 1rem; font-weight: 500; background: ${CustomButtonColor}; color: #fff; border: none; border-radius: 8px; display...
7
Saksham010/BundleSwap
c8fd188
scripts/deploy.ts
TypeScript
www.github.com/Saksham010/BundleSwap/tree/main/scripts/deploy.ts
https://raw.githubusercontent.com/Saksham010/BundleSwap/c8fd188/scripts/deploy.ts
Saksham010/BundleSwap c8fd188 scripts/deploy.ts
true
200
670
import { ethers } from "hardhat"; const fs = require('fs'); async function main() { const [account1] = await ethers.getSigners(); console.log("Deployer: ",account1.address); // Deploy Bundle swap contract const BundleSwapFactory = await ethers.getContractFactory("BundleSwap"); const BundleSwap = await ...
0
Sufyan-Siddiqui098/auth-nextjs
ee84170
src/app/api/users/forgetpassword/route.ts
TypeScript
www.github.com/Sufyan-Siddiqui098/auth-nextjs/tree/main/src/app/api/users/forgetpassword/route.ts
https://raw.githubusercontent.com/Sufyan-Siddiqui098/auth-nextjs/ee84170/src/app/api/users/forgetpassword/route.ts
Sufyan-Siddiqui098/auth-nextjs ee84170 src/app/api/users/forgetpassword/route.ts
true
200
1,151
import { connect } from "@/dbConfig/dbConfig"; import User from "@/models/userModel"; import { NextRequest, NextResponse } from "next/server"; import bcrypt from 'bcrypt' export const POST =async (req: NextRequest) => { try { const reqBody = await req.json() const {token, newPassword} = reqBody; ...
6
SeoTrang/One_Stop_System_Server_NestJs
4229c12
src/post-reaction/post-reaction.module.ts
TypeScript
www.github.com/SeoTrang/One_Stop_System_Server_NestJs/tree/main/src/post-reaction/post-reaction.module.ts
https://raw.githubusercontent.com/SeoTrang/One_Stop_System_Server_NestJs/4229c12/src/post-reaction/post-reaction.module.ts
SeoTrang/One_Stop_System_Server_NestJs 4229c12 src/post-reaction/post-reaction.module.ts
true
200
523
import { Module } from '@nestjs/common'; import { PostReactionController } from './post-reaction.controller'; import { PostReactionService } from './post-reaction.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { PostReaction } from './entities/postReaction.entity'; import { Post } from 'src/post/enti...
1
teamreportate/reportate-comunity
355a851
source/back-office/back-office-ui/src/app/core/models/auth-group.ts
TypeScript
www.github.com/teamreportate/reportate-comunity/tree/main/source/back-office/back-office-ui/src/app/core/models/auth-group.ts
https://raw.githubusercontent.com/teamreportate/reportate-comunity/355a851/source/back-office/back-office-ui/src/app/core/models/auth-group.ts
teamreportate/reportate-comunity 355a851 source/back-office/back-office-ui/src/app/core/models/auth-group.ts
true
200
456
/** * Reportate * Santa Cruz - Bolivia * project: back-office-ui * package: * date: 04-04-19 * author: fmontero **/ import {AbstractAuditable} from './abstract-auditable'; import {MuState} from './mu-state'; export class AuthGroup extends AbstractAuditable<number>{ nombre: string | null; descripcion: st...
4
datlai3042/Kuroform-Client
0a0a45b
src/app/hooks/useUpdateInputSetting.ts
TypeScript
www.github.com/datlai3042/Kuroform-Client/tree/main/src/app/hooks/useUpdateInputSetting.ts
https://raw.githubusercontent.com/datlai3042/Kuroform-Client/0a0a45b/src/app/hooks/useUpdateInputSetting.ts
datlai3042/Kuroform-Client 0a0a45b src/app/hooks/useUpdateInputSetting.ts
true
200
975
import { FormCore, InputCore } from "@/type"; import { useMutation } from "@tanstack/react-query"; import FormService from "../_services/form.service"; import { useDispatch } from "react-redux"; import { onFetchForm } from "../_lib/redux/formEdit.slice"; const useUpdateInputSetting = <SettingType extends InputCore.Set...
3
DavidCava185/gym-web
bfc8af0
src/main.ts
TypeScript
www.github.com/DavidCava185/gym-web/tree/main/src/main.ts
https://raw.githubusercontent.com/DavidCava185/gym-web/bfc8af0/src/main.ts
DavidCava185/gym-web bfc8af0 src/main.ts
true
200
966
import './assets/main.css' import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import router from './router' import 'vuetify/styles' import { createVuetify } from 'vuetify' import * as Components from 'vuetify/components' import { VCalendar } from 'vuetify/labs/VCalendar' i...
2
jprconsulting/sistema_de_gesti-n_de_programas_sociales
a1e4ba1
src/app/shared/directives/has-claim.directive.ts
TypeScript
www.github.com/jprconsulting/sistema_de_gesti-n_de_programas_sociales/tree/main/src/app/shared/directives/has-claim.directive.ts
https://raw.githubusercontent.com/jprconsulting/sistema_de_gesti-n_de_programas_sociales/a1e4ba1/src/app/shared/directives/has-claim.directive.ts
jprconsulting/sistema_de_gesti-n_de_programas_sociales a1e4ba1 src/app/shared/directives/has-claim.directive.ts
true
200
617
import { Directive, TemplateRef, ViewContainerRef, Input } from '@angular/core'; import { SecurityService } from 'src/app/core/services/security.service'; @Directive({ selector: '[appHasClaim]' }) export class HasClaimDirective { @Input() set appHasClaim(claimType: string) { if (this.securityService.hasClai...
0
govuk-one-login/ipv-cri-bav-api
4cf6b02
src/utils/Constants.ts
TypeScript
www.github.com/govuk-one-login/ipv-cri-bav-api/tree/main/src/utils/Constants.ts
https://raw.githubusercontent.com/govuk-one-login/ipv-cri-bav-api/4cf6b02/src/utils/Constants.ts
govuk-one-login/ipv-cri-bav-api 4cf6b02 src/utils/Constants.ts
true
200
4,161
export class Constants { static readonly JWKS_LOGGER_SVC_NAME = "JwksHandler"; static readonly X_SESSION_ID = "x-govuk-signin-session-id"; static readonly X_FORWARDED_FOR = "x-forwarded-for"; static readonly ENCODED_AUDIT_HEADER = "txma-audit-encoded"; static readonly SESSION_ID = "session-id"; static reado...
7
ProtoDigitalUK/lucid_cms
f8d1542
packages/core/src/libs/custom-fields/fields/wysiwyg.ts
TypeScript
www.github.com/ProtoDigitalUK/lucid_cms/tree/main/packages/core/src/libs/custom-fields/fields/wysiwyg.ts
https://raw.githubusercontent.com/ProtoDigitalUK/lucid_cms/f8d1542/packages/core/src/libs/custom-fields/fields/wysiwyg.ts
ProtoDigitalUK/lucid_cms f8d1542 packages/core/src/libs/custom-fields/fields/wysiwyg.ts
true
200
2,671
import z from "zod"; import CustomField from "../custom-field.js"; import sanitizeHtml from "sanitize-html"; import zodSafeParse from "../utils/zod-safe-parse.js"; import keyToTitle from "../utils/key-to-title.js"; import type { CFConfig, CFProps, CFResponse, CFInsertItem, GetSchemaDefinitionProps, SchemaDefiniti...
5
dipscope/TypeManager.TS
8ecc368
src/functions/get-reflect-metadata.ts
TypeScript
www.github.com/dipscope/TypeManager.TS/tree/main/src/functions/get-reflect-metadata.ts
https://raw.githubusercontent.com/dipscope/TypeManager.TS/8ecc368/src/functions/get-reflect-metadata.ts
dipscope/TypeManager.TS 8ecc368 src/functions/get-reflect-metadata.ts
true
200
1,158
/** * Reflect class declaration. * * @type {Reflect} */ declare class Reflect { /** * Gets metadata value of a metadata key on the prototype chain of an object or property. * * @param {string} metadataKey Unique metadata key. * @param {any} target Target to extract from. * @param {s...
6
richardfosterpersonal/Meditracker-beta
8f67919
medication-tracker/frontend/cypress/e2e/family-sharing.cy.ts
TypeScript
www.github.com/richardfosterpersonal/Meditracker-beta/tree/main/medication-tracker/frontend/cypress/e2e/family-sharing.cy.ts
https://raw.githubusercontent.com/richardfosterpersonal/Meditracker-beta/8f67919/medication-tracker/frontend/cypress/e2e/family-sharing.cy.ts
richardfosterpersonal/Meditracker-beta 8f67919 medication-tracker/frontend/cypress/e2e/family-sharing.cy.ts
true
200
8,392
import { faker } from '@faker-js/faker'; import { createTestUser, createTestMedication } from '../support/helpers'; describe('Family Sharing Flow', () => { let primaryUser; let familyMember; let medication; beforeEach(() => { // Create and login as primary user cy.loginAsNewUser().then((user) => { ...
1
elycheikhsmail/fresh-auth-pg
ee55ec5
db_services/tokens/remove.ts
TypeScript
www.github.com/elycheikhsmail/fresh-auth-pg/tree/main/db_services/tokens/remove.ts
https://raw.githubusercontent.com/elycheikhsmail/fresh-auth-pg/ee55ec5/db_services/tokens/remove.ts
elycheikhsmail/fresh-auth-pg ee55ec5 db_services/tokens/remove.ts
true
200
813
import * as postgres from "https://deno.land/x/postgres@v0.16.1/mod.ts"; import * as logger from "https://deno.land/std@0.149.0/log/mod.ts"; const databaseUrl = Deno.env.get("DATABASE_URL")!; const pool = new postgres.Pool(databaseUrl, 3, true); const client = await pool.connect(); export async function removeToken(t...
4
kibertoad/layered-loader
f3d328f
lib/AbstractGroupCache.ts
TypeScript
www.github.com/kibertoad/layered-loader/tree/main/lib/AbstractGroupCache.ts
https://raw.githubusercontent.com/kibertoad/layered-loader/f3d328f/lib/AbstractGroupCache.ts
kibertoad/layered-loader f3d328f lib/AbstractGroupCache.ts
true
200
6,627
import { AbstractCache } from './AbstractCache' import type { InMemoryGroupCacheConfiguration } from './memory/InMemoryGroupCache' import type { GroupNotificationPublisher } from './notifications/GroupNotificationPublisher' import type { GroupCache } from './types/DataSources' import type { GetManyResult, SynchronousGr...
2
htmlacademy-react/1114841-six-cities-simple-12
b02fd1d
project/src/store/user-process/user-process.test.ts
TypeScript
www.github.com/htmlacademy-react/1114841-six-cities-simple-12/tree/main/project/src/store/user-process/user-process.test.ts
https://raw.githubusercontent.com/htmlacademy-react/1114841-six-cities-simple-12/b02fd1d/project/src/store/user-process/user-process.test.ts
htmlacademy-react/1114841-six-cities-simple-12 b02fd1d project/src/store/user-process/user-process.test.ts
true
200
2,261
import { userProcess } from './user-process'; import { UserProcess } from '../../types/state'; import { AuthorizationStatus } from '../../common/const'; import { checkAuthAction, loginAction, logoutAction } from '../api-actions'; import { makeFackeUserData } from '../../common/mocks'; const fakeUserData = makeFackeUse...
7
blanck1945/nest-movie-app
c04fbe9
src/movie/responses/index.response.dto.ts
TypeScript
www.github.com/blanck1945/nest-movie-app/tree/main/src/movie/responses/index.response.dto.ts
https://raw.githubusercontent.com/blanck1945/nest-movie-app/c04fbe9/src/movie/responses/index.response.dto.ts
blanck1945/nest-movie-app c04fbe9 src/movie/responses/index.response.dto.ts
true
200
990
import { ResponseDto } from '../../core/dto/response.dto'; import { MovieBaseDto } from '../dto/movie.base.dto'; import { IsArray, IsNotEmpty, IsNumber, IsPositive } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; import { MOVIE_RESPONSE_MOCK } from '../test/mocks/movie'; export class UpdatedMov...
5
b3gm/ode-to-joy
0ab297a
src/array-backed-types/ab-array.ts
TypeScript
www.github.com/b3gm/ode-to-joy/tree/main/src/array-backed-types/ab-array.ts
https://raw.githubusercontent.com/b3gm/ode-to-joy/0ab297a/src/array-backed-types/ab-array.ts
b3gm/ode-to-joy 0ab297a src/array-backed-types/ab-array.ts
true
200
2,369
import { ABFixedSizeType, ABType, BaseABDynamicSizeType, BaseABFixedSizeType, FloatReader, FloatWriter } from "./ab-type"; import { unknownEnumValue } from "./utils"; export function array<T>(abType: ABType<T>, fixedLength = -1.0): ABType<T[]> { if (fixedLength < 0) { return new ABDynamicSizeArray(ab...
1
nikolicstjepan/sikirevci-selo-moje
ba7ae37
src/utils/compressImage.ts
TypeScript
www.github.com/nikolicstjepan/sikirevci-selo-moje/tree/main/src/utils/compressImage.ts
https://raw.githubusercontent.com/nikolicstjepan/sikirevci-selo-moje/ba7ae37/src/utils/compressImage.ts
nikolicstjepan/sikirevci-selo-moje ba7ae37 src/utils/compressImage.ts
true
200
1,281
const MAX_WIDTH = 2048; export default function compressImage(file: File, quality: number, maxWidth: number = MAX_WIDTH): Promise<Blob> { return new Promise((res, rej) => { try { // resizing the image const canvas = document.createElement("canvas"); const image = document.createElement("img"); ...
6
Juan2418/pokedex-rn
78e9de1
src/api/users.ts
TypeScript
www.github.com/Juan2418/pokedex-rn/tree/main/src/api/users.ts
https://raw.githubusercontent.com/Juan2418/pokedex-rn/78e9de1/src/api/users.ts
Juan2418/pokedex-rn 78e9de1 src/api/users.ts
true
200
525
export type User = { id: string; } & UserParams; export interface UserParams { firstName: string; lastName: string; email: string; country: string; streetAddress: string; city: string; state: string; zipCode: string; } export const createUser = async (user: UserParams): Promise<User> => { console....
4
FRedeaX/cbs-app
c6fca20
core/pagination/gql/postsPaginationGQL.ts
TypeScript
www.github.com/FRedeaX/cbs-app/tree/main/core/pagination/gql/postsPaginationGQL.ts
https://raw.githubusercontent.com/FRedeaX/cbs-app/c6fca20/core/pagination/gql/postsPaginationGQL.ts
FRedeaX/cbs-app c6fca20 core/pagination/gql/postsPaginationGQL.ts
true
200
731
import { gql } from "@apollo/client"; import { Nullable } from "@/helpers/typings/utility-types"; export type PostsPaginationGQL = { posts: { nodes: { id: string; tags: { nodes: { tagID: string; }[]; }; }[]; pageInfo: { hasNextPage: boolean; endCur...
3
haroldcutti/Demo-Proveedor
cec1722
src/app/components/roles/create-role/create-role.component.ts
TypeScript
www.github.com/haroldcutti/Demo-Proveedor/tree/main/src/app/components/roles/create-role/create-role.component.ts
https://raw.githubusercontent.com/haroldcutti/Demo-Proveedor/cec1722/src/app/components/roles/create-role/create-role.component.ts
haroldcutti/Demo-Proveedor cec1722 src/app/components/roles/create-role/create-role.component.ts
true
200
1,008
import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'app-create-role', templateUrl: './create-role.component.html', styleUrls: ['./create-role.component.css'] }) export class CreateRoleComponent { @Input() isModalOpen: boolean = false; @Input() modalType: string = '...
0
LebsterFace/AdventOfCode
6ad06b3
2023/day06/part1.ts
TypeScript
www.github.com/LebsterFace/AdventOfCode/tree/main/2023/day06/part1.ts
https://raw.githubusercontent.com/LebsterFace/AdventOfCode/6ad06b3/2023/day06/part1.ts
LebsterFace/AdventOfCode 6ad06b3 2023/day06/part1.ts
true
200
550
import { readFileSync } from "node:fs"; const [times, bestDistances] = readFileSync("./input.txt", "utf-8") .replaceAll("\r", "") .split("\n").map(l => l.split(":")[1].trim().split(/\s+/g).map(Number)); let result = 1; for (let i = 0; i < times.length; i++) { const time = times[i]; const bestDistance = bestDistan...
7
daisy43097/lulu-backend
e0918aa
src/controller/UtilController.ts
TypeScript
www.github.com/daisy43097/lulu-backend/tree/main/src/controller/UtilController.ts
https://raw.githubusercontent.com/daisy43097/lulu-backend/e0918aa/src/controller/UtilController.ts
daisy43097/lulu-backend e0918aa src/controller/UtilController.ts
true
200
5,514
import {Err, HttpCode} from "../helper/Err"; import {User} from "../entity/User"; import {isFullWidth} from "class-validator"; export interface IdCheckRes { index: number, entities: any[] } export class UtilController { public static async checkIdExist(ids: number[], repo: any): Promise<IdCheckRes> { ...
5
jemsgit/poster-admin
bc7730c
src/application/save-channel-data.ts
TypeScript
www.github.com/jemsgit/poster-admin/tree/main/src/application/save-channel-data.ts
https://raw.githubusercontent.com/jemsgit/poster-admin/bc7730c/src/application/save-channel-data.ts
jemsgit/poster-admin bc7730c src/application/save-channel-data.ts
true
200
569
/* eslint-disable import/prefer-default-export */ import apiService from '../services/apiAdapter'; import { setChannelFileSavingState, setChannelFileData, } from '../services/storeAdapter'; async function saveChannelFileContent(channelId: ChannelId, fileName: string, data: string) { setChannelFileSavingState(tru...
4
tuan3440/QLCB-FE
dc57d1c
src/app/pages/employee/personal/personal-information/personal-information.component.ts
TypeScript
www.github.com/tuan3440/QLCB-FE/tree/main/src/app/pages/employee/personal/personal-information/personal-information.component.ts
https://raw.githubusercontent.com/tuan3440/QLCB-FE/dc57d1c/src/app/pages/employee/personal/personal-information/personal-information.component.ts
tuan3440/QLCB-FE dc57d1c src/app/pages/employee/personal/personal-information/personal-information.component.ts
true
200
6,506
import { Component, HostListener, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { MessageService } from 'primeng-lts/api'; import { EmployeeService } from 'src/app/core/services'; import { EmployeeResolver } from 'src...
3
sandeza-srl/hub
771336f
src/database/models/TipiRegimiFiscali/index.ts
TypeScript
www.github.com/sandeza-srl/hub/tree/main/src/database/models/TipiRegimiFiscali/index.ts
https://raw.githubusercontent.com/sandeza-srl/hub/771336f/src/database/models/TipiRegimiFiscali/index.ts
sandeza-srl/hub 771336f src/database/models/TipiRegimiFiscali/index.ts
true
200
788
import * as mongoose from 'mongoose'; import TipiRegimiFiscaliSchema from './TipiRegimiFiscali.Schema'; import type { ITipiRegimiFiscali } from './TipiRegimiFiscali.Types'; /* -------- * Model Definition * -------- */ const TipiRegimiFiscali = mongoose.model<ITipiRegimiFiscali>( 'TipiRegimiFiscali', TipiRegimiFiscal...
2
Lucilor/ng-cad2
fdef2df
src/app/modules/input/components/input.component.spec.ts
TypeScript
www.github.com/Lucilor/ng-cad2/tree/main/src/app/modules/input/components/input.component.spec.ts
https://raw.githubusercontent.com/Lucilor/ng-cad2/fdef2df/src/app/modules/input/components/input.component.spec.ts
Lucilor/ng-cad2 fdef2df src/app/modules/input/components/input.component.spec.ts
true
200
1,564
import {ComponentFixture, TestBed} from "@angular/core/testing"; import {FormsModule} from "@angular/forms"; import {MatFormFieldModule} from "@angular/material/form-field"; import {MatInputModule} from "@angular/material/input"; import {MatSelectModule} from "@angular/material/select"; import {timeout} from "@lucilor/...
1
AlexxBlack/link_shortener
e1e9a46
backend/src/app.module.ts
TypeScript
www.github.com/AlexxBlack/link_shortener/tree/main/backend/src/app.module.ts
https://raw.githubusercontent.com/AlexxBlack/link_shortener/e1e9a46/backend/src/app.module.ts
AlexxBlack/link_shortener e1e9a46 backend/src/app.module.ts
true
200
672
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { ShortenerModule } from './shortener/shortener.module'; import { CacheModule } from './cache/cache.module'; import { AuthModule } from './auth/auth.module'; import { DatabaseModule } from './database/database.module'; import...
7
AhmedFakharABbas/assessment
a2a4445
client/src/interceptors/error.interceptor.ts
TypeScript
www.github.com/AhmedFakharABbas/assessment/tree/main/client/src/interceptors/error.interceptor.ts
https://raw.githubusercontent.com/AhmedFakharABbas/assessment/a2a4445/client/src/interceptors/error.interceptor.ts
AhmedFakharABbas/assessment a2a4445 client/src/interceptors/error.interceptor.ts
true
200
570
import { HttpErrorResponse, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { catchError, retry, throwError } from "rxjs"; @Injectable() export class ErrorInterceptor implements HttpInterceptor { intercept(req: HttpRequest<any>, next: HttpHa...
0
CGMossa/RCMDconfig
9735b1e
src/extension.ts
TypeScript
www.github.com/CGMossa/RCMDconfig/tree/main/src/extension.ts
https://raw.githubusercontent.com/CGMossa/RCMDconfig/9735b1e/src/extension.ts
CGMossa/RCMDconfig 9735b1e src/extension.ts
true
200
2,000
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import { execSync } from 'child_process'; import * as vscode from 'vscode'; // This method is called when your extension is activated // Your extension is activated the very firs...
5
Dal-dw/Adm-Alumnos-y-cursos-Angular-Lopez
4a81564
src/app/shared/modules/shared-module.ts
TypeScript
www.github.com/Dal-dw/Adm-Alumnos-y-cursos-Angular-Lopez/tree/main/src/app/shared/modules/shared-module.ts
https://raw.githubusercontent.com/Dal-dw/Adm-Alumnos-y-cursos-Angular-Lopez/4a81564/src/app/shared/modules/shared-module.ts
Dal-dw/Adm-Alumnos-y-cursos-Angular-Lopez 4a81564 src/app/shared/modules/shared-module.ts
true
200
600
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MyMaterialModule } from './my-material.module'; import { PagesModule } from 'src/app/pages/pages.module'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { Layo...
6
herocris/node-webrest-server
53dd273
src/domain/dtos/todos/create-todo.dto.ts
TypeScript
www.github.com/herocris/node-webrest-server/tree/main/src/domain/dtos/todos/create-todo.dto.ts
https://raw.githubusercontent.com/herocris/node-webrest-server/53dd273/src/domain/dtos/todos/create-todo.dto.ts
herocris/node-webrest-server 53dd273 src/domain/dtos/todos/create-todo.dto.ts
true
200
351
export class CreateTodoDto { private constructor( public readonly text: string, ) { } static create(props: { [key: string]: any }): [string?, CreateTodoDto?] { const { text } = props; if (!text) return ['Text property is required', undefined]; return [undefined, new ...
3
VitanFasmon/UrlShorteningApiLandingPage
c8ff270
src/data/urlShortenerService.ts
TypeScript
www.github.com/VitanFasmon/UrlShorteningApiLandingPage/tree/main/src/data/urlShortenerService.ts
https://raw.githubusercontent.com/VitanFasmon/UrlShorteningApiLandingPage/c8ff270/src/data/urlShortenerService.ts
VitanFasmon/UrlShorteningApiLandingPage c8ff270 src/data/urlShortenerService.ts
true
200
1,554
interface ShortenURLResponse { result_url: string; error?: string; } export const urlShortenerService = async (longUrl: string): Promise<string> => { const apiUrl = "https://cors-anywhere.herokuapp.com/https://cleanuri.com/api/v1/shorten"; //Request temporary access to the demo server here: https://cors-an...
2
argo-rich/LearningToHunt
de72686
LearningToHunt/ClientApp/src/app/account/login/login.component.spec.ts
TypeScript
www.github.com/argo-rich/LearningToHunt/tree/main/LearningToHunt/ClientApp/src/app/account/login/login.component.spec.ts
https://raw.githubusercontent.com/argo-rich/LearningToHunt/de72686/LearningToHunt/ClientApp/src/app/account/login/login.component.spec.ts
argo-rich/LearningToHunt de72686 LearningToHunt/ClientApp/src/app/account/login/login.component.spec.ts
true
200
2,950
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { LoginComponent } from './login.component'; import { AccountService } from '@app/_services/account.service'; import { ActivatedRoute } from '@angular/router'; import { Observable, of, throwError } from 'rxjs'; import { HttpRequestStatus } from ...
4
star-wars-kittens/The-star-wars-game
cf3251f
packages/client/src/core/store/actions/colorThemeActions.ts
TypeScript
www.github.com/star-wars-kittens/The-star-wars-game/tree/main/packages/client/src/core/store/actions/colorThemeActions.ts
https://raw.githubusercontent.com/star-wars-kittens/The-star-wars-game/cf3251f/packages/client/src/core/store/actions/colorThemeActions.ts
star-wars-kittens/The-star-wars-game cf3251f packages/client/src/core/store/actions/colorThemeActions.ts
true
200
1,163
import { createAsyncThunk } from '@reduxjs/toolkit'; import { colorThemeApi } from 'api/colorTheme'; import { SYSTEM_THEME } from 'constants/themization'; import { handleErrorFromServer } from 'helpers/errorNotification'; export const getColorTheme = createAsyncThunk( 'color-theme/getColorTheme', async (payload: ...
1
genstackio/genjs
08c9500
packages/plugin-ts-microlib/src/Package.ts
TypeScript
www.github.com/genstackio/genjs/tree/main/packages/plugin-ts-microlib/src/Package.ts
https://raw.githubusercontent.com/genstackio/genjs/08c9500/packages/plugin-ts-microlib/src/Package.ts
genstackio/genjs 08c9500 packages/plugin-ts-microlib/src/Package.ts
true
200
584
import {BasePackage} from "@genjs/genjs-bundle-package"; export default class Package extends BasePackage { protected getDefaultExtraOptions() { return { ...super.getDefaultExtraOptions(), phase: 'pre', }; } // noinspection JSUnusedLocalSymbols,JSUnusedGlobalSymbols ...
7
suntku/nextjs-kkureg-nextui
d2fdb98
lib/features/userSlice.ts
TypeScript
www.github.com/suntku/nextjs-kkureg-nextui/tree/main/lib/features/userSlice.ts
https://raw.githubusercontent.com/suntku/nextjs-kkureg-nextui/d2fdb98/lib/features/userSlice.ts
suntku/nextjs-kkureg-nextui d2fdb98 lib/features/userSlice.ts
true
200
3,826
// store/userSlice.ts import { createSlice, createAsyncThunk, PayloadAction } from "@reduxjs/toolkit"; import axiosAuth from '@/lib/useAxiosAuth'; import { UserData, UserApiResponse } from "@/helpers/user.model"; import { Selection } from '@nextui-org/react'; export const columns = [ { name: "อีเมล", uid: "email",...
5
ahmed15ayman7/oil-erp
86265d4
app/api/treasury/export/route.ts
TypeScript
www.github.com/ahmed15ayman7/oil-erp/tree/main/app/api/treasury/export/route.ts
https://raw.githubusercontent.com/ahmed15ayman7/oil-erp/86265d4/app/api/treasury/export/route.ts
ahmed15ayman7/oil-erp 86265d4 app/api/treasury/export/route.ts
true
200
415
import { NextResponse } from "next/server"; import { prisma } from "@/lib/prisma"; export async function GET() { try { const transactions = await prisma.transaction.findMany({ orderBy: { createdAt: "desc" }, }); return NextResponse.json(transactions); } catch (error) { console.error("[TREASU...
6
cvoxelprotocol/vess
1790c67
src/hooks/useCcProfile.ts
TypeScript
www.github.com/cvoxelprotocol/vess/tree/main/src/hooks/useCcProfile.ts
https://raw.githubusercontent.com/cvoxelprotocol/vess/1790c67/src/hooks/useCcProfile.ts
cvoxelprotocol/vess 1790c67 src/hooks/useCcProfile.ts
true
200
493
import { useQuery } from '@tanstack/react-query' import { DisplayProfile } from '@/@types' import { getCCProfile } from '@/lib/profile' export const useCcProfile = (did?: string) => { const { data: ccProfile, isInitialLoading: ccLoading } = useQuery<DisplayProfile | null>( ['getCCProfile', did], () => getCCP...
0
Oscar-Santacruz/sb1-cy5pmo
1a433de
src/db2/db2.service.ts
TypeScript
www.github.com/Oscar-Santacruz/sb1-cy5pmo/tree/main/src/db2/db2.service.ts
https://raw.githubusercontent.com/Oscar-Santacruz/sb1-cy5pmo/1a433de/src/db2/db2.service.ts
Oscar-Santacruz/sb1-cy5pmo 1a433de src/db2/db2.service.ts
true
200
2,485
import { Injectable, Logger, OnModuleInit, HttpException, HttpStatus } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Cache } from 'cache-manager'; import { Inject } from '@nestjs/common'; import { CACHE_MANAGER } from '@nestjs/cache-manager'; import { Pool } from 'node-jt400'; @Inject...
3
GusoDark/MonoMapAPI
506aee9
src/domain/services/email.service.ts
TypeScript
www.github.com/GusoDark/MonoMapAPI/tree/main/src/domain/services/email.service.ts
https://raw.githubusercontent.com/GusoDark/MonoMapAPI/506aee9/src/domain/services/email.service.ts
GusoDark/MonoMapAPI 506aee9 src/domain/services/email.service.ts
true
200
726
import nodemailer from 'nodemailer' import { envs } from '../../config/envs.plugin'; interface MailOptions{ to: string subject:string htmlBody:string } export class EmailService { private transporter = nodemailer.createTransport({ service: envs.MAIL_SERVICE, auth: { user: envs.MAIL_USER,...
2
JohnJCVC/practicas-IDR
35dcd8d
git_giit/practicas-aura/practica7/src/control-activo/control-activo.resolver.ts
TypeScript
www.github.com/JohnJCVC/practicas-IDR/tree/main/git_giit/practicas-aura/practica7/src/control-activo/control-activo.resolver.ts
https://raw.githubusercontent.com/JohnJCVC/practicas-IDR/35dcd8d/git_giit/practicas-aura/practica7/src/control-activo/control-activo.resolver.ts
JohnJCVC/practicas-IDR 35dcd8d git_giit/practicas-aura/practica7/src/control-activo/control-activo.resolver.ts
true
200
1,426
import { Resolver, Query, Mutation, Args, Int } from '@nestjs/graphql'; import { ControlActivoService } from './control-activo.service'; import { ControlActivo } from './entities/control-activo.entity'; import { CreateControlActivoInput } from './dto/create-control-activo.input'; import { UpdateControlActivoInput } fro...
1
Mystogan602/selfproject
9086be7
server/src/main.ts
TypeScript
www.github.com/Mystogan602/selfproject/tree/main/server/src/main.ts
https://raw.githubusercontent.com/Mystogan602/selfproject/9086be7/server/src/main.ts
Mystogan602/selfproject 9086be7 server/src/main.ts
true
200
509
declare const module: any; import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; // import { ValidationPipe } from '@nestjs/common'; import { CustomValidationPipe } from './validation.pipe'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobal...
7
Tomasiii/job-test
e8bf4bb
src/components/admin/layout/sidebar/bar-items.data.ts
TypeScript
www.github.com/Tomasiii/job-test/tree/main/src/components/admin/layout/sidebar/bar-items.data.ts
https://raw.githubusercontent.com/Tomasiii/job-test/e8bf4bb/src/components/admin/layout/sidebar/bar-items.data.ts
Tomasiii/job-test e8bf4bb src/components/admin/layout/sidebar/bar-items.data.ts
true
200
1,750
import BagIcon from '@assets/admin/icons/Bag.svg?react' import CategoryIcon from '@assets/admin/icons/Category.svg?react' import ChartIcon from '@assets/admin/icons/Chart.svg?react' import DiscountIcon from '@assets/admin/icons/Discount.svg?react' import GameIcon from '@assets/admin/icons/Game.svg?react' import ImageIc...
5
arvindkhoisnam/probo-engine
4bcadb8
src/Orderbook.ts
TypeScript
www.github.com/arvindkhoisnam/probo-engine/tree/main/src/Orderbook.ts
https://raw.githubusercontent.com/arvindkhoisnam/probo-engine/4bcadb8/src/Orderbook.ts
arvindkhoisnam/probo-engine 4bcadb8 src/Orderbook.ts
true
200
9,495
import { Redis } from "./Redis"; import { OrderReverse } from "./services/buyHelper"; import { matchBuyOrders, matchSellOrders } from "./services/matchOrder"; import { addNewUser, addStockType, addStrikePrice, updateExistingOrder, } from "./services/sellHelper"; export interface SellOrder { [type: string]: ...
6
chiwangso2/optmwidgets
9070550
src/widget.ts
TypeScript
www.github.com/chiwangso2/optmwidgets/tree/main/src/widget.ts
https://raw.githubusercontent.com/chiwangso2/optmwidgets/9070550/src/widget.ts
chiwangso2/optmwidgets 9070550 src/widget.ts
true
200
10,725
// Copyright (c) Chung Chan // Distributed under the terms of the Modified BSD License. import { DOMWidgetModel, DOMWidgetView, ISerializers } from '@jupyter-widgets/base'; import { MODULE_NAME, MODULE_VERSION } from './version'; // Import the CSS import '../css/widget.css'; // Codemirror import {EditorView, ...
4
Dragonzgold/BackendPractice
de82a9f
src/app.controller.ts
TypeScript
www.github.com/Dragonzgold/BackendPractice/tree/main/src/app.controller.ts
https://raw.githubusercontent.com/Dragonzgold/BackendPractice/de82a9f/src/app.controller.ts
Dragonzgold/BackendPractice de82a9f src/app.controller.ts
true
200
414
import { Controller, Get, Param, Query } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) { } @Get() getHello(): string { return this.appService.getHello() } @Get('nuevo') newEndPoint() {...
0
botaas/aibot-uikit
ce78c5f
src/components/Channel/hooks/useCreateChannelStateContext.ts
TypeScript
www.github.com/botaas/aibot-uikit/tree/main/src/components/Channel/hooks/useCreateChannelStateContext.ts
https://raw.githubusercontent.com/botaas/aibot-uikit/ce78c5f/src/components/Channel/hooks/useCreateChannelStateContext.ts
botaas/aibot-uikit ce78c5f src/components/Channel/hooks/useCreateChannelStateContext.ts
true
200
4,276
import { useMemo } from 'react'; import { isDate, isDayOrMoment } from '../../../context/TranslationContext'; import type { ChannelStateContextValue } from '../../../context/ChannelStateContext'; import type { DefaultOneChatGenerics } from '../../../types'; export const useCreateChannelStateContext = < OneChatGen...
3
SenpaiSumpie/WorkMentor
48daaa6
src/app/app.module.ts
TypeScript
www.github.com/SenpaiSumpie/WorkMentor/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/SenpaiSumpie/WorkMentor/48daaa6/src/app/app.module.ts
SenpaiSumpie/WorkMentor 48daaa6 src/app/app.module.ts
true
200
5,527
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { NavBarComponent } from './nav-bar/nav-bar.component'; import { BrowserAnimationsModule } from '@angular...
4
cgarrot/auto-tweet
70eeae3
src/utils/prompt/model/character/mainCharacter.ts
TypeScript
www.github.com/cgarrot/auto-tweet/tree/main/src/utils/prompt/model/character/mainCharacter.ts
https://raw.githubusercontent.com/cgarrot/auto-tweet/70eeae3/src/utils/prompt/model/character/mainCharacter.ts
cgarrot/auto-tweet 70eeae3 src/utils/prompt/model/character/mainCharacter.ts
true
200
502
import { Model } from 'src/utils/model'; import { Ethnic, Gender, SexOrientation } from './characteristics'; import { MentalCharacteristics, PhysicalCharacteristics, } from './generalCharacter'; export class MainCharacter extends Model<MainCharacter> { age: number; gender: Gender; ethnic: Ethnic; sexual_or...
3
UXPin/uxpin-merge-tools
5cfcb68
packages/uxpin-merge-cli/src/steps/serialization/component/implementation/javascript/type/flow/strategy/signature/convertFunctionSignatureFlowType.ts
TypeScript
www.github.com/UXPin/uxpin-merge-tools/tree/main/packages/uxpin-merge-cli/src/steps/serialization/component/implementation/javascript/type/flow/strategy/signature/convertFunctionSignatureFlowType.ts
https://raw.githubusercontent.com/UXPin/uxpin-merge-tools/5cfcb68/packages/uxpin-merge-cli/src/steps/serialization/component/implementation/javascript/type/flow/strategy/signature/convertFunctionSignatureFlowType.ts
UXPin/uxpin-merge-tools 5cfcb68 packages/uxpin-merge-cli/src/steps/serialization/component/implementation/javascript/type/flow/strategy/signature/convertFunctionSignatureFlowType.ts
true
200
606
import { FlowTypeSignature } from '../../../../../../../../../types/babylon-ast'; import { PropertyType } from '../../../../../ComponentPropertyDefinition'; import { convertFlowPropertyType } from '../../convertFlowPropertyType'; export function convertFunctionSignatureFlowType(func: FlowTypeSignature<'function'>): Pr...
5
uken-outstanding-engineers/board-games
4b58731
board-games-front/src/app/gallery/gallery.component.ts
TypeScript
www.github.com/uken-outstanding-engineers/board-games/tree/main/board-games-front/src/app/gallery/gallery.component.ts
https://raw.githubusercontent.com/uken-outstanding-engineers/board-games/4b58731/board-games-front/src/app/gallery/gallery.component.ts
uken-outstanding-engineers/board-games 4b58731 board-games-front/src/app/gallery/gallery.component.ts
true
200
942
import { Component } from '@angular/core'; import { Games } from '../api/game'; import { GamesService } from '../api/game-service'; @Component({ selector: 'app-gallery', templateUrl: './gallery.component.html', styleUrls: ['./gallery.component.scss'] }) export class GalleryComponent { games: Games[] = []; m...
4
progmateus/api-super-price
44e0af5
src/modules/products/useCases/deleteProduct/DeleteProductController.spec.ts
TypeScript
www.github.com/progmateus/api-super-price/tree/main/src/modules/products/useCases/deleteProduct/DeleteProductController.spec.ts
https://raw.githubusercontent.com/progmateus/api-super-price/44e0af5/src/modules/products/useCases/deleteProduct/DeleteProductController.spec.ts
progmateus/api-super-price 44e0af5 src/modules/products/useCases/deleteProduct/DeleteProductController.spec.ts
true
200
2,735
import request from "supertest"; import { Connection } from "typeorm"; import { app } from "@shared/infra/http/app" import { v4 as uuidV4 } from "uuid"; import createConnection from "@database/index"; import { hash } from "bcryptjs"; let connection: Connection describe("Delete product controller", () => ...
3
Hypersequent/qas-cli
4dcaa63
src/tests/junit-upload.spec.ts
TypeScript
www.github.com/Hypersequent/qas-cli/tree/main/src/tests/junit-upload.spec.ts
https://raw.githubusercontent.com/Hypersequent/qas-cli/4dcaa63/src/tests/junit-upload.spec.ts
Hypersequent/qas-cli 4dcaa63 src/tests/junit-upload.spec.ts
true
200
6,781
import { afterAll, beforeAll, expect, test, describe, afterEach } from 'vitest' import { run } from '../commands/main' import { setupServer } from 'msw/node' import { HttpResponse, http } from 'msw' import { runTestCases } from './fixtures/testcases' import { countMockedApiCalls } from './utils' const projectCode = 'T...
5
StephCoquard/pokedex-front
6fa81b4
src/app/pokemons/filters-panel/filters-panel.component.ts
TypeScript
www.github.com/StephCoquard/pokedex-front/tree/main/src/app/pokemons/filters-panel/filters-panel.component.ts
https://raw.githubusercontent.com/StephCoquard/pokedex-front/6fa81b4/src/app/pokemons/filters-panel/filters-panel.component.ts
StephCoquard/pokedex-front 6fa81b4 src/app/pokemons/filters-panel/filters-panel.component.ts
true
200
1,560
import {Component, EventEmitter, OnInit, Output} from '@angular/core'; import { FiltersList, IntegerFilter, OperationType, OperationTypeMapping, StringFilter } from "../model/filters-list.model"; @Component({ selector: 'pokedex-filters-panel', templateUrl: './filters-panel.component.html', styleUrls: [...
4
aayalacdv/funnit-rn
fdb2e3c
helpers/services/activityItem-service.ts
TypeScript
www.github.com/aayalacdv/funnit-rn/tree/main/helpers/services/activityItem-service.ts
https://raw.githubusercontent.com/aayalacdv/funnit-rn/fdb2e3c/helpers/services/activityItem-service.ts
aayalacdv/funnit-rn fdb2e3c helpers/services/activityItem-service.ts
true
200
968
import { parseActivityItem } from './../firestore/parsers/acitivity-item-parser'; import { firestore } from "../../firebase/config"; import { fireStoreService } from "../firestore/firestore.service"; import { ActivityItem } from "../firestore/types/types"; type ActivityItemServiceType = { findItemByCategory: (cat...
3
gcanossa/gas-work-manager
7858d08
src/gas-mock.ts
TypeScript
www.github.com/gcanossa/gas-work-manager/tree/main/src/gas-mock.ts
https://raw.githubusercontent.com/gcanossa/gas-work-manager/7858d08/src/gas-mock.ts
gcanossa/gas-work-manager 7858d08 src/gas-mock.ts
true
200
4,893
import { setupMocks, delayedSuccess, delayedFailure } from "@gasstack/rpc"; import { NewActivityTrackType } from "@model/activity-track"; import { NewEmittedInvoiceType } from "@model/emitted-invoice"; import { NewOrganizationType } from "@model/organization"; import { NewProjectType } from "@model/project"; import { N...
5
Ares-Chang/wooden-fish
e50c047
vite.config.ts
TypeScript
www.github.com/Ares-Chang/wooden-fish/tree/main/vite.config.ts
https://raw.githubusercontent.com/Ares-Chang/wooden-fish/e50c047/vite.config.ts
Ares-Chang/wooden-fish e50c047 vite.config.ts
true
200
579
import { defineConfig } from 'vite' import solidPlugin from 'vite-plugin-solid' import Unocss from 'unocss/vite' import AutoImport from 'unplugin-auto-import/vite' export default defineConfig({ plugins: [ solidPlugin(), /** @see https://github.com/antfu/unplugin-auto-import */ AutoImport({ imports:...
4
saleelvt/GlamorBook-Back-End-App
27c3e8e
src/application/user/useCases/checkUserEmailUseCase.ts
TypeScript
www.github.com/saleelvt/GlamorBook-Back-End-App/tree/main/src/application/user/useCases/checkUserEmailUseCase.ts
https://raw.githubusercontent.com/saleelvt/GlamorBook-Back-End-App/27c3e8e/src/application/user/useCases/checkUserEmailUseCase.ts
saleelvt/GlamorBook-Back-End-App 27c3e8e src/application/user/useCases/checkUserEmailUseCase.ts
true
200
451
import { IDependencies } from "../interfaces/IDependencies"; export const checkUserEmailUseCase = (dependencies: IDependencies) => { const { repositories: { checkEmail }, } = dependencies; return { execute: async (email:string) => { try { return aw...
3
simonayotte/svg-web-sketching
b12c081
client/src/app/components/tools/brush/brush.component.spec.ts
TypeScript
www.github.com/simonayotte/svg-web-sketching/tree/main/client/src/app/components/tools/brush/brush.component.spec.ts
https://raw.githubusercontent.com/simonayotte/svg-web-sketching/b12c081/client/src/app/components/tools/brush/brush.component.spec.ts
simonayotte/svg-web-sketching b12c081 client/src/app/components/tools/brush/brush.component.spec.ts
true
200
1,265
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { BrushTextures } from 'src/app/models/enums'; import { BrushComponent } from './brush.component'; /* tslint:disable:no-magic-numbers */ describe('BrushComponent', () => { let component: BrushComponent; let fixture: ComponentFixtu...
5
moesjarraf/nestjs-common
b6df75c
src/modules/database/classes/soft-delete-repository.class.ts
TypeScript
www.github.com/moesjarraf/nestjs-common/tree/main/src/modules/database/classes/soft-delete-repository.class.ts
https://raw.githubusercontent.com/moesjarraf/nestjs-common/b6df75c/src/modules/database/classes/soft-delete-repository.class.ts
moesjarraf/nestjs-common b6df75c src/modules/database/classes/soft-delete-repository.class.ts
true
200
1,319
import { DocumentType } from '@typegoose/typegoose'; import { PopulateOptions } from 'mongoose'; import { DatabaseRepository } from './repository.class'; import { DatabaseSoftDeleteEntity } from './soft-delete-entity.class'; export abstract class DatabaseSoftDeleteRepository< T extends DatabaseSoftDeleteEntity, > ex...
4
Willianbar/ss
659f41b
web/app/lib/api.ts
TypeScript
www.github.com/Willianbar/ss/tree/main/web/app/lib/api.ts
https://raw.githubusercontent.com/Willianbar/ss/659f41b/web/app/lib/api.ts
Willianbar/ss 659f41b web/app/lib/api.ts
true
200
3,868
import "whatwg-fetch"; const SERVER_PROTOCOL = process.env.NEXT_PUBLIC_ADH_SERVER_PROTOCOL || "http"; const SERVER_PORT = process.env.NEXT_PUBLIC_ADH_SERVER_PORT || "8000"; const VERSION = process.env.NEXT_PUBLIC_ADH_SERVER_VERSION || "v0"; function getURL(): string { const SERVER_IP = process.env.NEXT_PUBLIC_A...
3
lvce-editor/editor-worker
9c0fa16
packages/editor-worker/src/parts/CompletionWidgetFactory/CompletionWidgetFactory.ts
TypeScript
www.github.com/lvce-editor/editor-worker/tree/main/packages/editor-worker/src/parts/CompletionWidgetFactory/CompletionWidgetFactory.ts
https://raw.githubusercontent.com/lvce-editor/editor-worker/9c0fa16/packages/editor-worker/src/parts/CompletionWidgetFactory/CompletionWidgetFactory.ts
lvce-editor/editor-worker 9c0fa16 packages/editor-worker/src/parts/CompletionWidgetFactory/CompletionWidgetFactory.ts
true
200
986
import type { CompletionWidget } from '../CompletionWidget/CompletionWidget.ts' import * as Id from '../Id/Id.ts' import * as WidgetId from '../WidgetId/WidgetId.ts' export const create = (): CompletionWidget => { const completionUid = Id.create() const completionWidget: CompletionWidget = { id: WidgetId.Compl...
5
natalyasafarevich/list-manager
df446c0
hooks/useResponsive.ts
TypeScript
www.github.com/natalyasafarevich/list-manager/tree/main/hooks/useResponsive.ts
https://raw.githubusercontent.com/natalyasafarevich/list-manager/df446c0/hooks/useResponsive.ts
natalyasafarevich/list-manager df446c0 hooks/useResponsive.ts
true
200
639
import {useState, useEffect} from 'react'; import {useMediaQuery} from 'react-responsive'; const useResponsive = () => { const [isMobile, setIsMobile] = useState(useMediaQuery({maxWidth: 991})); const [isDesktop, setIsDesktop] = useState(useMediaQuery({minWidth: 1024})); useEffect(() => { const updateMedia...
4
rahil234/i4you
146d188
apps/services/auth-service/src/models/admin.model.ts
TypeScript
www.github.com/rahil234/i4you/tree/main/apps/services/auth-service/src/models/admin.model.ts
https://raw.githubusercontent.com/rahil234/i4you/146d188/apps/services/auth-service/src/models/admin.model.ts
rahil234/i4you 146d188 apps/services/auth-service/src/models/admin.model.ts
true
200
635
import mongoose, { Schema, Document } from 'mongoose'; export interface AdminDocument extends Document { _id: string; name: string; email: string; status: string; password: string; createdAt: Date; updatedAt: Date; } const adminSchema = new Schema<AdminDocument>({ name: { type: String, required: true ...
3
satish-313/graphcms-jsm
fb5e682
pages/api/comments.ts
TypeScript
www.github.com/satish-313/graphcms-jsm/tree/main/pages/api/comments.ts
https://raw.githubusercontent.com/satish-313/graphcms-jsm/fb5e682/pages/api/comments.ts
satish-313/graphcms-jsm fb5e682 pages/api/comments.ts
true
200
1,128
import type { NextApiRequest, NextApiResponse } from "next"; import { GraphQLClient, gql } from "graphql-request"; const graphqlAPI = process.env.NEXT_PUBLIC_GRAPHCMS_ENDPOINT as string; const grachcmsToken = process.env.GRAPHCMS_TOKEN as string; type Data = { name: string; }; export default async function comments...
5
demergent-labs/azle
ff02df9
src/experimental/lib/fetch/file.ts
TypeScript
www.github.com/demergent-labs/azle/tree/main/src/experimental/lib/fetch/file.ts
https://raw.githubusercontent.com/demergent-labs/azle/ff02df9/src/experimental/lib/fetch/file.ts
demergent-labs/azle ff02df9 src/experimental/lib/fetch/file.ts
true
200
423
import '#experimental/lib/assert_experimental'; import { readFile } from 'fs/promises'; import { AzleFetchResponse } from './response'; import { getUrl } from './url'; export async function fetchFile(input: RequestInfo | URL): Promise<Response> { const url = getUrl(input); const path = `${url.hostname}${url...
3
zaidsidd360-work/voice-crm-server
5b033a5
src/routes/botresponseRoutes.ts
TypeScript
www.github.com/zaidsidd360-work/voice-crm-server/tree/main/src/routes/botresponseRoutes.ts
https://raw.githubusercontent.com/zaidsidd360-work/voice-crm-server/5b033a5/src/routes/botresponseRoutes.ts
zaidsidd360-work/voice-crm-server 5b033a5 src/routes/botresponseRoutes.ts
true
200
538
import express from "express"; import { checkAvailability, createAppointmentInGHL, saveSummaryToAirtable, sendDataToGoHighLevel, } from "../controllers/botresponseController"; const router = express.Router(); // router.post("/airtable", sendDataToAirtable); router.post("/gohighlevel/contact", sendDataToGoHighLeve...
5
barabasizsolt/CryptoReactNative
25d9860
src/feature/theme/value/Color.ts
TypeScript
www.github.com/barabasizsolt/CryptoReactNative/tree/main/src/feature/theme/value/Color.ts
https://raw.githubusercontent.com/barabasizsolt/CryptoReactNative/25d9860/src/feature/theme/value/Color.ts
barabasizsolt/CryptoReactNative 25d9860 src/feature/theme/value/Color.ts
true
200
2,284
import type { ColorValue } from 'react-native'; const colors = { black: '#000000FF', white: '#FFFFFFFF', almostBlack: '#343434', almostWhite: '#F8F8F8FF', red400: '#EF5350FF', red700: '#D32F2FFF', orange400: '#FF7043FF', orange700: '#E64A19FF', green400: '#66BB6AFF', green700: '#388E3CFF', blueGr...
4
Sourav12061999/keetcode
286ecee
server/src/Schemas/Testcases.schema.ts
TypeScript
www.github.com/Sourav12061999/keetcode/tree/main/server/src/Schemas/Testcases.schema.ts
https://raw.githubusercontent.com/Sourav12061999/keetcode/286ecee/server/src/Schemas/Testcases.schema.ts
Sourav12061999/keetcode 286ecee server/src/Schemas/Testcases.schema.ts
true
200
662
import { Schema, model, Document } from "mongoose"; import { QuestionType } from "./Questions.schema"; export interface TestcaseType extends Document { Input: string; Output: string; Timelimit: number; MemoryLimit: number; Ques_id: QuestionType["_id"]; } const TestcaseSchema = new Schema<TestcaseType>({ I...
3
dqkqd/easy-recipes
af0c6ca
frontend/cypress/support/commands.ts
TypeScript
www.github.com/dqkqd/easy-recipes/tree/main/frontend/cypress/support/commands.ts
https://raw.githubusercontent.com/dqkqd/easy-recipes/af0c6ca/frontend/cypress/support/commands.ts
dqkqd/easy-recipes af0c6ca frontend/cypress/support/commands.ts
true
200
2,558
/// <reference types="cypress" /> // *********************************************** // This example commands.ts shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-comma...
5
realkabeerahmad/e-commerce
f824fee
server-app/src/routes/category.ts
TypeScript
www.github.com/realkabeerahmad/e-commerce/tree/main/server-app/src/routes/category.ts
https://raw.githubusercontent.com/realkabeerahmad/e-commerce/f824fee/server-app/src/routes/category.ts
realkabeerahmad/e-commerce f824fee server-app/src/routes/category.ts
true
200
875
import express from "express"; import { create, getOne, getAll, updateOne, deleteOne, } from "../controller/category"; /** * Express router for handling category-related routes. */ const category = express.Router(); // Log the initialization of the category router console.log("Category router initialized....
4
AlexanderCleasby/family_video
ccb968f
src/server/api/routers/tape.ts
TypeScript
www.github.com/AlexanderCleasby/family_video/tree/main/src/server/api/routers/tape.ts
https://raw.githubusercontent.com/AlexanderCleasby/family_video/ccb968f/src/server/api/routers/tape.ts
AlexanderCleasby/family_video ccb968f src/server/api/routers/tape.ts
true
200
808
import { z } from "zod"; import { createTRPCRouter, publicProcedure, protectedProcedure, } from "~/server/api/trpc"; import getFileUrl from "~/server/getFileUrl"; export const tapeRouter = createTRPCRouter({ hello: publicProcedure .input(z.object({ text: z.string() })) .query(({ input }) => { pr...
2
Turkana99/testData
24a7923
src/app/countryILookUp.ts
TypeScript
www.github.com/Turkana99/testData/tree/main/src/app/countryILookUp.ts
https://raw.githubusercontent.com/Turkana99/testData/24a7923/src/app/countryILookUp.ts
Turkana99/testData 24a7923 src/app/countryILookUp.ts
true
200
59,330
export let countriesLookUp = [ { name: 'Afghanistan', cioc: 'AFG', nativeName: { prs: { official: 'جمهوری اسلامی افغانستان', common: 'افغانستان', }, pus: { official: 'د افغانستان اسلامي جمهوریت', common: 'افغانستان', }, tuk: { official:...
1
RicardoPinto26/gomoku
4945608
code/js/gomoku-app/src/services/home/HomeServices.ts
TypeScript
www.github.com/RicardoPinto26/gomoku/tree/main/code/js/gomoku-app/src/services/home/HomeServices.ts
https://raw.githubusercontent.com/RicardoPinto26/gomoku/4945608/code/js/gomoku-app/src/services/home/HomeServices.ts
RicardoPinto26/gomoku 4945608 code/js/gomoku-app/src/services/home/HomeServices.ts
true
200
1,185
import {SirenEntity} from "../../http/media/siren/SirenEntity"; import {get} from "../utils/fetchSiren"; import {HomeOutputModel} from "./models/HomeOutputModel"; export function getAndStoreHome() { if (localStorage.getItem('list_users') == null || localStorage.getItem('register') == null || localStorage.getItem('...
7
Ocunidee/atpw-routing
1094125
src/app/book-details/book-details.component.ts
TypeScript
www.github.com/Ocunidee/atpw-routing/tree/main/src/app/book-details/book-details.component.ts
https://raw.githubusercontent.com/Ocunidee/atpw-routing/1094125/src/app/book-details/book-details.component.ts
Ocunidee/atpw-routing 1094125 src/app/book-details/book-details.component.ts
true
200
462
import { Component, OnInit } from '@angular/core' import { bookDetails } from '../data/book-details' import { BookDetail } from '../models/book-detail' @Component({ selector: 'app-book-details', imports: [], templateUrl: './book-details.component.html', styleUrl: './book-details.component.scss' }) export class...
5
hartill/soundscape
6c34045
src/instruments/Keyboard/OscillatorTypeControl/OscillatorTypeControl.ts
TypeScript
www.github.com/hartill/soundscape/tree/main/src/instruments/Keyboard/OscillatorTypeControl/OscillatorTypeControl.ts
https://raw.githubusercontent.com/hartill/soundscape/6c34045/src/instruments/Keyboard/OscillatorTypeControl/OscillatorTypeControl.ts
hartill/soundscape 6c34045 src/instruments/Keyboard/OscillatorTypeControl/OscillatorTypeControl.ts
true
200
2,668
import './styles.css' import sineIcon from '../../../icons/sine.svg' import squareIcon from '../../../icons/square.svg' import triangleIcon from '../../../icons/triangle.svg' import sawToothIcon from '../../../icons/sawtooth.svg' export enum OscillatorType { SINE = 'sine', SQUARE = 'square', TRIANGLE = 'triangle...
6
drakkomaximo/useQueryPip
97b38dc
src/containers/GenderList/types.ts
TypeScript
www.github.com/drakkomaximo/useQueryPip/tree/main/src/containers/GenderList/types.ts
https://raw.githubusercontent.com/drakkomaximo/useQueryPip/97b38dc/src/containers/GenderList/types.ts
drakkomaximo/useQueryPip 97b38dc src/containers/GenderList/types.ts
true
200
467
import { SelectChangeEvent } from "@mui/material"; import { GenderDto } from "../../interfaces/useQueryPip.interface"; import { ResultFieldDto } from "../../services/interfaces/outputs/randonUser" export type GenderListProps = { people: ResultFieldDto[]; gender: GenderDto size: number; handleSize: ({ s...
0
michalsostak/fullstackopen-2023
5b8c255
part9/bmi/bmiCalculator.ts
TypeScript
www.github.com/michalsostak/fullstackopen-2023/tree/main/part9/bmi/bmiCalculator.ts
https://raw.githubusercontent.com/michalsostak/fullstackopen-2023/5b8c255/part9/bmi/bmiCalculator.ts
michalsostak/fullstackopen-2023 5b8c255 part9/bmi/bmiCalculator.ts
true
200
1,421
interface BmiValues { heightInCm: number; weightInKg: number; } const parseBmiArguments = (args: string[]): BmiValues => { if (args.length < 4) throw new Error("Not enough arguments"); if (args.length > 4) throw new Error("Too many arguments"); if (!isNaN(Number(args[2])) && !isNaN(Number(args[3]))) { i...
4
AleksandarBayrev/sysinfo-linux
ea73f50
frontend/src/interfaces/IAppStore.ts
TypeScript
www.github.com/AleksandarBayrev/sysinfo-linux/tree/main/frontend/src/interfaces/IAppStore.ts
https://raw.githubusercontent.com/AleksandarBayrev/sysinfo-linux/ea73f50/frontend/src/interfaces/IAppStore.ts
AleksandarBayrev/sysinfo-linux ea73f50 frontend/src/interfaces/IAppStore.ts
true
200
468
import { IObservableArray, IObservableValue } from "mobx"; import { IStore } from "./IStore"; import { CommandResponse, LoadingState } from "../types"; export interface IAppStore extends IStore { currentPage: IObservableValue<string>; currentFullUrl: IObservableValue<string>; commandsResponse: IObservableA...
1
gn-t-k/dot-strive.training
2c7769b
database/tables/exercises.ts
TypeScript
www.github.com/gn-t-k/dot-strive.training/tree/main/database/tables/exercises.ts
https://raw.githubusercontent.com/gn-t-k/dot-strive.training/2c7769b/database/tables/exercises.ts
gn-t-k/dot-strive.training 2c7769b database/tables/exercises.ts
true
200
1,093
import { relations } from "drizzle-orm"; import { foreignKey, index, integer, primaryKey, sqliteTable, text, unique, } from "drizzle-orm/sqlite-core"; import { tagExerciseMappings } from "./tag-exercise-mappings"; import { trainees } from "./trainees"; export const exercises = sqliteTable( "exercises",...
2
6Whistle/bitcamp-kubernetes-aws
015db47
soccer-server/frontend/src/app/team/model/team-model.ts
TypeScript
www.github.com/6Whistle/bitcamp-kubernetes-aws/tree/main/soccer-server/frontend/src/app/team/model/team-model.ts
https://raw.githubusercontent.com/6Whistle/bitcamp-kubernetes-aws/015db47/soccer-server/frontend/src/app/team/model/team-model.ts
6Whistle/bitcamp-kubernetes-aws 015db47 soccer-server/frontend/src/app/team/model/team-model.ts
true
200
314
export default interface TeamModel{ id:number teamId:string regionName:string teamName:string eTeamName:string origYyyy:string zipCode1:string zipCode2:string address:string ddd:string tel:string fax:string homepage:string owner:string stadiumId:string }
7
klevoDev/todo-list
42e81a9
src/components/todos-component/todos-types.ts
TypeScript
www.github.com/klevoDev/todo-list/tree/main/src/components/todos-component/todos-types.ts
https://raw.githubusercontent.com/klevoDev/todo-list/42e81a9/src/components/todos-component/todos-types.ts
klevoDev/todo-list 42e81a9 src/components/todos-component/todos-types.ts
true
200
316
export type TodosType = { id: number title: string isDone: boolean } export type TodosPropsType = { addTask: (title: string) => void changeFilter: (filter: FilterType) => void deleteTask: (id: number) => void heading: string todosItem: TodosType[] } export type FilterType = 'all' | 'active' | 'completed'
3
sanjaikumarv/live-stock
0d526cf
live-stock-server/src/middlewares/httpLogger.ts
TypeScript
www.github.com/sanjaikumarv/live-stock/tree/main/live-stock-server/src/middlewares/httpLogger.ts
https://raw.githubusercontent.com/sanjaikumarv/live-stock/0d526cf/live-stock-server/src/middlewares/httpLogger.ts
sanjaikumarv/live-stock 0d526cf live-stock-server/src/middlewares/httpLogger.ts
true
200
327
import morgan from "morgan"; import logger from "../lib/logger"; logger.stream = { write: (message) => logger.info(message.substring(0, message.lastIndexOf("\n"))), } as any; export default morgan( ":method :url :status :response-time ms - :res[content-length]" as any, // @ts-ignore { stream: logger.strea...
0
KgatlisoLM/redmango
49ab6fe
src/apis/paymentApi.ts
TypeScript
www.github.com/KgatlisoLM/redmango/tree/main/src/apis/paymentApi.ts
https://raw.githubusercontent.com/KgatlisoLM/redmango/49ab6fe/src/apis/paymentApi.ts
KgatlisoLM/redmango 49ab6fe src/apis/paymentApi.ts
true
200
792
import { createApi, fetchBaseQuery} from "@reduxjs/toolkit/query/react"; const paymentApi = createApi({ reducerPath: "paymentApi", baseQuery: fetchBaseQuery({ baseUrl: "https://localhost:7189/api/", prepareHeaders: (headers:Headers, api) => { const token = localStorage.getItem("toke...
6
ysugimoto/graphql-edge
63ea07a
example/fastly/src/index.ts
TypeScript
www.github.com/ysugimoto/graphql-edge/tree/main/example/fastly/src/index.ts
https://raw.githubusercontent.com/ysugimoto/graphql-edge/63ea07a/example/fastly/src/index.ts
ysugimoto/graphql-edge 63ea07a example/fastly/src/index.ts
true
200
700
/// <reference types="@fastly/js-compute" /> import { graphqlHandler } from "graphql-edge"; import schema from "../../_misc/schema.graphql"; addEventListener("fetch", (event: FetchEvent) => event.respondWith(handleRequest(event))); const resolvers = { Query: { async books() { return [ { id: 1, tit...
5
innovaware/SmartPhr
a455042
frontend/smartiphr/src/app/pages/area-infermieristica/area-infermieristica.component.ts
TypeScript
www.github.com/innovaware/SmartPhr/tree/main/frontend/smartiphr/src/app/pages/area-infermieristica/area-infermieristica.component.ts
https://raw.githubusercontent.com/innovaware/SmartPhr/a455042/frontend/smartiphr/src/app/pages/area-infermieristica/area-infermieristica.component.ts
innovaware/SmartPhr a455042 frontend/smartiphr/src/app/pages/area-infermieristica/area-infermieristica.component.ts
true
200
5,066
import { Component, OnInit } from "@angular/core"; import { MatDialog } from "@angular/material/dialog"; import { Subject } from "rxjs"; import { DialogCartellaClinicaComponent } from "src/app/dialogs/dialog-cartella-clinica/dialog-cartella-clinica.component"; import { DialogCartellaInfermeristicaComponent } from "src/...
4
bawolf/marblism-doodlocracy
61d8c6d
apps/server/src/modules/prompt/domain/prompt.domain.facade.ts
TypeScript
www.github.com/bawolf/marblism-doodlocracy/tree/main/apps/server/src/modules/prompt/domain/prompt.domain.facade.ts
https://raw.githubusercontent.com/bawolf/marblism-doodlocracy/61d8c6d/apps/server/src/modules/prompt/domain/prompt.domain.facade.ts
bawolf/marblism-doodlocracy 61d8c6d apps/server/src/modules/prompt/domain/prompt.domain.facade.ts
true
200
2,265
import { Injectable } from '@nestjs/common' import { InjectRepository } from '@nestjs/typeorm' import { Repository } from 'typeorm' import { DatabaseHelper } from '../../../core/database' import { RequestHelper } from '../../../helpers/request' import { Prompt } from './prompt.model' import { Game } from '../../game/d...
1
borisgappov/loan-enquiry-service-api
6e6d5cb
apps/loans/migrations.ormconfig.ts
TypeScript
www.github.com/borisgappov/loan-enquiry-service-api/tree/main/apps/loans/migrations.ormconfig.ts
https://raw.githubusercontent.com/borisgappov/loan-enquiry-service-api/6e6d5cb/apps/loans/migrations.ormconfig.ts
borisgappov/loan-enquiry-service-api 6e6d5cb apps/loans/migrations.ormconfig.ts
true
200
389
import { DataSource } from 'typeorm'; export default new DataSource({ type: 'postgres', host: 'localhost', port: 5432, username: 'postgres', password: 'postgres', database: 'banking', synchronize: true, migrationsRun: false, migrationsTableName: 'migrations', entities: ['libs/common/src/**/*.entity...
2
zanminkian/fenge
ffbcf06
packages/eslint-plugin-pkg-json/src/rules/required-repository.test.ts
TypeScript
www.github.com/zanminkian/fenge/tree/main/packages/eslint-plugin-pkg-json/src/rules/required-repository.test.ts
https://raw.githubusercontent.com/zanminkian/fenge/ffbcf06/packages/eslint-plugin-pkg-json/src/rules/required-repository.test.ts
zanminkian/fenge ffbcf06 packages/eslint-plugin-pkg-json/src/rules/required-repository.test.ts
true
200
494
import { test } from "../test.test.ts"; import { name, rule } from "./required-repository.js"; const s = JSON.stringify; const valid = [ s({ private: true, name: "foo" }), s({ private: true }), s({ repository: "http://example.com" }), s({ repository: { url: "" } }), ]; const invalid = [ s({}), s({ name: ...
7
hosseyni/Gestion-Pointage
f00397f
src/app/views/admin/gestionusers/gestionusers.module.ts
TypeScript
www.github.com/hosseyni/Gestion-Pointage/tree/main/src/app/views/admin/gestionusers/gestionusers.module.ts
https://raw.githubusercontent.com/hosseyni/Gestion-Pointage/f00397f/src/app/views/admin/gestionusers/gestionusers.module.ts
hosseyni/Gestion-Pointage f00397f src/app/views/admin/gestionusers/gestionusers.module.ts
true
200
419
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GestionusersRoutingModule } from './gestionusers-routing.module'; import { GestionusersComponent } from './gestionusers/gestionusers.component'; @NgModule({ declarations: [ GestionusersComponent, ], imp...
5
Jawad-Ali2/trivia-app
540e0e5
backend/src/event/event.gateway.ts
TypeScript
www.github.com/Jawad-Ali2/trivia-app/tree/main/backend/src/event/event.gateway.ts
https://raw.githubusercontent.com/Jawad-Ali2/trivia-app/540e0e5/backend/src/event/event.gateway.ts
Jawad-Ali2/trivia-app 540e0e5 backend/src/event/event.gateway.ts
true
200
8,259
import { WebSocketGateway, SubscribeMessage, MessageBody, WebSocketServer, ConnectedSocket, } from '@nestjs/websockets'; import { EventService } from './event.service'; import { Server, Socket } from 'socket.io'; import { Logger, UseGuards } from '@nestjs/common'; import { WsJwtGuard } from 'src/auth/guards/w...
0
felipebruce/tdc-serverless-clean-architecture
32a6ecd
packages/core/tests/unit-testing/api/get-app-version/use-cases/get-app-version-uc.spec.ts
TypeScript
www.github.com/felipebruce/tdc-serverless-clean-architecture/tree/main/packages/core/tests/unit-testing/api/get-app-version/use-cases/get-app-version-uc.spec.ts
https://raw.githubusercontent.com/felipebruce/tdc-serverless-clean-architecture/32a6ecd/packages/core/tests/unit-testing/api/get-app-version/use-cases/get-app-version-uc.spec.ts
felipebruce/tdc-serverless-clean-architecture 32a6ecd packages/core/tests/unit-testing/api/get-app-version/use-cases/get-app-version-uc.spec.ts
true
200
2,090
/* * Copyright (c) 2022 Felipe Rocha Bruce * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
6
Danilo-Acosta5389/Vivo-Consulting-AB
534023b
src/app/api/verify-recaptcha/route.ts
TypeScript
www.github.com/Danilo-Acosta5389/Vivo-Consulting-AB/tree/main/src/app/api/verify-recaptcha/route.ts
https://raw.githubusercontent.com/Danilo-Acosta5389/Vivo-Consulting-AB/534023b/src/app/api/verify-recaptcha/route.ts
Danilo-Acosta5389/Vivo-Consulting-AB 534023b src/app/api/verify-recaptcha/route.ts
true
200
839
import { NextResponse } from "next/server"; export async function POST(request: Request) { const body = await request.json(); //console.log("Request:", request); const { token } = body; const secretKey = process.env.RECAPTCHA_SECRET_KEY; const verificationResponse = await fetch( `https://www.google.com/r...
3
KlimaDAO/bezos-frontend
4e943e8
carbonmark/components/Layout/styles.ts
TypeScript
www.github.com/KlimaDAO/bezos-frontend/tree/main/carbonmark/components/Layout/styles.ts
https://raw.githubusercontent.com/KlimaDAO/bezos-frontend/4e943e8/carbonmark/components/Layout/styles.ts
KlimaDAO/bezos-frontend 4e943e8 carbonmark/components/Layout/styles.ts
true
200
4,812
import { css } from "@emotion/css"; import breakpoints, { breakpoints as specificBreakpoints, } from "@klimadao/lib/theme/breakpoints"; export const container = css` grid-column: full; position: relative; /* new stacking context */ z-index: 0; overflow-x: hidden; overflow-y: auto; background-color: var(-...
4
promarat/aws_server2
8d963d7
src/users/users.service.ts
TypeScript
www.github.com/promarat/aws_server2/tree/main/src/users/users.service.ts
https://raw.githubusercontent.com/promarat/aws_server2/8d963d7/src/users/users.service.ts
promarat/aws_server2 8d963d7 src/users/users.service.ts
true
200
21,813
import { Injectable, NotFoundException } from "@nestjs/common"; import { InjectRepository, InjectConnection } from "@nestjs/typeorm"; import { UsersEntity } from "../entities/users.entity"; import { RecordsEntity } from "src/entities/records.entity"; import { AnswersEntity } from "src/entities/answers.entity"; import {...
2
cyrilwanner/wasm-codecs
89fb54b
packages/gifsicle/__tests__/performance.test.ts
TypeScript
www.github.com/cyrilwanner/wasm-codecs/tree/main/packages/gifsicle/__tests__/performance.test.ts
https://raw.githubusercontent.com/cyrilwanner/wasm-codecs/89fb54b/packages/gifsicle/__tests__/performance.test.ts
cyrilwanner/wasm-codecs 89fb54b packages/gifsicle/__tests__/performance.test.ts
true
200
943
import { initTestUtils, getImageFile, getFileSize } from '@wasm-codecs/test-utils'; import encode from '../lib'; describe('gifsicle performance', () => { beforeAll(() => { initTestUtils(__dirname); }); it('encodes many images', async () => { jest.setTimeout(100000); process.setMaxListeners(0); ...
7
Eduardo282x/management-process-carlos-filay
d7e8951
src/pages/users/users.data.ts
TypeScript
www.github.com/Eduardo282x/management-process-carlos-filay/tree/main/src/pages/users/users.data.ts
https://raw.githubusercontent.com/Eduardo282x/management-process-carlos-filay/d7e8951/src/pages/users/users.data.ts
Eduardo282x/management-process-carlos-filay d7e8951 src/pages/users/users.data.ts
true
200
2,730
import { z } from "zod"; import { IColumns } from "../../interfaces/table.interface"; import { IUsers } from "../../interfaces/users.interface"; import { IDataForm } from "../../interfaces/form.interface"; import { getDataApi } from "../../backend/basicAPI"; //Table export const userColumns: IColumns[] = [ { ...
5