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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0xknwn/starknet-modular-account | 3cb90b8 | sdks/__tests__/helpers/src/simple_account.test.ts | TypeScript | www.github.com/0xknwn/starknet-modular-account/tree/main/sdks/__tests__/helpers/src/simple_account.test.ts | https://raw.githubusercontent.com/0xknwn/starknet-modular-account/3cb90b8/sdks/__tests__/helpers/src/simple_account.test.ts | 0xknwn/starknet-modular-account 3cb90b8 sdks/__tests__/helpers/src/simple_account.test.ts | true | 200 | 1,187 | import { deploySimpleAccount, simpleAccountAddress } from "./simple_account";
import { config, testAccounts } from "./utils";
import { Account, RpcProvider } from "starknet";
import { default_timeout } from "./parameters";
import { data } from "./data.fixture";
describe.each(data)(
"simple account management",
({ ... | 6 |
vladimir-pl-web/amazon_copy_back | 182633f | src/user/constants.ts | TypeScript | www.github.com/vladimir-pl-web/amazon_copy_back/tree/main/src/user/constants.ts | https://raw.githubusercontent.com/vladimir-pl-web/amazon_copy_back/182633f/src/user/constants.ts | vladimir-pl-web/amazon_copy_back 182633f src/user/constants.ts | true | 200 | 293 | import { Prisma } from '@prisma/client';
export const USER: Prisma.UserSelect = {
id: true,
email: true,
name: true,
avatarPath: true,
password: false,
phone: true,
isAdmin: true,
};
export const NOT_FOUND = 'User not found';
export const EMAIL_IN_USE = 'Email already in use';
| 7 |
s3uz-dev/-admin-panel-poc-nelson | 415918b | src/lib/crypt.ts | TypeScript | www.github.com/s3uz-dev/-admin-panel-poc-nelson/tree/main/src/lib/crypt.ts | https://raw.githubusercontent.com/s3uz-dev/-admin-panel-poc-nelson/415918b/src/lib/crypt.ts | s3uz-dev/-admin-panel-poc-nelson 415918b src/lib/crypt.ts | true | 200 | 1,571 | import { compare, genSalt, hash } from 'bcrypt'
import crypto from "crypto";
// Función para encriptar
export const encryptText = (text: string, secretPhrase: string) => {
const key = crypto.createHash("sha256").update(secretPhrase).digest("base64").substring(0, 32);
const iv = crypto.randomBytes(16);
const c... | 0 |
roziisho07/custom-landing-page-with-chakraUi | 1a0dfe0 | components/theme/index.ts | TypeScript | www.github.com/roziisho07/custom-landing-page-with-chakraUi/tree/main/components/theme/index.ts | https://raw.githubusercontent.com/roziisho07/custom-landing-page-with-chakraUi/1a0dfe0/components/theme/index.ts | roziisho07/custom-landing-page-with-chakraUi 1a0dfe0 components/theme/index.ts | true | 200 | 1,735 | import {
extendTheme,
theme as base,
withDefaultColorScheme,
withDefaultVariant,
} from "@chakra-ui/react";
import { mode } from "@chakra-ui/theme-tools";
const inputSelectStyles = {
variants: {
filled: {
field: {
_focus: {
borderColor: "brand.300",
},
},
},
},... | 3 |
jdmesalosada/playwright-api-poc | 153308c | tests/create/createpet.spec.ts | TypeScript | www.github.com/jdmesalosada/playwright-api-poc/tree/main/tests/create/createpet.spec.ts | https://raw.githubusercontent.com/jdmesalosada/playwright-api-poc/153308c/tests/create/createpet.spec.ts | jdmesalosada/playwright-api-poc 153308c tests/create/createpet.spec.ts | true | 200 | 2,208 | import test, { expect } from "@playwright/test"
import { CreateNewPet } from "../../tasks/create/createNewPet"
import Logger from "../../utils/Logger"
import { CheckPetWasCreated } from "../../tasks/create/checkPetWasCreated"
import { NewPetRequestModel } from "../../models/newPetRequestModel"
import { faker } from '@f... | 2 |
maximilianohermosilla/administracionUpa-angular | 0e2a794 | src/app/app-routing.module.ts | TypeScript | www.github.com/maximilianohermosilla/administracionUpa-angular/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/maximilianohermosilla/administracionUpa-angular/0e2a794/src/app/app-routing.module.ts | maximilianohermosilla/administracionUpa-angular 0e2a794 src/app/app-routing.module.ts | true | 200 | 2,151 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CalendarComponent } from './components/calendar/calendar.component';
import { AppComponent } from './app.component';
import { RouterModule, Routes } from '@angular/router';
import { SolicitudesComponent } from './componen... | 6 |
co-troll/DevOps-Study | cb8992e | NestJS/20240715/backend/src/auth/strategies/google.strategy.ts | TypeScript | www.github.com/co-troll/DevOps-Study/tree/main/NestJS/20240715/backend/src/auth/strategies/google.strategy.ts | https://raw.githubusercontent.com/co-troll/DevOps-Study/cb8992e/NestJS/20240715/backend/src/auth/strategies/google.strategy.ts | co-troll/DevOps-Study cb8992e NestJS/20240715/backend/src/auth/strategies/google.strategy.ts | true | 200 | 1,201 | import { Injectable, UnauthorizedException } from "@nestjs/common";
import { AuthStrategy } from "./auth.strategy";
import axios from "axios";
import { ConfigService } from "@nestjs/config";
@Injectable()
export class GoogleStrategy implements AuthStrategy {
constructor(private configService: ConfigService) {}
asy... | 7 |
nding120/photography-portfolio | ebbb9ac | src/app/main/main.module.ts | TypeScript | www.github.com/nding120/photography-portfolio/tree/main/src/app/main/main.module.ts | https://raw.githubusercontent.com/nding120/photography-portfolio/ebbb9ac/src/app/main/main.module.ts | nding120/photography-portfolio ebbb9ac src/app/main/main.module.ts | true | 200 | 1,139 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NavBarComponent } from './nav-bar/nav-bar.component';
import { ContactMeComponent } from './contact-me/contact-me.component';
import { AboutMeComponent } from './about-me/about-me.component';
import { WorksComponent } fro... | 3 |
KooperL/identifier-generator | 4255cf7 | src/index.ts | TypeScript | www.github.com/KooperL/identifier-generator/tree/main/src/index.ts | https://raw.githubusercontent.com/KooperL/identifier-generator/4255cf7/src/index.ts | KooperL/identifier-generator 4255cf7 src/index.ts | true | 200 | 502 | import { OpenAPIRouter } from "@cloudflare/itty-router-openapi";
import { wordsBaseIndex } from "./endpoints/words";
import { uuidBaseIndex } from "./endpoints/uuid";
export const router = OpenAPIRouter({
docs_url: "/",
});
router.get("/api/words/", wordsBaseIndex);
router.get("/api/uuid/", uuidBaseIndex);
// 404 f... | 2 |
Javohir-code/padishah | 52809cf | src/app.module.ts | TypeScript | www.github.com/Javohir-code/padishah/tree/main/src/app.module.ts | https://raw.githubusercontent.com/Javohir-code/padishah/52809cf/src/app.module.ts | Javohir-code/padishah 52809cf src/app.module.ts | true | 200 | 2,577 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { UserModule } from './user/user.module';
import configuration from './global/config/config';
import { UserEntity } from './user/entities/user.entity';
import { ... | 0 |
yesyoo/catch-it | f5df5c1 | src/app/services/user/user.service.ts | TypeScript | www.github.com/yesyoo/catch-it/tree/main/src/app/services/user/user.service.ts | https://raw.githubusercontent.com/yesyoo/catch-it/f5df5c1/src/app/services/user/user.service.ts | yesyoo/catch-it f5df5c1 src/app/services/user/user.service.ts | true | 200 | 1,368 | import { Injectable } from '@angular/core';
import { Observable, BehaviorSubject } from 'rxjs';
import { IUser, IUserResponse } from 'src/app/models/interfaces/user';
import { AuthService } from '../auth/auth.service';
import { UserRestService } from './user-rest/user-rest.service';
import { BookmarkService } from '../... | 6 |
DSamniashvili/terrabank | 3d00de4 | src/components/TextInput/TextInput.types.ts | TypeScript | www.github.com/DSamniashvili/terrabank/tree/main/src/components/TextInput/TextInput.types.ts | https://raw.githubusercontent.com/DSamniashvili/terrabank/3d00de4/src/components/TextInput/TextInput.types.ts | DSamniashvili/terrabank 3d00de4 src/components/TextInput/TextInput.types.ts | true | 200 | 782 | import { KeyboardTypeOptions, StyleProp, TextStyle } from 'react-native';
import { FieldValues, UseControllerProps } from 'react-hook-form';
export type TextInputProps = {
value?: string;
label?: string;
required?: boolean;
marginTop?: number;
editable?: boolean;
maxLength?: number;
autoCorrect?: boolean... | 7 |
LockHeaven/proyecto-grado | cfd6935 | src/app/lockface/screens/users/users.component.ts | TypeScript | www.github.com/LockHeaven/proyecto-grado/tree/main/src/app/lockface/screens/users/users.component.ts | https://raw.githubusercontent.com/LockHeaven/proyecto-grado/cfd6935/src/app/lockface/screens/users/users.component.ts | LockHeaven/proyecto-grado cfd6935 src/app/lockface/screens/users/users.component.ts | true | 200 | 909 | import { Component, Input, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Observable } from 'rxjs';
import { DashboardService } from '../../services/dashboard.service';
import { UsersFormComponent } from './users-form/users-form.component';
@Component({
selector: 'app-u... | 0 |
trust0-project/RIDB | cd37670 | packages/ridb/vitest.config.ts | TypeScript | www.github.com/trust0-project/RIDB/tree/main/packages/ridb/vitest.config.ts | https://raw.githubusercontent.com/trust0-project/RIDB/cd37670/packages/ridb/vitest.config.ts | trust0-project/RIDB cd37670 packages/ridb/vitest.config.ts | true | 200 | 997 | /// <reference types="vitest" />
import { defineConfig } from 'vite'
import wasm from "vite-plugin-wasm";
export default defineConfig({
plugins: [
// wasm(),
],
build: {
minify: 'terser',
terserOptions: {
format: {
comments: 'all',
pres... | 2 |
FullstackRakibul/NGboilerplate | eb9bb02 | src/app/v1/core/components/test01/test01.component.spec.ts | TypeScript | www.github.com/FullstackRakibul/NGboilerplate/tree/main/src/app/v1/core/components/test01/test01.component.spec.ts | https://raw.githubusercontent.com/FullstackRakibul/NGboilerplate/eb9bb02/src/app/v1/core/components/test01/test01.component.spec.ts | FullstackRakibul/NGboilerplate eb9bb02 src/app/v1/core/components/test01/test01.component.spec.ts | true | 200 | 596 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Test01Component } from './test01.component';
describe('Test01Component', () => {
let component: Test01Component;
let fixture: ComponentFixture<Test01Component>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... | 6 |
StringCGE/VerCambiosEnUnArchivo | e71103a | brigate/services/brigate.service.ts | TypeScript | www.github.com/StringCGE/VerCambiosEnUnArchivo/tree/main/brigate/services/brigate.service.ts | https://raw.githubusercontent.com/StringCGE/VerCambiosEnUnArchivo/e71103a/brigate/services/brigate.service.ts | StringCGE/VerCambiosEnUnArchivo e71103a brigate/services/brigate.service.ts | true | 200 | 1,779 | import { Injectable } from '@angular/core';
import { environment } from '../../../../environments/environment';
import { Observable } from 'rxjs';
//import { environment as environment } from '../../../../environments/environment';
import { HttpClient } from '@angular/common/http';
import { ToolsService } from '../../... | 7 |
Kellie-Brighty/Whizpar | 097736d | src/services/storageService.ts | TypeScript | www.github.com/Kellie-Brighty/Whizpar/tree/main/src/services/storageService.ts | https://raw.githubusercontent.com/Kellie-Brighty/Whizpar/097736d/src/services/storageService.ts | Kellie-Brighty/Whizpar 097736d src/services/storageService.ts | true | 200 | 1,942 | import { supabase } from "../lib/supabase";
import { Platform } from "react-native";
import * as FileSystem from "expo-file-system";
export const storageService = {
uploadImage: async (uri: string): Promise<string | null> => {
try {
let base64;
if (Platform.OS === "web") {
const response = a... | 3 |
ShreerakshaRao/Pharma_FrontEnd | 96803c0 | src/schema/purchaseSchema.ts | TypeScript | www.github.com/ShreerakshaRao/Pharma_FrontEnd/tree/main/src/schema/purchaseSchema.ts | https://raw.githubusercontent.com/ShreerakshaRao/Pharma_FrontEnd/96803c0/src/schema/purchaseSchema.ts | ShreerakshaRao/Pharma_FrontEnd 96803c0 src/schema/purchaseSchema.ts | true | 200 | 1,075 | import { z } from 'zod';
export const purchaseSchema = z.object({
purchaseDate: z.string().min(1, { message: 'Purchase Date is required' }),
purchaseBillNo: z
.string()
.min(3, { message: "Bill No. should be at least 3 characters long." })
.max(15, { message: "Bill No. cannot exceed 15 characte... | 0 |
musharrafmobeen/Elecktra | ba083b3 | database/migrations/1679659393763-create-permissions-table.ts | TypeScript | www.github.com/musharrafmobeen/Elecktra/tree/main/database/migrations/1679659393763-create-permissions-table.ts | https://raw.githubusercontent.com/musharrafmobeen/Elecktra/ba083b3/database/migrations/1679659393763-create-permissions-table.ts | musharrafmobeen/Elecktra ba083b3 database/migrations/1679659393763-create-permissions-table.ts | true | 200 | 856 | import { MigrationInterface, QueryRunner, Table } from 'typeorm';
export class createPermissionsTable1679659393763 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: 'auth_permissions',
columns: [
... | 2 |
GreenwaysTechnology/Evoke-Angular-june-23 | d7a4ddd | router-app/src/app/greeter/greeter.module.ts | TypeScript | www.github.com/GreenwaysTechnology/Evoke-Angular-june-23/tree/main/router-app/src/app/greeter/greeter.module.ts | https://raw.githubusercontent.com/GreenwaysTechnology/Evoke-Angular-june-23/d7a4ddd/router-app/src/app/greeter/greeter.module.ts | GreenwaysTechnology/Evoke-Angular-june-23 d7a4ddd router-app/src/app/greeter/greeter.module.ts | true | 200 | 404 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HelloComponent } from './hello.component';
import { WelcomeComponent } from './welcome.component';
@NgModule({
declarations: [
HelloComponent,
WelcomeComponent
],
imports: [
CommonModule
],
export... | 6 |
iasminsoares/Front-Angular | 4cb0a22 | Angular/Alura/memoteca/src/app/componentes/pensamentos/editar-pensamentos/editar-pensamentos.component.ts | TypeScript | www.github.com/iasminsoares/Front-Angular/tree/main/Angular/Alura/memoteca/src/app/componentes/pensamentos/editar-pensamentos/editar-pensamentos.component.ts | https://raw.githubusercontent.com/iasminsoares/Front-Angular/4cb0a22/Angular/Alura/memoteca/src/app/componentes/pensamentos/editar-pensamentos/editar-pensamentos.component.ts | iasminsoares/Front-Angular 4cb0a22 Angular/Alura/memoteca/src/app/componentes/pensamentos/editar-pensamentos/editar-pensamentos.component.ts | true | 200 | 1,044 | import { Component, OnInit } from '@angular/core';
import { Pensamento } from '../pensamento';
import { PensamentoService } from '../pensamento.service';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-editar-pensamentos',
templateUrl: './editar-pensamentos.component.html',
... | 7 |
roshankc00/Hotel_management_system_backend | 753741a | src/controllers/foodController.ts | TypeScript | www.github.com/roshankc00/Hotel_management_system_backend/tree/main/src/controllers/foodController.ts | https://raw.githubusercontent.com/roshankc00/Hotel_management_system_backend/753741a/src/controllers/foodController.ts | roshankc00/Hotel_management_system_backend 753741a src/controllers/foodController.ts | true | 200 | 8,728 | import asyncHandler from 'express-async-handler';
import { Request,Response } from 'express';
import FoodModel from '../models/foodModel';
import validateMongodbId from '../utils/mongodbIdValidator';
import { CustomRequest } from '../interfaces/user.interfaces';
import cloudinary from '../config/CloudinaryConfig';
impo... | 3 |
jeremythai01/Service-Gestion-Dessin | 22dd264 | app/routes/profile.router.ts | TypeScript | www.github.com/jeremythai01/Service-Gestion-Dessin/tree/main/app/routes/profile.router.ts | https://raw.githubusercontent.com/jeremythai01/Service-Gestion-Dessin/22dd264/app/routes/profile.router.ts | jeremythai01/Service-Gestion-Dessin 22dd264 app/routes/profile.router.ts | true | 200 | 2,242 | import { Request, Response, Router } from "express";
import { inject, injectable } from "inversify";
import { TYPES } from "../const/types";
import { ProfileController } from "../controllers/profile.controller";
import { ModelProfileValidationRule } from "../middlewares/model-profile-validation.rule";
import { ModelVal... | 0 |
artyomnavy/nest_telegram_bot | 1848b22 | src/app.controller.ts | TypeScript | www.github.com/artyomnavy/nest_telegram_bot/tree/main/src/app.controller.ts | https://raw.githubusercontent.com/artyomnavy/nest_telegram_bot/1848b22/src/app.controller.ts | artyomnavy/nest_telegram_bot 1848b22 src/app.controller.ts | true | 200 | 752 | import { Body, Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';
import { TelegramUpdateMessageType } from './adapters/telegram.adapter';
import { HandleTelegramUpdatesUseCase } from './use-cases/handle-telegram-updates.use-case';
@Controller('notification')
export class AppCon... | 2 |
nebs-dev/btc_blockchain_explorer_backend | e7fa012 | src/blockchain/blockchain.module.ts | TypeScript | www.github.com/nebs-dev/btc_blockchain_explorer_backend/tree/main/src/blockchain/blockchain.module.ts | https://raw.githubusercontent.com/nebs-dev/btc_blockchain_explorer_backend/e7fa012/src/blockchain/blockchain.module.ts | nebs-dev/btc_blockchain_explorer_backend e7fa012 src/blockchain/blockchain.module.ts | true | 200 | 827 | import { Module } from '@nestjs/common';
import { BlockchainController } from './blockchain.controller';
import { BlockchainService } from './blockchain.service';
import { HttpModule } from '@nestjs/axios';
import { EventsModule } from '../events/events.module';
import { ErrorsModule } from '../errors/errors.module';
i... | 7 |
AljureS/ProdCategoriesM | 002ff74 | backend/product-service/src/app.module.ts | TypeScript | www.github.com/AljureS/ProdCategoriesM/tree/main/backend/product-service/src/app.module.ts | https://raw.githubusercontent.com/AljureS/ProdCategoriesM/002ff74/backend/product-service/src/app.module.ts | AljureS/ProdCategoriesM 002ff74 backend/product-service/src/app.module.ts | true | 200 | 867 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ProductModule } from './product/product.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import {config as dotenvConfig} from 'dotenv';
dotenvConfig({path: '.developm... | 6 |
dualBreath/widget-example | 00d5241 | server/src/index.ts | TypeScript | www.github.com/dualBreath/widget-example/tree/main/server/src/index.ts | https://raw.githubusercontent.com/dualBreath/widget-example/00d5241/server/src/index.ts | dualBreath/widget-example 00d5241 server/src/index.ts | true | 200 | 304 | import express, { Application } from "express";
import cors from "cors";
const server: Application = express();
server.use(cors({ origin: '*' }));
server.use(express.static('share'));
server.use('/script', express.static('script'));
server.listen(4200, () => {
console.log("Server listening");
}); | 3 |
susharan1997/NextJs-AI-Journal-App | 1722db1 | app/api/journal-entry/[id]/route.ts | TypeScript | www.github.com/susharan1997/NextJs-AI-Journal-App/tree/main/app/api/journal-entry/[id]/route.ts | https://raw.githubusercontent.com/susharan1997/NextJs-AI-Journal-App/1722db1/app/api/journal-entry/%5Bid%5D/route.ts | susharan1997/NextJs-AI-Journal-App 1722db1 app/api/journal-entry/[id]/route.ts | true | 200 | 6,014 | import { NextRequest, NextResponse } from "next/server";
import dbConnect from "@/lib/mongoose";
import JournalEntryModel from "@/models/JournalEntry";
import { revalidatePath } from "next/cache";
import EntryAnalysisModel from "@/models/EntryAnalysis";
import mongoose from "mongoose";
import { analyzeJournalEntry } fr... | 2 |
JesseRobinsonDev/articles.dev-backend | e287933 | src/config/connections.ts | TypeScript | www.github.com/JesseRobinsonDev/articles.dev-backend/tree/main/src/config/connections.ts | https://raw.githubusercontent.com/JesseRobinsonDev/articles.dev-backend/e287933/src/config/connections.ts | JesseRobinsonDev/articles.dev-backend e287933 src/config/connections.ts | true | 200 | 575 | import mongoose from "mongoose";
import dotenv from "dotenv";
//dotenv.config();
let userURI: string;
if (process.env.USERS_MONGO_URI) {
userURI = process.env.USERS_MONGO_URI;
} else {
throw new Error("Environment variable USERS_MONGO_URI not found");
}
export const userDB = mongoose.createConnection(userURI);
l... | 0 |
rohankapadne/document-storage-app | 968c137 | src/app/document-details/document-details.component.ts | TypeScript | www.github.com/rohankapadne/document-storage-app/tree/main/src/app/document-details/document-details.component.ts | https://raw.githubusercontent.com/rohankapadne/document-storage-app/968c137/src/app/document-details/document-details.component.ts | rohankapadne/document-storage-app 968c137 src/app/document-details/document-details.component.ts | true | 200 | 517 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-document-details',
templateUrl: './document-details.component.html',
styleUrls: ['./document-details.component.scss'],
})
export class DocumentDetailsComponent implements OnInit {
do... | 7 |
Speedup-lib/speedup_js | f2912b6 | packages/common/src/env.ts | TypeScript | www.github.com/Speedup-lib/speedup_js/tree/main/packages/common/src/env.ts | https://raw.githubusercontent.com/Speedup-lib/speedup_js/f2912b6/packages/common/src/env.ts | Speedup-lib/speedup_js f2912b6 packages/common/src/env.ts | true | 200 | 1,214 | export enum EnvironmentName {
/**
* Development
*/
Development = 'dev',
/**
* Test/Testing
*/
Test = 'test',
/**
* Staging
*/
Staging = 'staging',
/**
* Production
*/
Production = 'prod',
/**
* Unknown
*/
Unknown = 'unknown',
}
export type EnvironmentNameMapping = ... | 6 |
greyhands2/rise-test | d6c256b | src/helpers/validateParams.ts | TypeScript | www.github.com/greyhands2/rise-test/tree/main/src/helpers/validateParams.ts | https://raw.githubusercontent.com/greyhands2/rise-test/d6c256b/src/helpers/validateParams.ts | greyhands2/rise-test d6c256b src/helpers/validateParams.ts | true | 200 | 700 |
import {Request, Response, NextFunction} from 'express'
import { BadRequestError } from '../error/BadRequestError'
const validateID =async (req: Request, res: Response, next: NextFunction) => {
const id = parseInt(req.params.id)
console.log(id)
if(!req.params.id || typeof id !== 'number' || isNaN(id) || i... | 3 |
KonstantinUzkikh/react-burger | 99724fe | src/store/thunks/forgot-password.ts | TypeScript | www.github.com/KonstantinUzkikh/react-burger/tree/main/src/store/thunks/forgot-password.ts | https://raw.githubusercontent.com/KonstantinUzkikh/react-burger/99724fe/src/store/thunks/forgot-password.ts | KonstantinUzkikh/react-burger 99724fe src/store/thunks/forgot-password.ts | true | 200 | 715 | import { AppDispatch, AppThunk } from '../types-store';
import { apiFlagUp, apiFlagDown, apiError } from '../actions';
import { writeForgot } from '../../utils';
import { getForgotPassword } from '../../services/get-data';
import { TResponseForgotPassword } from '../../services/types-responses';
import type { TInputVal... | 4 |
Wavle-Template/qdqw3123123123_api | 264fc49 | test/utils/mock-db.ts | TypeScript | www.github.com/Wavle-Template/qdqw3123123123_api/tree/main/test/utils/mock-db.ts | https://raw.githubusercontent.com/Wavle-Template/qdqw3123123123_api/264fc49/test/utils/mock-db.ts | Wavle-Template/qdqw3123123123_api 264fc49 test/utils/mock-db.ts | true | 200 | 2,768 | import { UserEntity, UserSocialEntity, UserFCMTokenEntity, UserFollowEntity, UserProfileEntity, UserBlockEntity, UserNotificationSettingEntity, FileEntity } from "@app/entity";
import { NotificationEntity } from "@app/entity/notification/notification.entity";
import { NotificationReadEntity } from "@app/entity/notifica... | 2 |
kkbatta/ascend | c334c55 | server/index.ts | TypeScript | www.github.com/kkbatta/ascend/tree/main/server/index.ts | https://raw.githubusercontent.com/kkbatta/ascend/c334c55/server/index.ts | kkbatta/ascend c334c55 server/index.ts | true | 200 | 3,881 | import express, { type Request, Response, NextFunction } from "express";
import { registerRoutes } from "./routes";
import { setupVite, serveStatic, log } from "./vite";
import { setupAuth } from "./auth";
import { updateSuperAdminPassword } from "./update-password";
const app = express();
app.use(express.json());
app... | 0 |
badbunny23/SonivoApp | 3bbf0ed | node_modules/tone/Tone/instrument/AMSynth.test.ts | TypeScript | www.github.com/badbunny23/SonivoApp/tree/main/node_modules/tone/Tone/instrument/AMSynth.test.ts | https://raw.githubusercontent.com/badbunny23/SonivoApp/3bbf0ed/node_modules/tone/Tone/instrument/AMSynth.test.ts | badbunny23/SonivoApp 3bbf0ed node_modules/tone/Tone/instrument/AMSynth.test.ts | true | 200 | 2,069 | import { AMSynth } from "./AMSynth.js";
import { BasicTests } from "../../test/helper/Basic.js";
import { InstrumentTest } from "../../test/helper/InstrumentTests.js";
import { CompareToFile } from "../../test/helper/CompareToFile.js";
import { expect } from "chai";
import { Offline } from "../../test/helper/Offline.js... | 7 |
eniolamathew/interiordesign | 62fb80a | shared/data/designApiData.ts | TypeScript | www.github.com/eniolamathew/interiordesign/tree/main/shared/data/designApiData.ts | https://raw.githubusercontent.com/eniolamathew/interiordesign/62fb80a/shared/data/designApiData.ts | eniolamathew/interiordesign 62fb80a shared/data/designApiData.ts | true | 200 | 1,474 | import { IGenratedImageResult, IGenrateImagePayload, IGenrateImageResult } from "../../models/design";
import { IMicroserviceApiResult } from "../api/api.i"
import nextjsApi from "../api/nextjsApi"
import UserAuthManager from "./UserAuthManager";
class DesignData {
_baseUnprotectedUrl = ":7073";
_baseUrl = ":... | 6 |
vins667/vendor-portal | 48ed5d8 | src/main/webapp/app/entities/previous-employment-details/previous-employment-details-update.component.ts | TypeScript | www.github.com/vins667/vendor-portal/tree/main/src/main/webapp/app/entities/previous-employment-details/previous-employment-details-update.component.ts | https://raw.githubusercontent.com/vins667/vendor-portal/48ed5d8/src/main/webapp/app/entities/previous-employment-details/previous-employment-details-update.component.ts | vins667/vendor-portal 48ed5d8 src/main/webapp/app/entities/previous-employment-details/previous-employment-details-update.component.ts | true | 200 | 7,943 | import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { DateTimeAdapter, OWL_DATE_TIME_FORMATS, OWL_DATE_TIME_LOCALE } from 'ng-pick-datetime';
import { HttpResponse } from '@angular/common/http';
import { FormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/r... | 3 |
giabao2807/FE-travel-booking | da76516 | src/router/index.ts | TypeScript | www.github.com/giabao2807/FE-travel-booking/tree/main/src/router/index.ts | https://raw.githubusercontent.com/giabao2807/FE-travel-booking/da76516/src/router/index.ts | giabao2807/FE-travel-booking da76516 src/router/index.ts | true | 200 | 4,667 | import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import ToursView from '@/views/tours/ToursView.vue'
import TourDetail from '@/views/tours/TourDetail.vue'
import SignInView from '@/views/auth/SignInView.vue'
import SignUpView from '@/views/auth/Sign... | 2 |
navtesh21/ai-pdf | b30e0ee | src/lib/openAIEmbedding.ts | TypeScript | www.github.com/navtesh21/ai-pdf/tree/main/src/lib/openAIEmbedding.ts | https://raw.githubusercontent.com/navtesh21/ai-pdf/b30e0ee/src/lib/openAIEmbedding.ts | navtesh21/ai-pdf b30e0ee src/lib/openAIEmbedding.ts | true | 200 | 575 | import { getPineconeClient } from "./pinecone";
const model = 'multilingual-e5-large';
export interface Document {
metadata: any;
pageContent: string;
}
export async function getEmbedding(data:Document[]) {
const pc = await getPineconeClient()
try {
const embeddings = await pc.inference.embe... | 0 |
richardhopton/atc-hygrometer-mqtt | 69f9a76 | src/MQTT/connectToMQTT.ts | TypeScript | www.github.com/richardhopton/atc-hygrometer-mqtt/tree/main/src/MQTT/connectToMQTT.ts | https://raw.githubusercontent.com/richardhopton/atc-hygrometer-mqtt/69f9a76/src/MQTT/connectToMQTT.ts | richardhopton/atc-hygrometer-mqtt 69f9a76 src/MQTT/connectToMQTT.ts | true | 200 | 650 | import { logError, logInfo } from '@utils/logger';
import mqtt from 'mqtt';
import { IMQTTConnection } from './IMQTTConnection';
import MQTTConfig from './MQTTConfig';
import { MQTTConnection } from './MQTTConnection';
export const connectToMQTT = (): Promise<IMQTTConnection> => {
logInfo('[MQTT] Connecting...');
... | 4 |
ZaikoXander/SuaFatec-server | b442881 | src/infra/http/controllers/cities.controller.ts | TypeScript | www.github.com/ZaikoXander/SuaFatec-server/tree/main/src/infra/http/controllers/cities.controller.ts | https://raw.githubusercontent.com/ZaikoXander/SuaFatec-server/b442881/src/infra/http/controllers/cities.controller.ts | ZaikoXander/SuaFatec-server b442881 src/infra/http/controllers/cities.controller.ts | true | 200 | 692 | import { Controller, Get, HttpException, HttpStatus } from '@nestjs/common'
import { GetCities } from '@app/useCases/get-cities'
import { CityViewModel } from '../viewModels/city-view-model'
@Controller('cities')
export class CitiesController {
constructor(private getCities: GetCities) {}
@Get()
async index() ... | 1 |
ricoe29e/angular-bases | 855a9ca | src/app/dbz/services/dbz.service.ts | TypeScript | www.github.com/ricoe29e/angular-bases/tree/main/src/app/dbz/services/dbz.service.ts | https://raw.githubusercontent.com/ricoe29e/angular-bases/855a9ca/src/app/dbz/services/dbz.service.ts | ricoe29e/angular-bases 855a9ca src/app/dbz/services/dbz.service.ts | true | 200 | 708 | import { Injectable } from '@angular/core';
import { Character } from '../interfaces/character.interface';
import { v4 as uuid } from 'uuid';
@Injectable({
providedIn: 'root'
})
export class DbzService {
public characters: Character[] = [{
id: uuid(),
name: 'Krillin',
power: 1000
},
{
id: uui... | 7 |
VlO-OlV/awesome-store | b742786 | packages/mobile/src/hooks/auth/useLogout.ts | TypeScript | www.github.com/VlO-OlV/awesome-store/tree/main/packages/mobile/src/hooks/auth/useLogout.ts | https://raw.githubusercontent.com/VlO-OlV/awesome-store/b742786/packages/mobile/src/hooks/auth/useLogout.ts | VlO-OlV/awesome-store b742786 packages/mobile/src/hooks/auth/useLogout.ts | true | 200 | 476 | import { useMutation } from '@tanstack/react-query';
import { authService } from 'src/services/auth';
import { useAuthStore } from 'src/stores/auth';
import { useCartStore } from 'src/stores/cart';
export const useLogout = () => {
const { removeTokens } = useAuthStore();
const { clearCart } = useCartStore();
retur... | 6 |
CapoVerse-1/SC-LAGERAPP | 9e1d212 | lib/setupStorage.ts | TypeScript | www.github.com/CapoVerse-1/SC-LAGERAPP/tree/main/lib/setupStorage.ts | https://raw.githubusercontent.com/CapoVerse-1/SC-LAGERAPP/9e1d212/lib/setupStorage.ts | CapoVerse-1/SC-LAGERAPP 9e1d212 lib/setupStorage.ts | true | 200 | 1,924 | 'use client';
import { supabase } from './supabase';
// Define the bucket type
interface Bucket {
id: string;
name: string;
owner: string;
public: boolean;
created_at: string;
updated_at: string;
}
/**
* Creates a storage bucket if it doesn't already exist
* @param name The name of the bucket to create... | 0 |
js2me/yammies | 6f2b459 | src/sound.ts | TypeScript | www.github.com/js2me/yammies/tree/main/src/sound.ts | https://raw.githubusercontent.com/js2me/yammies/6f2b459/src/sound.ts | js2me/yammies 6f2b459 src/sound.ts | true | 200 | 383 | /**
* Воспроизводит звук из файла
*/
export const playSound = async (
file: string,
{ volume = 1 }: { volume?: number } = {},
) => {
let audio = new Audio(file);
audio.volume = volume;
audio.muted = !volume;
await audio.play();
audio.remove();
// eslint-disable-next-line @typescript-eslint/ban-ts-comm... | 3 |
ElderJoy/solana-proxy | 03b0fcd | tasks/solana/index.ts | TypeScript | www.github.com/ElderJoy/solana-proxy/tree/main/tasks/solana/index.ts | https://raw.githubusercontent.com/ElderJoy/solana-proxy/03b0fcd/tasks/solana/index.ts | ElderJoy/solana-proxy 03b0fcd tasks/solana/index.ts | true | 200 | 3,636 | // import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
// import { mplToolbox } from '@metaplex-foundation/mpl-toolbox'
import { EddsaInterface, createSignerFromKeypair, publicKey, signerIdentity } from '@metaplex-foundation/umi'
// import { createUmi } from '@metaplex-foundation/umi-bundle-defaults'
import... | 2 |
quantruong-2518/fortress-1-page | 927975d | src/app/pages/home/home.module.ts | TypeScript | www.github.com/quantruong-2518/fortress-1-page/tree/main/src/app/pages/home/home.module.ts | https://raw.githubusercontent.com/quantruong-2518/fortress-1-page/927975d/src/app/pages/home/home.module.ts | quantruong-2518/fortress-1-page 927975d src/app/pages/home/home.module.ts | true | 200 | 880 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HomeComponent } from './home.component';
import { HomeRoutingModule } from './home-routing.module';
import { SharedModule } from 'src/app/shared/shared.module';
import { ShowCaseComponent } from './components/show-case/s... | 4 |
SarahAdel66/Hotel_Agency_Back | 15bf1bd | src/EndPoints/auth/auth.module.ts | TypeScript | www.github.com/SarahAdel66/Hotel_Agency_Back/tree/main/src/EndPoints/auth/auth.module.ts | https://raw.githubusercontent.com/SarahAdel66/Hotel_Agency_Back/15bf1bd/src/EndPoints/auth/auth.module.ts | SarahAdel66/Hotel_Agency_Back 15bf1bd src/EndPoints/auth/auth.module.ts | true | 200 | 538 | import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { JwtModule } from '@nestjs/jwt';
import { userSchema } from './auth.schema';
@Module({
imports:[
MongooseModule.for... | 1 |
Javed90/chef.com | 6ecec42 | src/app/views/single-product/single-product.module.ts | TypeScript | www.github.com/Javed90/chef.com/tree/main/src/app/views/single-product/single-product.module.ts | https://raw.githubusercontent.com/Javed90/chef.com/6ecec42/src/app/views/single-product/single-product.module.ts | Javed90/chef.com 6ecec42 src/app/views/single-product/single-product.module.ts | true | 200 | 592 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SingleProductComponent } from '../single-product/single-product.component'
import { SingleProductRoutingModule } from './single-product-routing.module';
import { SearchStringPipe } from 'src/app/_pipes/search-string.pipe'... | 7 |
Kenzie-T12-G9/Movie-Play-API | c0943a8 | src/app.ts | TypeScript | www.github.com/Kenzie-T12-G9/Movie-Play-API/tree/main/src/app.ts | https://raw.githubusercontent.com/Kenzie-T12-G9/Movie-Play-API/c0943a8/src/app.ts | Kenzie-T12-G9/Movie-Play-API c0943a8 src/app.ts | true | 200 | 1,181 | import 'reflect-metadata';
import 'express-async-errors';
import MiddlewareErrors from './middlewares/handleError.middleware';
import express from 'express';
import swaggerUi from 'swagger-ui-express';
import documentation from './documentation/api-documentation.json';
import { userRouter } from './routes/Users.rout... | 6 |
Levurmion/ICAC-Scoresheet | e3f99d3 | match_server/src/lib/classes/tests/MatchBehaviour.test.ts | TypeScript | www.github.com/Levurmion/ICAC-Scoresheet/tree/main/match_server/src/lib/classes/tests/MatchBehaviour.test.ts | https://raw.githubusercontent.com/Levurmion/ICAC-Scoresheet/e3f99d3/match_server/src/lib/classes/tests/MatchBehaviour.test.ts | Levurmion/ICAC-Scoresheet e3f99d3 match_server/src/lib/classes/tests/MatchBehaviour.test.ts | true | 200 | 47,363 | import { RedisJSON } from "@redis/json/dist/commands";
import { RedisClientType, createClient } from "redis";
import * as types from "../../types";
import Match from "../Match";
import { Archer } from "../Archer";
import redisClient from "../../redis/redisClient";
import { beforeEach, afterEach } from "@jest/globals";
... | 5 |
Manish-Malviya-Sa/ts_project | d36bb24 | src/services/users.services.ts | TypeScript | www.github.com/Manish-Malviya-Sa/ts_project/tree/main/src/services/users.services.ts | https://raw.githubusercontent.com/Manish-Malviya-Sa/ts_project/d36bb24/src/services/users.services.ts | Manish-Malviya-Sa/ts_project d36bb24 src/services/users.services.ts | true | 200 | 732 | import { DocumentDefinition,FilterQuery,QueryOptions,UpdateQuery} from "mongoose";
import User, {UserDocument } from "../models/users";
export function createUser(input: DocumentDefinition<UserDocument>){
return User.create(input);
}
export function findUser(query: FilterQuery<UserDocument>,option... | 4 |
dbfernandes/sysicomp-back | 0109681 | src/routes/room.routes.ts | TypeScript | www.github.com/dbfernandes/sysicomp-back/tree/main/src/routes/room.routes.ts | https://raw.githubusercontent.com/dbfernandes/sysicomp-back/0109681/src/routes/room.routes.ts | dbfernandes/sysicomp-back 0109681 src/routes/room.routes.ts | true | 200 | 1,133 | import { Router } from 'express';
import ensureAuthenticated from '../middlewares/ensureAuthenticated';
import CreateRoomService from '../services/CreateRoomService';
import CreateRoomReserveService from '../services/CreateRoomReserveService';
const roomRouter = Router();
roomRouter.use(ensureAuthenticated);
roomRo... | 2 |
razielron/Fixer | 015657c | client/fixer-app/pages/api/issue.ts | TypeScript | www.github.com/razielron/Fixer/tree/main/client/fixer-app/pages/api/issue.ts | https://raw.githubusercontent.com/razielron/Fixer/015657c/client/fixer-app/pages/api/issue.ts | razielron/Fixer 015657c client/fixer-app/pages/api/issue.ts | true | 200 | 1,598 | import type { NextApiRequest, NextApiResponse } from 'next';
import type { IssueModel } from '@/src/models/issueModel';
import {ApiResponseModel} from '@/src/models/apiModel';
import { issueClient } from '@/src/apiClients/issueClient';
async function getIssueByProfessionHandler (
req: NextApiRequest,
res: Next... | 3 |
uxland/lit | 023d41b | packages/prism/app/geo-location/get-last-location.ts | TypeScript | www.github.com/uxland/lit/tree/main/packages/prism/app/geo-location/get-last-location.ts | https://raw.githubusercontent.com/uxland/lit/023d41b/packages/prism/app/geo-location/get-last-location.ts | uxland/lit 023d41b packages/prism/app/geo-location/get-last-location.ts | true | 200 | 619 | import {store} from '../../store';
import {lastKnownPositionSelector} from './selectors';
export interface Position {}
export const getLastLocation: (
maxAge: number,
timeout?: number,
highAccuracy?: boolean
) => Promise<Position> = (maxAge, timeout, highAccuracy) => {
const lastKnown = lastKnownPositionSelec... | 0 |
diliprai07/Coding-Challenge-List | 30e74bb | mediume-leet-code/integer-to-roman.ts | TypeScript | www.github.com/diliprai07/Coding-Challenge-List/tree/main/mediume-leet-code/integer-to-roman.ts | https://raw.githubusercontent.com/diliprai07/Coding-Challenge-List/30e74bb/mediume-leet-code/integer-to-roman.ts | diliprai07/Coding-Challenge-List 30e74bb mediume-leet-code/integer-to-roman.ts | true | 200 | 3,111 | // Integer to Roman
// Medium
// Topics
// Companies
// Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
// Symbol Value
// I 1
// V 5
// X 10
// L 50
// C 100
// D 500
// M 1000
// For example,... | 1 |
pedrohsdias/novoauto | 3cd7a1a | api/src/cliente/service/clientes.service.ts | TypeScript | www.github.com/pedrohsdias/novoauto/tree/main/api/src/cliente/service/clientes.service.ts | https://raw.githubusercontent.com/pedrohsdias/novoauto/3cd7a1a/api/src/cliente/service/clientes.service.ts | pedrohsdias/novoauto 3cd7a1a api/src/cliente/service/clientes.service.ts | true | 200 | 1,656 | import { Injectable } from '@nestjs/common';
import { BaseService } from '../../base/base.service';
import { ClientesRepository } from '../repository/clientes.repository';
import { ClienteEntity } from '../entity/cliente.entity';
import { BaseModelDto } from '../../base/dto/baseModel.dto';
import { PessoasService } fro... | 7 |
electrovir/agenda-editor | adf7e29 | src/ui/elements/editor-elements/sections-editors/vir-text-editor.element.ts | TypeScript | www.github.com/electrovir/agenda-editor/tree/main/src/ui/elements/editor-elements/sections-editors/vir-text-editor.element.ts | https://raw.githubusercontent.com/electrovir/agenda-editor/adf7e29/src/ui/elements/editor-elements/sections-editors/vir-text-editor.element.ts | electrovir/agenda-editor adf7e29 src/ui/elements/editor-elements/sections-editors/vir-text-editor.element.ts | true | 200 | 2,039 | import {check} from '@augment-vir/assert';
import {copyThroughJson, getEnumValues} from '@augment-vir/common';
import {css, defineElement, html, listen} from 'element-vir';
import {AgendaSectionByType} from '../../../../data/agenda/agenda-section.js';
import {TextAlignment} from '../../../../data/agenda/agenda-sections... | 5 |
teofanis/adventofcode | c4ecd92 | src/day09/index.ts | TypeScript | www.github.com/teofanis/adventofcode/tree/main/src/day09/index.ts | https://raw.githubusercontent.com/teofanis/adventofcode/c4ecd92/src/day09/index.ts | teofanis/adventofcode c4ecd92 src/day09/index.ts | true | 200 | 3,647 | import run from "aocrunner";
type DiskEntry = [number, number];
type DiskBlock = ("." | number)[];
type ParsedInput = DiskEntry[];
const decompressDiskMap = (compressed: ParsedInput): DiskBlock => {
const result: DiskBlock = [];
compressed.forEach(([file, space], index) => {
for (let i = 0; i < file; i++) {
... | 6 |
hung176/wordle-backend | 0e61270 | src/session/schemas/session.schema.ts | TypeScript | www.github.com/hung176/wordle-backend/tree/main/src/session/schemas/session.schema.ts | https://raw.githubusercontent.com/hung176/wordle-backend/0e61270/src/session/schemas/session.schema.ts | hung176/wordle-backend 0e61270 src/session/schemas/session.schema.ts | true | 200 | 1,065 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { User } from 'src/user/schemas/user.schema';
import { KeyboardColor, STATUS, Attempt } from '../types';
import { Challenge, ChallengeType } from 'src/challenge/schemas/challenge.schema';
export type SessionDocu... | 4 |
MurakawaTakuya/todo-real | 7aee594 | src/utils/API/Goal/createGoal.ts | TypeScript | www.github.com/MurakawaTakuya/todo-real/tree/main/src/utils/API/Goal/createGoal.ts | https://raw.githubusercontent.com/MurakawaTakuya/todo-real/7aee594/src/utils/API/Goal/createGoal.ts | MurakawaTakuya/todo-real 7aee594 src/utils/API/Goal/createGoal.ts | true | 200 | 2,460 | import { functionsEndpoint } from "@/app/firebase";
import { Goal } from "@/types/types";
import getAppCheckToken from "@/utils/getAppCheckToken";
/**
* Cloud FunctionsのAPIを呼び出して、目標をFirestoreに登録する
*
* @param {Goal} postData
* @return {*}
*/
export const createGoal = async (postData: Goal) => {
// 過去の時間が入力されている場... | 2 |
citrineos/citrineos-operator-ui | dbded19 | src/model/CustomerInformation.ts | TypeScript | www.github.com/citrineos/citrineos-operator-ui/tree/main/src/model/CustomerInformation.ts | https://raw.githubusercontent.com/citrineos/citrineos-operator-ui/dbded19/src/model/CustomerInformation.ts | citrineos/citrineos-operator-ui dbded19 src/model/CustomerInformation.ts | true | 200 | 2,605 | import { Type } from 'class-transformer';
import { CustomDataType } from './CustomData';
import { IdToken, IdTokenProps } from '../pages/id-tokens/id-token';
import { GqlAssociation } from '@util/decorators/GqlAssociation';
import { ChargingStation } from '../pages/charging-stations/ChargingStation';
import { ADDITIONA... | 3 |
Diplomasafe/mceu | 4ec985b | mceu-api/src/app.module.ts | TypeScript | www.github.com/Diplomasafe/mceu/tree/main/mceu-api/src/app.module.ts | https://raw.githubusercontent.com/Diplomasafe/mceu/4ec985b/mceu-api/src/app.module.ts | Diplomasafe/mceu 4ec985b mceu-api/src/app.module.ts | true | 200 | 1,246 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { ConfigModule } from '@nestjs/config';
import { SharedModule } from './shared/shared.module';
import { app, database, ebsi, keycloak, logger, mail, vetProvider } from './config';
import { UsersModule } from './users/users... | 0 |
Oliynuckaaa309/phone-book | 3d500cd | src/app/childComponent/child/child.component.ts | TypeScript | www.github.com/Oliynuckaaa309/phone-book/tree/main/src/app/childComponent/child/child.component.ts | https://raw.githubusercontent.com/Oliynuckaaa309/phone-book/3d500cd/src/app/childComponent/child/child.component.ts | Oliynuckaaa309/phone-book 3d500cd src/app/childComponent/child/child.component.ts | true | 200 | 2,480 | import { Component, Input } from '@angular/core';
import { dataPhone } from '../../interface/phoneNumbers';
import { FormBuilder, FormGroup, FormsModule, Validators } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { SearchPipe } from '../../pipe/search.pipe';
import { RouterModule } from ... | 1 |
aws4embeddedlinux/demo-iot-automotive-cloud | cb11f84 | lib/cdk-aws-iotfleetwise/src/vehiclemodel.ts | TypeScript | www.github.com/aws4embeddedlinux/demo-iot-automotive-cloud/tree/main/lib/cdk-aws-iotfleetwise/src/vehiclemodel.ts | https://raw.githubusercontent.com/aws4embeddedlinux/demo-iot-automotive-cloud/cb11f84/lib/cdk-aws-iotfleetwise/src/vehiclemodel.ts | aws4embeddedlinux/demo-iot-automotive-cloud cb11f84 lib/cdk-aws-iotfleetwise/src/vehiclemodel.ts | true | 200 | 5,679 | import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { Handler } from './handler';
import { Provider } from './provider';
import { SignalCatalog } from './signalcatalog';
export class VehicleInterface {
protected intf: object;
constructor() {
this.intf = {};
}
toObject(): ob... | 7 |
khulnasoft/UniSynth | 7dae429 | packages/unisynth-city/src/runtime/src/service-worker/prefetch.unit.ts | TypeScript | www.github.com/khulnasoft/UniSynth/tree/main/packages/unisynth-city/src/runtime/src/service-worker/prefetch.unit.ts | https://raw.githubusercontent.com/khulnasoft/UniSynth/7dae429/packages/unisynth-city/src/runtime/src/service-worker/prefetch.unit.ts | khulnasoft/UniSynth 7dae429 packages/unisynth-city/src/runtime/src/service-worker/prefetch.unit.ts | true | 200 | 6,412 | import { describe } from 'node:test';
import { afterEach, expect, test, vi } from 'vitest';
import { cachedFetch } from './cached-fetch';
import { awaitingRequests, existingPrefetchUrls, prefetchQueue } from './constants';
import { addBundlesToPrefetchQueue, drainQueue } from './prefetch';
import type { AppBundle, Fetc... | 6 |
DamazioUol/App_Portal_Usuario | cde32e2 | src/app/app.module.ts | TypeScript | www.github.com/DamazioUol/App_Portal_Usuario/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/DamazioUol/App_Portal_Usuario/cde32e2/src/app/app.module.ts | DamazioUol/App_Portal_Usuario cde32e2 src/app/app.module.ts | true | 200 | 2,405 | import { registerLocaleData } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import localePt from '@angular/common/locales/pt';
import { LOCALE_ID, NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatMomentDateModule } from '@... | 4 |
cari1412/newway | 60582e9 | src/utils/formats.ts | TypeScript | www.github.com/cari1412/newway/tree/main/src/utils/formats.ts | https://raw.githubusercontent.com/cari1412/newway/60582e9/src/utils/formats.ts | cari1412/newway 60582e9 src/utils/formats.ts | true | 200 | 5,610 | // Базовое форматирование цен
export const formatPrice = (price: number): string => {
return `$${price.toFixed(2)}`;
};
// Форматирование объема данных
export const formatDataVolume = (dataStr: string): string => {
return dataStr; // Данные уже приходят в формате "XX.X GB"
};
// Продвинутое форматирование данных
... | 2 |
madjid123/Dexchat-full | 8d5362f | routes/user.ts | TypeScript | www.github.com/madjid123/Dexchat-full/tree/main/routes/user.ts | https://raw.githubusercontent.com/madjid123/Dexchat-full/8d5362f/routes/user.ts | madjid123/Dexchat-full 8d5362f routes/user.ts | true | 200 | 1,155 | import express, { Router } from "express";
import { isAuth, isReqAuthorized } from "../utils/middlewares/middlewares";
import { getRoomsHandlerFunction } from "../controllers/getRooms";
import {
TypedRequest,
modifyUserController,
validateModifyInputs,
} from "../controllers/modifyUser";
import { param, v... | 3 |
ShaharKrichli/lamed-li-client | 7caca19 | src/Components/Landing/LandingLoginPoup/LoginRight/LoginRight.style.ts | TypeScript | www.github.com/ShaharKrichli/lamed-li-client/tree/main/src/Components/Landing/LandingLoginPoup/LoginRight/LoginRight.style.ts | https://raw.githubusercontent.com/ShaharKrichli/lamed-li-client/7caca19/src/Components/Landing/LandingLoginPoup/LoginRight/LoginRight.style.ts | ShaharKrichli/lamed-li-client 7caca19 src/Components/Landing/LandingLoginPoup/LoginRight/LoginRight.style.ts | true | 200 | 384 | import { styled } from "@mui/material/styles";
export const RightContainer = styled('div')({
paddingRight: '2rem',
paddingLeft: '2rem',
textAlign: 'center'
});
export const RightCloseIcon = styled('span')({
marginRight: '1rem',
marginTop: '1rem',
cursor: 'pointer',
":hover": {
back... | 5 |
Cruyff97/ShortURL | 2493ce9 | src/app/map/map.component.ts | TypeScript | www.github.com/Cruyff97/ShortURL/tree/main/src/app/map/map.component.ts | https://raw.githubusercontent.com/Cruyff97/ShortURL/2493ce9/src/app/map/map.component.ts | Cruyff97/ShortURL 2493ce9 src/app/map/map.component.ts | true | 200 | 3,118 | import { GeocodingService } from "./../services/geocoding.service"
import { Component, Input, OnInit } from "@angular/core"
import * as mapboxgl from "mapbox-gl"
@Component({
selector: "app-map",
templateUrl: "./map.component.html",
styleUrls: ["./map.component.css"]
})
export class MapComponent implements... | 0 |
oceanprotocol/ocean-node | d526062 | src/test/integration/compute.test.ts | TypeScript | www.github.com/oceanprotocol/ocean-node/tree/main/src/test/integration/compute.test.ts | https://raw.githubusercontent.com/oceanprotocol/ocean-node/d526062/src/test/integration/compute.test.ts | oceanprotocol/ocean-node d526062 src/test/integration/compute.test.ts | true | 200 | 44,366 | import { expect, assert } from 'chai'
import {
ComputeGetEnvironmentsHandler,
// ComputeStartHandler,
ComputeStopHandler,
ComputeGetStatusHandler,
ComputeInitializeHandler,
FreeComputeStartHandler,
PaidComputeStartHandler
} from '../../components/core/compute/index.js'
import type {
PaidComputeStartComm... | 1 |
suchy/cartlify-api | a2c98fb | src/interfaces/api/management/management-orders-notes/management-orders-notes-get-many/management-orders-notes-get-many.ts | TypeScript | www.github.com/suchy/cartlify-api/tree/main/src/interfaces/api/management/management-orders-notes/management-orders-notes-get-many/management-orders-notes-get-many.ts | https://raw.githubusercontent.com/suchy/cartlify-api/a2c98fb/src/interfaces/api/management/management-orders-notes/management-orders-notes-get-many/management-orders-notes-get-many.ts | suchy/cartlify-api a2c98fb src/interfaces/api/management/management-orders-notes/management-orders-notes-get-many/management-orders-notes-get-many.ts | true | 200 | 1,483 | import { RequestHandler } from 'express';
import { getOrderNotesWithCount } from '../../../../../domain/order-note/get-order-notes-with-count/get-order-notes-with-count';
import { ManagementOrdersNotesGetManyResponseFactory } from './management-orders-notes-get-many-response';
import { STATUS_OK } from '../../../../.... | 6 |
738326776zby/yd-new | b1f6e9d | i18n/it-IT/app-log.ts | TypeScript | www.github.com/738326776zby/yd-new/tree/main/i18n/it-IT/app-log.ts | https://raw.githubusercontent.com/738326776zby/yd-new/b1f6e9d/i18n/it-IT/app-log.ts | 738326776zby/yd-new b1f6e9d i18n/it-IT/app-log.ts | true | 200 | 3,476 | const translation = {
title: 'Registri',
description:
'I registri registrano lo stato di esecuzione dell\'applicazione, inclusi input degli utenti e risposte AI.',
dateTimeFormat: 'MM/DD/YYYY hh:mm A',
table: {
header: {
updatedTime: 'Ora di aggiornamento',
time: 'Ora di creazione',
... | 4 |
Jcurver/marketfizz | 9948b22 | pages/api/streams/index.ts | TypeScript | www.github.com/Jcurver/marketfizz/tree/main/pages/api/streams/index.ts | https://raw.githubusercontent.com/Jcurver/marketfizz/9948b22/pages/api/streams/index.ts | Jcurver/marketfizz 9948b22 pages/api/streams/index.ts | true | 200 | 1,002 | import { withIronSessionApiRoute } from 'iron-session/next';
import { NextApiRequest, NextApiResponse } from 'next';
import withHandler, { ResponseType } from '@libs/server/withHandler';
import client from '@libs/server/client';
import { withApiSession } from '@libs/server/withSession';
async function handler(
req: N... | 2 |
hieu3c20/chat_app | 2562961 | client/src/app/app.component.ts | TypeScript | www.github.com/hieu3c20/chat_app/tree/main/client/src/app/app.component.ts | https://raw.githubusercontent.com/hieu3c20/chat_app/2562961/client/src/app/app.component.ts | hieu3c20/chat_app 2562961 client/src/app/app.component.ts | true | 200 | 849 | import { Component, OnInit } from '@angular/core';
import { User } from './_models/user';
import { AccountService } from './_services/account.service';
import { Router, ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.cs... | 3 |
niigyanchristian/RGT | 7600dc6 | week 5/student-exams-app/src/routes/students.ts | TypeScript | www.github.com/niigyanchristian/RGT/tree/main/week 5/student-exams-app/src/routes/students.ts | https://raw.githubusercontent.com/niigyanchristian/RGT/7600dc6/week%205/student-exams-app/src/routes/students.ts | niigyanchristian/RGT 7600dc6 week 5/student-exams-app/src/routes/students.ts | true | 200 | 997 | import { Router } from 'express';
import { body } from 'express-validator';
import { authenticateToken, authorizeRole } from '../middleware/auth';
import { createStudent, getStudents, getStudentById, updateStudent, deleteStudent } from '../controllers/students';
const router = Router();
const validator = [
body('... | 0 |
Crafts-GraduationProject/crafts-Admin | 7270198 | src/app/Components/home/home.component.ts | TypeScript | www.github.com/Crafts-GraduationProject/crafts-Admin/tree/main/src/app/Components/home/home.component.ts | https://raw.githubusercontent.com/Crafts-GraduationProject/crafts-Admin/7270198/src/app/Components/home/home.component.ts | Crafts-GraduationProject/crafts-Admin 7270198 src/app/Components/home/home.component.ts | true | 200 | 1,197 | import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { AuthenticationService } from 'src/app/Services/authentication.service';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Observable } from 'rxjs';
import { map, shareReplay } from 'rxjs/operators';
@Component(... | 6 |
patyfb04/mynodewebsite | cfcf2d3 | app/src/features/login/login.component.ts | TypeScript | www.github.com/patyfb04/mynodewebsite/tree/main/app/src/features/login/login.component.ts | https://raw.githubusercontent.com/patyfb04/mynodewebsite/cfcf2d3/app/src/features/login/login.component.ts | patyfb04/mynodewebsite cfcf2d3 app/src/features/login/login.component.ts | true | 200 | 2,074 | import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { UserService } from './../users/user.service';
import { Observable } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { User } from './../users/user';
import { FormControl, FormGroup } from '@angular/forms';
import { E... | 4 |
philosopherstonerush/javascript-notes | 32ad524 | frontend/angular/services_dependency_injection/course_assignment/src/app/users-service.service.ts | TypeScript | www.github.com/philosopherstonerush/javascript-notes/tree/main/frontend/angular/services_dependency_injection/course_assignment/src/app/users-service.service.ts | https://raw.githubusercontent.com/philosopherstonerush/javascript-notes/32ad524/frontend/angular/services_dependency_injection/course_assignment/src/app/users-service.service.ts | philosopherstonerush/javascript-notes 32ad524 frontend/angular/services_dependency_injection/course_assignment/src/app/users-service.service.ts | true | 200 | 854 | import { Injectable } from '@angular/core';
import {CountingServiceService} from "./counting-service.service";
@Injectable({
providedIn: 'root'
})
export class UsersServiceService {
active_users: string[] = ['Max', 'Anna'];
in_active_users: string[] = ['Chris', 'Manu'];
constructor(private countinService: Co... | 2 |
Jenna-Deamer/MEAN-Budget-App | 6f45787 | src/app/components/forms/create/create.component.ts | TypeScript | www.github.com/Jenna-Deamer/MEAN-Budget-App/tree/main/src/app/components/forms/create/create.component.ts | https://raw.githubusercontent.com/Jenna-Deamer/MEAN-Budget-App/6f45787/src/app/components/forms/create/create.component.ts | Jenna-Deamer/MEAN-Budget-App 6f45787 src/app/components/forms/create/create.component.ts | true | 200 | 2,802 | import { Component, OnInit } from '@angular/core';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { NgFor,NgIf,NgClass} from '@angular/common';
import { NgModel } from '@angular/forms';
import { FormsModule } from '@angular/forms';
//service for api calls
import { TransactionsServ... | 3 |
DavitDashyan/client-side-web-indiv | 49c9994 | libs/shared/api/src/lib/models/cart-item.interface.ts | TypeScript | www.github.com/DavitDashyan/client-side-web-indiv/tree/main/libs/shared/api/src/lib/models/cart-item.interface.ts | https://raw.githubusercontent.com/DavitDashyan/client-side-web-indiv/49c9994/libs/shared/api/src/lib/models/cart-item.interface.ts | DavitDashyan/client-side-web-indiv 49c9994 libs/shared/api/src/lib/models/cart-item.interface.ts | true | 200 | 404 | import { Id } from './id.type';
export interface ICartItem {
_id: Id;
productId: Id;
quantity: number;
nameProduct: string;
price: number;
productImageUrl: string;
}
export type ICreateCartItem = Pick<
ICartItem,
'productId' | 'quantity' | 'nameProduct' | 'price' // | 'isAdmin'
>;
export type IUpdate... | 1 |
Lukita161/car-shop-server | b1b4aa9 | src/utils/verifyToken.ts | TypeScript | www.github.com/Lukita161/car-shop-server/tree/main/src/utils/verifyToken.ts | https://raw.githubusercontent.com/Lukita161/car-shop-server/b1b4aa9/src/utils/verifyToken.ts | Lukita161/car-shop-server b1b4aa9 src/utils/verifyToken.ts | true | 200 | 881 | import { Request } from "express"
import jwt from 'jsonwebtoken'
import { AdminCredentials } from "../types"
import { AdminModel } from "../Models/Admin"
export const verifyToken = (req:Request, userId: AdminCredentials['id'])=> {
const token = req.headers.authorization
const bearerToken = token.split(" ")[1]
... | 0 |
NickTsitlakidis/swan | 5caa40a | apps/api/src/app/support/metaplex/metaplex-service.ts | TypeScript | www.github.com/NickTsitlakidis/swan/tree/main/apps/api/src/app/support/metaplex/metaplex-service.ts | https://raw.githubusercontent.com/NickTsitlakidis/swan/5caa40a/apps/api/src/app/support/metaplex/metaplex-service.ts | NickTsitlakidis/swan 5caa40a apps/api/src/app/support/metaplex/metaplex-service.ts | true | 200 | 1,903 | import { Injectable } from "@nestjs/common";
import { MetaplexMetadata, NFTStorageMetaplexor } from "@nftstorage/metaplex-auth";
import { isNil } from "@nft-marketplace/utils";
import { Metaplex } from "@metaplex-foundation/js";
import { Connection, clusterApiUrl, PublicKey, Keypair } from "@solana/web3.js";
import axi... | 6 |
M3IY0U/meiyounaise-ts | 6dd39e9 | src/commands/lastfm/Weekly.ts | TypeScript | www.github.com/M3IY0U/meiyounaise-ts/tree/main/src/commands/lastfm/Weekly.ts | https://raw.githubusercontent.com/M3IY0U/meiyounaise-ts/6dd39e9/src/commands/lastfm/Weekly.ts | M3IY0U/meiyounaise-ts 6dd39e9 src/commands/lastfm/Weekly.ts | true | 200 | 6,652 | import {
UnknownAvatar,
getUserColor,
maskedUrl,
respond,
} from "../../util/general.js";
import { LastCommand } from "./last-util/LastCommand.js";
import { getLastArtistImage } from "./last-util/LastUtil.js";
import { RecentTrack } from "./last-util/types/RecentResponse.js";
import { TimeSpan } from "./last-ut... | 2 |
husseinsalah1/e-commerce | c47ce70 | src/middlewares/admin.ts | TypeScript | www.github.com/husseinsalah1/e-commerce/tree/main/src/middlewares/admin.ts | https://raw.githubusercontent.com/husseinsalah1/e-commerce/c47ce70/src/middlewares/admin.ts | husseinsalah1/e-commerce c47ce70 src/middlewares/admin.ts | true | 200 | 549 | import { NextFunction, Request, Response } from "express";
import UnauthorizedException from "../exceptions/unauthorized";
import { ErrorCodes } from "../exceptions/root";
import { Role } from "../entities/User";
const adminMiddleware = async (
req: Request,
res: Response,
next: NextFunction
) => {
const user ... | 4 |
abdullah-masud/user-order-management-crud | 05fa20b | src/app.ts | TypeScript | www.github.com/abdullah-masud/user-order-management-crud/tree/main/src/app.ts | https://raw.githubusercontent.com/abdullah-masud/user-order-management-crud/05fa20b/src/app.ts | abdullah-masud/user-order-management-crud 05fa20b src/app.ts | true | 200 | 508 | import express, { Application, Request, Response } from 'express';
import cors from 'cors';
import { UserRoutes } from './app/modules/user/user.route';
const app: Application = express();
// parsers
app.use(express.json());
app.use(cors());
// application routes
app.use('/api/users', UserRoutes);
const getAControll... | 3 |
Projeto-20-DrivenT/drivent-backend | 4c74098 | src/services/authentication-service/index.ts | TypeScript | www.github.com/Projeto-20-DrivenT/drivent-backend/tree/main/src/services/authentication-service/index.ts | https://raw.githubusercontent.com/Projeto-20-DrivenT/drivent-backend/4c74098/src/services/authentication-service/index.ts | Projeto-20-DrivenT/drivent-backend 4c74098 src/services/authentication-service/index.ts | true | 200 | 2,585 | import sessionRepository from "@/repositories/session-repository";
import userRepository from "@/repositories/user-repository";
import { exclude } from "@/utils/prisma-utils";
import { User } from "@prisma/client";
import bcrypt from "bcrypt";
import jwt from "jsonwebtoken";
import { invalidCredentialsError } from "./e... | 1 |
alexandrecarvalheira/fhenix-hardhat | e2b911d | scripts/testfhe.ts | TypeScript | www.github.com/alexandrecarvalheira/fhenix-hardhat/tree/main/scripts/testfhe.ts | https://raw.githubusercontent.com/alexandrecarvalheira/fhenix-hardhat/e2b911d/scripts/testfhe.ts | alexandrecarvalheira/fhenix-hardhat e2b911d scripts/testfhe.ts | true | 200 | 1,014 | import { FhenixClient, Permit, getPermit, removePermit } from "fhenixjs";
const hre = require("hardhat");
async function getCounter() {
const accounts = await hre.ethers.getSigners();
const contractOwner = accounts[0];
const contractAddress = "0x97676c46DF9566ebE9f5922C619dda7d88DE98F7";
const tokenAdress = ... | 6 |
melon-dog/rate-keeper | c948ea9 | src/index.ts | TypeScript | www.github.com/melon-dog/rate-keeper/tree/main/src/index.ts | https://raw.githubusercontent.com/melon-dog/rate-keeper/c948ea9/src/index.ts | melon-dog/rate-keeper c948ea9 src/index.ts | true | 200 | 3,559 | const globalRateData = new Map<number, LimitData>();
/**
* @enum {DropPolicy} Defines the behavior of the queue when the maximum size has been reached.
*/
export enum DropPolicy {
Reject,
DropOldest
}
type Action = {
action: (() => void)
reject: (reason: Error) => void
}
/**
* @param {number} id A... | 0 |
yicr/aws-secure-application-load-balancer-access-log-bucket | a8c592b | test/bucket.test.ts | TypeScript | www.github.com/yicr/aws-secure-application-load-balancer-access-log-bucket/tree/main/test/bucket.test.ts | https://raw.githubusercontent.com/yicr/aws-secure-application-load-balancer-access-log-bucket/a8c592b/test/bucket.test.ts | yicr/aws-secure-application-load-balancer-access-log-bucket a8c592b test/bucket.test.ts | true | 200 | 4,539 | import { App, Stack } from 'aws-cdk-lib';
import { Match, Template } from 'aws-cdk-lib/assertions';
import * as s3 from 'aws-cdk-lib/aws-s3';
import { SecureApplicationLoadBalancerAccessLogBucket } from '../src';
describe('SecureApplicationLoadBalancerAccessLogBucket Testing', () => {
const app = new App();
const... | 2 |
Amal-Amama/gennyConnect-backend | 574cddc | src/chat/chat.controller.ts | TypeScript | www.github.com/Amal-Amama/gennyConnect-backend/tree/main/src/chat/chat.controller.ts | https://raw.githubusercontent.com/Amal-Amama/gennyConnect-backend/574cddc/src/chat/chat.controller.ts | Amal-Amama/gennyConnect-backend 574cddc src/chat/chat.controller.ts | true | 200 | 3,056 | import {
Body,
Controller,
Get,
Param,
Post,
Req,
UseGuards,
} from '@nestjs/common';
import { ChatService } from './chat.service';
import { Roles } from 'src/auth/config/decorator/roles.decorator';
import { UserRole } from 'src/auth/schemas/user.schema';
import { Request } from 'express';
import { JwtAut... | 4 |
wujun4code/togo-graphql | d425c00 | src/schema/travel-plan/travel-plan.ts | TypeScript | www.github.com/wujun4code/togo-graphql/tree/main/src/schema/travel-plan/travel-plan.ts | https://raw.githubusercontent.com/wujun4code/togo-graphql/d425c00/src/schema/travel-plan/travel-plan.ts | wujun4code/togo-graphql d425c00 src/schema/travel-plan/travel-plan.ts | true | 200 | 1,030 | export const typeDefs = `#graphql
type TravelPlan {
id: ID!
content: String
published: Boolean!
creatorId: ID!
origin: LocationPoint
destination: LocationPoint
}
type Query {
getTravelPlan(id: ID!): TravelPlan
getAllTravelPlans(filters: JSON!): [TravelPlan]
getMyTravelPlans(filters: JS... | 1 |
uengmim/Angular | 3a6520d | Test1/ClientApp/src/app/pages/SUBCP/SBCC/sbcc.component.ts | TypeScript | www.github.com/uengmim/Angular/tree/main/Test1/ClientApp/src/app/pages/SUBCP/SBCC/sbcc.component.ts | https://raw.githubusercontent.com/uengmim/Angular/3a6520d/Test1/ClientApp/src/app/pages/SUBCP/SBCC/sbcc.component.ts | uengmim/Angular 3a6520d Test1/ClientApp/src/app/pages/SUBCP/SBCC/sbcc.component.ts | true | 200 | 5,519 | import { Component, ViewChild } from '@angular/core';
import CustomStore from 'devextreme/data/custom_store';
import 'devextreme/data/odata/store';
import { ImateDataService } from '../../../shared/imate/imateDataAdapter';
import { formatDate } from '@angular/common';
import { ZMMS0270Model, ZMMSCCMPSubulModel } from ... | 6 |
turkandemirci/test-app | c9fbad1 | src/features/users/hooks/use-user.ts | TypeScript | www.github.com/turkandemirci/test-app/tree/main/src/features/users/hooks/use-user.ts | https://raw.githubusercontent.com/turkandemirci/test-app/c9fbad1/src/features/users/hooks/use-user.ts | turkandemirci/test-app c9fbad1 src/features/users/hooks/use-user.ts | true | 200 | 588 | import { useDispatch, useSelector } from "react-redux";
import { useGetUserByIdQuery, useGetUsersQuery } from "../api/user-api";
// src/features/user/hooks/useUser.ts
import { RootState } from "@/store/store";
import { setSelectedUserId } from "../store/user-slice";
export const useUser = () => {
const dispatch = u... | 0 |
MarioJunio/web-app-finances-management | 661ee38 | src/app/model/model.ts | TypeScript | www.github.com/MarioJunio/web-app-finances-management/tree/main/src/app/model/model.ts | https://raw.githubusercontent.com/MarioJunio/web-app-finances-management/661ee38/src/app/model/model.ts | MarioJunio/web-app-finances-management 661ee38 src/app/model/model.ts | true | 200 | 591 | export class Categoria {
codigo: number;
nome: string;
}
export class Endereco {
logradouro: string;
numero: number;
complemento: string;
bairro: string;
cep: string;
cidade: string;
estado: string;
}
export class Pessoa {
codigo: number;
nome: string;
ativo: boolean;
endereco: Endereco = ne... | 2 |
fouad-abdeen/SocialApp-Server | cf54cd9 | src/core/config/express.config.ts | TypeScript | www.github.com/fouad-abdeen/SocialApp-Server/tree/main/src/core/config/express.config.ts | https://raw.githubusercontent.com/fouad-abdeen/SocialApp-Server/cf54cd9/src/core/config/express.config.ts | fouad-abdeen/SocialApp-Server cf54cd9 src/core/config/express.config.ts | true | 200 | 2,485 | import express from "express";
import * as httpContext from "express-http-context";
import cors from "cors";
import cookieParser from "cookie-parser";
import { Action, useContainer, useExpressServer } from "routing-controllers";
import { Container } from "typedi";
import swaggerUiExpress from "swagger-ui-express";
impo... | 4 |
liumaowen/lmwangle2 | cecb4c4 | src/app/routes/payment/payment/payment.component.ts | TypeScript | www.github.com/liumaowen/lmwangle2/tree/main/src/app/routes/payment/payment/payment.component.ts | https://raw.githubusercontent.com/liumaowen/lmwangle2/cecb4c4/src/app/routes/payment/payment/payment.component.ts | liumaowen/lmwangle2 cecb4c4 src/app/routes/payment/payment/payment.component.ts | true | 200 | 3,157 | import { PaymentapiService } from './../paymentapi.service';
import { Component, OnInit, ViewChild } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';
import { DatePipe } from '@angular/common';
import { ToasterService } from 'angular2-toaster/angular2-toaster';
@Component({
selector... | 1 |
HunterHou/search-tauri | c27faa7 | src/components/model/FileModel.ts | TypeScript | www.github.com/HunterHou/search-tauri/tree/main/src/components/model/FileModel.ts | https://raw.githubusercontent.com/HunterHou/search-tauri/c27faa7/src/components/model/FileModel.ts | HunterHou/search-tauri c27faa7 src/components/model/FileModel.ts | true | 200 | 675 | class FileModel {
Id = '';
Tags: string[] | undefined;
MovieType = '';
FileType = '';
Jpg = '';
Png = '';
Gif = '';
Actress = '';
Code = '';
MTime: Date | undefined;
SizeStr: Date | undefined;
Name = '';
Title = '';
Path = '';
originName = '';
listButton: Array<string> | undefined;
fr... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.