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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
CINDY420/shopee-project | 2c83ffd | kubernetes-bff/cypress/api/platform-management/cases/types.ts | TypeScript | www.github.com/CINDY420/shopee-project/tree/main/kubernetes-bff/cypress/api/platform-management/cases/types.ts | https://raw.githubusercontent.com/CINDY420/shopee-project/2c83ffd/kubernetes-bff/cypress/api/platform-management/cases/types.ts | CINDY420/shopee-project 2c83ffd kubernetes-bff/cypress/api/platform-management/cases/types.ts | true | 200 | 796 | const summaryType = {
count: 'number',
unhealthyCount: 'number'
}
const metricType = {
capacity: 'number',
reserved: 'number',
assigned: 'number',
free: 'number',
used: 'number',
assignedUsage: 'number',
usedUsage: 'number'
}
export const expectedClusterType = {
id: 'string',
name: 'string',
c... | 7 |
0xnirlin/Turbin3-Q1-25 | 668058f | raydium/node_modules/@raydium-io/raydium-sdk-v2/src/raydium/liquidity/liquidity.ts | TypeScript | www.github.com/0xnirlin/Turbin3-Q1-25/tree/main/raydium/node_modules/@raydium-io/raydium-sdk-v2/src/raydium/liquidity/liquidity.ts | https://raw.githubusercontent.com/0xnirlin/Turbin3-Q1-25/668058f/raydium/node_modules/%40raydium-io/raydium-sdk-v2/src/raydium/liquidity/liquidity.ts | 0xnirlin/Turbin3-Q1-25 668058f raydium/node_modules/@raydium-io/raydium-sdk-v2/src/raydium/liquidity/liquidity.ts | true | 200 | 50,996 | import { PublicKey, TransactionInstruction } from "@solana/web3.js";
import {
AmmV4Keys,
AmmV5Keys,
ApiV3PoolInfoConcentratedItem,
ApiV3PoolInfoStandardItem,
FormatFarmInfoOutV6,
} from "../../api/type";
import { AccountLayout, NATIVE_MINT, TOKEN_PROGRAM_ID } from "@solana/spl-token";
import { getMultipleAcco... | 6 |
Jaubert-uex/kanbuex | ea689d3 | src/components/User/styles.ts | TypeScript | www.github.com/Jaubert-uex/kanbuex/tree/main/src/components/User/styles.ts | https://raw.githubusercontent.com/Jaubert-uex/kanbuex/ea689d3/src/components/User/styles.ts | Jaubert-uex/kanbuex ea689d3 src/components/User/styles.ts | true | 200 | 745 | "use client";
import styled from "styled-components";
export const Container = styled.div`
display: flex;
.content-box {
display: flex;
gap: .5rem;
background: #FFFFFF20;
border-radius: 5px;
padding: .2rem;
}
.profile-picture {
width: auto;
hei... | 2 |
Ahmed-Makled/iti-angular-labs | 97f8804 | amado-stroe-api/src/app/app.module.ts | TypeScript | www.github.com/Ahmed-Makled/iti-angular-labs/tree/main/amado-stroe-api/src/app/app.module.ts | https://raw.githubusercontent.com/Ahmed-Makled/iti-angular-labs/97f8804/amado-stroe-api/src/app/app.module.ts | Ahmed-Makled/iti-angular-labs 97f8804 amado-stroe-api/src/app/app.module.ts | true | 200 | 1,087 | import { RequestInterceptor } from './interceptor/request.interceptor';
import { AuthModule } from './auth/auth.module';
import { ProductsModule } from './products/products.module';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgbModule } from '@ng-bootst... | 1 |
oleksii-odnoiko/user-management | 09b801b | frontend/src/app/shared/components/alerts/alert.service.ts | TypeScript | www.github.com/oleksii-odnoiko/user-management/tree/main/frontend/src/app/shared/components/alerts/alert.service.ts | https://raw.githubusercontent.com/oleksii-odnoiko/user-management/09b801b/frontend/src/app/shared/components/alerts/alert.service.ts | oleksii-odnoiko/user-management 09b801b frontend/src/app/shared/components/alerts/alert.service.ts | true | 200 | 1,010 | import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { filter } from 'rxjs/operators';
import { Alert, AlertType } from './alert.model';
@Injectable({ providedIn: 'root' })
export class AlertService {
private subject = new Subject<Alert>();
private defaultId = 'default-al... | 3 |
PATH-Global-Health/vn-scd-web | 4577199 | src/@app/slices/auth.ts | TypeScript | www.github.com/PATH-Global-Health/vn-scd-web/tree/main/src/@app/slices/auth.ts | https://raw.githubusercontent.com/PATH-Global-Health/vn-scd-web/4577199/src/%40app/slices/auth.ts | PATH-Global-Health/vn-scd-web 4577199 src/@app/slices/auth.ts | true | 200 | 4,647 | import {
createSlice,
createAsyncThunk,
PayloadAction,
CaseReducer,
} from '@reduxjs/toolkit';
import authService from '@app/services/auth';
import { Token } from '@app/models/token';
import { UserInfo } from '@app/models/user-info';
import { ConfirmOTP, LoginModel, Permission } from '@app/models/permission';... | 0 |
richard-lovgren/BattleBoard | b995bf9 | source/battle-board/battle-board/app/api/lol/get-matches-by-puuid/route.ts | TypeScript | www.github.com/richard-lovgren/BattleBoard/tree/main/source/battle-board/battle-board/app/api/lol/get-matches-by-puuid/route.ts | https://raw.githubusercontent.com/richard-lovgren/BattleBoard/b995bf9/source/battle-board/battle-board/app/api/lol/get-matches-by-puuid/route.ts | richard-lovgren/BattleBoard b995bf9 source/battle-board/battle-board/app/api/lol/get-matches-by-puuid/route.ts | true | 200 | 3,447 | import { NextRequest, NextResponse } from "next/server";
import { RawMatchData, FilteredMatchData, FilteredParticipant } from "@/models/interfaces/leagueMatchData";
function filterMatchData(rawData: RawMatchData): FilteredMatchData {
const { metadata, info } = rawData;
const matchId = metadata.matchId;
co... | 5 |
RioloGiuseppe/ggs-aruba | 8a999ad | auth/jwt-simple-client/src/app/app.component.ts | TypeScript | www.github.com/RioloGiuseppe/ggs-aruba/tree/main/auth/jwt-simple-client/src/app/app.component.ts | https://raw.githubusercontent.com/RioloGiuseppe/ggs-aruba/8a999ad/auth/jwt-simple-client/src/app/app.component.ts | RioloGiuseppe/ggs-aruba 8a999ad auth/jwt-simple-client/src/app/app.component.ts | true | 200 | 384 | import { Component } from '@angular/core';
import { AuthService } from './shared/auth/auth.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'jwt-simple-client';
constructor(public authService: AuthSer... | 7 |
sorrentmutie/2023-02-13-Angular | d13d5d8 | src/app/shared/services/auth.service.ts | TypeScript | www.github.com/sorrentmutie/2023-02-13-Angular/tree/main/src/app/shared/services/auth.service.ts | https://raw.githubusercontent.com/sorrentmutie/2023-02-13-Angular/d13d5d8/src/app/shared/services/auth.service.ts | sorrentmutie/2023-02-13-Angular d13d5d8 src/app/shared/services/auth.service.ts | true | 200 | 391 | import { Injectable } from '@angular/core';
import { delay, Observable, of, tap } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class AuthService {
isLogged = false;
login(): Observable<boolean> {
return of(Math.random() > 0.5 ).pipe(
delay(1000),
tap ( x => this.isLogged = true )... | 2 |
EOCOnline/openFemaNgClient | 3636fa0 | src/app/Components/navbar/navbar.component.ts | TypeScript | www.github.com/EOCOnline/openFemaNgClient/tree/main/src/app/Components/navbar/navbar.component.ts | https://raw.githubusercontent.com/EOCOnline/openFemaNgClient/3636fa0/src/app/Components/navbar/navbar.component.ts | EOCOnline/openFemaNgClient 3636fa0 src/app/Components/navbar/navbar.component.ts | true | 200 | 3,034 | import { Component, OnInit } from '@angular/core'
import { NavigationEnd, NavigationError, NavigationStart, Router } from '@angular/router';
//import { faL, faMapMarkedAlt } from '@fortawesome/free-solid-svg-icons'
//import { MDCTopAppBar } from '@material/top-app-bar'
// import { MatButton } from '@angular/material/bu... | 4 |
Gurimarukin/thequest | fd47d1f | src/server/services/LeagueEntryService.ts | TypeScript | www.github.com/Gurimarukin/thequest/tree/main/src/server/services/LeagueEntryService.ts | https://raw.githubusercontent.com/Gurimarukin/thequest/fd47d1f/src/server/services/LeagueEntryService.ts | Gurimarukin/thequest fd47d1f src/server/services/LeagueEntryService.ts | true | 200 | 2,143 | import { pipe } from 'fp-ts/function'
import { DayJs } from '../../shared/models/DayJs'
import type { Platform } from '../../shared/models/api/Platform'
import { Future, List, Maybe } from '../../shared/utils/fp'
import { futureMaybe } from '../../shared/utils/futureMaybe'
import type { RiotApiCacheTtlConfig } from '... | 1 |
innovats-hub/backstage | a794e0a | packages/backend/src/index.ts | TypeScript | www.github.com/innovats-hub/backstage/tree/main/packages/backend/src/index.ts | https://raw.githubusercontent.com/innovats-hub/backstage/a794e0a/packages/backend/src/index.ts | innovats-hub/backstage a794e0a packages/backend/src/index.ts | true | 200 | 5,545 | /*
* Hi!
*
* Note that this is an EXAMPLE Backstage backend. Please check the README.
*
* Happy hacking!
*/
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
backend.add(import('@backstage/plugin-app-backend/alpha'));
backend.add(import('@backstage/plugin-proxy-backe... | 0 |
bigandy/tauri-strava | 27170d8 | pages/api/strava/activities.ts | TypeScript | www.github.com/bigandy/tauri-strava/tree/main/pages/api/strava/activities.ts | https://raw.githubusercontent.com/bigandy/tauri-strava/27170d8/pages/api/strava/activities.ts | bigandy/tauri-strava 27170d8 pages/api/strava/activities.ts | true | 200 | 1,557 | // This is an example of how to read a JSON Web Token from an API route
import { getToken } from "next-auth/jwt";
import type { NextApiRequest, NextApiResponse } from "next";
import stravaApi from "strava-v3";
const fetchActivities = async (accessToken: string, page: number = 1) => {
try {
console.log("Getting... | 6 |
DHRefund/W01_be_spotify_full | 40ebf93 | src/admin/admin.service.ts | TypeScript | www.github.com/DHRefund/W01_be_spotify_full/tree/main/src/admin/admin.service.ts | https://raw.githubusercontent.com/DHRefund/W01_be_spotify_full/40ebf93/src/admin/admin.service.ts | DHRefund/W01_be_spotify_full 40ebf93 src/admin/admin.service.ts | true | 200 | 5,722 | import {
Injectable,
NotFoundException,
BadRequestException,
} from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { CloudinaryService } from '../cloudinary/cloudinary.service';
import * as mm from 'music-metadata';
import { UserRole } from '@prisma/client';
@Injectable()
expo... | 7 |
admbradford/react-form-builder | 55d1b37 | src/utils/throttle.ts | TypeScript | www.github.com/admbradford/react-form-builder/tree/main/src/utils/throttle.ts | https://raw.githubusercontent.com/admbradford/react-form-builder/55d1b37/src/utils/throttle.ts | admbradford/react-form-builder 55d1b37 src/utils/throttle.ts | true | 200 | 325 | export function throttle<T extends (...args: any[]) => void>(fn: T, limit: number): T {
let inThrottle = false;
return function(this: any, ...args: any[]) {
if (!inThrottle) {
fn.apply(this, args);
inThrottle = true;
setTimeout(() => (inThrottle = false), limit);
}
} as T... | 3 |
gimelloc/design-system | 3a36acd | packages/react/src/components/Toast/styles.ts | TypeScript | www.github.com/gimelloc/design-system/tree/main/packages/react/src/components/Toast/styles.ts | https://raw.githubusercontent.com/gimelloc/design-system/3a36acd/packages/react/src/components/Toast/styles.ts | gimelloc/design-system 3a36acd packages/react/src/components/Toast/styles.ts | true | 200 | 2,311 | import { keyframes, styled } from "@stitches/react";
import * as ToastPrimitive from '@radix-ui/react-toast';
const VIEWPORT_PADDING = 32
const hide = keyframes({
'0%': { opacity: 1 },
'100%': { opacity: 0 },
});
const slideIn = keyframes({
from: { transform: `translateX(calc(100% + ${VI... | 4 |
xramzesx/wdai | c25a714 | travel-agency/src/app/app.component.ts | TypeScript | www.github.com/xramzesx/wdai/tree/main/travel-agency/src/app/app.component.ts | https://raw.githubusercontent.com/xramzesx/wdai/c25a714/travel-agency/src/app/app.component.ts | xramzesx/wdai c25a714 travel-agency/src/app/app.component.ts | true | 200 | 443 | import { Component } from '@angular/core';
import { FloatingComponentsService } from './services/floating-components.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'travel-agency';
constructor(
... | 2 |
szy-kenn/nexus | 2d24a1f | client/src/lib/types.ts | TypeScript | www.github.com/szy-kenn/nexus/tree/main/client/src/lib/types.ts | https://raw.githubusercontent.com/szy-kenn/nexus/2d24a1f/client/src/lib/types.ts | szy-kenn/nexus 2d24a1f client/src/lib/types.ts | true | 200 | 351 | import IAnimeSchema from "@backend/IAnimeSchema";
export interface GameData {
title: string;
price: string;
clickedColor: string;
imageUrl: string;
}
export interface RGBColor {
r: number;
g: number;
b: number;
}
export interface FetchedData {
status: number;
statusText: string;
... | 1 |
vsiago/prefeitura-hub-api | 13ffa52 | src/server.ts | TypeScript | www.github.com/vsiago/prefeitura-hub-api/tree/main/src/server.ts | https://raw.githubusercontent.com/vsiago/prefeitura-hub-api/13ffa52/src/server.ts | vsiago/prefeitura-hub-api 13ffa52 src/server.ts | true | 200 | 2,385 | import express from 'express';
import dotenv from 'dotenv';
import cors from 'cors';
import helmet from 'helmet';
import morgan from 'morgan';
import { createServer } from 'http';
import { Server } from 'socket.io';
import connectDB from './config/database';
import errorHandler from './middleware/error';
// Rotas
impo... | 7 |
Dead-Coders/deno_fresh_projects | ab2901a | Buddy Spot/types/index.ts | TypeScript | www.github.com/Dead-Coders/deno_fresh_projects/tree/main/Buddy Spot/types/index.ts | https://raw.githubusercontent.com/Dead-Coders/deno_fresh_projects/ab2901a/Buddy%20Spot/types/index.ts | Dead-Coders/deno_fresh_projects ab2901a Buddy Spot/types/index.ts | true | 200 | 997 | import { User } from "https://esm.sh/v96/@supabase/gotrue-js@2.0.1/dist/module/index.d.ts";
export type Room = {
id?: string;
title: any;
description?: string;
image?: string;
};
export type dbRoom = {
id: string;
created_at: string;
room_name: string;
user_id: string;
room_bg_image: string;
};
export... | 4 |
bruno-queiroz/type-faster-api | 749cc30 | src/services/createUser.ts | TypeScript | www.github.com/bruno-queiroz/type-faster-api/tree/main/src/services/createUser.ts | https://raw.githubusercontent.com/bruno-queiroz/type-faster-api/749cc30/src/services/createUser.ts | bruno-queiroz/type-faster-api 749cc30 src/services/createUser.ts | true | 200 | 622 | import { UserBody } from "../controllers/createUser";
import { userRepository } from "../repositories/userRepository";
import bcrypt from "bcrypt";
export const createUser = async (user: UserBody) => {
let passwordHashed = "";
if (user?.password) {
passwordHashed = await bcrypt.hash(user.password, 10);
} el... | 0 |
msrocco/clean-architecture-react-example | 579595d | src/utils/create-generic-context.util.ts | TypeScript | www.github.com/msrocco/clean-architecture-react-example/tree/main/src/utils/create-generic-context.util.ts | https://raw.githubusercontent.com/msrocco/clean-architecture-react-example/579595d/src/utils/create-generic-context.util.ts | msrocco/clean-architecture-react-example 579595d src/utils/create-generic-context.util.ts | true | 200 | 541 | import { createContext, useContext } from "react";
export const createGenericContext = <T>(defaultValues: T | undefined) => {
const context = createContext<T | undefined>(defaultValues);
const Provider = context.Provider;
const useGenericContext = (): T => {
const values = useContext(context);
if (!val... | 2 |
smvasconcelos/web_2023 | 9b4ced2 | src/components/Button/Button.types.ts | TypeScript | www.github.com/smvasconcelos/web_2023/tree/main/src/components/Button/Button.types.ts | https://raw.githubusercontent.com/smvasconcelos/web_2023/9b4ced2/src/components/Button/Button.types.ts | smvasconcelos/web_2023 9b4ced2 src/components/Button/Button.types.ts | true | 200 | 559 | import { type Theme } from "styles/Themes";
export interface IButtonProps {
label: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
callback?: (e?: any) => any;
icon?: JSX.Element;
color?: keyof typeof Theme.Components.button;
type?: "button" | "submit" | "reset";
center?: boolean;
... | 3 |
Mohab-Rageh/FS-Task | 1a6d91a | Back-end/src/user/user.service.ts | TypeScript | www.github.com/Mohab-Rageh/FS-Task/tree/main/Back-end/src/user/user.service.ts | https://raw.githubusercontent.com/Mohab-Rageh/FS-Task/1a6d91a/Back-end/src/user/user.service.ts | Mohab-Rageh/FS-Task 1a6d91a Back-end/src/user/user.service.ts | true | 200 | 1,299 | import { Injectable } from '@nestjs/common';
import { User, UserInput } from './user.schema';
@Injectable()
export class UserService {
private readonly userData: User = {
firstName: 'Zaria',
fatherName: 'Edward',
grandfatherName: 'Ernest',
familyName: 'Willie',
localizedName: {
firstName: '... | 6 |
jovanannikolic44/WebApp-OnlineLibrary | 24a5282 | src frontend/src/app/pretraga/pretraga.component.ts | TypeScript | www.github.com/jovanannikolic44/WebApp-OnlineLibrary/tree/main/src frontend/src/app/pretraga/pretraga.component.ts | https://raw.githubusercontent.com/jovanannikolic44/WebApp-OnlineLibrary/24a5282/src%20frontend/src/app/pretraga/pretraga.component.ts | jovanannikolic44/WebApp-OnlineLibrary 24a5282 src frontend/src/app/pretraga/pretraga.component.ts | true | 200 | 1,328 | import { Component, OnInit } from '@angular/core';
import { Knjiga } from '../models/Knjiga';
import { Router } from '@angular/router';
@Component({
selector: 'app-pretraga',
templateUrl: './pretraga.component.html',
styleUrls: ['./pretraga.component.css']
})
export class PretragaComponent implements OnInit {
... | 1 |
rolinlearning/rolin | dacb663 | src/content/config.ts | TypeScript | www.github.com/rolinlearning/rolin/tree/main/src/content/config.ts | https://raw.githubusercontent.com/rolinlearning/rolin/dacb663/src/content/config.ts | rolinlearning/rolin dacb663 src/content/config.ts | true | 200 | 3,867 | import { defineCollection, z } from 'astro:content';
const blogCollection = defineCollection({
type: 'content',
schema: z.object({
title: z.string().min(1, 'Title is required'),
description: z.string().min(1, 'Description is required'),
pubDate: z.date({
required_error: "Publication date is requi... | 5 |
dungdamquoc1993/reddot-chai-ui | fe0e8a4 | src/modules/launchpad/hooks/useMerkleTreeInfo.ts | TypeScript | www.github.com/dungdamquoc1993/reddot-chai-ui/tree/main/src/modules/launchpad/hooks/useMerkleTreeInfo.ts | https://raw.githubusercontent.com/dungdamquoc1993/reddot-chai-ui/fe0e8a4/src/modules/launchpad/hooks/useMerkleTreeInfo.ts | dungdamquoc1993/reddot-chai-ui fe0e8a4 src/modules/launchpad/hooks/useMerkleTreeInfo.ts | true | 200 | 1,214 | import { useWeb3React } from '@web3-react/core';
import { useCallback, useEffect, useState } from 'react';
import { getLaunchpadConfigs } from '../../../config';
import { useUserWallet } from '../../../providers/UserWalletProvider';
import { MerkleTreeClaimAccount } from '../models';
export const useMerkleTreeInfo = (... | 7 |
mazali01/link-life | 4a0eb34 | server/logic/statistics/getStatistics.ts | TypeScript | www.github.com/mazali01/link-life/tree/main/server/logic/statistics/getStatistics.ts | https://raw.githubusercontent.com/mazali01/link-life/4a0eb34/server/logic/statistics/getStatistics.ts | mazali01/link-life 4a0eb34 server/logic/statistics/getStatistics.ts | true | 200 | 957 | import dayjs from "dayjs";
import { postDal } from "../../fileDB/post";
import { userDal } from "../../fileDB/user";
export const getStatistics = async (req, res) => {
const users = await userDal.findMany(_ => true);
const posts = await postDal.findMany(_ => true);
const statistics = {
postsCount: posts.len... | 4 |
Elizabeth-Mathew1/nest_postgreSQL | 1b37c9b | src/common/common.module.ts | TypeScript | www.github.com/Elizabeth-Mathew1/nest_postgreSQL/tree/main/src/common/common.module.ts | https://raw.githubusercontent.com/Elizabeth-Mathew1/nest_postgreSQL/1b37c9b/src/common/common.module.ts | Elizabeth-Mathew1/nest_postgreSQL 1b37c9b src/common/common.module.ts | true | 200 | 343 | import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { APP_GUARD } from '@nestjs/core';
import { ApiKeyGuard } from './guards/api-key/api-key.guard';
@Module({
providers:[{
provide:APP_GUARD,
useClass:ApiKeyGuard
}],
imports:[ConfigModule]
})
export... | 2 |
herd132/JobBuilder | 562fdd1 | client/notFun/node_modules/@portone/server-sdk/dist/generated/payment/FailedPayment.d.ts | TypeScript | www.github.com/herd132/JobBuilder/tree/main/client/notFun/node_modules/@portone/server-sdk/dist/generated/payment/FailedPayment.d.ts | https://raw.githubusercontent.com/herd132/JobBuilder/562fdd1/client/notFun/node_modules/%40portone/server-sdk/dist/generated/payment/FailedPayment.d.ts | herd132/JobBuilder 562fdd1 client/notFun/node_modules/@portone/server-sdk/dist/generated/payment/FailedPayment.d.ts | true | 200 | 2,988 | import type { ChannelGroupSummary } from "./../common/ChannelGroupSummary.js";
import type { Country } from "./../common/Country.js";
import type { Currency } from "./../common/Currency.js";
import type { Customer } from "./../common/Customer.js";
import type { PaymentAmount } from "./../payment/PaymentAmount.js";
impo... | 0 |
SadafFatin/Mukto | 2d69246 | src/app/models/pnri_model.ts | TypeScript | www.github.com/SadafFatin/Mukto/tree/main/src/app/models/pnri_model.ts | https://raw.githubusercontent.com/SadafFatin/Mukto/2d69246/src/app/models/pnri_model.ts | SadafFatin/Mukto 2d69246 src/app/models/pnri_model.ts | true | 200 | 1,909 | import { LineChartModel } from '../utils/utility';
import { KeyValueObject, Legend } from './../utils/models';
/* eslint-disable @typescript-eslint/naming-convention */
export interface PnriData {
division_scorecards: {
scorecards: Scorecard[];
divisionRankingGraphPnriColumn: Legend[];
divisionStatusPieCa... | 3 |
c233jf/repo | 1baff87 | packages/linter-setup/utils/command.ts | TypeScript | www.github.com/c233jf/repo/tree/main/packages/linter-setup/utils/command.ts | https://raw.githubusercontent.com/c233jf/repo/1baff87/packages/linter-setup/utils/command.ts | c233jf/repo 1baff87 packages/linter-setup/utils/command.ts | true | 200 | 874 | import { execa } from 'execa'
import { getPkgManager, isPnpmWorkspace } from './package.ts'
const exe = execa({ stdio: 'inherit' })
function toLatest(pkg: string) {
return `${pkg}@latest`
}
export async function i(pkgs: string[]) {
const pkgManager = await getPkgManager()
const cmd = pkgManager === 'npm' ? 'i... | 6 |
ancamihai/Stack_Overflow | 18a1682 | front-end/src/app/question-component/question.component.ts | TypeScript | www.github.com/ancamihai/Stack_Overflow/tree/main/front-end/src/app/question-component/question.component.ts | https://raw.githubusercontent.com/ancamihai/Stack_Overflow/18a1682/front-end/src/app/question-component/question.component.ts | ancamihai/Stack_Overflow 18a1682 front-end/src/app/question-component/question.component.ts | true | 200 | 3,965 | import { Component, OnInit, Input } from '@angular/core';
import { TagService } from '../services/tag.service';
import { UserService } from '../services/user.service';
import { QuestionService } from '../services/question.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-question',
te... | 1 |
aires1294/car-shop | c3e04ae | tests/unit/Services/carService.test.ts | TypeScript | www.github.com/aires1294/car-shop/tree/main/tests/unit/Services/carService.test.ts | https://raw.githubusercontent.com/aires1294/car-shop/c3e04ae/tests/unit/Services/carService.test.ts | aires1294/car-shop c3e04ae tests/unit/Services/carService.test.ts | true | 200 | 3,833 | import { Model } from 'mongoose';
import sinon from 'sinon';
import { expect } from 'chai';
import Car from '../../../src/Domains/Car';
import ICar from '../../../src/Interfaces/ICar';
import CarService from '../../../src/Services/CarService';
// const RESULT_ERROR = 'Invalid Key';
describe('Deveria validar e criar n... | 5 |
lsm-algorithmic-enjoy/twit-newversion | 980b30f | src/firebase.ts | TypeScript | www.github.com/lsm-algorithmic-enjoy/twit-newversion/tree/main/src/firebase.ts | https://raw.githubusercontent.com/lsm-algorithmic-enjoy/twit-newversion/980b30f/src/firebase.ts | lsm-algorithmic-enjoy/twit-newversion 980b30f src/firebase.ts | true | 200 | 651 | import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/storage";
const firebaseConfig = {
apiKey: "AIzaSyAr1_79tY4PWWLLejJNwbQ3OIKE47VwaeY",
authDomain: "nwitter-new-f08cd.firebaseapp.com",
pro... | 7 |
DevilSpiderX/devilspiderx-vue | 05ca1b3 | src/views/controller/hooks/serverInfoReceiver/index.ts | TypeScript | www.github.com/DevilSpiderX/devilspiderx-vue/tree/main/src/views/controller/hooks/serverInfoReceiver/index.ts | https://raw.githubusercontent.com/DevilSpiderX/devilspiderx-vue/05ca1b3/src/views/controller/hooks/serverInfoReceiver/index.ts | DevilSpiderX/devilspiderx-vue 05ca1b3 src/views/controller/hooks/serverInfoReceiver/index.ts | true | 200 | 2,175 | import { eventBus } from "@/plugins/eventBus.ts";
import { useUserStore } from "@/stores/UserStore.ts";
import type { ValuesType } from "@/types/server-info.ts";
import { isBlank, isDefined } from "@/utils/validate.ts";
import { onUnmounted, ref } from "vue";
import { AjaxServerInfoReceiver } from "./AjaxServerInfoRece... | 4 |
yubinTW/fastify101 | eb62fd0 | day22/my-app/src/tests/server.spec.ts | TypeScript | www.github.com/yubinTW/fastify101/tree/main/day22/my-app/src/tests/server.spec.ts | https://raw.githubusercontent.com/yubinTW/fastify101/eb62fd0/day22/my-app/src/tests/server.spec.ts | yubinTW/fastify101 eb62fd0 day22/my-app/src/tests/server.spec.ts | true | 200 | 991 | import { FastifyInstance } from 'fastify'
import { startServer } from '../server'
import { describe, beforeAll, expect, test, afterAll, afterEach } from 'vitest'
import { CatRepoImpl } from '../repos/cat-repo'
import * as dbHelper from 'testcontainers-mongoose'
describe('Server test', () => {
let server: FastifyInst... | 2 |
AndreevDennis/National | 47f1d9d | src/hooks/useFormattedDate.ts | TypeScript | www.github.com/AndreevDennis/National/tree/main/src/hooks/useFormattedDate.ts | https://raw.githubusercontent.com/AndreevDennis/National/47f1d9d/src/hooks/useFormattedDate.ts | AndreevDennis/National 47f1d9d src/hooks/useFormattedDate.ts | true | 200 | 793 | import { useState, useEffect } from "react";
export const useFormattedDate = (date: string) => {
const [formattedDate, setFormattedDate] = useState({
day: "",
month: "",
monthUk: "",
});
useEffect(() => {
const convertedToDate = new Date(date);
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "... | 3 |
swliu920322/my-study-plan | a6abaa4 | src/views/goal/composables/useTask.ts | TypeScript | www.github.com/swliu920322/my-study-plan/tree/main/src/views/goal/composables/useTask.ts | https://raw.githubusercontent.com/swliu920322/my-study-plan/a6abaa4/src/views/goal/composables/useTask.ts | swliu920322/my-study-plan a6abaa4 src/views/goal/composables/useTask.ts | true | 200 | 1,556 | import { ref, computed } from 'vue'
import { message } from 'ant-design-vue'
import dayjs from 'dayjs'
import { taskRepository } from '@/infrastructure/storage'
import type { Task } from '../goal.type'
export function useTask() {
const tasks = ref<Task[]>([])
const selectedDate = ref(dayjs())
const taskModalVisi... | 0 |
ruiblaese/gostack-desafio-nodejs-typeorm-relations | d0430cb | src/shared/infra/typeorm/migrations/1589993126857-CreateOrdersProducts.ts | TypeScript | www.github.com/ruiblaese/gostack-desafio-nodejs-typeorm-relations/tree/main/src/shared/infra/typeorm/migrations/1589993126857-CreateOrdersProducts.ts | https://raw.githubusercontent.com/ruiblaese/gostack-desafio-nodejs-typeorm-relations/d0430cb/src/shared/infra/typeorm/migrations/1589993126857-CreateOrdersProducts.ts | ruiblaese/gostack-desafio-nodejs-typeorm-relations d0430cb src/shared/infra/typeorm/migrations/1589993126857-CreateOrdersProducts.ts | true | 200 | 2,394 | import {
MigrationInterface,
QueryRunner,
Table,
TableForeignKey,
} from 'typeorm';
export default class CreateOrdersProducts1589993126857
implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
... | 6 |
k1ly/Restaurant | 63264e0 | restaurant-nestjs/src/orders/dto/manager-update-order.dto.ts | TypeScript | www.github.com/k1ly/Restaurant/tree/main/restaurant-nestjs/src/orders/dto/manager-update-order.dto.ts | https://raw.githubusercontent.com/k1ly/Restaurant/63264e0/restaurant-nestjs/src/orders/dto/manager-update-order.dto.ts | k1ly/Restaurant 63264e0 restaurant-nestjs/src/orders/dto/manager-update-order.dto.ts | true | 200 | 544 | import { AutoMap } from "@automapper/classes";
import { IsInt, IsNotEmpty, IsOptional, IsPositive } from "class-validator";
export class ManagerUpdateOrderDto {
@IsNotEmpty({ message: "Status ID cannot be empty" })
@IsInt({ message: "Status ID must be an integer" })
@IsPositive({ message: "Status ID must be a po... | 1 |
pulsovi/gm-pennylane | b0945d0 | src/api/invoice.ts | TypeScript | www.github.com/pulsovi/gm-pennylane/tree/main/src/api/invoice.ts | https://raw.githubusercontent.com/pulsovi/gm-pennylane/b0945d0/src/api/invoice.ts | pulsovi/gm-pennylane b0945d0 src/api/invoice.ts | true | 200 | 2,881 | import { jsonClone } from '../_';
import { apiRequest } from './core.js';
import { APIInvoiceItem, DocumentStatus, InvoiceList, InvoiceListParams, MinRawInvoice, RawInvoice } from './types.js';
export async function getInvoice (id: number): Promise<RawInvoice|null> {
if (!id) throw new Error(`Error: getInvoice() in... | 5 |
eslamafifybarakat/Estkdam | a6b76fc | src/app/components/auth/registration-components/personal-info/personal-info.component.ts | TypeScript | www.github.com/eslamafifybarakat/Estkdam/tree/main/src/app/components/auth/registration-components/personal-info/personal-info.component.ts | https://raw.githubusercontent.com/eslamafifybarakat/Estkdam/a6b76fc/src/app/components/auth/registration-components/personal-info/personal-info.component.ts | eslamafifybarakat/Estkdam a6b76fc src/app/components/auth/registration-components/personal-info/personal-info.component.ts | true | 200 | 4,264 | import { ConfirmPasswordValidator } from './../../../../shared/configs/confirm-password-validator';
import { FormBuilder, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
import { ChangeDetectorRef, Component, EventEmitter, Output } from '@angular/core';
import { AlertsService } from './../../../..... | 7 |
joaoviegas11/TPWAngular | 1413e7b | src/app/components/navbar/navbar.component.ts | TypeScript | www.github.com/joaoviegas11/TPWAngular/tree/main/src/app/components/navbar/navbar.component.ts | https://raw.githubusercontent.com/joaoviegas11/TPWAngular/1413e7b/src/app/components/navbar/navbar.component.ts | joaoviegas11/TPWAngular 1413e7b src/app/components/navbar/navbar.component.ts | true | 200 | 1,158 | import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { AuthService } from '../../services/auth.service';
import { AuthData } from '../../interfaces/authData';
import { Router, RouterLink } from '@angular/router';
@Component({
selector: 'app-navbar',
imports: [RouterLink... | 4 |
kpcn/nest-gql-schema-first | 4bc9e1f | src/app.module.ts | TypeScript | www.github.com/kpcn/nest-gql-schema-first/tree/main/src/app.module.ts | https://raw.githubusercontent.com/kpcn/nest-gql-schema-first/4bc9e1f/src/app.module.ts | kpcn/nest-gql-schema-first 4bc9e1f src/app.module.ts | true | 200 | 1,310 | import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CoffeesModule } from './coffees/coffees.module';
import { T... | 3 |
paulorfsantos17/ignite-call | ab0866b | src/pages/api/users/[username]/blocked-dates.api.ts | TypeScript | www.github.com/paulorfsantos17/ignite-call/tree/main/src/pages/api/users/[username]/blocked-dates.api.ts | https://raw.githubusercontent.com/paulorfsantos17/ignite-call/ab0866b/src/pages/api/users/%5Busername%5D/blocked-dates.api.ts | paulorfsantos17/ignite-call ab0866b src/pages/api/users/[username]/blocked-dates.api.ts | true | 200 | 1,797 | // import dayjs from 'dayjs'
import { NextApiRequest, NextApiResponse } from 'next'
import { prisma } from '../../../../lib/prisma'
export default async function handle(
req: NextApiRequest,
res: NextApiResponse,
) {
if (req.method !== 'GET') {
return res.status(405).end()
}
const username = String(req... | 0 |
JakubKonkol/TasteIT | dd76f99 | MixITApp/src/app/pages/feed-settings/feed-settings.component.ts | TypeScript | www.github.com/JakubKonkol/TasteIT/tree/main/MixITApp/src/app/pages/feed-settings/feed-settings.component.ts | https://raw.githubusercontent.com/JakubKonkol/TasteIT/dd76f99/MixITApp/src/app/pages/feed-settings/feed-settings.component.ts | JakubKonkol/TasteIT dd76f99 MixITApp/src/app/pages/feed-settings/feed-settings.component.ts | true | 200 | 5,128 | import {Component, OnInit} from '@angular/core';
import {Ingredient} from "../../model/post/Ingredient";
import {FormControl} from "@angular/forms";
import {SearchService} from "../../service/search.service";
import {debounceTime, distinctUntilChanged, Subject, switchMap} from "rxjs";
import {ConfigurationService} from... | 6 |
xKraiVx/portfolio_frontend | 424f967 | cms/types/single-types/contact-page.ts | TypeScript | www.github.com/xKraiVx/portfolio_frontend/tree/main/cms/types/single-types/contact-page.ts | https://raw.githubusercontent.com/xKraiVx/portfolio_frontend/424f967/cms/types/single-types/contact-page.ts | xKraiVx/portfolio_frontend 424f967 cms/types/single-types/contact-page.ts | true | 200 | 460 | import { ETemplateNameN } from "../general/enums/templates.enum";
import { ISeo } from "../general/seo";
import { IAttributesWithPublish, IStrapiNode } from "../general/strapi-node";
export interface IContactPageData extends IAttributesWithPublish {
templateName: ETemplateNameN.CONTACT;
Title: string;
Slug: stri... | 7 |
joshua12cx/rosales | b522827 | src/app/core/services/appointment.service.ts | TypeScript | www.github.com/joshua12cx/rosales/tree/main/src/app/core/services/appointment.service.ts | https://raw.githubusercontent.com/joshua12cx/rosales/b522827/src/app/core/services/appointment.service.ts | joshua12cx/rosales b522827 src/app/core/services/appointment.service.ts | true | 200 | 1,220 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { ApiResponse } from '../entities/apiresponse.entity';
import { Appointment } from '../entities/appointment.entity';
import { AppointmentDTO } from '../dto/appointment.Dto';
@Injecta... | 1 |
luannguyenthanh-ba-dev/user-service | e606be7 | src/modules/auth/guards/auth.guard.ts | TypeScript | www.github.com/luannguyenthanh-ba-dev/user-service/tree/main/src/modules/auth/guards/auth.guard.ts | https://raw.githubusercontent.com/luannguyenthanh-ba-dev/user-service/e606be7/src/modules/auth/guards/auth.guard.ts | luannguyenthanh-ba-dev/user-service e606be7 src/modules/auth/guards/auth.guard.ts | true | 200 | 1,433 | import {
ExecutionContext,
ForbiddenException,
Injectable,
Logger,
UnauthorizedException,
} from '@nestjs/common';
import { AuthGuard as JwtAuthGuard } from '@nestjs/passport';
@Injectable()
export class AuthGuard extends JwtAuthGuard('jwt') {
private logger = new Logger();
private readonly internalServi... | 2 |
Jkker/metasearch-tampermonkey | 5a85629 | vite.config.ts | TypeScript | www.github.com/Jkker/metasearch-tampermonkey/tree/main/vite.config.ts | https://raw.githubusercontent.com/Jkker/metasearch-tampermonkey/5a85629/vite.config.ts | Jkker/metasearch-tampermonkey 5a85629 vite.config.ts | true | 200 | 3,547 | // vite.config.js
import autoprefixer from 'autoprefixer';
import fs from 'fs';
import { resolve } from 'path';
import postcss from 'postcss';
import type { PluginOption, ResolvedConfig } from 'vite';
import { defineConfig } from 'vite';
import { config } from './src/config.js';
function libInjectCss(): PluginOption {... | 3 |
FabioSeixas/GoStackChallengeFive | b472200 | src/services/DeleteTransactionService.ts | TypeScript | www.github.com/FabioSeixas/GoStackChallengeFive/tree/main/src/services/DeleteTransactionService.ts | https://raw.githubusercontent.com/FabioSeixas/GoStackChallengeFive/b472200/src/services/DeleteTransactionService.ts | FabioSeixas/GoStackChallengeFive b472200 src/services/DeleteTransactionService.ts | true | 200 | 608 | import { getCustomRepository } from 'typeorm';
import AppError from '../errors/AppError';
import TransactionRepository from '../repositories/TransactionsRepository';
interface RequestDTO {
id: string;
}
class DeleteTransactionService {
public async execute({ id }: RequestDTO): Promise<void> {
const transact... | 6 |
Bezgubenko-Elena/test_ts_pw | d1f78dc | pages/resultPage.ts | TypeScript | www.github.com/Bezgubenko-Elena/test_ts_pw/tree/main/pages/resultPage.ts | https://raw.githubusercontent.com/Bezgubenko-Elena/test_ts_pw/d1f78dc/pages/resultPage.ts | Bezgubenko-Elena/test_ts_pw d1f78dc pages/resultPage.ts | true | 200 | 1,816 | import { Page, Locator } from 'playwright';
import { expect } from '@playwright/test';
import { BasePage } from '../pages/basePage.js';
export class ResultPage extends BasePage {
private typeMaterial: Locator;
private typeTableTop: Locator;
private isAddWaterHoles: Locator;
private totalOrderCost: Loc... | 0 |
LUNION-LAB-ORG/Lunion-Booking-Web | da04f38 | src/schemas/auth.schema.ts | TypeScript | www.github.com/LUNION-LAB-ORG/Lunion-Booking-Web/tree/main/src/schemas/auth.schema.ts | https://raw.githubusercontent.com/LUNION-LAB-ORG/Lunion-Booking-Web/da04f38/src/schemas/auth.schema.ts | LUNION-LAB-ORG/Lunion-Booking-Web da04f38 src/schemas/auth.schema.ts | true | 200 | 506 | import { z } from 'zod';
export const registerVerifySchema = z.object({
token: z.string(),
});
export type _registerVerifySchema = z.infer<typeof registerVerifySchema>;
export const createProfileSchema = z.object({
id: z.string(),
email: z.string().email(),
last_name: z.string().min(2),
first_name... | 4 |
mr-loop-1/job-portal-nestjs | 5de0153 | apps/auth-apis/src/services/service.ts | TypeScript | www.github.com/mr-loop-1/job-portal-nestjs/tree/main/apps/auth-apis/src/services/service.ts | https://raw.githubusercontent.com/mr-loop-1/job-portal-nestjs/5de0153/apps/auth-apis/src/services/service.ts | mr-loop-1/job-portal-nestjs 5de0153 apps/auth-apis/src/services/service.ts | true | 200 | 4,471 | import { pick, random } from 'lodash';
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { AppConfig, CacheStore, EmitEvent, Hash, Helpers } from '@libs/boat';
import { UserLibService } from '@lib/users';
import { ERROR, SUCCESS } from 'libs/common/... | 7 |
WassimSOUSSI/product-management-angular | 6b28c99 | src/app/components/products/edit-product/edit-product.component.ts | TypeScript | www.github.com/WassimSOUSSI/product-management-angular/tree/main/src/app/components/products/edit-product/edit-product.component.ts | https://raw.githubusercontent.com/WassimSOUSSI/product-management-angular/6b28c99/src/app/components/products/edit-product/edit-product.component.ts | WassimSOUSSI/product-management-angular 6b28c99 src/app/components/products/edit-product/edit-product.component.ts | true | 200 | 1,576 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { Product } from '../../../model/product';
import { ProductService } from '../../../services/products/product.service';
@Component({
... | 1 |
QuinntyneBrown/ProjectManager | ac6ddb3 | src/ProjectManager.App/src/app/edit-project/edit-project.module.ts | TypeScript | www.github.com/QuinntyneBrown/ProjectManager/tree/main/src/ProjectManager.App/src/app/edit-project/edit-project.module.ts | https://raw.githubusercontent.com/QuinntyneBrown/ProjectManager/ac6ddb3/src/ProjectManager.App/src/app/edit-project/edit-project.module.ts | QuinntyneBrown/ProjectManager ac6ddb3 src/ProjectManager.App/src/app/edit-project/edit-project.module.ts | true | 200 | 976 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { EditProjectRoutingModule } from './edit-project-routing.module';
import { EditProjectComponent } from './edit-project.component';
import { MatIconModule } from '@angular/material/icon';
import { ReactiveFormsModule } from... | 2 |
lephattai2304/FlightReservation | 1f66020 | flightReservation/src/app/services/reservation.service.ts | TypeScript | www.github.com/lephattai2304/FlightReservation/tree/main/flightReservation/src/app/services/reservation.service.ts | https://raw.githubusercontent.com/lephattai2304/FlightReservation/1f66020/flightReservation/src/app/services/reservation.service.ts | lephattai2304/FlightReservation 1f66020 flightReservation/src/app/services/reservation.service.ts | true | 200 | 960 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { LoginService } from './login.service';
@Injectable({
providedIn: 'root'
})
export class ReservationService {
flightsUrl:string = "http://127.0.0.1:8000/flightServices/findFlights/";
singleFlightUrl:string = "h... | 3 |
jh8057/zzemalpwa | 7369ff1 | src/components/composable/useMatterjs.ts | TypeScript | www.github.com/jh8057/zzemalpwa/tree/main/src/components/composable/useMatterjs.ts | https://raw.githubusercontent.com/jh8057/zzemalpwa/7369ff1/src/components/composable/useMatterjs.ts | jh8057/zzemalpwa 7369ff1 src/components/composable/useMatterjs.ts | true | 200 | 1,928 | import Matter from "matter-js";
export default () => {
const matter = () => {
// module aliases
const Engine = Matter.Engine,
Render = Matter.Render,
Runner = Matter.Runner,
Bodies = Matter.Bodies,
Composite = Matter.Composite,
Mouse = Matter.Mouse;
// create an engine
... | 0 |
Fahadmohammad1/university-management-auth-service | c5edc98 | src/app.ts | TypeScript | www.github.com/Fahadmohammad1/university-management-auth-service/tree/main/src/app.ts | https://raw.githubusercontent.com/Fahadmohammad1/university-management-auth-service/c5edc98/src/app.ts | Fahadmohammad1/university-management-auth-service c5edc98 src/app.ts | true | 200 | 909 | import express, { Application, NextFunction, Request, Response } from 'express'
import cors from 'cors'
import globalErrorHandler from './app/middleware/globalErrorHandler'
import routes from './app/routes'
import httpStatus from 'http-status'
import cookieParser from 'cookie-parser'
const app: Application = express()... | 6 |
karol93/pijze | 179064f | Bff/Pijze.Bff/ClientApp/src/app/app.module.ts | TypeScript | www.github.com/karol93/pijze/tree/main/Bff/Pijze.Bff/ClientApp/src/app/app.module.ts | https://raw.githubusercontent.com/karol93/pijze/179064f/Bff/Pijze.Bff/ClientApp/src/app/app.module.ts | karol93/pijze 179064f Bff/Pijze.Bff/ClientApp/src/app/app.module.ts | true | 200 | 1,390 | import { APP_INITIALIZER, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { EffectsMo... | 4 |
sharmila-optisol/E-Commerce | 845293d | Server/src/models/Product.ts | TypeScript | www.github.com/sharmila-optisol/E-Commerce/tree/main/Server/src/models/Product.ts | https://raw.githubusercontent.com/sharmila-optisol/E-Commerce/845293d/Server/src/models/Product.ts | sharmila-optisol/E-Commerce 845293d Server/src/models/Product.ts | true | 200 | 798 | import mongoose from "mongoose";
const reviewSchema =new mongoose.Schema({
username:{
type:String,
},
rating:{
type:String,
},
comment:{
type:String,
},
user:{
type:mongoose.Schema.Types.ObjectId,
ref:"User",
},
})
export const Pr... | 7 |
lsmat2/PersonalHub | fdfd596 | client/src/app/app.component.ts | TypeScript | www.github.com/lsmat2/PersonalHub/tree/main/client/src/app/app.component.ts | https://raw.githubusercontent.com/lsmat2/PersonalHub/fdfd596/client/src/app/app.component.ts | lsmat2/PersonalHub fdfd596 client/src/app/app.component.ts | true | 200 | 469 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { NavBarComponent } from './nav-bar/nav-bar.component';
@Component({
selector: 'app-root',
standalone: true,
imports: [
CommonModule,
RouterOutl... | 5 |
MohamedHadaey/Movie4u | d7f3fc5 | src/app/search/search.component.ts | TypeScript | www.github.com/MohamedHadaey/Movie4u/tree/main/src/app/search/search.component.ts | https://raw.githubusercontent.com/MohamedHadaey/Movie4u/d7f3fc5/src/app/search/search.component.ts | MohamedHadaey/Movie4u d7f3fc5 src/app/search/search.component.ts | true | 200 | 1,443 | import { Component, OnInit } from '@angular/core';
import { TrendingService } from '../trending.service';
import { NgxSpinnerService } from 'ngx-spinner';
@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.scss']
})
export class SearchComponent implements... | 1 |
HaykYegh/messanger | 7172a1c | app/src/modules/networks/NetworksSaga.ts | TypeScript | www.github.com/HaykYegh/messanger/tree/main/app/src/modules/networks/NetworksSaga.ts | https://raw.githubusercontent.com/HaykYegh/messanger/7172a1c/app/src/modules/networks/NetworksSaga.ts | HaykYegh/messanger 7172a1c app/src/modules/networks/NetworksSaga.ts | true | 200 | 4,502 | "use strict";
import {
addNetwork,
setNetworkJoinPopUp,
setSearchedNetwork,
leaveNetworks,
setNetworkLeavePopUp,
setNetworkError,
setNetworkToken, setNetworkKickedPopUp
} from "modules/networks/NetworksActions";
import {getNetwork, joinNetwork, leaveNetwork} from "requests/networksRequest";... | 2 |
deepakabari/Rest__demo | fea3a3c | src/routes/auth/auth.routes.ts | TypeScript | www.github.com/deepakabari/Rest__demo/tree/main/src/routes/auth/auth.routes.ts | https://raw.githubusercontent.com/deepakabari/Rest__demo/fea3a3c/src/routes/auth/auth.routes.ts | deepakabari/Rest__demo fea3a3c src/routes/auth/auth.routes.ts | true | 200 | 647 | import { celebrate } from 'celebrate';
import { authController } from '../../controllers';
import { Router } from 'express';
import { AuthSchema } from '../../validations/index';
// Create a new router object
const router: Router = Router();
// POST /login
router.post('/login', celebrate(AuthSchema.login), authContro... | 3 |
llauu/tp-clinica-online | 92768fd | src/app/app.component.ts | TypeScript | www.github.com/llauu/tp-clinica-online/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/llauu/tp-clinica-online/92768fd/src/app/app.component.ts | llauu/tp-clinica-online 92768fd src/app/app.component.ts | true | 200 | 1,806 | import { Component } from '@angular/core';
import { NavigationEnd, Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { AuthService } from './services/auth.service';
import { NgxSpinnerService, NgxSpinnerModule } from 'ngx-spinner';
import { NgIf } from '@angular/common';
@Component({
... | 6 |
SecureDNA/SecureDNA | 9e0f099 | frontend/elgui/src/util/eltr.ts | TypeScript | www.github.com/SecureDNA/SecureDNA/tree/main/frontend/elgui/src/util/eltr.ts | https://raw.githubusercontent.com/SecureDNA/SecureDNA/9e0f099/frontend/elgui/src/util/eltr.ts | SecureDNA/SecureDNA 9e0f099 frontend/elgui/src/util/eltr.ts | true | 200 | 456 | /**
* Copyright 2021-2024 SecureDNA Stiftung (SecureDNA Foundation) <licensing@securedna.org>
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
import { ExemptionListTokenRequest } from "@securedna/frontend_common";
export function needsScreening(eltr: ExemptionListTokenRequest): boolean {
return eltr.V1.exemption... | 0 |
aysenuraydin/store-Angular | fbb53f6 | src/app/repository/alert.repository.ts | TypeScript | www.github.com/aysenuraydin/store-Angular/tree/main/src/app/repository/alert.repository.ts | https://raw.githubusercontent.com/aysenuraydin/store-Angular/fbb53f6/src/app/repository/alert.repository.ts | aysenuraydin/store-Angular fbb53f6 src/app/repository/alert.repository.ts | true | 200 | 1,590 | import { Alert, ClassName, Color } from "../models/alert";
export class AlertRepository {
private alerts: Alert[] = [];
constructor() {
this.alerts = [
{
id: 1,
userId: 1,
className: ClassName.error,
message: "An unexpected error occurred while processing your request. Pl... | 4 |
ST-Emmanuel00/ms_private_auth | 0de088c | src/validations/utils/role.name.utils.ts | TypeScript | www.github.com/ST-Emmanuel00/ms_private_auth/tree/main/src/validations/utils/role.name.utils.ts | https://raw.githubusercontent.com/ST-Emmanuel00/ms_private_auth/0de088c/src/validations/utils/role.name.utils.ts | ST-Emmanuel00/ms_private_auth 0de088c src/validations/utils/role.name.utils.ts | true | 200 | 421 | import { CustomValidator } from "express-validator";
import { db } from "../../config";
export const validateRoleExistsOnDbByName: CustomValidator = async (
value: string,
{ req }
) => {
const role = await db.roles.findFirst({
where: {
name: value,
},
});
if (role) {
... | 7 |
SyntaxBox/quotes | 864a76e | src/shared/interceptors/quotes.interceptor.ts | TypeScript | www.github.com/SyntaxBox/quotes/tree/main/src/shared/interceptors/quotes.interceptor.ts | https://raw.githubusercontent.com/SyntaxBox/quotes/864a76e/src/shared/interceptors/quotes.interceptor.ts | SyntaxBox/quotes 864a76e src/shared/interceptors/quotes.interceptor.ts | true | 200 | 1,839 | import {
Injectable,
NestInterceptor,
ExecutionContext,
CallHandler,
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { PrismaService } from 'src/prisma/prisma.service';
// this is response interceptor
// intercepts the quote endpoint
// adds user informa... | 5 |
kibertoad/potato-golem | 91b3090 | packages/extras/src/prefabs/scenes/CommonScene.ts | TypeScript | www.github.com/kibertoad/potato-golem/tree/main/packages/extras/src/prefabs/scenes/CommonScene.ts | https://raw.githubusercontent.com/kibertoad/potato-golem/91b3090/packages/extras/src/prefabs/scenes/CommonScene.ts | kibertoad/potato-golem 91b3090 packages/extras/src/prefabs/scenes/CommonScene.ts | true | 200 | 563 | import type { Scene } from 'phaser'
import { AbstractBlock } from '../../blocks/AbstractBlock'
import { InputBlock } from '../../blocks/InputBlock'
export class CommonScene extends AbstractBlock {
public readonly input: InputBlock
public constructor(scene: Phaser.Scene) {
super(scene)
this.input = new In... | 1 |
hubgit/prosemirror-jats | 2dc2d16 | src/schema/nodes/caption.ts | TypeScript | www.github.com/hubgit/prosemirror-jats/tree/main/src/schema/nodes/caption.ts | https://raw.githubusercontent.com/hubgit/prosemirror-jats/2dc2d16/src/schema/nodes/caption.ts | hubgit/prosemirror-jats 2dc2d16 src/schema/nodes/caption.ts | true | 200 | 1,230 | /*!
* © 2019 Atypon Systems LLC
* Modified from 2024 by Alf Eaton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 2 |
angelocarasig/Terminus | d96efac | src/app/shared/guards/user/user.guard.ts | TypeScript | www.github.com/angelocarasig/Terminus/tree/main/src/app/shared/guards/user/user.guard.ts | https://raw.githubusercontent.com/angelocarasig/Terminus/d96efac/src/app/shared/guards/user/user.guard.ts | angelocarasig/Terminus d96efac src/app/shared/guards/user/user.guard.ts | true | 200 | 598 | import { ActivatedRouteSnapshot, CanActivateFn, Router, RouterStateSnapshot } from '@angular/router';
import { inject } from '@angular/core';
import { UserService } from '../../services/user/user.service';
export const UserGuard: CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {
const... | 3 |
Kalashin1/netcreed-shop | 360809e | src/pages/product/helper.ts | TypeScript | www.github.com/Kalashin1/netcreed-shop/tree/main/src/pages/product/helper.ts | https://raw.githubusercontent.com/Kalashin1/netcreed-shop/360809e/src/pages/product/helper.ts | Kalashin1/netcreed-shop 360809e src/pages/product/helper.ts | true | 200 | 538 | import { COLLECTIONS } from './../../../types.d';
import { db } from '../../firebase-settings';
import { doc, getDoc } from 'firebase/firestore';
import { Products } from '../../../types';
export const getProduct = async (id: string): Promise<[Products|null, unknown|null]> => {
try {
const docRef = doc(db, COLLE... | 6 |
tihomir22/Mikosava-OTC-Front | 8096ef3 | src/app/shared/components/coin-img-badge/coin-img-badge.component.spec.ts | TypeScript | www.github.com/tihomir22/Mikosava-OTC-Front/tree/main/src/app/shared/components/coin-img-badge/coin-img-badge.component.spec.ts | https://raw.githubusercontent.com/tihomir22/Mikosava-OTC-Front/8096ef3/src/app/shared/components/coin-img-badge/coin-img-badge.component.spec.ts | tihomir22/Mikosava-OTC-Front 8096ef3 src/app/shared/components/coin-img-badge/coin-img-badge.component.spec.ts | true | 200 | 643 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CoinImgBadgeComponent } from './coin-img-badge.component';
describe('CoinImgBadgeComponent', () => {
let component: CoinImgBadgeComponent;
let fixture: ComponentFixture<CoinImgBadgeComponent>;
beforeEach(async () => {
await TestBed... | 4 |
KaposiOli/sw-hw | e1a4e8e | utils/sortCharacters.ts | TypeScript | www.github.com/KaposiOli/sw-hw/tree/main/utils/sortCharacters.ts | https://raw.githubusercontent.com/KaposiOli/sw-hw/e1a4e8e/utils/sortCharacters.ts | KaposiOli/sw-hw e1a4e8e utils/sortCharacters.ts | true | 200 | 1,511 | import { Character } from "../services/swapi";
export enum SortOrder {
ASC = "asc",
DESC = "desc",
DEFAULT = "default",
}
export enum SortColumn {
NAME = "name",
CREATED = "created",
EYE_COLOR = "eye_color",
}
export function sortCharacters(
characters: Character[],
sortOrder: SortOrder,
sortColumn... | 7 |
infrastructr/deck-ui | e295377 | src/app/inventory/effects/inventory.effects.spec.ts | TypeScript | www.github.com/infrastructr/deck-ui/tree/main/src/app/inventory/effects/inventory.effects.spec.ts | https://raw.githubusercontent.com/infrastructr/deck-ui/e295377/src/app/inventory/effects/inventory.effects.spec.ts | infrastructr/deck-ui e295377 src/app/inventory/effects/inventory.effects.spec.ts | true | 200 | 622 | import {TestBed} from '@angular/core/testing';
import {provideMockActions} from '@ngrx/effects/testing';
import {Observable} from 'rxjs';
import {InventoryEffects} from './inventory.effects';
xdescribe('InventoryEffects', () => {
const actions$ = new Observable<any>();
let effects: InventoryEffects;
beforeEach... | 1 |
BigMinecraftFramework/bmc-panel | 760e9b8 | server/src/api/deployments/deleteDeployment.ts | TypeScript | www.github.com/BigMinecraftFramework/bmc-panel/tree/main/server/src/api/deployments/deleteDeployment.ts | https://raw.githubusercontent.com/BigMinecraftFramework/bmc-panel/760e9b8/server/src/api/deployments/deleteDeployment.ts | BigMinecraftFramework/bmc-panel 760e9b8 server/src/api/deployments/deleteDeployment.ts | true | 200 | 1,009 | import {ApiEndpoint, AuthType} from '../types';
import DeploymentManager from "../../features/deployments/controllers/deploymentManager";
export interface DeleteDeploymentResponse {
message: string;
}
export const deleteDeploymentEndpoint: ApiEndpoint<unknown, DeleteDeploymentResponse> = {
path: '/api/deploym... | 5 |
WillowHayward/monoverse | 81c6afd | libs/event-manager/src/lib/event-manager.ts | TypeScript | www.github.com/WillowHayward/monoverse/tree/main/libs/event-manager/src/lib/event-manager.ts | https://raw.githubusercontent.com/WillowHayward/monoverse/81c6afd/libs/event-manager/src/lib/event-manager.ts | WillowHayward/monoverse 81c6afd libs/event-manager/src/lib/event-manager.ts | true | 200 | 2,570 | /**
* @author: WillHayCode
*/
/* eslint-disable */
//export type Callback = <T>(...args: unknown[]) => T;
// TODO: There must be a better way than using the Function type, but the above line
// CONT: Causes type issues across the board
export type Callback = Function;
/* eslint-enable */
export type CallbackEntry = {... | 2 |
immichjs/nest-graphql-course | 4a90d71 | src/authors/use-cases/list-authors.use-case.int-spec.ts | TypeScript | www.github.com/immichjs/nest-graphql-course/tree/main/src/authors/use-cases/list-authors.use-case.int-spec.ts | https://raw.githubusercontent.com/immichjs/nest-graphql-course/4a90d71/src/authors/use-cases/list-authors.use-case.int-spec.ts | immichjs/nest-graphql-course 4a90d71 src/authors/use-cases/list-authors.use-case.int-spec.ts | true | 200 | 2,891 | import { Test, TestingModule } from '@nestjs/testing'
import { PrismaClient } from '@prisma/client'
import { execSync } from 'node:child_process'
import { AuthorDataBuilder } from '../helpers/author-data-builder'
import { AuthorsPrismaRepository } from '../repositories/authors-prisma.repository'
import { ListAuthorsUse... | 3 |
eser/eser.live | d1d9aee | pkg/main/fresh.config.ts | TypeScript | www.github.com/eser/eser.live/tree/main/pkg/main/fresh.config.ts | https://raw.githubusercontent.com/eser/eser.live/d1d9aee/pkg/main/fresh.config.ts | eser/eser.live d1d9aee pkg/main/fresh.config.ts | true | 200 | 726 | // Copyright 2023-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license.
import tailwindPlugin from "$fresh/plugins/tailwind.ts";
import { defineConfig, type Plugin } from "$fresh/server.ts";
import { errorHandlingPlugin } from "@/pkg/main/plugins/error-handling.ts";
import { oAuthPlugin ... | 0 |
Savesh1508/clothes-shop-nestjs-postgre-sequelize | 03c649c | src/order/dto/create-order.dto.ts | TypeScript | www.github.com/Savesh1508/clothes-shop-nestjs-postgre-sequelize/tree/main/src/order/dto/create-order.dto.ts | https://raw.githubusercontent.com/Savesh1508/clothes-shop-nestjs-postgre-sequelize/03c649c/src/order/dto/create-order.dto.ts | Savesh1508/clothes-shop-nestjs-postgre-sequelize 03c649c src/order/dto/create-order.dto.ts | true | 200 | 2,147 | import { IsString, IsNotEmpty, IsEmail, IsStrongPassword, IsBoolean, IsNumber, IsEnum } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export enum Status {
completed = 'completed',
waiting = 'waiting',
stopped = 'stopped',
cancelled = 'cancelled',
market_accepted = 'market accepted',
... | 6 |
benson1029/go-slang | 097801e | src/go/heap/types/control/method.ts | TypeScript | www.github.com/benson1029/go-slang/tree/main/src/go/heap/types/control/method.ts | https://raw.githubusercontent.com/benson1029/go-slang/097801e/src/go/heap/types/control/method.ts | benson1029/go-slang 097801e src/go/heap/types/control/method.ts | true | 200 | 5,490 | /**
* CONTROL_method
* Fields :
* - number of children
* - number of parameters
* - number of captures
* Children :
* - 4 bytes address of the method body (any)
* - 4 bytes address of the method name (COMPLEX_string)
* - 4 bytes address of the struct name (COMPLEX_string)
* - 4 bytes address of the self n... | 4 |
working-with/y-sed-project | 3be311b | client/src/pages/Finish/index.styled.ts | TypeScript | www.github.com/working-with/y-sed-project/tree/main/client/src/pages/Finish/index.styled.ts | https://raw.githubusercontent.com/working-with/y-sed-project/3be311b/client/src/pages/Finish/index.styled.ts | working-with/y-sed-project 3be311b client/src/pages/Finish/index.styled.ts | true | 200 | 356 | import styled from "styled-components";
import { bodyContainer, flexCenter, height, quizHeight } from "../../style/common";
export const Body = styled.div`
${bodyContainer}
`;
export const Top = styled.div``;
export const Content = styled.div`
${quizHeight}
${flexCenter}
flex-direction: column;
gap: 2rem;
... | 7 |
gim-largerepo/including-investment-59GB | 573884e | web/boy.ts | TypeScript | www.github.com/gim-largerepo/including-investment-59GB/tree/main/web/boy.ts | https://raw.githubusercontent.com/gim-largerepo/including-investment-59GB/573884e/web/boy.ts | gim-largerepo/including-investment-59GB 573884e web/boy.ts | true | 200 | 1,143 | Together everybody admit interview turn end.
Card himself though improve blood right.
Can religious crime together enter sea send.
Project line order professor gun.
Environment population worry physical condition down.
Arm everyone relationship top issue year.
Stage nothing blue right person last cut court.
Effect any ... | 5 |
GuilhermeGcaires/CarRental | cd3b422 | src/shared/container/providers/MailProvider/implementations/EtherealMailProvider.ts | TypeScript | www.github.com/GuilhermeGcaires/CarRental/tree/main/src/shared/container/providers/MailProvider/implementations/EtherealMailProvider.ts | https://raw.githubusercontent.com/GuilhermeGcaires/CarRental/cd3b422/src/shared/container/providers/MailProvider/implementations/EtherealMailProvider.ts | GuilhermeGcaires/CarRental cd3b422 src/shared/container/providers/MailProvider/implementations/EtherealMailProvider.ts | true | 200 | 1,317 | import { injectable } from "tsyringe";
import nodemailer, { Transporter } from "nodemailer";
import handlebars from "handlebars";
import fs from "fs";
import { IMailProvider } from "../IMailProvider";
@injectable()
class EtherealMailProvider implements IMailProvider {
private client: Transporter;
constructor() {
... | 1 |
kartapurakhniwas/sewaks-public | 2cbfc2a | src/app/services/master.ts | TypeScript | www.github.com/kartapurakhniwas/sewaks-public/tree/main/src/app/services/master.ts | https://raw.githubusercontent.com/kartapurakhniwas/sewaks-public/2cbfc2a/src/app/services/master.ts | kartapurakhniwas/sewaks-public 2cbfc2a src/app/services/master.ts | true | 200 | 3,128 | import { Injectable } from "@angular/core";
import { BaseService } from "./base";
import { environment } from "../../environments/environment";
import { StorageService } from "./storage.service";
import { IfStmt } from "@angular/compiler";
@Injectable({
providedIn: 'root',
})
export class MasterService {
sidebar: b... | 2 |
natomendes/cash-force-project | 67ce8f1 | backend/src/main/factories/db-load-user-by-token-factory.ts | TypeScript | www.github.com/natomendes/cash-force-project/tree/main/backend/src/main/factories/db-load-user-by-token-factory.ts | https://raw.githubusercontent.com/natomendes/cash-force-project/67ce8f1/backend/src/main/factories/db-load-user-by-token-factory.ts | natomendes/cash-force-project 67ce8f1 backend/src/main/factories/db-load-user-by-token-factory.ts | true | 200 | 443 | import { DbLoadUserByToken } from '@/data/usecases'
import { JwtAdapter } from '@/infra/criptography/jwt-adapter'
import { UserMySqlRepository } from '@/infra/db/mysql'
import env from '@/main/config/env'
export const makeDbLoadUserByToken = (): DbLoadUserByToken => {
const jwtAdapter = new JwtAdapter(env.jwtSecret)... | 0 |
Wichtowski/FitTune-Tracker-Backend-API | 2b5a293 | src/app.ts | TypeScript | www.github.com/Wichtowski/FitTune-Tracker-Backend-API/tree/main/src/app.ts | https://raw.githubusercontent.com/Wichtowski/FitTune-Tracker-Backend-API/2b5a293/src/app.ts | Wichtowski/FitTune-Tracker-Backend-API 2b5a293 src/app.ts | true | 200 | 2,096 | import express, { Application } from 'express';
import cors from 'cors';
import helmet from 'helmet';
import cookieParser from 'cookie-parser';
import EventLogger from './middleware/eventLogger';
import Database from './config';
import dotenv from 'dotenv';
import UserRoute from './routes/User';
import userRoutes from ... | 3 |
ikeryou/sketch371 | ce1e19f | src/parts/face.ts | TypeScript | www.github.com/ikeryou/sketch371/tree/main/src/parts/face.ts | https://raw.githubusercontent.com/ikeryou/sketch371/ce1e19f/src/parts/face.ts | ikeryou/sketch371 ce1e19f src/parts/face.ts | true | 200 | 2,066 | import vt from '../glsl/face.vert';
import fg from '../glsl/face.frag';
import { Mesh } from 'three/src/objects/Mesh';
import { Color } from 'three/src/math/Color';
import { Vector2 } from 'three/src/math/Vector2';
import { DoubleSide } from 'three/src/constants';
import { MyObject3D } from "../webgl/myObject3D";
impor... | 6 |
anthonidev/teslo-shop-typeorm | 5d2f005 | src/files/helpers/fileFilter.helper.ts | TypeScript | www.github.com/anthonidev/teslo-shop-typeorm/tree/main/src/files/helpers/fileFilter.helper.ts | https://raw.githubusercontent.com/anthonidev/teslo-shop-typeorm/5d2f005/src/files/helpers/fileFilter.helper.ts | anthonidev/teslo-shop-typeorm 5d2f005 src/files/helpers/fileFilter.helper.ts | true | 200 | 547 | import { BadRequestException } from '@nestjs/common';
export const fileFilter = (
req: Express.Request,
file: Express.Multer.File,
callback: (error: Error | null, acceptFile: boolean) => void,
) => {
if (!file) return callback(new Error('No file provided'), false);
const fileExtension = file.originalname.sp... | 7 |
maletta/socket-chat-js | b1b3b5e | backend/src/SocketWS.ts | TypeScript | www.github.com/maletta/socket-chat-js/tree/main/backend/src/SocketWS.ts | https://raw.githubusercontent.com/maletta/socket-chat-js/b1b3b5e/backend/src/SocketWS.ts | maletta/socket-chat-js b1b3b5e backend/src/SocketWS.ts | true | 200 | 1,165 | /** USANDO WS */
import express, { Express } from 'express';
import cors from 'cors';
import { createServer, Server as HttpServer } from 'http';
import { Server, WebSocket } from 'ws';
class SocketWS {
private app: Express;
private httpServer: HttpServer;
private wss: Server;
constructor() {
this.app = e... | 5 |
saganorenkarlson/portfolio | 5ed1701 | utils.ts | TypeScript | www.github.com/saganorenkarlson/portfolio/tree/main/utils.ts | https://raw.githubusercontent.com/saganorenkarlson/portfolio/5ed1701/utils.ts | saganorenkarlson/portfolio 5ed1701 utils.ts | true | 200 | 1,403 | import { Asset, createClient } from 'contentful';
const client = createClient({
space: process.env.SPACE_ID ?? '',
accessToken: process.env.CONTENT_ACCESS_TOKEN ?? '',
});
interface ContentfulTechniqueEntry {
fields: TechniqueEntry;
contentTypeId: string;
}
export interface TechniqueEntry {
title... | 0 |
sabrinaissa/pbz_frontEnd | ecafaa3 | src/app/bars/sdbarcust/sdbarcust.component.spec.ts | TypeScript | www.github.com/sabrinaissa/pbz_frontEnd/tree/main/src/app/bars/sdbarcust/sdbarcust.component.spec.ts | https://raw.githubusercontent.com/sabrinaissa/pbz_frontEnd/ecafaa3/src/app/bars/sdbarcust/sdbarcust.component.spec.ts | sabrinaissa/pbz_frontEnd ecafaa3 src/app/bars/sdbarcust/sdbarcust.component.spec.ts | true | 200 | 620 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SdbarcustComponent } from './sdbarcust.component';
describe('SdbarcustComponent', () => {
let component: SdbarcustComponent;
let fixture: ComponentFixture<SdbarcustComponent>;
beforeEach(async () => {
await TestBed.configureTesting... | 2 |
chewnoill/collaborative-editor | 7476ab2 | packages/service/src/app.ts | TypeScript | www.github.com/chewnoill/collaborative-editor/tree/main/packages/service/src/app.ts | https://raw.githubusercontent.com/chewnoill/collaborative-editor/7476ab2/packages/service/src/app.ts | chewnoill/collaborative-editor 7476ab2 packages/service/src/app.ts | true | 200 | 1,180 | import express from "express";
import passport from "./passport";
import bodyParser from "body-parser";
import { gqlMiddleware } from "./db";
import Session from "./session";
import path from "path";
import logger, { loggerMiddleware } from "./logger";
import { redirectForDownload } from "./resolvers/data-uploads";
co... | 6 |
ktphuc1994/learning-angular | 3ec4734 | src/app/guards/room.guard.ts | TypeScript | www.github.com/ktphuc1994/learning-angular/tree/main/src/app/guards/room.guard.ts | https://raw.githubusercontent.com/ktphuc1994/learning-angular/3ec4734/src/app/guards/room.guard.ts | ktphuc1994/learning-angular 3ec4734 src/app/guards/room.guard.ts | true | 200 | 413 | import { inject } from '@angular/core';
import { CanActivateChildFn, Router } from '@angular/router';
// import local services
import { LoginService } from '../login/login.service';
export const roomGuard: CanActivateChildFn = (childRoute, state) => {
const loginService = inject(LoginService);
const router = inje... | 7 |
yyd106/web-open-graph | 9edbf26 | config/site.ts | TypeScript | www.github.com/yyd106/web-open-graph/tree/main/config/site.ts | https://raw.githubusercontent.com/yyd106/web-open-graph/9edbf26/config/site.ts | yyd106/web-open-graph 9edbf26 config/site.ts | true | 200 | 1,302 | // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Site
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
interface SiteConfig {
name: string;
title: string;
emoji: string;
description: string;
localeDefault: string;
links: {
docs: string;
... | 3 |
gabrielstark-uk/S.H.I.E.L.D. | c80ab9e | client/src/hooks/use-rf-detector.ts | TypeScript | www.github.com/gabrielstark-uk/S.H.I.E.L.D./tree/main/client/src/hooks/use-rf-detector.ts | https://raw.githubusercontent.com/gabrielstark-uk/S.H.I.E.L.D./c80ab9e/client/src/hooks/use-rf-detector.ts | gabrielstark-uk/S.H.I.E.L.D. c80ab9e client/src/hooks/use-rf-detector.ts | true | 200 | 1,927 | import { useState, useEffect } from 'react';
interface RFDetectionResult {
isScanning: boolean;
signalStrength: number | null;
startScanning: () => Promise<void>;
stopScanning: () => void;
}
export function useRFDetector(): RFDetectionResult {
const [isScanning, setIsScanning] = useState(false);
const [si... | 0 |
MarcinStudniarz/TWWAI | b7f20e2 | lab2/zad3.ts | TypeScript | www.github.com/MarcinStudniarz/TWWAI/tree/main/lab2/zad3.ts | https://raw.githubusercontent.com/MarcinStudniarz/TWWAI/b7f20e2/lab2/zad3.ts | MarcinStudniarz/TWWAI b7f20e2 lab2/zad3.ts | true | 200 | 281 | function mergeArrays<T>(arr1: T[], arr2: T[]): T[] {
return arr1.concat(arr2);
}
const array1: number[] = [1, 2, 3];
const array2: number[] = [4, 5, 6];
const mergedArray: number[] = mergeArrays(array1, array2);
console.log("Połączone tablice:", mergedArray);
| 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.