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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
trungthaihieu93-dev/doxa-test | 4158bb7 | src/services/thread.ts | TypeScript | www.github.com/trungthaihieu93-dev/doxa-test/tree/main/src/services/thread.ts | https://raw.githubusercontent.com/trungthaihieu93-dev/doxa-test/4158bb7/src/services/thread.ts | trungthaihieu93-dev/doxa-test 4158bb7 src/services/thread.ts | true | 200 | 456 | import { get } from '../core/services/API';
import { Thread } from '../core/types/thread';
import { THREAD_ENDPOINT } from '../core/services/API/endpoints';
export const getThreadsBySub = async (subId: string) =>
(
await get<Thread[]>(
`${THREAD_ENDPOINT}?${new URLSearchParams({ sub: subId }).toString()}`
... | 2 |
J-Neto/mais-educacao | 896ed9e | server/src/controllers/responsaveis/FindResponsavelController.ts | TypeScript | www.github.com/J-Neto/mais-educacao/tree/main/server/src/controllers/responsaveis/FindResponsavelController.ts | https://raw.githubusercontent.com/J-Neto/mais-educacao/896ed9e/server/src/controllers/responsaveis/FindResponsavelController.ts | J-Neto/mais-educacao 896ed9e server/src/controllers/responsaveis/FindResponsavelController.ts | true | 200 | 1,079 | import { Request, Response } from "express";
import { PrismaResponsaveisRepository } from "../../repositories/prisma/responsaveis/prisma-responsaveis-repository";
import { FindResponsavelService } from "../../services/responsaveis/FindResponsavelService";
class FindResponsavelController {
async handle(req:Request, r... | 1 |
freeyearn/IPFS-HUGO-BLOG | 9780d5c | admin-ui/src/i18n.ts | TypeScript | www.github.com/freeyearn/IPFS-HUGO-BLOG/tree/main/admin-ui/src/i18n.ts | https://raw.githubusercontent.com/freeyearn/IPFS-HUGO-BLOG/9780d5c/admin-ui/src/i18n.ts | freeyearn/IPFS-HUGO-BLOG 9780d5c admin-ui/src/i18n.ts | true | 200 | 753 | import { createI18n, type I18n, type Locale } from "vue-i18n";
import { useStorage } from "@vueuse/core";
import EN from "./locales/en-US.json";
import ZH from "./locales/zh-CN.json";
import { WritableComputedRef } from "vue";
let i18n: I18n;
const init = () => {
i18n = createI18n({
legacy: false,
locale: u... | 1 |
sweet-design/formily | bcb1ad0 | src/locales/lang/zh-CN.ts | TypeScript | www.github.com/sweet-design/formily/tree/main/src/locales/lang/zh-CN.ts | https://raw.githubusercontent.com/sweet-design/formily/bcb1ad0/src/locales/lang/zh-CN.ts | sweet-design/formily bcb1ad0 src/locales/lang/zh-CN.ts | true | 200 | 521 | import antdZhCN from 'ant-design-vue/es/locale-provider/zh_CN';
import momentZhCN from 'moment/locale/zh-cn';
import global from './zh-CN/global';
import menu from './zh-CN/menu';
import form from './zh-CN/form';
import pageDesigner from './zh-CN/designer';
import formily from './zh-CN/formily';
const components = ... | 2 |
Murillou/next-shop | 6f7d12f | src/styles/pages/success.ts | TypeScript | www.github.com/Murillou/next-shop/tree/main/src/styles/pages/success.ts | https://raw.githubusercontent.com/Murillou/next-shop/6f7d12f/src/styles/pages/success.ts | Murillou/next-shop 6f7d12f src/styles/pages/success.ts | true | 200 | 1,245 | import { styled } from '..';
export const SuccessContainer = styled('main', {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: '5rem',
height: 656,
h1: {
fontSize: '20px',
color: '$gray100',
},
p: {
fontSize: '$sm',
color: '$gray300',
maxWidth: 560,
t... | 5 |
RomericoJr/InventarioFrontIntegral | f3c0941 | src/app/tab2/tab2.page.ts | TypeScript | www.github.com/RomericoJr/InventarioFrontIntegral/tree/main/src/app/tab2/tab2.page.ts | https://raw.githubusercontent.com/RomericoJr/InventarioFrontIntegral/f3c0941/src/app/tab2/tab2.page.ts | RomericoJr/InventarioFrontIntegral f3c0941 src/app/tab2/tab2.page.ts | true | 200 | 3,783 | import { Component } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { NewProductComponent } from '../components/new-product/new-product.component';
import { ViewProductComponent } from '../components/view-product/view-product.component';
import { NewSaleComponent } from '../components/ne... | 1 |
Tran-Thanh-The/LingoMate | 1cdfa66 | front-end/src/api/courseApi.ts | TypeScript | www.github.com/Tran-Thanh-The/LingoMate/tree/main/front-end/src/api/courseApi.ts | https://raw.githubusercontent.com/Tran-Thanh-The/LingoMate/1cdfa66/front-end/src/api/courseApi.ts | Tran-Thanh-The/LingoMate 1cdfa66 front-end/src/api/courseApi.ts | true | 200 | 1,371 | import axiosInstance from '@/core/intercepter/Intercepter';
import { CourseParams } from '@/types/interface/Course';
const courseApi = {
getCategories: () => {
return axiosInstance.get<any>('/categories');
},
getCourses: ({
status,
userId,
invoiceId,
paginationOptions,
search,
isMyCou... | 3 |
isagoutamadev/be-dev-test-livepack | 9addd1c | src/resources/prescription-product/prescription-product.service.ts | TypeScript | www.github.com/isagoutamadev/be-dev-test-livepack/tree/main/src/resources/prescription-product/prescription-product.service.ts | https://raw.githubusercontent.com/isagoutamadev/be-dev-test-livepack/9addd1c/src/resources/prescription-product/prescription-product.service.ts | isagoutamadev/be-dev-test-livepack 9addd1c src/resources/prescription-product/prescription-product.service.ts | true | 200 | 3,465 | import { PrescriptionProduct } from "@/models/prescription-product.model";
import { PrescriptionProductRepository } from "./prescription-product.repository";
import HttpException from "@/utils/exceptions/http.exception";
import { ResponseCode } from "@/utils/responses/global.response";
import { User } from "@/models/us... | 7 |
ilkor4/stellar-cars | a473d08 | config/build/types/config.ts | TypeScript | www.github.com/ilkor4/stellar-cars/tree/main/config/build/types/config.ts | https://raw.githubusercontent.com/ilkor4/stellar-cars/a473d08/config/build/types/config.ts | ilkor4/stellar-cars a473d08 config/build/types/config.ts | true | 200 | 330 | export type Mode = 'development' | 'production'
export interface BuildPaths {
html: string
entry: string
build: string
src: string
nodeModules: string
}
export interface BuildOptions extends BuildEnv {
paths: BuildPaths
isDev: boolean
}
export interface BuildEnv {
mode: Mode
port:... | 0 |
0xvgd/life-tech-lms-backend | 04874da | src/adapter/entry-points/express/handlers/authentication/LoginExpressHandler.ts | TypeScript | www.github.com/0xvgd/life-tech-lms-backend/tree/main/src/adapter/entry-points/express/handlers/authentication/LoginExpressHandler.ts | https://raw.githubusercontent.com/0xvgd/life-tech-lms-backend/04874da/src/adapter/entry-points/express/handlers/authentication/LoginExpressHandler.ts | 0xvgd/life-tech-lms-backend 04874da src/adapter/entry-points/express/handlers/authentication/LoginExpressHandler.ts | true | 200 | 1,728 | import { DataSource } from 'typeorm'
import { LoginUseCase } from '../../../../../domain/usecases/authentication/LoginUseCase'
import { UserRepository } from '../../../../repositories/UserRepository'
import { Paths } from '../../../_gen/codex-usa-backend-types'
import { Handler } from '../shared/types'
type Response =... | 2 |
kekonline/LinkedIn_Notifyer_Client | 1d1932e | vite.config.ts | TypeScript | www.github.com/kekonline/LinkedIn_Notifyer_Client/tree/main/vite.config.ts | https://raw.githubusercontent.com/kekonline/LinkedIn_Notifyer_Client/1d1932e/vite.config.ts | kekonline/LinkedIn_Notifyer_Client 1d1932e vite.config.ts | true | 200 | 386 | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import Checker from 'vite-plugin-checker';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
Checker({ typescript: true }) // Adds TypeScript type checking
],
resolve: {
alias: {
'@': '/... | 5 |
Ramraghul/HILife.Ai-FSD-Task | 59dfaed | server/src/middleware/multerMiddleware.ts | TypeScript | www.github.com/Ramraghul/HILife.Ai-FSD-Task/tree/main/server/src/middleware/multerMiddleware.ts | https://raw.githubusercontent.com/Ramraghul/HILife.Ai-FSD-Task/59dfaed/server/src/middleware/multerMiddleware.ts | Ramraghul/HILife.Ai-FSD-Task 59dfaed server/src/middleware/multerMiddleware.ts | true | 200 | 379 | import multer from "multer";
import path from "path";
// Multer Configuration
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, path.join(__dirname, "../uploads"));
},
filename: function (req, file, cb) {
cb(null, file.originalname);
}
});
const uplo... | 7 |
felixtsu/cubicbird-land-core | 40f31f0 | home.ts | TypeScript | www.github.com/felixtsu/cubicbird-land-core/tree/main/home.ts | https://raw.githubusercontent.com/felixtsu/cubicbird-land-core/40f31f0/home.ts | felixtsu/cubicbird-land-core 40f31f0 home.ts | true | 200 | 3,020 | namespace SpriteKind {
export const Wardrobe = SpriteKind.create()
export const Bed = SpriteKind.create()
}
namespace home {
export function prepareHome() {
cbland.registerRoom("home", assets.cbl_image`homeImage`, assets.cbl_tilemap`homeInside`)
cbland.addExit("home", 4, 6, "vill... | 3 |
habihabz/captian | 911c4df | erp.client/src/app/models/customer.model.ts | TypeScript | www.github.com/habihabz/captian/tree/main/erp.client/src/app/models/customer.model.ts | https://raw.githubusercontent.com/habihabz/captian/911c4df/erp.client/src/app/models/customer.model.ts | habihabz/captian 911c4df erp.client/src/app/models/customer.model.ts | true | 200 | 316 | export class Customer {
c_id: number;
c_name: string;
c_active_yn: string;
c_cre_by: number;
c_cre_by_name: string;
c_cre_date: string;
constructor() {
this.c_id = 0;
this.c_name='',
this.c_active_yn = '';
this.c_cre_by = 0;
this.c_cre_by_name = '';
this.c_cre_date = '';
}
}
| 1 |
techmmunity/discord-bot-bity-v2 | 05c5f5b | src/api/events/bump/bump.guard.ts | TypeScript | www.github.com/techmmunity/discord-bot-bity-v2/tree/main/src/api/events/bump/bump.guard.ts | https://raw.githubusercontent.com/techmmunity/discord-bot-bity-v2/05c5f5b/src/api/events/bump/bump.guard.ts | techmmunity/discord-bot-bity-v2 05c5f5b src/api/events/bump/bump.guard.ts | true | 200 | 709 | import { DiscordGuard } from "discord-nestjs";
import { ClientEvents, Message } from "discord.js";
import { BotsEnum } from "enums/bots";
export class BumpGuard implements DiscordGuard {
// eslint-disable-next-line require-await
public async canActive(_: keyof ClientEvents, [context]: [Message]) {
const authorId ... | 0 |
patrik200/pageflow | 2622929 | packages/back/backend/src/modules/permissions/services/transfer-owner.ts | TypeScript | www.github.com/patrik200/pageflow/tree/main/packages/back/backend/src/modules/permissions/services/transfer-owner.ts | https://raw.githubusercontent.com/patrik200/pageflow/2622929/packages/back/backend/src/modules/permissions/services/transfer-owner.ts | patrik200/pageflow 2622929 packages/back/backend/src/modules/permissions/services/transfer-owner.ts | true | 200 | 3,557 | import { Injectable } from "@nestjs/common";
import { InjectRepository } from "@nestjs/typeorm";
import { Repository } from "typeorm";
import { TicketBoardEntity } from "entities/TicketBoard";
import { PermissionEntity } from "../../../entities/Permission";
@Injectable()
export class TransferTicketBoardPermissionOwn... | 6 |
Arca-Luminosa/web | f3ef67d | apps/arcaplus/src/workflows/create-subscription-order/steps/update-subscription.ts | TypeScript | www.github.com/Arca-Luminosa/web/tree/main/apps/arcaplus/src/workflows/create-subscription-order/steps/update-subscription.ts | https://raw.githubusercontent.com/Arca-Luminosa/web/f3ef67d/apps/arcaplus/src/workflows/create-subscription-order/steps/update-subscription.ts | Arca-Luminosa/web f3ef67d apps/arcaplus/src/workflows/create-subscription-order/steps/update-subscription.ts | true | 200 | 1,305 | import {
createStep,
StepResponse
} from '@medusajs/framework/workflows-sdk'
import {
SUBSCRIPTION_MODULE
} from '../../../modules/subscription'
import SubscriptionModuleService from '../../../modules/subscription/service'
type StepInput = {
subscription_id: string
}
const updateSubscriptionStep = createStep(... | 2 |
JuanPeRam/Sansugus-Web | fe9df35 | sansugus-web/src/types/competitionTypes.ts | TypeScript | www.github.com/JuanPeRam/Sansugus-Web/tree/main/sansugus-web/src/types/competitionTypes.ts | https://raw.githubusercontent.com/JuanPeRam/Sansugus-Web/fe9df35/sansugus-web/src/types/competitionTypes.ts | JuanPeRam/Sansugus-Web fe9df35 sansugus-web/src/types/competitionTypes.ts | true | 200 | 323 | type competition = {
group:string,
newStanding: Array<teamData>
}
type teamData = {
position:number,
teamName:string,
points:number,
played:number,
won:number,
drawn:number,
lost:number,
goals:number,
goalsAgainst:number,
gd:string
}
export type{
competition,teamDat... | 5 |
LuisaCastano40/guiaLogin | c83a3c9 | frontend/src/app/pages/inicio/inicio.component.ts | TypeScript | www.github.com/LuisaCastano40/guiaLogin/tree/main/frontend/src/app/pages/inicio/inicio.component.ts | https://raw.githubusercontent.com/LuisaCastano40/guiaLogin/c83a3c9/frontend/src/app/pages/inicio/inicio.component.ts | LuisaCastano40/guiaLogin c83a3c9 frontend/src/app/pages/inicio/inicio.component.ts | true | 200 | 549 | import { Component } from '@angular/core';
import { LoginComponent } from '../../components/login/login.component';
import { RegistroComponent } from '../../components/registro/registro.component';
import { MenuNavegacionComponent } from '../../components/menu-navegacion/menu-navegacion.component';
@Component({
sele... | 7 |
datfeela/T3-stack-ECOM | b3f64b3 | src/modules/widgets/Product/hooks/useRelatedProducts.ts | TypeScript | www.github.com/datfeela/T3-stack-ECOM/tree/main/src/modules/widgets/Product/hooks/useRelatedProducts.ts | https://raw.githubusercontent.com/datfeela/T3-stack-ECOM/b3f64b3/src/modules/widgets/Product/hooks/useRelatedProducts.ts | datfeela/T3-stack-ECOM b3f64b3 src/modules/widgets/Product/hooks/useRelatedProducts.ts | true | 200 | 1,307 | import type { Product as ProductWithoutImages, ProductImagePath } from '@prisma/client'
import { api } from '~/modules/shared/api/apiTRPC'
import type { ProductType } from '~/modules/shared/types/productTypes'
type Product = ProductWithoutImages & {
detailPageImages: ProductImagePath[]
}
interface UseRelatedProdu... | 1 |
GastonKhouri/RN-FindJobApp | e911968 | src/hooks/useJobDetails.ts | TypeScript | www.github.com/GastonKhouri/RN-FindJobApp/tree/main/src/hooks/useJobDetails.ts | https://raw.githubusercontent.com/GastonKhouri/RN-FindJobApp/e911968/src/hooks/useJobDetails.ts | GastonKhouri/RN-FindJobApp e911968 src/hooks/useJobDetails.ts | true | 200 | 515 | import { useQuery } from '@tanstack/react-query';
import { jobApi } from '../api';
import { JobDetail, JobDetailsResponse } from '../interfaces';
const loadJob = async ( jobId: string ): Promise<JobDetail[]> => {
const { data } = await jobApi.get<JobDetailsResponse>( 'job-details', {
params: {
job_id: jobId,
... | 4 |
Minsoo5/SmartStone3 | c4fff21 | src/main/webapp/app/entities/stone/route/stone-routing-resolve.service.spec.ts | TypeScript | www.github.com/Minsoo5/SmartStone3/tree/main/src/main/webapp/app/entities/stone/route/stone-routing-resolve.service.spec.ts | https://raw.githubusercontent.com/Minsoo5/SmartStone3/c4fff21/src/main/webapp/app/entities/stone/route/stone-routing-resolve.service.spec.ts | Minsoo5/SmartStone3 c4fff21 src/main/webapp/app/entities/stone/route/stone-routing-resolve.service.spec.ts | true | 200 | 2,982 | import { TestBed } from '@angular/core/testing';
import { HttpResponse } from '@angular/common/http';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ActivatedRouteSnapshot, ActivatedRoute, Router, convertToParamMap } from '@angular/router';
import { RouterTestingModule } from '@angular... | 0 |
Gururaj0908/ESSMS-project | f446c4b | whitebirrd-ssms-ui/src/app/ecommerce/product/shopping-cart/shopping-cart.component.ts | TypeScript | www.github.com/Gururaj0908/ESSMS-project/tree/main/whitebirrd-ssms-ui/src/app/ecommerce/product/shopping-cart/shopping-cart.component.ts | https://raw.githubusercontent.com/Gururaj0908/ESSMS-project/f446c4b/whitebirrd-ssms-ui/src/app/ecommerce/product/shopping-cart/shopping-cart.component.ts | Gururaj0908/ESSMS-project f446c4b whitebirrd-ssms-ui/src/app/ecommerce/product/shopping-cart/shopping-cart.component.ts | true | 200 | 3,277 | import { Component, OnInit, EventEmitter } from '@angular/core';
import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { AuthService } from '../../../services/auth.service';
import { Router, ActivatedRoute } from '@angular/router';
import { ProductDataServiceService } from "../../product-data-se... | 6 |
0xHuzaifa/100-Days-Of-TypeScript | 4e7b11f | Day_41/task02.ts | TypeScript | www.github.com/0xHuzaifa/100-Days-Of-TypeScript/tree/main/Day_41/task02.ts | https://raw.githubusercontent.com/0xHuzaifa/100-Days-Of-TypeScript/4e7b11f/Day_41/task02.ts | 0xHuzaifa/100-Days-Of-TypeScript 4e7b11f Day_41/task02.ts | true | 200 | 436 | /*
* Question 122: Use a while loop to count down from 10 to 1 and breaks the loop when it reaches 5.
* Explain & TIP: The break statement terminates the loop immediately. This is useful for stopping a
* loop when a certain condition is met, even if the loop's original termination condition hasn't been reached yet.
*... | 2 |
AdvBetax50/global-think | 7b6c4dd | src/main.ts | TypeScript | www.github.com/AdvBetax50/global-think/tree/main/src/main.ts | https://raw.githubusercontent.com/AdvBetax50/global-think/7b6c4dd/src/main.ts | AdvBetax50/global-think 7b6c4dd src/main.ts | true | 200 | 340 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
const port = process.env.PORT;
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(port || 3000);
}
bootstrap().then(() => {
console.info(`Server Initialized on po... | 3 |
TopCharik/fileform_client | 155e41d | src/app/app-routing.module.ts | TypeScript | www.github.com/TopCharik/fileform_client/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/TopCharik/fileform_client/155e41d/src/app/app-routing.module.ts | TopCharik/fileform_client 155e41d src/app/app-routing.module.ts | true | 200 | 778 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {DocxFormComponent} from "./docx-file-form/docx-form/docx-form.component";
import {DocxFormSuccessComponent} from "./docx-file-form/docx-form-success/docx-form-success.component";
import {FormSuccessGuardService} fr... | 5 |
jorgeuluiz/rocketlog-deploy | 4e4648d | src/controllers/users-controller.ts | TypeScript | www.github.com/jorgeuluiz/rocketlog-deploy/tree/main/src/controllers/users-controller.ts | https://raw.githubusercontent.com/jorgeuluiz/rocketlog-deploy/4e4648d/src/controllers/users-controller.ts | jorgeuluiz/rocketlog-deploy 4e4648d src/controllers/users-controller.ts | true | 200 | 997 | import { Request, Response } from "express"
import { prisma } from "@/database/prisma"
import { z } from "zod"
import { hash } from "bcrypt"
import { AppError } from "@/utils/AppError"
class UsersController {
async create(request: Request, response: Response){
const bodySchema = z.object({
name: z.string(... | 1 |
oldltoboss/restaurant-front | b6f1b5e | src/app/app.module.ts | TypeScript | www.github.com/oldltoboss/restaurant-front/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/oldltoboss/restaurant-front/b6f1b5e/src/app/app.module.ts | oldltoboss/restaurant-front b6f1b5e src/app/app.module.ts | true | 200 | 1,555 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NavbarComponent } from './components/navbar/navbar.component';
import { TableComponent } from './compone... | 7 |
abduhamidweb/dictionary-backend | c9d3616 | src/schemas/book.schema.ts | TypeScript | www.github.com/abduhamidweb/dictionary-backend/tree/main/src/schemas/book.schema.ts | https://raw.githubusercontent.com/abduhamidweb/dictionary-backend/c9d3616/src/schemas/book.schema.ts | abduhamidweb/dictionary-backend c9d3616 src/schemas/book.schema.ts | true | 200 | 595 | import mongoose, { Schema, Document, Types } from 'mongoose';
import { IBook } from '../interface/interface';
// Units skhema va modelini import qilish
// Book skhema interfeysi
// Book skhemasi
const bookSchema: Schema = new Schema<IBook>({
bookname: {
type: String,
required: true
},
des... | 4 |
matheuspossenti/fleet-sense | a8ef60b | src/adminjs/resources/index.ts | TypeScript | www.github.com/matheuspossenti/fleet-sense/tree/main/src/adminjs/resources/index.ts | https://raw.githubusercontent.com/matheuspossenti/fleet-sense/a8ef60b/src/adminjs/resources/index.ts | matheuspossenti/fleet-sense a8ef60b src/adminjs/resources/index.ts | true | 200 | 864 | import { ResourceWithOptions } from "adminjs";
import { Company, Truck, Driver, User, Supply, Trip } from "../../models";
import { companyResourceOptions } from "./company";
import { truckResourceOptions } from './truck'
import { driverResourceOptions } from './driver'
import { supplyResourceOptions } from "./supply";
... | 0 |
xmurilo/Trabalho-de-POO-2Sem | 83ed0d3 | Quests/Quest.ts | TypeScript | www.github.com/xmurilo/Trabalho-de-POO-2Sem/tree/main/Quests/Quest.ts | https://raw.githubusercontent.com/xmurilo/Trabalho-de-POO-2Sem/83ed0d3/Quests/Quest.ts | xmurilo/Trabalho-de-POO-2Sem 83ed0d3 Quests/Quest.ts | true | 200 | 658 | export enum RewardType {
ITEM = 'item',
MONEY = 'money',
}
interface Item {
name: string;
description: string;
}
export class Quest {
constructor(
private _description: string,
private _reward: { type: RewardType; value: Item | number },
) {}
getQuestDetails(): string {
let rewardDescriptio... | 6 |
NemanjaTrninic/programiranje_korisnickih_interfejsa_oktobar_2024 | 64035f3 | src/app/signup/signup.component.ts | TypeScript | www.github.com/NemanjaTrninic/programiranje_korisnickih_interfejsa_oktobar_2024/tree/main/src/app/signup/signup.component.ts | https://raw.githubusercontent.com/NemanjaTrninic/programiranje_korisnickih_interfejsa_oktobar_2024/64035f3/src/app/signup/signup.component.ts | NemanjaTrninic/programiranje_korisnickih_interfejsa_oktobar_2024 64035f3 src/app/signup/signup.component.ts | true | 200 | 1,680 | import { Component } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatInputModule } from '@angular/material/input';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { UserService } from '../.... | 2 |
sesha932000/Angular_E_commerce_App | b55cf5b | src/app/pages/cart/cart-item/cart-item.component.ts | TypeScript | www.github.com/sesha932000/Angular_E_commerce_App/tree/main/src/app/pages/cart/cart-item/cart-item.component.ts | https://raw.githubusercontent.com/sesha932000/Angular_E_commerce_App/b55cf5b/src/app/pages/cart/cart-item/cart-item.component.ts | sesha932000/Angular_E_commerce_App b55cf5b src/app/pages/cart/cart-item/cart-item.component.ts | true | 200 | 920 | import { Component, inject, input } from '@angular/core';
import { Product } from '../../../Models/product.models';
import { ButttonComponent } from "../../../components/buttton/buttton.component";
import { CartService } from '../../../services/cart.service';
@Component({
selector: 'app-cart-item',
standalone: tru... | 3 |
phannhatduy1102/nestjs-redisom-micro | a0150be | libs/core/src/modules/core/domain/inputs/writer/delete-edit-media-permission.input.ts | TypeScript | www.github.com/phannhatduy1102/nestjs-redisom-micro/tree/main/libs/core/src/modules/core/domain/inputs/writer/delete-edit-media-permission.input.ts | https://raw.githubusercontent.com/phannhatduy1102/nestjs-redisom-micro/a0150be/libs/core/src/modules/core/domain/inputs/writer/delete-edit-media-permission.input.ts | phannhatduy1102/nestjs-redisom-micro a0150be libs/core/src/modules/core/domain/inputs/writer/delete-edit-media-permission.input.ts | true | 200 | 577 | import { ArrayMinSize, IsArray, IsNotEmpty, IsUUID } from 'class-validator';
import { MIN_ARRAY_SIZE } from '../../constants';
import { ApiProperty } from '@nestjs/swagger';
export class DeleteEditMediaPermissionInput {
@IsArray()
@IsUUID(4, { each: true })
@IsNotEmpty()
@ArrayMinSize(MIN_ARRAY_SIZE)
ids: st... | 5 |
amanda-natallie/devices-crud | 8c95dff | src/hooks/use-devices-actions/use-devices-actions.test.ts | TypeScript | www.github.com/amanda-natallie/devices-crud/tree/main/src/hooks/use-devices-actions/use-devices-actions.test.ts | https://raw.githubusercontent.com/amanda-natallie/devices-crud/8c95dff/src/hooks/use-devices-actions/use-devices-actions.test.ts | amanda-natallie/devices-crud 8c95dff src/hooks/use-devices-actions/use-devices-actions.test.ts | true | 200 | 720 | import { useAppDispatch } from 'store';
import { resetDevicesInfoAction } from 'store/slices/devicesSlice';
import { vi } from 'vitest';
import { act, renderHook } from 'utils/test';
import useDevicesActions from './use-devices-actions';
vi.mock('store');
describe('useDevicesActions', () => {
const mockDispatch =... | 7 |
Safa-Kamal-q/E-commerce-Platform | e50e037 | db/dataSource.ts | TypeScript | www.github.com/Safa-Kamal-q/E-commerce-Platform/tree/main/db/dataSource.ts | https://raw.githubusercontent.com/Safa-Kamal-q/E-commerce-Platform/e50e037/db/dataSource.ts | Safa-Kamal-q/E-commerce-Platform e50e037 db/dataSource.ts | true | 200 | 1,619 | import { DataSource } from "typeorm";
import { User } from "./entities/User.js";
import { Role } from "./entities/Role.js";
import { Product } from "./entities/Product.js";
import { Permission } from "./entities/Permission.js";
import { OrderOneProduct } from "./entities/OrderOneProduct.js";
import { ShoppingCart } fro... | 1 |
ArekCieply/projekt-forum | 8894aa7 | forum-frontend/src/app/shared/config.service.ts | TypeScript | www.github.com/ArekCieply/projekt-forum/tree/main/forum-frontend/src/app/shared/config.service.ts | https://raw.githubusercontent.com/ArekCieply/projekt-forum/8894aa7/forum-frontend/src/app/shared/config.service.ts | ArekCieply/projekt-forum 8894aa7 forum-frontend/src/app/shared/config.service.ts | true | 200 | 609 | import { Injectable } from '@angular/core';
import { Config } from './config.model';
import { HttpClient } from '@angular/common/http';
import { firstValueFrom, lastValueFrom } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class ConfigService {
private config!: Config;
constructor(private http: HttpCl... | 4 |
Methuselah96/three-ts-examples | 527cd00 | examples/misc_exporter_usdz.ts | TypeScript | www.github.com/Methuselah96/three-ts-examples/tree/main/examples/misc_exporter_usdz.ts | https://raw.githubusercontent.com/Methuselah96/three-ts-examples/527cd00/examples/misc_exporter_usdz.ts | Methuselah96/three-ts-examples 527cd00 examples/misc_exporter_usdz.ts | true | 200 | 3,222 | import * as THREE from "three";
import { OrbitControls } from "three/addons/controls/OrbitControls.js";
import { RoomEnvironment } from "three/addons/environments/RoomEnvironment.js";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { USDZExporter } from "three/addons/exporters/USDZExporter.js"... | 6 |
annikatuulivuori/full_stack_open | 3399b2d | part9/health-app/index.ts | TypeScript | www.github.com/annikatuulivuori/full_stack_open/tree/main/part9/health-app/index.ts | https://raw.githubusercontent.com/annikatuulivuori/full_stack_open/3399b2d/part9/health-app/index.ts | annikatuulivuori/full_stack_open 3399b2d part9/health-app/index.ts | true | 200 | 1,528 | import express from 'express';
import calculateBmi from './bmiCalculator';
import calculateExercises from './exerciseCalculator';
const app = express();
app.use(express.json());
app.get('/hello', (_req, res) => {
res.send('Hello Full Stack');
});
app.get('/bmi', (req, res) => {
const { height, weight } = req.qu... | 0 |
grauds/money.tracker.ui | 657a642 | apps/money-tracker-ui/src/app/accounts/accounts-dashboard/accounts-dashboard.component.ts | TypeScript | www.github.com/grauds/money.tracker.ui/tree/main/apps/money-tracker-ui/src/app/accounts/accounts-dashboard/accounts-dashboard.component.ts | https://raw.githubusercontent.com/grauds/money.tracker.ui/657a642/apps/money-tracker-ui/src/app/accounts/accounts-dashboard/accounts-dashboard.component.ts | grauds/money.tracker.ui 657a642 apps/money-tracker-ui/src/app/accounts/accounts-dashboard/accounts-dashboard.component.ts | true | 200 | 7,049 | import { Component, OnInit } from '@angular/core';
import { AccountBalance, MoneyType } from '@clematis-shared/model';
import { BehaviorSubject, Subscription } from 'rxjs';
import {
PagedResourceCollection,
ResourceCollection,
} from '@lagoshny/ngx-hateoas-client';
import { ActivatedRoute, Router } from '@angular/r... | 2 |
MayankBharati/ws-eng-conduit-ai-assessment-rwa-feature-development-v3 | 5aff063 | apps/backend/src/roster/roster.controller.ts | TypeScript | www.github.com/MayankBharati/ws-eng-conduit-ai-assessment-rwa-feature-development-v3/tree/main/apps/backend/src/roster/roster.controller.ts | https://raw.githubusercontent.com/MayankBharati/ws-eng-conduit-ai-assessment-rwa-feature-development-v3/5aff063/apps/backend/src/roster/roster.controller.ts | MayankBharati/ws-eng-conduit-ai-assessment-rwa-feature-development-v3 5aff063 apps/backend/src/roster/roster.controller.ts | true | 200 | 378 | import { Controller, Get } from '@nestjs/common';
import { RosterService } from './roster.service';
import { AuthorRoster } from './roster.types';
@Controller('roster')
export class RosterController {
constructor(private readonly rosterService: RosterService) {}
@Get()
async getRoster(): Promise<AuthorRoster[]>... | 3 |
robertd2000/graphql-github-client | 9c464d5 | src/entities/repository-card/model/index.ts | TypeScript | www.github.com/robertd2000/graphql-github-client/tree/main/src/entities/repository-card/model/index.ts | https://raw.githubusercontent.com/robertd2000/graphql-github-client/9c464d5/src/entities/repository-card/model/index.ts | robertd2000/graphql-github-client 9c464d5 src/entities/repository-card/model/index.ts | true | 200 | 467 | import { createContext, useContext } from 'react'
import { RepositoryType } from '../../../shared/types'
const RepositoryCardContext = createContext<{
repository: RepositoryType
} | null>(null)
export const useRepositoryCardContext = () => {
const context = useContext(RepositoryCardContext)
if (!context)
t... | 7 |
colorfultrees/portfolio | 24adf8f | src/app/app-routing.module.ts | TypeScript | www.github.com/colorfultrees/portfolio/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/colorfultrees/portfolio/24adf8f/src/app/app-routing.module.ts | colorfultrees/portfolio 24adf8f src/app/app-routing.module.ts | true | 200 | 557 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MainComponent } from './components/main/main.component';
import { LegalsComponent } from './components/legals/legals.component';
const routes: Routes = [
{ path: '', component: MainComponent },
{ path: 'legal... | 1 |
yerassyl-clou/web-project | d0e5052 | PlaneMarket/PlaneMarket_front/src/app/app.routes.ts | TypeScript | www.github.com/yerassyl-clou/web-project/tree/main/PlaneMarket/PlaneMarket_front/src/app/app.routes.ts | https://raw.githubusercontent.com/yerassyl-clou/web-project/d0e5052/PlaneMarket/PlaneMarket_front/src/app/app.routes.ts | yerassyl-clou/web-project d0e5052 PlaneMarket/PlaneMarket_front/src/app/app.routes.ts | true | 200 | 1,289 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { ManufacturersComponent } from './manufacturers/manufacturers.component';
import { PlanesComponent } from './planes/planes.component';
import { OrdersCompon... | 4 |
Hartigan/template-service | f9370fd | react-ui/src/protobuf/problems_pb.d.ts | TypeScript | www.github.com/Hartigan/template-service/tree/main/react-ui/src/protobuf/problems_pb.d.ts | https://raw.githubusercontent.com/Hartigan/template-service/f9370fd/react-ui/src/protobuf/problems_pb.d.ts | Hartigan/template-service f9370fd react-ui/src/protobuf/problems_pb.d.ts | true | 200 | 14,387 | import * as jspb from 'google-protobuf'
import * as domain_pb from './domain_pb';
export class UpdateProblemReply extends jspb.Message {
getCommitId(): string;
setCommitId(value: string): UpdateProblemReply;
getError(): UpdateProblemReply.Error | undefined;
setError(value?: UpdateProblemReply.Error): Update... | 0 |
Matttaylor8910/generals-events | ab17ff8 | functions/src/events/players/onUpdate.ts | TypeScript | www.github.com/Matttaylor8910/generals-events/tree/main/functions/src/events/players/onUpdate.ts | https://raw.githubusercontent.com/Matttaylor8910/generals-events/ab17ff8/functions/src/events/players/onUpdate.ts | Matttaylor8910/generals-events ab17ff8 functions/src/events/players/onUpdate.ts | true | 200 | 7,026 | import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
import {EventFormat, EventType, IArenaEvent, IDoubleElimEvent, IEvent, ILeaderboardPlayer, ILeaderboardPlayerStats, IPlayerHistoryRecord, Visibility} from '../../../../types';
import {getCurrentStars} from '../../util/generals';
... | 5 |
rana-arju/tour-backend | 624ae85 | src/middlewares/auth.ts | TypeScript | www.github.com/rana-arju/tour-backend/tree/main/src/middlewares/auth.ts | https://raw.githubusercontent.com/rana-arju/tour-backend/624ae85/src/middlewares/auth.ts | rana-arju/tour-backend 624ae85 src/middlewares/auth.ts | true | 200 | 992 | import { NextFunction, Request, Response } from 'express'
import catchAsync from '../utils/catchAsync'
import jwt, { JwtPayload } from 'jsonwebtoken'
import config from '../config'
import User from '../module/user/user.model'
export const auth = (...requiredRoles: string[]) => {
return catchAsync(async (req: Request... | 6 |
BenJD1205/serverless-master-source | 5d915b0 | product-service/src/deals-api.ts | TypeScript | www.github.com/BenJD1205/serverless-master-source/tree/main/product-service/src/deals-api.ts | https://raw.githubusercontent.com/BenJD1205/serverless-master-source/5d915b0/product-service/src/deals-api.ts | BenJD1205/serverless-master-source 5d915b0 product-service/src/deals-api.ts | true | 200 | 444 | import { APIGatewayEvent, APIGatewayProxyResult, Context } from "aws-lambda";
export const handler = async (
event: APIGatewayEvent,
context: Context
): Promise<APIGatewayProxyResult> => {
console.log(`EVENT: ${JSON.stringify(event)}`)
return {
statusCode: 500,
body: JSON.stringify({
... | 2 |
markaeroltomarse/autosmart | 7455c87 | src/modules/cart/services/cart.service.ts | TypeScript | www.github.com/markaeroltomarse/autosmart/tree/main/src/modules/cart/services/cart.service.ts | https://raw.githubusercontent.com/markaeroltomarse/autosmart/7455c87/src/modules/cart/services/cart.service.ts | markaeroltomarse/autosmart 7455c87 src/modules/cart/services/cart.service.ts | true | 200 | 11,401 | import { ProductService } from './../../product/services/product.service';
import { AddToCartInput } from './../dtos/inputs/add-to-cart.input';
import {
BadRequestException,
ForbiddenException,
NotFoundException,
} from '@nestjs/common/exceptions';
import { PrismaService } from './../../prisma/services/prisma.ser... | 3 |
jcarnevale89/advent-of-code-2023 | 3d07843 | src/2023/day7-camel-cards/part1.spec.ts | TypeScript | www.github.com/jcarnevale89/advent-of-code-2023/tree/main/src/2023/day7-camel-cards/part1.spec.ts | https://raw.githubusercontent.com/jcarnevale89/advent-of-code-2023/3d07843/src/2023/day7-camel-cards/part1.spec.ts | jcarnevale89/advent-of-code-2023 3d07843 src/2023/day7-camel-cards/part1.spec.ts | true | 200 | 279 | import { solution } from './part1';
describe('solution', () => {
it('should return correct answer with test input', () => {
const input = `32T3K 765
T55J5 684
KK677 28
KTJJT 220
QQQJA 483`;
const result = solution(input);
expect(result).toEqual(6440);
});
});
| 7 |
well-silva/rentalx | cd0a088 | src/shared/infra/http/middlewares/ensureAuthenticated.ts | TypeScript | www.github.com/well-silva/rentalx/tree/main/src/shared/infra/http/middlewares/ensureAuthenticated.ts | https://raw.githubusercontent.com/well-silva/rentalx/cd0a088/src/shared/infra/http/middlewares/ensureAuthenticated.ts | well-silva/rentalx cd0a088 src/shared/infra/http/middlewares/ensureAuthenticated.ts | true | 200 | 711 | import { NextFunction, Request, Response } from 'express';
import { verify } from 'jsonwebtoken';
import auth from '@config/auth';
import { AppError } from '@shared/errors/AppError';
interface IPayload {
sub: string;
}
export async function ensureAuthenticated(request: Request, response: Response, next: NextFuncti... | 1 |
vishwasanavatti/VW-Exercise | 8d123f3 | frontend/src/app/order/order.component.ts | TypeScript | www.github.com/vishwasanavatti/VW-Exercise/tree/main/frontend/src/app/order/order.component.ts | https://raw.githubusercontent.com/vishwasanavatti/VW-Exercise/8d123f3/frontend/src/app/order/order.component.ts | vishwasanavatti/VW-Exercise 8d123f3 frontend/src/app/order/order.component.ts | true | 200 | 2,261 | /**
* @description
* This component renders the orders in the cart. Once user clicks on `Add to Cart`
* then the added component information is rendered in this component.
*/
import { HttpClient } from '@angular/common/http';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ... | 4 |
peterclutch/portfolio | 30cbe70 | src/app/modules/project/project-nav/project-nav.component.ts | TypeScript | www.github.com/peterclutch/portfolio/tree/main/src/app/modules/project/project-nav/project-nav.component.ts | https://raw.githubusercontent.com/peterclutch/portfolio/30cbe70/src/app/modules/project/project-nav/project-nav.component.ts | peterclutch/portfolio 30cbe70 src/app/modules/project/project-nav/project-nav.component.ts | true | 200 | 715 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { IProject } from '../../../shared/models/project.model';
import { ProjectService } from '../../../shared/services/project.service';
@Component({
selector: 'ph-project-nav',
templateUrl: './project-nav.component.htm... | 0 |
future4code/alves-Rafael-Sousa | f36281a | modulo4/heranca-polimorfismo/src/CommercialClient.ts | TypeScript | www.github.com/future4code/alves-Rafael-Sousa/tree/main/modulo4/heranca-polimorfismo/src/CommercialClient.ts | https://raw.githubusercontent.com/future4code/alves-Rafael-Sousa/f36281a/modulo4/heranca-polimorfismo/src/CommercialClient.ts | future4code/alves-Rafael-Sousa f36281a modulo4/heranca-polimorfismo/src/CommercialClient.ts | true | 200 | 506 | import { Client } from "./client";
import { Commerce } from "./commerce";
export class CommercialClient extends Commerce implements Client {
constructor(
private CNPJ: string,
floorsQuantity: number,
cep: string,
public name: string,
public registrationNumber: number,
public consumedEnergy: n... | 5 |
cj-yourjourney/easy-apply-react | 2d61eaa | src/store/store.ts | TypeScript | www.github.com/cj-yourjourney/easy-apply-react/tree/main/src/store/store.ts | https://raw.githubusercontent.com/cj-yourjourney/easy-apply-react/2d61eaa/src/store/store.ts | cj-yourjourney/easy-apply-react 2d61eaa src/store/store.ts | true | 200 | 1,639 | import { combineReducers, configureStore } from '@reduxjs/toolkit'
import { userLoginSlice, userRegisterSlice } from './users/userSlices'
import { profileSlice, updateProfileSlice } from './profiles/profileSlices'
import { createSkillsSlice, updateSkillsSlice } from './skills/skillSlices'
import { workExperienceSlice }... | 6 |
Rafamatic/Messages | 17393f9 | src/messages/messages.controller.ts | TypeScript | www.github.com/Rafamatic/Messages/tree/main/src/messages/messages.controller.ts | https://raw.githubusercontent.com/Rafamatic/Messages/17393f9/src/messages/messages.controller.ts | Rafamatic/Messages 17393f9 src/messages/messages.controller.ts | true | 200 | 798 | import { Controller , Get , Post , Body , Param , NotFoundException} from '@nestjs/common';
import { CreateMessageDto } from './dtos/create-message.dto';
import { MessagesService } from './messages.service';
@Controller('messages')
export class MessagesController {
constructor(public messageService: MessagesServ... | 2 |
prezioso-davide/fe-championstatistics | cd7376c | src/app/landing/service/player.service.ts | TypeScript | www.github.com/prezioso-davide/fe-championstatistics/tree/main/src/app/landing/service/player.service.ts | https://raw.githubusercontent.com/prezioso-davide/fe-championstatistics/cd7376c/src/app/landing/service/player.service.ts | prezioso-davide/fe-championstatistics cd7376c src/app/landing/service/player.service.ts | true | 200 | 1,275 | import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { environment } from "src/environments/environment";
import { PlayerViewDTO, PlayerCreationDTO, PlayerUpdateDTO } from "../model/player.model";
@Injectable({
providedIn:'root'
})
export class PlayerService{
u... | 3 |
Orillusion/orillusion | 8887427 | samples/graphic/_Sample_GraphicTrailing.ts | TypeScript | www.github.com/Orillusion/orillusion/tree/main/samples/graphic/_Sample_GraphicTrailing.ts | https://raw.githubusercontent.com/Orillusion/orillusion/8887427/samples/graphic/_Sample_GraphicTrailing.ts | Orillusion/orillusion 8887427 samples/graphic/_Sample_GraphicTrailing.ts | true | 200 | 6,448 | import { GUIHelp } from "@orillusion/debug/GUIHelp";
import { Object3D, Scene3D, Engine3D, AtmosphericComponent, CameraUtil, HoverCameraController, View3D, DirectLight, KelvinUtil, UnLitTexArrayMaterial, BitmapTexture2DArray, BitmapTexture2D, Vector3, Matrix4, BlendMode, Color, PostProcessingComponent, BloomPost, Anima... | 1 |
ChaitanyaBinmile/finalReact | 7c3aa75 | src/utilities/dummydata.ts | TypeScript | www.github.com/ChaitanyaBinmile/finalReact/tree/main/src/utilities/dummydata.ts | https://raw.githubusercontent.com/ChaitanyaBinmile/finalReact/7c3aa75/src/utilities/dummydata.ts | ChaitanyaBinmile/finalReact 7c3aa75 src/utilities/dummydata.ts | true | 200 | 2,723 | import { Img } from "../assets/icons";
import { MovieType } from "./Dummytype";
export const WomenList:MovieType[] =[
{
id: '1',
name: 'Mango',
image: Img.photo,
smallImg:[Img.first1,Img.first2,Img.first3,Img.first4,Img.first5],
like: false,
incart: false,
pr... | 7 |
redhat-appstudio/rhtap-e2e | f1d1252 | tests/gpts/gitlab/python.gitlabci.test.ts | TypeScript | www.github.com/redhat-appstudio/rhtap-e2e/tree/main/tests/gpts/gitlab/python.gitlabci.test.ts | https://raw.githubusercontent.com/redhat-appstudio/rhtap-e2e/f1d1252/tests/gpts/gitlab/python.gitlabci.test.ts | redhat-appstudio/rhtap-e2e f1d1252 tests/gpts/gitlab/python.gitlabci.test.ts | true | 200 | 687 | import { skipSuite } from "../../test-utils.ts";
import { loadSoftwareTemplatesTestsGlobals } from "../github/test-config/config.ts";
import { gitLabProviderGitLabCITests } from "./suites-config/gitlab_gitlabci_suite.ts";
const pythonTemplateName = 'python';
const stringOnRoute = 'Hello World!';
const runPythonBasic... | 4 |
nice-Code-90/CubixAngularExam | b8b23b9 | client/src/app/recipes/vote/vote.component.ts | TypeScript | www.github.com/nice-Code-90/CubixAngularExam/tree/main/client/src/app/recipes/vote/vote.component.ts | https://raw.githubusercontent.com/nice-Code-90/CubixAngularExam/b8b23b9/client/src/app/recipes/vote/vote.component.ts | nice-Code-90/CubixAngularExam b8b23b9 client/src/app/recipes/vote/vote.component.ts | true | 200 | 1,345 | import {
Component,
DestroyRef,
inject,
input,
output,
signal,
} from '@angular/core';
import { Recipe } from '../models/recipe.model';
import { RecipesService } from '../recipes.service';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { finalize, tap } from 'rxjs';
import { Loading... | 5 |
MohamedYansane/full-stack-couture | a7704b6 | angular-frontend/src/app/services/clients.service.ts | TypeScript | www.github.com/MohamedYansane/full-stack-couture/tree/main/angular-frontend/src/app/services/clients.service.ts | https://raw.githubusercontent.com/MohamedYansane/full-stack-couture/a7704b6/angular-frontend/src/app/services/clients.service.ts | MohamedYansane/full-stack-couture a7704b6 angular-frontend/src/app/services/clients.service.ts | true | 200 | 938 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Client } from '../client';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class ClientsService {
private baseUrl = 'http://localhost:8080/api/v1/clients';
constructor(private h... | 0 |
Akky7098/finance_service | eb9a6f8 | order.repository.ts | TypeScript | www.github.com/Akky7098/finance_service/tree/main/order.repository.ts | https://raw.githubusercontent.com/Akky7098/finance_service/eb9a6f8/order.repository.ts | Akky7098/finance_service eb9a6f8 order.repository.ts | true | 200 | 442 | import AppDataSource from '../config/db.config';
import { OrderEntity } from '../entity/order.entity';
export const OrderRepository = AppDataSource.getRepository(OrderEntity).extend({
async findById(id: string): Promise<OrderEntity | null> {
return await this.findOneBy({ id });
},
async createAndSav... | 2 |
rudenkoserhii/test-addax | c4082ab | src/store/store.ts | TypeScript | www.github.com/rudenkoserhii/test-addax/tree/main/src/store/store.ts | https://raw.githubusercontent.com/rudenkoserhii/test-addax/c4082ab/src/store/store.ts | rudenkoserhii/test-addax c4082ab src/store/store.ts | true | 200 | 1,312 | import { Action, ThunkAction, UnknownAction, configureStore } from '@reduxjs/toolkit';
import {
persistStore,
persistReducer,
FLUSH,
REHYDRATE,
PAUSE,
PERSIST,
PURGE,
REGISTER,
PersistConfig,
} from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import { tasksReducer } from 'store/t... | 3 |
VlasceanuCristina/typescript_course_project | 2405820 | index.ts | TypeScript | www.github.com/VlasceanuCristina/typescript_course_project/tree/main/index.ts | https://raw.githubusercontent.com/VlasceanuCristina/typescript_course_project/2405820/index.ts | VlasceanuCristina/typescript_course_project 2405820 index.ts | true | 200 | 4,401 | // Number Types mini-challenge 10 10.2
// Write a function that will only accept numbers and attend to
// all TypeScript weakness flags.
// : number
let isOpen: boolean = true;
import { showReviewTotal, populateUser, showDetails, makeMultiple, getTopTwoReviews } from './utils'
import { Permissions, LoyaltyUser } from... | 7 |
kamel-mustapha/portfolio | d637d98 | frontend/src/app/portfolio/portfolio.component.ts | TypeScript | www.github.com/kamel-mustapha/portfolio/tree/main/frontend/src/app/portfolio/portfolio.component.ts | https://raw.githubusercontent.com/kamel-mustapha/portfolio/d637d98/frontend/src/app/portfolio/portfolio.component.ts | kamel-mustapha/portfolio d637d98 frontend/src/app/portfolio/portfolio.component.ts | true | 200 | 4,576 | import { Component, OnInit, isDevMode } from '@angular/core';
import { animations } from '../animations';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-portfolio',
templateUrl: './portfolio.component.html',
styleUrls: ['./portfolio.component.css'],
animations: animations,
})
ex... | 1 |
just999/agliga | c4eea24 | actions/get-user.ts | TypeScript | www.github.com/just999/agliga/tree/main/actions/get-user.ts | https://raw.githubusercontent.com/just999/agliga/c4eea24/actions/get-user.ts | just999/agliga c4eea24 actions/get-user.ts | true | 200 | 1,187 | 'use server';
import { auth } from '@/auth';
import { db } from '@/lib/db';
export const getUserByEmail = async (email: string) => {
try {
const user = await db.user.findUnique({ where: { email } });
if (!user) throw new Error('No user found with email submitted by User');
return user;
} catch (erro... | 6 |
AdmanDev/socketio-decorator | 90c20c5 | packages/socketio-decorator/src/IoCContainer.ts | TypeScript | www.github.com/AdmanDev/socketio-decorator/tree/main/packages/socketio-decorator/src/IoCContainer.ts | https://raw.githubusercontent.com/AdmanDev/socketio-decorator/90c20c5/packages/socketio-decorator/src/IoCContainer.ts | AdmanDev/socketio-decorator 90c20c5 packages/socketio-decorator/src/IoCContainer.ts | true | 200 | 1,740 | import { ClassConstructorType } from "./Models/ClassConstructorType"
import { IoCProvider } from "./Models/IocProvider"
/**
* Defines the IoC container manager
*/
export class IoCContainer {
private static container = new Map<Function, Any>()
/**
* Get all instances of the services
* @param {Function} service... | 4 |
FaniloRa/Foruma | b73e12f | src/app/forum/forum.component.ts | TypeScript | www.github.com/FaniloRa/Foruma/tree/main/src/app/forum/forum.component.ts | https://raw.githubusercontent.com/FaniloRa/Foruma/b73e12f/src/app/forum/forum.component.ts | FaniloRa/Foruma b73e12f src/app/forum/forum.component.ts | true | 200 | 431 | import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
@Component({
selector: 'app-forum',
templateUrl: './forum.component.html',
styleUrls: ['./forum.component.css']
})
export class ForumComponent implements OnInit {
editorForm: FormGroup;
constructor()... | 5 |
weiyilee17/ecommerce-online-course-wsd | 5c7a109 | src/app/(customer-facing)/products/download/[downloadVerificationId]/route.ts | TypeScript | www.github.com/weiyilee17/ecommerce-online-course-wsd/tree/main/src/app/(customer-facing)/products/download/[downloadVerificationId]/route.ts | https://raw.githubusercontent.com/weiyilee17/ecommerce-online-course-wsd/5c7a109/src/app/%28customer-facing%29/products/download/%5BdownloadVerificationId%5D/route.ts | weiyilee17/ecommerce-online-course-wsd 5c7a109 src/app/(customer-facing)/products/download/[downloadVerificationId]/route.ts | true | 200 | 1,030 | import fs from 'fs/promises';
import { NextRequest, NextResponse } from 'next/server';
import db from '@/db/db';
export async function GET(
req: NextRequest,
{ params: { downloadVerificationId } }: { params: { downloadVerificationId: string } }
) {
const data = await db.downloadVerification.findUnique({
whe... | 0 |
crazymahesh/bethel-expense-tracker | 8ff69c3 | src/app/expenses/add-expense/add-expense.component.ts | TypeScript | www.github.com/crazymahesh/bethel-expense-tracker/tree/main/src/app/expenses/add-expense/add-expense.component.ts | https://raw.githubusercontent.com/crazymahesh/bethel-expense-tracker/8ff69c3/src/app/expenses/add-expense/add-expense.component.ts | crazymahesh/bethel-expense-tracker 8ff69c3 src/app/expenses/add-expense/add-expense.component.ts | true | 200 | 4,916 | import { Component, inject, OnInit } from '@angular/core';
import { Router, RouterLink } from '@angular/router';
import {
FormControl,
FormGroup,
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import { ExpenseService } from '../../core/services/expense.service';
import { BehaviorSubject } fr... | 2 |
RisRisChan/typescript_practice | f26ce67 | src/lesson01.ts | TypeScript | www.github.com/RisRisChan/typescript_practice/tree/main/src/lesson01.ts | https://raw.githubusercontent.com/RisRisChan/typescript_practice/f26ce67/src/lesson01.ts | RisRisChan/typescript_practice f26ce67 src/lesson01.ts | true | 200 | 2,598 | const main1 = () => {
// 変数の宣言と代入
const message = "Hello World!" //型推論
const message2: string = "Hello World!" //型アノテーション
console.log(message)
let breakfast = "toast"
console.log(breakfast)
breakfast = "fried egg"
console.log(breakfast)
// プリミティブ型(string、number、boolean)
const lastName: string = "In... | 3 |
jofuentesl/UOCJob | 6026c89 | src/app/shared/components/admin-layout/admin-layout.component.ts | TypeScript | www.github.com/jofuentesl/UOCJob/tree/main/src/app/shared/components/admin-layout/admin-layout.component.ts | https://raw.githubusercontent.com/jofuentesl/UOCJob/6026c89/src/app/shared/components/admin-layout/admin-layout.component.ts | jofuentesl/UOCJob 6026c89 src/app/shared/components/admin-layout/admin-layout.component.ts | true | 200 | 1,976 |
import {MediaMatcher} from '@angular/cdk/layout';
import {ChangeDetectorRef, Component, OnDestroy} from '@angular/core';
import { Store } from '@ngrx/store';
import { AppStore } from 'src/app/shared/states/store.interface';
import { AuthService } from 'src/app/shared/services/auth.service';
@Component({
selector: '... | 1 |
eldhosempeter07/todo-typescript | 71a01ca | src/Store/Todo/saga.ts | TypeScript | www.github.com/eldhosempeter07/todo-typescript/tree/main/src/Store/Todo/saga.ts | https://raw.githubusercontent.com/eldhosempeter07/todo-typescript/71a01ca/src/Store/Todo/saga.ts | eldhosempeter07/todo-typescript 71a01ca src/Store/Todo/saga.ts | true | 200 | 3,122 | import { Action } from "redux";
import { call, put, takeLatest } from "redux-saga/effects";
import { add, del, get, update } from "../../Helpers/api_helpers";
import { AddTodoProps, deleteTodoProps, getTodo, GetTodoByIdProps, GetTodosProps, updateTodoProps } from "../../Helpers/interfaces";
import { addTodoBegin, addTo... | 6 |
yitiaodaxianyu/SuperGunner | c99fb06 | extensions/oops-plugin-framework/assets/libs/gui/label/LabelNumber.ts | TypeScript | www.github.com/yitiaodaxianyu/SuperGunner/tree/main/extensions/oops-plugin-framework/assets/libs/gui/label/LabelNumber.ts | https://raw.githubusercontent.com/yitiaodaxianyu/SuperGunner/c99fb06/extensions/oops-plugin-framework/assets/libs/gui/label/LabelNumber.ts | yitiaodaxianyu/SuperGunner c99fb06 extensions/oops-plugin-framework/assets/libs/gui/label/LabelNumber.ts | true | 200 | 960 | /*
* @Author: dgflash
* @Date: 2022-04-14 17:08:01
* @LastEditors: dgflash
* @LastEditTime: 2023-08-11 10:27:04
*/
import { Label, _decorator, error } from "cc";
const { ccclass, property, menu } = _decorator;
/** 只能显示数字的标签组件 */
@ccclass("LabelNumber")
@menu('ui/label/LabelNumber')
export default class LabelNumb... | 4 |
pwnflakes25/FLPTurki | cc113a6 | src/app/blog/blog-post/blog-post.component.ts | TypeScript | www.github.com/pwnflakes25/FLPTurki/tree/main/src/app/blog/blog-post/blog-post.component.ts | https://raw.githubusercontent.com/pwnflakes25/FLPTurki/cc113a6/src/app/blog/blog-post/blog-post.component.ts | pwnflakes25/FLPTurki cc113a6 src/app/blog/blog-post/blog-post.component.ts | true | 200 | 1,263 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute} from '@angular/router';
import { BlogService } from "../../blog.service";
import { AuthorService } from "../../author/author.service";
import {Blog} from '../blog.model';
import {Author} from '../../author/author.model';
import {Subscription,Ob... | 5 |
chamika-damith/salon-booking-backend | 3b75d19 | src/models/AppointmentModel.ts | TypeScript | www.github.com/chamika-damith/salon-booking-backend/tree/main/src/models/AppointmentModel.ts | https://raw.githubusercontent.com/chamika-damith/salon-booking-backend/3b75d19/src/models/AppointmentModel.ts | chamika-damith/salon-booking-backend 3b75d19 src/models/AppointmentModel.ts | true | 200 | 686 | import CustomerModel from "./CustomerModel";
import ServiceModel from "./ServiceModel";
export default class AppointmentModel {
id: string;
customer: CustomerModel;
service: ServiceModel;
date: string;
time: string;
status: "scheduled" | "completed" | "cancelled";
constructor(
id: ... | 0 |
gervasioartur/clean-react | 78f5068 | src/infra/http/axios-http-client/axios-http-client.spec.ts | TypeScript | www.github.com/gervasioartur/clean-react/tree/main/src/infra/http/axios-http-client/axios-http-client.spec.ts | https://raw.githubusercontent.com/gervasioartur/clean-react/78f5068/src/infra/http/axios-http-client/axios-http-client.spec.ts | gervasioartur/clean-react 78f5068 src/infra/http/axios-http-client/axios-http-client.spec.ts | true | 200 | 1,274 | import { mockPostRequest } from '@/data/test'
import { mockAxios, mockHttpResponse } from '@/infra/test'
import axios from 'axios'
import { AxiosHttpClient } from './axios-http-client'
jest.mock('axios')
type SutTypes = {
sut: AxiosHttpClient
mockedAxios: jest.Mocked<typeof axios>
}
const makeSut = (): SutType... | 2 |
Mohamed0993/gestMission_Front_end | b44ca6d | src/app/sidebar/sidebar.component.ts | TypeScript | www.github.com/Mohamed0993/gestMission_Front_end/tree/main/src/app/sidebar/sidebar.component.ts | https://raw.githubusercontent.com/Mohamed0993/gestMission_Front_end/b44ca6d/src/app/sidebar/sidebar.component.ts | Mohamed0993/gestMission_Front_end b44ca6d src/app/sidebar/sidebar.component.ts | true | 200 | 931 | import { Component, OnInit } from '@angular/core';
import {faAngleRight} from '@fortawesome/free-solid-svg-icons'
import{faAngleDown} from '@fortawesome/free-solid-svg-icons'
import{faLaughWink} from '@fortawesome/free-solid-svg-icons'
import {AuthenticationService} from "../services/authentication.service";
import {Au... | 7 |
sinch/sinch-sdk-node | ce74964 | packages/conversation/src/models/v1/mod-callback-events/capability-event/capability-event.ts | TypeScript | www.github.com/sinch/sinch-sdk-node/tree/main/packages/conversation/src/models/v1/mod-callback-events/capability-event/capability-event.ts | https://raw.githubusercontent.com/sinch/sinch-sdk-node/ce74964/packages/conversation/src/models/v1/mod-callback-events/capability-event/capability-event.ts | sinch/sinch-sdk-node ce74964 packages/conversation/src/models/v1/mod-callback-events/capability-event/capability-event.ts | true | 200 | 1,336 | import { ConversationChannel } from '../../conversation-channel';
import { Reason } from '../../reason';
import { ConversationCallbackEvent } from '../conversation-callback-event';
/**
* This callback is used to deliver the results of the asynchronous capability checks.
*/
export interface CapabilityEvent extends Co... | 1 |
PrinceManfred/TadaTodo | 8c1c14f | TadaTodo.Client/src/plugins/index.ts | TypeScript | www.github.com/PrinceManfred/TadaTodo/tree/main/TadaTodo.Client/src/plugins/index.ts | https://raw.githubusercontent.com/PrinceManfred/TadaTodo/8c1c14f/TadaTodo.Client/src/plugins/index.ts | PrinceManfred/TadaTodo 8c1c14f TadaTodo.Client/src/plugins/index.ts | true | 200 | 485 | /**
* plugins/index.ts
*
* Automatically included in `./src/main.ts`
*/
// Plugins
import { createPinia } from 'pinia';
import vuetify from './vuetify';
import router from '@/router';
// Types
import type { App } from 'vue';
import { useUserStore } from '@/stores/user';
import loading from '@/plugins/loading';
e... | 3 |
ratep555/HappyKids | 586398b | angular-happykids/src/app/admin/messages/messages.component.ts | TypeScript | www.github.com/ratep555/HappyKids/tree/main/angular-happykids/src/app/admin/messages/messages.component.ts | https://raw.githubusercontent.com/ratep555/HappyKids/586398b/angular-happykids/src/app/admin/messages/messages.component.ts | ratep555/HappyKids 586398b angular-happykids/src/app/admin/messages/messages.component.ts | true | 200 | 2,701 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { ClientMessage } from 'src/app/shared/models/message';
import { UserParams } from 'src/app/shared/models/myparams';
import { MessagesService } from './messages.service';
import Swal from 'sweetale... | 6 |
Dzavialov/Photo-Studio-v2 | f38c5a8 | client/src/app/admin/equipment-management/create-equipment/create-equipment.component.ts | TypeScript | www.github.com/Dzavialov/Photo-Studio-v2/tree/main/client/src/app/admin/equipment-management/create-equipment/create-equipment.component.ts | https://raw.githubusercontent.com/Dzavialov/Photo-Studio-v2/f38c5a8/client/src/app/admin/equipment-management/create-equipment/create-equipment.component.ts | Dzavialov/Photo-Studio-v2 f38c5a8 client/src/app/admin/equipment-management/create-equipment/create-equipment.component.ts | true | 200 | 1,304 | import { Component, EventEmitter, Input, Output } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
import { EquipmentService } from 'src/app/_services/equipment.service';
@Component({
selector: 'app-create-equipment',
templateUrl: './create-eq... | 5 |
toneflix/naija-places | f30653a | website/.vitepress/utils/alova.ts | TypeScript | www.github.com/toneflix/naija-places/tree/main/website/.vitepress/utils/alova.ts | https://raw.githubusercontent.com/toneflix/naija-places/f30653a/website/.vitepress/utils/alova.ts | toneflix/naija-places f30653a website/.vitepress/utils/alova.ts | true | 200 | 2,772 | import { AlovaGenerics, Method, createAlova } from 'alova';
import VueHook, { VueHookType } from 'alova/vue';
import fetchAdapter, { FetchRequestInit } from 'alova/fetch';
import { bootstrapStore } from '../store/bootstrap';
import { createClientTokenAuthentication } from 'alova/client';
type ResponseMethod =
Met... | 4 |
apiter/cocos38_frame | b021ae6 | assets/test/event/SpindDoneEvent.ts | TypeScript | www.github.com/apiter/cocos38_frame/tree/main/assets/test/event/SpindDoneEvent.ts | https://raw.githubusercontent.com/apiter/cocos38_frame/b021ae6/assets/test/event/SpindDoneEvent.ts | apiter/cocos38_frame b021ae6 assets/test/event/SpindDoneEvent.ts | true | 200 | 385 | import { _decorator, Component, Node } from 'cc';
import { EventComponentBase } from '../../frame/event/EventComponentBase';
const { ccclass, property } = _decorator;
@ccclass('SpindDoneEvent')
export class SpindDoneEvent extends EventComponentBase {
protected _task_start(): void {
super._task_start... | 7 |
MVDem/farmers-market-API | f43bd93 | src/categories/dtos/paginatedCategories.dto.ts | TypeScript | www.github.com/MVDem/farmers-market-API/tree/main/src/categories/dtos/paginatedCategories.dto.ts | https://raw.githubusercontent.com/MVDem/farmers-market-API/f43bd93/src/categories/dtos/paginatedCategories.dto.ts | MVDem/farmers-market-API f43bd93 src/categories/dtos/paginatedCategories.dto.ts | true | 200 | 770 | import { ApiProperty } from '@nestjs/swagger';
import { IsArray, ValidateNested } from 'class-validator';
import { CategoryDto } from './category.dto';
import { Type } from 'class-transformer';
export class PaginatedCategoryDto {
@ApiProperty({
example: [
{
name_EN: 'name_EN',
name_HE: 'nam... | 0 |
digitalsoupteam/rwa-platform-backend | 99f2d0c | services/blockchain-scanner/src/server.ts | TypeScript | www.github.com/digitalsoupteam/rwa-platform-backend/tree/main/services/blockchain-scanner/src/server.ts | https://raw.githubusercontent.com/digitalsoupteam/rwa-platform-backend/99f2d0c/services/blockchain-scanner/src/server.ts | digitalsoupteam/rwa-platform-backend 99f2d0c services/blockchain-scanner/src/server.ts | true | 200 | 1,418 | import { Elysia } from 'elysia';
import { cors } from '@elysiajs/cors';
import { swagger } from '@elysiajs/swagger';
import mongoose from 'mongoose';
import { BlockchainScanner } from './blockchain-scanner';
import { logger } from '@rwa-platform/shared/src';
import { contracts } from './config/contracts';
const scanne... | 1 |
rassi0429/kokoa.live | f39edd6 | src/main.ts | TypeScript | www.github.com/rassi0429/kokoa.live/tree/main/src/main.ts | https://raw.githubusercontent.com/rassi0429/kokoa.live/f39edd6/src/main.ts | rassi0429/kokoa.live f39edd6 src/main.ts | true | 200 | 10,846 | import express from "express"
const app = express()
import httpServer from "http"
const hs = httpServer.createServer(app)
import { Server } from "socket.io"
import { spawn } from "child_process";
const io = new Server(hs, { maxHttpBufferSize: 1e10 })
spawn('ffmpeg', ['-h']).on('error', function (m) {
... | 3 |
mfbx9da4/poke-api | 943f5fa | openapi-generator/dist/models/EvolutionChainChain.d.ts | TypeScript | www.github.com/mfbx9da4/poke-api/tree/main/openapi-generator/dist/models/EvolutionChainChain.d.ts | https://raw.githubusercontent.com/mfbx9da4/poke-api/943f5fa/openapi-generator/dist/models/EvolutionChainChain.d.ts | mfbx9da4/poke-api 943f5fa openapi-generator/dist/models/EvolutionChainChain.d.ts | true | 200 | 713 | import { EvolutionChainChainEvolutionDetailsInner } from '../models/EvolutionChainChainEvolutionDetailsInner';
import { PokemonSpecies } from '../models/PokemonSpecies';
export declare class EvolutionChainChain {
'isBaby'?: boolean;
'species'?: PokemonSpecies;
'evolutionDetails'?: Array<EvolutionChainChainE... | 6 |
JonathanChan1234/CH5-Angular-Lutron | 08f5d5e | src/app/components/dimmer-load/dimmer-load.component.spec.ts | TypeScript | www.github.com/JonathanChan1234/CH5-Angular-Lutron/tree/main/src/app/components/dimmer-load/dimmer-load.component.spec.ts | https://raw.githubusercontent.com/JonathanChan1234/CH5-Angular-Lutron/08f5d5e/src/app/components/dimmer-load/dimmer-load.component.spec.ts | JonathanChan1234/CH5-Angular-Lutron 08f5d5e src/app/components/dimmer-load/dimmer-load.component.spec.ts | true | 200 | 657 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DimmerLoadComponent } from './dimmer-load.component';
describe('DimmerLoadComponent', () => {
let component: DimmerLoadComponent;
let fixture: ComponentFixture<DimmerLoadComponent>;
beforeEach(async(() => {
TestBed.configure... | 5 |
lucky401/moni | c4c4e01 | src/lib/auth-provider/constants/index.ts | TypeScript | www.github.com/lucky401/moni/tree/main/src/lib/auth-provider/constants/index.ts | https://raw.githubusercontent.com/lucky401/moni/c4c4e01/src/lib/auth-provider/constants/index.ts | lucky401/moni c4c4e01 src/lib/auth-provider/constants/index.ts | true | 200 | 1,116 | /* eslint-disable max-len */
/* eslint-disable import/no-dynamic-require */
/* eslint-disable @typescript-eslint/no-var-requires */
import * as Yup from 'yup';
const NAMESPACE = 'AUTH';
const APP_NAME = require('../../../../package.json').name;
const ENVIRONMENT = process.env.REACT_APP_STAGE || 'local';
export con... | 4 |
juan-esteban-daza/pokeshowdown-teambuilder | d0b8de1 | pages/TeamCreationPage.ts | TypeScript | www.github.com/juan-esteban-daza/pokeshowdown-teambuilder/tree/main/pages/TeamCreationPage.ts | https://raw.githubusercontent.com/juan-esteban-daza/pokeshowdown-teambuilder/d0b8de1/pages/TeamCreationPage.ts | juan-esteban-daza/pokeshowdown-teambuilder d0b8de1 pages/TeamCreationPage.ts | true | 200 | 1,641 | import { Page, Locator, expect } from '@playwright/test';
export class TeamCreationPage {
readonly page: Page;
readonly formatDropdownButton: Locator;
readonly formatSearchBox: Locator;
readonly addPokemonButton: Locator;
readonly pokemonSearchBox: Locator;
readonly validateButton: Locator;
... | 7 |
fluttergigs/backend | a1fcc80 | config/middlewares.ts | TypeScript | www.github.com/fluttergigs/backend/tree/main/config/middlewares.ts | https://raw.githubusercontent.com/fluttergigs/backend/a1fcc80/config/middlewares.ts | fluttergigs/backend a1fcc80 config/middlewares.ts | true | 200 | 466 | export default [
'strapi::logger',
'strapi::errors',
'strapi::security',
'strapi::poweredBy',
{
name: 'strapi::cors',
config: {
enabled: true,
origin: ['http://localhost:3000', 'http://localhost:4000', 'http://localhost:3001', 'https://fluttergigs.com', 'fluttergigs.com'],
headers: '... | 0 |
MalikAza/aoc-24 | 9e1a549 | utils/typescript/map.ts | TypeScript | www.github.com/MalikAza/aoc-24/tree/main/utils/typescript/map.ts | https://raw.githubusercontent.com/MalikAza/aoc-24/9e1a549/utils/typescript/map.ts | MalikAza/aoc-24 9e1a549 utils/typescript/map.ts | true | 200 | 4,277 | import { memoize } from "@utils/memoize"
export type CornersPositions = {
downRight: [number, number],
downLeft: [number, number],
upRight: [number, number],
upLeft: [number, number]
}
export type NSEWPositions = {
down: [number, number],
right: [number, number],
up: [number, number],
left: [number, n... | 3 |
testyard-utils/stats | 96c0684 | src/StringStats/index.ts | TypeScript | www.github.com/testyard-utils/stats/tree/main/src/StringStats/index.ts | https://raw.githubusercontent.com/testyard-utils/stats/96c0684/src/StringStats/index.ts | testyard-utils/stats 96c0684 src/StringStats/index.ts | true | 200 | 3,025 | interface Result {
characters: string
lowestLength: number
highestLength: number
averageLength: number
}
export default class StringStats {
private _strings: Record<string, number> = {}
private _characters: Record<string, number> = {}
private _lowestLength = NaN
private _highestLength = NaN
private ... | 1 |
Thomas-J-A/patientor | a285ef5 | src/typeGuards.ts | TypeScript | www.github.com/Thomas-J-A/patientor/tree/main/src/typeGuards.ts | https://raw.githubusercontent.com/Thomas-J-A/patientor/a285ef5/src/typeGuards.ts | Thomas-J-A/patientor a285ef5 src/typeGuards.ts | true | 200 | 983 | import { Gender, Discharge, HealthCheckRating, SickLeave } from "./types";
export const isString = (x: unknown): x is string => {
return typeof x === "string";
};
export const isNumber = (x: unknown): x is number => {
return typeof x === "number";
};
export const isGender = (x: string): x is Gender => {
return... | 6 |
dan4454/v17c | d58d4eb | src/app/click-button-with-code/click-button-with-code.component.ts | TypeScript | www.github.com/dan4454/v17c/tree/main/src/app/click-button-with-code/click-button-with-code.component.ts | https://raw.githubusercontent.com/dan4454/v17c/d58d4eb/src/app/click-button-with-code/click-button-with-code.component.ts | dan4454/v17c d58d4eb src/app/click-button-with-code/click-button-with-code.component.ts | true | 200 | 1,004 | import { Component, inject, OnInit, TemplateRef, viewChild } from '@angular/core';
import { ModalDismissReasons, NgbDatepickerModule, NgbModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-click-button-with-code',
standalone: true,
imports: [],
templateUrl: './click-button-with-code.componen... | 5 |
Mangesh98/Project-Management-System | def5d72 | Frontend/src/Redux/Subscription/Reducer.ts | TypeScript | www.github.com/Mangesh98/Project-Management-System/tree/main/Frontend/src/Redux/Subscription/Reducer.ts | https://raw.githubusercontent.com/Mangesh98/Project-Management-System/def5d72/Frontend/src/Redux/Subscription/Reducer.ts | Mangesh98/Project-Management-System def5d72 Frontend/src/Redux/Subscription/Reducer.ts | true | 200 | 1,152 | import { UserType } from "@/pages/IssueDetails/IssueDetails";
import * as actionType from "./ActionType";
interface userSubscription {
id: number;
planType: string;
isValid: boolean;
user:UserType
subscriptionStartDate: string;
subscriptionEndDate: string;
}
export interface SubscriptionState {
userSubscription... | 2 |
Gustavohb05/atividade_de_rec | c427950 | src/app/lista-prods/lista-prods-routing.module.ts | TypeScript | www.github.com/Gustavohb05/atividade_de_rec/tree/main/src/app/lista-prods/lista-prods-routing.module.ts | https://raw.githubusercontent.com/Gustavohb05/atividade_de_rec/c427950/src/app/lista-prods/lista-prods-routing.module.ts | Gustavohb05/atividade_de_rec c427950 src/app/lista-prods/lista-prods-routing.module.ts | true | 200 | 364 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ListaProdsPage } from './lista-prods.page';
const routes: Routes = [
{
path: '',
component: ListaProdsPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
... | 4 |
mjseok/SHabit | c0e05d4 | shabit-front/src/store/poseSlice.ts | TypeScript | www.github.com/mjseok/SHabit/tree/main/shabit-front/src/store/poseSlice.ts | https://raw.githubusercontent.com/mjseok/SHabit/c0e05d4/shabit-front/src/store/poseSlice.ts | mjseok/SHabit c0e05d4 shabit-front/src/store/poseSlice.ts | true | 200 | 411 | import { createSlice } from '@reduxjs/toolkit';
const poseSlice = createSlice({
name: 'poseSlice',
initialState: {
pose:'',
poseId:-1,
},
reducers: {
setPose: (state,action)=>{
state.pose = action.payload;
},
setPoseId :(state,action)=>{
state.poseId = action.payload;
}
... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.