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
eWeLinkCUBE/cc.coolkit.it.ihost.homebridge.web
bdaacbc
src/utils/device.ts
TypeScript
www.github.com/eWeLinkCUBE/cc.coolkit.it.ihost.homebridge.web/tree/main/src/utils/device.ts
https://raw.githubusercontent.com/eWeLinkCUBE/cc.coolkit.it.ihost.homebridge.web/bdaacbc/src/utils/device.ts
eWeLinkCUBE/cc.coolkit.it.ihost.homebridge.web bdaacbc src/utils/device.ts
true
200
2,110
import { storeToRefs } from 'pinia'; import { useIHostStore } from '@/stores/iHost'; import { useDeviceStore, deviceCategoryMap } from '@/stores/device'; import { getPluginConfig, updatePluginConfig } from './config'; import i18n from '@/i18n'; const { t } = i18n.global; // Get the device default name const getDevice...
3
pavelAngelovv/Whiskey-JS
8db34a8
utils/enums.ts
TypeScript
www.github.com/pavelAngelovv/Whiskey-JS/tree/main/utils/enums.ts
https://raw.githubusercontent.com/pavelAngelovv/Whiskey-JS/8db34a8/utils/enums.ts
pavelAngelovv/Whiskey-JS 8db34a8 utils/enums.ts
true
200
420
export const whiskeys = [{ value: 'JackDaniels', label: 'Jack Daniels', }, { value: 'Jameson', label: 'Jameson', }, { value: 'GoodWhiskey', label: 'Good Whiskey', }, { value: 'Lagavulin', label: 'Lagavulin', }, { value: 'Glenfiddich', label: 'Glenfiddich', }, { value: 'Ardbeg', label: 'Ardbeg', ...
6
evarkitecta/app-budget-bst-material
705067b
src/app/shared/services/calculate-budget.service.ts
TypeScript
www.github.com/evarkitecta/app-budget-bst-material/tree/main/src/app/shared/services/calculate-budget.service.ts
https://raw.githubusercontent.com/evarkitecta/app-budget-bst-material/705067b/src/app/shared/services/calculate-budget.service.ts
evarkitecta/app-budget-bst-material 705067b src/app/shared/services/calculate-budget.service.ts
true
200
835
import { Injectable } from '@angular/core'; import { Budget } from '../interfaces/budget.interface'; @Injectable({ providedIn: 'root' }) export class CalculateBudgetService { public priceWeb: number = 500; public priceSEO: number = 300; public priceGoogleAds: number = 200; constructor() { } calculateWeb...
4
J4ud/PROYECTO-FINAL-ALGORITMOS
5a5d5fb
src/components/MenuButton/MenuButton.ts
TypeScript
www.github.com/J4ud/PROYECTO-FINAL-ALGORITMOS/tree/main/src/components/MenuButton/MenuButton.ts
https://raw.githubusercontent.com/J4ud/PROYECTO-FINAL-ALGORITMOS/5a5d5fb/src/components/MenuButton/MenuButton.ts
J4ud/PROYECTO-FINAL-ALGORITMOS 5a5d5fb src/components/MenuButton/MenuButton.ts
true
200
1,618
// MenuButton.ts class MenuButton extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); this.render(); } connectedCallback() { const button = this.shadowRoot?.querySelector('button'); button?.addEventListener('click', this.togg...
1
Tokimon/jsfns
8db1d17
packages/web/src/isWindow.ts
TypeScript
www.github.com/Tokimon/jsfns/tree/main/packages/web/src/isWindow.ts
https://raw.githubusercontent.com/Tokimon/jsfns/8db1d17/packages/web/src/isWindow.ts
Tokimon/jsfns 8db1d17 packages/web/src/isWindow.ts
true
200
535
import type { GeneralWindow } from './types'; /** * Is the given object a Window object (eg. window or IFrame.contentWindow) * * @param obj - The object to check * @returns Is it a Window object or not * * @example * * ```ts * isWindow(window) // --> true * * isWindow(document) // --> false * isWindow(docu...
5
StonesCutter/Shoes-Ecommerce-Frontend
f50bfa9
src/app/components/slider/slider.component.ts
TypeScript
www.github.com/StonesCutter/Shoes-Ecommerce-Frontend/tree/main/src/app/components/slider/slider.component.ts
https://raw.githubusercontent.com/StonesCutter/Shoes-Ecommerce-Frontend/f50bfa9/src/app/components/slider/slider.component.ts
StonesCutter/Shoes-Ecommerce-Frontend f50bfa9 src/app/components/slider/slider.component.ts
true
200
1,095
import { Component, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'app-slider', templateUrl: './slider.component.html', styleUrls: ['./slider.component.scss'] }) export class SliderComponent { @Output() priceRangeChanged: EventEmitter<{ minPrice: number, maxPrice: number }> = new EventEmi...
2
JULIUSJIANG/slime_war
6636f23
assets/temp/scripts/game/view/index_view/IndexViewStateStatusIdle.ts
TypeScript
www.github.com/JULIUSJIANG/slime_war/tree/main/assets/temp/scripts/game/view/index_view/IndexViewStateStatusIdle.ts
https://raw.githubusercontent.com/JULIUSJIANG/slime_war/6636f23/assets/temp/scripts/game/view/index_view/IndexViewStateStatusIdle.ts
JULIUSJIANG/slime_war 6636f23 assets/temp/scripts/game/view/index_view/IndexViewStateStatusIdle.ts
true
200
2,092
import IndexView from "../../../IndexView"; import UtilObjPool from "../../../frame/basic/UtilObjPool"; import UtilObjPoolType from "../../../frame/basic/UtilObjPoolType"; import MgrUI from "../../../frame/ui/MgrUI"; import IndexViewRS from "./IndexViewRS"; import IndexViewState from "./IndexViewState"; import IndexVie...
0
vinay-dudi/ExpressJs
9354140
src/routes/excel.ts
TypeScript
www.github.com/vinay-dudi/ExpressJs/tree/main/src/routes/excel.ts
https://raw.githubusercontent.com/vinay-dudi/ExpressJs/9354140/src/routes/excel.ts
vinay-dudi/ExpressJs 9354140 src/routes/excel.ts
true
200
744
import { excel } from "@src/controller/excelcontroller"; import {Request,Response, Router} from "express"; import multer from "multer"; const excelRouter=Router(); const storage = multer.diskStorage({ destination: function (req, file, cb) { cb(null, 'uploads'); //destinations }, filename: functi...
7
kiplangatmike/makutano_social_platform
fa18338
src/pages/api/users/index.ts
TypeScript
www.github.com/kiplangatmike/makutano_social_platform/tree/main/src/pages/api/users/index.ts
https://raw.githubusercontent.com/kiplangatmike/makutano_social_platform/fa18338/src/pages/api/users/index.ts
kiplangatmike/makutano_social_platform fa18338 src/pages/api/users/index.ts
true
200
800
import { z } from 'zod' import { prisma } from '$lib/config/prisma' import type { NextApiRequest, NextApiResponse } from 'next' import { getServerSession } from 'next-auth'; import { authOptions } from '../auth/[...nextauth]'; import { extractKeywords, getRecommendedPosts } from '$lib/utils/recommender.utils'; const h...
3
joeebw/social-media
cd2e332
src/features/posts/hooks/usePostActions.ts
TypeScript
www.github.com/joeebw/social-media/tree/main/src/features/posts/hooks/usePostActions.ts
https://raw.githubusercontent.com/joeebw/social-media/cd2e332/src/features/posts/hooks/usePostActions.ts
joeebw/social-media cd2e332 src/features/posts/hooks/usePostActions.ts
true
200
1,790
import { deletePostAndImage, updatePostComments } from "@/utils/firebase"; import { toast } from "sonner"; import { Comment } from "../ts/post.types"; import { CommentFormValues } from "../components/Post"; import { UseFormReset } from "react-hook-form"; import { v4 as uuidv4 } from "uuid"; import { useNavigate } from ...
4
zaion-network/zaion
b068f17
packages/nostr/src/Nips/Nip_003/Nip_003.ts
TypeScript
www.github.com/zaion-network/zaion/tree/main/packages/nostr/src/Nips/Nip_003/Nip_003.ts
https://raw.githubusercontent.com/zaion-network/zaion/b068f17/packages/nostr/src/Nips/Nip_003/Nip_003.ts
zaion-network/zaion b068f17 packages/nostr/src/Nips/Nip_003/Nip_003.ts
true
200
1,964
import type { Event as E } from "../../Event"; import type { Nostr as N } from "../../Nostr"; import { nipTitles, Nip } from "../../Nips"; type RecommendedRelayURL = N.BasicTypes.RecommendedRelayURL; declare module "../../Nostr" { namespace Nostr { namespace Nips { interface nipTitles { ["003"]: "...
1
wellingtonPLF/Angular_JWT
b0648db
src/app/shared/guard/authDeactivate/authDeactivate.guard.ts
TypeScript
www.github.com/wellingtonPLF/Angular_JWT/tree/main/src/app/shared/guard/authDeactivate/authDeactivate.guard.ts
https://raw.githubusercontent.com/wellingtonPLF/Angular_JWT/b0648db/src/app/shared/guard/authDeactivate/authDeactivate.guard.ts
wellingtonPLF/Angular_JWT b0648db src/app/shared/guard/authDeactivate/authDeactivate.guard.ts
true
200
760
import { Injectable } from '@angular/core'; import { UrlTree } from '@angular/router'; import { Observable, catchError, map, throwError } from 'rxjs'; import { AuthService } from '../../service/auth/auth.service'; @Injectable({ providedIn: 'root' }) export class AuthDeactivateGuard { constructor(private authSer...
2
Elvira9797/Aj-Serwis
169f142
src/components/Hero/Hero.styled.ts
TypeScript
www.github.com/Elvira9797/Aj-Serwis/tree/main/src/components/Hero/Hero.styled.ts
https://raw.githubusercontent.com/Elvira9797/Aj-Serwis/169f142/src/components/Hero/Hero.styled.ts
Elvira9797/Aj-Serwis 169f142 src/components/Hero/Hero.styled.ts
true
200
1,674
import styled from '@emotion/styled'; import desktopBgImage from '../../img/desktopBgImage.jpg'; export const Overlay = styled.section` position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin-left: auto; margin-right: auto; padding-left: 20px;...
5
siddharthxlodhi/Angular-crash-course
f045ae0
src/app/app.component.ts
TypeScript
www.github.com/siddharthxlodhi/Angular-crash-course/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/siddharthxlodhi/Angular-crash-course/f045ae0/src/app/app.component.ts
siddharthxlodhi/Angular-crash-course f045ae0 src/app/app.component.ts
true
200
557
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import {MyFirstCompComponent} from "./my-first-comp/my-first-comp.component"; import {MenuComponent} from "./menu/menu.component"; import {AboutComponent} from "./about/about.component"; @Component({ selector: 'app-root', st...
0
aakash10802/vison-new
758478c
src/libs/serverAuth.ts
TypeScript
www.github.com/aakash10802/vison-new/tree/main/src/libs/serverAuth.ts
https://raw.githubusercontent.com/aakash10802/vison-new/758478c/src/libs/serverAuth.ts
aakash10802/vison-new 758478c src/libs/serverAuth.ts
true
200
660
import { NextApiRequest, NextApiResponse } from "next"; import prisma from "@/libs/prismdb"; import { getServerSession } from "next-auth"; import { authOptions } from "@/pages/api/auth/[...nextauth]"; const serverAuth = async (req: NextApiRequest, res: NextApiResponse) => { const session = await getServerSession(r...
7
brueter/juniper_portfolio
c3448a5
src/cubic.ts
TypeScript
www.github.com/brueter/juniper_portfolio/tree/main/src/cubic.ts
https://raw.githubusercontent.com/brueter/juniper_portfolio/c3448a5/src/cubic.ts
brueter/juniper_portfolio c3448a5 src/cubic.ts
true
200
3,188
var NEWTON_ITERATIONS = 4; var NEWTON_MIN_SLOPE = 0.001; var SUBDIVISION_PRECISION = 0.0000001; var SUBDIVISION_MAX_ITERATIONS = 10; var kSplineTableSize = 11; var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); var float32ArraySupported = typeof Float32Array === "function"; function A(aA1: number, aA2: number) { ...
3
Quinn1026/ts-challenges
c49b741
0142-subtract/template.ts
TypeScript
www.github.com/Quinn1026/ts-challenges/tree/main/0142-subtract/template.ts
https://raw.githubusercontent.com/Quinn1026/ts-challenges/c49b741/0142-subtract/template.ts
Quinn1026/ts-challenges c49b741 0142-subtract/template.ts
true
200
3,611
// M => minuend, S => subtrahend /** 构建数组 */ type Build<T extends number, R extends number[] = []> = R['length'] extends T ? R : Build<T, [...R, number]> /** 去掉字符串头部的0 */ type RemoveHeader0<T extends string> = T extends `0${infer R}` ? RemoveHeader0<R> : T /** 简易减法 */ type MiniSubtract<T extends number, U extends numbe...
4
jdtr/medical-app
d73c71a
src/app/pages/search/search.component.ts
TypeScript
www.github.com/jdtr/medical-app/tree/main/src/app/pages/search/search.component.ts
https://raw.githubusercontent.com/jdtr/medical-app/d73c71a/src/app/pages/search/search.component.ts
jdtr/medical-app d73c71a src/app/pages/search/search.component.ts
true
200
1,062
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Doctor } from 'src/app/models/doctor.model'; import { User } from 'src/app/models/user.model'; import { SearchService } from 'src/app/services/search.service'; import { HospitalModel } from '../../models/hospit...
2
animando/catalyst-app
1ac20e4
workspaces/backend/services/wsConnection/handlers/subscribeHandler.ts
TypeScript
www.github.com/animando/catalyst-app/tree/main/workspaces/backend/services/wsConnection/handlers/subscribeHandler.ts
https://raw.githubusercontent.com/animando/catalyst-app/1ac20e4/workspaces/backend/services/wsConnection/handlers/subscribeHandler.ts
animando/catalyst-app 1ac20e4 workspaces/backend/services/wsConnection/handlers/subscribeHandler.ts
true
200
495
import { encodeWsMessageBody } from "../utils/encodeWsMessageBody"; import { logger } from "../utils/logger"; import { middifyWsHandler } from "../utils/middifyWsHandler"; export const subscribeHandler = middifyWsHandler(async (event) => { const { body } = event; logger.info("subscribe", { body }); return { ...
7
vinod-desai/spring-boot-todo-webapp
ad3d136
client/src/app/app.component.ts
TypeScript
www.github.com/vinod-desai/spring-boot-todo-webapp/tree/main/client/src/app/app.component.ts
https://raw.githubusercontent.com/vinod-desai/spring-boot-todo-webapp/ad3d136/client/src/app/app.component.ts
vinod-desai/spring-boot-todo-webapp ad3d136 client/src/app/app.component.ts
true
200
359
import { Component } from '@angular/core'; import { ApplicationInsightsService } from './service/application-insights.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { constructor(private ApplicationInsightsServ...
5
VasuKp/plant-identify
ace47bf
app/lib/db.ts
TypeScript
www.github.com/VasuKp/plant-identify/tree/main/app/lib/db.ts
https://raw.githubusercontent.com/VasuKp/plant-identify/ace47bf/app/lib/db.ts
VasuKp/plant-identify ace47bf app/lib/db.ts
true
200
7,679
'use server' import { Pool } from 'pg' import bcrypt from 'bcryptjs' import crypto from 'crypto' import dotenv from 'dotenv' dotenv.config() // Only attempt to connect if DATABASE_URL is defined const pool = process.env.DATABASE_URL ? new Pool({ connectionString: process.env.DATABASE_URL, ssl: { ...
0
mbernardes19/metodo-semprerico-bot
9193de9
src/model/Signals/SignalBuilder.ts
TypeScript
www.github.com/mbernardes19/metodo-semprerico-bot/tree/main/src/model/Signals/SignalBuilder.ts
https://raw.githubusercontent.com/mbernardes19/metodo-semprerico-bot/9193de9/src/model/Signals/SignalBuilder.ts
mbernardes19/metodo-semprerico-bot 9193de9 src/model/Signals/SignalBuilder.ts
true
200
959
import { SignalData, Asset } from "./Signal"; import SignalWithGale from "./SignalWithGale"; import FilteringSignal from "./FilteringSignal"; import SignalWithoutGale from "./SignalWithoutGale"; import ExtraAnalysisSignal from "./ExtraAnalysisSignal"; import SinaisRicosSignal from "./SinaisRicosSignal"; export default...
6
MmasssXklr/WD-301-CalmCore
f7b2d39
Final Requirement 3/src/app/components/grid/grid.component.ts
TypeScript
www.github.com/MmasssXklr/WD-301-CalmCore/tree/main/Final Requirement 3/src/app/components/grid/grid.component.ts
https://raw.githubusercontent.com/MmasssXklr/WD-301-CalmCore/f7b2d39/Final%20Requirement%203/src/app/components/grid/grid.component.ts
MmasssXklr/WD-301-CalmCore f7b2d39 Final Requirement 3/src/app/components/grid/grid.component.ts
true
200
1,393
import { Component } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; @Component({ selector: 'app-grid', templateUrl: './grid.component.html', styleUrl: './grid.component.css' }) export class GridComponent { title = 'booksapp'; ...
1
Haddley/haddley-ngrx
41d742f
src/app/services/post.service.spec.ts
TypeScript
www.github.com/Haddley/haddley-ngrx/tree/main/src/app/services/post.service.spec.ts
https://raw.githubusercontent.com/Haddley/haddley-ngrx/41d742f/src/app/services/post.service.spec.ts
Haddley/haddley-ngrx 41d742f src/app/services/post.service.spec.ts
true
200
1,920
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { createSpyFromClass, Spy } from 'jasmine-auto-spies'; import { Post } from '../models/post.model'; import { PostService } from './post.service'; import { TestBed } from '@angular/core/testing'; describe('PostService', () => { let service: ...
3
SteveBunlon/fa-v2-migration-starter
a3f937c
index.ts
TypeScript
www.github.com/SteveBunlon/fa-v2-migration-starter/tree/main/index.ts
https://raw.githubusercontent.com/SteveBunlon/fa-v2-migration-starter/a3f937c/index.ts
SteveBunlon/fa-v2-migration-starter a3f937c index.ts
true
200
540
import * as dotenv from 'dotenv'; dotenv.config(); import { createAgent } from '@forestadmin/agent'; import { createSqlDataSource } from '@forestadmin/datasource-sql'; (async () => { await createAgent({ authSecret: process.env.FOREST_AUTH_SECRET, envSecret: process.env.FOREST_ENV_SECRET, i...
4
Angular-16/angular-reactive-forms
6d450cb
src/app/contacts/in-memory-contacts.service.ts
TypeScript
www.github.com/Angular-16/angular-reactive-forms/tree/main/src/app/contacts/in-memory-contacts.service.ts
https://raw.githubusercontent.com/Angular-16/angular-reactive-forms/6d450cb/src/app/contacts/in-memory-contacts.service.ts
Angular-16/angular-reactive-forms 6d450cb src/app/contacts/in-memory-contacts.service.ts
true
200
2,608
import { InMemoryDbService } from 'angular-in-memory-web-api'; import { Contact } from './contact.model'; export class InMemoryContactsApi implements InMemoryDbService { public createDb() { const contacts: Contact[] = [ { id: '5CehW', icon: '', isPersonal: false, f...
2
kheiyoshida/kheiyoshida
d0669cb
pjs/maze/src/service/render/mesh/material/index.ts
TypeScript
www.github.com/kheiyoshida/kheiyoshida/tree/main/pjs/maze/src/service/render/mesh/material/index.ts
https://raw.githubusercontent.com/kheiyoshida/kheiyoshida/d0669cb/pjs/maze/src/service/render/mesh/material/index.ts
kheiyoshida/kheiyoshida d0669cb pjs/maze/src/service/render/mesh/material/index.ts
true
200
1,518
import { getShader, MaterialShaderType, RenderingModeShaderTypeMap } from './shaders' import { getGL } from 'maze-gl/src/webgl' import { DefaultMaterial, DistinctMaterial, MeshMaterial } from './materials.ts' import { RenderingMode } from '../../../../store/stage.ts' import { randomFloatBetween, randomFloatInAsymmetric...
5
FreddyGuapi/FitnessClub
8fec9e9
src/app/interfaces/header/header.component.ts
TypeScript
www.github.com/FreddyGuapi/FitnessClub/tree/main/src/app/interfaces/header/header.component.ts
https://raw.githubusercontent.com/FreddyGuapi/FitnessClub/8fec9e9/src/app/interfaces/header/header.component.ts
FreddyGuapi/FitnessClub 8fec9e9 src/app/interfaces/header/header.component.ts
true
200
465
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.css'] }) export class HeaderComponent implements OnInit { constructor() { } ngOnInit(): void { } menuVariable:boolean = false; menu_icon_var...
0
ViveportSoftware/fabrik-playcanvas
b2206ac
lib/fabrik/core/FabrikBone.ts
TypeScript
www.github.com/ViveportSoftware/fabrik-playcanvas/tree/main/lib/fabrik/core/FabrikBone.ts
https://raw.githubusercontent.com/ViveportSoftware/fabrik-playcanvas/b2206ac/lib/fabrik/core/FabrikBone.ts
ViveportSoftware/fabrik-playcanvas b2206ac lib/fabrik/core/FabrikBone.ts
true
200
1,797
import {Vector} from '../utils/Vector'; import {FabrikJoint} from './FabrikJoint'; export interface FabrikBone<V extends Vector<V>, J extends FabrikJoint<J>> { /** * Return the start location of this bone. * * @return The start location of this bone. */ getStartLocation(): V; /** * Re...
6
Aravinda-Gamage-v1-1/mobile-app
5d80ebc
frontend/types/declarations.d.ts
TypeScript
www.github.com/Aravinda-Gamage-v1-1/mobile-app/tree/main/frontend/types/declarations.d.ts
https://raw.githubusercontent.com/Aravinda-Gamage-v1-1/mobile-app/5d80ebc/frontend/types/declarations.d.ts
Aravinda-Gamage-v1-1/mobile-app 5d80ebc frontend/types/declarations.d.ts
true
200
572
declare module "*.png" { const value: string; // TypeScript understands that any .png import will be treated as a string export default value; } declare module "*.jpg" { const value: string; export default value; } //.d.ts file stands for "Declaration File", and it's used in TypeScript to define types...
7
srenauld-co-uk/lightbox-control
57f27b8
packages/api-client/src/client/html-client.ts
TypeScript
www.github.com/srenauld-co-uk/lightbox-control/tree/main/packages/api-client/src/client/html-client.ts
https://raw.githubusercontent.com/srenauld-co-uk/lightbox-control/57f27b8/packages/api-client/src/client/html-client.ts
srenauld-co-uk/lightbox-control 57f27b8 packages/api-client/src/client/html-client.ts
true
200
1,715
import { AxiosInstance } from "axios"; import { wrapper } from "axios-cookiejar-support"; import { CookieJar } from "tough-cookie"; import { LightboxLocale, LightboxCredentials } from "../types"; import { logIn } from "./actions/log-in"; import { HtmlCore } from "./interfaces/html-core"; type FnExecutor<T> = (core: Ht...
4
DhyonKeyllon/tallow-comics
0ff017a
src/pages/api/comics/getAll.ts
TypeScript
www.github.com/DhyonKeyllon/tallow-comics/tree/main/src/pages/api/comics/getAll.ts
https://raw.githubusercontent.com/DhyonKeyllon/tallow-comics/0ff017a/src/pages/api/comics/getAll.ts
DhyonKeyllon/tallow-comics 0ff017a src/pages/api/comics/getAll.ts
true
200
426
import { NextApiRequest, NextApiResponse } from "next"; import { prismaClient } from "../../../services/database/prismaClient"; export default async function (req: NextApiRequest, res: NextApiResponse) { const pageOffSet = Number(req.query); const pageLimit = Number(req.query); const data = await prismaClient....
3
YanaPolyanskaya/web-larek-frontend
d0cc15b
src/components/card.ts
TypeScript
www.github.com/YanaPolyanskaya/web-larek-frontend/tree/main/src/components/card.ts
https://raw.githubusercontent.com/YanaPolyanskaya/web-larek-frontend/d0cc15b/src/components/card.ts
YanaPolyanskaya/web-larek-frontend d0cc15b src/components/card.ts
true
200
2,482
import { ICard, ICardActions } from '../types'; import { Component } from './base/component'; export class Card extends Component<ICard> { protected _basketIndexElement: HTMLElement; protected _categoryElement: HTMLElement; protected _titleElement: HTMLElement; protected _imageElement: HTMLImageElement; protected...
2
ryinner/exercism
99260cf
typescript/acronym.ts
TypeScript
www.github.com/ryinner/exercism/tree/main/typescript/acronym.ts
https://raw.githubusercontent.com/ryinner/exercism/99260cf/typescript/acronym.ts
ryinner/exercism 99260cf typescript/acronym.ts
true
200
350
export function parse(phrase: string): string { const words = phrase.split(/\-|\,?\s|\:/m); let acronym = ""; for (const word of words) { if (word.match(/[A-Z]+$/)) { return word; } acronym += word.match(/[A-Z]/m) ? word.replace(/[a-z]+/gm, "").toUpperCase() : [...word][0].toUpperCa...
1
firstbatchxyz/dria-cli
03fe1ae
src/commands/extract.ts
TypeScript
www.github.com/firstbatchxyz/dria-cli/tree/main/src/commands/extract.ts
https://raw.githubusercontent.com/firstbatchxyz/dria-cli/03fe1ae/src/commands/extract.ts
firstbatchxyz/dria-cli 03fe1ae src/commands/extract.ts
true
200
459
import { extractZip } from "../common"; import constants from "../constants"; /** * Extracts a zipped knowledge. * * This command is used in particular when you have a large knowledge and you would like to * move it around locally, without downloading the entire thing again. * * @param path Arweave txID to downl...
5
Matheus-E-S-Oliveira/TCC-BETA-V.2
458ddc3
src/app/app.module.ts
TypeScript
www.github.com/Matheus-E-S-Oliveira/TCC-BETA-V.2/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Matheus-E-S-Oliveira/TCC-BETA-V.2/458ddc3/src/app/app.module.ts
Matheus-E-S-Oliveira/TCC-BETA-V.2 458ddc3 src/app/app.module.ts
true
200
1,043
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { BrowserModule } from '@angular/platform-browser'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { HomeModule } from './features/home/home.module'; import { LayoutsModule } ...
0
alandev27/md-docs
abdc4bd
src/utils/Sidebar/fileManagement.ts
TypeScript
www.github.com/alandev27/md-docs/tree/main/src/utils/Sidebar/fileManagement.ts
https://raw.githubusercontent.com/alandev27/md-docs/abdc4bd/src/utils/Sidebar/fileManagement.ts
alandev27/md-docs abdc4bd src/utils/Sidebar/fileManagement.ts
true
200
1,398
import { BaseItem, FolderType } from '@interfaces/Sidebar'; import { Types } from '@enums/Sidebar'; export const deleteRecursive = (items: BaseItem[], id: string): { result: BaseItem[]; deletedItem?: BaseItem } => { let deletedItem: BaseItem | undefined; const result = items.reduce<BaseItem[]>((newItems, item...
6
arati-tekdi/tracking-microservice
ef8d2ae
src/modules/user_certificate/user_certificate.module.ts
TypeScript
www.github.com/arati-tekdi/tracking-microservice/tree/main/src/modules/user_certificate/user_certificate.module.ts
https://raw.githubusercontent.com/arati-tekdi/tracking-microservice/ef8d2ae/src/modules/user_certificate/user_certificate.module.ts
arati-tekdi/tracking-microservice ef8d2ae src/modules/user_certificate/user_certificate.module.ts
true
200
603
import { Module } from '@nestjs/common'; import { UserCertificateController } from './user_certificate.contoller'; import { UserCertificateService } from './user_certificate.service.'; import { TypeOrmModule } from '@nestjs/typeorm'; import { UserCourseCertificate } from '../certificate/entities/user_course_certificat...
7
surjust/Tests
748f54e
tests/example.spec.ts
TypeScript
www.github.com/surjust/Tests/tree/main/tests/example.spec.ts
https://raw.githubusercontent.com/surjust/Tests/748f54e/tests/example.spec.ts
surjust/Tests 748f54e tests/example.spec.ts
true
200
1,286
import { test, expect } from '@playwright/test'; test('page changes', async ({ page }) => { await page.goto('https://www.24mx.pl/'); await page.getByText('Wysyłka i Dostawa').click() await expect(page).toHaveURL('https://help.24mx.com/hc/pl/sections/360002689419'); }); test('add to cart works', async ...
3
PlaydustNFT/playdust-parrotfish
84385ab
collection-metadata-processor/src/lambdaEntrypoint.ts
TypeScript
www.github.com/PlaydustNFT/playdust-parrotfish/tree/main/collection-metadata-processor/src/lambdaEntrypoint.ts
https://raw.githubusercontent.com/PlaydustNFT/playdust-parrotfish/84385ab/collection-metadata-processor/src/lambdaEntrypoint.ts
PlaydustNFT/playdust-parrotfish 84385ab collection-metadata-processor/src/lambdaEntrypoint.ts
true
200
2,966
import { APIGatewayProxyEvent, APIGatewayProxyResult, DynamoDBStreamEvent } from 'aws-lambda'; import { DynamoDBStreams, DynamoDB } from 'aws-sdk'; import { TableNames } from '../../shared/src/consts'; import { ddbmapper } from '../../shared/src/service/dynamodb'; import { processItem } from './processorEntrypoint'; //...
4
ahsanreal4/NestJS-graphql-skilltest
d75f526
src/employees/employees.module.ts
TypeScript
www.github.com/ahsanreal4/NestJS-graphql-skilltest/tree/main/src/employees/employees.module.ts
https://raw.githubusercontent.com/ahsanreal4/NestJS-graphql-skilltest/d75f526/src/employees/employees.module.ts
ahsanreal4/NestJS-graphql-skilltest d75f526 src/employees/employees.module.ts
true
200
738
import { Module } from '@nestjs/common'; import { EmployeesService } from './employees.service'; import { EmployeeResolver } from './employees.resolver'; import { MongooseModule } from '@nestjs/mongoose'; import { User, UserSchema } from '../common/schema/database/user.model'; import { EmployeeData, EmployeeDataSch...
2
Taffr/barcabinet
1f86496
api/src/users/cabinet.controller.ts
TypeScript
www.github.com/Taffr/barcabinet/tree/main/api/src/users/cabinet.controller.ts
https://raw.githubusercontent.com/Taffr/barcabinet/1f86496/api/src/users/cabinet.controller.ts
Taffr/barcabinet 1f86496 api/src/users/cabinet.controller.ts
true
200
2,233
import { Body, Controller, Get, Inject, NotFoundException, Patch, Request, UseGuards, } from '@nestjs/common'; import { isEmpty, identity } from 'ramda'; import { UpdateIngredientsDTO } from './dtos/update-ingredients.dto'; import { JwtAuthGuard } from '../auth/jwt-auth.guard'; import { CabinetStore } f...
1
audit-hero/contest-parser
be025f7
src/hats/hats-parser.test.ts
TypeScript
www.github.com/audit-hero/contest-parser/tree/main/src/hats/hats-parser.test.ts
https://raw.githubusercontent.com/audit-hero/contest-parser/be025f7/src/hats/hats-parser.test.ts
audit-hero/contest-parser be025f7 src/hats/hats-parser.test.ts
true
200
4,058
import { it, describe, afterEach, expect, vi } from "vitest" import fs from "fs-extra" import { parseContests } from "./hats-parser.js" import { getActiveContests, hats_urls } from "./getActiveContests.js" import { workingDir } from "../util.js" import { ContestWithModules } from "ah-shared" import { getModules } from...
4
ouyangqinglin/energy-cloud-frontend
99f46ef
src/pages/site-monitor/Overview/EnergyFlow/RealTimeData/Charge/helper.ts
TypeScript
www.github.com/ouyangqinglin/energy-cloud-frontend/tree/main/src/pages/site-monitor/Overview/EnergyFlow/RealTimeData/Charge/helper.ts
https://raw.githubusercontent.com/ouyangqinglin/energy-cloud-frontend/99f46ef/src/pages/site-monitor/Overview/EnergyFlow/RealTimeData/Charge/helper.ts
ouyangqinglin/energy-cloud-frontend 99f46ef src/pages/site-monitor/Overview/EnergyFlow/RealTimeData/Charge/helper.ts
true
200
2,058
/* * @Description: * @Author: YangJianFei * @Date: 2024-04-24 14:07:40 * @LastEditTime: 2024-04-28 11:30:44 * @LastEditors: YangJianFei * @FilePath: \energy-cloud-frontend\src\pages\site-monitor\Overview\EnergyFlow\RealTimeData\Charge\helper.ts */ import IconCharge from '@/assets/image/site-monitor/icon_充电桩_全部.s...
7
brenolpl/samha
9d29d4a
samha-frontend/src/app/professor/professor-routing.module.ts
TypeScript
www.github.com/brenolpl/samha/tree/main/samha-frontend/src/app/professor/professor-routing.module.ts
https://raw.githubusercontent.com/brenolpl/samha/9d29d4a/samha-frontend/src/app/professor/professor-routing.module.ts
brenolpl/samha 9d29d4a samha-frontend/src/app/professor/professor-routing.module.ts
true
200
1,446
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {ProfessorFormComponent} from './professor-form/professor-form.component'; import {CanDeactivateGuard} from '../guards/can-deactivate-guard'; import {FormResolver} from '../guards/form-resolver'; import {RestricaoCompon...
5
DavidScoffield/domex-back
dac8f9d
src/index.ts
TypeScript
www.github.com/DavidScoffield/domex-back/tree/main/src/index.ts
https://raw.githubusercontent.com/DavidScoffield/domex-back/dac8f9d/src/index.ts
DavidScoffield/domex-back dac8f9d src/index.ts
true
200
436
import './config/env.config.js' import express, { type Request, type Response } from 'express' import LoggerService from './services/logger.services.js' const app = express() const port = 5000 app.get('/', (req: Request, res: Response) => { res.json({ greeting: 'Hello world!' }) }) const httpServer = app.listen(p...
2
Stratorheus/DeloitteLottery
796e36d
Lottery.Presentation.Client.Angular.Web/src/app/core/services/number-generator.service.ts
TypeScript
www.github.com/Stratorheus/DeloitteLottery/tree/main/Lottery.Presentation.Client.Angular.Web/src/app/core/services/number-generator.service.ts
https://raw.githubusercontent.com/Stratorheus/DeloitteLottery/796e36d/Lottery.Presentation.Client.Angular.Web/src/app/core/services/number-generator.service.ts
Stratorheus/DeloitteLottery 796e36d Lottery.Presentation.Client.Angular.Web/src/app/core/services/number-generator.service.ts
true
200
1,890
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class NumberGeneratorService { //IMPORTANT!! //Logics copied from backend C# code and rewritten to TS. //Please refer to Lottery > Application > Lottery.Application.Services project > NumberService.cs //to view comments an...
1
liyangguang/gpt-tdd
7625016
src/gpt/iteration.ts
TypeScript
www.github.com/liyangguang/gpt-tdd/tree/main/src/gpt/iteration.ts
https://raw.githubusercontent.com/liyangguang/gpt-tdd/7625016/src/gpt/iteration.ts
liyangguang/gpt-tdd 7625016 src/gpt/iteration.ts
true
200
1,527
import chalk from 'chalk'; import { initCode } from './file'; import { ask, checkResponse } from './openai'; import { runTest } from './run_test'; import { readCode, writeCode } from './file'; async function runIteration(verboseLog = false): Promise<boolean> { console.info(chalk.yellow('[Running tests]')); const ...
3
NicolasCibo/Pokedex
2661fcf
src/stores/myteamSlice.ts
TypeScript
www.github.com/NicolasCibo/Pokedex/tree/main/src/stores/myteamSlice.ts
https://raw.githubusercontent.com/NicolasCibo/Pokedex/2661fcf/src/stores/myteamSlice.ts
NicolasCibo/Pokedex 2661fcf src/stores/myteamSlice.ts
true
200
3,125
import { StateCreator } from "zustand" import { PokemonDetailedInfo, MyTeamPokemonDetailedInfo } from "../types" import { createNotificationSlice, NotificationSliceType } from "./notificationSlice" import { PokedexSliceType } from "./pokedexSlice" import { createPokemonInfoSlice, PokemonInfoSliceType } from "./pokemonI...
4
FernandoMoleroDeveloper/NODE_SCHOOL_API
423df51
src/domain/entities/user.entity.ts
TypeScript
www.github.com/FernandoMoleroDeveloper/NODE_SCHOOL_API/tree/main/src/domain/entities/user.entity.ts
https://raw.githubusercontent.com/FernandoMoleroDeveloper/NODE_SCHOOL_API/423df51/src/domain/entities/user.entity.ts
FernandoMoleroDeveloper/NODE_SCHOOL_API 423df51 src/domain/entities/user.entity.ts
true
200
1,929
import { Document, Schema, model } from "mongoose"; import validator from "validator"; import bcrypt from "bcrypt"; import { Classroom, IClassroom } from "./classroom.entity"; export enum ROL { "STUDENT" = "STUDENT", "TEACHER" = "TEACHER", "PARENT" = "PARENT", "ADMIN" = "ADMIN", } export interface IUserCreate...
7
andrehrferreira/ucsjs
c640e9d
packages/server/services/render.service.ts
TypeScript
www.github.com/andrehrferreira/ucsjs/tree/main/packages/server/services/render.service.ts
https://raw.githubusercontent.com/andrehrferreira/ucsjs/c640e9d/packages/server/services/render.service.ts
andrehrferreira/ucsjs c640e9d packages/server/services/render.service.ts
true
200
1,556
import fs from "fs"; import path from "path"; import ejs from "ejs"; import { Request, Response } from 'express'; import { Scope } from '@ucsjs/common'; import { Server } from "./server.service"; export interface IRenderSettings{ template?: string; fn: Function; } export default class Render{ ...
2
sultondev/learn-app-blog
73553bd
src/recoil/atoms.state.ts
TypeScript
www.github.com/sultondev/learn-app-blog/tree/main/src/recoil/atoms.state.ts
https://raw.githubusercontent.com/sultondev/learn-app-blog/73553bd/src/recoil/atoms.state.ts
sultondev/learn-app-blog 73553bd src/recoil/atoms.state.ts
true
200
688
import { atom } from "recoil"; import { followingUserDataType } from "../typing/types/followingUser.type"; import { followingData } from "../constant/followingStateData.constant"; import { articleListData } from "../constant/articlesListData.constant"; import { articlesItemsType } from "../typing/types/articleItems.typ...
1
B-S-F/yaku
7fa01d2
yaku-ui/qg-service-ui/src/composables/useRecentDateFormat.test.ts
TypeScript
www.github.com/B-S-F/yaku/tree/main/yaku-ui/qg-service-ui/src/composables/useRecentDateFormat.test.ts
https://raw.githubusercontent.com/B-S-F/yaku/7fa01d2/yaku-ui/qg-service-ui/src/composables/useRecentDateFormat.test.ts
B-S-F/yaku 7fa01d2 yaku-ui/qg-service-ui/src/composables/useRecentDateFormat.test.ts
true
200
1,658
// SPDX-FileCopyrightText: 2024 grow platform GmbH // // SPDX-License-Identifier: MIT import { describe, beforeEach, vi, expect } from 'vitest' import { useRecentDateFormat } from './useRecentDateFormat' describe('useRecentDateFormat', () => { beforeEach(() => { vi.setSystemTime('2023-01-16T00:00:00.000Z') })...
3
KannanKathirvelm/testing-repo
224a663
src/app/components/class/notification/notification.component.ts
TypeScript
www.github.com/KannanKathirvelm/testing-repo/tree/main/src/app/components/class/notification/notification.component.ts
https://raw.githubusercontent.com/KannanKathirvelm/testing-repo/224a663/src/app/components/class/notification/notification.component.ts
KannanKathirvelm/testing-repo 224a663 src/app/components/class/notification/notification.component.ts
true
200
5,196
import { Component, EventEmitter, HostListener, Input, OnInit, Output } from '@angular/core'; import { Router } from '@angular/router'; import { EVENTS } from '@app/constants/events-constants'; import { ClassService } from '@app/providers/service/class/class.service'; import { ParseService } from '@app/providers/servic...
4
ssaaresalu/bakalaureus_app
693acda
src/app/shared/components/page-component-abstract.ts
TypeScript
www.github.com/ssaaresalu/bakalaureus_app/tree/main/src/app/shared/components/page-component-abstract.ts
https://raw.githubusercontent.com/ssaaresalu/bakalaureus_app/693acda/src/app/shared/components/page-component-abstract.ts
ssaaresalu/bakalaureus_app 693acda src/app/shared/components/page-component-abstract.ts
true
200
11,047
import { Directive, inject, OnDestroy } from '@angular/core'; import { DataService } from '../services/data.service'; import { combineLatestWith, startWith, Subject, takeUntil } from 'rxjs'; import { DetailsForm } from '../../interface/details-form'; import { ListValueItem } from '../../interface/list-value-item'; impo...
5
jollytoad/ahx
d6c352a
core/action-event.ts
TypeScript
www.github.com/jollytoad/ahx/tree/main/core/action-event.ts
https://raw.githubusercontent.com/jollytoad/ahx/d6c352a/core/action-event.ts
jollytoad/ahx d6c352a core/action-event.ts
true
200
1,620
import type { ActionContext, ActionResult } from "@ahx/types"; export interface ActionEventInit extends EventInit { context: ActionContext; } export class ActionEvent extends Event { context: ActionContext; #results?: Promise<ActionResult | void>[]; constructor(type: string, { context, ...init }: ActionEvent...
7
ValdirFerreira/Buscador
de4cef3
FrontEnd/src/app/components/dialog-content/dialog-content.component.ts
TypeScript
www.github.com/ValdirFerreira/Buscador/tree/main/FrontEnd/src/app/components/dialog-content/dialog-content.component.ts
https://raw.githubusercontent.com/ValdirFerreira/Buscador/de4cef3/FrontEnd/src/app/components/dialog-content/dialog-content.component.ts
ValdirFerreira/Buscador de4cef3 FrontEnd/src/app/components/dialog-content/dialog-content.component.ts
true
200
6,280
import { Component, Input, OnInit } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { EmpresaModel } from 'src/app/models/EmpresaModel/EmpresaModel'; import { PesquisaRequest, PesquisaResult } from 'src/app/models/PesquisaResultM...
2
MohanadaasJayavel/chat-application-crud
43c872e
src/controllers/userController.ts
TypeScript
www.github.com/MohanadaasJayavel/chat-application-crud/tree/main/src/controllers/userController.ts
https://raw.githubusercontent.com/MohanadaasJayavel/chat-application-crud/43c872e/src/controllers/userController.ts
MohanadaasJayavel/chat-application-crud 43c872e src/controllers/userController.ts
true
200
1,961
import { Request, Response } from 'express'; import { registerUser, loginUser } from '../services/userService'; import bcrypt from 'bcrypt'; const JWT_SECRET = process.env.JWT_SECRET || 'your_secret_key'; export const register = async (req: Request, res: Response) => { try { const { username, password } = ...
1
Heathro/GameHub
77e3410
client/src/app/components/games/file-editor/file-editor.component.ts
TypeScript
www.github.com/Heathro/GameHub/tree/main/client/src/app/components/games/file-editor/file-editor.component.ts
https://raw.githubusercontent.com/Heathro/GameHub/77e3410/client/src/app/components/games/file-editor/file-editor.component.ts
Heathro/GameHub 77e3410 client/src/app/components/games/file-editor/file-editor.component.ts
true
200
6,358
import { Component, Input } from '@angular/core'; import { FileUploader } from 'ng2-file-upload'; import { ToastrService } from 'ngx-toastr'; import { take } from 'rxjs'; import { environment } from 'src/environments/environment'; import { BasicFunctions } from 'src/app/helpers/basicFunctions'; import { AccountServic...
3
DegirmenciOmer/Events
4c4362b
frontend/pages/api/logout.ts
TypeScript
www.github.com/DegirmenciOmer/Events/tree/main/frontend/pages/api/logout.ts
https://raw.githubusercontent.com/DegirmenciOmer/Events/4c4362b/frontend/pages/api/logout.ts
DegirmenciOmer/Events 4c4362b frontend/pages/api/logout.ts
true
200
636
import { NextApiRequest, NextApiResponse } from 'next' import cookie from 'cookie' export default async (req: NextApiRequest, res: NextApiResponse) => { if (req.method === 'POST') { // destroy cookie res.setHeader( 'Set-Cookie', cookie.serialize('token', '', { httpOnly: true, secu...
4
Kurtko10/estudio-tatuaje
1a7d819
src/database/seeders/ClientSeeder.ts
TypeScript
www.github.com/Kurtko10/estudio-tatuaje/tree/main/src/database/seeders/ClientSeeder.ts
https://raw.githubusercontent.com/Kurtko10/estudio-tatuaje/1a7d819/src/database/seeders/ClientSeeder.ts
Kurtko10/estudio-tatuaje 1a7d819 src/database/seeders/ClientSeeder.ts
true
200
799
import { SeederConfig } from "../../config/seeders"; import { Client } from "../../models/Client"; import { ClientFactory } from "../factories/ClientFactory"; import { Seeder } from "./Seeder"; import { User } from "../../models/User"; import { UserRoles } from "../../constants/UserRoles"; export class ClientSeeder e...
7
TinVo13/CMS_Ticket_Sale
f45fe02
src/redux/store.ts
TypeScript
www.github.com/TinVo13/CMS_Ticket_Sale/tree/main/src/redux/store.ts
https://raw.githubusercontent.com/TinVo13/CMS_Ticket_Sale/f45fe02/src/redux/store.ts
TinVo13/CMS_Ticket_Sale f45fe02 src/redux/store.ts
true
200
981
import { configureStore } from "@reduxjs/toolkit"; import ticketPackageSlice from "./features/ticketPackage.slice"; import ticketCheckSlice from "./features/ticketCheck.slice"; import ticketEventPackageSlice from "./features/ticketEventPackage.slice"; import ticketFamilyPackageSlice from "./features/ticketFamilyPackage...
2
digi-monkey/seal-blog
2c0d9e7
packages/sdk/src/web3.ts
TypeScript
www.github.com/digi-monkey/seal-blog/tree/main/packages/sdk/src/web3.ts
https://raw.githubusercontent.com/digi-monkey/seal-blog/2c0d9e7/packages/sdk/src/web3.ts
digi-monkey/seal-blog 2c0d9e7 packages/sdk/src/web3.ts
true
200
3,445
// note: most function here only runnable on browser import { HexNum, HexStr } from "./types"; export const ZERO_ADDRESS = "0x" + "00".repeat(20); export type AccountChangeCallback = (account: string | undefined) => any; export type ChainIdChangeCallback = (chainId: string) => any; export interface ChainConfigCurren...
1
MicheledeRosaDeveloper/rentalCarClient
da9f0a2
src/app/pipes/date-format.pipe.ts
TypeScript
www.github.com/MicheledeRosaDeveloper/rentalCarClient/tree/main/src/app/pipes/date-format.pipe.ts
https://raw.githubusercontent.com/MicheledeRosaDeveloper/rentalCarClient/da9f0a2/src/app/pipes/date-format.pipe.ts
MicheledeRosaDeveloper/rentalCarClient da9f0a2 src/app/pipes/date-format.pipe.ts
true
200
608
import { Pipe, PipeTransform } from '@angular/core'; import { DatePipe } from '@angular/common'; @Pipe({ name: 'dateFormat' }) export class DateFormatPipe implements PipeTransform { transform(value: any, format: string = 'dd-MM-yyyy'): any { if (this.isDateString(value)) { const date = new Date(value); ...
3
waksund/cqrs_ts
9ee7e94
apps/commands-read/src/app/app.module.ts
TypeScript
www.github.com/waksund/cqrs_ts/tree/main/apps/commands-read/src/app/app.module.ts
https://raw.githubusercontent.com/waksund/cqrs_ts/9ee7e94/apps/commands-read/src/app/app.module.ts
waksund/cqrs_ts 9ee7e94 apps/commands-read/src/app/app.module.ts
true
200
422
import { Module } from '@nestjs/common'; import { APP_FILTER } from '@nestjs/core'; import { DataBaseModule } from '@cmn/database'; import { ErrorFilter } from '../common/error.filter'; import { BookModule } from './book/book.module'; @Module({ imports: [ DataBaseModule, BookModule, ], providers: [ ...
5
westleyrotolo/primeng
b994770
src/app/components/marketing/logocloud/logocloud.module.ts
TypeScript
www.github.com/westleyrotolo/primeng/tree/main/src/app/components/marketing/logocloud/logocloud.module.ts
https://raw.githubusercontent.com/westleyrotolo/primeng/b994770/src/app/components/marketing/logocloud/logocloud.module.ts
westleyrotolo/primeng b994770 src/app/components/marketing/logocloud/logocloud.module.ts
true
200
471
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LogoCloudComponent } from './logocloud.component'; import { LogoCloudRoutingModule } from './logocloud-routing.module'; import { BlockViewerModule } from '../../blockviewer/blockviewer.module'; @NgModule({ imports: [ ...
4
project-baam/baam-server
5a6d620
src/module/school-dataset/application/port/school.repository.abstract.ts
TypeScript
www.github.com/project-baam/baam-server/tree/main/src/module/school-dataset/application/port/school.repository.abstract.ts
https://raw.githubusercontent.com/project-baam/baam-server/5a6d620/src/module/school-dataset/application/port/school.repository.abstract.ts
project-baam/baam-server 5a6d620 src/module/school-dataset/application/port/school.repository.abstract.ts
true
200
620
import { PaginatedList } from 'src/common/dto/response.dto'; import { GetSchoolsRequest } from '../../adapter/presenter/rest/dto/school.dto'; import { SchoolEntity } from '../../adapter/persistence/orm/entities/school.entity'; export abstract class SchoolRepository { abstract findByIdOrFail(id: number): Promise<Scho...
7
buape/Reminder
259b904
packages/database/src/reminders.ts
TypeScript
www.github.com/buape/Reminder/tree/main/packages/database/src/reminders.ts
https://raw.githubusercontent.com/buape/Reminder/259b904/packages/database/src/reminders.ts
buape/Reminder 259b904 packages/database/src/reminders.ts
true
200
1,254
import db from "../index.js" export const getReminder = async (id: string) => { const reminder = await db.reminder.findUnique({ where: { id, }, }) return reminder } export const getReminders = async (userId: string) => { const reminders = await db.reminder.findMany({ where: { userId, }, }) return...
2
basti-app/basti
59072c7
packages/basti/src/cli/commands/connect/get-bastion.ts
TypeScript
www.github.com/basti-app/basti/tree/main/packages/basti/src/cli/commands/connect/get-bastion.ts
https://raw.githubusercontent.com/basti-app/basti/59072c7/packages/basti/src/cli/commands/connect/get-bastion.ts
basti-app/basti 59072c7 packages/basti/src/cli/commands/connect/get-bastion.ts
true
200
1,189
import type { Bastion } from '#src/bastion/bastion.js'; import * as bastionOps from '#src/bastion/get-bastion.js'; import { ManagedResourceTypes } from '#src/common/resource-type.js'; import { ResourceNotFoundError, UnexpectedStateError, } from '#src/common/runtime-errors.js'; import type { ConnectTarget } from '#s...
1
mikiyas-girma/CMORSS-AI-plant-care
27a9549
backend/src/config/redisClient.ts
TypeScript
www.github.com/mikiyas-girma/CMORSS-AI-plant-care/tree/main/backend/src/config/redisClient.ts
https://raw.githubusercontent.com/mikiyas-girma/CMORSS-AI-plant-care/27a9549/backend/src/config/redisClient.ts
mikiyas-girma/CMORSS-AI-plant-care 27a9549 backend/src/config/redisClient.ts
true
200
543
import { createClient } from "redis"; import 'dotenv/config'; const redisClient = createClient({ password: process.env.REDIS_PASSWORD || '', socket: { host: process.env.REDIS_HOST || 'redis://localhost:6379', port: parseInt(process.env.REDIS_PORT || '6379'), timeout: parseInt(process.e...
3
Ramplex-Technologies/clujo
2acad75
dist/_cron.d.ts
TypeScript
www.github.com/Ramplex-Technologies/clujo/tree/main/dist/_cron.d.ts
https://raw.githubusercontent.com/Ramplex-Technologies/clujo/2acad75/dist/_cron.d.ts
Ramplex-Technologies/clujo 2acad75 dist/_cron.d.ts
true
200
1,227
import { CronOptions } from 'croner'; declare class Cron { #private; constructor(cronExpression: string | Date | (string | Date)[], cronOptions?: CronOptions); /** * Starts the cron job with the specified handler. * * @param handler A function to be executed when the cron job triggers. ...
4
2627500295/ui
b38d040
packages/toolkit/src/object.ts
TypeScript
www.github.com/2627500295/ui/tree/main/packages/toolkit/src/object.ts
https://raw.githubusercontent.com/2627500295/ui/b38d040/packages/toolkit/src/object.ts
2627500295/ui b38d040 packages/toolkit/src/object.ts
true
200
675
/** * pickBy * * @param {object} obj - 对象 * @param {array} props - 要取那些属性 * @param {function} predicate - 回调 * @returns {object} */ export function pickBy<T extends {}, K extends keyof T>( obj: T, props: K[], predicate: (value: unknown, key: K) => boolean ): Pick<T, K> { return props.reduce<Pick<T, K>>((...
5
OXG-Ex/sw-api-frontend
31995e8
src/api/ApiService.ts
TypeScript
www.github.com/OXG-Ex/sw-api-frontend/tree/main/src/api/ApiService.ts
https://raw.githubusercontent.com/OXG-Ex/sw-api-frontend/31995e8/src/api/ApiService.ts
OXG-Ex/sw-api-frontend 31995e8 src/api/ApiService.ts
true
200
977
import axios, { AxiosInstance, AxiosResponse } from "axios"; import { Character } from "../models/Character"; import { SearchCharacterResult } from "../models/SearchCharacterResult"; export interface IApiService { search(query: string, page: number): Promise<AxiosResponse<SearchCharacterResult>>; getCharacter...
7
carivash-code/adminpro-angular
e267a9a
src/app/app-rounting.module.ts
TypeScript
www.github.com/carivash-code/adminpro-angular/tree/main/src/app/app-rounting.module.ts
https://raw.githubusercontent.com/carivash-code/adminpro-angular/e267a9a/src/app/app-rounting.module.ts
carivash-code/adminpro-angular e267a9a src/app/app-rounting.module.ts
true
200
1,238
import { PagesComponent } from './pages/pages.component'; import { NopagefoundComponent } from './pages/nopagefound/nopagefound.component'; import { Grafica1Component } from './pages/grafica1/grafica1.component'; import { ProgressComponent } from './pages/progress/progress.component'; import { LoginComponent } from './...
2
PseudoElement/eos-core-angular
5ea751f
projects/delo-lib/src/lib/eos-dictionaries/core/sev/sev-collisions-dictionary-descriptor.ts
TypeScript
www.github.com/PseudoElement/eos-core-angular/tree/main/projects/delo-lib/src/lib/eos-dictionaries/core/sev/sev-collisions-dictionary-descriptor.ts
https://raw.githubusercontent.com/PseudoElement/eos-core-angular/5ea751f/projects/delo-lib/src/lib/eos-dictionaries/core/sev/sev-collisions-dictionary-descriptor.ts
PseudoElement/eos-core-angular 5ea751f projects/delo-lib/src/lib/eos-dictionaries/core/sev/sev-collisions-dictionary-descriptor.ts
true
200
6,512
import { SevDictionaryDescriptor } from './sev-dictionary-descriptor'; import { CustomTreeNode } from '../../../eos-dictionaries/tree2/custom-tree.component'; import { ALL_ROWS } from '../../../eos-rest/core/consts'; import { ISearchSettings } from '../../../eos-dictionaries/interfaces'; import { EosDictionaryNode } fr...
3
aryanmishra29/jhipl
8a5dfb5
src/utils/dateUtils.ts
TypeScript
www.github.com/aryanmishra29/jhipl/tree/main/src/utils/dateUtils.ts
https://raw.githubusercontent.com/aryanmishra29/jhipl/8a5dfb5/src/utils/dateUtils.ts
aryanmishra29/jhipl 8a5dfb5 src/utils/dateUtils.ts
true
200
1,052
/** * Checks if the current date is a blocked date (2nd, 11th, or 21st of any month) * @returns boolean - true if current date is blocked, false otherwise */ export const isBlockedDate = (): boolean => { const today = new Date(); const day = today.getDate(); if (localStorage.getItem("userEmail") === "user@jhi...
4
Aldeimeter/MyCondition
62fa29f
src/components/user/validators/user.validators.ts
TypeScript
www.github.com/Aldeimeter/MyCondition/tree/main/src/components/user/validators/user.validators.ts
https://raw.githubusercontent.com/Aldeimeter/MyCondition/62fa29f/src/components/user/validators/user.validators.ts
Aldeimeter/MyCondition 62fa29f src/components/user/validators/user.validators.ts
true
200
662
const { param, query } = require("express-validator"); export const fetchUserProfileValidator = [ param("id") .notEmpty() .withMessage("User id is missing") .bail() .matches( /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/, ) .withMessage("Id must...
5
AljazOblonsek/mini-aws-mock
31ccd8c
packages/web/src/features/sns/hooks/use-purge-publish-history-mutation.ts
TypeScript
www.github.com/AljazOblonsek/mini-aws-mock/tree/main/packages/web/src/features/sns/hooks/use-purge-publish-history-mutation.ts
https://raw.githubusercontent.com/AljazOblonsek/mini-aws-mock/31ccd8c/packages/web/src/features/sns/hooks/use-purge-publish-history-mutation.ts
AljazOblonsek/mini-aws-mock 31ccd8c packages/web/src/features/sns/hooks/use-purge-publish-history-mutation.ts
true
200
619
import toast from 'solid-toast'; import { createMutation, useQueryClient } from '@tanstack/solid-query'; import { purgePublishHistory } from '../api/purge-publish-history'; export const usePurgePublishHistoryMutation = () => { const queryClient = useQueryClient(); return createMutation(() => ({ mutationKey: [...
7
RahatRezwan/university-management-auth-service
8db7af2
src/app/modules/user/user.interface.ts
TypeScript
www.github.com/RahatRezwan/university-management-auth-service/tree/main/src/app/modules/user/user.interface.ts
https://raw.githubusercontent.com/RahatRezwan/university-management-auth-service/8db7af2/src/app/modules/user/user.interface.ts
RahatRezwan/university-management-auth-service 8db7af2 src/app/modules/user/user.interface.ts
true
200
1,122
/* eslint-disable no-unused-vars */ import { Model, Types } from 'mongoose'; import { IAdmin } from '../admin/admin.interface'; import { IStudent } from '../student/student.interface'; import { IFaculty } from '../userFaculty/userFaculty.interface'; // 1. Create an interface representing a document in MongoDB. export ...
3
gianmarioiamoni/PIVABalance
9a02eae
server/src/routes/professionalFundRoutes.ts
TypeScript
www.github.com/gianmarioiamoni/PIVABalance/tree/main/server/src/routes/professionalFundRoutes.ts
https://raw.githubusercontent.com/gianmarioiamoni/PIVABalance/9a02eae/server/src/routes/professionalFundRoutes.ts
gianmarioiamoni/PIVABalance 9a02eae server/src/routes/professionalFundRoutes.ts
true
200
1,270
import express from 'express'; import { professionalFundController } from '../controllers/professionalFundController'; import { validateRequest } from '../middleware/validateRequest'; import { body, param } from 'express-validator'; const router = express.Router(); // Validation middleware const validateFundParameter...
2
ramp-development/rahc
ae4e7ae
src/pages/marketingToolkit/download.ts
TypeScript
www.github.com/ramp-development/rahc/tree/main/src/pages/marketingToolkit/download.ts
https://raw.githubusercontent.com/ramp-development/rahc/ae4e7ae/src/pages/marketingToolkit/download.ts
ramp-development/rahc ae4e7ae src/pages/marketingToolkit/download.ts
true
200
5,930
import { simulateEvent } from '@finsweet/ts-utils'; import axios from 'axios'; import JSZip from 'jszip'; export const download = () => { // element selectors const downloadFormSelector = '[data-download-form]', assetFormSelector = '[data-asset-form]', toolkitBodySelector = '[data-folder-body]', downlo...
5
cyrkakou/insurance
6ae0206
database/schema/api-keys.schema.ts
TypeScript
www.github.com/cyrkakou/insurance/tree/main/database/schema/api-keys.schema.ts
https://raw.githubusercontent.com/cyrkakou/insurance/6ae0206/database/schema/api-keys.schema.ts
cyrkakou/insurance 6ae0206 database/schema/api-keys.schema.ts
true
200
1,658
import { mysqlTable, varchar, int, datetime, text, tinyint, json, uniqueIndex, index, primaryKey, timestamp } from 'drizzle-orm/mysql-core'; import { relations } from 'drizzle-orm'; import { users } from './users.schema'; export const apiKeys = mysqlTable('api_keys', { id: int('id').au...
1
handellazo/FrontendPI4S
831be2e
src/app/modules/home/home.module.ts
TypeScript
www.github.com/handellazo/FrontendPI4S/tree/main/src/app/modules/home/home.module.ts
https://raw.githubusercontent.com/handellazo/FrontendPI4S/831be2e/src/app/modules/home/home.module.ts
handellazo/FrontendPI4S 831be2e src/app/modules/home/home.module.ts
true
200
548
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { HomeRoutingModule } from './home-routing.module'; import { DifusionModule } from '../Difusion/difusion.module'; import { SharedModule } from 'src/app/shared/shared.module'; import { HomeComponent } from './pages/home/home...
7
sachanashutosh15/learning_angular
08db128
src/app/validators/custom-validators.ts
TypeScript
www.github.com/sachanashutosh15/learning_angular/tree/main/src/app/validators/custom-validators.ts
https://raw.githubusercontent.com/sachanashutosh15/learning_angular/08db128/src/app/validators/custom-validators.ts
sachanashutosh15/learning_angular 08db128 src/app/validators/custom-validators.ts
true
200
1,211
import { AbstractControl, FormGroup } from '@angular/forms'; export class CustomValidator { static ValidateName(control: AbstractControl) { const value = control.value as string; if (value.includes('test')) { return { invalidName: true, }; } return null; } static ValidateSpec...
2
iamresp/rails-lib
189b059
src/utils/physics.ts
TypeScript
www.github.com/iamresp/rails-lib/tree/main/src/utils/physics.ts
https://raw.githubusercontent.com/iamresp/rails-lib/189b059/src/utils/physics.ts
iamresp/rails-lib 189b059 src/utils/physics.ts
true
200
1,615
const getIsOverlapped = ({ left, top }: DOMRect, { bottom, right }: DOMRect) => left <= right && top <= bottom; /** * Позволяет высчитать, в каком направлении относительно игрока произошло столкновение. * * @param {DOMRect} p - `getBoundingClientRect()` игрока. * @param {DOMRect} o - `getBoundingClientRect()` объе...
4
elimanzo/leetcode
2f2adc8
2824-count-pairs-whose-sum-is-less-than-target/solution.ts
TypeScript
www.github.com/elimanzo/leetcode/tree/main/2824-count-pairs-whose-sum-is-less-than-target/solution.ts
https://raw.githubusercontent.com/elimanzo/leetcode/2f2adc8/2824-count-pairs-whose-sum-is-less-than-target/solution.ts
elimanzo/leetcode 2f2adc8 2824-count-pairs-whose-sum-is-less-than-target/solution.ts
true
200
1,254
// https://leetcode.com/problems/count-pairs-whose-sum-is-less-than-target/description/ // 2824-count-pairs-whose-sum-is-less-than-target // function countPairs(nums: number[], target: number): number { // let counter = 0; // for(let i = 0; i < nums.length; i++) { // for(let j = i + 1; j <= nums.length; j++) {...
5
MulyonoPutra/Monevis
23bb693
src/app/modules/user/user.module.ts
TypeScript
www.github.com/MulyonoPutra/Monevis/tree/main/src/app/modules/user/user.module.ts
https://raw.githubusercontent.com/MulyonoPutra/Monevis/23bb693/src/app/modules/user/user.module.ts
MulyonoPutra/Monevis 23bb693 src/app/modules/user/user.module.ts
true
200
331
import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { UserRoutingModule } from './user-routing.module'; @NgModule({ declarations: [], imports: [CommonModule, UserRoutingModule, HttpClientModule], }) export class Use...
1
nitesh-dev/GitAutoCommit
cdc9283
src/github.ts
TypeScript
www.github.com/nitesh-dev/GitAutoCommit/tree/main/src/github.ts
https://raw.githubusercontent.com/nitesh-dev/GitAutoCommit/cdc9283/src/github.ts
nitesh-dev/GitAutoCommit cdc9283 src/github.ts
true
200
3,898
import axios from "axios"; import { Octokit } from "@octokit/rest"; import env from "dotenv"; env.config(); // README file update information const filePath = "README.md"; // Path to the README file const commitMessage = "README file quotes changes"; const branch = "main"; // export async function getRepositoryDetail...
6
RomiKMoveo/Adcore-Simple-Form-field
6d5685b
adcore-simple-form-field/src/app/app.component.ts
TypeScript
www.github.com/RomiKMoveo/Adcore-Simple-Form-field/tree/main/adcore-simple-form-field/src/app/app.component.ts
https://raw.githubusercontent.com/RomiKMoveo/Adcore-Simple-Form-field/6d5685b/adcore-simple-form-field/src/app/app.component.ts
RomiKMoveo/Adcore-Simple-Form-field 6d5685b adcore-simple-form-field/src/app/app.component.ts
true
200
400
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { SelectComponent } from './select/select.component'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet, SelectComponent], templateUrl: './app.component.html', styleUrl: './app.componen...
0
HansGabriel/TestTrek
a8208b3
packages/api/src/router/auth.ts
TypeScript
www.github.com/HansGabriel/TestTrek/tree/main/packages/api/src/router/auth.ts
https://raw.githubusercontent.com/HansGabriel/TestTrek/a8208b3/packages/api/src/router/auth.ts
HansGabriel/TestTrek a8208b3 packages/api/src/router/auth.ts
true
200
374
import { z } from "zod"; import { protectedProcedure, router } from "../trpc"; export const authRouter = router({ getSecretMessage: protectedProcedure .meta({ openapi: { method: "GET", path: "/auth/secret", }, }) .input(z.void()) .output(z.any()) .query(() => { r...
7
solana-turbin3/Q1_25_Builder_wowinter13
5ef7315
enroll-ts/transfer.ts
TypeScript
www.github.com/solana-turbin3/Q1_25_Builder_wowinter13/tree/main/enroll-ts/transfer.ts
https://raw.githubusercontent.com/solana-turbin3/Q1_25_Builder_wowinter13/5ef7315/enroll-ts/transfer.ts
solana-turbin3/Q1_25_Builder_wowinter13 5ef7315 enroll-ts/transfer.ts
true
200
1,449
import { Transaction, SystemProgram, Connection, Keypair, LAMPORTS_PER_SOL, sendAndConfirmTransaction, PublicKey } from "@solana/web3.js" import wallet from "./dev-wallet.json" const from = Keypair.fromSecretKey(new Uint8Array(wallet)); const to = new PublicKey("GLtaTaYiTQrgz411iPJD79rsoee59HhEy18rtRdrhEUJ");...
3
KINGAVIP/Authentication-App-nextjs-express
a02e8d3
server/src/router/auth/index.ts
TypeScript
www.github.com/KINGAVIP/Authentication-App-nextjs-express/tree/main/server/src/router/auth/index.ts
https://raw.githubusercontent.com/KINGAVIP/Authentication-App-nextjs-express/a02e8d3/server/src/router/auth/index.ts
KINGAVIP/Authentication-App-nextjs-express a02e8d3 server/src/router/auth/index.ts
true
200
396
import express from 'express' import type {Router} from 'express' import { AuthRoutes } from './routes'; export class Auth{ private router:Router; constructor() { this.router=express.Router(); this.router.post('/register',AuthRoutes.register); this.router.post('/login',AuthRoutes.lo...
2
Kainar01/sample-app
5cf3eee
apps/server/src/services/request-context.service.ts
TypeScript
www.github.com/Kainar01/sample-app/tree/main/apps/server/src/services/request-context.service.ts
https://raw.githubusercontent.com/Kainar01/sample-app/5cf3eee/apps/server/src/services/request-context.service.ts
Kainar01/sample-app 5cf3eee apps/server/src/services/request-context.service.ts
true
200
1,277
import { RequestContext } from 'nestjs-request-context'; import { AppAbility } from '../core/permission/permission.interface'; import { PrismaTransactionClient } from '../prisma/prisma.interface'; /** * Setting some isolated context for each request. */ export class AppRequestContext extends RequestContext { publ...
4
Jander1016/restserver-nodejs
2a3fa8e
src/presentation/middlewares/auth.middleware.ts
TypeScript
www.github.com/Jander1016/restserver-nodejs/tree/main/src/presentation/middlewares/auth.middleware.ts
https://raw.githubusercontent.com/Jander1016/restserver-nodejs/2a3fa8e/src/presentation/middlewares/auth.middleware.ts
Jander1016/restserver-nodejs 2a3fa8e src/presentation/middlewares/auth.middleware.ts
true
200
1,100
import { NextFunction, Response, Request } from "express"; import { JwtAdapter } from "../../config/jwt"; import { UserModel } from "../../data/mongodb"; export class AuthMiddleware { static validateJwt = async ( req: Request, res: Response, next: NextFunction ) => { const authorization = req.heade...
5
the-customer/cdsd-typecript-l2-2024
76af65c
project-structure/index.ts
TypeScript
www.github.com/the-customer/cdsd-typecript-l2-2024/tree/main/project-structure/index.ts
https://raw.githubusercontent.com/the-customer/cdsd-typecript-l2-2024/76af65c/project-structure/index.ts
the-customer/cdsd-typecript-l2-2024 76af65c project-structure/index.ts
true
200
2,065
// LES TYPES const x = 10 console.log( typeof(x)) const y = 10.5 console.log( typeof(y)) let z; console.log( typeof(z)) z = "Toto" z = true console.log( typeof(z)) // NB : typeof permet de savoir le type d'une valeur //============= - Number let a: Number,c: Number; var b: Number; // a = "dfdsf" //❌ // c = "ghsd...
6
PrashantTrivediKsolves/ecomm-project
3db45ca
src/app/services/seseller.service.spec.ts
TypeScript
www.github.com/PrashantTrivediKsolves/ecomm-project/tree/main/src/app/services/seseller.service.spec.ts
https://raw.githubusercontent.com/PrashantTrivediKsolves/ecomm-project/3db45ca/src/app/services/seseller.service.spec.ts
PrashantTrivediKsolves/ecomm-project 3db45ca src/app/services/seseller.service.spec.ts
true
200
367
import { TestBed } from '@angular/core/testing'; import { SesellerService } from './seseller.service'; describe('SesellerService', () => { let service: SesellerService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SesellerService); }); it('should be created', () =>...
0
raniazitouni/SAHHTEK
c160a03
frontend/src/app/pages/patients/patients.component.ts
TypeScript
www.github.com/raniazitouni/SAHHTEK/tree/main/frontend/src/app/pages/patients/patients.component.ts
https://raw.githubusercontent.com/raniazitouni/SAHHTEK/c160a03/frontend/src/app/pages/patients/patients.component.ts
raniazitouni/SAHHTEK c160a03 frontend/src/app/pages/patients/patients.component.ts
true
200
6,277
import { Component, OnInit } from '@angular/core'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; interface Patient { nss: string; personne: string; mail: string; mutuelle: string; name: string...
1
eleccrazy/alx-checkin-backend-api
d008641
src/programs/interfaces/programs-service.interface.ts
TypeScript
www.github.com/eleccrazy/alx-checkin-backend-api/tree/main/src/programs/interfaces/programs-service.interface.ts
https://raw.githubusercontent.com/eleccrazy/alx-checkin-backend-api/d008641/src/programs/interfaces/programs-service.interface.ts
eleccrazy/alx-checkin-backend-api d008641 src/programs/interfaces/programs-service.interface.ts
true
200
653
import { ProgramEntity } from 'src/entities/programs.entity'; import { CohortEntity } from 'src/entities/cohorts.entity'; // Define an interface for programs query service export interface IProgramsQueryService { getAllPrograms(): Promise<ProgramEntity[]>; getSingleProgram(id: string): Promise<ProgramEntity>; get...
3
GeoLine02/home-chef-client-back
928261a
src/user/user.controller.ts
TypeScript
www.github.com/GeoLine02/home-chef-client-back/tree/main/src/user/user.controller.ts
https://raw.githubusercontent.com/GeoLine02/home-chef-client-back/928261a/src/user/user.controller.ts
GeoLine02/home-chef-client-back 928261a src/user/user.controller.ts
true
200
818
import { Controller, Get, Param } from '@nestjs/common'; import { UserService } from './user.service'; @Controller('users') export class UserController { constructor(private readonly userService: UserService) {} // @Post('/:userID/favorites') // async saveToFavorites( // @Param('userID') userID: string, //...
2
dmaeso-plexus/spotlight
0010c56
src/hooks/usePrevious.ts
TypeScript
www.github.com/dmaeso-plexus/spotlight/tree/main/src/hooks/usePrevious.ts
https://raw.githubusercontent.com/dmaeso-plexus/spotlight/0010c56/src/hooks/usePrevious.ts
dmaeso-plexus/spotlight 0010c56 src/hooks/usePrevious.ts
true
200
321
import { useEffect, useRef } from 'react'; function usePrevious<T>(value: T): T | undefined { const valueRef = useRef<T>(); const previousValue = valueRef.current; useEffect(() => { valueRef.current = value; }, [value]); return previousValue; } export default usePrevious; ...
5