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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
M3taman/aidiligencepro | bf99b34 | src/features/competitive-intelligence/hooks/useCompetitiveIntelligence.ts | TypeScript | www.github.com/M3taman/aidiligencepro/tree/main/src/features/competitive-intelligence/hooks/useCompetitiveIntelligence.ts | https://raw.githubusercontent.com/M3taman/aidiligencepro/bf99b34/src/features/competitive-intelligence/hooks/useCompetitiveIntelligence.ts | M3taman/aidiligencepro bf99b34 src/features/competitive-intelligence/hooks/useCompetitiveIntelligence.ts | true | 200 | 977 | import { useState, useEffect } from 'react';
import { CompetitiveAnalysisData, CompetitiveAnalysisProps } from '../types';
import { fetchCompetitiveAnalysis } from '../api';
export function useCompetitiveIntelligence({
companyId,
timeRange,
peerGroup
}: CompetitiveAnalysisProps) {
const [data, setData] = useSt... | 1 |
denis-music/PureLogicCleaner | 0585aef | UI/cleanerui/src/app/subscription/subscription.service.ts | TypeScript | www.github.com/denis-music/PureLogicCleaner/tree/main/UI/cleanerui/src/app/subscription/subscription.service.ts | https://raw.githubusercontent.com/denis-music/PureLogicCleaner/0585aef/UI/cleanerui/src/app/subscription/subscription.service.ts | denis-music/PureLogicCleaner 0585aef UI/cleanerui/src/app/subscription/subscription.service.ts | true | 200 | 949 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { Subscription } from '../model/subs.model';
import { User } from '../model/users.model';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: ... | 7 |
show981111/solviolin_backend | 0e28c10 | src/ledger/ledger.service.ts | TypeScript | www.github.com/show981111/solviolin_backend/tree/main/src/ledger/ledger.service.ts | https://raw.githubusercontent.com/show981111/solviolin_backend/0e28c10/src/ledger/ledger.service.ts | show981111/solviolin_backend 0e28c10 src/ledger/ledger.service.ts | true | 200 | 1,631 | import { Injectable } from '@nestjs/common';
import { Ledger } from 'src/entities/ledger.entity';
import { UserService } from 'src/user/user.service';
import { DeleteResult, InsertResult, UpdateResult } from 'typeorm';
import { CreateLedgerDto } from './dto/create-ledger.dto';
import { SearchLedgerItemDto } from './dto... | 0 |
tosp-memo-life-task/memo-life-task | d09da29 | apps/api/src/app/modules/authentication/services/sign-in/sign-in.service.ts | TypeScript | www.github.com/tosp-memo-life-task/memo-life-task/tree/main/apps/api/src/app/modules/authentication/services/sign-in/sign-in.service.ts | https://raw.githubusercontent.com/tosp-memo-life-task/memo-life-task/d09da29/apps/api/src/app/modules/authentication/services/sign-in/sign-in.service.ts | tosp-memo-life-task/memo-life-task d09da29 apps/api/src/app/modules/authentication/services/sign-in/sign-in.service.ts | true | 200 | 1,544 | import { Injectable } from '@nestjs/common';
import { PasswordService } from '../password/password.service';
import { TokenService } from '../token/token.service';
import { UserRepository } from '../../../../database/repositories/user.repository';
import { SignInRequestBody, SignInResponse } from '@memo-life-task/dt... | 3 |
aybekkun/react-sozlik-ts | 840fa44 | src/redux/search/types.ts | TypeScript | www.github.com/aybekkun/react-sozlik-ts/tree/main/src/redux/search/types.ts | https://raw.githubusercontent.com/aybekkun/react-sozlik-ts/840fa44/src/redux/search/types.ts | aybekkun/react-sozlik-ts 840fa44 src/redux/search/types.ts | true | 200 | 822 | export interface ISearchState extends ISearch {
isLoading: boolean;
currentPage: number;
count: number;
total: number;
searchValue: string;
searchListValue:string;
searchPopularValue:string;
searchLetter:string;
isWordsListLoading: boolean;
wordsList: ISearchData[];
topSearch: ISearchData[];
top... | 2 |
MegaichiDimir/Megaichi-Portfolio | a19510a | src/libs/microcms.ts | TypeScript | www.github.com/MegaichiDimir/Megaichi-Portfolio/tree/main/src/libs/microcms.ts | https://raw.githubusercontent.com/MegaichiDimir/Megaichi-Portfolio/a19510a/src/libs/microcms.ts | MegaichiDimir/Megaichi-Portfolio a19510a src/libs/microcms.ts | true | 200 | 642 | import "server-only";
if (!process.env.MICROCMS_SERVICE_DOMAIN) {
throw new Error("MICROCMS_SERVICE_DOMAIN is required");
}
if (!process.env.MICROCMS_API_KEY) {
throw new Error("MICROCMS_API_KEY is required");
}
const url = `https://${process.env.MICROCMS_SERVICE_DOMAIN}.microcms.io/api/v1/`
export const getData ... | 5 |
AlexanderKalinini/PomodoroToDo | 52c12bc | Project/Store/LocalStore/localStorage.ts | TypeScript | www.github.com/AlexanderKalinini/PomodoroToDo/tree/main/Project/Store/LocalStore/localStorage.ts | https://raw.githubusercontent.com/AlexanderKalinini/PomodoroToDo/52c12bc/Project/Store/LocalStore/localStorage.ts | AlexanderKalinini/PomodoroToDo 52c12bc Project/Store/LocalStore/localStorage.ts | true | 200 | 571 | import { ITasks } from "../Redux-Store/tasksSlice";
export function saveToLocalStorage(state: { tasks: ITasks }) {
if (typeof window === "undefined") return;
try {
const json = JSON.stringify(state);
localStorage.setItem("reduxStore", json);
} catch (e) {
console.log(e);
}
}
export function loadFr... | 1 |
pastoapp/astroid-api | 6240790 | src/auth/auth.module.ts | TypeScript | www.github.com/pastoapp/astroid-api/tree/main/src/auth/auth.module.ts | https://raw.githubusercontent.com/pastoapp/astroid-api/6240790/src/auth/auth.module.ts | pastoapp/astroid-api 6240790 src/auth/auth.module.ts | true | 200 | 858 | import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { DatabasesModule } from 'src/databases/databases.module';
import { OrbitdbModule } from 'src/orbitdb/orbitdb.module';
import { UsersModule } from 'src/users/users.module';
import { LocalStrategy } from './local.strategy';
imp... | 7 |
haruBlank00/blank-next-blog | aaedead | lib/date-formatter.ts | TypeScript | www.github.com/haruBlank00/blank-next-blog/tree/main/lib/date-formatter.ts | https://raw.githubusercontent.com/haruBlank00/blank-next-blog/aaedead/lib/date-formatter.ts | haruBlank00/blank-next-blog aaedead lib/date-formatter.ts | true | 200 | 498 | import { format } from "date-fns";
import { Timestamp } from "firebase/firestore";
type Config = {
timestamp: boolean;
};
export const createdDate = (date: Timestamp, config?: Config) => {
const d = new Timestamp(
Number(date.seconds),
Number(date.nanoseconds),
).toDate();
let defaultFormatter = "do ... | 0 |
CHAEWONSEOK98/TIL | 486792e | TypeScript/10_generic/7_generic_implementation.ts | TypeScript | www.github.com/CHAEWONSEOK98/TIL/tree/main/TypeScript/10_generic/7_generic_implementation.ts | https://raw.githubusercontent.com/CHAEWONSEOK98/TIL/486792e/TypeScript/10_generic/7_generic_implementation.ts | CHAEWONSEOK98/TIL 486792e TypeScript/10_generic/7_generic_implementation.ts | true | 200 | 634 | // Generic Implementation
interface Identity<T, V> {
id: T;
check(name: V): void;
}
class Person implements Identity<number, string> {
id: number;
constructor(id: number) {
this.id = id;
}
check(name: string): void {
console.log(`${name} | ${this.id}`);
}
}
const identity = new Person(77);
id... | 3 |
invntio/easybooks | a92f745 | backend/src/modules/categories/infrastructure/controllers/categories.controller.spec.ts | TypeScript | www.github.com/invntio/easybooks/tree/main/backend/src/modules/categories/infrastructure/controllers/categories.controller.spec.ts | https://raw.githubusercontent.com/invntio/easybooks/a92f745/backend/src/modules/categories/infrastructure/controllers/categories.controller.spec.ts | invntio/easybooks a92f745 backend/src/modules/categories/infrastructure/controllers/categories.controller.spec.ts | true | 200 | 16,597 | import { Reflector } from '@nestjs/core';
import {
InternalServerErrorException,
NotFoundException,
} from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { v4 as uuidV4 } from 'uuid';
import ... | 2 |
sebasroger/tr_rn_sp_wallet_pass | 5b30217 | src/index.ts | TypeScript | www.github.com/sebasroger/tr_rn_sp_wallet_pass/tree/main/src/index.ts | https://raw.githubusercontent.com/sebasroger/tr_rn_sp_wallet_pass/5b30217/src/index.ts | sebasroger/tr_rn_sp_wallet_pass 5b30217 src/index.ts | true | 200 | 787 | import { NativeModules, Platform } from 'react-native';
const LINKING_ERROR =
`The package 'wallet-pass' doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
'- You rebuilt the app after installing the package\n' +
'- You are not using Expo Go\... | 5 |
blockcitydao/BCD | 507863b | app/frontend/src/store/slices/gridSlice.ts | TypeScript | www.github.com/blockcitydao/BCD/tree/main/app/frontend/src/store/slices/gridSlice.ts | https://raw.githubusercontent.com/blockcitydao/BCD/507863b/app/frontend/src/store/slices/gridSlice.ts | blockcitydao/BCD 507863b app/frontend/src/store/slices/gridSlice.ts | true | 200 | 8,749 | import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';
import axios from 'axios';
// Define the grid interface
export interface Grid {
id: string;
x: number;
y: number;
owner: string;
contentURI?: string;
level: number;
lastUpdated: Date;
metadata?: {
name: string;
des... | 7 |
AdrianoNevesFoo/tekever-code-challenge | 4eedff8 | test/auth/infra/controller/AccessTokenController.test.ts | TypeScript | www.github.com/AdrianoNevesFoo/tekever-code-challenge/tree/main/test/auth/infra/controller/AccessTokenController.test.ts | https://raw.githubusercontent.com/AdrianoNevesFoo/tekever-code-challenge/4eedff8/test/auth/infra/controller/AccessTokenController.test.ts | AdrianoNevesFoo/tekever-code-challenge 4eedff8 test/auth/infra/controller/AccessTokenController.test.ts | true | 200 | 2,169 | import { Test } from "@nestjs/testing";
import { Response } from "express";
import { ClsService } from "nestjs-cls";
import { AccessTokenProvider } from "src/modules/auth/application/providers/AccessToken.provider";
import { GetTokenUseCase } from "src/modules/auth/application/usecases/GetTokenUsecase";
import { Access... | 0 |
cfzunigam/forms-test-server | 455cb88 | src/forms/dto/create-form.dto.ts | TypeScript | www.github.com/cfzunigam/forms-test-server/tree/main/src/forms/dto/create-form.dto.ts | https://raw.githubusercontent.com/cfzunigam/forms-test-server/455cb88/src/forms/dto/create-form.dto.ts | cfzunigam/forms-test-server 455cb88 src/forms/dto/create-form.dto.ts | true | 200 | 602 | import { IsString, IsArray, ValidateNested, IsBoolean } from 'class-validator';
import { Type } from 'class-transformer';
class CreateFieldDto {
@IsString()
name: string;
@IsString()
label: string;
@IsString()
type: 'text' | 'email' | 'date' | 'textarea' | 'select';
@IsBoolean()
required: boolean;
... | 3 |
FESI06-project-FitMon/frontend | 07b8953 | src/pages/mypage/api/calendarService.ts | TypeScript | www.github.com/FESI06-project-FitMon/frontend/tree/main/src/pages/mypage/api/calendarService.ts | https://raw.githubusercontent.com/FESI06-project-FitMon/frontend/07b8953/src/pages/mypage/api/calendarService.ts | FESI06-project-FitMon/frontend 07b8953 src/pages/mypage/api/calendarService.ts | true | 200 | 382 | // calendarService.ts
import apiRequest from '@/utils/apiRequest';
import { CalendarGathering, PageResponse } from '@/types';
export const calendarService = {
getCalendarGatherings: (page = 0, pageSize = 100) => {
return apiRequest<PageResponse<CalendarGathering>>({
param: `api/v1/my-page/calendar?page=${p... | 2 |
xolra0d/subservice | a5c237d | app/subservice/src/api/dto/create-creator.dto.ts | TypeScript | www.github.com/xolra0d/subservice/tree/main/app/subservice/src/api/dto/create-creator.dto.ts | https://raw.githubusercontent.com/xolra0d/subservice/a5c237d/app/subservice/src/api/dto/create-creator.dto.ts | xolra0d/subservice a5c237d app/subservice/src/api/dto/create-creator.dto.ts | true | 200 | 415 | import { ArrayMaxSize, IsAlphanumeric, IsString, IsUrl, Length, MaxLength, Min } from 'class-validator';
interface Subscription {
@IsString()
@MaxLength(32)
name: string;
@Min(0.005)
price: number;
@IsUrl()
@MaxLength(64)
img_url: string;
}
export class CreateCreatorDto {
@IsAlphanumeric()
token: ... | 4 |
GianpaoloPascasi/flyers | d4ab4cf | backend/src/db.ts | TypeScript | www.github.com/GianpaoloPascasi/flyers/tree/main/backend/src/db.ts | https://raw.githubusercontent.com/GianpaoloPascasi/flyers/d4ab4cf/backend/src/db.ts | GianpaoloPascasi/flyers d4ab4cf backend/src/db.ts | true | 200 | 2,411 | import * as fs from "fs";
import { EOL } from "os";
import { Flyer } from "./models/flyer";
import { hasEnoughElements } from "./utils/utils";
export class AppDatabase {
private flyers: Array<Flyer> = [];
private doneLoadingCsv = false;
private firstTime = true;
private numCols = 0;
private chunke... | 1 |
petr166/foosball-api | ea152f5 | src/models/tournament.model.ts | TypeScript | www.github.com/petr166/foosball-api/tree/main/src/models/tournament.model.ts | https://raw.githubusercontent.com/petr166/foosball-api/ea152f5/src/models/tournament.model.ts | petr166/foosball-api ea152f5 src/models/tournament.model.ts | true | 200 | 6,936 | import {
Schema,
model,
Document,
Model,
PaginateModel,
PaginateOptions,
PaginateResult,
} from 'mongoose';
import mongoosePaginate from 'mongoose-paginate-v2';
import { IUser } from './user.model';
import TournamentInvitation from './tournamentInvitation.model';
import { FRADRAG_PERCENTAGE } from '../co... | 7 |
Borith-Monorum/HRinc | 6fcc28e | src/app/sharepage/popup/employer/employer.component.ts | TypeScript | www.github.com/Borith-Monorum/HRinc/tree/main/src/app/sharepage/popup/employer/employer.component.ts | https://raw.githubusercontent.com/Borith-Monorum/HRinc/6fcc28e/src/app/sharepage/popup/employer/employer.component.ts | Borith-Monorum/HRinc 6fcc28e src/app/sharepage/popup/employer/employer.component.ts | true | 200 | 302 | import { Component } from '@angular/core';
export interface Tile{
color: string;
cols: number;
rows: number;
text: string;
}
@Component({
selector: 'app-employer',
templateUrl: './employer.component.html',
styleUrls: ['./employer.component.scss']
})
export class EmployerComponent {
}
| 5 |
maral/catchment-areas | c2e482f | src/components/table/fetchFunctions/loadRegions.ts | TypeScript | www.github.com/maral/catchment-areas/tree/main/src/components/table/fetchFunctions/loadRegions.ts | https://raw.githubusercontent.com/maral/catchment-areas/c2e482f/src/components/table/fetchFunctions/loadRegions.ts | maral/catchment-areas c2e482f src/components/table/fetchFunctions/loadRegions.ts | true | 200 | 631 | import { Region } from "@/entities/Region";
import { remult } from "remult";
const regionsRepo = remult.repo(Region);
export async function loadRegions(page: number, limit: number): Promise<Region[]> {
return await regionsRepo.find({
limit,
page,
orderBy: { shortName: "asc" }
});
}
expor... | 0 |
mikitran721/typescriptBasic1 | 002368b | projects/lesson7.ts | TypeScript | www.github.com/mikitran721/typescriptBasic1/tree/main/projects/lesson7.ts | https://raw.githubusercontent.com/mikitran721/typescriptBasic1/002368b/projects/lesson7.ts | mikitran721/typescriptBasic1 002368b projects/lesson7.ts | true | 200 | 200 | // type inference
let str2 = 'miki'
let arr2 = ['2HC', 'Mk', 50];
// type annotation
let str3: string;
let arr3: (string | number | boolean)[]
/**
* khi tao ham nen de TS tu dong nhan dang bien
*/ | 3 |
Hedibenrejeb/ZUM-Portal-frontend | cc3b1e3 | src/app/pages/projects/projectgrid/projectgrid.component.ts | TypeScript | www.github.com/Hedibenrejeb/ZUM-Portal-frontend/tree/main/src/app/pages/projects/projectgrid/projectgrid.component.ts | https://raw.githubusercontent.com/Hedibenrejeb/ZUM-Portal-frontend/cc3b1e3/src/app/pages/projects/projectgrid/projectgrid.component.ts | Hedibenrejeb/ZUM-Portal-frontend cc3b1e3 src/app/pages/projects/projectgrid/projectgrid.component.ts | true | 200 | 590 | import { Component, OnInit } from '@angular/core';
import { Project } from '../project.model';
//
@Component({
selector: 'app-projectgrid',
templateUrl: './projectgrid.component.html',
styleUrls: ['./projectgrid.component.scss']
})
/**
* Projects-grid component
*/
export class ProjectgridComponent implement... | 2 |
Domengo/bluewav | 404eacf | bluewave/components/constants/Constants.ts | TypeScript | www.github.com/Domengo/bluewav/tree/main/bluewave/components/constants/Constants.ts | https://raw.githubusercontent.com/Domengo/bluewav/404eacf/bluewave/components/constants/Constants.ts | Domengo/bluewav 404eacf bluewave/components/constants/Constants.ts | true | 200 | 1,994 | import realtime from "../../assets/realtime.png";
import usage from "../../assets/usagetracking.png";
import alerts from "../../assets/alerts.png";
import dataanalytics from "../../assets/data analytics.png";
import usermanagement from "../../assets/usermanagement.png";
import mobile from "../../assets/mobile.png";
imp... | 4 |
LimitlessFavour/GTCO-Smart-Invoice-Backend | 3af40e5 | src/mock-data/mock-data.module.ts | TypeScript | www.github.com/LimitlessFavour/GTCO-Smart-Invoice-Backend/tree/main/src/mock-data/mock-data.module.ts | https://raw.githubusercontent.com/LimitlessFavour/GTCO-Smart-Invoice-Backend/3af40e5/src/mock-data/mock-data.module.ts | LimitlessFavour/GTCO-Smart-Invoice-Backend 3af40e5 src/mock-data/mock-data.module.ts | true | 200 | 1,110 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from '../user/user.entity';
import { Company } from '../company/company.entity';
import { Client } from '../client/client.entity';
import { Product } from '../product/entities/product.entity';
import { Invoice } fr... | 1 |
seffipeguy/school-app | 41408cd | src/app/services/utilisateur.service.ts | TypeScript | www.github.com/seffipeguy/school-app/tree/main/src/app/services/utilisateur.service.ts | https://raw.githubusercontent.com/seffipeguy/school-app/41408cd/src/app/services/utilisateur.service.ts | seffipeguy/school-app 41408cd src/app/services/utilisateur.service.ts | true | 200 | 869 | import { Injectable } from '@angular/core';
import {Utilisateur} from "../models/utilisateur";
import firebase from "firebase";
@Injectable({
providedIn: 'root'
})
export class UtilisateurService {
constructor() { }
async getInfosUserWitchId(id: any) {
return new Promise<Utilisateur>((resolve, reject) => {... | 5 |
Wellington-m/projeto-smith | eafdc05 | src/middlewares/loginValidation.ts | TypeScript | www.github.com/Wellington-m/projeto-smith/tree/main/src/middlewares/loginValidation.ts | https://raw.githubusercontent.com/Wellington-m/projeto-smith/eafdc05/src/middlewares/loginValidation.ts | Wellington-m/projeto-smith eafdc05 src/middlewares/loginValidation.ts | true | 200 | 425 | import { RequestHandler } from 'express';
import loginValidationSchema from '../helpers/loginValidationSchemaJoi';
const loginValidation:RequestHandler = (req, res, next) => {
const { username, password } = req.body;
const { error } = loginValidationSchema.validate({ username, password });
if (error) return re... | 7 |
manybugsdev/aoc-2024-in-deno | e56ec4f | day18/solve.ts | TypeScript | www.github.com/manybugsdev/aoc-2024-in-deno/tree/main/day18/solve.ts | https://raw.githubusercontent.com/manybugsdev/aoc-2024-in-deno/e56ec4f/day18/solve.ts | manybugsdev/aoc-2024-in-deno e56ec4f day18/solve.ts | true | 200 | 2,182 | import { BinaryHeap } from "jsr:@std/data-structures";
function parseInput(input: string): [number, number][] {
return input.split("\n").map((line) =>
line.split(",").map(Number) as [number, number]
);
}
function getMap(blocks: [number, number][], size: number): string[][] {
const map = Array.from... | 0 |
PradeepKundekar0101/CodeRunner | cd651cb | server/src/index.ts | TypeScript | www.github.com/PradeepKundekar0101/CodeRunner/tree/main/server/src/index.ts | https://raw.githubusercontent.com/PradeepKundekar0101/CodeRunner/cd651cb/server/src/index.ts | PradeepKundekar0101/CodeRunner cd651cb server/src/index.ts | true | 200 | 308 | import { app } from './app';
import dotenv from 'dotenv'
import {connectDB} from './db'
dotenv.config();
const PORT = process.env.PORT || 8000;
connectDB().then(()=>{
app.listen(PORT,()=>{
console.log("Server running at PORT "+PORT);
})
}).catch((error)=>{
console.log(error.message)
})
| 2 |
boy672820/nestjs-cqrs-clean-arch-example | 4c889fc | src/config/contract/contract.config.module.ts | TypeScript | www.github.com/boy672820/nestjs-cqrs-clean-arch-example/tree/main/src/config/contract/contract.config.module.ts | https://raw.githubusercontent.com/boy672820/nestjs-cqrs-clean-arch-example/4c889fc/src/config/contract/contract.config.module.ts | boy672820/nestjs-cqrs-clean-arch-example 4c889fc src/config/contract/contract.config.module.ts | true | 200 | 387 | import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import configuration from './contract.configuration';
import { ContractConfigService } from './contract.config.service';
@Module({
imports: [ConfigModule.forFeature(configuration)],
providers: [ContractConfigService],
exports... | 6 |
shashi-faced/NodeUI | 93b55fb | src/app/dashboard/dashboard.module.ts | TypeScript | www.github.com/shashi-faced/NodeUI/tree/main/src/app/dashboard/dashboard.module.ts | https://raw.githubusercontent.com/shashi-faced/NodeUI/93b55fb/src/app/dashboard/dashboard.module.ts | shashi-faced/NodeUI 93b55fb src/app/dashboard/dashboard.module.ts | true | 200 | 549 | import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
// import {MatSelectModule, MatAutocompleteModule, MatOptionModule, MatFormFieldModule, MatCardModule, MatInputModule, MatIconModule, MatButtonModule, MatCheckboxModule, MatRadioModu... | 3 |
midis-students/jest | 68c9d9d | test/mock.ts | TypeScript | www.github.com/midis-students/jest/tree/main/test/mock.ts | https://raw.githubusercontent.com/midis-students/jest/68c9d9d/test/mock.ts | midis-students/jest 68c9d9d test/mock.ts | true | 200 | 8,759 | import {User} from "../src/types";
export const users: User[] = [
{
id: 1,
firstName: "Damir",
lastName: "Lutfrakhmanov",
maidenName: "Ramilevich",
username: "damirlut",
age: 18,
gender: "male",
email: "damirlut.dev@gmail.com",
phone: "+7 927 ... | 7 |
vinsxzero/Aulas-UMC | 1690df6 | src/service/product/UpdateProductService.ts | TypeScript | www.github.com/vinsxzero/Aulas-UMC/tree/main/src/service/product/UpdateProductService.ts | https://raw.githubusercontent.com/vinsxzero/Aulas-UMC/1690df6/src/service/product/UpdateProductService.ts | vinsxzero/Aulas-UMC 1690df6 src/service/product/UpdateProductService.ts | true | 200 | 1,136 | import { getCustomRepository } from "typeorm";
import { IProductRequest } from "../../interface/IProductRequest";
import { ProductRepositories } from "../../repository/ProductRepositories";
import { isDate } from "util";
import { userInfo } from "os";
class UpdateProductService{
async execute({id, name, descripti... | 1 |
ethancd/mythgarden | 982ea61 | mythgarden/static/mythgarden/js/_colors.ts | TypeScript | www.github.com/ethancd/mythgarden/tree/main/mythgarden/static/mythgarden/js/_colors.ts | https://raw.githubusercontent.com/ethancd/mythgarden/982ea61/mythgarden/static/mythgarden/js/_colors.ts | ethancd/mythgarden 982ea61 mythgarden/static/mythgarden/js/_colors.ts | true | 200 | 872 | const skyBlue = '#87ceeb'
const yellowLeather = '#e1a836'
const dollarBillGreen = '#85bb65'
const sandyBrown = '#f9cca4'
const lavenderPurple = '#b09cc9'
const lavenderPurpleTranslucent = lavenderPurple + 'aa'
const parchment = '#fcf5ef'
const dustyPink = '#ffd1d8'
const whiteYellow = '#fff5e5'
const blueMoonGray = '#9... | 4 |
mcorreia0320/toDo | 8956d57 | redux/slices/toDoSlice.ts | TypeScript | www.github.com/mcorreia0320/toDo/tree/main/redux/slices/toDoSlice.ts | https://raw.githubusercontent.com/mcorreia0320/toDo/8956d57/redux/slices/toDoSlice.ts | mcorreia0320/toDo 8956d57 redux/slices/toDoSlice.ts | true | 200 | 1,395 | import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { WorkType, worksListInfo } from "../../services/worksListInfo";
import { RootState } from "../store";
type toDoState = {
workList: WorkType[]
text: string
textArea: string
modalVisible: boolean
}
const initialState : toDoState = {
... | 5 |
sparrow-js/firefly-near | ec1b226 | firefly-near/firefly-service/src/chatgpt/chatgpt.controller.ts | TypeScript | www.github.com/sparrow-js/firefly-near/tree/main/firefly-near/firefly-service/src/chatgpt/chatgpt.controller.ts | https://raw.githubusercontent.com/sparrow-js/firefly-near/ec1b226/firefly-near/firefly-service/src/chatgpt/chatgpt.controller.ts | sparrow-js/firefly-near ec1b226 firefly-near/firefly-service/src/chatgpt/chatgpt.controller.ts | true | 200 | 3,639 | import { Controller, Get, Param, Query, Body, Post } from '@nestjs/common';
import { ChatgptService } from './chatgpt.service';
import type { ChatCompletionRequestMessage } from 'openai';
import { EditService } from 'src/edit/edit.service';
import Generator from '../generator/ast';
import lowdb from '../utils/lowdb';
i... | 6 |
sasibhumaraju/Sorting-Visualiser | 069e3b2 | src/app/mobile-header/mobile-header.component.ts | TypeScript | www.github.com/sasibhumaraju/Sorting-Visualiser/tree/main/src/app/mobile-header/mobile-header.component.ts | https://raw.githubusercontent.com/sasibhumaraju/Sorting-Visualiser/069e3b2/src/app/mobile-header/mobile-header.component.ts | sasibhumaraju/Sorting-Visualiser 069e3b2 src/app/mobile-header/mobile-header.component.ts | true | 200 | 630 | import { Component, OnInit } from '@angular/core';
import { BarNode } from 'models/BarNode';
import { BarNodeArray } from 'models/BarNodeArray';
import { mobileAbout } from 'models/mobile-about';
import { from } from 'rxjs';
@Component({
selector: 'app-mobile-header',
templateUrl: './mobile-header.component.html',... | 2 |
ochemerys/react-vite-boilerplate | 7bbc333 | vite.config.ts | TypeScript | www.github.com/ochemerys/react-vite-boilerplate/tree/main/vite.config.ts | https://raw.githubusercontent.com/ochemerys/react-vite-boilerplate/7bbc333/vite.config.ts | ochemerys/react-vite-boilerplate 7bbc333 vite.config.ts | true | 200 | 320 | import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react-swc';
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
react(),
tailwindcss(),
],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/test/setup.ts",
},
});
| 3 |
mukeshp004/mera-basket | f4a3701 | projects/store/src/app/entity/attribute-family/services/attribute-family-resolve.service.spec.ts | TypeScript | www.github.com/mukeshp004/mera-basket/tree/main/projects/store/src/app/entity/attribute-family/services/attribute-family-resolve.service.spec.ts | https://raw.githubusercontent.com/mukeshp004/mera-basket/f4a3701/projects/store/src/app/entity/attribute-family/services/attribute-family-resolve.service.spec.ts | mukeshp004/mera-basket f4a3701 projects/store/src/app/entity/attribute-family/services/attribute-family-resolve.service.spec.ts | true | 200 | 439 | import { TestBed } from '@angular/core/testing';
import { AttributeFamilyResolveService } from './attribute-family-resolve.service';
describe('AttributeFamilyResolveService', () => {
let service: AttributeFamilyResolveService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.injec... | 7 |
Vitatech2013/collegefestorganization_angular | fdec306 | src/app/Organizer/Events/edit-events/edit-events.component.ts | TypeScript | www.github.com/Vitatech2013/collegefestorganization_angular/tree/main/src/app/Organizer/Events/edit-events/edit-events.component.ts | https://raw.githubusercontent.com/Vitatech2013/collegefestorganization_angular/fdec306/src/app/Organizer/Events/edit-events/edit-events.component.ts | Vitatech2013/collegefestorganization_angular fdec306 src/app/Organizer/Events/edit-events/edit-events.component.ts | true | 200 | 3,500 | import { AdminService } from './../../../Admin/Api/admin.service';
import { StudentService } from './../../../Student/Api/student.service';
import { OrganizerService } from './../../Api/organizer.service';
import { Router } from '@angular/router';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
imp... | 1 |
doylegrant/amplication | 546d7d6 | apps/jobs-admin/src/api/user/UserUpdateInput.ts | TypeScript | www.github.com/doylegrant/amplication/tree/main/apps/jobs-admin/src/api/user/UserUpdateInput.ts | https://raw.githubusercontent.com/doylegrant/amplication/546d7d6/apps/jobs-admin/src/api/user/UserUpdateInput.ts | doylegrant/amplication 546d7d6 apps/jobs-admin/src/api/user/UserUpdateInput.ts | true | 200 | 380 | import { JobWhereUniqueInput } from "../job/JobWhereUniqueInput";
import { InputJsonValue } from "../../types";
export type UserUpdateInput = {
assignedJobs?: JobWhereUniqueInput | null;
email?: string | null;
firstName?: string | null;
jobs?: JobWhereUniqueInput | null;
lastName?: string | null;
password?... | 4 |
restorecommerce/catalog-srv | 82f7dcd | src/services/ProductCategoryService.ts | TypeScript | www.github.com/restorecommerce/catalog-srv/tree/main/src/services/ProductCategoryService.ts | https://raw.githubusercontent.com/restorecommerce/catalog-srv/82f7dcd/src/services/ProductCategoryService.ts | restorecommerce/catalog-srv 82f7dcd src/services/ProductCategoryService.ts | true | 200 | 813 | import { DatabaseProvider } from '@restorecommerce/chassis-srv';
import { Topic } from '@restorecommerce/kafka-client';
import {
ProductCategoryServiceImplementation, ProductCategoryList,
ProductCategoryListResponse,
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/product_category.... | 0 |
mkcarl/discord-message-query | 09b26db | src/services/discord/service.ts | TypeScript | www.github.com/mkcarl/discord-message-query/tree/main/src/services/discord/service.ts | https://raw.githubusercontent.com/mkcarl/discord-message-query/09b26db/src/services/discord/service.ts | mkcarl/discord-message-query 09b26db src/services/discord/service.ts | true | 200 | 2,784 | import * as discord from 'discord.js';
import { GatewayIntentBits } from 'discord.js';
import 'dotenv/config';
import { Discord } from '../../types/discord';
const { DISCORD_BOT_TOKEN } = process.env;
class DiscordService {
client;
constructor() {
this.client = new discord.Client({
intent... | 6 |
masoud-mdar/hr-management | d2df357 | Server/src/controllers/job.controller.ts | TypeScript | www.github.com/masoud-mdar/hr-management/tree/main/Server/src/controllers/job.controller.ts | https://raw.githubusercontent.com/masoud-mdar/hr-management/d2df357/Server/src/controllers/job.controller.ts | masoud-mdar/hr-management d2df357 Server/src/controllers/job.controller.ts | true | 200 | 1,718 | import prisma from "../config/db";
import { z } from "zod";
const jobSchema = z.object({
personId: z.number(),
companyName: z.string().min(1, "Company name is required!"),
position: z.string().min(1, "Position is required!"),
startDate: z.string(),
endDate: z.string().optional(),
});
export const... | 2 |
iam4tunate/sleekease | ec72a88 | src/lib/appwrite/api.ts | TypeScript | www.github.com/iam4tunate/sleekease/tree/main/src/lib/appwrite/api.ts | https://raw.githubusercontent.com/iam4tunate/sleekease/ec72a88/src/lib/appwrite/api.ts | iam4tunate/sleekease ec72a88 src/lib/appwrite/api.ts | true | 200 | 12,375 | import { ID, Models, Query } from 'appwrite';
import {
ICartItem,
INewProduct,
INewUser,
IRecenltyViewed,
IShippingInfo,
IUpdateProduct,
IWishlist,
} from '../types';
import { account, appwriteConfig, databases, storage } from './config';
export async function registerUser(user: INewUser) {
const name ... | 5 |
mssouza/meat-app-starter-master | 629afd5 | src/app/security/loggedin.guard.ts | TypeScript | www.github.com/mssouza/meat-app-starter-master/tree/main/src/app/security/loggedin.guard.ts | https://raw.githubusercontent.com/mssouza/meat-app-starter-master/629afd5/src/app/security/loggedin.guard.ts | mssouza/meat-app-starter-master 629afd5 src/app/security/loggedin.guard.ts | true | 200 | 859 | import { CanLoad, Route, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from "@angular/router";
import { Injectable } from "@angular/core";
import { LoginService } from "./login/login.services";
@Injectable()
export class LoggedInGuard implements CanLoad, CanActivate{
constructor(private loginServ... | 7 |
Dani-frog/vue3 | 8df5d87 | elso project/src/stores/userStore.ts | TypeScript | www.github.com/Dani-frog/vue3/tree/main/elso project/src/stores/userStore.ts | https://raw.githubusercontent.com/Dani-frog/vue3/8df5d87/elso%20project/src/stores/userStore.ts | Dani-frog/vue3 8df5d87 elso project/src/stores/userStore.ts | true | 200 | 1,048 | import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export type User = {
id: number,
name: string,
email: string
}
export const useUserStore = defineStore('userStore', () => {
const users = ref<User[]>([{ id: 1, name: "elsoMev", email: "fing@mail.com" }, { id: 2, name: "Teszt_", e... | 6 |
crstnmac/MyQart | ec8d580 | frontend/libs/orders/src/lib/components/order-summary/order-summary.component.ts | TypeScript | www.github.com/crstnmac/MyQart/tree/main/frontend/libs/orders/src/lib/components/order-summary/order-summary.component.ts | https://raw.githubusercontent.com/crstnmac/MyQart/ec8d580/frontend/libs/orders/src/lib/components/order-summary/order-summary.component.ts | crstnmac/MyQart ec8d580 frontend/libs/orders/src/lib/components/order-summary/order-summary.component.ts | true | 200 | 1,267 | import { Component, OnInit } from '@angular/core';
import {Subject, take, takeUntil} from "rxjs";
import {CartService} from "../../services/cart.service";
import {OrdersService} from "../../services/orders.service";
import {Router} from "@angular/router";
@Component({
selector: 'orders-order-summary',
templateUrl:... | 5 |
albertdugba/naimeless | fbb4976 | src/features/post/api/createPost.ts | TypeScript | www.github.com/albertdugba/naimeless/tree/main/src/features/post/api/createPost.ts | https://raw.githubusercontent.com/albertdugba/naimeless/fbb4976/src/features/post/api/createPost.ts | albertdugba/naimeless fbb4976 src/features/post/api/createPost.ts | true | 200 | 875 | import { Prisma } from '@prisma/client'
import { useMutation, useQueryClient } from 'react-query'
import axios from 'axios'
export const createPost = async (post: Prisma.PostCreateInput) => {
return await axios({
url: '/api/posts/create-post',
method: 'POST',
data: post,
})
}
export const useCreatePos... | 2 |
sthefanyk/study-node-ddd | 495f110 | src/core/infra/repositories/in-memory/in-memory-sale-items-repository.ts | TypeScript | www.github.com/sthefanyk/study-node-ddd/tree/main/src/core/infra/repositories/in-memory/in-memory-sale-items-repository.ts | https://raw.githubusercontent.com/sthefanyk/study-node-ddd/495f110/src/core/infra/repositories/in-memory/in-memory-sale-items-repository.ts | sthefanyk/study-node-ddd 495f110 src/core/infra/repositories/in-memory/in-memory-sale-items-repository.ts | true | 200 | 1,262 | import { SaleItemsRepository } from '@/core/domain/stock/application/contracts/sale-items-repository'
import { SaleItem } from '@/core/domain/stock/enterprise/entities/sale-item'
export class InMemorySaleItemsRepository implements SaleItemsRepository {
public items: SaleItem[] = []
async create(saleItem: Sale... | 7 |
hengly12/Study-material | 553992a | src/app/auth/components/course1/course-page/course-page.component.ts | TypeScript | www.github.com/hengly12/Study-material/tree/main/src/app/auth/components/course1/course-page/course-page.component.ts | https://raw.githubusercontent.com/hengly12/Study-material/553992a/src/app/auth/components/course1/course-page/course-page.component.ts | hengly12/Study-material 553992a src/app/auth/components/course1/course-page/course-page.component.ts | true | 200 | 1,764 | import { Component, OnInit } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import { AngularFirestore } from '@angular/fire/compat/firestore';
import { ActivatedRoute, Router } from '@angular/router';
import { COURSE, Course_KeyType, GRADE_LEVEL } from 'src/app/dummy/data-khmer';
@C... | 5 |
shijar-muhammed-k/AutomatedCodeReviewSystemFrontEnd | 3570b64 | src/app/end-user/component/profile/profile.component.ts | TypeScript | www.github.com/shijar-muhammed-k/AutomatedCodeReviewSystemFrontEnd/tree/main/src/app/end-user/component/profile/profile.component.ts | https://raw.githubusercontent.com/shijar-muhammed-k/AutomatedCodeReviewSystemFrontEnd/3570b64/src/app/end-user/component/profile/profile.component.ts | shijar-muhammed-k/AutomatedCodeReviewSystemFrontEnd 3570b64 src/app/end-user/component/profile/profile.component.ts | true | 200 | 1,706 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
import { ApiService } from 'src/app/core/services/api.service';
import { LoaderService } from 'src/app/core/services/loader.service';
import { ... | 6 |
mightysai1997/angular | 0761e9a | packages/core/src/render3/after_render_hooks.ts | TypeScript | www.github.com/mightysai1997/angular/tree/main/packages/core/src/render3/after_render_hooks.ts | https://raw.githubusercontent.com/mightysai1997/angular/0761e9a/packages/core/src/render3/after_render_hooks.ts | mightysai1997/angular 0761e9a packages/core/src/render3/after_render_hooks.ts | true | 200 | 24,574 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
ChangeDetectionScheduler,
NotificationSource,
} from '../change_detection/scheduling/zoneless_scheduling... | 2 |
plukhi17/webappv | 5261ba8 | src-orginal/app/modules/dashboard/select-date-for-fft-dfft/select-date-for-fft-dfft.component.ts | TypeScript | www.github.com/plukhi17/webappv/tree/main/src-orginal/app/modules/dashboard/select-date-for-fft-dfft/select-date-for-fft-dfft.component.ts | https://raw.githubusercontent.com/plukhi17/webappv/5261ba8/src-orginal/app/modules/dashboard/select-date-for-fft-dfft/select-date-for-fft-dfft.component.ts | plukhi17/webappv 5261ba8 src-orginal/app/modules/dashboard/select-date-for-fft-dfft/select-date-for-fft-dfft.component.ts | true | 200 | 5,260 | import { Component, EventEmitter, Input, OnInit, Output, OnChanges, OnDestroy, ViewChild, SimpleChanges } from '@angular/core';
import { DataConfig, Machine,DataConfigEx } from '../../../interfaces';
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
import { Subject } from 'rxjs';
import { MatSe... | 7 |
davidystephenson/cloudsort-vercel | 0a3b33c | movie/guard-movie-choice-request.ts | TypeScript | www.github.com/davidystephenson/cloudsort-vercel/tree/main/movie/guard-movie-choice-request.ts | https://raw.githubusercontent.com/davidystephenson/cloudsort-vercel/0a3b33c/movie/guard-movie-choice-request.ts | davidystephenson/cloudsort-vercel 0a3b33c movie/guard-movie-choice-request.ts | true | 200 | 669 | import fashionPolice from '@/fashion-police/fashion-police'
import guardNumber from '@/fashion-police/guard-number'
import { MovieChoiceRequest } from './movie-types'
import guardEpisodeChoice from '@/choice/guard-episode-choice'
import guardString from '@/fashion-police/guard-string'
export default function guardMovi... | 6 |
sicoding1120/mentorix.id | 99b205f | src/backends/providers/class.service.ts | TypeScript | www.github.com/sicoding1120/mentorix.id/tree/main/src/backends/providers/class.service.ts | https://raw.githubusercontent.com/sicoding1120/mentorix.id/99b205f/src/backends/providers/class.service.ts | sicoding1120/mentorix.id 99b205f src/backends/providers/class.service.ts | true | 200 | 2,723 | import { NextApiRequest, NextApiResponse } from "next";
import { RestApi } from "../utils/response";
import prisma from "../utils/prisma";
import { useLogic } from "../logic";
const logic = new useLogic()
export class classService {
async _getClassAllWithRelations(
req: NextApiRequest,
res: NextApiResponse,... | 5 |
KradGm/Angular-bankApp | 3c2491e | src/app/components/big-card/big-card.component.ts | TypeScript | www.github.com/KradGm/Angular-bankApp/tree/main/src/app/components/big-card/big-card.component.ts | https://raw.githubusercontent.com/KradGm/Angular-bankApp/3c2491e/src/app/components/big-card/big-card.component.ts | KradGm/Angular-bankApp 3c2491e src/app/components/big-card/big-card.component.ts | true | 200 | 1,199 | import { Component, Input, OnInit } from '@angular/core';
import { Account } from 'src/app/models/User';
import { MyapiService } from 'src/app/services/myapi.service';
import { ActivatedRoute, Route } from '@angular/router';
@Component({
selector: 'app-big-card',
templateUrl: './big-card.component.html',
styleUr... | 2 |
sklme/binary-string | df6c6b9 | src/dom-string/index.ts | TypeScript | www.github.com/sklme/binary-string/tree/main/src/dom-string/index.ts | https://raw.githubusercontent.com/sklme/binary-string/df6c6b9/src/dom-string/index.ts | sklme/binary-string df6c6b9 src/dom-string/index.ts | true | 200 | 1,659 | import { BaseTransformer } from '../shared/base-transformer';
export function stringToArrayBuffer(str: string) {
// 因为js字符串是16位,使用Uint16Array转为成arrayBuffer
const codeUnits = new Uint16Array(str.length);
for (let i = 0; i < codeUnits.length; i++) {
codeUnits[i] = str.charCodeAt(i);
}
return codeUnits.bu... | 7 |
khanhdii-08/airline-booking-api | 5af56a1 | src/types/inputs/EmployeeInput.ts | TypeScript | www.github.com/khanhdii-08/airline-booking-api/tree/main/src/types/inputs/EmployeeInput.ts | https://raw.githubusercontent.com/khanhdii-08/airline-booking-api/5af56a1/src/types/inputs/EmployeeInput.ts | khanhdii-08/airline-booking-api 5af56a1 src/types/inputs/EmployeeInput.ts | true | 200 | 321 | import { Gender, Status, UserType } from '~/utils/enums'
export class EmployeeInput {
name: string
dateOfBirth: Date
gender: Gender
idCard: string
phoneNumber: string
email: string
userType: UserType
country: string
address: string
status: Status
password: string
}... | 5 |
promonkeyli/clear | 08fb191 | packages/create-clear/template-react/vite.config.ts | TypeScript | www.github.com/promonkeyli/clear/tree/main/packages/create-clear/template-react/vite.config.ts | https://raw.githubusercontent.com/promonkeyli/clear/08fb191/packages/create-clear/template-react/vite.config.ts | promonkeyli/clear 08fb191 packages/create-clear/template-react/vite.config.ts | true | 200 | 672 | import path from "node:path";
import react from "@vitejs/plugin-react-swc";
import { defineConfig, loadEnv } from "vite";
// https://vite.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), ""); // 加载所有环境变量
return {
envDir: "env",
plugins: [react()],
resolv... | 6 |
Fahad2021/Employee-Management-System | 78cc983 | ui/AngularUI/src/app/employee/add-edit-emp/add-edit-emp.component.ts | TypeScript | www.github.com/Fahad2021/Employee-Management-System/tree/main/ui/AngularUI/src/app/employee/add-edit-emp/add-edit-emp.component.ts | https://raw.githubusercontent.com/Fahad2021/Employee-Management-System/78cc983/ui/AngularUI/src/app/employee/add-edit-emp/add-edit-emp.component.ts | Fahad2021/Employee-Management-System 78cc983 ui/AngularUI/src/app/employee/add-edit-emp/add-edit-emp.component.ts | true | 200 | 2,057 | import { Component, OnInit,Input } from '@angular/core';
import { SharedService } from 'src/app/shared.service';
@Component({
selector: 'app-add-edit-emp',
templateUrl: './add-edit-emp.component.html',
styleUrls: ['./add-edit-emp.component.css']
})
export class AddEditEmpComponent implements OnInit {
construc... | 2 |
PeterShekiondo/auth-ui | 2980088 | src/types/index.ts | TypeScript | www.github.com/PeterShekiondo/auth-ui/tree/main/src/types/index.ts | https://raw.githubusercontent.com/PeterShekiondo/auth-ui/2980088/src/types/index.ts | PeterShekiondo/auth-ui 2980088 src/types/index.ts | true | 200 | 2,009 |
export interface LoginUserInput {
email: string;
password: string;
}
export interface ChangePasswordUserInput {
oldPassword: string;
newPassword: string;
}
export interface RegisterUserInput {
name: string;
email: string;
password: string;
}
export type MenuList = {
title: string;
a... | 7 |
pimlicolabs/permissionless.js | 5edaa2d | packages/mock-paymaster/index.ts | TypeScript | www.github.com/pimlicolabs/permissionless.js/tree/main/packages/mock-paymaster/index.ts | https://raw.githubusercontent.com/pimlicolabs/permissionless.js/5edaa2d/packages/mock-paymaster/index.ts | pimlicolabs/permissionless.js 5edaa2d packages/mock-paymaster/index.ts | true | 200 | 2,536 | import cors from "@fastify/cors"
import Fastify from "fastify"
import { defineInstance } from "prool"
import { http, createPublicClient } from "viem"
import { createBundlerClient } from "viem/account-abstraction"
import { foundry } from "viem/chains"
import { deployErc20Token } from "./helpers/erc20-utils.js"
import { ... | 5 |
YuriLRodrigues/autocars-backend | 679ef36 | src/domain/application/use-cases/user/me.use-case.ts | TypeScript | www.github.com/YuriLRodrigues/autocars-backend/tree/main/src/domain/application/use-cases/user/me.use-case.ts | https://raw.githubusercontent.com/YuriLRodrigues/autocars-backend/679ef36/src/domain/application/use-cases/user/me.use-case.ts | YuriLRodrigues/autocars-backend 679ef36 src/domain/application/use-cases/user/me.use-case.ts | true | 200 | 1,920 | import { Injectable } from '@nestjs/common';
import { UniqueEntityId } from '@root/core/domain/entity/unique-id.entity';
import { ResourceNotFoundError } from '@root/core/errors/resource-not-found-error';
import { Either, left, right } from '@root/core/logic/Either';
import { Me } from '@root/domain/enterprise/value-ob... | 6 |
HoangHoang1408/project1-hust-backend | cd665f3 | src/data/data.module.ts | TypeScript | www.github.com/HoangHoang1408/project1-hust-backend/tree/main/src/data/data.module.ts | https://raw.githubusercontent.com/HoangHoang1408/project1-hust-backend/cd665f3/src/data/data.module.ts | HoangHoang1408/project1-hust-backend cd665f3 src/data/data.module.ts | true | 200 | 574 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Booking } from 'src/booking/entities/booking.entity';
import { Car } from 'src/car/entities/car.entity';
import { CarType } from 'src/car/entities/carType.entity';
import { Service } from 'src/service/entities/service.ent... | 2 |
PrzemyslawZebrowski/HomeHub | c92ec06 | HomeHub.Web/src/app/shared/directives/directives.module.ts | TypeScript | www.github.com/PrzemyslawZebrowski/HomeHub/tree/main/HomeHub.Web/src/app/shared/directives/directives.module.ts | https://raw.githubusercontent.com/PrzemyslawZebrowski/HomeHub/c92ec06/HomeHub.Web/src/app/shared/directives/directives.module.ts | PrzemyslawZebrowski/HomeHub c92ec06 HomeHub.Web/src/app/shared/directives/directives.module.ts | true | 200 | 448 | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { HasRoleDirective } from './has-role.directive';
import { MatButtonLoadingDirective } from './mat-button-loading.directive';
const directives = [
HasRoleDirective,
MatButtonLoadingDirective
];
@NgModule({
de... | 7 |
finom/vovk-hello-world | aa006e2 | src/modules/hello/HelloController.ts | TypeScript | www.github.com/finom/vovk-hello-world/tree/main/src/modules/hello/HelloController.ts | https://raw.githubusercontent.com/finom/vovk-hello-world/aa006e2/src/modules/hello/HelloController.ts | finom/vovk-hello-world aa006e2 src/modules/hello/HelloController.ts | true | 200 | 558 | import { get, prefix } from "vovk";
import HelloService from "./HelloService";
/**
* Handle requests and invoke service methods here
*/
@prefix('hello')
export default class HelloController {
/**
* Return a greeting from the HelloService
*/
@get('greeting')
static async getHello() {
... | 5 |
CrgioYalux/dolcemika | a338454 | backend/src/api/handlers/menu.ts | TypeScript | www.github.com/CrgioYalux/dolcemika/tree/main/backend/src/api/handlers/menu.ts | https://raw.githubusercontent.com/CrgioYalux/dolcemika/a338454/backend/src/api/handlers/menu.ts | CrgioYalux/dolcemika a338454 backend/src/api/handlers/menu.ts | true | 200 | 5,088 | import Controllers from '../../controllers';
import db from '../../db';
import type { NextFunction, Request, Response } from 'express';
const Get = (request: Request, response: Response, next: NextFunction): void => {
const authHeader = request.headers.authorization;
const session = response.locals.session as... | 6 |
Jedzas/TS-homework | 4416328 | CRUD projektas/lecture12/src/components/table.ts | TypeScript | www.github.com/Jedzas/TS-homework/tree/main/CRUD projektas/lecture12/src/components/table.ts | https://raw.githubusercontent.com/Jedzas/TS-homework/4416328/CRUD%20projektas/lecture12/src/components/table.ts | Jedzas/TS-homework 4416328 CRUD projektas/lecture12/src/components/table.ts | true | 200 | 2,716 | type RowData = {
id: string,
[key: string]: string,
};
export type TableProps<Type> = {
title: string,
columns: Type,
rowsData: Type[],
};
class Table<Type extends RowData> {
public htmlElement: HTMLTableElement;
private props: TableProps<Type>;
private tbody: HTMLTableSectionElement... | 2 |
Amir-fayyaz/persian-blog | 733b14d | src/main.ts | TypeScript | www.github.com/Amir-fayyaz/persian-blog/tree/main/src/main.ts | https://raw.githubusercontent.com/Amir-fayyaz/persian-blog/733b14d/src/main.ts | Amir-fayyaz/persian-blog 733b14d src/main.ts | true | 200 | 670 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './module/app/app.module';
import { ValidationPipe } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ... | 7 |
MegharanBasith/HrAttenDance | 4a57961 | src/app/feature-module/payGroup/payGroupPeriod-list/payGroupPeriod-list.component.spec.ts | TypeScript | www.github.com/MegharanBasith/HrAttenDance/tree/main/src/app/feature-module/payGroup/payGroupPeriod-list/payGroupPeriod-list.component.spec.ts | https://raw.githubusercontent.com/MegharanBasith/HrAttenDance/4a57961/src/app/feature-module/payGroup/payGroupPeriod-list/payGroupPeriod-list.component.spec.ts | MegharanBasith/HrAttenDance 4a57961 src/app/feature-module/payGroup/payGroupPeriod-list/payGroupPeriod-list.component.spec.ts | true | 200 | 847 | /* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { PayGroupPeriodListComponent } from './payGroupPeriod-list.component';
describe('PayGroupPeriodListCom... | 5 |
roq-ai/work-managment-a-d4e1 | b2abe51 | src/apiSdk/projects/index.ts | TypeScript | www.github.com/roq-ai/work-managment-a-d4e1/tree/main/src/apiSdk/projects/index.ts | https://raw.githubusercontent.com/roq-ai/work-managment-a-d4e1/b2abe51/src/apiSdk/projects/index.ts | roq-ai/work-managment-a-d4e1 b2abe51 src/apiSdk/projects/index.ts | true | 200 | 1,206 | import axios from 'axios';
import queryString from 'query-string';
import { ProjectInterface, ProjectGetQueryInterface } from 'interfaces/project';
import { GetQueryInterface, PaginatedInterface } from '../../interfaces';
export const getProjects = async (query?: ProjectGetQueryInterface): Promise<PaginatedInterface<P... | 6 |
Lilysaria/web-portfolio | cb31a26 | src/pages/api/login.ts | TypeScript | www.github.com/Lilysaria/web-portfolio/tree/main/src/pages/api/login.ts | https://raw.githubusercontent.com/Lilysaria/web-portfolio/cb31a26/src/pages/api/login.ts | Lilysaria/web-portfolio cb31a26 src/pages/api/login.ts | true | 200 | 1,259 | import { NextApiRequest, NextApiResponse } from 'next';
import bcrypt from 'bcrypt';
import { MongoClient } from 'mongodb';
import jwt from 'jsonwebtoken';
import dotenv from 'dotenv';
dotenv.config();
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== 'POST') {
... | 2 |
NicolasShaneLynch/TelevisionApp-frontend | c9801a9 | src/app/models/signup.model.ts | TypeScript | www.github.com/NicolasShaneLynch/TelevisionApp-frontend/tree/main/src/app/models/signup.model.ts | https://raw.githubusercontent.com/NicolasShaneLynch/TelevisionApp-frontend/c9801a9/src/app/models/signup.model.ts | NicolasShaneLynch/TelevisionApp-frontend c9801a9 src/app/models/signup.model.ts | true | 200 | 642 | import {ImageDTO} from "./image.model";
export interface SignupModelRequest{
email : string;
usertype : string;
password : string;
lastname : string;
firstname : string;
birthday : string;
genre : string;
nation : string;
province : string;
city : string;
address : string;
... | 7 |
ashiquejabbar/dashboard-interface | e3987a8 | src/components/templateReducer.ts | TypeScript | www.github.com/ashiquejabbar/dashboard-interface/tree/main/src/components/templateReducer.ts | https://raw.githubusercontent.com/ashiquejabbar/dashboard-interface/e3987a8/src/components/templateReducer.ts | ashiquejabbar/dashboard-interface e3987a8 src/components/templateReducer.ts | true | 200 | 952 | import { WhatsAppTemplate } from "@/type/template";
type TemplateAction =
| { type: 'ADD_TEMPLATE'; payload: WhatsAppTemplate }
| { type: 'UPDATE_TEMPLATE'; payload: WhatsAppTemplate }
| { type: 'DELETE_TEMPLATE'; payload: string };
interface TemplateState {
templates: WhatsAppTemplate[];
}
export function ... | 6 |
wyattowalsh/instaviewer | a14f901 | lib/supabaseClient.ts | TypeScript | www.github.com/wyattowalsh/instaviewer/tree/main/lib/supabaseClient.ts | https://raw.githubusercontent.com/wyattowalsh/instaviewer/a14f901/lib/supabaseClient.ts | wyattowalsh/instaviewer a14f901 lib/supabaseClient.ts | true | 200 | 340 | import { createClient } from '@supabase/supabase-js';
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_KEY;
if (!supabaseUrl || !supabaseKey) {
throw new Error('Missing Supabase URL or Key');
}
const supabase = createClient(supabaseUrl, supabaseKey);
e... | 2 |
bility1/ng-pokemon-app | 6e41bd5 | src/app/pokemon/pokemon-form/pokemon-form.component.ts | TypeScript | www.github.com/bility1/ng-pokemon-app/tree/main/src/app/pokemon/pokemon-form/pokemon-form.component.ts | https://raw.githubusercontent.com/bility1/ng-pokemon-app/6e41bd5/src/app/pokemon/pokemon-form/pokemon-form.component.ts | bility1/ng-pokemon-app 6e41bd5 src/app/pokemon/pokemon-form/pokemon-form.component.ts | true | 200 | 1,701 | import { Component, Input, OnInit } from '@angular/core';
import { PokemonService } from '../pokemon.service';
import { Pokemon } from '../pokemon';
import { Router } from '@angular/router';
@Component({
selector: 'app-pokemon-form',
templateUrl: './pokemon-form.component.html',
styleUrls: ['./pokemon-form.compo... | 7 |
AnkushS27/secretly-ours | 2e7d362 | src/middleware.ts | TypeScript | www.github.com/AnkushS27/secretly-ours/tree/main/src/middleware.ts | https://raw.githubusercontent.com/AnkushS27/secretly-ours/2e7d362/src/middleware.ts | AnkushS27/secretly-ours 2e7d362 src/middleware.ts | true | 200 | 1,929 | import { NextRequest, NextResponse } from 'next/server';
import { getToken } from 'next-auth/jwt';
export { default } from 'next-auth/middleware';
// Define routes that require authentication
export const config = {
matcher: [
'/sign-in',
'/sign-up',
'/profile',
'/unveil-secret',
'/dashboard/:pa... | 5 |
ShibamSasmal/BoilerplateAssignment | 17f917e | 9.4.2/angular/src/app/countries/countries.component.ts | TypeScript | www.github.com/ShibamSasmal/BoilerplateAssignment/tree/main/9.4.2/angular/src/app/countries/countries.component.ts | https://raw.githubusercontent.com/ShibamSasmal/BoilerplateAssignment/17f917e/9.4.2/angular/src/app/countries/countries.component.ts | ShibamSasmal/BoilerplateAssignment 17f917e 9.4.2/angular/src/app/countries/countries.component.ts | true | 200 | 5,049 | import { Component, Injector, ChangeDetectorRef } from '@angular/core';
import { finalize } from 'rxjs/operators';
import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
import { appModuleAnimation } from '@shared/animations/routerTransition';
import {
PagedListingComponentBase,
PagedRequestDto
} from '@... | 6 |
harshaank/food-delivery-backend | 572ccdb | src/restaurants/dtos/search-restaurant.dto.ts | TypeScript | www.github.com/harshaank/food-delivery-backend/tree/main/src/restaurants/dtos/search-restaurant.dto.ts | https://raw.githubusercontent.com/harshaank/food-delivery-backend/572ccdb/src/restaurants/dtos/search-restaurant.dto.ts | harshaank/food-delivery-backend 572ccdb src/restaurants/dtos/search-restaurant.dto.ts | true | 200 | 463 | import {Field, InputType, ObjectType} from '@nestjs/graphql';
import {PaginationInput, PaginationOutput} from 'src/common/dtos/pagination.dto';
import {Restaurant} from '../entities/restaurant.entity';
@InputType()
export class SearchRestaurantInput extends PaginationInput {
@Field(type => String)
query: string;
... | 1 |
richi1717/Goals | cc40f35 | src/api/users/useCreateUser.ts | TypeScript | www.github.com/richi1717/Goals/tree/main/src/api/users/useCreateUser.ts | https://raw.githubusercontent.com/richi1717/Goals/cc40f35/src/api/users/useCreateUser.ts | richi1717/Goals cc40f35 src/api/users/useCreateUser.ts | true | 200 | 1,148 | import {
getAuth,
createUserWithEmailAndPassword,
updateProfile,
sendEmailVerification,
} from 'firebase/auth'
import initialize from '../initialize'
import { useMutation, useQueryClient } from '@tanstack/react-query'
initialize()
const auth = getAuth()
interface CreateLogin extends UserLogin {
displayName... | 4 |
Suji714/Frontend-Examportal | 76d8f17 | src/app/app/app.module.ts | TypeScript | www.github.com/Suji714/Frontend-Examportal/tree/main/src/app/app/app.module.ts | https://raw.githubusercontent.com/Suji714/Frontend-Examportal/76d8f17/src/app/app/app.module.ts | Suji714/Frontend-Examportal 76d8f17 src/app/app/app.module.ts | true | 200 | 958 | import { BrowserModule } from '@angular/platform-browser';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { RouterModule, Routes } from '@angular/router';... | 0 |
herzliya-space-laboratory/sats-Pass-Manger | 82ef344 | backend/src/utils/getSatelliteTle.ts | TypeScript | www.github.com/herzliya-space-laboratory/sats-Pass-Manger/tree/main/backend/src/utils/getSatelliteTle.ts | https://raw.githubusercontent.com/herzliya-space-laboratory/sats-Pass-Manger/82ef344/backend/src/utils/getSatelliteTle.ts | herzliya-space-laboratory/sats-Pass-Manger 82ef344 backend/src/utils/getSatelliteTle.ts | true | 200 | 264 | import axios from 'axios';
export default async function getSatelliteTle(SatelliteId)
{
const URL = `http://celestrak.com/satcat/tle.php?CATNR=${SatelliteId}`;
const response = await axios.get(URL);
const data = response.data;
return data;
} | 7 |
ClaudioDelgado85/sistema-de-gestion-municipal1 | dc3523a | src/utils/pdfGenerator.ts | TypeScript | www.github.com/ClaudioDelgado85/sistema-de-gestion-municipal1/tree/main/src/utils/pdfGenerator.ts | https://raw.githubusercontent.com/ClaudioDelgado85/sistema-de-gestion-municipal1/dc3523a/src/utils/pdfGenerator.ts | ClaudioDelgado85/sistema-de-gestion-municipal1 dc3523a src/utils/pdfGenerator.ts | true | 200 | 1,877 | import jsPDF from 'jspdf';
import 'jspdf-autotable';
import { Task } from '../types/task';
import { File } from '../types/api';
import { OtherActivity } from '../types/OtherActivity';
interface ReportData {
tasks: Task[];
files: File[];
otherActivities: OtherActivity[];
}
export function generateDailyReport(dat... | 2 |
brage-andreas/maser | 25c3297 | src/commands/info/role.ts | TypeScript | www.github.com/brage-andreas/maser/tree/main/src/commands/info/role.ts | https://raw.githubusercontent.com/brage-andreas/maser/25c3297/src/commands/info/role.ts | brage-andreas/maser 25c3297 src/commands/info/role.ts | true | 200 | 2,514 | import { type APIEmbed } from "discord-api-types/v9";
import {
ApplicationCommandOptionType,
type ChatInputApplicationCommandData,
type ChatInputCommandInteraction
} from "discord.js";
import { COLORS, defaultEmbed } from "../../constants/index.js";
import type Logger from "../../loggers/index.js";
import { type Com... | 3 |
sebastian-reyes/utp-parking-web | 8da9a8d | src/app/services/solicitud.service.ts | TypeScript | www.github.com/sebastian-reyes/utp-parking-web/tree/main/src/app/services/solicitud.service.ts | https://raw.githubusercontent.com/sebastian-reyes/utp-parking-web/8da9a8d/src/app/services/solicitud.service.ts | sebastian-reyes/utp-parking-web 8da9a8d src/app/services/solicitud.service.ts | true | 200 | 2,219 | import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, catchError, map, throwError } from 'rxjs';
import { environment } from '../../environments/environment.development';
import { Solicitud } from '../interface/solicitud';
import { Solicit... | 5 |
manuel-barreiro/pokemon-app | 960b716 | src/theme/theme.ts | TypeScript | www.github.com/manuel-barreiro/pokemon-app/tree/main/src/theme/theme.ts | https://raw.githubusercontent.com/manuel-barreiro/pokemon-app/960b716/src/theme/theme.ts | manuel-barreiro/pokemon-app 960b716 src/theme/theme.ts | true | 200 | 309 | // theme.ts
// 1. import `extendTheme` function
import { extendTheme, type ThemeConfig } from '@chakra-ui/react'
// 2. Add your color mode config
const config: ThemeConfig = {
useSystemColorMode: true,
}
// 3. extend the theme
const darkModeConfig = extendTheme({ config })
export default darkModeConfig | 6 |
richker/prime-queue-hub | 5ff7e0f | apps/worker/src/worker.module.ts | TypeScript | www.github.com/richker/prime-queue-hub/tree/main/apps/worker/src/worker.module.ts | https://raw.githubusercontent.com/richker/prime-queue-hub/5ff7e0f/apps/worker/src/worker.module.ts | richker/prime-queue-hub 5ff7e0f apps/worker/src/worker.module.ts | true | 200 | 611 | import { Module, Logger } from '@nestjs/common';
import { BullModule } from '@nestjs/bull';
import { WorkerController } from './worker.controller';
import { JobsProcessor } from './worker.service';
import { bullConfig, queueConfig } from '../../../src/shared/bull.config';
@Module({
imports: [
BullModule.forRoot(... | 0 |
phelipemon/carte | 8922621 | front-end/cardapio-kipper/src/hooks/useFoodDataMutate.ts | TypeScript | www.github.com/phelipemon/carte/tree/main/front-end/cardapio-kipper/src/hooks/useFoodDataMutate.ts | https://raw.githubusercontent.com/phelipemon/carte/8922621/front-end/cardapio-kipper/src/hooks/useFoodDataMutate.ts | phelipemon/carte 8922621 front-end/cardapio-kipper/src/hooks/useFoodDataMutate.ts | true | 200 | 727 | import axios, { AxiosPromise } from "axios"
import { FoodData } from "../interface/FoodData";
import { useMutation, useQueryClient } from "@tanstack/react-query";
const API_URL = "http://localhost:8080";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const postData = async (data: FoodData): AxiosP... | 1 |
denoland/kv-utils | 981122e | import_export.ts | TypeScript | www.github.com/denoland/kv-utils/tree/main/import_export.ts | https://raw.githubusercontent.com/denoland/kv-utils/981122e/import_export.ts | denoland/kv-utils 981122e import_export.ts | true | 200 | 16,474 | // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
/**
* Allows for the import and export of data from a {@linkcode Deno.Kv} store.
*
* ## Exporting Data
*
* Data can be exported from a {@linkcode Deno.Kv} store using the
* {@linkcode exportEntries} function. This function will return a s... | 7 |
Pratik-Prabhakarrao/eComProject-master | aa16f2f | src/app/seller-auth/seller-auth.component.ts | TypeScript | www.github.com/Pratik-Prabhakarrao/eComProject-master/tree/main/src/app/seller-auth/seller-auth.component.ts | https://raw.githubusercontent.com/Pratik-Prabhakarrao/eComProject-master/aa16f2f/src/app/seller-auth/seller-auth.component.ts | Pratik-Prabhakarrao/eComProject-master aa16f2f src/app/seller-auth/seller-auth.component.ts | true | 200 | 975 | import { Component, OnInit } from '@angular/core';
import { SellService } from '../services/sell.service';
import { Router } from '@angular/router';
import { SignUp } from '../dataType';
@Component({
selector: 'app-seller-auth',
templateUrl: './seller-auth.component.html',
styleUrls: ['./seller-auth.component.cs... | 3 |
wnwlals13/manimoa | 4ef2f1e | src/stories/input/input.stories.ts | TypeScript | www.github.com/wnwlals13/manimoa/tree/main/src/stories/input/input.stories.ts | https://raw.githubusercontent.com/wnwlals13/manimoa/4ef2f1e/src/stories/input/input.stories.ts | wnwlals13/manimoa 4ef2f1e src/stories/input/input.stories.ts | true | 200 | 1,616 | import FormField from '@/components/ui/inputs/FormField/component';
import { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
export const InputActionData = {
onChange: fn(),
};
const staticData = {
labelName: '',
onFieldChange: () => {},
errorMsg: '',
};
const meta = {
title... | 2 |
dnkchi2809/TodoListApp | a17c33e | action/import-folder-file.ts | TypeScript | www.github.com/dnkchi2809/TodoListApp/tree/main/action/import-folder-file.ts | https://raw.githubusercontent.com/dnkchi2809/TodoListApp/a17c33e/action/import-folder-file.ts | dnkchi2809/TodoListApp a17c33e action/import-folder-file.ts | true | 200 | 1,930 | /* eslint-disable @typescript-eslint/no-explicit-any */
interface DataItem {
id: number;
name: string;
createDate: string;
todoItemArray: [];
}
function onChange(event: any) {
const reader = new FileReader();
reader.onload = onReaderLoad;
reader.readAsText(event.target.files[0]);
}
function onReaderLoad... | 5 |
willtreuel6/marc-c-front-end | 9bb88b8 | trade-app-front-end/src/app/components/service-details/service-details.component.ts | TypeScript | www.github.com/willtreuel6/marc-c-front-end/tree/main/trade-app-front-end/src/app/components/service-details/service-details.component.ts | https://raw.githubusercontent.com/willtreuel6/marc-c-front-end/9bb88b8/trade-app-front-end/src/app/components/service-details/service-details.component.ts | willtreuel6/marc-c-front-end 9bb88b8 trade-app-front-end/src/app/components/service-details/service-details.component.ts | true | 200 | 1,146 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import data from '../../data/service.json';
@Component({
selector: 'app-service-details',
templateUrl: './service-details.component.html',
styleUrls: ['./service-details.component.css']
})
export class ServiceDet... | 0 |
NeokingdomDAO/dapp | 001abaf | pages/api/graphql.ts | TypeScript | www.github.com/NeokingdomDAO/dapp/tree/main/pages/api/graphql.ts | https://raw.githubusercontent.com/NeokingdomDAO/dapp/001abaf/pages/api/graphql.ts | NeokingdomDAO/dapp 001abaf pages/api/graphql.ts | true | 200 | 706 | import { withIronSessionApiRoute } from "iron-session/next";
import { NextApiRequest, NextApiResponse } from "next";
import { sessionOptions } from "@lib/session";
async function graphql(req: NextApiRequest, res: NextApiResponse) {
const cookie = req.session.cookie;
if (!cookie) {
return res.status(403).json(... | 4 |
Purvi987/MEAN | 175da42 | client/src/app/auth/auth.module.ts | TypeScript | www.github.com/Purvi987/MEAN/tree/main/client/src/app/auth/auth.module.ts | https://raw.githubusercontent.com/Purvi987/MEAN/175da42/client/src/app/auth/auth.module.ts | Purvi987/MEAN 175da42 client/src/app/auth/auth.module.ts | true | 200 | 617 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AuthRoutingModule } from './auth-routing.module';
import { LoginComponent } from './login/login.component';
import { RegistrationComponent } from './registration/registration.component';
import { ReactiveFormsModule } fro... | 1 |
NelleDuCiel/VOS | 6374351 | front-end/src/app/trial/trial-services/filter.service.ts | TypeScript | www.github.com/NelleDuCiel/VOS/tree/main/front-end/src/app/trial/trial-services/filter.service.ts | https://raw.githubusercontent.com/NelleDuCiel/VOS/6374351/front-end/src/app/trial/trial-services/filter.service.ts | NelleDuCiel/VOS 6374351 front-end/src/app/trial/trial-services/filter.service.ts | true | 200 | 4,259 | import { Injectable, EventEmitter } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, BehaviorSubject } from 'rxjs';
/**
* Filter service, provides and stores information about the filter status. For consistency between page changes.
* Stores information about... | 6 |
arziqulovsamandar/station | b1038e7 | src/categories/categories.service.ts | TypeScript | www.github.com/arziqulovsamandar/station/tree/main/src/categories/categories.service.ts | https://raw.githubusercontent.com/arziqulovsamandar/station/b1038e7/src/categories/categories.service.ts | arziqulovsamandar/station b1038e7 src/categories/categories.service.ts | true | 200 | 1,192 | import { Injectable } from '@nestjs/common';
import { CreateCategoryDto } from './dto/create-category.dto';
import { UpdateCategoryDto } from './dto/update-category.dto';
import { InjectModel } from '@nestjs/sequelize';
import { Category } from './models/category.model';
@Injectable()
export class CategoriesService {
... | 7 |
Melvin-88/arcadia | 82556c2 | arcadia.client.fe/src/components/ControlPanel/Clock/styles/Clock.ts | TypeScript | www.github.com/Melvin-88/arcadia/tree/main/arcadia.client.fe/src/components/ControlPanel/Clock/styles/Clock.ts | https://raw.githubusercontent.com/Melvin-88/arcadia/82556c2/arcadia.client.fe/src/components/ControlPanel/Clock/styles/Clock.ts | Melvin-88/arcadia 82556c2 arcadia.client.fe/src/components/ControlPanel/Clock/styles/Clock.ts | true | 200 | 716 | import { IStyle } from '@uifabric/styling';
import { classNamesFunction } from '@uifabric/utilities';
import { FontSize } from '../../../../styles/constants';
export interface IClockStyleProps {
className?: string;
}
export interface IClockStyles {
root: IStyle;
icon: IStyle;
}
export const getStyles = ({ clas... | 2 |
jrobeson/react-tsc-playground | b4d5fd1 | fetching/src/utils/http.ts | TypeScript | www.github.com/jrobeson/react-tsc-playground/tree/main/fetching/src/utils/http.ts | https://raw.githubusercontent.com/jrobeson/react-tsc-playground/b4d5fd1/fetching/src/utils/http.ts | jrobeson/react-tsc-playground b4d5fd1 fetching/src/utils/http.ts | true | 200 | 212 | export async function get(url: string) {
const response = await fetch(url);
if (!response.ok) {
throw new Error('Failed to fetch data');
}
const data = (await response.json()) as unknown;
return data;
}
| 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.