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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Dupre453/github-search | a46caf8 | src/store/github/github.api.ts | TypeScript | www.github.com/Dupre453/github-search/tree/main/src/store/github/github.api.ts | https://raw.githubusercontent.com/Dupre453/github-search/a46caf8/src/store/github/github.api.ts | Dupre453/github-search a46caf8 src/store/github/github.api.ts | true | 200 | 1,007 | import {createApi, fetchBaseQuery} from "@reduxjs/toolkit/query/react";
import {IRepo, IUser, ServerResponse} from "../../models/models";
//для работы с поиском
export const githubApi = createApi({
reducerPath: 'github/api',
baseQuery: fetchBaseQuery({
baseUrl: 'https://api.github.com/'
}),
re... | 4 |
HanryLai/Ecommercial_Devil | 97c77cd | src/entities/chat/message.entity.ts | TypeScript | www.github.com/HanryLai/Ecommercial_Devil/tree/main/src/entities/chat/message.entity.ts | https://raw.githubusercontent.com/HanryLai/Ecommercial_Devil/97c77cd/src/entities/chat/message.entity.ts | HanryLai/Ecommercial_Devil 97c77cd src/entities/chat/message.entity.ts | true | 200 | 617 | import { Column, Entity, JoinColumn, ManyToOne, OneToOne } from 'typeorm';
import { AccountEntity } from '../auth';
import { BaseEntity } from '../base';
import { RoomEntity } from './room.entity';
import { IMessage } from '../interfaces/message.entity.interface';
@Entity({ name: 'message' })
export class MessageEntit... | 0 |
mrpitch/strapi-playground-docker | 61d28e1 | src/index.ts | TypeScript | www.github.com/mrpitch/strapi-playground-docker/tree/main/src/index.ts | https://raw.githubusercontent.com/mrpitch/strapi-playground-docker/61d28e1/src/index.ts | mrpitch/strapi-playground-docker 61d28e1 src/index.ts | true | 200 | 1,039 | import type { Core } from '@strapi/strapi';
import {errors} from '@strapi/utils'
const {ApplicationError} = errors
export default {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/* { strapi }... | 7 |
qcggtoiuu/slabstone-2 | 723ab05 | src/pages/api/save-product-data.ts | TypeScript | www.github.com/qcggtoiuu/slabstone-2/tree/main/src/pages/api/save-product-data.ts | https://raw.githubusercontent.com/qcggtoiuu/slabstone-2/723ab05/src/pages/api/save-product-data.ts | qcggtoiuu/slabstone-2 723ab05 src/pages/api/save-product-data.ts | true | 200 | 2,204 | import type { NextApiRequest, NextApiResponse } from "next";
import fs from "fs";
import path from "path";
import { Product } from "@/lib/productData";
type ResponseData = {
success: boolean;
message: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<ResponseData>,
) {
if... | 5 |
RenatusRS/Property-Development-Platform | 3ee7955 | frontend/src/app/components/manage/manage.component.ts | TypeScript | www.github.com/RenatusRS/Property-Development-Platform/tree/main/frontend/src/app/components/manage/manage.component.ts | https://raw.githubusercontent.com/RenatusRS/Property-Development-Platform/3ee7955/frontend/src/app/components/manage/manage.component.ts | RenatusRS/Property-Development-Platform 3ee7955 frontend/src/app/components/manage/manage.component.ts | true | 200 | 618 | import { Component } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Router } from '@angular/router';
import { User } from 'src/app/models/user';
import { GuestService } from 'src/app/services/guest.service';
@Component({
selector: 'app-manage',
templateUrl: './manage.compo... | 4 |
EdwardLimPadmajaya/ReactAdminDashboard | 363cc22 | metal-zoos-lead/src/components/index.ts | TypeScript | www.github.com/EdwardLimPadmajaya/ReactAdminDashboard/tree/main/metal-zoos-lead/src/components/index.ts | https://raw.githubusercontent.com/EdwardLimPadmajaya/ReactAdminDashboard/363cc22/metal-zoos-lead/src/components/index.ts | EdwardLimPadmajaya/ReactAdminDashboard 363cc22 metal-zoos-lead/src/components/index.ts | true | 200 | 1,083 | import UpcomingEvents from "./home/upcoming-events";
import DealsChart from "./home/deals-chart";
import UpcomingEventsSkeleton from "./skeleton/upcoming-events";
import AccordionHeaderSkeleton from "./skeleton/accordion-header";
import KanbanColumnSkeleton from "./skeleton/kanban";
import ProjectCardSkeleton from "./s... | 2 |
Tattianerl/trilha-react-desafio-4 | 5675b4b | src/global.ts | TypeScript | www.github.com/Tattianerl/trilha-react-desafio-4/tree/main/src/global.ts | https://raw.githubusercontent.com/Tattianerl/trilha-react-desafio-4/5675b4b/src/global.ts | Tattianerl/trilha-react-desafio-4 5675b4b src/global.ts | true | 200 | 717 | import { createGlobalStyle } from 'styled-components';
import backgroundImage from './assets/fundoformulario.png';
export default createGlobalStyle`
* {
margin: 0;
padding: 0;
font-family: 'Nunito', sans-serif;
box-sizing: border-box;
}
body {
background-image: url... | 0 |
elsiewatson/Fizoillu | 4ca3681 | src/app/app.config.ts | TypeScript | www.github.com/elsiewatson/Fizoillu/tree/main/src/app/app.config.ts | https://raw.githubusercontent.com/elsiewatson/Fizoillu/4ca3681/src/app/app.config.ts | elsiewatson/Fizoillu 4ca3681 src/app/app.config.ts | true | 200 | 1,823 | import {
HTTP_INTERCEPTORS,
provideHttpClient,
withFetch,
withInterceptorsFromDi,
} from '@angular/common/http'
import {
ApplicationConfig,
isDevMode,
provideZoneChangeDetection,
} from '@angular/core'
import {
InMemoryScrollingFeature,
InMemoryScrollingOptions,
provideRouter,
withInMemoryScrollin... | 7 |
FitzPitx/informe-homesentry | d5dd0b9 | src/app/services/subcategoria-service/subcategorias-service.service.ts | TypeScript | www.github.com/FitzPitx/informe-homesentry/tree/main/src/app/services/subcategoria-service/subcategorias-service.service.ts | https://raw.githubusercontent.com/FitzPitx/informe-homesentry/d5dd0b9/src/app/services/subcategoria-service/subcategorias-service.service.ts | FitzPitx/informe-homesentry d5dd0b9 src/app/services/subcategoria-service/subcategorias-service.service.ts | true | 200 | 627 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class SubcategoriasServiceService {
constructor(private http: HttpClient) { }
private apiUrl = 'http://localhost:8080/api/subcategorias';
... | 5 |
ElisVingisar/EEVR-Conference-Event-Organizer | b78df9d | realiti-express-main/src/payload/globals/sections/ContactSection.ts | TypeScript | www.github.com/ElisVingisar/EEVR-Conference-Event-Organizer/tree/main/realiti-express-main/src/payload/globals/sections/ContactSection.ts | https://raw.githubusercontent.com/ElisVingisar/EEVR-Conference-Event-Organizer/b78df9d/realiti-express-main/src/payload/globals/sections/ContactSection.ts | ElisVingisar/EEVR-Conference-Event-Organizer b78df9d realiti-express-main/src/payload/globals/sections/ContactSection.ts | true | 200 | 844 | import { revalidateTag } from '@/payload/hooks/revalidateTag'
import { GlobalConfig } from 'payload'
export const ContactSection: GlobalConfig = {
slug: 'contact-section',
hooks: {
afterChange: [
revalidateTag,
],
},
access: {
read: () => true,
},
fields: [
... | 4 |
nexeth/static-analysis | 0611b8a | test/detectors/var-read-using-this.test.ts | TypeScript | www.github.com/nexeth/static-analysis/tree/main/test/detectors/var-read-using-this.test.ts | https://raw.githubusercontent.com/nexeth/static-analysis/0611b8a/test/detectors/var-read-using-this.test.ts | nexeth/static-analysis 0611b8a test/detectors/var-read-using-this.test.ts | true | 200 | 3,204 | import { describe, expect, test } from "bun:test";
import { SolidityParser } from "@/modules";
import { VarReadUsingThisDetector } from "@/modules/analyser/detectors/var-read-using-this";
import { SeverityValue } from "@/types";
describe("VarReadUsingThisDetector", () => {
const detector = new VarReadUsingThisDetec... | 2 |
Safin-Ahmed/snipnest-backend | fb8a6ec | src/api/v1/auth/controllers/refresh.ts | TypeScript | www.github.com/Safin-Ahmed/snipnest-backend/tree/main/src/api/v1/auth/controllers/refresh.ts | https://raw.githubusercontent.com/Safin-Ahmed/snipnest-backend/fb8a6ec/src/api/v1/auth/controllers/refresh.ts | Safin-Ahmed/snipnest-backend fb8a6ec src/api/v1/auth/controllers/refresh.ts | true | 200 | 839 | import { refreshToken } from "../../../../lib/auth";
const refresh = async (req, res, next) => {
try {
// Extract the token from body
const token = req.body.token;
// Get new tokens
const { accessToken, refreshToken: rToken } = await refreshToken(
token,
req.clientIp
);
// Send ... | 0 |
visitskyworld/dework | 684b307 | packages/api/src/models/Notification.ts | TypeScript | www.github.com/visitskyworld/dework/tree/main/packages/api/src/models/Notification.ts | https://raw.githubusercontent.com/visitskyworld/dework/684b307/packages/api/src/models/Notification.ts | visitskyworld/dework 684b307 packages/api/src/models/Notification.ts | true | 200 | 808 | import { Field, ObjectType } from "@nestjs/graphql";
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
import { Audit } from "./Audit";
import { User } from "./User";
import { Task } from "./Task";
@Entity({ orderBy: { createdAt: "DESC" } })
@ObjectType()
export class Notification extends Audit {
@Col... | 7 |
bartoszjaniuk/nestjs-playground | db1151e | src/auth/strategy/ws.strategy.ts | TypeScript | www.github.com/bartoszjaniuk/nestjs-playground/tree/main/src/auth/strategy/ws.strategy.ts | https://raw.githubusercontent.com/bartoszjaniuk/nestjs-playground/db1151e/src/auth/strategy/ws.strategy.ts | bartoszjaniuk/nestjs-playground db1151e src/auth/strategy/ws.strategy.ts | true | 200 | 1,226 | import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Request } from 'express';
import { Strategy } from 'passport-jwt';
import { ValidatePayload } from './refreshToken.strategy';
import { WsException } from '@nestjs/websockets';
@Injectable()
export class WsJwtStra... | 4 |
KwameKert/votinghub-client | 1c66931 | src/app/layouts/voting-layout/voting-layout.component.ts | TypeScript | www.github.com/KwameKert/votinghub-client/tree/main/src/app/layouts/voting-layout/voting-layout.component.ts | https://raw.githubusercontent.com/KwameKert/votinghub-client/1c66931/src/app/layouts/voting-layout/voting-layout.component.ts | KwameKert/votinghub-client 1c66931 src/app/layouts/voting-layout/voting-layout.component.ts | true | 200 | 532 | import { Component, OnInit } from '@angular/core';
import { ParticlesConfig} from '../../modules/config/particles-config';
declare var particlesJS: any;
@Component({
selector: 'app-voting-layout',
templateUrl: './voting-layout.component.html',
styleUrls: ['./voting-layout.component.css']
})
export class VotingL... | 5 |
GaleanoJorge/front_pergamo | 53c68ed | src/app/pages/scheduling/scheduling-routing.module.ts | TypeScript | www.github.com/GaleanoJorge/front_pergamo/tree/main/src/app/pages/scheduling/scheduling-routing.module.ts | https://raw.githubusercontent.com/GaleanoJorge/front_pergamo/53c68ed/src/app/pages/scheduling/scheduling-routing.module.ts | GaleanoJorge/front_pergamo 53c68ed src/app/pages/scheduling/scheduling-routing.module.ts | true | 200 | 2,066 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AssistencialViewComponent } from './assistencial-view/assistencial-view.component';
import { CopayCategoryComponent } from './copay_category/copay-category.component';
import { HealthcareItineraryComponent } from ... | 2 |
DanijelaVukosav/virtual-museum | d7aa6c8 | Angular-primjer/src/app/model/user.model.ts | TypeScript | www.github.com/DanijelaVukosav/virtual-museum/tree/main/Angular-primjer/src/app/model/user.model.ts | https://raw.githubusercontent.com/DanijelaVukosav/virtual-museum/d7aa6c8/Angular-primjer/src/app/model/user.model.ts | DanijelaVukosav/virtual-museum d7aa6c8 Angular-primjer/src/app/model/user.model.ts | true | 200 | 753 | export class User {
username: string | null;
password: string | null;
ime: string | null;
prezime: string | null;
token: string | null;
email: string | null;
odobrenNalog: string | null;
blokiranNalog: string | null
constructor(username?: string, password?: string, token?: string, e... | 7 |
AchinthaDavidson/loginWith_auth | 2546fe5 | Backend/index.ts | TypeScript | www.github.com/AchinthaDavidson/loginWith_auth/tree/main/Backend/index.ts | https://raw.githubusercontent.com/AchinthaDavidson/loginWith_auth/2546fe5/Backend/index.ts | AchinthaDavidson/loginWith_auth 2546fe5 Backend/index.ts | true | 200 | 426 | import bodyParser from "body-parser";
import express from "express";
import { connect } from "./src/utils/db";
import userRouter from "./src/routes/user.route";
const app= express()
app.use(bodyParser.json())
app.use(userRouter)
connect().then(()=>{
console.log("db connected")
app.listen(3000, () => {
cons... | 4 |
mengfanlei1995/bw | 26ea95c | assets/scripts/utils/TweenUtil.ts | TypeScript | www.github.com/mengfanlei1995/bw/tree/main/assets/scripts/utils/TweenUtil.ts | https://raw.githubusercontent.com/mengfanlei1995/bw/26ea95c/assets/scripts/utils/TweenUtil.ts | mengfanlei1995/bw 26ea95c assets/scripts/utils/TweenUtil.ts | true | 200 | 5,237 | import CocosUtil from "./CocosUtil";
/**
* Tween 工具
*/
class TweenUtil {
/**
* 水平翻转(卡片翻转)
* @param node 节点
* @param duration 总时长
* @param onMiddle 中间状态回调
* @param onComplete 完成回调
*/
public flip(node: cc.Node, duration: number, onMiddle?: Function, onComplete?: Function): Promis... | 5 |
anr2601/One-Mile | e4d977b | middleware.ts | TypeScript | www.github.com/anr2601/One-Mile/tree/main/middleware.ts | https://raw.githubusercontent.com/anr2601/One-Mile/e4d977b/middleware.ts | anr2601/One-Mile e4d977b middleware.ts | true | 200 | 826 | import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'
const allowedOrigins = [
"http://localhost:3000", "https://1mile.netlify.app",
];
export function middleware(request: NextRequest) {
const requestHeaders = new Headers(request.headers);
const response = NextResponse.next(... | 0 |
pleisto/mashcard | bb9269d | packages/legacy-editor/src/components/ui/BlockSelector/BlockSelector.style.ts | TypeScript | www.github.com/pleisto/mashcard/tree/main/packages/legacy-editor/src/components/ui/BlockSelector/BlockSelector.style.ts | https://raw.githubusercontent.com/pleisto/mashcard/bb9269d/packages/legacy-editor/src/components/ui/BlockSelector/BlockSelector.style.ts | pleisto/mashcard bb9269d packages/legacy-editor/src/components/ui/BlockSelector/BlockSelector.style.ts | true | 200 | 2,464 | import { FC } from 'react'
import { Icon, Menu, MenuProps, menuItemSpacing, styled, theme, css } from '@mashcard/design-system'
import { IconBackground } from '../../ui'
const footerHeight = '2rem'
export const BlockSelectorContainer = styled(Menu as FC<MenuProps>, {
maxHeight: '23rem',
overflow: 'auto',
paddin... | 2 |
ministryofjustice/hmpps-resettlement-passport-ui | db3a2f6 | server/utils/constants.ts | TypeScript | www.github.com/ministryofjustice/hmpps-resettlement-passport-ui/tree/main/server/utils/constants.ts | https://raw.githubusercontent.com/ministryofjustice/hmpps-resettlement-passport-ui/db3a2f6/server/utils/constants.ts | ministryofjustice/hmpps-resettlement-passport-ui db3a2f6 server/utils/constants.ts | true | 200 | 5,047 | export type EnumValue = { name: string; url?: string; description?: string; color?: string }
export const PATHWAY_DICTIONARY = {
ACCOMMODATION: {
name: 'Accommodation',
url: 'accommodation',
description: 'Access to suitable and sustainable housing.',
},
ATTITUDES_THINKING_AND_BEHAVIOUR: {
name: '... | 7 |
francoragout/SchoolSync-NestJS-API | 90c8881 | src/exams/entities/exam.entity.ts | TypeScript | www.github.com/francoragout/SchoolSync-NestJS-API/tree/main/src/exams/entities/exam.entity.ts | https://raw.githubusercontent.com/francoragout/SchoolSync-NestJS-API/90c8881/src/exams/entities/exam.entity.ts | francoragout/SchoolSync-NestJS-API 90c8881 src/exams/entities/exam.entity.ts | true | 200 | 659 | import { ApiProperty } from '@nestjs/swagger';
import { Exam, Subject } from '@prisma/client';
import { ClassroomEntity } from 'src/classrooms/entities/classroom.entity';
export class ExamEntity implements Exam {
@ApiProperty()
id: string;
@ApiProperty()
subject: Subject;
@ApiProperty()
date: Date;
@A... | 4 |
sunitakarle23/Medistore | 0c1cad4 | src/app/components/orders/orders.module.ts | TypeScript | www.github.com/sunitakarle23/Medistore/tree/main/src/app/components/orders/orders.module.ts | https://raw.githubusercontent.com/sunitakarle23/Medistore/0c1cad4/src/app/components/orders/orders.module.ts | sunitakarle23/Medistore 0c1cad4 src/app/components/orders/orders.module.ts | true | 200 | 451 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OrdersRoutingModule } from './orders-routing.module';
import { OrdersComponent } from './orders.component';
import { TransactionsComponent } from './transactions/transactions.component';
@NgModule({
declarations: [Or... | 5 |
yogevlahyani/comunix-task | a2adcdd | src/guards/auth.guard.ts | TypeScript | www.github.com/yogevlahyani/comunix-task/tree/main/src/guards/auth.guard.ts | https://raw.githubusercontent.com/yogevlahyani/comunix-task/a2adcdd/src/guards/auth.guard.ts | yogevlahyani/comunix-task a2adcdd src/guards/auth.guard.ts | true | 200 | 619 | import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import { WsException } from '@nestjs/websockets';
import { AuthService } from '../auth/auth.service';
@Injectable()
export class JwtAuthGuard implements CanActivate {
public constructor(private readonly authService: AuthService) {}
public... | 0 |
sH4rk0/phasergamejam2024 | 23ebb76 | Examples/source/src/scenes/examples/example21-lvl4-hello-physics-body-size-circle/Intro.ts | TypeScript | www.github.com/sH4rk0/phasergamejam2024/tree/main/Examples/source/src/scenes/examples/example21-lvl4-hello-physics-body-size-circle/Intro.ts | https://raw.githubusercontent.com/sH4rk0/phasergamejam2024/23ebb76/Examples/source/src/scenes/examples/example21-lvl4-hello-physics-body-size-circle/Intro.ts | sH4rk0/phasergamejam2024 23ebb76 Examples/source/src/scenes/examples/example21-lvl4-hello-physics-body-size-circle/Intro.ts | true | 200 | 656 | export default class Intro extends Phaser.Scene {
constructor() {
super({
key: "Intro",
});
}
preload() {
}
create() {
this.cameras.main.setBackgroundColor("#000000");
let _sprite1 = this.physics.add.sprite(200, 100, "bomb").setScale(3);
_sprite1.body.setGravityY(200).setSi... | 2 |
mauser001/repeat-master | 204cff5 | src/app/page/quiz/quiz.component.ts | TypeScript | www.github.com/mauser001/repeat-master/tree/main/src/app/page/quiz/quiz.component.ts | https://raw.githubusercontent.com/mauser001/repeat-master/204cff5/src/app/page/quiz/quiz.component.ts | mauser001/repeat-master 204cff5 src/app/page/quiz/quiz.component.ts | true | 200 | 4,750 | import { ChangeDetectionStrategy, Component, computed, inject, signal, Signal, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
import { Quiz } from '../../models/quiz.type';
import { Question } from '../../models/question.type';
import { QuizService } from '../../service/quiz.service';
import { toSigna... | 7 |
thcs-git/thcs-web | fd322d9 | src/components/Button/ButtonTabs/styles.ts | TypeScript | www.github.com/thcs-git/thcs-web/tree/main/src/components/Button/ButtonTabs/styles.ts | https://raw.githubusercontent.com/thcs-git/thcs-web/fd322d9/src/components/Button/ButtonTabs/styles.ts | thcs-git/thcs-web fd322d9 src/components/Button/ButtonTabs/styles.ts | true | 200 | 2,235 | import styled, { css } from "styled-components";
import Button, { ButtonProps } from "@mui/material/Button";
export const ButtonsContent = styled.div`
display: flex;
justify-content: flex-end;
margin: 20px 0;
button:nth-child(2) {
margin-left: 10px;
}
`;
interface IButtonProps extends ButtonProps {
... | 4 |
RgokuD7/appDeportes | 970a6a4 | src/app/torneo-futbol/crear-torneo-futbol/crear-torneo-futbol.page.ts | TypeScript | www.github.com/RgokuD7/appDeportes/tree/main/src/app/torneo-futbol/crear-torneo-futbol/crear-torneo-futbol.page.ts | https://raw.githubusercontent.com/RgokuD7/appDeportes/970a6a4/src/app/torneo-futbol/crear-torneo-futbol/crear-torneo-futbol.page.ts | RgokuD7/appDeportes 970a6a4 src/app/torneo-futbol/crear-torneo-futbol/crear-torneo-futbol.page.ts | true | 200 | 4,168 | import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
import { ClToreno_futbol } from '../model/ClTorneo-futbol';
import { ActivatedRoute, ChildActivationStart, Router } from '@angular/router';
import { TorneoFutbolService } from '../torneo-futbol.service';
import {
IonCheckbox,
IonInput,
IonC... | 5 |
sriveros21/ghostPruebasAutomatizadas | e964d71 | playwright/playwright-tests/scripts342-tests/tag.spec.ts | TypeScript | www.github.com/sriveros21/ghostPruebasAutomatizadas/tree/main/playwright/playwright-tests/scripts342-tests/tag.spec.ts | https://raw.githubusercontent.com/sriveros21/ghostPruebasAutomatizadas/e964d71/playwright/playwright-tests/scripts342-tests/tag.spec.ts | sriveros21/ghostPruebasAutomatizadas e964d71 playwright/playwright-tests/scripts342-tests/tag.spec.ts | true | 200 | 2,981 | import { expect, test } from '@playwright/test';
test.describe.serial("Tag E2E Scenarios", () => {
test.beforeEach(async ({ page }, testInfo) => {
// Go to the starting url before each test.
await page.goto("");
// Expect a title "to contain" a substring.
await expect(page).toHaveT... | 0 |
Akshat103/ecom-project | cde7e49 | src/app/services/data/data.service.ts | TypeScript | www.github.com/Akshat103/ecom-project/tree/main/src/app/services/data/data.service.ts | https://raw.githubusercontent.com/Akshat103/ecom-project/cde7e49/src/app/services/data/data.service.ts | Akshat103/ecom-project cde7e49 src/app/services/data/data.service.ts | true | 200 | 864 | import { Injectable, signal, computed } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class DataService {
private logInData = signal({
loggedIn: localStorage.getItem('access_token') === 'true',
seller: !!localStorage.getItem('refresh_token'),
});
isLoggedIn = computed(() => this.lo... | 2 |
im47cn/feishu-project-mcp | 393e50c | src/types/code.ts | TypeScript | www.github.com/im47cn/feishu-project-mcp/tree/main/src/types/code.ts | https://raw.githubusercontent.com/im47cn/feishu-project-mcp/393e50c/src/types/code.ts | im47cn/feishu-project-mcp 393e50c src/types/code.ts | true | 200 | 2,610 | /**
* 代码实现相关的类型定义
*/
/**
* 代码实现语言类型
*/
export enum CodeLanguage {
TYPESCRIPT = 'typescript',
JAVASCRIPT = 'javascript',
PYTHON = 'python',
JAVA = 'java',
GO = 'go',
CSHARP = 'csharp',
CPP = 'cpp',
PHP = 'php',
RUBY = 'ruby',
SWIFT = 'swift',
KOTLIN = 'kotlin',
OTHER = 'other',
}
/**
* 代码质... | 7 |
fawad4real/newtube | 115d922 | src/trpc/init.ts | TypeScript | www.github.com/fawad4real/newtube/tree/main/src/trpc/init.ts | https://raw.githubusercontent.com/fawad4real/newtube/115d922/src/trpc/init.ts | fawad4real/newtube 115d922 src/trpc/init.ts | true | 200 | 1,646 | import { auth } from '@clerk/nextjs/server';
import { initTRPC, TRPCError } from '@trpc/server';
import { cache } from 'react';
import superjson from 'superjson';
import { db } from '@/db';
import { eq } from 'drizzle-orm';
import { users } from '@/db/schema';
import { ratelimit } from '@/lib/ratelimit';
export const ... | 4 |
katsumiok/askit-artifact | e8609af | GSM8K/ts/src/351.ts | TypeScript | www.github.com/katsumiok/askit-artifact/tree/main/GSM8K/ts/src/351.ts | https://raw.githubusercontent.com/katsumiok/askit-artifact/e8609af/GSM8K/ts/src/351.ts | katsumiok/askit-artifact e8609af GSM8K/ts/src/351.ts | true | 200 | 1,714 | import { define, getErrors, getReason, getCompletion } from 'ts-askit'
import * as t from 'ts-askit/types'
import * as fs from 'fs'
async function doit() {
if (fs.existsSync('json/351.json')) {
console.log("Skipping 351")
return;
}
// measure time
const f = define<number, {x1: number, x2... | 2 |
bastien-j/vue-toaster | fa325cf | packages/docs/.vitepress/theme/index.ts | TypeScript | www.github.com/bastien-j/vue-toaster/tree/main/packages/docs/.vitepress/theme/index.ts | https://raw.githubusercontent.com/bastien-j/vue-toaster/fa325cf/packages/docs/.vitepress/theme/index.ts | bastien-j/vue-toaster fa325cf packages/docs/.vitepress/theme/index.ts | true | 200 | 413 | import { type EnhanceAppContext } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { createToaster } from '@bastien-j/vue-toaster'
import '@bastien-j/vue-toaster/style.css'
import CustomToast from './components/CustomToast.vue'
export default {
extends: DefaultTheme,
enhanceApp({ app }: EnhanceAp... | 5 |
MOBOUTACHAGOMurielle/covid-appli | 405fa13 | src/app/personnel-dun-centre/personnel-dun-centre.component.ts | TypeScript | www.github.com/MOBOUTACHAGOMurielle/covid-appli/tree/main/src/app/personnel-dun-centre/personnel-dun-centre.component.ts | https://raw.githubusercontent.com/MOBOUTACHAGOMurielle/covid-appli/405fa13/src/app/personnel-dun-centre/personnel-dun-centre.component.ts | MOBOUTACHAGOMurielle/covid-appli 405fa13 src/app/personnel-dun-centre/personnel-dun-centre.component.ts | true | 200 | 3,302 | import { DialogRef } from '@angular/cdk/dialog';
import { Component, Inject, Input, OnInit } from '@angular/core';
import { MatDialog, MatDialogConfig, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatTableDataSource } from '@angular/material/table';
import { infoServiceAdmin } from '../informations-sur-a... | 0 |
Lostyn/vrapp | cb5b1a3 | src/app-views/web/index.ts | TypeScript | www.github.com/Lostyn/vrapp/tree/main/src/app-views/web/index.ts | https://raw.githubusercontent.com/Lostyn/vrapp/cb5b1a3/src/app-views/web/index.ts | Lostyn/vrapp cb5b1a3 src/app-views/web/index.ts | true | 200 | 746 | import SceneService from '../common/services/scene/sceneService';
import SocketClientService from '../common/services/socketClient/socketClientService';
import VRViewport from './workbench/vrViewport';
class App {
_viewport: VRViewport;
_socket: SocketClientService;
_sceneService: SceneService;
startup() {
con... | 7 |
Maeevick/hexa-how-to | 5e23763 | src/index.ts | TypeScript | www.github.com/Maeevick/hexa-how-to/tree/main/src/index.ts | https://raw.githubusercontent.com/Maeevick/hexa-how-to/5e23763/src/index.ts | Maeevick/hexa-how-to 5e23763 src/index.ts | true | 200 | 1,009 | import Fastify from "fastify";
import { makeAFightBetweenCharacterAndOpponent } from "./makeAFightBetweenCharacterAndOpponent.ts";
import { forLaunchingADice } from "./forLaunchingADice.ts";
import {
forPickingTheOpponent,
forRetrievingTheCharacter,
} from "./characterRepository.ts";
const fastify = Fastify({
... | 2 |
LarryDavidd/eCommerce-App | 00b3cdf | tests/Login/LoginForm.test.ts | TypeScript | www.github.com/LarryDavidd/eCommerce-App/tree/main/tests/Login/LoginForm.test.ts | https://raw.githubusercontent.com/LarryDavidd/eCommerce-App/00b3cdf/tests/Login/LoginForm.test.ts | LarryDavidd/eCommerce-App 00b3cdf tests/Login/LoginForm.test.ts | true | 200 | 4,903 | import AuthForm from '@pages/LoginPage/components/AuthForm/AuthForm.vue';
import { describe, it, expect } from 'vitest';
import { mount } from '@vue/test-utils';
import { createPinia, setActivePinia } from 'pinia';
import OpenedEye from '@shared/ui-kit/Icons/OpenedEye.vue';
import ClosedEye from '@shared/ui-kit/Icons/C... | 4 |
hoanguyen0601/ProjectManager | c276dde | src/app/task-list/task-list.component.ts | TypeScript | www.github.com/hoanguyen0601/ProjectManager/tree/main/src/app/task-list/task-list.component.ts | https://raw.githubusercontent.com/hoanguyen0601/ProjectManager/c276dde/src/app/task-list/task-list.component.ts | hoanguyen0601/ProjectManager c276dde src/app/task-list/task-list.component.ts | true | 200 | 945 | import { Component, OnInit } from '@angular/core';
import { DuLieuService } from '../du-lieu.service';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-task-list',
templateUrl: './task-list.component.html',
styleUrls: ['./task-list.component.css']
})
export class TaskListCom... | 5 |
mukeshgurpude/resourcely-backend | f267c73 | src/utils/uploader.ts | TypeScript | www.github.com/mukeshgurpude/resourcely-backend/tree/main/src/utils/uploader.ts | https://raw.githubusercontent.com/mukeshgurpude/resourcely-backend/f267c73/src/utils/uploader.ts | mukeshgurpude/resourcely-backend f267c73 src/utils/uploader.ts | true | 200 | 1,570 | /*
See https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html
Source: https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/File_Upload_Cheat_Sheet.md
*/
import multer, { diskStorage, FileFilterCallback } from 'multer'
import { Request } from 'express'
import { config } from 'doten... | 0 |
Mrkun5018/superkunblogs | 4c44d8d | src/utils/utils.ts | TypeScript | www.github.com/Mrkun5018/superkunblogs/tree/main/src/utils/utils.ts | https://raw.githubusercontent.com/Mrkun5018/superkunblogs/4c44d8d/src/utils/utils.ts | Mrkun5018/superkunblogs 4c44d8d src/utils/utils.ts | true | 200 | 1,076 | import requests from './requests'
import { RandomNum } from './public'
import { ButtonType } from 'element-plus'
import { TagType } from './models'
const tagTypeList: ButtonType[] = ["success", "danger", "warning", "info", "primary"]
async function queryNoteTags(): Promise<TagType[]> {
const respond = await reque... | 6 |
cherry12321/productAngular | 4d670b3 | src/app/services/product-service.service.ts | TypeScript | www.github.com/cherry12321/productAngular/tree/main/src/app/services/product-service.service.ts | https://raw.githubusercontent.com/cherry12321/productAngular/4d670b3/src/app/services/product-service.service.ts | cherry12321/productAngular 4d670b3 src/app/services/product-service.service.ts | true | 200 | 791 | import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http'
import { Product } from '../Product';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class ProductServiceService {
url="http://localhost:8080/";
url1="http://localhost:8080/products";
url2... | 1 |
rrgks6221/classting-dev-task | c71f26d | src/apis/students/entities/student.entity.ts | TypeScript | www.github.com/rrgks6221/classting-dev-task/tree/main/src/apis/students/entities/student.entity.ts | https://raw.githubusercontent.com/rrgks6221/classting-dev-task/c71f26d/src/apis/students/entities/student.entity.ts | rrgks6221/classting-dev-task c71f26d src/apis/students/entities/student.entity.ts | true | 200 | 1,727 | import { SchoolPageNewsEntity } from 'src/apis/school-pages/entities/school-news.entity';
import { SchoolPageAdminLinkEntity } from 'src/apis/school-pages/entities/school-page-admin-link.entity';
import { SchoolPageSubscribeLinkEntity } from 'src/apis/school-pages/entities/school-page-subscribe-link.entity';
import {
... | 3 |
jtimmerb/Eatr | beb95ee | backend/src/service/schema/recipe-schema.ts | TypeScript | www.github.com/jtimmerb/Eatr/tree/main/backend/src/service/schema/recipe-schema.ts | https://raw.githubusercontent.com/jtimmerb/Eatr/beb95ee/backend/src/service/schema/recipe-schema.ts | jtimmerb/Eatr beb95ee backend/src/service/schema/recipe-schema.ts | true | 200 | 1,932 | import {JSONSchemaType} from 'ajv';
import {RecipeIngredient} from '../../data/recipe-ingredient/entity';
export interface CreateRecipeRequest {
recipe: {name: string; steps: string[]; image: string};
recipeIngredients: RecipeIngredient[];
}
/** Create recipe schema */
export const createRecipeSchema: JSONSchemaT... | 7 |
cbjs-dev/cbjs | 1d1cfb2 | packages/http-client/src/types/Api/search/ApiSearchGetIndex.ts | TypeScript | www.github.com/cbjs-dev/cbjs/tree/main/packages/http-client/src/types/Api/search/ApiSearchGetIndex.ts | https://raw.githubusercontent.com/cbjs-dev/cbjs/1d1cfb2/packages/http-client/src/types/Api/search/ApiSearchGetIndex.ts | cbjs-dev/cbjs 1d1cfb2 packages/http-client/src/types/Api/search/ApiSearchGetIndex.ts | true | 200 | 1,419 | /*
* Copyright (c) 2023-Present Jonathan MASSUCHETTI <jonathan.massuchetti@dappit.fr>.
*
* 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.... | 5 |
vue-vine/vue-vine | 9979a4d | packages/eslint-parser/src/common/token-utils.ts | TypeScript | www.github.com/vue-vine/vue-vine/tree/main/packages/eslint-parser/src/common/token-utils.ts | https://raw.githubusercontent.com/vue-vine/vue-vine/9979a4d/packages/eslint-parser/src/common/token-utils.ts | vue-vine/vue-vine 9979a4d packages/eslint-parser/src/common/token-utils.ts | true | 200 | 1,878 | import type { Token } from '../ast'
import type { VineTemplateMeta } from '../types'
import type { LinesAndColumns } from './lines-and-columns'
interface HasRange {
range: [number, number]
}
/**
* Create a simple token.
* @param type The type of new token.
* @param start The offset of the start position of new t... | 2 |
wgtygrett/wgrtyg-portfolio | 49d1b14 | src/app/organisms/code-cog/code-cog.component.spec.ts | TypeScript | www.github.com/wgtygrett/wgrtyg-portfolio/tree/main/src/app/organisms/code-cog/code-cog.component.spec.ts | https://raw.githubusercontent.com/wgtygrett/wgrtyg-portfolio/49d1b14/src/app/organisms/code-cog/code-cog.component.spec.ts | wgtygrett/wgrtyg-portfolio 49d1b14 src/app/organisms/code-cog/code-cog.component.spec.ts | true | 200 | 605 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CodeCogComponent } from './code-cog.component';
describe('CodeCogComponent', () => {
let component: CodeCogComponent;
let fixture: ComponentFixture<CodeCogComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... | 4 |
candaceflyn/StockToShip-Angular | 1680959 | src/app/stockvault/stockvault.module.ts | TypeScript | www.github.com/candaceflyn/StockToShip-Angular/tree/main/src/app/stockvault/stockvault.module.ts | https://raw.githubusercontent.com/candaceflyn/StockToShip-Angular/1680959/src/app/stockvault/stockvault.module.ts | candaceflyn/StockToShip-Angular 1680959 src/app/stockvault/stockvault.module.ts | true | 200 | 1,610 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { StockvaultRoutingModule } from './stockvault-routing.module';
import { ReactiveFormsModule } from '@angular/forms';
import { ItemCodeComponent } from './item-code/item-code.component';
import { InventoryRequisitionCompon... | 6 |
xxdydx/Learny-LMS | e6c2dbe | backend/utils/getUpdatedCourse.ts | TypeScript | www.github.com/xxdydx/Learny-LMS/tree/main/backend/utils/getUpdatedCourse.ts | https://raw.githubusercontent.com/xxdydx/Learny-LMS/e6c2dbe/backend/utils/getUpdatedCourse.ts | xxdydx/Learny-LMS e6c2dbe backend/utils/getUpdatedCourse.ts | true | 200 | 536 | import { Course } from "../models";
import { getCommonInclude, getCommonOrder } from "./courseFetching";
async function getUpdatedCourse(courseId: number): Promise<Course | null> {
const commonAttributes = { exclude: ["teacherId"] };
const commonInclude = getCommonInclude(false);
const commonOrder = getCommonOrd... | 1 |
starirene9/HabitTraker | 3c6a23b | src/store/store.ts | TypeScript | www.github.com/starirene9/HabitTraker/tree/main/src/store/store.ts | https://raw.githubusercontent.com/starirene9/HabitTraker/3c6a23b/src/store/store.ts | starirene9/HabitTraker 3c6a23b src/store/store.ts | true | 200 | 347 | import { configureStore } from "@reduxjs/toolkit";
import habitsReducer from "./habit-slice";
const store = configureStore({
reducer: {
habits: habitsReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
// whatever the type of getStae returns
export type AppDispatch = typeof store.dispat... | 5 |
Sraj787/ANP-C5894 | 6962387 | Project/Angular/src/app/Teacher/add-teachers/add-teachers.component.spec.ts | TypeScript | www.github.com/Sraj787/ANP-C5894/tree/main/Project/Angular/src/app/Teacher/add-teachers/add-teachers.component.spec.ts | https://raw.githubusercontent.com/Sraj787/ANP-C5894/6962387/Project/Angular/src/app/Teacher/add-teachers/add-teachers.component.spec.ts | Sraj787/ANP-C5894 6962387 Project/Angular/src/app/Teacher/add-teachers/add-teachers.component.spec.ts | true | 200 | 595 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AddTeachersComponent } from './add-teachers.component';
describe('AddTeachersComponent', () => {
let component: AddTeachersComponent;
let fixture: ComponentFixture<AddTeachersComponent>;
beforeEach(() => {
TestBed.configureTestingM... | 2 |
safely-app/Front-End-Web | 06424a5 | src/components/interfaces/IProfessional.ts | TypeScript | www.github.com/safely-app/Front-End-Web/tree/main/src/components/interfaces/IProfessional.ts | https://raw.githubusercontent.com/safely-app/Front-End-Web/06424a5/src/components/interfaces/IProfessional.ts | safely-app/Front-End-Web 06424a5 src/components/interfaces/IProfessional.ts | true | 200 | 405 | export default interface IProfessional {
userId: string;
companyName: string;
companyAddress: string;
companyAddress2: string;
billingAddress: string;
clientNumberTVA: string;
personalPhone: string;
companyPhone: string;
RCS?: string;
registrationCity?: string;
SIREN?: string... | 3 |
solarwinds/nova | 2e3d95a | packages/charts/src/core/common/scales/scale.spec.ts | TypeScript | www.github.com/solarwinds/nova/tree/main/packages/charts/src/core/common/scales/scale.spec.ts | https://raw.githubusercontent.com/solarwinds/nova/2e3d95a/packages/charts/src/core/common/scales/scale.spec.ts | solarwinds/nova 2e3d95a packages/charts/src/core/common/scales/scale.spec.ts | true | 200 | 2,138 | // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy... | 7 |
teddy-bersentes/youtube-transcribe | 9ca93f4 | src/store.ts | TypeScript | www.github.com/teddy-bersentes/youtube-transcribe/tree/main/src/store.ts | https://raw.githubusercontent.com/teddy-bersentes/youtube-transcribe/9ca93f4/src/store.ts | teddy-bersentes/youtube-transcribe 9ca93f4 src/store.ts | true | 200 | 1,829 | import { create } from 'zustand'
import { videoInfo as VideoInfo } from 'ytdl-core'
import { nanoid } from 'nanoid'
import { createJSONStorage, persist } from 'zustand/middleware'
import { LocalStorage } from '@raycast/api'
export type Status = {
status: 'loading'
type: 'downloading' | 'transcribing'
} | {
status: ... | 0 |
remcolakens/next-boilerplate | 43cd6b6 | playwright.config.ts | TypeScript | www.github.com/remcolakens/next-boilerplate/tree/main/playwright.config.ts | https://raw.githubusercontent.com/remcolakens/next-boilerplate/43cd6b6/playwright.config.ts | remcolakens/next-boilerplate 43cd6b6 playwright.config.ts | true | 200 | 1,067 | import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testMatch: 'e2e/*.spec.ts',
testDir: 'e2e',
reporter: [['html', { open: 'never', outputFolder: 'e2e/report' }]],
outputDir: 'e2e/test-results/',
workers: process.env.CI ? 1 : undefined,
fullyParallel: true,
forbidOnly: pro... | 4 |
itpure-fun/itpure-fun-web | 29698d3 | composables/useHttp.ts | TypeScript | www.github.com/itpure-fun/itpure-fun-web/tree/main/composables/useHttp.ts | https://raw.githubusercontent.com/itpure-fun/itpure-fun-web/29698d3/composables/useHttp.ts | itpure-fun/itpure-fun-web 29698d3 composables/useHttp.ts | true | 200 | 4,535 | // 引入了nuxt/app模块中的UseFetchOptions类型,UseFetchOptions类型是一个用于配置请求选项的接口或类型
import type { UseFetchOptions } from "nuxt/app";
import { v4 as uuid } from "uuid"
// HTTP 请求的方法
type Methods = "GET" | "POST" | "DELETE" | "PUT";
// 请求结果数据格式
export interface IResultData<T> {
code: number;
data: T;
msg: string;
}
/... | 6 |
gtt6200/angular | 64136b0 | angular/05-heroesApp/src/app/heroes/services/heroes.service.ts | TypeScript | www.github.com/gtt6200/angular/tree/main/angular/05-heroesApp/src/app/heroes/services/heroes.service.ts | https://raw.githubusercontent.com/gtt6200/angular/64136b0/angular/05-heroesApp/src/app/heroes/services/heroes.service.ts | gtt6200/angular 64136b0 angular/05-heroesApp/src/app/heroes/services/heroes.service.ts | true | 200 | 1,162 | import { Injectable } from '@angular/core';
import { HttpClient} from '@angular/common/http';
import { Heroe } from '../interfaces/heroes.interface';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
export class HeroesService {
priv... | 1 |
shafeek786/diebit | 5710936 | src/app/services/simple-web-rtc.service.spec.ts | TypeScript | www.github.com/shafeek786/diebit/tree/main/src/app/services/simple-web-rtc.service.spec.ts | https://raw.githubusercontent.com/shafeek786/diebit/5710936/src/app/services/simple-web-rtc.service.spec.ts | shafeek786/diebit 5710936 src/app/services/simple-web-rtc.service.spec.ts | true | 200 | 389 | import { TestBed } from '@angular/core/testing';
import { SimpleWebRTCService } from './simple-web-rtc.service';
describe('SimpleWebRTCService', () => {
let service: SimpleWebRTCService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(SimpleWebRTCService);
});
it('sho... | 5 |
tchawou-daniel/Master-sEndProject-BackEnd | 92f77fd | dist/src/employment/employment.repository.d.ts | TypeScript | www.github.com/tchawou-daniel/Master-sEndProject-BackEnd/tree/main/dist/src/employment/employment.repository.d.ts | https://raw.githubusercontent.com/tchawou-daniel/Master-sEndProject-BackEnd/92f77fd/dist/src/employment/employment.repository.d.ts | tchawou-daniel/Master-sEndProject-BackEnd 92f77fd dist/src/employment/employment.repository.d.ts | true | 200 | 669 | import { User } from '@api/auth/user.entity';
import { Company } from '@api/company/company.entity';
import { CreateEmploymentDto } from '@api/employment/dto/create-employment.dto';
import { GetEmploymentsFilterDto } from '@api/employment/dto/get-employments-filter.dto';
import { Employment } from '@api/employment/empl... | 3 |
schradermade/hotspotti | fae4989 | common/src/constants/tag.ts | TypeScript | www.github.com/schradermade/hotspotti/tree/main/common/src/constants/tag.ts | https://raw.githubusercontent.com/schradermade/hotspotti/fae4989/common/src/constants/tag.ts | schradermade/hotspotti fae4989 common/src/constants/tag.ts | true | 200 | 494 | export enum Tag {
FamilyFriendly = 'Family Friendly',
Romantic = 'Romantic',
Adventure = 'Adventure',
Cultural = 'Cultural',
HiddenGem = 'Hidden Gem',
Luxury = 'Luxury',
BudgetFriendly = 'Budget Friendly',
Scenic = 'Scenic',
PetFriendly = 'Pet Friendly',
Outdoor = 'Outdoor',
Indoor = 'Indoor',
P... | 7 |
cibucristi/rage-adrian | 64364fa | src/client/scripts/interactmenu.ts | TypeScript | www.github.com/cibucristi/rage-adrian/tree/main/src/client/scripts/interactmenu.ts | https://raw.githubusercontent.com/cibucristi/rage-adrian/64364fa/src/client/scripts/interactmenu.ts | cibucristi/rage-adrian 64364fa src/client/scripts/interactmenu.ts | true | 200 | 3,564 | import { INTERACT_TYPES, RAGE_CLIENT_EVENTS, RAGE_GENERAL_EVENTS } from "@shared/constants";
/* ---- VARIABLES ---- */
let interact_menu_game_ui: any = null;
let type_interact_menu: number = -1;
let camera_interact_menu: any = null;
/* ---- EVENTS ---- */
mp.events.add(RAGE_CLIENT_EVENTS.SHOW_CLIENT_INTERACT_MENU, (... | 0 |
MihPar/TypeORM_in_SQL | 01794c2 | test/__tests__/quiz/toCheckCount.e2e.test.ts | TypeScript | www.github.com/MihPar/TypeORM_in_SQL/tree/main/test/__tests__/quiz/toCheckCount.e2e.test.ts | https://raw.githubusercontent.com/MihPar/TypeORM_in_SQL/01794c2/test/__tests__/quiz/toCheckCount.e2e.test.ts | MihPar/TypeORM_in_SQL 01794c2 test/__tests__/quiz/toCheckCount.e2e.test.ts | true | 200 | 15,350 | import { HttpStatus, INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import { AppModule } from '../../../../src/app.module';
import request from 'supertest';
import { appSettings } from '../../../../src/setting';
import { PairQuizGame } from '../../../../src/pairQuizGame... | 4 |
iilnatan/Dinamic-FrontEnd | 47c943a | src/app/service/s-educacion.service.ts | TypeScript | www.github.com/iilnatan/Dinamic-FrontEnd/tree/main/src/app/service/s-educacion.service.ts | https://raw.githubusercontent.com/iilnatan/Dinamic-FrontEnd/47c943a/src/app/service/s-educacion.service.ts | iilnatan/Dinamic-FrontEnd 47c943a src/app/service/s-educacion.service.ts | true | 200 | 1,040 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import { Educacion } from '../model/educacion';
@Injectable({
providedIn: 'root'
})
export class SEducacionService {
edUrl = ... | 6 |
tapuru/random-chess | a386c0e | client/src/entities/game/model/game-slice.ts | TypeScript | www.github.com/tapuru/random-chess/tree/main/client/src/entities/game/model/game-slice.ts | https://raw.githubusercontent.com/tapuru/random-chess/a386c0e/client/src/entities/game/model/game-slice.ts | tapuru/random-chess a386c0e client/src/entities/game/model/game-slice.ts | true | 200 | 3,036 | import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { Game } from "../types/game";
import { GameSettings } from "../types/game-settings";
import { ChessColors } from "@/shared/types/chess-colors";
import { GameModes } from "@/shared/types/game-modes";
import { GameTypes } from "@/shared/types/game-typ... | 2 |
shardus/relayer-distributor | af1fa98 | src/dbstore/receipts.ts | TypeScript | www.github.com/shardus/relayer-distributor/tree/main/src/dbstore/receipts.ts | https://raw.githubusercontent.com/shardus/relayer-distributor/af1fa98/src/dbstore/receipts.ts | shardus/relayer-distributor af1fa98 src/dbstore/receipts.ts | true | 200 | 9,224 | import { Signature } from '@shardus/crypto-utils'
import * as db from './sqlite3storage'
import { receiptDatabase } from '.'
import * as Logger from '../Logger'
import { config } from '../Config'
import { DeSerializeFromJsonString } from '../utils/serialization'
import { AccountsCopy } from '../dbstore/accounts'
expor... | 1 |
IsaacInsoll/PICR | 9bb5118 | backend/helpers/folderIsUnderFolderId.ts | TypeScript | www.github.com/IsaacInsoll/PICR/tree/main/backend/helpers/folderIsUnderFolderId.ts | https://raw.githubusercontent.com/IsaacInsoll/PICR/9bb5118/backend/helpers/folderIsUnderFolderId.ts | IsaacInsoll/PICR 9bb5118 backend/helpers/folderIsUnderFolderId.ts | true | 200 | 461 | import FolderModel from '../db/FolderModel';
export const folderIsUnderFolderId = async (
child: FolderModel,
parentId: number,
): Promise<boolean> => {
if (!child || !parentId) return false;
if (child.id == parentId) {
return true;
}
if (!child.parentId) return false;
const childParent = await Folde... | 5 |
pipe1204/circhoolar | 0ca73b1 | lib/use-follow-pointer.ts | TypeScript | www.github.com/pipe1204/circhoolar/tree/main/lib/use-follow-pointer.ts | https://raw.githubusercontent.com/pipe1204/circhoolar/0ca73b1/lib/use-follow-pointer.ts | pipe1204/circhoolar 0ca73b1 lib/use-follow-pointer.ts | true | 200 | 887 | import { useState, RefObject, useEffect } from "react";
export function useFollowPointer(ref: RefObject<HTMLElement>) {
const [point, setPoint] = useState({ x: 0, y: 0 });
useEffect(() => {
const handlePointerMove = ({ clientX, clientY }: MouseEvent) => {
if (!ref.current) return;
const cardRect ... | 7 |
bakaiandrii/nest-project | b308df2 | src/post/post.controller.ts | TypeScript | www.github.com/bakaiandrii/nest-project/tree/main/src/post/post.controller.ts | https://raw.githubusercontent.com/bakaiandrii/nest-project/b308df2/src/post/post.controller.ts | bakaiandrii/nest-project b308df2 src/post/post.controller.ts | true | 200 | 964 | import { Body, Controller, Post, UploadedFile, UseInterceptors } from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { ApiBody, ApiConsumes, ApiTags } from '@nestjs/swagger';
import { CreatePostDto } from './dto/create-post.dto';
import { PostService } from './post.service';
@Cont... | 0 |
victoriaaa111/backend | 845a3f8 | src/auth/dtos/change-password.dto.ts | TypeScript | www.github.com/victoriaaa111/backend/tree/main/src/auth/dtos/change-password.dto.ts | https://raw.githubusercontent.com/victoriaaa111/backend/845a3f8/src/auth/dtos/change-password.dto.ts | victoriaaa111/backend 845a3f8 src/auth/dtos/change-password.dto.ts | true | 200 | 446 | import { IsString } from 'class-validator';
import { Matches, MinLength } from 'class-validator';
export class ChangePasswordDto {
@IsString()
oldPassword: string;
@IsString()
@MinLength(6)
@MinLength(8)
@Matches(/^(?=.*[A-Z])(?=.*[0-9])(?=.*[@$!%*?&])/, {
message:
'Password must be at least 8 ... | 3 |
arthurgubaidullin/express-mysql-test-task-21-06-2023 | 6ac93ba | apps/rest-e2e/src/rest/auth/sign-up.spec.ts | TypeScript | www.github.com/arthurgubaidullin/express-mysql-test-task-21-06-2023/tree/main/apps/rest-e2e/src/rest/auth/sign-up.spec.ts | https://raw.githubusercontent.com/arthurgubaidullin/express-mysql-test-task-21-06-2023/6ac93ba/apps/rest-e2e/src/rest/auth/sign-up.spec.ts | arthurgubaidullin/express-mysql-test-task-21-06-2023 6ac93ba apps/rest-e2e/src/rest/auth/sign-up.spec.ts | true | 200 | 730 | import axios from 'axios';
import * as Email from './email';
describe('POST /signup', () => {
it('should sign up a user', async () => {
const res = await axios.post(`/signup`, {
id: Email.generate(),
password: 'abcdef12345',
});
expect(res.status).toBe(201);
expect(res.data.result.access... | 6 |
bischoff-m/desk-wizard-app | 3d364b9 | packages/desk-wizard-app/src/widgets/Wallpaper/types.ts | TypeScript | www.github.com/bischoff-m/desk-wizard-app/tree/main/packages/desk-wizard-app/src/widgets/Wallpaper/types.ts | https://raw.githubusercontent.com/bischoff-m/desk-wizard-app/3d364b9/packages/desk-wizard-app/src/widgets/Wallpaper/types.ts | bischoff-m/desk-wizard-app 3d364b9 packages/desk-wizard-app/src/widgets/Wallpaper/types.ts | true | 200 | 586 | export type Vector2D = {
x: number;
y: number;
};
export type Size = {
w: number;
h: number;
};
export type AnimationSettings = {
animate: boolean;
fps?: number;
};
export type Rect = Size & Vector2D;
export type ScreenInfo = {
realSize: Size;
virtual: Rect;
// This is set manually
boundingRect:... | 4 |
j3lte/rdw-data | 3cc9d85 | src/providers/TestProducerApi.ts | TypeScript | www.github.com/j3lte/rdw-data/tree/main/src/providers/TestProducerApi.ts | https://raw.githubusercontent.com/j3lte/rdw-data/3cc9d85/src/providers/TestProducerApi.ts | j3lte/rdw-data 3cc9d85 src/providers/TestProducerApi.ts | true | 200 | 4,662 | // *******************************************************
//
// Name: Test_Producer_API
//
// Category: Unknown
// Link: https://opendata.rdw.nl/dataset/Test_Producer_API/sgwh-cvkk
// Permalink: https://opendata.rdw.nl/d/sgwh-cvkk
// Owner: BICC
// Creator: BICC
//
// **************************************************... | 2 |
YadhuKrishna02/JobPortal | 5605f51 | backend/src/frameworks/database/mongoDB/repositories/userRepositoryMongoDB.ts | TypeScript | www.github.com/YadhuKrishna02/JobPortal/tree/main/backend/src/frameworks/database/mongoDB/repositories/userRepositoryMongoDB.ts | https://raw.githubusercontent.com/YadhuKrishna02/JobPortal/5605f51/backend/src/frameworks/database/mongoDB/repositories/userRepositoryMongoDB.ts | YadhuKrishna02/JobPortal 5605f51 backend/src/frameworks/database/mongoDB/repositories/userRepositoryMongoDB.ts | true | 200 | 969 | import { GoogleUserInteface } from '../../../../types/googleUserInterface';
import { CreateUserInterface } from '../../../../types/userInterface';
import User from '../models/userModel';
export const userRepositoryMongoDB = () => {
const getUserByEmail = async (email: string) => {
const user: CreateUserInterface... | 1 |
mdrianislam0or1/generates-short-urls-backend | d1f8f07 | src/app.ts | TypeScript | www.github.com/mdrianislam0or1/generates-short-urls-backend/tree/main/src/app.ts | https://raw.githubusercontent.com/mdrianislam0or1/generates-short-urls-backend/d1f8f07/src/app.ts | mdrianislam0or1/generates-short-urls-backend d1f8f07 src/app.ts | true | 200 | 672 | import { Application } from "express";
import express, { Request, Response } from "express";
import cors from "cors";
import errorHandler from "./app/middleware/errorHandler";
import router from "./app/routers";
const app: Application = express();
app.use(express.json());
app.use(
cors({
// origin: "http://loca... | 7 |
PachakalaKiranKumar/Angular | f902548 | Angular Practice/firstapp/src/app/middlepart/middlepart.component.spec.ts | TypeScript | www.github.com/PachakalaKiranKumar/Angular/tree/main/Angular Practice/firstapp/src/app/middlepart/middlepart.component.spec.ts | https://raw.githubusercontent.com/PachakalaKiranKumar/Angular/f902548/Angular%20Practice/firstapp/src/app/middlepart/middlepart.component.spec.ts | PachakalaKiranKumar/Angular f902548 Angular Practice/firstapp/src/app/middlepart/middlepart.component.spec.ts | true | 200 | 627 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MiddlepartComponent } from './middlepart.component';
describe('MiddlepartComponent', () => {
let component: MiddlepartComponent;
let fixture: ComponentFixture<MiddlepartComponent>;
beforeEach(async () => {
await TestBed.configureTe... | 0 |
Mcbeer/fridge-spy | 84494a8 | apis/product-service/src/lib/productType/removeProductType.ts | TypeScript | www.github.com/Mcbeer/fridge-spy/tree/main/apis/product-service/src/lib/productType/removeProductType.ts | https://raw.githubusercontent.com/Mcbeer/fridge-spy/84494a8/apis/product-service/src/lib/productType/removeProductType.ts | Mcbeer/fridge-spy 84494a8 apis/product-service/src/lib/productType/removeProductType.ts | true | 200 | 851 | import { getRequestParams, respond } from "@fridgespy/express-helpers";
import { productLogger } from "@fridgespy/logging";
import { perhaps } from "@fridgespy/utils";
import { Request, Response } from "express";
import { appCache, appEvents } from "../..";
import { removeProductTypeById } from "../../database/product_... | 3 |
faarhaan10/t3-gallery | 63a09bb | src/server/db/schema.ts | TypeScript | www.github.com/faarhaan10/t3-gallery/tree/main/src/server/db/schema.ts | https://raw.githubusercontent.com/faarhaan10/t3-gallery/63a09bb/src/server/db/schema.ts | faarhaan10/t3-gallery 63a09bb src/server/db/schema.ts | true | 200 | 1,689 | // Example model schema from the Drizzle docs
// https://orm.drizzle.team/docs/sql-schema-declaration
import { sql } from "drizzle-orm";
import {
index,
pgTableCreator,
serial,
timestamp,
text,
varchar,
uniqueIndex,
} from "drizzle-orm/pg-core";
/**
* This is an example of how to use the multi-project... | 6 |
MinCun310/typescript | aab8221 | projects/lesson_39_abstract_class/lesson39.ts | TypeScript | www.github.com/MinCun310/typescript/tree/main/projects/lesson_39_abstract_class/lesson39.ts | https://raw.githubusercontent.com/MinCun310/typescript/aab8221/projects/lesson_39_abstract_class/lesson39.ts | MinCun310/typescript aab8221 projects/lesson_39_abstract_class/lesson39.ts | true | 200 | 1,659 | // 1 abstract class có thể chứa:
// - 1 hoặc nhiều 'normal' method
// - 1 hoặc nhiều abstract method: đối với loại này, không chứa phần body, chỉ định nghĩa tên method
abstract class lesson39 {
private firstName: string
private lastName: string
constructor(firstName: string, lastName: string) {
th... | 4 |
JSMC418/inlaze-movies | 3a39766 | server/src/users/users.controller.ts | TypeScript | www.github.com/JSMC418/inlaze-movies/tree/main/server/src/users/users.controller.ts | https://raw.githubusercontent.com/JSMC418/inlaze-movies/3a39766/server/src/users/users.controller.ts | JSMC418/inlaze-movies 3a39766 server/src/users/users.controller.ts | true | 200 | 486 | import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
import { UsersService } from './users.service';
@Controller('users')
export class UsersController {
constructor(private usersService: UsersService) {}
@Get()
list() {
return 'all users'
}
@Post()
create() {
r... | 5 |
SilviuCPopa/maco-ng-template | 4921545 | projects/maco-ng-template/src/lib/form/services/form-type-mapping.service.ts | TypeScript | www.github.com/SilviuCPopa/maco-ng-template/tree/main/projects/maco-ng-template/src/lib/form/services/form-type-mapping.service.ts | https://raw.githubusercontent.com/SilviuCPopa/maco-ng-template/4921545/projects/maco-ng-template/src/lib/form/services/form-type-mapping.service.ts | SilviuCPopa/maco-ng-template 4921545 projects/maco-ng-template/src/lib/form/services/form-type-mapping.service.ts | true | 200 | 2,116 | import { Type, Injectable } from '@angular/core';
import { FormViewTextitemComponent } from '../form-items/form-view-textitem/form-view-textitem.component';
import { FormItemType } from '../models/form-type.enum';
import { FormViewHiddenItemComponent } from '../form-items/form-view-hiddenitem.component';
import { FormV... | 2 |
tungphan311/reminato | a16a1a0 | video-app-api/src/routes/video.ts | TypeScript | www.github.com/tungphan311/reminato/tree/main/video-app-api/src/routes/video.ts | https://raw.githubusercontent.com/tungphan311/reminato/a16a1a0/video-app-api/src/routes/video.ts | tungphan311/reminato a16a1a0 video-app-api/src/routes/video.ts | true | 200 | 308 | import { Router } from "express";
import * as VideoController from "../controllers/video";
import { validVideoUrl } from "../middlewares/video";
const router: Router = Router();
router.post("/", validVideoUrl, VideoController.saveVideo);
router.get("/", VideoController.getVideos);
export default router;
| 1 |
zoft-projects/fashionBackend | 8801d64 | app.ts | TypeScript | www.github.com/zoft-projects/fashionBackend/tree/main/app.ts | https://raw.githubusercontent.com/zoft-projects/fashionBackend/8801d64/app.ts | zoft-projects/fashionBackend 8801d64 app.ts | true | 200 | 1,548 | import dotenv from 'dotenv';
dotenv.config();
import express, { Application } from 'express';
import cors from 'cors';
import bodyParser from 'body-parser';
import http from 'http';
import { Server } from 'socket.io';
import connectToDB from './src/database/db';
const app: Application = express();
const server: http.S... | 7 |
dfstio/minanft-cli | d3b890a | src/model/fileData.ts | TypeScript | www.github.com/dfstio/minanft-cli/tree/main/src/model/fileData.ts | https://raw.githubusercontent.com/dfstio/minanft-cli/d3b890a/src/model/fileData.ts | dfstio/minanft-cli d3b890a src/model/fileData.ts | true | 200 | 652 | import { MerkleTree, Field } from "o1js";
export type FileType =
| "account"
| "name"
| "nft"
| "rollup.nft"
| "request"
| "map"
| "result"
| "proof"
| "rollup.proof"
| "mask"
| "jwt";
export interface FileData {
filename: string;
type: FileType;
timestamp: number;
iv?: string;
// esli... | 3 |
aysenuraydin/store-Angular | fbb53f6 | src/app/product/product.component.ts | TypeScript | www.github.com/aysenuraydin/store-Angular/tree/main/src/app/product/product.component.ts | https://raw.githubusercontent.com/aysenuraydin/store-Angular/fbb53f6/src/app/product/product.component.ts | aysenuraydin/store-Angular fbb53f6 src/app/product/product.component.ts | true | 200 | 1,859 | import { Component, Input, OnInit } from '@angular/core';
import { ProductList } from '../models/productList';
import { ProductService } from '../services/product.service';
import { FavService } from '../services/fav.service';
import { RecentlyService } from '../services/recently.service';
import { ActivatedRoute, Rout... | 0 |
Hamikhosravi/innoscripta | 89d6efc | src/hooks/useGuardianApiData.ts | TypeScript | www.github.com/Hamikhosravi/innoscripta/tree/main/src/hooks/useGuardianApiData.ts | https://raw.githubusercontent.com/Hamikhosravi/innoscripta/89d6efc/src/hooks/useGuardianApiData.ts | Hamikhosravi/innoscripta 89d6efc src/hooks/useGuardianApiData.ts | true | 200 | 2,137 | import {useQuery} from "react-query";
import {newsApiRequest3} from '../utility/axios-utils';
import {DatesPicker} from '../interface/DatesPicker';
import formatDate from "../plugins/changeDateFormat";
import noImage from "../assets/noImage.jpg";
import {useCallback} from 'react';
type FetchedDataFilters = {
categ... | 6 |
tambatrahul/channelitix-react | 49266cb | src/app/components/pages/tour_program/form_elements/tour_type_select/tour-type-select.component.ts | TypeScript | www.github.com/tambatrahul/channelitix-react/tree/main/src/app/components/pages/tour_program/form_elements/tour_type_select/tour-type-select.component.ts | https://raw.githubusercontent.com/tambatrahul/channelitix-react/49266cb/src/app/components/pages/tour_program/form_elements/tour_type_select/tour-type-select.component.ts | tambatrahul/channelitix-react 49266cb src/app/components/pages/tour_program/form_elements/tour_type_select/tour-type-select.component.ts | true | 200 | 920 | import {Component, Input} from "@angular/core";
import {BaseSelectComponent} from "../../../../form_elements/base-select.component";
import {AuthService} from "../../../../../services/AuthService";
import {AppConstants} from "../../../../../app.constants";
@Component({
selector: 'tour-type-select',
templateUrl... | 4 |
liar88828/elysiajs-prisma | 97c061f | src/index.ts | TypeScript | www.github.com/liar88828/elysiajs-prisma/tree/main/src/index.ts | https://raw.githubusercontent.com/liar88828/elysiajs-prisma/97c061f/src/index.ts | liar88828/elysiajs-prisma 97c061f src/index.ts | true | 200 | 836 | import { Elysia } from "elysia"
import { userController } from "./controller/user"
import { transactionController } from "./controller/transaction.controller"
import { productController } from "./controller/product/product"
import { authController } from "./controller/auth.controller"
import { postController } from "./... | 7 |
eac-nathan-price/nathan-and-winnie | efc2cdb | libs/nw/feature-cardify/src/lib/cardify.component.spec.ts | TypeScript | www.github.com/eac-nathan-price/nathan-and-winnie/tree/main/libs/nw/feature-cardify/src/lib/cardify.component.spec.ts | https://raw.githubusercontent.com/eac-nathan-price/nathan-and-winnie/efc2cdb/libs/nw/feature-cardify/src/lib/cardify.component.spec.ts | eac-nathan-price/nathan-and-winnie efc2cdb libs/nw/feature-cardify/src/lib/cardify.component.spec.ts | true | 200 | 594 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CardifyComponent } from './cardify.component';
describe('CardifyComponent', () => {
let component: CardifyComponent;
let fixture: ComponentFixture<CardifyComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... | 2 |
pobittra1/revise-all-about-typescript | f9a1170 | src/function-with-types-in-typescript.ts | TypeScript | www.github.com/pobittra1/revise-all-about-typescript/tree/main/src/function-with-types-in-typescript.ts | https://raw.githubusercontent.com/pobittra1/revise-all-about-typescript/f9a1170/src/function-with-types-in-typescript.ts | pobittra1/revise-all-about-typescript f9a1170 src/function-with-types-in-typescript.ts | true | 200 | 466 | {
//function with type in typescripts
{
//normal function
function addition(numOne: number, numTwo: number): number {
return numOne + numTwo;
}
const resultOfAddition = addition(12, 5);
console.log(resultOfAddition);
}
{
//arrow function
const substraction = (numOne: number, nu... | 3 |
damienguezou/sport-event | 813294d | packages/backend/src/mapper/event.mapper.ts | TypeScript | www.github.com/damienguezou/sport-event/tree/main/packages/backend/src/mapper/event.mapper.ts | https://raw.githubusercontent.com/damienguezou/sport-event/813294d/packages/backend/src/mapper/event.mapper.ts | damienguezou/sport-event 813294d packages/backend/src/mapper/event.mapper.ts | true | 200 | 919 | import { EventDTO } from 'dto/event.dto';
import { EventEntity } from 'src/entities/event.entity';
import { Mapper } from './mapper.interface';
export class EventMapper implements Mapper<EventEntity, EventDTO> {
toDto(
{ id, name, dateBegin, dateEnd, description, address }: EventEntity,
populate = true,
):... | 1 |
AndersPaulino/pizzariaapp | 3d065d8 | pizzaria-front/pizzaria-front/src/app/models/pizza/pizza.spec.ts | TypeScript | www.github.com/AndersPaulino/pizzariaapp/tree/main/pizzaria-front/pizzaria-front/src/app/models/pizza/pizza.spec.ts | https://raw.githubusercontent.com/AndersPaulino/pizzariaapp/3d065d8/pizzaria-front/pizzaria-front/src/app/models/pizza/pizza.spec.ts | AndersPaulino/pizzariaapp 3d065d8 pizzaria-front/pizzaria-front/src/app/models/pizza/pizza.spec.ts | true | 200 | 1,987 | import { Pizza } from 'src/app/models/pizza/pizza';
import { Sabor } from 'src/app/models/sabor/sabor';
describe('Pizza', () => {
let pizza: Pizza;
beforeEach(() => {
pizza = new Pizza();
});
it('should create an instance', () => {
expect(pizza).toBeTruthy();
});
it('should have properties', () ... | 5 |
solomatinatatyana/react-burger | 5a2840e | src/services/actions/burger-constructor.ts | TypeScript | www.github.com/solomatinatatyana/react-burger/tree/main/src/services/actions/burger-constructor.ts | https://raw.githubusercontent.com/solomatinatatyana/react-burger/5a2840e/src/services/actions/burger-constructor.ts | solomatinatatyana/react-burger 5a2840e src/services/actions/burger-constructor.ts | true | 200 | 1,807 | import {
IAddIngredient,
IDeleteIngredient,
IMoveIngredient, IResetBurgerConstructor,
IUpdateBun,
IUpdateSelectedOtherIngredients
} from "../action-types/burger-constructor";
export const ADD_INGREDIENT = 'ADD_INGREDIENT';
export const DELETE_INGREDIENT = 'DELETE_INGREDIENT';
export const UPDATE_BU... | 0 |
ducduy10k/angularPipes | 93d15b9 | src/app/top-record.pipe.ts | TypeScript | www.github.com/ducduy10k/angularPipes/tree/main/src/app/top-record.pipe.ts | https://raw.githubusercontent.com/ducduy10k/angularPipes/93d15b9/src/app/top-record.pipe.ts | ducduy10k/angularPipes 93d15b9 src/app/top-record.pipe.ts | true | 200 | 282 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'topRecord',
pure: true,
})
export class TopRecordPipe implements PipeTransform {
transform(value: any[], ...args: number[]): any[] {
const [top] = args;
return [...value].splice(0, top) || [];
}
}
| 6 |
weareedt/jdn-sts | bffd7bd | src/hooks/useConversation.ts | TypeScript | www.github.com/weareedt/jdn-sts/tree/main/src/hooks/useConversation.ts | https://raw.githubusercontent.com/weareedt/jdn-sts/bffd7bd/src/hooks/useConversation.ts | weareedt/jdn-sts bffd7bd src/hooks/useConversation.ts | true | 200 | 21,749 | import { useCallback, useRef, useState, useEffect, MutableRefObject } from 'react';
import { RealtimeClient } from '@openai/realtime-api-beta';
import { WavRecorder, WavStreamPlayer } from '../lib/wavtools/index.js';
import { instructions } from '../utils/conversation_config.js';
import { ConsoleState, UseConversationR... | 4 |
Strxng/produto-x | b24d0b5 | screens/AugmentedRealityScreen/styles.ts | TypeScript | www.github.com/Strxng/produto-x/tree/main/screens/AugmentedRealityScreen/styles.ts | https://raw.githubusercontent.com/Strxng/produto-x/b24d0b5/screens/AugmentedRealityScreen/styles.ts | Strxng/produto-x b24d0b5 screens/AugmentedRealityScreen/styles.ts | true | 200 | 919 | import { ITheme } from "@/configs/theme";
import styled from "styled-components/native";
import { Image } from "expo-image";
export const Screenshot = styled(Image)<{ theme: ITheme }>`
position: absolute;
width: 100%;
height: 100%;
`;
// Step styles
export const StepContainer = styled.View`
position: absolut... | 2 |
Sundaramkrsingh/Daily-Doer | f571965 | common/src/index.ts | TypeScript | www.github.com/Sundaramkrsingh/Daily-Doer/tree/main/common/src/index.ts | https://raw.githubusercontent.com/Sundaramkrsingh/Daily-Doer/f571965/common/src/index.ts | Sundaramkrsingh/Daily-Doer f571965 common/src/index.ts | true | 200 | 1,408 | import z from "zod"
export const signupInput = z.object({
name: z.string().min(5, { message: "Name must contain 5 characters" }),
email: z.string().email(),
password: z.string()
.min(8, { message: "Password must contain 8 characters" })
.max(50, { message: "Password must not... | 7 |
Ajin0331/ssy-ui-vt | 5ebbdaa | vite.config.ts | TypeScript | www.github.com/Ajin0331/ssy-ui-vt/tree/main/vite.config.ts | https://raw.githubusercontent.com/Ajin0331/ssy-ui-vt/5ebbdaa/vite.config.ts | Ajin0331/ssy-ui-vt 5ebbdaa vite.config.ts | true | 200 | 1,036 | import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { defineConfig } from 'vite'
// import { presetUno, presetAttributify, presetIcons } from "unocss";
// import Unocss from './config/unocss'
import UnoCSS from 'unocss/vite'
const rollupOptions = {
external: ['vue', 'vue-router']... | 1 |
Feliandres/ecommerce | c1c54c0 | i18n/routing.ts | TypeScript | www.github.com/Feliandres/ecommerce/tree/main/i18n/routing.ts | https://raw.githubusercontent.com/Feliandres/ecommerce/c1c54c0/i18n/routing.ts | Feliandres/ecommerce c1c54c0 i18n/routing.ts | true | 200 | 524 | import { i18n } from '@/i18n-config'
import { createNavigation } from 'next-intl/navigation'
import { defineRouting } from 'next-intl/routing'
export const routing = defineRouting({
locales: i18n.locales.map((locale) => locale.code),
defaultLocale: 'en-US',
localePrefix: 'as-needed',
pathnames: {
... | 5 |
DennyTim/ref-ts | 3cac9bc | web-framework-app/src/views/UserShow.ts | TypeScript | www.github.com/DennyTim/ref-ts/tree/main/web-framework-app/src/views/UserShow.ts | https://raw.githubusercontent.com/DennyTim/ref-ts/3cac9bc/web-framework-app/src/views/UserShow.ts | DennyTim/ref-ts 3cac9bc web-framework-app/src/views/UserShow.ts | true | 200 | 409 | import {
User,
UserProps
} from "../models/User";
import { View } from "./View";
export class UserShow extends View<User, UserProps> {
template(): string {
return `
<div>
<h1>User Form</h1>
<div>User name: ${ this.model.get('name') }</div>
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.