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
albert020119/Web-Project
f3ed734
src/app/app.module.ts
TypeScript
www.github.com/albert020119/Web-Project/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/albert020119/Web-Project/f3ed734/src/app/app.module.ts
albert020119/Web-Project f3ed734 src/app/app.module.ts
true
200
1,316
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { SearchBarComponent } from './components/search-bar/search-bar.component'; import { NavMenuComponent } fr...
3
luckfunc/jwt-api
b49f210
src/reply/reply.controller.ts
TypeScript
www.github.com/luckfunc/jwt-api/tree/main/src/reply/reply.controller.ts
https://raw.githubusercontent.com/luckfunc/jwt-api/b49f210/src/reply/reply.controller.ts
luckfunc/jwt-api b49f210 src/reply/reply.controller.ts
true
200
960
import { Controller, Get, Post, Body, Patch, Param, Delete, Query } from '@nestjs/common'; import { ReplyService } from './reply.service'; import { CreateReplyDto } from './dto/create-reply.dto'; import { UpdateReplyDto } from './dto/update-reply.dto'; @Controller('reply') export class ReplyController { constructor(...
6
signalz/demo
9f079da
login/http.ts
TypeScript
www.github.com/signalz/demo/tree/main/login/http.ts
https://raw.githubusercontent.com/signalz/demo/9f079da/login/http.ts
signalz/demo 9f079da login/http.ts
true
200
2,743
import { BaseQueryFn } from '@reduxjs/toolkit/query/react'; import axios, { AxiosRequestConfig, AxiosError } from 'axios'; import Cookies from 'js-cookie'; import { CommonConstants, AuthConstants } from '../constants'; import { getAccessToken } from '../helpers/auth'; import { WS_SHARED_ACCESS_TOKEN_KEY } from '../con...
0
cristianmercado19/tetris
c1379c1
tetris-core/src/model/board.ts
TypeScript
www.github.com/cristianmercado19/tetris/tree/main/tetris-core/src/model/board.ts
https://raw.githubusercontent.com/cristianmercado19/tetris/c1379c1/tetris-core/src/model/board.ts
cristianmercado19/tetris c1379c1 tetris-core/src/model/board.ts
true
200
3,389
import { Piece } from "./piece"; import { BlockStyle } from "./block-style"; export class Board { static COLUMNS = 10; static ROWS = 20; board: BlockStyle[][] = []; constructor() { this.clean(); } removeLine(lineToRemove: number): void { const newBoard: BlockStyle[][] = []; for(var...
5
shivangiupadhyay29/pokemon-dictonary
2923119
src/search/search.component.ts
TypeScript
www.github.com/shivangiupadhyay29/pokemon-dictonary/tree/main/src/search/search.component.ts
https://raw.githubusercontent.com/shivangiupadhyay29/pokemon-dictonary/2923119/src/search/search.component.ts
shivangiupadhyay29/pokemon-dictonary 2923119 src/search/search.component.ts
true
200
1,010
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { PokemonService } from '../service/pokemon/pokemon.service'; import { SearchService } from '../service/search/search.service'; import { FormGroup, FormControl, Validators } from "@angular/forms"; import { debounceTime, distinctUntilChange...
7
pankaj-sharma-oslash/Notes-App
95a7490
notes-worker/src/index.ts
TypeScript
www.github.com/pankaj-sharma-oslash/Notes-App/tree/main/notes-worker/src/index.ts
https://raw.githubusercontent.com/pankaj-sharma-oslash/Notes-App/95a7490/notes-worker/src/index.ts
pankaj-sharma-oslash/Notes-App 95a7490 notes-worker/src/index.ts
true
200
3,808
interface NotesDataType { id: string, title: string, description: string } declare let NOTES: KVNamespace addEventListener("fetch", (event: FetchEvent) => { event.respondWith(handleRequest(event.request)); }); async function handleRequest(request: Request): Promise<Response> { const corsHeaders: { [key: strin...
2
consolelabs/tripod-web
f30101f
hooks/useBearPieces.ts
TypeScript
www.github.com/consolelabs/tripod-web/tree/main/hooks/useBearPieces.ts
https://raw.githubusercontent.com/consolelabs/tripod-web/f30101f/hooks/useBearPieces.ts
consolelabs/tripod-web f30101f hooks/useBearPieces.ts
true
200
5,027
import { useEffect, useState } from "react"; import { PieceEnum } from "triple-pod-game-engine"; import { v4 as uuidv4 } from "uuid"; import { useGameContext } from "../contexts/game"; const GRID_SIZE = 6; export class BearPiece { id: string; pieceId: PieceEnum; initialCoord?: { x: number; y: number }; coord:...
4
abozanona/vscode-ollama-chat
d136d2c
src/store/chat.ts
TypeScript
www.github.com/abozanona/vscode-ollama-chat/tree/main/src/store/chat.ts
https://raw.githubusercontent.com/abozanona/vscode-ollama-chat/d136d2c/src/store/chat.ts
abozanona/vscode-ollama-chat d136d2c src/store/chat.ts
true
200
6,250
import { ref, computed } from 'vue' import { defineStore } from 'pinia' import { logger } from '../utils/logging' import { VSCodeAPI } from '../vscode-api' import { OllamaService } from '../services/ollamaService' import { fileOps } from '../utils/file-ops' interface Message { role: 'user' | 'assistant' content: s...
7
Pragati1717/To-do-Tracker-Application
8365906
new-task.component.ts
TypeScript
www.github.com/Pragati1717/To-do-Tracker-Application/tree/main/new-task.component.ts
https://raw.githubusercontent.com/Pragati1717/To-do-Tracker-Application/8365906/new-task.component.ts
Pragati1717/To-do-Tracker-Application 8365906 new-task.component.ts
true
200
2,000
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Router } from '@angular/router'; import { DashService } from 'src/app/Service/Dashoard/dash.service'; import { UserTaskCardComp...
5
oddyca/next-showcase
f811964
components/index.ts
TypeScript
www.github.com/oddyca/next-showcase/tree/main/components/index.ts
https://raw.githubusercontent.com/oddyca/next-showcase/f811964/components/index.ts
oddyca/next-showcase f811964 components/index.ts
true
200
835
import Landing from "./Landing/Landing"; import CustomLink from "./CustomLink/CustomLink"; import MoreDetailsModal from './MoreDetailsModal/MoreDetailsModal'; import Header from './Header/Header'; import Footer from "./Footer/Footer"; import Events from './Events/Events'; import SearchBar from "./SearchBar/SearchBar"; ...
0
shobhitexe/Portfolio
7ca4f1c
src/app/projects/data/fundyourtrading.ts
TypeScript
www.github.com/shobhitexe/Portfolio/tree/main/src/app/projects/data/fundyourtrading.ts
https://raw.githubusercontent.com/shobhitexe/Portfolio/7ca4f1c/src/app/projects/data/fundyourtrading.ts
shobhitexe/Portfolio 7ca4f1c src/app/projects/data/fundyourtrading.ts
true
200
941
export const fytBaseUrl: string = "/images/Projects/fundyourtrading"; export default { head: { title: "FundYourTrading", stack: "NEXT JS", type: "Freelancing Project", time: "March 2024 - March 2024", headImage: "bg-fundyourtrading", }, desc: { descHead: "created the pre-launch and ...
2
MuhammadMohsin7/BuyNest
20311b8
src/app/modules/products/services/product.service.ts
TypeScript
www.github.com/MuhammadMohsin7/BuyNest/tree/main/src/app/modules/products/services/product.service.ts
https://raw.githubusercontent.com/MuhammadMohsin7/BuyNest/20311b8/src/app/modules/products/services/product.service.ts
MuhammadMohsin7/BuyNest 20311b8 src/app/modules/products/services/product.service.ts
true
200
3,259
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, of } from 'rxjs'; import { environment } from '../../../../environments/environment'; export interface Product { id: number; name: string; description: string; price: number; imageUrl: string; ...
4
bnavya21/ClinicalTrialManagementSystem
2412f83
src/app/DataShare/patientusername.service.ts
TypeScript
www.github.com/bnavya21/ClinicalTrialManagementSystem/tree/main/src/app/DataShare/patientusername.service.ts
https://raw.githubusercontent.com/bnavya21/ClinicalTrialManagementSystem/2412f83/src/app/DataShare/patientusername.service.ts
bnavya21/ClinicalTrialManagementSystem 2412f83 src/app/DataShare/patientusername.service.ts
true
200
425
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class PatientusernameService { userName =""; private patientUserName = new BehaviorSubject<string>(this.userName); CurrentPatientUserName = this.patientUserName.asObservable(); constructor...
5
karol-depka/codility_exercises
3629bbb
apps/codility4/src/app/utils/radixSort.ts
TypeScript
www.github.com/karol-depka/codility_exercises/tree/main/apps/codility4/src/app/utils/radixSort.ts
https://raw.githubusercontent.com/karol-depka/codility_exercises/3629bbb/apps/codility4/src/app/utils/radixSort.ts
karol-depka/codility_exercises 3629bbb apps/codility4/src/app/utils/radixSort.ts
true
200
2,623
function getDigit(num: number, position: number): number { return Math.floor(Math.abs(num) / Math.pow(10, position)) % 10; } function digitCount(num: number): number { if (num === 0) return 1; return Math.floor(Math.log10(Math.abs(num))) + 1; } function mostDigits(nums: number[]): number { let maxDigits = 0; ...
7
pawap90/terminal-rss-feed
33f1db1
src/services/cache.service.ts
TypeScript
www.github.com/pawap90/terminal-rss-feed/tree/main/src/services/cache.service.ts
https://raw.githubusercontent.com/pawap90/terminal-rss-feed/33f1db1/src/services/cache.service.ts
pawap90/terminal-rss-feed 33f1db1 src/services/cache.service.ts
true
200
2,335
import { Cache } from "file-system-cache"; type CacheRecord<T> = { data: T; expiration?: Date; }; type CacheResult<T> = | { success: true; record: CacheRecord<T> } | { success: false; expired: boolean; notFound: boolean }; export class CacheService { private cacheInstance = new Cache(); /** ...
0
mtcute/mtcute
ab4ad10
packages/core/src/highlevel/utils/convert-file-id.ts
TypeScript
www.github.com/mtcute/mtcute/tree/main/packages/core/src/highlevel/utils/convert-file-id.ts
https://raw.githubusercontent.com/mtcute/mtcute/ab4ad10/packages/core/src/highlevel/utils/convert-file-id.ts
mtcute/mtcute ab4ad10 packages/core/src/highlevel/utils/convert-file-id.ts
true
200
11,101
import type { tl } from '@mtcute/tl' import { parseFileId, tdFileId as td } from '@mtcute/file-id' import Long from 'long' import { assertNever } from '../../types/utils.js' import { parseMarkedPeerId } from '../../utils/peer-utils.js' import FileType = td.FileType const EMPTY_BUFFER = new Uint8Array(0) type FileId...
2
Mnergiz01/Shoes-Market
4ab3927
Shoes/src/router/index.ts
TypeScript
www.github.com/Mnergiz01/Shoes-Market/tree/main/Shoes/src/router/index.ts
https://raw.githubusercontent.com/Mnergiz01/Shoes-Market/4ab3927/Shoes/src/router/index.ts
Mnergiz01/Shoes-Market 4ab3927 Shoes/src/router/index.ts
true
200
813
import { createRouter, createWebHistory } from 'vue-router' import Homepage from '@/views/Homepage.vue' import AddCart from '@/views/AddCart.vue' import MyBag from '@/views/MyBag.vue' import Login from '@/views/Login.vue' import Register from '@/views/Register.vue' const router = createRouter({ history: createWebHis...
4
LordGhapa/nlw-node-04-24
2dc6d1f
prisma/seed.ts
TypeScript
www.github.com/LordGhapa/nlw-node-04-24/tree/main/prisma/seed.ts
https://raw.githubusercontent.com/LordGhapa/nlw-node-04-24/2dc6d1f/prisma/seed.ts
LordGhapa/nlw-node-04-24 2dc6d1f prisma/seed.ts
true
200
1,326
import { faker } from '@faker-js/faker' import {db} from "../api/src/lib/prisma" import dayjs from 'dayjs' import { Prisma } from '@prisma/client' async function seed() { const eventId = '9e9bd979-9d10-4915-b339-3786b1634f33' await db.event.deleteMany() await db.event.create({ data: { id: eventId, ...
5
tsegaye27/Afalagi-Backend
eed87f0
src/auth/auth.service.ts
TypeScript
www.github.com/tsegaye27/Afalagi-Backend/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/tsegaye27/Afalagi-Backend/eed87f0/src/auth/auth.service.ts
tsegaye27/Afalagi-Backend eed87f0 src/auth/auth.service.ts
true
200
13,181
import { BadRequestException, ForbiddenException, Injectable, InternalServerErrorException, NotAcceptableException, NotFoundException, UnauthorizedException, } from '@nestjs/common'; import { PrismaService } from 'src/prisma/prisma.service'; import { ForgotPasswordDto, ResetPasswordDto, ...
7
0LNetworkCommunity/explorer
23f1299
api/src/ol/movements/movements.resolver.ts
TypeScript
www.github.com/0LNetworkCommunity/explorer/tree/main/api/src/ol/movements/movements.resolver.ts
https://raw.githubusercontent.com/0LNetworkCommunity/explorer/23f1299/api/src/ol/movements/movements.resolver.ts
0LNetworkCommunity/explorer 23f1299 api/src/ol/movements/movements.resolver.ts
true
200
951
import { Args, Resolver, Subscription } from '@nestjs/graphql'; import { Repeater } from '@repeaterjs/repeater'; import { NatsService } from '../../nats/nats.service.js'; @Resolver() export class MovementsResolver { public constructor(private readonly natsService: NatsService) {} @Subscription((returns) => Strin...
0
BlakeStevenson/equation-parser
5dc8bac
src/errors.ts
TypeScript
www.github.com/BlakeStevenson/equation-parser/tree/main/src/errors.ts
https://raw.githubusercontent.com/BlakeStevenson/equation-parser/5dc8bac/src/errors.ts
BlakeStevenson/equation-parser 5dc8bac src/errors.ts
true
200
1,099
/** Thrown when the expression contains invalid syntax. */ export class InvalidSyntaxError extends Error { constructor(message: string = "Invalid syntax") { super(message); this.name = "InvalidSyntaxError"; // These two lines are crucial for instanceof to work correctly Object.setPrototypeOf(this, Inv...
2
CeraStroh/study-application
cfa3bc3
app/lib/utils.ts
TypeScript
www.github.com/CeraStroh/study-application/tree/main/app/lib/utils.ts
https://raw.githubusercontent.com/CeraStroh/study-application/cfa3bc3/app/lib/utils.ts
CeraStroh/study-application cfa3bc3 app/lib/utils.ts
true
200
321
export const formatDateToLocal = ( dateStr: string, locale: string = 'en-US', ) => { const date = new Date(dateStr); const options: Intl.DateTimeFormatOptions = { day: 'numeric', month: 'short', year: 'numeric', }; const formatter = new Intl.DateTimeFormat(locale, options); return formatter.format(date); }...
4
botirk38/smartGuardian
96213fd
app/api/contact/route.ts
TypeScript
www.github.com/botirk38/smartGuardian/tree/main/app/api/contact/route.ts
https://raw.githubusercontent.com/botirk38/smartGuardian/96213fd/app/api/contact/route.ts
botirk38/smartGuardian 96213fd app/api/contact/route.ts
true
200
900
import { Resend } from "resend"; import { EmailContactTemplate } from "@/components/ui/email-template-contact"; export async function POST(request: Request) { const contactInfoResponse = await request.json(); const resend = new Resend(process.env.RESEND_API_KEY); const { data, error } = await resend.emai...
5
BIMASKUY/Bootcamp-Kampus-Gratis-8
f2e2502
src/services/daily.service.ts
TypeScript
www.github.com/BIMASKUY/Bootcamp-Kampus-Gratis-8/tree/main/src/services/daily.service.ts
https://raw.githubusercontent.com/BIMASKUY/Bootcamp-Kampus-Gratis-8/f2e2502/src/services/daily.service.ts
BIMASKUY/Bootcamp-Kampus-Gratis-8 f2e2502 src/services/daily.service.ts
true
200
1,529
import { IDailyActiveUsers, DailyActiveUsers } from '../models/daily.model'; import { Types } from 'mongoose'; import { formatDailyActiveUsers } from '../utils/daily.util'; import { IFormattedDailyActiveUser } from '../interface/daily.interface'; export const updateDailyActiveUsers = async (userId: Types.ObjectId): Pr...
7
zenil119/task
9d84f89
src/module/auth/jwt.strategy.ts
TypeScript
www.github.com/zenil119/task/tree/main/src/module/auth/jwt.strategy.ts
https://raw.githubusercontent.com/zenil119/task/9d84f89/src/module/auth/jwt.strategy.ts
zenil119/task 9d84f89 src/module/auth/jwt.strategy.ts
true
200
803
import { UnauthorizedException } from '@nestjs/common'; import { PassportStrategy } from '@nestjs/passport'; import { InjectRepository } from '@nestjs/typeorm'; import { ExtractJwt, Strategy } from 'passport-jwt'; import { authRepositoy } from './auth.repository'; import { JwtPayload } from './jwt-interface'; import { ...
0
KHkhalaf/Vertrauenswurdigkeits-platform
eee36c0
Frontend/src/app/unternehmen-config/unternehmen.reducer.ts
TypeScript
www.github.com/KHkhalaf/Vertrauenswurdigkeits-platform/tree/main/Frontend/src/app/unternehmen-config/unternehmen.reducer.ts
https://raw.githubusercontent.com/KHkhalaf/Vertrauenswurdigkeits-platform/eee36c0/Frontend/src/app/unternehmen-config/unternehmen.reducer.ts
KHkhalaf/Vertrauenswurdigkeits-platform eee36c0 Frontend/src/app/unternehmen-config/unternehmen.reducer.ts
true
200
371
import { createReducer, on } from '@ngrx/store'; import { Unternehmen } from './unternehmen.model'; import * as UnternehmenActions from './unernehmen.actions'; export const initialState: Unternehmen[] = []; export const UnternehmenReducer = createReducer( initialState, on(UnternehmenActions.loadUnternehmenSuccess...
2
SSR-Med/spicy-backend
b9d2e4c
src/services/card/TeamCardService.ts
TypeScript
www.github.com/SSR-Med/spicy-backend/tree/main/src/services/card/TeamCardService.ts
https://raw.githubusercontent.com/SSR-Med/spicy-backend/b9d2e4c/src/services/card/TeamCardService.ts
SSR-Med/spicy-backend b9d2e4c src/services/card/TeamCardService.ts
true
200
1,704
//Dependencies import { Sequelize } from "sequelize"; //Models import { CardxUser } from "../../models/CardxUser"; import { TeamCard } from "../../models/TeamCard"; //Custom error import { httpError } from "../../config/CustomError"; import { Card } from "../../models/Card"; import { teamCardInterface } from "../../s...
4
juancarlosbs/pumpkin
5e6cc7c
apps/api/src/workouts/workout/workout.controller.ts
TypeScript
www.github.com/juancarlosbs/pumpkin/tree/main/apps/api/src/workouts/workout/workout.controller.ts
https://raw.githubusercontent.com/juancarlosbs/pumpkin/5e6cc7c/apps/api/src/workouts/workout/workout.controller.ts
juancarlosbs/pumpkin 5e6cc7c apps/api/src/workouts/workout/workout.controller.ts
true
200
1,634
import { Controller, Get, Post, Body, Param, Put, Delete, HttpCode, BadRequestException, } from '@nestjs/common'; import { WorkoutService } from './workout.service'; import { CreateWorkoutDto, UpdateWorkoutDto } from './dto/workout.dto'; import { createWorkoutSchema, updateWorkoutSchema } from './sche...
5
SuleimanKh97/Angular
8d54eed
BehaviorSubject/behaviorsubject.client/src/app/app.module.ts
TypeScript
www.github.com/SuleimanKh97/Angular/tree/main/BehaviorSubject/behaviorsubject.client/src/app/app.module.ts
https://raw.githubusercontent.com/SuleimanKh97/Angular/8d54eed/BehaviorSubject/behaviorsubject.client/src/app/app.module.ts
SuleimanKh97/Angular 8d54eed BehaviorSubject/behaviorsubject.client/src/app/app.module.ts
true
200
2,087
import { HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ProductDetailComponent } from './product-detail...
7
Badhon-Roy/portfolio-server
d56d0ce
src/module/blog/blog.controller.ts
TypeScript
www.github.com/Badhon-Roy/portfolio-server/tree/main/src/module/blog/blog.controller.ts
https://raw.githubusercontent.com/Badhon-Roy/portfolio-server/d56d0ce/src/module/blog/blog.controller.ts
Badhon-Roy/portfolio-server d56d0ce src/module/blog/blog.controller.ts
true
200
1,593
import catchAsync from "../../utils/catchAsync"; import { BlogServices } from "./blog.service"; //*create blog const createBlog = catchAsync(async (req, res) => { const result = await BlogServices.createBlogIntoDB(req.body) res.status(200).json({ success: true, message: "Blog created success...
0
Vandanasahu-nickelfox/nestJs-crud
25ddb00
src/car/car.controller.ts
TypeScript
www.github.com/Vandanasahu-nickelfox/nestJs-crud/tree/main/src/car/car.controller.ts
https://raw.githubusercontent.com/Vandanasahu-nickelfox/nestJs-crud/25ddb00/src/car/car.controller.ts
Vandanasahu-nickelfox/nestJs-crud 25ddb00 src/car/car.controller.ts
true
200
2,289
import { Body, Controller, Delete, Get, Param, Post, Put, Query, HttpException, HttpStatus, UseGuards } from '@nestjs/common'; import { CarService } from './car.service'; import { CarDto } from './car.dto'; import { JwtAuthGuard } from '../auth/jwt.guard'; // Import JwtAuthGuard @Controller('car') export class CarCont...
4
pallad-ts/project-checksum
e96e8e9
packages/state-file/src/StateConfigLoader.ts
TypeScript
www.github.com/pallad-ts/project-checksum/tree/main/packages/state-file/src/StateConfigLoader.ts
https://raw.githubusercontent.com/pallad-ts/project-checksum/e96e8e9/packages/state-file/src/StateConfigLoader.ts
pallad-ts/project-checksum e96e8e9 packages/state-file/src/StateConfigLoader.ts
true
200
2,291
import {byJsonSchema} from "alpha-validator-bridge-jsonschema"; import {cosmiconfig} from "cosmiconfig"; import {Config} from "./Config"; import {StateManager} from "./StateManager"; import {ERRORS} from "./errors"; import * as path from "path"; import {StateGenerator} from "./StateGenerator"; import {ConfigLoader} fro...
2
sobuz80/nestjs-boilerplate
e188ecb
src/app.module.ts
TypeScript
www.github.com/sobuz80/nestjs-boilerplate/tree/main/src/app.module.ts
https://raw.githubusercontent.com/sobuz80/nestjs-boilerplate/e188ecb/src/app.module.ts
sobuz80/nestjs-boilerplate e188ecb src/app.module.ts
true
200
573
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { ConfigModule } from '@nestjs/config'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { CategoryModule } from './category/category.module'; @Module({ imports: [ ...
5
techtic-full-stack/92y
97eb1bf
src/components/Tags/types.ts
TypeScript
www.github.com/techtic-full-stack/92y/tree/main/src/components/Tags/types.ts
https://raw.githubusercontent.com/techtic-full-stack/92y/97eb1bf/src/components/Tags/types.ts
techtic-full-stack/92y 97eb1bf src/components/Tags/types.ts
true
200
429
import React from 'react'; export enum TagType { theArts = 'the-arts', history = 'history', foodCooking = 'food-cooking-drink', literature = 'literature', currentEvent = 'current-events-politics-economics', status = 'status', live = 'live', seats = 'seats', } export type TagProps = Rea...
0
alphabatem/bern_crank
f8f7819
allocate_bern_rewards.ts
TypeScript
www.github.com/alphabatem/bern_crank/tree/main/allocate_bern_rewards.ts
https://raw.githubusercontent.com/alphabatem/bern_crank/f8f7819/allocate_bern_rewards.ts
alphabatem/bern_crank f8f7819 allocate_bern_rewards.ts
true
200
24,485
import * as anchor from "@project-serum/anchor"; import Client from "./token_swap/client"; import { createAssociatedTokenAccountInstruction, createBurnCheckedInstruction, createTransferCheckedInstruction, createWithdrawWithheldTokensFromAccountsInstruction, getAssociatedTokenAddressSync, TOKEN_2022_PROGRAM_ID, T...
7
sudtanj/Auth-Micro-Services
6cf906b
src/user/user.service.ts
TypeScript
www.github.com/sudtanj/Auth-Micro-Services/tree/main/src/user/user.service.ts
https://raw.githubusercontent.com/sudtanj/Auth-Micro-Services/6cf906b/src/user/user.service.ts
sudtanj/Auth-Micro-Services 6cf906b src/user/user.service.ts
true
200
1,662
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository, FindOneOptions } from 'typeorm'; import { User } from './user.entity'; import { UserUpdate } from './dto/user-update.dto'; @Injectable() export class UserService { constructor( ...
4
bjing94/outside-digital-test
be9a972
src/configuration/data-source.ts
TypeScript
www.github.com/bjing94/outside-digital-test/tree/main/src/configuration/data-source.ts
https://raw.githubusercontent.com/bjing94/outside-digital-test/be9a972/src/configuration/data-source.ts
bjing94/outside-digital-test be9a972 src/configuration/data-source.ts
true
200
533
import { DataSource } from 'typeorm'; // Нужен для создания миграций. const AppDataSource = new DataSource({ type: 'postgres', host: process.env.DB_HOST, port: parseInt(process.env.DB_PORT), database: process.env.DB_NAME, username: process.env.DB_USER, password: process.env.DB_PASSWORD, entities: ['src/...
2
lawric1/tiny-radio
dc7fb40
tiny-radio/src/main.ts
TypeScript
www.github.com/lawric1/tiny-radio/tree/main/tiny-radio/src/main.ts
https://raw.githubusercontent.com/lawric1/tiny-radio/dc7fb40/tiny-radio/src/main.ts
lawric1/tiny-radio dc7fb40 tiny-radio/src/main.ts
true
200
5,579
import { open } from "@tauri-apps/api/shell"; import playIcon from "/play.svg" import pauseIcon from "/pause.svg" import "./style.css"; let audio = document.getElementById("audio") as HTMLIFrameElement; let title = document.getElementById("title") as HTMLParagraphElement; let backdrop = document.getElementById("b...
5
Ala-Younes/nestJs-example
aaae236
src/main.ts
TypeScript
www.github.com/Ala-Younes/nestJs-example/tree/main/src/main.ts
https://raw.githubusercontent.com/Ala-Younes/nestJs-example/aaae236/src/main.ts
Ala-Younes/nestJs-example aaae236 src/main.ts
true
200
330
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import CustomErrorPipe from './utils/validator-error-handler'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(CustomErrorPipe); await app.listen(process.env.PORT || 3000); } boo...
0
William-Fernandes252/advisor.ai-web
aa9d31c
lib/schemas.ts
TypeScript
www.github.com/William-Fernandes252/advisor.ai-web/tree/main/lib/schemas.ts
https://raw.githubusercontent.com/William-Fernandes252/advisor.ai-web/aa9d31c/lib/schemas.ts
William-Fernandes252/advisor.ai-web aa9d31c lib/schemas.ts
true
200
3,212
import validator from "validator"; import { z } from "zod"; export const signInSchema = z.object({ email: z .string({ required_error: "Email is required", description: "User email", }) .min(1, "Email is required") .email("Invalid email"), password: z.string({ required_error: "Password is required", ...
7
Rich4rd16/Front-sonarqube
b2a4e6e
src/app/demo/service/meter.service.ts
TypeScript
www.github.com/Rich4rd16/Front-sonarqube/tree/main/src/app/demo/service/meter.service.ts
https://raw.githubusercontent.com/Rich4rd16/Front-sonarqube/b2a4e6e/src/app/demo/service/meter.service.ts
Rich4rd16/Front-sonarqube b2a4e6e src/app/demo/service/meter.service.ts
true
200
3,446
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Meter } from '../api/meter.model'; import { map, catchError } from 'rxjs/operators'; import { throwError } from 'rxjs'; @Injectable({ providedIn: 'root...
4
PiotrPabichCode/SmartSenior
2da5dc8
src/screens/Pharmacies/modules/PharmaciesScreen/SearchForm/types.ts
TypeScript
www.github.com/PiotrPabichCode/SmartSenior/tree/main/src/screens/Pharmacies/modules/PharmaciesScreen/SearchForm/types.ts
https://raw.githubusercontent.com/PiotrPabichCode/SmartSenior/2da5dc8/src/screens/Pharmacies/modules/PharmaciesScreen/SearchForm/types.ts
PiotrPabichCode/SmartSenior 2da5dc8 src/screens/Pharmacies/modules/PharmaciesScreen/SearchForm/types.ts
true
200
1,162
import { Pharmacies } from '@src/models'; export interface SearchFormProps { onLoad: (_: Pharmacies) => void; } export const provinces = [ { label: 'Kujawsko-pomorskie', value: 'kujawsko-pomorskie' }, { label: 'Łódzkie', value: 'łódzkie' }, { label: 'Dolnośląskie', value: 'dolnośląskie' }, { label: 'Lubelsk...
5
CarlosAl96/front-apbtpedigree
d485d45
src/app/modules/forum/topics-list/topics-list.component.ts
TypeScript
www.github.com/CarlosAl96/front-apbtpedigree/tree/main/src/app/modules/forum/topics-list/topics-list.component.ts
https://raw.githubusercontent.com/CarlosAl96/front-apbtpedigree/d485d45/src/app/modules/forum/topics-list/topics-list.component.ts
CarlosAl96/front-apbtpedigree d485d45 src/app/modules/forum/topics-list/topics-list.component.ts
true
200
15,475
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { TranslocoModule, TranslocoService } from '@jsverse/transloco'; import { ButtonModule } from 'primeng/button'; import { CardModule } from 'primeng/card'; import { DropdownModule } from 'primeng/dropdown'...
2
tetra-cms/Web-App
9b893b2
content/tabbar/TabBarItems.ts
TypeScript
www.github.com/tetra-cms/Web-App/tree/main/content/tabbar/TabBarItems.ts
https://raw.githubusercontent.com/tetra-cms/Web-App/9b893b2/content/tabbar/TabBarItems.ts
tetra-cms/Web-App 9b893b2 content/tabbar/TabBarItems.ts
true
200
559
import type { TabBarElement } from "~/types/tabbar/TabBarElement"; import CartIcon from '~/assets/svg/cart.svg?skipsvgo'; import HouseIcon from '~/assets/svg/house.svg?skipsvgo'; import UserIcon from '~/assets/svg/person.svg?skipsvgo'; export const TabBarItems : Array<TabBarElement> = [ { icon: HouseIcon, ...
4
phongnguyenrvn1995/golf_manager
6ceb72d
src/database/models/User.ts
TypeScript
www.github.com/phongnguyenrvn1995/golf_manager/tree/main/src/database/models/User.ts
https://raw.githubusercontent.com/phongnguyenrvn1995/golf_manager/6ceb72d/src/database/models/User.ts
phongnguyenrvn1995/golf_manager 6ceb72d src/database/models/User.ts
true
200
2,251
import { ResultSet } from "react-native-sqlite-storage"; import { database } from "../db"; export interface User { id?: number; name: string; email: string; }; export const userModel = { tableName: "users", createTableSQL: `CREATE TABLE IF NOT EXISTS users ( id INTEGER PRIMARY...
7
FelipeKarah/pirabeer
984137d
mobile/src/screens/RequestDetails/styles.ts
TypeScript
www.github.com/FelipeKarah/pirabeer/tree/main/mobile/src/screens/RequestDetails/styles.ts
https://raw.githubusercontent.com/FelipeKarah/pirabeer/984137d/mobile/src/screens/RequestDetails/styles.ts
FelipeKarah/pirabeer 984137d mobile/src/screens/RequestDetails/styles.ts
true
200
2,625
import { StyleSheet } from 'react-native'; import { THEME } from '../../theme'; export const styles = StyleSheet.create({ container: { flex:1 }, header:{ width: '100%', flexDirection:'row', alignItems:'center', marginTop:28, paddingHorizontal:32, justifyContent:'space-between', }, ...
0
GregoryRamos/PruebaTecnica
6aed38c
FEestudiante/src/app/components/attendace/attendace.component.spec.ts
TypeScript
www.github.com/GregoryRamos/PruebaTecnica/tree/main/FEestudiante/src/app/components/attendace/attendace.component.spec.ts
https://raw.githubusercontent.com/GregoryRamos/PruebaTecnica/6aed38c/FEestudiante/src/app/components/attendace/attendace.component.spec.ts
GregoryRamos/PruebaTecnica 6aed38c FEestudiante/src/app/components/attendace/attendace.component.spec.ts
true
200
580
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AttendaceComponent } from './attendace.component'; describe('AttendaceComponent', () => { let component: AttendaceComponent; let fixture: ComponentFixture<AttendaceComponent>; beforeEach(() => { TestBed.configureTestingModule({ ...
5
ConjurusRex/typescript
7d5cb2d
4class&interface/1class.ts
TypeScript
www.github.com/ConjurusRex/typescript/tree/main/4class&interface/1class.ts
https://raw.githubusercontent.com/ConjurusRex/typescript/7d5cb2d/4class%26interface/1class.ts
ConjurusRex/typescript 7d5cb2d 4class&interface/1class.ts
true
200
606
class Department { name: string; constructor(name: string) { this.name = name; } // describe() { // console.log('department: ' + this.name); // } describe(this: Department) { console.log('department: ' + this.name); } } const finance = new Department('finance'); console.log(finance); finan...
3
rkamysz/evm-game-backend
9fcbd28
backend/src/api/players/list-players.route-io.ts
TypeScript
www.github.com/rkamysz/evm-game-backend/tree/main/backend/src/api/players/list-players.route-io.ts
https://raw.githubusercontent.com/rkamysz/evm-game-backend/9fcbd28/backend/src/api/players/list-players.route-io.ts
rkamysz/evm-game-backend 9fcbd28 backend/src/api/players/list-players.route-io.ts
true
200
731
import { Request, Response } from "express"; import { Result, RouteIO } from "@soapjs/soap"; import { Player } from "../../features"; type ListPlayersModel = { playerAddress: string; score: number; }; export class ListPlayersRouteIO implements RouteIO<Player, unknown, Request, Response> { toResponse( resp...
1
Mohammedrisvanvm/basys-mern
1942feb
basysbackend/src/middleware/credential.middleware.ts
TypeScript
www.github.com/Mohammedrisvanvm/basys-mern/tree/main/basysbackend/src/middleware/credential.middleware.ts
https://raw.githubusercontent.com/Mohammedrisvanvm/basys-mern/1942feb/basysbackend/src/middleware/credential.middleware.ts
Mohammedrisvanvm/basys-mern 1942feb basysbackend/src/middleware/credential.middleware.ts
true
200
359
import type { NextFunction, Request, Response } from "express"; export const allowedOrigins = [ "http://localhost:5173", ]; const credentials = (req: Request, res: Response, next: NextFunction) => { if (allowedOrigins.includes(req.headers.origin)) { res.header("Access-Control-Allow-Credentials", "true"); } ...
2
SavostinIllia/pixi-game
b08c8a9
shared/components/gameInit/gameInit.ts
TypeScript
www.github.com/SavostinIllia/pixi-game/tree/main/shared/components/gameInit/gameInit.ts
https://raw.githubusercontent.com/SavostinIllia/pixi-game/b08c8a9/shared/components/gameInit/gameInit.ts
SavostinIllia/pixi-game b08c8a9 shared/components/gameInit/gameInit.ts
true
200
2,195
import { Container, Graphics, Text } from "pixi.js"; import { startGameButtonHandler } from "./startGameButtonHandler"; import { gameChestContainerHandler } from "./gameChestContainerHandler"; import { eventBus } from "../../utils/eventBus"; export interface GameContainer extends Container { customName: string; } e...
4
chambi-GI/themeforest_emplate
4520bd7
Angular-Zenix-v1.2-19-March-2024/package/src/app/plugins/charts/apex/bar/bar-images/bar-images.component.ts
TypeScript
www.github.com/chambi-GI/themeforest_emplate/tree/main/Angular-Zenix-v1.2-19-March-2024/package/src/app/plugins/charts/apex/bar/bar-images/bar-images.component.ts
https://raw.githubusercontent.com/chambi-GI/themeforest_emplate/4520bd7/Angular-Zenix-v1.2-19-March-2024/package/src/app/plugins/charts/apex/bar/bar-images/bar-images.component.ts
chambi-GI/themeforest_emplate 4520bd7 Angular-Zenix-v1.2-19-March-2024/package/src/app/plugins/charts/apex/bar/bar-images/bar-images.component.ts
true
200
2,013
import { Component } from '@angular/core'; import { ApexAxisChartSeries, ApexChart, ApexPlotOptions, ApexYAxis, ApexDataLabels, ApexStroke, ApexTitleSubtitle, ApexFill, ApexGrid, NgApexchartsModule, } from "ng-apexcharts"; @Component({ selector: 'app-bar-images', standalone: tru...
7
Grants-As-A-Service/GAAS-remix
5c317b0
app/components/hooks/formValidation.ts
TypeScript
www.github.com/Grants-As-A-Service/GAAS-remix/tree/main/app/components/hooks/formValidation.ts
https://raw.githubusercontent.com/Grants-As-A-Service/GAAS-remix/5c317b0/app/components/hooks/formValidation.ts
Grants-As-A-Service/GAAS-remix 5c317b0 app/components/hooks/formValidation.ts
true
200
2,170
import { Dispatch, SetStateAction, useReducer, useState } from "react"; import { responseHandler } from "~/utils/handler"; export const validEmail = (email: string) => { return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email); }; export const validPassword = (password: string) => { return /^(?=.*[0-9])(?...
6
oburakergen/news-workspace
c77227c
packages/api/src/modules/feeds/feeds.module.ts
TypeScript
www.github.com/oburakergen/news-workspace/tree/main/packages/api/src/modules/feeds/feeds.module.ts
https://raw.githubusercontent.com/oburakergen/news-workspace/c77227c/packages/api/src/modules/feeds/feeds.module.ts
oburakergen/news-workspace c77227c packages/api/src/modules/feeds/feeds.module.ts
true
200
443
import { Module } from "@nestjs/common"; import { FeedsController } from "./feeds.controller"; import { FeedsService } from "./feeds.service"; import { MongooseModule } from "@nestjs/mongoose"; import { Feeds, Feedschema } from "./schemas/feeds.schema"; @Module({ imports: [MongooseModule.forFeature([{ name: Feeds.na...
0
Pr0gramWizard/news-hub
51de73a
api/node/src/common/twitter.service.ts
TypeScript
www.github.com/Pr0gramWizard/news-hub/tree/main/api/node/src/common/twitter.service.ts
https://raw.githubusercontent.com/Pr0gramWizard/news-hub/51de73a/api/node/src/common/twitter.service.ts
Pr0gramWizard/news-hub 51de73a api/node/src/common/twitter.service.ts
true
200
1,390
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import TwitterApi, { TweetSearchRecentV2Paginator, TweetV2SingleResult } from 'twitter-api-v2'; import { assertMany } from './util'; @Injectable() export class TwitterService { readonly client: TwitterApi; constructor(priva...
3
juan-alva-bustamante/integration-ws-ts-backend
d74a5e4
src/interfaces/IBranchCommits.ts
TypeScript
www.github.com/juan-alva-bustamante/integration-ws-ts-backend/tree/main/src/interfaces/IBranchCommits.ts
https://raw.githubusercontent.com/juan-alva-bustamante/integration-ws-ts-backend/d74a5e4/src/interfaces/IBranchCommits.ts
juan-alva-bustamante/integration-ws-ts-backend d74a5e4 src/interfaces/IBranchCommits.ts
true
200
444
import {Document} from "mongoose"; import {IBranch} from "./IBranch"; export interface IBranchCommit { branch: IBranch; commits: string[] historical: IHistorical[] deployEnvironment: string isDeployed: boolean date: number requester: string } export interface IBranchCommitsModel extends Do...
4
danniel-contreras/sys-controles-api
a605c62
src/marca/marca.service.ts
TypeScript
www.github.com/danniel-contreras/sys-controles-api/tree/main/src/marca/marca.service.ts
https://raw.githubusercontent.com/danniel-contreras/sys-controles-api/a605c62/src/marca/marca.service.ts
danniel-contreras/sys-controles-api a605c62 src/marca/marca.service.ts
true
200
836
import { Injectable } from "@nestjs/common"; import { CreateMarcaInput } from "./dto/create-marca.input"; import { UpdateMarcaInput } from "./dto/update-marca.input"; import { InjectRepository } from "@nestjs/typeorm"; import { Marca } from "./entities/marca.entity"; import { Repository } from "typeorm"; @Injectable()...
1
mohammed-ezzedine/personal-space-web
f03ac1c
src/app/app-routing.module.ts
TypeScript
www.github.com/mohammed-ezzedine/personal-space-web/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/mohammed-ezzedine/personal-space-web/f03ac1c/src/app/app-routing.module.ts
mohammed-ezzedine/personal-space-web f03ac1c src/app/app-routing.module.ts
true
200
1,220
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ArticlePageComponent } from './article/article-page/article-page.component'; import { HomePageComponent } from './pages/home/home-page.component'; import { authGuard } from './security/auth.guard'; import { Catego...
2
nguyenvanhung10111997/wms.web
ae94004
wms.web/ClientApp/src/app/pages/error/page403/page403.component.spec.ts
TypeScript
www.github.com/nguyenvanhung10111997/wms.web/tree/main/wms.web/ClientApp/src/app/pages/error/page403/page403.component.spec.ts
https://raw.githubusercontent.com/nguyenvanhung10111997/wms.web/ae94004/wms.web/ClientApp/src/app/pages/error/page403/page403.component.spec.ts
nguyenvanhung10111997/wms.web ae94004 wms.web/ClientApp/src/app/pages/error/page403/page403.component.spec.ts
true
200
637
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { Page403Component } from './page403.component'; describe('Page403Component', () => { let component: Page403Component; let fixture: ComponentFixture<Page403Component>; beforeEach(waitForAsync(() => { TestBed.configureTesti...
7
morar0108/InvatareInteractivaFrontend
63e10e0
src/app/app.module.ts
TypeScript
www.github.com/morar0108/InvatareInteractivaFrontend/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/morar0108/InvatareInteractivaFrontend/63e10e0/src/app/app.module.ts
morar0108/InvatareInteractivaFrontend 63e10e0 src/app/app.module.ts
true
200
3,959
import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {AppRoutingModule} from './app-routing.module'; import {AppComponent} from './app.component'; import {FormsModule, ReactiveFormsModule} from "@angular/forms"; import {UserModule} from "./user/user.module"; import {HT...
6
elonmj/Meteo-Prophet
786cf46
src/middleware.ts
TypeScript
www.github.com/elonmj/Meteo-Prophet/tree/main/src/middleware.ts
https://raw.githubusercontent.com/elonmj/Meteo-Prophet/786cf46/src/middleware.ts
elonmj/Meteo-Prophet 786cf46 src/middleware.ts
true
200
955
import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' export function middleware(request: NextRequest) { // Ajouter des en-têtes de sécurité de base const response = NextResponse.next() response.headers.set('X-Frame-Options', 'DENY') response.headers.set('X-Content-Type-O...
0
ejw3md/blog
f7748af
blogSrc/src/app/blog-post.service.ts
TypeScript
www.github.com/ejw3md/blog/tree/main/blogSrc/src/app/blog-post.service.ts
https://raw.githubusercontent.com/ejw3md/blog/f7748af/blogSrc/src/app/blog-post.service.ts
ejw3md/blog f7748af blogSrc/src/app/blog-post.service.ts
true
200
713
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { BlogPost } from './blog-post' @Injectable({ providedIn: 'root' }) export class BlogPostService { private blogUrl = 'http://localhost:3000'; constructor( private http: Htt...
5
michalwarchol/slash-front
cc129a3
src/app/[locale]/actions.ts
TypeScript
www.github.com/michalwarchol/slash-front/tree/main/src/app/[locale]/actions.ts
https://raw.githubusercontent.com/michalwarchol/slash-front/cc129a3/src/app/%5Blocale%5D/actions.ts
michalwarchol/slash-front cc129a3 src/app/[locale]/actions.ts
true
200
642
"use server"; import Fetch from "@/utils/requestHandler"; export async function getStudentStartedCourses(page: number, perPage: number) { const { data } = await Fetch.get( `/statistics/progress?page=${page}&perPage=${perPage}&hasEnded=0` ); return data; } export async function getCourseTypes() { const d...
3
sophiaramosdev/Open-Tecopos
ecb1845
tecopos-admin/src/hooks/usePlanFreeHelper.ts
TypeScript
www.github.com/sophiaramosdev/Open-Tecopos/tree/main/tecopos-admin/src/hooks/usePlanFreeHelper.ts
https://raw.githubusercontent.com/sophiaramosdev/Open-Tecopos/ecb1845/tecopos-admin/src/hooks/usePlanFreeHelper.ts
sophiaramosdev/Open-Tecopos ecb1845 tecopos-admin/src/hooks/usePlanFreeHelper.ts
true
200
1,041
import { infoPages } from "../utils/dummy"; import { useParams } from "react-router-dom"; export interface AreaInfoInterface { image?: string | null; title?: string | null; text?: string | null; } const useHelper = () => { const getPlanFreeAreaType = (type?: string) => { let area: AreaInfoInterface;...
1
RomanIsaiev/goit-typescript-hw-02
157caad
src/baseTypes/7.ts
TypeScript
www.github.com/RomanIsaiev/goit-typescript-hw-02/tree/main/src/baseTypes/7.ts
https://raw.githubusercontent.com/RomanIsaiev/goit-typescript-hw-02/157caad/src/baseTypes/7.ts
RomanIsaiev/goit-typescript-hw-02 157caad src/baseTypes/7.ts
true
200
545
/* Створіть функцію (isWeekend), яка приймає день тижня (з вашого enum) і повертає boolean значення, що вказує, чи це день робочий чи вихідний. */ enum Weekday { monday = "monday", tuesday = "tuesday", wednesday = "wednesday", thursday = "thursday", friday = "friday", saturday = "saturday", sunday = ...
7
aljon799224/student-centric-teacher-evaluation-system-fe
ce37439
src/utils/formatDate.ts
TypeScript
www.github.com/aljon799224/student-centric-teacher-evaluation-system-fe/tree/main/src/utils/formatDate.ts
https://raw.githubusercontent.com/aljon799224/student-centric-teacher-evaluation-system-fe/ce37439/src/utils/formatDate.ts
aljon799224/student-centric-teacher-evaluation-system-fe ce37439 src/utils/formatDate.ts
true
200
312
export const formattedDate = (dateString: string) => { const date = new Date(dateString); return date.toLocaleString("en-US", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", hour12: false, // Use 24-hour format }); };
2
joshcalafell/rfs-atomic
fff4654
libs/cart/src/lib/cart-item/cart-item.component.spec.ts
TypeScript
www.github.com/joshcalafell/rfs-atomic/tree/main/libs/cart/src/lib/cart-item/cart-item.component.spec.ts
https://raw.githubusercontent.com/joshcalafell/rfs-atomic/fff4654/libs/cart/src/lib/cart-item/cart-item.component.spec.ts
joshcalafell/rfs-atomic fff4654 libs/cart/src/lib/cart-item/cart-item.component.spec.ts
true
200
569
import { ComponentFixture, TestBed } from '@angular/core/testing' import { CartItemComponent } from './cart-item.component' describe('CartItemComponent', () => { let component: CartItemComponent let fixture: ComponentFixture<CartItemComponent> beforeEach(async () => { await TestBed.configureTestingModule({ im...
6
Atema/ImagiFolio
27ca519
src/actions/session.ts
TypeScript
www.github.com/Atema/ImagiFolio/tree/main/src/actions/session.ts
https://raw.githubusercontent.com/Atema/ImagiFolio/27ca519/src/actions/session.ts
Atema/ImagiFolio 27ca519 src/actions/session.ts
true
200
1,238
import { getEnv } from "@/utils/environment/get-env"; import { SignJWT, jwtVerify } from "jose"; import { cookies } from "next/headers"; import { redirect } from "next/navigation"; const secretKey = Buffer.from(getEnv("SESSION_SECRET"), "utf-8"); export type SessionData = { userId: string; }; export const createSe...
0
x0k/todo-app
aa979d1
src/implementations/storable-todo-service-state-codec.ts
TypeScript
www.github.com/x0k/todo-app/tree/main/src/implementations/storable-todo-service-state-codec.ts
https://raw.githubusercontent.com/x0k/todo-app/aa979d1/src/implementations/storable-todo-service-state-codec.ts
x0k/todo-app aa979d1 src/implementations/storable-todo-service-state-codec.ts
true
200
3,014
import { type Event, type Task, type TaskId, TaskStatus, type TasksList, type TasksListId, } from '@/shared/kernel' import { type ICodecService, dateCodec, makeMapCodec, makeSetCodec, makeWithCodec, } from '@/shared/lib/storage' import { type StorableToDoServiceState } from '@/entities/todo' exp...
5
NiftyLeague/NiftyLeagueApp
f34eaed
src/hooks/useVersion.ts
TypeScript
www.github.com/NiftyLeague/NiftyLeagueApp/tree/main/src/hooks/useVersion.ts
https://raw.githubusercontent.com/NiftyLeague/NiftyLeagueApp/f34eaed/src/hooks/useVersion.ts
NiftyLeague/NiftyLeagueApp f34eaed src/hooks/useVersion.ts
true
200
1,577
'use client'; import { useState, useEffect } from 'react'; import { isWindows, isMacOs } from 'react-device-detect'; import { DEGEN_BASE_API_URL } from '@/constants/url'; import { TARGET_NETWORK } from '@/constants/networks'; const useVersion = () => { const [version, setVersion] = useState(''); const env = TARGE...
4
Hamidjon03/LMS_Project
7733b3d
src/modules/auth/interface/auth.service.ts
TypeScript
www.github.com/Hamidjon03/LMS_Project/tree/main/src/modules/auth/interface/auth.service.ts
https://raw.githubusercontent.com/Hamidjon03/LMS_Project/7733b3d/src/modules/auth/interface/auth.service.ts
Hamidjon03/LMS_Project 7733b3d src/modules/auth/interface/auth.service.ts
true
200
903
import { ResData } from "src/lib/resData"; import { LoginAuthDto } from "../dto/auth.dto"; import { User } from "src/modules/user/entities/user.entity"; import { CreateAdminDto, CreateStudentDto, CreateTeacherDto, } from "src/modules/user/dto/create-users.dto"; import { Response } from "express"; export interfac...
1
hijazisdungeon/codebases
3611b23
marinetes/monorepo-legacy/apps/financial/api/src/infra/services/employee/EmployeeListService.ts
TypeScript
www.github.com/hijazisdungeon/codebases/tree/main/marinetes/monorepo-legacy/apps/financial/api/src/infra/services/employee/EmployeeListService.ts
https://raw.githubusercontent.com/hijazisdungeon/codebases/3611b23/marinetes/monorepo-legacy/apps/financial/api/src/infra/services/employee/EmployeeListService.ts
hijazisdungeon/codebases 3611b23 marinetes/monorepo-legacy/apps/financial/api/src/infra/services/employee/EmployeeListService.ts
true
200
901
import { EmployeeRepository } from '@marinetes/database'; import { PaginationHelper } from '@marinetes/pagination-helper'; import { EmployeeListData, EmployeeListDocument, } from '@marinetes/types/dtos/financial/api'; import { Like } from 'typeorm'; export class EmployeeListService implements Service { async exe...
6
fluencelabs/tx-debug
a8552ac
src/index.ts
TypeScript
www.github.com/fluencelabs/tx-debug/tree/main/src/index.ts
https://raw.githubusercontent.com/fluencelabs/tx-debug/a8552ac/src/index.ts
fluencelabs/tx-debug a8552ac src/index.ts
true
200
1,468
#!/usr/bin/env node import prompts, { prompt } from "prompts"; import { Chains, DebugType, RPCS } from "./constants"; import { debugByData } from "./calldata-debugger"; import { debugByTx } from "./run-debugger"; import { forkDebug } from "./fork-debug"; const main = async () => { const { _chain, _type} = await pr...
2
tnbsinh2903/global-victory
b6d21a5
apps/erp/api/src/app/modules/upload/UploadController.ts
TypeScript
www.github.com/tnbsinh2903/global-victory/tree/main/apps/erp/api/src/app/modules/upload/UploadController.ts
https://raw.githubusercontent.com/tnbsinh2903/global-victory/b6d21a5/apps/erp/api/src/app/modules/upload/UploadController.ts
tnbsinh2903/global-victory b6d21a5 apps/erp/api/src/app/modules/upload/UploadController.ts
true
200
2,634
import { BannerEndpoints, NewsEndpoints, UserEndpoints } from '@global-victory/erp/api-interfaces'; import { BadRequestException, Controller, Get, Post, UploadedFile, UseInterceptors } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { diskStorage } from 'multer'; import path fr...
0
manu-r12/drawyy
95ec0c7
src/utils/getTimeAge.ts
TypeScript
www.github.com/manu-r12/drawyy/tree/main/src/utils/getTimeAge.ts
https://raw.githubusercontent.com/manu-r12/drawyy/95ec0c7/src/utils/getTimeAge.ts
manu-r12/drawyy 95ec0c7 src/utils/getTimeAge.ts
true
200
915
export function timeAgo(date: string): string { const now = new Date(); const then = new Date(date); const seconds = Math.floor((now.getTime() - then.getTime()) / 1000); const minutes = Math.floor(seconds / 60); const hours = Math.floor(minutes / 60); const days = Math.floor(hours / 24); ...
7
TechScrumTeamBeta/DevOps-Techscrum.be
82e9157
src/app/model/board.ts
TypeScript
www.github.com/TechScrumTeamBeta/DevOps-Techscrum.be/tree/main/src/app/model/board.ts
https://raw.githubusercontent.com/TechScrumTeamBeta/DevOps-Techscrum.be/82e9157/src/app/model/board.ts
TechScrumTeamBeta/DevOps-Techscrum.be 82e9157 src/app/model/board.ts
true
200
617
import mongoose, { Mongoose, Types } from 'mongoose'; export interface IBoard { title: string; taskStatus: Types.ObjectId[]; } const boardSchema = new mongoose.Schema<IBoard>( { title: { type: String, required: true, trim: true, }, taskStatus: [ { type: Types.ObjectId...
4
K-paas-issa/frontend
0a5fa6d
hooks/useObserver.ts
TypeScript
www.github.com/K-paas-issa/frontend/tree/main/hooks/useObserver.ts
https://raw.githubusercontent.com/K-paas-issa/frontend/0a5fa6d/hooks/useObserver.ts
K-paas-issa/frontend 0a5fa6d hooks/useObserver.ts
true
200
824
import { RefObject, useEffect } from "react"; interface ObserverOptions { target: RefObject<HTMLElement>; root?: RefObject<HTMLElement> | null; rootMargin?: string; threshold?: number; onIntersect: IntersectionObserverCallback; } export const useObserver = ({ target, root = null, rootMargin = "0px", ...
3
vodyani/dust
e9e7bf2
src/base/dust-handler.ts
TypeScript
www.github.com/vodyani/dust/tree/main/src/base/dust-handler.ts
https://raw.githubusercontent.com/vodyani/dust/e9e7bf2/src/base/dust-handler.ts
vodyani/dust e9e7bf2 src/base/dust-handler.ts
true
200
1,105
import { resolve } from 'path'; import { Worker } from 'threads'; import { getRelativePath } from '../method'; import { DustHandlerOptions } from '../common'; /** * Dust handler specific from the `worker_threads` module in nodejs * * @param path dust handler file path, You can choose whether to pass in a relative...
1
MarinaMeladFawzy2020/WESTUFF
b73e5e0
src/app/complaints-category/category-add/category-add.component.ts
TypeScript
www.github.com/MarinaMeladFawzy2020/WESTUFF/tree/main/src/app/complaints-category/category-add/category-add.component.ts
https://raw.githubusercontent.com/MarinaMeladFawzy2020/WESTUFF/b73e5e0/src/app/complaints-category/category-add/category-add.component.ts
MarinaMeladFawzy2020/WESTUFF b73e5e0 src/app/complaints-category/category-add/category-add.component.ts
true
200
2,505
import { Component, Inject, OnInit } from '@angular/core'; import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { ComplaintsService } from '...
2
skaisanlahti/rxjs-react
b013cb9
src/shared/utils/createGroupStarter.ts
TypeScript
www.github.com/skaisanlahti/rxjs-react/tree/main/src/shared/utils/createGroupStarter.ts
https://raw.githubusercontent.com/skaisanlahti/rxjs-react/b013cb9/src/shared/utils/createGroupStarter.ts
skaisanlahti/rxjs-react b013cb9 src/shared/utils/createGroupStarter.ts
true
200
398
// helper for bundling event handlers that return their clean up function export function createGroupStarter(startFuncs: Function[]) { return function start() { const stopFuncs: Function[] = []; for (const startFunc of startFuncs) { stopFuncs.push(startFunc()); } return function stop() { ...
6
guilhermeais/GymApp
ce0cb44
src/domain/usecases/student/create-student.ts
TypeScript
www.github.com/guilhermeais/GymApp/tree/main/src/domain/usecases/student/create-student.ts
https://raw.githubusercontent.com/guilhermeais/GymApp/ce0cb44/src/domain/usecases/student/create-student.ts
guilhermeais/GymApp ce0cb44 src/domain/usecases/student/create-student.ts
true
200
1,113
import {Email} from '../../entities/email'; import {Student} from '../../entities/student'; import {CreateStudentInCache} from '../../protocols/cache'; import { CreateStudentGateway, UserHasNetworkGateway, } from '../../protocols/gateways'; export class CreateStudent { constructor( private readonly studentGa...
5
RaulPerezA/M13-Projecte
230b99e
Fitness App/FitnessApplication/src/app/createexercice/createexercice.page.ts
TypeScript
www.github.com/RaulPerezA/M13-Projecte/tree/main/Fitness App/FitnessApplication/src/app/createexercice/createexercice.page.ts
https://raw.githubusercontent.com/RaulPerezA/M13-Projecte/230b99e/Fitness%20App/FitnessApplication/src/app/createexercice/createexercice.page.ts
RaulPerezA/M13-Projecte 230b99e Fitness App/FitnessApplication/src/app/createexercice/createexercice.page.ts
true
200
5,652
import { Component, OnInit } from '@angular/core'; import { ExerciseService } from '../exercise.service'; import { Observable } from 'rxjs'; import { Ejercicio } from '../Objects/Ejercicio'; import { Storage } from '@ionic/storage'; import { NavController } from '@ionic/angular'; import { RutinaEjercicio } from '../Obj...
0
Vshpak3/passes
b725c75
packages/api/src/modules/post/entities/post-pass-access.entity.ts
TypeScript
www.github.com/Vshpak3/passes/tree/main/packages/api/src/modules/post/entities/post-pass-access.entity.ts
https://raw.githubusercontent.com/Vshpak3/passes/b725c75/packages/api/src/modules/post/entities/post-pass-access.entity.ts
Vshpak3/passes b725c75 packages/api/src/modules/post/entities/post-pass-access.entity.ts
true
200
500
import { Entity, ManyToOne, Unique } from '@mikro-orm/core' import { BaseEntity } from '../../../database/base-entity' import { PassEntity } from '../../pass/entities/pass.entity' import { PostEntity } from './post.entity' @Entity() @Unique({ properties: ['post_id', 'pass_id'] }) export class PostPassAccessEntity ext...
4
rChwiecko/To-Do_List
b89261f
src/model/fullList.ts
TypeScript
www.github.com/rChwiecko/To-Do_List/tree/main/src/model/fullList.ts
https://raw.githubusercontent.com/rChwiecko/To-Do_List/b89261f/src/model/fullList.ts
rChwiecko/To-Do_List b89261f src/model/fullList.ts
true
200
1,122
import ListItem from "./listItem" interface list { list: ListItem[], load(): void, clearList():void, save():void, addItem(itemObj:ListItem):void, removeItem(id:string):void, } export default class FullList implements list{ static instance:FullList = new FullList() private constructor(private _li...
2
nghiadhse/tsc-fe-demo
7927b58
src/app/+form/input-text/input-text.module.ts
TypeScript
www.github.com/nghiadhse/tsc-fe-demo/tree/main/src/app/+form/input-text/input-text.module.ts
https://raw.githubusercontent.com/nghiadhse/tsc-fe-demo/7927b58/src/app/%2Bform/input-text/input-text.module.ts
nghiadhse/tsc-fe-demo 7927b58 src/app/+form/input-text/input-text.module.ts
true
200
748
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { InputTextRoutingModule } from './input-text-routing.module'; import { InputTextComponent } from './input-text.component'; import { InputGroupModule, Inp...
6
jombert-a/money-flow
48527b4
server/src/prisma/generated/type-graphql/resolvers/crud/Place/args/UpsertOnePlaceArgs.ts
TypeScript
www.github.com/jombert-a/money-flow/tree/main/server/src/prisma/generated/type-graphql/resolvers/crud/Place/args/UpsertOnePlaceArgs.ts
https://raw.githubusercontent.com/jombert-a/money-flow/48527b4/server/src/prisma/generated/type-graphql/resolvers/crud/Place/args/UpsertOnePlaceArgs.ts
jombert-a/money-flow 48527b4 server/src/prisma/generated/type-graphql/resolvers/crud/Place/args/UpsertOnePlaceArgs.ts
true
200
697
import * as TypeGraphQL from "type-graphql"; import * as GraphQLScalars from "graphql-scalars"; import { PlaceCreateInput } from "../../../inputs/PlaceCreateInput"; import { PlaceUpdateInput } from "../../../inputs/PlaceUpdateInput"; import { PlaceWhereUniqueInput } from "../../../inputs/PlaceWhereUniqueInput"; @TypeG...
3
nicxlasj/my-store-angular
5c4ee72
src/app/app-routing.module.ts
TypeScript
www.github.com/nicxlasj/my-store-angular/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/nicxlasj/my-store-angular/5c4ee72/src/app/app-routing.module.ts
nicxlasj/my-store-angular 5c4ee72 src/app/app-routing.module.ts
true
200
881
import { NgModule } from '@angular/core'; import { RouterModule, Routes, PreloadAllModules } from '@angular/router'; import { NotFoundComponent } from './web/pages/not-found/not-found.component'; import { CustomPreloadService } from './services/custom-preload.service'; import { AdminGuard } from './guards/admin.guard';...
1
JeremyParson/delve-backend
dd0143b
src/routers/characters.test.ts
TypeScript
www.github.com/JeremyParson/delve-backend/tree/main/src/routers/characters.test.ts
https://raw.githubusercontent.com/JeremyParson/delve-backend/dd0143b/src/routers/characters.test.ts
JeremyParson/delve-backend dd0143b src/routers/characters.test.ts
true
200
1,991
import request from "supertest"; import app from "../app"; import jwt from "jsonwebtoken"; import Users from "../data/user"; import Character from "../data/characters"; describe("The character path", () => { let payload = {}; const jwt_token = process.env.JWT_SECRET || ""; let adminToken = ''; const headersUse...
5
HeyRistaa/fastedgify
5de6283
src/db/queries/actor.ts
TypeScript
www.github.com/HeyRistaa/fastedgify/tree/main/src/db/queries/actor.ts
https://raw.githubusercontent.com/HeyRistaa/fastedgify/5de6283/src/db/queries/actor.ts
HeyRistaa/fastedgify 5de6283 src/db/queries/actor.ts
true
200
294
import client from "../client/client"; import e from "../schema/edgeql-js"; import type { ActorInput } from "../types/db-types"; export const addActor = async (name: string): Promise<ActorInput> => { const result = e.insert(e.Actor, { name }).run(client); return result; }
0
MrRioja/prismaIOLearning
87a4cf9
src/courses/update.ts
TypeScript
www.github.com/MrRioja/prismaIOLearning/tree/main/src/courses/update.ts
https://raw.githubusercontent.com/MrRioja/prismaIOLearning/87a4cf9/src/courses/update.ts
MrRioja/prismaIOLearning 87a4cf9 src/courses/update.ts
true
200
306
import { PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); async function main() { const result = await prisma.courses.update({ where: { id: "8a50a2c1-2ce2-48c4-8357-9906a35e9ef7", }, data: { duration: 300, }, }); console.log(result); } main();
4
DonovanPS/VitaDent1.0
da3ca0f
cliente/src/app/guards/auth.guard.ts
TypeScript
www.github.com/DonovanPS/VitaDent1.0/tree/main/cliente/src/app/guards/auth.guard.ts
https://raw.githubusercontent.com/DonovanPS/VitaDent1.0/da3ca0f/cliente/src/app/guards/auth.guard.ts
DonovanPS/VitaDent1.0 da3ca0f cliente/src/app/guards/auth.guard.ts
true
200
625
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; @Injectable({ providedIn: 'root' }) export class AuthGuard implements Can...
2
KilianDeBock/Santa-Claus
ef7a9c2
src/app/events/ready.ts
TypeScript
www.github.com/KilianDeBock/Santa-Claus/tree/main/src/app/events/ready.ts
https://raw.githubusercontent.com/KilianDeBock/Santa-Claus/ef7a9c2/src/app/events/ready.ts
KilianDeBock/Santa-Claus ef7a9c2 src/app/events/ready.ts
true
200
233
import { Client } from 'discord.js'; export let isReady = false; // Emitted when the client becomes ready to start working. function ready(client: Client): void { isReady = true; console.log('Ready!'); } export default ready;
1
quangnguyen-savvycom/pow-code-challenge
eb10f5f
src/services/spells.ts
TypeScript
www.github.com/quangnguyen-savvycom/pow-code-challenge/tree/main/src/services/spells.ts
https://raw.githubusercontent.com/quangnguyen-savvycom/pow-code-challenge/eb10f5f/src/services/spells.ts
quangnguyen-savvycom/pow-code-challenge eb10f5f src/services/spells.ts
true
200
321
import axios from "axios" const baseUrl = "https://www.dnd5eapi.co/api" export const getListSpell = async () => { let res = await axios.get(`${baseUrl}/spells`); return res.data; } export const getSpellDetail = async (api: string) => { let res = await axios.get(`${baseUrl}/spells/${api}`); return res.data; }...
5
Janardhan-RSTBLR231/frontend
ce244d7
src/app/app-routing.module.ts
TypeScript
www.github.com/Janardhan-RSTBLR231/frontend/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/Janardhan-RSTBLR231/frontend/ce244d7/src/app/app-routing.module.ts
Janardhan-RSTBLR231/frontend ce244d7 src/app/app-routing.module.ts
true
200
785
import { ExtraOptions, RouterModule, Routes } from '@angular/router'; import { NgModule } from '@angular/core'; import { AuthGuard } from './@core/guards/auth.guard'; export const routes: Routes = [ { path: 'pages', loadChildren: () => import('./pages/pages.module') .then(m => m.PagesModule), canLoad: ...
0
ysmorales/TareaRepo1
8c8ca54
components/DesignSystem/components/basic/table/exampleColumn.ts
TypeScript
www.github.com/ysmorales/TareaRepo1/tree/main/components/DesignSystem/components/basic/table/exampleColumn.ts
https://raw.githubusercontent.com/ysmorales/TareaRepo1/8c8ca54/components/DesignSystem/components/basic/table/exampleColumn.ts
ysmorales/TareaRepo1 8c8ca54 components/DesignSystem/components/basic/table/exampleColumn.ts
true
200
311
import type { ITableColumnData } from './interface'; export const exampleColumn: ITableColumnData[] = [ { title: 'Dessert', key: 'dessert' }, { title: 'Calories', key: 'calories', }, { title: 'Fat (g)', key: 'fat' }, { title: 'Carbs (g)', key: 'carbs' }, { title: 'Protein (g)', key: 'protein' }, ];
4
adrianhunter/civet-lsp
18047c7
packages/language-tools/packages/language-server-civet/test/misc/init.test.ts
TypeScript
www.github.com/adrianhunter/civet-lsp/tree/main/packages/language-tools/packages/language-server-civet/test/misc/init.test.ts
https://raw.githubusercontent.com/adrianhunter/civet-lsp/18047c7/packages/language-tools/packages/language-server-civet/test/misc/init.test.ts
adrianhunter/civet-lsp 18047c7 packages/language-tools/packages/language-server-civet/test/misc/init.test.ts
true
200
3,243
import type { InitializeResult, ServerCapabilities } from '@volar/language-server'; import { expect } from 'chai'; import { before, describe, it } from 'mocha'; import { getLanguageServer } from '../server.js'; describe('Initialize', async () => { let initializeResult: InitializeResult; before(async function () { ...
3
nurul-irfan/interface
e1ee944
dist/out-tsc/packages/uniswap/src/features/transactions/types/transactionState.d.ts
TypeScript
www.github.com/nurul-irfan/interface/tree/main/dist/out-tsc/packages/uniswap/src/features/transactions/types/transactionState.d.ts
https://raw.githubusercontent.com/nurul-irfan/interface/e1ee944/dist/out-tsc/packages/uniswap/src/features/transactions/types/transactionState.d.ts
nurul-irfan/interface e1ee944 dist/out-tsc/packages/uniswap/src/features/transactions/types/transactionState.d.ts
true
200
1,230
import { TradeableAsset } from 'uniswap/src/entities/assets'; import { FrontendSupportedProtocol } from 'uniswap/src/features/transactions/swap/utils/protocols'; import { UniverseChainId } from 'uniswap/src/features/chains/types'; import { CurrencyField, CurrencyId } from 'uniswap/src/types/currency'; import { FiatOffR...
2
shiningsudipto/a9-server
9c47ee7
src/app/modules/User/user.interface.ts
TypeScript
www.github.com/shiningsudipto/a9-server/tree/main/src/app/modules/User/user.interface.ts
https://raw.githubusercontent.com/shiningsudipto/a9-server/9c47ee7/src/app/modules/User/user.interface.ts
shiningsudipto/a9-server 9c47ee7 src/app/modules/User/user.interface.ts
true
200
272
export interface TUser { id: string; name: string; email: string; password: string; address: string; avatar: string; role: TUserRole; createdAt: Date; updatedAt: Date; } export enum TUserRole { ADMIN = "ADMIN", VENDOR = "VENDOR", USER = "USER", }
1
MaksimSakhnov/csit-hakaton
0bba65d
components/frontend/src/components/CreateTeacherModal/CreateTeacherModal.type.ts
TypeScript
www.github.com/MaksimSakhnov/csit-hakaton/tree/main/components/frontend/src/components/CreateTeacherModal/CreateTeacherModal.type.ts
https://raw.githubusercontent.com/MaksimSakhnov/csit-hakaton/0bba65d/components/frontend/src/components/CreateTeacherModal/CreateTeacherModal.type.ts
MaksimSakhnov/csit-hakaton 0bba65d components/frontend/src/components/CreateTeacherModal/CreateTeacherModal.type.ts
true
200
390
import {UseFormHandleSubmit, UseFormRegister} from "react-hook-form"; import {ICreateStudent, ICreateTeacher} from "../../store/admin/adminSlice.type"; export type CreateTeacherModalProps = { register: UseFormRegister<ICreateTeacher>; handleSubmit: UseFormHandleSubmit<ICreateTeacher>; onSubmit: (data: ICre...
0
ridias/storybook-angular
0144be3
my-storybook-angular/projects/design-system/src/stories/card-top-ranking.stories.ts
TypeScript
www.github.com/ridias/storybook-angular/tree/main/my-storybook-angular/projects/design-system/src/stories/card-top-ranking.stories.ts
https://raw.githubusercontent.com/ridias/storybook-angular/0144be3/my-storybook-angular/projects/design-system/src/stories/card-top-ranking.stories.ts
ridias/storybook-angular 0144be3 my-storybook-angular/projects/design-system/src/stories/card-top-ranking.stories.ts
true
200
3,608
import { Meta, StoryObj, argsToTemplate, moduleMetadata } from "@storybook/angular"; import { FormsModule } from "@angular/forms"; import { CardTopRankingComponent } from "../lib/components/cards/card-top-ranking/card-top-ranking.component"; import { TopItem } from "../lib/models/TopItem"; let items: TopItem[] = [ ...
4