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
malloydata/malloy
7439b94
packages/malloy/src/lang/parse-tree-walkers/document-help-context-walker.ts
TypeScript
www.github.com/malloydata/malloy/tree/main/packages/malloy/src/lang/parse-tree-walkers/document-help-context-walker.ts
https://raw.githubusercontent.com/malloydata/malloy/7439b94/packages/malloy/src/lang/parse-tree-walkers/document-help-context-walker.ts
malloydata/malloy 7439b94 packages/malloy/src/lang/parse-tree-walkers/document-help-context-walker.ts
true
200
4,457
/* * Copyright 2023 Google LLC * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, * publish, ...
2
lehiep071191/nestjs-docker
fbdbd19
src/modules/product-details/product-details.controller.ts
TypeScript
www.github.com/lehiep071191/nestjs-docker/tree/main/src/modules/product-details/product-details.controller.ts
https://raw.githubusercontent.com/lehiep071191/nestjs-docker/fbdbd19/src/modules/product-details/product-details.controller.ts
lehiep071191/nestjs-docker fbdbd19 src/modules/product-details/product-details.controller.ts
true
200
479
import { Body, Controller, Post } from '@nestjs/common'; import { ProductDetailsService } from './product-details.service'; import { ProductDetailsCreateDto } from './dtos/product-details.dto'; @Controller('product-details') export class ProductDetailsController { constructor( private readonly service: Pro...
1
Location-Based-Game/NAJJ-website
055e326
apps/skraggle/functions/src/endpoints/addPlayer.ts
TypeScript
www.github.com/Location-Based-Game/NAJJ-website/tree/main/apps/skraggle/functions/src/endpoints/addPlayer.ts
https://raw.githubusercontent.com/Location-Based-Game/NAJJ-website/055e326/apps/skraggle/functions/src/endpoints/addPlayer.ts
Location-Based-Game/NAJJ-website 055e326 apps/skraggle/functions/src/endpoints/addPlayer.ts
true
200
985
import { z } from "zod"; import { getSessionData, setSessionCookie } from "../lib/sessionUtils"; import { db } from "../lib/firebaseAdmin"; import { addPlayer as addNewPlayer } from "../firebase-actions/addPlayer"; import { onAuthorizedRequest } from "../lib/onAuthorizedRequest"; import validateBody from "../lib/valida...
5
BrayanPonce/Caso-Front
b0abb7e
src/app/libros/pages/eliminar-libro/eliminar-libro.component.ts
TypeScript
www.github.com/BrayanPonce/Caso-Front/tree/main/src/app/libros/pages/eliminar-libro/eliminar-libro.component.ts
https://raw.githubusercontent.com/BrayanPonce/Caso-Front/b0abb7e/src/app/libros/pages/eliminar-libro/eliminar-libro.component.ts
BrayanPonce/Caso-Front b0abb7e src/app/libros/pages/eliminar-libro/eliminar-libro.component.ts
true
200
745
import { Component } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { LibroService } from '../../../core/services/libro.service'; @Component({ selector: 'app-eliminar-libro', templateUrl: './eliminar-libro.component.html', styleUrls: ['./eliminar-libro.component.css'], }) ...
6
michael-ambel/olcart-store
4029ec4
frontend/store/apiSlices/userApiSlice.ts
TypeScript
www.github.com/michael-ambel/olcart-store/tree/main/frontend/store/apiSlices/userApiSlice.ts
https://raw.githubusercontent.com/michael-ambel/olcart-store/4029ec4/frontend/store/apiSlices/userApiSlice.ts
michael-ambel/olcart-store 4029ec4 frontend/store/apiSlices/userApiSlice.ts
true
200
3,402
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; import { IUser, ICartItem, IShippingAddress, CartResp, } from "../types/userTypes"; const url = `${process.env["NEXT_PUBLIC_API_URL"]}/api/users`; export const userApiSlice = createApi({ reducerPath: "userApi", baseQuery: fetchBaseQ...
7
chayan-1906/Rapido-Expo
95a2346
src/store/customerStore.ts
TypeScript
www.github.com/chayan-1906/Rapido-Expo/tree/main/src/store/customerStore.ts
https://raw.githubusercontent.com/chayan-1906/Rapido-Expo/95a2346/src/store/customerStore.ts
chayan-1906/Rapido-Expo 95a2346 src/store/customerStore.ts
true
200
1,175
import {create} from "zustand/react"; import {createJSONStorage, persist} from "zustand/middleware"; import {secureStorage} from "@/store/storage"; type CustomerLocation = { latitude: number; longitude: number; address: string; } | null; interface CustomerStoreProps { user: any; location: Customer...
4
miedson/backend-calendar
94fec4a
src/domain/entities/Month.ts
TypeScript
www.github.com/miedson/backend-calendar/tree/main/src/domain/entities/Month.ts
https://raw.githubusercontent.com/miedson/backend-calendar/94fec4a/src/domain/entities/Month.ts
miedson/backend-calendar 94fec4a src/domain/entities/Month.ts
true
200
1,468
export default class Month { days: Date[]; lastDayPreviousMonth: Date; lastDayOfMonth: Date; description: string; monthNumber: number; firstDayOfMonth: Date; daysOfWeek: string[]; constructor(readonly year:number, readonly month: number) { if(this.year === undefined || this.mont...
0
pwellner/ble-plx-scan-bug
066a416
permissions.ts
TypeScript
www.github.com/pwellner/ble-plx-scan-bug/tree/main/permissions.ts
https://raw.githubusercontent.com/pwellner/ble-plx-scan-bug/066a416/permissions.ts
pwellner/ble-plx-scan-bug 066a416 permissions.ts
true
200
1,443
import { Platform, PermissionsAndroid } from 'react-native'; export async function checkBluetoothPermissionsAsync() { if (Platform.OS === 'ios') { // Handled in static pList from app.json return true; } let isOk = false; isOk = await PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.BLUETOOTH_...
2
khakimjanovich/blog-api
eca2c54
src/modules/auth/guards/roles.guard.ts
TypeScript
www.github.com/khakimjanovich/blog-api/tree/main/src/modules/auth/guards/roles.guard.ts
https://raw.githubusercontent.com/khakimjanovich/blog-api/eca2c54/src/modules/auth/guards/roles.guard.ts
khakimjanovich/blog-api eca2c54 src/modules/auth/guards/roles.guard.ts
true
200
1,516
import { CanActivate, ExecutionContext, HttpException, HttpStatus, Injectable, UnauthorizedException } from "@nestjs/common"; import {Observable} from "rxjs"; import {JwtService} from "@nestjs/jwt"; import {Reflector} from "@nestjs/core"; import {ROLES_KEY} from "../decorators/roles-auth.decorat...
1
marksoft92/ts-app-table
a6e2660
src/features/languages/languagesSlice.ts
TypeScript
www.github.com/marksoft92/ts-app-table/tree/main/src/features/languages/languagesSlice.ts
https://raw.githubusercontent.com/marksoft92/ts-app-table/a6e2660/src/features/languages/languagesSlice.ts
marksoft92/ts-app-table a6e2660 src/features/languages/languagesSlice.ts
true
200
666
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { RootState } from '../../app/store'; interface LanguagesState { currentLanguage: string; } const initialState: LanguagesState = { currentLanguage: 'en', }; const languagesSlice = createSlice({ name: 'languages', initialState, ...
3
husseinsalah1/dublish_APIs
f66ed37
src/docs/swagger-docs.ts
TypeScript
www.github.com/husseinsalah1/dublish_APIs/tree/main/src/docs/swagger-docs.ts
https://raw.githubusercontent.com/husseinsalah1/dublish_APIs/f66ed37/src/docs/swagger-docs.ts
husseinsalah1/dublish_APIs f66ed37 src/docs/swagger-docs.ts
true
200
362
import { adminSwagger } from "./admin/admin.swagger"; import { authSwagger } from "./admin/auth.swagger"; import { courseSwagger } from "./admin/course.swagger"; import { studentSwagger } from "./admin/student.swagger"; export const swaggerDefinitions = { paths: { ...authSwagger, ...adminSwagger, ...cour...
7
soydvaldez/users-services
ef8a8a0
src/config/env_loadfile.ts
TypeScript
www.github.com/soydvaldez/users-services/tree/main/src/config/env_loadfile.ts
https://raw.githubusercontent.com/soydvaldez/users-services/ef8a8a0/src/config/env_loadfile.ts
soydvaldez/users-services ef8a8a0 src/config/env_loadfile.ts
true
200
1,339
import dotenv from "dotenv"; import fs from "fs"; import path from "node:path"; // export type environmentType = "development" | "production" | "testing"; // Carga el archivo .env en funcion de la variable: ENVIRONMENT. Default: development export const loadEnvironmentFile = (ENVIRONMENT: string = "development") => {...
4
Merxibeaucoup/mfa-frontend-react
1703408
src/Services/mfaVerificationService.ts
TypeScript
www.github.com/Merxibeaucoup/mfa-frontend-react/tree/main/src/Services/mfaVerificationService.ts
https://raw.githubusercontent.com/Merxibeaucoup/mfa-frontend-react/1703408/src/Services/mfaVerificationService.ts
Merxibeaucoup/mfa-frontend-react 1703408 src/Services/mfaVerificationService.ts
true
200
652
import axiosInstance from "./axiosInstance"; import { ApiResponse } from "./axiosInstance"; export interface IVerification { email: string; code: string; } const mfaVerificationService = { //verify mfaCode async verify(data: IVerification): Promise<ApiResponse<IVerification>> { try { const response ...
5
IbrahimElOuadifi/Task-Management
efbaf6b
server/src/middlewares/validators/auth.validator.ts
TypeScript
www.github.com/IbrahimElOuadifi/Task-Management/tree/main/server/src/middlewares/validators/auth.validator.ts
https://raw.githubusercontent.com/IbrahimElOuadifi/Task-Management/efbaf6b/server/src/middlewares/validators/auth.validator.ts
IbrahimElOuadifi/Task-Management efbaf6b server/src/middlewares/validators/auth.validator.ts
true
200
2,492
import { Request, Response, NextFunction } from 'express' import yup from 'yup' export const validateRegister = async (req: Request, res: Response, next: NextFunction) => { const schema = yup.object().shape({ firstName: yup.string().required(), lastName: yup.string().required(), username: ...
2
Aliya15/weather-app
dd3d65e
src/app/pages/weather-page/weather-page.module.ts
TypeScript
www.github.com/Aliya15/weather-app/tree/main/src/app/pages/weather-page/weather-page.module.ts
https://raw.githubusercontent.com/Aliya15/weather-app/dd3d65e/src/app/pages/weather-page/weather-page.module.ts
Aliya15/weather-app dd3d65e src/app/pages/weather-page/weather-page.module.ts
true
200
1,672
import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { WeatherPageComponent } from "@pages/weather-page/weather-page.component"; import { StoreModule } from "@ngrx/store"; import { WEATHER_KEY, weatherFeature, } from "@pages/weather-page/store/weather.reducers"; import { ...
1
yrysNM/Learn-JS-C
03af24f
course JS TS/TS/ThridPart/IndexedAccessTypes.ts
TypeScript
www.github.com/yrysNM/Learn-JS-C/tree/main/course JS TS/TS/ThridPart/IndexedAccessTypes.ts
https://raw.githubusercontent.com/yrysNM/Learn-JS-C/03af24f/course%20JS%20TS/TS/ThridPart/IndexedAccessTypes.ts
yrysNM/Learn-JS-C 03af24f course JS TS/TS/ThridPart/IndexedAccessTypes.ts
true
200
1,258
interface ICompanyIn { name: string; debts: number; departments: Department[]; management: { owner: string; }; } interface Department { [key: string]: string; } // const debts = "debts"; // not let // let debts = "debts" as "debts"; //first solution let debts: "debts" = "debts"; type CompanyDebtsType ...
0
AugustoGitH/PORTFOLIO-5.0-FRONT-END-NEXTJS--DEV
b9cdcab
src/services/authLevel/public/login/index.ts
TypeScript
www.github.com/AugustoGitH/PORTFOLIO-5.0-FRONT-END-NEXTJS--DEV/tree/main/src/services/authLevel/public/login/index.ts
https://raw.githubusercontent.com/AugustoGitH/PORTFOLIO-5.0-FRONT-END-NEXTJS--DEV/b9cdcab/src/services/authLevel/public/login/index.ts
AugustoGitH/PORTFOLIO-5.0-FRONT-END-NEXTJS--DEV b9cdcab src/services/authLevel/public/login/index.ts
true
200
1,022
import { type IFormLogin } from '@/schemas/form/login/types'; import apiRoutes from '@/services/constants/apiRoutes'; import { api } from '@/services/settings/axios'; import { AxiosError } from 'axios'; import constants from './constants'; import { type IResponseFetchLogin, type IServiceLogin } from './types'; ...
7
MukuFlash03/data-catalog-web-app
d4ec5c2
backend/src/routes/products.ts
TypeScript
www.github.com/MukuFlash03/data-catalog-web-app/tree/main/backend/src/routes/products.ts
https://raw.githubusercontent.com/MukuFlash03/data-catalog-web-app/d4ec5c2/backend/src/routes/products.ts
MukuFlash03/data-catalog-web-app d4ec5c2 backend/src/routes/products.ts
true
200
792
/* Routes for managing products including getting all products, getting a product by ID, creating a new product, updating a product, and deleting a product. */ // Import neceessary libraries import { Router } from 'express'; import * as ProductsController from "../controllers/products"; // Create a new router instanc...
5
kampanath/config-test-parameter
02100c7
frontend/src/app/app-routing.module.ts
TypeScript
www.github.com/kampanath/config-test-parameter/tree/main/frontend/src/app/app-routing.module.ts
https://raw.githubusercontent.com/kampanath/config-test-parameter/02100c7/frontend/src/app/app-routing.module.ts
kampanath/config-test-parameter 02100c7 frontend/src/app/app-routing.module.ts
true
200
8,894
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LoginComponent } from './components/authen/login/login.component'; import { RegisterComponent } from './components/authen/register/register.component'; import { StockHomeComponent } from './components/stock/stock-...
0
Dmitri2205/Offers_find
a612220
src/store/store.ts
TypeScript
www.github.com/Dmitri2205/Offers_find/tree/main/src/store/store.ts
https://raw.githubusercontent.com/Dmitri2205/Offers_find/a612220/src/store/store.ts
Dmitri2205/Offers_find a612220 src/store/store.ts
true
200
526
import { configureStore } from '@reduxjs/toolkit' import { combineReducers } from '@reduxjs/toolkit' import storesReducer from './reducers/StoresSlice'; import coordsReducer from './reducers/CoordsSlice'; import toBuyReducer from './reducers/ToBuySlice'; const rootReducer = combineReducers({ storesReducer, ...
7
kevinjimenez/message-crypto
8f560a7
api-encrypt/src/common/interceptors/request-decrypt.interceptor.ts
TypeScript
www.github.com/kevinjimenez/message-crypto/tree/main/api-encrypt/src/common/interceptors/request-decrypt.interceptor.ts
https://raw.githubusercontent.com/kevinjimenez/message-crypto/8f560a7/api-encrypt/src/common/interceptors/request-decrypt.interceptor.ts
kevinjimenez/message-crypto 8f560a7 api-encrypt/src/common/interceptors/request-decrypt.interceptor.ts
true
200
925
import { CallHandler, ExecutionContext, Injectable, Logger, NestInterceptor, } from '@nestjs/common'; const logger = new Logger('DecryptInterceptor'); @Injectable() export class RequestDecryptInterceptor implements NestInterceptor { async intercept(context: ExecutionContext, next: CallHandler): Promise<any...
1
ursrBaek/Food-Delivery-App
a0df08c
src/hooks/useLoginCheck.ts
TypeScript
www.github.com/ursrBaek/Food-Delivery-App/tree/main/src/hooks/useLoginCheck.ts
https://raw.githubusercontent.com/ursrBaek/Food-Delivery-App/a0df08c/src/hooks/useLoginCheck.ts
ursrBaek/Food-Delivery-App a0df08c src/hooks/useLoginCheck.ts
true
200
411
import { useNavigate } from 'react-router-dom'; const useLoginCheck = (id: string, callback?: () => void) => { const navigate = useNavigate(); return () => { if (!id) { if (window.confirm('로그인이 필요합니다. 로그인하시겠습니까?')) { navigate('/login'); return; } } else { if (callback) ca...
0
ganeshsadhashivam/primefresh
d3d3dd6
Prime_fresh_backend/src/controllers/product.controller.ts
TypeScript
www.github.com/ganeshsadhashivam/primefresh/tree/main/Prime_fresh_backend/src/controllers/product.controller.ts
https://raw.githubusercontent.com/ganeshsadhashivam/primefresh/d3d3dd6/Prime_fresh_backend/src/controllers/product.controller.ts
ganeshsadhashivam/primefresh d3d3dd6 Prime_fresh_backend/src/controllers/product.controller.ts
true
200
2,917
import { inject } from "inversify"; import { controller, httpGet, httpPost, httpPatch, httpDelete, requestBody, requestParam, response, next, } from "inversify-express-utils"; import { TYPES } from "../types"; import { ProductService } from "../services/product.service"; import { Product } from "../en...
7
magdymohammedhanafy/S_Project_01-Art-Gallery
fa44e25
gallery_frontend/gallery_app/src/app/modules/product/product.module.ts
TypeScript
www.github.com/magdymohammedhanafy/S_Project_01-Art-Gallery/tree/main/gallery_frontend/gallery_app/src/app/modules/product/product.module.ts
https://raw.githubusercontent.com/magdymohammedhanafy/S_Project_01-Art-Gallery/fa44e25/gallery_frontend/gallery_app/src/app/modules/product/product.module.ts
magdymohammedhanafy/S_Project_01-Art-Gallery fa44e25 gallery_frontend/gallery_app/src/app/modules/product/product.module.ts
true
200
943
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ProductRoutingModule } from './product-routing.module'; import { ProductDetailsComponent } from './product-details/product-details.component'; import { ProductListComponent } from './product-list/product-list.component';...
1
meetjn/Transaction-link-generator
0018fc2
src/utils/contractUtils.ts
TypeScript
www.github.com/meetjn/Transaction-link-generator/tree/main/src/utils/contractUtils.ts
https://raw.githubusercontent.com/meetjn/Transaction-link-generator/0018fc2/src/utils/contractUtils.ts
meetjn/Transaction-link-generator 0018fc2 src/utils/contractUtils.ts
true
200
5,696
import { ethers } from 'ethers'; import { AbiFunction, AbiParameter, TransactionDetails } from '../types'; /** * Parses an ABI string and extracts only the function entries * * @param abiString - JSON string containing the contract ABI * @returns Array of AbiFunction objects containing only function entries * @t...
5
Ranchoo28/Lupetto-Barber-Shop
228a8f1
Progetto/Frontend/src/app/componenti/pagamento/pagamento.component.ts
TypeScript
www.github.com/Ranchoo28/Lupetto-Barber-Shop/tree/main/Progetto/Frontend/src/app/componenti/pagamento/pagamento.component.ts
https://raw.githubusercontent.com/Ranchoo28/Lupetto-Barber-Shop/228a8f1/Progetto/Frontend/src/app/componenti/pagamento/pagamento.component.ts
Ranchoo28/Lupetto-Barber-Shop 228a8f1 Progetto/Frontend/src/app/componenti/pagamento/pagamento.component.ts
true
200
3,878
import { Component, OnInit } from '@angular/core'; import { loadStripe, Stripe, StripeCardElement } from '@stripe/stripe-js'; import { PaymentService } from "../../services/payment.service"; import { CartService } from "../../services/cart.service"; import swal from "sweetalert"; import {Router} from "@angular/router";...
0
thellecodes/deno-vuejs-client
2607445
deno-api-server/gamers.ts
TypeScript
www.github.com/thellecodes/deno-vuejs-client/tree/main/deno-api-server/gamers.ts
https://raw.githubusercontent.com/thellecodes/deno-vuejs-client/2607445/deno-api-server/gamers.ts
thellecodes/deno-vuejs-client 2607445 deno-api-server/gamers.ts
true
200
1,651
import { Router, HttpError } from "https://deno.land/x/oak/mod.ts"; import { config } from "https://deno.land/x/dotenv/mod.ts"; import ky from "https://unpkg.com/ky/index.js"; const router = new Router(); const controller = new AbortController(); const { signal } = controller; setTimeout(() => { controller.abort();...
7
digunin/rest-frontend-spa
b3d764c
src/hooks/useAppInit.ts
TypeScript
www.github.com/digunin/rest-frontend-spa/tree/main/src/hooks/useAppInit.ts
https://raw.githubusercontent.com/digunin/rest-frontend-spa/b3d764c/src/hooks/useAppInit.ts
digunin/rest-frontend-spa b3d764c src/hooks/useAppInit.ts
true
200
865
import { useEffect, useState } from "react"; import { useAppDispatch } from "../store"; import { useAuth } from "./useAuth"; import { getCookies, removeCookies, setCookies } from "../utils/cookies-api"; import { setUser } from "../store/userSlice"; export const useAppInit = () => { const dispatch = useAppDispatch();...
1
laziness-dev/counter-sdk
262f933
js/src/core/tracker/trackerCommand.ts
TypeScript
www.github.com/laziness-dev/counter-sdk/tree/main/js/src/core/tracker/trackerCommand.ts
https://raw.githubusercontent.com/laziness-dev/counter-sdk/262f933/js/src/core/tracker/trackerCommand.ts
laziness-dev/counter-sdk 262f933 js/src/core/tracker/trackerCommand.ts
true
200
723
"use strict"; interface StoreUUIDRequest { trackerIdentifier: string, originUUID: string } /** @internal */ export default class TrackerCommand { private constructor(private readonly request : StoreUUIDRequest) {} public static from(request : {trackerIdentifier: string, originUUID: string}) : TrackerComman...
5
mitsuhiroseino/gusok
fefd61f
packages/utils/src/spreadsheet/toColumnId/toColumnId.ts
TypeScript
www.github.com/mitsuhiroseino/gusok/tree/main/packages/utils/src/spreadsheet/toColumnId/toColumnId.ts
https://raw.githubusercontent.com/mitsuhiroseino/gusok/fefd61f/packages/utils/src/spreadsheet/toColumnId/toColumnId.ts
mitsuhiroseino/gusok fefd61f packages/utils/src/spreadsheet/toColumnId/toColumnId.ts
true
200
654
/** * Spreadsheetなどのカラム番号を、"A"や"BC"などの文字列で表すIDに変換する * @param colIndex カラム番号(デフォルトは最小値1) * @param zeroBased カラム番号が0から始まる場合にtrue * @returns カラムID */ export default function toColumnId(colIndex: number, zeroBased?: boolean): string | null { const index = zeroBased ? colIndex : colIndex - 1; if (index < 0) { r...
0
RockYou-cmd/ft_transcendence
88b2aa4
backend/src/auth/2fa/2fa.controller.ts
TypeScript
www.github.com/RockYou-cmd/ft_transcendence/tree/main/backend/src/auth/2fa/2fa.controller.ts
https://raw.githubusercontent.com/RockYou-cmd/ft_transcendence/88b2aa4/backend/src/auth/2fa/2fa.controller.ts
RockYou-cmd/ft_transcendence 88b2aa4 backend/src/auth/2fa/2fa.controller.ts
true
200
1,039
import { Body, Controller, Get, Post, Req, UseGuards } from '@nestjs/common'; import { TwoFactorAuthenticationService } from './2fa.service'; import { AuthGuard } from 'src/auth/auth.guard/auth.guard'; import { twoFactorAuthenticationDto } from './2fa.dto/2fa.dto'; @Controller("2fa") export class TwoFactorAuthenticati...
7
wangzmgit/alnitak
e778224
web/mobile-client/src/api/captcha.ts
TypeScript
www.github.com/wangzmgit/alnitak/tree/main/web/mobile-client/src/api/captcha.ts
https://raw.githubusercontent.com/wangzmgit/alnitak/e778224/web/mobile-client/src/api/captcha.ts
wangzmgit/alnitak e778224 web/mobile-client/src/api/captcha.ts
true
200
339
import request from "@/utils/request"; // 获取滑块 export const getSliderAPI = (captchaId: string) => { return request.get(`v1/verify/captcha/get?captchaId=${captchaId}`); } // 验证滑块 export const validateSliderAPI = (captchaId: string, x: number) => { return request.post("v1/verify/captcha/validate", { captchaId, x })...
1
oboku/web
6f358a7
packages/web/src/problems/useFixLinks.ts
TypeScript
www.github.com/oboku/web/tree/main/packages/web/src/problems/useFixLinks.ts
https://raw.githubusercontent.com/oboku/web/6f358a7/packages/web/src/problems/useFixLinks.ts
oboku/web 6f358a7 packages/web/src/problems/useFixLinks.ts
true
200
2,857
import { mergeWith } from "ramda" import { useCallback } from "react" import { Report } from "../debug/report.shared" import { useDatabase } from "../rxdb" export const useFixLinks = () => { const database = useDatabase() return useCallback( async (data: [string, { name: string; number: number }][]) => { ...
0
liorq/Courses
729eed7
auth/sign-up/sign-up.component.ts
TypeScript
www.github.com/liorq/Courses/tree/main/auth/sign-up/sign-up.component.ts
https://raw.githubusercontent.com/liorq/Courses/729eed7/auth/sign-up/sign-up.component.ts
liorq/Courses 729eed7 auth/sign-up/sign-up.component.ts
true
200
2,893
import { Component, OnInit } from '@angular/core'; import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms'; import { errorMessages } from 'src/app/data/objects'; import { AuthService } from '../../core/services/auth.service' import { CoursesService } from 'src/app/core/services/courses.serv...
5
GrinZero/sztunethelper
674fdad
src/main/config/index.ts
TypeScript
www.github.com/GrinZero/sztunethelper/tree/main/src/main/config/index.ts
https://raw.githubusercontent.com/GrinZero/sztunethelper/674fdad/src/main/config/index.ts
GrinZero/sztunethelper 674fdad src/main/config/index.ts
true
200
1,953
import * as path from "path"; import type { BrowserWindowConstructorOptions } from "electron"; export interface CheckNetTask { id: number | string; title: string; args: string[]; command: string; isDynamic?: boolean; } export interface BaseConfig { autoUpdate: boolean; autoStart: boolean; autoTheme: b...
7
alexlebesc/adventofcode
cbaf85c
2024/src/day-15.ts
TypeScript
www.github.com/alexlebesc/adventofcode/tree/main/2024/src/day-15.ts
https://raw.githubusercontent.com/alexlebesc/adventofcode/cbaf85c/2024/src/day-15.ts
alexlebesc/adventofcode cbaf85c 2024/src/day-15.ts
true
200
1,170
import * as fs from 'fs/promises'; import * as path from 'path'; import { DayResultInterface } from './day-result.interface'; class Day15 implements DayResultInterface { // Chemin du fichier d'input permettant de résoudre l'énigme du jour private filePath :string = path.join(__dirname, '../data/input_15.txt')...
5
ArjunSamuderaAhliFikri/kedunglo-biking-team
3715030
src/pages/api/event.ts
TypeScript
www.github.com/ArjunSamuderaAhliFikri/kedunglo-biking-team/tree/main/src/pages/api/event.ts
https://raw.githubusercontent.com/ArjunSamuderaAhliFikri/kedunglo-biking-team/3715030/src/pages/api/event.ts
ArjunSamuderaAhliFikri/kedunglo-biking-team 3715030 src/pages/api/event.ts
true
200
591
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from "next"; import { dataEvents } from "@/service/data-events"; type Data = { id: number; title: string; qtyParticipan: number; date: string; description: string; participans: { ...
0
Jiroscopes/MirQueue-BackEnd
3d803cc
src/user/index.ts
TypeScript
www.github.com/Jiroscopes/MirQueue-BackEnd/tree/main/src/user/index.ts
https://raw.githubusercontent.com/Jiroscopes/MirQueue-BackEnd/3d803cc/src/user/index.ts
Jiroscopes/MirQueue-BackEnd 3d803cc src/user/index.ts
true
200
2,084
import Request from '../Request'; import { getRefreshToken, updateAccessToken } from '../db/user'; import config from '../config' export const getUserEmail = async (accessToken: string) => { let infoJSON: any = await getUserInfo(accessToken); return infoJSON.email; }; export const getUsername = async (accessT...
7
Kevinclane/az204quizmasterClient
4ebc4ea
src/app/components/quizzes/quiz-results.component.ts
TypeScript
www.github.com/Kevinclane/az204quizmasterClient/tree/main/src/app/components/quizzes/quiz-results.component.ts
https://raw.githubusercontent.com/Kevinclane/az204quizmasterClient/4ebc4ea/src/app/components/quizzes/quiz-results.component.ts
Kevinclane/az204quizmasterClient 4ebc4ea src/app/components/quizzes/quiz-results.component.ts
true
200
4,985
import { Component } from "@angular/core"; import { ApiService } from "../../services/api.service"; import { ActivatedRoute, Router } from "@angular/router"; import { QuizResults } from "../../models/quiz-results.model"; import { CommonModule } from "@angular/common"; import { QuizQuestionResponse } from "../../models/...
1
PSMRI/ADMIN-UI
45ee1f3
src/app/app-provider-admin/provider-admin/activities/feedback-complaint-nature-master/feedback-complaint-nature-master.component.spec.ts
TypeScript
www.github.com/PSMRI/ADMIN-UI/tree/main/src/app/app-provider-admin/provider-admin/activities/feedback-complaint-nature-master/feedback-complaint-nature-master.component.spec.ts
https://raw.githubusercontent.com/PSMRI/ADMIN-UI/45ee1f3/src/app/app-provider-admin/provider-admin/activities/feedback-complaint-nature-master/feedback-complaint-nature-master.component.spec.ts
PSMRI/ADMIN-UI 45ee1f3 src/app/app-provider-admin/provider-admin/activities/feedback-complaint-nature-master/feedback-complaint-nature-master.component.spec.ts
true
200
1,673
/* * AMRIT – Accessible Medical Records via Integrated Technology * Integrated EHR (Electronic Health Records) Solution * * Copyright (C) "Piramal Swasthya Management and Research Institute" * * This file is part of AMRIT. * * This program is free software: you can redistribute it and/or modify * it under the ...
5
ahmaddabd/dikantek_v3_updated_v18
2c264b0
backend/src/modules/blogs/blogs.controller.ts
TypeScript
www.github.com/ahmaddabd/dikantek_v3_updated_v18/tree/main/backend/src/modules/blogs/blogs.controller.ts
https://raw.githubusercontent.com/ahmaddabd/dikantek_v3_updated_v18/2c264b0/backend/src/modules/blogs/blogs.controller.ts
ahmaddabd/dikantek_v3_updated_v18 2c264b0 backend/src/modules/blogs/blogs.controller.ts
true
200
646
import { Controller, Post, Get, Body, Param } from '@nestjs/common'; import { BlogsService } from './blogs.service'; @Controller('blogs') export class BlogsController { constructor(private readonly blogsService: BlogsService) {} @Post('create') async createBlog(@Body() body: { title: string; content: string; au...
0
MontassarSN/Tutor
a77ee9b
src/api/course/lectures/fetchLecturesByCourseId.ts
TypeScript
www.github.com/MontassarSN/Tutor/tree/main/src/api/course/lectures/fetchLecturesByCourseId.ts
https://raw.githubusercontent.com/MontassarSN/Tutor/a77ee9b/src/api/course/lectures/fetchLecturesByCourseId.ts
MontassarSN/Tutor a77ee9b src/api/course/lectures/fetchLecturesByCourseId.ts
true
200
453
"use server"; import { ServerClient } from "@/lib/supabasessr"; import { Tables } from "@/types/database.types"; export async function fetchLecturesByCourseId( courseId: string ): Promise<Tables<"lectures">[]> { const supabase = await ServerClient(); const { data: lectures, error } = await supabase .from("lec...
7
AdaoBJr/GoDash
4a12813
src/services/infra/api/mirage/index.ts
TypeScript
www.github.com/AdaoBJr/GoDash/tree/main/src/services/infra/api/mirage/index.ts
https://raw.githubusercontent.com/AdaoBJr/GoDash/4a12813/src/services/infra/api/mirage/index.ts
AdaoBJr/GoDash 4a12813 src/services/infra/api/mirage/index.ts
true
200
1,297
import * as faker from 'faker'; import { createServer, Factory, Model } from 'miragejs'; import { Customer } from 'types/interface'; export const makeServer = () => { const server = createServer({ models: { customer: Model.extend<Partial<Customer>>({}) }, // factories: { // customer: Factor...
1
maksbohdanov/MyHospital-Client
d9610ba
src/app/components/doctors-list/doctors-list.component.ts
TypeScript
www.github.com/maksbohdanov/MyHospital-Client/tree/main/src/app/components/doctors-list/doctors-list.component.ts
https://raw.githubusercontent.com/maksbohdanov/MyHospital-Client/d9610ba/src/app/components/doctors-list/doctors-list.component.ts
maksbohdanov/MyHospital-Client d9610ba src/app/components/doctors-list/doctors-list.component.ts
true
200
1,753
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Doctor } from 'src/app/models/doctor.model'; import { DoctorService } from 'src/app/services/doctor.service'; @Component({ selector: 'app-doctors-list', templateUrl: './doctors-list.component.html', styleUrls: [...
5
Wodorek/advent-of-code-JS
9ad9890
2015/09/input.ts
TypeScript
www.github.com/Wodorek/advent-of-code-JS/tree/main/2015/09/input.ts
https://raw.githubusercontent.com/Wodorek/advent-of-code-JS/9ad9890/2015/09/input.ts
Wodorek/advent-of-code-JS 9ad9890 2015/09/input.ts
true
200
755
const input = `Faerun to Norrath = 129 Faerun to Tristram = 58 Faerun to AlphaCentauri = 13 Faerun to Arbre = 24 Faerun to Snowdin = 60 Faerun to Tambi = 71 Faerun to Straylight = 67 Norrath to Tristram = 142 Norrath to AlphaCentauri = 15 Norrath to Arbre = 135 Norrath to Snowdin = 75 Norrath to Tambi = 82 Norrath to S...
0
ashwith17/internship-tasks
c9c6b7d
11-employee-directory-angular-ashwith-p/Employee_Directory/src/app/employees/employees.component.ts
TypeScript
www.github.com/ashwith17/internship-tasks/tree/main/11-employee-directory-angular-ashwith-p/Employee_Directory/src/app/employees/employees.component.ts
https://raw.githubusercontent.com/ashwith17/internship-tasks/c9c6b7d/11-employee-directory-angular-ashwith-p/Employee_Directory/src/app/employees/employees.component.ts
ashwith17/internship-tasks c9c6b7d 11-employee-directory-angular-ashwith-p/Employee_Directory/src/app/employees/employees.component.ts
true
200
6,438
import { CommonModule } from '@angular/common'; import { Component, ViewChild } from '@angular/core'; import { RouterLink } from '@angular/router'; import { SelectdropdownComponent } from '../Common/selectdropdown/selectdropdown.component'; import { Employee } from '../../models/Employee'; import { EmployeeDto } from ...
7
gibme-npm/bytepack
4fad16b
src/reader.ts
TypeScript
www.github.com/gibme-npm/bytepack/tree/main/src/reader.ts
https://raw.githubusercontent.com/gibme-npm/bytepack/4fad16b/src/reader.ts
gibme-npm/bytepack 4fad16b src/reader.ts
true
200
12,266
// Copyright (c) 2018-2024, Brandon Lehmann <brandonlehmann@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to...
3
sarthak61199/e-commerce-api
fde5256
src/order/order.service.ts
TypeScript
www.github.com/sarthak61199/e-commerce-api/tree/main/src/order/order.service.ts
https://raw.githubusercontent.com/sarthak61199/e-commerce-api/fde5256/src/order/order.service.ts
sarthak61199/e-commerce-api fde5256 src/order/order.service.ts
true
200
2,751
import { Injectable, NotFoundException } from '@nestjs/common'; import { CompleteOrderDto, OrderDto } from './order.dto'; import { PrismaService } from 'src/prisma.service'; import { User } from '@prisma/client'; import { rzp } from 'src/library/razorpay'; @Injectable() export class OrderService { constructor(privat...
1
JayaBelagurki/Banking
6f1524f
src/app/credit/credit.component.ts
TypeScript
www.github.com/JayaBelagurki/Banking/tree/main/src/app/credit/credit.component.ts
https://raw.githubusercontent.com/JayaBelagurki/Banking/6f1524f/src/app/credit/credit.component.ts
JayaBelagurki/Banking 6f1524f src/app/credit/credit.component.ts
true
200
2,005
import { Component, OnInit } from '@angular/core'; import { CreditCard } from '../model/credit.card'; import { ActivatedRoute, Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { Constant } from 'src/environments/environment'; @Component({ selector: 'app-credit', templateUr...
5
Vahnra/moncomparateur-immo
a18ef58
src/app/user/user-receipt/user-receipt.component.ts
TypeScript
www.github.com/Vahnra/moncomparateur-immo/tree/main/src/app/user/user-receipt/user-receipt.component.ts
https://raw.githubusercontent.com/Vahnra/moncomparateur-immo/a18ef58/src/app/user/user-receipt/user-receipt.component.ts
Vahnra/moncomparateur-immo a18ef58 src/app/user/user-receipt/user-receipt.component.ts
true
200
1,888
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { Order } from 'src/app/models/order'; import { User } from 'src/app/models/user'; import { AuthService } from 'src/app/_services/auth.service'; import { OrderService } from 'src/app/_services/order.servi...
0
team-m2i/brikool-frontend
7e52239
src/hooks/use-custom-request-param.ts
TypeScript
www.github.com/team-m2i/brikool-frontend/tree/main/src/hooks/use-custom-request-param.ts
https://raw.githubusercontent.com/team-m2i/brikool-frontend/7e52239/src/hooks/use-custom-request-param.ts
team-m2i/brikool-frontend 7e52239 src/hooks/use-custom-request-param.ts
true
200
668
import {usePathname, useRouter} from "@/i18n/routing"; import {useSearchParams} from "next/navigation"; export const useCustomRequestParams = (requestParam: string) => { const router = useRouter(); const pathname = usePathname(); const searchParams = useSearchParams() return (param: any) => { c...
4
carolineignr/react-quiz-app
82e64ac
src/components/QuestionCard.style.ts
TypeScript
www.github.com/carolineignr/react-quiz-app/tree/main/src/components/QuestionCard.style.ts
https://raw.githubusercontent.com/carolineignr/react-quiz-app/82e64ac/src/components/QuestionCard.style.ts
carolineignr/react-quiz-app 82e64ac src/components/QuestionCard.style.ts
true
200
1,063
import styled from 'styled-components'; export const Wrapper = styled.div` max-width: 1100px; background: white; border: none; margin: 10px 0; padding: 20px; box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.25); text-align: center; p { font-size: 1rem; color: blue; } `; type ButtonWrapperProps = { ...
7
Tabishdeveloper/FriendConnect
baf2eb2
lib/clientAuth.ts
TypeScript
www.github.com/Tabishdeveloper/FriendConnect/tree/main/lib/clientAuth.ts
https://raw.githubusercontent.com/Tabishdeveloper/FriendConnect/baf2eb2/lib/clientAuth.ts
Tabishdeveloper/FriendConnect baf2eb2 lib/clientAuth.ts
true
200
585
'use client'; import { createBrowserClient } from '@supabase/ssr'; // Only create the browser client on the client side let supabaseClient: ReturnType<typeof createBrowserClient> | null = null; export function createClientSupabaseClient() { if (typeof window === 'undefined') { throw new Error('createClientSupa...
2
defenseunicorns/pepr
31b249b
journey/before.ts
TypeScript
www.github.com/defenseunicorns/pepr/tree/main/journey/before.ts
https://raw.githubusercontent.com/defenseunicorns/pepr/31b249b/journey/before.ts
defenseunicorns/pepr 31b249b journey/before.ts
true
200
494
// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2023-Present The Pepr Authors import { promises as fs } from "fs"; import { resolve } from "path"; import { cwd } from "./entrypoint.test"; export async function before() { const dir = resolve(cwd); try { await fs.access(dir); await fs...
6
ihabmcshea/users-api
7a1426a
frontend/app/next-api/users/[userId]/route.ts
TypeScript
www.github.com/ihabmcshea/users-api/tree/main/frontend/app/next-api/users/[userId]/route.ts
https://raw.githubusercontent.com/ihabmcshea/users-api/7a1426a/frontend/app/next-api/users/%5BuserId%5D/route.ts
ihabmcshea/users-api 7a1426a frontend/app/next-api/users/[userId]/route.ts
true
200
2,141
import type { NextApiRequest, NextApiResponse } from 'next'; import axios from 'axios'; import { NextResponse } from 'next/server'; export async function PUT(request: Request, { params }: { params: { id: string } }) { const { userId } = params; const body = await request.json(); try { const token...
3
DiegoBP02/JobLinker
1be456c
src/controllers/interviewController.ts
TypeScript
www.github.com/DiegoBP02/JobLinker/tree/main/src/controllers/interviewController.ts
https://raw.githubusercontent.com/DiegoBP02/JobLinker/1be456c/src/controllers/interviewController.ts
DiegoBP02/JobLinker 1be456c src/controllers/interviewController.ts
true
200
6,209
import { Request, Response } from "express"; import { Application } from "../models/Application"; import { Interview, InterviewDocument, InterviewInput, } from "../models/Interview"; import { Job } from "../models/Job"; import { User } from "../models/User"; import checkPermission from "../utils/checkPermission";...
1
AutumnWhj/tag-parse-action
6c919cc
src/utils/index.ts
TypeScript
www.github.com/AutumnWhj/tag-parse-action/tree/main/src/utils/index.ts
https://raw.githubusercontent.com/AutumnWhj/tag-parse-action/6c919cc/src/utils/index.ts
AutumnWhj/tag-parse-action 6c919cc src/utils/index.ts
true
200
2,535
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable github/array-foreach */ export const getBranchByHead = (ref: string): string => { if (ref.includes('refs/heads/')) { return ref.replace('refs/heads/', '') } return '' } export const getBranchByTag = (ref: string): string => { if (re...
5
putto11262002/jimmodel.com-test
1f30282
hooks/queries/web-asset.ts
TypeScript
www.github.com/putto11262002/jimmodel.com-test/tree/main/hooks/queries/web-asset.ts
https://raw.githubusercontent.com/putto11262002/jimmodel.com-test/1f30282/hooks/queries/web-asset.ts
putto11262002/jimmodel.com-test 1f30282 hooks/queries/web-asset.ts
true
200
3,529
import useToast from "@/components/toast"; import client from "@/lib/api/client"; import { PaginatedData } from "@/lib/types/paginated-data"; import { WebAsset, WebAssetCreateInput, WebAssetUpdateInput, } from "@/lib/types/web-asset"; import { blobToFile } from "@/lib/utils/file"; import { useMutation, useQue...
0
DevPuzzler/devpuzzler-fe
7212943
src/store/modules/BlogPostModule.ts
TypeScript
www.github.com/DevPuzzler/devpuzzler-fe/tree/main/src/store/modules/BlogPostModule.ts
https://raw.githubusercontent.com/DevPuzzler/devpuzzler-fe/7212943/src/store/modules/BlogPostModule.ts
DevPuzzler/devpuzzler-fe 7212943 src/store/modules/BlogPostModule.ts
true
200
1,603
import { Actions } from '@/store/enums/StoreEnums'; import axios from 'axios'; import { ApiResponse, GetRequestParameters } from '@/store/modules/ApiModule'; export type BlogPost = { id: number, name: string, excerpt: string, categoryId: number, content: string } export interface BlogPostCollection { blog...
4
estebanguitar/nestjs-study
68abb92
src/auth/jwt.strategy.ts
TypeScript
www.github.com/estebanguitar/nestjs-study/tree/main/src/auth/jwt.strategy.ts
https://raw.githubusercontent.com/estebanguitar/nestjs-study/68abb92/src/auth/jwt.strategy.ts
estebanguitar/nestjs-study 68abb92 src/auth/jwt.strategy.ts
true
200
1,994
import { Injectable, UnauthorizedException } from '@nestjs/common' import { PassportStrategy } from '@nestjs/passport' import { InjectRepository } from '@nestjs/typeorm' import { ExtractJwt, Strategy } from 'passport-jwt' import { User } from 'src/entities/user.entity' import { IsNull, Repository } from 'typeorm' @Inj...
2
LorenVu/epay-kiosk-railway-vietnam
1e72893
src/app/payment/payment-now/services/payment-now.service.ts
TypeScript
www.github.com/LorenVu/epay-kiosk-railway-vietnam/tree/main/src/app/payment/payment-now/services/payment-now.service.ts
https://raw.githubusercontent.com/LorenVu/epay-kiosk-railway-vietnam/1e72893/src/app/payment/payment-now/services/payment-now.service.ts
LorenVu/epay-kiosk-railway-vietnam 1e72893 src/app/payment/payment-now/services/payment-now.service.ts
true
200
759
import { Injectable } from '@angular/core'; import { BaseResponse } from '@libs/utils'; import { BehaviorSubject, delay, Observable } from 'rxjs'; import { ApiService } from '../../../utils/services/api.service'; import { SaveTheBillPayload, SaveTheBillResponse } from '../../models'; @Injectable({ providedIn: 'root'...
7
ipramudya/indonesia-after-covid
8a35619
lib/mantine/styles/button.ts
TypeScript
www.github.com/ipramudya/indonesia-after-covid/tree/main/lib/mantine/styles/button.ts
https://raw.githubusercontent.com/ipramudya/indonesia-after-covid/8a35619/lib/mantine/styles/button.ts
ipramudya/indonesia-after-covid 8a35619 lib/mantine/styles/button.ts
true
200
937
import { CSSObject, MantineTheme } from "@mantine/core"; function button(): Partial<Record<"label" | "root", CSSObject>> { return { label: { width: "100%" }, root: { padding: "0 12px", borderColor: "#ced4da", transition: "all 0.3s ease", "&:hover": {...
6
the-james-burton/project-euler-ng
675cf76
src/app/solution/solution.component.ts
TypeScript
www.github.com/the-james-burton/project-euler-ng/tree/main/src/app/solution/solution.component.ts
https://raw.githubusercontent.com/the-james-burton/project-euler-ng/675cf76/src/app/solution/solution.component.ts
the-james-burton/project-euler-ng 675cf76 src/app/solution/solution.component.ts
true
200
1,095
import { Component, OnInit, Input, OnDestroy, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { StoreService } from '../store/store.service'; import { Observable, Subscription } from 'rxjs'; @Component({ selector: 'app-solution', templateUrl: './solution.component.html', styleUrls: ['./...
3
naliyeeva/projectTrackerApp
f1912b0
src/components/StyledComponents/Input.ts
TypeScript
www.github.com/naliyeeva/projectTrackerApp/tree/main/src/components/StyledComponents/Input.ts
https://raw.githubusercontent.com/naliyeeva/projectTrackerApp/f1912b0/src/components/StyledComponents/Input.ts
naliyeeva/projectTrackerApp f1912b0 src/components/StyledComponents/Input.ts
true
200
374
import styled from "styled-components"; export const Input = styled.input` background-color: rgba(66, 66, 66, 0.5); border-radius: 3px; border: none; outline: none; padding: 10px 15px; color: #ECEFF1; font-size: 15px; transition: border .1s; width: 100%; margin-bottom: 15px; ...
1
denissimpl/finance-react
cb74faa
front/src/redux/store.ts
TypeScript
www.github.com/denissimpl/finance-react/tree/main/front/src/redux/store.ts
https://raw.githubusercontent.com/denissimpl/finance-react/cb74faa/front/src/redux/store.ts
denissimpl/finance-react cb74faa front/src/redux/store.ts
true
200
843
import { configureStore } from "@reduxjs/toolkit"; import { userApi } from "./api/userApi"; import userDataSlice from "./slices/userDataSlice/userDataSlice"; import loadingSlice from "./slices/loadingSlice/loadingSlice"; import notificationSlice from "./slices/notificationSlice/notificationSlice"; import { socketApi } ...
5
Srwala/aplicacionMovil
2bdebb2
aplicacionMovil/src/app/api/api-routing.module.ts
TypeScript
www.github.com/Srwala/aplicacionMovil/tree/main/aplicacionMovil/src/app/api/api-routing.module.ts
https://raw.githubusercontent.com/Srwala/aplicacionMovil/2bdebb2/aplicacionMovil/src/app/api/api-routing.module.ts
Srwala/aplicacionMovil 2bdebb2 aplicacionMovil/src/app/api/api-routing.module.ts
true
200
531
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { ApiPage } from './api.page'; import { canactivateGuard } from '../canactivate.guard'; import { CandeactivateGuard } from '../candeactivate.guard'; const routes: Routes = [ { path: '', component: ApiPage...
0
sergio-uriza/Front-Personal-Web-MERN
6454682
src/hooks/useModalComponent.ts
TypeScript
www.github.com/sergio-uriza/Front-Personal-Web-MERN/tree/main/src/hooks/useModalComponent.ts
https://raw.githubusercontent.com/sergio-uriza/Front-Personal-Web-MERN/6454682/src/hooks/useModalComponent.ts
sergio-uriza/Front-Personal-Web-MERN 6454682 src/hooks/useModalComponent.ts
true
200
475
import { useState } from 'react' type UseModalComponentType = { showModal: boolean handleOpenModal: () => void handleCloseModal: () => void } export const useModalComponent = (): UseModalComponentType => { const [showModal, setShowModal] = useState<boolean>(false) const handleOpenModal = (): void => { setS...
4
bermartorano/dev-football-club
755bca3
app/backend/src/entities/Table.ts
TypeScript
www.github.com/bermartorano/dev-football-club/tree/main/app/backend/src/entities/Table.ts
https://raw.githubusercontent.com/bermartorano/dev-football-club/755bca3/app/backend/src/entities/Table.ts
bermartorano/dev-football-club 755bca3 app/backend/src/entities/Table.ts
true
200
2,578
import { MatchAttributes } from '../database/models/Match'; import HomeAwayAll from './TeamEntities/HomeAwayAll'; import TeamClass from './TeamEntities/TeamClass'; export default class Table { constructor(private _teams: TeamClass[]) { } registerMatchToTable(matches: MatchAttributes[]) { matches.forEach(({ ...
2
maksym0797/studious-aws-cloud-train
c8181d2
product-service/src/repositories/PGProductRepository.ts
TypeScript
www.github.com/maksym0797/studious-aws-cloud-train/tree/main/product-service/src/repositories/PGProductRepository.ts
https://raw.githubusercontent.com/maksym0797/studious-aws-cloud-train/c8181d2/product-service/src/repositories/PGProductRepository.ts
maksym0797/studious-aws-cloud-train c8181d2 product-service/src/repositories/PGProductRepository.ts
true
200
1,879
import Product from "@entities/Product"; import IProductRepository from "./interfaces/IProductRepository"; import { ClientBase } from "pg"; export default class PGProductRepository implements IProductRepository { private client: ClientBase; constructor(client: ClientBase) { this.client = client; } async cr...
6
Chirag569/ExpenseTracker-main
93a6271
app/api/user-settings/route.ts
TypeScript
www.github.com/Chirag569/ExpenseTracker-main/tree/main/app/api/user-settings/route.ts
https://raw.githubusercontent.com/Chirag569/ExpenseTracker-main/93a6271/app/api/user-settings/route.ts
Chirag569/ExpenseTracker-main 93a6271 app/api/user-settings/route.ts
true
200
747
import prisma from "@/lib/prisma"; import { currentUser } from "@clerk/nextjs/server"; import { revalidatePath } from "next/cache"; import { redirect } from "next/navigation"; import { json } from "stream/consumers"; export async function GET(request:Request){ const user = await currentUser(); if(!user){ ...
7
idylwork/stickyleaf
f63b38d
src/libs/String.ts
TypeScript
www.github.com/idylwork/stickyleaf/tree/main/src/libs/String.ts
https://raw.githubusercontent.com/idylwork/stickyleaf/f63b38d/src/libs/String.ts
idylwork/stickyleaf f63b38d src/libs/String.ts
true
200
4,308
/** 選択中の文字列情報 */ type SelectionText = { value: string; selectionStart: number; selectionEnd: number; } /** * 文字列の選択部分をインデントする * @param selectionText.value 文字列 * @param selectionText.selectionStart 選択開始位置 * @param selectionText.selectionEnd 選択終了位置 * @param isIndent インデントするか (falseでインデント解除) * @returns 選択中の文字...
3
bhuved/HelpdeskTicket
88f88ac
HelpdeskUI/src/app/services/bookmark.service.ts
TypeScript
www.github.com/bhuved/HelpdeskTicket/tree/main/HelpdeskUI/src/app/services/bookmark.service.ts
https://raw.githubusercontent.com/bhuved/HelpdeskTicket/88f88ac/HelpdeskUI/src/app/services/bookmark.service.ts
bhuved/HelpdeskTicket 88f88ac HelpdeskUI/src/app/services/bookmark.service.ts
true
200
762
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class BookmarkService { private URL ="https://localhost:7138/api/Bookmarks"; constructor(private http:HttpClient) { } getBookmarks(){ return this.http.get(this.URL); ...
0
aws-samples/aws-data-exporter
9b52e51
frontend/src/utils/DateUtils.ts
TypeScript
www.github.com/aws-samples/aws-data-exporter/tree/main/frontend/src/utils/DateUtils.ts
https://raw.githubusercontent.com/aws-samples/aws-data-exporter/9b52e51/frontend/src/utils/DateUtils.ts
aws-samples/aws-data-exporter 9b52e51 frontend/src/utils/DateUtils.ts
true
200
405
import dayjs, { ConfigType } from "dayjs"; import timezone from "dayjs/plugin/timezone"; import utc from "dayjs/plugin/utc"; const FORMAT_DATETIME = "YYYY-MM-DD HH:mm:ss"; dayjs.extend(utc); dayjs.extend(timezone); /** * format date in datetime format * * @param date * @returns */ export const formatDatetime = (...
4
nusk003/easy-pos
a8713d7
packages/apps/api/src/modules/group/group.module.ts
TypeScript
www.github.com/nusk003/easy-pos/tree/main/packages/apps/api/src/modules/group/group.module.ts
https://raw.githubusercontent.com/nusk003/easy-pos/a8713d7/packages/apps/api/src/modules/group/group.module.ts
nusk003/easy-pos a8713d7 packages/apps/api/src/modules/group/group.module.ts
true
200
578
import { MikroOrmModule } from '@mikro-orm/nestjs'; import { forwardRef, Module } from '@nestjs/common'; import { AuthModule } from '@src/modules/auth/auth.module'; import { Hotel } from '@src/modules/hotel/entities'; import { Group } from './entities'; import { GroupResolver } from './group.resolver'; import { GroupSe...
2
hypha-dao/hypha-web
e0d8498
packages/core/src/governance/server/repository.ts
TypeScript
www.github.com/hypha-dao/hypha-web/tree/main/packages/core/src/governance/server/repository.ts
https://raw.githubusercontent.com/hypha-dao/hypha-web/e0d8498/packages/core/src/governance/server/repository.ts
hypha-dao/hypha-web e0d8498 packages/core/src/governance/server/repository.ts
true
200
571
import { FilterParams, PaginatedResponse, PaginationParams, } from '../../common'; import { Document } from '../types'; export type FindAllBySpaceSlugConfig = { pagination: PaginationParams<Document>; filter: FilterParams<Document>; }; export interface DocumentRepository { findById(id: number): Promise<Do...
3
ValRoss132/e-com
4dc84c3
src/utils/useDebounce.ts
TypeScript
www.github.com/ValRoss132/e-com/tree/main/src/utils/useDebounce.ts
https://raw.githubusercontent.com/ValRoss132/e-com/4dc84c3/src/utils/useDebounce.ts
ValRoss132/e-com 4dc84c3 src/utils/useDebounce.ts
true
200
451
import { useState, useEffect } from "react"; export default function useDebounce<T>( value: T, delay?: number, ): T { const [deboucedValue, setDebouncedValue] = useState<T>(value); useEffect(() => { const timer = setTimeout( () => setDebouncedValue(value), delay || 500,...
7
Fulail-kt/Doc2heal-backend
42d6558
src/frameworks/passwordServices.ts/jwt.ts
TypeScript
www.github.com/Fulail-kt/Doc2heal-backend/tree/main/src/frameworks/passwordServices.ts/jwt.ts
https://raw.githubusercontent.com/Fulail-kt/Doc2heal-backend/42d6558/src/frameworks/passwordServices.ts/jwt.ts
Fulail-kt/Doc2heal-backend 42d6558 src/frameworks/passwordServices.ts/jwt.ts
true
200
1,083
import jwt from '../../useCases/types/jwt.types' import JWT from 'jsonwebtoken' require('dotenv').config(); interface JwtTokens { accessToken: string; refreshToken: string; } class JWTtoken implements jwt { async createJWT(userId: string, role: string, isApproved: boolean): Promise<JwtTokens> { try { ...
6
Damian2057/Game-Board-Designer
8b5f281
backend/src/game/game.module.ts
TypeScript
www.github.com/Damian2057/Game-Board-Designer/tree/main/backend/src/game/game.module.ts
https://raw.githubusercontent.com/Damian2057/Game-Board-Designer/8b5f281/backend/src/game/game.module.ts
Damian2057/Game-Board-Designer 8b5f281 backend/src/game/game.module.ts
true
200
1,157
import { Module } from '@nestjs/common'; import { GameController } from './controller/game.controller'; import { GameService } from './service/game.service'; import { TypeOrmModule } from "@nestjs/typeorm"; import { Tag } from "./model/domain/tag.entity"; import { Component } from "./model/domain/component"; import { G...
1
hdevidas/CookMe
8e18093
client/src/app/pages/home/home.component.ts
TypeScript
www.github.com/hdevidas/CookMe/tree/main/client/src/app/pages/home/home.component.ts
https://raw.githubusercontent.com/hdevidas/CookMe/8e18093/client/src/app/pages/home/home.component.ts
hdevidas/CookMe 8e18093 client/src/app/pages/home/home.component.ts
true
200
725
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Subscription } from 'rxjs'; import { UserService } from 'src/app/services/user.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html' }) export class HomeComponent { isAuth = false; priv...
5
lyswifter/bitcoin-domain
f5de1bc
src/router/index.ts
TypeScript
www.github.com/lyswifter/bitcoin-domain/tree/main/src/router/index.ts
https://raw.githubusercontent.com/lyswifter/bitcoin-domain/f5de1bc/src/router/index.ts
lyswifter/bitcoin-domain f5de1bc src/router/index.ts
true
200
1,011
import { createRouter, createWebHashHistory } from "vue-router"; import Home from "../components/Home.vue"; import MyWallet from "../components/MyWallet.vue"; const routes = [ { path: '/', name: "home", component: Home, props: true, }, { path: '/wallet/:addr', ...
2
QbombQ/skip-selector
f42dd5b
src/theme/theme.ts
TypeScript
www.github.com/QbombQ/skip-selector/tree/main/src/theme/theme.ts
https://raw.githubusercontent.com/QbombQ/skip-selector/f42dd5b/src/theme/theme.ts
QbombQ/skip-selector f42dd5b src/theme/theme.ts
true
200
2,934
import { createTheme, PaletteMode } from '@mui/material'; export const getTheme = (mode: PaletteMode) => createTheme({ palette: { mode, primary: { main: '#0052CC', light: '#4C9AFF', dark: '#0747A6', }, secondary: { main: '#00875A', light: '#57D9A3', dark: '#006644'...
3
notchuks/tenerr
5dc3307
client/src/utils/upload.ts
TypeScript
www.github.com/notchuks/tenerr/tree/main/client/src/utils/upload.ts
https://raw.githubusercontent.com/notchuks/tenerr/5dc3307/client/src/utils/upload.ts
notchuks/tenerr 5dc3307 client/src/utils/upload.ts
true
200
414
import axios from "axios"; const upload = async (file: File) => { const data = new FormData(); data.append("file", file); data.append("upload_preset", "tenerr"); try { const res = await axios.post("https://api.cloudinary.com/v1_1/drgbxw7jw/image/upload", data); console.log(res); const { url } = re...
6
igrbrt/serverless-dynamodb
37d670b
src/database/db.ts
TypeScript
www.github.com/igrbrt/serverless-dynamodb/tree/main/src/database/db.ts
https://raw.githubusercontent.com/igrbrt/serverless-dynamodb/37d670b/src/database/db.ts
igrbrt/serverless-dynamodb 37d670b src/database/db.ts
true
200
480
import * as AWS from 'aws-sdk'; import { DocumentClient } from 'aws-sdk/clients/dynamodb'; import { ConfigurationServicePlaceholders } from 'aws-sdk/lib/config_service_placeholders'; const createDynamoDBClient = (): DocumentClient => { if (process.env.IS_OFFLINE) { return new AWS.DynamoDB.DocumentClient({ ...
7
cremind-ai/memoryweb-navigator-extension
7ac08a8
src/types/index.ts
TypeScript
www.github.com/cremind-ai/memoryweb-navigator-extension/tree/main/src/types/index.ts
https://raw.githubusercontent.com/cremind-ai/memoryweb-navigator-extension/7ac08a8/src/types/index.ts
cremind-ai/memoryweb-navigator-extension 7ac08a8 src/types/index.ts
true
200
617
export type ResPayloadType = { status: number; msg: string; payload?: any; requestId?: string; code?: number; }; export enum CommunicationMessageTypeEnum { CHECK_AUTH = "check_auth", STORE_MEMORY = "store_memory", CAPTURE_SCREENSHOT = "capture_screenshot", SIMILARITY_SEARCH = "security_search", LOG...
1
felmartins1985/projectNest
101d731
src/my-dinamic/my-dynamic.module.ts
TypeScript
www.github.com/felmartins1985/projectNest/tree/main/src/my-dinamic/my-dynamic.module.ts
https://raw.githubusercontent.com/felmartins1985/projectNest/101d731/src/my-dinamic/my-dynamic.module.ts
felmartins1985/projectNest 101d731 src/my-dinamic/my-dynamic.module.ts
true
200
592
import { DynamicModule, Module } from '@nestjs/common'; export type MyDynamicModuleConfigs = { apiKey: string; apiUrl: string; }; export const MY_DYNAMIC_CONFIG = 'MY_DYNAMIC_CONFIG'; @Module({}) export class MyDynamicModule { static register(configs: MyDynamicModuleConfigs): DynamicModule { // console.log(...
4
ejooremmanuel/calculator-client
eac4e4d
src/hooks/auth.ts
TypeScript
www.github.com/ejooremmanuel/calculator-client/tree/main/src/hooks/auth.ts
https://raw.githubusercontent.com/ejooremmanuel/calculator-client/eac4e4d/src/hooks/auth.ts
ejooremmanuel/calculator-client eac4e4d src/hooks/auth.ts
true
200
807
import { useMutation } from "@tanstack/react-query"; import { axiosInstance } from "../constants"; import { setLoginToken } from "../storage"; export const useCreateUser = () => { const { mutateAsync, isLoading } = useMutation({ mutationFn: async (data: any) => { const res = await axiosInstance.post(`/auth...
5
signum-network/signumjs
6036ea6
packages/core/src/api/factories/asset/placeAskOrder.ts
TypeScript
www.github.com/signum-network/signumjs/tree/main/packages/core/src/api/factories/asset/placeAskOrder.ts
https://raw.githubusercontent.com/signum-network/signumjs/6036ea6/packages/core/src/api/factories/asset/placeAskOrder.ts
signum-network/signumjs 6036ea6 packages/core/src/api/factories/asset/placeAskOrder.ts
true
200
587
/** * Copyright (c) 2020 Burst Apps Team * Modified (c) 2022 Signum Network */ import {ChainService} from '../../../service/chainService'; import {PlaceOrderArgs} from '../../../typings/args'; import {placeOrder} from './placeOrder'; /** * * Use with {@link ApiComposer} and belongs to {@link AssetApi.placeAskOrde...
2
future4code/barros-Diego-Santos
21fcbe0
modulo5/intro-express/src/index.ts
TypeScript
www.github.com/future4code/barros-Diego-Santos/tree/main/modulo5/intro-express/src/index.ts
https://raw.githubusercontent.com/future4code/barros-Diego-Santos/21fcbe0/modulo5/intro-express/src/index.ts
future4code/barros-Diego-Santos 21fcbe0 modulo5/intro-express/src/index.ts
true
200
3,626
import express,{Request, Response} from "express"; import cors from "cors"; const app = express(); app.use(express.json()); app.use(cors()); // exercicio 1) // // url = http://localhost:3003/ // app.get("/",(req:Request, res:Response) => { res.status(200).send("Hello world") }); // exercicio 2) // type User = { ...
3
Atulvermaon18/chat-widget
f3d70b4
src/app/element.module.ts
TypeScript
www.github.com/Atulvermaon18/chat-widget/tree/main/src/app/element.module.ts
https://raw.githubusercontent.com/Atulvermaon18/chat-widget/f3d70b4/src/app/element.module.ts
Atulvermaon18/chat-widget f3d70b4 src/app/element.module.ts
true
200
672
import { BrowserModule } from '@angular/platform-browser' import { BrowserAnimationsModule } from '@angular/platform-browser/animations' import { Injector, NgModule } from '@angular/core' import { createCustomElement } from '@angular/elements' import { ChatModule, ChatWidgetComponent } from './chat/' @NgModule({ im...
6
anhmvc/idinsight-admin-app
bef4947
src/app/content-card/content-card.component.ts
TypeScript
www.github.com/anhmvc/idinsight-admin-app/tree/main/src/app/content-card/content-card.component.ts
https://raw.githubusercontent.com/anhmvc/idinsight-admin-app/bef4947/src/app/content-card/content-card.component.ts
anhmvc/idinsight-admin-app bef4947 src/app/content-card/content-card.component.ts
true
200
428
import { Component, Input, NO_ERRORS_SCHEMA } from '@angular/core'; @Component({ selector: 'app-content-card', standalone: true, imports: [], templateUrl: './content-card.component.html', styleUrl: './content-card.component.css', schemas: [NO_ERRORS_SCHEMA], }) export class ContentCardComponent { @Input(...
7
dk-nodesoft/typescript-monorepo
4fa011e
packages/ts-utils/src/object/remove-undefined.ts
TypeScript
www.github.com/dk-nodesoft/typescript-monorepo/tree/main/packages/ts-utils/src/object/remove-undefined.ts
https://raw.githubusercontent.com/dk-nodesoft/typescript-monorepo/4fa011e/packages/ts-utils/src/object/remove-undefined.ts
dk-nodesoft/typescript-monorepo 4fa011e packages/ts-utils/src/object/remove-undefined.ts
true
200
720
import { forEach, isArray, isObject } from 'lodash'; import { isUndefined } from '../typeguards'; export const removeUndefined = <U = unknown>(obj: unknown): U => { if (isArray(obj)) { forEach(obj, (value, index) => { if (typeof value === 'object' && value !== null) { removeUndefined(value); ...
4
vannizhang/EFGs-Myanmar
92068a0
src/store/Map/reducer.ts
TypeScript
www.github.com/vannizhang/EFGs-Myanmar/tree/main/src/store/Map/reducer.ts
https://raw.githubusercontent.com/vannizhang/EFGs-Myanmar/92068a0/src/store/Map/reducer.ts
vannizhang/EFGs-Myanmar 92068a0 src/store/Map/reducer.ts
true
200
2,259
import { Point } from '@arcgis/core/geometry'; import { createSlice, // createSelector, PayloadAction, // createAsyncThunk } from '@reduxjs/toolkit'; export type ImageryTileLayerIdentifyResult = { point: Point; pixelValue: number; }; /** * count of pixels by pixel value */ export type Pixels...
5
DanielHernandezTalla/KGD
ea6de00
src/utils/handlePermisos.ts
TypeScript
www.github.com/DanielHernandezTalla/KGD/tree/main/src/utils/handlePermisos.ts
https://raw.githubusercontent.com/DanielHernandezTalla/KGD/ea6de00/src/utils/handlePermisos.ts
DanielHernandezTalla/KGD ea6de00 src/utils/handlePermisos.ts
true
200
745
import { handlePost } from "./handlePost"; export const handrePermisos = (rutasToCheck: (string)[], setChecked: any) => { let values = rutasToCheck.map((item) => ({ ROULE_NAME: item })); const request = { url: 'permisopagina', values: values, isCifrado: false, onSuccess: (data:...
0
inge5/juegos_centelsa
5bda483
src/app/components/fin-del-juego/fin-del-juego.component.ts
TypeScript
www.github.com/inge5/juegos_centelsa/tree/main/src/app/components/fin-del-juego/fin-del-juego.component.ts
https://raw.githubusercontent.com/inge5/juegos_centelsa/5bda483/src/app/components/fin-del-juego/fin-del-juego.component.ts
inge5/juegos_centelsa 5bda483 src/app/components/fin-del-juego/fin-del-juego.component.ts
true
200
501
import { Component, Input, OnInit } from '@angular/core'; @Component({ selector: 'app-fin-del-juego', templateUrl: './fin-del-juego.component.html', styleUrls: ['./fin-del-juego.component.scss'], }) export class FinDelJuegoComponent implements OnInit { @Input() imagenTrueno: string = ''; @Input() imagenTitul...
1
yashjain3010/Notion-Clone
fb722af
convex/environment.d.ts
TypeScript
www.github.com/yashjain3010/Notion-Clone/tree/main/convex/environment.d.ts
https://raw.githubusercontent.com/yashjain3010/Notion-Clone/fb722af/convex/environment.d.ts
yashjain3010/Notion-Clone fb722af convex/environment.d.ts
true
200
311
// This file is needed to support autocomplete for process.env export {}; declare global { namespace NodeJS { interface ProcessEnv { // clerk issuer url (go to your clerk dashboard > JWT Templates > New template > Convex > Save and copy your Issuer URL) CLERK_ISSUER_URL: string; } } }
3
asianviking/nextjs13-connectkit-siwe-shadcn
1264a60
src/lib/utils.ts
TypeScript
www.github.com/asianviking/nextjs13-connectkit-siwe-shadcn/tree/main/src/lib/utils.ts
https://raw.githubusercontent.com/asianviking/nextjs13-connectkit-siwe-shadcn/1264a60/src/lib/utils.ts
asianviking/nextjs13-connectkit-siwe-shadcn 1264a60 src/lib/utils.ts
true
200
300
import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } export const tap = async <T>( value: T, cb: (value: T) => Promise<unknown> ): Promise<T> => { await cb(value) return value }
2
DotfileTech/flow-boilerplate
84064ea
frontend/src/steps/utils/type.ts
TypeScript
www.github.com/DotfileTech/flow-boilerplate/tree/main/frontend/src/steps/utils/type.ts
https://raw.githubusercontent.com/DotfileTech/flow-boilerplate/84064ea/frontend/src/steps/utils/type.ts
DotfileTech/flow-boilerplate 84064ea frontend/src/steps/utils/type.ts
true
200
1,312
import { CompanyStatusEnum } from '../../constants/company-status.enum'; import { IndividualRoleEnum } from '../../constants'; export interface CompanyEditFormValues { name: string; commercial_name: string; registration_number: string; country: string; legal_form: string; status: CompanyStatusEnum; regis...
6
GBValdez/aviones_universidad
852abfc
src/app/catalogues/catalogue-form/catalogue-form.component.ts
TypeScript
www.github.com/GBValdez/aviones_universidad/tree/main/src/app/catalogues/catalogue-form/catalogue-form.component.ts
https://raw.githubusercontent.com/GBValdez/aviones_universidad/852abfc/src/app/catalogues/catalogue-form/catalogue-form.component.ts
GBValdez/aviones_universidad 852abfc src/app/catalogues/catalogue-form/catalogue-form.component.ts
true
200
3,004
import { Component, Inject, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators, } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { MAT_DIALOG_DATA, MatDialogModule,...
7
SoftwareEngineering-jnu1/AgileSupportProgram_FE
265b5e7
src/api/instance/index.ts
TypeScript
www.github.com/SoftwareEngineering-jnu1/AgileSupportProgram_FE/tree/main/src/api/instance/index.ts
https://raw.githubusercontent.com/SoftwareEngineering-jnu1/AgileSupportProgram_FE/265b5e7/src/api/instance/index.ts
SoftwareEngineering-jnu1/AgileSupportProgram_FE 265b5e7 src/api/instance/index.ts
true
200
502
import axios, { AxiosInstance, AxiosRequestConfig } from "axios"; const initInstance = (config: AxiosRequestConfig): AxiosInstance => { const instance = axios.create({ timeout: 5000, withCredentials: true, ...config, headers: { // Accept: 'application/json', "Content-Type": "application/j...
4
DimasPramantya/express_ts
f98a594
src/schema/user_schema.ts
TypeScript
www.github.com/DimasPramantya/express_ts/tree/main/src/schema/user_schema.ts
https://raw.githubusercontent.com/DimasPramantya/express_ts/f98a594/src/schema/user_schema.ts
DimasPramantya/express_ts f98a594 src/schema/user_schema.ts
true
200
685
import { z } from 'zod'; import { IsString, IsEmail, IsOptional } from 'class-validator'; import { Expose, Type } from 'class-transformer'; const register = z.object({ email: z.string().email(), username: z.string().min(3), password: z.string().min(8), }); const login = z.object({ username: z.strin...
5