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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Idaslon/NextLevelWeek-1 | 7806837 | backend/src/routes.ts | TypeScript | www.github.com/Idaslon/NextLevelWeek-1/tree/main/backend/src/routes.ts | https://raw.githubusercontent.com/Idaslon/NextLevelWeek-1/7806837/backend/src/routes.ts | Idaslon/NextLevelWeek-1 7806837 backend/src/routes.ts | true | 200 | 399 | import {Router } from 'express';
import ItemsController from './app/controllers/ItemsController'
import PointController from './app/controllers/PointController'
const routes = Router();
routes.get('/items', ItemsController.index)
routes.post('/points', PointController.create)
routes.get('/points/', PointController.... | 0 |
zoka-he/myworkspace | 4b9f59e | src/utils/appAuth/decodeLoginInfo.ts | TypeScript | www.github.com/zoka-he/myworkspace/tree/main/src/utils/appAuth/decodeLoginInfo.ts | https://raw.githubusercontent.com/zoka-he/myworkspace/4b9f59e/src/utils/appAuth/decodeLoginInfo.ts | zoka-he/myworkspace 4b9f59e src/utils/appAuth/decodeLoginInfo.ts | true | 200 | 330 | import privateKey from './prv.pem';
import NodeRSA from 'node-rsa';
const cipher = new NodeRSA(
privateKey,
'pkcs1-private-pem',
{
encryptionScheme: 'pkcs1'
}
);
export default function(loginInfo: string) {
console.debug('login info -->>', loginInfo);
return cipher.decrypt(loginInfo, ... | 5 |
pete85/nextjs_app | 4d3a331 | src/app/utils/weather-conditions.ts | TypeScript | www.github.com/pete85/nextjs_app/tree/main/src/app/utils/weather-conditions.ts | https://raw.githubusercontent.com/pete85/nextjs_app/4d3a331/src/app/utils/weather-conditions.ts | pete85/nextjs_app 4d3a331 src/app/utils/weather-conditions.ts | true | 200 | 14,117 | type WeatherConditionMapping = {
weatherapiCode: number;
condition: string;
weatherapiDayIcon: string;
weatherapiNightIcon: string;
openweathermapDayIcon: string;
openweathermapNightIcon: string;
};
export class WeatherConditionMapper {
private mappings: WeatherConditionMapping[] = [
... | 7 |
Michael-Nyarko-Affanyi/Angular_recipe_book | 1abf591 | src/app/recipe/recipe-list/recipe-list.component.ts | TypeScript | www.github.com/Michael-Nyarko-Affanyi/Angular_recipe_book/tree/main/src/app/recipe/recipe-list/recipe-list.component.ts | https://raw.githubusercontent.com/Michael-Nyarko-Affanyi/Angular_recipe_book/1abf591/src/app/recipe/recipe-list/recipe-list.component.ts | Michael-Nyarko-Affanyi/Angular_recipe_book 1abf591 src/app/recipe/recipe-list/recipe-list.component.ts | true | 200 | 805 | import {Component, OnDestroy, OnInit} from '@angular/core';
import {RecipeModel as Recipe} from "../recipe.model";
import {RecipeService} from "../../services/recipe.service";
import {Subscription} from "rxjs";
@Component({
selector: 'app-recipe-list',
templateUrl: './recipe-list.component.html',
styleUrl: './re... | 1 |
SINTEF/SESAR-CWP | 43fd7c0 | src/voice/voice.ts | TypeScript | www.github.com/SINTEF/SESAR-CWP/tree/main/src/voice/voice.ts | https://raw.githubusercontent.com/SINTEF/SESAR-CWP/43fd7c0/src/voice/voice.ts | SINTEF/SESAR-CWP 43fd7c0 src/voice/voice.ts | true | 200 | 6,146 | import 'microsoft-cognitiveservices-speech-sdk/distrib/browser/microsoft.cognitiveservices.speech.sdk.bundle';
import type * as SpeechSDKType from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk';
import { ProcessingCommandStatus } from '../model/VoiceStore';
import { voiceS... | 6 |
danielkleira/Junior-Backend-Developer-Challenge | 3c2ff70 | src/technical_exam_questions/technical_exam_questions.controller.ts | TypeScript | www.github.com/danielkleira/Junior-Backend-Developer-Challenge/tree/main/src/technical_exam_questions/technical_exam_questions.controller.ts | https://raw.githubusercontent.com/danielkleira/Junior-Backend-Developer-Challenge/3c2ff70/src/technical_exam_questions/technical_exam_questions.controller.ts | danielkleira/Junior-Backend-Developer-Challenge 3c2ff70 src/technical_exam_questions/technical_exam_questions.controller.ts | true | 200 | 1,010 | import { Controller, Get, Post, Body, UseGuards } from '@nestjs/common';
import { TechnicalExamQuestionsService } from './technical_exam_questions.service';
import { CreateTechnicalExamQuestionDto } from './dto/create-technical_exam_question.dto';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { JwtAut... | 4 |
lightdash/lightdash | c0d9d30 | packages/frontend/src/hooks/dashboard/useDashboardRefresh.ts | TypeScript | www.github.com/lightdash/lightdash/tree/main/packages/frontend/src/hooks/dashboard/useDashboardRefresh.ts | https://raw.githubusercontent.com/lightdash/lightdash/c0d9d30/packages/frontend/src/hooks/dashboard/useDashboardRefresh.ts | lightdash/lightdash c0d9d30 packages/frontend/src/hooks/dashboard/useDashboardRefresh.ts | true | 200 | 1,086 | import {
useIsFetching,
useQueryClient,
type Query,
} from '@tanstack/react-query';
import { useCallback, useMemo } from 'react';
const QUERIES_TO_REFRESH = [
'savedChartResults',
'saved_query',
'saved_dashboard_query',
'dashboards',
];
const queryPredicate = (query: Query) => {
return... | 0 |
IrfanChatha/PIAIC_WEB_FSD | 231f3c3 | Quarter_Two_NextJS/Panaverse-Faisalabad-batch-50/Panaverse-Faisalabad-batch-50-main/typescript/class-04/index.ts | TypeScript | www.github.com/IrfanChatha/PIAIC_WEB_FSD/tree/main/Quarter_Two_NextJS/Panaverse-Faisalabad-batch-50/Panaverse-Faisalabad-batch-50-main/typescript/class-04/index.ts | https://raw.githubusercontent.com/IrfanChatha/PIAIC_WEB_FSD/231f3c3/Quarter_Two_NextJS/Panaverse-Faisalabad-batch-50/Panaverse-Faisalabad-batch-50-main/typescript/class-04/index.ts | IrfanChatha/PIAIC_WEB_FSD 231f3c3 Quarter_Two_NextJS/Panaverse-Faisalabad-batch-50/Panaverse-Faisalabad-batch-50-main/typescript/class-04/index.ts | true | 200 | 2,201 | // Functions are used to make the code reusable.
// We can write a specific set of code in function body and call it any where in the file when ever we want.
// !Syntax
// function name(params: type) {
// Body (Block of code)
// }
function sum() {
let num1: number = 10;
let num2: number = 20;
let sum: numb... | 5 |
konfig-sdks/pay-pal-invoicing-typescript-sdk | d06552b | models/invalidstringmaxlength23.ts | TypeScript | www.github.com/konfig-sdks/pay-pal-invoicing-typescript-sdk/tree/main/models/invalidstringmaxlength23.ts | https://raw.githubusercontent.com/konfig-sdks/pay-pal-invoicing-typescript-sdk/d06552b/models/invalidstringmaxlength23.ts | konfig-sdks/pay-pal-invoicing-typescript-sdk d06552b models/invalidstringmaxlength23.ts | true | 200 | 1,358 | /*
Invoices
Use the Invoicing API to create, send, and manage invoices. You can also use the API or webhooks to track invoice payments. When you send an invoice to a customer, the invoice moves from draft to payable state. PayPal then emails the customer a link to the invoice on the PayPal website. Customers with a Pa... | 1 |
HitmanWiki/paw-beta | 37f4889 | webpack---/src/models-ts/chat/messages/GigRefundedChatMessage.ts | TypeScript | www.github.com/HitmanWiki/paw-beta/tree/main/webpack---/src/models-ts/chat/messages/GigRefundedChatMessage.ts | https://raw.githubusercontent.com/HitmanWiki/paw-beta/37f4889/webpack---/src/models-ts/chat/messages/GigRefundedChatMessage.ts | HitmanWiki/paw-beta 37f4889 webpack---/src/models-ts/chat/messages/GigRefundedChatMessage.ts | true | 200 | 912 | import { MessageTypes } from '@/constants-ts/chat/MessageTypes'
import { Roles } from '@/constants-ts/user/roles'
import AbstractChatMessage, { AbstractChatMessageServerProps } from './AbstractChatMessage'
export default class GigRefundedChatMessage extends AbstractChatMessage {
type = MessageTypes.GIG_REFUNDED
bo... | 6 |
mdmominul-310/one-store-backend | 16737f5 | src/app/modules/products/products.service.ts | TypeScript | www.github.com/mdmominul-310/one-store-backend/tree/main/src/app/modules/products/products.service.ts | https://raw.githubusercontent.com/mdmominul-310/one-store-backend/16737f5/src/app/modules/products/products.service.ts | mdmominul-310/one-store-backend 16737f5 src/app/modules/products/products.service.ts | true | 200 | 3,597 | import ApiError from "../../../errors/ApiError";
import { IGenericResponse, IPaginatinQuery } from "../../../interfaces/common";
import { IProducts } from "./products.interface";
import Products from "./products.model";
class ProductService {
Product: typeof Products;
ApiError: typeof ApiError;
constructor... | 2 |
absolutezero13/moviesso | 135f86a | services/api.ts | TypeScript | www.github.com/absolutezero13/moviesso/tree/main/services/api.ts | https://raw.githubusercontent.com/absolutezero13/moviesso/135f86a/services/api.ts | absolutezero13/moviesso 135f86a services/api.ts | true | 200 | 911 | import axios from "axios";
import { MovieApiResponse, MovieDetail, MovieRequestParams } from "./types";
const API_ENDPOINT = "https://movie-database-alternative.p.rapidapi.com";
const API_KEY = "b957481432msh3b62100f3bb045ep19fc0ejsn704144e11e85";
class ApiService {
private options: any;
constructor() {
this... | 4 |
regalmaharjan/Al | 628f805 | src/app/tags/tags.component.ts | TypeScript | www.github.com/regalmaharjan/Al/tree/main/src/app/tags/tags.component.ts | https://raw.githubusercontent.com/regalmaharjan/Al/628f805/src/app/tags/tags.component.ts | regalmaharjan/Al 628f805 src/app/tags/tags.component.ts | true | 200 | 590 | import { Component, Input, OnInit } from '@angular/core';
import { Tag } from '../shared/models/Tag';
import { ProductService } from '../services/product/product.service';
@Component({
selector: 'app-tags',
templateUrl: './tags.component.html',
styleUrls: ['./tags.component.css']
})
export class TagsComponent im... | 0 |
juan-gsan/game-of-life | 9befa55 | src/js/playGameOfLife.ts | TypeScript | www.github.com/juan-gsan/game-of-life/tree/main/src/js/playGameOfLife.ts | https://raw.githubusercontent.com/juan-gsan/game-of-life/9befa55/src/js/playGameOfLife.ts | juan-gsan/game-of-life 9befa55 src/js/playGameOfLife.ts | true | 200 | 872 | export const playGameOfLife = (
board: number[][],
aliveNeighbors: number[][]
) => {
for (let x = 0; x < board.length; x++) {
for (let y = 0; y < board[x].length; y++) {
const checkedToken = document.querySelector(
`.row-${x}-col-${y}`
) as Element;
if (board[x][y] === 1 && aliveNeig... | 5 |
postalPain/oxygen | 9a4d467 | src/components/ScreenWithAnimatedHeader/styles.ts | TypeScript | www.github.com/postalPain/oxygen/tree/main/src/components/ScreenWithAnimatedHeader/styles.ts | https://raw.githubusercontent.com/postalPain/oxygen/9a4d467/src/components/ScreenWithAnimatedHeader/styles.ts | postalPain/oxygen 9a4d467 src/components/ScreenWithAnimatedHeader/styles.ts | true | 200 | 1,438 | import { StatusBar, StyleSheet } from 'react-native';
import { SCREEN_BOTTOM_PADDING, SCREEN_HORIZONTAL_PADDING } from 'utils/screen';
import theme from 'config/theme';
import env from 'env';
import { getHeight, getWidth } from 'utils/window';
const HEADER_HEIGHT = getHeight(16);
const getHeaderShift = () => {
cons... | 4 |
htmlacademy-univer-nodejs-1/2433101-six-cities-3 | a367850 | src/cli/command-parser.ts | TypeScript | www.github.com/htmlacademy-univer-nodejs-1/2433101-six-cities-3/tree/main/src/cli/command-parser.ts | https://raw.githubusercontent.com/htmlacademy-univer-nodejs-1/2433101-six-cities-3/a367850/src/cli/command-parser.ts | htmlacademy-univer-nodejs-1/2433101-six-cities-3 a367850 src/cli/command-parser.ts | true | 200 | 511 | type TParsedCommand = Record<string, string[]>;
export class CommandParser {
static parse(cliArguments: string[]): TParsedCommand {
const parsedCommand: TParsedCommand = {};
let currentCommand = '';
for(const argument of cliArguments) {
if(argument.startsWith('--')) {
parsedCommand[argumen... | 2 |
p-p-space/billing-process | 86e2b61 | src/config/validationForm/handleValidations.ts | TypeScript | www.github.com/p-p-space/billing-process/tree/main/src/config/validationForm/handleValidations.ts | https://raw.githubusercontent.com/p-p-space/billing-process/86e2b61/src/config/validationForm/handleValidations.ts | p-p-space/billing-process 86e2b61 src/config/validationForm/handleValidations.ts | true | 200 | 411 | import * as yup from 'yup';
//Internal app
import { regularExpressions } from './regex';
/**
* Function used to validate the creation of the password.
* @param msg - Mandatory field message.
*/
export function passwordValidation(msg: string) {
return yup
.string()
.required(msg)
.test('Invalid passwor... | 1 |
aneoconsulting/ArmoniK.Admin.GUI | 5a7b9b0 | src/app/components/inspection/field-content.component.spec.ts | TypeScript | www.github.com/aneoconsulting/ArmoniK.Admin.GUI/tree/main/src/app/components/inspection/field-content.component.spec.ts | https://raw.githubusercontent.com/aneoconsulting/ArmoniK.Admin.GUI/5a7b9b0/src/app/components/inspection/field-content.component.spec.ts | aneoconsulting/ArmoniK.Admin.GUI 5a7b9b0 src/app/components/inspection/field-content.component.spec.ts | true | 200 | 6,987 | import { TaskStatus } from '@aneoconsultingfr/armonik.api.angular';
import { Clipboard } from '@angular/cdk/clipboard';
import { TestBed } from '@angular/core/testing';
import { TaskOptions, TaskRaw } from '@app/tasks/types';
import { Field } from '@app/types/column.type';
import { Status } from '@app/types/status';
im... | 6 |
Rox-Cat/Nuxt-Personal-Website | 6b5605c | types/blog.ts | TypeScript | www.github.com/Rox-Cat/Nuxt-Personal-Website/tree/main/types/blog.ts | https://raw.githubusercontent.com/Rox-Cat/Nuxt-Personal-Website/6b5605c/types/blog.ts | Rox-Cat/Nuxt-Personal-Website 6b5605c types/blog.ts | true | 200 | 1,112 | export interface BlogPost {
title: string
date: string
description: string
image: string
alt: string
ogImage: string
tags: string[]
published: boolean
}
/* 统一的格式 */
// 返回数据的格式
export interface Response {
code: number
msg: string
data: {}
}
// 一个博客的数据
export interface BlogData {
id: number
coverImg: string... | 0 |
LouisTsang-jk/gemma-fit | 60e45ce | components/FAQ/faqs.ts | TypeScript | www.github.com/LouisTsang-jk/gemma-fit/tree/main/components/FAQ/faqs.ts | https://raw.githubusercontent.com/LouisTsang-jk/gemma-fit/60e45ce/components/FAQ/faqs.ts | LouisTsang-jk/gemma-fit 60e45ce components/FAQ/faqs.ts | true | 200 | 539 | const faqs = [
{
title: "减脂减重",
content:
"",
},
{
title: "加强运动能力",
content:
"The Open Source Discount is available for everyone who is building an open source project. You can apply to the discount by sending an email to support@acme.com",
},
{
title: "自... | 5 |
hoangchuongit/api-youtube-sharing-app | 61d77f7 | src/types/common.type.ts | TypeScript | www.github.com/hoangchuongit/api-youtube-sharing-app/tree/main/src/types/common.type.ts | https://raw.githubusercontent.com/hoangchuongit/api-youtube-sharing-app/61d77f7/src/types/common.type.ts | hoangchuongit/api-youtube-sharing-app 61d77f7 src/types/common.type.ts | true | 200 | 350 | export enum SORT_TYPE {
'DESC' = 'desc',
'ASC' = 'acs',
}
export type FindAllResponse<T> = {
total: number;
items: T[];
hasMore: boolean;
};
export type SortParams = { sort_by: string; sort_type: SORT_TYPE };
export type SearchParams = { keywork: string; field: string };
export type PaginateParams = { off... | 6 |
J-dev740/questEngine | eabea9e | Gaming_marketplace-backend/src/games/reviews/dtos/count.dto.ts | TypeScript | www.github.com/J-dev740/questEngine/tree/main/Gaming_marketplace-backend/src/games/reviews/dtos/count.dto.ts | https://raw.githubusercontent.com/J-dev740/questEngine/eabea9e/Gaming_marketplace-backend/src/games/reviews/dtos/count.dto.ts | J-dev740/questEngine eabea9e Gaming_marketplace-backend/src/games/reviews/dtos/count.dto.ts | true | 200 | 310 | import { Transform } from "class-transformer";
import { IsOptional } from "class-validator";
function isNumber(value: string) {
return /^[0-9]+$/gm.test(value);
}
export class CountDto {
@IsOptional()
@Transform(({ value }) => (isNumber(value) ? Number(value) : undefined))
readonly count: number = 5;
}
| 1 |
doytsujin/webgl-components | 0ae1dec | packages/webgl-components/src/loading/asset-loader.ts | TypeScript | www.github.com/doytsujin/webgl-components/tree/main/packages/webgl-components/src/loading/asset-loader.ts | https://raw.githubusercontent.com/doytsujin/webgl-components/0ae1dec/packages/webgl-components/src/loading/asset-loader.ts | doytsujin/webgl-components 0ae1dec packages/webgl-components/src/loading/asset-loader.ts | true | 200 | 3,937 | import Loader, { LoaderSettings } from './loader';
import ThreeTextureLoader from './three-texture-loader';
import ThreeFBXLoader from './three-fbx-loader';
import ThreeGLTFLoader from './three-gltf-loader';
import ThreeRgbeTexureLoader from './three-rgbe-texture-loader';
import ThreeKtx2TexureLoader from './three-ktx2... | 2 |
chofor-cliford/3js-roadmap | 68ec43b | src/lessons/lights.ts | TypeScript | www.github.com/chofor-cliford/3js-roadmap/tree/main/src/lessons/lights.ts | https://raw.githubusercontent.com/chofor-cliford/3js-roadmap/68ec43b/src/lessons/lights.ts | chofor-cliford/3js-roadmap 68ec43b src/lessons/lights.ts | true | 200 | 6,246 | import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import GUI from "lil-gui";
import { RectAreaLightHelper } from "three/examples/jsm/Addons.js";
export const lights = () => {
// Debug
const gui = new GUI();
// Canvas
const canvas = document.querySele... | 0 |
alejandrogalaz21/nest-pg | bce01e8 | src/config/mongodb.configuration.ts | TypeScript | www.github.com/alejandrogalaz21/nest-pg/tree/main/src/config/mongodb.configuration.ts | https://raw.githubusercontent.com/alejandrogalaz21/nest-pg/bce01e8/src/config/mongodb.configuration.ts | alejandrogalaz21/nest-pg bce01e8 src/config/mongodb.configuration.ts | true | 200 | 786 | import { registerAs } from '@nestjs/config'
import { DatabaseConfig } from 'src/common/interfaces/db.interface'
export default registerAs('mongodb', () => {
const db_host = process.env.DB_HOST || 'localhost'
const db_port = parseInt(process.env.DB_PORT, 10) || 27017
const db_name = process.env.DB_NAME || 'test'
... | 4 |
onvo-ai/chartjs-chart-map | 615edbe | src/controller.ts | TypeScript | www.github.com/onvo-ai/chartjs-chart-map/tree/main/src/controller.ts | https://raw.githubusercontent.com/onvo-ai/chartjs-chart-map/615edbe/src/controller.ts | onvo-ai/chartjs-chart-map 615edbe src/controller.ts | true | 200 | 4,985 | import {
DatasetController,
ChartDataset,
Chart
} from 'chart.js';
import { MarkerClusterer } from "@googlemaps/markerclusterer";
import { light } from './themes';
export interface PointDataPoint {
type: "point"
lat: number;
lng: number;
}
export interface LineDataPoint {
type: "line"
points: google.ma... | 5 |
inoplanetyanya/battleship-frontend | 9298dbe | src/store/socket.ts | TypeScript | www.github.com/inoplanetyanya/battleship-frontend/tree/main/src/store/socket.ts | https://raw.githubusercontent.com/inoplanetyanya/battleship-frontend/9298dbe/src/store/socket.ts | inoplanetyanya/battleship-frontend 9298dbe src/store/socket.ts | true | 200 | 849 | import { makeAutoObservable } from "mobx";
type NoArgVoid = { (): void };
type onMessageFunc = { (event: MessageEvent<any>): any | null };
class Socket {
private _socket: WebSocket | undefined = undefined;
private _beforeClose: NoArgVoid = () => {};
private _onMessage: Array<onMessageFunc> = [];
constructor() {
... | 6 |
AnthonyHurteau/red-hawks-game-cow | 830c357 | web-sockets/src/votes/send.ts | TypeScript | www.github.com/AnthonyHurteau/red-hawks-game-cow/tree/main/web-sockets/src/votes/send.ts | https://raw.githubusercontent.com/AnthonyHurteau/red-hawks-game-cow/830c357/web-sockets/src/votes/send.ts | AnthonyHurteau/red-hawks-game-cow 830c357 web-sockets/src/votes/send.ts | true | 200 | 2,376 | import { IItem } from "../../../common/core/src/models/item";
import { DynamoDBStreamEvent } from "aws-lambda";
import { postToConnectionAsync } from "common/core/src/services/apiGatewayClient";
import {
deleteItemDocumentAsync,
getItemDocumentsAsync,
unmarshallItem,
} from "common/core/src/services/dynamoD... | 4 |
akademskig/symmetrical-giggle | d079ac5 | backend/src/cart/calculation.service.ts | TypeScript | www.github.com/akademskig/symmetrical-giggle/tree/main/backend/src/cart/calculation.service.ts | https://raw.githubusercontent.com/akademskig/symmetrical-giggle/d079ac5/backend/src/cart/calculation.service.ts | akademskig/symmetrical-giggle d079ac5 backend/src/cart/calculation.service.ts | true | 200 | 5,791 | import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { round } from 'lodash';
import { CartProduct, Customer } from 'src/customer/customer.schema';
import { PriceBase, ProductType } from 'src/products/products.schema';
import { ObjectId } ... | 1 |
Armster15/pocketbee | 7e99e99 | packages/dashboard/src/api/routers/projects.ts | TypeScript | www.github.com/Armster15/pocketbee/tree/main/packages/dashboard/src/api/routers/projects.ts | https://raw.githubusercontent.com/Armster15/pocketbee/7e99e99/packages/dashboard/src/api/routers/projects.ts | Armster15/pocketbee 7e99e99 packages/dashboard/src/api/routers/projects.ts | true | 200 | 5,260 | import { z } from "zod";
import { createTRPCRouter, protectedProcedure } from "$/api/trpc";
import { TRPCError } from "@trpc/server";
import niceTry from "nice-try";
export const projectsRouter = createTRPCRouter({
get: protectedProcedure
.input(z.object({ projectId: z.string() }))
.query(async ({ input: { p... | 2 |
Abhishek29192/bmi-next | a852ecc | applications/dxb/contentful-migrate/src/migrations/20220927091534-add-custom-unique-field-validation-for-microcopy-key copy.ts | TypeScript | www.github.com/Abhishek29192/bmi-next/tree/main/applications/dxb/contentful-migrate/src/migrations/20220927091534-add-custom-unique-field-validation-for-microcopy-key copy.ts | https://raw.githubusercontent.com/Abhishek29192/bmi-next/a852ecc/applications/dxb/contentful-migrate/src/migrations/20220927091534-add-custom-unique-field-validation-for-microcopy-key%20copy.ts | Abhishek29192/bmi-next a852ecc applications/dxb/contentful-migrate/src/migrations/20220927091534-add-custom-unique-field-validation-for-microcopy-key copy.ts | true | 200 | 652 | // Duplicate of 20220823163256-add-custom-unique-field-validation-for-microcopy-key.ts
import type { MigrationFunction } from "contentful-migration";
export const description =
"This migration will add custom unique field validation for microcopy key";
const UNIQUE_FIELDS_APP = "3boLz03AvMVs4noqM2ARqS";
export con... | 0 |
Harmanpreet-dev/gforce-frontend | 1a63294 | src/app/common/header/header.component.ts | TypeScript | www.github.com/Harmanpreet-dev/gforce-frontend/tree/main/src/app/common/header/header.component.ts | https://raw.githubusercontent.com/Harmanpreet-dev/gforce-frontend/1a63294/src/app/common/header/header.component.ts | Harmanpreet-dev/gforce-frontend 1a63294 src/app/common/header/header.component.ts | true | 200 | 2,083 | import { Component } from '@angular/core';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css'],
})
export class HeaderComponent {
link1 = '';
link2 = '';
link3 = '';
link4 = '';
link5 = '';
link6 = '';
link7 = '';
link8 = '';
handl... | 5 |
mendingoStyle/vagamente-backend | df371ca | src/modules/notifications/notifications.controller.ts | TypeScript | www.github.com/mendingoStyle/vagamente-backend/tree/main/src/modules/notifications/notifications.controller.ts | https://raw.githubusercontent.com/mendingoStyle/vagamente-backend/df371ca/src/modules/notifications/notifications.controller.ts | mendingoStyle/vagamente-backend df371ca src/modules/notifications/notifications.controller.ts | true | 200 | 1,122 | import { Body, Controller, Get, Patch, Query, UseGuards, UsePipes, ValidationPipe } from "@nestjs/common";
import { JwtAuthGuard } from "modules/auth/guard/jwt-auth.guard";
import { GetNotifications } from "./dto/notifications.get";
import { NotificationsService } from "./notifications.service";
import { Notifications ... | 4 |
Kingsleyaham/Post-it-social-media-api | f6c9809 | src/docs/posts/updatePost.doc.ts | TypeScript | www.github.com/Kingsleyaham/Post-it-social-media-api/tree/main/src/docs/posts/updatePost.doc.ts | https://raw.githubusercontent.com/Kingsleyaham/Post-it-social-media-api/f6c9809/src/docs/posts/updatePost.doc.ts | Kingsleyaham/Post-it-social-media-api f6c9809 src/docs/posts/updatePost.doc.ts | true | 200 | 728 | export const updatePost = {
put: {
tags: ["posts"],
summary: "Update post by id",
description:
"Update a single post in database using post id. note: only the creator of a post can edit a post",
parameters: [
{
$ref: "#/components/parameters/id",
},
],
requestBody: {
... | 6 |
Alamonall/iam | 37d4141 | src/affirmation/types/CompleteAffirmationRequest.ts | TypeScript | www.github.com/Alamonall/iam/tree/main/src/affirmation/types/CompleteAffirmationRequest.ts | https://raw.githubusercontent.com/Alamonall/iam/37d4141/src/affirmation/types/CompleteAffirmationRequest.ts | Alamonall/iam 37d4141 src/affirmation/types/CompleteAffirmationRequest.ts | true | 200 | 393 | import { IsString, ValidateNested } from 'class-validator';
import { JwtContext } from '../../jwt/types';
import { ActionCode } from '../../registration/types';
export default class CompleteAffirmationRequest {
@IsString()
contextId: string;
@IsString()
action: ActionCode;
@IsString()
value: string;
@... | 1 |
hyun1202/data-jobty | e68c8d3 | src/settings/menu/menu.module.ts | TypeScript | www.github.com/hyun1202/data-jobty/tree/main/src/settings/menu/menu.module.ts | https://raw.githubusercontent.com/hyun1202/data-jobty/e68c8d3/src/settings/menu/menu.module.ts | hyun1202/data-jobty e68c8d3 src/settings/menu/menu.module.ts | true | 200 | 718 | import { Module } from "@nestjs/common";
import { MenuService } from "./menu.service";
import { MenuController } from "./menu.controller";
import { MenuRepository } from "./menu.repository";
import { BlogMenuCategoryRepository } from "./blog-menu-category.repository";
import { AuthModule } from "../../auth/auth.module"... | 2 |
viasaud/devflow | 8b6cd77 | types/index.d.ts | TypeScript | www.github.com/viasaud/devflow/tree/main/types/index.d.ts | https://raw.githubusercontent.com/viasaud/devflow/8b6cd77/types/index.d.ts | viasaud/devflow 8b6cd77 types/index.d.ts | true | 200 | 1,432 | import React from "react";
import { BADGE_CRITERIA } from "@/constants/constants";
export interface Author {
name: string;
avatar: string;
username: string;
}
export interface Question {
_id: string;
title: string;
tags: {
id: number;
name: string;
}[];
author: Author;
upVotes: string[];
... | 5 |
unjs/ufo | 46d0a04 | test/url.test.ts | TypeScript | www.github.com/unjs/ufo/tree/main/test/url.test.ts | https://raw.githubusercontent.com/unjs/ufo/46d0a04/test/url.test.ts | unjs/ufo 46d0a04 test/url.test.ts | true | 200 | 2,200 | import { describe, expect, test } from "vitest";
import { $URL } from "../src";
describe("$URL", () => {
test("getters", () => {
const inputURL =
"https://john:doe@example.com:1080/path?query=value&v=1&v=2#hash";
const url = new $URL(inputURL);
expect(url.href).toEqual(inputURL);
expect(url.to... | 1 |
papelsist/cxcweb | f56826f | libs/shared/cxc/feature-antipos/src/lib/anticipo-page/anticipo-page.module.ts | TypeScript | www.github.com/papelsist/cxcweb/tree/main/libs/shared/cxc/feature-antipos/src/lib/anticipo-page/anticipo-page.module.ts | https://raw.githubusercontent.com/papelsist/cxcweb/f56826f/libs/shared/cxc/feature-antipos/src/lib/anticipo-page/anticipo-page.module.ts | papelsist/cxcweb f56826f libs/shared/cxc/feature-antipos/src/lib/anticipo-page/anticipo-page.module.ts | true | 200 | 1,073 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {
UiCommonModule,
AgBooleanRendererComponent,
} from '@nx-papelsa/shared/utils/ui-common';
import { UiMaterialModule } from '@nx-papelsa/shared/utils/ui-material';
import { UiCovalentModule } from '@nx-papelsa/... | 4 |
IceCream0910/icecream-ui | eedcb2e | elements/chip/index.ts | TypeScript | www.github.com/IceCream0910/icecream-ui/tree/main/elements/chip/index.ts | https://raw.githubusercontent.com/IceCream0910/icecream-ui/eedcb2e/elements/chip/index.ts | IceCream0910/icecream-ui eedcb2e elements/chip/index.ts | true | 200 | 761 | // HTMLElement 타입 선언
let HTMLElement: typeof globalThis.HTMLElement = globalThis.HTMLElement || class { };
// 브라우저 환경에서 HTMLElement 초기화
if (typeof window !== 'undefined') {
HTMLElement = window.HTMLElement;
}
import { DefineOnce } from '../util';
import { smallText } from '../typo/style.css';
import { chipStyle } fr... | 6 |
paolini/scandai | eadb270 | pages/api/polls/index.ts | TypeScript | www.github.com/paolini/scandai/tree/main/pages/api/polls/index.ts | https://raw.githubusercontent.com/paolini/scandai/eadb270/pages/api/polls/index.ts | paolini/scandai eadb270 pages/api/polls/index.ts | true | 200 | 3,801 | import { NextApiRequest, NextApiResponse } from 'next'
import randomstring from 'randomstring'
import { ObjectId } from 'mongodb'
import Poll, {POLL_PIPELINE} from '@/models/Poll'
import School from '@/models/School'
import getSessionUser from '@/lib/getSessionUser'
import { schoolYearMatch, requireSingle } from '@/li... | 2 |
maimouna-mn/Angular | 1e2f196 | ArticleFront/src/app/pagination/pagination.component.ts | TypeScript | www.github.com/maimouna-mn/Angular/tree/main/ArticleFront/src/app/pagination/pagination.component.ts | https://raw.githubusercontent.com/maimouna-mn/Angular/1e2f196/ArticleFront/src/app/pagination/pagination.component.ts | maimouna-mn/Angular 1e2f196 ArticleFront/src/app/pagination/pagination.component.ts | true | 200 | 744 | import { Component, EventEmitter, Input, Output,OnInit } from '@angular/core';
@Component({
selector: 'app-pagination',
templateUrl: './pagination.component.html',
styleUrls: ['./pagination.component.css']
})
export class PaginationComponent implements OnInit {
constructor(){}
ngOnInit(): void {
}
getPag... | 4 |
SinekaGnanasekar/phase-4 | 29a606d | src/app/admin/admin.component.ts | TypeScript | www.github.com/SinekaGnanasekar/phase-4/tree/main/src/app/admin/admin.component.ts | https://raw.githubusercontent.com/SinekaGnanasekar/phase-4/29a606d/src/app/admin/admin.component.ts | SinekaGnanasekar/phase-4 29a606d src/app/admin/admin.component.ts | true | 200 | 469 | // admin.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-admin',
templateUrl: './admin.component.html',
styleUrls: ['./admin.component.css']
})
export class AdminComponent {
adminName: string = 'Admin';
adminPassword: string = '********';
changePassword(newPassword:... | 5 |
ksassnowski/motion-canvas-components | f72d99f | src/components/physics/collisions/AxisAlignedBoundingBox.ts | TypeScript | www.github.com/ksassnowski/motion-canvas-components/tree/main/src/components/physics/collisions/AxisAlignedBoundingBox.ts | https://raw.githubusercontent.com/ksassnowski/motion-canvas-components/f72d99f/src/components/physics/collisions/AxisAlignedBoundingBox.ts | ksassnowski/motion-canvas-components f72d99f src/components/physics/collisions/AxisAlignedBoundingBox.ts | true | 200 | 859 | import {Vector2} from '@motion-canvas/core/lib/types';
export class AxisAlignedBoundingBox {
public readonly min: Vector2;
public readonly max: Vector2;
public constructor(minX: number, maxX: number, minY: number, maxY: number);
public constructor(min: Vector2, max: Vector2);
public constructor(
one: nu... | 1 |
santiaguero91/NastClasses | 9ee1a3c | src/classes/classes.controller.ts | TypeScript | www.github.com/santiaguero91/NastClasses/tree/main/src/classes/classes.controller.ts | https://raw.githubusercontent.com/santiaguero91/NastClasses/9ee1a3c/src/classes/classes.controller.ts | santiaguero91/NastClasses 9ee1a3c src/classes/classes.controller.ts | true | 200 | 1,855 | import {
Body,
Controller,
Delete,
Get,
HttpException,
Param,
Patch,
Post,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { ClassesService } from './classes.service';
import { CreateClassDto } from './dto/CreateClass.dto';
import mongoose from 'mongoose';
import { Up... | 2 |
konfig-sdks/pay-pal-checkout-typescript-sdk | 6ed013a | models/orders-capture422.ts | TypeScript | www.github.com/konfig-sdks/pay-pal-checkout-typescript-sdk/tree/main/models/orders-capture422.ts | https://raw.githubusercontent.com/konfig-sdks/pay-pal-checkout-typescript-sdk/6ed013a/models/orders-capture422.ts | konfig-sdks/pay-pal-checkout-typescript-sdk 6ed013a models/orders-capture422.ts | true | 200 | 644 | /*
Orders
An order represents a payment between two or more parties. Use the Orders API to create, update, retrieve, authorize, and capture orders.
The version of the OpenAPI document: 2.13
NOTE: This file is auto generated by Konfig (https://konfigthis.com).
*/
import type * as buffer from "buffer"
import { Order... | 5 |
robs4crops/farmingcontroller | 7b1e814 | src/action/action-service.ts | TypeScript | www.github.com/robs4crops/farmingcontroller/tree/main/src/action/action-service.ts | https://raw.githubusercontent.com/robs4crops/farmingcontroller/7b1e814/src/action/action-service.ts | robs4crops/farmingcontroller 7b1e814 src/action/action-service.ts | true | 200 | 1,074 | import { Lanes } from '../operational/map-maintainer'
import { ILogger } from '../util/logger'
import { Action, ClientActionFunction } from './action'
export type MapActionFunction = (lanes: Lanes) => Lanes
export type ActionFunction = ClientActionFunction | MapActionFunction
export const createActionService = (logge... | 4 |
Karlen374/next-effector-express-mongoDb | e0e09da | client/src/models/searchParams/searchParams.ts | TypeScript | www.github.com/Karlen374/next-effector-express-mongoDb/tree/main/client/src/models/searchParams/searchParams.ts | https://raw.githubusercontent.com/Karlen374/next-effector-express-mongoDb/e0e09da/client/src/models/searchParams/searchParams.ts | Karlen374/next-effector-express-mongoDb e0e09da client/src/models/searchParams/searchParams.ts | true | 200 | 989 | import { createEvent, createStore } from 'effector';
import { ISearchParams } from 'src/types/ISearchParams';
export const changeSearchInput = createEvent<string>();
export const changeShowByLikedBtn = createEvent<void>();
export const changeFilterValue = createEvent<string>();
export const changeVisibleArrayInterval ... | 1 |
loozzi/lazaki | 664528c | frontend/src/services/payment.service.ts | TypeScript | www.github.com/loozzi/lazaki/tree/main/frontend/src/services/payment.service.ts | https://raw.githubusercontent.com/loozzi/lazaki/664528c/frontend/src/services/payment.service.ts | loozzi/lazaki 664528c frontend/src/services/payment.service.ts | true | 200 | 595 | import apiConfig from '~/configs/api.config'
import client from './axios.service'
import { IResponse } from '~/models/response'
interface PaymentQrCodeResponse {
qrCode: string
}
interface PaymentConfirmResponse {
status: string
}
const getQrCode = async (orderId: number): Promise<IResponse<PaymentQrCodeResponse... | 2 |
milonjpi/tms-server-postgres | eaa8c10 | src/app/modules/trip/trip.validation.ts | TypeScript | www.github.com/milonjpi/tms-server-postgres/tree/main/src/app/modules/trip/trip.validation.ts | https://raw.githubusercontent.com/milonjpi/tms-server-postgres/eaa8c10/src/app/modules/trip/trip.validation.ts | milonjpi/tms-server-postgres eaa8c10 src/app/modules/trip/trip.validation.ts | true | 200 | 3,014 | import { z } from 'zod';
const create = z.object({
body: z.object({
data: z.object(
{
startDate: z.string({ required_error: 'Start Date is Required' }),
endDate: z.string({ required_error: 'End Date is Required' }),
from: z.string({ required_error: 'From Location is Required' }),
... | 6 |
lucaveljovic/game-hub | b9d4f56 | src/data/genre.ts | TypeScript | www.github.com/lucaveljovic/game-hub/tree/main/src/data/genre.ts | https://raw.githubusercontent.com/lucaveljovic/game-hub/b9d4f56/src/data/genre.ts | lucaveljovic/game-hub b9d4f56 src/data/genre.ts | true | 200 | 20,802 | export default [
{
"id": 4,
"name": "Action",
"slug": "action",
"games_count": 173576,
"image_background": "https://media.rawg.io/media/games/f87/f87457e8347484033cb34cde6101d08d.jpg",
"games": [
{
"id": 3498,
"slug": "grand-theft-auto-v",
"n... | 5 |
Helestia/moecost | 06ad38f | src/scripts/storage.ts | TypeScript | www.github.com/Helestia/moecost/tree/main/src/scripts/storage.ts | https://raw.githubusercontent.com/Helestia/moecost/06ad38f/src/scripts/storage.ts | Helestia/moecost 06ad38f src/scripts/storage.ts | true | 200 | 10,372 | import Dexie from 'dexie';
class moecostDbClass extends Dexie {
private useDictionary : Dexie.Table<iUseDictionary,1>;
private dictionary : Dexie.Table<iDictionary,string>;
private applicationConfig : Dexie.Table<iApplicationConfig,1>;
private vendor: Dexie.Table<iVendor,string>
辞書 : iDict... | 1 |
BinaryStudioAcademy/bsa-winter-2023-2024-trackmates | 74f9240 | apps/backend/src/db/migrations/20240221125053_add_udemy_vendor.ts | TypeScript | www.github.com/BinaryStudioAcademy/bsa-winter-2023-2024-trackmates/tree/main/apps/backend/src/db/migrations/20240221125053_add_udemy_vendor.ts | https://raw.githubusercontent.com/BinaryStudioAcademy/bsa-winter-2023-2024-trackmates/74f9240/apps/backend/src/db/migrations/20240221125053_add_udemy_vendor.ts | BinaryStudioAcademy/bsa-winter-2023-2024-trackmates 74f9240 apps/backend/src/db/migrations/20240221125053_add_udemy_vendor.ts | true | 200 | 484 | import { type Knex } from "knex";
const TableName = {
COURSES: "courses",
COURSES_TO_USERS: "courses_to_users",
VENDORS: "vendors",
};
const KEY_COLUMN = "key";
const row = { key: "udemy", name: "Udemy", url: "https://www.udemy.com" };
async function up(knex: Knex): Promise<void> {
await knex(TableName.VENDORS).... | 2 |
lfeitosaf/live-chat-back-end | 92ff46f | src/modules/auth/auth.controller.ts | TypeScript | www.github.com/lfeitosaf/live-chat-back-end/tree/main/src/modules/auth/auth.controller.ts | https://raw.githubusercontent.com/lfeitosaf/live-chat-back-end/92ff46f/src/modules/auth/auth.controller.ts | lfeitosaf/live-chat-back-end 92ff46f src/modules/auth/auth.controller.ts | true | 200 | 482 | import { Body, Controller, Post, UseGuards } from '@nestjs/common';
import { AuthService } from './auth.service';
import { LocalAuthGuard } from './local-auth.guard';
interface IUserLogin{
email: string;
password: string;
}
@Controller('login')
export class AuthController {
constructor(private readonly authServ... | 3 |
NathanHayman/rivvi-monorepo | 8bbdab0 | apps/api/src/routers/runs.ts | TypeScript | www.github.com/NathanHayman/rivvi-monorepo/tree/main/apps/api/src/routers/runs.ts | https://raw.githubusercontent.com/NathanHayman/rivvi-monorepo/8bbdab0/apps/api/src/routers/runs.ts | NathanHayman/rivvi-monorepo 8bbdab0 apps/api/src/routers/runs.ts | true | 200 | 1,848 | // src/routers/runs.ts
import {
createRunSchema,
idSchema,
pauseRunSchema,
protectedProcedure,
router,
startRunSchema,
} from "@rivvi/api-client";
import { z } from "zod";
import {
completeRun,
createRun,
deleteRun,
getRunById,
getRunRows,
getRunsByParams,
pauseRun,
resumeRun,
startRun,
} ... | 7 |
juandavidnunez/ms_negocio | 9c6ac0d | database/migrations/1732601245241_gastos.ts | TypeScript | www.github.com/juandavidnunez/ms_negocio/tree/main/database/migrations/1732601245241_gastos.ts | https://raw.githubusercontent.com/juandavidnunez/ms_negocio/9c6ac0d/database/migrations/1732601245241_gastos.ts | juandavidnunez/ms_negocio 9c6ac0d database/migrations/1732601245241_gastos.ts | true | 200 | 893 | import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Gastos extends BaseSchema {
protected tableName = 'gastos'
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.integer('cantidad').unsigned().notNullable()
table... | 4 |
AbhinandIdikayil/Article-MERN | 63c5b0e | server/src/db/index.ts | TypeScript | www.github.com/AbhinandIdikayil/Article-MERN/tree/main/server/src/db/index.ts | https://raw.githubusercontent.com/AbhinandIdikayil/Article-MERN/63c5b0e/server/src/db/index.ts | AbhinandIdikayil/Article-MERN 63c5b0e server/src/db/index.ts | true | 200 | 385 | import mongoose from "mongoose"
import { MONGO_URI } from "../config/env"
export const connectDB = async (): Promise<void> => {
try {
const conn = await mongoose.connect(MONGO_URI)
console.log(`-- 🍃 Database connected successfully 🍃 --`);
} catch (error) {
console.error('Database co... | 5 |
DKozachenko/task-manager | eb6fbeb | frontend/src/app/modules/shared/classes/base-edit-form.component.ts | TypeScript | www.github.com/DKozachenko/task-manager/tree/main/frontend/src/app/modules/shared/classes/base-edit-form.component.ts | https://raw.githubusercontent.com/DKozachenko/task-manager/eb6fbeb/frontend/src/app/modules/shared/classes/base-edit-form.component.ts | DKozachenko/task-manager eb6fbeb frontend/src/app/modules/shared/classes/base-edit-form.component.ts | true | 200 | 889 | import { NzModalRef } from 'ng-zorro-antd/modal';
import { UntilDestroy } from '@ngneat/until-destroy';
import { FormGroup } from '@angular/forms';
/**
* Базовый класс формы редактирования
* T - тип редактируемой модели
*/
@UntilDestroy()
export abstract class BaseEditFormComponent<T extends { _id?: string }> {
/... | 6 |
yhaae01/engine-stand-monitoring | 4d0285d | src/app/pages/request-date/request-date.component.spec.ts | TypeScript | www.github.com/yhaae01/engine-stand-monitoring/tree/main/src/app/pages/request-date/request-date.component.spec.ts | https://raw.githubusercontent.com/yhaae01/engine-stand-monitoring/4d0285d/src/app/pages/request-date/request-date.component.spec.ts | yhaae01/engine-stand-monitoring 4d0285d src/app/pages/request-date/request-date.component.spec.ts | true | 200 | 635 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RequestDateComponent } from './request-date.component';
describe('RequestDateComponent', () => {
let component: RequestDateComponent;
let fixture: ComponentFixture<RequestDateComponent>;
beforeEach(async () => {
await TestBed.confi... | 1 |
U5B/BitBurner | 3a482d9 | src/findcct.ts | TypeScript | www.github.com/U5B/BitBurner/tree/main/src/findcct.ts | https://raw.githubusercontent.com/U5B/BitBurner/3a482d9/src/findcct.ts | U5B/BitBurner 3a482d9 src/findcct.ts | true | 200 | 927 | import { NS } from '@ns'
const servers: Record<string, { parent: string, skip: boolean, contract: boolean }> = {}
function scanTarget (ns: NS, hostname: string, parent: string): void {
const hosts = ns.scan(hostname)
for (const host of hosts) {
if (servers[host] == null) {
servers[host] = {
... | 2 |
brolab-io/ethvn | 301ae8b | polygon-mainnet/backend/src/app/nfts/nft.service.ts | TypeScript | www.github.com/brolab-io/ethvn/tree/main/polygon-mainnet/backend/src/app/nfts/nft.service.ts | https://raw.githubusercontent.com/brolab-io/ethvn/301ae8b/polygon-mainnet/backend/src/app/nfts/nft.service.ts | brolab-io/ethvn 301ae8b polygon-mainnet/backend/src/app/nfts/nft.service.ts | true | 200 | 4,683 | import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { BigNumber, ethers } from 'ethers';
import { PaginateModel, PaginateOptions } from 'mongoose';
import { FindQueryResult } from '../../commons/decorator';
import { NFT, NFTDocument } from './nf... | 3 |
fs-c/multoku | d069bea | src/board/board.ts | TypeScript | www.github.com/fs-c/multoku/tree/main/src/board/board.ts | https://raw.githubusercontent.com/fs-c/multoku/d069bea/src/board/board.ts | fs-c/multoku d069bea src/board/board.ts | true | 200 | 898 | import { User } from './useConnectedBoard';
export const possibleCellValues = [1, 2, 3, 4, 5, 6, 7, 8, 9] as const;
export type CellValue = (typeof possibleCellValues)[number];
export function isPossibleCellValue(value: number): value is CellValue {
return possibleCellValues.includes(value as CellValue);
}
expo... | 7 |
jtabibito/test_actions | fe74f8a | node_modules/.pnpm/@galacean+engine-core@1.4.0-alpha.0/node_modules/@galacean/engine-core/types/particle/modules/SizeOverLifetimeModule.d.ts | TypeScript | www.github.com/jtabibito/test_actions/tree/main/node_modules/.pnpm/@galacean+engine-core@1.4.0-alpha.0/node_modules/@galacean/engine-core/types/particle/modules/SizeOverLifetimeModule.d.ts | https://raw.githubusercontent.com/jtabibito/test_actions/fe74f8a/node_modules/.pnpm/%40galacean%2Bengine-core%401.4.0-alpha.0/node_modules/%40galacean/engine-core/types/particle/modules/SizeOverLifetimeModule.d.ts | jtabibito/test_actions fe74f8a node_modules/.pnpm/@galacean+engine-core@1.4.0-alpha.0/node_modules/@galacean/engine-core/types/particle/modules/SizeOverLifetimeModule.d.ts | true | 200 | 1,904 | import { ShaderMacro } from "../../shader/ShaderMacro";
import { ShaderProperty } from "../../shader/ShaderProperty";
import { ParticleGenerator } from "../ParticleGenerator";
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
/**
* S... | 4 |
BombelaDev/API-NODE | a3d64c8 | controllers/Catalogos/catalogos.controller.ts | TypeScript | www.github.com/BombelaDev/API-NODE/tree/main/controllers/Catalogos/catalogos.controller.ts | https://raw.githubusercontent.com/BombelaDev/API-NODE/a3d64c8/controllers/Catalogos/catalogos.controller.ts | BombelaDev/API-NODE a3d64c8 controllers/Catalogos/catalogos.controller.ts | true | 200 | 7,365 | import { Request, Response } from "express";
import { db, NB_BUCKET, URL_BACKEND, URL_FRONTEND } from "../../config/config";
import ErrorClass from "../../helpers/ErrorsValidate";
class CatalogosController {
static GetCavs = async (req: any, res: Response) => {
try {
// let replacements = FG_TIPO_CAV == 0... | 6 |
rajatsandeepsen/t3-turbo-biome | 386fe9b | apps/native/src/components/primitives/tabs/types.ts | TypeScript | www.github.com/rajatsandeepsen/t3-turbo-biome/tree/main/apps/native/src/components/primitives/tabs/types.ts | https://raw.githubusercontent.com/rajatsandeepsen/t3-turbo-biome/386fe9b/apps/native/src/components/primitives/tabs/types.ts | rajatsandeepsen/t3-turbo-biome 386fe9b apps/native/src/components/primitives/tabs/types.ts | true | 200 | 481 | import type { ForceMountable } from "~/components/primitives/types";
interface TabsRootProps {
value: string;
onValueChange: (value: string) => void;
/**
* Platform: WEB ONLY
*/
orientation?: "horizontal" | "vertical";
/**
* Platform: WEB ONLY
*/
dir?: "ltr" | "rtl";
/**
* Platform: WEB ONLY
*/
act... | 5 |
ducthanhpg2k1/tele-cypto-app | edfde25 | src/locales/translations/en/modules/navigation.ts | TypeScript | www.github.com/ducthanhpg2k1/tele-cypto-app/tree/main/src/locales/translations/en/modules/navigation.ts | https://raw.githubusercontent.com/ducthanhpg2k1/tele-cypto-app/edfde25/src/locales/translations/en/modules/navigation.ts | ducthanhpg2k1/tele-cypto-app edfde25 src/locales/translations/en/modules/navigation.ts | true | 200 | 966 | export const navigation = {
home: 'Home',
market: 'Market',
future: 'Future',
wallet: 'Wallet',
profile: 'Profile',
more: 'More',
quickActions: {
transfer: 'Transfer',
invite: 'Invite',
staking: 'Staking',
spot: 'Spot',
convert: 'Convert',
notification: 'Notifications',
edit: '... | 2 |
GovAlta/ui-components | 8eab754 | libs/angular-components/src/lib/components/input/input.ts | TypeScript | www.github.com/GovAlta/ui-components/tree/main/libs/angular-components/src/lib/components/input/input.ts | https://raw.githubusercontent.com/GovAlta/ui-components/8eab754/libs/angular-components/src/lib/components/input/input.ts | GovAlta/ui-components 8eab754 libs/angular-components/src/lib/components/input/input.ts | true | 200 | 4,660 | import { GoabIconType, GoabInputAutoCapitalize, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Spacing } from "@abgov/ui-components-common";
import { CUSTOM_ELEMENTS_SCHEMA, Component, EventEmitter, Input, Output, forwardRef, OnInit } from "@angular/core... | 1 |
codegeeks-ir/codegeeks-ir | 75dbcd0 | data/fields/integer-field.ts | TypeScript | www.github.com/codegeeks-ir/codegeeks-ir/tree/main/data/fields/integer-field.ts | https://raw.githubusercontent.com/codegeeks-ir/codegeeks-ir/75dbcd0/data/fields/integer-field.ts | codegeeks-ir/codegeeks-ir 75dbcd0 data/fields/integer-field.ts | true | 200 | 808 | import IRange from "utils/schema/filters/range.interface";
import ISort from "utils/schema/filters/sort.interface";
import INumberProperty from "utils/schema/properties/number-property.interface";
import { PropertyType } from "utils/schema/properties";
const integerField: INumberProperty = {
filters: {
range: {
... | 7 |
haoshiyou/haoshiyou-uniapp | 923e569 | bot/ai-extraction-batch-main.ts | TypeScript | www.github.com/haoshiyou/haoshiyou-uniapp/tree/main/bot/ai-extraction-batch-main.ts | https://raw.githubusercontent.com/haoshiyou/haoshiyou-uniapp/923e569/bot/ai-extraction-batch-main.ts | haoshiyou/haoshiyou-uniapp 923e569 bot/ai-extraction-batch-main.ts | true | 200 | 1,155 | import {extractFromRawText, ObjFromEntries} from "./ai-utils";
require(`dotenv`).config();
import {Db, MongoClient} from "mongodb";
async function main() {
let client:MongoClient = await MongoClient.connect(process.env.MONGODB_URI);
const mongodb:Db = client.db(process.env.MONGODB_URI.split('/')[-1]);
let resul... | 3 |
mohamedgalal30/identityaccess | 0bcaec2 | src/adapters/redis-repo/client.ts | TypeScript | www.github.com/mohamedgalal30/identityaccess/tree/main/src/adapters/redis-repo/client.ts | https://raw.githubusercontent.com/mohamedgalal30/identityaccess/0bcaec2/src/adapters/redis-repo/client.ts | mohamedgalal30/identityaccess 0bcaec2 src/adapters/redis-repo/client.ts | true | 200 | 667 | import { Client } from 'redis-om'
import { redisUrl } from "../../config/db";
export class RedisClient {
private static _instance: RedisClient;
private client: Client;
private constructor() {
this.client = new Client()
}
public static get Instance() {
return this._instance || (thi... | 4 |
XEric20/-LayaAir_study | c128b30 | src/layaAir/laya/navigation/common/TitleConfig.ts | TypeScript | www.github.com/XEric20/-LayaAir_study/tree/main/src/layaAir/laya/navigation/common/TitleConfig.ts | https://raw.githubusercontent.com/XEric20/-LayaAir_study/c128b30/src/layaAir/laya/navigation/common/TitleConfig.ts | XEric20/-LayaAir_study c128b30 src/layaAir/laya/navigation/common/TitleConfig.ts | true | 200 | 1,590 | import { Vector3 } from "../../maths/Vector3";
/**
* @internal
* @zh js向wasm 写入数据,内部使用;不对外开放。
*/
export class TitleConfig {
tx: number;
ty: number;
bmin: number[];
bmax: number[];
agentHeight: number;
agentRadius: number;
agentMaxClimb: number;
maxEdgeLen: number;
maxSimplificat... | 6 |
cmtl0204/ignug-frontend | baf1bd0 | src/app/utils/pipes/core/academic-state-severity.pipe.ts | TypeScript | www.github.com/cmtl0204/ignug-frontend/tree/main/src/app/utils/pipes/core/academic-state-severity.pipe.ts | https://raw.githubusercontent.com/cmtl0204/ignug-frontend/baf1bd0/src/app/utils/pipes/core/academic-state-severity.pipe.ts | cmtl0204/ignug-frontend baf1bd0 src/app/utils/pipes/core/academic-state-severity.pipe.ts | true | 200 | 385 | import {Pipe, PipeTransform} from '@angular/core';
import {CatalogueModel} from "@models/core";
import {Severity} from "@utils/pipes/types.type";
@Pipe({
name: 'academicStateSeverity'
})
export class AcademicStateSeverityPipe implements PipeTransform {
transform(value: string = ''): Severity {
return value ==... | 5 |
pdxuan/angular-base-2020 | 544fffc | src/app/components/product-brand/product-brand.module.ts | TypeScript | www.github.com/pdxuan/angular-base-2020/tree/main/src/app/components/product-brand/product-brand.module.ts | https://raw.githubusercontent.com/pdxuan/angular-base-2020/544fffc/src/app/components/product-brand/product-brand.module.ts | pdxuan/angular-base-2020 544fffc src/app/components/product-brand/product-brand.module.ts | true | 200 | 1,252 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProductBrandComponent } from './product-brand.component';
import { Routes } from '@angular/router';
import {MatTableModule} from '@angular/material/table';
import { ProductBrandRoutingModule } from './product-brand-routin... | 2 |
ctartist621/llama | 5ff22a8 | typings/index.d.ts | TypeScript | www.github.com/ctartist621/llama/tree/main/typings/index.d.ts | https://raw.githubusercontent.com/ctartist621/llama/5ff22a8/typings/index.d.ts | ctartist621/llama 5ff22a8 typings/index.d.ts | true | 200 | 2,281 | declare module "config"
declare module "@alpacahq/alpaca-trade-api"
interface IAsset {
id: string;
class: string;
exchange: string;
symbol: string;
status: string;
tradable: Boolean;
marginable: Boolean;
shortable: Boolean;
easy_to_borrow: Boolean;
}
interface IBarOptions {
limit?: number;
start... | 3 |
joaoribeirosl/api-vendas | 86b284b | src/modules/customers/services/UpdateCustomerService.ts | TypeScript | www.github.com/joaoribeirosl/api-vendas/tree/main/src/modules/customers/services/UpdateCustomerService.ts | https://raw.githubusercontent.com/joaoribeirosl/api-vendas/86b284b/src/modules/customers/services/UpdateCustomerService.ts | joaoribeirosl/api-vendas 86b284b src/modules/customers/services/UpdateCustomerService.ts | true | 200 | 954 | import AppError from '@shared/exceptions/AppError'
import { getCustomRepository } from 'typeorm'
import CustomersRepository from '../typeorm/repositories/CustomerRepository'
import Customer from '../typeorm/entities/customer'
interface IRequest {
id: string
name: string
email: string
}
class UpdateCustomerServi... | 1 |
rkashif96/ScholarsDen-Test | ead00b3 | app/api/logout/route.ts | TypeScript | www.github.com/rkashif96/ScholarsDen-Test/tree/main/app/api/logout/route.ts | https://raw.githubusercontent.com/rkashif96/ScholarsDen-Test/ead00b3/app/api/logout/route.ts | rkashif96/ScholarsDen-Test ead00b3 app/api/logout/route.ts | true | 200 | 502 | import { NextRequest, NextResponse } from "next/server"
import { cookies } from "next/headers"
const Response = (obj: any, status: any) => {
return NextResponse.json({ obj, status })
}
export const GET = async (request: NextRequest) => {
try {
cookies().delete('token')
return Response({ message: 'Logged Ou... | 7 |
neJok/Music-Discord | 6d30c6b | src/app/center/commands/collectors/Other/PlaylistCreate.ts | TypeScript | www.github.com/neJok/Music-Discord/tree/main/src/app/center/commands/collectors/Other/PlaylistCreate.ts | https://raw.githubusercontent.com/neJok/Music-Discord/6d30c6b/src/app/center/commands/collectors/Other/PlaylistCreate.ts | neJok/Music-Discord 6d30c6b src/app/center/commands/collectors/Other/PlaylistCreate.ts | true | 200 | 3,539 | import { ActionRowBuilder, ButtonInteraction, CommandInteraction, ModalBuilder, TextChannel, TextInputBuilder, TextInputStyle } from 'discord.js'
import { MusicCenter } from '@struct/clients/MusicCenter'
import { MusicActionRow } from '../../../../../struct/utils/MusicComponents'
import MusicEmbed from '../../../../../... | 4 |
atulkhot16/xcelhiresTask | 2a8473b | src/app/shared/services/auth.interceptor.ts | TypeScript | www.github.com/atulkhot16/xcelhiresTask/tree/main/src/app/shared/services/auth.interceptor.ts | https://raw.githubusercontent.com/atulkhot16/xcelhiresTask/2a8473b/src/app/shared/services/auth.interceptor.ts | atulkhot16/xcelhiresTask 2a8473b src/app/shared/services/auth.interceptor.ts | true | 200 | 613 | import { Injectable } from '@angular/core';
import {
HttpInterceptor,
HttpRequest,
HttpHandler,
HttpEvent,
} from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable()
export class AuthInterceptor implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<H... | 5 |
FranciscoArancibiax/-web_site_mercy-developer- | a8c5666 | src/app/especialidades/swoficina/swoficina.component.spec.ts | TypeScript | www.github.com/FranciscoArancibiax/-web_site_mercy-developer-/tree/main/src/app/especialidades/swoficina/swoficina.component.spec.ts | https://raw.githubusercontent.com/FranciscoArancibiax/-web_site_mercy-developer-/a8c5666/src/app/especialidades/swoficina/swoficina.component.spec.ts | FranciscoArancibiax/-web_site_mercy-developer- a8c5666 src/app/especialidades/swoficina/swoficina.component.spec.ts | true | 200 | 618 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SWOficinaComponent } from './swoficina.component';
describe('SWOficinaComponent', () => {
let component: SWOficinaComponent;
let fixture: ComponentFixture<SWOficinaComponent>;
beforeEach(async () => {
await TestBed.configureTesting... | 2 |
sairahul1526/sal-admin | ed61446 | src/app/pages/sign-in/sign-in.component.ts | TypeScript | www.github.com/sairahul1526/sal-admin/tree/main/src/app/pages/sign-in/sign-in.component.ts | https://raw.githubusercontent.com/sairahul1526/sal-admin/ed61446/src/app/pages/sign-in/sign-in.component.ts | sairahul1526/sal-admin ed61446 src/app/pages/sign-in/sign-in.component.ts | true | 200 | 1,141 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ApiClientService } from 'src/app/services/api-client.service';
@Component({
selector: 'app-sign-in',
templateUrl: './sign-in.component.html',
styleUrls: ['./sign-in.component.scss']
})
export class SignInCompon... | 1 |
MariusTNTX/Risk_RPG | a36cc8c | risk_rpg/src/app/public/components/map-manager/components/map-manager-area-dialog/map-manager-area-dialog.component.ts | TypeScript | www.github.com/MariusTNTX/Risk_RPG/tree/main/risk_rpg/src/app/public/components/map-manager/components/map-manager-area-dialog/map-manager-area-dialog.component.ts | https://raw.githubusercontent.com/MariusTNTX/Risk_RPG/a36cc8c/risk_rpg/src/app/public/components/map-manager/components/map-manager-area-dialog/map-manager-area-dialog.component.ts | MariusTNTX/Risk_RPG a36cc8c risk_rpg/src/app/public/components/map-manager/components/map-manager-area-dialog/map-manager-area-dialog.component.ts | true | 200 | 2,639 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
import { NotificationService } from 'src/app/core/notification.service';
import { ConfirmDialogColorEnum } from 'src/app/public/models/enums/confirmDialogColorEnum';
import { AreaIntf ... | 3 |
werlleyg/quefilme | 02c02a1 | src/infrastructure/services/translatorImpl.service.ts | TypeScript | www.github.com/werlleyg/quefilme/tree/main/src/infrastructure/services/translatorImpl.service.ts | https://raw.githubusercontent.com/werlleyg/quefilme/02c02a1/src/infrastructure/services/translatorImpl.service.ts | werlleyg/quefilme 02c02a1 src/infrastructure/services/translatorImpl.service.ts | true | 200 | 1,171 | import {
BadRequestError,
NotFoundError,
UnexpectedError,
} from "@/domain/errors";
import { HttpClient, HttpStatusCode } from "@/domain/protocols/http";
import { TranslatorService } from "@/domain/services/translator.service";
export class TranslatorServiceImpl implements TranslatorService {
constructor(
... | 7 |
rusec/NetLock | f2e00d7 | src/routes/api/beacon/delete/[beacon].ts | TypeScript | www.github.com/rusec/NetLock/tree/main/src/routes/api/beacon/delete/[beacon].ts | https://raw.githubusercontent.com/rusec/NetLock/f2e00d7/src/routes/api/beacon/delete/%5Bbeacon%5D.ts | rusec/NetLock f2e00d7 src/routes/api/beacon/delete/[beacon].ts | true | 200 | 985 | import { Request, Response } from "express";
import { authenticate } from "../../../../middleware/token";
import { validateUser } from "../../../../middleware/userUtils";
import { API } from "netlocklib/dist/api";
import db from "../../../../db/db";
export const DELETE = [ authenticate, validateUser, async (req: Reque... | 4 |
ISAIASAYNZ/AngularCurso | b1dc7b5 | src/app/peliculas/filtro-peliculas/filtro-peliculas.component.ts | TypeScript | www.github.com/ISAIASAYNZ/AngularCurso/tree/main/src/app/peliculas/filtro-peliculas/filtro-peliculas.component.ts | https://raw.githubusercontent.com/ISAIASAYNZ/AngularCurso/b1dc7b5/src/app/peliculas/filtro-peliculas/filtro-peliculas.component.ts | ISAIASAYNZ/AngularCurso b1dc7b5 src/app/peliculas/filtro-peliculas/filtro-peliculas.component.ts | true | 200 | 3,496 | import { Component } from '@angular/core';
import { Form, FormBuilder, FormGroup } from '@angular/forms';
import { Location } from '@angular/common';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-filtro-peliculas',
templateUrl: './filtro-peliculas.component.html',
styleUrl: './fil... | 0 |
crookedneighbor/mana-tithe | 1146a57 | src/components/CardTooltip.test.ts | TypeScript | www.github.com/crookedneighbor/mana-tithe/tree/main/src/components/CardTooltip.test.ts | https://raw.githubusercontent.com/crookedneighbor/mana-tithe/1146a57/src/components/CardTooltip.test.ts | crookedneighbor/mana-tithe 1146a57 src/components/CardTooltip.test.ts | true | 200 | 1,125 | import { render, screen } from '@testing-library/svelte';
import CardTooltip from './CardTooltip.svelte';
describe('CardTooltip', () => {
it('does not display if no card is passed', () => {
render(CardTooltip, {
props: {
card: null,
mouseEvent: {} as MouseEvent
}
});
const cardContainer = screen.... | 5 |
EWING-ZHANG/my_superSonic | 5c9d7fc | webapp/packages/supersonic-fe/src/components/MDatePicker/utils.ts | TypeScript | www.github.com/EWING-ZHANG/my_superSonic/tree/main/webapp/packages/supersonic-fe/src/components/MDatePicker/utils.ts | https://raw.githubusercontent.com/EWING-ZHANG/my_superSonic/5c9d7fc/webapp/packages/supersonic-fe/src/components/MDatePicker/utils.ts | EWING-ZHANG/my_superSonic 5c9d7fc webapp/packages/supersonic-fe/src/components/MDatePicker/utils.ts | true | 200 | 16,921 | import moment from 'moment';
import type { Moment } from 'moment';
import { DateMode, DateRangeType, DateRangePicker, DateRangeTypeToPickerMap } from './type';
import {
DatePeriodType,
PerDatePeriodType,
DateSettingType,
DynamicAdvancedConfigType,
DateRangeParams,
shortCutIdType,
} from './type';
import { L... | 6 |
TrentStrum/how2help | d07abb1 | src/app/api/entities/reviews/mocks/mocks.ts | TypeScript | www.github.com/TrentStrum/how2help/tree/main/src/app/api/entities/reviews/mocks/mocks.ts | https://raw.githubusercontent.com/TrentStrum/how2help/d07abb1/src/app/api/entities/reviews/mocks/mocks.ts | TrentStrum/how2help d07abb1 src/app/api/entities/reviews/mocks/mocks.ts | true | 200 | 3,371 | import { Reviews } from '../types/review.types';
export const mockReviews: Reviews[] = [
{
reviewId: 1,
title: 'Fantastic Food Bank Initiative',
review:
'Helped distribute food to over 100 families. The organization was well-structured and the impact was immediate.',
entityType: 'Organization',
entityId:... | 2 |
viapip/lerna | 6935bf6 | packages/eslint-config/src/index.ts | TypeScript | www.github.com/viapip/lerna/tree/main/packages/eslint-config/src/index.ts | https://raw.githubusercontent.com/viapip/lerna/6935bf6/packages/eslint-config/src/index.ts | viapip/lerna 6935bf6 packages/eslint-config/src/index.ts | true | 200 | 2,107 | import antfu from '@antfu/eslint-config'
import type { Linter } from 'eslint'
async function config(): Promise<Linter.FlatConfig[]> {
return await antfu({
type: 'lib',
stylistic: true,
rules: {
'antfu/if-newline': ['error'],
'style/max-statements-per-line': ['off'],
'style/array-bracke... | 3 |
pocka/figspec | 59732e5 | src/ui/menuBar/icons.ts | TypeScript | www.github.com/pocka/figspec/tree/main/src/ui/menuBar/icons.ts | https://raw.githubusercontent.com/pocka/figspec/59732e5/src/ui/menuBar/icons.ts | pocka/figspec 59732e5 src/ui/menuBar/icons.ts | true | 200 | 1,564 | import { attr, className, svg, style } from "../../dom.js";
export const icons = {
info: () =>
svg(
"svg",
[
attr("viewBox", "0 0 100 100"),
className("mb-icon"),
attr("fill", "none"),
attr("stroke-width", "8"),
],
[
svg("circle", [
attr("... | 1 |
heliumtank92/am92-cli | f85cf65 | src/commands/webapp/fileTemplates/components/funcType/FUNC_COMP_REDUX.ts | TypeScript | www.github.com/heliumtank92/am92-cli/tree/main/src/commands/webapp/fileTemplates/components/funcType/FUNC_COMP_REDUX.ts | https://raw.githubusercontent.com/heliumtank92/am92-cli/f85cf65/src/commands/webapp/fileTemplates/components/funcType/FUNC_COMP_REDUX.ts | heliumtank92/am92-cli f85cf65 src/commands/webapp/fileTemplates/components/funcType/FUNC_COMP_REDUX.ts | true | 200 | 765 | const FUNC_COMP_REDUX = `import React from 'react'
import { connect, ConnectedProps } from 'react-redux'
import { DsTypography } from '@am92/react-design-system'
import { TAppDispatch, TAppSore } from '~/src/Configurations/AppStore'
export interface I{componentName}Props extends PropsFromRedux {}
const {componentNam... | 7 |
JRJurman/tram-new-calc | 2967322 | src/useCalculatorStore.ts | TypeScript | www.github.com/JRJurman/tram-new-calc/tree/main/src/useCalculatorStore.ts | https://raw.githubusercontent.com/JRJurman/tram-new-calc/2967322/src/useCalculatorStore.ts | JRJurman/tram-new-calc 2967322 src/useCalculatorStore.ts | true | 200 | 2,184 | import { useStore } from "tram-one";
export const useCalculatorStore = () => {
const calculatorStore = useStore(["200", "+"]);
// function to handle a digit being pressed
const addDigitToStore = (newDigit) => {
const lastValue = calculatorStore.at(-1);
const lastValueIsNumber = !isNaN(parseFloat(lastVal... | 4 |
GuScarpim/NestJS-API | 16ebba5 | server/src/quotes/quotes.service.ts | TypeScript | www.github.com/GuScarpim/NestJS-API/tree/main/server/src/quotes/quotes.service.ts | https://raw.githubusercontent.com/GuScarpim/NestJS-API/16ebba5/server/src/quotes/quotes.service.ts | GuScarpim/NestJS-API 16ebba5 server/src/quotes/quotes.service.ts | true | 200 | 1,224 | import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
import { Quote } from './interfaces/quote.interface';
import { CreateQuoteDto } from './dto/create-quote.dto';
import { Model } from 'mongoose';
import { InjectModel } from '@nestjs/mongoose';
//Injetando um servico
@Injectable()
export class Quot... | 5 |
DennisWilliam/react-lib-typescript-base | fe415cb | src/styles/global.ts | TypeScript | www.github.com/DennisWilliam/react-lib-typescript-base/tree/main/src/styles/global.ts | https://raw.githubusercontent.com/DennisWilliam/react-lib-typescript-base/fe415cb/src/styles/global.ts | DennisWilliam/react-lib-typescript-base fe415cb src/styles/global.ts | true | 200 | 1,827 | import { createGlobalStyle } from "styled-components";
import GlobalProps from "./types";
export default createGlobalStyle<GlobalProps>`
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,500,600,700&display=swap');
*{
margin: 0;
padding: 0;
outline: 0;
... | 0 |
GuilleTheBeast/Registro-Externado-1.2.0 | b5eb3b2 | Backend/src/externado_responsible/externado_responsible.service.ts | TypeScript | www.github.com/GuilleTheBeast/Registro-Externado-1.2.0/tree/main/Backend/src/externado_responsible/externado_responsible.service.ts | https://raw.githubusercontent.com/GuilleTheBeast/Registro-Externado-1.2.0/b5eb3b2/Backend/src/externado_responsible/externado_responsible.service.ts | GuilleTheBeast/Registro-Externado-1.2.0 b5eb3b2 Backend/src/externado_responsible/externado_responsible.service.ts | true | 200 | 8,824 | import { BadRequestException, Injectable, Logger, NotFoundException } from '@nestjs/common';
import { UpdateExternadoResponsibleDto } from './dto/update-externado_responsible.dto';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { ExternadoResponsible } from './entities/... | 6 |
cozyloon/testcafe-demo | e7ddb4f | page_objects/pages/CheckoutPage.ts | TypeScript | www.github.com/cozyloon/testcafe-demo/tree/main/page_objects/pages/CheckoutPage.ts | https://raw.githubusercontent.com/cozyloon/testcafe-demo/e7ddb4f/page_objects/pages/CheckoutPage.ts | cozyloon/testcafe-demo e7ddb4f page_objects/pages/CheckoutPage.ts | true | 200 | 833 | import { Selector,t } from "testcafe";
class CheckoutPage {
firstNameInput:Selector
lastNameInput:Selector
zipCode:Selector
continueButton:Selector
finishButton:Selector
constructor() {
this.firstNameInput = Selector('#first-name');
this.lastNameInput = Selector('#last-name');... | 2 |
summersab/dutchie-taxes | 5b1c3dc | src/state/app.ts | TypeScript | www.github.com/summersab/dutchie-taxes/tree/main/src/state/app.ts | https://raw.githubusercontent.com/summersab/dutchie-taxes/5b1c3dc/src/state/app.ts | summersab/dutchie-taxes 5b1c3dc src/state/app.ts | true | 200 | 2,027 | import _ from 'lodash';
import ApolloClientUtils from 'shared/utils/apollo-client-utils';
import { UIState } from 'src/state/ui';
import { FeatureFlagsState } from 'src/state/feature-flags';
import { UserState } from 'src/state/user';
import { PusherState } from 'src/state/pusher';
import { StreamState } from 'src/stat... | 3 |
solarmass/production-project | 379b1d3 | src/entities/User/index.ts | TypeScript | www.github.com/solarmass/production-project/tree/main/src/entities/User/index.ts | https://raw.githubusercontent.com/solarmass/production-project/379b1d3/src/entities/User/index.ts | solarmass/production-project 379b1d3 src/entities/User/index.ts | true | 200 | 673 | export {
getUserAuthData,
} from './model/selectors/getUserAuthData/getUserAuthData';
export {
getUserInited,
} from './model/selectors/getUserInited/getUserInited';
export { isUserAdmin, isUserManager, getUserRoles } from './model/selectors/roleSelectors';
export {
userReducer,
userActions,
} from '... | 7 |
FlamingCeo/simple-tv-nextjs | 4a55951 | api/src/models/payment.crm.model.ts | TypeScript | www.github.com/FlamingCeo/simple-tv-nextjs/tree/main/api/src/models/payment.crm.model.ts | https://raw.githubusercontent.com/FlamingCeo/simple-tv-nextjs/4a55951/api/src/models/payment.crm.model.ts | FlamingCeo/simple-tv-nextjs 4a55951 api/src/models/payment.crm.model.ts | true | 200 | 1,835 | import { DataTypes, Model, Optional } from "sequelize";
import sequelize from "@lib/connection/db.connection";
import { Series } from "./series.crm.model";
import { Episode } from "./episode.crm.model";
import { Season } from "./season.crm.model";
import { User } from "./user.crm.model";
interface PaymentAttributes {
... | 2 |
vinh4979/BE-baemin | 40530fe | src/main.ts | TypeScript | www.github.com/vinh4979/BE-baemin/tree/main/src/main.ts | https://raw.githubusercontent.com/vinh4979/BE-baemin/40530fe/src/main.ts | vinh4979/BE-baemin 40530fe src/main.ts | true | 200 | 944 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as express from 'express';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
// swagger
const config =... | 6 |
Kazuya-Sakamoto/lgtm-kinako | 515d891 | src/features/dashboard/hooks/useUpdateAlbumTags.ts | TypeScript | www.github.com/Kazuya-Sakamoto/lgtm-kinako/tree/main/src/features/dashboard/hooks/useUpdateAlbumTags.ts | https://raw.githubusercontent.com/Kazuya-Sakamoto/lgtm-kinako/515d891/src/features/dashboard/hooks/useUpdateAlbumTags.ts | Kazuya-Sakamoto/lgtm-kinako 515d891 src/features/dashboard/hooks/useUpdateAlbumTags.ts | true | 200 | 1,881 | import { reactive } from 'vue'
import { useRuntimeConfig } from 'nuxt/app'
import { storeToRefs } from 'pinia'
import { useLoginStore } from '@/store/login'
import { h } from '@/lib/headers'
import { useErrorHandler } from '@/hooks/useErrorHandler'
type State = {
input: {
albumId: number
tagIds: number[]
}... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.