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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Wikator/ToDoListAngularClient | 3723b76 | src/app/subjects/subject-list/subject-list.component.ts | TypeScript | www.github.com/Wikator/ToDoListAngularClient/tree/main/src/app/subjects/subject-list/subject-list.component.ts | https://raw.githubusercontent.com/Wikator/ToDoListAngularClient/3723b76/src/app/subjects/subject-list/subject-list.component.ts | Wikator/ToDoListAngularClient 3723b76 src/app/subjects/subject-list/subject-list.component.ts | true | 200 | 1,003 | import {Component, inject, OnInit} from '@angular/core';
import {SubjectService} from "../../core/services/subject.service";
import {Subject} from "../../core/models/subject";
import {ToastrService} from "ngx-toastr";
@Component({
selector: 'app-subject-list',
templateUrl: './subject-list.component.html',
styleU... | 5 |
mattchristopher314/fire-cracker | 8941846 | src/utils/constants.ts | TypeScript | www.github.com/mattchristopher314/fire-cracker/tree/main/src/utils/constants.ts | https://raw.githubusercontent.com/mattchristopher314/fire-cracker/8941846/src/utils/constants.ts | mattchristopher314/fire-cracker 8941846 src/utils/constants.ts | true | 200 | 795 | const baseUrls = {
"local-development": "http://localhost:5173",
development: "https://firecrackerdev.matthewlukechristopher.com",
production: "https://firecracker.matthewlukechristopher.com",
};
function isValidMode(key: string): key is keyof typeof baseUrls {
return key in baseUrls;
}
const mode = import.me... | 1 |
jaovito/foodu-mobile | eb9f1d9 | src/components/molecules/NutritionCard/nutrition-card.styles.ts | TypeScript | www.github.com/jaovito/foodu-mobile/tree/main/src/components/molecules/NutritionCard/nutrition-card.styles.ts | https://raw.githubusercontent.com/jaovito/foodu-mobile/eb9f1d9/src/components/molecules/NutritionCard/nutrition-card.styles.ts | jaovito/foodu-mobile eb9f1d9 src/components/molecules/NutritionCard/nutrition-card.styles.ts | true | 200 | 714 | import {Text} from '@components/atoms/Text';
import {View} from 'react-native';
import {RFValue} from 'react-native-responsive-fontsize';
import styled from 'styled-components/native';
export const Container = styled(View)`
border: 1px solid ${({theme}) => theme.colors.primary};
border-radius: ${RFValue(10)}px;
... | 0 |
Tdaycode/vtu-backend | 774c9e2 | src/interfaces/responses/identityPass.response.interface.ts | TypeScript | www.github.com/Tdaycode/vtu-backend/tree/main/src/interfaces/responses/identityPass.response.interface.ts | https://raw.githubusercontent.com/Tdaycode/vtu-backend/774c9e2/src/interfaces/responses/identityPass.response.interface.ts | Tdaycode/vtu-backend 774c9e2 src/interfaces/responses/identityPass.response.interface.ts | true | 200 | 1,792 | interface IdentityPassBaseResponse {
status: boolean;
response_code: string;
detail: string;
face_data: FaceData;
widget_info: UserInfo;
}
export interface IdentityPassBVNResponse extends IdentityPassBaseResponse {
data: BvnData,
}
export interface IdentityPassGeneralResponse extends IdentityPassBaseRespo... | 7 |
AhmetUtkuPelen/FakeWitter | 596b695 | backend/Middlewares/ProtectedRoute.ts | TypeScript | www.github.com/AhmetUtkuPelen/FakeWitter/tree/main/backend/Middlewares/ProtectedRoute.ts | https://raw.githubusercontent.com/AhmetUtkuPelen/FakeWitter/596b695/backend/Middlewares/ProtectedRoute.ts | AhmetUtkuPelen/FakeWitter 596b695 backend/Middlewares/ProtectedRoute.ts | true | 200 | 1,506 | import { NextFunction, Request, Response } from "express";
import User from "../Models/UserModel";
import jwt from "jsonwebtoken";
import { Document } from "mongoose";
// ? Define User interface based on your UserModel ? \\
interface IUser extends Document {
_id: string;
username: string;
fullName: string;
ema... | 3 |
homie-homecontrol/hc-dashboard | 8917bf7 | backend/src/server/routes/HomieControlRouter.ts | TypeScript | www.github.com/homie-homecontrol/hc-dashboard/tree/main/backend/src/server/routes/HomieControlRouter.ts | https://raw.githubusercontent.com/homie-homecontrol/hc-dashboard/8917bf7/backend/src/server/routes/HomieControlRouter.ts | homie-homecontrol/hc-dashboard 8917bf7 backend/src/server/routes/HomieControlRouter.ts | true | 200 | 2,094 | import { Router, Request, Response, NextFunction } from 'express';
import { Core } from '../../core/Core';
import winston from 'winston';
import { HomieValuesTypes, PropertySelector } from 'node-homie/model';
import { mergeMap, take } from 'rxjs/operators';
import { asPropertyPointer, type2Hm } from 'node-homie/util';
... | 4 |
foadsalmanian/dummyRepo | 1350418 | FormGenerator/utils.ts | TypeScript | www.github.com/foadsalmanian/dummyRepo/tree/main/FormGenerator/utils.ts | https://raw.githubusercontent.com/foadsalmanian/dummyRepo/1350418/FormGenerator/utils.ts | foadsalmanian/dummyRepo 1350418 FormGenerator/utils.ts | true | 200 | 4,048 | import { TOpenSnackbar } from 'hooks/useSnackBar';
import { UseFormSetError, Control, UseFormSetFocus } from 'react-hook-form';
import { IFormGenRow, TFormGenRows } from 'types/TFormGen';
import { makeObjectCamelCase } from 'utils/common';
const isDevelopment = process.env.NODE_ENV === 'development';
/* eslint-disabl... | 2 |
jventura7/kanban-server | 370acee | src/util/middleware.ts | TypeScript | www.github.com/jventura7/kanban-server/tree/main/src/util/middleware.ts | https://raw.githubusercontent.com/jventura7/kanban-server/370acee/src/util/middleware.ts | jventura7/kanban-server 370acee src/util/middleware.ts | true | 200 | 369 | import { validationResult } from "express-validator";
import { Request, Response, NextFunction } from "express";
const handleInputErrors = (req: Request, res: Response, next: NextFunction) => {
const errors = validationResult(req);
if (!errors.isEmpty()) {
return res.status(400).send({ data: errors.array() });... | 1 |
Horleryheancarh/voting-api | 50f58c1 | src/database/models/Options.model.ts | TypeScript | www.github.com/Horleryheancarh/voting-api/tree/main/src/database/models/Options.model.ts | https://raw.githubusercontent.com/Horleryheancarh/voting-api/50f58c1/src/database/models/Options.model.ts | Horleryheancarh/voting-api 50f58c1 src/database/models/Options.model.ts | true | 200 | 569 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import mongoose, { Document } from 'mongoose';
import { Polls } from './Polls.model';
export type OptionDocument = Options & Document;
@Schema({
timestamps: true,
})
export class Options {
@Prop({ required: true })
optionText: string;
@Prop({ ty... | 0 |
rochaskingdom/angular-9-essencial | 0804701 | src/app/directives/for.directive.ts | TypeScript | www.github.com/rochaskingdom/angular-9-essencial/tree/main/src/app/directives/for.directive.ts | https://raw.githubusercontent.com/rochaskingdom/angular-9-essencial/0804701/src/app/directives/for.directive.ts | rochaskingdom/angular-9-essencial 0804701 src/app/directives/for.directive.ts | true | 200 | 481 | import {Directive, Input, OnInit, TemplateRef, ViewContainerRef} from '@angular/core';
@Directive({
selector: '[appFor]'
})
export class ForDirective implements OnInit {
@Input('appForEm') numbers: number[];
constructor(
private container: ViewContainerRef,
private template: TemplateRef<any>
) {
}
... | 6 |
nandkishorakangire/ZeroZilla-Test-NestJS-Backend | 738e9a9 | src/summarize/summarize.helper.ts | TypeScript | www.github.com/nandkishorakangire/ZeroZilla-Test-NestJS-Backend/tree/main/src/summarize/summarize.helper.ts | https://raw.githubusercontent.com/nandkishorakangire/ZeroZilla-Test-NestJS-Backend/738e9a9/src/summarize/summarize.helper.ts | nandkishorakangire/ZeroZilla-Test-NestJS-Backend 738e9a9 src/summarize/summarize.helper.ts | true | 200 | 422 | import { Injectable } from '@nestjs/common';
@Injectable()
export class SummarizeHelper {
splitTextIntoGroups(text: string, sentencesPerGroup: number): string[] {
const sentences = text.match(/[^.!?]+[.!?]+/g) || [text];
const groups = [];
for (let i = 0; i < sentences.length; i += sentencesPerGroup) {
... | 5 |
luisjavierluna/Mall | 34d7a1f | Mall-UI/src/app/security/authorized/authorized.component.ts | TypeScript | www.github.com/luisjavierluna/Mall/tree/main/Mall-UI/src/app/security/authorized/authorized.component.ts | https://raw.githubusercontent.com/luisjavierluna/Mall/34d7a1f/Mall-UI/src/app/security/authorized/authorized.component.ts | luisjavierluna/Mall 34d7a1f Mall-UI/src/app/security/authorized/authorized.component.ts | true | 200 | 608 | import { Component, Input, OnInit } from '@angular/core';
import { SecurityService } from '../security.service';
@Component({
selector: 'app-authorized',
templateUrl: './authorized.component.html',
styleUrls: ['./authorized.component.css']
})
export class AuthorizedComponent implements OnInit {
constructor(pr... | 7 |
danialzadrafiee/niko-react-new | b6be78d | src/pages/admin/statistics/charity/types.ts | TypeScript | www.github.com/danialzadrafiee/niko-react-new/tree/main/src/pages/admin/statistics/charity/types.ts | https://raw.githubusercontent.com/danialzadrafiee/niko-react-new/b6be78d/src/pages/admin/statistics/charity/types.ts | danialzadrafiee/niko-react-new b6be78d src/pages/admin/statistics/charity/types.ts | true | 200 | 1,276 | export interface CharityStatistics {
charity_id: string
charity_name: string | null
total_fundraises: number
live_fundraises: number
completed_fundraises: number
total_amount_raised: number
total_goal_amount: number
average_completion_percentage: number
total_investors: number
total_investments: num... | 3 |
angenari28/gdesp | 093b116 | src/app/gd-shared/gd-form/gd-form/gd-form.module.ts | TypeScript | www.github.com/angenari28/gdesp/tree/main/src/app/gd-shared/gd-form/gd-form/gd-form.module.ts | https://raw.githubusercontent.com/angenari28/gdesp/093b116/src/app/gd-shared/gd-form/gd-form/gd-form.module.ts | angenari28/gdesp 093b116 src/app/gd-shared/gd-form/gd-form/gd-form.module.ts | true | 200 | 775 | import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { GdFormComponent } from './gd-form.component';
import { Gdi18nModule } from '../../gd-i18n/gd-i18n.module';
import { GdButtonModule } from '../gd-button/g... | 2 |
KaimuSeino/eventi | 25a9a32 | actions/get-user.ts | TypeScript | www.github.com/KaimuSeino/eventi/tree/main/actions/get-user.ts | https://raw.githubusercontent.com/KaimuSeino/eventi/25a9a32/actions/get-user.ts | KaimuSeino/eventi 25a9a32 actions/get-user.ts | true | 200 | 340 | import { db } from "@/lib/db";
type GetUserProps = {
userId: string;
}
export const getUser = async ({
userId
}: GetUserProps) => {
try {
const user = await db.user.findUnique({
where: {
userId: userId
}
})
return user
} catch (error) {
console.log("[GET_USER]", error);
... | 4 |
shvyeon/spotify | f5794e9 | web422-a4/src/app/app.component.ts | TypeScript | www.github.com/shvyeon/spotify/tree/main/web422-a4/src/app/app.component.ts | https://raw.githubusercontent.com/shvyeon/spotify/f5794e9/web422-a4/src/app/app.component.ts | shvyeon/spotify f5794e9 web422-a4/src/app/app.component.ts | true | 200 | 1,604 | /*********************************************************************************
* WEB422 – Assignment 06
* I declare that this assignment is my own work in accordance with Seneca Academic Policy. No part of this
* assignment has been copied manually or electronically from any other source (including web site... | 0 |
pedritobata/mfe-expendables-n5 | 4e9aa2c | src/components/UI/banner/styles.ts | TypeScript | www.github.com/pedritobata/mfe-expendables-n5/tree/main/src/components/UI/banner/styles.ts | https://raw.githubusercontent.com/pedritobata/mfe-expendables-n5/4e9aa2c/src/components/UI/banner/styles.ts | pedritobata/mfe-expendables-n5 4e9aa2c src/components/UI/banner/styles.ts | true | 200 | 769 | import styled from "styled-components";
export const Wrapper = styled.div<{ $img: string }>`
background-image: url(${(props) => props.$img});
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
height: 250px;
margin: 2em auto;
display: flex;
flex-dir... | 1 |
dasartini/Typescript-advanced-lessons | 8a52cc6 | src/10-interfaces.ts | TypeScript | www.github.com/dasartini/Typescript-advanced-lessons/tree/main/src/10-interfaces.ts | https://raw.githubusercontent.com/dasartini/Typescript-advanced-lessons/8a52cc6/src/10-interfaces.ts | dasartini/Typescript-advanced-lessons 8a52cc6 src/10-interfaces.ts | true | 200 | 539 | type Sizes = 'S' | 'M' | 'L' | 'XL';
// type Product ={
// id: string | number,
// title: string ,
// createdAt: Date ,
// stock: number,
// size?: Sizes,
// }
interface Product {
id: string | number,
title: string ,
createdAt: Date ,
stock: number,
size?: Sizes,
}
const produ... | 5 |
dxarch/aviasales_backend | 770e088 | apps/backend/src/app/auth/domain/ForgotPassword.form.ts | TypeScript | www.github.com/dxarch/aviasales_backend/tree/main/apps/backend/src/app/auth/domain/ForgotPassword.form.ts | https://raw.githubusercontent.com/dxarch/aviasales_backend/770e088/apps/backend/src/app/auth/domain/ForgotPassword.form.ts | dxarch/aviasales_backend 770e088 apps/backend/src/app/auth/domain/ForgotPassword.form.ts | true | 200 | 853 | import { IsEmail, IsUUID } from "class-validator";
import { validate } from "class-validator";
import {
EmailErrorMessage,
UuidErrorMessage,
} from "@app/exceptions/i18n-error";
import { ApiProperty } from "@nestjs/swagger";
export class ForgotPasswordForm {
@ApiProperty({
description: "device id",
})
@I... | 7 |
rayaneBouzroura/5w5-Exercice-03-guard-reactiveForm | f14e5ff | guard/src/app/caramel/caramel.component.spec.ts | TypeScript | www.github.com/rayaneBouzroura/5w5-Exercice-03-guard-reactiveForm/tree/main/guard/src/app/caramel/caramel.component.spec.ts | https://raw.githubusercontent.com/rayaneBouzroura/5w5-Exercice-03-guard-reactiveForm/f14e5ff/guard/src/app/caramel/caramel.component.spec.ts | rayaneBouzroura/5w5-Exercice-03-guard-reactiveForm f14e5ff guard/src/app/caramel/caramel.component.spec.ts | true | 200 | 604 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CaramelComponent } from './caramel.component';
describe('CaramelComponent', () => {
let component: CaramelComponent;
let fixture: ComponentFixture<CaramelComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... | 2 |
MonkeyDonkeyKing/ohmunity-webapp | 8b6e39e | src/router/index.ts | TypeScript | www.github.com/MonkeyDonkeyKing/ohmunity-webapp/tree/main/src/router/index.ts | https://raw.githubusercontent.com/MonkeyDonkeyKing/ohmunity-webapp/8b6e39e/src/router/index.ts | MonkeyDonkeyKing/ohmunity-webapp 8b6e39e src/router/index.ts | true | 200 | 389 | import { createWebHistory, createRouter } from 'vue-router';
import Home from '../views/Home.vue';
import Map from '../views/CampusMap.vue';
const routes = [
{
path: '/',
name: 'Home',
component: Home,
},
{
path: '/map',
name: 'Map',
component: Map,
},
];
const router = createRouter({
... | 4 |
ahmedchan/demo-store-task | 93bd076 | src/services/categoryService.ts | TypeScript | www.github.com/ahmedchan/demo-store-task/tree/main/src/services/categoryService.ts | https://raw.githubusercontent.com/ahmedchan/demo-store-task/93bd076/src/services/categoryService.ts | ahmedchan/demo-store-task 93bd076 src/services/categoryService.ts | true | 200 | 623 | import { baseApi } from "@/services/baseApi"
import type { CategoryItem } from "@/types.type"
// Define types for response and request
export type LoginError = {
data: string
originalStatus: number
status: string
}
export const categoryService = baseApi.injectEndpoints({
endpoints: (builder) => ({
getAllC... | 3 |
CristhianRp5/NotificacionesEstudiantes | baa8caa | src/app/components/dashboard/dashboard.component.ts | TypeScript | www.github.com/CristhianRp5/NotificacionesEstudiantes/tree/main/src/app/components/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/CristhianRp5/NotificacionesEstudiantes/baa8caa/src/app/components/dashboard/dashboard.component.ts | CristhianRp5/NotificacionesEstudiantes baa8caa src/app/components/dashboard/dashboard.component.ts | true | 200 | 450 | import { Component } from '@angular/core';
import { StatsCardsComponent } from '../stats-cards/stats-cards.component';
import { PaymentsTableComponent } from '../payments-table/payments-table.component';
@Component({
selector: 'app-dashboard',
standalone: true,
imports: [StatsCardsComponent, PaymentsTableCompone... | 0 |
xushenghao/ResBackend | 490acf3 | src/main.ts | TypeScript | www.github.com/xushenghao/ResBackend/tree/main/src/main.ts | https://raw.githubusercontent.com/xushenghao/ResBackend/490acf3/src/main.ts | xushenghao/ResBackend 490acf3 src/main.ts | true | 200 | 1,173 | import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import {store, key} from './store';
import {directive} from '/@/utils/directive';
import {i18n} from '/@/i18n';
import other from '/@/utils/other';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/... | 1 |
ASMohamedFaheemAnver/MicroServicesStudy | 3e8ee08 | e-ticketing/orders/src/events/listeners/payment-created-listener.ts | TypeScript | www.github.com/ASMohamedFaheemAnver/MicroServicesStudy/tree/main/e-ticketing/orders/src/events/listeners/payment-created-listener.ts | https://raw.githubusercontent.com/ASMohamedFaheemAnver/MicroServicesStudy/3e8ee08/e-ticketing/orders/src/events/listeners/payment-created-listener.ts | ASMohamedFaheemAnver/MicroServicesStudy 3e8ee08 e-ticketing/orders/src/events/listeners/payment-created-listener.ts | true | 200 | 840 | import {
Listener,
NotFountError,
OrderStatus,
PaymentCreatedEvent,
Subjects,
} from "@coders2authority/tik-common";
import { Message } from "node-nats-streaming";
import { Order } from "../../models/order";
import { queueGroupName } from "./queue-group-name";
export class PaymentCreatedListener extends List... | 5 |
FreitasAssis/tech-challenge | 1288a14 | tests/integration/index.test.ts | TypeScript | www.github.com/FreitasAssis/tech-challenge/tree/main/tests/integration/index.test.ts | https://raw.githubusercontent.com/FreitasAssis/tech-challenge/1288a14/tests/integration/index.test.ts | FreitasAssis/tech-challenge 1288a14 tests/integration/index.test.ts | true | 200 | 4,172 | import receiverService from "../../src/services/receiverService";
import Receiver from "../../src/models/receiverModel";
import PixData from "../../src/models/pixDataModel";
import { IReceiver, IReceiverUpdate } from "../../src/utils/types";
describe("Create Receiver - Integration test", () => {
const receiverData =... | 2 |
KNU-HAEDAL-Website/frontend | dfff8b9 | src/schema/admin.ts | TypeScript | www.github.com/KNU-HAEDAL-Website/frontend/tree/main/src/schema/admin.ts | https://raw.githubusercontent.com/KNU-HAEDAL-Website/frontend/dfff8b9/src/schema/admin.ts | KNU-HAEDAL-Website/frontend dfff8b9 src/schema/admin.ts | true | 200 | 657 | import { z } from 'zod'
export const ChangeRoleSchema = z.object({
role: z.enum(['해구르르', '팀장', '일반']),
})
export type ChangeRole = z.infer<typeof ChangeRoleSchema>
export const AddSemesterSchema = z.object({
year: z.string().regex(/^20[0-9]{2}$/, {
message: '잘못된 연도 입력입니다.',
}),
term: z.enum(['1', '2'], {
... | 4 |
cyhfe/realtime-server | 3bd10b5 | src/handlers/user.ts | TypeScript | www.github.com/cyhfe/realtime-server/tree/main/src/handlers/user.ts | https://raw.githubusercontent.com/cyhfe/realtime-server/3bd10b5/src/handlers/user.ts | cyhfe/realtime-server 3bd10b5 src/handlers/user.ts | true | 200 | 3,586 | import { RequestHandler } from "express";
import prisma from "../db";
import { comparePasswords, createJWT, hashPassword } from "../modules/auth";
import { Request, Response, NextFunction } from "express";
import { UserPayload } from "../types";
import jwt from "jsonwebtoken";
const JWT_SECRET = process.env.JWT_SECRET... | 6 |
EduSocialApp/api | a5473f7 | src/modules/user/http/authentication/renewSession.ts | TypeScript | www.github.com/EduSocialApp/api/tree/main/src/modules/user/http/authentication/renewSession.ts | https://raw.githubusercontent.com/EduSocialApp/api/a5473f7/src/modules/user/http/authentication/renewSession.ts | EduSocialApp/api a5473f7 src/modules/user/http/authentication/renewSession.ts | true | 200 | 936 | import { NextFunction, Request, Response } from 'express'
import { AppError } from '@/functions/AppError'
import session from '../../../session/session.service'
// precisa terminar a funcao de renovacao de token
export default async function renewToken(request: Request, response: Response, next: NextFunction) {
... | 3 |
otedesco/apart-web | 27b74b2 | packages/ui-lib/src/components/Header/components/Menu/types.ts | TypeScript | www.github.com/otedesco/apart-web/tree/main/packages/ui-lib/src/components/Header/components/Menu/types.ts | https://raw.githubusercontent.com/otedesco/apart-web/27b74b2/packages/ui-lib/src/components/Header/components/Menu/types.ts | otedesco/apart-web 27b74b2 packages/ui-lib/src/components/Header/components/Menu/types.ts | true | 200 | 388 | import React from "react";
export enum SubMenuLayout {
Default = "default",
Emphatized = "emphatized",
}
export type SubMenuItem = {
href: "/";
label?: string;
description?: string;
Component?: React.ReactNode;
};
export type MenuItem = {
label: string;
href?: string;
external?: boolean;
descript... | 7 |
b0yu-li/angular-tour-of-heroes | 8bb49ae | src/app/app.component.ts | TypeScript | www.github.com/b0yu-li/angular-tour-of-heroes/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/b0yu-li/angular-tour-of-heroes/8bb49ae/src/app/app.component.ts | b0yu-li/angular-tour-of-heroes 8bb49ae src/app/app.component.ts | true | 200 | 513 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { HeroesComponent } from './heroes/heroes.component';
import { MessagesComponent } from './messages/messages.component';
import { NavComponent } from './nav/nav.component';
@Component({
selector: 'app-root',
standalon... | 0 |
annevdhoogen/ah-groceries | 3b8773d | src/app/components/weekMenuOverview/weekMenuOverview.css.ts | TypeScript | www.github.com/annevdhoogen/ah-groceries/tree/main/src/app/components/weekMenuOverview/weekMenuOverview.css.ts | https://raw.githubusercontent.com/annevdhoogen/ah-groceries/3b8773d/src/app/components/weekMenuOverview/weekMenuOverview.css.ts | annevdhoogen/ah-groceries 3b8773d src/app/components/weekMenuOverview/weekMenuOverview.css.ts | true | 200 | 336 | import { style } from "@vanilla-extract/css";
export const container = style({
display: "flex",
flexDirection: "column",
alignItems: "flex-start",
gap: "16px",
});
export const list = style({
listStyleType: "none",
padding: 0,
display: "grid",
gridTemplateColumns: "1fr 1fr",
gap: "16px",
gridArea:... | 1 |
64160054/FrontTest | e5ecabe | src/services/employee.ts | TypeScript | www.github.com/64160054/FrontTest/tree/main/src/services/employee.ts | https://raw.githubusercontent.com/64160054/FrontTest/e5ecabe/src/services/employee.ts | 64160054/FrontTest e5ecabe src/services/employee.ts | true | 200 | 510 | import type { Employee } from '@/types/Employee'
import http from './axios'
function getEmployees() {
return http.get('/employees')
}
function saveEmployees(employee: Employee) {
return http.post('/employees', employee)
}
function updateEmployees(id: number, employee: Employee) {
return http.patch('/employees/'... | 5 |
Amami3355/FreelancePlatform | f3abd80 | src/i18n/index.ts | TypeScript | www.github.com/Amami3355/FreelancePlatform/tree/main/src/i18n/index.ts | https://raw.githubusercontent.com/Amami3355/FreelancePlatform/f3abd80/src/i18n/index.ts | Amami3355/FreelancePlatform f3abd80 src/i18n/index.ts | true | 200 | 1,127 | import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import en from './locales/en';
import fr from './locales/fr';
i18next
.use(LanguageDetector)
.use(initReactI18next)
.init({
resources: {
en: { translation: e... | 2 |
Nesopie/ticketing-microservices | 3766cc9 | expiration/src/natsWrapper.ts | TypeScript | www.github.com/Nesopie/ticketing-microservices/tree/main/expiration/src/natsWrapper.ts | https://raw.githubusercontent.com/Nesopie/ticketing-microservices/3766cc9/expiration/src/natsWrapper.ts | Nesopie/ticketing-microservices 3766cc9 expiration/src/natsWrapper.ts | true | 200 | 728 | import nats, { Stan } from "node-nats-streaming";
class NatsWrapper {
private _client?: Stan;
get client() {
if (!this._client)
throw new Error("Cannot access NATS client before connecting");
return this._client;
}
connect(clusterId: string, clientId: string, url: string) {... | 4 |
paulokowalski/casa | b4f9b95 | src/views/Financa/Summary/styles.ts | TypeScript | www.github.com/paulokowalski/casa/tree/main/src/views/Financa/Summary/styles.ts | https://raw.githubusercontent.com/paulokowalski/casa/b4f9b95/src/views/Financa/Summary/styles.ts | paulokowalski/casa b4f9b95 src/views/Financa/Summary/styles.ts | true | 200 | 336 | import styled from "styled-components";
export const Container = styled.div`
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 2rem;
@media screen and (max-width: 768px) {
/* Estilos específicos para telas menores que 768 pixels de largura (celulares) */
padding: 1.5rem 0.5re... | 6 |
ZionYin/finance-tracker | e63dfc9 | features/accounts/api/use-edit-account.ts | TypeScript | www.github.com/ZionYin/finance-tracker/tree/main/features/accounts/api/use-edit-account.ts | https://raw.githubusercontent.com/ZionYin/finance-tracker/e63dfc9/features/accounts/api/use-edit-account.ts | ZionYin/finance-tracker e63dfc9 features/accounts/api/use-edit-account.ts | true | 200 | 1,233 | import { InferRequestType, InferResponseType } from "hono";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { toast } from "sonner";
import { client } from "@/lib/hono";
type ResponseType = InferResponseType<typeof client.api.accounts[":id"]["$patch"]>;
type RequestType = InferRequestType<... | 3 |
OPENDAP/opendap.org-server | ae533d4 | src/modules/menu-builder.ts | TypeScript | www.github.com/OPENDAP/opendap.org-server/tree/main/src/modules/menu-builder.ts | https://raw.githubusercontent.com/OPENDAP/opendap.org-server/ae533d4/src/modules/menu-builder.ts | OPENDAP/opendap.org-server ae533d4 src/modules/menu-builder.ts | true | 200 | 417 | import { Links } from '../classes/utils';
import path = require('path');
import fs = require('fs');
export interface MenuItem {
name: string;
link?: string;
menuItems?: MenuItem[];
}
export class MenuBuilder {
public menu: MenuItem[] = [];
constructor() {
this.menu = (JSON.parse(fs.readFileSync(
... | 7 |
lykalabrada/speechify-challenge | 422936f | src/lru-cache.ts | TypeScript | www.github.com/lykalabrada/speechify-challenge/tree/main/src/lru-cache.ts | https://raw.githubusercontent.com/lykalabrada/speechify-challenge/422936f/src/lru-cache.ts | lykalabrada/speechify-challenge 422936f src/lru-cache.ts | true | 200 | 2,470 | /**
* A Least Recently Used (LRU) cache with Time-to-Live (TTL) support. Items are kept in the cache until they either
* reach their TTL or the cache reaches its size and/or item limit. When the limit is exceeded, the cache evicts the
* item that was least recently accessed (based on the timestamp of access). Items ... | 1 |
RobertAKARobin/util | 484d259 | util/web/router.ts | TypeScript | www.github.com/RobertAKARobin/util/tree/main/util/web/router.ts | https://raw.githubusercontent.com/RobertAKARobin/util/484d259/util/web/router.ts | RobertAKARobin/util 484d259 util/web/router.ts | true | 200 | 6,983 | import { appContext, baseUrl, defaultBaseUrl } from './context.ts';
import { Emitter, type EmitterOptions } from '../emitter/emitter.ts';
import { proxyDeep } from '../proxyDeep.ts';
export type RoutePathFunction = (...args: Array<any>) => URL | string; // eslint-disable-line @typescript-eslint/no-explicit-any
export... | 0 |
Mathieuka/graphql-journey | 53a09f2 | graphql-basics/src/resolvers/User.ts | TypeScript | www.github.com/Mathieuka/graphql-journey/tree/main/graphql-basics/src/resolvers/User.ts | https://raw.githubusercontent.com/Mathieuka/graphql-journey/53a09f2/graphql-basics/src/resolvers/User.ts | Mathieuka/graphql-journey 53a09f2 graphql-basics/src/resolvers/User.ts | true | 200 | 3,501 | import { Comment, Post, Resolvers, User } from "../schema";
import { Context, pubsub } from "../context";
const user: Resolvers = {
Query: {
me: async (parent, args, { prisma }: Context) => {
const [me] = await prisma.user.findMany({
where: {
id: 1,
},
});
if (!me) {
... | 5 |
xsjcTony/backstage-management-system-react18 | b32ab86 | Backend/app/service/roleMenu.ts | TypeScript | www.github.com/xsjcTony/backstage-management-system-react18/tree/main/Backend/app/service/roleMenu.ts | https://raw.githubusercontent.com/xsjcTony/backstage-management-system-react18/b32ab86/Backend/app/service/roleMenu.ts | xsjcTony/backstage-management-system-react18 b32ab86 Backend/app/service/roleMenu.ts | true | 200 | 1,987 | /* eslint '@typescript-eslint/no-unsafe-assignment': 'off' */
import { Service } from 'egg'
import type { RoleMenu } from '../model/RoleMenu'
import type { ModifyRoleMenuData } from '../types'
import type { InstanceDestroyOptions } from 'sequelize'
import type { ICreateOptions, IFindOptions } from 'sequelize-typescrip... | 2 |
HX250/nowAround-Frontend | f53b4bf | src/app/core/services/alert/alert.service.ts | TypeScript | www.github.com/HX250/nowAround-Frontend/tree/main/src/app/core/services/alert/alert.service.ts | https://raw.githubusercontent.com/HX250/nowAround-Frontend/f53b4bf/src/app/core/services/alert/alert.service.ts | HX250/nowAround-Frontend f53b4bf src/app/core/services/alert/alert.service.ts | true | 200 | 896 | import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { alertState } from '../../../shared/components/alert/model/alert-state.model';
import { TranslateService } from '@ngx-translate/core';
@Injectable({
providedIn: 'root',
})
export class AlertService {
constructor(private tra... | 4 |
DataWizardsFYP/Inventory_Management_System | 8046a7f | frontend/src/components/Dashboard/Constants/Constants.ts | TypeScript | www.github.com/DataWizardsFYP/Inventory_Management_System/tree/main/frontend/src/components/Dashboard/Constants/Constants.ts | https://raw.githubusercontent.com/DataWizardsFYP/Inventory_Management_System/8046a7f/frontend/src/components/Dashboard/Constants/Constants.ts | DataWizardsFYP/Inventory_Management_System 8046a7f frontend/src/components/Dashboard/Constants/Constants.ts | true | 200 | 422 | export enum priorityLevels {
HIGH = 1,
MEDIUM = 2,
LOW = 3
}
export enum taskStatus {
COMPLETED = 1,
IN_PROGRESS = 2,
TODO = 3
}
export const initTaskStatus = {
completedTask: 0,
inProgressTask : 0,
todoTask : 0
}
export const initTaskPriorityLvl = {
high : 0,
medium : 0,
... | 6 |
openharmony/third_party_typescript | 1f9b2c1 | tests/ts_extra_tests/test_ts_cases/spec/expressions/contextually_typed_expressions/contextually_typed_expressions_10.ts | TypeScript | www.github.com/openharmony/third_party_typescript/tree/main/tests/ts_extra_tests/test_ts_cases/spec/expressions/contextually_typed_expressions/contextually_typed_expressions_10.ts | https://raw.githubusercontent.com/openharmony/third_party_typescript/1f9b2c1/tests/ts_extra_tests/test_ts_cases/spec/expressions/contextually_typed_expressions/contextually_typed_expressions_10.ts | openharmony/third_party_typescript 1f9b2c1 tests/ts_extra_tests/test_ts_cases/spec/expressions/contextually_typed_expressions/contextually_typed_expressions_10.ts | true | 200 | 1,241 | /*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 7 |
fabrice8/modela-editor | 3de4480 | src/modules/handles/resizable.ts | TypeScript | www.github.com/fabrice8/modela-editor/tree/main/src/modules/handles/resizable.ts | https://raw.githubusercontent.com/fabrice8/modela-editor/3de4480/src/modules/handles/resizable.ts | fabrice8/modela-editor 3de4480 src/modules/handles/resizable.ts | true | 200 | 7,698 | import type Handles from '.'
import type { HandleInterface } from '.'
import { enableHardwareAcceleration } from '../utils'
import type SnapGuidable from './snapguidable'
import $, { type Cash } from 'cash-dom'
type ResizeActionType = 'start' | 'handle' | 'stop'
type ElementState = {
$element: Cash
originalWidth... | 3 |
hmcts/pip-frontend | f8b4009 | src/test/unit/views/sso-rejected-login.test.ts | TypeScript | www.github.com/hmcts/pip-frontend/tree/main/src/test/unit/views/sso-rejected-login.test.ts | https://raw.githubusercontent.com/hmcts/pip-frontend/f8b4009/src/test/unit/views/sso-rejected-login.test.ts | hmcts/pip-frontend f8b4009 src/test/unit/views/sso-rejected-login.test.ts | true | 200 | 1,465 | import request from 'supertest';
import { app } from '../../../main/app';
import { expect } from 'chai';
import { request as expressRequest } from 'express';
import { ssoNotAuthorised } from '../../../main/helpers/consts';
let htmlRes: Document;
expressRequest['session'] = { messages: [ssoNotAuthorised] };
describe(... | 0 |
4hhsh6n/mossport | 51b6252 | server/src/app.module.ts | TypeScript | www.github.com/4hhsh6n/mossport/tree/main/server/src/app.module.ts | https://raw.githubusercontent.com/4hhsh6n/mossport/51b6252/server/src/app.module.ts | 4hhsh6n/mossport 51b6252 server/src/app.module.ts | true | 200 | 1,308 | import { Module } from '@nestjs/common';
import { APP_FILTER } from '@nestjs/core';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './users/users.module';
import { AuthModule } from './auth/auth.module';
import { NewsModule } from './news/news.m... | 5 |
Mussesan/app-geek | 642038a | src/app/modules/chat/chat-child/chat-child.component.ts | TypeScript | www.github.com/Mussesan/app-geek/tree/main/src/app/modules/chat/chat-child/chat-child.component.ts | https://raw.githubusercontent.com/Mussesan/app-geek/642038a/src/app/modules/chat/chat-child/chat-child.component.ts | Mussesan/app-geek 642038a src/app/modules/chat/chat-child/chat-child.component.ts | true | 200 | 437 | import { Component, OnInit } from '@angular/core';
import { User } from 'src/app/models/user.model';
@Component({
selector: 'app-chat-child',
templateUrl: './chat-child.component.html',
styleUrls: ['./chat-child.component.css']
})
export class ChatChildComponent implements OnInit {
user: User;
constructo... | 1 |
caimanchik/QuicklyCheck | 59e9cda | src/app/shared/guards/check-fill.guard.ts | TypeScript | www.github.com/caimanchik/QuicklyCheck/tree/main/src/app/shared/guards/check-fill.guard.ts | https://raw.githubusercontent.com/caimanchik/QuicklyCheck/59e9cda/src/app/shared/guards/check-fill.guard.ts | caimanchik/QuicklyCheck 59e9cda src/app/shared/guards/check-fill.guard.ts | true | 200 | 1,527 | import { Inject, Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { map, Observable, of } from 'rxjs';
import { PatternService } from "../services/pattern.service";
import { IAsyncGuard } from "../interfaces/Application/IAsyncGuard... | 6 |
amykash80/Convocation-Client | d984ff9 | src/app/pipes/course.pipe.ts | TypeScript | www.github.com/amykash80/Convocation-Client/tree/main/src/app/pipes/course.pipe.ts | https://raw.githubusercontent.com/amykash80/Convocation-Client/d984ff9/src/app/pipes/course.pipe.ts | amykash80/Convocation-Client d984ff9 src/app/pipes/course.pipe.ts | true | 200 | 738 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'course'
})
export class CoursePipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): string {
switch(value){
case 1: return "MCA";
case 2: return "MSCIT";
case 3: return "MBA";
case 4: return "I... | 3 |
HenriqueMartinelliPinheiro/TC02-Front | 34fae9d | src/services/user/fetchAllUsersService.ts | TypeScript | www.github.com/HenriqueMartinelliPinheiro/TC02-Front/tree/main/src/services/user/fetchAllUsersService.ts | https://raw.githubusercontent.com/HenriqueMartinelliPinheiro/TC02-Front/34fae9d/src/services/user/fetchAllUsersService.ts | HenriqueMartinelliPinheiro/TC02-Front 34fae9d src/services/user/fetchAllUsersService.ts | true | 200 | 588 | import { API_ROUTES } from '../../config/apiConfig';
export const fetchUsersService = async (
skip: number,
take: number,
searchTerm: string
) => {
try {
const response = await fetch(
`${API_ROUTES.FETCH_ALL_USERS}?skip=${skip}&take=${take}&searchTerm=${searchTerm}`,
{
method: 'GET',
headers: {
... | 7 |
marcorohn/rbvisualizer | c233bb0 | src/environments/environment.ts | TypeScript | www.github.com/marcorohn/rbvisualizer/tree/main/src/environments/environment.ts | https://raw.githubusercontent.com/marcorohn/rbvisualizer/c233bb0/src/environments/environment.ts | marcorohn/rbvisualizer c233bb0 src/environments/environment.ts | true | 200 | 449 | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import { Environment } from './environment.types';
export const environment: Environment = {
productio... | 0 |
nrdygrnma/macro-zen | 1173af7 | server/api/login.post.ts | TypeScript | www.github.com/nrdygrnma/macro-zen/tree/main/server/api/login.post.ts | https://raw.githubusercontent.com/nrdygrnma/macro-zen/1173af7/server/api/login.post.ts | nrdygrnma/macro-zen 1173af7 server/api/login.post.ts | true | 200 | 917 | import { compare } from "bcrypt";
import { z } from "zod";
const bodySchema = z.object({
email: z.string().email(),
password: z.string().min(8),
});
export default defineEventHandler(async (event) => {
const body = await readBody(event);
const { email, password } = bodySchema.parse(body);
const user = awai... | 1 |
actions-marketplace-validations/wenkokke_setup-agda | f059945 | src/util/appdirs.ts | TypeScript | www.github.com/actions-marketplace-validations/wenkokke_setup-agda/tree/main/src/util/appdirs.ts | https://raw.githubusercontent.com/actions-marketplace-validations/wenkokke_setup-agda/f059945/src/util/appdirs.ts | actions-marketplace-validations/wenkokke_setup-agda f059945 src/util/appdirs.ts | true | 200 | 3,890 | import * as opts from './platform.js'
import * as path from 'node:path'
import * as os from 'node:os'
// Directories for agdaup:
/**
* The directory where agdaup stores its global configuration files.
*
* By convention, we use the same directory for Agda and Agda library installations.
*
* Resolves to `~/.agda` ... | 5 |
houssemkanzari/projet22 | 4d4a37e | src/app/cl2/cl2.component.spec.ts | TypeScript | www.github.com/houssemkanzari/projet22/tree/main/src/app/cl2/cl2.component.spec.ts | https://raw.githubusercontent.com/houssemkanzari/projet22/4d4a37e/src/app/cl2/cl2.component.spec.ts | houssemkanzari/projet22 4d4a37e src/app/cl2/cl2.component.spec.ts | true | 200 | 538 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Cl2Component } from './cl2.component';
describe('Cl2Component', () => {
let component: Cl2Component;
let fixture: ComponentFixture<Cl2Component>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [Cl2Component... | 3 |
mssantiago/frontend-marketplace | 38bfe8a | src/app/core/pipes/pick-random.pipe.spec.ts | TypeScript | www.github.com/mssantiago/frontend-marketplace/tree/main/src/app/core/pipes/pick-random.pipe.spec.ts | https://raw.githubusercontent.com/mssantiago/frontend-marketplace/38bfe8a/src/app/core/pipes/pick-random.pipe.spec.ts | mssantiago/frontend-marketplace 38bfe8a src/app/core/pipes/pick-random.pipe.spec.ts | true | 200 | 548 | import { PickRandomPipe } from './pick-random.pipe';
describe('PickRandomPipe', () => {
let pipe: PickRandomPipe;
const mockInputArray: string [] = [
'foo', 'bar', 'foobar'
];
beforeEach(() => {
pipe = new PickRandomPipe();
spyOn(Math, 'random').and.returnValue(0.623456789);
});
it('should pi... | 6 |
vnator/know-your-user-white-label | 409006c | src/adapter/outgoing/producer/kyc.producer.spec.ts | TypeScript | www.github.com/vnator/know-your-user-white-label/tree/main/src/adapter/outgoing/producer/kyc.producer.spec.ts | https://raw.githubusercontent.com/vnator/know-your-user-white-label/409006c/src/adapter/outgoing/producer/kyc.producer.spec.ts | vnator/know-your-user-white-label 409006c src/adapter/outgoing/producer/kyc.producer.spec.ts | true | 200 | 3,289 | import MockDate from "mockdate";
import { Publisher } from "src/adapter/port/publisher";
import { MemberGetMember } from "src/module/kyc/entity/member-get-member";
import { PlanPreference } from "src/module/kyc/entity/plan-preference";
import { Referral } from "src/module/kyc/entity/referral";
import { EventEnum } from... | 1 |
michaeltaman/my-mediumclone_nestjs | eb93289 | src/ormconfig.ts | TypeScript | www.github.com/michaeltaman/my-mediumclone_nestjs/tree/main/src/ormconfig.ts | https://raw.githubusercontent.com/michaeltaman/my-mediumclone_nestjs/eb93289/src/ormconfig.ts | michaeltaman/my-mediumclone_nestjs eb93289 src/ormconfig.ts | true | 200 | 419 | import { TypeOrmModuleOptions } from '@nestjs/typeorm';
const config: TypeOrmModuleOptions = {
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'mediumclone_nestjs',
password: '123',
database: 'mediumclone_nestjs',
entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: true,
// You m... | 5 |
smhasanjamil/typescript-fundamentals | 37db8dc | src/basic.ts | TypeScript | www.github.com/smhasanjamil/typescript-fundamentals/tree/main/src/basic.ts | https://raw.githubusercontent.com/smhasanjamil/typescript-fundamentals/37db8dc/src/basic.ts | smhasanjamil/typescript-fundamentals 37db8dc src/basic.ts | true | 200 | 453 | // basic data types
const age: number = 24;
const yourName: string = "Hasan";
const isActive: boolean = true;
// array
const numbers: number[] = [1, 2, 3, 4, 5];
// tupple
const info: [string, string, number, number] = ["Hasan", "Jamil", 3, 7];
// object
type person = {
name: string;
age: number | string;
gend... | 7 |
vvcxxc/cms2.0 | 2f2f72b | src/widgets/OrderManagement/api/product.ts | TypeScript | www.github.com/vvcxxc/cms2.0/tree/main/src/widgets/OrderManagement/api/product.ts | https://raw.githubusercontent.com/vvcxxc/cms2.0/2f2f72b/src/widgets/OrderManagement/api/product.ts | vvcxxc/cms2.0 2f2f72b src/widgets/OrderManagement/api/product.ts | true | 200 | 829 | export interface IProductParams {
Filter?: string
StartTime?: string
FinishTime?: string
Status?: string
Sorting?: string
SkipCount?: string
MaxResultCount?: string
}
export interface IProductTableList {
items: IProductTableItem[]
totalCount: number
}
export interface IProductTableItem {
id: strin... | 3 |
HumorousKitten/animeList | f275022 | src/store/useFavouritesPage.ts | TypeScript | www.github.com/HumorousKitten/animeList/tree/main/src/store/useFavouritesPage.ts | https://raw.githubusercontent.com/HumorousKitten/animeList/f275022/src/store/useFavouritesPage.ts | HumorousKitten/animeList f275022 src/store/useFavouritesPage.ts | true | 200 | 2,024 | import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import { IAnimeData } from '../types/types'
type TListAnime = Partial<
Pick<
IAnimeData,
| 'mal_id'
| 'titles'
| 'trailer'
>
>
interface IFavouriteItem {
data: TListAnime
rating: number
date: number
}
int... | 6 |
kyrregjerstad/holidaze | 0d62ab4 | src/lib/services/profileService/getAllVenuesByProfile.test.ts | TypeScript | www.github.com/kyrregjerstad/holidaze/tree/main/src/lib/services/profileService/getAllVenuesByProfile.test.ts | https://raw.githubusercontent.com/kyrregjerstad/holidaze/0d62ab4/src/lib/services/profileService/getAllVenuesByProfile.test.ts | kyrregjerstad/holidaze 0d62ab4 src/lib/services/profileService/getAllVenuesByProfile.test.ts | true | 200 | 2,950 | import { afterEach, describe, expect, it, vi } from 'vitest';
import { createAuthHeaders } from '@/lib/api/createAuthHeaders';
import { holidazeAPI } from '@/lib/api/holidazeAPI';
import { createMockErrorResponse, createMockHeaders } from '@/lib/mocks/mockUtils';
import { getAllVenuesByProfile } from '@/lib/services/p... | 0 |
gbr5/weplan-pro | d58fb5d | src/components/CompanyContactComponents/CompanyContactDashboard/styles.ts | TypeScript | www.github.com/gbr5/weplan-pro/tree/main/src/components/CompanyContactComponents/CompanyContactDashboard/styles.ts | https://raw.githubusercontent.com/gbr5/weplan-pro/d58fb5d/src/components/CompanyContactComponents/CompanyContactDashboard/styles.ts | gbr5/weplan-pro d58fb5d src/components/CompanyContactComponents/CompanyContactDashboard/styles.ts | true | 200 | 1,371 | import styled, { css } from 'styled-components';
import '../../../styles/global';
export const Container = styled.div`
width: 100%;
height: 100%;
display: block;
padding: 5rem 0.5rem 2rem;
align-items: center;
> section {
display: flex;
align-items: center;
justify-content: flex-start;
}
... | 1 |
oguiaugusto/desafio-hgtx | fcd7a7c | front-end/src/helpers/validations.ts | TypeScript | www.github.com/oguiaugusto/desafio-hgtx/tree/main/front-end/src/helpers/validations.ts | https://raw.githubusercontent.com/oguiaugusto/desafio-hgtx/fcd7a7c/front-end/src/helpers/validations.ts | oguiaugusto/desafio-hgtx fcd7a7c front-end/src/helpers/validations.ts | true | 200 | 748 | import { UserRegister } from '../interfaces/user';
const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/igm;
/* Source: https://www.regextester.com/100026 */
const validations = {
name: (name: string) => name.length >= 3,
email: (email: string) => !!email.match(EMAIL_REGEX),
password: ... | 5 |
devthuan/shop-coffee-nest-react | 98b85d9 | back-end/src/account/dto/create-account.dto.ts | TypeScript | www.github.com/devthuan/shop-coffee-nest-react/tree/main/back-end/src/account/dto/create-account.dto.ts | https://raw.githubusercontent.com/devthuan/shop-coffee-nest-react/98b85d9/back-end/src/account/dto/create-account.dto.ts | devthuan/shop-coffee-nest-react 98b85d9 back-end/src/account/dto/create-account.dto.ts | true | 200 | 439 | import { IsEmail, IsNotEmpty, IsOptional, IsString, MaxLength, MinLength } from "class-validator";
export class CreateAccountDto {
@IsEmail()
email: string;
@IsString()
@MinLength(5)
@MaxLength(50)
username: string;
@IsString()
@MinLength(6)
password: string;
@IsNotEmpty()
... | 7 |
qasimzafar1/trivia-take-home | 6bd72d6 | apps/web/src/router/index.ts | TypeScript | www.github.com/qasimzafar1/trivia-take-home/tree/main/apps/web/src/router/index.ts | https://raw.githubusercontent.com/qasimzafar1/trivia-take-home/6bd72d6/apps/web/src/router/index.ts | qasimzafar1/trivia-take-home 6bd72d6 apps/web/src/router/index.ts | true | 200 | 1,536 | import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView
},
{
path: '/login',
name: '... | 3 |
natdiv9/chymall-app | 75c3d5d | src/app/ChymallPages/Retraits/retraits-id/retraits-id.component.spec.ts | TypeScript | www.github.com/natdiv9/chymall-app/tree/main/src/app/ChymallPages/Retraits/retraits-id/retraits-id.component.spec.ts | https://raw.githubusercontent.com/natdiv9/chymall-app/75c3d5d/src/app/ChymallPages/Retraits/retraits-id/retraits-id.component.spec.ts | natdiv9/chymall-app 75c3d5d src/app/ChymallPages/Retraits/retraits-id/retraits-id.component.spec.ts | true | 200 | 657 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RetraitsIdComponent } from './retraits-id.component';
describe('RetraitsIdComponent', () => {
let component: RetraitsIdComponent;
let fixture: ComponentFixture<RetraitsIdComponent>;
beforeEach(async(() => {
TestBed.configure... | 6 |
giovanny-c/projeto-04 | ac2336a | src/modules/Products/useCases/getProduct/GetProductController.ts | TypeScript | www.github.com/giovanny-c/projeto-04/tree/main/src/modules/Products/useCases/getProduct/GetProductController.ts | https://raw.githubusercontent.com/giovanny-c/projeto-04/ac2336a/src/modules/Products/useCases/getProduct/GetProductController.ts | giovanny-c/projeto-04 ac2336a src/modules/Products/useCases/getProduct/GetProductController.ts | true | 200 | 681 | import { GetFilesFromUserUseCase } from "@modules/File/useCases/getFilesFromUser/GetFilesFromUserUseCase";
import { Request, Response } from "express";
import { container } from "tsyringe";
import { GetProductUseCase } from "./GetProductUseCase";
class GetProductController {
async handle(req: Request, res: Res... | 0 |
fin-39/documents-bot | 70d3d1b | src/microservices/telegram-bot/src/commands/delete-document.ts | TypeScript | www.github.com/fin-39/documents-bot/tree/main/src/microservices/telegram-bot/src/commands/delete-document.ts | https://raw.githubusercontent.com/fin-39/documents-bot/70d3d1b/src/microservices/telegram-bot/src/commands/delete-document.ts | fin-39/documents-bot 70d3d1b src/microservices/telegram-bot/src/commands/delete-document.ts | true | 200 | 3,054 | import { Markup, Scenes } from 'telegraf';
import Command from '../types/Command';
import Context from '../types/Context';
import escape from '../utils/escape';
const documentDeletingScene = new Scenes.BaseScene<Context>(
'document-deleting',
);
documentDeletingScene.enter(async (context) => {
context.session... | 1 |
okmethod/master-drill | 7817810 | skeleton-app/src/lib/types/keisan.ts | TypeScript | www.github.com/okmethod/master-drill/tree/main/skeleton-app/src/lib/types/keisan.ts | https://raw.githubusercontent.com/okmethod/master-drill/7817810/skeleton-app/src/lib/types/keisan.ts | okmethod/master-drill 7817810 skeleton-app/src/lib/types/keisan.ts | true | 200 | 539 | import { OperationType } from "$lib/internal/keisan";
export interface NumberRange {
min: number;
max: number;
}
export interface KeisanValue {
label: string;
range: NumberRange;
allowNegative: boolean;
decimalPlaces: number;
}
export interface KeisanTemplate extends KeisanValue {
operationType: Operat... | 5 |
matthcol/angular202503 | bcb9ab0 | city-app/src/app/component/city-fr/city-fr-detail/city-fr-detail.component.spec.ts | TypeScript | www.github.com/matthcol/angular202503/tree/main/city-app/src/app/component/city-fr/city-fr-detail/city-fr-detail.component.spec.ts | https://raw.githubusercontent.com/matthcol/angular202503/bcb9ab0/city-app/src/app/component/city-fr/city-fr-detail/city-fr-detail.component.spec.ts | matthcol/angular202503 bcb9ab0 city-app/src/app/component/city-fr/city-fr-detail/city-fr-detail.component.spec.ts | true | 200 | 659 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CityFrDetailComponent } from './city-fr-detail.component';
describe('CityFrDetailComponent', () => {
let component: CityFrDetailComponent;
let fixture: ComponentFixture<CityFrDetailComponent>;
beforeEach(async () => {
awai... | 7 |
cybersmily/cybersmily_datafort | 07ea6d8 | src/app/shared/cp2020/cp2020-lifestyle/cp2020-expense-list/cp2020-expense-list.component.ts | TypeScript | www.github.com/cybersmily/cybersmily_datafort/tree/main/src/app/shared/cp2020/cp2020-lifestyle/cp2020-expense-list/cp2020-expense-list.component.ts | https://raw.githubusercontent.com/cybersmily/cybersmily_datafort/07ea6d8/src/app/shared/cp2020/cp2020-lifestyle/cp2020-expense-list/cp2020-expense-list.component.ts | cybersmily/cybersmily_datafort 07ea6d8 src/app/shared/cp2020/cp2020-lifestyle/cp2020-expense-list/cp2020-expense-list.component.ts | true | 200 | 1,822 | import { faEuroSign } from '@fortawesome/free-solid-svg-icons';
import { JsonDataFiles, DataService } from './../../../services/file-services';
import { Component, Input, OnInit, Output, EventEmitter, ViewChildren, QueryList, ElementRef, AfterViewInit } from '@angular/core';
import { Cp2020Expense, Cp2020Payment } from... | 3 |
modamo-gh/AdventOfCode2024 | aafc6e6 | 03/1.ts | TypeScript | www.github.com/modamo-gh/AdventOfCode2024/tree/main/03/1.ts | https://raw.githubusercontent.com/modamo-gh/AdventOfCode2024/aafc6e6/03/1.ts | modamo-gh/AdventOfCode2024 aafc6e6 03/1.ts | true | 200 | 307 | import { readFileSync } from "fs";
const memory = readFileSync("input.txt", "utf8").trim();
const matches = memory.matchAll(/mul\((\d+),(\d+)\)/g);
let sumOfInstructions = 0;
for (const match of matches) {
sumOfInstructions += parseInt(match[1]) * parseInt(match[2]);
}
console.log(sumOfInstructions);
| 0 |
NirmalScaria/bindle-ui-dash | 55bd37e | lib/defaultExample.ts | TypeScript | www.github.com/NirmalScaria/bindle-ui-dash/tree/main/lib/defaultExample.ts | https://raw.githubusercontent.com/NirmalScaria/bindle-ui-dash/55bd37e/lib/defaultExample.ts | NirmalScaria/bindle-ui-dash 55bd37e lib/defaultExample.ts | true | 200 | 4,166 | var appCode = `import "./tailwind.config.ts";
export default function App() {
return (
<div className="flex flex-col items-center justify-center p-4 h-screen">
Your components have been imported. <br/>
Edit the code to try them out.
</div>
)
}`
const twconig = {
darkMode: ["class"],
con... | 1 |
gmadrid/eopt | 400fc62 | app/api/portfolio/[accountIdKey]/route.ts | TypeScript | www.github.com/gmadrid/eopt/tree/main/app/api/portfolio/[accountIdKey]/route.ts | https://raw.githubusercontent.com/gmadrid/eopt/400fc62/app/api/portfolio/%5BaccountIdKey%5D/route.ts | gmadrid/eopt 400fc62 app/api/portfolio/[accountIdKey]/route.ts | true | 200 | 678 | import {NextRequest, NextResponse} from "next/server";
import {getLoginSession, sessionLoggedIn} from "@/lib/sessions";
import {cookies} from "next/headers";
import {ETradeClient} from "@/lib/etradeclient";
export async function GET(request: NextRequest,
{params}: { params: { accountIdKey: st... | 6 |
DavidPro1997/Herramienta_Anotacion | f23ea97 | administracion/src/app/paginas/administracion/reporte/reporte.ts | TypeScript | www.github.com/DavidPro1997/Herramienta_Anotacion/tree/main/administracion/src/app/paginas/administracion/reporte/reporte.ts | https://raw.githubusercontent.com/DavidPro1997/Herramienta_Anotacion/f23ea97/administracion/src/app/paginas/administracion/reporte/reporte.ts | DavidPro1997/Herramienta_Anotacion f23ea97 administracion/src/app/paginas/administracion/reporte/reporte.ts | true | 200 | 525 | export class PoliticaAnotarConsultar{
constructor(
public id_politica: number,
public id_usuario: number,
public nombre : string,
public usuario: string,
public tipo_usuario: string,
public fecha: string,
public anotaciones: number,
public escoger: Boolean
){}
}
expo... | 5 |
Schastashle/game | 5361d0f | packages/server/db.ts | TypeScript | www.github.com/Schastashle/game/tree/main/packages/server/db.ts | https://raw.githubusercontent.com/Schastashle/game/5361d0f/packages/server/db.ts | Schastashle/game 5361d0f packages/server/db.ts | true | 200 | 804 | import { Sequelize, SequelizeOptions } from 'sequelize-typescript'
import logger from './logger/index'
const {
POSTGRES_USER,
POSTGRES_PASSWORD,
POSTGRES_DB,
POSTGRES_PORT,
POSTGRES_HOST,
} = process.env
const sequelizeOptions: SequelizeOptions = {
host: POSTGRES_HOST || 'localhost',
port: POSTGRES_PORT ... | 7 |
msskarthik/Nest-JS-with-Fastify | 52b41df | src/Interceptors/auth.interceptor.ts | TypeScript | www.github.com/msskarthik/Nest-JS-with-Fastify/tree/main/src/Interceptors/auth.interceptor.ts | https://raw.githubusercontent.com/msskarthik/Nest-JS-with-Fastify/52b41df/src/Interceptors/auth.interceptor.ts | msskarthik/Nest-JS-with-Fastify 52b41df src/Interceptors/auth.interceptor.ts | true | 200 | 964 | import { Injectable, NestInterceptor, ExecutionContext, HttpException, HttpStatus, CallHandler } from '@nestjs/common';
import { Observable } from 'rxjs';
import { ConfigService } from '@nestjs/config';
import * as jwt from 'jsonwebtoken';
@Injectable()
export class jwtValidateInterceptor implements NestInterceptor {
... | 3 |
anmoldeep38/Doctor-assign-CareJar | aebd3f0 | api/src/app/modules/appointment/appointment.interface.ts | TypeScript | www.github.com/anmoldeep38/Doctor-assign-CareJar/tree/main/api/src/app/modules/appointment/appointment.interface.ts | https://raw.githubusercontent.com/anmoldeep38/Doctor-assign-CareJar/aebd3f0/api/src/app/modules/appointment/appointment.interface.ts | anmoldeep38/Doctor-assign-CareJar aebd3f0 api/src/app/modules/appointment/appointment.interface.ts | true | 200 | 757 | import { Model, Types } from "mongoose";
import { IPatient } from "../patient/patient.interface";
import { IDoctor } from "../doctor/doctor.interface";
import { IDoctorTimeSlot } from "../doctor-time-slot/doctorTimeSlot.interface";
type patientCondtion = ["Critical" | "Serious" | "Stable" | "Acute" | "Chronic" | ... | 0 |
Bisonai/data-feed-consumer | eb8209d | scripts/read-data-through-router.ts | TypeScript | www.github.com/Bisonai/data-feed-consumer/tree/main/scripts/read-data-through-router.ts | https://raw.githubusercontent.com/Bisonai/data-feed-consumer/eb8209d/scripts/read-data-through-router.ts | Bisonai/data-feed-consumer eb8209d scripts/read-data-through-router.ts | true | 200 | 549 | import { ethers } from 'hardhat'
const pair_name = 'BTC-USDT'
async function main() {
const userContract = await ethers.getContract('DataFeedRouterConsumer')
console.log('DataFeedRouterConsumer', userContract.address)
await (await userContract.getLatestData(pair_name)).wait()
const answer = await userContra... | 1 |
md-galib-hossain/portfolio-dashboard-frontend | 652157a | src/types/common.ts | TypeScript | www.github.com/md-galib-hossain/portfolio-dashboard-frontend/tree/main/src/types/common.ts | https://raw.githubusercontent.com/md-galib-hossain/portfolio-dashboard-frontend/652157a/src/types/common.ts | md-galib-hossain/portfolio-dashboard-frontend 652157a src/types/common.ts | true | 200 | 729 | import { SvgIconTypeMap } from "@mui/material";
import { OverridableComponent } from "@mui/material/OverridableComponent";
export type TMeta = {
page: number;
limit: number;
total: number;
};
export interface TDrawerItem {
title: string;
path: string;
parentPath?: string;
icon?: Ov... | 6 |
prajilk/bbm-client | c4f7ebe | src/config/dexie.config.ts | TypeScript | www.github.com/prajilk/bbm-client/tree/main/src/config/dexie.config.ts | https://raw.githubusercontent.com/prajilk/bbm-client/c4f7ebe/src/config/dexie.config.ts | prajilk/bbm-client c4f7ebe src/config/dexie.config.ts | true | 200 | 476 | import Dexie, { Table } from "dexie";
export interface Butterfly {
_id: string;
commonName: string;
binomialName: string;
image?: string;
}
export class MySubClassedDexie extends Dexie {
butterflies!: Table<Butterfly>;
constructor() {
super("bbm");
this.version(1).stores({
... | 5 |
blockchaingate/metaloo | 74ec510 | src/app/met/met-routing.module.ts | TypeScript | www.github.com/blockchaingate/metaloo/tree/main/src/app/met/met-routing.module.ts | https://raw.githubusercontent.com/blockchaingate/metaloo/74ec510/src/app/met/met-routing.module.ts | blockchaingate/metaloo 74ec510 src/app/met/met-routing.module.ts | true | 200 | 492 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MetComponent } from './met.component';
import { MetHomeComponent } from './met-home/met-home.component';
const routes: Routes = [
{
path: "", component: MetComponent,
children: [
{
path: "... | 7 |
Deepak-adev/startup-genius | e999d1a | app/api/loan-prediction/route.ts | TypeScript | www.github.com/Deepak-adev/startup-genius/tree/main/app/api/loan-prediction/route.ts | https://raw.githubusercontent.com/Deepak-adev/startup-genius/e999d1a/app/api/loan-prediction/route.ts | Deepak-adev/startup-genius e999d1a app/api/loan-prediction/route.ts | true | 200 | 1,013 | import { NextResponse } from 'next/server'
import path from 'path'
import { promises as fs } from 'fs'
import { spawn } from 'child_process'
export async function POST(req: Request) {
try {
const data = await req.json()
// Create a Python process to run the model prediction
const pythonProcess = spa... | 3 |
AxelCoolpa/COOL-FRONT | 6138826 | src/types/index.ts | TypeScript | www.github.com/AxelCoolpa/COOL-FRONT/tree/main/src/types/index.ts | https://raw.githubusercontent.com/AxelCoolpa/COOL-FRONT/6138826/src/types/index.ts | AxelCoolpa/COOL-FRONT 6138826 src/types/index.ts | true | 200 | 912 | export interface EnumActivity {
_id?: string
title: string
description: string
galleryImage: string | string[]
individualPrice: string
groupPrice: string
category: Array<string>
location: string
videoLink?: string
starterPack?: string
startTime?: string
endTime?: string
rating?: Array<number>
reviews?: ... | 0 |
arieldre/anti-pilug-project | 6891455 | shopify-app/antipilug-project/backend/src/types/index.ts | TypeScript | www.github.com/arieldre/anti-pilug-project/tree/main/shopify-app/antipilug-project/backend/src/types/index.ts | https://raw.githubusercontent.com/arieldre/anti-pilug-project/6891455/shopify-app/antipilug-project/backend/src/types/index.ts | arieldre/anti-pilug-project 6891455 shopify-app/antipilug-project/backend/src/types/index.ts | true | 200 | 438 | export interface Product {
id: string;
name: string;
price: number;
description: string;
imageUrl: string;
}
export interface PlagiarismCheck {
id: string;
productId: string;
status: 'pending' | 'completed' | 'failed';
results: PlagiarismResult[];
createdAt: Date;
}
... | 1 |
traderfour-github/bridge | f3d38f0 | src/modules/socket/bridge/socket.module.ts | TypeScript | www.github.com/traderfour-github/bridge/tree/main/src/modules/socket/bridge/socket.module.ts | https://raw.githubusercontent.com/traderfour-github/bridge/f3d38f0/src/modules/socket/bridge/socket.module.ts | traderfour-github/bridge f3d38f0 src/modules/socket/bridge/socket.module.ts | true | 200 | 947 | import { ProducerService } from 'src/modules/kafka/bridge/services/producer.service';
import { ConsumerService } from 'src/modules/kafka/bridge/services/consumer.service';
import { ClientGateway } from './client.gateway';
import { HttpModule } from '@nestjs/axios';
import { MetaTraderGateway } from './metatrader.gatewa... | 6 |
codewithbersh/useBrain | da8ae47 | frontend/lib/user.ts | TypeScript | www.github.com/codewithbersh/useBrain/tree/main/frontend/lib/user.ts | https://raw.githubusercontent.com/codewithbersh/useBrain/da8ae47/frontend/lib/user.ts | codewithbersh/useBrain da8ae47 frontend/lib/user.ts | true | 200 | 2,569 | import { axiosApi } from "@/lib/axios-api";
import { AxiosResponse } from "axios";
export const getAccessToken = async (id_token: string): Promise<string> => {
try {
const res = await axiosApi.post("auth/google/", {
access_token: id_token,
});
if (res.status === 200) {
return res.data.access... | 5 |
valr0lipsk/advice-generator | 30436d5 | src/app/app.module.ts | TypeScript | www.github.com/valr0lipsk/advice-generator/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/valr0lipsk/advice-generator/30436d5/src/app/app.module.ts | valr0lipsk/advice-generator 30436d5 src/app/app.module.ts | true | 200 | 557 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { SvgIconComponent } from './components/svg-icon/svg-icon.component';
import { AdviceComponent } from './c... | 7 |
SalvadorAlonso52/ProyectoSalvadorAngular | a98c541 | src/app/pages/about/about.component.ts | TypeScript | www.github.com/SalvadorAlonso52/ProyectoSalvadorAngular/tree/main/src/app/pages/about/about.component.ts | https://raw.githubusercontent.com/SalvadorAlonso52/ProyectoSalvadorAngular/a98c541/src/app/pages/about/about.component.ts | SalvadorAlonso52/ProyectoSalvadorAngular a98c541 src/app/pages/about/about.component.ts | true | 200 | 428 | import { Component, OnInit } from '@angular/core';
import { InfopaginaService } from '../../services/infopagina.service';
@Component({
selector: 'app-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.css']
})
export class AboutComponent implements OnInit {
// tslint:disable-next-li... | 3 |
NilakshiNonis/login-backend | 8094233 | tests/admin.test.ts | TypeScript | www.github.com/NilakshiNonis/login-backend/tree/main/tests/admin.test.ts | https://raw.githubusercontent.com/NilakshiNonis/login-backend/8094233/tests/admin.test.ts | NilakshiNonis/login-backend 8094233 tests/admin.test.ts | true | 200 | 2,688 | import request from "supertest";
import app from "../src/index";
import { addTestUser, removeTestUsers } from "./mock/function";
import { v4 as uuidv4 } from "uuid";
import crypto from "crypto";
import moment from "moment";
import { Role } from "../src/utils/enum";
import redisClient from '../src/clients/redis'
let ac... | 1 |
AlysonConsuli/qatar-bets-api | f040c15 | tests/unit/betsServices.test.ts | TypeScript | www.github.com/AlysonConsuli/qatar-bets-api/tree/main/tests/unit/betsServices.test.ts | https://raw.githubusercontent.com/AlysonConsuli/qatar-bets-api/f040c15/tests/unit/betsServices.test.ts | AlysonConsuli/qatar-bets-api f040c15 tests/unit/betsServices.test.ts | true | 200 | 5,772 | import { jest } from "@jest/globals";
import { betsService } from "../../src/services/betsService.js";
import { betsRepository } from "../../src/repositories/betsRepository.js";
import { appRepository } from "../../src/repositories/appRepository.js";
import { validateData } from "../../src/utils/validateData.js";
impo... | 6 |
ydainna/bender-bot | e6cbb7d | src/utils/error.ts | TypeScript | www.github.com/ydainna/bender-bot/tree/main/src/utils/error.ts | https://raw.githubusercontent.com/ydainna/bender-bot/e6cbb7d/src/utils/error.ts | ydainna/bender-bot e6cbb7d src/utils/error.ts | true | 200 | 508 | import { EmbedBuilder, CommandInteraction } from "discord.js";
export async function error(message: string, interaction: CommandInteraction) {
let error: EmbedBuilder = new EmbedBuilder()
.setColor("#FF0000")
.setTitle("Il y a une erreur dans le système de Vagos")
.setDescription(`${message}`)
.setFo... | 5 |
ThusharBhushan/FullStacKTraining | cc8e5a3 | angular/frontend/src/app/app.module.ts | TypeScript | www.github.com/ThusharBhushan/FullStacKTraining/tree/main/angular/frontend/src/app/app.module.ts | https://raw.githubusercontent.com/ThusharBhushan/FullStacKTraining/cc8e5a3/angular/frontend/src/app/app.module.ts | ThusharBhushan/FullStacKTraining cc8e5a3 angular/frontend/src/app/app.module.ts | true | 200 | 828 | import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule} from '@angular/common/http';
import { AppComponent } from './app.component';
import { UserformComponent } from './userform/userform.component';
i... | 0 |
darielmedr/auth-client-angular | 8ffe482 | src/app/app.component.ts | TypeScript | www.github.com/darielmedr/auth-client-angular/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/darielmedr/auth-client-angular/8ffe482/src/app/app.component.ts | darielmedr/auth-client-angular 8ffe482 src/app/app.component.ts | true | 200 | 585 | import { Component, OnInit } from '@angular/core';
import { first } from 'rxjs';
import { AuthService } from './core/services/auth.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent implements OnInit {
constructor... | 3 |
ahmet-cetinkaya-instruction/bosch-rentacar-frontend-angular | 64e1b72 | src/app/features/brands/services/brands.service.ts | TypeScript | www.github.com/ahmet-cetinkaya-instruction/bosch-rentacar-frontend-angular/tree/main/src/app/features/brands/services/brands.service.ts | https://raw.githubusercontent.com/ahmet-cetinkaya-instruction/bosch-rentacar-frontend-angular/64e1b72/src/app/features/brands/services/brands.service.ts | ahmet-cetinkaya-instruction/bosch-rentacar-frontend-angular 64e1b72 src/app/features/brands/services/brands.service.ts | true | 200 | 1,327 | import { CreateBrandRequest } from '../models/create-brand-request';
import { GetListBrandsRequest } from '../models/getListBrandsRequest';
import { GetListBrandsResponse } from '../models/getListBrandsResponse';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Obs... | 1 |
trujunzhang/nuxt-deploy | 4504e4a | packages/appNuxt/pages/user_details.ts | TypeScript | www.github.com/trujunzhang/nuxt-deploy/tree/main/packages/appNuxt/pages/user_details.ts | https://raw.githubusercontent.com/trujunzhang/nuxt-deploy/4504e4a/packages/appNuxt/pages/user_details.ts | trujunzhang/nuxt-deploy 4504e4a packages/appNuxt/pages/user_details.ts | true | 200 | 1,009 | import { Component, Vue, Watch } from 'vue-property-decorator'
import UserDefaultRight from '~/components/screens/details/user/right/right_default.vue'
import UserDetailPhotosSelf from '~/components/screens/details/user/right/photos_self.vue'
import UserDetailRestaurantsSelf from '~/components/screens/details/user/righ... | 2 |
BBennettChiba/BBennettProjects | 1f6ce4f | src/server/api/routers/link.ts | TypeScript | www.github.com/BBennettChiba/BBennettProjects/tree/main/src/server/api/routers/link.ts | https://raw.githubusercontent.com/BBennettChiba/BBennettProjects/1f6ce4f/src/server/api/routers/link.ts | BBennettChiba/BBennettProjects 1f6ce4f src/server/api/routers/link.ts | true | 200 | 711 | import { type } from "arktype";
import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
import { makeId } from "~/utils/server";
export const linkRouter = createTRPCRouter({
create: publicProcedure
.input(
type({
url: /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()... | 4 |
Lalo-gmz/g4d | 7849d28 | src/main/webapp/app/entities/atributo/update/atributo-update.component.spec.ts | TypeScript | www.github.com/Lalo-gmz/g4d/tree/main/src/main/webapp/app/entities/atributo/update/atributo-update.component.spec.ts | https://raw.githubusercontent.com/Lalo-gmz/g4d/7849d28/src/main/webapp/app/entities/atributo/update/atributo-update.component.spec.ts | Lalo-gmz/g4d 7849d28 src/main/webapp/app/entities/atributo/update/atributo-update.component.spec.ts | true | 200 | 4,370 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpResponse } from '@angular/common/http';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { FormBuilder } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { RouterTestingModule } f... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.