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
Sharlottes/thefinalsbot
aeec7d8
src/discord/features/InviteLinkRemover.ts
TypeScript
www.github.com/Sharlottes/thefinalsbot/tree/main/src/discord/features/InviteLinkRemover.ts
https://raw.githubusercontent.com/Sharlottes/thefinalsbot/aeec7d8/src/discord/features/InviteLinkRemover.ts
Sharlottes/thefinalsbot aeec7d8 src/discord/features/InviteLinkRemover.ts
true
200
568
import Vars from "@/Vars"; import { Discord, On } from "discordx"; @Discord() export default class InviteLinkRemover { @On({ event: "messageCreate" }) private async messageCreate([message]: DiscordX.ArgsOf<"messageCreate">, client: DiscordX.Client) { const matchArr = message.content.match(/discord.gg\/([A-Za-z...
1
iDommel/AREA
0bd0a5a
server/source/controllers/about.ts
TypeScript
www.github.com/iDommel/AREA/tree/main/server/source/controllers/about.ts
https://raw.githubusercontent.com/iDommel/AREA/0bd0a5a/server/source/controllers/about.ts
iDommel/AREA 0bd0a5a server/source/controllers/about.ts
true
200
1,546
import { NextFunction, Request, Response } from 'express'; import Service from '../models/service'; type ServiceType = { name: string; actions: Array<{ name: string; description: string; }>; reactions: Array<{ name: string; description: string; }>; }; const getServic...
0
libreworks/shady-island
682fc86
src/cloudwatch/encrypted-log-group.ts
TypeScript
www.github.com/libreworks/shady-island/tree/main/src/cloudwatch/encrypted-log-group.ts
https://raw.githubusercontent.com/libreworks/shady-island/682fc86/src/cloudwatch/encrypted-log-group.ts
libreworks/shady-island 682fc86 src/cloudwatch/encrypted-log-group.ts
true
200
2,426
import { Stack, RemovalPolicy } from "aws-cdk-lib"; import { ServicePrincipal } from "aws-cdk-lib/aws-iam"; import { IKey, Key } from "aws-cdk-lib/aws-kms"; import { ILogGroup, LogGroup, RetentionDays } from "aws-cdk-lib/aws-logs"; import { Construct } from "constructs"; /** * A log group encrypted by a KMS customer ...
2
damjans92/tech-lounge
b5080b4
src/data/products.ts
TypeScript
www.github.com/damjans92/tech-lounge/tree/main/src/data/products.ts
https://raw.githubusercontent.com/damjans92/tech-lounge/b5080b4/src/data/products.ts
damjans92/tech-lounge b5080b4 src/data/products.ts
true
200
16,176
import { Product } from "../types"; import { shuffleArray } from "../utils/shuffleProducts"; const productsArray: Product[] = [ { id: "1a2b3c4d-5678-90ab-cdef-1234567890ab", category: "headphones", name: "Sony WH-1000XM5", price: 399, image: "headphones-1.jpg", brand: "Sony", description:...
1
PatrykMajchrzakDev/NextJSBoilerplate
0df7702
common/validation/auth.ts
TypeScript
www.github.com/PatrykMajchrzakDev/NextJSBoilerplate/tree/main/common/validation/auth.ts
https://raw.githubusercontent.com/PatrykMajchrzakDev/NextJSBoilerplate/0df7702/common/validation/auth.ts
PatrykMajchrzakDev/NextJSBoilerplate 0df7702 common/validation/auth.ts
true
200
791
import { z } from "zod"; // Zod validator for password export const passwordSchema = z .string() .trim() .min(8, "Password should have at least 8 characters") .max(60, "Password should not be longer than 60 characters") .refine( (val) => /[a-z]/.test(val ?? ""), "Password should include lowercase let...
0
joshaldair/Loymark
3b7e605
front-end/src/app/historial/modal/historial-modal/historial-modal.component.spec.ts
TypeScript
www.github.com/joshaldair/Loymark/tree/main/front-end/src/app/historial/modal/historial-modal/historial-modal.component.spec.ts
https://raw.githubusercontent.com/joshaldair/Loymark/3b7e605/front-end/src/app/historial/modal/historial-modal/historial-modal.component.spec.ts
joshaldair/Loymark 3b7e605 front-end/src/app/historial/modal/historial-modal/historial-modal.component.spec.ts
true
200
2,133
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { NgbActiveModal, NgbModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { of } from 'rxjs'; impor...
1
sandeepmauryaworld/angular-authGaurd
68ac1db
src/app/app-routing.module.ts
TypeScript
www.github.com/sandeepmauryaworld/angular-authGaurd/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/sandeepmauryaworld/angular-authGaurd/68ac1db/src/app/app-routing.module.ts
sandeepmauryaworld/angular-authGaurd 68ac1db src/app/app-routing.module.ts
true
200
890
import { AuthGuard } from './guards/auth.guard'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ForgotPasswordComponent } from './components/forgot-password/forgot-password.component'; import { LoginComponent } from './components/login/login.component'; import...
0
sagarmaiti26/pixelgenie
f50b6cb
lib/database/mongoose.ts
TypeScript
www.github.com/sagarmaiti26/pixelgenie/tree/main/lib/database/mongoose.ts
https://raw.githubusercontent.com/sagarmaiti26/pixelgenie/f50b6cb/lib/database/mongoose.ts
sagarmaiti26/pixelgenie f50b6cb lib/database/mongoose.ts
true
200
738
import mongoose, { Mongoose } from "mongoose"; const MONGODB_URL = process.env.MONGODB_URL; interface MongooseConnection { conn: Mongoose | null; promise: Promise<Mongoose> | null; } let cached: MongooseConnection = (global as any).mongoose; if (!cached) { cached = (global as any).mongoose = { ...
2
thingsboard/thingsboard-pe-ui-types
4f0a2cb
src/app/modules/home/components/widget/config/basic/cards/simple-card-basic-config.component.d.ts
TypeScript
www.github.com/thingsboard/thingsboard-pe-ui-types/tree/main/src/app/modules/home/components/widget/config/basic/cards/simple-card-basic-config.component.d.ts
https://raw.githubusercontent.com/thingsboard/thingsboard-pe-ui-types/4f0a2cb/src/app/modules/home/components/widget/config/basic/cards/simple-card-basic-config.component.d.ts
thingsboard/thingsboard-pe-ui-types 4f0a2cb src/app/modules/home/components/widget/config/basic/cards/simple-card-basic-config.component.d.ts
true
200
1,540
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { BasicWidgetConfigComponent } from '@home/components/widget/config/widget-config.component.models'; import { WidgetConfigComponentData } from '@home/models/wid...
1
frankllin15/form-platform-frontend
c8d7f83
stitches.config.ts
TypeScript
www.github.com/frankllin15/form-platform-frontend/tree/main/stitches.config.ts
https://raw.githubusercontent.com/frankllin15/form-platform-frontend/c8d7f83/stitches.config.ts
frankllin15/form-platform-frontend c8d7f83 stitches.config.ts
true
200
1,145
import { blue } from "@radix-ui/colors"; import { createStitches } from "@stitches/react"; export const { styled, getCssText, createTheme, globalCss } = createStitches({ theme: { colors: { primary: blue.blue10, white: "#fafafa", textD: "#18181b", textSecondaryD: "#737373", backgroun...
0
ngoquy12/nestjs_authen
d2db175
src/modules/auth/module/auth.module.ts
TypeScript
www.github.com/ngoquy12/nestjs_authen/tree/main/src/modules/auth/module/auth.module.ts
https://raw.githubusercontent.com/ngoquy12/nestjs_authen/d2db175/src/modules/auth/module/auth.module.ts
ngoquy12/nestjs_authen d2db175 src/modules/auth/module/auth.module.ts
true
200
610
import { Module } from '@nestjs/common'; import { AuthController } from '../controller/auth.controller'; import { AuthService } from '../service/auth.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { User } from 'src/modules/entities/auth.entity'; import { JwtModule } from '@nestjs/jwt'; @Modu...
2
khawla57/CatchTalentClient
7248ab1
src/app/candidat/service/candidat.service.ts
TypeScript
www.github.com/khawla57/CatchTalentClient/tree/main/src/app/candidat/service/candidat.service.ts
https://raw.githubusercontent.com/khawla57/CatchTalentClient/7248ab1/src/app/candidat/service/candidat.service.ts
khawla57/CatchTalentClient 7248ab1 src/app/candidat/service/candidat.service.ts
true
200
1,023
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Candidat } from '../models/candidat.model'; const baseUrl = 'http://localhost:8080/api/candidat'; @Injectable({ providedIn: 'root' }) export class CandidatService { const...
1
AlekseyTerentiev/influence.cloud
e971eaf
src/gql/task-types.ts
TypeScript
www.github.com/AlekseyTerentiev/influence.cloud/tree/main/src/gql/task-types.ts
https://raw.githubusercontent.com/AlekseyTerentiev/influence.cloud/e971eaf/src/gql/task-types.ts
AlekseyTerentiev/influence.cloud e971eaf src/gql/task-types.ts
true
200
1,718
import { useState, useEffect } from 'react'; import { gql, useQuery, useApolloClient, ApolloQueryResult } from '@apollo/client'; import { GetTaskTypes } from './types/GetTaskTypes'; import { GetTaskTypeCost, GetTaskTypeCostVariables } from './types/GetTaskTypeCost'; /*--------------------------------------------------...
0
AFelix20100/FindYourPicture
f4ac152
src/app/app.routes.ts
TypeScript
www.github.com/AFelix20100/FindYourPicture/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/AFelix20100/FindYourPicture/f4ac152/src/app/app.routes.ts
AFelix20100/FindYourPicture f4ac152 src/app/app.routes.ts
true
200
684
import { Routes } from '@angular/router'; import { ExploreComponent } from './explore/explore.component'; import { AppComponent } from './app.component'; import { HomeComponent } from './home/home.component'; import { ContactComponent } from './contact/contact.component'; import { AboutComponent } from './about/about.c...
7
tiongg/healthhack
ae937e1
frontend/vite.config.ts
TypeScript
www.github.com/tiongg/healthhack/tree/main/frontend/vite.config.ts
https://raw.githubusercontent.com/tiongg/healthhack/ae937e1/frontend/vite.config.ts
tiongg/healthhack ae937e1 frontend/vite.config.ts
true
200
584
// deno-lint-ignore-file no-explicit-any import deno from '@deno/vite-plugin'; import react from '@vitejs/plugin-react-swc'; import { defineConfig } from 'vite'; import svgr from 'vite-plugin-svgr'; // https://vite.dev/config/ export default defineConfig({ plugins: [ deno() as any, react() as any, svgr({...
1
RikoOrlando/github-search
46e193a
src/components/NoData/style.ts
TypeScript
www.github.com/RikoOrlando/github-search/tree/main/src/components/NoData/style.ts
https://raw.githubusercontent.com/RikoOrlando/github-search/46e193a/src/components/NoData/style.ts
RikoOrlando/github-search 46e193a src/components/NoData/style.ts
true
200
425
import styled from 'styled-components'; export const Container = styled.div` display: flex; align-items: center; margin-top: 50px; flex-direction: column; `; export const Img = styled.img` max-width: 300px; `; export const InfoWrap = styled.div` margin-top: 20px; display: flex; align-items: center;...
2
Matheesha-del/MedApp
f5e5f5d
supabase/functions/speech-to-text/index.ts
TypeScript
www.github.com/Matheesha-del/MedApp/tree/main/supabase/functions/speech-to-text/index.ts
https://raw.githubusercontent.com/Matheesha-del/MedApp/f5e5f5d/supabase/functions/speech-to-text/index.ts
Matheesha-del/MedApp f5e5f5d supabase/functions/speech-to-text/index.ts
true
200
826
//import { toFile } from "npm:openai@^4.52.5"; import "jsr:@supabase/functions-js/edge-runtime.d.ts" import OpenAI, { toFile } from "npm:openai"; import { corsHeaders } from '../_shared/cors.ts'; const openai = new OpenAI(); Deno.serve(async (req) => { if (req.method === 'OPTIONS') { return new Response('ok',...
0
vitalijkadylinskij/bankoTest
91fa8db
src/hooks/apiHooks/useGetGBVData.ts
TypeScript
www.github.com/vitalijkadylinskij/bankoTest/tree/main/src/hooks/apiHooks/useGetGBVData.ts
https://raw.githubusercontent.com/vitalijkadylinskij/bankoTest/91fa8db/src/hooks/apiHooks/useGetGBVData.ts
vitalijkadylinskij/bankoTest 91fa8db src/hooks/apiHooks/useGetGBVData.ts
true
200
425
import { useQuery } from '@tanstack/react-query' import axiosConfig from '@/services/axiosConfig' import { API_ENDPOINTS } from '@/services/endpoints' import { GBVData } from '@/models/GBV' export const useGetGBVData = () => { return useQuery<GBVData[], Error>({ queryKey: ['GBVData'], queryFn: async () => { ...
4
petercho0819/ps_OCR_msa
f18d816
apps/setting/src/schemas/setting.schema.ts
TypeScript
www.github.com/petercho0819/ps_OCR_msa/tree/main/apps/setting/src/schemas/setting.schema.ts
https://raw.githubusercontent.com/petercho0819/ps_OCR_msa/f18d816/apps/setting/src/schemas/setting.schema.ts
petercho0819/ps_OCR_msa f18d816 apps/setting/src/schemas/setting.schema.ts
true
200
469
import { AbstractDocument } from '@app/common'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; @Schema({ timestamps: true }) export class Setting extends AbstractDocument { @Prop() uploadDate: string; @Prop() companyCode: string; @Prop({ default: false }) isActive: boolean; createdAt:...
5
kumard3/todo-streak-app
cef4dd7
src/lib/dateUtils.ts
TypeScript
www.github.com/kumard3/todo-streak-app/tree/main/src/lib/dateUtils.ts
https://raw.githubusercontent.com/kumard3/todo-streak-app/cef4dd7/src/lib/dateUtils.ts
kumard3/todo-streak-app cef4dd7 src/lib/dateUtils.ts
true
200
532
/** * Formats a date into a string representation. * * @param date - The date to format. * @returns The formatted date string. */ export const formatDate = (date: Date): string => { return date.toISOString().split("T")[0]; }; /** * Returns the abbreviated name of the day for the given date. * * @param date...
7
knsan189/starlight-web
431363a
src/hooks/useDragDrop.ts
TypeScript
www.github.com/knsan189/starlight-web/tree/main/src/hooks/useDragDrop.ts
https://raw.githubusercontent.com/knsan189/starlight-web/431363a/src/hooks/useDragDrop.ts
knsan189/starlight-web 431363a src/hooks/useDragDrop.ts
true
200
2,850
import { IUser, Member } from "./../@types/types.d"; import { useCallback } from "react"; import { useDispatch } from "react-redux"; import { useSelector } from "react-redux"; import { RootState } from "../redux/reducers"; import { setParties } from "../redux/reducers/party"; import { DropResult } from "@hello-pangea/d...
6
zamzami16/system-toko
6157902
src/data_master/pelanggan/pelanggan.service.ts
TypeScript
www.github.com/zamzami16/system-toko/tree/main/src/data_master/pelanggan/pelanggan.service.ts
https://raw.githubusercontent.com/zamzami16/system-toko/6157902/src/data_master/pelanggan/pelanggan.service.ts
zamzami16/system-toko 6157902 src/data_master/pelanggan/pelanggan.service.ts
true
200
6,775
import { Injectable } from '@nestjs/common'; import { PrismaService } from '../../common/prisma.service'; import { ContactService } from '../contact/contact.service'; import { CreatePelangganRequest, PelangganResponse, SearchPelangganRequest, UpdatePelangganRequest, } from '../../model/data.master/pelanggan.mod...
3
MarinaModaMusicProd/Engine-MiniApps
90bbb09
common/foundation/resources/client/admin/custom-pages/custom-page.ts
TypeScript
www.github.com/MarinaModaMusicProd/Engine-MiniApps/tree/main/common/foundation/resources/client/admin/custom-pages/custom-page.ts
https://raw.githubusercontent.com/MarinaModaMusicProd/Engine-MiniApps/90bbb09/common/foundation/resources/client/admin/custom-pages/custom-page.ts
MarinaModaMusicProd/Engine-MiniApps 90bbb09 common/foundation/resources/client/admin/custom-pages/custom-page.ts
true
200
314
import {User} from '@ui/types/user'; export interface CustomPage { id: number; title?: string; body: string; slug: string; type: string; user?: User; user_id?: number; hide_nav: boolean; created_at?: string; updated_at?: string; meta?: Record<string, unknown>; model_type: 'customPage'; }
2
BogdanPv97/Library-Management-Angular
9a8682b
src/main/client/library-client/src/app/app-routing.module.ts
TypeScript
www.github.com/BogdanPv97/Library-Management-Angular/tree/main/src/main/client/library-client/src/app/app-routing.module.ts
https://raw.githubusercontent.com/BogdanPv97/Library-Management-Angular/9a8682b/src/main/client/library-client/src/app/app-routing.module.ts
BogdanPv97/Library-Management-Angular 9a8682b src/main/client/library-client/src/app/app-routing.module.ts
true
200
619
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AddBookComponent } from './components/add-book/add-book.component'; import { ErrorPageComponent } from './components/error-page/error-page.component'; import { HomeComponent } from './components/home/home.componen...
0
nguyenhieu2k123/crud_vs_docker
a93b705
client/src/app/orders/type/index.ts
TypeScript
www.github.com/nguyenhieu2k123/crud_vs_docker/tree/main/client/src/app/orders/type/index.ts
https://raw.githubusercontent.com/nguyenhieu2k123/crud_vs_docker/a93b705/client/src/app/orders/type/index.ts
nguyenhieu2k123/crud_vs_docker a93b705 client/src/app/orders/type/index.ts
true
200
434
type BaseEntity = { id: number createdAt: Date } type Order = BaseEntity & { customerId: number productId: number statusId: number customer: Customer product: Product status: Status } type Status = { id: number status: string } type Customer = BaseEntity & { name: string email: string } type Product = B...
4
e7f3/GT
9ae680f
config/storybook/webpack.config.ts
TypeScript
www.github.com/e7f3/GT/tree/main/config/storybook/webpack.config.ts
https://raw.githubusercontent.com/e7f3/GT/9ae680f/config/storybook/webpack.config.ts
e7f3/GT 9ae680f config/storybook/webpack.config.ts
true
200
1,243
import path from 'path' import { Configuration, RuleSetRule, DefinePlugin } from 'webpack' import { buildCssLoader } from '../build/loaders/buildCssLoader' import { BuildPaths } from '../build/types/config' module.exports = ({ config }: { config: Configuration }) => { const paths: BuildPaths = { entry: '', ...
5
WassefTalbi/risqueFront
ffca180
src/app/pages/entreprise/entreprise-routing.module.ts
TypeScript
www.github.com/WassefTalbi/risqueFront/tree/main/src/app/pages/entreprise/entreprise-routing.module.ts
https://raw.githubusercontent.com/WassefTalbi/risqueFront/ffca180/src/app/pages/entreprise/entreprise-routing.module.ts
WassefTalbi/risqueFront ffca180 src/app/pages/entreprise/entreprise-routing.module.ts
true
200
383
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { EntrepriseComponent } from './entreprise.component'; const routes: Routes = [ { path: "list", component: EntrepriseComponent }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], expor...
7
DiegoOrtegaElRincon/CarORM
cddb94a
front/OrmFront/src/app/pages/car-add/car-add.page.ts
TypeScript
www.github.com/DiegoOrtegaElRincon/CarORM/tree/main/front/OrmFront/src/app/pages/car-add/car-add.page.ts
https://raw.githubusercontent.com/DiegoOrtegaElRincon/CarORM/cddb94a/front/OrmFront/src/app/pages/car-add/car-add.page.ts
DiegoOrtegaElRincon/CarORM cddb94a front/OrmFront/src/app/pages/car-add/car-add.page.ts
true
200
1,769
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { carService } from 'src/app/services/car.service'; @Component({ selector: 'app-car-add', templateUrl: './car-add.page.html', styleUrls: ['./car...
6
ThomasGil92/fokjlenot_v2_clean-archi
4f2fced
src/infrastructure/api/axiosInstance.ts
TypeScript
www.github.com/ThomasGil92/fokjlenot_v2_clean-archi/tree/main/src/infrastructure/api/axiosInstance.ts
https://raw.githubusercontent.com/ThomasGil92/fokjlenot_v2_clean-archi/4f2fced/src/infrastructure/api/axiosInstance.ts
ThomasGil92/fokjlenot_v2_clean-archi 4f2fced src/infrastructure/api/axiosInstance.ts
true
200
451
import axios from "axios"; // Configuration de l'instance Axios pour les requêtes HTTP const axiosInstance = axios.create({ baseURL: import.meta.env.VITE_ENABLE_MSW === "false"?"http://0.0.0.0:8055":"", // URL de base de votre API timeout: 5000, // Timeout de 5 secondes pour les requêtes headers: { "Content...
3
vikejs/vike
ffbda68
vike/node/plugin/plugins/build/pluginDistFileNames.ts
TypeScript
www.github.com/vikejs/vike/tree/main/vike/node/plugin/plugins/build/pluginDistFileNames.ts
https://raw.githubusercontent.com/vikejs/vike/ffbda68/vike/node/plugin/plugins/build/pluginDistFileNames.ts
vikejs/vike ffbda68 vike/node/plugin/plugins/build/pluginDistFileNames.ts
true
200
9,005
export { pluginDistFileNames } // Attempt to preserve file structure of `.page.js` files: // - https://github.com/vikejs/vike/commit/11a4c49e5403aa7c37c8020c462b499425b41854 // - Blocker: https://github.com/rollup/rollup/issues/4724 import { assertPosixPath, assert, assertUsage, isArray, isCallable } from '../../ut...
1
EdouardCourty/ts-blockchain
6f90eff
src/routes/transactionRoutes.ts
TypeScript
www.github.com/EdouardCourty/ts-blockchain/tree/main/src/routes/transactionRoutes.ts
https://raw.githubusercontent.com/EdouardCourty/ts-blockchain/6f90eff/src/routes/transactionRoutes.ts
EdouardCourty/ts-blockchain 6f90eff src/routes/transactionRoutes.ts
true
200
1,591
import { Router } from 'express'; import Transaction from '../model/Transaction'; import WalletService from '../service/WalletService'; import BlockchainLifecycleManager from "../service/BlockchainLifecycleManager"; const router = Router(); // POST /transactions - Accept a signed transaction router.post('/', (req, re...
2
pasindu-jayasinghe/csi-scc-emission-service
a8a0a25
src/emission/enum/gasBiomassFactors.enum.ts
TypeScript
www.github.com/pasindu-jayasinghe/csi-scc-emission-service/tree/main/src/emission/enum/gasBiomassFactors.enum.ts
https://raw.githubusercontent.com/pasindu-jayasinghe/csi-scc-emission-service/a8a0a25/src/emission/enum/gasBiomassFactors.enum.ts
pasindu-jayasinghe/csi-scc-emission-service a8a0a25 src/emission/enum/gasBiomassFactors.enum.ts
true
200
564
export enum gasBiomassFactors { ncv_landfill = "ncv_landfill", ncv_sludge = "ncv_sludge", ncv_other = "ncv_other", ef_co2_landfill = "ef_co2_landfill", ef_co2_sludge = "ef_co2_sludge", ef_co2_other = "ef_co2_other", ef_ch4_landfill = "ef_ch4_landfill", ef_ch4_sludge = "ef_ch4_slu...
0
SimplyGreatBots/Calendly
8bc23eb
src/index.ts
TypeScript
www.github.com/SimplyGreatBots/Calendly/tree/main/src/index.ts
https://raw.githubusercontent.com/SimplyGreatBots/Calendly/8bc23eb/src/index.ts
SimplyGreatBots/Calendly 8bc23eb src/index.ts
true
200
8,505
import * as botpress from '.botpress' import * as bpclient from "@botpress/client" import * as sdk from '@botpress/sdk' import axios from 'axios' import { getCurrentUserAPICall, getEventTypesAPICall, findEventTypeUriBySchedulingUrl, getWebhookSubscriptionsAPICall, findWebhookSubscriptionByCallbackUrl } from './client' ...
4
nonzzz/stylex-extend
e1961e6
packages/babel-plugin/src/visitor/global-style.ts
TypeScript
www.github.com/nonzzz/stylex-extend/tree/main/packages/babel-plugin/src/visitor/global-style.ts
https://raw.githubusercontent.com/nonzzz/stylex-extend/e1961e6/packages/babel-plugin/src/visitor/global-style.ts
nonzzz/stylex-extend e1961e6 packages/babel-plugin/src/visitor/global-style.ts
true
200
1,369
import { types } from '@babel/core' import type { NodePath } from '@babel/core' import { compile, serialize, stringify } from 'stylis' import { evaluateCSS, printCssAST } from '../ast/evaluate-path' import { MESSAGES } from '../ast/message' import { findNearestStatementAncestor, isObjectExpression, isTopLevelCalled } f...
5
AslanMamedov/porfolio
2e3d6f6
src/18n.ts
TypeScript
www.github.com/AslanMamedov/porfolio/tree/main/src/18n.ts
https://raw.githubusercontent.com/AslanMamedov/porfolio/2e3d6f6/src/18n.ts
AslanMamedov/porfolio 2e3d6f6 src/18n.ts
true
200
679
import i18n from 'i18next'; import Backend from 'i18next-http-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; const config = { lng: 'en', fallbackLng: localStorage.getItem('i18nextLng') || 'en', detection: { order: ['queryString...
6
pthanhphong15022002/T
2ec3822
projects/codx-common/src/lib/component/codx-approval-procress/codx-view-release-sign-file/codx-view-release-sign-file.component.ts
TypeScript
www.github.com/pthanhphong15022002/T/tree/main/projects/codx-common/src/lib/component/codx-approval-procress/codx-view-release-sign-file/codx-view-release-sign-file.component.ts
https://raw.githubusercontent.com/pthanhphong15022002/T/2ec3822/projects/codx-common/src/lib/component/codx-approval-procress/codx-view-release-sign-file/codx-view-release-sign-file.component.ts
pthanhphong15022002/T 2ec3822 projects/codx-common/src/lib/component/codx-approval-procress/codx-view-release-sign-file/codx-view-release-sign-file.component.ts
true
200
3,158
import { Component, Injector, Optional, TemplateRef, ViewChild, } from '@angular/core'; import { UIComponent, DialogData, DialogRef, NotificationsService, AuthStore, } from 'codx-core'; import { PdfComponent } from 'projects/codx-common/src/lib/component/pdf/pdf.component'; import { CodxShareService...
1
PEIYA-BISEN/Contflow-VS-Code-Extension
48b03cb
src/extension.ts
TypeScript
www.github.com/PEIYA-BISEN/Contflow-VS-Code-Extension/tree/main/src/extension.ts
https://raw.githubusercontent.com/PEIYA-BISEN/Contflow-VS-Code-Extension/48b03cb/src/extension.ts
PEIYA-BISEN/Contflow-VS-Code-Extension 48b03cb src/extension.ts
true
200
6,463
import * as vscode from 'vscode'; // import * as cheerio from 'cheerio'; import * as puppeteer from 'puppeteer'; export function activate(context: vscode.ExtensionContext) { // Register the command to analyze and show content overflow in a webview let disposable = vscode.commands.registerCommand('contentOverflow.s...
3
seaflux-tech/boilerplate-node-ts
6f61dcf
src/modules/expense/dto/create.dto.ts
TypeScript
www.github.com/seaflux-tech/boilerplate-node-ts/tree/main/src/modules/expense/dto/create.dto.ts
https://raw.githubusercontent.com/seaflux-tech/boilerplate-node-ts/6f61dcf/src/modules/expense/dto/create.dto.ts
seaflux-tech/boilerplate-node-ts 6f61dcf src/modules/expense/dto/create.dto.ts
true
200
663
import { IsBoolean, IsDateString, IsInt, IsNotEmpty, IsNumber, IsOptional, MaxLength } from "class-validator"; export class CreateExpenseDto { @MaxLength(20) @IsOptional() public refNo: string; @IsInt() @IsNotEmpty() public categoryId: number; @IsInt() @IsNotEmpty() public merchantId: number; @I...
7
Lomray-Software/vite-template
108bbbc
src/pages/nested-suspense/components/user/stores/main/index.ts
TypeScript
www.github.com/Lomray-Software/vite-template/tree/main/src/pages/nested-suspense/components/user/stores/main/index.ts
https://raw.githubusercontent.com/Lomray-Software/vite-template/108bbbc/src/pages/nested-suspense/components/user/stores/main/index.ts
Lomray-Software/vite-template 108bbbc src/pages/nested-suspense/components/user/stores/main/index.ts
true
200
1,247
import SuspenseQuery from '@lomray/react-mobx-manager/suspense-query'; import axios from 'axios'; import { makeObservable, observable, runInAction } from 'mobx'; import { API_GATEWAY } from '@constants/index'; import type { IApiUser, IUser } from '@interfaces/user'; /** * User detail store */ class MainStore { /**...
2
MADUPAL/email
412c11f
src/app/api/clerk/webhook/route.ts
TypeScript
www.github.com/MADUPAL/email/tree/main/src/app/api/clerk/webhook/route.ts
https://raw.githubusercontent.com/MADUPAL/email/412c11f/src/app/api/clerk/webhook/route.ts
MADUPAL/email 412c11f src/app/api/clerk/webhook/route.ts
true
200
635
// /api/clerk/webhook import {db} from '@/server/db'; export const POST = async (req: Request) => { const {data} = await req.json(); console.log('clerk webhook-received', data); const emailAddress = data.email_addresses[0].email_address const firstName = data.first_name const lastName = data.last_name cons...
4
RubiksDAW/proyectointegrado-cliente
72ed596
bikeBros/src/app/components/box-messages/box-messages.component.ts
TypeScript
www.github.com/RubiksDAW/proyectointegrado-cliente/tree/main/bikeBros/src/app/components/box-messages/box-messages.component.ts
https://raw.githubusercontent.com/RubiksDAW/proyectointegrado-cliente/72ed596/bikeBros/src/app/components/box-messages/box-messages.component.ts
RubiksDAW/proyectointegrado-cliente 72ed596 bikeBros/src/app/components/box-messages/box-messages.component.ts
true
200
3,216
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { LoadingController, ModalController } from '@ionic/angular'; import { Subscription } from 'rxjs'; import { AuthService } from 'src/app/services/auth.service'; import { MessagesService } from 'src/app/services...
0
alyanoyigor/moviescript
1b06b89
frontend/src/pages/Login/styled.ts
TypeScript
www.github.com/alyanoyigor/moviescript/tree/main/frontend/src/pages/Login/styled.ts
https://raw.githubusercontent.com/alyanoyigor/moviescript/1b06b89/frontend/src/pages/Login/styled.ts
alyanoyigor/moviescript 1b06b89 frontend/src/pages/Login/styled.ts
true
200
493
import { styled, Typography } from '@mui/material'; export const StyledContainer = styled('div')` display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; height: calc(90vh - 76px); `; export const StyledTitle = styled(Typography)` font-weight: 500; ` as typeof Typ...
5
ramonserranoprofile/myportfolio
a2dcdc8
Frontend/src/app/app-routing.module.ts
TypeScript
www.github.com/ramonserranoprofile/myportfolio/tree/main/Frontend/src/app/app-routing.module.ts
https://raw.githubusercontent.com/ramonserranoprofile/myportfolio/a2dcdc8/Frontend/src/app/app-routing.module.ts
ramonserranoprofile/myportfolio a2dcdc8 Frontend/src/app/app-routing.module.ts
true
200
2,967
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AuthGuard } from '@auth/guards/auth.guard'; import { HomeComponent } from '@home/home.component'; import { AboutComponent } from './pages/about/about.component'; import { ContactComponent } from './pages/contact/c...
6
subs0/micro
0cd022c
repl/debug_regex.ts
TypeScript
www.github.com/subs0/micro/tree/main/repl/debug_regex.ts
https://raw.githubusercontent.com/subs0/micro/0cd022c/repl/debug_regex.ts
subs0/micro 0cd022c repl/debug_regex.ts
true
200
4,233
import fs from 'fs' import { test } from 'quicktype-core/dist/MarkovChain' const file = fs.readFileSync('./repl/debug_md2json.md', 'utf8') const testSnippet = ` ### \`statement\` ~> **NOTE:** Even though the [IAM Documentation] The following arguments are optional: * \`actions\` (Optional) - List of actions that t...
1
KonstantinKurt/Sn_Ng_Nest
b92cc91
front/src/app/Article/create-article/create-article.resource.ts
TypeScript
www.github.com/KonstantinKurt/Sn_Ng_Nest/tree/main/front/src/app/Article/create-article/create-article.resource.ts
https://raw.githubusercontent.com/KonstantinKurt/Sn_Ng_Nest/b92cc91/front/src/app/Article/create-article/create-article.resource.ts
KonstantinKurt/Sn_Ng_Nest b92cc91 front/src/app/Article/create-article/create-article.resource.ts
true
200
1,147
import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import {Observable} from 'rxjs'; import {environment} from '../../../environments/environment'; import {Article} from '../model/article.model'; @Injectable() export class CreateArticleResource { private readonly...
2
IstsHitori/PETCENTER_FRONTEND
5047fd8
src/stores/CategorySlice.ts
TypeScript
www.github.com/IstsHitori/PETCENTER_FRONTEND/tree/main/src/stores/CategorySlice.ts
https://raw.githubusercontent.com/IstsHitori/PETCENTER_FRONTEND/5047fd8/src/stores/CategorySlice.ts
IstsHitori/PETCENTER_FRONTEND 5047fd8 src/stores/CategorySlice.ts
true
200
2,899
/* eslint-disable @typescript-eslint/no-unused-vars */ import { AddCategory, Category } from "@/types/CategoryTypes"; import { StateCreator } from "zustand"; import { safeParse } from "valibot"; import { CategoriesScehma } from "@/schemas/Category"; import clientAxios from "@/config/axios"; import { config } from "@/he...
4
tazah/3em-proj-int
29bfb0c
projet3_204/client/src/app/components/member-list/member-list.component.ts
TypeScript
www.github.com/tazah/3em-proj-int/tree/main/projet3_204/client/src/app/components/member-list/member-list.component.ts
https://raw.githubusercontent.com/tazah/3em-proj-int/29bfb0c/projet3_204/client/src/app/components/member-list/member-list.component.ts
tazah/3em-proj-int 29bfb0c projet3_204/client/src/app/components/member-list/member-list.component.ts
true
200
1,356
import { Component, OnInit } from '@angular/core'; import { Album } from '@app/classes/interfaces/album/album'; import { ChatCommunicationService } from '@app/services/chat/chat-communication.service'; import { AlbumRequestService } from '@app/services/database/album-request/album-request.service'; @Component({ se...
3
andras-szesztai/Filmography-Explorer
3ff8cd9
src/components/molecules/Charts/BubbleChart/hooks/useHoveredUpdate.ts
TypeScript
www.github.com/andras-szesztai/Filmography-Explorer/tree/main/src/components/molecules/Charts/BubbleChart/hooks/useHoveredUpdate.ts
https://raw.githubusercontent.com/andras-szesztai/Filmography-Explorer/3ff8cd9/src/components/molecules/Charts/BubbleChart/hooks/useHoveredUpdate.ts
andras-szesztai/Filmography-Explorer 3ff8cd9 src/components/molecules/Charts/BubbleChart/hooks/useHoveredUpdate.ts
true
200
2,790
/* eslint-disable @typescript-eslint/no-explicit-any */ import React from 'react' import { select } from 'd3-selection' import isEqual from 'lodash/isEqual' import { usePrevious } from 'react-use' import { useSelector } from 'react-redux' // Utils import { getSelectedLineYPos, setRadius } from '../functions/elementFun...
0
luisarispe/ToDoFront
5b037c9
src/app/layout/layout.module.ts
TypeScript
www.github.com/luisarispe/ToDoFront/tree/main/src/app/layout/layout.module.ts
https://raw.githubusercontent.com/luisarispe/ToDoFront/5b037c9/src/app/layout/layout.module.ts
luisarispe/ToDoFront 5b037c9 src/app/layout/layout.module.ts
true
200
446
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LayoutComponent } from './layout.component'; import { RouterModule } from '@angular/router'; import { MatIconModule } from '@angular/material/icon'; @NgModule({ declarations: [ LayoutComponent ], exports: [ ...
5
kajal-dizayn/todo-app1
d1735a1
store/todo.store.ts
TypeScript
www.github.com/kajal-dizayn/todo-app1/tree/main/store/todo.store.ts
https://raw.githubusercontent.com/kajal-dizayn/todo-app1/d1735a1/store/todo.store.ts
kajal-dizayn/todo-app1 d1735a1 store/todo.store.ts
true
200
872
// setup zustand store import create from "zustand"; // define types export interface Todo { id: number; title: string; description: string; created_at: string; updated_at: string; userId: number; } interface TodoStore { todos: Todo[]; addTodo: (todo: Todo) => void; setTodos: (todos: Todo[]) => vo...
6
higginsddh/cardscoring
0a63247
components/liveblocks.config.ts
TypeScript
www.github.com/higginsddh/cardscoring/tree/main/components/liveblocks.config.ts
https://raw.githubusercontent.com/higginsddh/cardscoring/0a63247/components/liveblocks.config.ts
higginsddh/cardscoring 0a63247 components/liveblocks.config.ts
true
200
493
import { LiveList, LiveObject, createClient } from "@liveblocks/client"; import { createRoomContext } from "@liveblocks/react"; const client = createClient({ publicApiKey: process.env.NEXT_PUBLIC_LIVEBLOCK_KEY, }); export type Score = { id: string; value: number; }; type Storage = { teams: LiveList<{ id:...
1
Paselan91/app-starter
44667a3
vitest.config.frontend.ts
TypeScript
www.github.com/Paselan91/app-starter/tree/main/vitest.config.frontend.ts
https://raw.githubusercontent.com/Paselan91/app-starter/44667a3/vitest.config.frontend.ts
Paselan91/app-starter 44667a3 vitest.config.frontend.ts
true
200
359
import react from "@vitejs/plugin-react"; import { mergeBaseConfig } from "./vitest.config.base"; export default mergeBaseConfig({ plugins: [react()], test: { environment: "jsdom", setupFiles: "./vitest.frontend.setup.ts", include: ["src/**/*.spec.tsx"], coverage: { include: ["src/**/*.tsx"], exclude: ...
7
empirical-run/empirical
07bce57
examples/spider-using-ts/empiricalrc.ts
TypeScript
www.github.com/empirical-run/empirical/tree/main/examples/spider-using-ts/empiricalrc.ts
https://raw.githubusercontent.com/empirical-run/empirical/07bce57/examples/spider-using-ts/empiricalrc.ts
empirical-run/empirical 07bce57 examples/spider-using-ts/empiricalrc.ts
true
200
1,907
import { Config, loadDataset, JSScriptScorer } from "empiricalrun"; import { executeQuery, getConnection, getSchema } from "./src/db"; async function datasetLoader() { let dataset = await loadDataset({ path: "https://docs.google.com/spreadsheets/d/1x_p0lX2pJEyGkFoe1A9nY3q87qOJUd547f2lz99ugiM/edit#gid=1000015421"...
2
danilkladnitsky/rosstudsport-bot
abd624e
backend-service/src/services/user/user.service.ts
TypeScript
www.github.com/danilkladnitsky/rosstudsport-bot/tree/main/backend-service/src/services/user/user.service.ts
https://raw.githubusercontent.com/danilkladnitsky/rosstudsport-bot/abd624e/backend-service/src/services/user/user.service.ts
danilkladnitsky/rosstudsport-bot abd624e backend-service/src/services/user/user.service.ts
true
200
3,837
import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { UserEntity } from '../../database/entities/user.entity'; import { CreateUserDto } from '../../shared/dto/user.create.dto'; import { BotInstances } from '../../shared/telegraf/bots'; import { InjectBot } from 'nestjs-teleg...
4
jahzielv/silverbullet-food
7acbb24
food.ts
TypeScript
www.github.com/jahzielv/silverbullet-food/tree/main/food.ts
https://raw.githubusercontent.com/jahzielv/silverbullet-food/7acbb24/food.ts
jahzielv/silverbullet-food 7acbb24 food.ts
true
200
728
import { editor, markdown } from "$sb/silverbullet-syscall/mod.ts"; const foodEmoji = ["🥔", "🌶️", "🥝", "🥨", "🥞", "🍖", "🍜", "🍞", "🍱"]; function randomNumber(min: number, max: number) { return Math.floor(Math.random() * (max - min) + min); } export async function food() { console.log("food gang"); const...
3
MarcoZiino96/fs0523-Marco-Ziino
d3c2ebb
mese3/settimana3/progetto-settiminale/app-meteo/src/app/pages/dashboard/five-wheater/five-wheater.component.spec.ts
TypeScript
www.github.com/MarcoZiino96/fs0523-Marco-Ziino/tree/main/mese3/settimana3/progetto-settiminale/app-meteo/src/app/pages/dashboard/five-wheater/five-wheater.component.spec.ts
https://raw.githubusercontent.com/MarcoZiino96/fs0523-Marco-Ziino/d3c2ebb/mese3/settimana3/progetto-settiminale/app-meteo/src/app/pages/dashboard/five-wheater/five-wheater.component.spec.ts
MarcoZiino96/fs0523-Marco-Ziino d3c2ebb mese3/settimana3/progetto-settiminale/app-meteo/src/app/pages/dashboard/five-wheater/five-wheater.component.spec.ts
true
200
637
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FiveWheaterComponent } from './five-wheater.component'; describe('FiveWheaterComponent', () => { let component: FiveWheaterComponent; let fixture: ComponentFixture<FiveWheaterComponent>; beforeEach(async () => { await TestBed.confi...
0
musharrafmobeen/Elecktra
ba083b3
src/infrastructure/controllers/profile/profile.controller.ts
TypeScript
www.github.com/musharrafmobeen/Elecktra/tree/main/src/infrastructure/controllers/profile/profile.controller.ts
https://raw.githubusercontent.com/musharrafmobeen/Elecktra/ba083b3/src/infrastructure/controllers/profile/profile.controller.ts
musharrafmobeen/Elecktra ba083b3 src/infrastructure/controllers/profile/profile.controller.ts
true
200
2,636
import { UserController } from './../user/user.controller'; import { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post, Put, Req, UploadedFile, UseGuards, UseInterceptors, } from '@nestjs/common'; import { JwtAuthGuard } from '../../common/guards/jwtAuth.guard'; import { Profiles...
6
adammehdaoui/instamint
6564477
src/validators/schemas/commentSchema.ts
TypeScript
www.github.com/adammehdaoui/instamint/tree/main/src/validators/schemas/commentSchema.ts
https://raw.githubusercontent.com/adammehdaoui/instamint/6564477/src/validators/schemas/commentSchema.ts
adammehdaoui/instamint 6564477 src/validators/schemas/commentSchema.ts
true
200
564
import { z } from "zod" export const CommentValidationSchema = z.object({ id: z.number(), content: z.string(), createdAt: z.string(), updatedAt: z.string().nullable(), nftId: z.number(), authorId: z.number().nullable() }) export type Comment = z.infer<typeof CommentValidationSchema> export const Comments...
5
kddior/secure-live-chat-platform-backend
1f6e1f4
app.controller.ts
TypeScript
www.github.com/kddior/secure-live-chat-platform-backend/tree/main/app.controller.ts
https://raw.githubusercontent.com/kddior/secure-live-chat-platform-backend/1f6e1f4/app.controller.ts
kddior/secure-live-chat-platform-backend 1f6e1f4 app.controller.ts
true
200
570
import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; // Remove any prefix to correctly handle both '/' and '/api' @Controller() // Ensure there is NO prefix here export class AppController { constructor(private readonly appService: AppService) {} @Get('/') // Maps to GET...
1
azamsyedmohd/Angular-Series
844500b
src/app/app.component.ts
TypeScript
www.github.com/azamsyedmohd/Angular-Series/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/azamsyedmohd/Angular-Series/844500b/src/app/app.component.ts
azamsyedmohd/Angular-Series 844500b src/app/app.component.ts
true
200
1,314
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { EmployeeComponent } from './employee/employee.component'; import { Book } from './book'; class abc { constructor() { console.log('abc constructor called!! '); } } @Component({ selector: 'app-root', standalone...
7
Reh4m/store-api
edd013e
src/services/categories.service.ts
TypeScript
www.github.com/Reh4m/store-api/tree/main/src/services/categories.service.ts
https://raw.githubusercontent.com/Reh4m/store-api/edd013e/src/services/categories.service.ts
Reh4m/store-api edd013e src/services/categories.service.ts
true
200
1,615
import { Service } from "typedi"; import { StatusCodes } from "http-status-codes"; import { Category } from "@interfaces/categories.interface"; import { CategoryModel } from "@models/categories.model"; import { HttpException } from "@utils/HttpException"; @Service() export class CategoryService { public async findA...
2
mdfarid01/TechCraft
8a15692
src/data/colors.ts
TypeScript
www.github.com/mdfarid01/TechCraft/tree/main/src/data/colors.ts
https://raw.githubusercontent.com/mdfarid01/TechCraft/8a15692/src/data/colors.ts
mdfarid01/TechCraft 8a15692 src/data/colors.ts
true
200
554
import { PhoneColor } from '../types/phone'; export const phoneColors: PhoneColor[] = [ { id: 'midnight-black', name: 'Midnight Black', hex: '#000000', price: 0 }, { id: 'cosmic-silver', name: 'Cosmic Silver', hex: '#C0C0C0', price: 29 }, { id: 'rose-gold', name: 'Rose...
4
paker981/BussinessManager
7720e9b
src/app/services/stateManagment/state.service.ts
TypeScript
www.github.com/paker981/BussinessManager/tree/main/src/app/services/stateManagment/state.service.ts
https://raw.githubusercontent.com/paker981/BussinessManager/7720e9b/src/app/services/stateManagment/state.service.ts
paker981/BussinessManager 7720e9b src/app/services/stateManagment/state.service.ts
true
200
851
import { Injectable } from '@angular/core'; import { MatDrawer, MatDrawerMode } from '@angular/material/sidenav'; import { BehaviorSubject } from 'rxjs'; import { Country } from '../../interfaces/country.interface'; @Injectable({ providedIn: 'root' }) export class StateService { private _countryStateSubject = new...
3
lakhalEya/PIDev_Camp
50bba16
frontend/src/app/views/uicomponent/home/home.component.ts
TypeScript
www.github.com/lakhalEya/PIDev_Camp/tree/main/frontend/src/app/views/uicomponent/home/home.component.ts
https://raw.githubusercontent.com/lakhalEya/PIDev_Camp/50bba16/frontend/src/app/views/uicomponent/home/home.component.ts
lakhalEya/PIDev_Camp 50bba16 frontend/src/app/views/uicomponent/home/home.component.ts
true
200
995
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) export class HomeComponent implements OnInit { slides: any[] = new Array(3).fill({id: -1, src: '', title: '', subtitle: ''}); constructor() { }...
0
MohammadAminDehghani/sample-next
7ea7e24
app/tools/utils/errorHandler.ts
TypeScript
www.github.com/MohammadAminDehghani/sample-next/tree/main/app/tools/utils/errorHandler.ts
https://raw.githubusercontent.com/MohammadAminDehghani/sample-next/7ea7e24/app/tools/utils/errorHandler.ts
MohammadAminDehghani/sample-next 7ea7e24 app/tools/utils/errorHandler.ts
true
200
1,192
// app/tools/utils/errorHandler.ts import { toast } from "react-toastify"; import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime"; //import { AppRouterInstance } from "next/router"; export const handleError = (error: any, router: AppRouterInstance) => { console.error('An error occ...
5
dinhphuquy2k1/w-score
8457805
vue/src/store/modules/toast.ts
TypeScript
www.github.com/dinhphuquy2k1/w-score/tree/main/vue/src/store/modules/toast.ts
https://raw.githubusercontent.com/dinhphuquy2k1/w-score/8457805/vue/src/store/modules/toast.ts
dinhphuquy2k1/w-score 8457805 vue/src/store/modules/toast.ts
true
200
856
// myStore.ts import {createStore} from 'vuex'; import {handleServerError, handleSuccess, handleWarning, handleError} from "@/main"; export default { state: { // Khởi tạo state nếu cần thiết }, mutations: { // Định nghĩa mutations nếu cần thiết }, actions: { handleServerErro...
6
ShinyDCL/dcl-dao-hq
a384583
src/board.ts
TypeScript
www.github.com/ShinyDCL/dcl-dao-hq/tree/main/src/board.ts
https://raw.githubusercontent.com/ShinyDCL/dcl-dao-hq/a384583/src/board.ts
ShinyDCL/dcl-dao-hq a384583 src/board.ts
true
200
3,198
import { openExternalUrl } from '~system/RestrictedActions' import { engine, Entity, executeTask, GltfContainer, InputAction, pointerEventsSystem, TextShape, Transform } from '@dcl/sdk/ecs' import { Color4, Vector3 } from '@dcl/sdk/math' import { getProposals, getTodaysVotes, getUserProfiles } from '....
7
sparra93/prestalana-challenge
406f4e0
src/components/Filter/Filter.style.ts
TypeScript
www.github.com/sparra93/prestalana-challenge/tree/main/src/components/Filter/Filter.style.ts
https://raw.githubusercontent.com/sparra93/prestalana-challenge/406f4e0/src/components/Filter/Filter.style.ts
sparra93/prestalana-challenge 406f4e0 src/components/Filter/Filter.style.ts
true
200
447
import styled from 'styled-components'; export const CheckboxListContainer = styled.ul` list-style-type: none; padding: 0; margin: 0; `; export const CheckboxListItem = styled.li` display: flex; align-items: center; padding: 8px 0; `; export const CheckboxLabel = styled.label` margin-left: 8px; font-...
1
Solvebytez/strapi
6442ef1
src/api/post/services/post.ts
TypeScript
www.github.com/Solvebytez/strapi/tree/main/src/api/post/services/post.ts
https://raw.githubusercontent.com/Solvebytez/strapi/6442ef1/src/api/post/services/post.ts
Solvebytez/strapi 6442ef1 src/api/post/services/post.ts
true
200
1,926
/** * post service */ import { factories } from '@strapi/strapi'; export default factories.createCoreService('api::post.post', ({ strapi }) => ({ // Method 1: Creating an entirely new custom service async exampleService(...args: any[]) { let response = { okay: true } if (response.okay === false) { ...
2
amjadaldayem/react-sketch-pad
7473a00
src/model/state.ts
TypeScript
www.github.com/amjadaldayem/react-sketch-pad/tree/main/src/model/state.ts
https://raw.githubusercontent.com/amjadaldayem/react-sketch-pad/7473a00/src/model/state.ts
amjadaldayem/react-sketch-pad 7473a00 src/model/state.ts
true
200
413
import IPoint from "./point"; import Line from "./line"; import React from "react"; interface StateI { canDraw: boolean, firstNewLinePoint: IPoint | null; secondNewLinePoint: IPoint | null ; startDraw: boolean; endDraw: boolean ; lines: Line[] ; canvasRef: React.RefObject<HTMLCanvasElement>...
4
Gangakittusamy/Recruitment_Portal_FE_Repo
26efe3e
src/features/counter/counterSlice.ts
TypeScript
www.github.com/Gangakittusamy/Recruitment_Portal_FE_Repo/tree/main/src/features/counter/counterSlice.ts
https://raw.githubusercontent.com/Gangakittusamy/Recruitment_Portal_FE_Repo/26efe3e/src/features/counter/counterSlice.ts
Gangakittusamy/Recruitment_Portal_FE_Repo 26efe3e src/features/counter/counterSlice.ts
true
200
474
import { createSlice } from "@reduxjs/toolkit"; interface userReducerState { indexValue: number; } const initialState: userReducerState = { indexValue: 0, }; export const userReducer = createSlice({ name: "userData", initialState: initialState, reducers: { dashboardIndexValue: (state: any, action) => {...
3
Alex-Symonds/acmevil
f056397
src/app/x-is-power-strip/x-is-power-strip.component.ts
TypeScript
www.github.com/Alex-Symonds/acmevil/tree/main/src/app/x-is-power-strip/x-is-power-strip.component.ts
https://raw.githubusercontent.com/Alex-Symonds/acmevil/f056397/src/app/x-is-power-strip/x-is-power-strip.component.ts
Alex-Symonds/acmevil f056397 src/app/x-is-power-strip/x-is-power-strip.component.ts
true
200
4,311
import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; @Component({ selector: 'app-x-is-power-strip', standalone: true, imports: [CommonModule], template: ` <div class="strip diagonalStrip"> <section class="contentSection diagonalContent"> <article class="...
0
lukesrw/full-template
c4e3d48
blueprints/electron/ts/index.ts
TypeScript
www.github.com/lukesrw/full-template/tree/main/blueprints/electron/ts/index.ts
https://raw.githubusercontent.com/lukesrw/full-template/c4e3d48/blueprints/electron/ts/index.ts
lukesrw/full-template c4e3d48 blueprints/electron/ts/index.ts
true
200
518
import { app, BrowserWindow, ipcMain } from "electron"; import { createWindow } from "./lib/electron"; app.on("window-all-closed", () => { if (process.platform !== "darwin") app.quit(); }); app.whenReady().then(() => { createWindow("main"); app.on("activate", () => { if (!BrowserWindow.getAllWind...
5
YaroslavPiskunExtrums/InteractiveSlides
625e237
interactiveslidesaddinui/src/lib/utils/get-input-base64.ts
TypeScript
www.github.com/YaroslavPiskunExtrums/InteractiveSlides/tree/main/interactiveslidesaddinui/src/lib/utils/get-input-base64.ts
https://raw.githubusercontent.com/YaroslavPiskunExtrums/InteractiveSlides/625e237/interactiveslidesaddinui/src/lib/utils/get-input-base64.ts
YaroslavPiskunExtrums/InteractiveSlides 625e237 interactiveslidesaddinui/src/lib/utils/get-input-base64.ts
true
200
307
async function getBase64(file: File): Promise<string | ArrayBuffer | null> { return new Promise((resolve, reject) => { const reader = new FileReader() reader.readAsDataURL(file) reader.onload = () => { resolve(reader.result) } reader.onerror = reject }) } export { getBase64 }
6
fedecolarte/dsw-hotel
533fa3b
src/app/reserve/room-selection/room-selection.component.ts
TypeScript
www.github.com/fedecolarte/dsw-hotel/tree/main/src/app/reserve/room-selection/room-selection.component.ts
https://raw.githubusercontent.com/fedecolarte/dsw-hotel/533fa3b/src/app/reserve/room-selection/room-selection.component.ts
fedecolarte/dsw-hotel 533fa3b src/app/reserve/room-selection/room-selection.component.ts
true
200
2,927
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { fadeAnimation } from '@app/core/animations/fade.animation'; import { RoomTypeView, RoomView } from '@app/core/entities/views/room.view'; import { RoomFilters } from '@app/core/filters/room.filters'; imp...
1
sanchezcarlosr/Aplicacion-Web-Birabar
76aedda
frontend/src/app/components/combo-gestion/combo-gestion.component.ts
TypeScript
www.github.com/sanchezcarlosr/Aplicacion-Web-Birabar/tree/main/frontend/src/app/components/combo-gestion/combo-gestion.component.ts
https://raw.githubusercontent.com/sanchezcarlosr/Aplicacion-Web-Birabar/76aedda/frontend/src/app/components/combo-gestion/combo-gestion.component.ts
sanchezcarlosr/Aplicacion-Web-Birabar 76aedda frontend/src/app/components/combo-gestion/combo-gestion.component.ts
true
200
4,084
import { Component, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { ToastrService } from 'ngx-toastr'; import { Cliente } from 'src/app/models/cliente'; import { Combo } from 'src/app/models/combo'; import { Producto } from 'src/app/models/producto'; import { ClienteService } ...
7
jwmickey/word-search
3dfef2f
src/app/board/board.component.ts
TypeScript
www.github.com/jwmickey/word-search/tree/main/src/app/board/board.component.ts
https://raw.githubusercontent.com/jwmickey/word-search/3dfef2f/src/app/board/board.component.ts
jwmickey/word-search 3dfef2f src/app/board/board.component.ts
true
200
9,340
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core'; import { Grid, Direction, Coordinates, GridCell, getDirection } from '../utils/grid'; import { randomFrom, range, removeItem, randomLetter } from '../utils/utils'; interface BoardCell extends GridCell { value: string; classes: string[]...
2
muhammadsahad1/ums-task
277bcc4
backend/src/models/User.ts
TypeScript
www.github.com/muhammadsahad1/ums-task/tree/main/backend/src/models/User.ts
https://raw.githubusercontent.com/muhammadsahad1/ums-task/277bcc4/backend/src/models/User.ts
muhammadsahad1/ums-task 277bcc4 backend/src/models/User.ts
true
200
778
import mongoose, { Document, Schema } from 'mongoose' import { UserRole } from '../constants/enums'; // interface for userschema interface IUser extends Document { _id: string, firstName: string, lastName: string, email: string, phoneNumber: number, password?: string, role: UserRole, c...
4
courtyenn/engster-rides
489b1ff
sanity.config.ts
TypeScript
www.github.com/courtyenn/engster-rides/tree/main/sanity.config.ts
https://raw.githubusercontent.com/courtyenn/engster-rides/489b1ff/sanity.config.ts
courtyenn/engster-rides 489b1ff sanity.config.ts
true
200
2,027
// Different environments use different variables const projectId = import.meta.env.PUBLIC_SANITY_STUDIO_PROJECT_ID! || import.meta.env.PUBLIC_SANITY_PROJECT_ID!; const dataset = import.meta.env.PUBLIC_SANITY_STUDIO_DATASET! || import.meta.env.PUBLIC_SANITY_DATASET!; // Feel free to remove this check if you do...
3
lucastrindade222/petangular
2d812c1
src/app/view/listarservico/listarservico.component.ts
TypeScript
www.github.com/lucastrindade222/petangular/tree/main/src/app/view/listarservico/listarservico.component.ts
https://raw.githubusercontent.com/lucastrindade222/petangular/2d812c1/src/app/view/listarservico/listarservico.component.ts
lucastrindade222/petangular 2d812c1 src/app/view/listarservico/listarservico.component.ts
true
200
603
import { Component, OnInit } from '@angular/core'; import { ServicosService } from './servicos.service'; import { Ser } from './listser'; @Component({ selector: 'app-listarservico', templateUrl: './listarservico.component.html', styleUrls: ['./listarservico.component.css'] }) export class ListarservicoComponent ...
5
scoyne2/data-manager
5ba2042
frontend/src/@core/theme/overrides/list.ts
TypeScript
www.github.com/scoyne2/data-manager/tree/main/frontend/src/@core/theme/overrides/list.ts
https://raw.githubusercontent.com/scoyne2/data-manager/5ba2042/frontend/src/%40core/theme/overrides/list.ts
scoyne2/data-manager 5ba2042 frontend/src/@core/theme/overrides/list.ts
true
200
893
// ** MUI Imports import { Theme } from "@mui/material/styles"; const List = (theme: Theme) => { return { MuiListItemIcon: { styleOverrides: { root: { minWidth: 0, marginRight: theme.spacing(2.25), color: theme.palette.text.secondary, }, }, }, Mui...
0
meelunae/buongiorno-ts
bb862d2
src/models/user.model.ts
TypeScript
www.github.com/meelunae/buongiorno-ts/tree/main/src/models/user.model.ts
https://raw.githubusercontent.com/meelunae/buongiorno-ts/bb862d2/src/models/user.model.ts
meelunae/buongiorno-ts bb862d2 src/models/user.model.ts
true
200
2,581
import mongoose from "mongoose"; import { IFriendDetailsDTO } from "../routes/friends.routes"; interface ILeaderboardUser { _id: mongoose.default.Types.ObjectId; profilePicture: string; username: string; score: number; placement: number; } interface IUserDetails { _id: mongoose.default.Types.O...
6
alexp25/watergame-iot
70c0958
server/src/services/mqtt/cache.service.ts
TypeScript
www.github.com/alexp25/watergame-iot/tree/main/server/src/services/mqtt/cache.service.ts
https://raw.githubusercontent.com/alexp25/watergame-iot/70c0958/server/src/services/mqtt/cache.service.ts
alexp25/watergame-iot 70c0958 server/src/services/mqtt/cache.service.ts
true
200
1,309
import { Injectable } from "@nestjs/common"; import { DatabaseService } from "../database.service"; import { RedisCacheService } from "../cache/redis.service"; @Injectable() export class MQTTCacheService { constructor( private dbs: DatabaseService, private redis: RedisCacheService ) { } ...
7
bspokeit/react-native-icure-crypto
6ac8697
src/utils/asn1-parser.ts
TypeScript
www.github.com/bspokeit/react-native-icure-crypto/tree/main/src/utils/asn1-parser.ts
https://raw.githubusercontent.com/bspokeit/react-native-icure-crypto/6ac8697/src/utils/asn1-parser.ts
bspokeit/react-native-icure-crypto 6ac8697 src/utils/asn1-parser.ts
true
200
5,132
// Copyright 2018 AJ ONeal. All rights reserved /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // // Parser // // Although I've only seen 9 max in https certific...
1
ericholiveira/conejo
29900fd
__tests__/lib/commom.spec.ts
TypeScript
www.github.com/ericholiveira/conejo/tree/main/__tests__/lib/commom.spec.ts
https://raw.githubusercontent.com/ericholiveira/conejo/29900fd/__tests__/lib/commom.spec.ts
ericholiveira/conejo 29900fd __tests__/lib/commom.spec.ts
true
200
1,179
import type { NextApiRequest } from 'next' import { createRandomString, extractAuthToken } from '../../lib/common' describe('Lib - commom', () => { describe('Random string', () => { it('should create a random string with default length 6', () => { const result = createRandomString() expect(result).t...
4
zuhair4/My-Portfolio
9c4a353
src/app/app.component.ts
TypeScript
www.github.com/zuhair4/My-Portfolio/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/zuhair4/My-Portfolio/9c4a353/src/app/app.component.ts
zuhair4/My-Portfolio 9c4a353 src/app/app.component.ts
true
200
906
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout'; import { Component, HostBinding } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'Portfolio'; @HostBinding('class.pc'...
3
nicotanoira/challenge-pinapp
f62bb16
src/interfaces/Product.ts
TypeScript
www.github.com/nicotanoira/challenge-pinapp/tree/main/src/interfaces/Product.ts
https://raw.githubusercontent.com/nicotanoira/challenge-pinapp/f62bb16/src/interfaces/Product.ts
nicotanoira/challenge-pinapp f62bb16 src/interfaces/Product.ts
true
200
382
// Lista de productos PLP export interface ProductListItem { id: number; sku: string; name: string; description: string; image: string; category: { id: string; name: string }; brand: string; price: number; stock: number; } // Detalle de producto PDP export interface ProductDetail extends ProductLis...
5
TranPhuc9898/Stdio-Game
3f1c19f
core/apis/CategoryAPI.ts
TypeScript
www.github.com/TranPhuc9898/Stdio-Game/tree/main/core/apis/CategoryAPI.ts
https://raw.githubusercontent.com/TranPhuc9898/Stdio-Game/3f1c19f/core/apis/CategoryAPI.ts
TranPhuc9898/Stdio-Game 3f1c19f core/apis/CategoryAPI.ts
true
200
1,051
import { axios } from '@stdio/core/libs/custom-axios'; import { API_URL } from '@stdio/configs/config'; import { INewCategory, IQuery, IUpdateCategory } from '@stdio/configs/custom-types'; const BOARD_URL = `${API_URL}/boards`; export const CategoryAPI = { getCategoriesByBoardId: (boardId: string, params: IQuery...
6
hstove/clarigen
89bc7ba
packages/cli/src/docs/markdown.ts
TypeScript
www.github.com/hstove/clarigen/tree/main/packages/cli/src/docs/markdown.ts
https://raw.githubusercontent.com/hstove/clarigen/89bc7ba/packages/cli/src/docs/markdown.ts
hstove/clarigen 89bc7ba packages/cli/src/docs/markdown.ts
true
200
5,645
import type { Session, SessionContract } from '../session'; import { getContractName, getTypeString } from '@clarigen/core'; import { ClaridocContract, ClaridocFunction, ClaridocItem, ClaridocMap, ClaridocParam, ClaridocVariable, // Comments, createContractDocInfo, } from './index'; import { basename } ...
0
MarkMelior/Learn-Nest.JS
c3bb790
src/files/files.module.ts
TypeScript
www.github.com/MarkMelior/Learn-Nest.JS/tree/main/src/files/files.module.ts
https://raw.githubusercontent.com/MarkMelior/Learn-Nest.JS/c3bb790/src/files/files.module.ts
MarkMelior/Learn-Nest.JS c3bb790 src/files/files.module.ts
true
200
444
import { Module } from '@nestjs/common' import { FilesController } from './files.controller' import { FilesService } from './files.service' import { ServeStaticModule } from '@nestjs/serve-static' import { path } from 'app-root-path' @Module({ imports: [ ServeStaticModule.forRoot({ rootPath: `${path}/uploads`, ...
2
ReinaldoBV/control-club-application
1fd1b7e
src/main/webapp/app/entities/padre/update/padre-form.service.ts
TypeScript
www.github.com/ReinaldoBV/control-club-application/tree/main/src/main/webapp/app/entities/padre/update/padre-form.service.ts
https://raw.githubusercontent.com/ReinaldoBV/control-club-application/1fd1b7e/src/main/webapp/app/entities/padre/update/padre-form.service.ts
ReinaldoBV/control-club-application 1fd1b7e src/main/webapp/app/entities/padre/update/padre-form.service.ts
true
200
2,724
import { Injectable } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { IPadre, NewPadre } from '../padre.model'; /** * A partial Type with required key is used as form input. */ type PartialWithRequiredKeyOf<T extends { id: unknown }> = Partial<Omit<T, 'id'>> & { i...
7
ranile/firestorm
615f51f
src/hooks.server.ts
TypeScript
www.github.com/ranile/firestorm/tree/main/src/hooks.server.ts
https://raw.githubusercontent.com/ranile/firestorm/615f51f/src/hooks.server.ts
ranile/firestorm 615f51f src/hooks.server.ts
true
200
1,281
import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public'; import { createSupabaseServerClient } from '@supabase/auth-helpers-sveltekit'; import type { Handle } from '@sveltejs/kit'; import { sequence } from '@sveltejs/kit/hooks'; const supabaseHookHandle: Handle = async ({ event, resolve }) =...
1
carloshdelreal/sprockets
44c01f8
src/domain/models/FactoryProduction.ts
TypeScript
www.github.com/carloshdelreal/sprockets/tree/main/src/domain/models/FactoryProduction.ts
https://raw.githubusercontent.com/carloshdelreal/sprockets/44c01f8/src/domain/models/FactoryProduction.ts
carloshdelreal/sprockets 44c01f8 src/domain/models/FactoryProduction.ts
true
200
1,019
import { BuildOptions, DataTypes, Model } from 'sequelize'; import sequelize from '../../db'; const { INTEGER, BIGINT, DATE } = DataTypes; export class FactoryProduction extends Model { id: number; factoryId: number; production: number; goal: number; date: Date; } FactoryProduction.init( { id: { ...
3
jrbarnhart/express-rpg
d6ee483
src/lib/controllerUtils/battle/battleLog.ts
TypeScript
www.github.com/jrbarnhart/express-rpg/tree/main/src/lib/controllerUtils/battle/battleLog.ts
https://raw.githubusercontent.com/jrbarnhart/express-rpg/d6ee483/src/lib/controllerUtils/battle/battleLog.ts
jrbarnhart/express-rpg d6ee483 src/lib/controllerUtils/battle/battleLog.ts
true
200
3,496
import { ActorWithAction } from "../../types/types"; import { ACTION_OPTIONS } from "../../zod/PveBattle"; const battleLog = () => { let data: string[] = []; const actorName = (actor: ActorWithAction) => { const isPet = "color" in actor; return `${isPet ? `${actor.name}` : `the ${actor.template.species.na...
5
zkLinkSafe/safe-client-gateway
ebf041a
src/routes/cache-hooks/entities/schemas/deleted-multisig-transaction.schema.ts
TypeScript
www.github.com/zkLinkSafe/safe-client-gateway/tree/main/src/routes/cache-hooks/entities/schemas/deleted-multisig-transaction.schema.ts
https://raw.githubusercontent.com/zkLinkSafe/safe-client-gateway/ebf041a/src/routes/cache-hooks/entities/schemas/deleted-multisig-transaction.schema.ts
zkLinkSafe/safe-client-gateway ebf041a src/routes/cache-hooks/entities/schemas/deleted-multisig-transaction.schema.ts
true
200
383
import { EventType } from '@/routes/cache-hooks/entities/event-type.entity'; import { AddressSchema } from '@/validation/entities/schemas/address.schema'; import { z } from 'zod'; export const DeletedMultisigTransactionEventSchema = z.object({ type: z.literal(EventType.DELETED_MULTISIG_TRANSACTION), address: Addre...
6
asousa-link/typescript-playground
b62e19c
drag-drop-project/src/components/base-component.ts
TypeScript
www.github.com/asousa-link/typescript-playground/tree/main/drag-drop-project/src/components/base-component.ts
https://raw.githubusercontent.com/asousa-link/typescript-playground/b62e19c/drag-drop-project/src/components/base-component.ts
asousa-link/typescript-playground b62e19c drag-drop-project/src/components/base-component.ts
true
200
981
// Component Base Class export default abstract class Component< T extends HTMLElement, U extends HTMLElement > { templateElement: HTMLTemplateElement; hostElement: T; element: U; constructor( templateId: string, hostElementId: string, insertAtStart: boolean, newElementId?: string ) { ...
0
luis95liga/tesis
37927ab
src/app/pages/displaypanel/routemanagement/travels/travel/components/guide/guide.component.ts
TypeScript
www.github.com/luis95liga/tesis/tree/main/src/app/pages/displaypanel/routemanagement/travels/travel/components/guide/guide.component.ts
https://raw.githubusercontent.com/luis95liga/tesis/37927ab/src/app/pages/displaypanel/routemanagement/travels/travel/components/guide/guide.component.ts
luis95liga/tesis 37927ab src/app/pages/displaypanel/routemanagement/travels/travel/components/guide/guide.component.ts
true
200
11,220
import { Component, OnInit, Inject, ViewChild } from '@angular/core'; import { FormBuilder, FormControl, Validators } from '@angular/forms'; import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { CompanyService } from '@displaypanel/services/business/company.service'; import { ToastrService } from 'ngx-to...
2
arup92/next-cricket
4b1da5c
middleware.ts
TypeScript
www.github.com/arup92/next-cricket/tree/main/middleware.ts
https://raw.githubusercontent.com/arup92/next-cricket/4b1da5c/middleware.ts
arup92/next-cricket 4b1da5c middleware.ts
true
200
1,279
import { getToken } from "next-auth/jwt"; import { NextRequest, NextResponse } from "next/server"; import { ErrorMessage } from "./responses/messages"; // Reusable function to check if the user is authenticated async function isAuthenticated(request: NextRequest, loginUrl?: string): Promise<NextResponse> { const t...
1
Khairulasif/POS-V2
13bbf51
POS-Frontend-V2/src/app/stockreceive/stockreceive.component.ts
TypeScript
www.github.com/Khairulasif/POS-V2/tree/main/POS-Frontend-V2/src/app/stockreceive/stockreceive.component.ts
https://raw.githubusercontent.com/Khairulasif/POS-V2/13bbf51/POS-Frontend-V2/src/app/stockreceive/stockreceive.component.ts
Khairulasif/POS-V2 13bbf51 POS-Frontend-V2/src/app/stockreceive/stockreceive.component.ts
true
200
4,208
import { Component, OnInit } from '@angular/core'; import { StockreceiveService } from './stockreceive.service'; import { Product, Purchase, Supplier } from './PurchaseListModel'; import { FormBuilder, FormGroup } from '@angular/forms'; import { StockReceived } from './StockReceiveModel'; import { Router } from '@angul...
4
IntersectMBO/govtool-delegation-pillar
ae42709
frontend/dist/features/directory/list/DataActionsSorting.d.ts
TypeScript
www.github.com/IntersectMBO/govtool-delegation-pillar/tree/main/frontend/dist/features/directory/list/DataActionsSorting.d.ts
https://raw.githubusercontent.com/IntersectMBO/govtool-delegation-pillar/ae42709/frontend/dist/features/directory/list/DataActionsSorting.d.ts
IntersectMBO/govtool-delegation-pillar ae42709 frontend/dist/features/directory/list/DataActionsSorting.d.ts
true
200
412
import { Dispatch, SetStateAction } from 'react'; interface Props { chosenSorting: string; setChosenSorting: Dispatch<SetStateAction<string>>; closeSorts: () => void; options: { key: string; label: string; }[]; } export declare const DataActionsSorting: ({ chosenSorting, setChosenSor...
3