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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Tufail46/MT-UNI-MANAGEMENT-SYSTEM | f0f3a69 | root/welcome.ts | TypeScript | www.github.com/Tufail46/MT-UNI-MANAGEMENT-SYSTEM/tree/main/root/welcome.ts | https://raw.githubusercontent.com/Tufail46/MT-UNI-MANAGEMENT-SYSTEM/f0f3a69/root/welcome.ts | Tufail46/MT-UNI-MANAGEMENT-SYSTEM f0f3a69 root/welcome.ts | true | 200 | 321 | import chalkAnimation from "chalk-animation";
const sleep = (ms = 2000): Promise<void> =>
new Promise((resolve) => {
setTimeout(resolve, ms);
});
const welcome = async (param: string) => {
const welcomeScreen = chalkAnimation.rainbow(param);
await sleep();
welcomeScreen.stop();
};
export default welcome;... | 2 |
vegaitglobal/podeli-obrok-app | 681feb7 | api/src/service/MealService.ts | TypeScript | www.github.com/vegaitglobal/podeli-obrok-app/tree/main/api/src/service/MealService.ts | https://raw.githubusercontent.com/vegaitglobal/podeli-obrok-app/681feb7/api/src/service/MealService.ts | vegaitglobal/podeli-obrok-app 681feb7 api/src/service/MealService.ts | true | 200 | 1,960 | import { Repository } from 'typeorm';
import { AppDataSource } from '../data-source';
import { Meal } from '../entity/Meal';
export class MealService {
private mealRepository: Repository<Meal> = AppDataSource.getRepository(Meal);
async getAll(createdByDeviceId?: string): Promise<Meal[]> {
if (createdByDeviceI... | 4 |
juantapias/tabletrove | 425a2f0 | hooks/useProducts.ts | TypeScript | www.github.com/juantapias/tabletrove/tree/main/hooks/useProducts.ts | https://raw.githubusercontent.com/juantapias/tabletrove/425a2f0/hooks/useProducts.ts | juantapias/tabletrove 425a2f0 hooks/useProducts.ts | true | 200 | 914 | import { gql } from 'graphql-request'
import { useQuery } from '@tanstack/react-query'
import { hygraph } from '@/services/Api'
import { Restaurant } from '@/utils'
const getProductsByRestaurant = gql`
query restaurant($slug: String!) {
restaurant(where: { slug: $slug }) {
name
slug
products {... | 1 |
yxwang2024/EmployeeManagementSystem | e991fa1 | client/src/utils/type.ts | TypeScript | www.github.com/yxwang2024/EmployeeManagementSystem/tree/main/client/src/utils/type.ts | https://raw.githubusercontent.com/yxwang2024/EmployeeManagementSystem/e991fa1/client/src/utils/type.ts | yxwang2024/EmployeeManagementSystem e991fa1 client/src/utils/type.ts | true | 200 | 7,362 | export interface AuthStateType {
isAuthenticated: boolean;
token: string | null;
user: UserLoginType | null;
}
export interface EmployeeInstanceType {
id: string;
onboardingApplication: {
_id: string;
status: string;
};
}
export interface HRInstanceType {
id: string;
mailHistory: {
_id: st... | 5 |
gmasclet/prettier-plugin-pgn | 8531f44 | src/pgnParser.ts | TypeScript | www.github.com/gmasclet/prettier-plugin-pgn/tree/main/src/pgnParser.ts | https://raw.githubusercontent.com/gmasclet/prettier-plugin-pgn/8531f44/src/pgnParser.ts | gmasclet/prettier-plugin-pgn 8531f44 src/pgnParser.ts | true | 200 | 1,088 | import {Parser} from 'prettier';
import {ASTNode} from './astNode';
import {ParserError} from './parserError';
import {parseFile} from './parseFile';
import {Tokenizer} from './tokenizer';
/**
* Implement the Prettier `Parser` interface, for the PGN format.
*
* This is a recursive descent parser. The algorithm proc... | 3 |
Zombie1995/abet | 6bb9547 | src/entities/merch/api/index.ts | TypeScript | www.github.com/Zombie1995/abet/tree/main/src/entities/merch/api/index.ts | https://raw.githubusercontent.com/Zombie1995/abet/6bb9547/src/entities/merch/api/index.ts | Zombie1995/abet 6bb9547 src/entities/merch/api/index.ts | true | 200 | 315 | import $api from "shared/api/config";
export type MerchItem = {
id: number;
url: string;
title: string;
price: number;
description: string;
};
type MerchResponse = {
items: Array<MerchItem>;
};
export const fetchMerch = async () => {
return (await $api.get<MerchResponse>(`/merch`)).data.items;
};
| 7 |
Yagnik-Gohil/metaverse | c59bdaf | src/modules/map/map.service.ts | TypeScript | www.github.com/Yagnik-Gohil/metaverse/tree/main/src/modules/map/map.service.ts | https://raw.githubusercontent.com/Yagnik-Gohil/metaverse/c59bdaf/src/modules/map/map.service.ts | Yagnik-Gohil/metaverse c59bdaf src/modules/map/map.service.ts | true | 200 | 2,012 | import { Injectable } from '@nestjs/common';
import { CreateMapDto } from './dto/create-map.dto';
import { UpdateMapDto } from './dto/update-map.dto';
import { InjectRepository } from '@nestjs/typeorm';
import { Map } from './entities/map.entity';
import { FindManyOptions, In, Repository } from 'typeorm';
import { plai... | 6 |
Marconemegadrive/coworking-back | 4549f9f | modelagem-antiga/models/contrato.ts | TypeScript | www.github.com/Marconemegadrive/coworking-back/tree/main/modelagem-antiga/models/contrato.ts | https://raw.githubusercontent.com/Marconemegadrive/coworking-back/4549f9f/modelagem-antiga/models/contrato.ts | Marconemegadrive/coworking-back 4549f9f modelagem-antiga/models/contrato.ts | true | 200 | 2,526 | import { Testemunha } from "./testemunha";
export class Contrato {
id : number;
dataInicio : Date;
dataFinal : Date;
dataCadastro : Date;
dataAlteracao : Date;
valor : number;
horasSR : number;
horasSC : number;
qtdBaias ?: number;
salaTrabalho ?: string;
testemunha : Testem... | 0 |
edelapena-dev/Angular | f9d6e56 | src/app/heroes/pages/search-page/search-page.component.ts | TypeScript | www.github.com/edelapena-dev/Angular/tree/main/src/app/heroes/pages/search-page/search-page.component.ts | https://raw.githubusercontent.com/edelapena-dev/Angular/f9d6e56/src/app/heroes/pages/search-page/search-page.component.ts | edelapena-dev/Angular f9d6e56 src/app/heroes/pages/search-page/search-page.component.ts | true | 200 | 1,122 | import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Hero } from '../../interfaces/hero.interface';
import { HeroesService } from '../../services/heroes.service';
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
@Component({
selector: 'app-... | 4 |
noeyiue/prodojang-website | c36ae8b | src/lib/store/features/member/dojang-member/add-student/newStudentSlice.ts | TypeScript | www.github.com/noeyiue/prodojang-website/tree/main/src/lib/store/features/member/dojang-member/add-student/newStudentSlice.ts | https://raw.githubusercontent.com/noeyiue/prodojang-website/c36ae8b/src/lib/store/features/member/dojang-member/add-student/newStudentSlice.ts | noeyiue/prodojang-website c36ae8b src/lib/store/features/member/dojang-member/add-student/newStudentSlice.ts | true | 200 | 1,368 | import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { INewStudentInfo, INewStudentState, ISetIsCheckedPayload } from "./INewStudent";
const initialState: INewStudentState[] = [];
export const newStudentSlice = createSlice({
name: "newStudent",
initialState,
reducers: {
updateNewStudent: (s... | 2 |
blbacelar/rocketseat_project3 | e84b566 | src/http/controllers/gyms/create.spec.ts | TypeScript | www.github.com/blbacelar/rocketseat_project3/tree/main/src/http/controllers/gyms/create.spec.ts | https://raw.githubusercontent.com/blbacelar/rocketseat_project3/e84b566/src/http/controllers/gyms/create.spec.ts | blbacelar/rocketseat_project3 e84b566 src/http/controllers/gyms/create.spec.ts | true | 200 | 795 | import { app } from '@/app'
import { createAndAuthenticateUser } from '@/utils/test/create-and-authenticate-user'
import request from 'supertest'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
describe('Create Gym E2E', () => {
beforeAll(async () => {
await app.ready()
})
afterAll(async ... | 5 |
Andreastaru/webdriverio-boilerplate | a1076c0 | config/wdioconfig/browser/wdio.chrome.conf.ts | TypeScript | www.github.com/Andreastaru/webdriverio-boilerplate/tree/main/config/wdioconfig/browser/wdio.chrome.conf.ts | https://raw.githubusercontent.com/Andreastaru/webdriverio-boilerplate/a1076c0/config/wdioconfig/browser/wdio.chrome.conf.ts | Andreastaru/webdriverio-boilerplate a1076c0 config/wdioconfig/browser/wdio.chrome.conf.ts | true | 200 | 4,124 | import { join } from 'path';
import { config } from '../wdio.shared.conf';
//
// =====================
// Server Configurations
// =====================
// For Selenium Grid
// config.port = 4444;
//
// ============
// Specs
// ============
// Define which test specs should run. The pattern is relative to the director... | 3 |
finos/vuu | 508676f | vuu-ui/packages/vuu-utils/src/box-utils.ts | TypeScript | www.github.com/finos/vuu/tree/main/vuu-ui/packages/vuu-utils/src/box-utils.ts | https://raw.githubusercontent.com/finos/vuu/508676f/vuu-ui/packages/vuu-utils/src/box-utils.ts | finos/vuu 508676f vuu-ui/packages/vuu-utils/src/box-utils.ts | true | 200 | 366 | export interface rect {
bottom: number;
left: number;
right: number;
top: number;
}
export type rectTuple = [number, number, number, number];
export type dimension = "width" | "height";
export function boxContainsPoint(rect: rect, x: number, y: number) {
if (rect) {
return x >= rect.left && x < rect.rig... | 1 |
Jessevdonck/KSKColle | 92d1f61 | backend/src/core/auth.ts | TypeScript | www.github.com/Jessevdonck/KSKColle/tree/main/backend/src/core/auth.ts | https://raw.githubusercontent.com/Jessevdonck/KSKColle/92d1f61/backend/src/core/auth.ts | Jessevdonck/KSKColle 92d1f61 backend/src/core/auth.ts | true | 200 | 893 | import type { Next } from 'koa';
import type { KoaContext } from '../types/koa';
import * as userService from '../service/userService';
import config from 'config';
export const requireAuthentication = async (ctx: KoaContext, next: Next) => {
const { authorization } = ctx.headers;
ctx.state.session = await us... | 7 |
developermehedi99/TypeScript-milestone | 4d75674 | module-2/src/genericFunction.ts | TypeScript | www.github.com/developermehedi99/TypeScript-milestone/tree/main/module-2/src/genericFunction.ts | https://raw.githubusercontent.com/developermehedi99/TypeScript-milestone/4d75674/module-2/src/genericFunction.ts | developermehedi99/TypeScript-milestone 4d75674 module-2/src/genericFunction.ts | true | 200 | 300 | {
const programmers = <T>(param:T)=>{
return [param]
}
const result = programmers<string>('javascript devleper');
const createTupleFunc = <T, Q>(num1:T, num2:Q) : [T,Q] => {
return [num1, num2];
}
const result2 = createTupleFunc<string,number>('Asia', 11);
} | 0 |
vinidipaula92/Trybe-Futebol-Clube | e9aa908 | app/backend/src/helpers/leaderboardGames.ts | TypeScript | www.github.com/vinidipaula92/Trybe-Futebol-Clube/tree/main/app/backend/src/helpers/leaderboardGames.ts | https://raw.githubusercontent.com/vinidipaula92/Trybe-Futebol-Clube/e9aa908/app/backend/src/helpers/leaderboardGames.ts | vinidipaula92/Trybe-Futebol-Clube e9aa908 app/backend/src/helpers/leaderboardGames.ts | true | 200 | 3,054 | import { IMatches } from '../interface/IMatches';
export default class LeaderboardGames {
static totalVictories(id: number | undefined, matches: IMatches[]): number {
let totalVictories = 0;
matches.forEach((match) => {
if (match.homeTeam === id && match.homeTeamGoals > match.awayTeamGoals) totalVictor... | 4 |
HakaiGod420/time-planer | 73c1186 | pages/api/getCreatedPlans.ts | TypeScript | www.github.com/HakaiGod420/time-planer/tree/main/pages/api/getCreatedPlans.ts | https://raw.githubusercontent.com/HakaiGod420/time-planer/73c1186/pages/api/getCreatedPlans.ts | HakaiGod420/time-planer 73c1186 pages/api/getCreatedPlans.ts | true | 200 | 736 | // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
import { CreatedPlan, DayPlan } from '../../typing'
import {sanityClient} from '../../sanity'
import {groq} from 'next-sanity'
const commentQuery = groq `
*[_type == 'createdPlan' &... | 2 |
spatiumstories/Check-Author-Associations-Service | 1d44328 | check-author-associations-service-app/lib/check-author-associations-service-app-stack.ts | TypeScript | www.github.com/spatiumstories/Check-Author-Associations-Service/tree/main/check-author-associations-service-app/lib/check-author-associations-service-app-stack.ts | https://raw.githubusercontent.com/spatiumstories/Check-Author-Associations-Service/1d44328/check-author-associations-service-app/lib/check-author-associations-service-app-stack.ts | spatiumstories/Check-Author-Associations-Service 1d44328 check-author-associations-service-app/lib/check-author-associations-service-app-stack.ts | true | 200 | 1,462 | import { Runtime, Function, Code } from 'aws-cdk-lib/aws-lambda';
import { App, Stack } from 'aws-cdk-lib';
import { Rule, Schedule } from 'aws-cdk-lib/aws-events';
import { LambdaFunction } from 'aws-cdk-lib/aws-events-targets';
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
export class CheckAuthorAssociation... | 5 |
movie42/kiosk-frontend | 625ddbe | src/Components/UI/Organisms/hooks/useHandleOrderItem.ts | TypeScript | www.github.com/movie42/kiosk-frontend/tree/main/src/Components/UI/Organisms/hooks/useHandleOrderItem.ts | https://raw.githubusercontent.com/movie42/kiosk-frontend/625ddbe/src/Components/UI/Organisms/hooks/useHandleOrderItem.ts | movie42/kiosk-frontend 625ddbe src/Components/UI/Organisms/hooks/useHandleOrderItem.ts | true | 200 | 2,124 | import { selectMenuListState } from "@/lib/state";
import { ProductListValues } from "@/lib/state/productItemState";
import { useState } from "react";
import { useRecoilState } from "recoil";
interface OrderSelectedItemProps {
selected: ProductListValues;
count: number;
selectedOption: {
name: string;
id... | 3 |
HiDeoo/astro-db-starlight-showcase | e3924d2 | src/pages/showcase/login/github/callback.ts | TypeScript | www.github.com/HiDeoo/astro-db-starlight-showcase/tree/main/src/pages/showcase/login/github/callback.ts | https://raw.githubusercontent.com/HiDeoo/astro-db-starlight-showcase/e3924d2/src/pages/showcase/login/github/callback.ts | HiDeoo/astro-db-starlight-showcase e3924d2 src/pages/showcase/login/github/callback.ts | true | 200 | 1,895 | import { OAuth2RequestError } from 'arctic'
import type { APIRoute } from 'astro'
import { db, eq, ShowcaseUser } from 'astro:db'
import type { Session } from 'lucia'
import { GITHUB_OAUTH_STATE_COOKIE_NAME, getGitHubUser, github, lucia } from '../../../../libs/auth'
export const prerender = false
// https://lucia-a... | 1 |
noufjafari/Wise-Wallet | 338e56b | Wise-Wallet/Finel/node_modules/igniteui-react-core/lib/EmbeddedRefDescription.d.ts | TypeScript | www.github.com/noufjafari/Wise-Wallet/tree/main/Wise-Wallet/Finel/node_modules/igniteui-react-core/lib/EmbeddedRefDescription.d.ts | https://raw.githubusercontent.com/noufjafari/Wise-Wallet/338e56b/Wise-Wallet/Finel/node_modules/igniteui-react-core/lib/EmbeddedRefDescription.d.ts | noufjafari/Wise-Wallet 338e56b Wise-Wallet/Finel/node_modules/igniteui-react-core/lib/EmbeddedRefDescription.d.ts | true | 200 | 378 | import { Description } from "./Description";
import { Type } from "./type";
/**
* @hidden
*/
export declare class EmbeddedRefDescription extends Description {
static $t: Type;
protected get_type(): string;
get type(): string;
private h;
get refType(): string;
set refType(a: string);
privat... | 6 |
Paulo-ss/spese-front-end | f839d85 | src/app/actions/expenses/editExpense.ts | TypeScript | www.github.com/Paulo-ss/spese-front-end/tree/main/src/app/actions/expenses/editExpense.ts | https://raw.githubusercontent.com/Paulo-ss/spese-front-end/f839d85/src/app/actions/expenses/editExpense.ts | Paulo-ss/spese-front-end f839d85 src/app/actions/expenses/editExpense.ts | true | 200 | 896 | "use server";
import { fetchResource } from "@/services/fetchService";
import { IGenericMessageResponse } from "@/interfaces/generic-message.interface";
import { IExpenseForm } from "@/interfaces/expenses.interface";
import { revalidateTag } from "next/cache";
export default async function editExpense(
expenseId: n... | 7 |
salesforcecli/plugin-templates | 5c53abc | src/commands/lightning/generate/app.ts | TypeScript | www.github.com/salesforcecli/plugin-templates/tree/main/src/commands/lightning/generate/app.ts | https://raw.githubusercontent.com/salesforcecli/plugin-templates/5c53abc/src/commands/lightning/generate/app.ts | salesforcecli/plugin-templates 5c53abc src/commands/lightning/generate/app.ts | true | 200 | 2,909 | /*
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand, Ux } from '@sale... | 4 |
daouSam/testdeploie | 80e13fb | testdeploie/src/app/confirmation/confirmation.component.ts | TypeScript | www.github.com/daouSam/testdeploie/tree/main/testdeploie/src/app/confirmation/confirmation.component.ts | https://raw.githubusercontent.com/daouSam/testdeploie/80e13fb/testdeploie/src/app/confirmation/confirmation.component.ts | daouSam/testdeploie 80e13fb testdeploie/src/app/confirmation/confirmation.component.ts | true | 200 | 515 | import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ConfirmData } from '../models/confirm.data';
@Component({
selector: 'app-confirmation',
templateUrl: './confirmation.component.html',
styleUrls: ['./confirmation.component.css']
})
exp... | 0 |
Monika-dhiman/resilient-message-architecture | 98a3e90 | src/modules/sales/features/sales-orders/list-sales-orders/list-sales-orders.controller.ts | TypeScript | www.github.com/Monika-dhiman/resilient-message-architecture/tree/main/src/modules/sales/features/sales-orders/list-sales-orders/list-sales-orders.controller.ts | https://raw.githubusercontent.com/Monika-dhiman/resilient-message-architecture/98a3e90/src/modules/sales/features/sales-orders/list-sales-orders/list-sales-orders.controller.ts | Monika-dhiman/resilient-message-architecture 98a3e90 src/modules/sales/features/sales-orders/list-sales-orders/list-sales-orders.controller.ts | true | 200 | 521 | import { Controller, Get, HttpStatus, Query, Res } from '@nestjs/common';
import { Response } from 'express';
import { ListSalesOrdersHandler } from './list-sales-orders.service';
@Controller('api/v1/sales')
export class ListSalesOrdersController {
constructor(private readonly handler: ListSalesOrdersHandler) {}
... | 5 |
Bonny-kato/rrc | e5c635e | src/utilties.ts | TypeScript | www.github.com/Bonny-kato/rrc/tree/main/src/utilties.ts | https://raw.githubusercontent.com/Bonny-kato/rrc/e5c635e/src/utilties.ts | Bonny-kato/rrc e5c635e src/utilties.ts | true | 200 | 754 | /**
* Represents a set of query parameters.
*
* @typedef {Object} QueryParams
* @property {Object.<string, string | number | boolean>} params - The query parameters.
*/
type QueryParams = { [key: string]: string | number | boolean | undefined };
/**
* Generates query parameters from an object.
*
* @param {Quer... | 3 |
alexarg87923/skill_hearth | 937301d | back-end/src/validation/userValidation.ts | TypeScript | www.github.com/alexarg87923/skill_hearth/tree/main/back-end/src/validation/userValidation.ts | https://raw.githubusercontent.com/alexarg87923/skill_hearth/937301d/back-end/src/validation/userValidation.ts | alexarg87923/skill_hearth 937301d back-end/src/validation/userValidation.ts | true | 200 | 1,663 | import Joi from 'joi';
import passwordComplexity from "joi-password-complexity";
import { IUser } from '../models/user.model';
const capitalizeFirstLetter = (value: string) => {
if (typeof value === 'string') {
return value.charAt(0).toUpperCase() + value.slice(1);
}
return value;
};
export const ... | 2 |
DavDeDev/TruthLens | f36a6dc | src/app/[...url]/youtube.ts | TypeScript | www.github.com/DavDeDev/TruthLens/tree/main/src/app/[...url]/youtube.ts | https://raw.githubusercontent.com/DavDeDev/TruthLens/f36a6dc/src/app/%5B...url%5D/youtube.ts | DavDeDev/TruthLens f36a6dc src/app/[...url]/youtube.ts | true | 200 | 6,957 | import { Redis } from "@upstash/redis";
import { z } from "zod";
import fetch from "node-fetch";
const redis = new Redis({
url: process.env.KV_REST_API_URL,
token: process.env.KV_REST_API_TOKEN,
});
const CACHE_TTL = 60 * 60 * 24; // 24 hours in seconds
interface TranscriptResponse {
text: string;
start: num... | 1 |
jdready66/gsm-strtxt-frontend | ccbae62 | src/app/app-routing.module.ts | TypeScript | www.github.com/jdready66/gsm-strtxt-frontend/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/jdready66/gsm-strtxt-frontend/ccbae62/src/app/app-routing.module.ts | jdready66/gsm-strtxt-frontend ccbae62 src/app/app-routing.module.ts | true | 200 | 1,812 | import { NgModule } from '@angular/core';
import { Router, RouterModule, Routes } from '@angular/router';
import { AuthGuard } from './guards/auth.guard';
import { Role } from './models/role.enum';
import { AdminComponent } from './pages/admin/admin.component';
import { DetailComponent } from './pages/detail/detail.com... | 6 |
Kelompok-1-Final-Project/job-portal-frontend | bdb0021 | projects/admin/src/app/pages/user/changePassword/change-password.component.ts | TypeScript | www.github.com/Kelompok-1-Final-Project/job-portal-frontend/tree/main/projects/admin/src/app/pages/user/changePassword/change-password.component.ts | https://raw.githubusercontent.com/Kelompok-1-Final-Project/job-portal-frontend/bdb0021/projects/admin/src/app/pages/user/changePassword/change-password.component.ts | Kelompok-1-Final-Project/job-portal-frontend bdb0021 projects/admin/src/app/pages/user/changePassword/change-password.component.ts | true | 200 | 1,706 | import { Component, OnInit } from "@angular/core";
import { NonNullableFormBuilder, Validators } from "@angular/forms";
import { Title } from "@angular/platform-browser";
import { Router } from "@angular/router";
import { AuthService } from "@serviceAdmin/auth.service";
import { UserService } from "@serviceAdmin/user.s... | 7 |
Samrat7547/BLOG | 2bbec82 | ng-spring-blog-frontend/src/app/header/header.component.ts | TypeScript | www.github.com/Samrat7547/BLOG/tree/main/ng-spring-blog-frontend/src/app/header/header.component.ts | https://raw.githubusercontent.com/Samrat7547/BLOG/2bbec82/ng-spring-blog-frontend/src/app/header/header.component.ts | Samrat7547/BLOG 2bbec82 ng-spring-blog-frontend/src/app/header/header.component.ts | true | 200 | 421 | import { Component } from '@angular/core';
import { AuthService } from '../auth.service';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css']
})
export class HeaderComponent {
constructor(private authService: AuthService) {
}
isLoggedIn() {
... | 0 |
DipakPansheriya/firestoreData | 82fb95a | src/app/app.module.ts | TypeScript | www.github.com/DipakPansheriya/firestoreData/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/DipakPansheriya/firestoreData/82fb95a/src/app/app.module.ts | DipakPansheriya/firestoreData 82fb95a src/app/app.module.ts | true | 200 | 2,587 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RegistrationformComponent } from './registrationform/registrationform.component';
import { FormComponent... | 4 |
phhbr/renegades | 921d2a9 | src/app/services/contact.service.ts | TypeScript | www.github.com/phhbr/renegades/tree/main/src/app/services/contact.service.ts | https://raw.githubusercontent.com/phhbr/renegades/921d2a9/src/app/services/contact.service.ts | phhbr/renegades 921d2a9 src/app/services/contact.service.ts | true | 200 | 740 | import { Injectable, inject } from '@angular/core';
import { SupabaseService } from './supabase.service';
export interface ContactMessage {
name: string;
email: string;
subject: string;
message: string;
recaptchaToken: string;
}
@Injectable({
providedIn: 'root'
})
export class ContactService {
#supabase... | 5 |
monchewharry/obsidian-davis | a265ee8 | src/components/Modals/metaDataModal.ts | TypeScript | www.github.com/monchewharry/obsidian-davis/tree/main/src/components/Modals/metaDataModal.ts | https://raw.githubusercontent.com/monchewharry/obsidian-davis/a265ee8/src/components/Modals/metaDataModal.ts | monchewharry/obsidian-davis a265ee8 src/components/Modals/metaDataModal.ts | true | 200 | 1,666 | import { App, Notice } from "obsidian";
import MyModal from '@/lib/myModal';
export default class MetadataModal extends MyModal {
private field = '';
private value = '';
private onSubmit: (field: string, value: string) => void;
constructor(app: App, onSubmit: (field: string, value: string) => void) {
super(app, ... | 2 |
Katielly-Scherbatsky/comedouro-inteligente-api | b140b55 | src/modules/pet/pet.controller.ts | TypeScript | www.github.com/Katielly-Scherbatsky/comedouro-inteligente-api/tree/main/src/modules/pet/pet.controller.ts | https://raw.githubusercontent.com/Katielly-Scherbatsky/comedouro-inteligente-api/b140b55/src/modules/pet/pet.controller.ts | Katielly-Scherbatsky/comedouro-inteligente-api b140b55 src/modules/pet/pet.controller.ts | true | 200 | 1,091 | import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
Request,
UseGuards,
} from "@nestjs/common";
import { AuthGuard } from "../../auth/auth.guard";
import { Pet } from "../../entities/pet.entity";
import { criarPetDto, editarPetDto, listarPetDto } from "./pet.dto";
import { PetService } from "./... | 3 |
mouhsine-hamarrass/front-concentrateur | ec49816 | src/app/components/parametrage/hippodrome/hippodrome.component.ts | TypeScript | www.github.com/mouhsine-hamarrass/front-concentrateur/tree/main/src/app/components/parametrage/hippodrome/hippodrome.component.ts | https://raw.githubusercontent.com/mouhsine-hamarrass/front-concentrateur/ec49816/src/app/components/parametrage/hippodrome/hippodrome.component.ts | mouhsine-hamarrass/front-concentrateur ec49816 src/app/components/parametrage/hippodrome/hippodrome.component.ts | true | 200 | 1,419 | import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material';
import { Hippodrome } from 'src/app/shared/models/hippodome.model';
@Component({
selector: 'app-hippodrome',
templateUrl: './hippodrome.component.html',
styleUrls: ['./hippodrome.component.scss']
})
export ... | 1 |
RickyD045/Angular-ToDo-List | 25ba02b | src/app/app.component.ts | TypeScript | www.github.com/RickyD045/Angular-ToDo-List/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/RickyD045/Angular-ToDo-List/25ba02b/src/app/app.component.ts | RickyD045/Angular-ToDo-List 25ba02b src/app/app.component.ts | true | 200 | 847 | import { Todo } from './ToDo';
import { Component, HostBinding } from '@angular/core';
import {
trigger,
state,
style,
animate,
transition,
// ...
} from '@angular/animations';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
animations: [... | 6 |
danny2768/Udemy | ec2e0e3 | Node/04-multiplication/src/domain/use-cases/save-file.use-case.ts | TypeScript | www.github.com/danny2768/Udemy/tree/main/Node/04-multiplication/src/domain/use-cases/save-file.use-case.ts | https://raw.githubusercontent.com/danny2768/Udemy/ec2e0e3/Node/04-multiplication/src/domain/use-cases/save-file.use-case.ts | danny2768/Udemy ec2e0e3 Node/04-multiplication/src/domain/use-cases/save-file.use-case.ts | true | 200 | 774 | import fs from "fs";
export interface SaveFileUseCase {
execute: (options: Options) => boolean;
}
export interface Options {
fileContent: string;
fileDestination?: string;
fileName?: string;
}
export class SaveFile implements SaveFileUseCase {
constructor() /**
* repository: StorageRepos... | 7 |
isslemziedi/tp-routing-cars | 3f0cddf | car-list.component.ts | TypeScript | www.github.com/isslemziedi/tp-routing-cars/tree/main/car-list.component.ts | https://raw.githubusercontent.com/isslemziedi/tp-routing-cars/3f0cddf/car-list.component.ts | isslemziedi/tp-routing-cars 3f0cddf car-list.component.ts | true | 200 | 568 | import { Component } from '@angular/core';
import { CarService } from './car.service';
import { Car } from './app.car';
import { Router } from '@angular/router';
@Component({
selector: 'app-car-list',
templateUrl: './app.component.html',
})
export class CarListComponent {
cars: Car[] = [];
constru... | 0 |
savePet/SavePet | cf11494 | savePet/cypress/e2e/16-ocorrencia-fornecedor/ocorrencia-adm.cy.ts | TypeScript | www.github.com/savePet/SavePet/tree/main/savePet/cypress/e2e/16-ocorrencia-fornecedor/ocorrencia-adm.cy.ts | https://raw.githubusercontent.com/savePet/SavePet/cf11494/savePet/cypress/e2e/16-ocorrencia-fornecedor/ocorrencia-adm.cy.ts | savePet/SavePet cf11494 savePet/cypress/e2e/16-ocorrencia-fornecedor/ocorrencia-adm.cy.ts | true | 200 | 1,740 | describe("Ocorrencia Adm", () => {
context("Quando acessar a Pagina home Adm", () => {
it("Deve renderizar a pagina home", () => {
cy.visit("http://localhost:5173/HomeAdm");
cy.get("._home_18641_35").should("be.visible");
});
it("Deve clicar na ancora para a page ocorrencias", () => {
c... | 3 |
neroze/repo_selector | 093816f | src/store.ts | TypeScript | www.github.com/neroze/repo_selector/tree/main/src/store.ts | https://raw.githubusercontent.com/neroze/repo_selector/093816f/src/store.ts | neroze/repo_selector 093816f src/store.ts | true | 200 | 5,520 | import { types, Instance, getParent, hasParent } from "mobx-state-tree";
const Element: any = types
.model({
selected: types.optional(types.array(types.string), []),
title: "",
uuid: "",
status: false,
children: types.optional(types.array(types.late(() => Element)), [])
})
.actions((self: any... | 2 |
Aquerr/RentaCar | 2db920f | src/web-ui/src/app/components/admin/admin-panel/remove-vehicle/admin-remove-vehicle.component.ts | TypeScript | www.github.com/Aquerr/RentaCar/tree/main/src/web-ui/src/app/components/admin/admin-panel/remove-vehicle/admin-remove-vehicle.component.ts | https://raw.githubusercontent.com/Aquerr/RentaCar/2db920f/src/web-ui/src/app/components/admin/admin-panel/remove-vehicle/admin-remove-vehicle.component.ts | Aquerr/RentaCar 2db920f src/web-ui/src/app/components/admin/admin-panel/remove-vehicle/admin-remove-vehicle.component.ts | true | 200 | 1,685 | import { Component, OnInit } from '@angular/core';
import { VehicleApiService } from '../../../../services/api/vehicle-api.service';
import { VehicleBasicData } from '../../../../models/vehicle.model';
import { CommonService } from '../../../../services/common.service';
import { ToastType } from '../../../../services/t... | 4 |
ralf-boltshauser/dice-soccer | 4f0993c | src/app/app.module.ts | TypeScript | www.github.com/ralf-boltshauser/dice-soccer/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/ralf-boltshauser/dice-soccer/4f0993c/src/app/app.module.ts | ralf-boltshauser/dice-soccer 4f0993c src/app/app.module.ts | true | 200 | 864 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { AdminComponent } from './admin/admin.component';
... | 5 |
podestal/DSA-Prep | 631f38e | array-string/rotate-array.ts | TypeScript | www.github.com/podestal/DSA-Prep/tree/main/array-string/rotate-array.ts | https://raw.githubusercontent.com/podestal/DSA-Prep/631f38e/array-string/rotate-array.ts | podestal/DSA-Prep 631f38e array-string/rotate-array.ts | true | 200 | 401 | const reverse = (l: number, r:number, nums: number[]): void => {
while (l < r) {
var temp = nums[l];
nums[l] = nums[r]
nums[r] = temp
l++
r--
}
}
function rotate(nums: number[], k: number): void {
k = k % nums.length
reverse(0, nums.length -1, nums)
reverse(0... | 2 |
vorant94/the-repo | 6321f2b | apps/subs-savvy/src/shared/api/category.model.ts | TypeScript | www.github.com/vorant94/the-repo/tree/main/apps/subs-savvy/src/shared/api/category.model.ts | https://raw.githubusercontent.com/vorant94/the-repo/6321f2b/apps/subs-savvy/src/shared/api/category.model.ts | vorant94/the-repo 6321f2b apps/subs-savvy/src/shared/api/category.model.ts | true | 200 | 553 | import { z } from "zod";
export const categorySchema = z.object({
id: z.number(),
name: z.string().min(1),
color: z.string(),
});
export type CategoryModel = z.infer<typeof categorySchema>;
export const insertCategorySchema = categorySchema.omit({ id: true });
export type InsertCategoryModel = z.infer<typeof in... | 6 |
zekekim/melting_pot | 1b62cd9 | lib/validations/createevent.ts | TypeScript | www.github.com/zekekim/melting_pot/tree/main/lib/validations/createevent.ts | https://raw.githubusercontent.com/zekekim/melting_pot/1b62cd9/lib/validations/createevent.ts | zekekim/melting_pot 1b62cd9 lib/validations/createevent.ts | true | 200 | 637 | import { z } from 'zod'
import { replySchema } from '@/lib/validations/createpost'
export const eventSchema = z.object({
name: z.string().min(1, "Event name is required"), // Event name must be at least 1 character
date: z.string().min(1, "Event date is required"), // Event date must be at least 1 character
... | 3 |
Koquay/wayfair2 | 01f1b63 | frontend/src/app/checkout/checkout.component.ts | TypeScript | www.github.com/Koquay/wayfair2/tree/main/frontend/src/app/checkout/checkout.component.ts | https://raw.githubusercontent.com/Koquay/wayfair2/01f1b63/frontend/src/app/checkout/checkout.component.ts | Koquay/wayfair2 01f1b63 frontend/src/app/checkout/checkout.component.ts | true | 200 | 1,479 | import { Component, effect, inject } from '@angular/core';
import { CheckoutService } from './checkout.service';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { CartSummaryComponent } from '../cart/cart-summary/cart-summary.component';
@Component({
selector: 'ap... | 0 |
ferhatbostanci/movie-management-system | f8a0b3f | src/application/movie/dto/bulk-create-movie.dto.ts | TypeScript | www.github.com/ferhatbostanci/movie-management-system/tree/main/src/application/movie/dto/bulk-create-movie.dto.ts | https://raw.githubusercontent.com/ferhatbostanci/movie-management-system/f8a0b3f/src/application/movie/dto/bulk-create-movie.dto.ts | ferhatbostanci/movie-management-system f8a0b3f src/application/movie/dto/bulk-create-movie.dto.ts | true | 200 | 461 | import { IsArray, ValidateNested, ArrayMinSize } from 'class-validator';
import { Type } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';
import { CreateMovieDto } from './create-movie.dto';
export class BulkCreateMovieDto {
@ApiProperty({ type: [CreateMovieDto], description: 'Array of movies... | 4 |
odincat/dsb-rest | 4256905 | src/data/parse.ts | TypeScript | www.github.com/odincat/dsb-rest/tree/main/src/data/parse.ts | https://raw.githubusercontent.com/odincat/dsb-rest/4256905/src/data/parse.ts | odincat/dsb-rest 4256905 src/data/parse.ts | true | 200 | 5,090 | import axios from 'axios';
import * as cheerio from 'cheerio';
import { setSubstitutionDateCurrent, setSubstitutionDateUpcoming, setSubstitutionMeta, substitutionDataCurrent, substitutionDataUpcoming, substitutionDateCurrent, substitutionDateUpcoming, substitutionHeaderCurrent, substitutionHeaderUpcoming, substitutionM... | 2 |
IvanHoliak/nestjs_fundamentals | face9c4 | src/orm.config.ts | TypeScript | www.github.com/IvanHoliak/nestjs_fundamentals/tree/main/src/orm.config.ts | https://raw.githubusercontent.com/IvanHoliak/nestjs_fundamentals/face9c4/src/orm.config.ts | IvanHoliak/nestjs_fundamentals face9c4 src/orm.config.ts | true | 200 | 370 | import { DataSource, DataSourceOptions } from 'typeorm';
export const dataSourceOpt: DataSourceOptions = {
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'admin',
database: 'nestjs_fundamentals',
entities: ['dist/**/*.entity.js'],
migrations: ['dist/migrations/*.js'],
... | 3 |
ThemisDaughter/bpadmin | a99caa4 | src/helpers/formValidation/validators.ts | TypeScript | www.github.com/ThemisDaughter/bpadmin/tree/main/src/helpers/formValidation/validators.ts | https://raw.githubusercontent.com/ThemisDaughter/bpadmin/a99caa4/src/helpers/formValidation/validators.ts | ThemisDaughter/bpadmin a99caa4 src/helpers/formValidation/validators.ts | true | 200 | 5,009 | // regexes:
const regexNames = /^[a-zâôîûäöüïéèàç.\-\s]*$/i
const regexExtendedNames = /^[0-9a-zâôîûäöüïéèàç._/\-&\s]*$/i
const extendedText = /^[0-9a-z@._()âôîûäöüïéèàç\-,;.!?#$%&'’"\s]*$/i
const regexEmail = /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i
const regexNumbers = /^[0-9./+-]/
const busine... | 0 |
cokcok/trace | a9ffcc0 | src/app/sysyear/sysyear.page.spec.ts | TypeScript | www.github.com/cokcok/trace/tree/main/src/app/sysyear/sysyear.page.spec.ts | https://raw.githubusercontent.com/cokcok/trace/a9ffcc0/src/app/sysyear/sysyear.page.spec.ts | cokcok/trace a9ffcc0 src/app/sysyear/sysyear.page.spec.ts | true | 200 | 668 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { SysyearPage } from './sysyear.page';
describe('SysyearPage', () => {
let component: SysyearPage;
let fixture: ComponentFixture<SysyearPage>;
beforeEach(waitForAsync(() => {
... | 4 |
a2h1r0/QH_front | 13e149d | server/api/login.ts | TypeScript | www.github.com/a2h1r0/QH_front/tree/main/server/api/login.ts | https://raw.githubusercontent.com/a2h1r0/QH_front/13e149d/server/api/login.ts | a2h1r0/QH_front 13e149d server/api/login.ts | true | 200 | 589 | export default defineEventHandler(async (event) => {
try {
const body = await readBody(event);
const response = await $fetch(
'https://qh-server.onrender.com/api/users/login/',
{
method: 'POST',
body: JSON.stringify({
email: body.email,
password: body.password,... | 0 |
sbotor/Monte | a381c9f | src/client/src/app/features/charts/charts-params.service.ts | TypeScript | www.github.com/sbotor/Monte/tree/main/src/client/src/app/features/charts/charts-params.service.ts | https://raw.githubusercontent.com/sbotor/Monte/a381c9f/src/client/src/app/features/charts/charts-params.service.ts | sbotor/Monte a381c9f src/client/src/app/features/charts/charts-params.service.ts | true | 200 | 1,576 | import { Injectable, signal } from '@angular/core';
import { ClockService } from '@core/clock.service';
import { ChartOptions } from './models';
import { chartOptionsDefaults, chartParamMapDefaults } from './chartDefaults';
import { BehaviorSubject, map, tap } from 'rxjs';
import { ChartParamMap, ParamsMutator } from '... | 3 |
Jeewan-Sharma/dokan | 6fe5010 | src/app/feature/home/components/home/home.component.ts | TypeScript | www.github.com/Jeewan-Sharma/dokan/tree/main/src/app/feature/home/components/home/home.component.ts | https://raw.githubusercontent.com/Jeewan-Sharma/dokan/6fe5010/src/app/feature/home/components/home/home.component.ts | Jeewan-Sharma/dokan 6fe5010 src/app/feature/home/components/home/home.component.ts | true | 200 | 1,633 | import { Component, OnInit } from '@angular/core';
import { ASSETS } from '@core/consts';
import { EPageState } from '@core/enums';
import { IProducts } from '@core/models';
import { DeviceWidthService, LoaderService, ToastService, ProductsService } from '@core/services';
import { BehaviorSubject } from 'rxjs';
@Compo... | 2 |
Nicneo95/csf_assessment | a80ea60 | client/src/app/components/view2/view2.component.ts | TypeScript | www.github.com/Nicneo95/csf_assessment/tree/main/client/src/app/components/view2/view2.component.ts | https://raw.githubusercontent.com/Nicneo95/csf_assessment/a80ea60/client/src/app/components/view2/view2.component.ts | Nicneo95/csf_assessment a80ea60 client/src/app/components/view2/view2.component.ts | true | 200 | 1,812 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { Subscription } from 'rxjs';
import { Comment } from 'src/app/models';
import { MovieService } from 'src/app/movie.service'... | 4 |
dhbalaji/nextjs-template | e9e63fa | tests/example.spec.ts | TypeScript | www.github.com/dhbalaji/nextjs-template/tree/main/tests/example.spec.ts | https://raw.githubusercontent.com/dhbalaji/nextjs-template/e9e63fa/tests/example.spec.ts | dhbalaji/nextjs-template e9e63fa tests/example.spec.ts | true | 200 | 459 | import { test, expect } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('http://localhost:3000/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Next App/);
});
test('get started link', async ({ page }) => {
await page.goto('http://localhost:3000... | 0 |
Winniebran/client-contact-fullstack | 4fe6000 | front-end/contacts_book/src/styles/link.ts | TypeScript | www.github.com/Winniebran/client-contact-fullstack/tree/main/front-end/contacts_book/src/styles/link.ts | https://raw.githubusercontent.com/Winniebran/client-contact-fullstack/4fe6000/front-end/contacts_book/src/styles/link.ts | Winniebran/client-contact-fullstack 4fe6000 front-end/contacts_book/src/styles/link.ts | true | 200 | 296 | import { Link } from "react-router-dom";
import styled from "styled-components";
export const StyledLink = styled(Link)`
color: var(--color-grey-3);
font-weight: var(--font-weigth-bold);
transition: 0.5s ease-in-out;
&:hover {
color: var(--color-secondary-1);
}
`;
| 3 |
LedgerNinja0x/solana-pan | 9311c08 | ts-client/src/serde/schemas/structs.spec.ts | TypeScript | www.github.com/LedgerNinja0x/solana-pan/tree/main/ts-client/src/serde/schemas/structs.spec.ts | https://raw.githubusercontent.com/LedgerNinja0x/solana-pan/9311c08/ts-client/src/serde/schemas/structs.spec.ts | LedgerNinja0x/solana-pan 9311c08 ts-client/src/serde/schemas/structs.spec.ts | true | 200 | 5,291 | import assert from 'assert';
import { TStruct } from './structs';
import { FnkBorshWriter } from '../serializer';
import { FnkBorshReader } from '../deserializer';
import { TString } from './strings';
import { U8 } from './unsigned';
import { Bool } from './bools';
import { TEnum } from './enums';
import { FnkMap } fro... | 2 |
ronisonmatos/API-TypeScript | ffbd5c1 | src/routes/AuthRouters.ts | TypeScript | www.github.com/ronisonmatos/API-TypeScript/tree/main/src/routes/AuthRouters.ts | https://raw.githubusercontent.com/ronisonmatos/API-TypeScript/ffbd5c1/src/routes/AuthRouters.ts | ronisonmatos/API-TypeScript ffbd5c1 src/routes/AuthRouters.ts | true | 200 | 495 | import express = require("express");
import {authorization} from "../helpers/authorization";
import {authentification} from "../middlewares/auth.middleware";
import {AuthController} from "../controllers/AuthController";
import { Roles } from "../helpers/roles";
const router = express.Router();
router.post("/login", A... | 4 |
Felix0014/dbi-mongo-db | ea3461b | frontend/src/services/mongo.ts | TypeScript | www.github.com/Felix0014/dbi-mongo-db/tree/main/frontend/src/services/mongo.ts | https://raw.githubusercontent.com/Felix0014/dbi-mongo-db/ea3461b/frontend/src/services/mongo.ts | Felix0014/dbi-mongo-db ea3461b frontend/src/services/mongo.ts | true | 200 | 340 | import * as Realm from 'realm-web'
const APP_ID = "application-0-xtdpvmx"
export async function getMongoClient() {
const app = new Realm.App({id: APP_ID})
await app.logIn(Realm.Credentials.anonymous())
const mongo = <globalThis.Realm.Services.MongoDB>app.currentUser?.mongoClient("mongodb-atlas")
retur... | 0 |
Et-cappucino/movie-app | 44e1994 | src/rate/rate.controller.ts | TypeScript | www.github.com/Et-cappucino/movie-app/tree/main/src/rate/rate.controller.ts | https://raw.githubusercontent.com/Et-cappucino/movie-app/44e1994/src/rate/rate.controller.ts | Et-cappucino/movie-app 44e1994 src/rate/rate.controller.ts | true | 200 | 2,312 | import { Controller, Get, Post, Body, Param, Query } from '@nestjs/common';
import { ApiBearerAuth, ApiCreatedResponse, ApiOkResponse, ApiQuery, ApiTags, ApiUnauthorizedResponse } from '@nestjs/swagger';
import { RateService } from './rate.service';
import { CreateRateDto } from './dto/create-rate.dto';
import { Rate }... | 3 |
Naderi1386/Hiland-Beauti | 9cb6eee | src/feature/shop/ProductType.ts | TypeScript | www.github.com/Naderi1386/Hiland-Beauti/tree/main/src/feature/shop/ProductType.ts | https://raw.githubusercontent.com/Naderi1386/Hiland-Beauti/9cb6eee/src/feature/shop/ProductType.ts | Naderi1386/Hiland-Beauti 9cb6eee src/feature/shop/ProductType.ts | true | 200 | 304 | export interface ProductType {
title: string;
discount:number
price: number;
mainPrice: number;
category: string;
img: string;
brand: string;
boxType?: string;
SKU: string;
texture?: string;
attributes?: string[];
caption?: string;
coverage?: string;
rate:number
id:string
} | 2 |
roberiof/gympass-style-api | 63fa9f8 | src/http/controllers/users/refresh.ts | TypeScript | www.github.com/roberiof/gympass-style-api/tree/main/src/http/controllers/users/refresh.ts | https://raw.githubusercontent.com/roberiof/gympass-style-api/63fa9f8/src/http/controllers/users/refresh.ts | roberiof/gympass-style-api 63fa9f8 src/http/controllers/users/refresh.ts | true | 200 | 652 | import { FastifyRequest, FastifyReply } from "fastify";
export async function refresh(request: FastifyRequest, reply: FastifyReply) {
await request.jwtVerify({ onlyCookie: true });
const { role } = request.user;
const token = await reply.jwtSign(
{ role },
{
sign: { sub: request.user.sub },
}... | 4 |
SmOke11345/angular-course | 27ecb2c | src/app/pipes/filter-products.pipe.ts | TypeScript | www.github.com/SmOke11345/angular-course/tree/main/src/app/pipes/filter-products.pipe.ts | https://raw.githubusercontent.com/SmOke11345/angular-course/27ecb2c/src/app/pipes/filter-products.pipe.ts | SmOke11345/angular-course 27ecb2c src/app/pipes/filter-products.pipe.ts | true | 200 | 521 | import { Pipe, PipeTransform } from '@angular/core';
import { ProductsProps } from '../models/products';
@Pipe({
name: 'filterProducts',
standalone: true,
})
export class FilterProductsPipe implements PipeTransform {
transform(products: ProductsProps[], search: string): ProductsProps[] {
if (search... | 0 |
FrancoFelg/YoProgramo_Frontend | d1a86a5 | src/app/components/educacion/editeducacion.component.ts | TypeScript | www.github.com/FrancoFelg/YoProgramo_Frontend/tree/main/src/app/components/educacion/editeducacion.component.ts | https://raw.githubusercontent.com/FrancoFelg/YoProgramo_Frontend/d1a86a5/src/app/components/educacion/editeducacion.component.ts | FrancoFelg/YoProgramo_Frontend d1a86a5 src/app/components/educacion/editeducacion.component.ts | true | 200 | 1,232 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Educacion } from 'src/app/model/educacion';
import { EducacionService } from 'src/app/service/educacion.service';
@Component({
selector: 'app-editeducacion',
templateUrl: './editeducacion.component... | 3 |
idel28102001/bot_trampline_berdansk | 85bb008 | src/common/texts.ts | TypeScript | www.github.com/idel28102001/bot_trampline_berdansk/tree/main/src/common/texts.ts | https://raw.githubusercontent.com/idel28102001/bot_trampline_berdansk/85bb008/src/common/texts.ts | idel28102001/bot_trampline_berdansk 85bb008 src/common/texts.ts | true | 200 | 9,532 | import { format, subHours, subMinutes } from 'date-fns';
import { config } from './config';
import { ru } from 'date-fns/locale';
import e from 'express';
export const MenuButtons = {
Q9: '🔢Ввести код🔢',
// Q2: '🏒Бесплатная игра в хоккей🏒',
Q0: '🧸Участвовать в розыгрыше🧸',
Q1: '🤹♂Заказать праздник ДР🤹♂',... | 2 |
DiogoJorge1401/suetube-backend | 68fa89a | src/useCases/video/DeleteVideo/DeleteVideoUseCase.ts | TypeScript | www.github.com/DiogoJorge1401/suetube-backend/tree/main/src/useCases/video/DeleteVideo/DeleteVideoUseCase.ts | https://raw.githubusercontent.com/DiogoJorge1401/suetube-backend/68fa89a/src/useCases/video/DeleteVideo/DeleteVideoUseCase.ts | DiogoJorge1401/suetube-backend 68fa89a src/useCases/video/DeleteVideo/DeleteVideoUseCase.ts | true | 200 | 488 | import { HTTPError } from '@errors/HTTPError';
import { IVideoRepository } from '@repositories/video/IVideoRepository';
export class DeleteVideoUseCase {
constructor(private videoRepository: IVideoRepository) {}
async execute(videoId: string, userId: string) {
const video = await this.videoRepository.findById... | 4 |
Vladimir9812/middle.game.praktikum.yandex | daa4bb1 | packages/client/src/engine/Actions/Destroy.ts | TypeScript | www.github.com/Vladimir9812/middle.game.praktikum.yandex/tree/main/packages/client/src/engine/Actions/Destroy.ts | https://raw.githubusercontent.com/Vladimir9812/middle.game.praktikum.yandex/daa4bb1/packages/client/src/engine/Actions/Destroy.ts | Vladimir9812/middle.game.praktikum.yandex daa4bb1 packages/client/src/engine/Actions/Destroy.ts | true | 200 | 325 | import { EntityService } from '@app/engine';
import { EntitiesMapItem } from '../core/EntityService/types';
class Destroy {
protected readonly entityService = EntityService.getInstance();
public deleteEntity(entity: EntitiesMapItem) {
this.entityService.destroyEntity(entity);
}
}
export default new Destro... | 0 |
sirikorn-nau/Sangatan | 159d2a5 | src/app/view/monkuse/monkuse.component.spec.ts | TypeScript | www.github.com/sirikorn-nau/Sangatan/tree/main/src/app/view/monkuse/monkuse.component.spec.ts | https://raw.githubusercontent.com/sirikorn-nau/Sangatan/159d2a5/src/app/view/monkuse/monkuse.component.spec.ts | sirikorn-nau/Sangatan 159d2a5 src/app/view/monkuse/monkuse.component.spec.ts | true | 200 | 606 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MonkuseComponent } from './monkuse.component';
describe('MonkuseComponent', () => {
let component: MonkuseComponent;
let fixture: ComponentFixture<MonkuseComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... | 2 |
eamesh/euse | f680e6f | packages/core/src/theme/dark.ts | TypeScript | www.github.com/eamesh/euse/tree/main/packages/core/src/theme/dark.ts | https://raw.githubusercontent.com/eamesh/euse/f680e6f/packages/core/src/theme/dark.ts | eamesh/euse f680e6f packages/core/src/theme/dark.ts | true | 200 | 341 | import { createTheme } from '@mui/material';
import theme from './default';
export default createTheme({
...theme,
palette: {
...theme.palette,
background: {
default: '#212121',
paper: '#333333',
},
secondary: {
main: '#ffffff',
contrastText: '#000000',
},
mode: 'da... | 3 |
alexFiorenza/pizza-trevi-angular | 779c8af | src/app/admin/product-admin/product-admin.component.ts | TypeScript | www.github.com/alexFiorenza/pizza-trevi-angular/tree/main/src/app/admin/product-admin/product-admin.component.ts | https://raw.githubusercontent.com/alexFiorenza/pizza-trevi-angular/779c8af/src/app/admin/product-admin/product-admin.component.ts | alexFiorenza/pizza-trevi-angular 779c8af src/app/admin/product-admin/product-admin.component.ts | true | 200 | 1,301 | import { ProductService } from './../service/product.service';
import { Component, OnInit } from '@angular/core';
import { faMinusCircle, faEdit, faPlusSquare } from '@fortawesome/free-solid-svg-icons';
import { Router, ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-product-admin',
templateU... | 4 |
alongazim/Project_WE4B | 2262a32 | src/app/home-vendor/home-vendor.component.ts | TypeScript | www.github.com/alongazim/Project_WE4B/tree/main/src/app/home-vendor/home-vendor.component.ts | https://raw.githubusercontent.com/alongazim/Project_WE4B/2262a32/src/app/home-vendor/home-vendor.component.ts | alongazim/Project_WE4B 2262a32 src/app/home-vendor/home-vendor.component.ts | true | 200 | 385 | import { Component, OnInit } from '@angular/core';
import { VendorServiceService } from '../vendor-service.service';
import { Product } from 'src/classes/Product';
@Component({
selector: 'app-home-vendor',
templateUrl: './home-vendor.component.html',
styleUrls: ['./home-vendor.component.css']
})
export class Hom... | 0 |
psthejohn/pushpinderdev | f355b7f | src/app/home/pdfopener/pdfopener.component.ts | TypeScript | www.github.com/psthejohn/pushpinderdev/tree/main/src/app/home/pdfopener/pdfopener.component.ts | https://raw.githubusercontent.com/psthejohn/pushpinderdev/f355b7f/src/app/home/pdfopener/pdfopener.component.ts | psthejohn/pushpinderdev f355b7f src/app/home/pdfopener/pdfopener.component.ts | true | 200 | 587 | import { Component, OnInit } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@Component({
selector: 'app-pdfopener',
templateUrl: './pdfopener.component.html',
styleUrls: ['./pdfopener.component.scss']
})
export class PdfopenerComponent implements OnInit {
url:... | 1 |
Jaybee-v/ep-backend | 207acfd | src/infrastructure/persistence/repositories/pricing.repository.ts | TypeScript | www.github.com/Jaybee-v/ep-backend/tree/main/src/infrastructure/persistence/repositories/pricing.repository.ts | https://raw.githubusercontent.com/Jaybee-v/ep-backend/207acfd/src/infrastructure/persistence/repositories/pricing.repository.ts | Jaybee-v/ep-backend 207acfd src/infrastructure/persistence/repositories/pricing.repository.ts | true | 200 | 1,101 | import { IPricingRepository } from 'src/domain/repositories/pricing.interface';
import { PrismaService } from '../prisma/prisma.service';
import { PricingMapper } from '../mappers/pricing.mapper';
import { Pricing } from 'src/domain/entities/pricing.entity';
import { Injectable } from '@nestjs/common';
@Injectable()
e... | 2 |
mazed-dev/truthsayer | 2760d63 | elementary/src/editor/plugins/datetime.ts | TypeScript | www.github.com/mazed-dev/truthsayer/tree/main/elementary/src/editor/plugins/datetime.ts | https://raw.githubusercontent.com/mazed-dev/truthsayer/2760d63/elementary/src/editor/plugins/datetime.ts | mazed-dev/truthsayer 2760d63 elementary/src/editor/plugins/datetime.ts | true | 200 | 2,400 | import { Editor, Element, Range, Transforms } from 'slate'
import type { Moment } from 'moment'
import {
kSlateBlockTypeDateTime,
DateTimeElement,
CustomEditor,
} from '../types'
const tryParseDate = (_text: string): Moment | null => {
return null
}
export const withDateTime = (editor: CustomEditor) => {
... | 3 |
pepesan/ejemplos-angular-standalone-17 | 9bca400 | src/app/app.testing-library.component.spec.ts | TypeScript | www.github.com/pepesan/ejemplos-angular-standalone-17/tree/main/src/app/app.testing-library.component.spec.ts | https://raw.githubusercontent.com/pepesan/ejemplos-angular-standalone-17/9bca400/src/app/app.testing-library.component.spec.ts | pepesan/ejemplos-angular-standalone-17 9bca400 src/app/app.testing-library.component.spec.ts | true | 200 | 654 | import {render, screen, fireEvent} from '@testing-library/angular'
import { AppComponent } from './app.component';
describe('App Testing Library', () => {
it('should render App title', async () => {
await render(AppComponent, {
componentProperties: {title : 'proyecto'},
})
expect(screen.findByText... | 7 |
MarieHof/Academic | e4df4c0 | src/app/layout/note-dialog/note-dialog.component.ts | TypeScript | www.github.com/MarieHof/Academic/tree/main/src/app/layout/note-dialog/note-dialog.component.ts | https://raw.githubusercontent.com/MarieHof/Academic/e4df4c0/src/app/layout/note-dialog/note-dialog.component.ts | MarieHof/Academic e4df4c0 src/app/layout/note-dialog/note-dialog.component.ts | true | 200 | 2,027 | import {Component, Inject, OnInit} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {NoteModel} from '../models/note-model';
@Component({... | 0 |
kanelv/url-shortener | e714aef | src/application/use-cases/url/find-one-url.usecase.ts | TypeScript | www.github.com/kanelv/url-shortener/tree/main/src/application/use-cases/url/find-one-url.usecase.ts | https://raw.githubusercontent.com/kanelv/url-shortener/e714aef/src/application/use-cases/url/find-one-url.usecase.ts | kanelv/url-shortener e714aef src/application/use-cases/url/find-one-url.usecase.ts | true | 200 | 468 | import {
AbstractUrlRepository,
FindOneUrl
} from '../../../domain/contracts/repositories';
import { Url } from '../../../domain/entities';
export class FindOneUrlUseCase {
constructor(private readonly urlRepository: AbstractUrlRepository) {}
async execute(findOneUrl: FindOneUrl): Promise<Url> {
const url... | 4 |
simple-ecommerce/api | 2d8e965 | src/routers/employee/routers/catalog_router.ts | TypeScript | www.github.com/simple-ecommerce/api/tree/main/src/routers/employee/routers/catalog_router.ts | https://raw.githubusercontent.com/simple-ecommerce/api/2d8e965/src/routers/employee/routers/catalog_router.ts | simple-ecommerce/api 2d8e965 src/routers/employee/routers/catalog_router.ts | true | 200 | 2,058 | import { Router } from "express";
import { itemHandlers } from "../../../apps/employee/v1/catalog/handlers/item_handlers";
import { specificationCategoriesHandlers } from "../../../apps/employee/v1/catalog/handlers/specification_category_handlers";
export const catalogRouter = Router();
//items
catalogRouter.post("/i... | 1 |
CosminVarvari/Energy-Management-System | d7fa12c | SDProject-Frontend/src/app/components/dialog-add-device/dialog-add-device.component.ts | TypeScript | www.github.com/CosminVarvari/Energy-Management-System/tree/main/SDProject-Frontend/src/app/components/dialog-add-device/dialog-add-device.component.ts | https://raw.githubusercontent.com/CosminVarvari/Energy-Management-System/d7fa12c/SDProject-Frontend/src/app/components/dialog-add-device/dialog-add-device.component.ts | CosminVarvari/Energy-Management-System d7fa12c SDProject-Frontend/src/app/components/dialog-add-device/dialog-add-device.component.ts | true | 200 | 1,229 | import { Component, Inject, OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Device } from 'src/app/_models/device.model';
import { UserId } from 'src/app/_models/userid.model';
import { DeviceService } from 'src... | 5 |
audreyadora/harmony | 13d1460 | src/components/PianoRoll/Grid.ts | TypeScript | www.github.com/audreyadora/harmony/tree/main/src/components/PianoRoll/Grid.ts | https://raw.githubusercontent.com/audreyadora/harmony/13d1460/src/components/PianoRoll/Grid.ts | audreyadora/harmony 13d1460 src/components/PianoRoll/Grid.ts | true | 200 | 9,942 | import { scale_value, trans_scale_range_vec2, round_to} from "./utils";
import type {GridDataGenerator} from './types'
let GridData = {
canvas_scale : [1,1],
canvas_trans : [0,0],
g_color_a : [0.867,0.867,0.867, 1.0],
g_color_b : [0.840,0.840,0.840, 1.0],
g_color_c : [0.938,0.938,0.938, 1.0],
... | 7 |
maral/bun-aoc | 1b69598 | src/2023/14/14.test.ts | TypeScript | www.github.com/maral/bun-aoc/tree/main/src/2023/14/14.test.ts | https://raw.githubusercontent.com/maral/bun-aoc/1b69598/src/2023/14/14.test.ts | maral/bun-aoc 1b69598 src/2023/14/14.test.ts | true | 200 | 813 | import { describe, expect, test } from 'bun:test'
import { fnv1aHash, parse, partOne, partTwo, tilt } from './14'
const example = `O....#....
O.OO#....#
.....##...
OO.#O....O
.O.....O#.
O.#..O.#.#
..O..#O..O
.......O..
#....###..
#OO..#....`
describe('Day 14', () => {
describe('Part One', () => {
test('test inp... | 0 |
edgar643/BikeTrackPro | aec88b4 | src/app/_interceptor/request.interceptor.ts | TypeScript | www.github.com/edgar643/BikeTrackPro/tree/main/src/app/_interceptor/request.interceptor.ts | https://raw.githubusercontent.com/edgar643/BikeTrackPro/aec88b4/src/app/_interceptor/request.interceptor.ts | edgar643/BikeTrackPro aec88b4 src/app/_interceptor/request.interceptor.ts | true | 200 | 699 | import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpEvent,
HttpInterceptor,
HttpHeaders
} from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable()
export class RequestInterceptor implements HttpInterceptor {
constructor() {}
intercept(request: Http... | 4 |
FoxyGDFD/csv-registered-users-backend | d449aa7 | src/controllers/users.ts | TypeScript | www.github.com/FoxyGDFD/csv-registered-users-backend/tree/main/src/controllers/users.ts | https://raw.githubusercontent.com/FoxyGDFD/csv-registered-users-backend/d449aa7/src/controllers/users.ts | FoxyGDFD/csv-registered-users-backend d449aa7 src/controllers/users.ts | true | 200 | 796 | import type { Request, Response } from 'express';
import { UserService } from '../services';
export class UsersController {
constructor(private readonly service: UserService) {}
create(req: Request, res: Response) {
(async () =>
await this.service
.loadUsers(req.file as Express.Multer.File)
... | 1 |
Kantemakhil/Angular | 4360763 | Elite2Angular/src/app/inst/demographics-biometrics/beans/TempLivingUnitProfiles.ts | TypeScript | www.github.com/Kantemakhil/Angular/tree/main/Elite2Angular/src/app/inst/demographics-biometrics/beans/TempLivingUnitProfiles.ts | https://raw.githubusercontent.com/Kantemakhil/Angular/4360763/Elite2Angular/src/app/inst/demographics-biometrics/beans/TempLivingUnitProfiles.ts | Kantemakhil/Angular 4360763 Elite2Angular/src/app/inst/demographics-biometrics/beans/TempLivingUnitProfiles.ts | true | 200 | 1,951 | import {BaseModel} from '@commonbeans/BaseModel';
export class TempLivingUnitProfiles extends BaseModel {
private _createDatetime: Date;
private _createUserId: string;
private _modifyDatetime: Date;
private _modifyUserId: string;
private _profileCode: string;
private _profileType: string;
private _profi... | 5 |
Aloxan12/codewars | a69d78f | TypeScript/kyu8.ts | TypeScript | www.github.com/Aloxan12/codewars/tree/main/TypeScript/kyu8.ts | https://raw.githubusercontent.com/Aloxan12/codewars/a69d78f/TypeScript/kyu8.ts | Aloxan12/codewars a69d78f TypeScript/kyu8.ts | true | 200 | 23,369 | import {Warrior} from "./kyu7";
export function numberToString(num: number): string {
return String(num)
}
export const summation = (num: number) => {
let result: number = 0
for (let i = 0; i <= num; i++) {
result += i
}
return result
}
export function simpleMultiplication(num: number): n... | 6 |
Ganesha879/cafe-management-system | 4119960 | src/app/inventory.ts | TypeScript | www.github.com/Ganesha879/cafe-management-system/tree/main/src/app/inventory.ts | https://raw.githubusercontent.com/Ganesha879/cafe-management-system/4119960/src/app/inventory.ts | Ganesha879/cafe-management-system 4119960 src/app/inventory.ts | true | 200 | 636 | import { MenuItem } from './menuitem';
export class InventoryItem {
inventoryId: number;
stockLevel: number;
minimumLevel: number;
reorderQuantity: number;
unitCost: number;
menuItem: MenuItem;
constructor(
inventoryId: number = 0,
stockLevel: number = 0,
minimumLevel: number = 0,
reorde... | 3 |
jwhenry3/clara-mundi-phaser | 785f05d | backend/libs/websocket/src/websocket.utils.ts | TypeScript | www.github.com/jwhenry3/clara-mundi-phaser/tree/main/backend/libs/websocket/src/websocket.utils.ts | https://raw.githubusercontent.com/jwhenry3/clara-mundi-phaser/785f05d/backend/libs/websocket/src/websocket.utils.ts | jwhenry3/clara-mundi-phaser 785f05d backend/libs/websocket/src/websocket.utils.ts | true | 200 | 562 | import { Server } from 'ws'
import { WebSocketClient } from './websocket.client'
export class WebSocketMessage {
constructor(public event: string, public data: any) {}
}
export class WebsocketUtils {
static broadcast(clients: WebSocketClient[], event: string) {
for (const client of clients) {
client.sen... | 2 |
victortwu/order-goods-cdk | f8af7ab | test/listsHandler.test.ts | TypeScript | www.github.com/victortwu/order-goods-cdk/tree/main/test/listsHandler.test.ts | https://raw.githubusercontent.com/victortwu/order-goods-cdk/f8af7ab/test/listsHandler.test.ts | victortwu/order-goods-cdk f8af7ab test/listsHandler.test.ts | true | 200 | 1,524 | import { APIGatewayEvent, Context } from "aws-lambda";
import { listsHandler } from "../lib/services/listsHandler";
process.env.ORDERED_LIST_TABLE_NAME = "OrderedListTable-02b5a9df58b3";
test.skip("GET lists", async () => {
const event = {
httpMethod: "GET",
queryStringParameters: {
id: "3326d246-5267... | 0 |
thoratp/NodeJs-Traning | 4d55c28 | Final case study/flight-booking-app/src/app.module.ts | TypeScript | www.github.com/thoratp/NodeJs-Traning/tree/main/Final case study/flight-booking-app/src/app.module.ts | https://raw.githubusercontent.com/thoratp/NodeJs-Traning/4d55c28/Final%20case%20study/flight-booking-app/src/app.module.ts | thoratp/NodeJs-Traning 4d55c28 Final case study/flight-booking-app/src/app.module.ts | true | 200 | 794 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { UserModule } from './user/user.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AirlineModule } from './airli... | 3 |
ikcontreras/angular17-test | 8522405 | src/app/shared/services/api.service.spec.ts | TypeScript | www.github.com/ikcontreras/angular17-test/tree/main/src/app/shared/services/api.service.spec.ts | https://raw.githubusercontent.com/ikcontreras/angular17-test/8522405/src/app/shared/services/api.service.spec.ts | ikcontreras/angular17-test 8522405 src/app/shared/services/api.service.spec.ts | true | 200 | 3,886 | import { TestBed } from '@angular/core/testing';
import { ApiService } from './api.service';
import {HttpClientTestingModule, HttpTestingController} from "@angular/common/http/testing";
import DoneCallback = jest.DoneCallback;
import {HttpClient, HttpErrorResponse} from "@angular/common/http";
interface MockData {
... | 1 |
ahmedadelomar/Hadaf_Solution_tasks | a12a71b | src/app/app-routing.module.ts | TypeScript | www.github.com/ahmedadelomar/Hadaf_Solution_tasks/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/ahmedadelomar/Hadaf_Solution_tasks/a12a71b/src/app/app-routing.module.ts | ahmedadelomar/Hadaf_Solution_tasks a12a71b src/app/app-routing.module.ts | true | 200 | 728 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { DataOfSelectedPostComponent } from './data-of-selected-post/data-of-selected-post.component';
import { LayoutComponent } from './layout/layout.component';
import { C... | 4 |
AntonioHamilton/Gastos-Parlamentares | 42c6186 | src/backend/controllers/ctrLocation.ts | TypeScript | www.github.com/AntonioHamilton/Gastos-Parlamentares/tree/main/src/backend/controllers/ctrLocation.ts | https://raw.githubusercontent.com/AntonioHamilton/Gastos-Parlamentares/42c6186/src/backend/controllers/ctrLocation.ts | AntonioHamilton/Gastos-Parlamentares 42c6186 src/backend/controllers/ctrLocation.ts | true | 200 | 2,249 | import User from "../models/user"
import jwt from 'jsonwebtoken'
type GetLocationProps = {
token: string
}
export const getAllLocations = async ({ token }: GetLocationProps) => {
try {
const splitedToken = token.split(' ')[1]
const tokenUncoded = jwt.decode(splitedToken);
const { user } = JSON.parse(J... | 5 |
Jurgen212/pinturillo_app | ca6da37 | pinturillo_app_back/src/services/category.service.ts | TypeScript | www.github.com/Jurgen212/pinturillo_app/tree/main/pinturillo_app_back/src/services/category.service.ts | https://raw.githubusercontent.com/Jurgen212/pinturillo_app/ca6da37/pinturillo_app_back/src/services/category.service.ts | Jurgen212/pinturillo_app ca6da37 pinturillo_app_back/src/services/category.service.ts | true | 200 | 2,992 | import { CategoryRepository } from '../repositories/category.repository';
import { Category } from '../entities/category.entity';
import { CreateCategoryDto, createCategorySchema, UpdateCategoryDto, updateCategorySchema } from '../dto/category';
import { CATEGORY_ALREADY_EXISTS, CATEGORY_ALREADY_USED_IN_ROOM, CATEGORY_... | 6 |
muhodev/hitatek-news | 65bd0ff | web/app/api/v1/home/route.ts | TypeScript | www.github.com/muhodev/hitatek-news/tree/main/web/app/api/v1/home/route.ts | https://raw.githubusercontent.com/muhodev/hitatek-news/65bd0ff/web/app/api/v1/home/route.ts | muhodev/hitatek-news 65bd0ff web/app/api/v1/home/route.ts | true | 200 | 725 | import { NextRequest, NextResponse } from "next/server";
import POSTS from "@/constants/FAKE_POSTS.json";
export async function GET(req: NextRequest) {
try {
const posts = JSON.parse(JSON.stringify(POSTS));
const featuredPost = posts.slice(0, 1)?.[0];
const popularPosts = posts.slice(1, 6);
const top... | 2 |
michael-marynowicz/StormTable | 12f496b | backend/src/client/document/document.controller.ts | TypeScript | www.github.com/michael-marynowicz/StormTable/tree/main/backend/src/client/document/document.controller.ts | https://raw.githubusercontent.com/michael-marynowicz/StormTable/12f496b/backend/src/client/document/document.controller.ts | michael-marynowicz/StormTable 12f496b backend/src/client/document/document.controller.ts | true | 200 | 563 | import {Body, Controller, Param, Post} from '@nestjs/common';
import {MeetingService} from "../../core/meeting/meeting.service";
import {SessionService} from "../../core/session/session.service";
@Controller('document')
export class DocumentController {
constructor(private meetingService: MeetingService) {
}
... | 7 |
hitesh-sipl/angular-hitesh | 51c35b8 | Crud-application/registrationapp/src/app/app.component.ts | TypeScript | www.github.com/hitesh-sipl/angular-hitesh/tree/main/Crud-application/registrationapp/src/app/app.component.ts | https://raw.githubusercontent.com/hitesh-sipl/angular-hitesh/51c35b8/Crud-application/registrationapp/src/app/app.component.ts | hitesh-sipl/angular-hitesh 51c35b8 Crud-application/registrationapp/src/app/app.component.ts | true | 200 | 5,525 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
import Swal from 'sweetalert2';
import { UserService } from './_helpers/user.service';
import { User } from './_helpers/user.interface';
import... | 0 |
thakorraj/httpClient | 3999d26 | src/app/app.module.ts | TypeScript | www.github.com/thakorraj/httpClient/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/thakorraj/httpClient/3999d26/src/app/app.module.ts | thakorraj/httpClient 3999d26 src/app/app.module.ts | true | 200 | 861 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { S... | 4 |
kamrulhasan2023/react-conference | f094761 | src/utils/format-date.ts | TypeScript | www.github.com/kamrulhasan2023/react-conference/tree/main/src/utils/format-date.ts | https://raw.githubusercontent.com/kamrulhasan2023/react-conference/f094761/src/utils/format-date.ts | kamrulhasan2023/react-conference f094761 src/utils/format-date.ts | true | 200 | 388 | /**
* This is an example of an util function that does not belong to a specfic component/section
* but can be used by multiple components/sections
*
* Please remove this folder if it is not necessary for your project.
*/
export function formatDateGlobal(date: Date) {
return date.toLocaleDateString(undefined, {
... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.