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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
MFPablo/bot_project | 4e0a1a9 | pages/api/scrapper/index.ts | TypeScript | www.github.com/MFPablo/bot_project/tree/main/pages/api/scrapper/index.ts | https://raw.githubusercontent.com/MFPablo/bot_project/4e0a1a9/pages/api/scrapper/index.ts | MFPablo/bot_project 4e0a1a9 pages/api/scrapper/index.ts | true | 200 | 366 | import { automation } from "@/services/scrapper";
import { logWriter } from "@/utils/utils";
const handler = async (req: any, res: any) => {
if (req.method === "GET") {
await scrapper()
res.status(200).json({ message: "OK" });
}
}
export default handler;
const scrapper = async () => {
const scrapper... | 5 |
Informerus/informerus-mono | 303a401 | apps/api/src/trpc.ts | TypeScript | www.github.com/Informerus/informerus-mono/tree/main/apps/api/src/trpc.ts | https://raw.githubusercontent.com/Informerus/informerus-mono/303a401/apps/api/src/trpc.ts | Informerus/informerus-mono 303a401 apps/api/src/trpc.ts | true | 200 | 1,083 | import type { CreateFastifyContextOptions } from "@trpc/server/adapters/fastify";
import type _fastify from "fastify";
import { initTRPC } from "@trpc/server";
import SuperJSON from "superjson";
import { ZodError } from "zod";
import { createDatabaseConnection } from "@informerus/db";
import { ENV } from "@informerus/... | 4 |
Distrect/Portfolio | cc76c3c | src/shared/component/navigation/navigation.component.ts | TypeScript | www.github.com/Distrect/Portfolio/tree/main/src/shared/component/navigation/navigation.component.ts | https://raw.githubusercontent.com/Distrect/Portfolio/cc76c3c/src/shared/component/navigation/navigation.component.ts | Distrect/Portfolio cc76c3c src/shared/component/navigation/navigation.component.ts | true | 200 | 3,341 | import { DataService } from './../../../service/data.service';
import {
AfterViewInit,
Component,
ElementRef,
OnDestroy,
OnInit,
ViewChild,
} from '@angular/core';
import { Observable, fromEvent } from 'rxjs';
import { AvailableLanguages } from '../../shared.interface';
import { Store } from '@ngrx/store';
... | 6 |
blackshadev/littledivelog | 67f092b | src/app/services/buddy.service.ts | TypeScript | www.github.com/blackshadev/littledivelog/tree/main/src/app/services/buddy.service.ts | https://raw.githubusercontent.com/blackshadev/littledivelog/67f092b/src/app/services/buddy.service.ts | blackshadev/littledivelog 67f092b src/app/services/buddy.service.ts | true | 200 | 1,691 | import { Injectable } from "@angular/core";
import { IBuddy } from "app/shared/dive";
import { serviceUrl } from "app/shared/config";
import { HttpClient } from "@angular/common/http";
export interface IBuddyStat {
buddy_id: number;
text: string;
color: string;
dive_count: number;
last_dive: Date;
... | 3 |
Austinsahm/Parrot | da50f52 | src/app/data-access/device-manufacturer-type-data-access.service.ts | TypeScript | www.github.com/Austinsahm/Parrot/tree/main/src/app/data-access/device-manufacturer-type-data-access.service.ts | https://raw.githubusercontent.com/Austinsahm/Parrot/da50f52/src/app/data-access/device-manufacturer-type-data-access.service.ts | Austinsahm/Parrot da50f52 src/app/data-access/device-manufacturer-type-data-access.service.ts | true | 200 | 2,682 | import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { shareReplay, tap } from 'rxjs/operators';
import { AbstractDataAccessService, DataAccessKey } from './abstract-data-access.service';
import { DeviceManufacturerTypeHttpService } from './http/device-manufacturer-type-http.service... | 5 |
Team-Delgo/DelgoMap | 725a854 | src/redux/slice/userSlice.ts | TypeScript | www.github.com/Team-Delgo/DelgoMap/tree/main/src/redux/slice/userSlice.ts | https://raw.githubusercontent.com/Team-Delgo/DelgoMap/725a854/src/redux/slice/userSlice.ts | Team-Delgo/DelgoMap 725a854 src/redux/slice/userSlice.ts | true | 200 | 2,574 | import { createSlice } from '@reduxjs/toolkit';
const initialState = {
isSignIn: false,
moveToLogin: false,
appleCode: '',
isFirstCert: true,
isFirstCertToggle: false,
user: {
id: 0,
address: '',
nickname: '',
email: '',
phone: '',
isSocial: false,
geoCode: '',
pGeoCode: '',... | 1 |
tongocduy1601/ChatApp | 39ffe2a | src/schema/conversation.schema.ts | TypeScript | www.github.com/tongocduy1601/ChatApp/tree/main/src/schema/conversation.schema.ts | https://raw.githubusercontent.com/tongocduy1601/ChatApp/39ffe2a/src/schema/conversation.schema.ts | tongocduy1601/ChatApp 39ffe2a src/schema/conversation.schema.ts | true | 200 | 490 |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';
export type ConversationDocument = HydratedDocument<Conversation>;
@Schema()
export class Conversation {
@Prop()
creator: string;
@Prop()
type: number;
@Prop()
avatar: string;
... | 4 |
ishiko732/eBookWeb | 8b91007 | src/UserContext.ts | TypeScript | www.github.com/ishiko732/eBookWeb/tree/main/src/UserContext.ts | https://raw.githubusercontent.com/ishiko732/eBookWeb/8b91007/src/UserContext.ts | ishiko732/eBookWeb 8b91007 src/UserContext.ts | true | 200 | 599 | import { i18n, TFunction } from "i18next";
import { createContext, useContext } from "react";
import { User } from "./api/models";
export interface ProviderContext {
user: User;
setUser: React.Dispatch<React.SetStateAction<User | null>>;
t: TFunction<"translation", undefined, "translation">;
i18n: i18n;
isloa... | 6 |
Zerounary/tauri-vitesome | a10cbd2 | src/stores/counter.ts | TypeScript | www.github.com/Zerounary/tauri-vitesome/tree/main/src/stores/counter.ts | https://raw.githubusercontent.com/Zerounary/tauri-vitesome/a10cbd2/src/stores/counter.ts | Zerounary/tauri-vitesome a10cbd2 src/stores/counter.ts | true | 200 | 462 | import { storage } from "@/utils"
import { defineStore } from "pinia"
export const useCounterStore = defineStore('counter', {
state: () => {
return { count: 0 }
},
// could also be defined as
// state: () => ({ count: 0 })
actions: {
increment() {
this.count++
},
decrement() {
th... | 3 |
naopeke/ionic-demo | f8feb74 | src/app/services/interfaces.ts | TypeScript | www.github.com/naopeke/ionic-demo/tree/main/src/app/services/interfaces.ts | https://raw.githubusercontent.com/naopeke/ionic-demo/f8feb74/src/app/services/interfaces.ts | naopeke/ionic-demo f8feb74 src/app/services/interfaces.ts | true | 200 | 1,010 | export interface ApiResult {
page: number;
results: MovieResult[];
total_pages: number;
total_results: number;
}
export interface MovieResult {
adult: boolean;
backdrop_path: string;
belongs_to_collection?: any;
budget: number;
genres: Genre[];
homepage: string;
id: number;
imdb_id: string;
origina... | 1 |
marcioalvesjun/finance-management | 773d074 | src/store/store.ts | TypeScript | www.github.com/marcioalvesjun/finance-management/tree/main/src/store/store.ts | https://raw.githubusercontent.com/marcioalvesjun/finance-management/773d074/src/store/store.ts | marcioalvesjun/finance-management 773d074 src/store/store.ts | true | 200 | 1,667 | import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import { config } from '@/config';
export type TransactionType = 'withdraw' | 'deposit';
export type Transaction = {
id: string;
date: string;
value: number;
description: string;
type: TransactionType;
};
export type InputTransaction... | 5 |
nierkay0/Esercitazione | 1a191e6 | paginetta-anita/src/app/hello-kitty/hello-kitty.component.spec.ts | TypeScript | www.github.com/nierkay0/Esercitazione/tree/main/paginetta-anita/src/app/hello-kitty/hello-kitty.component.spec.ts | https://raw.githubusercontent.com/nierkay0/Esercitazione/1a191e6/paginetta-anita/src/app/hello-kitty/hello-kitty.component.spec.ts | nierkay0/Esercitazione 1a191e6 paginetta-anita/src/app/hello-kitty/hello-kitty.component.spec.ts | true | 200 | 657 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HelloKittyComponent } from './hello-kitty.component';
describe('HelloKittyComponent', () => {
let component: HelloKittyComponent;
let fixture: ComponentFixture<HelloKittyComponent>;
beforeEach(async(() => {
TestBed.configure... | 6 |
minntoko/plactice_TypeScript | 86d94ca | learned/library.ts | TypeScript | www.github.com/minntoko/plactice_TypeScript/tree/main/learned/library.ts | https://raw.githubusercontent.com/minntoko/plactice_TypeScript/86d94ca/learned/library.ts | minntoko/plactice_TypeScript 86d94ca learned/library.ts | true | 200 | 787 | import "reflect-metadata";
import { plainToInstance } from "class-transformer";
import { validate } from "class-validator";
import { Product } from "./product.model";
const products = [
{ title: "商品1", price: 100 },
{ title: "商品2", price: 200 }
]
const newProd = new Product("", -100);
validate(newProd).then(erro... | 3 |
Kalyani54/APIAngularProject | 5938c4d | TravelProject/src/app/travel/delete-req/delete-req.component.ts | TypeScript | www.github.com/Kalyani54/APIAngularProject/tree/main/TravelProject/src/app/travel/delete-req/delete-req.component.ts | https://raw.githubusercontent.com/Kalyani54/APIAngularProject/5938c4d/TravelProject/src/app/travel/delete-req/delete-req.component.ts | Kalyani54/APIAngularProject 5938c4d TravelProject/src/app/travel/delete-req/delete-req.component.ts | true | 200 | 998 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { lstRequest } from 'models/lstRequest';
import { ApiServiceService } from 'src/app/api-service.service';
@Component({
selector: 'app-delete-req',
templateUrl: './delete-req.component.html',
styleU... | 0 |
RonaldJTF/carga-trabajo-app | f6ec735 | src/app/pages/developer/basic-tables/basic-tables.module.ts | TypeScript | www.github.com/RonaldJTF/carga-trabajo-app/tree/main/src/app/pages/developer/basic-tables/basic-tables.module.ts | https://raw.githubusercontent.com/RonaldJTF/carga-trabajo-app/f6ec735/src/app/pages/developer/basic-tables/basic-tables.module.ts | RonaldJTF/carga-trabajo-app f6ec735 src/app/pages/developer/basic-tables/basic-tables.module.ts | true | 200 | 2,761 | import {NgModule} from '@angular/core';
import {BasicTablesRoutingModule} from './basic-tables-routing.module';
import {BasicTablesComponent} from './basic-tables.component';
import {GenderComponent} from './gender/gender.component';
import {FormGenderComponent} from "./gender/form-gender/form-gender.component";
import... | 1 |
Noorhesham/Quiz-Boi | 54f2425 | frontend/my-quiz/actions/GetStats.ts | TypeScript | www.github.com/Noorhesham/Quiz-Boi/tree/main/frontend/my-quiz/actions/GetStats.ts | https://raw.githubusercontent.com/Noorhesham/Quiz-Boi/54f2425/frontend/my-quiz/actions/GetStats.ts | Noorhesham/Quiz-Boi 54f2425 frontend/my-quiz/actions/GetStats.ts | true | 200 | 622 | "use server";
import { API_URL } from "@/constants";
export const GetStats = async (id: string) => {
try {
const response = await fetch(`${API_URL}/attempts/user/stats/${id}`, { cache:'no-cache' });
const data = await response.json();
if (!response.ok) {
throw new Error(data.message || "Failed to f... | 4 |
redphx/better-xcloud | 544eded | src/types/setting-definition.d.ts | TypeScript | www.github.com/redphx/better-xcloud/tree/main/src/types/setting-definition.d.ts | https://raw.githubusercontent.com/redphx/better-xcloud/544eded/src/types/setting-definition.d.ts | redphx/better-xcloud 544eded src/types/setting-definition.d.ts | true | 200 | 2,829 | import type { AnyPref, AnySettingsStorage, GlobalPref, StreamPref } from "@/enums/pref-keys";
import type { SettingElementType } from "@/utils/setting-element";
type SuggestedSettingProfile = 'recommended' | 'lowest' | 'highest' | 'default';
type RecommendedSettings = {
schema_version: 2,
device_name: string,
... | 5 |
Mohammad-RS/CS-Angular-BookSphere | 9e14976 | UI/src/app/pages/category-add/category-add.component.ts | TypeScript | www.github.com/Mohammad-RS/CS-Angular-BookSphere/tree/main/UI/src/app/pages/category-add/category-add.component.ts | https://raw.githubusercontent.com/Mohammad-RS/CS-Angular-BookSphere/9e14976/UI/src/app/pages/category-add/category-add.component.ts | Mohammad-RS/CS-Angular-BookSphere 9e14976 UI/src/app/pages/category-add/category-add.component.ts | true | 200 | 1,600 | import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import {
FormControl,
FormGroup,
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import { BookService } from '../../services/book-service';
import { Router } from '@angular/router';
import { AddCategoryModel } f... | 3 |
yavuzhanaymak/case-backend | e0391ac | src/subcontractor/subcontractor.service.ts | TypeScript | www.github.com/yavuzhanaymak/case-backend/tree/main/src/subcontractor/subcontractor.service.ts | https://raw.githubusercontent.com/yavuzhanaymak/case-backend/e0391ac/src/subcontractor/subcontractor.service.ts | yavuzhanaymak/case-backend e0391ac src/subcontractor/subcontractor.service.ts | true | 200 | 630 | import { Injectable } from '@nestjs/common';
import { SubcontractorModel } from 'tools/models/subcontractor.model';
import { SubcontractorCreateDto, SubcontractorUpdateDto } from 'tools/dtos/subcontractor.dto';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { ResourceService ... | 0 |
belkaite/discord-bot | 6be898a | src/modules/messages/tests/messages.spec.ts | TypeScript | www.github.com/belkaite/discord-bot/tree/main/src/modules/messages/tests/messages.spec.ts | https://raw.githubusercontent.com/belkaite/discord-bot/6be898a/src/modules/messages/tests/messages.spec.ts | belkaite/discord-bot 6be898a src/modules/messages/tests/messages.spec.ts | true | 200 | 4,106 | import supertest from 'supertest'
import createTestDatabase from '@tests/utils/createTestDatabase'
import type { Kysely } from 'kysely'
import buildRepository from '../repository'
import createApp from '@/app'
import type { DB } from '@/database/types'
import { fakeMessage, finalMessageMatcher } from './utils'
type Me... | 5 |
gwak2837/8percent | 08e11b9 | src/mock/data.ts | TypeScript | www.github.com/gwak2837/8percent/tree/main/src/mock/data.ts | https://raw.githubusercontent.com/gwak2837/8percent/08e11b9/src/mock/data.ts | gwak2837/8percent 08e11b9 src/mock/data.ts | true | 200 | 28,238 | export const mockedProducts = [
{
index: 61288,
title: '주거안정 3292호 용인 수지구 풍덕천동 삼성아파트',
amount: 150000000,
length: 12,
earningRate: 8,
thumbnail:
'https://cdn-media.8percent.kr/deal/61288/2U6wjNAjDTMWMurWxCtQCYa8ZDW1Dv_Deal_main.jpg',
},
{
index: 61254,
title: '주거안정 3290호 서울 중... | 1 |
miniskylab/Antimatter | ac078db | components/login-form/variants/default.ts | TypeScript | www.github.com/miniskylab/Antimatter/tree/main/components/login-form/variants/default.ts | https://raw.githubusercontent.com/miniskylab/Antimatter/ac078db/components/login-form/variants/default.ts | miniskylab/Antimatter ac078db components/login-form/variants/default.ts | true | 200 | 3,588 | import {ButtonContextHook, type ButtonStyle, ButtonVariant} from "@miniskylab/antimatter-button";
import {Color} from "@miniskylab/antimatter-color-scheme";
import {type IconStyle, IconVariant} from "@miniskylab/antimatter-icon";
import {InputFieldContextHook, type InputFieldStyle, InputFieldVariant} from "@miniskylab/... | 4 |
helalymahmoud/Camapign_task | 237f186 | src/auth/auth.service.ts | TypeScript | www.github.com/helalymahmoud/Camapign_task/tree/main/src/auth/auth.service.ts | https://raw.githubusercontent.com/helalymahmoud/Camapign_task/237f186/src/auth/auth.service.ts | helalymahmoud/Camapign_task 237f186 src/auth/auth.service.ts | true | 200 | 4,755 | import { BadRequestException, ConflictException, Injectable, NotFoundException, UnauthorizedException } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import * as bcrypt from 'bcrypt';
import { User } from 'src/u... | 6 |
Defou1ts/weather | f02c1db | src/interfaces/calendarEvent.ts | TypeScript | www.github.com/Defou1ts/weather/tree/main/src/interfaces/calendarEvent.ts | https://raw.githubusercontent.com/Defou1ts/weather/f02c1db/src/interfaces/calendarEvent.ts | Defou1ts/weather f02c1db src/interfaces/calendarEvent.ts | true | 200 | 1,237 | export interface CalendarEvent {
kind: string;
etag: string;
id: string;
status: string;
htmlLink: string;
created: Date;
updated: Date;
summary: string;
creator: Creator;
organizer: Creator;
start: Timestamp;
end: Timestamp;
recurringEventId: string;
originalStartTime: Timestamp;
iCalUID: string;
seque... | 3 |
aishupp/personalWork | 602dd99 | src/app/pages/dropand-drag/dropand-drag.component.spec.ts | TypeScript | www.github.com/aishupp/personalWork/tree/main/src/app/pages/dropand-drag/dropand-drag.component.spec.ts | https://raw.githubusercontent.com/aishupp/personalWork/602dd99/src/app/pages/dropand-drag/dropand-drag.component.spec.ts | aishupp/personalWork 602dd99 src/app/pages/dropand-drag/dropand-drag.component.spec.ts | true | 200 | 595 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DropandDragComponent } from './dropand-drag.component';
describe('DropandDragComponent', () => {
let component: DropandDragComponent;
let fixture: ComponentFixture<DropandDragComponent>;
beforeEach(() => {
TestBed.configureTestingM... | 0 |
DouglasSoares16/Rentx-Mobile | d2109ff | src/components/Car/styles.ts | TypeScript | www.github.com/DouglasSoares16/Rentx-Mobile/tree/main/src/components/Car/styles.ts | https://raw.githubusercontent.com/DouglasSoares16/Rentx-Mobile/d2109ff/src/components/Car/styles.ts | DouglasSoares16/Rentx-Mobile d2109ff src/components/Car/styles.ts | true | 200 | 1,532 | import { RectButton } from "react-native-gesture-handler";
import { RFValue } from "react-native-responsive-fontsize";
import styled from "styled-components/native";
export const Container = styled(RectButton)`
width: 100%;
height: 126px;
background-color: ${({ theme }) => theme.colors.background_secondary};
... | 5 |
sofdev6-02-2024/Solidarios | 9f88f67 | apps/cevent_frontend/src/styles/theme.ts | TypeScript | www.github.com/sofdev6-02-2024/Solidarios/tree/main/apps/cevent_frontend/src/styles/theme.ts | https://raw.githubusercontent.com/sofdev6-02-2024/Solidarios/9f88f67/apps/cevent_frontend/src/styles/theme.ts | sofdev6-02-2024/Solidarios 9f88f67 apps/cevent_frontend/src/styles/theme.ts | true | 200 | 1,575 | import { createTheme } from '@mui/material/styles';
const theme = createTheme({
palette: {
primary: {
main: '#035AE1',
light: '#7c43bd',
contrastText: '#fff',
},
secondary: {
main: '#0A2140',
light: '#7c43bd',
contrastText: '#fff',
},
lightBlack: {
main: ... | 1 |
Aoyetibo557/alt-afrostyles-fe | 67cd0c5 | api/tokenStorage.ts | TypeScript | www.github.com/Aoyetibo557/alt-afrostyles-fe/tree/main/api/tokenStorage.ts | https://raw.githubusercontent.com/Aoyetibo557/alt-afrostyles-fe/67cd0c5/api/tokenStorage.ts | Aoyetibo557/alt-afrostyles-fe 67cd0c5 api/tokenStorage.ts | true | 200 | 563 | import * as SecureStore from "expo-secure-store";
import { jwtDecode } from "jwt-decode";
export const saveToken = async (key, value) => {
await SecureStore.setItemAsync(key, value);
};
export const getToken = async (key) => {
return await SecureStore.getItemAsync(key);
};
export const deleteToken = async (key) ... | 4 |
jefftrojan/pf | 0be8e9c | src/app/api/posts/route.ts | TypeScript | www.github.com/jefftrojan/pf/tree/main/src/app/api/posts/route.ts | https://raw.githubusercontent.com/jefftrojan/pf/0be8e9c/src/app/api/posts/route.ts | jefftrojan/pf 0be8e9c src/app/api/posts/route.ts | true | 200 | 681 | import fs from 'fs';
import path from 'path';
import matter from 'gray-matter';
export async function GET(request: any) {
const postsDirectory = path.join(process.cwd(), 'posts');
const filenames = fs.readdirSync(postsDirectory);
const posts = filenames.map(filename => {
const filePath = path.join(postsDire... | 6 |
thehashrocket/print-portal | 5ea95f0 | src/utils/emailTemplates.ts | TypeScript | www.github.com/thehashrocket/print-portal/tree/main/src/utils/emailTemplates.ts | https://raw.githubusercontent.com/thehashrocket/print-portal/5ea95f0/src/utils/emailTemplates.ts | thehashrocket/print-portal 5ea95f0 src/utils/emailTemplates.ts | true | 200 | 1,075 | // ~/utils/emailTemplates.ts
export function getVerificationEmailTemplate(url: string): string {
return `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verify Your Email</title>
<style... | 7 |
k-rezkallah/chartAppMaterial | 0d9b3fd | src/app/app/store/effects/router.effects.ts | TypeScript | www.github.com/k-rezkallah/chartAppMaterial/tree/main/src/app/app/store/effects/router.effects.ts | https://raw.githubusercontent.com/k-rezkallah/chartAppMaterial/0d9b3fd/src/app/app/store/effects/router.effects.ts | k-rezkallah/chartAppMaterial 0d9b3fd src/app/app/store/effects/router.effects.ts | true | 200 | 1,086 | import { Location } from '@angular/common';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Actions, createEffect, Effect, ofType } from '@ngrx/effects';
import { map, tap } from 'rxjs';
import * as routerActions from '../actions';
@Injectable()
export class RouterEffects... | 3 |
sadiso/practica2 | 7e4900b | bank/src/app/functionality/administrative/dashboard/dashboard.component.ts | TypeScript | www.github.com/sadiso/practica2/tree/main/bank/src/app/functionality/administrative/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/sadiso/practica2/7e4900b/bank/src/app/functionality/administrative/dashboard/dashboard.component.ts | sadiso/practica2 7e4900b bank/src/app/functionality/administrative/dashboard/dashboard.component.ts | true | 200 | 1,998 | import { Component } from '@angular/core';
import { TransactionService } from '../../monetary/services/transaction.service';
import { Location } from '@angular/common';
import { Transactionres } from '../../monetary/model/response/transactionres';
@Component({
selector: 'app-dashboard',
standalone: true,
imports... | 0 |
hrithikwins/nextjs-tailwind-mongo | 9aeb288 | pages/api/firebase/create.ts | TypeScript | www.github.com/hrithikwins/nextjs-tailwind-mongo/tree/main/pages/api/firebase/create.ts | https://raw.githubusercontent.com/hrithikwins/nextjs-tailwind-mongo/9aeb288/pages/api/firebase/create.ts | hrithikwins/nextjs-tailwind-mongo 9aeb288 pages/api/firebase/create.ts | true | 200 | 629 | import { db } from "config/firebase";
import { collection, addDoc } from "firebase/firestore";
import { NextApiRequest, NextApiResponse } from "next";
export default async function create(
req: NextApiRequest,
res: NextApiResponse
) {
if (req.method === "POST") {
const { name, email, password } = req.body;
... | 2 |
alexdfaria/nestjs | dec81af | src/app.module.ts | TypeScript | www.github.com/alexdfaria/nestjs/tree/main/src/app.module.ts | https://raw.githubusercontent.com/alexdfaria/nestjs/dec81af/src/app.module.ts | alexdfaria/nestjs dec81af src/app.module.ts | true | 200 | 634 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './modules/auth.module';
import { UsersModule } from './modules/users.module';
@Module({
imports: [
AuthModule,
UsersModule
],
controllers: [Ap... | 5 |
eams1798/fullstackopen-part7-react_router_webpack | b2de0c3 | blogapp/backend/src/app.ts | TypeScript | www.github.com/eams1798/fullstackopen-part7-react_router_webpack/tree/main/blogapp/backend/src/app.ts | https://raw.githubusercontent.com/eams1798/fullstackopen-part7-react_router_webpack/b2de0c3/blogapp/backend/src/app.ts | eams1798/fullstackopen-part7-react_router_webpack b2de0c3 blogapp/backend/src/app.ts | true | 200 | 1,354 | import { MONGODB_URI } from "./utils/config";
import express from "express";
import cors from "cors";
import blogsRouter from "./controllers/blogs";
import usersRouter from "./controllers/users";
import loginRouter from "./controllers/login";
import commentsRouter from "./controllers/comments";
import testingRouter fro... | 1 |
ManuUseGitHub/canvasStartup | 131bc3d | src/resources/textHelper.ts | TypeScript | www.github.com/ManuUseGitHub/canvasStartup/tree/main/src/resources/textHelper.ts | https://raw.githubusercontent.com/ManuUseGitHub/canvasStartup/131bc3d/src/resources/textHelper.ts | ManuUseGitHub/canvasStartup 131bc3d src/resources/textHelper.ts | true | 200 | 478 | import { ApplicationContextType, HighLightCode } from "./types";
const pieces: { [x: string]: any } = {}
export const configureDebug = () => {
const msgs: string[] = [];
return msgs.join("\n");
}
function normalizeSymbole(symbol: string) {
return symbol.charAt(0)
}
export const pushDebugMessage = ... | 4 |
AnnaKudryashova/Design-Patterns-ESDC | 77a4b47 | src/utils/Logger.ts | TypeScript | www.github.com/AnnaKudryashova/Design-Patterns-ESDC/tree/main/src/utils/Logger.ts | https://raw.githubusercontent.com/AnnaKudryashova/Design-Patterns-ESDC/77a4b47/src/utils/Logger.ts | AnnaKudryashova/Design-Patterns-ESDC 77a4b47 src/utils/Logger.ts | true | 200 | 707 | import pino from 'pino';
import fs from 'fs';
import path from 'path';
const logDirectory = path.join(__dirname, '../logs');
if (!fs.existsSync(logDirectory)) {
fs.mkdirSync(logDirectory);
}
const transport = pino.transport({
targets: [
{
target: 'pino-pretty',
options: {
... | 6 |
Tmosonik123/AgriUpdates | 67f9875 | services/api.ts | TypeScript | www.github.com/Tmosonik123/AgriUpdates/tree/main/services/api.ts | https://raw.githubusercontent.com/Tmosonik123/AgriUpdates/67f9875/services/api.ts | Tmosonik123/AgriUpdates 67f9875 services/api.ts | true | 200 | 5,240 | import axios from 'axios';
const BASE_URL = 'https://statistics.kilimo.go.ke/api/v1';
const api = axios.create({
baseURL: BASE_URL,
headers: {
'Content-Type': 'application/json',
},
});
// Mock data
const MOCK_MARKET_PRICES: MarketPriceResponse[] = [
{
commodity: 'Dry Maize',
classification: 'Whi... | 0 |
hannaforssell/test-assignment-integrationtest | 1a04e66 | src/ts/functions.ts | TypeScript | www.github.com/hannaforssell/test-assignment-integrationtest/tree/main/src/ts/functions.ts | https://raw.githubusercontent.com/hannaforssell/test-assignment-integrationtest/1a04e66/src/ts/functions.ts | hannaforssell/test-assignment-integrationtest 1a04e66 src/ts/functions.ts | true | 200 | 645 | import { IMovie } from "./models/IMovie";
export const movieSort = (movies: IMovie[], desc: boolean = true) => {
return movies.sort((a: IMovie, b: IMovie) => {
if (desc) {
if (a.Title > b.Title) return 1;
if (a.Title < b.Title) return -1;
return 0;
} else {
if (a.Title > b.Title) ret... | 3 |
AlexTraveylan/password-guard-2 | c9929c5 | src/lib/services/userApp.service.ts | TypeScript | www.github.com/AlexTraveylan/password-guard-2/tree/main/src/lib/services/userApp.service.ts | https://raw.githubusercontent.com/AlexTraveylan/password-guard-2/c9929c5/src/lib/services/userApp.service.ts | AlexTraveylan/password-guard-2 c9929c5 src/lib/services/userApp.service.ts | true | 200 | 625 | import prisma from "@/prisma-client"
import { UserApp } from "@prisma/client"
class UserAppService {
async create({ name, email, masterPassword, salt, privateKey, publicKey }: Omit<UserApp, "id">) {
const userApp = await prisma.userApp.create({
data: {
name,
email,
masterPassword,
... | 7 |
Ronterox/MikoMarket | ed631f7 | js/trading.ts | TypeScript | www.github.com/Ronterox/MikoMarket/tree/main/js/trading.ts | https://raw.githubusercontent.com/Ronterox/MikoMarket/ed631f7/js/trading.ts | Ronterox/MikoMarket ed631f7 js/trading.ts | true | 200 | 13,775 | import type { Time } from 'lightweight-charts';
import type { Candle, DataFrame, Functionalities, GraphicFunctionalities, Iter, Mark } from './types';
import { z } from 'zod';
const DataList = z.custom<Record<number, number>>().default({});
export const TechnicalAnalysis = z.object({
sma: z.object({ 50: DataList,... | 2 |
jon-richards-gbl/react-examples | 72f3cde | src/main/Store/index.ts | TypeScript | www.github.com/jon-richards-gbl/react-examples/tree/main/src/main/Store/index.ts | https://raw.githubusercontent.com/jon-richards-gbl/react-examples/72f3cde/src/main/Store/index.ts | jon-richards-gbl/react-examples 72f3cde src/main/Store/index.ts | true | 200 | 380 | import { configureStore } from "@reduxjs/toolkit";
import authReducer from "~/auth/store";
import productReducer from "~/products/store";
export const createStore = () =>
configureStore({
reducer: {
auth: authReducer,
products: productReducer,
},
});
const store = createStore();
export type ... | 1 |
Blendi2000/e-commerce-cart | b1bebf9 | src/app/products/product-list/product-list.component.ts | TypeScript | www.github.com/Blendi2000/e-commerce-cart/tree/main/src/app/products/product-list/product-list.component.ts | https://raw.githubusercontent.com/Blendi2000/e-commerce-cart/b1bebf9/src/app/products/product-list/product-list.component.ts | Blendi2000/e-commerce-cart b1bebf9 src/app/products/product-list/product-list.component.ts | true | 200 | 1,619 | import { Component } from '@angular/core';
import { ProductService } from '../../services/product.service';
import { CartService } from '../../services/cart.service';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
@Component... | 5 |
sojib076/Bike-Rental-Backend | 802496d | src/modules/bike/bike.validation.ts | TypeScript | www.github.com/sojib076/Bike-Rental-Backend/tree/main/src/modules/bike/bike.validation.ts | https://raw.githubusercontent.com/sojib076/Bike-Rental-Backend/802496d/src/modules/bike/bike.validation.ts | sojib076/Bike-Rental-Backend 802496d src/modules/bike/bike.validation.ts | true | 200 | 766 | // bike.schema.ts
import { z } from 'zod';
export const bikeSchema = z.object({
body: z.object({
name: z.string(),
description: z.string(),
pricePerHour: z.number(),
isAvailable: z.boolean().optional().default(true),
cc: z.number(),
year: z.number(),
model: z... | 4 |
aguyon/WhatsApp-Web_Clone | 405d29d | imports/ui/elements/StyledFABs.ts | TypeScript | www.github.com/aguyon/WhatsApp-Web_Clone/tree/main/imports/ui/elements/StyledFABs.ts | https://raw.githubusercontent.com/aguyon/WhatsApp-Web_Clone/405d29d/imports/ui/elements/StyledFABs.ts | aguyon/WhatsApp-Web_Clone 405d29d imports/ui/elements/StyledFABs.ts | true | 200 | 1,018 | import styled, { css } from 'styled-components';
import { FABsProps } from '../components/FABs';
const StyledFABs = styled.div`
display: none;
z-index: 200;
@media screen and (min-width: 1441px) {
position: absolute;
top: 5.5rem;
right: 5.55rem;
}
@media screen and (max-width: 1440px) {
po... | 6 |
Mr-ahmed-ramadan/Altrum-2 | 6866ae3 | src/lib/utils/viewport.ts | TypeScript | www.github.com/Mr-ahmed-ramadan/Altrum-2/tree/main/src/lib/utils/viewport.ts | https://raw.githubusercontent.com/Mr-ahmed-ramadan/Altrum-2/6866ae3/src/lib/utils/viewport.ts | Mr-ahmed-ramadan/Altrum-2 6866ae3 src/lib/utils/viewport.ts | true | 200 | 1,416 | /**
* Utility functions for handling viewport and device-specific logic
*/
/**
* Checks if the current device is likely a touch device
* @returns boolean indicating if the device supports touch
*/
export function isTouchDevice(): boolean {
return (
"ontouchstart" in window ||
navigator.maxTouchPoints > ... | 3 |
ahmadbasyouni10/curosornotes | 0e4f305 | firebase-admin.ts | TypeScript | www.github.com/ahmadbasyouni10/curosornotes/tree/main/firebase-admin.ts | https://raw.githubusercontent.com/ahmadbasyouni10/curosornotes/0e4f305/firebase-admin.ts | ahmadbasyouni10/curosornotes 0e4f305 firebase-admin.ts | true | 200 | 732 | // firebase admin config for server side
import {
initializeApp,
getApps,
App,
getApp,
cert,
} from 'firebase-admin/app';
import { getFirestore } from 'firebase-admin/firestore';
// turns the service key json into a js object key value pair
const serviceKey = require("@/service_key.json")
// ty... | 0 |
seifkowatli/spls-test | 021ed3f | backend/src/auth/local.strategy.ts | TypeScript | www.github.com/seifkowatli/spls-test/tree/main/backend/src/auth/local.strategy.ts | https://raw.githubusercontent.com/seifkowatli/spls-test/021ed3f/backend/src/auth/local.strategy.ts | seifkowatli/spls-test 021ed3f backend/src/auth/local.strategy.ts | true | 200 | 675 | import { Injectable, Logger, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy } from 'passport-local';
import { User } from '../users/schemas/user.schema';
import { AuthService } from './auth.service';
@Injectable()
export class LocalStrategy extends... | 7 |
conplexx/man-web | ea9edb6 | src/app/auth/register/register.component.ts | TypeScript | www.github.com/conplexx/man-web/tree/main/src/app/auth/register/register.component.ts | https://raw.githubusercontent.com/conplexx/man-web/ea9edb6/src/app/auth/register/register.component.ts | conplexx/man-web ea9edb6 src/app/auth/register/register.component.ts | true | 200 | 4,869 | import { CommonModule } from '@angular/common';
import { HttpResponse } from '@angular/common/http';
import { Component } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { NgxMaskDirective, provideNgxMask } ... | 2 |
massgitter/microfinance-front-end | ee26b84 | src/app/customer/customer-import/customer-import.component.ts | TypeScript | www.github.com/massgitter/microfinance-front-end/tree/main/src/app/customer/customer-import/customer-import.component.ts | https://raw.githubusercontent.com/massgitter/microfinance-front-end/ee26b84/src/app/customer/customer-import/customer-import.component.ts | massgitter/microfinance-front-end ee26b84 src/app/customer/customer-import/customer-import.component.ts | true | 200 | 2,093 | import {Component, OnInit} from '@angular/core';
import {MatFormField, MatLabel} from "@angular/material/form-field";
import {MatInput} from "@angular/material/input";
import {FormBuilder, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {MatButton} from "@angular/material/button";
import {MatI... | 1 |
tomohiroJin/cline-playground | c1cc244 | src/application/usecase/DeleteCustomerUseCase.ts | TypeScript | www.github.com/tomohiroJin/cline-playground/tree/main/src/application/usecase/DeleteCustomerUseCase.ts | https://raw.githubusercontent.com/tomohiroJin/cline-playground/c1cc244/src/application/usecase/DeleteCustomerUseCase.ts | tomohiroJin/cline-playground c1cc244 src/application/usecase/DeleteCustomerUseCase.ts | true | 200 | 1,239 | import { CustomerId } from "../../domain/model/CustomerId";
import { CustomerRepository } from "../../domain/repository/CustomerRepository";
/**
* 顧客削除ユースケースの出力データ
*/
export interface DeleteCustomerOutput {
success: boolean;
message: string;
}
/**
* 顧客削除ユースケース
*/
export class DeleteCustomerUseCase {
constru... | 5 |
Pavir02/SocializeApp | b1269d3 | client/src/app/lists/lists.component.ts | TypeScript | www.github.com/Pavir02/SocializeApp/tree/main/client/src/app/lists/lists.component.ts | https://raw.githubusercontent.com/Pavir02/SocializeApp/b1269d3/client/src/app/lists/lists.component.ts | Pavir02/SocializeApp b1269d3 client/src/app/lists/lists.component.ts | true | 200 | 1,006 | import { Component, OnInit } from '@angular/core';
import { Member } from '../_models/member';
import { MembersService } from '../_services/members.service';
import { Pagination } from '../_models/pagination';
@Component({
selector: 'app-lists',
templateUrl: './lists.component.html',
styleUrls: ['./lists.compone... | 4 |
Ankit834/seven-shop | 92e5be7 | src/app/components/product/product-list/product-list.component.ts | TypeScript | www.github.com/Ankit834/seven-shop/tree/main/src/app/components/product/product-list/product-list.component.ts | https://raw.githubusercontent.com/Ankit834/seven-shop/92e5be7/src/app/components/product/product-list/product-list.component.ts | Ankit834/seven-shop 92e5be7 src/app/components/product/product-list/product-list.component.ts | true | 200 | 782 | import { Component, OnInit } from '@angular/core';
import { Product } from 'src/app/store/product/models';
import { Store } from '@ngrx/store';
import { AppState } from 'src/app/store/app-state';
import { ShoppingCartItem } from 'src/app/store/cart/models';
@Component({
selector: 'product-list',
templateUrl: './pr... | 6 |
haris-hindic/TravelPal | 1210def | TravelPal/src/app/stays/stay-create/stay-create.component.ts | TypeScript | www.github.com/haris-hindic/TravelPal/tree/main/TravelPal/src/app/stays/stay-create/stay-create.component.ts | https://raw.githubusercontent.com/haris-hindic/TravelPal/1210def/TravelPal/src/app/stays/stay-create/stay-create.component.ts | haris-hindic/TravelPal 1210def TravelPal/src/app/stays/stay-create/stay-create.component.ts | true | 200 | 4,756 | import {
Component,
ElementRef,
HostListener,
OnInit,
ViewChild,
} from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { parseWebAPiErrors } from 'src/app/helpers/parseWebAPIErrors';
import { toBase64 } from 'src/app/helpe... | 2 |
Matolweni95/Pokemon | 1c2b20d | src/app/services/pokemon-api.service.ts | TypeScript | www.github.com/Matolweni95/Pokemon/tree/main/src/app/services/pokemon-api.service.ts | https://raw.githubusercontent.com/Matolweni95/Pokemon/1c2b20d/src/app/services/pokemon-api.service.ts | Matolweni95/Pokemon 1c2b20d src/app/services/pokemon-api.service.ts | true | 200 | 506 | import { Injectable } from '@angular/core';
import { HttpClient} from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class PokemonApiService {
constructor(private _http:HttpClient) { }
//pokedata
getPokemon(limit: number, offset:number) {
return this._http.get(`https://pokeapi.co/... | 7 |
markaumvb/simb2 | 84c4d1d | apps/api/src/auth/guards/jwt-auth.guard.ts | TypeScript | www.github.com/markaumvb/simb2/tree/main/apps/api/src/auth/guards/jwt-auth.guard.ts | https://raw.githubusercontent.com/markaumvb/simb2/84c4d1d/apps/api/src/auth/guards/jwt-auth.guard.ts | markaumvb/simb2 84c4d1d apps/api/src/auth/guards/jwt-auth.guard.ts | true | 200 | 642 | // src/auth/guards/jwt-auth.guard.ts
import { Injectable, Logger, UnauthorizedException } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
@Injectable()
export class JwtAuthGuard extends AuthGuard('jwt') {
private readonly logger = new Logger(JwtAuthGuard.name);
constructor() {
super();
... | 0 |
ed-puckett/bq | 5563a78 | src/bq-cell-element/_.ts | TypeScript | www.github.com/ed-puckett/bq/tree/main/src/bq-cell-element/_.ts | https://raw.githubusercontent.com/ed-puckett/bq/5563a78/src/bq-cell-element/_.ts | ed-puckett/bq 5563a78 src/bq-cell-element/_.ts | true | 200 | 13,917 | const current_script_url = import.meta.url; // save for later
import {
BqManager,
} from 'src/bq-manager/_';
import {
OutputContext,
} from 'src/output-context';
import {
clear_element,
} from 'lib/ui/dom-tools';
import {
make_string_literal,
} from 'lib/sys/string-tools';
import {
CodemirrorU... | 3 |
kenyontu/remix-frontend-mentor-todo-app | 101dd10 | app/session.server.ts | TypeScript | www.github.com/kenyontu/remix-frontend-mentor-todo-app/tree/main/app/session.server.ts | https://raw.githubusercontent.com/kenyontu/remix-frontend-mentor-todo-app/101dd10/app/session.server.ts | kenyontu/remix-frontend-mentor-todo-app 101dd10 app/session.server.ts | true | 200 | 1,482 | import { createCookieSessionStorage, redirect } from '@remix-run/node'
import { createThemeSessionResolver } from 'remix-themes'
import { createUser, getUserById } from '~/models/user.server'
const sessionSecret = process.env.SESSION_SECRET
if (!sessionSecret) {
throw new Error('The SESSION_SECRET environment varia... | 1 |
AlexanderMalkov15052021/file-generator | 76dc6d5 | src/modules/addZone/addInnerStream.ts | TypeScript | www.github.com/AlexanderMalkov15052021/file-generator/tree/main/src/modules/addZone/addInnerStream.ts | https://raw.githubusercontent.com/AlexanderMalkov15052021/file-generator/76dc6d5/src/modules/addZone/addInnerStream.ts | AlexanderMalkov15052021/file-generator 76dc6d5 src/modules/addZone/addInnerStream.ts | true | 200 | 1,651 | import { MooeDoc } from "@/types";
import { getFirstRowPoints } from "../modifyDoc/getFirstRowPoints";
import { addPallets } from "../modifyDoc/addPallets";
import { addStartRoadPoints } from "../modifyDoc/addStartRoadPoints";
import { addEndRoadPoints } from "../modifyDoc/addEndRoadPoints";
import { addStartToEndRoad ... | 4 |
causa-io/workspace-module-typescript | daf06a3 | src/code-generation/ts-decorators-renderer.ts | TypeScript | www.github.com/causa-io/workspace-module-typescript/tree/main/src/code-generation/ts-decorators-renderer.ts | https://raw.githubusercontent.com/causa-io/workspace-module-typescript/daf06a3/src/code-generation/ts-decorators-renderer.ts | causa-io/workspace-module-typescript daf06a3 src/code-generation/ts-decorators-renderer.ts | true | 200 | 5,650 | import type {
CausaObjectAttributes,
CausaPropertyAttributes,
} from '@causa/workspace-core';
import {
ClassProperty,
ClassType,
Name,
type OptionValues,
type RenderContext,
type Sourcelike,
TargetLanguage,
TypeScriptRenderer,
tsFlowOptions,
} from 'quicktype-core';
import type { TypeScriptDecorat... | 6 |
rahmlad-aramide/wapp | 53e623c | app/lib/utils.ts | TypeScript | www.github.com/rahmlad-aramide/wapp/tree/main/app/lib/utils.ts | https://raw.githubusercontent.com/rahmlad-aramide/wapp/53e623c/app/lib/utils.ts | rahmlad-aramide/wapp 53e623c app/lib/utils.ts | true | 200 | 11,745 | export const formatDateToLocal = (
dateStr: string | number,
locale: string = 'en-US',
) => {
const date = new Date(dateStr);
const options: Intl.DateTimeFormatOptions = {
dateStyle: 'full',
};
const formatter = new Intl.DateTimeFormat(locale, options);
return formatter.format(date);
};
export const ... | 7 |
livechat/lc-sdk-js | 07dfa4e | src/agent/rtm.ts | TypeScript | www.github.com/livechat/lc-sdk-js/tree/main/src/agent/rtm.ts | https://raw.githubusercontent.com/livechat/lc-sdk-js/07dfa4e/src/agent/rtm.ts | livechat/lc-sdk-js 07dfa4e src/agent/rtm.ts | true | 200 | 17,120 | import { RTMAPI } from "../internal";
import { TokenGetter, TokenType } from "../authorization";
import type {
AgentForTransfer,
ChangePushNotificationsRequest,
CreateCustomerResponse,
CustomerParameters,
EmptyResponse,
GetChatResponse,
GetCustomerResponse,
ListArchivesParameters,
ListArchivesResponse... | 2 |
romanrios/spacewars | 87a249d | src/UI/GameOver.ts | TypeScript | www.github.com/romanrios/spacewars/tree/main/src/UI/GameOver.ts | https://raw.githubusercontent.com/romanrios/spacewars/87a249d/src/UI/GameOver.ts | romanrios/spacewars 87a249d src/UI/GameOver.ts | true | 200 | 4,896 | import { Container, BitmapText } from "pixi.js";
import { Manager } from "../utils/Manager";
import { agregarPuntaje } from "../utils/firebaseConfig";
import { Scene1 } from "../scenes/Scene1";
import { Button } from "./Button";
import { SceneTitle } from "../scenes/SceneTitle";
const TextInput = require('pixi-text-in... | 3 |
dinify/workspace | 75c78e6 | packages/waiterboard/src/features/common/epics.ts | TypeScript | www.github.com/dinify/workspace/tree/main/packages/waiterboard/src/features/common/epics.ts | https://raw.githubusercontent.com/dinify/workspace/75c78e6/packages/waiterboard/src/features/common/epics.ts | dinify/workspace 75c78e6 packages/waiterboard/src/features/common/epics.ts | true | 200 | 1,292 | import { of, from } from 'rxjs';
import { mergeMap, map, catchError } from 'rxjs/operators';
import { ofType, Epic } from 'redux-observable';
import * as API from '@dinify/common/src/api/v2/restaurant';
import { handleEpicAPIError } from '@dinify/common/src/lib/FN';
import * as commonTypes from './types';
declare glob... | 0 |
PrashantGani/TaskList-Angular | 3f7f928 | src/app/task-list/task-list.component.ts | TypeScript | www.github.com/PrashantGani/TaskList-Angular/tree/main/src/app/task-list/task-list.component.ts | https://raw.githubusercontent.com/PrashantGani/TaskList-Angular/3f7f928/src/app/task-list/task-list.component.ts | PrashantGani/TaskList-Angular 3f7f928 src/app/task-list/task-list.component.ts | true | 200 | 799 | import { Component } from '@angular/core';
@Component({
selector: 'app-task-list',
templateUrl: './task-list.component.html',
styleUrls: ['./task-list.component.css']
})
export class TaskListComponent {
tasks :Task[] =[
new Task("Go to gym"),
new Task("Go to office"),
new Task("Go to shop"),
... | 1 |
Servond/JCWDOL01301-MP08 | ac217ed | apps/api/src/types/express/index.d.ts | TypeScript | www.github.com/Servond/JCWDOL01301-MP08/tree/main/apps/api/src/types/express/index.d.ts | https://raw.githubusercontent.com/Servond/JCWDOL01301-MP08/ac217ed/apps/api/src/types/express/index.d.ts | Servond/JCWDOL01301-MP08 ac217ed apps/api/src/types/express/index.d.ts | true | 200 | 465 | export type User = {
id?: number;
username: string;
email: string;
password: string;
isVerified: Boolean;
role: string;
};
export type UserPrisma = {
username: string;
password: string;
email: string;
roleID: number;
isVerified: boolean;
referralCodeID: string;
claimedCodeID: string;
point:... | 4 |
Rajendra28779/Racky_new_project | 5495e99 | src/app/application/Services/cpdaction-report-service.service.ts | TypeScript | www.github.com/Rajendra28779/Racky_new_project/tree/main/src/app/application/Services/cpdaction-report-service.service.ts | https://raw.githubusercontent.com/Rajendra28779/Racky_new_project/5495e99/src/app/application/Services/cpdaction-report-service.service.ts | Rajendra28779/Racky_new_project 5495e99 src/app/application/Services/cpdaction-report-service.service.ts | true | 200 | 908 | import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { getcpdactionreport } from 'src/app/services/api-config';
import { JwtService } from 'src/app/services/jwt.service';
@Injectable({
providedIn: 'root'
})
export class CPDActionReportServiceS... | 3 |
deafSpy/E-Learning-Mock-App | c62f919 | client/src/api/middlewares/protected-interceptor.ts | TypeScript | www.github.com/deafSpy/E-Learning-Mock-App/tree/main/client/src/api/middlewares/protected-interceptor.ts | https://raw.githubusercontent.com/deafSpy/E-Learning-Mock-App/c62f919/client/src/api/middlewares/protected-interceptor.ts | deafSpy/E-Learning-Mock-App c62f919 client/src/api/middlewares/protected-interceptor.ts | true | 200 | 2,862 | import axios, { AxiosInstance, AxiosResponse, AxiosError } from "axios";
import CustomApiError from "../../utils/CustomApiError";
import CONFIG_KEYS from "../../config";
import { refreshTokenApi } from "../endpoints/auth/token-refresh";
// console.log(CONFIG_KEYS)
const api: AxiosInstance = axios.create({
baseURL: C... | 6 |
Eytyy/eytyy23 | 321274f | src/sanity/schema/blocks/content.ts | TypeScript | www.github.com/Eytyy/eytyy23/tree/main/src/sanity/schema/blocks/content.ts | https://raw.githubusercontent.com/Eytyy/eytyy23/321274f/src/sanity/schema/blocks/content.ts | Eytyy/eytyy23 321274f src/sanity/schema/blocks/content.ts | true | 200 | 1,463 | import BigText from '@/sanity/components/big-text';
import H2H1 from '@/sanity/components/h2h1';
import { defineType } from 'sanity';
export const linksAnnotation = [
{
title: 'External Link',
name: 'link',
type: 'object',
fields: [
{ title: 'URL', name: 'href', type: 'url' },
{
t... | 7 |
bmancini55/building-lightning-advanced | 28fd23c | exercises/swap-out/Wallet.ts | TypeScript | www.github.com/bmancini55/building-lightning-advanced/tree/main/exercises/swap-out/Wallet.ts | https://raw.githubusercontent.com/bmancini55/building-lightning-advanced/28fd23c/exercises/swap-out/Wallet.ts | bmancini55/building-lightning-advanced 28fd23c exercises/swap-out/Wallet.ts | true | 200 | 7,520 | import { ILogger } from "@node-lightning/logger";
import crypto from "crypto";
import { StreamReader } from "@node-lightning/bufio";
import * as Bitcoin from "@node-lightning/bitcoin";
import { TxOut } from "@node-lightning/bitcoin";
import * as Bitcoind from "@node-lightning/bitcoind";
import { BlockMonitor } from "./... | 2 |
iyefreedy/greenhub | d538e6e | frontend/hooks/useFetchProduct.ts | TypeScript | www.github.com/iyefreedy/greenhub/tree/main/frontend/hooks/useFetchProduct.ts | https://raw.githubusercontent.com/iyefreedy/greenhub/d538e6e/frontend/hooks/useFetchProduct.ts | iyefreedy/greenhub d538e6e frontend/hooks/useFetchProduct.ts | true | 200 | 680 | import { Product } from "@/types";
import API from "@/utils/API";
import { useEffect, useState } from "react";
export const useFetchProduct = (id: number) => {
const [product, setProduct] = useState<Product | undefined>(undefined);
const [loading, setLoading] = useState(false);
useEffect(() => {
const fetch... | 0 |
boonwattana/api | 6557296 | api/sar-activities/sar-activities.module.ts | TypeScript | www.github.com/boonwattana/api/tree/main/api/sar-activities/sar-activities.module.ts | https://raw.githubusercontent.com/boonwattana/api/6557296/api/sar-activities/sar-activities.module.ts | boonwattana/api 6557296 api/sar-activities/sar-activities.module.ts | true | 200 | 847 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DropdownService } from 'src/core/shared/services/dropdown.service';
import { VwTeacherDropdown } from 'src/api/teacher/teacher.entity';
import { SarActivitiesController } from './sar-activities.controller';
import { SarAc... | 3 |
Figaarillo/greenbin-back | 5d327fb | src/coupon-transaction/domain/errors/coupon-transaction-not-found.error.ts | TypeScript | www.github.com/Figaarillo/greenbin-back/tree/main/src/coupon-transaction/domain/errors/coupon-transaction-not-found.error.ts | https://raw.githubusercontent.com/Figaarillo/greenbin-back/5d327fb/src/coupon-transaction/domain/errors/coupon-transaction-not-found.error.ts | Figaarillo/greenbin-back 5d327fb src/coupon-transaction/domain/errors/coupon-transaction-not-found.error.ts | true | 200 | 383 | class ErrorCouponTransactionNotFound extends Error {
constructor(id?: string) {
const message =
id != null
? `Cannot find coupon transaction with id: ${id}`
: 'Cannot find any coupon transaction when try to list all transactions'
super(message)
this.name = ErrorCouponTransactionNotF... | 7 |
MauaAP/Maua_AP_Back_End | 3671922 | src/modules/report/create_professor_report_by_token/app/create_professor_report_presenter.ts | TypeScript | www.github.com/MauaAP/Maua_AP_Back_End/tree/main/src/modules/report/create_professor_report_by_token/app/create_professor_report_presenter.ts | https://raw.githubusercontent.com/MauaAP/Maua_AP_Back_End/3671922/src/modules/report/create_professor_report_by_token/app/create_professor_report_presenter.ts | MauaAP/Maua_AP_Back_End 3671922 src/modules/report/create_professor_report_by_token/app/create_professor_report_presenter.ts | true | 200 | 1,226 | import express, { Request, Response } from "express"
import { authenticateToken } from "../../../../shared/middlewares/jwt_middleware";
import { CreateProfessorReportController } from "./create_professor_report_controller";
import { CreateProfessorReportUsecase } from "./create_professor_report_usecase";
import { UserR... | 6 |
betty1998/WineAura-ng15 | eb4f45b | src/app/user/checkout/cart/order-summary/order-summary.component.ts | TypeScript | www.github.com/betty1998/WineAura-ng15/tree/main/src/app/user/checkout/cart/order-summary/order-summary.component.ts | https://raw.githubusercontent.com/betty1998/WineAura-ng15/eb4f45b/src/app/user/checkout/cart/order-summary/order-summary.component.ts | betty1998/WineAura-ng15 eb4f45b src/app/user/checkout/cart/order-summary/order-summary.component.ts | true | 200 | 1,406 | import {Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output} from '@angular/core';
import {CartProduct} from "../../../../shared/model/CartProduct";
import {Order} from "../../../../shared/model/Order";
import {OrderService} from "../../../../shared/service/order.service";
@Component({
selector: 'a... | 0 |
DanyaChupin/mePhoto | 2f380b1 | src/components/gallery/useAllPhoto.ts | TypeScript | www.github.com/DanyaChupin/mePhoto/tree/main/src/components/gallery/useAllPhoto.ts | https://raw.githubusercontent.com/DanyaChupin/mePhoto/2f380b1/src/components/gallery/useAllPhoto.ts | DanyaChupin/mePhoto 2f380b1 src/components/gallery/useAllPhoto.ts | true | 200 | 543 | import { useMemo } from 'react'
import { useQuery } from '@tanstack/react-query'
import { PhotoService } from '../../services/photo.services'
import { useParams } from 'react-router-dom'
export const useAllPhoto = () => {
const { page } = useParams()
const pageNumber = String(page)
const queryData = useQuery(
[... | 2 |
rzvezdopadov/miss-you_server_old | 9dc2efa | microservices/all/auth/iauth.ts | TypeScript | www.github.com/rzvezdopadov/miss-you_server_old/tree/main/microservices/all/auth/iauth.ts | https://raw.githubusercontent.com/rzvezdopadov/miss-you_server_old/9dc2efa/microservices/all/auth/iauth.ts | rzvezdopadov/miss-you_server_old 9dc2efa microservices/all/auth/iauth.ts | true | 200 | 997 | import { IAdminBanned } from "../../admin/profile/iprofile";
import { IProfile, ICoordinates } from "../../user/profile/iprofile";
export interface IJWT {
timecode: number;
token: string;
ipaddress: string;
browser: string;
}
export interface IProfileRegistration extends IProfile {
email: string;
password: stri... | 3 |
euviniciuss/ubs-vac | 1143261 | src/presentation/modules/vaccination/components/Card/Card.styled.ts | TypeScript | www.github.com/euviniciuss/ubs-vac/tree/main/src/presentation/modules/vaccination/components/Card/Card.styled.ts | https://raw.githubusercontent.com/euviniciuss/ubs-vac/1143261/src/presentation/modules/vaccination/components/Card/Card.styled.ts | euviniciuss/ubs-vac 1143261 src/presentation/modules/vaccination/components/Card/Card.styled.ts | true | 200 | 764 | 'use client'
import { theme } from '@/presentation/external/styled'
import { styled } from 'styled-components'
export const Container = styled.div`
width: 100%;
padding: 2.9rem 2.5rem;
background-color: ${theme.colors.blue50};
border-radius: 2.5rem;
display: flex;
gap: 2.6rem;
`
export const Info = styl... | 6 |
josonyang/atlassian-frontend-mirror | dc6c988 | design-system/icon/utility/migration/success--editor-success.d.ts | TypeScript | www.github.com/josonyang/atlassian-frontend-mirror/tree/main/design-system/icon/utility/migration/success--editor-success.d.ts | https://raw.githubusercontent.com/josonyang/atlassian-frontend-mirror/dc6c988/design-system/icon/utility/migration/success--editor-success.d.ts | josonyang/atlassian-frontend-mirror dc6c988 design-system/icon/utility/migration/success--editor-success.d.ts | true | 200 | 511 | /**
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
* @codegen <<SignedSource::8f4f1813b6dc7e419a9dbe1b3e15226b>>
* @codegenCommand yarn build:icon-glyphs
*/
import React from 'react';
import type { NewUtilityIconProps } from '@atlaskit/icon/base-new';
import Icon from '@atlaskit/icon... | 7 |
hasnapulipra/hospital-management-system-angular | 3b4212d | src/app/patient/patient-routing.module.ts | TypeScript | www.github.com/hasnapulipra/hospital-management-system-angular/tree/main/src/app/patient/patient-routing.module.ts | https://raw.githubusercontent.com/hasnapulipra/hospital-management-system-angular/3b4212d/src/app/patient/patient-routing.module.ts | hasnapulipra/hospital-management-system-angular 3b4212d src/app/patient/patient-routing.module.ts | true | 200 | 1,631 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppoinmentStatusComponent } from './appoinment-status/appoinment-status.component';
import { BookAppoinmentComponent } from './book-appoinment/book-appoinment.component';
import { PatientDashboardComponent } from ... | 2 |
queen-raae/datainthewild.fm | 1f88345 | src/env.d.ts | TypeScript | www.github.com/queen-raae/datainthewild.fm/tree/main/src/env.d.ts | https://raw.githubusercontent.com/queen-raae/datainthewild.fm/1f88345/src/env.d.ts | queen-raae/datainthewild.fm 1f88345 src/env.d.ts | true | 200 | 300 | /// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
interface ImportMetaEnv {
readonly TRANSISTOR_API_KEY: string;
readonly TRANSISTOR_SHOW_ID: string;
readonly PUBLIC_OUTSETA_EMAIL_LIST_URL?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
| 0 |
seoul-milk-team3/seoulmilk-frontend | f952868 | packages/utils/src/hooks/useMediaQuery.ts | TypeScript | www.github.com/seoul-milk-team3/seoulmilk-frontend/tree/main/packages/utils/src/hooks/useMediaQuery.ts | https://raw.githubusercontent.com/seoul-milk-team3/seoulmilk-frontend/f952868/packages/utils/src/hooks/useMediaQuery.ts | seoul-milk-team3/seoulmilk-frontend f952868 packages/utils/src/hooks/useMediaQuery.ts | true | 200 | 514 | import { useState, useEffect } from "react";
const useMediaQuery = (query: string): boolean => {
const [matches, setMatches] = useState(false);
useEffect(() => {
const mediaQuery = window.matchMedia(query);
setMatches(mediaQuery.matches);
const handler = (e: MediaQueryListEvent) => setMatches(e.match... | 6 |
nahyunee96/nh-app-cp | 15baaa9 | src/hooks/head.ts | TypeScript | www.github.com/nahyunee96/nh-app-cp/tree/main/src/hooks/head.ts | https://raw.githubusercontent.com/nahyunee96/nh-app-cp/15baaa9/src/hooks/head.ts | nahyunee96/nh-app-cp 15baaa9 src/hooks/head.ts | true | 200 | 2,210 | import { useEffect, useState } from 'react'
import styles from '../styles/main.module.scss'
import gsap from 'gsap'
const useHeadScroll = (wrapperRef: React.RefObject<HTMLDivElement>) => {
const [isHeaderVisible, setHeaderVisible] = useState<boolean>(false)
const handleScroll = () => {
const section02 = docum... | 7 |
AndersonKV/backend_api_rest_app_jobs | 30eac23 | src/user/controllers/user.update.controller.ts | TypeScript | www.github.com/AndersonKV/backend_api_rest_app_jobs/tree/main/src/user/controllers/user.update.controller.ts | https://raw.githubusercontent.com/AndersonKV/backend_api_rest_app_jobs/30eac23/src/user/controllers/user.update.controller.ts | AndersonKV/backend_api_rest_app_jobs 30eac23 src/user/controllers/user.update.controller.ts | true | 200 | 522 | import { Controller, Request, Body, Patch, HttpCode } from '@nestjs/common';
import { UpdateUserDto } from '../dto/update-user.dto';
import { UserUpdateService } from '../services/user.update.service';
@Controller('user')
export class UserUpdateController {
constructor(private readonly userUpdateService: UserUpdat... | 3 |
Japhetism/test_render-babs | c1ffbb8 | src/mockresponses/trackOrders.ts | TypeScript | www.github.com/Japhetism/test_render-babs/tree/main/src/mockresponses/trackOrders.ts | https://raw.githubusercontent.com/Japhetism/test_render-babs/c1ffbb8/src/mockresponses/trackOrders.ts | Japhetism/test_render-babs c1ffbb8 src/mockresponses/trackOrders.ts | true | 200 | 2,224 | export const mockVendors = [
{ logo: "text.jpeg", name: "Babs Enterprise", address: "House 114, Oko Awo", email: "babs@ent.com.ng", geolocation: "03,12" },
{ logo: "text.jpeg", name: "Babs Ventures", address: "Plot 1, Ayodele Street", email: "babsventures@gmail.com", geolocation: "10,40" },
{ logo: "text.jp... | 0 |
JayJayDee/MBP-PoC | 33e4e36 | src/lib/meal-category-set.ts | TypeScript | www.github.com/JayJayDee/MBP-PoC/tree/main/src/lib/meal-category-set.ts | https://raw.githubusercontent.com/JayJayDee/MBP-PoC/33e4e36/src/lib/meal-category-set.ts | JayJayDee/MBP-PoC 33e4e36 src/lib/meal-category-set.ts | true | 200 | 1,064 | import { Region } from './common-types';
import { IMealCategoryVO, MealCategory } from './meal-category';
export interface IMealCategorySetVO {
readonly id: string;
readonly name: string;
readonly description: string;
readonly mealCategories: IMealCategoryVO[];
readonly defaultRegion: Region;
}
export class... | 6 |
vikrant5432/Decentralized-To-Do-Application-with-AI-Agent-Integration | adc2408 | backend-server/src/ai-suggestion/service/ai-suggestion.service.ts | TypeScript | www.github.com/vikrant5432/Decentralized-To-Do-Application-with-AI-Agent-Integration/tree/main/backend-server/src/ai-suggestion/service/ai-suggestion.service.ts | https://raw.githubusercontent.com/vikrant5432/Decentralized-To-Do-Application-with-AI-Agent-Integration/adc2408/backend-server/src/ai-suggestion/service/ai-suggestion.service.ts | vikrant5432/Decentralized-To-Do-Application-with-AI-Agent-Integration adc2408 backend-server/src/ai-suggestion/service/ai-suggestion.service.ts | true | 200 | 3,125 | import { Injectable, Logger } from '@nestjs/common';
import { Task, TaskStatus, User } from '@prisma/client';
import { CohereClient } from 'cohere-ai';
@Injectable()
export class AISuggestionService {
private cohere: CohereClient;
private readonly logger = new Logger(AISuggestionService.name);
constructor() {
... | 2 |
maitrungduc1410/vue-pixi-wrapper | 382034c | src/components/PApplication.ts | TypeScript | www.github.com/maitrungduc1410/vue-pixi-wrapper/tree/main/src/components/PApplication.ts | https://raw.githubusercontent.com/maitrungduc1410/vue-pixi-wrapper/382034c/src/components/PApplication.ts | maitrungduc1410/vue-pixi-wrapper 382034c src/components/PApplication.ts | true | 200 | 4,427 | import { eventHandlers, READY_EVENT } from '../constants'
import Vue, { CreateElement, PropType, VNode } from 'vue'
export interface IApplication {
instance: PIXI.Application | null;
EventBus: Vue;
isReady: boolean;
}
const PApplication = Vue.extend({
name: 'p-application',
props: {
canvasId: {
ty... | 7 |
GrosduboisBen/Ekasan | c8345ab | front-web/src/utils/chatUtils.ts | TypeScript | www.github.com/GrosduboisBen/Ekasan/tree/main/front-web/src/utils/chatUtils.ts | https://raw.githubusercontent.com/GrosduboisBen/Ekasan/c8345ab/front-web/src/utils/chatUtils.ts | GrosduboisBen/Ekasan c8345ab front-web/src/utils/chatUtils.ts | true | 200 | 2,027 | import { random } from 'lodash'
import chatBotAvatar from '@images/ekasan-logo.svg'
export interface ChatSession {
chat: Chat
name: string
isActive: boolean
}
export enum E_ChatSettingsOption {
ASSISTANT = 'Assistants',
STORE = 'Vector store associé',
CREATE = 'Ajouter un chat',
DELETE = 'Supprimer le c... | 0 |
Udhaykrishn/flashcard-app | 066970c | backend/src/auth/auth.module.ts | TypeScript | www.github.com/Udhaykrishn/flashcard-app/tree/main/backend/src/auth/auth.module.ts | https://raw.githubusercontent.com/Udhaykrishn/flashcard-app/066970c/backend/src/auth/auth.module.ts | Udhaykrishn/flashcard-app 066970c backend/src/auth/auth.module.ts | true | 200 | 543 | import { Module } from "@nestjs/common";
import { JwtModule } from "@nestjs/jwt";
import { PassportModule } from "@nestjs/passport";
import { AuthService } from "./auth.service";
import { AuthController } from "./auth.controller";
import { JwtStrategy } from "./stratergy";
@Module({
imports: [
PassportModul... | 6 |
davidsr999/Weather-App | 441cdcd | src/app/components/search/search.component.ts | TypeScript | www.github.com/davidsr999/Weather-App/tree/main/src/app/components/search/search.component.ts | https://raw.githubusercontent.com/davidsr999/Weather-App/441cdcd/src/app/components/search/search.component.ts | davidsr999/Weather-App 441cdcd src/app/components/search/search.component.ts | true | 200 | 819 | import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { FormControl } from '@angular/forms';
import { debounceTime, filter, distinctUntilChanged, map, tap } from 'rxjs';
@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.css']
})... | 2 |
brunoluvizotto/luvimedical-api-public | b28eb35 | src/patients/patients.service.ts | TypeScript | www.github.com/brunoluvizotto/luvimedical-api-public/tree/main/src/patients/patients.service.ts | https://raw.githubusercontent.com/brunoluvizotto/luvimedical-api-public/b28eb35/src/patients/patients.service.ts | brunoluvizotto/luvimedical-api-public b28eb35 src/patients/patients.service.ts | true | 200 | 1,213 | import { Injectable } from '@nestjs/common'
import { Prisma } from '@prisma/client'
import { PrismaService } from '../prisma/prisma.service'
const include = {
address: true,
records: true,
appointments: true,
}
@Injectable()
export class PatientsService {
constructor(private prisma: PrismaService) {}
async... | 7 |
DennyTim/swapi-forum | 17dfac8 | src/app/utils/icon/icon.component.spec.ts | TypeScript | www.github.com/DennyTim/swapi-forum/tree/main/src/app/utils/icon/icon.component.spec.ts | https://raw.githubusercontent.com/DennyTim/swapi-forum/17dfac8/src/app/utils/icon/icon.component.spec.ts | DennyTim/swapi-forum 17dfac8 src/app/utils/icon/icon.component.spec.ts | true | 200 | 589 | import {
ComponentFixture,
TestBed
} from "@angular/core/testing";
import { IconComponent } from "./icon.component";
describe("IconComponent", () => {
let component: IconComponent;
let fixture: ComponentFixture<IconComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declar... | 3 |
vescobars/parcial1web | 3debe4e | src/cafe-tienda/cafe-tienda.module.ts | TypeScript | www.github.com/vescobars/parcial1web/tree/main/src/cafe-tienda/cafe-tienda.module.ts | https://raw.githubusercontent.com/vescobars/parcial1web/3debe4e/src/cafe-tienda/cafe-tienda.module.ts | vescobars/parcial1web 3debe4e src/cafe-tienda/cafe-tienda.module.ts | true | 200 | 429 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CafeEntity } from '../cafe/cafe.entity';
import { TiendaEntity } from '../tienda/tienda.entity';
import { CafeTiendaService } from './cafe-tienda.service';
@Module({
imports: [TypeOrmModule.forFeature([CafeEntity]),Typ... | 0 |
harsh854/VMS | 5dca682 | backend/libs/user/src/queries/handlers/getMaxSleepoversPerResident.handler.ts | TypeScript | www.github.com/harsh854/VMS/tree/main/backend/libs/user/src/queries/handlers/getMaxSleepoversPerResident.handler.ts | https://raw.githubusercontent.com/harsh854/VMS/5dca682/backend/libs/user/src/queries/handlers/getMaxSleepoversPerResident.handler.ts | harsh854/VMS 5dca682 backend/libs/user/src/queries/handlers/getMaxSleepoversPerResident.handler.ts | true | 200 | 718 | import { QueryHandler, IQueryHandler } from "@nestjs/cqrs";
import { GetMaxSleepoversPerResidentQuery } from "../impl/getMaxSleepoversPerResident.query";
import { Model } from "mongoose";
import { InjectModel } from "@nestjs/mongoose";
import { User, UserDocument } from "../../schema/user.schema";
@QueryHandler(GetMax... | 6 |
dereekb/dbx-components | 381acd3 | packages/firebase-server/src/lib/nest/function/v1/event.ts | TypeScript | www.github.com/dereekb/dbx-components/tree/main/packages/firebase-server/src/lib/nest/function/v1/event.ts | https://raw.githubusercontent.com/dereekb/dbx-components/381acd3/packages/firebase-server/src/lib/nest/function/v1/event.ts | dereekb/dbx-components 381acd3 packages/firebase-server/src/lib/nest/function/v1/event.ts | true | 200 | 4,112 | import { type PromiseOrValue } from '@dereekb/util';
import type * as functions from 'firebase-functions';
import { type EventContext } from 'firebase-functions';
import { type MakeNestContext, type NestApplicationFunctionFactory, type NestApplicationPromiseGetter } from '../../nest.provider';
import { type NestApplica... | 2 |
mgomesdev/tanstack-query-react-query-playground | cbd0e08 | src/app/react-basic/hooks/usePosts.ts | TypeScript | www.github.com/mgomesdev/tanstack-query-react-query-playground/tree/main/src/app/react-basic/hooks/usePosts.ts | https://raw.githubusercontent.com/mgomesdev/tanstack-query-react-query-playground/cbd0e08/src/app/react-basic/hooks/usePosts.ts | mgomesdev/tanstack-query-react-query-playground cbd0e08 src/app/react-basic/hooks/usePosts.ts | true | 200 | 389 | import { useQuery } from "@tanstack/react-query";
import PostSchema from "../schemas/PostSchema";
function usePosts() {
return useQuery({
queryKey: ["posts"],
queryFn: async (): Promise<PostSchema[]> => {
const response = await fetch("https://jsonplaceholder.typicode.com/posts");
retur... | 7 |
samuelbraga/amigo-secreto | 1b9af37 | backend/src/domain/user/services/CreateUserService.ts | TypeScript | www.github.com/samuelbraga/amigo-secreto/tree/main/backend/src/domain/user/services/CreateUserService.ts | https://raw.githubusercontent.com/samuelbraga/amigo-secreto/1b9af37/backend/src/domain/user/services/CreateUserService.ts | samuelbraga/amigo-secreto 1b9af37 backend/src/domain/user/services/CreateUserService.ts | true | 200 | 1,667 | import HttpStatus from "http-status-codes";
import { inject, injectable } from "tsyringe";
import { HASH_PROVIDER, USER_REPOSITORY } from "@constants/application";
import * as messages from "@constants/messages";
import { User } from "@prisma/client";
import ExceptionBase from "@shared/exceptions/ExceptionBase";
impo... | 3 |
JorgeLuisEspinozaDiaz/BACKEND-NOTIFICACION | b206019 | src/lambda.ts | TypeScript | www.github.com/JorgeLuisEspinozaDiaz/BACKEND-NOTIFICACION/tree/main/src/lambda.ts | https://raw.githubusercontent.com/JorgeLuisEspinozaDiaz/BACKEND-NOTIFICACION/b206019/src/lambda.ts | JorgeLuisEspinozaDiaz/BACKEND-NOTIFICACION b206019 src/lambda.ts | true | 200 | 1,057 | import { configure as serverlessExpress } from '@vendia/serverless-express';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
let cachedServer;
export const handler = async (event, context) => {
if (!cachedServer)... | 0 |
bifrost-io/kusama-staking-squid | de8164c | src/processor.ts | TypeScript | www.github.com/bifrost-io/kusama-staking-squid/tree/main/src/processor.ts | https://raw.githubusercontent.com/bifrost-io/kusama-staking-squid/de8164c/src/processor.ts | bifrost-io/kusama-staking-squid de8164c src/processor.ts | true | 200 | 2,305 | import config from './config'
import { SubstrateProcessor } from '@subsquid/substrate-processor'
import { DEFAULT_BATCH_SIZE, DEFAULT_PORT } from './common/consts'
import * as modules from './mappings'
import { TypeormDatabase } from '@subsquid/typeorm-store'
const database = new TypeormDatabase()
const processor = ne... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.