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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Laffery/alipreview | 4867e47 | src/server/services/index.ts | TypeScript | www.github.com/Laffery/alipreview/tree/main/src/server/services/index.ts | https://raw.githubusercontent.com/Laffery/alipreview/4867e47/src/server/services/index.ts | Laffery/alipreview 4867e47 src/server/services/index.ts | true | 200 | 418 | import { Router } from "express";
import { default as storyRouter } from "./story";
import { default as userRouter } from "./user";
import dayjs from "dayjs";
const router = Router();
router.use((req, _res, next) => {
const timestamp = dayjs().format("YYYY-MM-DD HH:mm:ssZ[z]");
console.log(`[${timestamp}] api${re... | 0 |
feeroza/Question-17 | c9cb3ab | Question 17/017.ts | TypeScript | www.github.com/feeroza/Question-17/tree/main/Question 17/017.ts | https://raw.githubusercontent.com/feeroza/Question-17/c9cb3ab/Question%2017/017.ts | feeroza/Question-17 c9cb3ab Question 17/017.ts | true | 200 | 1,589 | //17. Shrinking Guest List: You just found out that your new dinner table won’t arrive in time for the dinner, and you have space for only two guests.
//• Start with your program from Exercise 16. Add a new line that prints a message saying that you can invite only two people for dinner.
//• Remove guests from yo... | 6 |
AnasAAhmed/ecom-back | 42d0b39 | src/routes/user.ts | TypeScript | www.github.com/AnasAAhmed/ecom-back/tree/main/src/routes/user.ts | https://raw.githubusercontent.com/AnasAAhmed/ecom-back/42d0b39/src/routes/user.ts | AnasAAhmed/ecom-back 42d0b39 src/routes/user.ts | true | 200 | 719 | import express from "express";
import {
deleteUser,
getAllUsers,
getUser,
newUser,
updateUser,
deleteSingleUser,
} from "../controllers/user.js";
import { adminOnly } from "../middlewares/auth.js";
const app = express.Router();
// route - /api/v1/user/new
app.post("/new", newUser);
// route - /api/v1/use... | 2 |
mauricioyansen/22-refund-api-2.0 | 210e7d8 | src/controllers/uploads-controller.ts | TypeScript | www.github.com/mauricioyansen/22-refund-api-2.0/tree/main/src/controllers/uploads-controller.ts | https://raw.githubusercontent.com/mauricioyansen/22-refund-api-2.0/210e7d8/src/controllers/uploads-controller.ts | mauricioyansen/22-refund-api-2.0 210e7d8 src/controllers/uploads-controller.ts | true | 200 | 1,380 | import { Request, Response } from "express";
import z, { ZodError } from "zod";
import uploadConfig from "@/config/upload";
import { DiskStorage } from "@/providers/disc-storage";
import { AppError } from "@/utils/AppError";
export class UploadsController {
async create(req: Request, res: Response) {
const diskS... | 3 |
Haramain-Talat/45_Questions-Assignments | cccc34e | Task_17 (Shirinking_Guest_List)/app.ts | TypeScript | www.github.com/Haramain-Talat/45_Questions-Assignments/tree/main/Task_17 (Shirinking_Guest_List)/app.ts | https://raw.githubusercontent.com/Haramain-Talat/45_Questions-Assignments/cccc34e/Task_17%20%28Shirinking_Guest_List%29/app.ts | Haramain-Talat/45_Questions-Assignments cccc34e Task_17 (Shirinking_Guest_List)/app.ts | true | 200 | 1,732 | //QUESTION NO 17:
//Shrinking Guest List: You just found out that your new dinner table won’t arrive in time for the dinner,
//and you have space for only two guests.
//• Start with your program from Exercise 16. Add a new line that prints a message saying that you can invite only two people for dinner.
//• Remove gu... | 4 |
hq0819/self-space2 | 4f00fb5 | src/api/common.ts | TypeScript | www.github.com/hq0819/self-space2/tree/main/src/api/common.ts | https://raw.githubusercontent.com/hq0819/self-space2/4f00fb5/src/api/common.ts | hq0819/self-space2 4f00fb5 src/api/common.ts | true | 200 | 434 | import {group, Result} from "@/api/api";
import {AxiosRequestConfig} from "axios";
let api = group("/api/file");
async function upload(file:File):Promise<AxiosRequestConfig<Result<string>>>{
let formData = new FormData();
formData.append("file",file)
console.log(formData);
return await api.post("/uploa... | 1 |
HoangHiep02/caulong-angular | f628c05 | Admin/src/app/Service/tin-tuc.service.ts | TypeScript | www.github.com/HoangHiep02/caulong-angular/tree/main/Admin/src/app/Service/tin-tuc.service.ts | https://raw.githubusercontent.com/HoangHiep02/caulong-angular/f628c05/Admin/src/app/Service/tin-tuc.service.ts | HoangHiep02/caulong-angular f628c05 Admin/src/app/Service/tin-tuc.service.ts | true | 200 | 1,075 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { baseUrl } from '../baseUrl';
@Injectable({
providedIn: 'root',
})
export class TinTucService {
constructor(private http: HttpClient) {}
getAll(): Observable<any[]> {
ret... | 5 |
MotloungS/DatingApp | bce5eef | client/src/app/register/register.component.ts | TypeScript | www.github.com/MotloungS/DatingApp/tree/main/client/src/app/register/register.component.ts | https://raw.githubusercontent.com/MotloungS/DatingApp/bce5eef/client/src/app/register/register.component.ts | MotloungS/DatingApp bce5eef client/src/app/register/register.component.ts | true | 200 | 809 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { AccountService } from '../_services/account.service';
@Component({
selector: 'app-register',
templateUrl: './register.component.html',
styleUrls: ['./register.component.css']
})
ex... | 3 |
olegsamoilenko/blueshoe2-de | 14e4dbe | nuxt.config.ts | TypeScript | www.github.com/olegsamoilenko/blueshoe2-de/tree/main/nuxt.config.ts | https://raw.githubusercontent.com/olegsamoilenko/blueshoe2-de/14e4dbe/nuxt.config.ts | olegsamoilenko/blueshoe2-de 14e4dbe nuxt.config.ts | true | 200 | 587 | // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxt/content', '@nuxtjs/tailwindcss'],
components: {
global: true,
dirs: ['~/components']
},
content: {
experimental: {
clientDb: true
},
highlight: {
... | 2 |
juniantowicaksono06/asset-avenue-api | d6e0c0f | src/server.ts | TypeScript | www.github.com/juniantowicaksono06/asset-avenue-api/tree/main/src/server.ts | https://raw.githubusercontent.com/juniantowicaksono06/asset-avenue-api/d6e0c0f/src/server.ts | juniantowicaksono06/asset-avenue-api d6e0c0f src/server.ts | true | 200 | 392 |
import app from "./app";
import sequelize from "./config/database";
const PORT = process.env.PORT || 3000;
// Sync Sequelize models with the database
export function run_server() {
sequelize.sync().then(() => {
console.log("Database synced!");
// Start the server
app.listen(PORT, () => {
... | 6 |
harecode-ar/ADP | 1ce3fd0 | packages/backend/src/database/seeders/permission.ts | TypeScript | www.github.com/harecode-ar/ADP/tree/main/packages/backend/src/database/seeders/permission.ts | https://raw.githubusercontent.com/harecode-ar/ADP/1ce3fd0/packages/backend/src/database/seeders/permission.ts | harecode-ar/ADP 1ce3fd0 packages/backend/src/database/seeders/permission.ts | true | 200 | 405 | import { PERMISSION_ARRAY } from '@adp/shared'
import type { IPermission } from '@adp/shared'
import { Permission } from '../models'
export const permissionSeed = (context: { transaction: any }): Promise<IPermission[]> => {
const { transaction } = context
return Permission.bulkCreate(
PERMISSION_ARRAY.map((per... | 0 |
reshad21/bike-rental-website-backend | 2d93c00 | src/app.ts | TypeScript | www.github.com/reshad21/bike-rental-website-backend/tree/main/src/app.ts | https://raw.githubusercontent.com/reshad21/bike-rental-website-backend/2d93c00/src/app.ts | reshad21/bike-rental-website-backend 2d93c00 src/app.ts | true | 200 | 1,019 | /* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-explicit-any */
import cors from 'cors';
import express, { Application, Request, Response } from 'express';
import path from 'path';
import globalErrorHandler ... | 1 |
hcuriel2/MyTechiePro-Computotal | 83a8233 | AdminFront/src/app/shared/models/create-category.ts | TypeScript | www.github.com/hcuriel2/MyTechiePro-Computotal/tree/main/AdminFront/src/app/shared/models/create-category.ts | https://raw.githubusercontent.com/hcuriel2/MyTechiePro-Computotal/83a8233/AdminFront/src/app/shared/models/create-category.ts | hcuriel2/MyTechiePro-Computotal 83a8233 AdminFront/src/app/shared/models/create-category.ts | true | 200 | 355 | export class Category {
name: string | undefined;
icon: string | undefined;
// services: serviceArr[] = [];
services: Object[] = [];
constructor(name: string, icon: string, services: Object[]) {
this.name = name;
this.icon = icon;
this.services = services;
}
}
// export class serviceArr {
/... | 3 |
gayathri-baiju/Playwright | 3d04cd9 | Playwright-Jobify/demoApiJobify/JobifyTests/loginTest.spec.ts | TypeScript | www.github.com/gayathri-baiju/Playwright/tree/main/Playwright-Jobify/demoApiJobify/JobifyTests/loginTest.spec.ts | https://raw.githubusercontent.com/gayathri-baiju/Playwright/3d04cd9/Playwright-Jobify/demoApiJobify/JobifyTests/loginTest.spec.ts | gayathri-baiju/Playwright 3d04cd9 Playwright-Jobify/demoApiJobify/JobifyTests/loginTest.spec.ts | true | 200 | 290 | import {test} from '@playwright/test';
import { Login } from '../JobifyPages/loginPage';
test("Test",async({page})=>{
let email="gayathri.baiju@experionglobal.com";
let password= "Experion@2023";
const login= new Login(page);
await login.signIn(email,password);
}) | 6 |
RiyazulHaque64/University-Management | 3859756 | src/app/modules/academicDepartment/academicDepartment.model.ts | TypeScript | www.github.com/RiyazulHaque64/University-Management/tree/main/src/app/modules/academicDepartment/academicDepartment.model.ts | https://raw.githubusercontent.com/RiyazulHaque64/University-Management/3859756/src/app/modules/academicDepartment/academicDepartment.model.ts | RiyazulHaque64/University-Management 3859756 src/app/modules/academicDepartment/academicDepartment.model.ts | true | 200 | 1,405 | import httpStatus from 'http-status';
import { Schema, Types, model } from 'mongoose';
import AppError from '../../error/appError';
import {
TAcademicDepartment,
TAcademicDepartmentMethod,
} from './academicDepartment.interface';
const academicDepartmentSchema = new Schema<
TAcademicDepartment,
TAcademicDepart... | 5 |
qwilio/qwil-api-transport | 7fbb218 | types/qwil-api-transport.d.ts | TypeScript | www.github.com/qwilio/qwil-api-transport/tree/main/types/qwil-api-transport.d.ts | https://raw.githubusercontent.com/qwilio/qwil-api-transport/7fbb218/types/qwil-api-transport.d.ts | qwilio/qwil-api-transport 7fbb218 types/qwil-api-transport.d.ts | true | 200 | 1,052 | export type MESSAGE_TYPE_EVENT = string;
export type MESSAGE_TYPE_REQUEST = string;
export type MESSAGE_TYPE_RESPONSE = string;
export type RequestErrorDetails = {
name: string;
message: string;
};
export type RequestErrorCallback = (props: { error: RequestErrorDetails }) => void;
export type RequestSuccessCallbac... | 1 |
farooqammar51/FoodRemedy_web | 4a7eead | src/app/services/database-service/database.service.ts | TypeScript | www.github.com/farooqammar51/FoodRemedy_web/tree/main/src/app/services/database-service/database.service.ts | https://raw.githubusercontent.com/farooqammar51/FoodRemedy_web/4a7eead/src/app/services/database-service/database.service.ts | farooqammar51/FoodRemedy_web 4a7eead src/app/services/database-service/database.service.ts | true | 200 | 2,585 | import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { BehaviorSubject, Observable, catchError, tap, throwError } from "rxjs";
import { DatabaseModel } from "src/app/models/database.model";
import { tag, tagsModel } from "src/app/models/tags.model";
import { HttpErrorRes... | 3 |
esseJl/Enigma-front-end | 670d639 | src/app/day/candle-day-home/candle-day-home.component.spec.ts | TypeScript | www.github.com/esseJl/Enigma-front-end/tree/main/src/app/day/candle-day-home/candle-day-home.component.spec.ts | https://raw.githubusercontent.com/esseJl/Enigma-front-end/670d639/src/app/day/candle-day-home/candle-day-home.component.spec.ts | esseJl/Enigma-front-end 670d639 src/app/day/candle-day-home/candle-day-home.component.spec.ts | true | 200 | 650 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CandleDayHomeComponent } from './candle-day-home.component';
describe('CandleDayHomeComponent', () => {
let component: CandleDayHomeComponent;
let fixture: ComponentFixture<CandleDayHomeComponent>;
beforeEach(async () => {
await Te... | 6 |
Bilal-Sheikh/BeyondBazaar | 0f119e5 | app/api/(seller)/add-product/route.ts | TypeScript | www.github.com/Bilal-Sheikh/BeyondBazaar/tree/main/app/api/(seller)/add-product/route.ts | https://raw.githubusercontent.com/Bilal-Sheikh/BeyondBazaar/0f119e5/app/api/%28seller%29/add-product/route.ts | Bilal-Sheikh/BeyondBazaar 0f119e5 app/api/(seller)/add-product/route.ts | true | 200 | 1,531 | import { NextResponse } from "next/server";
import { currentUser } from "@clerk/nextjs";
import { prisma } from "@/lib/db";
import { $Enums } from "@prisma/client";
interface BodyType {
name: string;
description: string;
price: number;
imageUrl: string;
stockQuantity: number;
category: $Enums.Category;
}
export... | 1 |
MatheSam/back_mostruario | 7a03213 | src/entities/subCategorie.entity.ts | TypeScript | www.github.com/MatheSam/back_mostruario/tree/main/src/entities/subCategorie.entity.ts | https://raw.githubusercontent.com/MatheSam/back_mostruario/7a03213/src/entities/subCategorie.entity.ts | MatheSam/back_mostruario 7a03213 src/entities/subCategorie.entity.ts | true | 200 | 1,048 | import { Entity, Column, CreateDateColumn, UpdateDateColumn, PrimaryColumn, ManyToOne, OneToMany } from "typeorm";
import { v4 as uuid } from "uuid"
import { Categories } from "./categories.entity";
import { Products } from "./products.entity";
@Entity("") // Nome da tabela no banco
export class SubCategories {
@Pri... | 6 |
westdabestdb/yt-cutter | 3558548 | src/app/api/download-tiktok/route.ts | TypeScript | www.github.com/westdabestdb/yt-cutter/tree/main/src/app/api/download-tiktok/route.ts | https://raw.githubusercontent.com/westdabestdb/yt-cutter/3558548/src/app/api/download-tiktok/route.ts | westdabestdb/yt-cutter 3558548 src/app/api/download-tiktok/route.ts | true | 200 | 2,092 | import { NextResponse } from 'next/server';
import { spawn } from 'child_process';
import { Readable } from 'stream';
async function downloadTikTokVideo(url: string): Promise<Buffer> {
return new Promise((resolve, reject) => {
const ytdlp = spawn('yt-dlp', [
'--format', 'best[vcodec^=h264]',
'--no-wa... | 5 |
Oledja/educational-projects | 8bb80f4 | northwind/src/controllers/CustomerController.ts | TypeScript | www.github.com/Oledja/educational-projects/tree/main/northwind/src/controllers/CustomerController.ts | https://raw.githubusercontent.com/Oledja/educational-projects/8bb80f4/northwind/src/controllers/CustomerController.ts | Oledja/educational-projects 8bb80f4 northwind/src/controllers/CustomerController.ts | true | 200 | 1,158 | import { Request, Response } from "express";
import CustomerService from "../services/CustomerService";
import { getErrorMessage } from "../utils/getErrorMessage";
class CustomerController {
private customerService = new CustomerService();
public getAll = async (req: Request, res: Response) => {
try {
c... | 1 |
tenzmetok/clockupApi | b0c66cb | resolvers/WorkSpace.ts | TypeScript | www.github.com/tenzmetok/clockupApi/tree/main/resolvers/WorkSpace.ts | https://raw.githubusercontent.com/tenzmetok/clockupApi/b0c66cb/resolvers/WorkSpace.ts | tenzmetok/clockupApi b0c66cb resolvers/WorkSpace.ts | true | 200 | 6,414 | import {
addWorkSpace,
updateWorkSpace,
workSpaceById,
workSpaceByOwnerId,
addWorkspaceMember,
updateWorkspaceMember,
removeMember,
WorkSpaceMemberInvitation,
getWorkSpaceMember,
getAllWorkspaceMember,
} from '../../controllers/workspace';
const s3 = require('../../config/s3config');
import { Op } f... | 3 |
twhy36/PhdWeb | ef8ca2e | UI/Phd.DesignToolWeb/ClientApp/src/app/modules/ngrx-store/stopwatch.ts | TypeScript | www.github.com/twhy36/PhdWeb/tree/main/UI/Phd.DesignToolWeb/ClientApp/src/app/modules/ngrx-store/stopwatch.ts | https://raw.githubusercontent.com/twhy36/PhdWeb/ef8ca2e/UI/Phd.DesignToolWeb/ClientApp/src/app/modules/ngrx-store/stopwatch.ts | twhy36/PhdWeb ef8ca2e UI/Phd.DesignToolWeb/ClientApp/src/app/modules/ngrx-store/stopwatch.ts | true | 200 | 897 | import { ActionReducer } from '@ngrx/store';
import { AppInsights } from "applicationinsights-js";
export function Stopwatch(stopAt: string[]) {
return function <T extends { new(...args: any[]): {} }>(constructor: T) {
return class extends constructor {
timeUntil = stopAt;
};
};
}
export function stopwatchRe... | 6 |
adamreidsmith/fuellytics | 6c7a250 | frontend/services/authentication/types.ts | TypeScript | www.github.com/adamreidsmith/fuellytics/tree/main/frontend/services/authentication/types.ts | https://raw.githubusercontent.com/adamreidsmith/fuellytics/6c7a250/frontend/services/authentication/types.ts | adamreidsmith/fuellytics 6c7a250 frontend/services/authentication/types.ts | true | 200 | 1,607 | import { z } from 'zod';
import { AxiosError } from 'axios';
import { QueryKey, UseMutationOptions, UseQueryOptions } from 'react-query';
import {
AuthenticationSchema,
GetCSRFTokenSchema,
LogoutSchema,
} from './schema';
export type LoginReponse = z.infer<typeof AuthenticationSchema>;
export type RegisterRepon... | 5 |
codebeast0420/erc-token-swap-telegram-bot | 0a93ed7 | src/commands/actions/snipe/snipe.values.listener.ts | TypeScript | www.github.com/codebeast0420/erc-token-swap-telegram-bot/tree/main/src/commands/actions/snipe/snipe.values.listener.ts | https://raw.githubusercontent.com/codebeast0420/erc-token-swap-telegram-bot/0a93ed7/src/commands/actions/snipe/snipe.values.listener.ts | codebeast0420/erc-token-swap-telegram-bot 0a93ed7 src/commands/actions/snipe/snipe.values.listener.ts | true | 200 | 12,700 | import axios from 'axios';
import { Scenes } from 'telegraf';
import { botEnum } from '../../../constants/botEnum';
import { chainGasPrice } from '../../../service/chain.service';
import { getDedicatedSyncRPC, getNativeCurrencySymbol, getRPC } from '../../../web3/chain.parameters';
import { SEND_AMOUNT_PLACEHOLDER, SNI... | 1 |
3DPong/transcendence | 61b5d60 | backend/src/models/game/simul/object/ObjectController.ts | TypeScript | www.github.com/3DPong/transcendence/tree/main/backend/src/models/game/simul/object/ObjectController.ts | https://raw.githubusercontent.com/3DPong/transcendence/61b5d60/backend/src/models/game/simul/object/ObjectController.ts | 3DPong/transcendence 61b5d60 backend/src/models/game/simul/object/ObjectController.ts | true | 200 | 2,128 | import { GamePlayer } from '../GamePlayer';
import * as Box2D from '../../Box2D';
import { PaddleState } from '../../enum/GameEnum';
import { BALL_MAX_ANGLE, BALL_PI, MAP_HEIGHT, PADDLE_HEIGHT, PADDLE_SPEED } from '../../enum/GameEnv';
export function MovePeddle(user: GamePlayer) {
if (user.directionButton === Paddl... | 3 |
Msouza-95/notifications-service | 9c3f363 | src/application/entities/content.ts | TypeScript | www.github.com/Msouza-95/notifications-service/tree/main/src/application/entities/content.ts | https://raw.githubusercontent.com/Msouza-95/notifications-service/9c3f363/src/application/entities/content.ts | Msouza-95/notifications-service 9c3f363 src/application/entities/content.ts | true | 200 | 452 |
export class Content {
private readonly content : string
get value():string {
return this.content;
}
private validateContentLength(content:string): boolean{
return content.length >= 5 && content.length <= 240;
}
constructor(content: string ){
const isContentLenghtValid = this.validateContentLengt... | 6 |
RomanVinichenko/bit | bbc31e0 | src/layouts/AuthLayout/layouts/sign-up/styled.ts | TypeScript | www.github.com/RomanVinichenko/bit/tree/main/src/layouts/AuthLayout/layouts/sign-up/styled.ts | https://raw.githubusercontent.com/RomanVinichenko/bit/bbc31e0/src/layouts/AuthLayout/layouts/sign-up/styled.ts | RomanVinichenko/bit bbc31e0 src/layouts/AuthLayout/layouts/sign-up/styled.ts | true | 200 | 1,520 | import styled from 'styled-components'
const Container = styled.div`
display: block;
.get-started-sign-up{
margin-top:50px;
}
@media(max-width:768px){
width:277px;
}
.fields{
max-width:100%;
}
.terms-flex{
@media(max-width:768px){
display:flex;
flex-directi... | 5 |
asgardex/asgardex-desktop | 74c1ddf | src/renderer/services/cosmos/transaction.ts | TypeScript | www.github.com/asgardex/asgardex-desktop/tree/main/src/renderer/services/cosmos/transaction.ts | https://raw.githubusercontent.com/asgardex/asgardex-desktop/74c1ddf/src/renderer/services/cosmos/transaction.ts | asgardex/asgardex-desktop 74c1ddf src/renderer/services/cosmos/transaction.ts | true | 200 | 3,129 | import * as RD from '@devexperts/remote-data-ts'
import { Network, TxHash } from '@xchainjs/xchain-client'
import { Client, GAIAChain } from '@xchainjs/xchain-cosmos'
import { Asset } from '@xchainjs/xchain-util'
import * as E from 'fp-ts/lib/Either'
import * as FP from 'fp-ts/lib/function'
import * as O from 'fp-ts/li... | 1 |
Marawanelhaggar1/Ahmed-Oraby | 0a5321d | src/app/admin/promotion/all-promotion/promotion-model.ts | TypeScript | www.github.com/Marawanelhaggar1/Ahmed-Oraby/tree/main/src/app/admin/promotion/all-promotion/promotion-model.ts | https://raw.githubusercontent.com/Marawanelhaggar1/Ahmed-Oraby/0a5321d/src/app/admin/promotion/all-promotion/promotion-model.ts | Marawanelhaggar1/Ahmed-Oraby 0a5321d src/app/admin/promotion/all-promotion/promotion-model.ts | true | 200 | 681 | export class PromotionModel {
id: number;
image1: string;
image2: string;
title: string;
titleAr: string;
description: string;
descriptionAr: string;
constructor(promotion: PromotionModel) {
this.id = promotion.id || this.getRandomID();
this.title = promotion.title || '';
this.titleAr = pro... | 3 |
dyaksa/typescript-boilerplate-dyaksa | 7329c6a | src/libraries/sterole.ts | TypeScript | www.github.com/dyaksa/typescript-boilerplate-dyaksa/tree/main/src/libraries/sterole.ts | https://raw.githubusercontent.com/dyaksa/typescript-boilerplate-dyaksa/7329c6a/src/libraries/sterole.ts | dyaksa/typescript-boilerplate-dyaksa 7329c6a src/libraries/sterole.ts | true | 200 | 2,195 | import fs from 'fs';
import Path from 'path';
import Util from 'util';
import mime from 'mime';
const dir = './tmp';
const ReadFile = Util.promisify(fs.readFile);
const Minio = require('minio');
export class StoreIo {
async upload(file: any, path: string, filename: string) {
if (!fs.existsSync(dir)) {
fs.m... | 6 |
solidity-judge/backend | e9a1125 | src/api/problems/problems.controller.ts | TypeScript | www.github.com/solidity-judge/backend/tree/main/src/api/problems/problems.controller.ts | https://raw.githubusercontent.com/solidity-judge/backend/e9a1125/src/api/problems/problems.controller.ts | solidity-judge/backend e9a1125 src/api/problems/problems.controller.ts | true | 200 | 3,178 | import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
Query,
ParseIntPipe,
DefaultValuePipe,
ParseBoolPipe,
} from '@nestjs/common';
import { ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger';
import { ProblemsService } from './problems.service';
import { UpdatePr... | 5 |
supaglue-labs/supaglue | 6620ccc | scripts/validate_and_bundle_openapi.ts | TypeScript | www.github.com/supaglue-labs/supaglue/tree/main/scripts/validate_and_bundle_openapi.ts | https://raw.githubusercontent.com/supaglue-labs/supaglue/6620ccc/scripts/validate_and_bundle_openapi.ts | supaglue-labs/supaglue 6620ccc scripts/validate_and_bundle_openapi.ts | true | 200 | 952 | import fs from 'fs';
import OASNormalize from 'oas-normalize';
import path from 'path';
// get the path to the openapi spec from the command line
const openapiPath = process.argv[2];
const outputPath = process.argv[3];
// save the current working directory
const cwd = process.cwd();
// set current working directory ... | 1 |
Santi72Alc/tornillos | 57ce6d7 | src/app/components/listado-page/dialogo-confirmacion/dialogo-confirmacion.component.ts | TypeScript | www.github.com/Santi72Alc/tornillos/tree/main/src/app/components/listado-page/dialogo-confirmacion/dialogo-confirmacion.component.ts | https://raw.githubusercontent.com/Santi72Alc/tornillos/57ce6d7/src/app/components/listado-page/dialogo-confirmacion/dialogo-confirmacion.component.ts | Santi72Alc/tornillos 57ce6d7 src/app/components/listado-page/dialogo-confirmacion/dialogo-confirmacion.component.ts | true | 200 | 637 | import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'app-dialogo-confirmacion',
templateUrl: './dialogo-confirmacion.component.html',
styleUrls: ['./dialogo-confirmacion.component.css'],
})
export class Dialog... | 6 |
ElianCordoba/better-diff | 6224783 | src/open_close_verifier.ts | TypeScript | www.github.com/ElianCordoba/better-diff/tree/main/src/open_close_verifier.ts | https://raw.githubusercontent.com/ElianCordoba/better-diff/6224783/src/open_close_verifier.ts | ElianCordoba/better-diff 6224783 src/open_close_verifier.ts | true | 200 | 5,623 | import { Node } from "./data_structures/node";
import { Iterator } from "./core/iterator";
import { assert, getPrettyKind } from "./debug";
import { DiffType, TypeMasks } from "./types";
import { Diff } from "./data_structures/diff";
import { _context } from ".";
import { ClosingNodeGroup, getClosingNodeGroup, getOppos... | 3 |
scwood/rogue-like | d93ed0a | src/index.ts | TypeScript | www.github.com/scwood/rogue-like/tree/main/src/index.ts | https://raw.githubusercontent.com/scwood/rogue-like/d93ed0a/src/index.ts | scwood/rogue-like d93ed0a src/index.ts | true | 200 | 421 | import Phaser from "phaser";
import { Preloader } from "./scenes/Preloader";
import { Game } from "./scenes/Game";
const game = new Phaser.Game({
type: Phaser.AUTO,
width: 640,
height: 360,
zoom: 2,
scale: {
autoCenter: Phaser.Scale.CENTER_BOTH,
},
pixelArt: true,
roundPixels: false,
scene: [Pre... | 5 |
ddhuissier/angular-starter | a72e250 | src/app/components/home/home.component.ts | TypeScript | www.github.com/ddhuissier/angular-starter/tree/main/src/app/components/home/home.component.ts | https://raw.githubusercontent.com/ddhuissier/angular-starter/a72e250/src/app/components/home/home.component.ts | ddhuissier/angular-starter a72e250 src/app/components/home/home.component.ts | true | 200 | 643 | import { Component } from '@angular/core';
import { NavbarComponent } from '../navbar/navbar.component';
import { LoginComponent } from '../login/login.component';
import { FooterComponent } from '../footer/footer.component';
import { CommonModule } from '@angular/common';
import { PostComponent } from '../post/post.co... | 1 |
akshatsri47/paceit | 569fd0a | src/app/hooks/useCart.ts | TypeScript | www.github.com/akshatsri47/paceit/tree/main/src/app/hooks/useCart.ts | https://raw.githubusercontent.com/akshatsri47/paceit/569fd0a/src/app/hooks/useCart.ts | akshatsri47/paceit 569fd0a src/app/hooks/useCart.ts | true | 200 | 3,533 | import { useEffect, useState, useRef, useCallback } from "react";
import api from "../utils/api";
export interface CartItem {
productId: string; // ID of the product in the cart
quantity: number; // Number of items added
price: number; // Price at the time of adding
name: string;
image: string[]| stri... | 7 |
dolthub/dolthub-cypress | 47fc809 | cypress/e2e/dolthub/publicPaths/render/diffs/coronaOneSelectedCommit.spec.ts | TypeScript | www.github.com/dolthub/dolthub-cypress/tree/main/cypress/e2e/dolthub/publicPaths/render/diffs/coronaOneSelectedCommit.spec.ts | https://raw.githubusercontent.com/dolthub/dolthub-cypress/47fc809/cypress/e2e/dolthub/publicPaths/render/diffs/coronaOneSelectedCommit.spec.ts | dolthub/dolthub-cypress 47fc809 cypress/e2e/dolthub/publicPaths/render/diffs/coronaOneSelectedCommit.spec.ts | true | 200 | 1,923 | import { diffsWithCommitTests } from "@sharedTests/diffs";
import { macbook15ForAppLayout } from "@utils/devices";
import {
newExpectation,
newExpectationWithScrollIntoView,
newShouldArgs,
} from "@utils/helpers";
import { runTestsForDevices } from "@utils/index";
const pageName = "Diff page with one selected co... | 6 |
wilden5/wilden5-ANGULAR2023Q4 | f766bd2 | connections-app/src/app/group/state/group.reducer.ts | TypeScript | www.github.com/wilden5/wilden5-ANGULAR2023Q4/tree/main/connections-app/src/app/group/state/group.reducer.ts | https://raw.githubusercontent.com/wilden5/wilden5-ANGULAR2023Q4/f766bd2/connections-app/src/app/group/state/group.reducer.ts | wilden5/wilden5-ANGULAR2023Q4 f766bd2 connections-app/src/app/group/state/group.reducer.ts | true | 200 | 1,112 | import { createReducer, on } from '@ngrx/store';
import { IGroupItemTransformed } from '../model/group.model';
import {
createGroupSuccess,
deleteGroupSuccess,
loadGroupListHttpSuccess,
loadGroupListStore,
} from './group.actions';
export interface GroupState {
groupList: IGroupItemTransformed[];
}
export c... | 3 |
danzin/image-app | a19bc15 | backend/src/services/image.service.ts | TypeScript | www.github.com/danzin/image-app/tree/main/backend/src/services/image.service.ts | https://raw.githubusercontent.com/danzin/image-app/a19bc15/backend/src/services/image.service.ts | danzin/image-app a19bc15 backend/src/services/image.service.ts | true | 200 | 7,063 | import { ImageRepository } from '../repositories/image.repository';
import { UserRepository } from '../repositories/user.repository';
import { createError } from '../utils/errors';
import { IImage, IImageStorageService, ITag, PaginationResult } from '../types';
import { errorLogger } from '../utils/winston';
import { T... | 5 |
thifacco/swui-angular | fd1ee02 | src/app/features/home/home.module.ts | TypeScript | www.github.com/thifacco/swui-angular/tree/main/src/app/features/home/home.module.ts | https://raw.githubusercontent.com/thifacco/swui-angular/fd1ee02/src/app/features/home/home.module.ts | thifacco/swui-angular fd1ee02 src/app/features/home/home.module.ts | true | 200 | 826 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HomeRoutingModule } from './home-routing.module';
import { HomeComponent } from './home.component';
import { SharedModule } from '../shared/shared.module';
import { MatInputModule } from '@angular/material/input';
import... | 1 |
Thuong-22/FORDNCE_BE | 7ef76fc | src/modules/auth/auth.module.ts | TypeScript | www.github.com/Thuong-22/FORDNCE_BE/tree/main/src/modules/auth/auth.module.ts | https://raw.githubusercontent.com/Thuong-22/FORDNCE_BE/7ef76fc/src/modules/auth/auth.module.ts | Thuong-22/FORDNCE_BE 7ef76fc src/modules/auth/auth.module.ts | true | 200 | 1,061 | import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { InstructorModule } from '../instructor/instructor.module';
import { StudentModule } from '../student/student.module'... | 4 |
Zackitty/DigiDex | 83f2876 | src/app/modules/digimon/shared/services/digimon.service.ts | TypeScript | www.github.com/Zackitty/DigiDex/tree/main/src/app/modules/digimon/shared/services/digimon.service.ts | https://raw.githubusercontent.com/Zackitty/DigiDex/83f2876/src/app/modules/digimon/shared/services/digimon.service.ts | Zackitty/DigiDex 83f2876 src/app/modules/digimon/shared/services/digimon.service.ts | true | 200 | 2,008 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { catchError, map, tap } from 'rxjs/operators';
import { SearchService } from '../../../root/shared/services/search.service';
import { Digimon } from '../models/digim... | 7 |
seokju-na/webview-bundle | ea00100 | packages/electron/src/URI.ts | TypeScript | www.github.com/seokju-na/webview-bundle/tree/main/packages/electron/src/URI.ts | https://raw.githubusercontent.com/seokju-na/webview-bundle/ea00100/packages/electron/src/URI.ts | seokju-na/webview-bundle ea00100 packages/electron/src/URI.ts | true | 200 | 2,087 | export class URI {
readonly scheme: string;
readonly protocol: string;
userinfo: string;
host: string;
port: string;
path: string;
query: string;
fragment: string;
parse(uri: string): URI | null {
try {
return new URI(uri);
} catch {
return null;
}
}
constructor(uri: stri... | 3 |
PavelG1307/urlShortenerV2 | 3c9ed01 | server/src/decorators/is-date-in-future.decorator.ts | TypeScript | www.github.com/PavelG1307/urlShortenerV2/tree/main/server/src/decorators/is-date-in-future.decorator.ts | https://raw.githubusercontent.com/PavelG1307/urlShortenerV2/3c9ed01/server/src/decorators/is-date-in-future.decorator.ts | PavelG1307/urlShortenerV2 3c9ed01 server/src/decorators/is-date-in-future.decorator.ts | true | 200 | 767 | import {
registerDecorator,
ValidationOptions,
ValidationArguments,
} from 'class-validator';
export function IsDateInFuture(validationOptions?: ValidationOptions) {
return function (object: object, propertyName: string) {
registerDecorator({
name: 'IsDateInFuture',
target: object.constructor,
... | 6 |
samudsan/typescript-practice | 48a8f38 | src/3_oops/polymorphism/run_time/index.ts | TypeScript | www.github.com/samudsan/typescript-practice/tree/main/src/3_oops/polymorphism/run_time/index.ts | https://raw.githubusercontent.com/samudsan/typescript-practice/48a8f38/src/3_oops/polymorphism/run_time/index.ts | samudsan/typescript-practice 48a8f38 src/3_oops/polymorphism/run_time/index.ts | true | 200 | 260 | import {Animal} from './Animal';
import { Dog } from './Dog';
import { Bird } from './Bird'
const animals: Animal[] = [new Dog("Buddy"), new Bird("Tweety")];
animals.forEach((animal) => {
animal.makeSound();
});
// Output:
// Woof! Woof!
// Chirp! Chirp! | 5 |
thaops/MusicNest | 14d2aab | src/slices/ItemHomNaySlices.ts | TypeScript | www.github.com/thaops/MusicNest/tree/main/src/slices/ItemHomNaySlices.ts | https://raw.githubusercontent.com/thaops/MusicNest/14d2aab/src/slices/ItemHomNaySlices.ts | thaops/MusicNest 14d2aab src/slices/ItemHomNaySlices.ts | true | 200 | 1,199 | import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
import axios from 'axios';
import { API } from '../../API';
interface ItemState {
data: any[];
loading: boolean;
error: string | null;
}
const initialState: ItemState = {
data: [],
loading: false,
error: null,
};
// Thunk để gọi API
export... | 2 |
ss-2000-dev/RareCHECK_suzuki | 039b1d3 | frontend/src/services/convertFunctions.ts | TypeScript | www.github.com/ss-2000-dev/RareCHECK_suzuki/tree/main/frontend/src/services/convertFunctions.ts | https://raw.githubusercontent.com/ss-2000-dev/RareCHECK_suzuki/039b1d3/frontend/src/services/convertFunctions.ts | ss-2000-dev/RareCHECK_suzuki 039b1d3 frontend/src/services/convertFunctions.ts | true | 200 | 647 | // ステップを範囲表記から始まりと終わりのステップのみに変換する関数
export const convertStepRangeToList = (stepRange: string): [number, number] => {
const [start, end] = stepRange.split("-").map(Number);
return [start, end]; // 配列として開始と終了の数値を返す
};
// 難易度を数字に変換する関数
export const convertDifficultyToNumber = (difficulty: string): number => {
switc... | 4 |
ZlatanCN/my-react | f204228 | packages/react-dom/src/SyntheticEvent.ts | TypeScript | www.github.com/ZlatanCN/my-react/tree/main/packages/react-dom/src/SyntheticEvent.ts | https://raw.githubusercontent.com/ZlatanCN/my-react/f204228/packages/react-dom/src/SyntheticEvent.ts | ZlatanCN/my-react f204228 packages/react-dom/src/SyntheticEvent.ts | true | 200 | 8,591 | import { Props } from 'shared/ReactTypes';
import { Container } from 'hostConfig';
import {
unstable_ImmediatePriority as ImmediatePriority,
unstable_NormalPriority as NormalPriority,
unstable_runWithPriority as runWithPriority,
unstable_UserBlockingPriority as UserBlockingPriority
} from 'scheduler';
/**
* 用于在 D... | 0 |
oguzcihan/cataasdemo-app | 0f9b6e8 | cat-frontend/src/app/services/keycloak/keycloak.service.ts | TypeScript | www.github.com/oguzcihan/cataasdemo-app/tree/main/cat-frontend/src/app/services/keycloak/keycloak.service.ts | https://raw.githubusercontent.com/oguzcihan/cataasdemo-app/0f9b6e8/cat-frontend/src/app/services/keycloak/keycloak.service.ts | oguzcihan/cataasdemo-app 0f9b6e8 cat-frontend/src/app/services/keycloak/keycloak.service.ts | true | 200 | 1,062 | import {Injectable} from '@angular/core';
import Keycloak from "keycloak-js";
import {UserProfile} from "./user-profile";
@Injectable({
providedIn: 'root'
})
export class KeycloakService {
private _keycloak: Keycloak | undefined;
private _profile: UserProfile | undefined;
get keycloak() {
if (!this._key... | 7 |
mohamedshalaby95/javascript-simple-online-exam | 9f1cf46 | server-side/src/index.ts | TypeScript | www.github.com/mohamedshalaby95/javascript-simple-online-exam/tree/main/server-side/src/index.ts | https://raw.githubusercontent.com/mohamedshalaby95/javascript-simple-online-exam/9f1cf46/server-side/src/index.ts | mohamedshalaby95/javascript-simple-online-exam 9f1cf46 server-side/src/index.ts | true | 200 | 507 | import express from "express";
const cors = require("cors");
import routes from "./routes";
// install the express to make server
const app = express();
app.use(express.json());
app.use(cors());
app.get("/api", (req, res) => {
res.send({ message: "Welcome to server!" });
});
//use middleware to all routes
app.use(r... | 3 |
riyazulphikeraliev/Hospital-Management-System | 934df7b | Frontend(Angular)/src/app/feature/secure/wards/wards.module.ts | TypeScript | www.github.com/riyazulphikeraliev/Hospital-Management-System/tree/main/Frontend(Angular)/src/app/feature/secure/wards/wards.module.ts | https://raw.githubusercontent.com/riyazulphikeraliev/Hospital-Management-System/934df7b/Frontend%28Angular%29/src/app/feature/secure/wards/wards.module.ts | riyazulphikeraliev/Hospital-Management-System 934df7b Frontend(Angular)/src/app/feature/secure/wards/wards.module.ts | true | 200 | 697 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { WardsRoutingModule } from './wards-routing.module';
import { GetWardsComponent } from './container/get-wards/get-wards.component';
import { AddWardComponent } from './container/add-ward/add-ward.component';
import { Upda... | 6 |
NataliiaBoiko22/system-management | d74d335 | src/app/main/components/board-box/board-box.component.ts | TypeScript | www.github.com/NataliiaBoiko22/system-management/tree/main/src/app/main/components/board-box/board-box.component.ts | https://raw.githubusercontent.com/NataliiaBoiko22/system-management/d74d335/src/app/main/components/board-box/board-box.component.ts | NataliiaBoiko22/system-management d74d335 src/app/main/components/board-box/board-box.component.ts | true | 200 | 1,552 | import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { Board } from 'src/app/core/types/board.types';
import { BoardsService } from 'src/app/shared/services/boards.service';
import { HttpService } from 'src/app/core/services/http.service';
import { MatDialogComponent } from... | 1 |
Martinayousry/backend | b4a27e4 | interfaces/orders.ts | TypeScript | www.github.com/Martinayousry/backend/tree/main/interfaces/orders.ts | https://raw.githubusercontent.com/Martinayousry/backend/b4a27e4/interfaces/orders.ts | Martinayousry/backend b4a27e4 interfaces/orders.ts | true | 200 | 419 | import { Document } from "mongoose";
import { CartProducts } from "./carts";
import { IUsers } from "./users";
type Payment = 'cash' | 'card'
export interface Orders extends Document {
cartItems: CartProducts;
totalPrice: number;
paymentMethod: Payment;
deliveredAt: Date | number;
isDelivered: boolean;
p... | 5 |
Aiilu/TP_SalaDeJuegos | 04b819b | src/app/Modules/m-juegos/m-juegos-routing.module.ts | TypeScript | www.github.com/Aiilu/TP_SalaDeJuegos/tree/main/src/app/Modules/m-juegos/m-juegos-routing.module.ts | https://raw.githubusercontent.com/Aiilu/TP_SalaDeJuegos/04b819b/src/app/Modules/m-juegos/m-juegos-routing.module.ts | Aiilu/TP_SalaDeJuegos 04b819b src/app/Modules/m-juegos/m-juegos-routing.module.ts | true | 200 | 977 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { JuegosComponent } from './juegos/juegos.component';
import { NotFoundJuegoComponent } from './not-found-juego/not-found-juego.component';
const routes: Routes = [
{path:'', component:JuegosComponent, children:
... | 2 |
kunj77/NodeChat | 614aad8 | messenger-app/src/hooks/useSignup.ts | TypeScript | www.github.com/kunj77/NodeChat/tree/main/messenger-app/src/hooks/useSignup.ts | https://raw.githubusercontent.com/kunj77/NodeChat/614aad8/messenger-app/src/hooks/useSignup.ts | kunj77/NodeChat 614aad8 messenger-app/src/hooks/useSignup.ts | true | 200 | 1,238 | import { create } from "zustand";
import authService from "../services/auth";
import { AxiosError } from "axios";
import CryptoJS from "crypto-js";
import { getErrorMessage } from "../helpers/error";
interface SignupState {
loading: boolean;
error: string | null;
success: boolean;
signup: (
fullName: strin... | 4 |
oasisMystre/tak-finance-bot | 9fd4458 | src/commands/newFunction.ts | TypeScript | www.github.com/oasisMystre/tak-finance-bot/tree/main/src/commands/newFunction.ts | https://raw.githubusercontent.com/oasisMystre/tak-finance-bot/9fd4458/src/commands/newFunction.ts | oasisMystre/tak-finance-bot 9fd4458 src/commands/newFunction.ts | true | 200 | 345 | import { Telegraf } from "telegraf";
import { readFileSync } from "../lib/utils";
import { NEW_FUNCTION_COMMAND } from "../constants";
export default function newFunctionCommand(bot: Telegraf) {
bot.hears(NEW_FUNCTION_COMMAND, async (ctx) => {
await ctx.replyWithMarkdownV2(
readFileSync("./src/md/new-func... | 7 |
alsoknownaszac/portfolio-next | 40f3d2c | components/constants/projects.ts | TypeScript | www.github.com/alsoknownaszac/portfolio-next/tree/main/components/constants/projects.ts | https://raw.githubusercontent.com/alsoknownaszac/portfolio-next/40f3d2c/components/constants/projects.ts | alsoknownaszac/portfolio-next 40f3d2c components/constants/projects.ts | true | 200 | 570 | export const projects = [
{
name: "Spreentar",
industryType: "Logistics",
mainStack: "React JS",
link: "https://www.spreentar.com",
monthBuilt: "Jan.",
yearBuilt: "2022",
},
{
name: "Gadolin",
industryType: "Clinical Reasearch",
mainStack: "React JS",
link: "https://www.gad... | 3 |
pcs9898/nestjs-advanced | e3a820c | src/common/interceptor/sentry.interceptor.ts | TypeScript | www.github.com/pcs9898/nestjs-advanced/tree/main/src/common/interceptor/sentry.interceptor.ts | https://raw.githubusercontent.com/pcs9898/nestjs-advanced/e3a820c/src/common/interceptor/sentry.interceptor.ts | pcs9898/nestjs-advanced e3a820c src/common/interceptor/sentry.interceptor.ts | true | 200 | 1,397 | import {
CallHandler,
ExecutionContext,
Injectable,
NestInterceptor,
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import * as Sentry from '@sentry/node';
import { IncomingWebhook } from '@slack/webhook';
import { Request as ExpressRequest } from 'express';
import { catchError } from ... | 1 |
israfil-hossain/SpaceRental-Backend | 4412900 | src/utility/validator/is-not-equal-to.validator.ts | TypeScript | www.github.com/israfil-hossain/SpaceRental-Backend/tree/main/src/utility/validator/is-not-equal-to.validator.ts | https://raw.githubusercontent.com/israfil-hossain/SpaceRental-Backend/4412900/src/utility/validator/is-not-equal-to.validator.ts | israfil-hossain/SpaceRental-Backend 4412900 src/utility/validator/is-not-equal-to.validator.ts | true | 200 | 667 | import {
ValidationArguments,
ValidationOptions,
registerDecorator,
} from "class-validator";
export function IsNotEqualTo(
property: string,
validationOptions?: ValidationOptions,
) {
return function (object: object, propertyName: string) {
registerDecorator({
name: "isNotEqualTo",
target:... | 6 |
JRPATEL47/SPOTIFY-MUSIC-APP | cc14128 | src/app/app.component.ts | TypeScript | www.github.com/JRPATEL47/SPOTIFY-MUSIC-APP/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/JRPATEL47/SPOTIFY-MUSIC-APP/cc14128/src/app/app.component.ts | JRPATEL47/SPOTIFY-MUSIC-APP cc14128 src/app/app.component.ts | true | 200 | 1,304 | /*
* Angular App (Deployed) Link: ____https://spotify-music-app-ruby.vercel.app/login__________
* User API (Heroku) Link: __________https://cryptic-beach-00828.herokuapp.com/______________
*/
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router, Event, NavigationStart } from '@angular/router'... | 5 |
dvreed77/generative | abd920d | rapid-sketches/sketches/massart/index.1.penplot.ts | TypeScript | www.github.com/dvreed77/generative/tree/main/rapid-sketches/sketches/massart/index.1.penplot.ts | https://raw.githubusercontent.com/dvreed77/generative/abd920d/rapid-sketches/sketches/massart/index.1.penplot.ts | dvreed77/generative abd920d rapid-sketches/sketches/massart/index.1.penplot.ts | true | 200 | 3,457 | import { canvasSketch, ISettings } from "rapid-sketch";
import exquisiteConsequencesData from "./exquisiteConsequencesData.json";
import { drawPath } from "../../utils/drawPath";
import { drawPt } from "../../utils/drawPt";
import { pointPointSquaredDistance } from "../../utils/distances/pointPointSquaredDistance";
imp... | 0 |
meSayantika/tha_custom | 94e5c29 | src/app/Pages/Main/admin/flip_book_create/flip_book_create.component.ts | TypeScript | www.github.com/meSayantika/tha_custom/tree/main/src/app/Pages/Main/admin/flip_book_create/flip_book_create.component.ts | https://raw.githubusercontent.com/meSayantika/tha_custom/94e5c29/src/app/Pages/Main/admin/flip_book_create/flip_book_create.component.ts | meSayantika/tha_custom 94e5c29 src/app/Pages/Main/admin/flip_book_create/flip_book_create.component.ts | true | 200 | 6,541 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { DataService } from 'src/app/Services/data.service';
import { MessageService } from 'src/app/Services/message.service';
import { environment } from 'src/environments/environment';
@Component({
selector... | 4 |
workandplayhard/ant-mobile | 6f5e2be | src/theme/utils.ts | TypeScript | www.github.com/workandplayhard/ant-mobile/tree/main/src/theme/utils.ts | https://raw.githubusercontent.com/workandplayhard/ant-mobile/6f5e2be/src/theme/utils.ts | workandplayhard/ant-mobile 6f5e2be src/theme/utils.ts | true | 200 | 1,801 | import { Dimensions, PixelRatio, Platform } from 'react-native'
import { IFont } from '@/types'
import { FONT_MAP } from './fonts'
const { height: SCREEN_HEIGHT, width: SCREEN_WIDTH } = Dimensions.get('window')
const guidelineBaseWidth = 390 // Screen width that is used in Figma
const guidelineBaseHeight = 844 // Sc... | 2 |
ebubekirmangal/HotelReservationSystem-Front | 58992ab | src/app/routh/login-page/login-page.component.ts | TypeScript | www.github.com/ebubekirmangal/HotelReservationSystem-Front/tree/main/src/app/routh/login-page/login-page.component.ts | https://raw.githubusercontent.com/ebubekirmangal/HotelReservationSystem-Front/58992ab/src/app/routh/login-page/login-page.component.ts | ebubekirmangal/HotelReservationSystem-Front 58992ab src/app/routh/login-page/login-page.component.ts | true | 200 | 2,248 | import { CommonModule, isPlatformBrowser } from '@angular/common';
import { ChangeDetectionStrategy, Component, Inject, OnDestroy, OnInit, PLATFORM_ID, Renderer2 } from '@angular/core';
import { BasicLayoutComponent } from "../../layout/basic-layout/basic-layout.component";
import { FontAwesomeModule } from '@fortaweso... | 7 |
mostofa62/careconnect-app | 575da38 | app/admin/marketer/cu/DataValidationSchema.ts | TypeScript | www.github.com/mostofa62/careconnect-app/tree/main/app/admin/marketer/cu/DataValidationSchema.ts | https://raw.githubusercontent.com/mostofa62/careconnect-app/575da38/app/admin/marketer/cu/DataValidationSchema.ts | mostofa62/careconnect-app 575da38 app/admin/marketer/cu/DataValidationSchema.ts | true | 200 | 2,509 | import { object, array, string, number, StringSchema } from "yup";
export const DataSchema = {
name:'',
address:'',
phoneNumber:'',
email:'',
type:{'label':'','value':''},
contract_type:{'label':'','value':''},
contract_doc_id:''
};
export const DataLabel = {
name:'Name',
addre... | 3 |
SamClarkeSC/ClarkoJewels | fda77df | integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts | TypeScript | www.github.com/SamClarkeSC/ClarkoJewels/tree/main/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts | https://raw.githubusercontent.com/SamClarkeSC/ClarkoJewels/fda77df/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts | SamClarkeSC/ClarkoJewels fda77df integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts | true | 200 | 4,190 | import { ICustomerModuleService } from "@medusajs/types"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import { createAdminUser } from "../../../../helpers/create-admin-user"
jest.setTimeout(50000)
const env = { MEDUSA_FF_MEDUSA_V2: true }
const adminHead... | 6 |
heyuchang/miniGame04_gecao | 0bc06ab | assets/scripts/game/compoment/item/prop/Prop101.ts | TypeScript | www.github.com/heyuchang/miniGame04_gecao/tree/main/assets/scripts/game/compoment/item/prop/Prop101.ts | https://raw.githubusercontent.com/heyuchang/miniGame04_gecao/0bc06ab/assets/scripts/game/compoment/item/prop/Prop101.ts | heyuchang/miniGame04_gecao 0bc06ab assets/scripts/game/compoment/item/prop/Prop101.ts | true | 200 | 1,029 | import { Component, _decorator } from 'cc';
import { myLog } from '../../../../common/myLog';
import { utilTools } from '../../../../utils/utilTools';
import { constants } from '../../../data/constants';
import { designManager } from '../../../manager/designManager';
import { Prop } from './Prop';
const { ccclass, prop... | 0 |
fgutoehrlein/SecretsShareWebApp | a423351 | SecretsShareFrontend/src/app/services/secret.service.ts | TypeScript | www.github.com/fgutoehrlein/SecretsShareWebApp/tree/main/SecretsShareFrontend/src/app/services/secret.service.ts | https://raw.githubusercontent.com/fgutoehrlein/SecretsShareWebApp/a423351/SecretsShareFrontend/src/app/services/secret.service.ts | fgutoehrlein/SecretsShareWebApp a423351 SecretsShareFrontend/src/app/services/secret.service.ts | true | 200 | 1,671 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError, retry } from 'rxjs/operators';
import { SecretDataModel } from '../models/secret-data-model';
@Injectable({
providedIn: 'root'
})
export clas... | 5 |
VallRax/CAPSTONE.PROYECTO.2024 | 388a790 | src/app/app.module.ts | TypeScript | www.github.com/VallRax/CAPSTONE.PROYECTO.2024/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/VallRax/CAPSTONE.PROYECTO.2024/388a790/src/app/app.module.ts | VallRax/CAPSTONE.PROYECTO.2024 388a790 src/app/app.module.ts | true | 200 | 881 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.m... | 1 |
Lashian/Proyectos-Curso-Angular | 1b421aa | Seccion 3 - TypeScript/src/ejercicios/05-desestructuracion-basica.ts | TypeScript | www.github.com/Lashian/Proyectos-Curso-Angular/tree/main/Seccion 3 - TypeScript/src/ejercicios/05-desestructuracion-basica.ts | https://raw.githubusercontent.com/Lashian/Proyectos-Curso-Angular/1b421aa/Seccion%203%20-%20TypeScript/src/ejercicios/05-desestructuracion-basica.ts | Lashian/Proyectos-Curso-Angular 1b421aa Seccion 3 - TypeScript/src/ejercicios/05-desestructuracion-basica.ts | true | 200 | 1,113 | /*
===== Código de TypeScript =====
*/
interface Reproductor{
volumen: number;
segundo: number;
cancion: string;
detalles: detalles;
}
interface detalles{
autor: string;
ano: number;
}
const reproductor: Reproductor={
volumen: 10,
segundo: 56,
cancion: 'Better of Alone',
d... | 4 |
garavano52/curso-angular-inicial-udemy | 4255a13 | 09-heroesApp/src/app/pages/heroes/heroes.component.ts | TypeScript | www.github.com/garavano52/curso-angular-inicial-udemy/tree/main/09-heroesApp/src/app/pages/heroes/heroes.component.ts | https://raw.githubusercontent.com/garavano52/curso-angular-inicial-udemy/4255a13/09-heroesApp/src/app/pages/heroes/heroes.component.ts | garavano52/curso-angular-inicial-udemy 4255a13 09-heroesApp/src/app/pages/heroes/heroes.component.ts | true | 200 | 1,191 | import { Component, OnInit } from '@angular/core';
import { HeroesService } from '../../services/heroes.service';
import { HeroeModel } from '../../models/heroe.model';
import Swal from 'sweetalert2';
@Component({
selector: 'app-heroes',
templateUrl: './heroes.component.html',
styleUrls: ['./heroes.component.css... | 2 |
jeremias4/tp-dsw-backend | 260e193 | src/app.ts | TypeScript | www.github.com/jeremias4/tp-dsw-backend/tree/main/src/app.ts | https://raw.githubusercontent.com/jeremias4/tp-dsw-backend/260e193/src/app.ts | jeremias4/tp-dsw-backend 260e193 src/app.ts | true | 200 | 2,707 | import express, { NextFunction, Request, Response } from 'express';
import { User } from './user.entity.js';
const app = express();
app.use(express.json());
// user -> /api/users
//post -> /api/users
//delete-put-patch /api/users/:id
const users = [new User('0', 'Jeremias', 'Creador', [], [])];
function sanitizeUs... | 7 |
YnotnaUK/deno-packages | dc01e47 | packages/twitch/token_generator.ts | TypeScript | www.github.com/YnotnaUK/deno-packages/tree/main/packages/twitch/token_generator.ts | https://raw.githubusercontent.com/YnotnaUK/deno-packages/dc01e47/packages/twitch/token_generator.ts | YnotnaUK/deno-packages dc01e47 packages/twitch/token_generator.ts | true | 200 | 2,768 | import { TwitchAPIClient } from "./api_client.ts"
import { validScopes } from "./valid_scopes.ts"
export type TwitchTokenGeneratorConfig = {
httpServerHostname: string
httpServerPort: number
twitchClientId: string
twitchClientSecret: string
twitchRedirectUri: string
}
export class TwitchTokenGenerator {
p... | 3 |
lenodeoliveira/nestjs-study-project | a4a11a0 | src/shared/utils/test-utils/TypeORMSQLITETestingModule.ts | TypeScript | www.github.com/lenodeoliveira/nestjs-study-project/tree/main/src/shared/utils/test-utils/TypeORMSQLITETestingModule.ts | https://raw.githubusercontent.com/lenodeoliveira/nestjs-study-project/a4a11a0/src/shared/utils/test-utils/TypeORMSQLITETestingModule.ts | lenodeoliveira/nestjs-study-project a4a11a0 src/shared/utils/test-utils/TypeORMSQLITETestingModule.ts | true | 200 | 471 | import { TypeOrmModule } from '@nestjs/typeorm';
import * as path from 'path';
export const TypeOrmSQLITETestingModule = () => [
TypeOrmModule.forRoot({
type: 'sqlite',
database: ':memory:',
dropSchema: true,
entities: [
path.resolve(
__dirname,
'..',
'..',
'..',... | 6 |
damienteo/learning-smart-contracts | 13c424a | tests/Defi/UniswapV3SimpleSwap.ts | TypeScript | www.github.com/damienteo/learning-smart-contracts/tree/main/tests/Defi/UniswapV3SimpleSwap.ts | https://raw.githubusercontent.com/damienteo/learning-smart-contracts/13c424a/tests/Defi/UniswapV3SimpleSwap.ts | damienteo/learning-smart-contracts 13c424a tests/Defi/UniswapV3SimpleSwap.ts | true | 200 | 2,315 | // hh node --fork [RPC URL]
// hh test tests/Defi/UniswapV3UniswapV3SimpleSwap.ts --network localhost
import { expect } from "chai";
import { ethers } from "hardhat";
const WETH_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
const DAI_ADDRESS = "0x6B175474E89094C44Da98b954EedeAC495271d0F";
const DAI_DECIMALS... | 5 |
lexkrstn/portfolio | f9c317b | browser/src/rootReducer.ts | TypeScript | www.github.com/lexkrstn/portfolio/tree/main/browser/src/rootReducer.ts | https://raw.githubusercontent.com/lexkrstn/portfolio/f9c317b/browser/src/rootReducer.ts | lexkrstn/portfolio f9c317b browser/src/rootReducer.ts | true | 200 | 579 | import { connectRouter } from 'connected-react-router';
import { History } from 'history';
import { combineReducers } from 'redux';
import about from './pages/About/duck/reducer';
import app from './pages/_App/duck/reducer';
import home from './pages/Home/duck/reducer';
import portfolio from './pages/Portfolio/duck/red... | 1 |
Gregscodehub/TaskApp | be44096 | src/app/components/task-item/task-item.component.ts | TypeScript | www.github.com/Gregscodehub/TaskApp/tree/main/src/app/components/task-item/task-item.component.ts | https://raw.githubusercontent.com/Gregscodehub/TaskApp/be44096/src/app/components/task-item/task-item.component.ts | Gregscodehub/TaskApp be44096 src/app/components/task-item/task-item.component.ts | true | 200 | 2,291 | import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Task } from 'src/task.model';
import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import { TaskService} from 'src/app/services/task.service';
import { NgForm } from '@angular/forms';
import { Router } from '@angular... | 4 |
raish7/canvas | e9b97a6 | src/app/pages/artworks/artworks.component.ts | TypeScript | www.github.com/raish7/canvas/tree/main/src/app/pages/artworks/artworks.component.ts | https://raw.githubusercontent.com/raish7/canvas/e9b97a6/src/app/pages/artworks/artworks.component.ts | raish7/canvas e9b97a6 src/app/pages/artworks/artworks.component.ts | true | 200 | 3,110 | import { Component } from '@angular/core';
import { ArtworksService } from '../../services/artworks/artworks.service';
import { CardSkeletonComponent } from '../../components/skeleton/card-skeleton/card-skeleton.component';
import { FormsModule } from '@angular/forms';
import { UrlQueryService } from '../../utils/url-q... | 2 |
joshbmarshall/cognitocmsapi | 301b2e6 | stores/listPage.ts | TypeScript | www.github.com/joshbmarshall/cognitocmsapi/tree/main/stores/listPage.ts | https://raw.githubusercontent.com/joshbmarshall/cognitocmsapi/301b2e6/stores/listPage.ts | joshbmarshall/cognitocmsapi 301b2e6 stores/listPage.ts | true | 200 | 2,689 | import { acceptHMRUpdate, defineStore } from 'pinia'
import { CognitoUrlParts } from '~cognito/models/Cognito/Page'
import { $axios } from '~cognito/plugins/axios'
import { CognitoListPage } from '~cognito/models/Cognito/ListPage'
export const useListPageStore = defineStore('listPage', {
state: () => {
return {
... | 3 |
sheodox/konshuu | 4df0394 | src/server/controllers/weekly.ts | TypeScript | www.github.com/sheodox/konshuu/tree/main/src/server/controllers/weekly.ts | https://raw.githubusercontent.com/sheodox/konshuu/4df0394/src/server/controllers/weekly.ts | sheodox/konshuu 4df0394 src/server/controllers/weekly.ts | true | 200 | 4,071 | import { CalendarDate } from '../../shared/dates.js';
import { prisma } from '../prisma.js';
import Joi from 'joi';
import type { WeeklyEditable, WeeklyProgressEditable } from '../../shared/types/todos';
const weeklyFields = {
name: Joi.string(),
progress: Joi.number().min(0),
goal: Joi.number().min(0),
},
wee... | 7 |
jemccarthy13/parrotsour | 1e687a3 | src/ai/languageprocessors/movelayer.ts | TypeScript | www.github.com/jemccarthy13/parrotsour/tree/main/src/ai/languageprocessors/movelayer.ts | https://raw.githubusercontent.com/jemccarthy13/parrotsour/1e687a3/src/ai/languageprocessors/movelayer.ts | jemccarthy13/parrotsour 1e687a3 src/ai/languageprocessors/movelayer.ts | true | 200 | 2,898 | /* istanbul ignore file */
import { AircraftGroup } from "../../classes/groups/group"
import { Point } from "../../classes/point"
import { AIProcessor, ProcessResult } from "./nlprocessor"
import { toNATOPhonetic } from "./toNATOphonetic"
/**
* Given some message text, extract a move command that fits
* the move for... | 0 |
claudenes/Positivo | b8f377c | src/InterfaceAPI/ClientApp/src/app/entities/interface-integracao/service/interface-integracao.service.spec.ts | TypeScript | www.github.com/claudenes/Positivo/tree/main/src/InterfaceAPI/ClientApp/src/app/entities/interface-integracao/service/interface-integracao.service.spec.ts | https://raw.githubusercontent.com/claudenes/Positivo/b8f377c/src/InterfaceAPI/ClientApp/src/app/entities/interface-integracao/service/interface-integracao.service.spec.ts | claudenes/Positivo b8f377c src/InterfaceAPI/ClientApp/src/app/entities/interface-integracao/service/interface-integracao.service.spec.ts | true | 200 | 9,012 | import { TestBed } from "@angular/core/testing";
import {
HttpClientTestingModule,
HttpTestingController,
} from "@angular/common/http/testing";
import * as dayjs from "dayjs";
import { DATE_FORMAT } from "app/config/input.constants";
import {
IInterfaceIntegracao,
InterfaceIntegracao,
} from "../interface-int... | 5 |
TibiBejan/Campus_Tudor_Vladimirescu_TS | a275cf1 | client/src/themes/GlobalStyles.ts | TypeScript | www.github.com/TibiBejan/Campus_Tudor_Vladimirescu_TS/tree/main/client/src/themes/GlobalStyles.ts | https://raw.githubusercontent.com/TibiBejan/Campus_Tudor_Vladimirescu_TS/a275cf1/client/src/themes/GlobalStyles.ts | TibiBejan/Campus_Tudor_Vladimirescu_TS a275cf1 client/src/themes/GlobalStyles.ts | true | 200 | 2,931 | import { createGlobalStyle } from 'styled-components';
import { MyThemeProps } from './Theme';
type Props = {
theme: MyThemeProps
}
const GlobalStyles = createGlobalStyle<Props>`
html,
body,
div,
span,
iframe,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
... | 4 |
muneermsheikh/idealR | 86a6b8e | client/src/app/orders/DLForwarded-line/DLForwarded-line.component.ts | TypeScript | www.github.com/muneermsheikh/idealR/tree/main/client/src/app/orders/DLForwarded-line/DLForwarded-line.component.ts | https://raw.githubusercontent.com/muneermsheikh/idealR/86a6b8e/client/src/app/orders/DLForwarded-line/DLForwarded-line.component.ts | muneermsheikh/idealR 86a6b8e client/src/app/orders/DLForwarded-line/DLForwarded-line.component.ts | true | 200 | 1,064 | import { Component, EventEmitter, Input, Output } from '@angular/core';
import { IOrderForwardCategory } from 'src/app/_models/orders/orderForwardCategory';
@Component({
selector: 'app-orderfwd-line',
templateUrl: './DLForwarded-line.component.html',
styleUrls: ['./DLForwarded-line.component.css']
})
export clas... | 2 |
fictionalchrctr/cities-test | 65ff357 | server/src/routes/index.ts | TypeScript | www.github.com/fictionalchrctr/cities-test/tree/main/server/src/routes/index.ts | https://raw.githubusercontent.com/fictionalchrctr/cities-test/65ff357/server/src/routes/index.ts | fictionalchrctr/cities-test 65ff357 server/src/routes/index.ts | true | 200 | 253 | import { Router } from 'express'
const router = Router({ mergeParams: true })
import citiesRoute from './cities.routes'
import listsRoute from './lists.routes'
router.use('/cities', citiesRoute)
router.use('/lists', listsRoute)
export default router
| 1 |
legend402/nest-start | 7cfb651 | src/controllers/Dict/DictItemController/dictItem.service.ts | TypeScript | www.github.com/legend402/nest-start/tree/main/src/controllers/Dict/DictItemController/dictItem.service.ts | https://raw.githubusercontent.com/legend402/nest-start/7cfb651/src/controllers/Dict/DictItemController/dictItem.service.ts | legend402/nest-start 7cfb651 src/controllers/Dict/DictItemController/dictItem.service.ts | true | 200 | 481 | import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { DictItemDto } from 'src/database/entity/dictItem.entity';
import { BaseService } from 'src/service/BaseService';
import { Repository } from 'typeorm';
@Injectable()
export class DictItemService extends BaseService... | 3 |
Tayyam/rehabcoform | faa1d15 | src/types/complaint.ts | TypeScript | www.github.com/Tayyam/rehabcoform/tree/main/src/types/complaint.ts | https://raw.githubusercontent.com/Tayyam/rehabcoform/faa1d15/src/types/complaint.ts | Tayyam/rehabcoform faa1d15 src/types/complaint.ts | true | 200 | 649 | // Add ComplaintType to existing types
export type ComplaintType = 'inquiry' | 'complaint';
export interface Complaint {
id: string;
type: ComplaintType;
title: string;
description: string;
category: ComplaintCategory;
status: ComplaintStatus;
priority: 'low' | 'medium' | 'high';
pilgrimName: string;
... | 7 |
hangyeol0531/slack-status-api | 5728cc9 | test/components/slack-client.spec.ts | TypeScript | www.github.com/hangyeol0531/slack-status-api/tree/main/test/components/slack-client.spec.ts | https://raw.githubusercontent.com/hangyeol0531/slack-status-api/5728cc9/test/components/slack-client.spec.ts | hangyeol0531/slack-status-api 5728cc9 test/components/slack-client.spec.ts | true | 200 | 2,276 | import axios from 'axios';
import noIssueHtml from '../data/noIssue-html.json';
import noIssueResult from '../data/noIssue-result.json';
import messingIncidentHtml from '../data/messaging-incident-html.json';
import messingIncidentResult from '../data/messaging-incident-result.json';
import workflowsIncidentHtml from '... | 6 |
nurulislamrimon/black-friday-affiliate-server | b892947 | router/router.ts | TypeScript | www.github.com/nurulislamrimon/black-friday-affiliate-server/tree/main/router/router.ts | https://raw.githubusercontent.com/nurulislamrimon/black-friday-affiliate-server/b892947/router/router.ts | nurulislamrimon/black-friday-affiliate-server b892947 router/router.ts | true | 200 | 1,474 | import express from "express";
import userRouter from "../modules/user.module/user.router";
import storeRouter from "../modules/store.module/store.router";
import brandRouter from "../modules/brand.module/brand.router";
import categoryRouter from "../modules/category.module/category.router";
import postRouter from "../... | 0 |
Romadona10/fintracker | 4c7840d | src/app/dialogs/savings-form/savings-form.component.ts | TypeScript | www.github.com/Romadona10/fintracker/tree/main/src/app/dialogs/savings-form/savings-form.component.ts | https://raw.githubusercontent.com/Romadona10/fintracker/4c7840d/src/app/dialogs/savings-form/savings-form.component.ts | Romadona10/fintracker 4c7840d src/app/dialogs/savings-form/savings-form.component.ts | true | 200 | 1,193 | import { Component, EventEmitter, Output } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
@Component({
selector: 'app-savings-form',
templateUrl: './savings-form.component.html',
styleUrls: ['./savings-form.component.scss']
})
export class SavingsFormComponent {
// ... | 1 |
h3000plus/Client | 2328ae6 | src/app/features/delivery/components/category-list/category-list.component.ts | TypeScript | www.github.com/h3000plus/Client/tree/main/src/app/features/delivery/components/category-list/category-list.component.ts | https://raw.githubusercontent.com/h3000plus/Client/2328ae6/src/app/features/delivery/components/category-list/category-list.component.ts | h3000plus/Client 2328ae6 src/app/features/delivery/components/category-list/category-list.component.ts | true | 200 | 3,256 | import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Router } from '@angular/router';
import { Category } from '../../../../shared/models/category.model';
import { HttpClient } from '@angular/common/http';
import { DeliveryService } from '../../../../services/delivery.service';
@Compo... | 5 |
cuckooM/blog-ui | 24f3ab8 | src/app/routes/routes.module.ts | TypeScript | www.github.com/cuckooM/blog-ui/tree/main/src/app/routes/routes.module.ts | https://raw.githubusercontent.com/cuckooM/blog-ui/24f3ab8/src/app/routes/routes.module.ts | cuckooM/blog-ui 24f3ab8 src/app/routes/routes.module.ts | true | 200 | 1,103 | import { NgModule, Type } from '@angular/core';
import { SharedModule } from '@shared';
// dashboard pages
import { DashboardComponent } from './dashboard/dashboard.component';
// single pages
import { CallbackComponent } from './passport/callback.component';
import { UserLockComponent } from './passport/lock/lock.com... | 4 |
noshiro-pf/mono | 5bda436 | packages/utils/io-ts/src/record/key-value-record.test.mts | TypeScript | www.github.com/noshiro-pf/mono/tree/main/packages/utils/io-ts/src/record/key-value-record.test.mts | https://raw.githubusercontent.com/noshiro-pf/mono/5bda436/packages/utils/io-ts/src/record/key-value-record.test.mts | noshiro-pf/mono 5bda436 packages/utils/io-ts/src/record/key-value-record.test.mts | true | 200 | 2,291 | import { expectType } from '@noshiro/ts-utils';
import { number, string } from '../primitives/index.mjs';
import { type TypeOf } from '../type.mjs';
import { keyValueRecord } from './key-value-record.mjs';
describe('keyValueRecord', () => {
const strNumRecord = keyValueRecord(string(''), number(0));
type StrNumRe... | 2 |
RohitMajage/resume-build- | 6221ac0 | types/resume.ts | TypeScript | www.github.com/RohitMajage/resume-build-/tree/main/types/resume.ts | https://raw.githubusercontent.com/RohitMajage/resume-build-/6221ac0/types/resume.ts | RohitMajage/resume-build- 6221ac0 types/resume.ts | true | 200 | 583 | export type Resume = {
id: string;
user_id: string;
personalInfo: {
fullName: string;
email: string;
phone: string;
location: string;
};
summary: string;
experience: {
company: string;
position: string;
startDate: string;
endDate: string;
description: string;
}[];
edu... | 3 |
MarioBeilstein/four-royale | 492858f | src/game/GameEngine.ts | TypeScript | www.github.com/MarioBeilstein/four-royale/tree/main/src/game/GameEngine.ts | https://raw.githubusercontent.com/MarioBeilstein/four-royale/492858f/src/game/GameEngine.ts | MarioBeilstein/four-royale 492858f src/game/GameEngine.ts | true | 200 | 11,198 | /**
* src/game/GameEngine.ts
*
* AUSFÜHRLICH KOMMENTIERTE UND VOLL FUNKTIONIERENDE VERSION
* mit Vier-Parameter-Signatur für checkCollisions(...).
*
* - Hier wird das Board initialisiert (createNewGameState),
* Steine platziert (dropStone) und
* Bomben-/RPS-Kollisionen bearbeitet (checkCollisions).
*
* - ... | 7 |
acn-craigmaslowski/graphql-demo | 654858c | libs/graphl-demo-ui/src/lib/components/reaction-icon/hook.ts | TypeScript | www.github.com/acn-craigmaslowski/graphql-demo/tree/main/libs/graphl-demo-ui/src/lib/components/reaction-icon/hook.ts | https://raw.githubusercontent.com/acn-craigmaslowski/graphql-demo/654858c/libs/graphl-demo-ui/src/lib/components/reaction-icon/hook.ts | acn-craigmaslowski/graphql-demo 654858c libs/graphl-demo-ui/src/lib/components/reaction-icon/hook.ts | true | 200 | 945 | import {
BsEmojiAngry,
BsEmojiDizzyFill,
BsFillHandThumbsUpFill,
} from "react-icons/bs";
import {FaHeart, FaRegSadCry} from "react-icons/fa";
import {ReactionType} from "@graphql-demo/graphql-schema";
export type UseReactionIconProps = Parameters<typeof useReactionIcon>[0];
export type UseReactionIconReturn = ... | 6 |
micheunderscore/la-place | ff7d187 | src/redux/gmap/store.ts | TypeScript | www.github.com/micheunderscore/la-place/tree/main/src/redux/gmap/store.ts | https://raw.githubusercontent.com/micheunderscore/la-place/ff7d187/src/redux/gmap/store.ts | micheunderscore/la-place ff7d187 src/redux/gmap/store.ts | true | 200 | 432 | import gmapReducer from "@/features/map/gmapSlice";
import { Action, configureStore, ThunkAction } from "@reduxjs/toolkit";
export const store = configureStore({
reducer: {
search: gmapReducer,
},
});
export type MapDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
e... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.