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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
minhthuong031103/mobile-social-backend | ea4eb4e | src/controller/user/getNotifications.ts | TypeScript | www.github.com/minhthuong031103/mobile-social-backend/tree/main/src/controller/user/getNotifications.ts | https://raw.githubusercontent.com/minhthuong031103/mobile-social-backend/ea4eb4e/src/controller/user/getNotifications.ts | minhthuong031103/mobile-social-backend ea4eb4e src/controller/user/getNotifications.ts | true | 200 | 791 | import { NextFunction } from "express";
import { Request, Response } from "express";
import prisma from "../../lib/prisma/init";
export const getNotifications = async (
req: any,
res: Response,
next: NextFunction
) => {
try {
console.log(req.user.id, "hjhj");
const notifications = await prisma.notificat... | 1 |
amigayatri/react-resume-webpage | 15997b8 | src/components/stats/Git/RecentCommits/components/Commit/Commit.styled.ts | TypeScript | www.github.com/amigayatri/react-resume-webpage/tree/main/src/components/stats/Git/RecentCommits/components/Commit/Commit.styled.ts | https://raw.githubusercontent.com/amigayatri/react-resume-webpage/15997b8/src/components/stats/Git/RecentCommits/components/Commit/Commit.styled.ts | amigayatri/react-resume-webpage 15997b8 src/components/stats/Git/RecentCommits/components/Commit/Commit.styled.ts | true | 200 | 1,096 | "use client"
import styled from "styled-components"
export const CommitWrapper = styled.li`
display: flex;
padding: 0 16px;
padding-right: 0;
width: 100%;
`
export const CommitItem = styled.div`
display: flex;
position: relative;
border: 2px solid transparent;
padding: 16px;
padding-right: 8px;
width: 100%;... | 6 |
harshith1851/headhoneproductpage | 5a78750 | src/app/home/home.component.ts | TypeScript | www.github.com/harshith1851/headhoneproductpage/tree/main/src/app/home/home.component.ts | https://raw.githubusercontent.com/harshith1851/headhoneproductpage/5a78750/src/app/home/home.component.ts | harshith1851/headhoneproductpage 5a78750 src/app/home/home.component.ts | true | 200 | 521 | import { Component, OnInit,AfterViewInit } from '@angular/core';
import { gsap , Power2 } from 'gsap';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit,AfterViewInit {
ngOnInit() {
}
ngAfterViewInit(... | 5 |
Shocopop/react-pixi-desktop | ee9d19e | src/styled/GlobalStyles.ts | TypeScript | www.github.com/Shocopop/react-pixi-desktop/tree/main/src/styled/GlobalStyles.ts | https://raw.githubusercontent.com/Shocopop/react-pixi-desktop/ee9d19e/src/styled/GlobalStyles.ts | Shocopop/react-pixi-desktop ee9d19e src/styled/GlobalStyles.ts | true | 200 | 2,237 | import { createGlobalStyle } from 'styled-components';
export const GlobalTableStyles = createGlobalStyle`
body {
overflow: hidden;
font-family: "San Francisco";
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.align-left {
text-align: left;
}
hr {... | 2 |
isaac844966/school-pro | 693b7c0 | actions/subjects.ts | TypeScript | www.github.com/isaac844966/school-pro/tree/main/actions/subjects.ts | https://raw.githubusercontent.com/isaac844966/school-pro/693b7c0/actions/subjects.ts | isaac844966/school-pro 693b7c0 actions/subjects.ts | true | 200 | 1,714 | "use server";
import { CreateSubjectData, Subject, SubjectList } from "@/app/types/types";
import { axiosInstance } from ".";
import axios from "axios";
import { revalidatePath } from "next/cache";
export async function createSubject(
data: CreateSubjectData
): Promise<Subject | null> {
try {
const response =... | 7 |
SellerSpot/point-of-sale-app | 72671a4 | src/requests/category.ts | TypeScript | www.github.com/SellerSpot/point-of-sale-app/tree/main/src/requests/category.ts | https://raw.githubusercontent.com/SellerSpot/point-of-sale-app/72671a4/src/requests/category.ts | SellerSpot/point-of-sale-app 72671a4 src/requests/category.ts | true | 200 | 1,996 | import { IAddCategoryFormSchema } from 'pages/Inventory/components/AddCategory/addCategory.types';
import { apiService } from 'services';
import { pointOfSaleTypes } from '@sellerspot/universal-types';
/**
* Fetches all categories from the database
*/
export const getAllCategories = async (): Promise<
pointOfSal... | 1 |
Bharani77/test-restack | 08c693d | community/gotohuman/src/functions/utils/client.ts | TypeScript | www.github.com/Bharani77/test-restack/tree/main/community/gotohuman/src/functions/utils/client.ts | https://raw.githubusercontent.com/Bharani77/test-restack/08c693d/community/gotohuman/src/functions/utils/client.ts | Bharani77/test-restack 08c693d community/gotohuman/src/functions/utils/client.ts | true | 200 | 380 | import { GotoHuman } from "gotohuman";
let instance: GotoHuman | null = null;
export const gotoHumanClient = ({
apiKey = process.env.GOTOHUMAN_API_KEY,
}: {
apiKey?: string;
} = {}): GotoHuman => {
if (!apiKey) {
throw new Error("API key is required to create gotoHuman client.");
}
if (!instance) {
... | 6 |
sieusaya149/ChatProject | a917970 | backend/lib/logger/index.ts | TypeScript | www.github.com/sieusaya149/ChatProject/tree/main/backend/lib/logger/index.ts | https://raw.githubusercontent.com/sieusaya149/ChatProject/a917970/backend/lib/logger/index.ts | sieusaya149/ChatProject a917970 backend/lib/logger/index.ts | true | 200 | 1,860 | import {createLogger, transports, format} from 'winston';
import fs from 'fs';
import path from 'path';
import DailyRotateFile from 'winston-daily-rotate-file';
// import {environment, logDirectory} from '../../config';
const logDirectory = '../../../logs'
const environment = 'development'
let dir = logDirectory;
// cr... | 4 |
YusufLisawi/Internship | 64a9075 | source-code/management-fe/src/app/models/internship.model.ts | TypeScript | www.github.com/YusufLisawi/Internship/tree/main/source-code/management-fe/src/app/models/internship.model.ts | https://raw.githubusercontent.com/YusufLisawi/Internship/64a9075/source-code/management-fe/src/app/models/internship.model.ts | YusufLisawi/Internship 64a9075 source-code/management-fe/src/app/models/internship.model.ts | true | 200 | 665 | import { Candidate } from "./Candidate.model";
import { Session } from "./Session.model";
import { EInternshipType } from "./InternshipType.enum";
export class Internship {
internshipId?: number;
constructor(
public subject:string,
public startDate:Date,
public endDate:Date,
p... | 0 |
Studio-Yandex-Practicum/maxboom_frontend | 71d0a7c | src/entities/CartEntity/model/services/putRemoveProduct.ts | TypeScript | www.github.com/Studio-Yandex-Practicum/maxboom_frontend/tree/main/src/entities/CartEntity/model/services/putRemoveProduct.ts | https://raw.githubusercontent.com/Studio-Yandex-Practicum/maxboom_frontend/71d0a7c/src/entities/CartEntity/model/services/putRemoveProduct.ts | Studio-Yandex-Practicum/maxboom_frontend 71d0a7c src/entities/CartEntity/model/services/putRemoveProduct.ts | true | 200 | 808 | import { createAsyncThunk } from '@reduxjs/toolkit'
import { ThunkConfig } from '@/app/providers/StoreProvider/config/StateSchema'
import { apiErrorIdentify } from '@/shared/api/apiErrorIdentify'
import { ApiError, ApiErrorTypes, ApiRoutes } from '@/shared/api/types'
import { getCart } from './getCart'
export const ... | 5 |
sparkmahadi/pharmasuite-client | e6ab555 | types/product.ts | TypeScript | www.github.com/sparkmahadi/pharmasuite-client/tree/main/types/product.ts | https://raw.githubusercontent.com/sparkmahadi/pharmasuite-client/e6ab555/types/product.ts | sparkmahadi/pharmasuite-client e6ab555 types/product.ts | true | 200 | 1,741 | export interface Category {
_id: string;
title: string;
cat_name: string;
cat_id: number;
href: string;
imgSrc: string;
imgAlt: string;
}
export interface ShopByCategoryProps {
categories: Category[];
}
export interface Image {
img: string;
}
export interface Inventory {
... | 2 |
FFixit/planning-poker | 5ea2bdb | backend/src/game/lib/game-lib.spec.ts | TypeScript | www.github.com/FFixit/planning-poker/tree/main/backend/src/game/lib/game-lib.spec.ts | https://raw.githubusercontent.com/FFixit/planning-poker/5ea2bdb/backend/src/game/lib/game-lib.spec.ts | FFixit/planning-poker 5ea2bdb backend/src/game/lib/game-lib.spec.ts | true | 200 | 459 | import { Test, TestingModule } from '@nestjs/testing';
import { GameLib } from './game-lib';
describe('GameMangerLib', () => {
let provider: GameLib;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [GameLib],
}).compile();
... | 3 |
synmetrix/synmetrix | f9e0053 | cli/test/commands/compose/logs.test.ts | TypeScript | www.github.com/synmetrix/synmetrix/tree/main/cli/test/commands/compose/logs.test.ts | https://raw.githubusercontent.com/synmetrix/synmetrix/f9e0053/cli/test/commands/compose/logs.test.ts | synmetrix/synmetrix f9e0053 cli/test/commands/compose/logs.test.ts | true | 200 | 723 | import { expect, test } from "@oclif/test";
import { sleep } from "zx";
describe("compose:logs", async () => {
test
.command(["compose:up"])
.stderr()
.it(
"runs compose:logs with a container name argument",
async (ctx, done) => {
ctx.config.runCommand("compose:logs", ["actions"]);
... | 7 |
ron1979/class-gil | e1fb038 | day3-f/src/app/services/student.service.ts | TypeScript | www.github.com/ron1979/class-gil/tree/main/day3-f/src/app/services/student.service.ts | https://raw.githubusercontent.com/ron1979/class-gil/e1fb038/day3-f/src/app/services/student.service.ts | ron1979/class-gil e1fb038 day3-f/src/app/services/student.service.ts | true | 200 | 686 | import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class StudentService {
students=[ {id:1,name:"avi",grade:100},
{id:2,name:"beni",grade:90},
{id:3,name:"charlie",grade:80},
{id:4,name:"dani",grade:70},
{id:5,name:"eli",grade:60},
{id:6,name:"gabi",grade:50},
{id:7,name:"haim",g... | 6 |
sahasawatE/hokui | 587177b | src/components/Table/style.ts | TypeScript | www.github.com/sahasawatE/hokui/tree/main/src/components/Table/style.ts | https://raw.githubusercontent.com/sahasawatE/hokui/587177b/src/components/Table/style.ts | sahasawatE/hokui 587177b src/components/Table/style.ts | true | 200 | 3,664 | import { tv } from "tailwind-variants";
import { focusRing } from "../utils";
export const TableStyle = tv({
base: "min-w-[550px] overflow-auto scroll-pt-[2.281rem] relative",
variants: {
variant: {
bordered: "bg-transparent drop-shadow-none",
flat: "border-0 bg-white drop-shadow-none",
float... | 4 |
baizhi958216/Design-Patterns-With-Typescript | 33eea4b | src/StructuralPatterns/CompositePattern/CompositePatternClient.ts | TypeScript | www.github.com/baizhi958216/Design-Patterns-With-Typescript/tree/main/src/StructuralPatterns/CompositePattern/CompositePatternClient.ts | https://raw.githubusercontent.com/baizhi958216/Design-Patterns-With-Typescript/33eea4b/src/StructuralPatterns/CompositePattern/CompositePatternClient.ts | baizhi958216/Design-Patterns-With-Typescript 33eea4b src/StructuralPatterns/CompositePattern/CompositePatternClient.ts | true | 200 | 930 | import { Folder } from "./Folder";
import { ImageFile } from "./ImageFile";
import { TextFile } from "./TextFile";
import { VideoFile } from "./VideoFile";
export const CompositePatternClient = () => {
const file1 = new ImageFile("小龙女.jpg"),
file2 = new ImageFile("张无忌.jpg"),
file3 = new TextFile("九阴真经.txt"),... | 5 |
eldarikhachidze/task-manager | 5e24100 | src/app/core/services/cookies.service.ts | TypeScript | www.github.com/eldarikhachidze/task-manager/tree/main/src/app/core/services/cookies.service.ts | https://raw.githubusercontent.com/eldarikhachidze/task-manager/5e24100/src/app/core/services/cookies.service.ts | eldarikhachidze/task-manager 5e24100 src/app/core/services/cookies.service.ts | true | 200 | 882 | import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class CookieStorageService {
constructor() { }
setCookie(name:string, value: string, days: number){
let expires = "";
if (days) {
let date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 6... | 0 |
MatricalDefunkt/TS_using_djs | 9e9cd47 | src/CommandsSlash/logs.ts | TypeScript | www.github.com/MatricalDefunkt/TS_using_djs/tree/main/src/CommandsSlash/logs.ts | https://raw.githubusercontent.com/MatricalDefunkt/TS_using_djs/9e9cd47/src/CommandsSlash/logs.ts | MatricalDefunkt/TS_using_djs 9e9cd47 src/CommandsSlash/logs.ts | true | 200 | 3,633 | /** @format */
import { SlashCommandBuilder } from "@discordjs/builders";
import { RESTPostAPIApplicationCommandsJSONBody } from "discord-api-types/v10";
import {
MessageEmbed,
Client,
CommandInteraction,
Collection,
} from "discord.js";
import {
PrefixClient,
SubCommandParent,
SubCommand,
BasicCommandTypes,
}... | 2 |
TreszkaiT/jbead3_A | 70dac67 | src/app/module/domain/messageapp/admin/page/edit/messageapp-edit-page.component.ts | TypeScript | www.github.com/TreszkaiT/jbead3_A/tree/main/src/app/module/domain/messageapp/admin/page/edit/messageapp-edit-page.component.ts | https://raw.githubusercontent.com/TreszkaiT/jbead3_A/70dac67/src/app/module/domain/messageapp/admin/page/edit/messageapp-edit-page.component.ts | TreszkaiT/jbead3_A 70dac67 src/app/module/domain/messageapp/admin/page/edit/messageapp-edit-page.component.ts | true | 200 | 636 | import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-messageapp-edit-page',
templateUrl: './messageapp-edit-page.component.html',
styleUrls: ['./messagea... | 1 |
Tesser3kt/polobezka | 6acff5b | services/frontend/src/stores/classes.ts | TypeScript | www.github.com/Tesser3kt/polobezka/tree/main/services/frontend/src/stores/classes.ts | https://raw.githubusercontent.com/Tesser3kt/polobezka/6acff5b/services/frontend/src/stores/classes.ts | Tesser3kt/polobezka 6acff5b services/frontend/src/stores/classes.ts | true | 200 | 870 | import axios from "axios";
import { defineStore } from "pinia";
import type { ClassInfo } from "@/types";
export const useClassesStore = defineStore("classes", {
state: () => ({
classes: [] as ClassInfo[],
}),
getters: {
getClassById: (state) => (id: number | null) => {
return state.classes.find((c... | 7 |
Husdady/emys-client | d8b3aa9 | src/modules/Product/components/ProductItem/ProductInformation/useProductInformation.ts | TypeScript | www.github.com/Husdady/emys-client/tree/main/src/modules/Product/components/ProductItem/ProductInformation/useProductInformation.ts | https://raw.githubusercontent.com/Husdady/emys-client/d8b3aa9/src/modules/Product/components/ProductItem/ProductInformation/useProductInformation.ts | Husdady/emys-client d8b3aa9 src/modules/Product/components/ProductItem/ProductInformation/useProductInformation.ts | true | 200 | 1,588 | // Librarys
import { useRef, useState, useCallback } from 'react'
// Hooks
import useAuth from '@modules/Auth/states/auth/useAuth'
// Interfaces
import { Product } from '@modules/Product/api/interfaces'
import { Message } from '@modules/Products/components/Product/ContactSeller/interfaces'
// Constants
import { PUBL... | 6 |
sheniff/catan-web-codesandbox | 3cba6ff | src/engine/tile.ts | TypeScript | www.github.com/sheniff/catan-web-codesandbox/tree/main/src/engine/tile.ts | https://raw.githubusercontent.com/sheniff/catan-web-codesandbox/3cba6ff/src/engine/tile.ts | sheniff/catan-web-codesandbox 3cba6ff src/engine/tile.ts | true | 200 | 1,809 | import { Corner } from './corner';
import { Edge } from './edge';
import { Resource } from './types';
export enum TileType {
TILE = 1,
OFFSET
}
export abstract class BaseTile {
/*
Note to self: Each tile will store
- 2 corners (N, S)
- 3 edges (NE, NW, W)
The corners and edges that fall outside... | 3 |
idtambiev/Graph | 56d3516 | src/app/core/services/api/graph.service.ts | TypeScript | www.github.com/idtambiev/Graph/tree/main/src/app/core/services/api/graph.service.ts | https://raw.githubusercontent.com/idtambiev/Graph/56d3516/src/app/core/services/api/graph.service.ts | idtambiev/Graph 56d3516 src/app/core/services/api/graph.service.ts | true | 200 | 1,154 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { GraphItemDto } from '@interfaces/DTOs/graph-item.dto';
import { SaveGraphDTO } from '@interfaces/DTOs/save-graph.dto';
import { ListResult } from '@interfaces/models/list-result.model';
import { map, Observable } fro... | 0 |
streamich/json-joy | 901c4b2 | src/json-patch/applyPatch/v1.ts | TypeScript | www.github.com/streamich/json-joy/tree/main/src/json-patch/applyPatch/v1.ts | https://raw.githubusercontent.com/streamich/json-joy/901c4b2/src/json-patch/applyPatch/v1.ts | streamich/json-joy 901c4b2 src/json-patch/applyPatch/v1.ts | true | 200 | 940 | import {clone as deepClone} from '@jsonjoy.com/util/lib/json-clone/clone';
import type {Operation} from '../types';
import type {Op} from '../op';
import {decode} from '../codec/json';
import type {ApplyPatchOptions, OpResult, PatchResult} from './types';
export function applyOp(doc: unknown, op: Op, mutate: boolean):... | 4 |
softnetics/linear-changeset-action | d3983f5 | src/release.ts | TypeScript | www.github.com/softnetics/linear-changeset-action/tree/main/src/release.ts | https://raw.githubusercontent.com/softnetics/linear-changeset-action/d3983f5/src/release.ts | softnetics/linear-changeset-action d3983f5 src/release.ts | true | 200 | 4,414 | import { Octokit } from 'octokit'
import * as core from '@actions/core'
import {
LinearChangesetSdk,
LinearChangesetSdkReleaseIssuesBody
} from './sdk/linear-changeset'
import PromisePool from '@supercharge/promise-pool'
import { parseRelease } from './release-parser'
import * as R from 'remeda'
interface ReleaseT... | 5 |
raph901/test_docker_google | 0ca99f8 | app/src/services/scientifics/GetScientifics.ts | TypeScript | www.github.com/raph901/test_docker_google/tree/main/app/src/services/scientifics/GetScientifics.ts | https://raw.githubusercontent.com/raph901/test_docker_google/0ca99f8/app/src/services/scientifics/GetScientifics.ts | raph901/test_docker_google 0ca99f8 app/src/services/scientifics/GetScientifics.ts | true | 200 | 1,874 | import {gql, useQuery} from '@apollo/client'
import appoloClient from '@/lib/AppoloClient/AppoloClient';
type Scientific = {
profilUrl: string,
alt: string,
name: string,
lastName: string,
role: string,
title: string,
description: string,
img1: string,
img2: string,
}
type Data = {
posts: {
nodes: [{
t... | 2 |
fmalakis/deus-ex-rental | 067e1e3 | src/app/guards/admin/admin.guard.ts | TypeScript | www.github.com/fmalakis/deus-ex-rental/tree/main/src/app/guards/admin/admin.guard.ts | https://raw.githubusercontent.com/fmalakis/deus-ex-rental/067e1e3/src/app/guards/admin/admin.guard.ts | fmalakis/deus-ex-rental 067e1e3 src/app/guards/admin/admin.guard.ts | true | 200 | 502 | import { inject } from '@angular/core';
import { CanActivateFn, Router } from '@angular/router';
export const adminGuard: CanActivateFn = (route, state) => {
const router = inject(Router)
const username = localStorage.getItem('username') ?? sessionStorage.getItem('username');
if (!username) {
ro... | 1 |
zrg-team/NoLLMChat | b236e8d | src/utils/flow.ts | TypeScript | www.github.com/zrg-team/NoLLMChat/tree/main/src/utils/flow.ts | https://raw.githubusercontent.com/zrg-team/NoLLMChat/b236e8d/src/utils/flow.ts | zrg-team/NoLLMChat b236e8d src/utils/flow.ts | true | 200 | 3,124 | import { Connection, Node, Edge, EdgeChange, NodeChange } from '@xyflow/react'
import deepmerge from 'deepmerge'
import isUndefined from 'lodash/isUndefined'
import omitBy from 'lodash/omitBy'
import { EntityArrayTypes, EntityTypesMap, FlowEdge, FlowNode } from 'src/services/database/types'
export const flowNodeToNode... | 7 |
delacruaa/invoice-app-angular | 167b51f | src/app/components/invoice-item/invoice-item.component.spec.ts | TypeScript | www.github.com/delacruaa/invoice-app-angular/tree/main/src/app/components/invoice-item/invoice-item.component.spec.ts | https://raw.githubusercontent.com/delacruaa/invoice-app-angular/167b51f/src/app/components/invoice-item/invoice-item.component.spec.ts | delacruaa/invoice-app-angular 167b51f src/app/components/invoice-item/invoice-item.component.spec.ts | true | 200 | 595 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { InvoiceItemComponent } from './invoice-item.component';
describe('InvoiceItemComponent', () => {
let component: InvoiceItemComponent;
let fixture: ComponentFixture<InvoiceItemComponent>;
beforeEach(() => {
TestBed.configureTestingM... | 6 |
luciarinconpozo/appContacts | 4348422 | src/app/shared/guards/login.guard.ts | TypeScript | www.github.com/luciarinconpozo/appContacts/tree/main/src/app/shared/guards/login.guard.ts | https://raw.githubusercontent.com/luciarinconpozo/appContacts/4348422/src/app/shared/guards/login.guard.ts | luciarinconpozo/appContacts 4348422 src/app/shared/guards/login.guard.ts | true | 200 | 680 | import { CanMatchFn, Router } from '@angular/router';
import { AuthService } from '../../auth/services/auth.service';
import { inject } from '@angular/core';
import { tap } from 'rxjs';
export const loginGuard: CanMatchFn = (route, segments) => {
console.log('Guardián')
const authService: AuthService = inject(Auth... | 4 |
Imiss-U1025/BotPress | f433ab6 | integrations/groq/src/index.ts | TypeScript | www.github.com/Imiss-U1025/BotPress/tree/main/integrations/groq/src/index.ts | https://raw.githubusercontent.com/Imiss-U1025/BotPress/f433ab6/integrations/groq/src/index.ts | Imiss-U1025/BotPress f433ab6 integrations/groq/src/index.ts | true | 200 | 2,004 | import { llm } from '@botpress/common'
import OpenAI from 'openai'
import { ModelId } from './schemas'
import * as bp from '.botpress'
import { interfaces } from '@botpress/sdk'
const groqClient = new OpenAI({
baseURL: 'https://api.groq.com/openai/v1',
apiKey: bp.secrets.GROQ_API_KEY,
})
const models: Record<Mode... | 5 |
sublymus/threesjs_maraton2 | 2685154 | public/src/World/Catalogue/Catalogue.ts | TypeScript | www.github.com/sublymus/threesjs_maraton2/tree/main/public/src/World/Catalogue/Catalogue.ts | https://raw.githubusercontent.com/sublymus/threesjs_maraton2/2685154/public/src/World/Catalogue/Catalogue.ts | sublymus/threesjs_maraton2 2685154 public/src/World/Catalogue/Catalogue.ts | true | 200 | 6,646 | //@ts-nocheck
import * as THREE from "three";
import { AbstractLocalLoader, AbstractWorld, Dependencies, WorldManager } from "../WorldManager";
import { RGBELoader } from "three/examples/jsm/loaders/RGBELoader.js";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import { Feature } from "..... | 3 |
shakthi56/Fullstack | 25c2905 | src/app/feedback/feedback.component.ts | TypeScript | www.github.com/shakthi56/Fullstack/tree/main/src/app/feedback/feedback.component.ts | https://raw.githubusercontent.com/shakthi56/Fullstack/25c2905/src/app/feedback/feedback.component.ts | shakthi56/Fullstack 25c2905 src/app/feedback/feedback.component.ts | true | 200 | 446 | import { Component } from '@angular/core';
@Component({
selector: 'app-feedback',
templateUrl: './feedback.component.html',
styleUrls: ['./feedback.component.css']
})
export class FeedbackComponent {
conFirmsubmit(){
const textarea =<HTMLTextAreaElement>document.getElementById('txtarea');
var status=... | 0 |
AbhishekPR2021/MediAid-mobile | 892eacd | src/app/doctor/doctor.component.ts | TypeScript | www.github.com/AbhishekPR2021/MediAid-mobile/tree/main/src/app/doctor/doctor.component.ts | https://raw.githubusercontent.com/AbhishekPR2021/MediAid-mobile/892eacd/src/app/doctor/doctor.component.ts | AbhishekPR2021/MediAid-mobile 892eacd src/app/doctor/doctor.component.ts | true | 200 | 379 | import { Location } from '@angular/common';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-doctor',
templateUrl: './doctor.component.html',
styleUrls: ['./doctor.component.scss'],
})
export class DoctorComponent implements OnInit {
constructor(private location:Location) { }
... | 1 |
alnikif/TrainTrack | caea95f | pages/training-sessions/getTrainingDataChartOptions.ts | TypeScript | www.github.com/alnikif/TrainTrack/tree/main/pages/training-sessions/getTrainingDataChartOptions.ts | https://raw.githubusercontent.com/alnikif/TrainTrack/caea95f/pages/training-sessions/getTrainingDataChartOptions.ts | alnikif/TrainTrack caea95f pages/training-sessions/getTrainingDataChartOptions.ts | true | 200 | 2,369 | import Highcharts from 'highcharts'
import { ChartTypes } from '../../constants/chartTypes'
import { ExerciseResult } from '../../types/chartData'
import getFormattedDate from '../../utils/getFormattedDate'
const TITLE = 'Training Chart'
const Y_TITLE = 'Training'
interface TrainingChartOptionsParams {
chartType: ... | 7 |
psperneac/trains | 4311630 | web/src/app/components/custom-map/custom-map.component.ts | TypeScript | www.github.com/psperneac/trains/tree/main/web/src/app/components/custom-map/custom-map.component.ts | https://raw.githubusercontent.com/psperneac/trains/4311630/web/src/app/components/custom-map/custom-map.component.ts | psperneac/trains 4311630 web/src/app/components/custom-map/custom-map.component.ts | true | 200 | 5,552 | /// <reference types='leaflet-loading' />
/// <reference types='leaflet.locatecontrol' />
/// <reference types='@runette/leaflet-fullscreen' />
import 'leaflet';
import { Component, Input, OnDestroy, OnInit, Output, EventEmitter, ElementRef } from '@angular/core';
import {
Control,
DomUtil,
latLng,
Layer,
Lea... | 2 |
eminel9311/node-ecommerce-api | 170e684 | src/helpers/check.connect.ts | TypeScript | www.github.com/eminel9311/node-ecommerce-api/tree/main/src/helpers/check.connect.ts | https://raw.githubusercontent.com/eminel9311/node-ecommerce-api/170e684/src/helpers/check.connect.ts | eminel9311/node-ecommerce-api 170e684 src/helpers/check.connect.ts | true | 200 | 1,111 | import mongoose from 'mongoose';
import os from 'os';
import process from 'process';
const _SECONDS = 5000;
// count connect
const countConnect = () => {
const numConnection = mongoose.connections.length;
console.log(`Number of connection:: ${numConnection}`);
return numConnection;
};
// check over ... | 6 |
NolanAmblard/moonbirds-subgraph | 68fcd31 | src/moonbirds.ts | TypeScript | www.github.com/NolanAmblard/moonbirds-subgraph/tree/main/src/moonbirds.ts | https://raw.githubusercontent.com/NolanAmblard/moonbirds-subgraph/68fcd31/src/moonbirds.ts | NolanAmblard/moonbirds-subgraph 68fcd31 src/moonbirds.ts | true | 200 | 7,173 | import {
Approval as ApprovalEvent,
ApprovalForAll as ApprovalForAllEvent,
Expelled as ExpelledEvent,
Nested as NestedEvent,
OwnershipTransferred as OwnershipTransferredEvent,
Paused as PausedEvent,
Refund as RefundEvent,
Revenue as RevenueEvent,
RoleAdminChanged as RoleAdminChangedEvent,
RoleGrante... | 4 |
borathiago/node-api-solid | 2ae92d8 | src/repositories/in-memory/in-memory-users-repository.ts | TypeScript | www.github.com/borathiago/node-api-solid/tree/main/src/repositories/in-memory/in-memory-users-repository.ts | https://raw.githubusercontent.com/borathiago/node-api-solid/2ae92d8/src/repositories/in-memory/in-memory-users-repository.ts | borathiago/node-api-solid 2ae92d8 src/repositories/in-memory/in-memory-users-repository.ts | true | 200 | 919 | import { Prisma, User } from '@prisma/client'
import { UsersRepository } from '../users-repository'
import { randomUUID } from 'node:crypto'
export class InMemoryUsersRepository implements UsersRepository {
public items: User[] = []
async findById(id: string) {
const user = this.items.find((item) => it... | 3 |
kawana77b/wasm-image-resizer | d5dbae2 | src/feature/image/schema/ImageSchema.ts | TypeScript | www.github.com/kawana77b/wasm-image-resizer/tree/main/src/feature/image/schema/ImageSchema.ts | https://raw.githubusercontent.com/kawana77b/wasm-image-resizer/d5dbae2/src/feature/image/schema/ImageSchema.ts | kawana77b/wasm-image-resizer d5dbae2 src/feature/image/schema/ImageSchema.ts | true | 200 | 827 | import { z } from "zod";
import { IMAGE_BYTES, IMAGE_FORMATS, IMAGE_SIZE } from "../constants";
export const ImageSchema = z.object({
width: z
.number()
.int()
.min(IMAGE_SIZE.min.width, "Width is too small")
.max(IMAGE_SIZE.max.width, "Width is too large"),
height: z
.number()
.int()
... | 0 |
Luan-kaike/Frogflix | 3820206 | src/app/shared/services/requireApiTMBD.ts | TypeScript | www.github.com/Luan-kaike/Frogflix/tree/main/src/app/shared/services/requireApiTMBD.ts | https://raw.githubusercontent.com/Luan-kaike/Frogflix/3820206/src/app/shared/services/requireApiTMBD.ts | Luan-kaike/Frogflix 3820206 src/app/shared/services/requireApiTMBD.ts | true | 200 | 3,244 | interface IObjConfig{
[key: string]: boolean;
}
interface IRequireApiTMBDProps{
(
media: 'tv' | 'movie' | 'search' | 'person' | 'genre',
resource: 'popular' | 'top_rated' | 'tv' | 'movie' | number,
imgSize: 'w92' | 'w154' | 'w185' | 'w342' | 'w500' | 'w780' | 'original',
objConfig?: IObjConfig,
... | 5 |
Abel-Git2103/heroes-app | c8bf8d7 | src/app/pages/heroe/heroe.component.spec.ts | TypeScript | www.github.com/Abel-Git2103/heroes-app/tree/main/src/app/pages/heroe/heroe.component.spec.ts | https://raw.githubusercontent.com/Abel-Git2103/heroes-app/c8bf8d7/src/app/pages/heroe/heroe.component.spec.ts | Abel-Git2103/heroes-app c8bf8d7 src/app/pages/heroe/heroe.component.spec.ts | true | 200 | 1,352 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { FormBuilder } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { ActivatedRoute, Router } from '@angular/router';
import { RouterTestingModule } f... | 1 |
ViniciusBenfica/backend-document-control | 8242361 | src/app/routes/enterprise/enterprise.route.function.ts | TypeScript | www.github.com/ViniciusBenfica/backend-document-control/tree/main/src/app/routes/enterprise/enterprise.route.function.ts | https://raw.githubusercontent.com/ViniciusBenfica/backend-document-control/8242361/src/app/routes/enterprise/enterprise.route.function.ts | ViniciusBenfica/backend-document-control 8242361 src/app/routes/enterprise/enterprise.route.function.ts | true | 200 | 2,270 | import type { Request, Response } from "express";
import { createEnterpriseUseCase } from "../../../useCase/enterprise/create/create.enterprise.usecase";
import { deleteEnterpriseUseCase } from "../../../useCase/enterprise/delete/delete.enterprise.usecase";
import { findEnterpriseUseCase } from "../../../useCase/enterp... | 7 |
kabildeveloper/GitWind | ea5243b | src/services/GitServices.ts | TypeScript | www.github.com/kabildeveloper/GitWind/tree/main/src/services/GitServices.ts | https://raw.githubusercontent.com/kabildeveloper/GitWind/ea5243b/src/services/GitServices.ts | kabildeveloper/GitWind ea5243b src/services/GitServices.ts | true | 200 | 5,029 | import { IGitServices } from './IGitServices';
import { GitError, simpleGit, SimpleGit, SimpleGitProgressEvent } from 'simple-git';
import { Account, cloneRepoRequest, createRepoRequest, returnStringResult } from '../types/types';
import fs from 'fs';
import { promisify } from 'util';
import { quote } from 'shell-quote... | 2 |
thomas-ayissi/wiz | 89ab6c9 | src/season/data/ide/angular/app/app.module.ts | TypeScript | www.github.com/thomas-ayissi/wiz/tree/main/src/season/data/ide/angular/app/app.module.ts | https://raw.githubusercontent.com/thomas-ayissi/wiz/89ab6c9/src/season/data/ide/angular/app/app.module.ts | thomas-ayissi/wiz 89ab6c9 src/season/data/ide/angular/app/app.module.ts | true | 200 | 1,313 | import { AppComponent } from './app.component';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, COMPOSITION_BUFFER_MODE } from '@angular/forms';
import { NuMonacoEditorModule } from '@ng-util/monaco-editor';
import { KeyboardShortcutsModule } f... | 6 |
AmarjitLeo/GraphQlTutorial | cdef735 | src/helper/server.ts | TypeScript | www.github.com/AmarjitLeo/GraphQlTutorial/tree/main/src/helper/server.ts | https://raw.githubusercontent.com/AmarjitLeo/GraphQlTutorial/cdef735/src/helper/server.ts | AmarjitLeo/GraphQlTutorial cdef735 src/helper/server.ts | true | 200 | 2,268 | import express, { Application, Request, Response } from 'express';
import http from 'http';
import dotenv from 'dotenv';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import compression from "compression";
import cors from 'cors';
import routes from "../routes/index";
import { ApolloSe... | 4 |
Blind41/task-management-system | df6de48 | src/application/factories/TaskFactory.test.ts | TypeScript | www.github.com/Blind41/task-management-system/tree/main/src/application/factories/TaskFactory.test.ts | https://raw.githubusercontent.com/Blind41/task-management-system/df6de48/src/application/factories/TaskFactory.test.ts | Blind41/task-management-system df6de48 src/application/factories/TaskFactory.test.ts | true | 200 | 493 | import { TaskFactory } from "./TaskFactory";
describe("Task Factory", () => {
it("should create a Task using TaskFactory", () => {
const task = TaskFactory.createNewTask(
"1",
"New Task",
"This is a new task",
"Andres"
);
expect(task.id).toBe("1");
expect(task.title).toBe("Ne... | 3 |
milan0827/e-bank | 05f3e8f | src/controller/auth/password.ts | TypeScript | www.github.com/milan0827/e-bank/tree/main/src/controller/auth/password.ts | https://raw.githubusercontent.com/milan0827/e-bank/05f3e8f/src/controller/auth/password.ts | milan0827/e-bank 05f3e8f src/controller/auth/password.ts | true | 200 | 544 | import bcrypt from 'bcrypt';
import Logger from '../../lib/logger';
export const hashedPassword = async (password: string): Promise<string> => {
const salt = await bcrypt.genSalt();
const passwordHashed = await bcrypt.hash(password, salt);
return passwordHashed;
};
export const verifyPassword = (passwordHashed... | 0 |
Boda335/Azkar-Bot | 87bb32f | good.db/src/Drivers/PostgreSQL.ts | TypeScript | www.github.com/Boda335/Azkar-Bot/tree/main/good.db/src/Drivers/PostgreSQL.ts | https://raw.githubusercontent.com/Boda335/Azkar-Bot/87bb32f/good.db/src/Drivers/PostgreSQL.ts | Boda335/Azkar-Bot 87bb32f good.db/src/Drivers/PostgreSQL.ts | true | 200 | 4,124 | import { Pool, PoolConfig } from 'pg';
import { DriversClassType } from '../Types';
export class PostgreSQLDriver implements DriversClassType {
private pool: Pool;
constructor(public readonly options: PoolConfig) {
this.pool = new Pool(options);
};
public async init(table: string): Promise<bo... | 5 |
ramah-madi/Online-Quiz-System | 76ba4ab | src/users/users.controller.ts | TypeScript | www.github.com/ramah-madi/Online-Quiz-System/tree/main/src/users/users.controller.ts | https://raw.githubusercontent.com/ramah-madi/Online-Quiz-System/76ba4ab/src/users/users.controller.ts | ramah-madi/Online-Quiz-System 76ba4ab src/users/users.controller.ts | true | 200 | 1,699 | import { Body, Controller, Delete, Get, Param, Patch, NotFoundException, UseGuards } from '@nestjs/common';
import { UsersService } from './users.service';
import { Serialize } from 'src/interceptors/serialize.interceptor';
import { UserDto } from 'src/users/dtos/user.dto';
import { UpdateUserDto } from './dtos/update-... | 7 |
richardhosler/nextjs-redis-puppeteer-screenshot-capture-tool | 595d2c4 | app/api/add-to-queue/route.ts | TypeScript | www.github.com/richardhosler/nextjs-redis-puppeteer-screenshot-capture-tool/tree/main/app/api/add-to-queue/route.ts | https://raw.githubusercontent.com/richardhosler/nextjs-redis-puppeteer-screenshot-capture-tool/595d2c4/app/api/add-to-queue/route.ts | richardhosler/nextjs-redis-puppeteer-screenshot-capture-tool 595d2c4 app/api/add-to-queue/route.ts | true | 200 | 1,140 | import { screenshot } from "@/lib/screenshot";
import JobProcessor from "@/lib/job-processor";
import { getRedisClient, RedisKeys } from "@/lib/redis";
let jobProcessor: JobProcessor | null = null;
export async function POST(req: Request): Promise<Response> {
try {
const redis = await getRedisClient();
cons... | 1 |
Cactus-0/music-selfbot | a484e1b | src/deps/ensure-ffmpeg.ts | TypeScript | www.github.com/Cactus-0/music-selfbot/tree/main/src/deps/ensure-ffmpeg.ts | https://raw.githubusercontent.com/Cactus-0/music-selfbot/a484e1b/src/deps/ensure-ffmpeg.ts | Cactus-0/music-selfbot a484e1b src/deps/ensure-ffmpeg.ts | true | 200 | 594 | import fs from 'fs';
import os from 'os';
import { Constants } from "../constants";
import { log } from 'logger';
import { createDownloader } from './create-downloader';
import { MultiBar } from 'cli-progress';
export async function ensureFfmpeg(multiBar: MultiBar): pvoid {
if (fs.existsSync(Constants.FFMPEG_PATH... | 2 |
Pavelgq/implementation-for-training | 04d4520 | promise-implementation/CustomePromise.ts | TypeScript | www.github.com/Pavelgq/implementation-for-training/tree/main/promise-implementation/CustomePromise.ts | https://raw.githubusercontent.com/Pavelgq/implementation-for-training/04d4520/promise-implementation/CustomePromise.ts | Pavelgq/implementation-for-training 04d4520 promise-implementation/CustomePromise.ts | true | 200 | 1,419 |
enum PromiseStatus {
pending = 'pending',
fulfilled = 'fulfilled',
reject = 'rejected'
}
export default class CustomePromise {
state: PromiseStatus = PromiseStatus.pending;
private promiseLine = [];
constructor(func) {
return func(this.resolve.bind(this), this.reject.bind(this))
}
private resol... | 4 |
Mimikkk/hearth-a | 0cd5f0b | packages/hearth/src/entities/geometries/BoxGeometry.ts | TypeScript | www.github.com/Mimikkk/hearth-a/tree/main/packages/hearth/src/entities/geometries/BoxGeometry.ts | https://raw.githubusercontent.com/Mimikkk/hearth-a/0cd5f0b/packages/hearth/src/entities/geometries/BoxGeometry.ts | Mimikkk/hearth-a 0cd5f0b packages/hearth/src/entities/geometries/BoxGeometry.ts | true | 200 | 4,090 | import { Geometry } from '../../core/Geometry.js';
import { Attribute } from '../../core/Attribute.js';
import { Vec3 } from '../../math/Vec3.js';
export class BoxGeometry extends Geometry {
constructor(parameters?: BoxGeometryParameters) {
super();
let { width, height, depth, widthSegments, heightSegments, ... | 0 |
drl-devyadav/customer-thegoodstore | 7039db5 | packages/home/frontend/frontastic/lib/server/get-route-data.ts | TypeScript | www.github.com/drl-devyadav/customer-thegoodstore/tree/main/packages/home/frontend/frontastic/lib/server/get-route-data.ts | https://raw.githubusercontent.com/drl-devyadav/customer-thegoodstore/7039db5/packages/home/frontend/frontastic/lib/server/get-route-data.ts | drl-devyadav/customer-thegoodstore 7039db5 packages/home/frontend/frontastic/lib/server/get-route-data.ts | true | 200 | 1,732 | import type { IncomingMessage, ServerResponse } from 'http';
import { Result } from '@commercetools/frontend-domain-types/product/Result';
import { serverSession } from '@commercetools/frontend-sdk';
import { AcceptedQueryTypes } from '@commercetools/frontend-sdk/lib/types/Query';
import { sdk } from 'sdk';
import { Pa... | 7 |
snoring-dev/daily-french-app | d5c3bc5 | src/service/auth.service.ts | TypeScript | www.github.com/snoring-dev/daily-french-app/tree/main/src/service/auth.service.ts | https://raw.githubusercontent.com/snoring-dev/daily-french-app/d5c3bc5/src/service/auth.service.ts | snoring-dev/daily-french-app d5c3bc5 src/service/auth.service.ts | true | 200 | 803 | import { LoginFormData } from "../components/login-form";
import api from "../utils/request";
import { getResources } from "../utils/text-resources";
import { removeJWT, removeUserData } from "../utils/auth";
export const doLogin = async (formData: LoginFormData) => {
const resp = await api.post("/auth/login", {
... | 3 |
iamaamins/truckoff-server | 918d8bf | src/scrapper/westarTruckCentre.ts | TypeScript | www.github.com/iamaamins/truckoff-server/tree/main/src/scrapper/westarTruckCentre.ts | https://raw.githubusercontent.com/iamaamins/truckoff-server/918d8bf/src/scrapper/westarTruckCentre.ts | iamaamins/truckoff-server 918d8bf src/scrapper/westarTruckCentre.ts | true | 200 | 5,876 | import puppeteer from "puppeteer";
import Truck from "../models/truck";
import { sendErrorEmail } from "../utils";
export default async function scrapWestarTruckCentre() {
try {
// Create browser
const browser = await puppeteer.launch({
args: ["--no-sandbox"],
defaultViewport: { width: 1024, heig... | 1 |
muayKenny/gis-bridge-explorer | 32dda95 | packages/database/src/seed.ts | TypeScript | www.github.com/muayKenny/gis-bridge-explorer/tree/main/packages/database/src/seed.ts | https://raw.githubusercontent.com/muayKenny/gis-bridge-explorer/32dda95/packages/database/src/seed.ts | muayKenny/gis-bridge-explorer 32dda95 packages/database/src/seed.ts | true | 200 | 6,069 | import { PrismaClient } from '@prisma/client';
import dotenv from 'dotenv';
import Papa from 'papaparse';
import * as fs from 'fs/promises';
import * as path from 'path';
dotenv.config({ path: path.resolve(__dirname, '../../../.env') });
const BRIDGE_DATA_PATH = path.join(__dirname, '../data/PA22.txt');
const prisma... | 6 |
electem/backend-techstack | a1fb99b | shashi/student-task/vuejs/src/services/AuthService.ts | TypeScript | www.github.com/electem/backend-techstack/tree/main/shashi/student-task/vuejs/src/services/AuthService.ts | https://raw.githubusercontent.com/electem/backend-techstack/a1fb99b/shashi/student-task/vuejs/src/services/AuthService.ts | electem/backend-techstack a1fb99b shashi/student-task/vuejs/src/services/AuthService.ts | true | 200 | 724 | /* eslint-disable prettier/prettier */
import axios from "axios";
const API_URL = "http://localhost:3000/auth/login";
class AuthService {
login(username: string, password: string) {
return axios
.post(API_URL, {
username,
password,
})
.then((response) => {
if (response.... | 2 |
ShagiraData/gh-repo-clone-es-js-esjs | 410f3d5 | packages/vite-plugin-esjs/src/index.ts | TypeScript | www.github.com/ShagiraData/gh-repo-clone-es-js-esjs/tree/main/packages/vite-plugin-esjs/src/index.ts | https://raw.githubusercontent.com/ShagiraData/gh-repo-clone-es-js-esjs/410f3d5/packages/vite-plugin-esjs/src/index.ts | ShagiraData/gh-repo-clone-es-js-esjs 410f3d5 packages/vite-plugin-esjs/src/index.ts | true | 200 | 510 | import { transpile } from '@es-js/core'
import { splitCodeImports } from '@es-js/core/utils'
import type { Plugin } from 'vite'
export default function EsJS(options = {}): Plugin {
return {
name: 'vite-plugin-esjs',
enforce: 'pre',
transform(raw: string, id: string) {
if (!/\.esjs$/.test(id))
... | 5 |
17kumarAman/ApiTesting | ec7dbce | dummyApi.test.ts | TypeScript | www.github.com/17kumarAman/ApiTesting/tree/main/dummyApi.test.ts | https://raw.githubusercontent.com/17kumarAman/ApiTesting/ec7dbce/dummyApi.test.ts | 17kumarAman/ApiTesting ec7dbce dummyApi.test.ts | true | 200 | 1,822 | import { expect, test, describe } from 'vitest';
import axios from 'axios';
let api = 'https://dummyjson.com/auth/';
const postUrl = `${api}login`;
const getUrl = `${api}me`
let data: any;
// Test with Username or Password using Post Method
describe('API post method tests from dummyjson', async () => {
let respon... | 4 |
natnael-shiferaw/alx-listing-app-04 | 471ace1 | interfaces/index.ts | TypeScript | www.github.com/natnael-shiferaw/alx-listing-app-04/tree/main/interfaces/index.ts | https://raw.githubusercontent.com/natnael-shiferaw/alx-listing-app-04/471ace1/interfaces/index.ts | natnael-shiferaw/alx-listing-app-04 471ace1 interfaces/index.ts | true | 200 | 392 | // interface for Property data
export interface PropertyProps {
name: string,
address: {
state: string,
city: string,
country: string,
},
rating: number,
category: string[],
price: number,
offers: {
bed: string,
shower: string,
oc... | 0 |
KevinGalindos/angular-crud | acc5c70 | src/app/components/posts/store/posts.selector.ts | TypeScript | www.github.com/KevinGalindos/angular-crud/tree/main/src/app/components/posts/store/posts.selector.ts | https://raw.githubusercontent.com/KevinGalindos/angular-crud/acc5c70/src/app/components/posts/store/posts.selector.ts | KevinGalindos/angular-crud acc5c70 src/app/components/posts/store/posts.selector.ts | true | 200 | 350 | import { createFeatureSelector, createSelector } from '@ngrx/store';
import { PostsState } from './posts.state';
import { postsFeatureName } from './posts.reducer';
export const postsRootSelector =
createFeatureSelector<PostsState>(postsFeatureName);
export const listPostsSelector = createSelector(
postsRootSelec... | 3 |
dnieto1997/portalapinest | 827d4c3 | src/type_user/type_user.service.ts | TypeScript | www.github.com/dnieto1997/portalapinest/tree/main/src/type_user/type_user.service.ts | https://raw.githubusercontent.com/dnieto1997/portalapinest/827d4c3/src/type_user/type_user.service.ts | dnieto1997/portalapinest 827d4c3 src/type_user/type_user.service.ts | true | 200 | 593 | import { Injectable } from '@nestjs/common';
import { CreateTypeUserDto } from './dto/create-type_user.dto';
import { UpdateTypeUserDto } from './dto/update-type_user.dto';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { TypeUser } from './entities/type_user.entity';
... | 6 |
OlegNau/Coursenta | 870a207 | src/app/pages/course-page/course-page.component.ts | TypeScript | www.github.com/OlegNau/Coursenta/tree/main/src/app/pages/course-page/course-page.component.ts | https://raw.githubusercontent.com/OlegNau/Coursenta/870a207/src/app/pages/course-page/course-page.component.ts | OlegNau/Coursenta 870a207 src/app/pages/course-page/course-page.component.ts | true | 200 | 1,129 | import {ChangeDetectionStrategy, Component, OnInit} from "@angular/core";
import {Store} from "@ngrx/store";
import {ActivatedRoute} from "@angular/router";
import {coursesActions} from "../../stores/courses.actions";
import {Course} from "../../interfaces/courses.interface";
import {coursesSelectors} from "../../store... | 1 |
dao-vs-dao/contracts | 957d216 | test/dao-vs-dao.test.ts | TypeScript | www.github.com/dao-vs-dao/contracts/tree/main/test/dao-vs-dao.test.ts | https://raw.githubusercontent.com/dao-vs-dao/contracts/957d216/test/dao-vs-dao.test.ts | dao-vs-dao/contracts 957d216 test/dao-vs-dao.test.ts | true | 200 | 41,642 | import { expect } from "chai";
import { ethers, upgrades } from "hardhat";
import itParam from "mocha-param";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { BigNumber, Contract } from "ethers";
import { parseEther } from "ethers/lib/utils";
const zeroAddress = "0x0000000000000000000000... | 5 |
victorvictoria-maker/capstone-project | cfd8663 | src/serveractions/admin.ts | TypeScript | www.github.com/victorvictoria-maker/capstone-project/tree/main/src/serveractions/admin.ts | https://raw.githubusercontent.com/victorvictoria-maker/capstone-project/cfd8663/src/serveractions/admin.ts | victorvictoria-maker/capstone-project cfd8663 src/serveractions/admin.ts | true | 200 | 3,210 | "use server";
import { db } from "@/lib/db";
import { CreateHospitalInput, Hospital } from "../../types";
export async function deleteHospitalById(hospitalId: number) {
try {
await db.healthcareProvider.delete({
where: { id: hospitalId },
});
return { success: "Record deleted successfful... | 4 |
ovidiubute/github-search-web-app | f14c723 | src/search/services/searchService.ts | TypeScript | www.github.com/ovidiubute/github-search-web-app/tree/main/src/search/services/searchService.ts | https://raw.githubusercontent.com/ovidiubute/github-search-web-app/f14c723/src/search/services/searchService.ts | ovidiubute/github-search-web-app f14c723 src/search/services/searchService.ts | true | 200 | 2,451 | import { GraphQLClient } from "graphql-request";
import { User } from "../types/user";
export type SearchResults = {
userCount: number;
nodes: Array<User>;
pageInfo: {
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: string | null;
endCursor: string | null;
};
};
type GraphQLSearch... | 7 |
golddick/konnet_stream | 9cc15a4 | lib/Api/Database/models/streamData.models.ts | TypeScript | www.github.com/golddick/konnet_stream/tree/main/lib/Api/Database/models/streamData.models.ts | https://raw.githubusercontent.com/golddick/konnet_stream/9cc15a4/lib/Api/Database/models/streamData.models.ts | golddick/konnet_stream 9cc15a4 lib/Api/Database/models/streamData.models.ts | true | 200 | 1,943 | import { Schema, model, Document, models } from "mongoose";
export interface IStreamProps extends Document {
_id:Schema.Types.ObjectId;
creatorName: string;
streamName: string;
address:string;
price:string;
isFree:boolean;
streamDate:Date;
endTime:string;
desc:string;
participa... | 0 |
Brian-Wuest/NG_Examples | 9f27f5d | src/app/modules/card-panel/node-info/shared-draggable-context.ts | TypeScript | www.github.com/Brian-Wuest/NG_Examples/tree/main/src/app/modules/card-panel/node-info/shared-draggable-context.ts | https://raw.githubusercontent.com/Brian-Wuest/NG_Examples/9f27f5d/src/app/modules/card-panel/node-info/shared-draggable-context.ts | Brian-Wuest/NG_Examples 9f27f5d src/app/modules/card-panel/node-info/shared-draggable-context.ts | true | 200 | 1,384 | import { DraggableNode } from './draggable-node';
export class SharedDraggableContext {
monitoredNodes: Array<DraggableNode>;
movingNode: DraggableNode;
private dragDropAllowed = true;
/**
* Gets a value indicating whether drag and drop is allowed for the attached card-box.
*/
get allowDragDrop(): boo... | 3 |
is-it-ayush/isitayush.dev | e1a187b | src/pages/api/post/comment/create.ts | TypeScript | www.github.com/is-it-ayush/isitayush.dev/tree/main/src/pages/api/post/comment/create.ts | https://raw.githubusercontent.com/is-it-ayush/isitayush.dev/e1a187b/src/pages/api/post/comment/create.ts | is-it-ayush/isitayush.dev e1a187b src/pages/api/post/comment/create.ts | true | 200 | 2,056 | import { CreateCommentSchema } from '@src/pages/blog/[slug]';
import { getServerAuthSession } from '@src/server/auth';
import { db } from '@src/server/db';
import type { NextApiRequest, NextApiResponse } from 'next';
import type { Session } from 'next-auth';
import type { ApiError } from '@src/pages/api/post/[slug]';
... | 6 |
Irfanakbari/hpm-service | 230c7c6 | src/emails/emails.service.ts | TypeScript | www.github.com/Irfanakbari/hpm-service/tree/main/src/emails/emails.service.ts | https://raw.githubusercontent.com/Irfanakbari/hpm-service/230c7c6/src/emails/emails.service.ts | Irfanakbari/hpm-service 230c7c6 src/emails/emails.service.ts | true | 200 | 1,016 | import { ConflictException, Injectable } from '@nestjs/common';
import { CreateEmailDto } from './dto/create-email.dto';
import { PrismaService } from 'nestjs-prisma';
import { RpcException } from '@nestjs/microservices';
@Injectable()
export class EmailsService {
constructor(private prismaService: PrismaService) {}... | 1 |
Adarshsingh7/sentiment-anal | 770952a | src/features/analyse/type.ts | TypeScript | www.github.com/Adarshsingh7/sentiment-anal/tree/main/src/features/analyse/type.ts | https://raw.githubusercontent.com/Adarshsingh7/sentiment-anal/770952a/src/features/analyse/type.ts | Adarshsingh7/sentiment-anal 770952a src/features/analyse/type.ts | true | 200 | 1,611 | type SpeechSegment = {
speech_rate: number;
type: string;
start: number;
end: number;
};
type VocabMeaning = {
word: string;
meaning: string;
};
type RepeatedWord = {
word: string;
count: number;
};
type GrammarError = {
sentence: string;
correct: string;
explanation: string;
};
type LongSente... | 5 |
getcord/cord | f6ca50d | server/src/entity/linked_users/LinkedUsersLoader.ts | TypeScript | www.github.com/getcord/cord/tree/main/server/src/entity/linked_users/LinkedUsersLoader.ts | https://raw.githubusercontent.com/getcord/cord/f6ca50d/server/src/entity/linked_users/LinkedUsersLoader.ts | getcord/cord f6ca50d server/src/entity/linked_users/LinkedUsersLoader.ts | true | 200 | 10,106 | import DataLoader from 'dataloader';
import { Op } from 'sequelize';
import { unique } from 'radash';
import type { UUID } from 'common/types/index.ts';
import type { Viewer } from 'server/src/auth/index.ts';
import { LinkedUsersEntity } from 'server/src/entity/linked_users/LinkedUsersEntity.ts';
import type { UserOrgI... | 4 |
asamirsherif/StockIT | 6027914 | client/src/app/main/Reports/sale-report/sale-report.component.ts | TypeScript | www.github.com/asamirsherif/StockIT/tree/main/client/src/app/main/Reports/sale-report/sale-report.component.ts | https://raw.githubusercontent.com/asamirsherif/StockIT/6027914/client/src/app/main/Reports/sale-report/sale-report.component.ts | asamirsherif/StockIT 6027914 client/src/app/main/Reports/sale-report/sale-report.component.ts | true | 200 | 775 | import { Component, OnInit } from '@angular/core';
import { ReportsService } from 'app/auth/service/reports/reports.service';
import { ISale } from 'app/interfaces/isales';
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-sale-report',
templateUrl: './sale-report.component.html',
styleUrls... | 7 |
cashanax/Pill-Dispenser-Web-Panel-UI | 06a1475 | src/app/app.component.ts | TypeScript | www.github.com/cashanax/Pill-Dispenser-Web-Panel-UI/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/cashanax/Pill-Dispenser-Web-Panel-UI/06a1475/src/app/app.component.ts | cashanax/Pill-Dispenser-Web-Panel-UI 06a1475 src/app/app.component.ts | true | 200 | 861 | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
isLoggedIn$ = ... | 0 |
IEVN1002-21000643/SurgiftFrontend | 8a6af47 | src/app/admin/graficas/graficas.component.ts | TypeScript | www.github.com/IEVN1002-21000643/SurgiftFrontend/tree/main/src/app/admin/graficas/graficas.component.ts | https://raw.githubusercontent.com/IEVN1002-21000643/SurgiftFrontend/8a6af47/src/app/admin/graficas/graficas.component.ts | IEVN1002-21000643/SurgiftFrontend 8a6af47 src/app/admin/graficas/graficas.component.ts | true | 200 | 805 | import { Component, OnInit } from '@angular/core';
import { AdminService } from '../admin.service';
@Component({
selector: 'app-graficas',
standalone: true,
imports: [],
templateUrl: './graficas.component.html',
styleUrl: './graficas.component.css'
})
export default class GraficasComponent implements OnInit{... | 1 |
oumaimamar/club-app-angular | 9599056 | src/app/services/auth.service.ts | TypeScript | www.github.com/oumaimamar/club-app-angular/tree/main/src/app/services/auth.service.ts | https://raw.githubusercontent.com/oumaimamar/club-app-angular/9599056/src/app/services/auth.service.ts | oumaimamar/club-app-angular 9599056 src/app/services/auth.service.ts | true | 200 | 1,006 | import { Injectable } from '@angular/core';
import {Router} from '@angular/router';
@Injectable({providedIn: 'root'})
export class AuthService {
//System Authen garde les Information
public isAuthenticated : boolean = false;
public username : any;
public roles : string[] = [];
public users:any... | 6 |
AyyoubElachagui/ng-ecom | 3f166ee | src/app/store/states/wish_list.state.ts | TypeScript | www.github.com/AyyoubElachagui/ng-ecom/tree/main/src/app/store/states/wish_list.state.ts | https://raw.githubusercontent.com/AyyoubElachagui/ng-ecom/3f166ee/src/app/store/states/wish_list.state.ts | AyyoubElachagui/ng-ecom 3f166ee src/app/store/states/wish_list.state.ts | true | 200 | 2,035 | import { Action, State, StateContext } from "@ngxs/store";
import { TCarts } from "../../services/interfaces/carts.interface";
import { Injectable } from "@angular/core";
import { CartActions } from "../actions/cart.action";
import { CartLocalstorageService } from "../../services/localstorage/cart-localstorage/cart-loc... | 3 |
doubleyooz/shoppy | a323dff | nestjs-shoppy/src/app.module.ts | TypeScript | www.github.com/doubleyooz/shoppy/tree/main/nestjs-shoppy/src/app.module.ts | https://raw.githubusercontent.com/doubleyooz/shoppy/a323dff/nestjs-shoppy/src/app.module.ts | doubleyooz/shoppy a323dff nestjs-shoppy/src/app.module.ts | true | 200 | 1,826 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './users/users.module';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { LoggerModule } from 'nestjs-pino';
import { AuthModule } from ... | 4 |
oofdere/crabrave | 0b7dff8 | test/result.test.ts | TypeScript | www.github.com/oofdere/crabrave/tree/main/test/result.test.ts | https://raw.githubusercontent.com/oofdere/crabrave/0b7dff8/test/result.test.ts | oofdere/crabrave 0b7dff8 test/result.test.ts | true | 200 | 1,127 | import { assert, expect, test } from "vitest";
import { Ok, Err, match } from "../index";
type Error = 1;
test("init_ok", () => {
const result = Ok<number, number>(0);
expect(result[0]).toBe("Ok");
expect(result[1]).toBe(0);
});
test("init_err", () => {
const result = Err<number, number>(1);
expect(result[0]).... | 7 |
kimquangst5/do-an-co-so | 13798f9 | services/admin/auth.service.ts | TypeScript | www.github.com/kimquangst5/do-an-co-so/tree/main/services/admin/auth.service.ts | https://raw.githubusercontent.com/kimquangst5/do-an-co-so/13798f9/services/admin/auth.service.ts | kimquangst5/do-an-co-so 13798f9 services/admin/auth.service.ts | true | 200 | 1,217 | import jwt from "jsonwebtoken";
import { Request, Response } from "express";
import Role from "../../models/roles.models";
import argon2 from "argon2";
import Account from "../../models/accounts.model";
import { ObjectId } from "mongodb";
// const get = (req: Request, res: Response) => {
// res.render("admin/pages/ac... | 0 |
gireeshrapuru1/my-app | 55cd2f0 | src/app/app-routing.module.ts | TypeScript | www.github.com/gireeshrapuru1/my-app/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/gireeshrapuru1/my-app/55cd2f0/src/app/app-routing.module.ts | gireeshrapuru1/my-app 55cd2f0 src/app/app-routing.module.ts | true | 200 | 3,118 | import { Interpolation } from '@angular/compiler';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BankComponent } from './bank/bank.component';
import { CalculatorComponent } from './calculator/calculator.component';
import { CarsComponent } from './cars/cars.... | 1 |
Jbarget/phantom-dwellings | fbc1051 | src/css/themeHelpers.ts | TypeScript | www.github.com/Jbarget/phantom-dwellings/tree/main/src/css/themeHelpers.ts | https://raw.githubusercontent.com/Jbarget/phantom-dwellings/fbc1051/src/css/themeHelpers.ts | Jbarget/phantom-dwellings fbc1051 src/css/themeHelpers.ts | true | 200 | 946 | import {
colors,
fontSizes,
fonts,
lineHeights,
borders,
spacing,
} from "./theme";
// https://stackoverflow.com/questions/56126004/how-to-extract-exact-union-type-from-object-key-strings-in-typescript
export type FontSize = keyof typeof fontSizes;
export type LineHeight = keyof typeof lineHeights;
export ... | 6 |
antbucc/PromptDeck | 49a032c | backend/src/routes/plugin.routes.ts | TypeScript | www.github.com/antbucc/PromptDeck/tree/main/backend/src/routes/plugin.routes.ts | https://raw.githubusercontent.com/antbucc/PromptDeck/49a032c/backend/src/routes/plugin.routes.ts | antbucc/PromptDeck 49a032c backend/src/routes/plugin.routes.ts | true | 200 | 279 | // src/routes/plugin.routes.ts
import { Router } from 'express';
import { listPlugins, executePlugin } from '../controllers/plugin.controllers';
const router = Router();
router.get('/', listPlugins);
router.post('/:pluginName/execute', executePlugin);
export default router;
| 3 |
markocurlin/HRManager | 06d2ce9 | src/app/admin/admin.component.ts | TypeScript | www.github.com/markocurlin/HRManager/tree/main/src/app/admin/admin.component.ts | https://raw.githubusercontent.com/markocurlin/HRManager/06d2ce9/src/app/admin/admin.component.ts | markocurlin/HRManager 06d2ce9 src/app/admin/admin.component.ts | true | 200 | 790 | import { Component, OnInit, ViewChild } from '@angular/core';
import { UserApiService } from '../services/user-api.service';
import { ShowUserComponent } from './user/show-user/show-user.component';
@Component({
selector: 'app-admin',
templateUrl: './admin.component.html',
styleUrls: ['./admin.component.css']
})... | 4 |
xinyu-H/myV3TS | 86f5e36 | Code/src/views/App/Home/DataModel/Signature.ts | TypeScript | www.github.com/xinyu-H/myV3TS/tree/main/Code/src/views/App/Home/DataModel/Signature.ts | https://raw.githubusercontent.com/xinyu-H/myV3TS/86f5e36/Code/src/views/App/Home/DataModel/Signature.ts | xinyu-H/myV3TS 86f5e36 Code/src/views/App/Home/DataModel/Signature.ts | true | 200 | 6,282 | import { nextTick } from 'vue';
import Tools from '@/utils/tools'
import Message from '@/utils/message';
import { Store1 } from '@/pinia/state'
export interface AutogModel {
class: string,//实例化的class
id: string,//canvas的ID
width: number,//canvas width
height: number,//canvas height
lineWi... | 7 |
Godzelduh/Traveler-Inquirer- | e6cace7 | server/src/App.ts | TypeScript | www.github.com/Godzelduh/Traveler-Inquirer-/tree/main/server/src/App.ts | https://raw.githubusercontent.com/Godzelduh/Traveler-Inquirer-/e6cace7/server/src/App.ts | Godzelduh/Traveler-Inquirer- e6cace7 server/src/App.ts | true | 200 | 1,352 | // App.ts
import express from 'express';
import dotenv from 'dotenv';
import cors from 'cors';
import { userRouter } from './routes/api/user-routes.js';
import { createUserAuthRouter } from './routes/auth/userAuthRoute.js';
import { Models } from './types/models.js';
interface AppConfig {
models: Models;
}
export... | 0 |
hotdogc1017/shangpin-helper | 388d9b6 | manifest.config.ts | TypeScript | www.github.com/hotdogc1017/shangpin-helper/tree/main/manifest.config.ts | https://raw.githubusercontent.com/hotdogc1017/shangpin-helper/388d9b6/manifest.config.ts | hotdogc1017/shangpin-helper 388d9b6 manifest.config.ts | true | 200 | 885 | import { defineManifest } from '@crxjs/vite-plugin'
// @ts-ignore
import packageJson from './package.json'
const semver = packageJson.version as string
const [major, minor, patch, release] = semver.split('-').flatMap(item => item.split('.'))
// Chrome不支持语义化版本号
const version = `${major}.${minor}.${patch}`
const versi... | 1 |
TommyPersson/mediator-js | 549fbb6 | packages/mediator-react/src/Stubs.ts | TypeScript | www.github.com/TommyPersson/mediator-js/tree/main/packages/mediator-react/src/Stubs.ts | https://raw.githubusercontent.com/TommyPersson/mediator-js/549fbb6/packages/mediator-react/src/Stubs.ts | TommyPersson/mediator-js 549fbb6 packages/mediator-react/src/Stubs.ts | true | 200 | 3,441 | import { ArgsOf, Command, Query, Request, ResultOf } from "@tommypersson/mediator-core";
import { CommandHook, QueryHook, RequestHook } from "./Hooks";
import { States } from "./State";
export function stubPendingRequest<
TRequest extends Request<TArgs, TResult>,
TArgs = ArgsOf<TRequest>,
TResult = ResultOf<TReq... | 3 |
bkiac/tarnhelm | a38b991 | packages/web/src/styles/animations/utils.ts | TypeScript | www.github.com/bkiac/tarnhelm/tree/main/packages/web/src/styles/animations/utils.ts | https://raw.githubusercontent.com/bkiac/tarnhelm/a38b991/packages/web/src/styles/animations/utils.ts | bkiac/tarnhelm a38b991 packages/web/src/styles/animations/utils.ts | true | 200 | 418 | import type {Keyframes} from "@emotion/serialize"
/**
* Helper function for bundling animation with its common properties.
* `emotion` does not allow `styled-components` style CSS snippets,
* returned keyframes and properties string have to manually applied in CSS.
* See: https://github.com/emotion-js/emotion/issu... | 6 |
kariotisalex/dummy-instagram | e5f23f9 | src/main/front-end/src/app/feed/feed.component.ts | TypeScript | www.github.com/kariotisalex/dummy-instagram/tree/main/src/main/front-end/src/app/feed/feed.component.ts | https://raw.githubusercontent.com/kariotisalex/dummy-instagram/e5f23f9/src/main/front-end/src/app/feed/feed.component.ts | kariotisalex/dummy-instagram e5f23f9 src/main/front-end/src/app/feed/feed.component.ts | true | 200 | 3,340 | import {Component, OnInit} from '@angular/core';
import {Post, Posts} from "../services/interfaces/post";
import {PostService} from "../services/post.service";
import {User} from "../services/interfaces/user";
import {UserService} from "../services/user.service";
import {CommentService} from "../services/comment.servic... | 4 |
freshcode-dev/web-boilerplate | aed2879 | apps/next-frontend/src/store/api/sessions.api.ts | TypeScript | www.github.com/freshcode-dev/web-boilerplate/tree/main/apps/next-frontend/src/store/api/sessions.api.ts | https://raw.githubusercontent.com/freshcode-dev/web-boilerplate/aed2879/apps/next-frontend/src/store/api/sessions.api.ts | freshcode-dev/web-boilerplate aed2879 apps/next-frontend/src/store/api/sessions.api.ts | true | 200 | 1,268 | import { SessionDto, SessionFilter } from '@boilerplate/shared';
// should be last import
import api from '.';
const sessionsApi = api.injectEndpoints({
endpoints: (builder) => ({
getSessionsList: builder.query<SessionDto[], SessionFilter | undefined>({
query: (filters) => ({
url: `sessions/list`,
params... | 0 |
raiane-oliveira/marshmallow-watch-API | 11a572f | src/infra/third-apis/repositories/tmdb-tv-shows-repository.ts | TypeScript | www.github.com/raiane-oliveira/marshmallow-watch-API/tree/main/src/infra/third-apis/repositories/tmdb-tv-shows-repository.ts | https://raw.githubusercontent.com/raiane-oliveira/marshmallow-watch-API/11a572f/src/infra/third-apis/repositories/tmdb-tv-shows-repository.ts | raiane-oliveira/marshmallow-watch-API 11a572f src/infra/third-apis/repositories/tmdb-tv-shows-repository.ts | true | 200 | 1,704 | import type {
TvShowParamsFilters,
TvShowParamsTopRated,
TvShowSearchParams,
TvShowsRepository,
} from "@/domain/app/repositories/tv-shows-repository"
import type { TmdbTvShow } from "../interfaces/tmdb-tv-show"
import { TmdbTvShowsMapper } from "../mappers/tmdb-tv-shows-mapper"
import { TmdbApiProvider } from ... | 1 |
Nantoforget/vue3_admin_project | 9eb014c | src/router/routes.ts | TypeScript | www.github.com/Nantoforget/vue3_admin_project/tree/main/src/router/routes.ts | https://raw.githubusercontent.com/Nantoforget/vue3_admin_project/9eb014c/src/router/routes.ts | Nantoforget/vue3_admin_project 9eb014c src/router/routes.ts | true | 200 | 3,676 | import type {RouteRecordRaw} from "vue-router";
/**
* 路由meta对象参数说明
* meta: {
* title: 菜单栏及 tagsView 栏、菜单搜索名称(国际化)
* hidden: 是否隐藏此路由
* icon: 菜单、tagsView 图标,阿里:加 `iconfont xxx`,fontawesome:加 `fa xxx`
* }
*/
/**
* 静态路由(默认路由)
*/
export const staticRoutes: Array<RouteRecordR... | 3 |
Hussein-AlSayyed/Posts | 28b6ce1 | src/app/auth/auth-intercepter.ts | TypeScript | www.github.com/Hussein-AlSayyed/Posts/tree/main/src/app/auth/auth-intercepter.ts | https://raw.githubusercontent.com/Hussein-AlSayyed/Posts/28b6ce1/src/app/auth/auth-intercepter.ts | Hussein-AlSayyed/Posts 28b6ce1 src/app/auth/auth-intercepter.ts | true | 200 | 657 | import { Injectable } from '@angular/core';
import { HttpInterceptor, HttpEvent, HttpHandler, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthService } from './auth.service';
@Injectable()
export class AuthInterceptor implements HttpInterceptor {
constructor(private auth... | 7 |
sinanptm/shortify | 09bd1b2 | src/infrastructure/service/TokenService.ts | TypeScript | www.github.com/sinanptm/shortify/tree/main/src/infrastructure/service/TokenService.ts | https://raw.githubusercontent.com/sinanptm/shortify/09bd1b2/src/infrastructure/service/TokenService.ts | sinanptm/shortify 09bd1b2 src/infrastructure/service/TokenService.ts | true | 200 | 858 | import jwt, { TokenExpiredError } from "jsonwebtoken";
import ITokenService from "@/domain/interface/services/ITokenService";
import { TOKEN_SECRET } from "@/config/env";
import { AuthenticationError, AuthorizationError } from "@/domain/entities/CustomErrors";
export default class TokenService implements ITokenServic... | 6 |
Polarfoxxx/foxxy-unifiedNexus | 013b722 | client/src/module/APIs/cookie/deleteCookie/deleteCookie.ts | TypeScript | www.github.com/Polarfoxxx/foxxy-unifiedNexus/tree/main/client/src/module/APIs/cookie/deleteCookie/deleteCookie.ts | https://raw.githubusercontent.com/Polarfoxxx/foxxy-unifiedNexus/013b722/client/src/module/APIs/cookie/deleteCookie/deleteCookie.ts | Polarfoxxx/foxxy-unifiedNexus 013b722 client/src/module/APIs/cookie/deleteCookie/deleteCookie.ts | true | 200 | 449 |
import axios from "axios";
import { BASE_URL } from "../../BASE_URL";
async function deleteCookie(): Promise<boolean> {
try {
await axios.get(`${BASE_URL}cookies-delete/clear-cookie`, {
withCredentials: true,
headers: {
"Content-Type": "application/json",
... | 4 |
rishabh777-CE/CodeFox | f06e849 | client/src/utils/type.ts | TypeScript | www.github.com/rishabh777-CE/CodeFox/tree/main/client/src/utils/type.ts | https://raw.githubusercontent.com/rishabh777-CE/CodeFox/f06e849/client/src/utils/type.ts | rishabh777-CE/CodeFox f06e849 client/src/utils/type.ts | true | 200 | 786 | export interface TestcaseType {
input: string,
output: string,
sample: boolean,
explanation ?: string
}
export interface PropblemDetailType {
slug: string
input: string
title: string
output: string
constraints: string
statement: string
desc: string
}
export interface Proble... | 0 |
troolee/santa | 492c4db | graph/src/app.ts | TypeScript | www.github.com/troolee/santa/tree/main/graph/src/app.ts | https://raw.githubusercontent.com/troolee/santa/492c4db/graph/src/app.ts | troolee/santa 492c4db graph/src/app.ts | true | 200 | 1,457 | import { RewriteFrames } from '@sentry/integrations';
import * as Sentry from '@sentry/node';
import compression from 'compression';
import express from 'express';
import { Db } from 'mongodb';
import { default as createApolloServer } from 'src/graph/server';
import { commonHeaders, commonHelpers } from 'src/lib/common... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.