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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
eclipse-tractusx/portal-frontend | 758482d | src/features/apps/apiSlice.ts | TypeScript | www.github.com/eclipse-tractusx/portal-frontend/tree/main/src/features/apps/apiSlice.ts | https://raw.githubusercontent.com/eclipse-tractusx/portal-frontend/758482d/src/features/apps/apiSlice.ts | eclipse-tractusx/portal-frontend 758482d src/features/apps/apiSlice.ts | true | 200 | 7,332 | /********************************************************************************
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made a... | 2 |
Joy5k/Typescript-module-1 | 782d7ab | module-3/3.1t.ts | TypeScript | www.github.com/Joy5k/Typescript-module-1/tree/main/module-3/3.1t.ts | https://raw.githubusercontent.com/Joy5k/Typescript-module-1/782d7ab/module-3/3.1t.ts | Joy5k/Typescript-module-1 782d7ab module-3/3.1t.ts | true | 200 | 881 | {
//public properties এটা আপনাকে initialized আর this.name এর কাজ টাইপস্ক্রিপ করে দেয়
//
class Animals {
// public name: string;
// public species: string;
// public sound: string;
constructor (public name: string,public species: string,public sound: string) {
// thi... | 6 |
AnnPak/react-burger | a0f18ca | src/redux/store/ingredients/slice.ts | TypeScript | www.github.com/AnnPak/react-burger/tree/main/src/redux/store/ingredients/slice.ts | https://raw.githubusercontent.com/AnnPak/react-burger/a0f18ca/src/redux/store/ingredients/slice.ts | AnnPak/react-burger a0f18ca src/redux/store/ingredients/slice.ts | true | 200 | 1,453 | import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import { request } from "../../../utils/request";
import { INGREDIENTS_API } from "../../../utils/constants";
import { TIngredient } from "../../../utils/types";
export type TIngredientsState = {
ingredients: null | Array<TIngredient>
isLoading... | 4 |
the-akashar/InchessFitnessAdmin | 1c941a2 | src/app/services/trainer.service.ts | TypeScript | www.github.com/the-akashar/InchessFitnessAdmin/tree/main/src/app/services/trainer.service.ts | https://raw.githubusercontent.com/the-akashar/InchessFitnessAdmin/1c941a2/src/app/services/trainer.service.ts | the-akashar/InchessFitnessAdmin 1c941a2 src/app/services/trainer.service.ts | true | 200 | 655 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { response } from 'express';
import { map, Observable } from 'rxjs';
import { Trainer } from '../common/trainer';
@Injectable({
providedIn: 'root'
})
export class TrainerService {
private baseUrl = 'http://localh... | 0 |
mpfullstack/padeleo-app-nextjs | de9dda7 | src/modules/results/repositories/ResultAirtableRepository.ts | TypeScript | www.github.com/mpfullstack/padeleo-app-nextjs/tree/main/src/modules/results/repositories/ResultAirtableRepository.ts | https://raw.githubusercontent.com/mpfullstack/padeleo-app-nextjs/de9dda7/src/modules/results/repositories/ResultAirtableRepository.ts | mpfullstack/padeleo-app-nextjs de9dda7 src/modules/results/repositories/ResultAirtableRepository.ts | true | 200 | 1,083 | import { AirtableData } from '@/database/Airtable/Airtable';
import { Result } from '@/modules/results/model';
export interface ResultRepository {
updateResults(data: Result[]): Promise<Result[]>;
}
export class ResultAirtableRepository implements ResultRepository {
private database: AirtableData;
constructor(... | 7 |
yayudev/angular-animelist | 2887d39 | src/app/components/sidenav/sidenav.component.ts | TypeScript | www.github.com/yayudev/angular-animelist/tree/main/src/app/components/sidenav/sidenav.component.ts | https://raw.githubusercontent.com/yayudev/angular-animelist/2887d39/src/app/components/sidenav/sidenav.component.ts | yayudev/angular-animelist 2887d39 src/app/components/sidenav/sidenav.component.ts | true | 200 | 957 | import { ChangeDetectionStrategy, Component } from "@angular/core";
import { toSignal } from "@angular/core/rxjs-interop";
import { map } from "rxjs";
import { injectNavigationEnd } from "ngxtension/navigation-end";
import { SidenavDesktopComponent } from "../sidenav-desktop/sidenav-desktop.component";
import { Sidena... | 3 |
kamit-transient/project_service_template | 3557742 | express_tsoa_template/src/controller/eventConsumer.ts | TypeScript | www.github.com/kamit-transient/project_service_template/tree/main/express_tsoa_template/src/controller/eventConsumer.ts | https://raw.githubusercontent.com/kamit-transient/project_service_template/3557742/express_tsoa_template/src/controller/eventConsumer.ts | kamit-transient/project_service_template 3557742 express_tsoa_template/src/controller/eventConsumer.ts | true | 200 | 3,144 | import { Repository } from "typeorm";
import { UserEntity } from "../entities/user.entity";
import { dataSource } from "../databases";
import { logger } from "../utils/logger";
import { Channel, ConsumeMessage } from "amqplib";
import { TenantEntity } from "../entities/tenant.entity";
export class EventConsumerControl... | 6 |
GoogleCloudPlatform/cloud-sql-nodejs-connector | 9427007 | test/fixtures/setup-tls-server.ts | TypeScript | www.github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector/tree/main/test/fixtures/setup-tls-server.ts | https://raw.githubusercontent.com/GoogleCloudPlatform/cloud-sql-nodejs-connector/9427007/test/fixtures/setup-tls-server.ts | GoogleCloudPlatform/cloud-sql-nodejs-connector 9427007 test/fixtures/setup-tls-server.ts | true | 200 | 1,152 | // Copyright 2023 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 2 |
Mr-flyer/vue3-ts | ce4d4a9 | src/utils/storage.ts | TypeScript | www.github.com/Mr-flyer/vue3-ts/tree/main/src/utils/storage.ts | https://raw.githubusercontent.com/Mr-flyer/vue3-ts/ce4d4a9/src/utils/storage.ts | Mr-flyer/vue3-ts ce4d4a9 src/utils/storage.ts | true | 200 | 2,133 | import Cookies from "js-cookie";
/**
* window.localStorage 浏览器永久缓存
* @method set 设置永久缓存
* @method get 获取永久缓存
* @method remove 移除永久缓存
* @method clear 移除全部永久缓存
*/
export const Local = {
// 查看 v2.4.3版本更新日志
setKey(key: string) {
// @ts-ignore
return `${__NEXT_NAME__}:${key}`;
},
// 设置永久缓存
set<T>(ke... | 4 |
kazuhito-m/rdram | c6adcf9 | src/domain/tangordra/export/ProductToTangoRdraConverter.ts | TypeScript | www.github.com/kazuhito-m/rdram/tree/main/src/domain/tangordra/export/ProductToTangoRdraConverter.ts | https://raw.githubusercontent.com/kazuhito-m/rdram/c6adcf9/src/domain/tangordra/export/ProductToTangoRdraConverter.ts | kazuhito-m/rdram c6adcf9 src/domain/tangordra/export/ProductToTangoRdraConverter.ts | true | 200 | 2,637 | import StatusPartMaker from './partmaker/StatusPartMaker';
import ConditionsPartMaker from './partmaker/ConditionsPartMaker';
import VariationsPartMaker from './partmaker/VariationsPartMaker';
import InfomationsPartMaker from './partmaker/InfomationsPartMaker';
import ActorsPartMaker from './partmaker/ActorsPartMaker';... | 0 |
GauravBaviskar-99/new_ngrx_24 | f285842 | src/app/counterAPP/counter-buttons/counter-buttons.component.ts | TypeScript | www.github.com/GauravBaviskar-99/new_ngrx_24/tree/main/src/app/counterAPP/counter-buttons/counter-buttons.component.ts | https://raw.githubusercontent.com/GauravBaviskar-99/new_ngrx_24/f285842/src/app/counterAPP/counter-buttons/counter-buttons.component.ts | GauravBaviskar-99/new_ngrx_24 f285842 src/app/counterAPP/counter-buttons/counter-buttons.component.ts | true | 200 | 775 | import { Component, EventEmitter, Output } from '@angular/core';
import { Store } from '@ngrx/store';
import {
CounterDecrementAction,
CounterIncrementAction,
CounterResetAction,
} from '../CounterStore/counter.actions';
import { counterState } from '../CounterStore/counter.state';
@Component({
selector: 'app-... | 5 |
bartolo-maureen/ux-components-types | 04d0785 | packages/library/src/client/components/verification/flows/specific/kyc.ts | TypeScript | www.github.com/bartolo-maureen/ux-components-types/tree/main/packages/library/src/client/components/verification/flows/specific/kyc.ts | https://raw.githubusercontent.com/bartolo-maureen/ux-components-types/04d0785/packages/library/src/client/components/verification/flows/specific/kyc.ts | bartolo-maureen/ux-components-types 04d0785 packages/library/src/client/components/verification/flows/specific/kyc.ts | true | 200 | 585 | import { BaseVerificationFlow } from '../baseVerificationFlow'
import { SumSub } from '../../providers/sumsub/sumSub'
import { IKyiResponse } from '../../types/interfaces/IKyiResponse'
import { SumSubOptionValidator } from '../../providers/sumsub/sumSubOptionValidator'
export class KYC extends BaseVerificationFlow<Sum... | 7 |
taykachess/chess-online-server | 16bf4de | sockets/providers/game/onDrawDecline.ts | TypeScript | www.github.com/taykachess/chess-online-server/tree/main/sockets/providers/game/onDrawDecline.ts | https://raw.githubusercontent.com/taykachess/chess-online-server/16bf4de/sockets/providers/game/onDrawDecline.ts | taykachess/chess-online-server 16bf4de sockets/providers/game/onDrawDecline.ts | true | 200 | 917 | import { getGame, setLastOfferDrawStatus } from '../../global/games'
import { io } from '../../global/io'
import { GAME_ROOM } from '../../variables/redisIndex'
import type { SocketType } from '../../types/sockets'
export async function onDrawDecline(this: SocketType, { gameId }: { gameId: string }) {
const socket... | 3 |
brayden-wong/munchies-server | 7ed32d6 | src/modules/sessions/sessions.service.ts | TypeScript | www.github.com/brayden-wong/munchies-server/tree/main/src/modules/sessions/sessions.service.ts | https://raw.githubusercontent.com/brayden-wong/munchies-server/7ed32d6/src/modules/sessions/sessions.service.ts | brayden-wong/munchies-server 7ed32d6 src/modules/sessions/sessions.service.ts | true | 200 | 3,123 | import { HttpException, HttpStatus, Inject, Injectable } from "@nestjs/common";
import { Database, InjectDrizzle, sessions } from "../drizzle";
import type {
CreateSessionParams,
UpdateSessionParams,
} from "./sessions.types";
import { eq } from "drizzle-orm";
import { cuid } from "@/utils";
import { HashService } ... | 2 |
Achaak/pikas | d24a9c3 | packages/utils/hooks/src/index.ts | TypeScript | www.github.com/Achaak/pikas/tree/main/packages/utils/hooks/src/index.ts | https://raw.githubusercontent.com/Achaak/pikas/d24a9c3/packages/utils/hooks/src/index.ts | Achaak/pikas d24a9c3 packages/utils/hooks/src/index.ts | true | 200 | 405 | import { MutableRefObject, Ref, RefCallback, useCallback } from 'react';
export const useMergedRef = <T>(...refs: Array<Ref<T>>): RefCallback<T> =>
useCallback((element: T) => {
for (const ref of refs) {
if (typeof ref === 'function') {
ref(element);
} else if (ref && typeof ref === 'object')... | 6 |
Capyton/capy-cloud-frontend | 769f29f | src/components/UIProvider/Font.styles.ts | TypeScript | www.github.com/Capyton/capy-cloud-frontend/tree/main/src/components/UIProvider/Font.styles.ts | https://raw.githubusercontent.com/Capyton/capy-cloud-frontend/769f29f/src/components/UIProvider/Font.styles.ts | Capyton/capy-cloud-frontend 769f29f src/components/UIProvider/Font.styles.ts | true | 200 | 396 | import { css } from '@emotion/react';
export const font = () => css`
@font-face {
font-family: 'Roboto Flex';
font-style: normal;
font-weight: 100 1000;
src: url('/fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}
@font-face {
font-family: 'Climate Crisis';
src: url('/fonts/Cli... | 4 |
FrancoAvolio/nest-tasks-app | 8be10f9 | src/tasks/tasks.controller.ts | TypeScript | www.github.com/FrancoAvolio/nest-tasks-app/tree/main/src/tasks/tasks.controller.ts | https://raw.githubusercontent.com/FrancoAvolio/nest-tasks-app/8be10f9/src/tasks/tasks.controller.ts | FrancoAvolio/nest-tasks-app 8be10f9 src/tasks/tasks.controller.ts | true | 200 | 659 | import { Controller, Delete, Get, Patch, Post, Put } from '@nestjs/common';
import { TasksService } from './tasks.service';
@Controller({})
export class TaskController {
tasksService: TasksService;
constructor(tasksService: TasksService) {
this.tasksService = tasksService;
}
@Get('/tasks')
getAllTasks()... | 0 |
michele-di-corato/tabs-project | ff24912 | src/app/shared/services/celebrities.service.ts | TypeScript | www.github.com/michele-di-corato/tabs-project/tree/main/src/app/shared/services/celebrities.service.ts | https://raw.githubusercontent.com/michele-di-corato/tabs-project/ff24912/src/app/shared/services/celebrities.service.ts | michele-di-corato/tabs-project ff24912 src/app/shared/services/celebrities.service.ts | true | 200 | 2,661 | import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable, first, map, switchMap, tap } from 'rxjs';
import { environment } from 'src/environments/environment';
import { CelebrityList } from '../interfaces/celebrities.interface';
impo... | 5 |
josh161001/api_turing-ia | fb326e5 | src/modules/imagenes/helpers/upload.helper.ts | TypeScript | www.github.com/josh161001/api_turing-ia/tree/main/src/modules/imagenes/helpers/upload.helper.ts | https://raw.githubusercontent.com/josh161001/api_turing-ia/fb326e5/src/modules/imagenes/helpers/upload.helper.ts | josh161001/api_turing-ia fb326e5 src/modules/imagenes/helpers/upload.helper.ts | true | 200 | 656 | // helper que modifica el nombre de la imagen
export const renameImage = (req, file, callback) => {
const name = file.originalname.split('.')[0];
const fileName = file.originalname;
const randomName = Array(4)
.fill(null)
.map(() => Math.round(Math.random() * 16).toString(16))
.join('');
callback... | 7 |
Mohammadalawia/movie-web-angular | 6d46010 | src/app/my-first-view/my-first-view.component.ts | TypeScript | www.github.com/Mohammadalawia/movie-web-angular/tree/main/src/app/my-first-view/my-first-view.component.ts | https://raw.githubusercontent.com/Mohammadalawia/movie-web-angular/6d46010/src/app/my-first-view/my-first-view.component.ts | Mohammadalawia/movie-web-angular 6d46010 src/app/my-first-view/my-first-view.component.ts | true | 200 | 1,438 | import { NgFor } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { MovieCard } from '../components/MovieCard/movieCard.component';
import { FormsModule } from '@angular/forms';
import { MovieService } from '../services/movie.service';
import { Movie } from '../models/movie.model';
impo... | 2 |
pmbstyle/Alice | ed74295 | src/utils/videoProcess.ts | TypeScript | www.github.com/pmbstyle/Alice/tree/main/src/utils/videoProcess.ts | https://raw.githubusercontent.com/pmbstyle/Alice/ed74295/src/utils/videoProcess.ts | pmbstyle/Alice ed74295 src/utils/videoProcess.ts | true | 200 | 1,089 | import videoSpeaking from '../assets/videos/speaking.mp4'
import videoStandBy from '../assets/videos/hd/standby.mp4'
import videoProcessing from '../assets/videos/hd/processing.mp4'
import videoEmotionBored from '../assets/videos/emotions/bored.mp4'
import videoEmotionWow from '../assets/videos/emotions/wow.mp4'
impor... | 6 |
dirtywei/vue-ts | f72da8f | vite.config.ts | TypeScript | www.github.com/dirtywei/vue-ts/tree/main/vite.config.ts | https://raw.githubusercontent.com/dirtywei/vue-ts/f72da8f/vite.config.ts | dirtywei/vue-ts f72da8f vite.config.ts | true | 200 | 1,300 | import { defineConfig } from 'vite'
import path from 'path'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import legacy from '@vitejs/plugin-legacy'
import UnoCSS from 'unocss/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite... | 4 |
KevinYu0515/HappyMangoServer | 115890b | server.ts | TypeScript | www.github.com/KevinYu0515/HappyMangoServer/tree/main/server.ts | https://raw.githubusercontent.com/KevinYu0515/HappyMangoServer/115890b/server.ts | KevinYu0515/HappyMangoServer 115890b server.ts | true | 200 | 1,844 | import express from "express";
import db from "./database/database";
import multer from "multer";
import path from "path";
import cors from "cors";
import bodyParser from "body-parser";
import * as dotenv from "dotenv";
import { router as customer_router } from "./routes/customer";
import { router as admin_router } fro... | 0 |
gturconi/BarApp-Frontend | b3807ba | BarApp/src/app/app.module.ts | TypeScript | www.github.com/gturconi/BarApp-Frontend/tree/main/BarApp/src/app/app.module.ts | https://raw.githubusercontent.com/gturconi/BarApp-Frontend/b3807ba/BarApp/src/app/app.module.ts | gturconi/BarApp-Frontend b3807ba BarApp/src/app/app.module.ts | true | 200 | 2,294 | import { LOCALE_ID, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import { JwtHelperService, JWT_OPTIONS } from '@auth0/angular-jwt';
import loc... | 7 |
Shinji1191/Discord-Typescript-Handler-v14 | 14271f3 | src/SlashCommands/Music/nowPlaying.ts | TypeScript | www.github.com/Shinji1191/Discord-Typescript-Handler-v14/tree/main/src/SlashCommands/Music/nowPlaying.ts | https://raw.githubusercontent.com/Shinji1191/Discord-Typescript-Handler-v14/14271f3/src/SlashCommands/Music/nowPlaying.ts | Shinji1191/Discord-Typescript-Handler-v14 14271f3 src/SlashCommands/Music/nowPlaying.ts | true | 200 | 1,749 | import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js";
import { SlashCommand } from "../../Build/Classes/CommandClass";
import { lyricsExtractor } from "@discord-player/extractor";
import { trackInformation } from "../../Build/Utility/PlayerUtility";
export default new SlashCommand({
... | 2 |
h602121/workout-tracker-app-tsx | 1e42973 | utils/playFromPath.ts | TypeScript | www.github.com/h602121/workout-tracker-app-tsx/tree/main/utils/playFromPath.ts | https://raw.githubusercontent.com/h602121/workout-tracker-app-tsx/1e42973/utils/playFromPath.ts | h602121/workout-tracker-app-tsx 1e42973 utils/playFromPath.ts | true | 200 | 264 | import { Audio } from "expo-av";
export const playFromPath = async (path: string) => {
try {
const soundObject = new Audio.Sound();
await soundObject.loadAsync({ uri: path });
await soundObject.playAsync();
} catch (e) {
console.log(e);
}
};
| 6 |
TuVoXuan/Fintex-FE | 5a8f63d | api/user-api.ts | TypeScript | www.github.com/TuVoXuan/Fintex-FE/tree/main/api/user-api.ts | https://raw.githubusercontent.com/TuVoXuan/Fintex-FE/5a8f63d/api/user-api.ts | TuVoXuan/Fintex-FE 5a8f63d api/user-api.ts | true | 200 | 2,577 | import axiosService from './axios-service';
const API = process.env.API_URL;
const ENDPOINT = 'user';
const URL = `${API}/${ENDPOINT}`;
const userApi = {
getStranger: (param: IGetStragers) => {
let newUrl = `${URL}/strangers/${param.name}?limit=${param.limit}`;
if (param.after) {
... | 4 |
ismailkskn98/stream-vibe | 2ab85a3 | src/services/fetchApi.ts | TypeScript | www.github.com/ismailkskn98/stream-vibe/tree/main/src/services/fetchApi.ts | https://raw.githubusercontent.com/ismailkskn98/stream-vibe/2ab85a3/src/services/fetchApi.ts | ismailkskn98/stream-vibe 2ab85a3 src/services/fetchApi.ts | true | 200 | 548 | const apiKey = process.env.API_KEY;
export const fetchApi = async <T>(endpoint: string, page?: number, query?: string): Promise<T> => {
try {
const url = `https://api.themoviedb.org/3/${endpoint}?api_key=${apiKey}&language=tr-TR${query}${page && `&page=${page}`}`;
const response = await fetch(url);
if (!r... | 5 |
otwori-dan/procument-tendering | 5f4f4cc | app/api/products/admin/tenders/route.ts | TypeScript | www.github.com/otwori-dan/procument-tendering/tree/main/app/api/products/admin/tenders/route.ts | https://raw.githubusercontent.com/otwori-dan/procument-tendering/5f4f4cc/app/api/products/admin/tenders/route.ts | otwori-dan/procument-tendering 5f4f4cc app/api/products/admin/tenders/route.ts | true | 200 | 1,240 | import { PrismaClient } from "@prisma/client";
import { NextResponse } from "next/server";
const prisma = new PrismaClient();
export async function POST(req: Request, res: Response) {
try {
if (!req.body) {
return new NextResponse("Invalid request", { status: 400 });
}
// console.log("req.body",... | 0 |
RVRTelecomunicaciones/back_allemant_2023 | d52dd29 | src/modules/involucrado-juridicos/entities/involucrado-juridico.entity.ts | TypeScript | www.github.com/RVRTelecomunicaciones/back_allemant_2023/tree/main/src/modules/involucrado-juridicos/entities/involucrado-juridico.entity.ts | https://raw.githubusercontent.com/RVRTelecomunicaciones/back_allemant_2023/d52dd29/src/modules/involucrado-juridicos/entities/involucrado-juridico.entity.ts | RVRTelecomunicaciones/back_allemant_2023 d52dd29 src/modules/involucrado-juridicos/entities/involucrado-juridico.entity.ts | true | 200 | 1,577 | import { ClasificacionInvolucrado } from '@app/modules/clasificacion-involucrados/entities/clasificacion-involucrado.entity';
import { SectorInvolucrado } from '@app/modules/sector-involucrados/entities/sector-involucrado.entity';
import { SharedEntity } from '@app/modules/shared/entities/shared.entity';
import { TipoD... | 7 |
AnthSuz/interview-react | 1fcea31 | src/features/movies/moviesTest.ts | TypeScript | www.github.com/AnthSuz/interview-react/tree/main/src/features/movies/moviesTest.ts | https://raw.githubusercontent.com/AnthSuz/interview-react/1fcea31/src/features/movies/moviesTest.ts | AnthSuz/interview-react 1fcea31 src/features/movies/moviesTest.ts | true | 200 | 5,154 | import { RootState } from './../../app/store';
import { createSlice, PayloadAction, current } from '@reduxjs/toolkit';
import { Movie, State } from './movies.type';
const initialState: State = {
movies: [],
categories: [],
currentPage: 1,
numberPages: 1,
moviePerPage: 12,
filters: [],
liked... | 5 |
h4-h/MD-frontend | 71f0c90 | src/stores/userStore.ts | TypeScript | www.github.com/h4-h/MD-frontend/tree/main/src/stores/userStore.ts | https://raw.githubusercontent.com/h4-h/MD-frontend/71f0c90/src/stores/userStore.ts | h4-h/MD-frontend 71f0c90 src/stores/userStore.ts | true | 200 | 539 | import { create } from "zustand";
import { persist } from "zustand/middleware";
type User = {
id: number;
username: string;
email: string;
avatar: string | null;
about: string | null;
}
interface UserStore {
user: User;
set: (user: User) => void;
remove: () => void;
}
export const userStore = create<... | 4 |
PirialMersus/3-bloggers-posts-mongoDb | 111060f | src/domain/blogs-service.ts | TypeScript | www.github.com/PirialMersus/3-bloggers-posts-mongoDb/tree/main/src/domain/blogs-service.ts | https://raw.githubusercontent.com/PirialMersus/3-bloggers-posts-mongoDb/111060f/src/domain/blogs-service.ts | PirialMersus/3-bloggers-posts-mongoDb 111060f src/domain/blogs-service.ts | true | 200 | 1,470 | import {blogsRepository, IReturnedFindObj} from "../repositories/blogs-repository"
import {IBlog} from "../repositories/db"
export interface IFindObj {
name: string,
pageNumber: number,
pageSize: number,
skip: number,
}
export const blogsService = {
findBlogs(name: string,
pageNumber... | 0 |
Juanfer55/Avanzatech-blog-JuanSierra | 27730ed | frontend/src/app/models/post.model.ts | TypeScript | www.github.com/Juanfer55/Avanzatech-blog-JuanSierra/tree/main/frontend/src/app/models/post.model.ts | https://raw.githubusercontent.com/Juanfer55/Avanzatech-blog-JuanSierra/27730ed/frontend/src/app/models/post.model.ts | Juanfer55/Avanzatech-blog-JuanSierra 27730ed frontend/src/app/models/post.model.ts | true | 200 | 554 | import { Author } from './user.model';
export interface Post {
id: number;
title: string;
author: Author;
content: string;
public_permission: number;
authenticated_permission: number;
team_permission: number;
author_permission: number;
created_at: string;
}
export interface PostWithExcerpt extends O... | 6 |
MalenaMC/leftStoreIU | 586b946 | src/app/pages/dashboard/dashboard.routes.ts | TypeScript | www.github.com/MalenaMC/leftStoreIU/tree/main/src/app/pages/dashboard/dashboard.routes.ts | https://raw.githubusercontent.com/MalenaMC/leftStoreIU/586b946/src/app/pages/dashboard/dashboard.routes.ts | MalenaMC/leftStoreIU 586b946 src/app/pages/dashboard/dashboard.routes.ts | true | 200 | 1,903 | import { Routes } from "@angular/router";
import { DashboardComponent } from "./dashboard.component";
import { HomeComponent } from "./home/home.component";
import { ProductsComponent } from "./products/products.component";
import { SalesComponent } from "./sales/sales.component";
import { DirectComponent } from "./sal... | 3 |
Khikk/Angular_KT1 | efa0195 | src/app/app.component.ts | TypeScript | www.github.com/Khikk/Angular_KT1/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/Khikk/Angular_KT1/efa0195/src/app/app.component.ts | Khikk/Angular_KT1 efa0195 src/app/app.component.ts | true | 200 | 526 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { FormDataComponent } from './components/filter-form/filter-form.component';
import { ProductListComponent } from './components/products-list/products-list.component';
@Component({
selector: 'app-root',
standalone: tr... | 2 |
Yura0427/shop-auction-back | 7cdbc9f | src/ratings/ratings.service.ts | TypeScript | www.github.com/Yura0427/shop-auction-back/tree/main/src/ratings/ratings.service.ts | https://raw.githubusercontent.com/Yura0427/shop-auction-back/7cdbc9f/src/ratings/ratings.service.ts | Yura0427/shop-auction-back 7cdbc9f src/ratings/ratings.service.ts | true | 200 | 2,330 | import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Product } from '../product/product.entity';
import { RatingsDto } from './dto/ratings.dto';
import { Rating } from './ratings.entity';
import { User } from ... | 7 |
ddinesh0/Clinc | 6aab11c | hm-ui/src/app/signin/signin.component.ts | TypeScript | www.github.com/ddinesh0/Clinc/tree/main/hm-ui/src/app/signin/signin.component.ts | https://raw.githubusercontent.com/ddinesh0/Clinc/6aab11c/hm-ui/src/app/signin/signin.component.ts | ddinesh0/Clinc 6aab11c hm-ui/src/app/signin/signin.component.ts | true | 200 | 2,383 | import { Component, OnInit } from '@angular/core';
import { Admin } from '../admin';
import { Router } from '@angular/router';
import { AdminService } from '../admin.service';
import { Doctor } from '../doctor';
import { DoctorService } from '../doctor.service';
import { Patient } from '../patient';
import { PatientSer... | 5 |
dfernaro/aws-portfolio-example | fc6f43c | lib/products/bucket-product.ts | TypeScript | www.github.com/dfernaro/aws-portfolio-example/tree/main/lib/products/bucket-product.ts | https://raw.githubusercontent.com/dfernaro/aws-portfolio-example/fc6f43c/lib/products/bucket-product.ts | dfernaro/aws-portfolio-example fc6f43c lib/products/bucket-product.ts | true | 200 | 682 | import { Construct } from "constructs";
import * as s3 from "aws-cdk-lib/aws-s3";
import * as servicecatalog from "aws-cdk-lib/aws-servicecatalog";
import { RemovalPolicy } from "aws-cdk-lib";
export class S3BucketProduct extends servicecatalog.ProductStack {
constructor(scope: Construct, id: string) {
super(sco... | 4 |
the-hedgehog-io/liqbot | 31efa6d | src/lib-base/SendableLiquity.ts | TypeScript | www.github.com/the-hedgehog-io/liqbot/tree/main/src/lib-base/SendableLiquity.ts | https://raw.githubusercontent.com/the-hedgehog-io/liqbot/31efa6d/src/lib-base/SendableLiquity.ts | the-hedgehog-io/liqbot 31efa6d src/lib-base/SendableLiquity.ts | true | 200 | 1,717 | import {
LiquidationDetails,
TransactableLiquity,
} from "./TransactableLiquity.js";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export interface SentLiquityTransaction<S = unknown, T extends LiquityReceipt = LiquityReceipt> {
readonly rawSentTransaction: S;
}
export type PendingReceipt = { st... | 0 |
riskyRombik/taskNumberFive | a25c37f | main.ts | TypeScript | www.github.com/riskyRombik/taskNumberFive/tree/main/main.ts | https://raw.githubusercontent.com/riskyRombik/taskNumberFive/a25c37f/main.ts | riskyRombik/taskNumberFive a25c37f main.ts | true | 200 | 542 | let age: number = 25;
function greet(name: string): string {
return `Hello, ${name}!`;
}
const numbers: number[] = [1, 2, 3, 4, 5];
function fetchData(callback: (data: string) => void): void {
setTimeout(() => callback("Data received"), 1000);
}
function formatValue(value: string | number): string {
if (type... | 6 |
xMarkos/tic-tac-toe | 0810003 | client.angular/src/app/ttt/field/field.component.ts | TypeScript | www.github.com/xMarkos/tic-tac-toe/tree/main/client.angular/src/app/ttt/field/field.component.ts | https://raw.githubusercontent.com/xMarkos/tic-tac-toe/0810003/client.angular/src/app/ttt/field/field.component.ts | xMarkos/tic-tac-toe 0810003 client.angular/src/app/ttt/field/field.component.ts | true | 200 | 516 | import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-field',
templateUrl: './field.component.html',
styleUrl: './field.component.css',
encapsulation: ViewEncapsulation.ShadowDom,
})
export class FieldComponent {
@Input()
player: ... | 7 |
CarlosDanieldeAbreu/requisicoes-app | 78d25b5 | src/app/shared/validators/data-futura.validator.ts | TypeScript | www.github.com/CarlosDanieldeAbreu/requisicoes-app/tree/main/src/app/shared/validators/data-futura.validator.ts | https://raw.githubusercontent.com/CarlosDanieldeAbreu/requisicoes-app/78d25b5/src/app/shared/validators/data-futura.validator.ts | CarlosDanieldeAbreu/requisicoes-app 78d25b5 src/app/shared/validators/data-futura.validator.ts | true | 200 | 459 | import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms";
import * as moment from 'moment';
export function dataFuturaValidator(): ValidatorFn{
return (control: AbstractControl): ValidationErrors | null => {
const dataInserida = moment(control.value);
const hoje = moment();
const ... | 3 |
moruno21/ares | 50746ad | apps/api/routine/domain/events/routine-deleted.ts | TypeScript | www.github.com/moruno21/ares/tree/main/apps/api/routine/domain/events/routine-deleted.ts | https://raw.githubusercontent.com/moruno21/ares/50746ad/apps/api/routine/domain/events/routine-deleted.ts | moruno21/ares 50746ad apps/api/routine/domain/events/routine-deleted.ts | true | 200 | 528 | import { Event } from '~/shared/domain'
import NameType from '~/shared/name-type'
const __name__ = 'RoutineDeleted'
type RoutineDeletedType = NameType<
Readonly<{
id: string
}>,
'RoutineDeleted'
>
class RoutineDeleted extends Event implements RoutineDeletedType {
readonly __name__ = __name__
private c... | 2 |
ramonserranoprofile/Frontend | f68cc1f | src/app/app.module.ts | TypeScript | www.github.com/ramonserranoprofile/Frontend/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/ramonserranoprofile/Frontend/f68cc1f/src/app/app.module.ts | ramonserranoprofile/Frontend f68cc1f src/app/app.module.ts | true | 200 | 2,939 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ToastrModule } from 'ngx-toastr';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.com... | 5 |
alyrojas/observerTere | 1fef882 | src/app/app-routing.module.ts | TypeScript | www.github.com/alyrojas/observerTere/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/alyrojas/observerTere/1fef882/src/app/app-routing.module.ts | alyrojas/observerTere 1fef882 src/app/app-routing.module.ts | true | 200 | 2,896 | import { ListarRecursoComponent } from './components/listar-recurso/listar-recurso.component';
import { CrearRecursoComponent } from './components/crear-recurso/crear-recurso.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { EliminarRecursoComponent }... | 0 |
saif-ourabi/CarriereConnect | 5699e15 | src/app/services/candidature.service.ts | TypeScript | www.github.com/saif-ourabi/CarriereConnect/tree/main/src/app/services/candidature.service.ts | https://raw.githubusercontent.com/saif-ourabi/CarriereConnect/5699e15/src/app/services/candidature.service.ts | saif-ourabi/CarriereConnect 5699e15 src/app/services/candidature.service.ts | true | 200 | 682 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { CookieService } from 'ngx-cookie';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class candidatureService {
constructor(private http: HttpClient,private CookieModule: CookieServic... | 4 |
doubleopen-project/dos | 97a20ac | apps/api/src/middlewares/authz_permission.ts | TypeScript | www.github.com/doubleopen-project/dos/tree/main/apps/api/src/middlewares/authz_permission.ts | https://raw.githubusercontent.com/doubleopen-project/dos/97a20ac/apps/api/src/middlewares/authz_permission.ts | doubleopen-project/dos 97a20ac apps/api/src/middlewares/authz_permission.ts | true | 200 | 4,123 | // SPDX-FileCopyrightText: 2024 Double Open Oy
//
// SPDX-License-Identifier: MIT
import { NextFunction, Request, Response } from "express";
import { authorizationByPermission } from "keycloak-authorization-services";
import log from "loglevel";
const logLevel: log.LogLevelDesc =
(process.env.LOG_LEVEL as log.Log... | 6 |
uju-in/lime-frontend | 84dfe86 | src/app/_hook/api/votes/queries/useVoteRanking.ts | TypeScript | www.github.com/uju-in/lime-frontend/tree/main/src/app/_hook/api/votes/queries/useVoteRanking.ts | https://raw.githubusercontent.com/uju-in/lime-frontend/84dfe86/src/app/_hook/api/votes/queries/useVoteRanking.ts | uju-in/lime-frontend 84dfe86 src/app/_hook/api/votes/queries/useVoteRanking.ts | true | 200 | 812 | import { RankingInfo } from '@/app/_types/vote.type'
import { useSuspenseQuery } from '@tanstack/react-query'
import { voteKeys } from '..'
async function fetchVoteRanking(hobby: string): Promise<RankingInfo> {
const res = await fetch(
`${process.env.NEXT_PUBLIC_BASE_URL}/api/votes/ranking?hobby=${hobby}`,
{... | 2 |
omnicajs/vue-remote | e7656aa | vitest.config.ts | TypeScript | www.github.com/omnicajs/vue-remote/tree/main/vitest.config.ts | https://raw.githubusercontent.com/omnicajs/vue-remote/e7656aa/vitest.config.ts | omnicajs/vue-remote e7656aa vitest.config.ts | true | 200 | 542 | import type { UserConfig } from 'vite'
import {
defineConfig,
mergeConfig,
} from 'vitest/config'
import { join } from 'node:path'
import vue from '@vitejs/plugin-vue'
const buildConfig = {
resolve: {
alias: {
'@': join(__dirname, './src/'),
},
},
plugins: [
vue(),
],
} satisfies UserC... | 7 |
anhvit10/angular-book-store-github | dbc4b1e | src/app/admin/product/admin-product-detail/admin-product-detail.component.ts | TypeScript | www.github.com/anhvit10/angular-book-store-github/tree/main/src/app/admin/product/admin-product-detail/admin-product-detail.component.ts | https://raw.githubusercontent.com/anhvit10/angular-book-store-github/dbc4b1e/src/app/admin/product/admin-product-detail/admin-product-detail.component.ts | anhvit10/angular-book-store-github dbc4b1e src/app/admin/product/admin-product-detail/admin-product-detail.component.ts | true | 200 | 897 | import { Component, OnInit, Input } from '@angular/core';
import { Product } from 'src/app/shared/models/product';
import { ActivatedRoute } from '@angular/router';
import { ProductService } from 'src/app/shared/services/product.service';
import { map, switchMap } from 'rxjs/operators';
@Component({
selector: 'app-a... | 3 |
izanamiz/budget-app | 779ca8f | fe/src/pages/auth/features/SignIn/style.ts | TypeScript | www.github.com/izanamiz/budget-app/tree/main/fe/src/pages/auth/features/SignIn/style.ts | https://raw.githubusercontent.com/izanamiz/budget-app/779ca8f/fe/src/pages/auth/features/SignIn/style.ts | izanamiz/budget-app 779ca8f fe/src/pages/auth/features/SignIn/style.ts | true | 200 | 1,461 | import colors from '@/constants/colors';
import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
container: {
flex: 1,
},
header: {
position: 'absolute',
top: 30,
left: 30,
zIndex: 2,
},
headerText: {
color: colors.white,
fontFamily: 'SF-Pro-Display-Regu... | 4 |
AlexejHein/join_Angular | 1ab9b3a | src/app/summary/summary.component.ts | TypeScript | www.github.com/AlexejHein/join_Angular/tree/main/src/app/summary/summary.component.ts | https://raw.githubusercontent.com/AlexejHein/join_Angular/1ab9b3a/src/app/summary/summary.component.ts | AlexejHein/join_Angular 1ab9b3a src/app/summary/summary.component.ts | true | 200 | 1,416 | import { Component } from '@angular/core';
import { TaskService} from "../services/task.service";
import { Task} from "../models/Task";
@Component({
selector: 'app-summary',
templateUrl: './summary.component.html',
styleUrls: ['./summary.component.css']
})
export class SummaryComponent {
tasks: Task[] = [];
... | 0 |
dickyrex19/basic-typescript | 0cedd55 | tests/union.test.ts | TypeScript | www.github.com/dickyrex19/basic-typescript/tree/main/tests/union.test.ts | https://raw.githubusercontent.com/dickyrex19/basic-typescript/0cedd55/tests/union.test.ts | dickyrex19/basic-typescript 0cedd55 tests/union.test.ts | true | 200 | 630 | describe("Union type", () => {
it("should support in typescript", () => {
let sample: string | number | boolean = "Dicky";
sample = 25;
sample = true;
console.info(sample);
});
it("should support typeof operator", () => {
function process(value: number | string | boolean) {
if (typeof v... | 6 |
martinvspalletti/probandounion | df048c4 | arami-posta/arami/src/app/ejercicios/ejercicios.component.ts | TypeScript | www.github.com/martinvspalletti/probandounion/tree/main/arami-posta/arami/src/app/ejercicios/ejercicios.component.ts | https://raw.githubusercontent.com/martinvspalletti/probandounion/df048c4/arami-posta/arami/src/app/ejercicios/ejercicios.component.ts | martinvspalletti/probandounion df048c4 arami-posta/arami/src/app/ejercicios/ejercicios.component.ts | true | 200 | 1,033 | import { Component } from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
export interface PacienteEjercicio {
apellido: string;
ejercicio: string;
cantidad: number;
repeticion: number;
}
@Component({
selector: "app-ejercicios",
templateUrl: "./ejercicios.component.html... | 5 |
himanshugdtc/anime_dashboard | 18d3698 | src/app/pages/notes/notes/notes.component.ts | TypeScript | www.github.com/himanshugdtc/anime_dashboard/tree/main/src/app/pages/notes/notes/notes.component.ts | https://raw.githubusercontent.com/himanshugdtc/anime_dashboard/18d3698/src/app/pages/notes/notes/notes.component.ts | himanshugdtc/anime_dashboard 18d3698 src/app/pages/notes/notes/notes.component.ts | true | 200 | 476 | import { Component, OnInit } from '@angular/core';
import { Note } from 'src/app/shared/note.model';
import { NoteService } from 'src/app/shared/note.service';
@Component({
selector: 'app-notes',
templateUrl: './notes.component.html',
styleUrls: ['./notes.component.scss'],
})
export class NotesComponent implemen... | 2 |
morgadodesarrollador/DWES | 3b3ad2d | 24-25/iniciales/crudLista/src/app.controller.ts | TypeScript | www.github.com/morgadodesarrollador/DWES/tree/main/24-25/iniciales/crudLista/src/app.controller.ts | https://raw.githubusercontent.com/morgadodesarrollador/DWES/3b3ad2d/24-25/iniciales/crudLista/src/app.controller.ts | morgadodesarrollador/DWES 3b3ad2d 24-25/iniciales/crudLista/src/app.controller.ts | true | 200 | 1,028 | import { Body, Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';
import { CreateUserDto } from './dto/CreateUserDto';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get('/')
getHello() {
/*
0-. Validar los p... | 7 |
Ashish492/googleCalendar | f56d7ad | src/types/customExpress.types.ts | TypeScript | www.github.com/Ashish492/googleCalendar/tree/main/src/types/customExpress.types.ts | https://raw.githubusercontent.com/Ashish492/googleCalendar/f56d7ad/src/types/customExpress.types.ts | Ashish492/googleCalendar f56d7ad src/types/customExpress.types.ts | true | 200 | 479 | /* eslint-disable */
import { NextFunction, Request, Response } from 'express'
import * as core from 'express-serve-static-core'
export interface MyRequest<B = unknown, P extends core.ParamsDictionary = {}, Q extends qs.ParsedQs = {}>
extends Request {
body: B
params: P
query: Q
}
export type CustomRouteFunctio... | 3 |
Allluta/SalonBookingManagement-Frontend | 196411c | src/app/modules/admin/admin-components/service-management/service-edit/service-edit.component.spec.ts | TypeScript | www.github.com/Allluta/SalonBookingManagement-Frontend/tree/main/src/app/modules/admin/admin-components/service-management/service-edit/service-edit.component.spec.ts | https://raw.githubusercontent.com/Allluta/SalonBookingManagement-Frontend/196411c/src/app/modules/admin/admin-components/service-management/service-edit/service-edit.component.spec.ts | Allluta/SalonBookingManagement-Frontend 196411c src/app/modules/admin/admin-components/service-management/service-edit/service-edit.component.spec.ts | true | 200 | 595 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ServiceEditComponent } from './service-edit.component';
describe('ServiceEditComponent', () => {
let component: ServiceEditComponent;
let fixture: ComponentFixture<ServiceEditComponent>;
beforeEach(() => {
TestBed.configureTestingM... | 4 |
YaroslavKarpenko/auto-app | 9cd8dd4 | src/hooks/useAuth.ts | TypeScript | www.github.com/YaroslavKarpenko/auto-app/tree/main/src/hooks/useAuth.ts | https://raw.githubusercontent.com/YaroslavKarpenko/auto-app/9cd8dd4/src/hooks/useAuth.ts | YaroslavKarpenko/auto-app 9cd8dd4 src/hooks/useAuth.ts | true | 200 | 332 | import { useAppSelector } from '../store/hooks';
import { selectToken, selectUsername } from '../store/user/selectors';
const useAuth = () => {
const username = useAppSelector(selectUsername);
const token = useAppSelector(selectToken);
return {
isAuth: !!token,
username,
token,
};
};
export defau... | 0 |
ChatbySystem/MUI-X | 695f807 | packages/x-tree-view/src/useTreeItem/useTreeItem.types.ts | TypeScript | www.github.com/ChatbySystem/MUI-X/tree/main/packages/x-tree-view/src/useTreeItem/useTreeItem.types.ts | https://raw.githubusercontent.com/ChatbySystem/MUI-X/695f807/packages/x-tree-view/src/useTreeItem/useTreeItem.types.ts | ChatbySystem/MUI-X 695f807 packages/x-tree-view/src/useTreeItem/useTreeItem.types.ts | true | 200 | 8,904 | import * as React from 'react';
import { TreeViewItemId, TreeViewCancellableEventHandler } from '../models';
import { TreeViewPublicAPI } from '../internals/models';
import { UseTreeViewSelectionSignature } from '../internals/plugins/useTreeViewSelection';
import { UseTreeViewItemsSignature } from '../internals/plugins... | 6 |
Messie88/the-movie-collection | 6b4277d | src/theme.ts | TypeScript | www.github.com/Messie88/the-movie-collection/tree/main/src/theme.ts | https://raw.githubusercontent.com/Messie88/the-movie-collection/6b4277d/src/theme.ts | Messie88/the-movie-collection 6b4277d src/theme.ts | true | 200 | 553 | import { DefaultTheme } from 'styled-components'
export const theme: DefaultTheme = {
fontFamily: { Montserrat: 'Montserrat' },
colors: {
blue: '#0A1639',
red: '#db1f30',
lightBlue: '#3C7BF9',
lightGrey: 'rgba(248, 249, 250, 0.1)',
white: '#F8F9FA',
darkWhite: '#F4F4F4',
},
responsive... | 7 |
llmentor/llmentor-2 | f9129d8 | components/pipelines/pipeline-graph/node-conversions.ts | TypeScript | www.github.com/llmentor/llmentor-2/tree/main/components/pipelines/pipeline-graph/node-conversions.ts | https://raw.githubusercontent.com/llmentor/llmentor-2/f9129d8/components/pipelines/pipeline-graph/node-conversions.ts | llmentor/llmentor-2 f9129d8 components/pipelines/pipeline-graph/node-conversions.ts | true | 200 | 4,812 | import { NodeReference, NodeType, OpenAiNode, OutputNode, PipelineNode, TranscriptNode } from '@/lib/pipelines/types';
import { Edge, Node } from 'reactflow';
import { usePipelineNodesStore } from '@/components/pipelines/stores';
import { PipelineNodesState } from '@/components/pipelines/stores/usePipelineNodesStore';
... | 5 |
doug-0/car-shop | 67784c3 | src/controllers/index.ts | TypeScript | www.github.com/doug-0/car-shop/tree/main/src/controllers/index.ts | https://raw.githubusercontent.com/doug-0/car-shop/67784c3/src/controllers/index.ts | doug-0/car-shop 67784c3 src/controllers/index.ts | true | 200 | 2,370 | import { Request, Response } from 'express';
import Service from '../services';
export type ResponseError = {
error: unknown;
};
export interface RequestWithBody<T> extends Request {
body: T;
}
enum ControllerErrors {
internal = 'Internal server error',
notFound = 'Object not found',
requiredId = 'Id is re... | 2 |
zsym-sjtu/inula-test | 46d8e2d | packages/inula-cli/src/template/test/ts/jest.config.ts | TypeScript | www.github.com/zsym-sjtu/inula-test/tree/main/packages/inula-cli/src/template/test/ts/jest.config.ts | https://raw.githubusercontent.com/zsym-sjtu/inula-test/46d8e2d/packages/inula-cli/src/template/test/ts/jest.config.ts | zsym-sjtu/inula-test 46d8e2d packages/inula-cli/src/template/test/ts/jest.config.ts | true | 200 | 772 | /*
* Copyright (c) 2023 Huawei Technologies Co.,Ltd.
*
* openInula is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 3 |
rowthan/pagenote | d23c09b | packages/sync/test/fileSync.test.ts | TypeScript | www.github.com/rowthan/pagenote/tree/main/packages/sync/test/fileSync.test.ts | https://raw.githubusercontent.com/rowthan/pagenote/d23c09b/packages/sync/test/fileSync.test.ts | rowthan/pagenote d23c09b packages/sync/test/fileSync.test.ts | true | 200 | 1,735 |
import SyncStrategy from '../src/ftp/SyncFile'
import MockClient from './mock/FileClient'
type DataType = {id: string,title: string, updateAt: number}
const localClient = new MockClient()
const cloudClient = new MockClient()
function createData(): DataType{
return {
id: `${Date.now()}_id`,
updat... | 4 |
TheLastDance/pixi-slots | 1231210 | src/data.ts | TypeScript | www.github.com/TheLastDance/pixi-slots/tree/main/src/data.ts | https://raw.githubusercontent.com/TheLastDance/pixi-slots/1231210/src/data.ts | TheLastDance/pixi-slots 1231210 src/data.ts | true | 200 | 2,522 |
// for game manipulation change this constants
export const CONSTANTS: IConstants = {
WIDTH: 120, // size of main sprites
HEIGHT: 120, // size of main sprites
SLOTSTRIPEFULLSIZE: 157, // size + gap of main sprites
SYMBOLSQUANTITY: 5, // unique symbols (plum, orange, lemon, cherries, watermelon)
SYMBOLSREELQU... | 0 |
smashah/jemalloc-check | e15ff33 | src/index.ts | TypeScript | www.github.com/smashah/jemalloc-check/tree/main/src/index.ts | https://raw.githubusercontent.com/smashah/jemalloc-check/e15ff33/src/index.ts | smashah/jemalloc-check e15ff33 src/index.ts | true | 200 | 1,306 | import { exec } from 'child_process';
import { platform } from 'os';
import debug from 'debug';
const log = debug('jemalloc-check:jemallocCheck');
export function jemallocCheck(): Promise<string | false> {
return new Promise((resolve) => {
let command: string;
const currentPlatform = platform();
log(`Ru... | 6 |
game4353/ba-viewer | 4da027a | src/utils/l2d.ts | TypeScript | www.github.com/game4353/ba-viewer/tree/main/src/utils/l2d.ts | https://raw.githubusercontent.com/game4353/ba-viewer/4da027a/src/utils/l2d.ts | game4353/ba-viewer 4da027a src/utils/l2d.ts | true | 200 | 9,201 | import { Spine } from "@esotericsoftware/spine-pixi";
import { clamp } from "@vueuse/core";
import { Howl } from "howler";
import * as PIXI from "pixi.js";
/** Scale a spine.
* Input 0 to use the original scale.
* Omit `scaleY` to use `scaleX`.
*/
function scaleSpine(spine: Spine, scaleX: number, scaleY?: number) {... | 7 |
Sergey23131/task1 | 96d0852 | src/nft/nft.controller.ts | TypeScript | www.github.com/Sergey23131/task1/tree/main/src/nft/nft.controller.ts | https://raw.githubusercontent.com/Sergey23131/task1/96d0852/src/nft/nft.controller.ts | Sergey23131/task1 96d0852 src/nft/nft.controller.ts | true | 200 | 770 | import { Body, Controller, Get, Post, Req, UseGuards } from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { FindNftDto } from './dto/find.nft.dto';
import { NftService } from './nft.service';
import { Nft } from './nft.model';
import { RequestService } from 'src/request/... | 2 |
brthema072/angular-chartjs | fbdd969 | src/app/charts/bubble-chart/bubble-chart.component.ts | TypeScript | www.github.com/brthema072/angular-chartjs/tree/main/src/app/charts/bubble-chart/bubble-chart.component.ts | https://raw.githubusercontent.com/brthema072/angular-chartjs/fbdd969/src/app/charts/bubble-chart/bubble-chart.component.ts | brthema072/angular-chartjs fbdd969 src/app/charts/bubble-chart/bubble-chart.component.ts | true | 200 | 793 | import { Component } from '@angular/core';
import { ChartConfiguration } from 'chart.js';
@Component({
selector: 'app-bubble-chart',
templateUrl: './bubble-chart.component.html',
styleUrls: ['./bubble-chart.component.scss'],
})
export class BubbleChartComponent {
bubbleChartOptions: ChartConfiguration<'bubble'... | 3 |
Pachimaryy/Ionic-trabajo | 8e3ce1b | src/app/app-routing.module.ts | TypeScript | www.github.com/Pachimaryy/Ionic-trabajo/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/Pachimaryy/Ionic-trabajo/8e3ce1b/src/app/app-routing.module.ts | Pachimaryy/Ionic-trabajo 8e3ce1b src/app/app-routing.module.ts | true | 200 | 2,252 | import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'login',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'signup',
redi... | 4 |
Dipfella/BD-III | 39ece88 | src/controllers/auth.controller.ts | TypeScript | www.github.com/Dipfella/BD-III/tree/main/src/controllers/auth.controller.ts | https://raw.githubusercontent.com/Dipfella/BD-III/39ece88/src/controllers/auth.controller.ts | Dipfella/BD-III 39ece88 src/controllers/auth.controller.ts | true | 200 | 1,615 | import { Request, Response } from "express";
import jwt from 'jsonwebtoken';
import usuarioModel from "../models/usuario.model";
class AutenticacionController {
static async signUp(req: Request, res: Response): Promise<void> {
const { userName, email, password } = req.body;
const emailExists = awa... | 0 |
mertalicikoglu/mini-blog-platform | 50d4004 | backend/src/initializeDatabase.ts | TypeScript | www.github.com/mertalicikoglu/mini-blog-platform/tree/main/backend/src/initializeDatabase.ts | https://raw.githubusercontent.com/mertalicikoglu/mini-blog-platform/50d4004/backend/src/initializeDatabase.ts | mertalicikoglu/mini-blog-platform 50d4004 backend/src/initializeDatabase.ts | true | 200 | 1,278 | import { supabase } from './auth/supabaseClient';
export const initializeDatabase = async () => {
try {
// Create the Posts table
const createPostsTableQuery = `
CREATE TABLE IF NOT EXISTS posts (
id SERIAL PRIMARY KEY,
title TEXT NOT NULL,
content TEXT NOT NULL,
created... | 6 |
EssaidMadi/Nest-ecommerce | d8d5a71 | src/products/products.controller.ts | TypeScript | www.github.com/EssaidMadi/Nest-ecommerce/tree/main/src/products/products.controller.ts | https://raw.githubusercontent.com/EssaidMadi/Nest-ecommerce/d8d5a71/src/products/products.controller.ts | EssaidMadi/Nest-ecommerce d8d5a71 src/products/products.controller.ts | true | 200 | 1,539 | import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
UseGuards,
} from '@nestjs/common';
import { ProductsService } from './products.service';
import { CreateProductDto } from './dto/create-product.dto';
import { UpdateProductDto } from './dto/update-product.dto';
import { CurrentUser } from 'src... | 2 |
bobbykim89/manguitopage-api-nest | b4f9d2b | src/post/post.service.ts | TypeScript | www.github.com/bobbykim89/manguitopage-api-nest/tree/main/src/post/post.service.ts | https://raw.githubusercontent.com/bobbykim89/manguitopage-api-nest/b4f9d2b/src/post/post.service.ts | bobbykim89/manguitopage-api-nest b4f9d2b src/post/post.service.ts | true | 200 | 3,798 | import {
Injectable,
HttpException,
HttpStatus,
// ForbiddenException,
} from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { Post } from './schema';
import { User } from '@/users/schema';
import { Comment } from '@/comment/schema';
import { Multipa... | 3 |
clbku/leetcode | 27dbf06 | 110.balanced-binary-tree/110.balanced-binary-tree.ts | TypeScript | www.github.com/clbku/leetcode/tree/main/110.balanced-binary-tree/110.balanced-binary-tree.ts | https://raw.githubusercontent.com/clbku/leetcode/27dbf06/110.balanced-binary-tree/110.balanced-binary-tree.ts | clbku/leetcode 27dbf06 110.balanced-binary-tree/110.balanced-binary-tree.ts | true | 200 | 1,482 | /*
* @lc app=leetcode id=110 lang=typescript
*
* [110] Balanced Binary Tree
*/
class TreeNode {
val: number
left: TreeNode | null
right: TreeNode | null
constructor(val?: number, left?: TreeNode | null, right?: TreeNode | null) {
this.val = (val===undefined ? 0 : val)
this.left = (l... | 5 |
openlooks/openlooks | 31cab8a | packages/mitosis/src/components/BaseComponentProps.ts | TypeScript | www.github.com/openlooks/openlooks/tree/main/packages/mitosis/src/components/BaseComponentProps.ts | https://raw.githubusercontent.com/openlooks/openlooks/31cab8a/packages/mitosis/src/components/BaseComponentProps.ts | openlooks/openlooks 31cab8a packages/mitosis/src/components/BaseComponentProps.ts | true | 200 | 297 | export type Color =
| 'black'
| 'gray'
| 'red'
| 'pink'
| 'grape'
| 'violet'
| 'indigo'
| 'blue'
| 'cyan'
| 'teal'
| 'green'
| 'lime'
| 'yellow'
| 'orange';
export type Size = 0 | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export const sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
| 4 |
yashB-2002/Nest_Sequelize_App | 5f099e9 | src/users/users.controller.ts | TypeScript | www.github.com/yashB-2002/Nest_Sequelize_App/tree/main/src/users/users.controller.ts | https://raw.githubusercontent.com/yashB-2002/Nest_Sequelize_App/5f099e9/src/users/users.controller.ts | yashB-2002/Nest_Sequelize_App 5f099e9 src/users/users.controller.ts | true | 200 | 3,344 | // src/users/users.controller.ts
import { Controller, Get, Post, Body, Param, Put, Delete, UseGuards, ParseIntPipe, SetMetadata, Query, UseInterceptors, UsePipes } from '@nestjs/common';
import { UsersService } from './users.service';
import { User } from './user.entity';
import { UserDTO } from './dto/user.dto';
impor... | 0 |
RasmusThougaardKristensen/most-sold-cars-in-2022 | 463e83c | src/app/services/car-service.service.ts | TypeScript | www.github.com/RasmusThougaardKristensen/most-sold-cars-in-2022/tree/main/src/app/services/car-service.service.ts | https://raw.githubusercontent.com/RasmusThougaardKristensen/most-sold-cars-in-2022/463e83c/src/app/services/car-service.service.ts | RasmusThougaardKristensen/most-sold-cars-in-2022 463e83c src/app/services/car-service.service.ts | true | 200 | 2,742 | import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
import { Observable } from 'rxjs/internal/Observable';
import { of } from 'rxjs/internal/observable/of';
import { Subject } from 'rxjs/internal/Subject';
import { ECarsData } from '../interfaces/ecars-data';
@I... | 6 |
smarqito/rasbet | 415e463 | rasbet_app/src/app/stores/rootStore.ts | TypeScript | www.github.com/smarqito/rasbet/tree/main/rasbet_app/src/app/stores/rootStore.ts | https://raw.githubusercontent.com/smarqito/rasbet/415e463/rasbet_app/src/app/stores/rootStore.ts | smarqito/rasbet 415e463 rasbet_app/src/app/stores/rootStore.ts | true | 200 | 873 | import { configure } from "mobx";
import { createContext } from "react";
import BetStore from "./betStore";
import CommonStore from "./commonStore";
import GameStore from "./gameStore";
import ModalStore from "./modalStore";
import UserStore from "./userStore";
import WalletStore from "./walletStore";
configure({ enfo... | 2 |
StoneDog02/grit-planner | b015e46 | app/models/gallery.server.ts | TypeScript | www.github.com/StoneDog02/grit-planner/tree/main/app/models/gallery.server.ts | https://raw.githubusercontent.com/StoneDog02/grit-planner/b015e46/app/models/gallery.server.ts | StoneDog02/grit-planner b015e46 app/models/gallery.server.ts | true | 200 | 3,032 | import { GetObjectCommand, PutObjectCommand } from "@aws-sdk/client-s3";
import { s3Client, AWS_BUCKET_NAME } from "../utils/s3.server";
export interface GalleryImage {
id: string;
src: string;
alt: string;
category: string;
service: string;
createdAt: string;
}
// In-memory cache
let galleryImages: Galle... | 3 |
yijiazho/weekendHealth | 1977c77 | main/main.ts | TypeScript | www.github.com/yijiazho/weekendHealth/tree/main/main/main.ts | https://raw.githubusercontent.com/yijiazho/weekendHealth/1977c77/main/main.ts | yijiazho/weekendHealth 1977c77 main/main.ts | true | 200 | 1,191 |
// it's guaranteed that input contains lower case letters only
export function findWords(inputString: string, dictionary:string[]): string[] {
// use set to deduplicate
const resultSet = new Set<string>();
// corner cases
if (inputString === '' || inputString === undefined) {
return [] as strin... | 5 |
yinkyi/thirty-stf-api | 90923d5 | apps/thirty-stf/src/common/interceptors/response.interceptor.ts | TypeScript | www.github.com/yinkyi/thirty-stf-api/tree/main/apps/thirty-stf/src/common/interceptors/response.interceptor.ts | https://raw.githubusercontent.com/yinkyi/thirty-stf-api/90923d5/apps/thirty-stf/src/common/interceptors/response.interceptor.ts | yinkyi/thirty-stf-api 90923d5 apps/thirty-stf/src/common/interceptors/response.interceptor.ts | true | 200 | 1,262 | import {
Injectable,
NestInterceptor,
ExecutionContext,
CallHandler,
} from '@nestjs/common';
import { ApiProperty } from '@nestjs/swagger';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
export class ResponseFormat<T> {
@ApiProperty()
isArray: boolean;
@ApiPropert... | 0 |
dre1597/next-js-studies | 265fc3b | next-clean-arch-fc/src/@core/domain/order/order.ts | TypeScript | www.github.com/dre1597/next-js-studies/tree/main/next-clean-arch-fc/src/@core/domain/order/order.ts | https://raw.githubusercontent.com/dre1597/next-js-studies/265fc3b/next-clean-arch-fc/src/%40core/domain/order/order.ts | dre1597/next-js-studies 265fc3b next-clean-arch-fc/src/@core/domain/order/order.ts | true | 200 | 710 | import { Product } from '@/@core/domain/product/product';
export type OrderProps = {
id?: number;
products: Product[];
creditCardNumber: number;
}
export class Order {
constructor(public props: OrderProps) {}
get id(): number | undefined {
return this.props.id;
}
get products(): Product[] {
re... | 6 |
vyvy-07/____test_ckeditor | 7f11253 | src/components/TipTapEditorMui/CustomTipTap/SpecialCharacter.ts | TypeScript | www.github.com/vyvy-07/____test_ckeditor/tree/main/src/components/TipTapEditorMui/CustomTipTap/SpecialCharacter.ts | https://raw.githubusercontent.com/vyvy-07/____test_ckeditor/7f11253/src/components/TipTapEditorMui/CustomTipTap/SpecialCharacter.ts | vyvy-07/____test_ckeditor 7f11253 src/components/TipTapEditorMui/CustomTipTap/SpecialCharacter.ts | true | 200 | 853 | import { Node, mergeAttributes } from '@tiptap/core';
export default Node.create({
name: 'specialCharacter',
group: 'inline',
inline: true,
atom: true, // Không thể chỉnh sửa trực tiếp ký tự đặc biệt
addAttributes() {
return {
character: {
default: null,
},
};
},
parseHTM... | 2 |
IlanIsr/GroceryPrices | 3a58d55 | src/api/products/requests/getProductById.ts | TypeScript | www.github.com/IlanIsr/GroceryPrices/tree/main/src/api/products/requests/getProductById.ts | https://raw.githubusercontent.com/IlanIsr/GroceryPrices/3a58d55/src/api/products/requests/getProductById.ts | IlanIsr/GroceryPrices 3a58d55 src/api/products/requests/getProductById.ts | true | 200 | 566 | import api from "@/utils/api";
import { Product } from "../index.type";
// Fonction pour récupérer un product par son ID
const fetchProductById = async (id: number): Promise<Product> => {
try {
const response = await api.get<Product>(`/products/${id}`); // Typage de la réponse
return response.data; // Retour... | 4 |
freeplanets/goldmember_manager | ac8d305 | src/dto/announcements/group-search.dto.ts | TypeScript | www.github.com/freeplanets/goldmember_manager/tree/main/src/dto/announcements/group-search.dto.ts | https://raw.githubusercontent.com/freeplanets/goldmember_manager/ac8d305/src/dto/announcements/group-search.dto.ts | freeplanets/goldmember_manager ac8d305 src/dto/announcements/group-search.dto.ts | true | 200 | 665 | import { ANNOUNCEMENT_GROUP, SEARCH_GROUP_METHOD } from "../../utils/enum";
import { IGroupsSearch } from "../interface/announcement.if";
import { ApiProperty } from "@nestjs/swagger";
export class GroupSearch implements IGroupsSearch {
@ApiProperty({
description: '群組集合',
enum: ANNOUNCEMENT_GROUP,
... | 3 |
itzaddddd/f-playground | 62ce836 | notification-service/src/notification/notification.service.ts | TypeScript | www.github.com/itzaddddd/f-playground/tree/main/notification-service/src/notification/notification.service.ts | https://raw.githubusercontent.com/itzaddddd/f-playground/62ce836/notification-service/src/notification/notification.service.ts | itzaddddd/f-playground 62ce836 notification-service/src/notification/notification.service.ts | true | 200 | 566 | import { Injectable } from "@nestjs/common"
import { KafkaService } from "../kafka/kafka.service"
@Injectable()
export class NotificationService {
private notification: any[] = []
constructor(private readonly kafkaService: KafkaService) {
this.kafkaService.consumeMessages('chat-message-notifications', async (... | 5 |
rafa-carmo/Manga-Page | 346b431 | notifications_back/src/infra/http/view-models/notification-view-model.ts | TypeScript | www.github.com/rafa-carmo/Manga-Page/tree/main/notifications_back/src/infra/http/view-models/notification-view-model.ts | https://raw.githubusercontent.com/rafa-carmo/Manga-Page/346b431/notifications_back/src/infra/http/view-models/notification-view-model.ts | rafa-carmo/Manga-Page 346b431 notifications_back/src/infra/http/view-models/notification-view-model.ts | true | 200 | 482 | import { Notification } from '@application/entities/notification'
export class NotificationViewModel {
static toHttp(notification: Notification) {
return {
id: notification.id,
content: notification.content.value,
mangaSlug: notification.mangaSlug,
chapter: notification.chapter,
crea... | 0 |
swethavy9/eCommercePortal | 504be3d | ecommerceportal.client/src/app/grocery/grocery.module.ts | TypeScript | www.github.com/swethavy9/eCommercePortal/tree/main/ecommerceportal.client/src/app/grocery/grocery.module.ts | https://raw.githubusercontent.com/swethavy9/eCommercePortal/504be3d/ecommerceportal.client/src/app/grocery/grocery.module.ts | swethavy9/eCommercePortal 504be3d ecommerceportal.client/src/app/grocery/grocery.module.ts | true | 200 | 839 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { GroceriesComponent } from './groceries/groceries.component';
import { ReactiveFormsModule } from '@angular/forms';
import { TableModule } from 'primeng/table';
impor... | 6 |
AngeloArtur/todoApp | 33d8ead | src/app/core/components/dynamic-dialog/dynamic-dialog.component.ts | TypeScript | www.github.com/AngeloArtur/todoApp/tree/main/src/app/core/components/dynamic-dialog/dynamic-dialog.component.ts | https://raw.githubusercontent.com/AngeloArtur/todoApp/33d8ead/src/app/core/components/dynamic-dialog/dynamic-dialog.component.ts | AngeloArtur/todoApp 33d8ead src/app/core/components/dynamic-dialog/dynamic-dialog.component.ts | true | 200 | 2,732 | import { Component, OnInit } from '@angular/core';
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
import { NewTaskToDoService } from '../../../shared/services/new-task-to-do.service';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ConfirmationService, MessageService } ... | 2 |
brundtoe/ts-training | 9250c3a | backend/src/components/models/fetchMap.ts | TypeScript | www.github.com/brundtoe/ts-training/tree/main/backend/src/components/models/fetchMap.ts | https://raw.githubusercontent.com/brundtoe/ts-training/9250c3a/backend/src/components/models/fetchMap.ts | brundtoe/ts-training 9250c3a backend/src/components/models/fetchMap.ts | true | 200 | 1,259 | import {AuthorEntity, AuthorMap, BookEntity, BookMap, UserEntity, UserMap} from "./models_interfaces";
import bookstore from '../data/bookstore.json'
let authors: AuthorMap = new Map<number, AuthorEntity>()
let books: BookMap = new Map<number, BookEntity>()
let users: UserMap = new Map<number, UserEntity>()
function ... | 4 |
hujiaxu/HEditor-engine | aed5435 | src/Engine/Viewer.ts | TypeScript | www.github.com/hujiaxu/HEditor-engine/tree/main/src/Engine/Viewer.ts | https://raw.githubusercontent.com/hujiaxu/HEditor-engine/aed5435/src/Engine/Viewer.ts | hujiaxu/HEditor-engine aed5435 src/Engine/Viewer.ts | true | 200 | 1,187 | import { ViewerOptions } from '../type'
import defaultValue from './Core/DefaultValue'
import Scene from './Scene/Scene'
export default class Viewer {
public canvas: HTMLCanvasElement
public scene: Scene
public defaultRenderLoop: boolean
constructor({
container,
canvasHeight,
canvasWidth,
use... | 3 |
mrabasto/shine-mis | 40974df | src/lib/modules/finance/cash-request/events.ts | TypeScript | www.github.com/mrabasto/shine-mis/tree/main/src/lib/modules/finance/cash-request/events.ts | https://raw.githubusercontent.com/mrabasto/shine-mis/40974df/src/lib/modules/finance/cash-request/events.ts | mrabasto/shine-mis 40974df src/lib/modules/finance/cash-request/events.ts | true | 200 | 416 | import type { CashRequest } from './types'
export enum CashRequestEvent {
CREATE = 'cash-request-create',
EDIT = 'cash-request-edit',
ERROR = 'cash-request-error',
}
export interface CashRequestDispatch extends LoadingDispatch {
[CashRequestEvent.CREATE]: CashRequest
[CashRequestEvent.EDIT]: CashRequest
[CashRe... | 5 |
fitiavana7/ora-beta | 97ec525 | backend/src/track/track.module.ts | TypeScript | www.github.com/fitiavana7/ora-beta/tree/main/backend/src/track/track.module.ts | https://raw.githubusercontent.com/fitiavana7/ora-beta/97ec525/backend/src/track/track.module.ts | fitiavana7/ora-beta 97ec525 backend/src/track/track.module.ts | true | 200 | 754 | import { MongooseModule } from '@nestjs/mongoose';
import { Module } from '@nestjs/common';
import { Track, TrackSchema } from './schema/track.schema';
import { TrackController } from './track.controller';
import { TrackService } from './track.service';
import TrackGateway from 'src/gateway/track.gateway';
import { Tas... | 6 |
BeardedFish/vscode-robots-dot-txt-support | dfd7faa | client/src/commands/command-handler.ts | TypeScript | www.github.com/BeardedFish/vscode-robots-dot-txt-support/tree/main/client/src/commands/command-handler.ts | https://raw.githubusercontent.com/BeardedFish/vscode-robots-dot-txt-support/dfd7faa/client/src/commands/command-handler.ts | BeardedFish/vscode-robots-dot-txt-support dfd7faa client/src/commands/command-handler.ts | true | 200 | 2,299 | /**
* @fileoverview Contains logic for commands invoked by an end user via the Command Palette.
* @author Darian Benam <darian@darianbenam.com>
*/
import { getCrawlerHttpHeaders, validateHttpUrl } from "@client/networking/http";
import fetch, { Response } from "node-fetch";
import { ExtensionContext, ... | 0 |
onejaejae/practice-oop | 379d362 | src/common/util/encrypt.ts | TypeScript | www.github.com/onejaejae/practice-oop/tree/main/src/common/util/encrypt.ts | https://raw.githubusercontent.com/onejaejae/practice-oop/379d362/src/common/util/encrypt.ts | onejaejae/practice-oop 379d362 src/common/util/encrypt.ts | true | 200 | 316 | import { hash, verify } from 'argon2';
export class Encrypt {
static async createHash(value: string): Promise<string> {
return hash(value);
}
static async isSameAsHash(
plainPassword: string,
hashedPassword: string,
): Promise<boolean> {
return verify(hashedPassword, plainPassword);
}
}
| 2 |
thefinnomenon/SayWhat | 4cce99b | src/features/theming/themes/light.ts | TypeScript | www.github.com/thefinnomenon/SayWhat/tree/main/src/features/theming/themes/light.ts | https://raw.githubusercontent.com/thefinnomenon/SayWhat/4cce99b/src/features/theming/themes/light.ts | thefinnomenon/SayWhat 4cce99b src/features/theming/themes/light.ts | true | 200 | 535 | const light: Theme = {
nav: {
statusBar: 'dark-content',
background: '#f8f8f8',
tintColor: '#000',
activeTintColor: '#000',
inactiveTintColor: '#a9a9a9',
borderColor: '#e0e0e0',
borderWidth: 1,
titleStyle: {
fontSize: 18,
fontWeight: 'bold',
},
},
colors: {
back... | 3 |
leofunow/Carbon-Notes | bc9b6c4 | src/app/components/note-view/note-view.component.ts | TypeScript | www.github.com/leofunow/Carbon-Notes/tree/main/src/app/components/note-view/note-view.component.ts | https://raw.githubusercontent.com/leofunow/Carbon-Notes/bc9b6c4/src/app/components/note-view/note-view.component.ts | leofunow/Carbon-Notes bc9b6c4 src/app/components/note-view/note-view.component.ts | true | 200 | 1,393 | import {
Component,
Input,
OnChanges,
OnInit,
SimpleChanges,
} from '@angular/core';
import { Note } from 'src/app/models/note';
import { NoteDataService } from 'src/app/services/note-data.service';
@Component({
selector: 'app-note-view',
templateUrl: './note-view.component.html',
styleUrls: ['./note-v... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.