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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cuong0301/accounting-api | 4c95364 | scripts/insert-script.ts | TypeScript | www.github.com/cuong0301/accounting-api/tree/main/scripts/insert-script.ts | https://raw.githubusercontent.com/cuong0301/accounting-api/4c95364/scripts/insert-script.ts | cuong0301/accounting-api 4c95364 scripts/insert-script.ts | true | 200 | 1,044 | import { createConnection, DataSourceOptions } from 'typeorm';
import { AccountEntity } from '../src/accounts/account.entity';
import { ormConfig } from '../src/config/ormconfig';
import { readFileExcel } from './read-file-excel';
import { Logger } from '../src/helpers/services/logger.service';
const logger = new Logg... | 5 |
vFlicker/node-applications | ae5d43b | node-crud-api/src/shared/libs/validator/validators/number.validator.ts | TypeScript | www.github.com/vFlicker/node-applications/tree/main/node-crud-api/src/shared/libs/validator/validators/number.validator.ts | https://raw.githubusercontent.com/vFlicker/node-applications/ae5d43b/node-crud-api/src/shared/libs/validator/validators/number.validator.ts | vFlicker/node-applications ae5d43b node-crud-api/src/shared/libs/validator/validators/number.validator.ts | true | 200 | 1,113 | import { ValidatorFieldError } from '../types.js';
import { Validator } from './validator.interface.js';
export class NumberValidator implements Validator {
private isRequired = false;
private minValue?: number;
private maxValue?: number;
required() {
this.isRequired = true;
return this;
}
min(va... | 0 |
marcosjeda/marcosjeda.github.io | 6c28225 | src/app/tecnologias/tecnologias.component.ts | TypeScript | www.github.com/marcosjeda/marcosjeda.github.io/tree/main/src/app/tecnologias/tecnologias.component.ts | https://raw.githubusercontent.com/marcosjeda/marcosjeda.github.io/6c28225/src/app/tecnologias/tecnologias.component.ts | marcosjeda/marcosjeda.github.io 6c28225 src/app/tecnologias/tecnologias.component.ts | true | 200 | 1,017 | import { Component } from '@angular/core';
@Component({
selector: 'app-tecnologias',
templateUrl: './tecnologias.component.html',
styleUrls: ['./tecnologias.component.scss']
})
export class TecnologiasComponent {
titulo = "Áreas de conocimiento:";
conocimientos = [
{
titulo: "PHP",
descripcio... | 3 |
216037150/medsecure | d4d7d9f | client/src/app/mobile/features/patient/patient-update-profile/patient-update-profile.component.ts | TypeScript | www.github.com/216037150/medsecure/tree/main/client/src/app/mobile/features/patient/patient-update-profile/patient-update-profile.component.ts | https://raw.githubusercontent.com/216037150/medsecure/d4d7d9f/client/src/app/mobile/features/patient/patient-update-profile/patient-update-profile.component.ts | 216037150/medsecure d4d7d9f client/src/app/mobile/features/patient/patient-update-profile/patient-update-profile.component.ts | true | 200 | 4,783 | import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Router } from '@angular/router';
import { NavbarComponent } from "../../shared/navbar/navbar.component";
import { BackButtonComponent } from '../../shared/back-button... | 2 |
Marina2022/framer-motion | bc94485 | src/components/13-TaskSongPreview/songs.ts | TypeScript | www.github.com/Marina2022/framer-motion/tree/main/src/components/13-TaskSongPreview/songs.ts | https://raw.githubusercontent.com/Marina2022/framer-motion/bc94485/src/components/13-TaskSongPreview/songs.ts | Marina2022/framer-motion bc94485 src/components/13-TaskSongPreview/songs.ts | true | 200 | 726 |
export const songs = [
{
id: 1,
title: "Random Access Memories",
artist: "Daft Punk",
cover: "/img/1.jpg",
description:
"An album by Daft Punk released in 2013, featuring the hit single 'Get Lucky'.",
},
{
id: 2,
title: "Lover",
artist: "Taylor Swift"... | 4 |
mherod/get-cookie | 90fe44c | src/index.ts | TypeScript | www.github.com/mherod/get-cookie/tree/main/src/index.ts | https://raw.githubusercontent.com/mherod/get-cookie/90fe44c/src/index.ts | mherod/get-cookie 90fe44c src/index.ts | true | 200 | 427 | /**
* Core cookie retrieval and manipulation functions
*/
export {
getCookie,
getChromeCookie,
getFirefoxCookie,
getGroupedRenderedCookies,
getMergedRenderedCookies,
} from "./core/cookies";
/**
* Type definitions for cookie-related interfaces and configurations
*/
export type {
CookieSpec,
ExportedC... | 1 |
DesignPlain/PlainDashboard | b8360a3 | src/app/Models/codegen/gcp/types/bigquery_TableTableConstraints.ts | TypeScript | www.github.com/DesignPlain/PlainDashboard/tree/main/src/app/Models/codegen/gcp/types/bigquery_TableTableConstraints.ts | https://raw.githubusercontent.com/DesignPlain/PlainDashboard/b8360a3/src/app/Models/codegen/gcp/types/bigquery_TableTableConstraints.ts | DesignPlain/PlainDashboard b8360a3 src/app/Models/codegen/gcp/types/bigquery_TableTableConstraints.ts | true | 200 | 1,721 | import {
InputType,
InputType_String_GetTypes,
InputType_Number_GetTypes,
InputType_Map_GetTypes,
} from '../../ds_base/InputType';
import { DynamicUIProps } from '../../ds_base/DynamicUIProps';
import {
bigquery_TableTableConstraintsPrimaryKey,
bigquery_TableTableConstraintsPrimaryKey_GetTypes,
} from './b... | 6 |
jsfc2199/HardwareStoreWithAngular | b1bb6e6 | src/app/receipt/receipt.service.ts | TypeScript | www.github.com/jsfc2199/HardwareStoreWithAngular/tree/main/src/app/receipt/receipt.service.ts | https://raw.githubusercontent.com/jsfc2199/HardwareStoreWithAngular/b1bb6e6/src/app/receipt/receipt.service.ts | jsfc2199/HardwareStoreWithAngular b1bb6e6 src/app/receipt/receipt.service.ts | true | 200 | 544 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Receipt } from '../models/receipt.model';
@Injectable({
providedIn: 'root'
})
export class ReceiptService {
constructor(private http: HttpClient) { }
getReceipts(){
return this.http.get<Receipt[]>('https... | 5 |
ivanl86/spotify-browser | d5bcbcf | server/src/routes/search/search.ts | TypeScript | www.github.com/ivanl86/spotify-browser/tree/main/server/src/routes/search/search.ts | https://raw.githubusercontent.com/ivanl86/spotify-browser/d5bcbcf/server/src/routes/search/search.ts | ivanl86/spotify-browser d5bcbcf server/src/routes/search/search.ts | true | 200 | 858 | import { Router } from 'express';
import axios, { AxiosResponse } from 'axios';
import TokenAuth from '../../services/token-auth';
import Token from '../../model/token';
const router = Router();
const tokenAuth = new TokenAuth();
router
.route("/")
.get(async (req, res) => {
try {
const token: Token = a... | 0 |
Expensify/App | 9a58e7d | modules/hybrid-app/src/index.ts | TypeScript | www.github.com/Expensify/App/tree/main/modules/hybrid-app/src/index.ts | https://raw.githubusercontent.com/Expensify/App/9a58e7d/modules/hybrid-app/src/index.ts | Expensify/App 9a58e7d modules/hybrid-app/src/index.ts | true | 200 | 859 | import type HybridAppModuleType from './types';
const HybridAppModule: HybridAppModuleType = {
isHybridApp() {
return false;
},
closeReactNativeApp() {
// eslint-disable-next-line no-console
console.warn('HybridAppModule: `closeReactNativeApp` should never be called on web');
},... | 7 |
rferog/forum-frontend | 942256a | src/components/Navbar/queries.ts | TypeScript | www.github.com/rferog/forum-frontend/tree/main/src/components/Navbar/queries.ts | https://raw.githubusercontent.com/rferog/forum-frontend/942256a/src/components/Navbar/queries.ts | rferog/forum-frontend 942256a src/components/Navbar/queries.ts | true | 200 | 811 | import { gql } from "@apollo/client";
import type { DocumentNode } from "graphql";
const CREATE_POST_MUTATION: DocumentNode = gql`
mutation CreatePostMutation(
$title: String!
$content: String!
$parentTopic: String!
) {
createPost(
title: $title
content: $content
parentTopic: $par... | 3 |
Karthi-Munirathinam/job-matching-using-ai | b366973 | src/entities/job/job.controller.ts | TypeScript | www.github.com/Karthi-Munirathinam/job-matching-using-ai/tree/main/src/entities/job/job.controller.ts | https://raw.githubusercontent.com/Karthi-Munirathinam/job-matching-using-ai/b366973/src/entities/job/job.controller.ts | Karthi-Munirathinam/job-matching-using-ai b366973 src/entities/job/job.controller.ts | true | 200 | 451 | import { Body, Controller, Get, Param, Post } from '@nestjs/common';
import { JobService } from './job.service';
@Controller('jobs')
export class JobController {
constructor(private readonly jobService: JobService) {}
@Get(':id/matches')
async findMatches(@Param('id') id: string) {
return this.jobService.f... | 4 |
MelvinVermeer/advent-of-code-2024 | a65f176 | src/02-red-nosed-reports.test.ts | TypeScript | www.github.com/MelvinVermeer/advent-of-code-2024/tree/main/src/02-red-nosed-reports.test.ts | https://raw.githubusercontent.com/MelvinVermeer/advent-of-code-2024/a65f176/src/02-red-nosed-reports.test.ts | MelvinVermeer/advent-of-code-2024 a65f176 src/02-red-nosed-reports.test.ts | true | 200 | 670 | import { part1, part2 } from "./02-red-nosed-reports";
import { readFileSync } from "fs";
const data = readFileSync("src/data/02", "utf8").split("\n");
// 88
describe("02 - Red-Nosed Reports", () => {
const sample = `7 6 4 2 1
1 2 7 8 9
9 7 6 2 1
1 3 2 4 5
8 6 4 4 1
1 3 6 7 9`.split("\n");
describe("Part 1", () =... | 2 |
EduardoAmaral/shopping-cart | 4342595 | src/cart/domain/cart.ts | TypeScript | www.github.com/EduardoAmaral/shopping-cart/tree/main/src/cart/domain/cart.ts | https://raw.githubusercontent.com/EduardoAmaral/shopping-cart/4342595/src/cart/domain/cart.ts | EduardoAmaral/shopping-cart 4342595 src/cart/domain/cart.ts | true | 200 | 1,556 | import { v4 as uuidv4 } from 'uuid';
import Product from './product';
export class CartItem {
readonly id: string;
readonly product: Product;
readonly cost: number;
constructor(params: { id?: string; product: Product; cost: number }) {
this.id = params.id || uuidv4();
this.product = params.product;
... | 1 |
uncommon-carp/old-pescador | 9572a56 | packages/service-graph/src/schema/generateSchema.ts | TypeScript | www.github.com/uncommon-carp/old-pescador/tree/main/packages/service-graph/src/schema/generateSchema.ts | https://raw.githubusercontent.com/uncommon-carp/old-pescador/9572a56/packages/service-graph/src/schema/generateSchema.ts | uncommon-carp/old-pescador 9572a56 packages/service-graph/src/schema/generateSchema.ts | true | 200 | 641 | import { makeExecutableSchema } from "@graphql-tools/schema";
import { readFileSync, writeFileSync } from "fs";
import { join } from "path";
import { getResolvers } from "../resolvers";
import { printSchema } from "graphql";
const schemaTemplate = readFileSync(join(__dirname, "./schemaTemplate.ts"), {
encoding: "utf... | 6 |
Otakanutyy/WebProject | 7ee198f | front1/front/src/app/home/home.component.ts | TypeScript | www.github.com/Otakanutyy/WebProject/tree/main/front1/front/src/app/home/home.component.ts | https://raw.githubusercontent.com/Otakanutyy/WebProject/7ee198f/front1/front/src/app/home/home.component.ts | Otakanutyy/WebProject 7ee198f front1/front/src/app/home/home.component.ts | true | 200 | 1,524 | import { Component, OnInit } from '@angular/core';
import { NavbarComponent } from '../navbar/navbar.component';
import { NgFor, NgIf } from '@angular/common';
import { RouterModule, RouterOutlet } from '@angular/router';
import { Product, ProductPicture } from '../models';
import { ProductService } from '../services/p... | 5 |
Dezzpil/meingym | 3a56b27 | src/app/trainings/[id]/actions.ts | TypeScript | www.github.com/Dezzpil/meingym/tree/main/src/app/trainings/[id]/actions.ts | https://raw.githubusercontent.com/Dezzpil/meingym/3a56b27/src/app/trainings/%5Bid%5D/actions.ts | Dezzpil/meingym 3a56b27 src/app/trainings/[id]/actions.ts | true | 200 | 2,028 | "use server";
import {
TrainingDateFormFieldType,
TrainingFormFieldsType,
} from "@/app/trainings/types";
import { revalidatePath } from "next/cache";
import { prisma } from "@/tools/db";
import { createExercise } from "@/core/exercises";
import { redirect } from "next/navigation";
import { ServerActionResult } fr... | 0 |
iarani5/tesinahibrido | 0ce1fb6 | src/app/services/photo.service.ts | TypeScript | www.github.com/iarani5/tesinahibrido/tree/main/src/app/services/photo.service.ts | https://raw.githubusercontent.com/iarani5/tesinahibrido/0ce1fb6/src/app/services/photo.service.ts | iarani5/tesinahibrido 0ce1fb6 src/app/services/photo.service.ts | true | 200 | 4,355 | import { Injectable } from '@angular/core';
import { Platform } from '@ionic/angular'; //used to retrieve information about the current device
//photo
import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera';
import { Filesystem, Directory } from '@capacitor/filesystem';
import { Preferences }... | 7 |
KenEucker/biketag-app | ff8f9ca | src/common/interfaces.ts | TypeScript | www.github.com/KenEucker/biketag-app/tree/main/src/common/interfaces.ts | https://raw.githubusercontent.com/KenEucker/biketag-app/ff8f9ca/src/common/interfaces.ts | KenEucker/biketag-app ff8f9ca src/common/interfaces.ts | true | 200 | 513 | import type { RouteLocationRaw } from 'vue-router'
/** Drawer Menu Item Interface */
export interface DrawerMenuItem {
/** Item Name */
title: string | '-'
/** Item Icon */
icon?: string
/** Router Location */
to?: RouteLocationRaw
/** is active */
active?: boolean
/** Sub Items */
items?: DrawerMe... | 3 |
aliiranpour/Nardeban | 42756e2 | src/modules/forgetPassword/hooks/useForgetPasswordHooks.ts | TypeScript | www.github.com/aliiranpour/Nardeban/tree/main/src/modules/forgetPassword/hooks/useForgetPasswordHooks.ts | https://raw.githubusercontent.com/aliiranpour/Nardeban/42756e2/src/modules/forgetPassword/hooks/useForgetPasswordHooks.ts | aliiranpour/Nardeban 42756e2 src/modules/forgetPassword/hooks/useForgetPasswordHooks.ts | true | 200 | 527 | import { useMutation } from "@tanstack/react-query";
import { axiosInstance, Methods } from "@/config/axios/Axios";
const useForgetPasswordHooks = () => {
let version = '';
let entityName = 'forgotPassword'
const { mutate: forgetPassword } = useMutation({
mutationFn: async (model: any) => {
... | 4 |
sheriff-gaye/clean_architecture | afe0001 | src/infrastructure/routes/task.router.ts | TypeScript | www.github.com/sheriff-gaye/clean_architecture/tree/main/src/infrastructure/routes/task.router.ts | https://raw.githubusercontent.com/sheriff-gaye/clean_architecture/afe0001/src/infrastructure/routes/task.router.ts | sheriff-gaye/clean_architecture afe0001 src/infrastructure/routes/task.router.ts | true | 200 | 985 | import express from 'express';
import { CreateTaskController } from '../../application/controllers/task/create-controller';
import { GetAllTaskController } from '../../application/controllers/task/getall-controller';
import { UpdateTaskController } from '../../application/controllers/task/update-controller';
import { D... | 2 |
imagomadov95/invest | 976cf18 | src/app/app.component.ts | TypeScript | www.github.com/imagomadov95/invest/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/imagomadov95/invest/976cf18/src/app/app.component.ts | imagomadov95/invest 976cf18 src/app/app.component.ts | true | 200 | 1,418 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import {HeaderComponent} from "./components/header/header.component";
import {ITabItem, TabsComponent} from "./components/tabs/tabs.component";
import {NgClass} from "@angular/common";
export enum tabsEnum {
gos,
bis,
buh,... | 6 |
erfanGharib/Chat-App | edf865d | client/src/middleware.ts | TypeScript | www.github.com/erfanGharib/Chat-App/tree/main/client/src/middleware.ts | https://raw.githubusercontent.com/erfanGharib/Chat-App/edf865d/client/src/middleware.ts | erfanGharib/Chat-App edf865d client/src/middleware.ts | true | 200 | 1,060 | import jwt, { JwtPayload } from 'jsonwebtoken';
import { NextRequest, NextResponse } from 'next/server';
import { removeBearerKeyword } from '../../shared/utils/removeBearerKeyword';
export function middleware(request: NextRequest) {
const currentDate = new Date();
const token = removeBearerKeyword(
re... | 1 |
TarasovMV/terralink-demo | 2aa3c83 | apps/terralink-demo/src/app/pages/map-page/map-page.component.ts | TypeScript | www.github.com/TarasovMV/terralink-demo/tree/main/apps/terralink-demo/src/app/pages/map-page/map-page.component.ts | https://raw.githubusercontent.com/TarasovMV/terralink-demo/2aa3c83/apps/terralink-demo/src/app/pages/map-page/map-page.component.ts | TarasovMV/terralink-demo 2aa3c83 apps/terralink-demo/src/app/pages/map-page/map-page.component.ts | true | 200 | 703 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {CommonModule} from '@angular/common';
import {SvgIconComponent} from 'angular-svg-icon';
import {TuiPanModule} from '@taiga-ui/cdk';
import {ButtonComponent} from '@terralink-demo/ui';
import {MapComponent} from '../../components/map/map.componen... | 7 |
PICH-IO/customer-project | 918176c | src/router/index.ts | TypeScript | www.github.com/PICH-IO/customer-project/tree/main/src/router/index.ts | https://raw.githubusercontent.com/PICH-IO/customer-project/918176c/src/router/index.ts | PICH-IO/customer-project 918176c src/router/index.ts | true | 200 | 295 | import { createRouter, createWebHistory } from 'vue-router';
const routes = [
{
path:'/',
name:'Mainlayout',
component:()=>import('@/pages/index.vue')
}
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes
});
export default router; | 5 |
lotsinsights/ecb-test-repo | 953e4ef | src/shared/stores/CompanyObjectiveStore.ts | TypeScript | www.github.com/lotsinsights/ecb-test-repo/tree/main/src/shared/stores/CompanyObjectiveStore.ts | https://raw.githubusercontent.com/lotsinsights/ecb-test-repo/953e4ef/src/shared/stores/CompanyObjectiveStore.ts | lotsinsights/ecb-test-repo 953e4ef src/shared/stores/CompanyObjectiveStore.ts | true | 200 | 1,161 | import Store from "./Store";
import AppStore from "./AppStore";
import { runInAction, toJS } from "mobx";
import { sortAlphabetically } from "../../logged-in/shared/utils/utils";
import ObjectiveCompany, {
IObjectiveCompany,
} from "../models/ObjectiveCompany";
export default class CompanyObjectiveStore extends Stor... | 2 |
kingju1c3/KJN3 | 9d1244a | src/utils/cache.ts | TypeScript | www.github.com/kingju1c3/KJN3/tree/main/src/utils/cache.ts | https://raw.githubusercontent.com/kingju1c3/KJN3/9d1244a/src/utils/cache.ts | kingju1c3/KJN3 9d1244a src/utils/cache.ts | true | 200 | 895 | interface CacheItem<T> {
value: T;
expiry: number;
}
class Cache {
private store: Map<string, CacheItem<any>>;
constructor() {
this.store = new Map();
this.startCleanupInterval();
}
set<T>(key: string, value: T, ttl: number): void {
this.store.set(key, {
value,
expiry: Date.now() ... | 6 |
YoCodingJosh/anime-stats | 593b6b6 | apps/api/src/index.test.ts | TypeScript | www.github.com/YoCodingJosh/anime-stats/tree/main/apps/api/src/index.test.ts | https://raw.githubusercontent.com/YoCodingJosh/anime-stats/593b6b6/apps/api/src/index.test.ts | YoCodingJosh/anime-stats 593b6b6 apps/api/src/index.test.ts | true | 200 | 1,513 | import { afterEach, describe, expect, test, vi} from "vitest";
import app from "./index";
describe("root endpoints", () => {
afterEach(() => {
vi.restoreAllMocks();
});
test("GET /", async () => {
const res = await app.request("/");
expect(await res.json()).toStrictEqual({ message: "Yo!" });
});
... | 1 |
ykdman/Waymaking | 84d5bb1 | src/hooks/useCategory.ts | TypeScript | www.github.com/ykdman/Waymaking/tree/main/src/hooks/useCategory.ts | https://raw.githubusercontent.com/ykdman/Waymaking/84d5bb1/src/hooks/useCategory.ts | ykdman/Waymaking 84d5bb1 src/hooks/useCategory.ts | true | 200 | 433 | import { useEffect, useState } from "react";
import { ICategory } from "../shared/models/category.model";
import { categoryApi } from "../shared/api";
export const useCategory = () => {
const [fetchedCategory, setFetchedCategory] = useState<ICategory[]>([]);
useEffect(() => {
categoryApi.fetchGetCategories().... | 0 |
custodiobjj97/nextjs-node | 24fd93a | api/src/controller/posts/listPosts.controller.ts | TypeScript | www.github.com/custodiobjj97/nextjs-node/tree/main/api/src/controller/posts/listPosts.controller.ts | https://raw.githubusercontent.com/custodiobjj97/nextjs-node/24fd93a/api/src/controller/posts/listPosts.controller.ts | custodiobjj97/nextjs-node 24fd93a api/src/controller/posts/listPosts.controller.ts | true | 200 | 436 | import { Request, Response } from "express";
import { ListPostsService } from "../../services/post/listPosts.service";
export const ListPostsController = async (req:Request, res:Response):Promise<void> =>{
try{
const listPosts = new ListPostsService()
const posts = await listPosts.excute()
res.s... | 7 |
mixin27/thai-lottery-api | ac358d3 | src/functions/getLotto.ts | TypeScript | www.github.com/mixin27/thai-lottery-api/tree/main/src/functions/getLotto.ts | https://raw.githubusercontent.com/mixin27/thai-lottery-api/ac358d3/src/functions/getLotto.ts | mixin27/thai-lottery-api ac358d3 src/functions/getLotto.ts | true | 200 | 4,315 | import { load } from 'cheerio';
import type { CheerioAPI } from 'cheerio';
const scrapeText = (cheerio: CheerioAPI) => (selector: string) =>
cheerio(selector)
.map((_, el) => cheerio(el).text())
.toArray();
export const getLotto = async (targetId: string | number) => {
const url = `https://news.sanook.com... | 5 |
CoderMahabub/sfbpms-server | 52bf3a3 | src/server.ts | TypeScript | www.github.com/CoderMahabub/sfbpms-server/tree/main/src/server.ts | https://raw.githubusercontent.com/CoderMahabub/sfbpms-server/52bf3a3/src/server.ts | CoderMahabub/sfbpms-server 52bf3a3 src/server.ts | true | 200 | 787 | import mongoose from 'mongoose';
import app from './app';
import config from './app/config';
import { Server } from 'http';
let server: Server;
async function main() {
try {
await mongoose.connect(config.db_url as string);
server = app.listen(config.port, () => {
console.log(
`Sports Facility... | 2 |
Aniszorek/TwitchChatAnalysis | 94e350e | frontend/src/app/features/stream/managment/stream-settings/stream-settings.component.ts | TypeScript | www.github.com/Aniszorek/TwitchChatAnalysis/tree/main/frontend/src/app/features/stream/managment/stream-settings/stream-settings.component.ts | https://raw.githubusercontent.com/Aniszorek/TwitchChatAnalysis/94e350e/frontend/src/app/features/stream/managment/stream-settings/stream-settings.component.ts | Aniszorek/TwitchChatAnalysis 94e350e frontend/src/app/features/stream/managment/stream-settings/stream-settings.component.ts | true | 200 | 4,527 | import {Component, ElementRef, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {MatIcon} from '@angular/material/icon';
import {BackendService} from '../../../../shared/services/backend.service';
import {TwitchService} from '../../../twitch/twitch.service';
import {ChannelInfo} from './models/channel.info';
... | 6 |
KapitanKAPSLOK/advent-of-code-2022 | 6595a83 | day8/treetop-tree-house.ts | TypeScript | www.github.com/KapitanKAPSLOK/advent-of-code-2022/tree/main/day8/treetop-tree-house.ts | https://raw.githubusercontent.com/KapitanKAPSLOK/advent-of-code-2022/6595a83/day8/treetop-tree-house.ts | KapitanKAPSLOK/advent-of-code-2022 6595a83 day8/treetop-tree-house.ts | true | 200 | 3,418 | import * as fs from "fs";
const data = fs.readFileSync("./input.txt", "utf-8");
const rows = data.split(/\r?\n/);
// Part 1
const visibilityGrid: boolean[][] = new Array<boolean[]>(rows.length);
const treesInRow = rows[0].length;
for (let i = 0; i < visibilityGrid.length; ++i) {
visibilityGrid[i] = new Array<boolea... | 1 |
dhrunam/hcgms | 9be60fe | hcgms_frontend/src/app/dashboard/home/home.service.ts | TypeScript | www.github.com/dhrunam/hcgms/tree/main/hcgms_frontend/src/app/dashboard/home/home.service.ts | https://raw.githubusercontent.com/dhrunam/hcgms/9be60fe/hcgms_frontend/src/app/dashboard/home/home.service.ts | dhrunam/hcgms 9be60fe hcgms_frontend/src/app/dashboard/home/home.service.ts | true | 200 | 1,065 | import { Injectable } from "@angular/core";
import { map } from "rxjs";
import { HttpService } from "src/app/services/http-service/http.service";
@Injectable({providedIn: 'root'})
export class HomeService{
constructor(private http: HttpService){}
getPropertiesCount(){
return this.http.get_properties().... | 0 |
juliette1527/gestionCoiffure | cbdd8ba | firstAngularApp/src/app/app-routing.module.ts | TypeScript | www.github.com/juliette1527/gestionCoiffure/tree/main/firstAngularApp/src/app/app-routing.module.ts | https://raw.githubusercontent.com/juliette1527/gestionCoiffure/cbdd8ba/firstAngularApp/src/app/app-routing.module.ts | juliette1527/gestionCoiffure cbdd8ba firstAngularApp/src/app/app-routing.module.ts | true | 200 | 701 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UtilisateurComponent } from './utilisateur/utilisateur.component';
import { ReservationComponent } from './reservation/reservation.component';
import { AvisComponent } from './avis/avis.component';
const routes:... | 7 |
eucamila22/Kenzie-Imoveis | 3a2f032 | src/services/realEstate/listAllRealEstate.service.ts | TypeScript | www.github.com/eucamila22/Kenzie-Imoveis/tree/main/src/services/realEstate/listAllRealEstate.service.ts | https://raw.githubusercontent.com/eucamila22/Kenzie-Imoveis/3a2f032/src/services/realEstate/listAllRealEstate.service.ts | eucamila22/Kenzie-Imoveis 3a2f032 src/services/realEstate/listAllRealEstate.service.ts | true | 200 | 576 | import { AppDataSource } from '../../data-source'
import { RealEstate } from '../../entities'
import { returnAllRealEstateSchema } from '../../schemas/realEstate.schema'
const listAllRealEstateService = async () => {
const realEstateRepository = AppDataSource.getRepository(RealEstate)
const findRealEstates: Ar... | 5 |
inkyMountain/algorithm | 9fc92fa | src/leetcode/ugly-number2.ts | TypeScript | www.github.com/inkyMountain/algorithm/tree/main/src/leetcode/ugly-number2.ts | https://raw.githubusercontent.com/inkyMountain/algorithm/9fc92fa/src/leetcode/ugly-number2.ts | inkyMountain/algorithm 9fc92fa src/leetcode/ugly-number2.ts | true | 200 | 1,893 | /*
* @lc app=leetcode.cn id=264 lang=typescript
*
* [264] 丑数 II
*/
// @lc code=start
/**
* 2 3 5
* 1 2 3 4 5 6 8 9 10 12 15
* 2:1 2 4 6
* 3:1 3 9
* 5:1 5
* 这道题需要发现的规律是什么?
* 观察 1 2 3 4 5 6 和 8 9 10 12 15 这两个数列(分别称为数列A和数列B),
* 将A中的每个数分别乘以 2 3 5,它们的结果中就包含了B中的每个数字。
* 为了从小到大地得到下一个丑数,维护三个指针,
* 分别代表当前数字乘以2,乘以3,... | 6 |
Brunolampoglio/LES-Reppi | dfd0b50 | src/modules/facade/Facade.ts | TypeScript | www.github.com/Brunolampoglio/LES-Reppi/tree/main/src/modules/facade/Facade.ts | https://raw.githubusercontent.com/Brunolampoglio/LES-Reppi/dfd0b50/src/modules/facade/Facade.ts | Brunolampoglio/LES-Reppi dfd0b50 src/modules/facade/Facade.ts | true | 200 | 5,282 | import { IGetEntity } from "@modules/controller/viewHelper/interface/IViewHelper";
import Domain from "@modules/models/Domain";
import { DAOAddress } from "@modules/repositories/DAOAddress";
import { DAOGender } from "@modules/repositories/DAOGender";
import { DAOPerson } from "@modules/repositories/DAOPerson";
import ... | 3 |
salviega/green-carbon-calculator-frontend | 51269db | src/models/project.model.ts | TypeScript | www.github.com/salviega/green-carbon-calculator-frontend/tree/main/src/models/project.model.ts | https://raw.githubusercontent.com/salviega/green-carbon-calculator-frontend/51269db/src/models/project.model.ts | salviega/green-carbon-calculator-frontend 51269db src/models/project.model.ts | true | 200 | 877 | import { CertificateDetails } from './certificate-details.model'
import { EmissionDetails } from './emission-details.model'
import { EventDetails } from './event-details.model'
export interface Project {
project_id: string
ownerWallet: string | undefined
name: string
description: string
responsableName: string
l... | 2 |
vincentiusraynaldi/online_shop | 9747ad1 | backend/src/mapper/addressMapper.ts | TypeScript | www.github.com/vincentiusraynaldi/online_shop/tree/main/backend/src/mapper/addressMapper.ts | https://raw.githubusercontent.com/vincentiusraynaldi/online_shop/9747ad1/backend/src/mapper/addressMapper.ts | vincentiusraynaldi/online_shop 9747ad1 backend/src/mapper/addressMapper.ts | true | 200 | 724 | import { Address } from '../entity/address';
import { AddressDTO } from '../dto/addressDTO';
class AddressMapper {
static createAddressFromDTO(dto: AddressDTO): Address {
const address = new Address();
address.street = dto.street;
address.houseNumber = dto.houseNumber;
address.city = dto.city;
ad... | 7 |
kym8821/comin-be | 165d44b | src/route/admin.ts | TypeScript | www.github.com/kym8821/comin-be/tree/main/src/route/admin.ts | https://raw.githubusercontent.com/kym8821/comin-be/165d44b/src/route/admin.ts | kym8821/comin-be 165d44b src/route/admin.ts | true | 200 | 1,273 | import express from "express";
import UserService from "../service/user";
import CommunityService from "../service/community";
import CommentService from "../service/comment";
import ReplyService from "../service/reply";
import { CommuntiyCreate } from "../domain/community/communityCreate";
import { CommentCreate } fro... | 0 |
vamsikartik01/JamesBond | 4687946 | src/app/right-side-bar/notes-new/notes-new.component.ts | TypeScript | www.github.com/vamsikartik01/JamesBond/tree/main/src/app/right-side-bar/notes-new/notes-new.component.ts | https://raw.githubusercontent.com/vamsikartik01/JamesBond/4687946/src/app/right-side-bar/notes-new/notes-new.component.ts | vamsikartik01/JamesBond 4687946 src/app/right-side-bar/notes-new/notes-new.component.ts | true | 200 | 694 | import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { NoteService } from 'src/app/services/notes.service';
@Component({
selector: 'app-notes-new',
templateUrl: './notes-new.component.html',
styleUrls: ['./notes-new.component.css']
})
export class NotesNewComponent {
@ViewChild('not... | 5 |
shaheer-ahmed-dev/enventoryapp | fb35c13 | src/app/booking/booking.component.ts | TypeScript | www.github.com/shaheer-ahmed-dev/enventoryapp/tree/main/src/app/booking/booking.component.ts | https://raw.githubusercontent.com/shaheer-ahmed-dev/enventoryapp/fb35c13/src/app/booking/booking.component.ts | shaheer-ahmed-dev/enventoryapp fb35c13 src/app/booking/booking.component.ts | true | 200 | 2,764 | import { Component, OnInit } from '@angular/core';
import { ConfigService } from '../config/config.service';
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Booking } from './dto/booking_dto';
import { CustomValidators } from './validators/custom_validators';
import... | 6 |
Matthijz98/IPRWC | c514976 | front-end/src/app/services/card.service.ts | TypeScript | www.github.com/Matthijz98/IPRWC/tree/main/front-end/src/app/services/card.service.ts | https://raw.githubusercontent.com/Matthijz98/IPRWC/c514976/front-end/src/app/services/card.service.ts | Matthijz98/IPRWC c514976 front-end/src/app/services/card.service.ts | true | 200 | 1,773 | import { Injectable } from '@angular/core';
import { Product } from '../interfaces/product';
import { CookieService } from 'ngx-cookie-service';
@Injectable({
providedIn: 'root'
})
export class CartService {
cart: {product: Product, quantity: number}[] = [];
getTotalPrice(): number {
return this.cart.reduce... | 3 |
aareesh1998/bankappmarch | 0c7fced | src/app/login/login.component.ts | TypeScript | www.github.com/aareesh1998/bankappmarch/tree/main/src/app/login/login.component.ts | https://raw.githubusercontent.com/aareesh1998/bankappmarch/0c7fced/src/app/login/login.component.ts | aareesh1998/bankappmarch 0c7fced src/app/login/login.component.ts | true | 200 | 1,107 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { DataService } from '../services/data.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.... | 2 |
Serchinastico/do-it-myself | 98abde0 | src/editor-web/src/extensions/local-image/LocalImageBridge.ts | TypeScript | www.github.com/Serchinastico/do-it-myself/tree/main/src/editor-web/src/extensions/local-image/LocalImageBridge.ts | https://raw.githubusercontent.com/Serchinastico/do-it-myself/98abde0/src/editor-web/src/extensions/local-image/LocalImageBridge.ts | Serchinastico/do-it-myself 98abde0 src/editor-web/src/extensions/local-image/LocalImageBridge.ts | true | 200 | 1,734 | import { BridgeExtension } from "@10play/tentap-editor";
import {
LocalImage,
OnImageClickProps,
SetLocalImagesProps,
} from "./localImage";
type LocalImageEditorInstance = {
setLocalImages: (props: SetLocalImagesProps) => void;
};
type LocalImageEditorState = object;
declare module "@10play/tentap-editor" {... | 7 |
kamarudheen-916/do_travel | 20fec13 | backend/src/useCase/UserUseCase.ts | TypeScript | www.github.com/kamarudheen-916/do_travel/tree/main/backend/src/useCase/UserUseCase.ts | https://raw.githubusercontent.com/kamarudheen-916/do_travel/20fec13/backend/src/useCase/UserUseCase.ts | kamarudheen-916/do_travel 20fec13 backend/src/useCase/UserUseCase.ts | true | 200 | 1,100 | import User from '../domain_entities/user'
import IuserRepository from './interface/IuserRepository'
class UserUseCase{
private iUserRepository : IuserRepository;
constructor(iUserRepository :IuserRepository){
this.iUserRepository = iUserRepository;
}
async userSignUp (userData:User){
... | 0 |
LucasSola85/digital-wallet | 453cbfc | src/wallet/wallet.service.ts | TypeScript | www.github.com/LucasSola85/digital-wallet/tree/main/src/wallet/wallet.service.ts | https://raw.githubusercontent.com/LucasSola85/digital-wallet/453cbfc/src/wallet/wallet.service.ts | LucasSola85/digital-wallet 453cbfc src/wallet/wallet.service.ts | true | 200 | 3,940 | import { Injectable } from '@nestjs/common';
import { CreateWalletDto } from './dto/create-wallet.dto';
import { UpdateWalletDto } from './dto/update-wallet.dto';
import { InjectModel } from '@nestjs/mongoose';
import { Wallet } from './entities/wallet.entity';
import { Model, Types, isValidObjectId } from 'mongoose';
... | 2 |
Alien-Worlds/aw-history | f2368d9 | src/bootstrap/bootstrap.errors.ts | TypeScript | www.github.com/Alien-Worlds/aw-history/tree/main/src/bootstrap/bootstrap.errors.ts | https://raw.githubusercontent.com/Alien-Worlds/aw-history/f2368d9/src/bootstrap/bootstrap.errors.ts | Alien-Worlds/aw-history f2368d9 src/bootstrap/bootstrap.errors.ts | true | 200 | 1,584 | /**
* Represents an error when the start block is undefined.
*
* @class
* @extends {Error}
*/
export class UndefinedStartBlockError extends Error {
constructor() {
super(`Undefined start block. `);
}
}
/**
* Represents an error when the end block is out of range.
*
* @class
* @extends {Error}
*/
expo... | 5 |
jesseamos/sportify-backend | 946b56c | src/artist/dtos/artist.dto.ts | TypeScript | www.github.com/jesseamos/sportify-backend/tree/main/src/artist/dtos/artist.dto.ts | https://raw.githubusercontent.com/jesseamos/sportify-backend/946b56c/src/artist/dtos/artist.dto.ts | jesseamos/sportify-backend 946b56c src/artist/dtos/artist.dto.ts | true | 200 | 345 | import { IsString, IsOptional, IsArray, IsObject } from "class-validator";
export class ArtistDto {
@IsString()
name: string
@IsString()
bio: string
@IsArray()
genres: string[]
@IsString()
image: string
@IsOptional()
@IsObject()
social_link: { x: string, instagram: string... | 7 |
MateusSilva16/projeto-company | 2c021d6 | src/components/ServiceComponents/serviceCard/styles.ts | TypeScript | www.github.com/MateusSilva16/projeto-company/tree/main/src/components/ServiceComponents/serviceCard/styles.ts | https://raw.githubusercontent.com/MateusSilva16/projeto-company/2c021d6/src/components/ServiceComponents/serviceCard/styles.ts | MateusSilva16/projeto-company 2c021d6 src/components/ServiceComponents/serviceCard/styles.ts | true | 200 | 1,449 | import tokens from '@/utils/tokens';
import styled from 'styled-components';
export const Container = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
background-color: ${tokens.colors.color2};
padding: 1em;
border: 1px solid #7a7a7a;
border-radius: 5px;
width: 100%;
margin... | 0 |
LevinCa/flashacom | 6e70fb8 | frontend/src/model/Flatmate.ts | TypeScript | www.github.com/LevinCa/flashacom/tree/main/frontend/src/model/Flatmate.ts | https://raw.githubusercontent.com/LevinCa/flashacom/6e70fb8/frontend/src/model/Flatmate.ts | LevinCa/flashacom 6e70fb8 frontend/src/model/Flatmate.ts | true | 200 | 996 | import dayjs, {Dayjs} from "dayjs";
export type Flatmate = {
id: string,
firstName: string,
lastName: string,
photoUrl: string,
dateOfBirth: Dayjs,
eatingHabits: EatingHabits,
contact: Contact,
availability: string
}
export type PersonalInfo = {
firstName: string,
lastName: str... | 6 |
mk-hill/serverless-todo | da8912b | backend/src/data/attachments.ts | TypeScript | www.github.com/mk-hill/serverless-todo/tree/main/backend/src/data/attachments.ts | https://raw.githubusercontent.com/mk-hill/serverless-todo/da8912b/backend/src/data/attachments.ts | mk-hill/serverless-todo da8912b backend/src/data/attachments.ts | true | 200 | 1,332 | import { S3 } from '../aws';
import { createLogger } from '../utils/logger';
const log = createLogger('data/attachments');
const Bucket = process.env.TODO_ITEM_ATTACHMENTS_BUCKET;
const signedUrlExpiration = process.env.SIGNED_URL_EXPIRATION ?? 600;
const s3 = new S3({
signatureVersion: 'v4',
region: process.env... | 2 |
darwinsalinas/pokedex-nest | 3dad1a0 | src/pokemon/pokemon.service.ts | TypeScript | www.github.com/darwinsalinas/pokedex-nest/tree/main/src/pokemon/pokemon.service.ts | https://raw.githubusercontent.com/darwinsalinas/pokedex-nest/3dad1a0/src/pokemon/pokemon.service.ts | darwinsalinas/pokedex-nest 3dad1a0 src/pokemon/pokemon.service.ts | true | 200 | 2,834 | import { BadRequestException, Injectable, InternalServerErrorException, NotFoundException } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { InjectModel } from '@nestjs/mongoose';
import { isValidObjectId, Model } from 'mongoose';
import { CreatePokemonDto } from './dto/create-pokemon.dto... | 5 |
kimnerd625/echo-for-eco | fec21f7 | src/pages/api/auth/[...nextAuth].ts | TypeScript | www.github.com/kimnerd625/echo-for-eco/tree/main/src/pages/api/auth/[...nextAuth].ts | https://raw.githubusercontent.com/kimnerd625/echo-for-eco/fec21f7/src/pages/api/auth/%5B...nextAuth%5D.ts | kimnerd625/echo-for-eco fec21f7 src/pages/api/auth/[...nextAuth].ts | true | 200 | 606 | import NextAuth, { NextAuthOptions } from "next-auth";
import GoogleProvider from "next-auth/providers/google";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
export const authOptions: NextAuthOptions = {
// Provider: OAut... | 0 |
jmrl23/2fa-authenticator | 924ef73 | src/types/globals.d.ts | TypeScript | www.github.com/jmrl23/2fa-authenticator/tree/main/src/types/globals.d.ts | https://raw.githubusercontent.com/jmrl23/2fa-authenticator/924ef73/src/types/globals.d.ts | jmrl23/2fa-authenticator 924ef73 src/types/globals.d.ts | true | 200 | 420 | import type { Prisma } from '@prisma/client';
export declare global {
interface Authenticator
extends Prisma.AuthenticatorGetPayload<{
select: {
id: true;
createdAt: true;
updatedAt: true;
platform: true;
description: true;
};
}> {
code: string;
}
... | 7 |
jdokey/ga-wmas-ui | 67d8ab2 | src/app/_shared/pipes/details-highlight.pipe.ts | TypeScript | www.github.com/jdokey/ga-wmas-ui/tree/main/src/app/_shared/pipes/details-highlight.pipe.ts | https://raw.githubusercontent.com/jdokey/ga-wmas-ui/67d8ab2/src/app/_shared/pipes/details-highlight.pipe.ts | jdokey/ga-wmas-ui 67d8ab2 src/app/_shared/pipes/details-highlight.pipe.ts | true | 200 | 796 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'detailsHighlight',
standalone: true
})
export class DetailsHighlightPipe implements PipeTransform {
transform(value: string): string {
// Use regular expression to match "Bonus Deer" or "Sign-in"
const regex = /(Bonus Deer|Sign-in|Bonus... | 6 |
shahab5191/shirinBlog-auth | 1c5c418 | src/routes/signup.ts | TypeScript | www.github.com/shahab5191/shirinBlog-auth/tree/main/src/routes/signup.ts | https://raw.githubusercontent.com/shahab5191/shirinBlog-auth/1c5c418/src/routes/signup.ts | shahab5191/shirinBlog-auth 1c5c418 src/routes/signup.ts | true | 200 | 1,394 | import express, { type NextFunction, type Request, type Response } from 'express'
import { body, validationResult } from 'express-validator'
import { SBError, USER_CREATION_ERR, VALIDATION_ERR } from '@shahab5191/shared'
import User from '../models/user'
import { createToken, hashPassword } from '../utils/encryption'
... | 5 |
KingAshu22/Kohinoor-Admin | 53c6dcc | app/api/raw-materials/[rawMaterialId]/route.ts | TypeScript | www.github.com/KingAshu22/Kohinoor-Admin/tree/main/app/api/raw-materials/[rawMaterialId]/route.ts | https://raw.githubusercontent.com/KingAshu22/Kohinoor-Admin/53c6dcc/app/api/raw-materials/%5BrawMaterialId%5D/route.ts | KingAshu22/Kohinoor-Admin 53c6dcc app/api/raw-materials/[rawMaterialId]/route.ts | true | 200 | 2,695 | import { NextRequest, NextResponse } from "next/server";
import { connectToDB } from "@/lib/mongoDB";
import RawMaterial from "@/lib/models/RawMaterial";
export const GET = async (
req: NextRequest,
{ params }: { params: { rawMaterialId: string } }
) => {
try {
await connectToDB();
const r... | 2 |
grommoott/ty-breadish | 9447f58 | src/6.shared/model/interfaces/bakery.ts | TypeScript | www.github.com/grommoott/ty-breadish/tree/main/src/6.shared/model/interfaces/bakery.ts | https://raw.githubusercontent.com/grommoott/ty-breadish/9447f58/src/6.shared/model/interfaces/bakery.ts | grommoott/ty-breadish 9447f58 src/6.shared/model/interfaces/bakery.ts | true | 200 | 694 | import { BakeryId } from "../types/primitives"
import { Coords } from "../types/primitives/coords"
interface IBakery {
id: BakeryId
address: string
coords: Coords
}
function responseDataToBakery(data: any): IBakery {
if (!(
"id" in data &&
"address" in data &&
"coords" in data)... | 7 |
AnushkaKohli/youtube-notes | 2b197c5 | app/api/existingUser/route.ts | TypeScript | www.github.com/AnushkaKohli/youtube-notes/tree/main/app/api/existingUser/route.ts | https://raw.githubusercontent.com/AnushkaKohli/youtube-notes/2b197c5/app/api/existingUser/route.ts | AnushkaKohli/youtube-notes 2b197c5 app/api/existingUser/route.ts | true | 200 | 670 | import { NextRequest, NextResponse } from "next/server";
import connectMongoDB from "@/utils/mongodb";
import User from "@/models/User";
export const POST = async (request: NextRequest) => {
try {
const { email } = await request.json();
await connectMongoDB();
const existingUser = await User.findOne({ em... | 0 |
UW-Macrostrat/macrostrat-api | 119141c | v2/mobile/map_query.ts | TypeScript | www.github.com/UW-Macrostrat/macrostrat-api/tree/main/v2/mobile/map_query.ts | https://raw.githubusercontent.com/UW-Macrostrat/macrostrat-api/119141c/v2/mobile/map_query.ts | UW-Macrostrat/macrostrat-api 119141c v2/mobile/map_query.ts | true | 200 | 14,658 | var api = require("../api");
var async = require("async");
var larkin = require("../larkin");
var _ = require("underscore");
var LINE_TOLERANCE = 20;
var scaleLookup = {
0: "tiny",
1: "tiny",
2: "tiny",
3: "tiny",
4: "small",
5: "small",
6: "medium",
7: "medium",
8: "medium",
9: "medium",
10: "l... | 6 |
piyushkmr/streamium | f354766 | src/lib/server/auth.ts | TypeScript | www.github.com/piyushkmr/streamium/tree/main/src/lib/server/auth.ts | https://raw.githubusercontent.com/piyushkmr/streamium/f354766/src/lib/server/auth.ts | piyushkmr/streamium f354766 src/lib/server/auth.ts | true | 200 | 1,368 | import { prisma } from "./prisma";
import type { User } from "@prisma/client";
import jwt from "jsonwebtoken";
import bcrypt from "bcryptjs";
import type { Cookies } from "@sveltejs/kit";
const JWT_SECRET = process.env.JWT_SECRET || "your-secret-key";
const COOKIE_NAME = "session";
interface Session {
userId: numbe... | 5 |
tjc6286/YorkshireInnBnB | fa1b189 | src/types/VendorBooking.d.ts | TypeScript | www.github.com/tjc6286/YorkshireInnBnB/tree/main/src/types/VendorBooking.d.ts | https://raw.githubusercontent.com/tjc6286/YorkshireInnBnB/fa1b189/src/types/VendorBooking.d.ts | tjc6286/YorkshireInnBnB fa1b189 src/types/VendorBooking.d.ts | true | 200 | 1,888 | /**
* The VendorBooking interface is used to describe the data structure of the
* data returned from the vendor API. This interface is used to type
* the data returned from the vendor API, and it is used to type the
* vendorBooking object in the vendorBookingReducer.
*/
type VendorBooking = {
vendorKey: string;... | 2 |
Muhamed-al/tekflix_glsi_d | 98cc680 | src/app/movie-details/movie-details.component.ts | TypeScript | www.github.com/Muhamed-al/tekflix_glsi_d/tree/main/src/app/movie-details/movie-details.component.ts | https://raw.githubusercontent.com/Muhamed-al/tekflix_glsi_d/98cc680/src/app/movie-details/movie-details.component.ts | Muhamed-al/tekflix_glsi_d 98cc680 src/app/movie-details/movie-details.component.ts | true | 200 | 784 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Film, FILMS } from '../models/film';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@Component({
selector: 'app-movie-details',
standalone: false,
templateUrl: './movie-detail... | 0 |
microeinhundert/radonis | 90cfd15 | packages/radonis-server/src/assets_manager/main.ts | TypeScript | www.github.com/microeinhundert/radonis/tree/main/packages/radonis-server/src/assets_manager/main.ts | https://raw.githubusercontent.com/microeinhundert/radonis/90cfd15/packages/radonis-server/src/assets_manager/main.ts | microeinhundert/radonis 90cfd15 packages/radonis-server/src/assets_manager/main.ts | true | 200 | 2,368 | /*
* @microeinhundert/radonis-server
*
* (c) Leon Seipp <l.seipp@microeinhundert.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { ApplicationContract } from '@ioc:Adonis/Core/Application'
import { readAssetsManif... | 7 |
ArthurBeznik/cms_ingenius | af7778c | src/utils/fileUtils.ts | TypeScript | www.github.com/ArthurBeznik/cms_ingenius/tree/main/src/utils/fileUtils.ts | https://raw.githubusercontent.com/ArthurBeznik/cms_ingenius/af7778c/src/utils/fileUtils.ts | ArthurBeznik/cms_ingenius af7778c src/utils/fileUtils.ts | true | 200 | 546 | import { promises as fs } from "fs";
import createError from "./error";
export const readJSONFile = async (path: string) => {
try {
const data = await fs.readFile(path, "utf-8");
return JSON.parse(data);
} catch (error) {
throw createError(`Reading from JSON file at [${path}]`, 500);
}
};
export con... | 4 |
gerouvi/create-process-formik | d52684b | src/lib/api/sdkApi.ts | TypeScript | www.github.com/gerouvi/create-process-formik/tree/main/src/lib/api/sdkApi.ts | https://raw.githubusercontent.com/gerouvi/create-process-formik/d52684b/src/lib/api/sdkApi.ts | gerouvi/create-process-formik d52684b src/lib/api/sdkApi.ts | true | 200 | 2,091 | import {
Election,
EnvOptions,
PlainCensus,
VocdoniSDKClient,
WeightedCensus,
} from '@vocdoni/sdk';
export const getClient = (singer: any) =>
new VocdoniSDKClient({
env: EnvOptions.DEV,
wallet: singer,
});
export const updateBalance = async (client: any) => {
const acc = await client.createAc... | 5 |
vicwomg/fakebook-finder | 547905c | api/src/shared/pdf_lookup.ts | TypeScript | www.github.com/vicwomg/fakebook-finder/tree/main/api/src/shared/pdf_lookup.ts | https://raw.githubusercontent.com/vicwomg/fakebook-finder/547905c/api/src/shared/pdf_lookup.ts | vicwomg/fakebook-finder 547905c api/src/shared/pdf_lookup.ts | true | 200 | 2,272 | var fs = require("fs");
import { masterIndex } from "@server";
import _ from "lodash";
import { PDFDocument, ParseSpeeds } from "pdf-lib";
import { libraryObject } from "./constants";
import pdfLibrary from "./pdf_library";
const lookupLibrary = (fakebookName: string) => {
return pdfLibrary.find((e: libraryObject) =... | 2 |
Natjimor/CheckPoint2 | d01dc5b | src/components/radomCat/cat.ts | TypeScript | www.github.com/Natjimor/CheckPoint2/tree/main/src/components/radomCat/cat.ts | https://raw.githubusercontent.com/Natjimor/CheckPoint2/d01dc5b/src/components/radomCat/cat.ts | Natjimor/CheckPoint2 d01dc5b src/components/radomCat/cat.ts | true | 200 | 1,012 |
export enum cat_props {
"image"="image",
"fact"="fact"
}
class Cat extends HTMLElement {
fact?: string;
image?: string;
static get observedAttributes(){
return
}
attributeChangedCallback(propName:cat_props, _:string| undefined, newValue: string| undefined ){
... | 0 |
oussema269/Courzelo | 15cc796 | CourzeloFront/src/app/cour/video/list/list.component.ts | TypeScript | www.github.com/oussema269/Courzelo/tree/main/CourzeloFront/src/app/cour/video/list/list.component.ts | https://raw.githubusercontent.com/oussema269/Courzelo/15cc796/CourzeloFront/src/app/cour/video/list/list.component.ts | oussema269/Courzelo 15cc796 CourzeloFront/src/app/cour/video/list/list.component.ts | true | 200 | 1,059 | import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { VideoService } from 'src/app/service/video.service';
@Component({
selector: 'app-list',
templateUrl: './list.component.html',
styleUrls: ['./list.component.css']
})
export class ListComponent {
videoTi... | 6 |
stagas/tokenizer-next | d96d981 | src/index.ts | TypeScript | www.github.com/stagas/tokenizer-next/tree/main/src/index.ts | https://raw.githubusercontent.com/stagas/tokenizer-next/d96d981/src/index.ts | stagas/tokenizer-next d96d981 src/index.ts | true | 200 | 2,380 | // eslint-disable-next-line @typescript-eslint/no-unused-vars
import { MatchToken, matchToToken, Token } from 'match-to-token'
import { joinRegExps } from './util'
/**
* Create a {@link TokenizerFactory} for the given RegExps.
*
* To capture, RegExps must use a [named group](https://developer.mozilla.org/en-US/docs... | 4 |
onlinemenu-uz/backend | ad16bf8 | src/common/utils/setup-swagger.util.ts | TypeScript | www.github.com/onlinemenu-uz/backend/tree/main/src/common/utils/setup-swagger.util.ts | https://raw.githubusercontent.com/onlinemenu-uz/backend/ad16bf8/src/common/utils/setup-swagger.util.ts | onlinemenu-uz/backend ad16bf8 src/common/utils/setup-swagger.util.ts | true | 200 | 1,588 | import { Request, Response } from 'express'
import type { INestApplication } from "@nestjs/common";
import { ConfigService, ConfigType } from "@nestjs/config";
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
import { SwaggerConfig } from "../configs/swagger.config";
export function setupSwagger(app: ... | 5 |
bitsofrishabh/hotel-inventory | 5d25574 | src/app/comment/comment.component.ts | TypeScript | www.github.com/bitsofrishabh/hotel-inventory/tree/main/src/app/comment/comment.component.ts | https://raw.githubusercontent.com/bitsofrishabh/hotel-inventory/5d25574/src/app/comment/comment.component.ts | bitsofrishabh/hotel-inventory 5d25574 src/app/comment/comment.component.ts | true | 200 | 717 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { map, pluck } from 'rxjs';
import { Comments } from './comment';
import { CommentService } from './comment.service';
@Component({
selector: 'app-comment',
templateUrl: './comment.component.html',
styleUrl... | 2 |
shubhamxdd/e-commerce | dfb7d57 | app/api/auth/register/route.ts | TypeScript | www.github.com/shubhamxdd/e-commerce/tree/main/app/api/auth/register/route.ts | https://raw.githubusercontent.com/shubhamxdd/e-commerce/dfb7d57/app/api/auth/register/route.ts | shubhamxdd/e-commerce dfb7d57 app/api/auth/register/route.ts | true | 200 | 997 | import { NextRequest, NextResponse } from "next/server";
import prisma from "@/prisma/prisma";
// import bcrypt from "bcrypt";
export async function POST(request: NextRequest) {
// destructure email, name, password from request body
const { email, name, password, username } = await request.json();
if (email ==... | 0 |
onehungrymind/enterprisey-apps | 5168eb0 | libs/challenges-state/src/lib/state/challenges.selectors.spec.ts | TypeScript | www.github.com/onehungrymind/enterprisey-apps/tree/main/libs/challenges-state/src/lib/state/challenges.selectors.spec.ts | https://raw.githubusercontent.com/onehungrymind/enterprisey-apps/5168eb0/libs/challenges-state/src/lib/state/challenges.selectors.spec.ts | onehungrymind/enterprisey-apps 5168eb0 libs/challenges-state/src/lib/state/challenges.selectors.spec.ts | true | 200 | 1,956 | import { Challenge } from '@proto/api-interfaces';
import { mockChallenge } from '@proto/testing';
import {
challengesAdapter,
ChallengesState,
initialChallengesState,
} from './challenges.reducer';
import * as ChallengesSelectors from './challenges.selectors';
describe('Challenges Selectors', () => {
const E... | 6 |
slowshi/doopmarketeer-next | 945037a | src/services/api.ts | TypeScript | www.github.com/slowshi/doopmarketeer-next/tree/main/src/services/api.ts | https://raw.githubusercontent.com/slowshi/doopmarketeer-next/945037a/src/services/api.ts | slowshi/doopmarketeer-next 945037a src/services/api.ts | true | 200 | 2,969 | import { Doodle, DoodleMetadata, GenesisBox } from '@/interfaces/Doodle'
import { DoopmarketListing } from '@/interfaces/DoopMarket'
import { DoopTransactionInfo, GenesisBoxHistoryResponse, LeaderboardUser } from '@/interfaces/DoopTransactions'
import { GemResponse } from '@/interfaces/Gem'
import { UndoopedDoodle } fr... | 4 |
developersajadur/Blog-Website-Api-By-Express.js-Mongoose-And-Typescript | 7e00997 | src/app/builders/QueryBuilder.ts | TypeScript | www.github.com/developersajadur/Blog-Website-Api-By-Express.js-Mongoose-And-Typescript/tree/main/src/app/builders/QueryBuilder.ts | https://raw.githubusercontent.com/developersajadur/Blog-Website-Api-By-Express.js-Mongoose-And-Typescript/7e00997/src/app/builders/QueryBuilder.ts | developersajadur/Blog-Website-Api-By-Express.js-Mongoose-And-Typescript 7e00997 src/app/builders/QueryBuilder.ts | true | 200 | 1,320 | import { FilterQuery, Query } from 'mongoose';
class QueryBuilder<T> {
public modelQuery: Query<T[], T>;
public query: Record<string, unknown>;
constructor(modelQuery: Query<T[], T>, query: Record<string, unknown>) {
this.modelQuery = modelQuery;
this.query = query;
}
search(searchableFields: strin... | 5 |
taosdata/taos-connector-node | c06e1d8 | nodejs/example/basicSchemaless.ts | TypeScript | www.github.com/taosdata/taos-connector-node/tree/main/nodejs/example/basicSchemaless.ts | https://raw.githubusercontent.com/taosdata/taos-connector-node/c06e1d8/nodejs/example/basicSchemaless.ts | taosdata/taos-connector-node c06e1d8 nodejs/example/basicSchemaless.ts | true | 200 | 1,957 | import { WSConfig } from '../src/common/config';
import { Precision, SchemalessProto } from '../src/sql/wsProto';
import { sqlConnect, destroy, setLogLevel } from '../src';
let dsn = 'ws://root:taosdata@localhost:6041';
let db = 'power'
let influxdbData = "st,t1=3i64,t2=4f64,t3=\"t3\" c1=3i64,c3=L\"passit\",c2=false,c4... | 0 |
TimizaTechnologies/kaarms_webapp | 7dfc9fb | src/app/modules/payments/store/reducers/cash.reducer.ts | TypeScript | www.github.com/TimizaTechnologies/kaarms_webapp/tree/main/src/app/modules/payments/store/reducers/cash.reducer.ts | https://raw.githubusercontent.com/TimizaTechnologies/kaarms_webapp/7dfc9fb/src/app/modules/payments/store/reducers/cash.reducer.ts | TimizaTechnologies/kaarms_webapp 7dfc9fb src/app/modules/payments/store/reducers/cash.reducer.ts | true | 200 | 460 | import {
initialTransactionState,
ITransactionState,
} from '../state/cash.state';
import * as cashActions from '../actions/cash.action';
export function transactionsReducers(
state = initialTransactionState,
action: cashActions.TransactionActions
): ITransactionState {
switch (action.type) {
case cashAc... | 1 |
alitariqse/brokerage-app | 9b0d400 | src/main.ts | TypeScript | www.github.com/alitariqse/brokerage-app/tree/main/src/main.ts | https://raw.githubusercontent.com/alitariqse/brokerage-app/9b0d400/src/main.ts | alitariqse/brokerage-app 9b0d400 src/main.ts | true | 200 | 867 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
const params = new URLSearchParams(window.location.search);
let accessToken = params.get('tappAccessToken');
let refreshToken = params.get('tappRefreshToken');
let idToken = params.get('tappIdToke... | 7 |
kimuray/covey-todo | 742e3ac | src/slices/roleSlice.ts | TypeScript | www.github.com/kimuray/covey-todo/tree/main/src/slices/roleSlice.ts | https://raw.githubusercontent.com/kimuray/covey-todo/742e3ac/src/slices/roleSlice.ts | kimuray/covey-todo 742e3ac src/slices/roleSlice.ts | true | 200 | 479 | import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { Role } from 'stateType/Role'
const initialState: Array<Role> = []
const roleSlice = createSlice({
name: 'roles',
initialState,
reducers: {
setRoles: (_, { payload }: PayloadAction<Array<Role>>) => payload,
addRoles: (state, { payload... | 2 |
pedromigueldev/cinema-backend-api | aa913b4 | routes/api/v1/sessions/index.ts | TypeScript | www.github.com/pedromigueldev/cinema-backend-api/tree/main/routes/api/v1/sessions/index.ts | https://raw.githubusercontent.com/pedromigueldev/cinema-backend-api/aa913b4/routes/api/v1/sessions/index.ts | pedromigueldev/cinema-backend-api aa913b4 routes/api/v1/sessions/index.ts | true | 200 | 387 | import sessionsController from "../../../../controller/sessionsController";
import express, { Request, Response } from "express";
const sessionsRouter = express.Router();
sessionsRouter.route("^/$").get(sessionsController.getAllSessions);
sessionsRouter.route("^/:id").get((req: Request, res: Response) => {
res.send... | 4 |
sameendraK/adUI | 823cf21 | src/app/search-bar/search-bar.component.ts | TypeScript | www.github.com/sameendraK/adUI/tree/main/src/app/search-bar/search-bar.component.ts | https://raw.githubusercontent.com/sameendraK/adUI/823cf21/src/app/search-bar/search-bar.component.ts | sameendraK/adUI 823cf21 src/app/search-bar/search-bar.component.ts | true | 200 | 1,216 | import { Component, EventEmitter, Output } from '@angular/core';
import { debounceTime, mergeMap, fromEvent, Observable, distinctUntilChanged } from 'rxjs'
import { SearchService } from 'src/services/search.service';
import { Record } from '../app.component';
@Component({
selector: 'app-search-bar',
templateUrl: '.... | 7 |
Armanez29/next.js | 80bbc75 | test/development/repeated-dev-edits/repeated-dev-edits.test.ts | TypeScript | www.github.com/Armanez29/next.js/tree/main/test/development/repeated-dev-edits/repeated-dev-edits.test.ts | https://raw.githubusercontent.com/Armanez29/next.js/80bbc75/test/development/repeated-dev-edits/repeated-dev-edits.test.ts | Armanez29/next.js 80bbc75 test/development/repeated-dev-edits/repeated-dev-edits.test.ts | true | 200 | 1,344 | import { nextTestSetup } from 'e2e-utils'
import fs from 'fs-extra'
import { assertNoRedbox } from 'next-test-utils'
import path from 'path'
describe('repeated-dev-edits', () => {
const { next } = nextTestSetup({
files: __dirname,
})
// Recommended for tests that check HTML. Cheerio is a HTML parser that has... | 5 |
R1ON/create-idea | c606450 | backend/src/router/index.ts | TypeScript | www.github.com/R1ON/create-idea/tree/main/backend/src/router/index.ts | https://raw.githubusercontent.com/R1ON/create-idea/c606450/backend/src/router/index.ts | R1ON/create-idea c606450 backend/src/router/index.ts | true | 200 | 1,181 | import { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
import { trpc } from '../lib/trpc';
import { getIdeasTrpcRoute } from './getAllIdeas';
import { getIdeaTrpcRoute } from './getIdea';
import { createIdeaTrpcRouter } from './createIdea';
import { signUpTrpcRoute } from './signUp';
import { signInTrpcR... | 2 |
IjeomaAnyanwu/campaign_backend | daacd2a | src/routes/campaignRoute.ts | TypeScript | www.github.com/IjeomaAnyanwu/campaign_backend/tree/main/src/routes/campaignRoute.ts | https://raw.githubusercontent.com/IjeomaAnyanwu/campaign_backend/daacd2a/src/routes/campaignRoute.ts | IjeomaAnyanwu/campaign_backend daacd2a src/routes/campaignRoute.ts | true | 200 | 323 | import express from "express"
import { createCampaign, deleteCampaigns, getAllCampaigns } from "../controllers/campaignController";
const router = express.Router();
router.post('/create-campaign', createCampaign)
router.get('/retrieve', getAllCampaigns)
router.delete('/delete', deleteCampaigns)
export default rout... | 6 |
basher/WebUI-Parcel | ad57e90 | src/ts/components/accordion.ts | TypeScript | www.github.com/basher/WebUI-Parcel/tree/main/src/ts/components/accordion.ts | https://raw.githubusercontent.com/basher/WebUI-Parcel/ad57e90/src/ts/components/accordion.ts | basher/WebUI-Parcel ad57e90 src/ts/components/accordion.ts | true | 200 | 2,964 | import { disclosure } from '../utils/disclosure';
import { svgPath } from '../utils/svg-path';
import { addJSClass } from '../utils/progressive-enhancement';
export class Accordion {
private accordion: HTMLElement;
constructor(accordion: HTMLElement) {
this.accordion = accordion;
this.init();... | 4 |
dxnn20/iTec2024 | d6a5602 | frontend/src/app/pages-components/app-card/app-card.component.ts | TypeScript | www.github.com/dxnn20/iTec2024/tree/main/frontend/src/app/pages-components/app-card/app-card.component.ts | https://raw.githubusercontent.com/dxnn20/iTec2024/d6a5602/frontend/src/app/pages-components/app-card/app-card.component.ts | dxnn20/iTec2024 d6a5602 frontend/src/app/pages-components/app-card/app-card.component.ts | true | 200 | 2,131 | import {Component, Input} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatCardModule} from '@angular/material/card';
import {HistoryBarComponent} from "../history-bar/history-bar.component";
import {App} from "../../App";
import {MatIcon} from "@angular/material/icon";
import ... | 0 |
Sawashi/datn-admin-be | 348a46f | src/reports/dto/createReportDto.dto.ts | TypeScript | www.github.com/Sawashi/datn-admin-be/tree/main/src/reports/dto/createReportDto.dto.ts | https://raw.githubusercontent.com/Sawashi/datn-admin-be/348a46f/src/reports/dto/createReportDto.dto.ts | Sawashi/datn-admin-be 348a46f src/reports/dto/createReportDto.dto.ts | true | 200 | 508 | import { ApiProperty } from '@nestjs/swagger';
import {
IsNotEmpty,
IsString,
IsOptional,
IsNumber,
IsIn,
} from 'class-validator';
export class CreateReportDto {
@ApiProperty()
@IsNumber()
@IsNotEmpty()
userId: number;
@ApiProperty()
@IsNotEmpty()
@IsString()
content: string;
@ApiPropert... | 7 |
JJJados/trove | ff2ce84 | src/lib/background.ts | TypeScript | www.github.com/JJJados/trove/tree/main/src/lib/background.ts | https://raw.githubusercontent.com/JJJados/trove/ff2ce84/src/lib/background.ts | JJJados/trove ff2ce84 src/lib/background.ts | true | 200 | 1,505 | import { type Tab, type TabGroup, TabGroupColours } from '../types/tabs.type';
import { saveGroupsToStorage } from './storage';
chrome.runtime.onStartup.addListener(async () => {
let groups: TabGroup[] = await setupStorage();
await createTabGroups(groups);
});
function setupStorage(): Promise<TabGroup[]> {
return ... | 3 |
speranos/42_transcendence | ece4fa7 | back/src/auth/auth.service.ts | TypeScript | www.github.com/speranos/42_transcendence/tree/main/back/src/auth/auth.service.ts | https://raw.githubusercontent.com/speranos/42_transcendence/ece4fa7/back/src/auth/auth.service.ts | speranos/42_transcendence ece4fa7 back/src/auth/auth.service.ts | true | 200 | 6,911 | import { Injectable, Req, UnauthorizedException, Res, ForbiddenException, HttpException, HttpStatus } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { PrismaService } from 'src/prisma/prisma.service';
import { auth42dto, userDTO } from '../alldtos';
import { Token } from "./Token.types"
import ... | 2 |
shenlu89/amazing-endemic-species | 6b93853 | app/api/search/route.ts | TypeScript | www.github.com/shenlu89/amazing-endemic-species/tree/main/app/api/search/route.ts | https://raw.githubusercontent.com/shenlu89/amazing-endemic-species/6b93853/app/api/search/route.ts | shenlu89/amazing-endemic-species 6b93853 app/api/search/route.ts | true | 200 | 1,397 | import { NextResponse } from "next/server";
import { or, like, asc, desc } from "drizzle-orm";
import { db } from "@/db";
import { aes } from "@/db/schema";
const orderByColumn = (sortType: string, sortDirection: string) => {
let column;
switch (sortType) {
case "common_name":
column = aes.common_name;
... | 5 |
bhaveshLC/car_rental_frontend | 17845c9 | src/app/resuable/edit-profile/edit-profile.component.ts | TypeScript | www.github.com/bhaveshLC/car_rental_frontend/tree/main/src/app/resuable/edit-profile/edit-profile.component.ts | https://raw.githubusercontent.com/bhaveshLC/car_rental_frontend/17845c9/src/app/resuable/edit-profile/edit-profile.component.ts | bhaveshLC/car_rental_frontend 17845c9 src/app/resuable/edit-profile/edit-profile.component.ts | true | 200 | 1,488 | import { AuthService } from './../../../service/AuthService/auth.service';
import { Component, EventEmitter, inject, Input, Output } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AlertService } from '../../../service/alert/alert.service';
@Component({
selector: 'app-edit-profile',
st... | 6 |
nccasia/w2-be | ead8af9 | src/app.module.ts | TypeScript | www.github.com/nccasia/w2-be/tree/main/src/app.module.ts | https://raw.githubusercontent.com/nccasia/w2-be/ead8af9/src/app.module.ts | nccasia/w2-be ead8af9 src/app.module.ts | true | 200 | 2,000 | import { GraphQLModule } from '@nestjs/graphql';
import { Logger, Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { PrismaModule } from 'nestjs-prisma';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AppResolver } from './app.... | 0 |
evgeniyamalinovskaya/web-plus-docker-and-compose | 20b3258 | backend/src/wishlistlists/dto/create-wishlist.dto.ts | TypeScript | www.github.com/evgeniyamalinovskaya/web-plus-docker-and-compose/tree/main/backend/src/wishlistlists/dto/create-wishlist.dto.ts | https://raw.githubusercontent.com/evgeniyamalinovskaya/web-plus-docker-and-compose/20b3258/backend/src/wishlistlists/dto/create-wishlist.dto.ts | evgeniyamalinovskaya/web-plus-docker-and-compose 20b3258 backend/src/wishlistlists/dto/create-wishlist.dto.ts | true | 200 | 607 | import { Length, IsUrl, IsArray, IsNumber } from 'class-validator';
import { Exclude } from 'class-transformer';
//Cхема списка подарков (wishlist):
export class CreateWishlistDto {
@Length(1, 250)
//название списка, не может быть длиннее 250 символов и короче одного
name: string;
@IsUrl()
//обложка для под... | 4 |
isprutfromua/ship-test | ae983bc | src/models/Pier.ts | TypeScript | www.github.com/isprutfromua/ship-test/tree/main/src/models/Pier.ts | https://raw.githubusercontent.com/isprutfromua/ship-test/ae983bc/src/models/Pier.ts | isprutfromua/ship-test ae983bc src/models/Pier.ts | true | 200 | 1,437 | import { Sprite, Text } from 'pixi.js';
import { IBoat } from './Boat.ts';
import { PIER_HEIGHT, PIER_WIDTH, textures } from '../settings.ts';
interface IPier {
readonly capacity: number;
full: boolean;
releaseBoat(boat: IBoat): void;
loadBoat(boat: IBoat): void;
}
export class Pier extends Sprite i... | 3 |
quochuydev/ecom-checkout | 175b16b | tests/fixture/seed.ts | TypeScript | www.github.com/quochuydev/ecom-checkout/tree/main/tests/fixture/seed.ts | https://raw.githubusercontent.com/quochuydev/ecom-checkout/175b16b/tests/fixture/seed.ts | quochuydev/ecom-checkout 175b16b tests/fixture/seed.ts | true | 200 | 3,086 | import { ProductCategory } from "@ecom/types";
import {} from "@prisma/client";
const productCategories: ProductCategory[] = [
{
title: "Drink",
handle: "drink",
description: "Category 1 description",
image: {
create: {
name: "Product 1 image 1",
src: "/product_1.png",
a... | 7 |
eltonhoxha91/ng2-cribs | 0f33e64 | src/app/app.module.ts | TypeScript | www.github.com/eltonhoxha91/ng2-cribs/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/eltonhoxha91/ng2-cribs/0f33e64/src/app/app.module.ts | eltonhoxha91/ng2-cribs 0f33e64 src/app/app.module.ts | true | 200 | 977 | import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser';
import {FormsModule} from '@angular/forms'
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { CribListingComponent } from './crib-listing/crib-listing.c... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.