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
JikaiNoTsubasa/BeethovenFront
3f6fa93
src/app/pages/main/main.component.ts
TypeScript
www.github.com/JikaiNoTsubasa/BeethovenFront/tree/main/src/app/pages/main/main.component.ts
https://raw.githubusercontent.com/JikaiNoTsubasa/BeethovenFront/3f6fa93/src/app/pages/main/main.component.ts
JikaiNoTsubasa/BeethovenFront 3f6fa93 src/app/pages/main/main.component.ts
true
200
335
import { Component } from '@angular/core'; import { MainMenuComponent } from "../../comps/main-menu/main-menu.component"; @Component({ selector: 'app-main', standalone: true, imports: [MainMenuComponent], templateUrl: './main.component.html', styleUrl: './main.component.scss' }) export class MainCo...
6
Bikramsahoolive/test-nest
12603ec
src/main.ts
TypeScript
www.github.com/Bikramsahoolive/test-nest/tree/main/src/main.ts
https://raw.githubusercontent.com/Bikramsahoolive/test-nest/12603ec/src/main.ts
Bikramsahoolive/test-nest 12603ec src/main.ts
true
200
1,635
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; // import * as logger from 'morgan'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import * as cookieParser from 'cookie-parser' import * as session from 'express-session'; import { LoggerService } from './logger/s...
7
afeibukun/timesheet-generator
85b13ff
src/lib/services/timesheet/timesheetTime.ts
TypeScript
www.github.com/afeibukun/timesheet-generator/tree/main/src/lib/services/timesheet/timesheetTime.ts
https://raw.githubusercontent.com/afeibukun/timesheet-generator/85b13ff/src/lib/services/timesheet/timesheetTime.ts
afeibukun/timesheet-generator 85b13ff src/lib/services/timesheet/timesheetTime.ts
true
200
3,921
import { ErrorMessage } from "@/lib/constants/constant"; import { Time } from "@/lib/types/generalType"; export class TimesheetTime { static getHour(time: Time): number { const _timeSplit = time.split(':'); const _hour = Number.parseInt(_timeSplit[0]); return _hour } static getMinu...
5
MetalUp/Express
db333ba
Client/src/app/services/registration.service.spec.ts
TypeScript
www.github.com/MetalUp/Express/tree/main/Client/src/app/services/registration.service.spec.ts
https://raw.githubusercontent.com/MetalUp/Express/db333ba/Client/src/app/services/registration.service.spec.ts
MetalUp/Express db333ba Client/src/app/services/registration.service.spec.ts
true
200
2,578
import { fakeAsync, TestBed, tick } from '@angular/core/testing'; import { Router } from '@angular/router'; import { AuthService, User } from '@auth0/auth0-angular'; import { BehaviorSubject, Subject } from 'rxjs'; import { IUserView, UserView } from '../models/user-view'; import { RegistrationService } from './registr...
1
BSI85/my-app
661420a
src/redux/auth-reduser.ts
TypeScript
www.github.com/BSI85/my-app/tree/main/src/redux/auth-reduser.ts
https://raw.githubusercontent.com/BSI85/my-app/661420a/src/redux/auth-reduser.ts
BSI85/my-app 661420a src/redux/auth-reduser.ts
true
200
3,008
import { FormAction, stopSubmit } from 'redux-form'; import { authAPI, securityAPI } from '../components/api/authAPI'; import { ThunkAction } from 'redux-thunk'; import { AppStateType } from './redux-store'; import { ResultCodeEnum, InferActionsTypes } from '../components/types/types'; const SET_AUTH_USER_DATA = 'my-a...
0
patrickjm/websocket-dom
f893eef
src/dom/events.ts
TypeScript
www.github.com/patrickjm/websocket-dom/tree/main/src/dom/events.ts
https://raw.githubusercontent.com/patrickjm/websocket-dom/f893eef/src/dom/events.ts
patrickjm/websocket-dom f893eef src/dom/events.ts
true
200
5,071
import type { DOMWindow } from 'jsdom'; import { type SerializedChangeEvent, type SerializedClickEvent, type SerializedEvent, type SerializedFocusEvent, type SerializedInputEvent, type SerializedKeyboardEvent, type SerializedMouseEvent, type SerializedSubmitEvent } from '../client/types'; import { type XPath } from ".....
4
davicamarinha/testeWinnin
4ff78d2
tailwind.config.ts
TypeScript
www.github.com/davicamarinha/testeWinnin/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/davicamarinha/testeWinnin/4ff78d2/tailwind.config.ts
davicamarinha/testeWinnin 4ff78d2 tailwind.config.ts
true
200
702
import type { Config } from "tailwindcss"; const config: Config = { content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { extend: { height: { '54': '54px', '68': '68px', }, ...
3
ianoxwell/ros
52bffa8
ros.angular/src/app/services/login/login.service.spec.ts
TypeScript
www.github.com/ianoxwell/ros/tree/main/ros.angular/src/app/services/login/login.service.spec.ts
https://raw.githubusercontent.com/ianoxwell/ros/52bffa8/ros.angular/src/app/services/login/login.service.spec.ts
ianoxwell/ros 52bffa8 ros.angular/src/app/services/login/login.service.spec.ts
true
200
1,443
import { provideHttpClientTesting } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; import { autoSpy, Spy } from '@tests/auto-spy'; import { of } from 'rxjs'; import { LoginService } from './login.service'; import { StorageService } from '../storage/storage.service'; import { UserP...
2
mulrooneydesign/aontas-design-system
1a1334b
vite.config.ts
TypeScript
www.github.com/mulrooneydesign/aontas-design-system/tree/main/vite.config.ts
https://raw.githubusercontent.com/mulrooneydesign/aontas-design-system/1a1334b/vite.config.ts
mulrooneydesign/aontas-design-system 1a1334b vite.config.ts
true
200
533
import { defineConfig } from 'vite'; import dts from 'vite-plugin-dts'; import { resolve } from 'path'; import react from '@vitejs/plugin-react'; import { libInjectCss } from 'vite-plugin-lib-inject-css'; export default defineConfig({ plugins: [react(), dts({ include: ['lib'] }), libInjectCss()], build: { roll...
6
RobsonFe/register-api
f112ae4
src/main.ts
TypeScript
www.github.com/RobsonFe/register-api/tree/main/src/main.ts
https://raw.githubusercontent.com/RobsonFe/register-api/f112ae4/src/main.ts
RobsonFe/register-api f112ae4 src/main.ts
true
200
554
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes( new ValidationPipe({ whitelist: true, //Anula corpos na requisição que é...
7
themuku/Todo-Nest-Auth
e14c77b
src/modules/auth/auth.service.ts
TypeScript
www.github.com/themuku/Todo-Nest-Auth/tree/main/src/modules/auth/auth.service.ts
https://raw.githubusercontent.com/themuku/Todo-Nest-Auth/e14c77b/src/modules/auth/auth.service.ts
themuku/Todo-Nest-Auth e14c77b src/modules/auth/auth.service.ts
true
200
3,200
import { BadRequestException, ConflictException, ForbiddenException, Injectable, } from '@nestjs/common'; import { RegisterUserDto } from './dto/register-user.dto'; import { LoginUserDto } from './dto/login-user.dto'; import { PrismaService } from '../../prisma.service'; import * as bcrypt from 'bcrypt'; import...
5
mfcarroll/slack-im-bug-demo
567c0ad
triggers/test_im_trigger.ts
TypeScript
www.github.com/mfcarroll/slack-im-bug-demo/tree/main/triggers/test_im_trigger.ts
https://raw.githubusercontent.com/mfcarroll/slack-im-bug-demo/567c0ad/triggers/test_im_trigger.ts
mfcarroll/slack-im-bug-demo 567c0ad triggers/test_im_trigger.ts
true
200
981
import { Trigger } from "deno-slack-sdk/types.ts"; import { TriggerContextData, TriggerEventTypes, TriggerTypes, } from "deno-slack-api/mod.ts"; import workflowDef from "../workflows/test_im_workflow.ts"; const triggerDef: Trigger<typeof workflowDef.definition> = { type: TriggerTypes.Event, name: "Test im tr...
1
AgustinLaValla/angular-nestjs-consultorio
f5c2a40
src/app/components/admin/turnos/acordion/pacient-list/pacient-list.component.ts
TypeScript
www.github.com/AgustinLaValla/angular-nestjs-consultorio/tree/main/src/app/components/admin/turnos/acordion/pacient-list/pacient-list.component.ts
https://raw.githubusercontent.com/AgustinLaValla/angular-nestjs-consultorio/f5c2a40/src/app/components/admin/turnos/acordion/pacient-list/pacient-list.component.ts
AgustinLaValla/angular-nestjs-consultorio f5c2a40 src/app/components/admin/turnos/acordion/pacient-list/pacient-list.component.ts
true
200
2,791
import { Component, OnInit, OnDestroy, Input } from '@angular/core'; import { Store } from '@ngrx/store'; import { AppState, getPacientsCounter, getReloadPacientList } from 'src/app/store/app.reducer'; import { Subscription } from 'rxjs'; import { Pacient } from 'src/app/interfaces/pacient.interface'; import { loadGetP...
4
future-sight-inc/routine-support
3de61a3
apps/web/src/features/student/components/StudentForm/hooks.ts
TypeScript
www.github.com/future-sight-inc/routine-support/tree/main/apps/web/src/features/student/components/StudentForm/hooks.ts
https://raw.githubusercontent.com/future-sight-inc/routine-support/3de61a3/apps/web/src/features/student/components/StudentForm/hooks.ts
future-sight-inc/routine-support 3de61a3 apps/web/src/features/student/components/StudentForm/hooks.ts
true
200
1,701
import { useState } from "react"; import { ColorEnum, Student } from "@routine-support/domains"; import { useConfirm } from "apps/web/src/services/ConfirmationService"; import { useForm } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { StudentFormActions } from "./StudentForm"; expor...
0
jungle-6-3/code-sync-fe
25e4499
src/apis/room/previousRoomApi.ts
TypeScript
www.github.com/jungle-6-3/code-sync-fe/tree/main/src/apis/room/previousRoomApi.ts
https://raw.githubusercontent.com/jungle-6-3/code-sync-fe/25e4499/src/apis/room/previousRoomApi.ts
jungle-6-3/code-sync-fe 25e4499 src/apis/room/previousRoomApi.ts
true
200
1,243
import { GetPreviousRoomResponseDto, GetPreviousRoomsResponseDto, getPreviousShareRoomResponseDto, } from "@/apis/conversation/dtos"; import { PatchConversationDatasRequest } from "@/apis/room/dtos"; import https from "@/lib/https"; export const getPreviousRoomsApi = async ( currentPage: number, ): Promise<Get...
3
wearevolt/test-telegram-webapp
1548eab
src/queryes/index.ts
TypeScript
www.github.com/wearevolt/test-telegram-webapp/tree/main/src/queryes/index.ts
https://raw.githubusercontent.com/wearevolt/test-telegram-webapp/1548eab/src/queryes/index.ts
wearevolt/test-telegram-webapp 1548eab src/queryes/index.ts
true
200
2,345
import { useQuery, gql } from "@apollo/client"; import { TgInitData, TgMessageFilter } from "../types"; const getTokenQuery = gql` query getToken($initStr: String!, $deviceId: String!, $initData: TgInitData) { getToken(init_str: $initStr, device_id: $deviceId, init_data: $initData) { success } } `; ...
6
Daniel-Ev-Esc/ats-pod5-angular
5ae8c5f
src/app/components/postcards/postcard/postcard.component.ts
TypeScript
www.github.com/Daniel-Ev-Esc/ats-pod5-angular/tree/main/src/app/components/postcards/postcard/postcard.component.ts
https://raw.githubusercontent.com/Daniel-Ev-Esc/ats-pod5-angular/5ae8c5f/src/app/components/postcards/postcard/postcard.component.ts
Daniel-Ev-Esc/ats-pod5-angular 5ae8c5f src/app/components/postcards/postcard/postcard.component.ts
true
200
450
import { Component, Input, OnInit, OnChanges, SimpleChanges} from '@angular/core'; import { Postcard, Type } from '../../../interfaces/postcard'; @Component({ selector: 'app-postcard', standalone: true, imports: [], templateUrl: './postcard.component.html', styleUrl: './postcard.component.scss' }) export cla...
7
re5nardo/LeagueOfPhysical-MatchmakingServer
8f09740
MatchmakingServer/src/services/user-stats.service.ts
TypeScript
www.github.com/re5nardo/LeagueOfPhysical-MatchmakingServer/tree/main/MatchmakingServer/src/services/user-stats.service.ts
https://raw.githubusercontent.com/re5nardo/LeagueOfPhysical-MatchmakingServer/8f09740/MatchmakingServer/src/services/user-stats.service.ts
re5nardo/LeagueOfPhysical-MatchmakingServer 8f09740 MatchmakingServer/src/services/user-stats.service.ts
true
200
601
import LobbyServerService from '@services/httpServices/lobbyServer.service'; import { GameMode } from '@interfaces/enums'; import { GetUserStatsResponseDto } from '@dtos/user-stats.dto'; class UserStatsService { private lobbyServerService = new LobbyServerService(); public async findUserStatsById(userId: str...
2
KoiosPika/web_crawler_ui
45c287c
lib/actions.ts
TypeScript
www.github.com/KoiosPika/web_crawler_ui/tree/main/lib/actions.ts
https://raw.githubusercontent.com/KoiosPika/web_crawler_ui/45c287c/lib/actions.ts
KoiosPika/web_crawler_ui 45c287c lib/actions.ts
true
200
379
"use server" export async function getCrawlData(url: string, depth: number) { const response = await fetch("http://13.58.34.251:5000/crawl", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ start_url: url, max_depth: depth }), }); const data...
5
amitShimon1983/Collabiria_Convert
b5611e8
packages/servers/email-teammate/src/apollo/resolvers/team/TeamResolver.ts
TypeScript
www.github.com/amitShimon1983/Collabiria_Convert/tree/main/packages/servers/email-teammate/src/apollo/resolvers/team/TeamResolver.ts
https://raw.githubusercontent.com/amitShimon1983/Collabiria_Convert/b5611e8/packages/servers/email-teammate/src/apollo/resolvers/team/TeamResolver.ts
amitShimon1983/Collabiria_Convert b5611e8 packages/servers/email-teammate/src/apollo/resolvers/team/TeamResolver.ts
true
200
1,502
import { Arg, Query, Resolver, Mutation } from 'type-graphql'; import { Team } from '@harmonie/server-db'; import { teamService } from '../../../services'; import { getOrganizationTeamsInput, getTeamInput, updateTeamInput, createTeamInput, getOrganizationsTeamsInput, } from './types'; @Resolver() export defa...
1
othmaneer/agence2.0
7902b33
frontAg/src/app/client/delete-client/delete-client/delete-client.component.ts
TypeScript
www.github.com/othmaneer/agence2.0/tree/main/frontAg/src/app/client/delete-client/delete-client/delete-client.component.ts
https://raw.githubusercontent.com/othmaneer/agence2.0/7902b33/frontAg/src/app/client/delete-client/delete-client/delete-client.component.ts
othmaneer/agence2.0 7902b33 frontAg/src/app/client/delete-client/delete-client/delete-client.component.ts
true
200
1,467
import { Component, Inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Client } from 'src/model/client'; import { ClientService } from 'src/service/client/client.service'; @Component({ selector: ...
3
zhangfei56/annotation3d
e1dc41b
src/utils/useShallowMemo.ts
TypeScript
www.github.com/zhangfei56/annotation3d/tree/main/src/utils/useShallowMemo.ts
https://raw.githubusercontent.com/zhangfei56/annotation3d/e1dc41b/src/utils/useShallowMemo.ts
zhangfei56/annotation3d e1dc41b src/utils/useShallowMemo.ts
true
200
359
import { useRef } from 'react'; import shallowequal from 'shallowequal'; /** Continues to return the same instance as long as shallow equality is maintained. */ export default function useShallowMemo<T>(value: T): T { const ref = useRef(value); if (shallowequal(value, ref.current)) { return ref.current; } ...
0
vladyslav-dev/vinoro-crm
7fa32de
constants/menu.ts
TypeScript
www.github.com/vladyslav-dev/vinoro-crm/tree/main/constants/menu.ts
https://raw.githubusercontent.com/vladyslav-dev/vinoro-crm/7fa32de/constants/menu.ts
vladyslav-dev/vinoro-crm 7fa32de constants/menu.ts
true
200
662
// @images import homeIcon from '@/images/icons/home-icon.svg'; import basketIcon from '@/images/icons/basket-icon.svg'; import catalogIcon from '@/images/icons/catalog-icon.svg'; import packageIcon from '@/images/icons/package-icon.svg'; export const images = [ { icon: homeIcon, tooltip: 'Главная...
4
CardSorting/chatdemo
4dd7307
src/lib/tipping/types/TippingTypes.ts
TypeScript
www.github.com/CardSorting/chatdemo/tree/main/src/lib/tipping/types/TippingTypes.ts
https://raw.githubusercontent.com/CardSorting/chatdemo/4dd7307/src/lib/tipping/types/TippingTypes.ts
CardSorting/chatdemo 4dd7307 src/lib/tipping/types/TippingTypes.ts
true
200
647
export interface TippingSectionProps { creatorId: string; creatorName: string; } export interface Tip { amount: number; timestamp: string; sender: string; } export interface Tipper { username: string; totalTips: number; } export interface Milestone { goal: number; current: number; description: st...
6
minimouli/api
b4b4332
src/accounts/accounts.controller.ts
TypeScript
www.github.com/minimouli/api/tree/main/src/accounts/accounts.controller.ts
https://raw.githubusercontent.com/minimouli/api/b4b4332/src/accounts/accounts.controller.ts
minimouli/api b4b4332 src/accounts/accounts.controller.ts
true
200
7,215
/** * Copyright (c) Minimouli * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Body, Controller, Delete, Get, HttpCode, Param, Patch, Put, SerializeOptions, UseGuards, UseIntercepto...
7
robo-technical-group/monopoly
2a1160d
actions.ts
TypeScript
www.github.com/robo-technical-group/monopoly/tree/main/actions.ts
https://raw.githubusercontent.com/robo-technical-group/monopoly/2a1160d/actions.ts
robo-technical-group/monopoly 2a1160d actions.ts
true
200
6,657
namespace SpriteKind { export const ActionMenu = SpriteKind.create() } abstract class ActionMenu { protected done: boolean protected message: string constructor(msg: string) { this.message = msg } /** * Public properties */ public get Done(): boolean { return thi...
5
tettekete/vscode-quick-highlight-extension
ea9e170
src/test/hsv-color.test.ts
TypeScript
www.github.com/tettekete/vscode-quick-highlight-extension/tree/main/src/test/hsv-color.test.ts
https://raw.githubusercontent.com/tettekete/vscode-quick-highlight-extension/ea9e170/src/test/hsv-color.test.ts
tettekete/vscode-quick-highlight-extension ea9e170 src/test/hsv-color.test.ts
true
200
456
import * as assert from 'assert'; import { RGBHexStringFromHSV } from '../lib/hsv-color'; suite('RGBHexStringFromHSV Basic Tests', () => { test('Basic test' ,() => { [ { hsv: { h:210 , s:0.17 , v:0.8 } , expects: "a9bacc" }, { hsv: { h:44 , s:1 , v:0.94 } , expects: "efaf00" } ].forEach( (t) => { ...
2
adriangutierrezd/expenses-app-react
bdfbe97
app/src/services/changePasswordService.ts
TypeScript
www.github.com/adriangutierrezd/expenses-app-react/tree/main/app/src/services/changePasswordService.ts
https://raw.githubusercontent.com/adriangutierrezd/expenses-app-react/bdfbe97/app/src/services/changePasswordService.ts
adriangutierrezd/expenses-app-react bdfbe97 app/src/services/changePasswordService.ts
true
200
701
const BASE_URL = '/api/users' interface Props { password: string, token: string, id: string } export const changePasswordService = async({ password, token, id } : Props) => { const myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); myHeaders.append("Authorization"...
1
itorophilip1998/switch_front
6eff886
src/hooks/useUSDToOthers/index.ts
TypeScript
www.github.com/itorophilip1998/switch_front/tree/main/src/hooks/useUSDToOthers/index.ts
https://raw.githubusercontent.com/itorophilip1998/switch_front/6eff886/src/hooks/useUSDToOthers/index.ts
itorophilip1998/switch_front 6eff886 src/hooks/useUSDToOthers/index.ts
true
200
2,611
import React from "react"; // @ts-ignore import axios from "axios"; import { roundNumberToNDP } from "@/utils/roundNumberToNDP"; import { currencySymbols, PREFERRED_CURRENCIES, TOP_CURRENCIES, } from "./currenciesList"; import { ConvertRate } from "@/types/mixpayTypes"; export interface ConversionResponse { d...
3
Nziranziza/kss-frontend
4127f05
src/app/components/organisation/organisation-suppliers/organisation-suppliers.component.ts
TypeScript
www.github.com/Nziranziza/kss-frontend/tree/main/src/app/components/organisation/organisation-suppliers/organisation-suppliers.component.ts
https://raw.githubusercontent.com/Nziranziza/kss-frontend/4127f05/src/app/components/organisation/organisation-suppliers/organisation-suppliers.component.ts
Nziranziza/kss-frontend 4127f05 src/app/components/organisation/organisation-suppliers/organisation-suppliers.component.ts
true
200
9,680
import {Component, OnDestroy, OnInit} from '@angular/core'; import { AuthenticationService, AuthorisationService, ExcelServicesService, MessageService, OrganisationService, UserService } from '../../../core/services'; import {ActivatedRoute} from '@angular/router'; import {UntypedFormBuilder, UntypedFormGro...
4
kaykylopes/Controle_Financeiro
61425ea
ControleFinanceiro-UI/src/app/components/Categoria/nova-categoria/nova-categoria.component.ts
TypeScript
www.github.com/kaykylopes/Controle_Financeiro/tree/main/ControleFinanceiro-UI/src/app/components/Categoria/nova-categoria/nova-categoria.component.ts
https://raw.githubusercontent.com/kaykylopes/Controle_Financeiro/61425ea/ControleFinanceiro-UI/src/app/components/Categoria/nova-categoria/nova-categoria.component.ts
kaykylopes/Controle_Financeiro 61425ea ControleFinanceiro-UI/src/app/components/Categoria/nova-categoria/nova-categoria.component.ts
true
200
1,405
import { Component, OnInit } from '@angular/core'; import { Tipo } from 'src/app/models/Tipo'; import { TiposService } from 'src/app/services/tipos.service'; import { FormGroup, FormControl} from '@angular/forms'; import { CategoriasService } from 'src/app/services/categorias.service'; import { Router } from '@angular/...
0
ranjeetyadav9818/InEnergy
15eb6b3
CustomerPortalUI/src/app/components/homepage/dashboard.component.ts
TypeScript
www.github.com/ranjeetyadav9818/InEnergy/tree/main/CustomerPortalUI/src/app/components/homepage/dashboard.component.ts
https://raw.githubusercontent.com/ranjeetyadav9818/InEnergy/15eb6b3/CustomerPortalUI/src/app/components/homepage/dashboard.component.ts
ranjeetyadav9818/InEnergy 15eb6b3 CustomerPortalUI/src/app/components/homepage/dashboard.component.ts
true
200
827
import {Component, OnInit} from '@angular/core'; import {Router} from '@angular/router'; import {AuthService} from '../../services/auth.service'; import { MenuItem} from 'primeng/primeng'; @Component({ templateUrl: './dashboard.component.html' }) export class DashBoardComponent { message: String; constructor(p...
7
local-bias/kintone-plugin-tab
a1ba7b8
src/desktop/actions.ts
TypeScript
www.github.com/local-bias/kintone-plugin-tab/tree/main/src/desktop/actions.ts
https://raw.githubusercontent.com/local-bias/kintone-plugin-tab/a1ba7b8/src/desktop/actions.ts
local-bias/kintone-plugin-tab a1ba7b8 src/desktop/actions.ts
true
200
3,334
import { flatLayout } from '@/lib/kintone-api'; import { store } from '@/lib/store'; import { getSpaceElement, kintoneAPI, setFieldShown } from '@konomi-app/kintone-utilities'; import { appFieldsAtom, appLayoutAtom, selectedConditionAtom } from './states'; export const refresh = async () => { const condition =...
6
kyawnyeinnaing-lastoenjob/about-org
328578f
src/app/api/sub-category/route.ts
TypeScript
www.github.com/kyawnyeinnaing-lastoenjob/about-org/tree/main/src/app/api/sub-category/route.ts
https://raw.githubusercontent.com/kyawnyeinnaing-lastoenjob/about-org/328578f/src/app/api/sub-category/route.ts
kyawnyeinnaing-lastoenjob/about-org 328578f src/app/api/sub-category/route.ts
true
200
2,822
import { NextRequest, NextResponse } from "next/server"; import { createSubCategory, findExistingSubCategoryName, getAllSubCategories, getSubCategorySortingNumber, swapSubCategorySortingNumber, } from "@/lib/services/subCategory"; import { subCategorySchema, swapSortNumberSchema } from "@/lib/zod"; import { ...
5
hungnguyen/Ecommerce-MERN
7e59bff
ecommerce-api/src/modules/orders/order_items/order.items.route.ts
TypeScript
www.github.com/hungnguyen/Ecommerce-MERN/tree/main/ecommerce-api/src/modules/orders/order_items/order.items.route.ts
https://raw.githubusercontent.com/hungnguyen/Ecommerce-MERN/7e59bff/ecommerce-api/src/modules/orders/order_items/order.items.route.ts
hungnguyen/Ecommerce-MERN 7e59bff ecommerce-api/src/modules/orders/order_items/order.items.route.ts
true
200
1,258
import { Route } from "@core/interfaces"; import { Router } from "express"; import OrderItemsController from "./order.items.controller"; import { authMiddleware, validationMiddleware } from "@core/middlewares"; import OrderItemDto from "../dtos/order.item.dto"; export default class OrderItemsRoute implements Route{ ...
1
GianGuaz256/crypto-accountant
e1f0b70
lib/supabase/index.ts
TypeScript
www.github.com/GianGuaz256/crypto-accountant/tree/main/lib/supabase/index.ts
https://raw.githubusercontent.com/GianGuaz256/crypto-accountant/e1f0b70/lib/supabase/index.ts
GianGuaz256/crypto-accountant e1f0b70 lib/supabase/index.ts
true
200
718
// Export the Supabase client export { supabase } from './client'; // Export types export * from './types'; // Export user management utilities export * from './users'; // Export address management utilities export * from './addresses'; // Export authentication utilities export { signUpWithEmail, signInWithEmai...
2
MohssineSERRAJI/disney-filter
c5f1b08
types/stripe-elements.d.ts
TypeScript
www.github.com/MohssineSERRAJI/disney-filter/tree/main/types/stripe-elements.d.ts
https://raw.githubusercontent.com/MohssineSERRAJI/disney-filter/c5f1b08/types/stripe-elements.d.ts
MohssineSERRAJI/disney-filter c5f1b08 types/stripe-elements.d.ts
true
200
494
declare namespace JSX { interface IntrinsicElements { 'stripe-pricing-table': React.DetailedHTMLProps< React.HTMLAttributes<HTMLElement>, HTMLElement > & { 'pricing-table-id'?: string // now allows string | undefined 'publishable-key'?: string // now allows string | undefined 'cl...
4
matiasnl23/activation
11496f3
playground/services/httpClient.ts
TypeScript
www.github.com/matiasnl23/activation/tree/main/playground/services/httpClient.ts
https://raw.githubusercontent.com/matiasnl23/activation/11496f3/playground/services/httpClient.ts
matiasnl23/activation 11496f3 playground/services/httpClient.ts
true
200
1,262
import axios, { AxiosRequestConfig, InternalAxiosRequestConfig } from "axios"; export interface FetchContext { fetchContext?: { name?: string; ignoreAuth?: boolean; } } export class FetchClient { private static instance?: FetchClient; private client = axios.create(); constructor() { if (FetchCl...
0
JenripM/front-estudiojuridico
5e6b345
src/app/pages/ui-components/casosjuridicos/registrar/registrar.component.ts
TypeScript
www.github.com/JenripM/front-estudiojuridico/tree/main/src/app/pages/ui-components/casosjuridicos/registrar/registrar.component.ts
https://raw.githubusercontent.com/JenripM/front-estudiojuridico/5e6b345/src/app/pages/ui-components/casosjuridicos/registrar/registrar.component.ts
JenripM/front-estudiojuridico 5e6b345 src/app/pages/ui-components/casosjuridicos/registrar/registrar.component.ts
true
200
5,953
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { FormGroup, FormBuilder, Validators, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms'; import { Router } from '@angular/router'; import { Location } from '@angular...
3
JohanFausto14/condominio_johan
358fd90
src/utils/data.ts
TypeScript
www.github.com/JohanFausto14/condominio_johan/tree/main/src/utils/data.ts
https://raw.githubusercontent.com/JohanFausto14/condominio_johan/358fd90/src/utils/data.ts
JohanFausto14/condominio_johan 358fd90 src/utils/data.ts
true
200
990
// /src/utils/data.ts import axios from 'axios'; // Función para verificar el teléfono en el backend export const loginUser = async (phoneNumber: string) => { try { // Realizamos la solicitud POST al backend para verificar el teléfono const response = await axios.post('https://api-celeste.onrender.com/api/v...
6
NameOfTeam/solve-admin-web
e11b80f
src/pages/Problems/style.ts
TypeScript
www.github.com/NameOfTeam/solve-admin-web/tree/main/src/pages/Problems/style.ts
https://raw.githubusercontent.com/NameOfTeam/solve-admin-web/e11b80f/src/pages/Problems/style.ts
NameOfTeam/solve-admin-web e11b80f src/pages/Problems/style.ts
true
200
4,607
import styled from '@emotion/styled'; import { Link } from 'react-router-dom'; export const Container = styled.div` max-width: 1440px; margin: 0 auto; padding: 3rem 4rem; background-color: #f8fafc; min-height: 100vh; @media (max-width: 1536px) { max-width: 1280px; padding: 2.5rem 3rem; } @med...
7
Yoakest/SafakTicaretAngular
4c55aa0
src/app/services/errorHandler/http-error-handler-interceptor.service.ts
TypeScript
www.github.com/Yoakest/SafakTicaretAngular/tree/main/src/app/services/errorHandler/http-error-handler-interceptor.service.ts
https://raw.githubusercontent.com/Yoakest/SafakTicaretAngular/4c55aa0/src/app/services/errorHandler/http-error-handler-interceptor.service.ts
Yoakest/SafakTicaretAngular 4c55aa0 src/app/services/errorHandler/http-error-handler-interceptor.service.ts
true
200
3,778
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpStatusCode } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, catchError, of } from 'rxjs'; import { CustomToastrService, ToastrMessageType, ToastrPosition } from '../customToastr/custom-toastr.service'; impo...
5
adrianocruz01/Gerenciador-de-Pacientes
077c30f
src/libs/forms/receipt-surgical/receipt-surgical.controller.ts
TypeScript
www.github.com/adrianocruz01/Gerenciador-de-Pacientes/tree/main/src/libs/forms/receipt-surgical/receipt-surgical.controller.ts
https://raw.githubusercontent.com/adrianocruz01/Gerenciador-de-Pacientes/077c30f/src/libs/forms/receipt-surgical/receipt-surgical.controller.ts
adrianocruz01/Gerenciador-de-Pacientes 077c30f src/libs/forms/receipt-surgical/receipt-surgical.controller.ts
true
200
1,754
import { Body, Controller, Get, HttpCode, Param, Post, Put, UseGuards } from '@nestjs/common'; import { CurrentUser } from 'src/auth/guards/current-user-decorator'; import { UserPayload } from 'src/auth/jwt-strategy'; import { ReceptionService } from './service/create-receipt-surgical.service'; import { CreateReception...
2
rrrkkkvvv/messengerFrontend
57e88dd
src/app/routes/utils/refreshAuth.ts
TypeScript
www.github.com/rrrkkkvvv/messengerFrontend/tree/main/src/app/routes/utils/refreshAuth.ts
https://raw.githubusercontent.com/rrrkkkvvv/messengerFrontend/57e88dd/src/app/routes/utils/refreshAuth.ts
rrrkkkvvv/messengerFrontend 57e88dd src/app/routes/utils/refreshAuth.ts
true
200
1,139
import { NavigateFunction } from "react-router-dom"; import { useRefreshUserAuthMutation } from "../../../pages/auth/"; import { AppDispatch } from "../../store/store"; import { logout } from "../../../entities/user"; import { backendMessages, routes } from "../../../shared/values/strValues"; import { setCurrentUser, s...
1
PRITAMSLEARNINGACCOUNT/Ultimate-TypeScript
ef2cbd8
READONLY_And_Optional.ts
TypeScript
www.github.com/PRITAMSLEARNINGACCOUNT/Ultimate-TypeScript/tree/main/READONLY_And_Optional.ts
https://raw.githubusercontent.com/PRITAMSLEARNINGACCOUNT/Ultimate-TypeScript/ef2cbd8/READONLY_And_Optional.ts
PRITAMSLEARNINGACCOUNT/Ultimate-TypeScript ef2cbd8 READONLY_And_Optional.ts
true
200
789
type StudentDetail = { readonly Student_ID: string; Student_Name: string; Student_Phone_Number: number; Student_ABC_ID?: number; }; let USER: StudentDetail = { Student_ID: "BWU/BCA/23/152", Student_Name: "PRITAM SAHA", Student_Phone_Number: 9433914779, }; console.log( `The Name Of The Student Is ${USE...
3
Keckich/Currency-tracker
e89d085
CurrencyTracker/ClientApp/src/app/features/trade-analytics/trade-analytics.component.ts
TypeScript
www.github.com/Keckich/Currency-tracker/tree/main/CurrencyTracker/ClientApp/src/app/features/trade-analytics/trade-analytics.component.ts
https://raw.githubusercontent.com/Keckich/Currency-tracker/e89d085/CurrencyTracker/ClientApp/src/app/features/trade-analytics/trade-analytics.component.ts
Keckich/Currency-tracker e89d085 CurrencyTracker/ClientApp/src/app/features/trade-analytics/trade-analytics.component.ts
true
200
3,593
import { Component, Input, OnInit, ViewChild, inject } from '@angular/core'; import { AnalysisResult, Trade } from '../../shared/shared.model'; import { BinanceService } from '../../core/services/binance.service'; import { MatTableDataSource, MatTableModule } from '@angular/material/table'; import { MatSortModule } fro...
6
leandreDev/infra-nodejs
7d69df0
src/lib/modelObj/Model_nginxConfigurationFile.ts
TypeScript
www.github.com/leandreDev/infra-nodejs/tree/main/src/lib/modelObj/Model_nginxConfigurationFile.ts
https://raw.githubusercontent.com/leandreDev/infra-nodejs/7d69df0/src/lib/modelObj/Model_nginxConfigurationFile.ts
leandreDev/infra-nodejs 7d69df0 src/lib/modelObj/Model_nginxConfigurationFile.ts
true
200
1,767
import * as _ from "lodash" ; import * as Interface from "./Interfaces" ; import * as Index from "./Index" ; import {Base } from "@leandredev/utils" ; /** description d'un fichier de configuration nginx */ export class Model_nginxConfigurationFile extends Base implements Interface.InginxConfigurationFile { /** ...
4
suxsyaoyuan/NetEaseCloudMusic-ts
e790008
react_music/src/components/app-header/style.ts
TypeScript
www.github.com/suxsyaoyuan/NetEaseCloudMusic-ts/tree/main/react_music/src/components/app-header/style.ts
https://raw.githubusercontent.com/suxsyaoyuan/NetEaseCloudMusic-ts/e790008/react_music/src/components/app-header/style.ts
suxsyaoyuan/NetEaseCloudMusic-ts e790008 react_music/src/components/app-header/style.ts
true
200
2,748
/* 类型声明 1 typescript内置 2 第三方 *库内部已经有类型声明 *react/react-dom =>@types/react/.. *自己写类型声明 lodash */ import styled from 'styled-components' export const HeaderWrapper = styled.div` height: 75px; background-color: #242424; font-size: 14px; color: #fff; .header-content { display: flex; justif...
0
BRL4528/Gobarber-web-11
7af545e
src/modules/employees/services/ListEmployeeService.ts
TypeScript
www.github.com/BRL4528/Gobarber-web-11/tree/main/src/modules/employees/services/ListEmployeeService.ts
https://raw.githubusercontent.com/BRL4528/Gobarber-web-11/7af545e/src/modules/employees/services/ListEmployeeService.ts
BRL4528/Gobarber-web-11 7af545e src/modules/employees/services/ListEmployeeService.ts
true
200
663
import { injectable, inject } from 'tsyringe'; // import AppError from '@shared/errors/AppError'; // import ICacheProvider from '@shared/container/providers/CacheProvider/models/ICacheProvider'; import IEmployeesRepository from '../repositories/IEmployeesRepository'; import Employee from '../infra/typeorm/entities/Em...
5
aafx11/chart-engine
2f90e4f
src/scale/log.ts
TypeScript
www.github.com/aafx11/chart-engine/tree/main/src/scale/log.ts
https://raw.githubusercontent.com/aafx11/chart-engine/2f90e4f/src/scale/log.ts
aafx11/chart-engine 2f90e4f src/scale/log.ts
true
200
879
import type { CreateLog, CreateLinear } from "./interface.d"; import { createLinear } from './linear'; import { ticks, nice, log } from '../utils'; const createLog = ({ domain, base = Math.E, ...rest }: CreateLog) => { const transform = (x: number) => Math.log(x); let linear = createLinear({ domain: domain.map(tra...
7
anemorin/hw6
d1c4f07
1/index.ts
TypeScript
www.github.com/anemorin/hw6/tree/main/1/index.ts
https://raw.githubusercontent.com/anemorin/hw6/d1c4f07/1/index.ts
anemorin/hw6 d1c4f07 1/index.ts
true
200
1,502
/* Things to cover: 1. Basic typing. 2. Refining types. 3. Union types. 4. Merged types. 5. Generics. 6. Type declarations. 7. Module augmentation. 8. Advanced type mapping. Rules and principles: 1. Avoid using "any" type...
2
VilleOlof/MineGuessr
1511bbb
mp-server/src/route_handler.ts
TypeScript
www.github.com/VilleOlof/MineGuessr/tree/main/mp-server/src/route_handler.ts
https://raw.githubusercontent.com/VilleOlof/MineGuessr/1511bbb/mp-server/src/route_handler.ts
VilleOlof/MineGuessr 1511bbb mp-server/src/route_handler.ts
true
200
676
import { Server } from "bun"; import { GameHandler } from "./game_handler"; export const route_handlers = new Map<string, (request: Request, server: Server) => Response>([ ["/", () => { return new Response("OK", { status: 200 }); }], ["/lobby", () => { const lobbies = GameHandler.get_open_l...
1
calwilsn/frontend-61040
9b352c5
client/stores/pins.ts
TypeScript
www.github.com/calwilsn/frontend-61040/tree/main/client/stores/pins.ts
https://raw.githubusercontent.com/calwilsn/frontend-61040/9b352c5/client/stores/pins.ts
calwilsn/frontend-61040 9b352c5 client/stores/pins.ts
true
200
4,328
import { LeafletMouseEvent } from "leaflet"; import { defineStore } from "pinia"; import { ref } from "vue"; import { PinpointDoc } from "../../server/concepts/pinpoint"; import { fetchy } from "@/utils/fetchy"; export const usePinsStore = defineStore( "pins", () => { const pinpoints = ref(new Array<PinpointD...
3
TomasCavataio/RS-HIS
1c72a54
src/app/components/header/header.component.ts
TypeScript
www.github.com/TomasCavataio/RS-HIS/tree/main/src/app/components/header/header.component.ts
https://raw.githubusercontent.com/TomasCavataio/RS-HIS/1c72a54/src/app/components/header/header.component.ts
TomasCavataio/RS-HIS 1c72a54 src/app/components/header/header.component.ts
true
200
1,772
import { Component, OnInit, OnChanges } from '@angular/core'; import { UserService } from 'src/app/services/user.service'; import { Router } from '@angular/router'; import { User } from 'src/app/models/user'; import { DialogComponent } from '../dialog/dialog.component'; import { MatDialog } from '@angular/material/dial...
4
NomicFoundation/hardhat-ignition
bbeda5c
packages/core/test/reconciliation/futures/reconcileSendData.ts
TypeScript
www.github.com/NomicFoundation/hardhat-ignition/tree/main/packages/core/test/reconciliation/futures/reconcileSendData.ts
https://raw.githubusercontent.com/NomicFoundation/hardhat-ignition/bbeda5c/packages/core/test/reconciliation/futures/reconcileSendData.ts
NomicFoundation/hardhat-ignition bbeda5c packages/core/test/reconciliation/futures/reconcileSendData.ts
true
200
7,781
/* eslint-disable import/no-unused-modules */ import { assert } from "chai"; import { buildModule } from "../../../src/build-module"; import { ExecutionSateType, ExecutionStatus, SendDataExecutionState, } from "../../../src/internal/execution/types/execution-state"; import { FutureType } from "../../../src/types...
0
DimaDemyanov/react-burger
8b6eac8
src/utils/cookie.ts
TypeScript
www.github.com/DimaDemyanov/react-burger/tree/main/src/utils/cookie.ts
https://raw.githubusercontent.com/DimaDemyanov/react-burger/8b6eac8/src/utils/cookie.ts
DimaDemyanov/react-burger 8b6eac8 src/utils/cookie.ts
true
200
657
export function getCookie(name: string): string | undefined { const matches = document.cookie.match( new RegExp( "(?:^|; )" + name.replace(/([.$?*|{}()[\]\\/+^])/g, "\\$1") + "=([^;]*)" ) ); return matches ? decodeURIComponent(matches[1]) : undefined; } export function setCookie(accessToken: string...
6
YagoFerre/app-masters
01d9b6f
src/app/components/Input/styles.ts
TypeScript
www.github.com/YagoFerre/app-masters/tree/main/src/app/components/Input/styles.ts
https://raw.githubusercontent.com/YagoFerre/app-masters/01d9b6f/src/app/components/Input/styles.ts
YagoFerre/app-masters 01d9b6f src/app/components/Input/styles.ts
true
200
1,035
import { styled } from '@/app/styles/stitches.config' export const Box = styled('div', { display: 'flex', width: '100%', flexDirection: 'column', alignItems: 'flex-start', gap: '$2', }) export const Label = styled('label', { color: '$gray100', fontSize: '$sm', fontWeight: '$bold', '&:after': { ...
7
williamitz/svn-admin-frontend
96108b3
src/app/layouts/auth-layout/auth-layout.routing.module.ts
TypeScript
www.github.com/williamitz/svn-admin-frontend/tree/main/src/app/layouts/auth-layout/auth-layout.routing.module.ts
https://raw.githubusercontent.com/williamitz/svn-admin-frontend/96108b3/src/app/layouts/auth-layout/auth-layout.routing.module.ts
williamitz/svn-admin-frontend 96108b3 src/app/layouts/auth-layout/auth-layout.routing.module.ts
true
200
1,229
import { Routes, RouterModule } from '@angular/router'; import { NgModule } from '@angular/core'; import { LoginComponent } from './login/login.component'; import { ForgotPasswordComponent } from './forgot-password/forgot-password.component'; import { NotFoundPageComponent } from '../../pages/not-found-page/not-found-...
5
PranilHTS/coBrowse
336be54
src/ServerStartScripts.ts
TypeScript
www.github.com/PranilHTS/coBrowse/tree/main/src/ServerStartScripts.ts
https://raw.githubusercontent.com/PranilHTS/coBrowse/336be54/src/ServerStartScripts.ts
PranilHTS/coBrowse 336be54 src/ServerStartScripts.ts
true
200
3,212
import * as configNodes from './config/configNodes'; //append_imports_start import { MongoConnections } from './utils/ndefault-mongodb/Mongodb/MongoConnections'; //_splitter_ import { sessionObject } from './entity/ndefault-session/Session/Session'; //_splitter_ import { LoggerTypeorm } from './utils/ndefault-sql/Exec...
2
Oryanab/interface-design-website
78b26da
grafbase.config.ts
TypeScript
www.github.com/Oryanab/interface-design-website/tree/main/grafbase.config.ts
https://raw.githubusercontent.com/Oryanab/interface-design-website/78b26da/grafbase.config.ts
Oryanab/interface-design-website 78b26da grafbase.config.ts
true
200
972
import { graph, config, connector } from "@grafbase/sdk"; const g = graph.Standalone(); const mongodb = connector.MongoDB("MongoDB", { url: process.env.MONGO_URL!, apiKey: process.env.MONGO_API!, dataSource: "sideprojects", database: "flexibble", }); mongodb .model("User", { name: g.string().length({ m...
1
a840817a/hls-restream.js
c181b9b
src/services/hls/hlsMultiVariantList.ts
TypeScript
www.github.com/a840817a/hls-restream.js/tree/main/src/services/hls/hlsMultiVariantList.ts
https://raw.githubusercontent.com/a840817a/hls-restream.js/c181b9b/src/services/hls/hlsMultiVariantList.ts
a840817a/hls-restream.js c181b9b src/services/hls/hlsMultiVariantList.ts
true
200
2,193
import {IHlsMediaInfo, IHlsMultiVariantList, IHlsStreamInfo} from "../../definition/interface/hls"; import {IHlsMediaInfoFactory, IHlsStreamInfoFactory} from "../../definition/interface/factory"; export class HlsMultiVariantList implements IHlsMultiVariantList { version: number = 0; independentSegments: boolea...
3
NhanIsBi/NewCvFrontend
cefb0f4
src/app/shared/styles/dropdown/dropdown.component.ts
TypeScript
www.github.com/NhanIsBi/NewCvFrontend/tree/main/src/app/shared/styles/dropdown/dropdown.component.ts
https://raw.githubusercontent.com/NhanIsBi/NewCvFrontend/cefb0f4/src/app/shared/styles/dropdown/dropdown.component.ts
NhanIsBi/NewCvFrontend cefb0f4 src/app/shared/styles/dropdown/dropdown.component.ts
true
200
623
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, } from '@angular/core'; import { optionDropdown } from './optionDropdown.model'; @Component({ selector: 'ehiring-dropdown', templateUrl: './dropdown.component.html', styleUrls: ['./dropdown.component.less'], }) export class Dropdow...
4
ilya53nov/guitar-shop
ed45f7f
apps/backend/src/app/user/user.repository.ts
TypeScript
www.github.com/ilya53nov/guitar-shop/tree/main/apps/backend/src/app/user/user.repository.ts
https://raw.githubusercontent.com/ilya53nov/guitar-shop/ed45f7f/apps/backend/src/app/user/user.repository.ts
ilya53nov/guitar-shop ed45f7f apps/backend/src/app/user/user.repository.ts
true
200
1,358
import { Injectable } from '@nestjs/common'; import { User } from '@project/shared-types'; import { PrismaService } from '../prisma/prisma.service'; import { UserEntity } from './user.entity'; @Injectable() export class UserRepository { constructor(private readonly prisma: PrismaService) {} public async findByEma...
6
SLKhadeeja/random-react-components
8e99437
src/utils/api/endpoints.ts
TypeScript
www.github.com/SLKhadeeja/random-react-components/tree/main/src/utils/api/endpoints.ts
https://raw.githubusercontent.com/SLKhadeeja/random-react-components/8e99437/src/utils/api/endpoints.ts
SLKhadeeja/random-react-components 8e99437 src/utils/api/endpoints.ts
true
200
4,006
import { TradeStatus, TradeType, WalletsType, orderParamsType } from "../../types/apiParamType"; export const getTrades = ({status, tradeType, currency }: {status?: TradeStatus; tradeType?: TradeType; currency?: string;}) => { let url = `/beta/business/trades?tradeType=${tradeType || 'all'}` if (status) { url...
7
NilsRodrigues/relaxeddotplots
fe9c2a9
ts_rawFiles/funcSmallHelper.ts
TypeScript
www.github.com/NilsRodrigues/relaxeddotplots/tree/main/ts_rawFiles/funcSmallHelper.ts
https://raw.githubusercontent.com/NilsRodrigues/relaxeddotplots/fe9c2a9/ts_rawFiles/funcSmallHelper.ts
NilsRodrigues/relaxeddotplots fe9c2a9 ts_rawFiles/funcSmallHelper.ts
true
200
14,290
/* Sorting of Input Data */ /** Sorts inputData according to images */ function sortImage(inputDataSlice: InputData, inputConfig: InputConfig, rng: RNG): InputData { // Sorts the input by image order in __ASCENDING__ order function sortFunktionImage(a: InputDataObj, b: InputDataObj) { let sortHel...
5
qingjiusy/dify-googleform
51b0bd1
web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts
TypeScript
www.github.com/qingjiusy/dify-googleform/tree/main/web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts
https://raw.githubusercontent.com/qingjiusy/dify-googleform/51b0bd1/web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts
qingjiusy/dify-googleform 51b0bd1 web/app/components/workflow/run/utils/format-log/iteration/index.spec.ts
true
200
759
import format from '.' import graphToLogStruct from '../graph-to-log-struct' describe('iteration', () => { const list = graphToLogStruct('start -> (iteration, iterationNode, plainNode1 -> plainNode2)') // const [startNode, iterationNode, ...iterations] = list const result = format(list as any, () => { }) test(...
2
nijin39/coffee-shop-event
7d53fb1
app/coffee-shop-event/infra/customer/CustomerDDBRepository.ts
TypeScript
www.github.com/nijin39/coffee-shop-event/tree/main/app/coffee-shop-event/infra/customer/CustomerDDBRepository.ts
https://raw.githubusercontent.com/nijin39/coffee-shop-event/7d53fb1/app/coffee-shop-event/infra/customer/CustomerDDBRepository.ts
nijin39/coffee-shop-event 7d53fb1 app/coffee-shop-event/infra/customer/CustomerDDBRepository.ts
true
200
2,216
import * as AWS from 'aws-sdk'; import { ServiceConfigurationOptions } from 'aws-sdk/lib/service'; import { Customer } from '../../domain/customer/model/Customer'; import { CustomerRepository } from '../../domain/customer/service/CustomerRepository'; const serviceLocalConfigOptions: ServiceConfigurationOptions = { ...
0
aeonzz/ams
fb65d43
src/app/api/venue/get-department-venues/[departmentId]/route.ts
TypeScript
www.github.com/aeonzz/ams/tree/main/src/app/api/venue/get-department-venues/[departmentId]/route.ts
https://raw.githubusercontent.com/aeonzz/ams/fb65d43/src/app/api/venue/get-department-venues/%5BdepartmentId%5D/route.ts
aeonzz/ams fb65d43 src/app/api/venue/get-department-venues/[departmentId]/route.ts
true
200
1,206
import { NextRequest, NextResponse } from "next/server"; import { db } from "@/lib/db/index"; import { authMiddleware } from "@/app/lucia-middleware"; interface Context { params: { departmentId: string; }; } async function handler(req: NextRequest, user: any, context: Context) { const { departmentId } = con...
3
BlazeEMP/Company-manager
7255dd8
src/connection.ts
TypeScript
www.github.com/BlazeEMP/Company-manager/tree/main/src/connection.ts
https://raw.githubusercontent.com/BlazeEMP/Company-manager/7255dd8/src/connection.ts
BlazeEMP/Company-manager 7255dd8 src/connection.ts
true
200
670
import dotenv from 'dotenv'; dotenv.config(); // Import and require Pool (node-postgres) import pg from 'pg'; const { Pool } = pg; const pool = new Pool({ user: process.env.DB_USER, password: process.env.DB_PASSWORD, host: 'localhost', database: process.env.DB_LINK, port: 5432, }); const connectToDb = async () ...
4
swetacodecolonies/Client_project
705be3e
src/app/component/forms/form-widgets/typehead/wikipedia-search/wikipedia-search.component.ts
TypeScript
www.github.com/swetacodecolonies/Client_project/tree/main/src/app/component/forms/form-widgets/typehead/wikipedia-search/wikipedia-search.component.ts
https://raw.githubusercontent.com/swetacodecolonies/Client_project/705be3e/src/app/component/forms/form-widgets/typehead/wikipedia-search/wikipedia-search.component.ts
swetacodecolonies/Client_project 705be3e src/app/component/forms/form-widgets/typehead/wikipedia-search/wikipedia-search.component.ts
true
200
1,642
import { Component, Injectable } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable, of, OperatorFunction } from 'rxjs'; import { catchError, debounceTime, distinctUntilChanged, map, tap, switchMap } from 'rxjs/operators'; const WIKI_URL = 'https://en.wikipedia.org...
6
bubuding0809/wcard-mvp
8821185
src/server/router/user.ts
TypeScript
www.github.com/bubuding0809/wcard-mvp/tree/main/src/server/router/user.ts
https://raw.githubusercontent.com/bubuding0809/wcard-mvp/8821185/src/server/router/user.ts
bubuding0809/wcard-mvp 8821185 src/server/router/user.ts
true
200
556
import { createRouter } from "./context"; import { z } from "zod"; export const userRouter = createRouter() .query("getUserById", { input: z.object({ id: z.string(), }), async resolve({ ctx, input }) { return await ctx.prisma.user.findUnique({ where: { id: input.id }, }); },...
5
tnav97/reactapps
8e3b63f
apps/safety-intelligence/src/server/routes/api/password.ts
TypeScript
www.github.com/tnav97/reactapps/tree/main/apps/safety-intelligence/src/server/routes/api/password.ts
https://raw.githubusercontent.com/tnav97/reactapps/8e3b63f/apps/safety-intelligence/src/server/routes/api/password.ts
tnav97/reactapps 8e3b63f apps/safety-intelligence/src/server/routes/api/password.ts
true
200
659
import { Router, Response } from 'express'; import { Middlewares, Types } from '@alcumus/core'; import { updatePassword } from '../../models/password'; export default async function passwordRouter(router: Router) { router.post( '/', Middlewares.decodeAccessToken(false), Middlewares.requireUser, async...
1
Daliusj/portfolio-tracker
3be8f0f
server/src/scripts/seedDatabase.ts
TypeScript
www.github.com/Daliusj/portfolio-tracker/tree/main/server/src/scripts/seedDatabase.ts
https://raw.githubusercontent.com/Daliusj/portfolio-tracker/3be8f0f/server/src/scripts/seedDatabase.ts
Daliusj/portfolio-tracker 3be8f0f server/src/scripts/seedDatabase.ts
true
200
3,105
/* eslint-disable no-console */ import path from 'path' import { fileURLToPath } from 'node:url' import { chunk, uniqBy } from 'lodash-es' import { exchangeRepository } from '@server/repositories/exchangeRepository' import type { Fmp } from '../utils/externalApi/fmpApi' import { assetRepository } from '../repositories/...
2
manjugkrishna/eCommerce-project
305a2bf
src/app/services/user.service.ts
TypeScript
www.github.com/manjugkrishna/eCommerce-project/tree/main/src/app/services/user.service.ts
https://raw.githubusercontent.com/manjugkrishna/eCommerce-project/305a2bf/src/app/services/user.service.ts
manjugkrishna/eCommerce-project 305a2bf src/app/services/user.service.ts
true
200
1,375
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class UserService { private currentUserSubject: BehaviorSubject<any>; constructor(private http: HttpClient) { this.cur...
3
radwan503/nextjs-14-car-show
7198437
types/index.ts
TypeScript
www.github.com/radwan503/nextjs-14-car-show/tree/main/types/index.ts
https://raw.githubusercontent.com/radwan503/nextjs-14-car-show/7198437/types/index.ts
radwan503/nextjs-14-car-show 7198437 types/index.ts
true
200
1,073
import { manufacturers } from './../constents/index'; import { MouseEventHandler } from "react"; export interface CustomButtonProps{ title:string, containerStyle?:string, handleClick?:MouseEventHandler<HTMLButtonElement>, btnType?:"button" | "submit"; textStyles?:string, rightIcon?:string, isDisab...
4
balldev1/Real-Time-Messenger
2ae6592
app/้hooks/useActiveChannel.ts
TypeScript
www.github.com/balldev1/Real-Time-Messenger/tree/main/app/้hooks/useActiveChannel.ts
https://raw.githubusercontent.com/balldev1/Real-Time-Messenger/2ae6592/app/%E0%B9%89hooks/useActiveChannel.ts
balldev1/Real-Time-Messenger 2ae6592 app/้hooks/useActiveChannel.ts
true
200
2,454
import { Channel, Members } from "pusher-js"; // ใช้เชื่อมกับ pusher realtime import useActiveList from "./useActiveList"; import { useEffect, useState } from "react"; import { pusherClient } from "../libs/pusher"; import { each } from "lodash"; // set add remove member.id const useActiveChannel = () => { ...
0
DatsV/eng-app-backend
e91aab5
src/mail/mail.module.ts
TypeScript
www.github.com/DatsV/eng-app-backend/tree/main/src/mail/mail.module.ts
https://raw.githubusercontent.com/DatsV/eng-app-backend/e91aab5/src/mail/mail.module.ts
DatsV/eng-app-backend e91aab5 src/mail/mail.module.ts
true
200
1,095
import { MailerModule } from '@nestjs-modules/mailer'; import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter'; import { Module } from '@nestjs/common'; import { MailService } from './mail.service'; import { join } from 'path'; import { ConfigService } from '@nestjs/config'; @Module...
6
Young-Season/Young_Frontend_Next
4054e66
src/store/user.ts
TypeScript
www.github.com/Young-Season/Young_Frontend_Next/tree/main/src/store/user.ts
https://raw.githubusercontent.com/Young-Season/Young_Frontend_Next/4054e66/src/store/user.ts
Young-Season/Young_Frontend_Next 4054e66 src/store/user.ts
true
200
1,453
import { SetStateAction } from "react"; import { StateCreator, create } from "zustand"; import { PersistOptions, createJSONStorage, persist } from "zustand/middleware"; import createSelectors from "."; export interface IuserInfo { id: string; hostName: string; token: string; } type TUserStore = { userInfo: Iu...
5
dust-tt/dust
c3cc4a0
front/lib/models/plan.ts
TypeScript
www.github.com/dust-tt/dust/tree/main/front/lib/models/plan.ts
https://raw.githubusercontent.com/dust-tt/dust/c3cc4a0/front/lib/models/plan.ts
dust-tt/dust c3cc4a0 front/lib/models/plan.ts
true
200
6,761
import type { CreationOptional, ForeignKey, NonAttribute, Transaction, } from "sequelize"; import { DataTypes } from "sequelize"; import { frontSequelize } from "@app/lib/resources/storage"; import { BaseModel } from "@app/lib/resources/storage/wrappers/base"; import { WorkspaceAwareModel } from "@app/lib/reso...
1
Linkerin/snipshot
750810e
pages/api/snippets/search.ts
TypeScript
www.github.com/Linkerin/snipshot/tree/main/pages/api/snippets/search.ts
https://raw.githubusercontent.com/Linkerin/snipshot/750810e/pages/api/snippets/search.ts
Linkerin/snipshot 750810e pages/api/snippets/search.ts
true
200
784
import type { NextApiRequest, NextApiResponse } from 'next'; import cleanObjDataTypesForNextJS from '@/services/utils/cleanObjDataTypesForNextJS'; import search from '@/services/prisma/snippetsService/search'; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { if (req.method !=...
2
hakan1975kaya/EPR
df72573
UIPresentation/UI/src/app/services/corporate-mail-address/corporate-mail-address.service.spec.ts
TypeScript
www.github.com/hakan1975kaya/EPR/tree/main/UIPresentation/UI/src/app/services/corporate-mail-address/corporate-mail-address.service.spec.ts
https://raw.githubusercontent.com/hakan1975kaya/EPR/df72573/UIPresentation/UI/src/app/services/corporate-mail-address/corporate-mail-address.service.spec.ts
hakan1975kaya/EPR df72573 UIPresentation/UI/src/app/services/corporate-mail-address/corporate-mail-address.service.spec.ts
true
200
502
/* tslint:disable:no-unused-variable */ import { TestBed, async, inject } from '@angular/core/testing'; import { CorporateMailAddressService } from './corporate-mail-address.service'; describe('Service: CorporateMailAddress', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [Corporat...
3
canisiushien/sepap
592f3d7
frontend/src/app/models/evaluation/evaluation.ts
TypeScript
www.github.com/canisiushien/sepap/tree/main/frontend/src/app/models/evaluation/evaluation.ts
https://raw.githubusercontent.com/canisiushien/sepap/592f3d7/frontend/src/app/models/evaluation/evaluation.ts
canisiushien/sepap 592f3d7 frontend/src/app/models/evaluation/evaluation.ts
true
200
370
import { Programmation } from './../programmation/programmation'; import { Periode } from "../parametrage/periode"; export interface Evaluation { id?: number; evaluer?:boolean; valeur?: string; observations ?:string; periode?:Periode; programmation?: Programmation } export interface GetAllEv...
4
adrianomonteiroweb/api-nodejs-sequelize-cashforce
537a20d
packages/api/src/index.ts
TypeScript
www.github.com/adrianomonteiroweb/api-nodejs-sequelize-cashforce/tree/main/packages/api/src/index.ts
https://raw.githubusercontent.com/adrianomonteiroweb/api-nodejs-sequelize-cashforce/537a20d/packages/api/src/index.ts
adrianomonteiroweb/api-nodejs-sequelize-cashforce 537a20d packages/api/src/index.ts
true
200
598
import dotenv from 'dotenv'; import path from 'path'; import cors from 'cors'; dotenv.config({ path: path.join(__dirname, '../../../.env') }); import app from './app'; import { routes } from './routes'; app.use(routes); app.use( cors({ origin: 'http://localhost:3333', }) ); const PORT = process.env.PORT ||...
0
abdihashii/digital-organizer-bookmarker
4863293
react-chrome-extension/src/utils/index.ts
TypeScript
www.github.com/abdihashii/digital-organizer-bookmarker/tree/main/react-chrome-extension/src/utils/index.ts
https://raw.githubusercontent.com/abdihashii/digital-organizer-bookmarker/4863293/react-chrome-extension/src/utils/index.ts
abdihashii/digital-organizer-bookmarker 4863293 react-chrome-extension/src/utils/index.ts
true
200
873
export const checkIfValidUrl = (url: string) => { // check if the url first starts with http:// or https:// if (!url.startsWith('http://') && !url.startsWith('https://')) { console.error('URL must start with http:// or https://'); return false; } try { new URL(url); } catch (_) { console.erro...
6
JavierAguerri/decentralizedVoting
bf05f82
test/votingImproved/base.test.ts
TypeScript
www.github.com/JavierAguerri/decentralizedVoting/tree/main/test/votingImproved/base.test.ts
https://raw.githubusercontent.com/JavierAguerri/decentralizedVoting/bf05f82/test/votingImproved/base.test.ts
JavierAguerri/decentralizedVoting bf05f82 test/votingImproved/base.test.ts
true
200
514
import { describe } from "mocha"; import path from "path"; import fs from "fs"; function loadTestFiles(dir: string) { const files = fs.readdirSync(dir); files.forEach(file => { const fullPath = path.join(dir, file); if (fs.statSync(fullPath).isDirectory()) { loadTestFiles(fullPath); } else if (fi...
5
anixer0/gogoanimeapi
19b0528
dist/extractors/gogocdn.d.ts
TypeScript
www.github.com/anixer0/gogoanimeapi/tree/main/dist/extractors/gogocdn.d.ts
https://raw.githubusercontent.com/anixer0/gogoanimeapi/19b0528/dist/extractors/gogocdn.d.ts
anixer0/gogoanimeapi 19b0528 dist/extractors/gogocdn.d.ts
true
200
351
import { IVideo } from "../types/types"; declare class GogoCDN { protected serverName: string; protected sources: IVideo[]; private readonly keys; private referer; extract: (videoUrl: URL) => Promise<IVideo[]>; private addSources; private generateEncryptedAjaxParams; private decryptAjaxD...
1
GamCap/uniswapeasy
596d02f
src/utils/WalletConnect.ts
TypeScript
www.github.com/GamCap/uniswapeasy/tree/main/src/utils/WalletConnect.ts
https://raw.githubusercontent.com/GamCap/uniswapeasy/596d02f/src/utils/WalletConnect.ts
GamCap/uniswapeasy 596d02f src/utils/WalletConnect.ts
true
200
1,232
import "setimmediate"; import { URI_AVAILABLE, WalletConnect, WalletConnectConstructorArgs, } from "@web3-react/walletconnect-v2"; import QRCode from "qrcode"; class WalletConnectQR extends WalletConnect { static SVG_AVAILABLE = "svg_available"; svg?: string; constructor({ actions, options, ...
2
Layanor/Maher
736653d
main/ClientApp/src/app/service/httpdata.service.ts
TypeScript
www.github.com/Layanor/Maher/tree/main/main/ClientApp/src/app/service/httpdata.service.ts
https://raw.githubusercontent.com/Layanor/Maher/736653d/main/ClientApp/src/app/service/httpdata.service.ts
Layanor/Maher 736653d main/ClientApp/src/app/service/httpdata.service.ts
true
200
2,357
import { Injectable, Inject } from '@angular/core'; import { Observable, throwError, BehaviorSubject } from 'rxjs'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { retry, catchError, delay, retryWhen, tap } from 'rxjs/operators'; // let headers: HttpHeaders = new HttpHeaders(); /* cons...
4
WhiteWat3r/shopp
a3927bc
src/api/gameApi.ts
TypeScript
www.github.com/WhiteWat3r/shopp/tree/main/src/api/gameApi.ts
https://raw.githubusercontent.com/WhiteWat3r/shopp/a3927bc/src/api/gameApi.ts
WhiteWat3r/shopp a3927bc src/api/gameApi.ts
true
200
1,224
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { config } from '../utils/config'; import { getCookie } from '../utils/cookie'; export const gameApi = createApi({ reducerPath: 'gameApi', baseQuery: fetchBaseQuery({ baseUrl: `${config.baseUrl}/api`, prepareHeaders: (headers)...
3
jfaponte403/simple-crud-nestjs
035032f
src/main.ts
TypeScript
www.github.com/jfaponte403/simple-crud-nestjs/tree/main/src/main.ts
https://raw.githubusercontent.com/jfaponte403/simple-crud-nestjs/035032f/src/main.ts
jfaponte403/simple-crud-nestjs 035032f src/main.ts
true
200
705
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { ValidationPipe } from "@nestjs/common"; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPi...
5
MDWojcieszak/server-microservice
5d042d8
src/app.module.ts
TypeScript
www.github.com/MDWojcieszak/server-microservice/tree/main/src/app.module.ts
https://raw.githubusercontent.com/MDWojcieszak/server-microservice/5d042d8/src/app.module.ts
MDWojcieszak/server-microservice 5d042d8 src/app.module.ts
true
200
1,022
import { Module } from '@nestjs/common'; import { MinecraftServerModule } from './minecraft-server/minecraft-server.module'; import { ConfigModule } from '@nestjs/config'; import { config } from './config/config'; import { SystemUsageModule } from './system-usage/system-usage.module'; import { CronJobsModule } from 'sr...
4
JessFreak/ServiceStation
3904cd6
back/src/services/tests/UserService.spec.ts
TypeScript
www.github.com/JessFreak/ServiceStation/tree/main/back/src/services/tests/UserService.spec.ts
https://raw.githubusercontent.com/JessFreak/ServiceStation/3904cd6/back/src/services/tests/UserService.spec.ts
JessFreak/ServiceStation 3904cd6 back/src/services/tests/UserService.spec.ts
true
200
5,727
import { Test, TestingModule } from '@nestjs/testing'; import { UserService } from '../UserService'; import { UserRepository } from '../../database/repositories/UserRepository'; import { VehicleRepository } from '../../database/repositories/VehicleRepository'; import { AuthService } from '../AuthService'; import { Forb...
3
nboucaud/Flipbook
07982a6
packages/core/src/signals/createEffect.ts
TypeScript
www.github.com/nboucaud/Flipbook/tree/main/packages/core/src/signals/createEffect.ts
https://raw.githubusercontent.com/nboucaud/Flipbook/07982a6/packages/core/src/signals/createEffect.ts
nboucaud/Flipbook 07982a6 packages/core/src/signals/createEffect.ts
true
200
325
import {EffectContext} from './EffectContext'; /** * Invoke the callback immediately after any of its dependencies change. * * @param callback - The callback to invoke. */ export function createEffect(callback: () => void): () => void { const context = new EffectContext(callback); return () => context.dispose(...
5
oveddan/my-mul
684b651
src/editor/hooks/useSaveAndLoad.ts
TypeScript
www.github.com/oveddan/my-mul/tree/main/src/editor/hooks/useSaveAndLoad.ts
https://raw.githubusercontent.com/oveddan/my-mul/684b651/src/editor/hooks/useSaveAndLoad.ts
oveddan/my-mul 684b651 src/editor/hooks/useSaveAndLoad.ts
true
200
1,275
import { GraphJSON } from '@oveddan-behave-graph/core'; export const exampleBehaveGraphFileUrl = (fileName: string) => publicUrl(`/examples/graphs/${fileName}`); export const fetchBehaviorGraphJson = async (url: string) => // eslint-disable-next-line unicorn/no-await-expression-member (await (await fetch(url)).j...
2
Jaqueline-Nicole/ADESCOSI-FRONTD
953e89c
src/app/fiesta-patronales/fiesta-patronal.service.spec.ts
TypeScript
www.github.com/Jaqueline-Nicole/ADESCOSI-FRONTD/tree/main/src/app/fiesta-patronales/fiesta-patronal.service.spec.ts
https://raw.githubusercontent.com/Jaqueline-Nicole/ADESCOSI-FRONTD/953e89c/src/app/fiesta-patronales/fiesta-patronal.service.spec.ts
Jaqueline-Nicole/ADESCOSI-FRONTD 953e89c src/app/fiesta-patronales/fiesta-patronal.service.spec.ts
true
200
398
import { TestBed } from '@angular/core/testing'; import { FiestaPatronalService } from './fiesta-patronal.service'; describe('FiestaPatronalService', () => { let service: FiestaPatronalService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(FiestaPatronalService); }); ...
4
nruppa/htasks
fa4bfe5
src/app/guard.guard.ts
TypeScript
www.github.com/nruppa/htasks/tree/main/src/app/guard.guard.ts
https://raw.githubusercontent.com/nruppa/htasks/fa4bfe5/src/app/guard.guard.ts
nruppa/htasks fa4bfe5 src/app/guard.guard.ts
true
200
684
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { TestService } from './test.service'; @Injectable({ providedIn: 'root' }) export class GuardGuard implements CanActivate ...
3
Alndaly/web-interview
065e0fe
docs/.vitepress/config.mts
TypeScript
www.github.com/Alndaly/web-interview/tree/main/docs/.vitepress/config.mts
https://raw.githubusercontent.com/Alndaly/web-interview/065e0fe/docs/.vitepress/config.mts
Alndaly/web-interview 065e0fe docs/.vitepress/config.mts
true
200
27,130
import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ sitemap: { hostname: 'https://web-interview.huaqinda.com', }, head: [ [ "meta", { name: "keywords", content: "web前端面试,vue面试题,react面试题,js面试题,大厂面试题,阿里面...
5
yumaocc/ym_nestjs
e109964
src/auth/auth.service.ts
TypeScript
www.github.com/yumaocc/ym_nestjs/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/yumaocc/ym_nestjs/e109964/src/auth/auth.service.ts
yumaocc/ym_nestjs e109964 src/auth/auth.service.ts
true
200
415
// auth.service.ts import { Injectable } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; @Injectable() export class AuthService { constructor(private readonly jwtService: JwtService) {} async generateToken(payload: any): Promise<string> { return this.jwtService.sign({ ...payload }); } as...
4
bangits/Atom-Shared-NPM
c72df60
src/common/services/HttpService.ts
TypeScript
www.github.com/bangits/Atom-Shared-NPM/tree/main/src/common/services/HttpService.ts
https://raw.githubusercontent.com/bangits/Atom-Shared-NPM/c72df60/src/common/services/HttpService.ts
bangits/Atom-Shared-NPM c72df60 src/common/services/HttpService.ts
true
200
4,225
import { replaceEmptyStringsWithNull, stringifyQuery } from '@/common/helpers'; import { serverErrorHandler } from '@/view/error-handlers'; import axios, { AxiosInstance, AxiosRequestConfig, Method } from 'axios'; import { injectable } from 'inversify'; import { enviromentService } from './EnviromentService'; export in...
3
smallwhale1/ai-image-editor
034064e
src/generativeFillUtils/ImageHandler.ts
TypeScript
www.github.com/smallwhale1/ai-image-editor/tree/main/src/generativeFillUtils/ImageHandler.ts
https://raw.githubusercontent.com/smallwhale1/ai-image-editor/034064e/src/generativeFillUtils/ImageHandler.ts
smallwhale1/ai-image-editor 034064e src/generativeFillUtils/ImageHandler.ts
true
200
9,989
import { RefObject } from "react"; import { OPENAI_KEY } from "../keys"; import { bgColor, canvasSize } from "./generativeFillConstants"; export interface APISuccess { status: "success"; urls: string[]; } export interface APIError { status: "error"; message: string; } export interface PaddingInfo { imgWidt...
5