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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Morkalork/add-js-test | dbb1dad | src/trigger-test-creation.ts | TypeScript | www.github.com/Morkalork/add-js-test/tree/main/src/trigger-test-creation.ts | https://raw.githubusercontent.com/Morkalork/add-js-test/dbb1dad/src/trigger-test-creation.ts | Morkalork/add-js-test dbb1dad src/trigger-test-creation.ts | true | 200 | 2,847 | import * as vscode from "vscode";
import fs from "fs";
import { addJsTestContent } from "./add-js-test-content";
import { getIntegrationTestFramework } from "./workspace-tooling/get-integration-test-framework";
import { getUnitTestFramework } from "./workspace-tooling/get-unit-test-framework";
import { TestTypes } from... | 5 |
FelixRDL/seeance | 7a97743 | backend/src/implementation/providers/InternalProjectRepository.ts | TypeScript | www.github.com/FelixRDL/seeance/tree/main/backend/src/implementation/providers/InternalProjectRepository.ts | https://raw.githubusercontent.com/FelixRDL/seeance/7a97743/backend/src/implementation/providers/InternalProjectRepository.ts | FelixRDL/seeance 7a97743 backend/src/implementation/providers/InternalProjectRepository.ts | true | 200 | 4,315 | import {ProjectRepository} from "../../logic/repositories/ProjectRepository";
import {Project, ProtoProject} from "../../logic/entities/Project";
import * as request from "request";
import {AuthController} from "../controllers/AuthController";
import {ProjectModel} from "../../driver/models/ProjectModel";
import {Cours... | 0 |
dimaaxelrod/crypto-app | a4a0a53 | src/store/coins/coins.api.ts | TypeScript | www.github.com/dimaaxelrod/crypto-app/tree/main/src/store/coins/coins.api.ts | https://raw.githubusercontent.com/dimaaxelrod/crypto-app/a4a0a53/src/store/coins/coins.api.ts | dimaaxelrod/crypto-app a4a0a53 src/store/coins/coins.api.ts | true | 200 | 523 | import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
import { BASE_URL } from "../constants";
export const coinsApi = createApi({
reducerPath: "coins/api",
baseQuery: fetchBaseQuery({
baseUrl: BASE_URL,
}),
endpoints: (build) => ({
getCoinsById: build.query<any, string>({
que... | 4 |
bukiro/PECS | 22798e5 | src/app/classes/EffectGain.ts | TypeScript | www.github.com/bukiro/PECS/tree/main/src/app/classes/EffectGain.ts | https://raw.githubusercontent.com/bukiro/PECS/22798e5/src/app/classes/EffectGain.ts | bukiro/PECS 22798e5 src/app/classes/EffectGain.ts | true | 200 | 2,276 | export class EffectGain {
public affected = '';
/**
* Add this number to the target value.
* Gets eval()-ed to determine the actual value.
* Gets applied if parseInt(value, 10) != 0
*/
public value = '0';
/**
* Set the target value to this number and ignore item, proficiency and... | 1 |
mthangtr/SocialAppBackend | 8d1ac1f | src/db/posts.ts | TypeScript | www.github.com/mthangtr/SocialAppBackend/tree/main/src/db/posts.ts | https://raw.githubusercontent.com/mthangtr/SocialAppBackend/8d1ac1f/src/db/posts.ts | mthangtr/SocialAppBackend 8d1ac1f src/db/posts.ts | true | 200 | 7,486 | import mongoose from "mongoose";
import express from "express";
import bodyParser from "body-parser";
import { Comment } from "./comments";
import { User } from "./users";
const app = express();
app.use(bodyParser.json());
const ReactionSchema = new mongoose.Schema(
{
user: { type: mongoose.Schema.Types.Object... | 6 |
akshatcoder-hash/WBA-PreReqQ3 | e379bd1 | airdrop/enroll.ts | TypeScript | www.github.com/akshatcoder-hash/WBA-PreReqQ3/tree/main/airdrop/enroll.ts | https://raw.githubusercontent.com/akshatcoder-hash/WBA-PreReqQ3/e379bd1/airdrop/enroll.ts | akshatcoder-hash/WBA-PreReqQ3 e379bd1 airdrop/enroll.ts | true | 200 | 1,376 | import { Connection, Keypair, SystemProgram, PublicKey } from "@solana/web3.js";
import { Program, Wallet, AnchorProvider, Address } from "@project-serum/anchor";
import { WbaPrereq, IDL } from "./programs/wba_prereq";
import wallet from "./dev-wallet.json";
const keypair = Keypair.fromSecretKey(new Uint8Array(wallet)... | 7 |
Kell9831/Postable | 08428eb | src/routers/auth-router.ts | TypeScript | www.github.com/Kell9831/Postable/tree/main/src/routers/auth-router.ts | https://raw.githubusercontent.com/Kell9831/Postable/08428eb/src/routers/auth-router.ts | Kell9831/Postable 08428eb src/routers/auth-router.ts | true | 200 | 1,208 | import express from "express";
import jwt from "jsonwebtoken";
import { createUser, validateCredentials } from "../services/user-services";
import { UserParams, userSchema } from "../models/user";
import { validationHandler } from "../middlewares/validation";
import { getCurrentTime } from "../utils/util";
const authR... | 3 |
magasser/bernhaeckt-2023 | e104c6f | ui/sustainability-ui/src/app/components/admin/dialogs/county-indicator-modify-dialog/county-indicator-modify-dialog.component.ts | TypeScript | www.github.com/magasser/bernhaeckt-2023/tree/main/ui/sustainability-ui/src/app/components/admin/dialogs/county-indicator-modify-dialog/county-indicator-modify-dialog.component.ts | https://raw.githubusercontent.com/magasser/bernhaeckt-2023/e104c6f/ui/sustainability-ui/src/app/components/admin/dialogs/county-indicator-modify-dialog/county-indicator-modify-dialog.component.ts | magasser/bernhaeckt-2023 e104c6f ui/sustainability-ui/src/app/components/admin/dialogs/county-indicator-modify-dialog/county-indicator-modify-dialog.component.ts | true | 200 | 719 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { Source } from 'src/app/models/source';
export interface ModifyCountyIndicator {
value: number;
sources: Source[];
source: Source;
}
@Component({
selector: 'app-county-indicator... | 2 |
rebekmrr/Seguradora-api | a9479be | src/app/services/fatura.service.ts | TypeScript | www.github.com/rebekmrr/Seguradora-api/tree/main/src/app/services/fatura.service.ts | https://raw.githubusercontent.com/rebekmrr/Seguradora-api/a9479be/src/app/services/fatura.service.ts | rebekmrr/Seguradora-api a9479be src/app/services/fatura.service.ts | true | 200 | 1,146 | import { Injectable } from '@angular/core';
import {Fatura} from "../model/Fatura";
import {Observable} from "rxjs";
import {HttpClient} from "@angular/common/http";
@Injectable({
providedIn: 'root'
})
export class FaturaService {
URL_Fatura = 'https://cobranca-service-pdist.herokuapp.com/cobranca/api/faturas';
... | 5 |
lcnunes09/nlw-2023-upload-ai | d18f35b | upload-ai-api/src/routes/generate-ai-completion.ts | TypeScript | www.github.com/lcnunes09/nlw-2023-upload-ai/tree/main/upload-ai-api/src/routes/generate-ai-completion.ts | https://raw.githubusercontent.com/lcnunes09/nlw-2023-upload-ai/d18f35b/upload-ai-api/src/routes/generate-ai-completion.ts | lcnunes09/nlw-2023-upload-ai d18f35b upload-ai-api/src/routes/generate-ai-completion.ts | true | 200 | 1,564 | import { FastifyInstance } from "fastify";
import { z } from "zod";
import { streamToResponse, OpenAIStream } from 'ai'
import { prisma } from "../lib/prisma";
import { openai } from "../lib/openai";
export async function generateAICompletionRoute(app: FastifyInstance) {
app.post('/ai-completion', async (request, ... | 0 |
PalaciosNorbertoLuis/SubirFotosSinCUIM | 01e3341 | src/app/upload-photo/upload-photo.component.ts | TypeScript | www.github.com/PalaciosNorbertoLuis/SubirFotosSinCUIM/tree/main/src/app/upload-photo/upload-photo.component.ts | https://raw.githubusercontent.com/PalaciosNorbertoLuis/SubirFotosSinCUIM/01e3341/src/app/upload-photo/upload-photo.component.ts | PalaciosNorbertoLuis/SubirFotosSinCUIM 01e3341 src/app/upload-photo/upload-photo.component.ts | true | 200 | 3,187 | import { Component, Input } from '@angular/core';
import { NgbModalConfig, NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ConsultsService } from '../services/consults.service';
import {DataArmComponent} from '../data-arm/data-arm.component';
import Swal from 'sweetalert2';
@Component({
selector: 'app-upload... | 4 |
FairNetwork/blinkit-frontend | ffe5a47 | src/utils/pdf.ts | TypeScript | www.github.com/FairNetwork/blinkit-frontend/tree/main/src/utils/pdf.ts | https://raw.githubusercontent.com/FairNetwork/blinkit-frontend/ffe5a47/src/utils/pdf.ts | FairNetwork/blinkit-frontend ffe5a47 src/utils/pdf.ts | true | 200 | 2,829 | import pdfjs from 'pdfjs-dist';
import { PDF } from '../types/pdf';
pdfjs.GlobalWorkerOptions.workerSrc = 'https://d2v5g.csb.app/pdf.worker.js';
const DB_NAME = 'pdfDatabase';
const STORE_NAME = 'pdfs';
export const getPdfPageCount = async (base64Data: string): Promise<number> => {
const loadingTask = pdfjs.getD... | 3 |
c1023738/AML-Library | 8c65c50 | aml/src/utils/Functions.test.ts | TypeScript | www.github.com/c1023738/AML-Library/tree/main/aml/src/utils/Functions.test.ts | https://raw.githubusercontent.com/c1023738/AML-Library/8c65c50/aml/src/utils/Functions.test.ts | c1023738/AML-Library 8c65c50 aml/src/utils/Functions.test.ts | true | 200 | 2,493 | import React from "react";
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
import AccountPage from "@/components/AccountPage";
import { database } from "@/db/database";
import { auth } from "@/auth";
// Mock modules
jest.mock("@/auth");
jest.mock("@/db/database");
describe("AccountPage Co... | 7 |
Proof-Of-Experience/MomentsSocial | a3e5b83 | src/utils/request.ts | TypeScript | www.github.com/Proof-Of-Experience/MomentsSocial/tree/main/src/utils/request.ts | https://raw.githubusercontent.com/Proof-Of-Experience/MomentsSocial/a3e5b83/src/utils/request.ts | Proof-Of-Experience/MomentsSocial a3e5b83 src/utils/request.ts | true | 200 | 1,865 | const baseURL = process.env.NEXT_PUBLIC_BASE_URL
export interface ApiDataType {
method: 'get' | 'post' | 'put' | 'patch' | 'delete';
url: string;
data?: any;
token?: boolean;
headers?: any;
}
/*
-----------------------------------------------------------------------------
'apiService' Function accepts two para... | 2 |
1csa/cry | a8156bd | cry/fe/app/editor-push-news/src/config/app/app.config.ts | TypeScript | www.github.com/1csa/cry/tree/main/cry/fe/app/editor-push-news/src/config/app/app.config.ts | https://raw.githubusercontent.com/1csa/cry/a8156bd/cry/fe/app/editor-push-news/src/config/app/app.config.ts | 1csa/cry a8156bd cry/fe/app/editor-push-news/src/config/app/app.config.ts | true | 200 | 4,037 | import { AppConfig } from './app.d';
import DOMAIN from './domain.config';
import { Auth_Account_Manager } from '@/config/account/account.config';
const appConfig: AppConfig = {
appId: 'editor-push-news',
appName: '推送管理系统',
// 红 logo, 可以更换成你自己的图片地址,如果不需要注释掉即可
logo: 'http://si1.go2yd.com/get-image/0ZAJxXeZ6iu',... | 1 |
antekordic/CineCatch | 0d67e7c | frontend/src/app/components/rating-control/rating-control.component.ts | TypeScript | www.github.com/antekordic/CineCatch/tree/main/frontend/src/app/components/rating-control/rating-control.component.ts | https://raw.githubusercontent.com/antekordic/CineCatch/0d67e7c/frontend/src/app/components/rating-control/rating-control.component.ts | antekordic/CineCatch 0d67e7c frontend/src/app/components/rating-control/rating-control.component.ts | true | 200 | 1,308 | import {Component, forwardRef, Input} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR, RadioControlValueAccessor} from "@angular/forms";
@Component({
selector: 'app-rating-control',
standalone: true,
imports: [],
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forw... | 6 |
Sopo2023/SOPO_Design_system | 2b0e779 | packages/components/src/ui/Typography/Headline2/SOPOHeadline2.stories.ts | TypeScript | www.github.com/Sopo2023/SOPO_Design_system/tree/main/packages/components/src/ui/Typography/Headline2/SOPOHeadline2.stories.ts | https://raw.githubusercontent.com/Sopo2023/SOPO_Design_system/2b0e779/packages/components/src/ui/Typography/Headline2/SOPOHeadline2.stories.ts | Sopo2023/SOPO_Design_system 2b0e779 packages/components/src/ui/Typography/Headline2/SOPOHeadline2.stories.ts | true | 200 | 854 | import type { Meta, StoryObj } from "@storybook/react";
import { SOPOHeadline2 } from "./SOPOHeadline2";
const meta = {
title: "Typograyphy/SOPOTypograyphy/SOPOHeadline2",
component: SOPOHeadline2,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
} satisfies Meta<typeof SOPOHeadline2>;
export de... | 4 |
preludejs/generator | 7205138 | src/skip.ts | TypeScript | www.github.com/preludejs/generator/tree/main/src/skip.ts | https://raw.githubusercontent.com/preludejs/generator/7205138/src/skip.ts | preludejs/generator 7205138 src/skip.ts | true | 200 | 609 | /**
* Returns a generator that skips the first `n` elements and yields the rest.
*
* @template T - The type of elements in the iterable
* @param n - Number of elements to skip from the beginning
* @yields Elements after skipping the first n elements
* @example
* ```ts
* G.pipe(
* [1, 2, 3, 4, 5],
* G.skip... | 0 |
PowerBlazer/RemotePowerLink | f0a93ea | src/Client/src/app/store/searchStore.ts | TypeScript | www.github.com/PowerBlazer/RemotePowerLink/tree/main/src/Client/src/app/store/searchStore.ts | https://raw.githubusercontent.com/PowerBlazer/RemotePowerLink/f0a93ea/src/Client/src/app/store/searchStore.ts | PowerBlazer/RemotePowerLink f0a93ea src/Client/src/app/store/searchStore.ts | true | 200 | 1,981 | import { makeAutoObservable, observable } from 'mobx';
import { ServerData } from '../services/ServerService/config/serverConfig';
import { IdentityData } from '../services/IdentityService/config/identityConfig';
import { ProxyData } from '../services/ProxyService/config/proxyConfig';
import userStore from 'app/store/u... | 5 |
aswia-simeen-6/Chatbot | 68540e2 | src/app/csm/csm.component.spec.ts | TypeScript | www.github.com/aswia-simeen-6/Chatbot/tree/main/src/app/csm/csm.component.spec.ts | https://raw.githubusercontent.com/aswia-simeen-6/Chatbot/68540e2/src/app/csm/csm.component.spec.ts | aswia-simeen-6/Chatbot 68540e2 src/app/csm/csm.component.spec.ts | true | 200 | 538 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CsmComponent } from './csm.component';
describe('CsmComponent', () => {
let component: CsmComponent;
let fixture: ComponentFixture<CsmComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [CsmComponent... | 3 |
hlvipulbohra/hi-hello | ef24234 | src/users/dto/user-response-dto.ts | TypeScript | www.github.com/hlvipulbohra/hi-hello/tree/main/src/users/dto/user-response-dto.ts | https://raw.githubusercontent.com/hlvipulbohra/hi-hello/ef24234/src/users/dto/user-response-dto.ts | hlvipulbohra/hi-hello ef24234 src/users/dto/user-response-dto.ts | true | 200 | 350 | import { Field, ID, ObjectType } from '@nestjs/graphql';
import { Types } from 'mongoose';
@ObjectType()
export class UserResponseDTO {
@Field(() => ID)
_id: Types.ObjectId;
@Field()
name: string;
@Field()
about: string;
@Field()
email: string;
password: string;
@Field()
createdAt: Date;
... | 2 |
DanielJoBar/pokebuilder_Firebase | b122e05 | src/app/core/servicies/translation.service.ts | TypeScript | www.github.com/DanielJoBar/pokebuilder_Firebase/tree/main/src/app/core/servicies/translation.service.ts | https://raw.githubusercontent.com/DanielJoBar/pokebuilder_Firebase/b122e05/src/app/core/servicies/translation.service.ts | DanielJoBar/pokebuilder_Firebase b122e05 src/app/core/servicies/translation.service.ts | true | 200 | 1,303 | import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable, lastValueFrom } from 'rxjs';
import { TranslateService } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient } from '@angular/common/http';
export function createTranslateLoa... | 1 |
marklazz/Learning-Angular-Fourth-Edition | 142dd5a | playground-ch01/my-app/src/app/products/product-list/product-list.component.ts | TypeScript | www.github.com/marklazz/Learning-Angular-Fourth-Edition/tree/main/playground-ch01/my-app/src/app/products/product-list/product-list.component.ts | https://raw.githubusercontent.com/marklazz/Learning-Angular-Fourth-Edition/142dd5a/playground-ch01/my-app/src/app/products/product-list/product-list.component.ts | marklazz/Learning-Angular-Fourth-Edition 142dd5a playground-ch01/my-app/src/app/products/product-list/product-list.component.ts | true | 200 | 1,170 | import { AfterViewInit, Component, ViewChild } from '@angular/core';
import { ProductDetailComponent } from '../product-detail/product-detail.component';
import { Product } from '../product';
@Component({
selector: 'app-product-list',
templateUrl: './product-list.component.html',
styleUrls: ['./product-list.comp... | 7 |
suren-tanwar/nestjs-postgresql-docker | 3579f26 | order/src/orders/orders.service.ts | TypeScript | www.github.com/suren-tanwar/nestjs-postgresql-docker/tree/main/order/src/orders/orders.service.ts | https://raw.githubusercontent.com/suren-tanwar/nestjs-postgresql-docker/3579f26/order/src/orders/orders.service.ts | suren-tanwar/nestjs-postgresql-docker 3579f26 order/src/orders/orders.service.ts | true | 200 | 934 | import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CreateOrderDto } from './dto/create-order.dto';
import { Orders } from './order.entity';
@Injectable()
export class OrdersService {
constructor(
@InjectRepository(Orders... | 4 |
yarncode/server_fire_alarm | def6e77 | src/APIService/router/account.ts | TypeScript | www.github.com/yarncode/server_fire_alarm/tree/main/src/APIService/router/account.ts | https://raw.githubusercontent.com/yarncode/server_fire_alarm/def6e77/src/APIService/router/account.ts | yarncode/server_fire_alarm def6e77 src/APIService/router/account.ts | true | 200 | 571 | /* node_module import */
import express from 'express';
const router = express.Router();
/* my import */
import Account from '../controller/account'
import { main_auth } from '../middleware/app-auth'
router.get('/info', main_auth.validate_token, Account.info);
router.post('/login', Account.login);
router.post('/regis... | 6 |
Rr-sobusy/nest_backend | 5a7bae6 | src/app.module.ts | TypeScript | www.github.com/Rr-sobusy/nest_backend/tree/main/src/app.module.ts | https://raw.githubusercontent.com/Rr-sobusy/nest_backend/5a7bae6/src/app.module.ts | Rr-sobusy/nest_backend 5a7bae6 src/app.module.ts | true | 200 | 1,908 | require('dotenv').config();
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ProductEntities } from './entitities/product.entities';
import { ProductModule } from './module/pro... | 0 |
palantir/osdk-ts | 24c4b12 | packages/client.unstable/src/generated/ontology-metadata/branch/api/OntologyBranchService/loadOntologyBranch.ts | TypeScript | www.github.com/palantir/osdk-ts/tree/main/packages/client.unstable/src/generated/ontology-metadata/branch/api/OntologyBranchService/loadOntologyBranch.ts | https://raw.githubusercontent.com/palantir/osdk-ts/24c4b12/packages/client.unstable/src/generated/ontology-metadata/branch/api/OntologyBranchService/loadOntologyBranch.ts | palantir/osdk-ts 24c4b12 packages/client.unstable/src/generated/ontology-metadata/branch/api/OntologyBranchService/loadOntologyBranch.ts | true | 200 | 1,381 | /*
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 5 |
devBamidele/auth_in_Node.js | 7916261 | src/middleware/auth.ts | TypeScript | www.github.com/devBamidele/auth_in_Node.js/tree/main/src/middleware/auth.ts | https://raw.githubusercontent.com/devBamidele/auth_in_Node.js/7916261/src/middleware/auth.ts | devBamidele/auth_in_Node.js 7916261 src/middleware/auth.ts | true | 200 | 707 | import { Response, NextFunction } from "express";
import jwt from "jsonwebtoken";
import { JWT_KEY } from '../utils/config';
import { AuthenticatedRequest } from "../models/authenticatedRequest";
export const auth = (req: AuthenticatedRequest, res: Response, next: NextFunction) => {
const token = req.headers['x-a... | 3 |
jfcere/ngx-nes-css | a9819d1 | lib/src/radio/radio-option/radio-option.component.ts | TypeScript | www.github.com/jfcere/ngx-nes-css/tree/main/lib/src/radio/radio-option/radio-option.component.ts | https://raw.githubusercontent.com/jfcere/ngx-nes-css/a9819d1/lib/src/radio/radio-option/radio-option.component.ts | jfcere/ngx-nes-css a9819d1 lib/src/radio/radio-option/radio-option.component.ts | true | 200 | 853 | import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { map } from 'rxjs';
import { NesRadioGroupComponent } from '../radio-group';
@Component({
selector: 'nes-radio-option',
templateUrl: './radio-option.component.html',
styleUrls: ['./radio-option.component.scss'],
changeDetection:... | 2 |
KostaMakarkov/EmployeesTimeSheets | 8a481e8 | MdClone/mdclone-server/src/index.ts | TypeScript | www.github.com/KostaMakarkov/EmployeesTimeSheets/tree/main/MdClone/mdclone-server/src/index.ts | https://raw.githubusercontent.com/KostaMakarkov/EmployeesTimeSheets/8a481e8/MdClone/mdclone-server/src/index.ts | KostaMakarkov/EmployeesTimeSheets 8a481e8 MdClone/mdclone-server/src/index.ts | true | 200 | 667 | import express, { Request, Response } from "express";
import cors from "cors";
import { CorsOptions } from "./config/corsSettings";
import { configEnv } from "./config/config";
import connectDB from "./config/db";
import { errorHandler } from "./utils/errorHandler";
import router from "./router";
import morgan f... | 1 |
mumer97/FleetDatabase | 27b03bd | src/Maintenance/maintenance/maintenance.module.ts | TypeScript | www.github.com/mumer97/FleetDatabase/tree/main/src/Maintenance/maintenance/maintenance.module.ts | https://raw.githubusercontent.com/mumer97/FleetDatabase/27b03bd/src/Maintenance/maintenance/maintenance.module.ts | mumer97/FleetDatabase 27b03bd src/Maintenance/maintenance/maintenance.module.ts | true | 200 | 372 | import { Module } from '@nestjs/common';
import { MaintenanceService } from './maintenance.service';
import { MaintenanceController } from './maintenance.controller';
import { DatabaseService } from 'src/database/database.service';
@Module({
providers: [MaintenanceService, DatabaseService],
controllers: [Maintenan... | 7 |
H4kan/minihex | a508a04 | minihex.Web/ClientApp/src/app/board/board.component.ts | TypeScript | www.github.com/H4kan/minihex/tree/main/minihex.Web/ClientApp/src/app/board/board.component.ts | https://raw.githubusercontent.com/H4kan/minihex/a508a04/minihex.Web/ClientApp/src/app/board/board.component.ts | H4kan/minihex a508a04 minihex.Web/ClientApp/src/app/board/board.component.ts | true | 200 | 7,314 | import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import Phaser from 'phaser';
import { PlayerColor, WinningPathInfo } from '../communication/communication.service';
import { BoardService } from './board.service';
@Component({
selector: 'board',
templateUrl: './board.component.html',
styleUrl... | 6 |
MariusBudreika/seems-neat-candidate-task-fake-login | a58e7db | src/utils/userApi.ts | TypeScript | www.github.com/MariusBudreika/seems-neat-candidate-task-fake-login/tree/main/src/utils/userApi.ts | https://raw.githubusercontent.com/MariusBudreika/seems-neat-candidate-task-fake-login/a58e7db/src/utils/userApi.ts | MariusBudreika/seems-neat-candidate-task-fake-login a58e7db src/utils/userApi.ts | true | 200 | 385 | export interface User {
email: string;
password: string;
}
export const loginAPI = async ({ email, password }: User): Promise<string> => {
return await new Promise((resolve, reject) => {
if (email === 'frontend@isawesome.com' && password === 'cool') {
return resolve('Logged in');
} else {
ret... | 0 |
jaime-99/Diken- | ae750d5 | src/app/pages/account/information/information.component.ts | TypeScript | www.github.com/jaime-99/Diken-/tree/main/src/app/pages/account/information/information.component.ts | https://raw.githubusercontent.com/jaime-99/Diken-/ae750d5/src/app/pages/account/information/information.component.ts | jaime-99/Diken- ae750d5 src/app/pages/account/information/information.component.ts | true | 200 | 3,664 | import { Component, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { emailValidator, matchingPasswords } from '../../../theme/utils/app-validators';
import { SupportService } from 'src/ap... | 5 |
Star-Academy/Summer1401-FE-Team05 | 2ad19dd | src/app/app.module.ts | TypeScript | www.github.com/Star-Academy/Summer1401-FE-Team05/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Star-Academy/Summer1401-FE-Team05/2ad19dd/src/app/app.module.ts | Star-Academy/Summer1401-FE-Team05 2ad19dd src/app/app.module.ts | true | 200 | 976 | import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {NotFoundModule} from './pages/not-found/not-found.module';
import {LandingModule} from './pages/landing/landing.m... | 3 |
Neko7sora/swc-playground | 1eed660 | src/test.ts | TypeScript | www.github.com/Neko7sora/swc-playground/tree/main/src/test.ts | https://raw.githubusercontent.com/Neko7sora/swc-playground/1eed660/src/test.ts | Neko7sora/swc-playground 1eed660 src/test.ts | true | 200 | 510 | var announcement = document.getElementById('announcement');
if (announcement !== null) {
var id = announcement.dataset.id;
Object.keys(localStorage).forEach(function(key) {
if (/^global-alert-/.test(key)) {
if (key !== id ) {
localStorage.removeItem(key);
document.documentElement.remove... | 2 |
imnd/bookkeep-nest | 2468295 | src/article-categories/article-categories.module.ts | TypeScript | www.github.com/imnd/bookkeep-nest/tree/main/src/article-categories/article-categories.module.ts | https://raw.githubusercontent.com/imnd/bookkeep-nest/2468295/src/article-categories/article-categories.module.ts | imnd/bookkeep-nest 2468295 src/article-categories/article-categories.module.ts | true | 200 | 516 | import { Module } from '@nestjs/common';
import { ArticleCategoriesController } from './article-categories.controller';
import { ArticleCategoriesService } from './article-categories.service';
import { ArticleCategory } from './article-categories.model';
import { SequelizeModule } from "@nestjs/sequelize";
@Module({
... | 1 |
TakNePoidet/tak-poidet | 47c36b5 | docs/.vitepress/configs/plugins.ts | TypeScript | www.github.com/TakNePoidet/tak-poidet/tree/main/docs/.vitepress/configs/plugins.ts | https://raw.githubusercontent.com/TakNePoidet/tak-poidet/47c36b5/docs/.vitepress/configs/plugins.ts | TakNePoidet/tak-poidet 47c36b5 docs/.vitepress/configs/plugins.ts | true | 200 | 942 | import MarkdownIt from 'markdown-it';
import mdContainer from 'markdown-it-container';
import fs from 'fs';
import path from 'path';
export const markdown = (md: MarkdownIt) => {
md.use(mdContainer, 'demo', {
validate(params) {
return !!params.trim().match(/^demo\s*(.*)$/);
},
render(tokens, idx) {
const m... | 7 |
xiaohuohumax/x-fetch | 1ad62aa | test/utils.test.ts | TypeScript | www.github.com/xiaohuohumax/x-fetch/tree/main/test/utils.test.ts | https://raw.githubusercontent.com/xiaohuohumax/x-fetch/1ad62aa/test/utils.test.ts | xiaohuohumax/x-fetch 1ad62aa test/utils.test.ts | true | 200 | 4,242 | import { deleteUndefinedProperties, getUriTemplateVariableNames, mergeSignals, objectLowercaseKeys, omit, parseUriTemplate } from "@/utils/src/index"
import { describe, expect, it, vi } from "vitest"
import { rfc6570TestCases } from "./mock"
describe("test utils module", () => {
it("test util parseUriTemplate", asyn... | 4 |
lutie0920/portfolio | a2484d6 | src/themes/dark.ts | TypeScript | www.github.com/lutie0920/portfolio/tree/main/src/themes/dark.ts | https://raw.githubusercontent.com/lutie0920/portfolio/a2484d6/src/themes/dark.ts | lutie0920/portfolio a2484d6 src/themes/dark.ts | true | 200 | 386 | /* eslint-disable prettier/prettier */
const temaDark = {
corPrincipal: '#fff',
corSecundaria: '#eee',
corDeFundo: '#282a35',
corDeFundoBotao: '#fff',
corDaBorda: '#c1c1c1'
}
export default temaDark
export type Theme = {
corPrincipal: string,
corSecundaria: string,
corDeFundo: ... | 6 |
falkorclark/markugen | 7dfa15e | src/markugen.ts | TypeScript | www.github.com/falkorclark/markugen/tree/main/src/markugen.ts | https://raw.githubusercontent.com/falkorclark/markugen/7dfa15e/src/markugen.ts | falkorclark/markugen 7dfa15e src/markugen.ts | true | 200 | 7,595 |
import colors from 'colors';
import path from 'node:path';
import fs from 'fs-extra';
import os from 'node:os';
import { version, name, homepage } from '../package.json';
import { MarkugenOptions } from './markugenoptions';
import { IMarkugen } from './imarkugen';
import { spawnSync } from 'node:child_process';
import... | 0 |
Akshay4121-d/EComWebsite | 0afe528 | src/app/admin/user-crud/user-crud.component.ts | TypeScript | www.github.com/Akshay4121-d/EComWebsite/tree/main/src/app/admin/user-crud/user-crud.component.ts | https://raw.githubusercontent.com/Akshay4121-d/EComWebsite/0afe528/src/app/admin/user-crud/user-crud.component.ts | Akshay4121-d/EComWebsite 0afe528 src/app/admin/user-crud/user-crud.component.ts | true | 200 | 4,961 | import { CommonModule } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AdminService } from '../services/admin.service';
import { User } fr... | 5 |
loloToster/Nexum | c8e1a0a | core/server/src/modules/value/value.gateway.ts | TypeScript | www.github.com/loloToster/Nexum/tree/main/core/server/src/modules/value/value.gateway.ts | https://raw.githubusercontent.com/loloToster/Nexum/c8e1a0a/core/server/src/modules/value/value.gateway.ts | loloToster/Nexum c8e1a0a core/server/src/modules/value/value.gateway.ts | true | 200 | 4,190 | import {
WebSocketGateway,
WebSocketServer,
SubscribeMessage,
ConnectedSocket,
MessageBody
} from "@nestjs/websockets"
import { forwardRef, Inject, Logger } from "@nestjs/common"
import { Server, Socket as RawSocket } from "socket.io"
import { Device, User } from "@prisma/client"
import { ValueService } fr... | 1 |
ThanhLoi-300/Web_Chat_NestJS | 120708d | backend/src/utils/types.ts | TypeScript | www.github.com/ThanhLoi-300/Web_Chat_NestJS/tree/main/backend/src/utils/types.ts | https://raw.githubusercontent.com/ThanhLoi-300/Web_Chat_NestJS/120708d/backend/src/utils/types.ts | ThanhLoi-300/Web_Chat_NestJS 120708d backend/src/utils/types.ts | true | 200 | 2,819 | import {
Conversation,
Friend,
FriendRequest,
Message,
User,
} from './typeorm';
import { Request } from 'express';
export type CreateUserDetails = {
name: string;
password: string;
email: string
};
export type ValidateUserDetails = {
email: string;
password: string;
};
export type FindUserParams... | 2 |
typp-js/typp | 40779b2 | packages/validator/src/extends.ts | TypeScript | www.github.com/typp-js/typp/tree/main/packages/validator/src/extends.ts | https://raw.githubusercontent.com/typp-js/typp/40779b2/packages/validator/src/extends.ts | typp-js/typp 40779b2 packages/validator/src/extends.ts | true | 200 | 6,018 | import type { AtLeastOneProperty, IsConfigure, IsEqual, IsNotEqual, Narrow, Switch, t as tn } from '@typp/core/base'
import type {} from '@typp/validator/error'
// dprint-ignore
declare module '@typp/core/base' {
namespace t {
// TODO remove t.Schema
// @ts-ignore error TS2589: Type instantiation is excessiv... | 7 |
RomiKMoveo/Adcore-Basic-Buttons | 6ba6f80 | adcore-basic-buttons/src/app/select/select.component.ts | TypeScript | www.github.com/RomiKMoveo/Adcore-Basic-Buttons/tree/main/adcore-basic-buttons/src/app/select/select.component.ts | https://raw.githubusercontent.com/RomiKMoveo/Adcore-Basic-Buttons/6ba6f80/adcore-basic-buttons/src/app/select/select.component.ts | RomiKMoveo/Adcore-Basic-Buttons 6ba6f80 adcore-basic-buttons/src/app/select/select.component.ts | true | 200 | 2,658 | import {
ChangeDetectionStrategy,
Component,
signal,
ViewEncapsulation,
} from '@angular/core';
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatFormFi... | 6 |
SoumiBhattacharyya/AssetManagmentSystem | 4b322e4 | src/app/generate-report/generate-report.component.ts | TypeScript | www.github.com/SoumiBhattacharyya/AssetManagmentSystem/tree/main/src/app/generate-report/generate-report.component.ts | https://raw.githubusercontent.com/SoumiBhattacharyya/AssetManagmentSystem/4b322e4/src/app/generate-report/generate-report.component.ts | SoumiBhattacharyya/AssetManagmentSystem 4b322e4 src/app/generate-report/generate-report.component.ts | true | 200 | 1,247 | import { Component, OnInit } from '@angular/core';
import { RequestService } from '../request.service';
import { ActivatedRoute, Router } from '@angular/router';
import { NgForm } from '@angular/forms';
export interface Request{
requestId:number;
userId:number;
assetId:number;
employeeId:number;
assetName:st... | 4 |
J1307-bb/nest-tareas | f77024c | src/user/user.service.ts | TypeScript | www.github.com/J1307-bb/nest-tareas/tree/main/src/user/user.service.ts | https://raw.githubusercontent.com/J1307-bb/nest-tareas/f77024c/src/user/user.service.ts | J1307-bb/nest-tareas f77024c src/user/user.service.ts | true | 200 | 2,961 | import { BadRequestException, Injectable, InternalServerErrorException, NotFoundException } from '@nestjs/common';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { User } from './entities/user.entity';
import { Model, isValidObjectId } from 'mongoose... | 0 |
inve24-lol/inve24-api | bdc09c2 | src/socket/gateways/web-client-socket.gateway.ts | TypeScript | www.github.com/inve24-lol/inve24-api/tree/main/src/socket/gateways/web-client-socket.gateway.ts | https://raw.githubusercontent.com/inve24-lol/inve24-api/bdc09c2/src/socket/gateways/web-client-socket.gateway.ts | inve24-lol/inve24-api bdc09c2 src/socket/gateways/web-client-socket.gateway.ts | true | 200 | 4,351 | import { AuthService } from '@auth/services/auth.service';
import { Role } from '@common/constants/roles.enum';
import { ForbiddenException, forwardRef, Inject, UnauthorizedException } from '@nestjs/common';
import {
ConnectedSocket,
MessageBody,
OnGatewayConnection,
OnGatewayDisconnect,
SubscribeMessage,
W... | 3 |
Flagsmith/flagsmith-nodejs-client | b156a2e | flagsmith-engine/environments/models.ts | TypeScript | www.github.com/Flagsmith/flagsmith-nodejs-client/tree/main/flagsmith-engine/environments/models.ts | https://raw.githubusercontent.com/Flagsmith/flagsmith-nodejs-client/b156a2e/flagsmith-engine/environments/models.ts | Flagsmith/flagsmith-nodejs-client b156a2e flagsmith-engine/environments/models.ts | true | 200 | 1,172 | import { FeatureStateModel } from '../features/models.js';
import { IdentityModel } from '../identities/models.js';
import { ProjectModel } from '../projects/models.js';
export class EnvironmentAPIKeyModel {
id: number;
key: string;
createdAt: number;
name: string;
clientApiKey: string;
expires... | 5 |
vphatfla/ucf-cop4020 | 8ce12e7 | javascript-test-2/p1.ts | TypeScript | www.github.com/vphatfla/ucf-cop4020/tree/main/javascript-test-2/p1.ts | https://raw.githubusercontent.com/vphatfla/ucf-cop4020/8ce12e7/javascript-test-2/p1.ts | vphatfla/ucf-cop4020 8ce12e7 javascript-test-2/p1.ts | true | 200 | 1,935 | interface WeLoveCOP4020 {
showJobTitle(): void;
showDescription(): void;
showYearlySalary(): void;
}
class Barista implements WeLoveCOP4020 {
private job: string = "Barista";
private description: string = "I make people happy by giving the elixir of life: coffee.";
private salary: string = "25,... | 1 |
Kazimustakim12/socailmedia-appwrite | 8fec2ee | src/lib/react-query/queryAndMutations.ts | TypeScript | www.github.com/Kazimustakim12/socailmedia-appwrite/tree/main/src/lib/react-query/queryAndMutations.ts | https://raw.githubusercontent.com/Kazimustakim12/socailmedia-appwrite/8fec2ee/src/lib/react-query/queryAndMutations.ts | Kazimustakim12/socailmedia-appwrite 8fec2ee src/lib/react-query/queryAndMutations.ts | true | 200 | 4,960 | import {
QueryClient,
useInfiniteQuery,
useMutation,
useQuery,
useQueryClient,
} from "@tanstack/react-query";
import {
createNewPost,
createUserAccount,
deletePost,
deleteSavePost,
getAllUser,
getCurrentUser,
getInfinitePosts,
getPostById,
getRecentPosts,
likePost,
savePost,
searchPos... | 2 |
gabrielantonyxaviour/defius-maximus | 4590db2 | evaluation-agent/client/next.config.ts | TypeScript | www.github.com/gabrielantonyxaviour/defius-maximus/tree/main/evaluation-agent/client/next.config.ts | https://raw.githubusercontent.com/gabrielantonyxaviour/defius-maximus/4590db2/evaluation-agent/client/next.config.ts | gabrielantonyxaviour/defius-maximus 4590db2 evaluation-agent/client/next.config.ts | true | 200 | 482 | import { NextConfig } from "next";
const nextConfig: NextConfig = {
poweredByHeader: false,
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
async rewrites() {
return [
{
source: "/api/:path*",
desti... | 7 |
alexupk/Production-plan | 0489025 | src/styles/MenuScreenStyles.ts | TypeScript | www.github.com/alexupk/Production-plan/tree/main/src/styles/MenuScreenStyles.ts | https://raw.githubusercontent.com/alexupk/Production-plan/0489025/src/styles/MenuScreenStyles.ts | alexupk/Production-plan 0489025 src/styles/MenuScreenStyles.ts | true | 200 | 623 | import { StyleSheet } from "react-native";
import { PrimaryHeadline,LinkText,Colors } from "../constants/Constans";
export const MenuScreenStyle = StyleSheet.create({
menuScreenContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: Colors.containerBGC... | 3 |
Junior331/challenge_shop | e5f4f13 | src/app/pages/products/services.ts | TypeScript | www.github.com/Junior331/challenge_shop/tree/main/src/app/pages/products/services.ts | https://raw.githubusercontent.com/Junior331/challenge_shop/e5f4f13/src/app/pages/products/services.ts | Junior331/challenge_shop e5f4f13 src/app/pages/products/services.ts | true | 200 | 2,910 | import { httpRequest } from "@/app/utils/types";
import {
AddNewProductProps,
DeleteProductProps,
fetchProductsProps,
} from "./@types";
import { AxiosError } from "axios";
import { cleanObjectWithZero, convertToParams } from "@/app/utils/utils";
import { ENDPOINTS } from "@/app/utils/endpoints";
export const f... | 5 |
RideTracker/RideTrackerService | 81bba0c | src/controllers/users/createUser.ts | TypeScript | www.github.com/RideTracker/RideTrackerService/tree/main/src/controllers/users/createUser.ts | https://raw.githubusercontent.com/RideTracker/RideTrackerService/81bba0c/src/controllers/users/createUser.ts | RideTracker/RideTrackerService 81bba0c src/controllers/users/createUser.ts | true | 200 | 742 | import { DatabaseSource } from "@ridetracker/authservice";
import { UserStatus } from "../../models/UserStatus";
import { User } from "../../models/user";
import { getUserById } from "./getUserById";
export async function createUser(databaseSource: DatabaseSource, firstname: string, lastname: string, email: string, pa... | 0 |
daihoangteq/pokame-v17 | 2deef30 | src/stores/pokeProvider.ts | TypeScript | www.github.com/daihoangteq/pokame-v17/tree/main/src/stores/pokeProvider.ts | https://raw.githubusercontent.com/daihoangteq/pokame-v17/2deef30/src/stores/pokeProvider.ts | daihoangteq/pokame-v17 2deef30 src/stores/pokeProvider.ts | true | 200 | 594 | import { createContext } from "react";
import type { PokeContextType } from "./pokeType";
import { LIMIT, OFFSET } from "@src/constants/BASE";
export const initialPokeState: PokeContextType["state"] = {
pending: false,
inputValue: "",
activeIndex: 0,
keyPressing: "",
pokes: [],
point: 0,
activeName: "",... | 4 |
LirazGanon/my-kids-money | 1a56793 | src/firebaseFunctions.ts | TypeScript | www.github.com/LirazGanon/my-kids-money/tree/main/src/firebaseFunctions.ts | https://raw.githubusercontent.com/LirazGanon/my-kids-money/1a56793/src/firebaseFunctions.ts | LirazGanon/my-kids-money 1a56793 src/firebaseFunctions.ts | true | 200 | 2,038 | import { db } from "./firebase-config";
import {
collection,
query,
where,
getDocs,
DocumentData,
updateDoc,
doc,
addDoc,
} from "firebase/firestore";
interface UserDetails {
username: string;
password: string;
role: number;
balance?: number;
transactions: DocumentData[];
}
export interface ... | 6 |
EsdrasLimaSilva/taskendar-api | f65a07c | src/service/userService/registerUser/RegisterUserService.ts | TypeScript | www.github.com/EsdrasLimaSilva/taskendar-api/tree/main/src/service/userService/registerUser/RegisterUserService.ts | https://raw.githubusercontent.com/EsdrasLimaSilva/taskendar-api/f65a07c/src/service/userService/registerUser/RegisterUserService.ts | EsdrasLimaSilva/taskendar-api f65a07c src/service/userService/registerUser/RegisterUserService.ts | true | 200 | 464 | import { UserDTO } from "../../../dto/UserDTO";
import { UserRepository } from "../../../repository/UserRepository";
export class RegisterUserService {
constructor(private userRepository: UserRepository) {}
async execute(userId: string, user: UserDTO) {
if (await this.userRepository.findByUsername(use... | 2 |
101German/acces-control-app | 5742f8f | src/app/services/workroom.service.ts | TypeScript | www.github.com/101German/acces-control-app/tree/main/src/app/services/workroom.service.ts | https://raw.githubusercontent.com/101German/acces-control-app/5742f8f/src/app/services/workroom.service.ts | 101German/acces-control-app 5742f8f src/app/services/workroom.service.ts | true | 200 | 2,183 | import { HttpClient, HttpParams } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { WorkRoom } from "../models/WorkRoom/WorkRoom";
import { WorkRoomForCreate } from "../models/WorkRoom/WorkRoomForCreate";
import { WorkRoomForEdit } from "../models/WorkRoom/WorkRoomForEdit";
@Injectable(... | 1 |
dongngx03/social-network-client | 06843e6 | src/hooks/post.ts | TypeScript | www.github.com/dongngx03/social-network-client/tree/main/src/hooks/post.ts | https://raw.githubusercontent.com/dongngx03/social-network-client/06843e6/src/hooks/post.ts | dongngx03/social-network-client 06843e6 src/hooks/post.ts | true | 200 | 353 | import instance from "../services/instance"
export const createPost = async (data: any, setLoading: (args: boolean) => void) => {
try {
setLoading(true)
const res = await instance.post('/v1/api/post', data)
setLoading(false)
return res
} catch (error) {
console.log(error... | 7 |
Sir-MSOps/ms_frontend | fe17903 | projects/apps-sales/src/app/modules/dashboard/dashboard.component.ts | TypeScript | www.github.com/Sir-MSOps/ms_frontend/tree/main/projects/apps-sales/src/app/modules/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/Sir-MSOps/ms_frontend/fe17903/projects/apps-sales/src/app/modules/dashboard/dashboard.component.ts | Sir-MSOps/ms_frontend fe17903 projects/apps-sales/src/app/modules/dashboard/dashboard.component.ts | true | 200 | 7,021 | import { Component } from '@angular/core';
import {
ChartService,
ChartValueDto,
DASHBOARD_COLORS,
LanguageService,
MONTHS_DTO,
} from 'shared-lib';
import { DashboardService } from './dashboard.service';
import { Subject, takeUntil } from 'rxjs';
import { Chart } from 'angular-highcharts';
import {
GetRetu... | 0 |
Grahovacc/CoretimeHub-V2 | 5c5995a | src/utils/index.ts | TypeScript | www.github.com/Grahovacc/CoretimeHub-V2/tree/main/src/utils/index.ts | https://raw.githubusercontent.com/Grahovacc/CoretimeHub-V2/5c5995a/src/utils/index.ts | Grahovacc/CoretimeHub-V2 5c5995a src/utils/index.ts | true | 200 | 1,689 | import { Network } from '@/types';
const toFixedWithoutRounding = (value: number, decimalDigits: number) => {
const factor = Math.pow(10, decimalDigits);
return Math.floor(value * factor) / factor;
};
export const formatWithDecimals = (amount: string, decimals: number): string => {
if (amount == '0') return `0`... | 4 |
rakenduste-programmeerimine-2023/pacenote-master | c15d3e1 | components/backend/ViewStage/beViewStage.ts | TypeScript | www.github.com/rakenduste-programmeerimine-2023/pacenote-master/tree/main/components/backend/ViewStage/beViewStage.ts | https://raw.githubusercontent.com/rakenduste-programmeerimine-2023/pacenote-master/c15d3e1/components/backend/ViewStage/beViewStage.ts | rakenduste-programmeerimine-2023/pacenote-master c15d3e1 components/backend/ViewStage/beViewStage.ts | true | 200 | 1,182 | "use server"
import { createClient } from "@/utils/supabase/server"
import { cookies } from "next/headers"
export const LoadStageFromDB = async (stageID: number | null) => {
const cookieStore = cookies()
const supabase = createClient(cookieStore)
try {
const { data: pacenotes, error } = await supab... | 5 |
RickFBraga/recharge_driven | c89fcd0 | src/controllers/index.ts | TypeScript | www.github.com/RickFBraga/recharge_driven/tree/main/src/controllers/index.ts | https://raw.githubusercontent.com/RickFBraga/recharge_driven/c89fcd0/src/controllers/index.ts | RickFBraga/recharge_driven c89fcd0 src/controllers/index.ts | true | 200 | 4,802 | import { Request, Response } from 'express';
import db from '../database/database_connection';
import { Carrier, ParamsWithDocument, Phone, PhoneWithCarrier, Recharge, SummaryResponse } from '../protocols';
export const addPhone = async (req: Request, res: Response): Promise<void> => {
const { number, carrier_id, de... | 6 |
jnerydesigner/curriculo-next-nest | 221693b | backend_curriculo/src/infra/database/mappers/users.mapper.ts | TypeScript | www.github.com/jnerydesigner/curriculo-next-nest/tree/main/backend_curriculo/src/infra/database/mappers/users.mapper.ts | https://raw.githubusercontent.com/jnerydesigner/curriculo-next-nest/221693b/backend_curriculo/src/infra/database/mappers/users.mapper.ts | jnerydesigner/curriculo-next-nest 221693b backend_curriculo/src/infra/database/mappers/users.mapper.ts | true | 200 | 4,046 | import { UserCreateType } from '@dtos/user-create.dto';
import { Injectable } from '@nestjs/common';
import { Prisma } from '@prisma/client';
type UserWithRelations = Prisma.UserGetPayload<{
include: {
PersonalDatas: true;
Habilities: true;
Contacts: {
include: {
SocialMedias: true;
}... | 3 |
Emmyfrank/searching-keyword-byusing-gmail-api | d00c1fc | src/gmail.ts | TypeScript | www.github.com/Emmyfrank/searching-keyword-byusing-gmail-api/tree/main/src/gmail.ts | https://raw.githubusercontent.com/Emmyfrank/searching-keyword-byusing-gmail-api/d00c1fc/src/gmail.ts | Emmyfrank/searching-keyword-byusing-gmail-api d00c1fc src/gmail.ts | true | 200 | 3,596 | import { google } from "googleapis";
import { OAuth2Client } from "google-auth-library";
import fs from "fs";
import path from "path";
import readline from "readline";
import { parse } from "url";
import { parse as parseQuery } from "querystring";
const SCOPES = ["https://www.googleapis.com/auth/gmail.readonly"];
cons... | 1 |
Djarrieta/donbot-binance-hedge | 5b2483e | src/infrastructure/AlertService.ts | TypeScript | www.github.com/Djarrieta/donbot-binance-hedge/tree/main/src/infrastructure/AlertService.ts | https://raw.githubusercontent.com/Djarrieta/donbot-binance-hedge/5b2483e/src/infrastructure/AlertService.ts | Djarrieta/donbot-binance-hedge 5b2483e src/infrastructure/AlertService.ts | true | 200 | 2,028 | import { Database } from "bun:sqlite";
import type { IAlert } from "../domain/IAlert";
import type { Alert } from "../domain/Alert";
export class AlertService implements IAlert {
private db: Database;
private tableName: string;
constructor({
databaseName,
tableName,
}: {
databaseName: string;
tableName: st... | 7 |
keven-correa/frontend | 0a84c6c | src/app/secretaria/secretaria.module.ts | TypeScript | www.github.com/keven-correa/frontend/tree/main/src/app/secretaria/secretaria.module.ts | https://raw.githubusercontent.com/keven-correa/frontend/0a84c6c/src/app/secretaria/secretaria.module.ts | keven-correa/frontend 0a84c6c src/app/secretaria/secretaria.module.ts | true | 200 | 1,350 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SecretariaRoutingModule } from './secretaria-routing.module';
import { MenuComponent } from './components/menu/menu.component';
import { SheredModule } from '../shared/shered/shered.module';
import { AtletasComponent } f... | 0 |
nhayesroth/Hugo | e5f7c0d | backend/src/applications/helpers/getErrors.ts | TypeScript | www.github.com/nhayesroth/Hugo/tree/main/backend/src/applications/helpers/getErrors.ts | https://raw.githubusercontent.com/nhayesroth/Hugo/e5f7c0d/backend/src/applications/helpers/getErrors.ts | nhayesroth/Hugo e5f7c0d backend/src/applications/helpers/getErrors.ts | true | 200 | 2,719 | import { Application, FieldError } from "../Types";
export function getErrors(application: Application): FieldError[] {
const errors: FieldError[] = [];
if (application.firstName.trim() === '') {
errors.push({ field: 'firstName', error: 'First Name is required' });
}
if (application.lastName.t... | 4 |
martins-rafa/coffee-delivery | 5668a77 | src/pages/Home/components/ProductCard/styles.ts | TypeScript | www.github.com/martins-rafa/coffee-delivery/tree/main/src/pages/Home/components/ProductCard/styles.ts | https://raw.githubusercontent.com/martins-rafa/coffee-delivery/5668a77/src/pages/Home/components/ProductCard/styles.ts | martins-rafa/coffee-delivery 5668a77 src/pages/Home/components/ProductCard/styles.ts | true | 200 | 2,182 | import styled from 'styled-components'
export const ProductCardContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 0 1.25rem 1.25rem;
width: 16rem;
height: 19.375rem;
background-color: ${({ theme }) => theme.colors... | 5 |
joaxd69/Aero-technical-test | 0a1023a | src/FakeData/Cars.ts | TypeScript | www.github.com/joaxd69/Aero-technical-test/tree/main/src/FakeData/Cars.ts | https://raw.githubusercontent.com/joaxd69/Aero-technical-test/0a1023a/src/FakeData/Cars.ts | joaxd69/Aero-technical-test 0a1023a src/FakeData/Cars.ts | true | 200 | 2,207 | import { Car } from "../interfaces";
import auto1 from "../assets/auto1.png";
import auto2 from "../assets/auto2.png";
import auto3 from "../assets/auto3.png";
////first car
const ChevroletOnix2: Car = {
id: 1,
name: "Chevrolet Onix",
description: "Chevrolet Onix o similar",
image: auto1,
price: "USD 694.36",... | 6 |
nitishoutlook/college-management-system- | 806ff9b | src/app/modules/leave-management/leave-management.component.ts | TypeScript | www.github.com/nitishoutlook/college-management-system-/tree/main/src/app/modules/leave-management/leave-management.component.ts | https://raw.githubusercontent.com/nitishoutlook/college-management-system-/806ff9b/src/app/modules/leave-management/leave-management.component.ts | nitishoutlook/college-management-system- 806ff9b src/app/modules/leave-management/leave-management.component.ts | true | 200 | 788 | import { Component } from '@angular/core';
@Component({
selector: 'app-leave-management',
templateUrl: './leave-management.component.html',
styleUrl: './leave-management.component.scss',
})
export class LeaveManagementComponent {
public routeObj = [
{
department_name: 'Teacher Leave',
action: '... | 2 |
VallenDraa/uinjkt-institutional-repository-api | 66f6f35 | src/publication/publication.module.ts | TypeScript | www.github.com/VallenDraa/uinjkt-institutional-repository-api/tree/main/src/publication/publication.module.ts | https://raw.githubusercontent.com/VallenDraa/uinjkt-institutional-repository-api/66f6f35/src/publication/publication.module.ts | VallenDraa/uinjkt-institutional-repository-api 66f6f35 src/publication/publication.module.ts | true | 200 | 359 | import { Module } from '@nestjs/common';
import { PublicationController } from './publication.controller';
import { PublicationService } from './publication.service';
import { HttpModule } from '@nestjs/axios';
@Module({
imports: [HttpModule],
controllers: [PublicationController],
providers: [PublicationService]... | 3 |
u-d-a-y-95/officebook | f4fd79b | backend/src/core/employee/entities/employee.entity.ts | TypeScript | www.github.com/u-d-a-y-95/officebook/tree/main/backend/src/core/employee/entities/employee.entity.ts | https://raw.githubusercontent.com/u-d-a-y-95/officebook/f4fd79b/backend/src/core/employee/entities/employee.entity.ts | u-d-a-y-95/officebook f4fd79b backend/src/core/employee/entities/employee.entity.ts | true | 200 | 1,203 | import { Department } from 'src/core/department/entities/department.entity';
import { Designation } from 'src/core/designation/entities/designation.entity';
import { User } from 'src/core/user/entities/user.entity';
import { BaseEntity } from 'src/shared/base/base.entity';
import { Column, Entity, JoinColumn, ManyToOne... | 1 |
tuananhledev/Kanban_Server | 311dbd8 | src/controllers/user.ts | TypeScript | www.github.com/tuananhledev/Kanban_Server/tree/main/src/controllers/user.ts | https://raw.githubusercontent.com/tuananhledev/Kanban_Server/311dbd8/src/controllers/user.ts | tuananhledev/Kanban_Server 311dbd8 src/controllers/user.ts | true | 200 | 1,907 | import UserModel from "../models/UserModel";
import dotenv from 'dotenv'
import bcrypt from 'bcrypt'
import { getAccesstolen } from "../utils/getAccesstoken";
dotenv.config();
const register = async (req:any,res:any)=>{
const body=req.body;
const {email,name,password}=body;
try {
const user=await U... | 0 |
MesopotamiazZ/car-rental | e0d9b9a | src/api/base/requestAPI.config.ts | TypeScript | www.github.com/MesopotamiazZ/car-rental/tree/main/src/api/base/requestAPI.config.ts | https://raw.githubusercontent.com/MesopotamiazZ/car-rental/e0d9b9a/src/api/base/requestAPI.config.ts | MesopotamiazZ/car-rental e0d9b9a src/api/base/requestAPI.config.ts | true | 200 | 362 | /***
*
*统一定义接口,有利于维护
*
**/
/*
* NOTE:Please use ip address instead of localhost. otherwise its not working in Android
*/
import {IS_PRODUCTION} from '../../constants/constants';
const URL ={
signUp:!IS_PRODUCTION? '/movies.json':'/index.php',
homePage:!IS_PRODUCTION? '/homepage.json':'/index.php',
}
... | 4 |
Joshwawo/UptoTask-w-Typescript | e0c5d27 | src/controllers/tasksController.ts | TypeScript | www.github.com/Joshwawo/UptoTask-w-Typescript/tree/main/src/controllers/tasksController.ts | https://raw.githubusercontent.com/Joshwawo/UptoTask-w-Typescript/e0c5d27/src/controllers/tasksController.ts | Joshwawo/UptoTask-w-Typescript e0c5d27 src/controllers/tasksController.ts | true | 200 | 1,744 | import { Request, Response } from "express";
import newTaskModel from "../models/newTask";
import { RequestNvo, id, _id } from "../interfaces/newAuth.interfaces";
import {
newTaskServices,
getTaskServices,
updateTaskService,
deleteTaskService,
changeStatusTaskService,
} from "../services/tasks.services";
con... | 5 |
mariiafil/backoffice_app | 87a198d | libs/shared/utils/src/lib/crypto/crypto.ts | TypeScript | www.github.com/mariiafil/backoffice_app/tree/main/libs/shared/utils/src/lib/crypto/crypto.ts | https://raw.githubusercontent.com/mariiafil/backoffice_app/87a198d/libs/shared/utils/src/lib/crypto/crypto.ts | mariiafil/backoffice_app 87a198d libs/shared/utils/src/lib/crypto/crypto.ts | true | 200 | 831 | import AES from "crypto-js/aes";
import CryptoJS from "crypto-js";
export const KEY = process.env["NX_CRYPTO_JS_KEY"] ?? "crypto";
/**
* Encrypt auth data and set to cookie
* @param authData
* @return encrypted token
*/
export const encryptUserInfo = (authData: unknown) => {
if (authData) {
const authDataForLo... | 6 |
qthai2210/nestjs | fd8155e | src/utils/httpException.filter.ts | TypeScript | www.github.com/qthai2210/nestjs/tree/main/src/utils/httpException.filter.ts | https://raw.githubusercontent.com/qthai2210/nestjs/fd8155e/src/utils/httpException.filter.ts | qthai2210/nestjs fd8155e src/utils/httpException.filter.ts | true | 200 | 645 | import {
ExceptionFilter,
Catch,
ArgumentsHost,
NotFoundException,
} from '@nestjs/common';
import { Request, Response } from 'express';
@Catch(NotFoundException)
export class HttpExceptionFilter implements ExceptionFilter {
catch(exception: NotFoundException, host: ArgumentsHost) {
const c... | 2 |
Skillkiller/Globaldrop | 6848eba | gdserver/src/index.ts | TypeScript | www.github.com/Skillkiller/Globaldrop/tree/main/gdserver/src/index.ts | https://raw.githubusercontent.com/Skillkiller/Globaldrop/6848eba/gdserver/src/index.ts | Skillkiller/Globaldrop 6848eba gdserver/src/index.ts | true | 200 | 3,597 | import { Server } from "ws";
import { IClient, ExpressPeerServer } from "peer";
import { get, IncomingMessage } from "http";
import express from "express";
import dotenv from "dotenv";
import cors from "cors";
dotenv.config();
interface WebSocketPlus extends WebSocket {
room: string | null;
}
interface RoomData {
... | 3 |
Jcamposlozano/Back_Angular | 6248abd | NOTEJS-RESTAPI-POSTGRES-TS/src/index.ts | TypeScript | www.github.com/Jcamposlozano/Back_Angular/tree/main/NOTEJS-RESTAPI-POSTGRES-TS/src/index.ts | https://raw.githubusercontent.com/Jcamposlozano/Back_Angular/6248abd/NOTEJS-RESTAPI-POSTGRES-TS/src/index.ts | Jcamposlozano/Back_Angular 6248abd NOTEJS-RESTAPI-POSTGRES-TS/src/index.ts | true | 200 | 323 | import express from 'express';
const app = express();
import indexRoutes from './routes/indexRoutes'
//middleware
app.use(express.json());
app.use(express.urlencoded({ extended: false })); // para poder tener datos de un html
app.use(indexRoutes);
app.listen(3000, () => {
console.log('server on port ', 3000)... | 7 |
mirror-media/Lilith | 0b6e680 | packages/readr/lists/Quote.ts | TypeScript | www.github.com/mirror-media/Lilith/tree/main/packages/readr/lists/Quote.ts | https://raw.githubusercontent.com/mirror-media/Lilith/0b6e680/packages/readr/lists/Quote.ts | mirror-media/Lilith 0b6e680 packages/readr/lists/Quote.ts | true | 200 | 1,430 | // @ts-ignore: no definition
import { utils } from '@mirrormedia/lilith-core'
import { list } from '@keystone-6/core'
import {
timestamp,
integer,
text,
select,
relationship,
} from '@keystone-6/core/fields'
const { allowRoles, admin, moderator, editor } = utils.accessControl
const listConfigurations = list... | 1 |
fgsreally/sfc-server | d3842e2 | examples/example/vite.config.ts | TypeScript | www.github.com/fgsreally/sfc-server/tree/main/examples/example/vite.config.ts | https://raw.githubusercontent.com/fgsreally/sfc-server/d3842e2/examples/example/vite.config.ts | fgsreally/sfc-server d3842e2 examples/example/vite.config.ts | true | 200 | 252 | import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { sfc } from "vite-plugin-sfcmore";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), sfc()],
build: {
outDir: "dist/client",
},
});
| 5 |
dandan-drori/cli-notes | e39775f | src/tagOperations.ts | TypeScript | www.github.com/dandan-drori/cli-notes/tree/main/src/tagOperations.ts | https://raw.githubusercontent.com/dandan-drori/cli-notes/e39775f/src/tagOperations.ts | dandan-drori/cli-notes e39775f src/tagOperations.ts | true | 200 | 3,262 | import inquirer from 'inquirer';
import { Logger } from './utils/logger';
import { getAllTags, saveTag, removeTag as removeTagDb, getTagById, getTagByName as getTagByNameDb } from "./db/tags";
import { Tag } from './models/tag';
import { tagIdQuestion, tagNameQuestion } from './questions/tags';
import { ObjectId } from... | 1 |
elenilson-sousa/BlogPessoalFront | c41ec95 | src/app/entrar/entrar.component.ts | TypeScript | www.github.com/elenilson-sousa/BlogPessoalFront/tree/main/src/app/entrar/entrar.component.ts | https://raw.githubusercontent.com/elenilson-sousa/BlogPessoalFront/c41ec95/src/app/entrar/entrar.component.ts | elenilson-sousa/BlogPessoalFront c41ec95 src/app/entrar/entrar.component.ts | true | 200 | 1,096 | import { environment } from './../../environments/environment.prod';
import { Router } from '@angular/router';
import { AuthService } from './../service/auth.service';
import { Component, OnInit } from '@angular/core';
import { UsuarioLogin } from '../model/UsuarioLogin';
@Component({
selector: 'app-entrar',
templ... | 5 |
AxonDesigns/totp-implementation | 8f09799 | src/lib/utils.ts | TypeScript | www.github.com/AxonDesigns/totp-implementation/tree/main/src/lib/utils.ts | https://raw.githubusercontent.com/AxonDesigns/totp-implementation/8f09799/src/lib/utils.ts | AxonDesigns/totp-implementation 8f09799 src/lib/utils.ts | true | 200 | 761 | import "dotenv/config";
import { Request } from "express";
import { verify } from "jsonwebtoken";
export const getUserFromRequest = (req: Request) => {
const accessToken = (
req.cookies.access_token || (req.headers.authorization?.split(" ")[1])
) as string | undefined;
if (!accessToken) {
... | 1 |
svenkang/hobbitlink | 709ca1f | api/src/app/app.controller.ts | TypeScript | www.github.com/svenkang/hobbitlink/tree/main/api/src/app/app.controller.ts | https://raw.githubusercontent.com/svenkang/hobbitlink/709ca1f/api/src/app/app.controller.ts | svenkang/hobbitlink 709ca1f api/src/app/app.controller.ts | true | 200 | 560 | import { Controller, Get } from '@nestjs/common';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { AppService } from './app.service';
import { WelcomeMessage } from './app.interface';
import { Public } from './../auth/auth.guard';
@Controller()
export class AppController {
constructor(private reado... | 5 |
kassiods/banco-de-dados-teste | 2f84a11 | src/index.ts | TypeScript | www.github.com/kassiods/banco-de-dados-teste/tree/main/src/index.ts | https://raw.githubusercontent.com/kassiods/banco-de-dados-teste/2f84a11/src/index.ts | kassiods/banco-de-dados-teste 2f84a11 src/index.ts | true | 200 | 317 | import { Hono } from 'hono'
import {cors} from 'hono/cors'
import usersRoute from './routes/users'
import loginRoute from './routes/login'
import { jwt } from 'hono/jwt'
const app = new Hono()
app.use(cors())
app.get('/', (c) => {
return c.text('Opa eae!')
})
app.route("/login", loginRoute)
export default app | 5 |
enkryptor/jspatterns-examples | 57bd8ad | patterns/template-method-problem.ts | TypeScript | www.github.com/enkryptor/jspatterns-examples/tree/main/patterns/template-method-problem.ts | https://raw.githubusercontent.com/enkryptor/jspatterns-examples/57bd8ad/patterns/template-method-problem.ts | enkryptor/jspatterns-examples 57bd8ad patterns/template-method-problem.ts | true | 200 | 431 |
namespace ProblemExample {
abstract class Animal {
constructor() {
this.announce();
}
protected abstract announce(): void;
}
class Dog extends Animal {
constructor(private name: string) {
super();
}
protected announce(): void {
... | 1 |
igorhms/gac-api | ad9b527 | src/modules/finance/finance.service.ts | TypeScript | www.github.com/igorhms/gac-api/tree/main/src/modules/finance/finance.service.ts | https://raw.githubusercontent.com/igorhms/gac-api/ad9b527/src/modules/finance/finance.service.ts | igorhms/gac-api ad9b527 src/modules/finance/finance.service.ts | true | 200 | 2,838 | import { BadRequestException, HttpStatus, Injectable } from '@nestjs/common';
import { AccountService } from '../account/account.service';
import { AccountDocument } from '../account/schemas/account.schema';
import { sys_default_msg } from 'src/utils/system-messages';
import { TransactionType } from 'src/utils/enums/tr... | 5 |
AyeshaAshrafChandio/45-Q-s-Assignment-Solve-task | 9073e08 | Q38.ts | TypeScript | www.github.com/AyeshaAshrafChandio/45-Q-s-Assignment-Solve-task/tree/main/Q38.ts | https://raw.githubusercontent.com/AyeshaAshrafChandio/45-Q-s-Assignment-Solve-task/9073e08/Q38.ts | AyeshaAshrafChandio/45-Q-s-Assignment-Solve-task 9073e08 Q38.ts | true | 200 | 659 | //ities: Write a function called describe_city() that accepts the name of a city and its country. The function should print a simple sentence, such as Karachi is in Pakistan. Give the parameter for the country a default value. Call your function for three different cities, at least one of which is not in the default co... | 1 |
JPDovale/clean-nest-template | 2c57867 | src/providers/auth/auth.module.ts | TypeScript | www.github.com/JPDovale/clean-nest-template/tree/main/src/providers/auth/auth.module.ts | https://raw.githubusercontent.com/JPDovale/clean-nest-template/2c57867/src/providers/auth/auth.module.ts | JPDovale/clean-nest-template 2c57867 src/providers/auth/auth.module.ts | true | 200 | 1,058 | import { Module } from '@nestjs/common'
import { JwtModule } from '@nestjs/jwt'
import { PassportModule } from '@nestjs/passport'
import { JwtStrategy } from './strategys/jwtStrategy'
import { APP_GUARD } from '@nestjs/core'
import { JwtAuthGuard } from './guards/jwtAuthGuard'
import { EnvService } from '@infra/env/env... | 5 |
William-io/consult-medical | 4be0b78 | ConsultApp/src/app/pages/all/all.component.ts | TypeScript | www.github.com/William-io/consult-medical/tree/main/ConsultApp/src/app/pages/all/all.component.ts | https://raw.githubusercontent.com/William-io/consult-medical/4be0b78/ConsultApp/src/app/pages/all/all.component.ts | William-io/consult-medical 4be0b78 ConsultApp/src/app/pages/all/all.component.ts | true | 200 | 624 | import { Component, OnInit } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import { DataService } from 'src/app/data.service';
@Component({
selector: 'app-all',
templateUrl: './all.component.html',
styleUrls: ['./all.component.css']
})
export class AllComponent implements OnI... | 1 |
RomanLeshchishin/Articles-fullstack | b82979b | articles-frontend/src/store/actions/fileActions.ts | TypeScript | www.github.com/RomanLeshchishin/Articles-fullstack/tree/main/articles-frontend/src/store/actions/fileActions.ts | https://raw.githubusercontent.com/RomanLeshchishin/Articles-fullstack/b82979b/articles-frontend/src/store/actions/fileActions.ts | RomanLeshchishin/Articles-fullstack b82979b articles-frontend/src/store/actions/fileActions.ts | true | 200 | 407 | import {createAsyncThunk} from "@reduxjs/toolkit";
import axios from "axios";
import {IFile} from "../../models/IFile.ts";
export const saveFiles = createAsyncThunk(
'file/save',
async (fileData: FormData, thunkApi) => {
try {
const response = await axios.post<IFile[]>('http://localhost:5000/file', fileData)
... | 1 |
angelaltarodri/sunner-app | fcc6a6c | src/app/shared/shared.module.ts | TypeScript | www.github.com/angelaltarodri/sunner-app/tree/main/src/app/shared/shared.module.ts | https://raw.githubusercontent.com/angelaltarodri/sunner-app/fcc6a6c/src/app/shared/shared.module.ts | angelaltarodri/sunner-app fcc6a6c src/app/shared/shared.module.ts | true | 200 | 507 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CarouselComponent } from './components/carousel/carousel.component';
import { PopUpContactoComponent } from './components/pop-up-contacto/pop-up-contacto.component';
import { MaterialModule } from './material/material.mod... | 5 |
nehuencisneros/OOPProyect | 541a754 | src/purchase/middlewares/purchase.middleware.ts | TypeScript | www.github.com/nehuencisneros/OOPProyect/tree/main/src/purchase/middlewares/purchase.middleware.ts | https://raw.githubusercontent.com/nehuencisneros/OOPProyect/541a754/src/purchase/middlewares/purchase.middleware.ts | nehuencisneros/OOPProyect 541a754 src/purchase/middlewares/purchase.middleware.ts | true | 200 | 749 | import { NextFunction, Request, Response } from "express";
import { HttpResponse } from "../../shared/response/http.response";
import { PurchaseDTO } from "../dto/purchase.dto";
import { validate } from "class-validator";
export class PurchaseMiddleware{
constructor(
private readonly httpResponse: HttpResponse =... | 1 |
hamzakaraca/YouBank | 4028529 | src/app/components/account-update/account-update.component.ts | TypeScript | www.github.com/hamzakaraca/YouBank/tree/main/src/app/components/account-update/account-update.component.ts | https://raw.githubusercontent.com/hamzakaraca/YouBank/4028529/src/app/components/account-update/account-update.component.ts | hamzakaraca/YouBank 4028529 src/app/components/account-update/account-update.component.ts | true | 200 | 2,383 | import { Component, Input, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
import { TimeoutError } from 'rxjs';
import { Account } from 'src/app/models/account';
import { Customer } from 'src/app/models/customer';
import { AccountServic... | 5 |
iDeliverd/idelivered-web-app | 8a01ada | src/app/layout/pages/orders/components/order-list-item/order-list-item.component.ts | TypeScript | www.github.com/iDeliverd/idelivered-web-app/tree/main/src/app/layout/pages/orders/components/order-list-item/order-list-item.component.ts | https://raw.githubusercontent.com/iDeliverd/idelivered-web-app/8a01ada/src/app/layout/pages/orders/components/order-list-item/order-list-item.component.ts | iDeliverd/idelivered-web-app 8a01ada src/app/layout/pages/orders/components/order-list-item/order-list-item.component.ts | true | 200 | 3,852 | import { Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
import { AppSettings } from '../../../../../shared/models/appSettings.model';
import { StyleVariables } from '../../../../../core/theme/styleVariables.model';
import { Router } from '@angular/router';
import { Glob... | 1 |
3Big-Projet3-2024-2025/2-InterfApp | 3de60b9 | Frontend/interfApp/src/app/pages/group-page/group-page.component.ts | TypeScript | www.github.com/3Big-Projet3-2024-2025/2-InterfApp/tree/main/Frontend/interfApp/src/app/pages/group-page/group-page.component.ts | https://raw.githubusercontent.com/3Big-Projet3-2024-2025/2-InterfApp/3de60b9/Frontend/interfApp/src/app/pages/group-page/group-page.component.ts | 3Big-Projet3-2024-2025/2-InterfApp 3de60b9 Frontend/interfApp/src/app/pages/group-page/group-page.component.ts | true | 200 | 7,693 | import {Component, OnInit} from '@angular/core';
import {GroupService} from "../../services/group.service";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {ActivatedRoute, Router, RouterModule, RouterOutlet} from "@angular/router";
import { CommonModule, KeyValue, KeyValuePipe } from '@angular/... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.