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
pechaz/fullstack-backend
3ba5d1e
src/modules/task/task.service.ts
TypeScript
www.github.com/pechaz/fullstack-backend/tree/main/src/modules/task/task.service.ts
https://raw.githubusercontent.com/pechaz/fullstack-backend/3ba5d1e/src/modules/task/task.service.ts
pechaz/fullstack-backend 3ba5d1e src/modules/task/task.service.ts
true
200
1,595
import httpStatus from 'http-status'; import mongoose from 'mongoose'; import ApiError from '../errors/ApiError'; import { ITask } from './task.interfaces'; import Task from './task.model'; /** * Create a task * @param {ITask} taskBody * @returns {Promise<ITask>} */ export const createTask = async (taskBody: ITas...
0
ThangDPham/welldone-BE
d76a6df
src/projects/projects.service.ts
TypeScript
www.github.com/ThangDPham/welldone-BE/tree/main/src/projects/projects.service.ts
https://raw.githubusercontent.com/ThangDPham/welldone-BE/d76a6df/src/projects/projects.service.ts
ThangDPham/welldone-BE d76a6df src/projects/projects.service.ts
true
200
10,055
import { Injectable, NotFoundException, ForbiddenException, BadRequestException, } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository, In } from 'typeorm'; import { Project } from './entities/project.entity'; import { Group } from '../group/entities/group.entity'; imp...
5
yaolei/flexux
3ddc7ee
src/lib/navlist.ts
TypeScript
www.github.com/yaolei/flexux/tree/main/src/lib/navlist.ts
https://raw.githubusercontent.com/yaolei/flexux/3ddc7ee/src/lib/navlist.ts
yaolei/flexux 3ddc7ee src/lib/navlist.ts
true
200
1,017
const NAVLISTROUTER = [ { href: '/', label: '首页', MenuIconIndex: 0 }, { href: "/posts", label: '文章', MenuIconIndex: 1 }, { href: '/ai', label: 'Ai Chat', MenuIconIndex: 2 }, { href: '/newfeature', labe...
0
LeHongPhatt/exc-mobile
e55ede1
src/store/notify/Reducer.ts
TypeScript
www.github.com/LeHongPhatt/exc-mobile/tree/main/src/store/notify/Reducer.ts
https://raw.githubusercontent.com/LeHongPhatt/exc-mobile/e55ede1/src/store/notify/Reducer.ts
LeHongPhatt/exc-mobile e55ede1 src/store/notify/Reducer.ts
true
200
1,989
/** @format */ import {createSlice} from '@reduxjs/toolkit'; import {INofifyState} from 'types'; const initialState: INofifyState = { message: '', type: 'info', options: { position: { horizontal: 'center', vertical: 'top', }, autoHideDuration: 6000, useI18n: false, }, }; const notif...
5
sys-repo/sys
c5718c7
code/sys/std/src/m.Ignore/t.ts
TypeScript
www.github.com/sys-repo/sys/tree/main/code/sys/std/src/m.Ignore/t.ts
https://raw.githubusercontent.com/sys-repo/sys/c5718c7/code/sys/std/src/m.Ignore/t.ts
sys-repo/sys c5718c7 code/sys/std/src/m.Ignore/t.ts
true
200
1,622
import type { t } from './common.ts'; /** * Tools for working with ignore files (eg. ".gitignore"). */ export type IgnoreLib = { /** Create an instance of an glob-ignore helpers (eg. from a `.gititnore` file). */ create(rules: string | string[]): Ignore; }; /** * A glob-ignore pattern matcher. */ export type...
7
sknups/item-cloudfunctions
1b9a1d7
src/functions/count-items.ts
TypeScript
www.github.com/sknups/item-cloudfunctions/tree/main/src/functions/count-items.ts
https://raw.githubusercontent.com/sknups/item-cloudfunctions/1b9a1d7/src/functions/count-items.ts
sknups/item-cloudfunctions 1b9a1d7 src/functions/count-items.ts
true
200
1,308
import { Request } from '@google-cloud/functions-framework'; import { Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import logger from '../helpers/logger'; import { ItemRepository } from '../persistence/item-repository'; import { AppError, NOT_AVAILABLE_TO_RETAILER } from '../app.errors'; ...
0
gabrielppd77/main-menu-admin
ce30ba9
src/libs/queries/company/useCompanyGetCompany.ts
TypeScript
www.github.com/gabrielppd77/main-menu-admin/tree/main/src/libs/queries/company/useCompanyGetCompany.ts
https://raw.githubusercontent.com/gabrielppd77/main-menu-admin/ce30ba9/src/libs/queries/company/useCompanyGetCompany.ts
gabrielppd77/main-menu-admin ce30ba9 src/libs/queries/company/useCompanyGetCompany.ts
true
200
778
import { useQuery, useQueryClient } from "@tanstack/react-query"; import api from "@libs/api"; import { CompanyResponseDTO } from "./dtos/CompanyResponseDTO"; import { extractError } from "@libs/alert"; const query = ["Company"]; export function useCompanyGetCompany() { async function handleRequest() { const ...
5
tOmAS1210/tp_clinica_laboIV
45d547b
src/app/solicitar-turno/solicitar-turno.component.ts
TypeScript
www.github.com/tOmAS1210/tp_clinica_laboIV/tree/main/src/app/solicitar-turno/solicitar-turno.component.ts
https://raw.githubusercontent.com/tOmAS1210/tp_clinica_laboIV/45d547b/src/app/solicitar-turno/solicitar-turno.component.ts
tOmAS1210/tp_clinica_laboIV 45d547b src/app/solicitar-turno/solicitar-turno.component.ts
true
200
9,604
import { Component } from '@angular/core'; import { UserService } from '../services/user.service'; import { FormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { RouterLink } from '@angular/router'; import Swal from 'sweetalert2'; @Component({ selector: 'app-solicitar-turno'...
0
alejandro443/winston
82eeba2
src/domain/repositories/ProductBrandRepository/ProductBrandRepository.ts
TypeScript
www.github.com/alejandro443/winston/tree/main/src/domain/repositories/ProductBrandRepository/ProductBrandRepository.ts
https://raw.githubusercontent.com/alejandro443/winston/82eeba2/src/domain/repositories/ProductBrandRepository/ProductBrandRepository.ts
alejandro443/winston 82eeba2 src/domain/repositories/ProductBrandRepository/ProductBrandRepository.ts
true
200
1,093
import { NewProductBrandDto, UpdateProductBrandDto, } from 'src/core/shared/dto/ProductBrand/product_brand_dto'; import { ProductBrand } from 'src/domain/entities/ProductBrand.entity'; export class ProductBrandRepository { constructor() {} async findOne(id: number) { try { return ProductBrand.findOn...
5
Drack112/Car-Check-gRPC
1ea2f5d
client/src/services/order/order.module.ts
TypeScript
www.github.com/Drack112/Car-Check-gRPC/tree/main/client/src/services/order/order.module.ts
https://raw.githubusercontent.com/Drack112/Car-Check-gRPC/1ea2f5d/client/src/services/order/order.module.ts
Drack112/Car-Check-gRPC 1ea2f5d client/src/services/order/order.module.ts
true
200
1,050
import { MiddlewareConsumer, Module, NestModule, RequestMethod, } from '@nestjs/common'; import { ClientsModule } from '@nestjs/microservices'; import { AuthenticateMiddleware } from 'src/middlewares/authentication.middleware'; import { authorize } from 'src/middlewares/authorization.middleware'; import { UserM...
7
MeizBR/ihrm-Imbus-Human-Resources-Management-Web-Application
d7e1832
frontend/src/app/modules/projects-management/components/roles/roles-chip-list/roles-chip-list.component.spec.ts
TypeScript
www.github.com/MeizBR/ihrm-Imbus-Human-Resources-Management-Web-Application/tree/main/frontend/src/app/modules/projects-management/components/roles/roles-chip-list/roles-chip-list.component.spec.ts
https://raw.githubusercontent.com/MeizBR/ihrm-Imbus-Human-Resources-Management-Web-Application/d7e1832/frontend/src/app/modules/projects-management/components/roles/roles-chip-list/roles-chip-list.component.spec.ts
MeizBR/ihrm-Imbus-Human-Resources-Management-Web-Application d7e1832 frontend/src/app/modules/projects-management/components/roles/roles-chip-list/roles-chip-list.component.spec.ts
true
200
4,981
import { SimpleChange } from '@angular/core'; import { By } from '@angular/platform-browser'; import { MatOption } from '@angular/material/core'; import { ReactiveFormsModule } from '@angular/forms'; import { MatChip, MatChipList } from '@angular/material/chips'; import { async, ComponentFixture, TestBed } from '@angul...
5
codebdy/dingflow
c2fbf79
src/workflow-editor/reducers/errorsReducer.ts
TypeScript
www.github.com/codebdy/dingflow/tree/main/src/workflow-editor/reducers/errorsReducer.ts
https://raw.githubusercontent.com/codebdy/dingflow/c2fbf79/src/workflow-editor/reducers/errorsReducer.ts
codebdy/dingflow c2fbf79 src/workflow-editor/reducers/errorsReducer.ts
true
200
329
import { Action, ActionType, SetErrorsAction } from "../actions"; import { IErrors } from "../interfaces/state"; export function errorsReducer(state: IErrors, action: Action): IErrors { switch (action.type) { case ActionType.SET_ERRORS: { return (action as SetErrorsAction).payload?.errors } } retur...
0
acquia/next-acms
2d82ca1
jest.config.ts
TypeScript
www.github.com/acquia/next-acms/tree/main/jest.config.ts
https://raw.githubusercontent.com/acquia/next-acms/2d82ca1/jest.config.ts
acquia/next-acms 2d82ca1 jest.config.ts
true
200
428
import type { Config } from '@jest/types'; const config: Config.InitialOptions = { projects: ['<rootDir>', '<rootDir>/tests/starters/basic-starter'], preset: 'ts-jest/presets/js-with-ts', testEnvironment: 'node', testMatch: ['**/tests/**/*.test.ts'], testPathIgnorePatterns: [ '/node_modules/', '/cypr...
7
nhlabs/wallet-monorepo
3ce893a
packages/engine/src/managers/nft.ts
TypeScript
www.github.com/nhlabs/wallet-monorepo/tree/main/packages/engine/src/managers/nft.ts
https://raw.githubusercontent.com/nhlabs/wallet-monorepo/3ce893a/packages/engine/src/managers/nft.ts
nhlabs/wallet-monorepo 3ce893a packages/engine/src/managers/nft.ts
true
200
8,042
import { defaultAbiCoder } from '@ethersproject/abi'; import axios from 'axios'; import type { Collection, NFTAsset, NFTServiceResp, NFTTransaction, } from '@mywallet/engine/src/types/nft'; import { NFTChainMap } from '@mywallet/engine/src/types/nft'; import backgroundApiProxy from '@mywallet/kit/src/backgroun...
5
dpetrova/typescript-node-react
1667a96
google-map/src/CustomMap.ts
TypeScript
www.github.com/dpetrova/typescript-node-react/tree/main/google-map/src/CustomMap.ts
https://raw.githubusercontent.com/dpetrova/typescript-node-react/1667a96/google-map/src/CustomMap.ts
dpetrova/typescript-node-react 1667a96 google-map/src/CustomMap.ts
true
200
1,198
// requirements to can add marker export interface Mappable { location: { lat: number; lng: number; }; markerContent(): string; } export class CustomMap { private googleMap: google.maps.Map; constructor(divId: string) { // "!" tells TS that you sure it's not null or...
0
ebn646/audiograph-supabase-admin
1fa1720
tests/add-artist-full-schema.spec.ts
TypeScript
www.github.com/ebn646/audiograph-supabase-admin/tree/main/tests/add-artist-full-schema.spec.ts
https://raw.githubusercontent.com/ebn646/audiograph-supabase-admin/1fa1720/tests/add-artist-full-schema.spec.ts
ebn646/audiograph-supabase-admin 1fa1720 tests/add-artist-full-schema.spec.ts
true
200
2,124
// tests/addArtistFullSchema.spec.ts import { test, expect } from '@playwright/test'; import { addArtistFullSchema } from '@/schemas/x-artist-full-schema'; import * as fs from 'fs'; import * as path from 'path'; test('addArtistFullSchema should validate static testArtistData.json', async () => { // Build the path to...
7
mbarz/advent-of-code
b5c4da9
src/2021/11/flashing-octos.spec.ts
TypeScript
www.github.com/mbarz/advent-of-code/tree/main/src/2021/11/flashing-octos.spec.ts
https://raw.githubusercontent.com/mbarz/advent-of-code/b5c4da9/src/2021/11/flashing-octos.spec.ts
mbarz/advent-of-code b5c4da9 src/2021/11/flashing-octos.spec.ts
true
200
1,193
import { OctoFlash } from './flashing-octos'; function parse(s: string) { return s.split('\n').map((l) => l.split('').map((n) => +n)); } const smallExample = parse(`11111 19991 19191 19991 11111`); const bigExample = parse(`5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 484...
1
mehedihsiam/vaistat-clone
050c658
utils/getFileObject.ts
TypeScript
www.github.com/mehedihsiam/vaistat-clone/tree/main/utils/getFileObject.ts
https://raw.githubusercontent.com/mehedihsiam/vaistat-clone/050c658/utils/getFileObject.ts
mehedihsiam/vaistat-clone 050c658 utils/getFileObject.ts
true
200
424
import mime from 'mime'; import {Asset} from 'react-native-image-picker'; type FileType = Asset & { customType?: string; }; const getFileObject = (asset: FileType) => { const newImageUri = 'file:///' + asset.uri?.split('file:/').join(''); return { name: asset.fileName, size: asset.fileSize, type: as...
0
BrokiDev/Natours
56df08e
src/controller/Users/auth/auth.controller.ts
TypeScript
www.github.com/BrokiDev/Natours/tree/main/src/controller/Users/auth/auth.controller.ts
https://raw.githubusercontent.com/BrokiDev/Natours/56df08e/src/controller/Users/auth/auth.controller.ts
BrokiDev/Natours 56df08e src/controller/Users/auth/auth.controller.ts
true
200
8,979
import { createHash } from "crypto"; import { config } from "dotenv"; import { NextFunction, Request, Response } from "express"; import { catchAsync } from "../../../helpers/catchAsync"; import { encryptPassword, verifyPassword } from "../../../helpers/encrypt"; import { createSendToken, generateToken, sendToken } from...
5
kudrich-sergey/next-todo-2.0
adc2ecc
app/api/auth/register/route.ts
TypeScript
www.github.com/kudrich-sergey/next-todo-2.0/tree/main/app/api/auth/register/route.ts
https://raw.githubusercontent.com/kudrich-sergey/next-todo-2.0/adc2ecc/app/api/auth/register/route.ts
kudrich-sergey/next-todo-2.0 adc2ecc app/api/auth/register/route.ts
true
200
1,206
import { NextRequest, NextResponse } from "next/server"; import { AuthError } from "next-auth"; import bcrypt from "bcryptjs"; import { IAuthForm } from "@/components/form-auth/form.interface"; import { signIn } from "@/auth"; import { db } from "@/lib/db"; export async function POST(request: NextRequest) { const {...
7
USpiri/cv
bdc29b0
src/data/getLocaleCollection.ts
TypeScript
www.github.com/USpiri/cv/tree/main/src/data/getLocaleCollection.ts
https://raw.githubusercontent.com/USpiri/cv/bdc29b0/src/data/getLocaleCollection.ts
USpiri/cv bdc29b0 src/data/getLocaleCollection.ts
true
200
376
import { defaultLang } from "@/i18n/ui"; import { getCollection } from "astro:content"; import type { CollectionKey } from "astro:content"; export const getLocaleCollection = async <T extends CollectionKey>( collection: T, lang?: string, ) => { const data = await getCollection(collection); return data...
1
cyberwaver/fintech-wallet-api-DDD
8263c9b
src/modules/wallet/application/commands/RequestBulkWalletTransfer/RequestBulkWalletTransferCommandHandler.ts
TypeScript
www.github.com/cyberwaver/fintech-wallet-api-DDD/tree/main/src/modules/wallet/application/commands/RequestBulkWalletTransfer/RequestBulkWalletTransferCommandHandler.ts
https://raw.githubusercontent.com/cyberwaver/fintech-wallet-api-DDD/8263c9b/src/modules/wallet/application/commands/RequestBulkWalletTransfer/RequestBulkWalletTransferCommandHandler.ts
cyberwaver/fintech-wallet-api-DDD 8263c9b src/modules/wallet/application/commands/RequestBulkWalletTransfer/RequestBulkWalletTransferCommandHandler.ts
true
200
2,524
import { CommandHandler } from '@nestjs/cqrs'; import { plainToClass } from 'class-transformer'; import { CommandHandlerBase } from 'src/common/application/CommandHandlerBase'; import { Amount } from 'src/common/domain/Amount'; import { UniqueEntityID } from 'src/common/domain/UniqueEntityID'; import { IPersistenceMana...
0
abdulmaleekadams/finance-dashboard
65b2c18
app/action.ts
TypeScript
www.github.com/abdulmaleekadams/finance-dashboard/tree/main/app/action.ts
https://raw.githubusercontent.com/abdulmaleekadams/finance-dashboard/65b2c18/app/action.ts
abdulmaleekadams/finance-dashboard 65b2c18 app/action.ts
true
200
1,476
'use server'; import { kpisData } from '@/data/data'; import { products } from '@/data/data'; import { transactions } from '@/data/data'; import connectToDb from '@/lib/connectToDb'; import KPI from '@/models/KPI'; import Product from '@/models/Product'; import Transaction from '@/models/Transactions'; import mongoose...
3
vvictorfonseca/star-fighters
ca61551
src/controllers/rankingController.ts
TypeScript
www.github.com/vvictorfonseca/star-fighters/tree/main/src/controllers/rankingController.ts
https://raw.githubusercontent.com/vvictorfonseca/star-fighters/ca61551/src/controllers/rankingController.ts
vvictorfonseca/star-fighters ca61551 src/controllers/rankingController.ts
true
200
285
import { Request, Response } from "express"; import rankingRepository from "../repositories/rankingRepository.js"; async function getRanking(req: Request, res: Response) { const result = await rankingRepository.getRanking() res.send(result.rows) } export default getRanking;
4
yongPhuthan/worktrust_app
81102d9
mongoDbmodels/DefaultStandards.ts
TypeScript
www.github.com/yongPhuthan/worktrust_app/tree/main/mongoDbmodels/DefaultStandards.ts
https://raw.githubusercontent.com/yongPhuthan/worktrust_app/81102d9/mongoDbmodels/DefaultStandards.ts
yongPhuthan/worktrust_app 81102d9 mongoDbmodels/DefaultStandards.ts
true
200
1,091
import { Schema, model, Document, Types } from 'mongoose'; import { IServiceImage } from 'types/interfaces/ServicesEmbed'; import { serviceImageSchema } from '../types/interfaces/ServicesEmbed'; export interface IDefaultStandards extends Document { image: IServiceImage content: string; badStandardEffect?: strin...
5
Saloniatil/newapp
a1c8ff0
lib/database/models/category.model.ts
TypeScript
www.github.com/Saloniatil/newapp/tree/main/lib/database/models/category.model.ts
https://raw.githubusercontent.com/Saloniatil/newapp/a1c8ff0/lib/database/models/category.model.ts
Saloniatil/newapp a1c8ff0 lib/database/models/category.model.ts
true
200
331
import {Document, Schema, models, model} from "mongoose" export interface ICategory extends Document { _id: string; name: string; } const CategorySchema = new Schema({ name: { type: String, required: true, unique: true }, }) const Category = models.Category || model('Category', CategorySchema); export defaul...
6
DJ-Man-2099/Shop-App
09afb73
shop-front/src/app/components/modal/edit-category/edit-category.component.ts
TypeScript
www.github.com/DJ-Man-2099/Shop-App/tree/main/shop-front/src/app/components/modal/edit-category/edit-category.component.ts
https://raw.githubusercontent.com/DJ-Man-2099/Shop-App/09afb73/shop-front/src/app/components/modal/edit-category/edit-category.component.ts
DJ-Man-2099/Shop-App 09afb73 shop-front/src/app/components/modal/edit-category/edit-category.component.ts
true
200
3,632
import { Component } from '@angular/core'; import { FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { Location } from '@angular/common'; import { CategoryService } from '../../../Services/category.service'; import { FormKeys, EnhancedFormBuilderService, } from '../../../Services/enhanced...
2
ObolNetwork/obol-sdk
d7212b6
src/schema.ts
TypeScript
www.github.com/ObolNetwork/obol-sdk/tree/main/src/schema.ts
https://raw.githubusercontent.com/ObolNetwork/obol-sdk/d7212b6/src/schema.ts
ObolNetwork/obol-sdk d7212b6 src/schema.ts
true
200
2,788
import { DEFAULT_RETROACTIVE_FUNDING_REWARDS_ONLY_SPLIT, DEFAULT_RETROACTIVE_FUNDING_TOTAL_SPLIT, } from './constants'; export const operatorPayloadSchema = { type: 'object', properties: { version: { type: 'string', }, enr: { type: 'string', }, }, required: ['version', 'enr'], }...
7
trocoli96/palo-backend
f817f68
src/config/mail.config.ts
TypeScript
www.github.com/trocoli96/palo-backend/tree/main/src/config/mail.config.ts
https://raw.githubusercontent.com/trocoli96/palo-backend/f817f68/src/config/mail.config.ts
trocoli96/palo-backend f817f68 src/config/mail.config.ts
true
200
666
import { registerAs } from '@nestjs/config'; import { MailConfig } from './config.type'; import { IsString, IsOptional, IsEmail } from 'class-validator'; import validateConfig from 'src/utils/validate-config'; class EnvironmentVariablesValidator { @IsEmail() MAIL_DEFAULT_EMAIL: string; @IsString() MAIL_DEFAUL...
1
Tao119/techLinter
04a8d44
src/authentication.ts
TypeScript
www.github.com/Tao119/techLinter/tree/main/src/authentication.ts
https://raw.githubusercontent.com/Tao119/techLinter/04a8d44/src/authentication.ts
Tao119/techLinter 04a8d44 src/authentication.ts
true
200
1,259
import * as vscode from 'vscode'; import { Axios } from './service/axios'; import { convertToCamelCase } from './service/convert'; export type User = { id: number; name: string; password: string; token: number; isAdmin: boolean; }; export async function authenticateUser(ur_name: string, password: s...
0
alcidesbsilvaneto/softex-2023-instagram
ec3ff8a
src/modules/users/controller/user.controller.ts
TypeScript
www.github.com/alcidesbsilvaneto/softex-2023-instagram/tree/main/src/modules/users/controller/user.controller.ts
https://raw.githubusercontent.com/alcidesbsilvaneto/softex-2023-instagram/ec3ff8a/src/modules/users/controller/user.controller.ts
alcidesbsilvaneto/softex-2023-instagram ec3ff8a src/modules/users/controller/user.controller.ts
true
200
5,500
import { Request, Response } from "express"; import { AppDataSource } from "../../../services/database/app-data-source"; import { User } from "../entities/user.entity"; import bcrypt from "bcrypt"; import jwt from "jsonwebtoken"; import { Post } from "../../posts/entities/post.entity"; class UserController { async c...
3
Japhetism/test_render-babs
c1ffbb8
src/utils/foodProducts.ts
TypeScript
www.github.com/Japhetism/test_render-babs/tree/main/src/utils/foodProducts.ts
https://raw.githubusercontent.com/Japhetism/test_render-babs/c1ffbb8/src/utils/foodProducts.ts
Japhetism/test_render-babs c1ffbb8 src/utils/foodProducts.ts
true
200
3,733
import { FoodProduct } from "@/types/products"; import { coke, choco, canCoke, milkCake, bread, fruits, meats, foodStuff, diaryProducts, seaFood, vegetables, orange, strawberry } from "../../public/assets/dashboard/product"; export const foodProducts: FoodProduct[] = [ { _id: "#3a2e3", ...
5
nabildroid/automation
bcdf05a
src/domains/tickitck/index.ts
TypeScript
www.github.com/nabildroid/automation/tree/main/src/domains/tickitck/index.ts
https://raw.githubusercontent.com/nabildroid/automation/bcdf05a/src/domains/tickitck/index.ts
nabildroid/automation bcdf05a src/domains/tickitck/index.ts
true
200
1,479
import { Router } from "express"; import Firestore from "./repositories/firestore"; import Service from "../../core/service"; import TicktickClient from "../../services/ticktick"; import Ticktick from "./repositories/ticktick"; import GeneralStatistics from "./routes/general_statistics"; import Wallpaper from "./routes...
6
tsvetlin/design-patterns
4d5b94a
Strategy/TypeScript/src/duck/MallardDuck.ts
TypeScript
www.github.com/tsvetlin/design-patterns/tree/main/Strategy/TypeScript/src/duck/MallardDuck.ts
https://raw.githubusercontent.com/tsvetlin/design-patterns/4d5b94a/Strategy/TypeScript/src/duck/MallardDuck.ts
tsvetlin/design-patterns 4d5b94a Strategy/TypeScript/src/duck/MallardDuck.ts
true
200
355
import Duck from './Duck'; import Quack from '../quack/Quack'; import FlyWithWings from '../fly/FlyWithWings'; class MallardDuck extends Duck { constructor() { super(); this.flyBehavior = new FlyWithWings(); this.quackBehavior = new Quack(); } display() { console.log("I'm a real Mallard Duck"); ...
4
Tomm223/myTelegramm
8889ed3
src/store/Actions/ActionSingUpPage.ts
TypeScript
www.github.com/Tomm223/myTelegramm/tree/main/src/store/Actions/ActionSingUpPage.ts
https://raw.githubusercontent.com/Tomm223/myTelegramm/8889ed3/src/store/Actions/ActionSingUpPage.ts
Tomm223/myTelegramm 8889ed3 src/store/Actions/ActionSingUpPage.ts
true
200
772
import Store from '../Store' const store = new Store() const setSingUpPageError = (error: string) => { const oldData = store.getState().sing_up store.set('sing_up', { ...oldData, error, loading: false }) } const startLoadingSingUpPage = () => { const oldData = store.getState().sing_up store.set('sing_up', { ...
2
laurentiucretu68/Store-API
c54d916
src/handlers/user/getClientId.ts
TypeScript
www.github.com/laurentiucretu68/Store-API/tree/main/src/handlers/user/getClientId.ts
https://raw.githubusercontent.com/laurentiucretu68/Store-API/c54d916/src/handlers/user/getClientId.ts
laurentiucretu68/Store-API c54d916 src/handlers/user/getClientId.ts
true
200
777
import {FastifyReply, FastifyRequest} from "fastify"; import {dbName, mongoClient} from "../../db/initMongo"; import {DataBaseError, ProcessingError} from "../../utils/errors"; export async function getClientIdByEmail(req: FastifyRequest<{ Params: { email: string }}>, res: FastifyReply){ const { email } = req.para...
7
loc56553/FrontEnd-QLNX
38a8372
admin/src/app/Services/server-http.service.ts
TypeScript
www.github.com/loc56553/FrontEnd-QLNX/tree/main/admin/src/app/Services/server-http.service.ts
https://raw.githubusercontent.com/loc56553/FrontEnd-QLNX/38a8372/admin/src/app/Services/server-http.service.ts
loc56553/FrontEnd-QLNX 38a8372 admin/src/app/Services/server-http.service.ts
true
200
1,552
import { Login } from './../../models/Login'; import { Injectable } from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import { Observable , throwError } from 'rxjs'; import { retry, catchError } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class ServerHttpServic...
3
lxKylin/campus
41af4b6
src/router/login/index.ts
TypeScript
www.github.com/lxKylin/campus/tree/main/src/router/login/index.ts
https://raw.githubusercontent.com/lxKylin/campus/41af4b6/src/router/login/index.ts
lxKylin/campus 41af4b6 src/router/login/index.ts
true
200
417
import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' //表示导入的是个类型 const routes: RouteRecordRaw[] = [ { path: '/', name: 'login', component: () => import('@/pages/login/login.vue'), // 注意这里要带上 文件后缀.vue }, ] const router = createRouter({ history: ...
0
gustagt/Chamados_2
37ce9be
chamados_back/src/controllers/userHasAcesso.controller.ts
TypeScript
www.github.com/gustagt/Chamados_2/tree/main/chamados_back/src/controllers/userHasAcesso.controller.ts
https://raw.githubusercontent.com/gustagt/Chamados_2/37ce9be/chamados_back/src/controllers/userHasAcesso.controller.ts
gustagt/Chamados_2 37ce9be chamados_back/src/controllers/userHasAcesso.controller.ts
true
200
465
import { NextFunction, Request, Response } from "express"; import UserAccessService from "../service/userAccess.service"; class UserAccessController { private service = new UserAccessService(); async getAll(_req: Request, res: Response, next: NextFunction) { try { const {status, data} = await this.s...
5
Accademium/accademium-be-main
f1e102f
src/modules/cities/interfaces/city.interface.ts
TypeScript
www.github.com/Accademium/accademium-be-main/tree/main/src/modules/cities/interfaces/city.interface.ts
https://raw.githubusercontent.com/Accademium/accademium-be-main/f1e102f/src/modules/cities/interfaces/city.interface.ts
Accademium/accademium-be-main f1e102f src/modules/cities/interfaces/city.interface.ts
true
200
348
import { CountryEnum } from 'src/utils/enums/country.enum'; import { CityKey } from 'src/utils/interfaces/keys'; export interface ICity extends CityKey { name: string; description: string; housingAvailability: number; nightlife: number; societalInclusion: number; workOpportunities: number; safety: number...
6
hrithgd1/FirstProject
b06418b
script.ts
TypeScript
www.github.com/hrithgd1/FirstProject/tree/main/script.ts
https://raw.githubusercontent.com/hrithgd1/FirstProject/b06418b/script.ts
hrithgd1/FirstProject b06418b script.ts
true
200
1,192
interface User { username: string; password: string; } function registerUser(username: string, password: string): void { const users: User[] = JSON.parse(localStorage.getItem('users') || '[]'); const newUser: User = { username, password }; users.push(newUser); localStorage.setItem('users', JSON...
4
husseine93/ProjetAngular
dc0137d
src/app/shared/authentification.service.ts
TypeScript
www.github.com/husseine93/ProjetAngular/tree/main/src/app/shared/authentification.service.ts
https://raw.githubusercontent.com/husseine93/ProjetAngular/dc0137d/src/app/shared/authentification.service.ts
husseine93/ProjetAngular dc0137d src/app/shared/authentification.service.ts
true
200
883
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root', }) export class AuthentificationService { private apiUrl = 'http://localhost:3000'; construct...
2
fashion-ai-dev/LLM-Agents-MOOC-Hackathon
84b3f32
frontend/src/store/slices/chatSlice.ts
TypeScript
www.github.com/fashion-ai-dev/LLM-Agents-MOOC-Hackathon/tree/main/frontend/src/store/slices/chatSlice.ts
https://raw.githubusercontent.com/fashion-ai-dev/LLM-Agents-MOOC-Hackathon/84b3f32/frontend/src/store/slices/chatSlice.ts
fashion-ai-dev/LLM-Agents-MOOC-Hackathon 84b3f32 frontend/src/store/slices/chatSlice.ts
true
200
1,213
import { StoreSlice } from '../Store'; type ConversationHistory = { threadId: string; firstMessage: string; }; type SelectedUser = { id: number; customerId: number; }; type ChatState = { isLogsOpen: boolean; hasConversation: boolean; conversationHistory: ConversationHistory[]; selectedUser: SelectedU...
1
edward-bee/unwomen-ang
f70c969
src/app/views/pages/individual-products/individual-products.component.ts
TypeScript
www.github.com/edward-bee/unwomen-ang/tree/main/src/app/views/pages/individual-products/individual-products.component.ts
https://raw.githubusercontent.com/edward-bee/unwomen-ang/f70c969/src/app/views/pages/individual-products/individual-products.component.ts
edward-bee/unwomen-ang f70c969 src/app/views/pages/individual-products/individual-products.component.ts
true
200
1,187
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { UserProductService } from 'src/Service/userProduct.service'; import { ActivatedRoute } from '@angular/router'; import { switchMap } from 'rxjs/operators'; import { Router } from '@angular/router'; import * as $ from 'jquery'; @Component...
3
aswinraj3200/FullStack_project
b540332
Project/src/app/user-auth/user-auth.component.ts
TypeScript
www.github.com/aswinraj3200/FullStack_project/tree/main/Project/src/app/user-auth/user-auth.component.ts
https://raw.githubusercontent.com/aswinraj3200/FullStack_project/b540332/Project/src/app/user-auth/user-auth.component.ts
aswinraj3200/FullStack_project b540332 Project/src/app/user-auth/user-auth.component.ts
true
200
1,998
import { Component, EventEmitter } from '@angular/core'; import { Product, cart, logIn, signUp } from 'src/data-type'; import { UserService } from '../services/user.service'; import { ProductService } from '../services/product.service'; @Component({ selector: 'app-user-auth', templateUrl: './user-auth.component.ht...
7
HugoLiconV/budget-dashboard
60a4d0b
src/services/api.ts
TypeScript
www.github.com/HugoLiconV/budget-dashboard/tree/main/src/services/api.ts
https://raw.githubusercontent.com/HugoLiconV/budget-dashboard/60a4d0b/src/services/api.ts
HugoLiconV/budget-dashboard 60a4d0b src/services/api.ts
true
200
750
import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; import config from "config"; export async function get<T>( url: string, options?: AxiosRequestConfig ): Promise<AxiosResponse<T>> { const baseUrl = config.apiUrl; return axios.get<T>(`${baseUrl}${url}`, options); } export async function post(ur...
0
cesalberca/ng-future-exercises
01e1aa0
src/app/exercises/components/content-projection-multi/exercise/content-projection-multi.component.ts
TypeScript
www.github.com/cesalberca/ng-future-exercises/tree/main/src/app/exercises/components/content-projection-multi/exercise/content-projection-multi.component.ts
https://raw.githubusercontent.com/cesalberca/ng-future-exercises/01e1aa0/src/app/exercises/components/content-projection-multi/exercise/content-projection-multi.component.ts
cesalberca/ng-future-exercises 01e1aa0 src/app/exercises/components/content-projection-multi/exercise/content-projection-multi.component.ts
true
200
469
import { Component } from '@angular/core' import { ComponentWithMultiNgContentComponent } from './component-with-multi-ng-content/component-with-multi-ng-content.component' @Component({ selector: 'app-content-projection-multi', templateUrl: './content-projection-multi.component.html', styleUrl: './content-projec...
5
atemu-yugioh/TS-Learning
678f2c4
src/01-number.problem.test.ts
TypeScript
www.github.com/atemu-yugioh/TS-Learning/tree/main/src/01-number.problem.test.ts
https://raw.githubusercontent.com/atemu-yugioh/TS-Learning/678f2c4/src/01-number.problem.test.ts
atemu-yugioh/TS-Learning 678f2c4 src/01-number.problem.test.ts
true
200
641
import { describe, expect, it } from "vitest"; import { addTwoNumbers } from "./01-number.problem"; import { addTwoNumbersSollution } from "./01-number.solution"; describe("#AddTwoNumbers", () => { it("Should add two numbers together", () => { expect(addTwoNumbers(2, 3)).toEqual(5); expect(addTwoNumbers(3, 4...
4
AliEmamian/nestjs-mongo-cqrs
35d8103
src/config/env.validation.ts
TypeScript
www.github.com/AliEmamian/nestjs-mongo-cqrs/tree/main/src/config/env.validation.ts
https://raw.githubusercontent.com/AliEmamian/nestjs-mongo-cqrs/35d8103/src/config/env.validation.ts
AliEmamian/nestjs-mongo-cqrs 35d8103 src/config/env.validation.ts
true
200
921
import { validateSync } from 'class-validator'; import { plainToInstance } from 'class-transformer'; import { EnvConfigDto } from '../shared/models/dto/env-config.dto'; import chalk from 'chalk'; const removeObjectItem = (obj: Record<string, unknown>) => { for (const key in obj) { if (!Object.hasOwnProperty.call...
2
leobang17/leobang17.github.io
4f88e24
src/dataLayer/services/CategoryService.ts
TypeScript
www.github.com/leobang17/leobang17.github.io/tree/main/src/dataLayer/services/CategoryService.ts
https://raw.githubusercontent.com/leobang17/leobang17.github.io/4f88e24/src/dataLayer/services/CategoryService.ts
leobang17/leobang17.github.io 4f88e24 src/dataLayer/services/CategoryService.ts
true
200
1,172
import CategoryTree from '../../datastructures/category/CategoryTree' import { GroupByNode } from '../../@types/mdx-types' import CategoryQueryService from './CategoryQueryService' import CategoryStrings from '../../datastructures/category/CategoryStrings' class CategoryService { constructor(private categoryQuerySer...
1
tomasnyvlt-dp/usecase
6c9948e
utils/__tests__/getFormattedDate.test.ts
TypeScript
www.github.com/tomasnyvlt-dp/usecase/tree/main/utils/__tests__/getFormattedDate.test.ts
https://raw.githubusercontent.com/tomasnyvlt-dp/usecase/6c9948e/utils/__tests__/getFormattedDate.test.ts
tomasnyvlt-dp/usecase 6c9948e utils/__tests__/getFormattedDate.test.ts
true
200
791
import { describe, expect, it } from "@jest/globals"; import getFormattedDate from "../getFormattedDate"; describe("getFormattedDate function", () => { it("should return formatted date 1.1.2008 as 2008-01-01", () => { const date = "1.1.2008"; const expectedResult = "2008-01-01"; expect(getFormattedDate(d...
7
wix-incubator/jest-allure2-reporter
f4b6098
src/options/common/appenderExtractor.ts
TypeScript
www.github.com/wix-incubator/jest-allure2-reporter/tree/main/src/options/common/appenderExtractor.ts
https://raw.githubusercontent.com/wix-incubator/jest-allure2-reporter/f4b6098/src/options/common/appenderExtractor.ts
wix-incubator/jest-allure2-reporter f4b6098 src/options/common/appenderExtractor.ts
true
200
981
import type { MaybeArray, MaybeNullish, MaybePromise, PropertyCustomizer, PropertyExtractor, } from 'jest-allure2-reporter'; import { asArray, thruMaybePromise } from '../../utils'; import { composeExtractors2 } from './composeExtractors2'; import { isExtractor } from './isExtractor'; export function appen...
6
vigilante1403/DELIVERY_API_SYSTEM
de9999d
client/src/app/user/new-cart/new-cart.component.ts
TypeScript
www.github.com/vigilante1403/DELIVERY_API_SYSTEM/tree/main/client/src/app/user/new-cart/new-cart.component.ts
https://raw.githubusercontent.com/vigilante1403/DELIVERY_API_SYSTEM/de9999d/client/src/app/user/new-cart/new-cart.component.ts
vigilante1403/DELIVERY_API_SYSTEM de9999d client/src/app/user/new-cart/new-cart.component.ts
true
200
3,330
import { Component, OnInit } from '@angular/core'; import { IDelivery, IOrderShow, IReturnPayInfoParcel } from 'src/app/interface/delivery/IDelivery'; import { DeliveryService } from 'src/app/service/delivery.service'; @Component({ selector: 'app-new-cart', templateUrl: './new-cart.component.html', styleUrls: ['...
0
samuelwsouza/login-nodejs-express
4c7da86
src/routes/publicRoutes.ts
TypeScript
www.github.com/samuelwsouza/login-nodejs-express/tree/main/src/routes/publicRoutes.ts
https://raw.githubusercontent.com/samuelwsouza/login-nodejs-express/4c7da86/src/routes/publicRoutes.ts
samuelwsouza/login-nodejs-express 4c7da86 src/routes/publicRoutes.ts
true
200
1,771
import { Request, Response, Router } from "express"; import bcrypt from "bcrypt"; import { PrismaClient } from "@prisma/client"; import jwt from "jsonwebtoken"; const prisma = new PrismaClient(); const router = Router(); const JWT_SECRET = process.env.JWT_SECRET; router.post("/cadastro", async (req: Request, res: R...
3
Johnkayode/ticket.me
0552813
src/database/ormconfig.ts
TypeScript
www.github.com/Johnkayode/ticket.me/tree/main/src/database/ormconfig.ts
https://raw.githubusercontent.com/Johnkayode/ticket.me/0552813/src/database/ormconfig.ts
Johnkayode/ticket.me 0552813 src/database/ormconfig.ts
true
200
377
import { DataSource } from 'typeorm'; import config from '../config'; export const AppDataSource = new DataSource({ type: 'postgres', host: config.DB_HOST, port: config.DB_PORT, username: config.DB_USER, password: config.DB_PASSWORD, database: config.DB_NAME, entities: [__dirname + '/entity/*.{ts,js}'], ...
5
mkmkwwd/moding
29ceec1
frontEnd/src/util/types/movieType.ts
TypeScript
www.github.com/mkmkwwd/moding/tree/main/frontEnd/src/util/types/movieType.ts
https://raw.githubusercontent.com/mkmkwwd/moding/29ceec1/frontEnd/src/util/types/movieType.ts
mkmkwwd/moding 29ceec1 frontEnd/src/util/types/movieType.ts
true
200
902
export interface Movie { movieId: number; poster: string; status: string; } export interface MovieList extends Movie { title: string; likeCnt: number; } export interface MovieCategory { movieList: Movie[]; totalCnt: number; } export interface MovieRanking extends Movie { searchCnt: number; refreshT...
2
nasser-gamal/car-rental
19b6346
src/controllers/user.contoller.ts
TypeScript
www.github.com/nasser-gamal/car-rental/tree/main/src/controllers/user.contoller.ts
https://raw.githubusercontent.com/nasser-gamal/car-rental/19b6346/src/controllers/user.contoller.ts
nasser-gamal/car-rental 19b6346 src/controllers/user.contoller.ts
true
200
3,832
import { Request, Response } from 'express'; import UserService from '../services/user.service'; import { StatusCodes } from 'http-status-codes'; import sendResponse from '../utils/sendResponse'; const userService = new UserService(); export class UserController { /** * Creates a new user. * * @param {Requ...
1
bigfree/message-system
18d729d
backend/src/assign-users-on-message/assign-users-on-message.resolver.spec.ts
TypeScript
www.github.com/bigfree/message-system/tree/main/backend/src/assign-users-on-message/assign-users-on-message.resolver.spec.ts
https://raw.githubusercontent.com/bigfree/message-system/18d729d/backend/src/assign-users-on-message/assign-users-on-message.resolver.spec.ts
bigfree/message-system 18d729d backend/src/assign-users-on-message/assign-users-on-message.resolver.spec.ts
true
200
681
import { Test, TestingModule } from '@nestjs/testing'; import { AssignUsersOnMessageResolver } from './assign-users-on-message.resolver'; import { AssignUsersOnMessageService } from './assign-users-on-message.service'; describe('AssignUsersOnMessageResolver', () => { let resolver: AssignUsersOnMessageResolver; be...
7
RomanLeshchishin/Articles-fullstack
b82979b
articles-backend/src/file/file.module.ts
TypeScript
www.github.com/RomanLeshchishin/Articles-fullstack/tree/main/articles-backend/src/file/file.module.ts
https://raw.githubusercontent.com/RomanLeshchishin/Articles-fullstack/b82979b/articles-backend/src/file/file.module.ts
RomanLeshchishin/Articles-fullstack b82979b articles-backend/src/file/file.module.ts
true
200
539
import { Module } from '@nestjs/common'; import { FileController } from './file.controller'; import { FileService } from './file.service'; import {SequelizeModule} from "@nestjs/sequelize"; import {UploadFile} from "./file.model"; import {ApplicationModule} from "../application/application.module"; import {UsersModule}...
3
micahbule/progres-billing-api
559cea7
src/category/entities/category.entity.ts
TypeScript
www.github.com/micahbule/progres-billing-api/tree/main/src/category/entities/category.entity.ts
https://raw.githubusercontent.com/micahbule/progres-billing-api/559cea7/src/category/entities/category.entity.ts
micahbule/progres-billing-api 559cea7 src/category/entities/category.entity.ts
true
200
1,017
import { Entity, ManyToOne, OneToOne, Property, Ref } from '@mikro-orm/core'; import { BaseEntity } from '../../base.entity'; import { Contract } from '../../contracts/entities/contract.entity'; import { CreateCategoryDto } from '../dto/create-category.dto'; @Entity({ tableName: 'categories', }) export class Categor...
4
AndyOsuna/heroes-and-monsters
e2726b8
src/game/monster.ts
TypeScript
www.github.com/AndyOsuna/heroes-and-monsters/tree/main/src/game/monster.ts
https://raw.githubusercontent.com/AndyOsuna/heroes-and-monsters/e2726b8/src/game/monster.ts
AndyOsuna/heroes-and-monsters e2726b8 src/game/monster.ts
true
200
559
import Character from "./character"; import Weapon from "./weapon"; export class Monster extends Character { isAttacking = false; name = "Monster"; constructor(HP: number, weapon?: Weapon) { super(HP, 1, 1, weapon); } attack(characterAttacked: Character) { this.isAttacking = true; super.attack(...
0
AlpakasLab/discord-stores
3f50737
src/app/api/me/notifications/route.ts
TypeScript
www.github.com/AlpakasLab/discord-stores/tree/main/src/app/api/me/notifications/route.ts
https://raw.githubusercontent.com/AlpakasLab/discord-stores/3f50737/src/app/api/me/notifications/route.ts
AlpakasLab/discord-stores 3f50737 src/app/api/me/notifications/route.ts
true
200
1,490
import { NextRequest, NextResponse } from 'next/server' import { authOptions } from '@/core/auth' import { getServerSession } from 'next-auth' import { db } from '@/providers/database/client' import { notifications } from '@/providers/database/schema' import { eq } from 'drizzle-orm' export async function DELETE(reque...
6
zkyim/messenger-clone
8e0a576
app/libs/authOptions.ts
TypeScript
www.github.com/zkyim/messenger-clone/tree/main/app/libs/authOptions.ts
https://raw.githubusercontent.com/zkyim/messenger-clone/8e0a576/app/libs/authOptions.ts
zkyim/messenger-clone 8e0a576 app/libs/authOptions.ts
true
200
1,879
import bcrypt from "bcrypt"; import { NextAuthOptions } from "next-auth"; import CredentialsProvider from "next-auth/providers/credentials"; import GithubProvider from "next-auth/providers/github"; import GoogleProvider from "next-auth/providers/google"; import { PrismaAdapter } from "@next-auth/prisma-adapter"; impor...
5
titleas/fron
2138c14
src/app/register/register.component.ts
TypeScript
www.github.com/titleas/fron/tree/main/src/app/register/register.component.ts
https://raw.githubusercontent.com/titleas/fron/2138c14/src/app/register/register.component.ts
titleas/fron 2138c14 src/app/register/register.component.ts
true
200
2,060
import { Component , OnInit} from '@angular/core'; import { MatCardModule } from '@angular/material/card'; import { CommonModule } from '@angular/common'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatButtonModule } from '@angular/material/button'; import { RouterModule } from '@angular...
7
f494949/Taro-Vue3
78ae75e
practise_vue3_ts/.history/mock/user_20230607171814.ts
TypeScript
www.github.com/f494949/Taro-Vue3/tree/main/practise_vue3_ts/.history/mock/user_20230607171814.ts
https://raw.githubusercontent.com/f494949/Taro-Vue3/78ae75e/practise_vue3_ts/.history/mock/user_20230607171814.ts
f494949/Taro-Vue3 78ae75e practise_vue3_ts/.history/mock/user_20230607171814.ts
true
200
846
// 模拟用户登录接口 Mock.mock('/api/login', 'post', (options) => { // 解析请求参数 let { username, password } = JSON.parse(options.body); // 判断用户名和密码是否正确 if (username === 'admin' && password === '123456') { // 登录成功,返回用户信息 return { code: 0, data: { id: 1, username: 'a...
2
TutulDevs/trading-view
7372d9c
components/settings/useSettings.component.ts
TypeScript
www.github.com/TutulDevs/trading-view/tree/main/components/settings/useSettings.component.ts
https://raw.githubusercontent.com/TutulDevs/trading-view/7372d9c/components/settings/useSettings.component.ts
TutulDevs/trading-view 7372d9c components/settings/useSettings.component.ts
true
200
1,891
import { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { TRADE_COLOR_DIRECTIONS, TRADE_COLOR_PREFERENCE, TRADE_COLOR_PREFERENCE_TEXT, TRADE_STYLE_SETTINGS, } from "src/helpers/coreconstants"; import { RootState } from "src/store"; import { setTradeColorPreference, setTr...
0
workmanjul/uexchange-backend-main
6672ed7
prisma/permissionSeeder.ts
TypeScript
www.github.com/workmanjul/uexchange-backend-main/tree/main/prisma/permissionSeeder.ts
https://raw.githubusercontent.com/workmanjul/uexchange-backend-main/6672ed7/prisma/permissionSeeder.ts
workmanjul/uexchange-backend-main 6672ed7 prisma/permissionSeeder.ts
true
200
3,848
// prisma/seed/seeder1.ts import { PrismaClient } from "@prisma/client"; import * as bcrypt from "bcrypt"; import { CREATE_ROLE, DELETE_ROLE, EDIT_ROLE, MANAGE_EXCHANGE_RATES, READ_ROLE, TRADING, Create_On_Hold, Release_On_Hold, Create_WholeSale, View_Customer, Create_Inventory, Read_Inventory,...
6
sesan07/formly-editor
ccc9749
projects/editor/src/lib/form/form.component.ts
TypeScript
www.github.com/sesan07/formly-editor/tree/main/projects/editor/src/lib/form/form.component.ts
https://raw.githubusercontent.com/sesan07/formly-editor/ccc9749/projects/editor/src/lib/form/form.component.ts
sesan07/formly-editor ccc9749 projects/editor/src/lib/form/form.component.ts
true
200
4,641
import { AsyncPipe, NgTemplateOutlet } from '@angular/common'; import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import { UntypedFormGroup } from '@angular/forms'; import { MatButton } from '@angular/material/button'; import { MatIcon } from '@angular/ma...
4
geronimobknuttzen/ecommerce
3f5a639
anitaecom/src/app/components/preset/original/original.component.ts
TypeScript
www.github.com/geronimobknuttzen/ecommerce/tree/main/anitaecom/src/app/components/preset/original/original.component.ts
https://raw.githubusercontent.com/geronimobknuttzen/ecommerce/3f5a639/anitaecom/src/app/components/preset/original/original.component.ts
geronimobknuttzen/ecommerce 3f5a639 anitaecom/src/app/components/preset/original/original.component.ts
true
200
511
import { CartService } from './../../../services/cart.service'; import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-original', templateUrl: './original.component.html', styleUrls: ['./original.component.scss'] }) export class OriginalComponent implements OnInit { constructor( pri...
3
Asad2730/CodersDirectory
721ffb3
src/routes/main.ts
TypeScript
www.github.com/Asad2730/CodersDirectory/tree/main/src/routes/main.ts
https://raw.githubusercontent.com/Asad2730/CodersDirectory/721ffb3/src/routes/main.ts
Asad2730/CodersDirectory 721ffb3 src/routes/main.ts
true
200
1,045
import { AsyncRouter } from "express-async-router"; import userRouter from "./user"; import socialRouter from "./social"; import customRouter from "./custom"; import certificateRouter from "./certification"; import educationRouter from "./education"; import experienceRouter from "./experience"; import interestRouter fr...
5
NoerAndrea/growTwetter_api
792f829
src/interrfaces/toggle-follower.dto.ts
TypeScript
www.github.com/NoerAndrea/growTwetter_api/tree/main/src/interrfaces/toggle-follower.dto.ts
https://raw.githubusercontent.com/NoerAndrea/growTwetter_api/792f829/src/interrfaces/toggle-follower.dto.ts
NoerAndrea/growTwetter_api 792f829 src/interrfaces/toggle-follower.dto.ts
true
200
328
import { Users } from "@prisma/client"; /** * @interface ToggleFollowDTO representa o formato do objeto que carrega as informações para seguir ou deixar de seguir um usuário. * @property userId: identificador do usuário * @property user: usuário */ export interface ToggleFollowDTO { user: Users; userId: string;...
1
kikoken/scaffold-ddd-nestjs
1653413
src/infrastructure/auth/dto/update-user.dto.ts
TypeScript
www.github.com/kikoken/scaffold-ddd-nestjs/tree/main/src/infrastructure/auth/dto/update-user.dto.ts
https://raw.githubusercontent.com/kikoken/scaffold-ddd-nestjs/1653413/src/infrastructure/auth/dto/update-user.dto.ts
kikoken/scaffold-ddd-nestjs 1653413 src/infrastructure/auth/dto/update-user.dto.ts
true
200
607
import { ApiProperty } from '@nestjs/swagger'; import { UpdateUserDto as DomainUpdateUserDto } from '../../../core/auth/application/usecases/update.use-case'; export class UpdateUserDto implements DomainUpdateUserDto { @ApiProperty({ example: '12345678', description: 'User DNI number' }) dni: string; ...
2
DmytroZamura/dz-catalog-client
c8f8fe5
src/app/product/product-item/product-item.module.ts
TypeScript
www.github.com/DmytroZamura/dz-catalog-client/tree/main/src/app/product/product-item/product-item.module.ts
https://raw.githubusercontent.com/DmytroZamura/dz-catalog-client/c8f8fe5/src/app/product/product-item/product-item.module.ts
DmytroZamura/dz-catalog-client c8f8fe5 src/app/product/product-item/product-item.module.ts
true
200
965
import { NgModule } from '@angular/core'; import {ProductItemComponent} from './product-item.component'; import {SharedModule} from '../../shared/shared.module'; import {RatingModule} from 'primeng/rating'; import {LocationPreviewModule} from '../../common/location-preview/location-preview.module'; import {UserPreview...
0
KABUKABUAPP/admin_frontend
80099ae
api-services/tripsService.ts
TypeScript
www.github.com/KABUKABUAPP/admin_frontend/tree/main/api-services/tripsService.ts
https://raw.githubusercontent.com/KABUKABUAPP/admin_frontend/80099ae/api-services/tripsService.ts
KABUKABUAPP/admin_frontend 80099ae api-services/tripsService.ts
true
200
5,403
import { BaseQueryFn, FetchArgs, FetchBaseQueryError, createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; import { RIDES_BASE_URL } from "@/constants"; import { GetAllTripsResponse, ViewTripQuery, ViewTripResponse, MappedViewTripResponse, DriverTripHistoryModel, GetDriverTripHistoryQuery, Ge...
7
dhdhkxk1234/portfolio
917ef66
composables/useTypingAnimation.ts
TypeScript
www.github.com/dhdhkxk1234/portfolio/tree/main/composables/useTypingAnimation.ts
https://raw.githubusercontent.com/dhdhkxk1234/portfolio/917ef66/composables/useTypingAnimation.ts
dhdhkxk1234/portfolio 917ef66 composables/useTypingAnimation.ts
true
200
1,544
import * as Hangul from 'hangul-js'; type typingAnimationOptions = { destText : string, fps : number, onFinished : Function | undefined } const defaultTypingAnimationOption : typingAnimationOptions = { destText : "Hello World!", fps : 10 } export function useTypingAnimation(_options : typingAnim...
6
pagopa-archive/io-functions-cgn
b37d2f6
SuccessEycaActivationActivity/index.ts
TypeScript
www.github.com/pagopa-archive/io-functions-cgn/tree/main/SuccessEycaActivationActivity/index.ts
https://raw.githubusercontent.com/pagopa-archive/io-functions-cgn/b37d2f6/SuccessEycaActivationActivity/index.ts
pagopa-archive/io-functions-cgn b37d2f6 SuccessEycaActivationActivity/index.ts
true
200
1,003
import { EycaAPIClient } from "../clients/eyca"; import { USER_EYCA_CARD_COLLECTION_NAME, UserEycaCardModel } from "../models/user_eyca_card"; import { getConfigOrThrow } from "../utils/config"; import { cosmosdbClient } from "../utils/cosmosdb"; import { RedisClientFactory } from "../utils/redis"; import { getSuc...
5
yucelsedat/next14-prisma-postgres
07d8177
src/actions/actions.ts
TypeScript
www.github.com/yucelsedat/next14-prisma-postgres/tree/main/src/actions/actions.ts
https://raw.githubusercontent.com/yucelsedat/next14-prisma-postgres/07d8177/src/actions/actions.ts
yucelsedat/next14-prisma-postgres 07d8177 src/actions/actions.ts
true
200
651
'use server' import { prisma } from "@/lib/db" import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server" import { revalidatePath } from "next/cache" import { redirect } from "next/navigation" export async function createPost(formData: FormData) { // Auth check const { isAuthenticated } = getKin...
3
team5009/discord
c9ee6b2
src/types/index.ts
TypeScript
www.github.com/team5009/discord/tree/main/src/types/index.ts
https://raw.githubusercontent.com/team5009/discord/c9ee6b2/src/types/index.ts
team5009/discord c9ee6b2 src/types/index.ts
true
200
382
import { Client, Collection } from 'discord.js' import { Command, botOption } from './discord' import { AxiosInstance } from 'axios' export { Command, CommandOption, CommandOptionChoice, EventType } from './discord' export interface IClient { commands: Collection<string, Command> legacy: Colle...
1
rashaduldev/ass2
e70cd23
src/module/product/product.model.ts
TypeScript
www.github.com/rashaduldev/ass2/tree/main/src/module/product/product.model.ts
https://raw.githubusercontent.com/rashaduldev/ass2/e70cd23/src/module/product/product.model.ts
rashaduldev/ass2 e70cd23 src/module/product/product.model.ts
true
200
745
import { Schema, Document, model } from 'mongoose'; import IProduct from './product.interface'; const productSchema = new Schema<IProduct>( { name: { type: String, required: true }, brand: { type: String, required: true }, price: { type: Number, required: [true, "Price is required"], ...
4
cupcakes-3/trampoline-example
0597787
src/pages/Background/types/account.ts
TypeScript
www.github.com/cupcakes-3/trampoline-example/tree/main/src/pages/Background/types/account.ts
https://raw.githubusercontent.com/cupcakes-3/trampoline-example/0597787/src/pages/Background/types/account.ts
cupcakes-3/trampoline-example 0597787 src/pages/Background/types/account.ts
true
200
837
import { AnyAssetAmount } from './asset'; import { HexString } from './common'; import { EVMNetwork } from './network'; export type AccountBalance = { /** * The address whose balance was measured. */ address: HexString; /** * The measured balance and the asset in which it's denominated. */ assetAmo...
2
projects1901/Angular_BasicAssignments_3190883
d25a932
src/app/create-post/create-post.component.ts
TypeScript
www.github.com/projects1901/Angular_BasicAssignments_3190883/tree/main/src/app/create-post/create-post.component.ts
https://raw.githubusercontent.com/projects1901/Angular_BasicAssignments_3190883/d25a932/src/app/create-post/create-post.component.ts
projects1901/Angular_BasicAssignments_3190883 d25a932 src/app/create-post/create-post.component.ts
true
200
3,332
import { Component } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { IPost } from '../model'; import { NgIf } from '@angular/common'; import { Router } from '@angular/router'; import { CommonserviceService } from '../services/commonservice.service...
7
FlameWolf/quip-api
bd1af38
db/pipelines/hashtag.ts
TypeScript
www.github.com/FlameWolf/quip-api/tree/main/db/pipelines/hashtag.ts
https://raw.githubusercontent.com/FlameWolf/quip-api/bd1af38/db/pipelines/hashtag.ts
FlameWolf/quip-api bd1af38 db/pipelines/hashtag.ts
true
200
1,503
"use strict"; import { ObjectId } from "bson"; import { FilterQuery, PipelineStage } from "mongoose"; import { maxRowsPerFetch } from "../../library"; import postAggregationPipeline from "./post"; const getPageConditions = (sortByDate: boolean, lastScore?: string, lastPostId?: string | ObjectId): FilterQuery<any> | u...
0
lucasd09/nestjs-template
3c253bc
src/users/users.module.ts
TypeScript
www.github.com/lucasd09/nestjs-template/tree/main/src/users/users.module.ts
https://raw.githubusercontent.com/lucasd09/nestjs-template/3c253bc/src/users/users.module.ts
lucasd09/nestjs-template 3c253bc src/users/users.module.ts
true
200
411
import { Module } from "@nestjs/common"; import { UsersService } from "./users.service"; import { UsersController } from "./users.controller"; import { UsersRepository } from "./users.repository"; import { DatabaseModule } from "src/database/database.module"; @Module({ controllers: [UsersController], providers: [U...
5
ivano-lab/provaipog
3b4e7f4
frontend/todolist-app/src/view/index/index-routing.module.ts
TypeScript
www.github.com/ivano-lab/provaipog/tree/main/frontend/todolist-app/src/view/index/index-routing.module.ts
https://raw.githubusercontent.com/ivano-lab/provaipog/3b4e7f4/frontend/todolist-app/src/view/index/index-routing.module.ts
ivano-lab/provaipog 3b4e7f4 frontend/todolist-app/src/view/index/index-routing.module.ts
true
200
369
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {IndexComponent} from '@dynamic-forms/view/index/index.component'; const routes:Routes = [ { path:'', component: IndexComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [Rout...
3
markvu2607/timphongtro-api
6601f7d
src/api/news/news.controller.ts
TypeScript
www.github.com/markvu2607/timphongtro-api/tree/main/src/api/news/news.controller.ts
https://raw.githubusercontent.com/markvu2607/timphongtro-api/6601f7d/src/api/news/news.controller.ts
markvu2607/timphongtro-api 6601f7d src/api/news/news.controller.ts
true
200
3,858
import { Body, Controller, Delete, Get, HttpCode, HttpStatus, Param, Patch, Post, Query, UploadedFiles, UseInterceptors, } from '@nestjs/common'; import { FilesInterceptor } from '@nestjs/platform-express'; import { PaginationRequestDto } from 'src/common/dtos/requests/pagination.request.dto'; i...
6
Mohibbulla-MMM/ph-university-practice-15
3a5a85f
src/app/module/user/user.router.ts
TypeScript
www.github.com/Mohibbulla-MMM/ph-university-practice-15/tree/main/src/app/module/user/user.router.ts
https://raw.githubusercontent.com/Mohibbulla-MMM/ph-university-practice-15/3a5a85f/src/app/module/user/user.router.ts
Mohibbulla-MMM/ph-university-practice-15 3a5a85f src/app/module/user/user.router.ts
true
200
1,660
import express, { NextFunction, Request, Response, json } from "express"; import { UserControllers } from "./user.controllers"; import validateRequest from "../../utils/validateRequest"; import { studentSchemaValidation } from "../student/student.validation"; import { FacultySchemaValidation } from "../faculty/faculty....
4
fatimaAlzahaa/fatimaportfolio
a0ad706
my portfolio/portfolio/src/auth.service.ts
TypeScript
www.github.com/fatimaAlzahaa/fatimaportfolio/tree/main/my portfolio/portfolio/src/auth.service.ts
https://raw.githubusercontent.com/fatimaAlzahaa/fatimaportfolio/a0ad706/my%20portfolio/portfolio/src/auth.service.ts
fatimaAlzahaa/fatimaportfolio a0ad706 my portfolio/portfolio/src/auth.service.ts
true
200
909
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { tap } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class AuthService { private apiURL = 'http://localhost:3000/user/login/'; p...
1
trungnguyen10/ticketing
ee0a74b
auth/src/index.ts
TypeScript
www.github.com/trungnguyen10/ticketing/tree/main/auth/src/index.ts
https://raw.githubusercontent.com/trungnguyen10/ticketing/ee0a74b/auth/src/index.ts
trungnguyen10/ticketing ee0a74b auth/src/index.ts
true
200
502
import mongoose from 'mongoose'; import { app } from './app'; const start = async () => { if (!process.env.JWT_KEY) { throw new Error('JWT_KEY must be defined'); } if (!process.env.DATABASE_URL) { throw new Error('DATABASE_URL must be define'); } try { await mongoose.connect(`${process.env.DATA...
2
javier223222/safeplaceproximidades
8964a3c
src/routes/UpdateSen.route.ts
TypeScript
www.github.com/javier223222/safeplaceproximidades/tree/main/src/routes/UpdateSen.route.ts
https://raw.githubusercontent.com/javier223222/safeplaceproximidades/8964a3c/src/routes/UpdateSen.route.ts
javier223222/safeplaceproximidades 8964a3c src/routes/UpdateSen.route.ts
true
200
1,069
import express,{Request,Response} from "express" import bodyParser from "body-parser" import ProximidadController from "../controller/Proximidad.controller" let jsonParser = bodyParser.json() let updateSenRouth=express.Router() updateSenRouth.route("/") .patch(jsonParser,async(req:Request,res:Response)=...
0
Emam-Bokhari/BornoBihar-Frontend
f3ef3d4
src/services/Analytics/index.ts
TypeScript
www.github.com/Emam-Bokhari/BornoBihar-Frontend/tree/main/src/services/Analytics/index.ts
https://raw.githubusercontent.com/Emam-Bokhari/BornoBihar-Frontend/f3ef3d4/src/services/Analytics/index.ts
Emam-Bokhari/BornoBihar-Frontend f3ef3d4 src/services/Analytics/index.ts
true
200
599
"use server" import { cookies } from "next/headers"; export const getStats = async () => { try { const res = await fetch(`${process.env.NEXT_PUBLIC_BASE_API}/analytics/getStats`, { next: { tags: ["ANALYTICS"], }, method: "GET", headers: { ...
6
MohammaedAlani/product-aggregator
c75cbad
src/auth/auth.guard.ts
TypeScript
www.github.com/MohammaedAlani/product-aggregator/tree/main/src/auth/auth.guard.ts
https://raw.githubusercontent.com/MohammaedAlani/product-aggregator/c75cbad/src/auth/auth.guard.ts
MohammaedAlani/product-aggregator c75cbad src/auth/auth.guard.ts
true
200
838
import { Injectable, CanActivate, ExecutionContext } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Reflector } from '@nestjs/core'; import { IS_PUBLIC_KEY } from './public.decorator'; @Injectable() export class ApiKeyGuard implements CanActivate { constructor( private configServ...
3
ElioFezollari/PetExpo-Backend
4c8e9af
src/dogs/dogs.service.ts
TypeScript
www.github.com/ElioFezollari/PetExpo-Backend/tree/main/src/dogs/dogs.service.ts
https://raw.githubusercontent.com/ElioFezollari/PetExpo-Backend/4c8e9af/src/dogs/dogs.service.ts
ElioFezollari/PetExpo-Backend 4c8e9af src/dogs/dogs.service.ts
true
200
2,478
import { NotFoundException } from '@nestjs/common'; import { Injectable } from '@nestjs/common'; import { CreateDogDto } from './dogs.model'; import { Model } from 'mongoose'; import { InjectModel } from '@nestjs/mongoose'; @Injectable() export class DogsService { constructor(@InjectModel('Dog') private rea...
5
fit-s-u-m/Tetris
b364f42
componets/eventListener.ts
TypeScript
www.github.com/fit-s-u-m/Tetris/tree/main/componets/eventListener.ts
https://raw.githubusercontent.com/fit-s-u-m/Tetris/b364f42/componets/eventListener.ts
fit-s-u-m/Tetris b364f42 componets/eventListener.ts
true
200
1,142
import { EVENT } from "./types" export interface EventObserver { update(data: any, event: EVENT): void } export class EventListener { private resizeObservers: EventObserver[] = [] private keyboardObservers: EventObserver[] = [] addEventObserver(observer: EventObserver, event: EVENT): void { if (event == "resize"...
4
thiag-o/rick-and-morty-angular
6777431
src/app/models/Paginator.ts
TypeScript
www.github.com/thiag-o/rick-and-morty-angular/tree/main/src/app/models/Paginator.ts
https://raw.githubusercontent.com/thiag-o/rick-and-morty-angular/6777431/src/app/models/Paginator.ts
thiag-o/rick-and-morty-angular 6777431 src/app/models/Paginator.ts
true
200
1,463
import { HttpParams } from '@angular/common/http'; import { BaseResponseInterface } from '../types/response.interface'; export default class Paginator<T> { private _page: number; private _info?: Info; private _results: T[] = []; private _params?: { [key: string]: any }; constructor(page?: numbe...
1
DA0-DA0/dao-dao-ui
24d4c92
packages/types/protobuf/codegen/osmosis/poolmanager/v1beta1/query.ts
TypeScript
www.github.com/DA0-DA0/dao-dao-ui/tree/main/packages/types/protobuf/codegen/osmosis/poolmanager/v1beta1/query.ts
https://raw.githubusercontent.com/DA0-DA0/dao-dao-ui/24d4c92/packages/types/protobuf/codegen/osmosis/poolmanager/v1beta1/query.ts
DA0-DA0/dao-dao-ui 24d4c92 packages/types/protobuf/codegen/osmosis/poolmanager/v1beta1/query.ts
true
200
183,947
//@ts-nocheck import { SwapAmountInRoute, SwapAmountInRouteAmino, SwapAmountInRouteSDKType, SwapAmountOutRoute, SwapAmountOutRouteAmino, SwapAmountOutRouteSDKType } from "./swap_route"; import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; import { Params, ParamsAmino, ParamsSDKType } from "...
7
francoleon42/car-rental-back
26bb9ed
src/rent/rent.controller.ts
TypeScript
www.github.com/francoleon42/car-rental-back/tree/main/src/rent/rent.controller.ts
https://raw.githubusercontent.com/francoleon42/car-rental-back/26bb9ed/src/rent/rent.controller.ts
francoleon42/car-rental-back 26bb9ed src/rent/rent.controller.ts
true
200
2,719
import { Request, Controller, Get, Post, Body, Patch, Param, Delete, UseGuards, ForbiddenException } from '@nestjs/common'; import { RentService } from './rent.service'; import { CreateRentDto } from './dto/create-rent.dto'; import { UpdateRentDto } from './dto/update-rent.dto'; import { User } from '../user/entities/u...
6
roroldan18/server-prod-manager
96b86ef
src/helpers/prodFormat.ts
TypeScript
www.github.com/roroldan18/server-prod-manager/tree/main/src/helpers/prodFormat.ts
https://raw.githubusercontent.com/roroldan18/server-prod-manager/96b86ef/src/helpers/prodFormat.ts
roroldan18/server-prod-manager 96b86ef src/helpers/prodFormat.ts
true
200
1,152
import { ProdSQL, ProdStruct } from "src/interfaces/interfaces"; const checkIfExist = (arrProdToAnalyze:ProdStruct[], prodSQL:ProdSQL):boolean => { for(const prodToAnalize of arrProdToAnalyze){ if(prodToAnalize.SKU === prodSQL.SKU){ return true; } } return false; } export const convertSQLToObj...
0
yonghui666/vue3-admin-backstage
46f9345
src/server/auth/auth.module.ts
TypeScript
www.github.com/yonghui666/vue3-admin-backstage/tree/main/src/server/auth/auth.module.ts
https://raw.githubusercontent.com/yonghui666/vue3-admin-backstage/46f9345/src/server/auth/auth.module.ts
yonghui666/vue3-admin-backstage 46f9345 src/server/auth/auth.module.ts
true
200
996
/* * @Author: yonghui666 * @Date: 2022-01-21 09:36:34 * @LastEditors: yonghui666 * @LastEditTime: 2022-05-19 20:33:59 * @Description: jwt认证模块 */ import { Global, Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { PassportModule } from '@nestjs/passport'; import { UserModule } from '...
5
RomericoJr/Nest-Project-1
6950a5d
src/curso/curso.service.ts
TypeScript
www.github.com/RomericoJr/Nest-Project-1/tree/main/src/curso/curso.service.ts
https://raw.githubusercontent.com/RomericoJr/Nest-Project-1/6950a5d/src/curso/curso.service.ts
RomericoJr/Nest-Project-1 6950a5d src/curso/curso.service.ts
true
200
2,216
import { Injectable, BadRequestException } from '@nestjs/common'; import { CreateCursoDto } from './dto/create-curso.dto'; import { UpdateCursoDto } from './dto/update-curso.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { Like, Repository } from 'typeorm'; import { Curso } from './entities/curso.enti...
3
Gideon-io/ppui_test_for_relay
0a8fb88
services/core/keypair.ts
TypeScript
www.github.com/Gideon-io/ppui_test_for_relay/tree/main/services/core/keypair.ts
https://raw.githubusercontent.com/Gideon-io/ppui_test_for_relay/0a8fb88/services/core/keypair.ts
Gideon-io/ppui_test_for_relay 0a8fb88 services/core/keypair.ts
true
200
1,969
import { BigNumber, Wallet, BigNumberish } from 'ethers' import { encrypt, decrypt, getEncryptionPublicKey } from 'eth-sig-util' import { numbers } from '@/constants' import { packEncryptedMessage, unpackEncryptedMessage } from '@/utilities' import { poseidonHash, toFixedHex } from './utils' import { BaseKeypair, Key...
2