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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Pacl3m/my-DA-Bubble | 5dab7a1 | src/app/login/login.component.ts | TypeScript | www.github.com/Pacl3m/my-DA-Bubble/tree/main/src/app/login/login.component.ts | https://raw.githubusercontent.com/Pacl3m/my-DA-Bubble/5dab7a1/src/app/login/login.component.ts | Pacl3m/my-DA-Bubble 5dab7a1 src/app/login/login.component.ts | true | 200 | 9,480 | import { Component, HostListener, OnDestroy, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Router, RouterModule, NavigationStart } from '@angular/router';
import { FormBuilder, ReactiveFormsModule, Validators, ValidationErrors } from '@angular/forms';
import { initializeApp } f... | 5 |
rnsrk/wisski_cloud_daemon | dc354cf | src/api/v1/instance/instance.controller.ts | TypeScript | www.github.com/rnsrk/wisski_cloud_daemon/tree/main/src/api/v1/instance/instance.controller.ts | https://raw.githubusercontent.com/rnsrk/wisski_cloud_daemon/dc354cf/src/api/v1/instance/instance.controller.ts | rnsrk/wisski_cloud_daemon dc354cf src/api/v1/instance/instance.controller.ts | true | 200 | 3,659 | // Import the Account model
import { getWisskiInstanceData } from '../../../databaseActions';
import Deleter from '../../../deleter';
import { appLogger, errorLogger } from '../../../logging/log';
import Provisioner from '../../../provisioner';
import { Request, Response } from "express";
// Create a new provis... | 6 |
Jyanial-Dewan/Procg-prisma | afc03e9 | src/Controller/defUser.controller.ts | TypeScript | www.github.com/Jyanial-Dewan/Procg-prisma/tree/main/src/Controller/defUser.controller.ts | https://raw.githubusercontent.com/Jyanial-Dewan/Procg-prisma/afc03e9/src/Controller/defUser.controller.ts | Jyanial-Dewan/Procg-prisma afc03e9 src/Controller/defUser.controller.ts | true | 200 | 3,839 | import { Request, Response } from "express";
import prisma from "../Services/prisma";
export const defUserController = {
async index(req: Request, res: Response) {
const defUsers = await prisma.def_users.findMany();
return res.status(200).json(defUsers)
},
async uniqueUser(req: Request, r... | 2 |
asapovk/roothx | d27fe43 | playground/mailbox/src/compose/reducers/openWindow.reducer.ts | TypeScript | www.github.com/asapovk/roothx/tree/main/playground/mailbox/src/compose/reducers/openWindow.reducer.ts | https://raw.githubusercontent.com/asapovk/roothx/d27fe43/playground/mailbox/src/compose/reducers/openWindow.reducer.ts | asapovk/roothx d27fe43 playground/mailbox/src/compose/reducers/openWindow.reducer.ts | true | 200 | 340 | export const openWindowReducer = (state, payload) => {
if (payload.id === '-1') {
const id = `${Math.random()}`;
const newComposeItem = {
id,
subject: '',
};
state.composeItems = [newComposeItem, ...state.composeItems];
state.openedComposeId = id;
} else {
state.openedComposeId =... | 3 |
flpmcruz/nestjs-typeorm-usecase | b44764f | src/activities/activities.module.ts | TypeScript | www.github.com/flpmcruz/nestjs-typeorm-usecase/tree/main/src/activities/activities.module.ts | https://raw.githubusercontent.com/flpmcruz/nestjs-typeorm-usecase/b44764f/src/activities/activities.module.ts | flpmcruz/nestjs-typeorm-usecase b44764f src/activities/activities.module.ts | true | 200 | 527 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule } from '@nestjs/config';
import { ActivitiesService } from './activities.service';
import { ActivitiesController } from './activities.controller';
import { Activity } from './entities/activity.entity';
@Modu... | 0 |
sakin070/storely-angular | ee045a2 | src/app/_services/home.service.ts | TypeScript | www.github.com/sakin070/storely-angular/tree/main/src/app/_services/home.service.ts | https://raw.githubusercontent.com/sakin070/storely-angular/ee045a2/src/app/_services/home.service.ts | sakin070/storely-angular ee045a2 src/app/_services/home.service.ts | true | 200 | 2,516 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import {TokenStorageService} from './token-storage.service';
// const AUTH_API = 'https://storley.herokuapp.com';
const AUTH_API = 'http://localhost:8080/api';
@Injectable({
... | 5 |
AndreySkripachev/algorithms-and-data-structures | 0060437 | src/basics/stack/__tests__/stack.spec.ts | TypeScript | www.github.com/AndreySkripachev/algorithms-and-data-structures/tree/main/src/basics/stack/__tests__/stack.spec.ts | https://raw.githubusercontent.com/AndreySkripachev/algorithms-and-data-structures/0060437/src/basics/stack/__tests__/stack.spec.ts | AndreySkripachev/algorithms-and-data-structures 0060437 src/basics/stack/__tests__/stack.spec.ts | true | 200 | 1,538 | import { randomInt } from '../../../../utils/tests/number';
import { Stack } from '../';
interface Config {
readonly value1: number;
readonly value2: number;
readonly stack: Stack<number>;
}
const createConfig = (): Config => {
const value1 = randomInt();
const value2 = randomInt();
const stack = Stack.f... | 6 |
stpedroduarte/nosconformes-web | 6119ffe | src/components/HeaderWithTabs/styles.ts | TypeScript | www.github.com/stpedroduarte/nosconformes-web/tree/main/src/components/HeaderWithTabs/styles.ts | https://raw.githubusercontent.com/stpedroduarte/nosconformes-web/6119ffe/src/components/HeaderWithTabs/styles.ts | stpedroduarte/nosconformes-web 6119ffe src/components/HeaderWithTabs/styles.ts | true | 200 | 858 | import styled from 'styled-components'
export const Container = styled.div`
display: flex;
flex-direction: column;
background: #E9EFF5;
width: 100vw;
min-height: 168px;
.header-header {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 66px;
margin-bottom: 54px;
margin-left: 176px... | 2 |
DmitryMoskalenko12/Halo-Lab-Test-Task | f2d7741 | src/types/types.ts | TypeScript | www.github.com/DmitryMoskalenko12/Halo-Lab-Test-Task/tree/main/src/types/types.ts | https://raw.githubusercontent.com/DmitryMoskalenko12/Halo-Lab-Test-Task/f2d7741/src/types/types.ts | DmitryMoskalenko12/Halo-Lab-Test-Task f2d7741 src/types/types.ts | true | 200 | 1,451 | export interface Data {
id: string;
value: string;
}
export interface IGender {
id: string;
value: string;
}
export interface ISexOption {
id: string;
value: string;
}
export interface InitialValues {
Name: string;
Birthday: string;
Sex: string;
City: string;
Specialty: string;
Doctor: string... | 3 |
yosko99/e-commerce | dc9c907 | src/functions/getQueryFilters.ts | TypeScript | www.github.com/yosko99/e-commerce/tree/main/src/functions/getQueryFilters.ts | https://raw.githubusercontent.com/yosko99/e-commerce/dc9c907/src/functions/getQueryFilters.ts | yosko99/e-commerce dc9c907 src/functions/getQueryFilters.ts | true | 200 | 556 | import getQueryParam from './getQueryParam';
const getQueryFilters = (searchParams: URLSearchParams, maxValue: number) => {
const queryFilters = {
colors: getQueryParam('colors', searchParams),
sizes: getQueryParam('sizes', searchParams),
maxValue:
searchParams.get('maxValue') !== null
? Nu... | 4 |
deepankkartikey/exam-portal | 7d48e9a | frontend/src/app/pages/admin/add-question/add-question.component.ts | TypeScript | www.github.com/deepankkartikey/exam-portal/tree/main/frontend/src/app/pages/admin/add-question/add-question.component.ts | https://raw.githubusercontent.com/deepankkartikey/exam-portal/7d48e9a/frontend/src/app/pages/admin/add-question/add-question.component.ts | deepankkartikey/exam-portal 7d48e9a frontend/src/app/pages/admin/add-question/add-question.component.ts | true | 200 | 2,111 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { QuestionService } from 'src/app/services/question.service';
import Swal from 'sweetalert2';
import { Editor } from 'ngx-editor';
@Component({
selector: 'app-add-question',
templateUrl: './add-qu... | 0 |
RainersLeitarts/sm-be | bc36fe0 | src/controllers/tests.ts | TypeScript | www.github.com/RainersLeitarts/sm-be/tree/main/src/controllers/tests.ts | https://raw.githubusercontent.com/RainersLeitarts/sm-be/bc36fe0/src/controllers/tests.ts | RainersLeitarts/sm-be bc36fe0 src/controllers/tests.ts | true | 200 | 361 | import { NextFunction, Request, Response } from "express";
import { throwError } from "../services/tests";
import { AuthErrors } from "../middleware/globalErrorHandler";
export function throwErrorController(req: Request, res: Response, next: NextFunction) {
try {
throwError(AuthErrors.EMAIL_TAKEN)
} ca... | 5 |
uspel/vex | 2b928dd | src/Vex3/utilities/normalize.ts | TypeScript | www.github.com/uspel/vex/tree/main/src/Vex3/utilities/normalize.ts | https://raw.githubusercontent.com/uspel/vex/2b928dd/src/Vex3/utilities/normalize.ts | uspel/vex 2b928dd src/Vex3/utilities/normalize.ts | true | 200 | 293 | import { Vector3 } from "@minecraft/server";
import magnitude3 from "./magnitude";
export default function normalize3(vector: Vector3): Vector3 {
const magnitude = magnitude3(vector);
return {
x: vector.x / magnitude,
y: vector.y / magnitude,
z: vector.z / magnitude,
};
}
| 2 |
NygilNet/leetcode-problems | 7b3d3f1 | topswe100/min_cost_climbing_stairs.ts | TypeScript | www.github.com/NygilNet/leetcode-problems/tree/main/topswe100/min_cost_climbing_stairs.ts | https://raw.githubusercontent.com/NygilNet/leetcode-problems/7b3d3f1/topswe100/min_cost_climbing_stairs.ts | NygilNet/leetcode-problems 7b3d3f1 topswe100/min_cost_climbing_stairs.ts | true | 200 | 1,723 | /*
link to problem: https://leetcode.com/problems/min-cost-climbing-stairs/description/
You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cost, you can either climb one or two steps.
You can either start from the step with index 0, or the step with index 1.
R... | 3 |
xlmnxp/nestjsActivityPub | ce2bb98 | src/common/decorators/user.decorator.ts | TypeScript | www.github.com/xlmnxp/nestjsActivityPub/tree/main/src/common/decorators/user.decorator.ts | https://raw.githubusercontent.com/xlmnxp/nestjsActivityPub/ce2bb98/src/common/decorators/user.decorator.ts | xlmnxp/nestjsActivityPub ce2bb98 src/common/decorators/user.decorator.ts | true | 200 | 429 | import { createParamDecorator, ExecutionContext } from "@nestjs/common";
import { GqlExecutionContext } from "@nestjs/graphql";
import { Socket } from "socket.io";
export const UserDecorator = createParamDecorator(
(data: unknown, context: ExecutionContext) => {
const ctx = GqlExecutionContext.create(context);
... | 4 |
topsmart20/vue-macros | eee8f4e | packages/volar/src/short-bind.ts | TypeScript | www.github.com/topsmart20/vue-macros/tree/main/packages/volar/src/short-bind.ts | https://raw.githubusercontent.com/topsmart20/vue-macros/eee8f4e/packages/volar/src/short-bind.ts | topsmart20/vue-macros eee8f4e packages/volar/src/short-bind.ts | true | 200 | 424 | import { transformShortBind } from '@vue-macros/short-bind/api'
import type { VueLanguagePlugin } from '@vue/language-core'
const plugin: VueLanguagePlugin = () => {
return {
name: 'vue-macros-short-bind',
version: 1,
resolveTemplateCompilerOptions(options) {
options.nodeTransforms ||= []
opt... | 6 |
nickolu/PromptTester5000 | 3121dc2 | src/TestVariant.ts | TypeScript | www.github.com/nickolu/PromptTester5000/tree/main/src/TestVariant.ts | https://raw.githubusercontent.com/nickolu/PromptTester5000/3121dc2/src/TestVariant.ts | nickolu/PromptTester5000 3121dc2 src/TestVariant.ts | true | 200 | 763 | import { BaseChatMessage } from "langchain/schema";
import { DataRow } from "./CsvFileWriter";
export default class TestVariant {
temperature: number;
model: string;
description: string;
columns: string[];
messages: BaseChatMessage[] = [];
originalDataRow: DataRow;
constructor({
temperature,
mod... | 0 |
MGBryan03/freeCodeCamp | 9f8ba47 | client/src/redux/create-store.ts | TypeScript | www.github.com/MGBryan03/freeCodeCamp/tree/main/client/src/redux/create-store.ts | https://raw.githubusercontent.com/MGBryan03/freeCodeCamp/9f8ba47/client/src/redux/create-store.ts | MGBryan03/freeCodeCamp 9f8ba47 client/src/redux/create-store.ts | true | 200 | 2,003 | import { createStore as reduxCreateStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from '@redux-devtools/extension';
import { createEpicMiddleware } from 'redux-observable';
import createSagaMiddleware from 'redux-saga';
import envData from '../../config/env.json';
import { isBrowser } from '../.... | 5 |
sheikhtoocool/todo_app | cbd328e | src/screens/TaskStatusUpdate/styles.ts | TypeScript | www.github.com/sheikhtoocool/todo_app/tree/main/src/screens/TaskStatusUpdate/styles.ts | https://raw.githubusercontent.com/sheikhtoocool/todo_app/cbd328e/src/screens/TaskStatusUpdate/styles.ts | sheikhtoocool/todo_app cbd328e src/screens/TaskStatusUpdate/styles.ts | true | 200 | 366 | import {StyleSheet} from 'react-native';
export default StyleSheet.create({
container: {
paddingVertical: 20,
justifyContent: 'center',
},
btn: {
alignItems: 'center',
justifyContent: 'center',
paddingVertical: 12,
paddingHorizontal: 32,
borderRadius: 4,
elevation: 3,
backgrou... | 2 |
pcaisse/advent-of-code-2023 | 9b8a6c1 | day02/solution.ts | TypeScript | www.github.com/pcaisse/advent-of-code-2023/tree/main/day02/solution.ts | https://raw.githubusercontent.com/pcaisse/advent-of-code-2023/9b8a6c1/day02/solution.ts | pcaisse/advent-of-code-2023 9b8a6c1 day02/solution.ts | true | 200 | 1,929 | import fs from "fs";
const input = fs.readFileSync(process.stdin.fd, "utf-8");
const colors = ["red", "blue", "green"] as const;
type Color = (typeof colors)[number];
type GameLimit = Record<Color, number>;
type GameSet = Partial<GameLimit>;
type Game = { gameSets: GameSet[]; id: number };
function isGameSetWithinLim... | 3 |
ahmetuygun/interviewme6 | 3ff37a1 | src/main/webapp/app/config/language.constants.ts | TypeScript | www.github.com/ahmetuygun/interviewme6/tree/main/src/main/webapp/app/config/language.constants.ts | https://raw.githubusercontent.com/ahmetuygun/interviewme6/3ff37a1/src/main/webapp/app/config/language.constants.ts | ahmetuygun/interviewme6 3ff37a1 src/main/webapp/app/config/language.constants.ts | true | 200 | 497 | /*
Languages codes are ISO_639-1 codes, see http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
They are written in English to avoid character encoding issues (not a perfect solution)
*/
export const LANGUAGES: string[] = [
'en',
'ar-ly',
'az-Latn-az',
'bg',
'cs',
'da',
'nl',
'de',
'el',
'h... | 4 |
agupta-swell/wave-quote-service | 75a5409 | src/dev-fee/dev-fee.module.ts | TypeScript | www.github.com/agupta-swell/wave-quote-service/tree/main/src/dev-fee/dev-fee.module.ts | https://raw.githubusercontent.com/agupta-swell/wave-quote-service/75a5409/src/dev-fee/dev-fee.module.ts | agupta-swell/wave-quote-service 75a5409 src/dev-fee/dev-fee.module.ts | true | 200 | 508 | import { Global, Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { DevFeeSchema } from './dev-fee.schema';
import { DEV_FEE } from './constant';
import { DevFeeService } from './dev-fee.service';
@Global()
@Module({
imports: [
MongooseModule.forFeature([
{
... | 7 |
alvinyusuf/backend-pipe | 1c3755d | src/auth/auth.service.ts | TypeScript | www.github.com/alvinyusuf/backend-pipe/tree/main/src/auth/auth.service.ts | https://raw.githubusercontent.com/alvinyusuf/backend-pipe/1c3755d/src/auth/auth.service.ts | alvinyusuf/backend-pipe 1c3755d src/auth/auth.service.ts | true | 200 | 672 | import { Injectable, UnauthorizedException } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { UserService } from 'src/user/user.service';
@Injectable()
export class AuthService {
constructor(
private userService: UserService,
private jwtService: JwtService,
) {}
async signIn(use... | 6 |
jordane-chaves/daily-diet-api | 0592366 | src/shared/infra/database/knex/index.ts | TypeScript | www.github.com/jordane-chaves/daily-diet-api/tree/main/src/shared/infra/database/knex/index.ts | https://raw.githubusercontent.com/jordane-chaves/daily-diet-api/0592366/src/shared/infra/database/knex/index.ts | jordane-chaves/daily-diet-api 0592366 src/shared/infra/database/knex/index.ts | true | 200 | 447 | import { env } from '@/shared/env'
import { knex as setupKnex, Knex } from 'knex'
const connectionConfig =
env.DATABASE_CLIENT === 'sqlite'
? { filename: env.DATABASE_URL }
: env.DATABASE_URL
export const config: Knex.Config = {
client: env.DATABASE_CLIENT,
connection: connectionConfig,
useNullAsDefau... | 0 |
fhajims/typescriptproject | 4f0b50e | rest-api/scr/routes/get-all-courses.ts | TypeScript | www.github.com/fhajims/typescriptproject/tree/main/rest-api/scr/routes/get-all-courses.ts | https://raw.githubusercontent.com/fhajims/typescriptproject/4f0b50e/rest-api/scr/routes/get-all-courses.ts | fhajims/typescriptproject 4f0b50e rest-api/scr/routes/get-all-courses.ts | true | 200 | 802 | import {Request, Response, NextFunction} from "express"
import {logger} from "../logger"
import { AppDataSource } from "../data-source";
import { Course } from "../models/course";
export async function getAllCourses(
request:Request, response:Response, next: NextFunction) {
try {
//throw new E... | 2 |
KoenvanMeijeren/Tasker-Rocket | 1b893e1 | src/lib/profile/useRemoveRepoHandler.ts | TypeScript | www.github.com/KoenvanMeijeren/Tasker-Rocket/tree/main/src/lib/profile/useRemoveRepoHandler.ts | https://raw.githubusercontent.com/KoenvanMeijeren/Tasker-Rocket/1b893e1/src/lib/profile/useRemoveRepoHandler.ts | KoenvanMeijeren/Tasker-Rocket 1b893e1 src/lib/profile/useRemoveRepoHandler.ts | true | 200 | 1,027 | import { useDisclosure } from '@chakra-ui/react';
import { useCallback, useState } from 'react';
import { MobxStore } from '../store/MobxStore';
import { RepositoryConfigItem } from '../store/slices/RepositoryConfigStore';
export const useRemoveRepoHandler = (store: MobxStore) => {
const { isOpen, onOpen, onClose ... | 3 |
akbarsahata/pitik | cbdace2 | fastify-clean/src/datasources/entity/pgsql/ContractInsentiveDeals.entity.ts | TypeScript | www.github.com/akbarsahata/pitik/tree/main/fastify-clean/src/datasources/entity/pgsql/ContractInsentiveDeals.entity.ts | https://raw.githubusercontent.com/akbarsahata/pitik/cbdace2/fastify-clean/src/datasources/entity/pgsql/ContractInsentiveDeals.entity.ts | akbarsahata/pitik cbdace2 fastify-clean/src/datasources/entity/pgsql/ContractInsentiveDeals.entity.ts | true | 200 | 1,104 | import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm';
import { Contract } from './Contract.entity';
@Entity('contract_insentive_deals')
export class ContractInsentiveDeals {
@Column({ primary: true, type: 'varchar' })
id: string;
@Column({ name: 'seq_no', type: 'int' })
seqNo: number;
@Column({ ... | 6 |
Nelsonlin0321/webdev-react-movies-with-recommendation | 360d9d2 | src/services/api-recommender.ts | TypeScript | www.github.com/Nelsonlin0321/webdev-react-movies-with-recommendation/tree/main/src/services/api-recommender.ts | https://raw.githubusercontent.com/Nelsonlin0321/webdev-react-movies-with-recommendation/360d9d2/src/services/api-recommender.ts | Nelsonlin0321/webdev-react-movies-with-recommendation 360d9d2 src/services/api-recommender.ts | true | 200 | 617 | import axios from "axios";
import {
Movie,
personalizationInputs,
recommendationInputs,
} from "../types/movie";
const URL = "https://7jufjyexya.execute-api.ap-southeast-1.amazonaws.com/prod";
const axiosInstance = axios.create({
baseURL: `${URL}`,
});
class APIClient {
recommend = async (data: recommendat... | 5 |
FSallust/technofutur_pokemonAPI_ionic | eafd35d | src/app/_models/product-details.ts | TypeScript | www.github.com/FSallust/technofutur_pokemonAPI_ionic/tree/main/src/app/_models/product-details.ts | https://raw.githubusercontent.com/FSallust/technofutur_pokemonAPI_ionic/eafd35d/src/app/_models/product-details.ts | FSallust/technofutur_pokemonAPI_ionic eafd35d src/app/_models/product-details.ts | true | 200 | 10,008 | export interface ProductDetails {
code: string;
product: Product;
status_verbose: string;
status: number;
}
export interface Product {
languages_codes: Languagescodes;
ingredients_hierarchy: string[];
brands_debug_tags: any[];
nutriscore_grade: string;
ingredients_from_or_that_may_be_from_palm_oil_n:... | 7 |
tecktro/hotel-api | c79c62d | src/insights/models/roomInsight.model.ts | TypeScript | www.github.com/tecktro/hotel-api/tree/main/src/insights/models/roomInsight.model.ts | https://raw.githubusercontent.com/tecktro/hotel-api/c79c62d/src/insights/models/roomInsight.model.ts | tecktro/hotel-api c79c62d src/insights/models/roomInsight.model.ts | true | 200 | 317 | import { Field, ObjectType } from '@nestjs/graphql';
import { Price } from './price.model';
@ObjectType()
export class RoomInsight {
@Field()
room_id: string;
@Field()
room_name: string;
@Field()
room_type: string;
@Field(type => [Price])
prices: Price[];
@Field()
last_updated_at: string;
}
| 0 |
cricciardi/fast-render | 20595fb | projects/images-at-light-speed-standalone/src/app/pages/solar-system/components/sun-images/sun-images.component.ts | TypeScript | www.github.com/cricciardi/fast-render/tree/main/projects/images-at-light-speed-standalone/src/app/pages/solar-system/components/sun-images/sun-images.component.ts | https://raw.githubusercontent.com/cricciardi/fast-render/20595fb/projects/images-at-light-speed-standalone/src/app/pages/solar-system/components/sun-images/sun-images.component.ts | cricciardi/fast-render 20595fb projects/images-at-light-speed-standalone/src/app/pages/solar-system/components/sun-images/sun-images.component.ts | true | 200 | 1,724 | import {Component, OnInit} from '@angular/core';
import {INasaApiResponse} from '../../models/SolarSystem';
import {Planets} from '../../enum/planets';
import {MarsGalleryService} from '../../../mars-gallery/services/mars-gallery.service';
import {catchError, Observable, throwError} from 'rxjs';
import {HttpErrorRespon... | 4 |
hijazisdungeon/codebases | 3611b23 | marinetes/cdn-service/src/core/infra/http/Validation.ts | TypeScript | www.github.com/hijazisdungeon/codebases/tree/main/marinetes/cdn-service/src/core/infra/http/Validation.ts | https://raw.githubusercontent.com/hijazisdungeon/codebases/3611b23/marinetes/cdn-service/src/core/infra/http/Validation.ts | hijazisdungeon/codebases 3611b23 marinetes/cdn-service/src/core/infra/http/Validation.ts | true | 200 | 1,099 | import { ValidationError, APIError } from '@hitechline/marinetes-errors';
import { Request, Response, NextFunction } from 'express';
import { ZodError, AnyZodObject } from 'zod';
export class Validation {
private schema: AnyZodObject;
constructor(schema: AnyZodObject) {
this.schema = schema;
}
async exec... | 2 |
IngJorgeLuisMayorga/ng-bsc2 | 8ba9f67 | src/app/modules/orders/services/orders-store.service.spec.ts | TypeScript | www.github.com/IngJorgeLuisMayorga/ng-bsc2/tree/main/src/app/modules/orders/services/orders-store.service.spec.ts | https://raw.githubusercontent.com/IngJorgeLuisMayorga/ng-bsc2/8ba9f67/src/app/modules/orders/services/orders-store.service.spec.ts | IngJorgeLuisMayorga/ng-bsc2 8ba9f67 src/app/modules/orders/services/orders-store.service.spec.ts | true | 200 | 383 | import { TestBed } from '@angular/core/testing';
import { OrdersStoreService } from './orders-store.service';
describe('OrdersStoreService', () => {
let service: OrdersStoreService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(OrdersStoreService);
});
it('should be... | 3 |
illionillion/CIRCLIA | 71bc21a | server.ts | TypeScript | www.github.com/illionillion/CIRCLIA/tree/main/server.ts | https://raw.githubusercontent.com/illionillion/CIRCLIA/71bc21a/server.ts | illionillion/CIRCLIA 71bc21a server.ts | true | 200 | 946 | import { readFileSync } from "fs"
import { createServer } from "https"
import { join } from "path"
import { parse } from "url"
import dotenv from "dotenv"
import next from "next"
dotenv.config({ path: ".env" })
// 開発モードか本番モードかを判定
const dev = process.env.NODE_ENV !== "production"
console.log("NODE_ENV:", process.env.... | 7 |
samislam/event-birds | 0d42b9e | apps/server/src/utils/misc-utils.ts | TypeScript | www.github.com/samislam/event-birds/tree/main/apps/server/src/utils/misc-utils.ts | https://raw.githubusercontent.com/samislam/event-birds/0d42b9e/apps/server/src/utils/misc-utils.ts | samislam/event-birds 0d42b9e apps/server/src/utils/misc-utils.ts | true | 200 | 1,115 | import { ExtractEntity } from '@/types/misc-types'
import { Repository, ValueTransformer } from 'typeorm'
import { ColumnMetadata } from 'typeorm/metadata/ColumnMetadata'
/**
* Since TypeORM requires the value transformer to include both the `to` & the `from` callbacks,
* this funciton is used as a shorthand for ign... | 6 |
sumann7916/MessengerAPI | c04b600 | src/socket/socket.service.ts | TypeScript | www.github.com/sumann7916/MessengerAPI/tree/main/src/socket/socket.service.ts | https://raw.githubusercontent.com/sumann7916/MessengerAPI/c04b600/src/socket/socket.service.ts | sumann7916/MessengerAPI c04b600 src/socket/socket.service.ts | true | 200 | 297 | import { BadRequestException, Injectable } from '@nestjs/common';
import { Server } from 'socket.io';
import { createServer, Server as HttpServer } from 'http';
import { SocketGateway } from './gateway/socket.gateway';
@Injectable()
export class SocketService {
public socket: Server = null;
} | 5 |
janagokul6/Aviator-plane-crash | ffded05 | backend/src/routes/userRoutes.ts | TypeScript | www.github.com/janagokul6/Aviator-plane-crash/tree/main/backend/src/routes/userRoutes.ts | https://raw.githubusercontent.com/janagokul6/Aviator-plane-crash/ffded05/backend/src/routes/userRoutes.ts | janagokul6/Aviator-plane-crash ffded05 backend/src/routes/userRoutes.ts | true | 200 | 3,864 | import express from 'express';
import jwt from 'jsonwebtoken';
import { User } from '../models/User';
import { Transaction } from '../models/Transaction';
import { auth } from '../middleware/auth';
const router = express.Router();
// Register
router.post('/register', async (req, res) => {
try {
const { username... | 0 |
KIWIbird717/fr-tg-bot | bc2ca5e | src/index.ts | TypeScript | www.github.com/KIWIbird717/fr-tg-bot/tree/main/src/index.ts | https://raw.githubusercontent.com/KIWIbird717/fr-tg-bot/bc2ca5e/src/index.ts | KIWIbird717/fr-tg-bot bc2ca5e src/index.ts | true | 200 | 1,141 | import TelegramBot from "node-telegram-bot-api";
import { commands } from "./commands.js";
import { BotsType } from "./types.js";
import dotenv from "dotenv";
import { Logger } from "./utils/logger.js";
import MenuHandlers from "@/src/utils/tg-actions/MenuHandlers.js";
import FirstBotHandlers from "@/src/utils/tg-actio... | 4 |
buka1calvin/web3-based-electoral-voter-System | ec3561e | src/index.ts | TypeScript | www.github.com/buka1calvin/web3-based-electoral-voter-System/tree/main/src/index.ts | https://raw.githubusercontent.com/buka1calvin/web3-based-electoral-voter-System/ec3561e/src/index.ts | buka1calvin/web3-based-electoral-voter-System ec3561e src/index.ts | true | 200 | 4,273 | import {
Canister,
nat64,
text,
StableBTreeMap,
query,
update,
Vec,
Result,
Opt,
Ok,
Err,
ic,
Principal,
Variant,
Record,
} from "azle";
import { v4 as uuidv4 } from "uuid";
let nationalIds = text;
const Candidate = Record({
id: text,
createdAt: nat64,
name: text,
nationalId: te... | 3 |
aws-samples/enable-lti | d28a048 | packages/cdk/src/stacks/eltiApisStack.ts | TypeScript | www.github.com/aws-samples/enable-lti/tree/main/packages/cdk/src/stacks/eltiApisStack.ts | https://raw.githubusercontent.com/aws-samples/enable-lti/d28a048/packages/cdk/src/stacks/eltiApisStack.ts | aws-samples/enable-lti d28a048 packages/cdk/src/stacks/eltiApisStack.ts | true | 200 | 1,976 | import { Stack, StackProps, CfnParameter } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { Lambdas } from '../constructs/lambdas';
import { Apis, ApisConfig } from '../constructs/apis';
import { Keys } from '../constructs/keys';
import { Tables } from '../constructs/tables';
import { WebAcl } from ... | 7 |
gr4yha7/madara | 111b4d1 | fantasy-bots/src/utils.ts | TypeScript | www.github.com/gr4yha7/madara/tree/main/fantasy-bots/src/utils.ts | https://raw.githubusercontent.com/gr4yha7/madara/111b4d1/fantasy-bots/src/utils.ts | gr4yha7/madara 111b4d1 fantasy-bots/src/utils.ts | true | 200 | 904 | import "dotenv/config";
import fetch from "node-fetch";
const DISCORD_API_VERSION = process.env.DISCORD_API_VERSION;
const BASE_URL = `https://discord.com/api/v${DISCORD_API_VERSION}/`;
export async function DiscordRequest(endpoint: string, options: any) {
const url = BASE_URL + endpoint;
// Stringify payloads
... | 5 |
aliceoq/oncase-fullstack-challenge | 039f5c9 | server/src/tests/participant.test.ts | TypeScript | www.github.com/aliceoq/oncase-fullstack-challenge/tree/main/server/src/tests/participant.test.ts | https://raw.githubusercontent.com/aliceoq/oncase-fullstack-challenge/039f5c9/server/src/tests/participant.test.ts | aliceoq/oncase-fullstack-challenge 039f5c9 server/src/tests/participant.test.ts | true | 200 | 1,684 | import request from "supertest";
import { beginTransactionQuery, deleteParticipantsQuery, endTransactionQuery } from "../db/queries";
import { app } from "..";
const newParticipant = {
name: "New",
lastname: "Participant",
participation: 5,
};
const updatedParticipant = {
name: "New",
lastname: "Participan... | 6 |
bgambocjaviniar/wg-test-alot-of-operations | 62ac271 | .wundergraph/wundergraph.operations.ts | TypeScript | www.github.com/bgambocjaviniar/wg-test-alot-of-operations/tree/main/.wundergraph/wundergraph.operations.ts | https://raw.githubusercontent.com/bgambocjaviniar/wg-test-alot-of-operations/62ac271/.wundergraph/wundergraph.operations.ts | bgambocjaviniar/wg-test-alot-of-operations 62ac271 .wundergraph/wundergraph.operations.ts | true | 200 | 620 | import { configureWunderGraphOperations } from '@wundergraph/sdk';
export default configureWunderGraphOperations({
operations: {
defaultConfig: {
authentication: {
required: false,
},
},
queries: (config) => ({
...config,
caching: {
enable: false,
staleWhil... | 0 |
LukinAleksandr/payrue-finance | 1e8d471 | src/features/profile/components/profile-claim-widget.styled.ts | TypeScript | www.github.com/LukinAleksandr/payrue-finance/tree/main/src/features/profile/components/profile-claim-widget.styled.ts | https://raw.githubusercontent.com/LukinAleksandr/payrue-finance/1e8d471/src/features/profile/components/profile-claim-widget.styled.ts | LukinAleksandr/payrue-finance 1e8d471 src/features/profile/components/profile-claim-widget.styled.ts | true | 200 | 1,222 | import { styled } from '@mui/material/styles';
import Typography from '@mui/material/Typography';
import Button from '../../../app/components/button';
export const ProfileClaimWidgetRow = styled('div')(({ theme }) => ({
display: 'flex',
width: '100%',
alignItems: 'center',
paddingRight: 153,
[theme.breakpoin... | 4 |
mamun1296/Rental | 56abc21 | src/app/components/admin/user-management/roles/role-assign/user-roles/user-roles-modal/user-roles-modal.component.ts | TypeScript | www.github.com/mamun1296/Rental/tree/main/src/app/components/admin/user-management/roles/role-assign/user-roles/user-roles-modal/user-roles-modal.component.ts | https://raw.githubusercontent.com/mamun1296/Rental/56abc21/src/app/components/admin/user-management/roles/role-assign/user-roles/user-roles-modal/user-roles-modal.component.ts | mamun1296/Rental 56abc21 src/app/components/admin/user-management/roles/role-assign/user-roles/user-roles-modal/user-roles-modal.component.ts | true | 200 | 4,273 | import { Component, ElementRef, EventEmitter, Input, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { CommonModule } from '@angular/common';
import... | 3 |
fatma1-a7med/RepAlert | 4dfa6a0 | Frontend/src/app/admin-dashboard/listallmedrep/listallmedrep.component.ts | TypeScript | www.github.com/fatma1-a7med/RepAlert/tree/main/Frontend/src/app/admin-dashboard/listallmedrep/listallmedrep.component.ts | https://raw.githubusercontent.com/fatma1-a7med/RepAlert/4dfa6a0/Frontend/src/app/admin-dashboard/listallmedrep/listallmedrep.component.ts | fatma1-a7med/RepAlert 4dfa6a0 Frontend/src/app/admin-dashboard/listallmedrep/listallmedrep.component.ts | true | 200 | 4,150 | import { MedicalrepService } from '../../services/medicalrep.service';
import { AfterViewInit, Component, ViewChild, OnInit } from '@angular/core';
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
import { MatSort, MatSortModule } from '@angular/material/sort';
import { MatTableDataSource... | 2 |
quangh0409/BE-ToolsDeploy | 818951d | apps/ticket/src/services/git.service.ts | TypeScript | www.github.com/quangh0409/BE-ToolsDeploy/tree/main/apps/ticket/src/services/git.service.ts | https://raw.githubusercontent.com/quangh0409/BE-ToolsDeploy/818951d/apps/ticket/src/services/git.service.ts | quangh0409/BE-ToolsDeploy 818951d apps/ticket/src/services/git.service.ts | true | 200 | 678 | import axios from "axios";
import { configs } from "../configs";
import { HttpError, error } from "app";
import { IGit } from "../interfaces/response/git.body";
export async function getGithubById(params: {
git_id: string;
}): Promise<{ body?: IGit; status: number }> {
const url = `${configs.services.git.getUr... | 7 |
mareyam/project-management-tool | 178c131 | pages/api/project/get_project_data.ts | TypeScript | www.github.com/mareyam/project-management-tool/tree/main/pages/api/project/get_project_data.ts | https://raw.githubusercontent.com/mareyam/project-management-tool/178c131/pages/api/project/get_project_data.ts | mareyam/project-management-tool 178c131 pages/api/project/get_project_data.ts | true | 200 | 774 | // pages/api/projects/get_project_data.ts
import { connectMongoDB } from "@/lib/mongodb";
import Project from "@/models/ProjectModel";
export default async function handler(req: any, res: any) {
if (req.method !== "GET") {
res.status(405).send({ msg: "Only GET requests are allowed" });
return;
}
const ... | 5 |
delvervillanueva/project-ch-villanueva | 0e797d5 | src/app/layout/layout.module.ts | TypeScript | www.github.com/delvervillanueva/project-ch-villanueva/tree/main/src/app/layout/layout.module.ts | https://raw.githubusercontent.com/delvervillanueva/project-ch-villanueva/0e797d5/src/app/layout/layout.module.ts | delvervillanueva/project-ch-villanueva 0e797d5 src/app/layout/layout.module.ts | true | 200 | 842 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MenuIzqComponent } from './components/menu-izq/menu-izq.component';
import { NavbarComponent } from './components/navbar/navbar.component';
import { ToolbarComponent } from './components/toolbar/toolbar.component';
import... | 0 |
Thixz/api_base_primaORM | fa407c6 | src/http/controllers/users/getProfile.ts | TypeScript | www.github.com/Thixz/api_base_primaORM/tree/main/src/http/controllers/users/getProfile.ts | https://raw.githubusercontent.com/Thixz/api_base_primaORM/fa407c6/src/http/controllers/users/getProfile.ts | Thixz/api_base_primaORM fa407c6 src/http/controllers/users/getProfile.ts | true | 200 | 870 | import { z } from "zod";
import { FastifyReply, FastifyRequest } from "fastify";
import { PrismaUsersRepository } from "../../../modules/users/repositories/prisma/prisma-users-repository";
import { AuthenticateUserUseCase } from "../../../modules/users/use-cases/authenticate-user";
import { makeAuthenticateUseCase } fr... | 6 |
Paulo-dev2/Transcribe | b6b4310 | backend/src/infra/helpers/http-helper.ts | TypeScript | www.github.com/Paulo-dev2/Transcribe/tree/main/backend/src/infra/helpers/http-helper.ts | https://raw.githubusercontent.com/Paulo-dev2/Transcribe/b6b4310/backend/src/infra/helpers/http-helper.ts | Paulo-dev2/Transcribe b6b4310 backend/src/infra/helpers/http-helper.ts | true | 200 | 396 | import { ServerError } from '../errors'
import { HttpResponse } from '../ports/http'
export const badRequest = (error: Error): HttpResponse => ({
statusCode: 400,
body: error.message
})
export const ok = (data: any): HttpResponse => ({
statusCode: 200,
body: data
})
export const serverError = (reason: string... | 4 |
MohitGoyal09/execute | 3e36c3c | middleware.ts | TypeScript | www.github.com/MohitGoyal09/execute/tree/main/middleware.ts | https://raw.githubusercontent.com/MohitGoyal09/execute/3e36c3c/middleware.ts | MohitGoyal09/execute 3e36c3c middleware.ts | true | 200 | 1,372 | import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs";
export async function middleware(request: NextRequest) {
// Create a response object that we'll modify and return
const res = NextResponse.next();
/... | 2 |
FifahAnjara/view_Api | 551bb17 | src/app/app.module.ts | TypeScript | www.github.com/FifahAnjara/view_Api/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/FifahAnjara/view_Api/551bb17/src/app/app.module.ts | FifahAnjara/view_Api 551bb17 src/app/app.module.ts | true | 200 | 953 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ... | 3 |
badalkr2004/next-stock-image | 2d20d1a | src/app/api/users/signup/route.ts | TypeScript | www.github.com/badalkr2004/next-stock-image/tree/main/src/app/api/users/signup/route.ts | https://raw.githubusercontent.com/badalkr2004/next-stock-image/2d20d1a/src/app/api/users/signup/route.ts | badalkr2004/next-stock-image 2d20d1a src/app/api/users/signup/route.ts | true | 200 | 1,522 | import {connect} from "@/db/dbConfig";
import User from "@/models/userModel";
import { NextRequest, NextResponse } from "next/server";
import bcryptjs from "bcryptjs";
// import { sendEmail } from "@/helpers/mailer";
interface Credentials {
username:string,
email:string,
password:string,
}
connect()
... | 7 |
rijatalizada/backend-nest-test-app | dd20564 | src/database/database.module.ts | TypeScript | www.github.com/rijatalizada/backend-nest-test-app/tree/main/src/database/database.module.ts | https://raw.githubusercontent.com/rijatalizada/backend-nest-test-app/dd20564/src/database/database.module.ts | rijatalizada/backend-nest-test-app dd20564 src/database/database.module.ts | true | 200 | 501 | import { Module } from '@nestjs/common';
import { SequelizeModule } from '@nestjs/sequelize';
import { User } from 'src/models/user.model';
@Module({
imports: [
SequelizeModule.forRoot({
dialect: 'mysql',
host: 'localhost',
port: 3306,
username: 'sa',
password: 'password',
dat... | 6 |
rafael-oliveira-hellz/smartranking-api | 59f40ca | api-gateway/src/aws/aws-cognito.service.ts | TypeScript | www.github.com/rafael-oliveira-hellz/smartranking-api/tree/main/api-gateway/src/aws/aws-cognito.service.ts | https://raw.githubusercontent.com/rafael-oliveira-hellz/smartranking-api/59f40ca/api-gateway/src/aws/aws-cognito.service.ts | rafael-oliveira-hellz/smartranking-api 59f40ca api-gateway/src/aws/aws-cognito.service.ts | true | 200 | 2,309 | import { Injectable } from "@nestjs/common";
import {
CognitoUserPool,
CognitoUserAttribute,
CognitoUser,
AuthenticationDetails
} from 'amazon-cognito-identity-js'
import { AuthLoginUserDto } from "src/auth/dtos/auth-login-user.dto";
import { AuthUserRegisterDto } from "src/auth/dtos/auth-signup-user.... | 0 |
okatsuo/rocketseat-unit-tests | 196b351 | src/modules/statements/useCases/getBalance/GetBalanceUseCase.spec.ts | TypeScript | www.github.com/okatsuo/rocketseat-unit-tests/tree/main/src/modules/statements/useCases/getBalance/GetBalanceUseCase.spec.ts | https://raw.githubusercontent.com/okatsuo/rocketseat-unit-tests/196b351/src/modules/statements/useCases/getBalance/GetBalanceUseCase.spec.ts | okatsuo/rocketseat-unit-tests 196b351 src/modules/statements/useCases/getBalance/GetBalanceUseCase.spec.ts | true | 200 | 2,384 | import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository";
import { CreateUserUseCase } from "../../../users/useCases/createUser/CreateUserUseCase";
import { OperationType } from "../../entities/Statement";
import { InMemoryStatementsRepository } from "../../repositories/in... | 4 |
Easysure007/44743 | ab1042d | scheduling-app/store/index.ts | TypeScript | www.github.com/Easysure007/44743/tree/main/scheduling-app/store/index.ts | https://raw.githubusercontent.com/Easysure007/44743/ab1042d/scheduling-app/store/index.ts | Easysure007/44743 ab1042d scheduling-app/store/index.ts | true | 200 | 916 | // we need to enable static rendering for prevent rerender on server side and leaking memory
import { enableStaticRendering } from "mobx-react-lite";
import { DataStore } from "./dataStore";
// enable static rendering ONLY on server
enableStaticRendering(typeof window === "undefined");
// init a client store that we ... | 5 |
1daful/edifeeds | 8fe96bb | src/api/video/Youtube.ts | TypeScript | www.github.com/1daful/edifeeds/tree/main/src/api/video/Youtube.ts | https://raw.githubusercontent.com/1daful/edifeeds/8fe96bb/src/api/video/Youtube.ts | 1daful/edifeeds 8fe96bb src/api/video/Youtube.ts | true | 200 | 4,606 | import { IMediaApi } from "../IMediaApi";
import { Resource } from "../Resource";
import {Axiosi} from "../Axiosi";
import { ApiFormat } from "../../apiReqFormat/ApiFormat";
import config from "../../../public/config.json";
export class Youtube implements IMediaApi{
constructor(format?: {}) {
const apiForma... | 2 |
rubensuarez22/intro-basis-typescript | 0e27988 | src/topics/03-functions.ts | TypeScript | www.github.com/rubensuarez22/intro-basis-typescript/tree/main/src/topics/03-functions.ts | https://raw.githubusercontent.com/rubensuarez22/intro-basis-typescript/0e27988/src/topics/03-functions.ts | rubensuarez22/intro-basis-typescript 0e27988 src/topics/03-functions.ts | true | 200 | 860 |
function addNumbers(a: number, b: number) {
return a+b;
}
const addNumbersArrow = (a:number, b:number):string => {
return `${a + b}`;
}
function multiply (firstNumber: number, secondNumber?: number, base: number = 2) {
return firstNumber * base;
}
// const result: number = addNumbers(1 , 2);
// const r... | 3 |
ratautas/wordlike | 025b9b5 | apps/builder/src/hooks.server.ts | TypeScript | www.github.com/ratautas/wordlike/tree/main/apps/builder/src/hooks.server.ts | https://raw.githubusercontent.com/ratautas/wordlike/025b9b5/apps/builder/src/hooks.server.ts | ratautas/wordlike 025b9b5 apps/builder/src/hooks.server.ts | true | 200 | 537 | import "$lib/supabase";
import { getSupabase } from "@supabase/auth-helpers-sveltekit";
import type { Handle } from "@sveltejs/kit";
export const handle: Handle = async ({ event, resolve }) => {
const { session, supabaseClient } = await getSupabase(event);
// Expose the session and supabaseClient to the rest ... | 7 |
bestchains/bc-apis | 35efc5a | src/proposal/models/condition-type.enum.ts | TypeScript | www.github.com/bestchains/bc-apis/tree/main/src/proposal/models/condition-type.enum.ts | https://raw.githubusercontent.com/bestchains/bc-apis/35efc5a/src/proposal/models/condition-type.enum.ts | bestchains/bc-apis 35efc5a src/proposal/models/condition-type.enum.ts | true | 200 | 580 | import { registerEnumType } from '@nestjs/graphql';
export enum ConditionType {
Initialized = 'Initialized',
Deployed = 'Deployed',
Succeeded = 'Succeeded',
Failed = 'Failed',
Expired = 'Expired',
Error = 'Error',
}
registerEnumType(ConditionType, {
name: 'ConditionType',
description: '「提议」Condition',... | 0 |
HugoAlbertBonet/wedding | dc89d49 | src/watchText.ts | TypeScript | www.github.com/HugoAlbertBonet/wedding/tree/main/src/watchText.ts | https://raw.githubusercontent.com/HugoAlbertBonet/wedding/dc89d49/src/watchText.ts | HugoAlbertBonet/wedding dc89d49 src/watchText.ts | true | 200 | 3,824 | var position = 0;
//var parrafoResult;
var follow = false;
var discurso = new Array("Hyperloop UPV is a universitary team whose aim is to develop the fifth mean of transport.",
"These means of transport moves levitating through a tube of vacuum, forgetting about the air and surface friction.",
"Every year, we participa... | 6 |
elian-r-ribeiro/mentalhealthcareawareness | 1a056ae | src/app/model/services/firebase.service.ts | TypeScript | www.github.com/elian-r-ribeiro/mentalhealthcareawareness/tree/main/src/app/model/services/firebase.service.ts | https://raw.githubusercontent.com/elian-r-ribeiro/mentalhealthcareawareness/1a056ae/src/app/model/services/firebase.service.ts | elian-r-ribeiro/mentalhealthcareawareness 1a056ae src/app/model/services/firebase.service.ts | true | 200 | 930 | import { Injectable } from '@angular/core';
import { AngularFirestore } from '@angular/fire/compat/firestore';
import { LoadingController } from '@ionic/angular';
@Injectable({
providedIn: 'root'
})
export class FirebaseService {
formsPath = 'forms'
constructor(private firestore: AngularFirestore, private load... | 4 |
bigfree/message-system | 18d729d | backend/src/enums/publish-state.enum.ts | TypeScript | www.github.com/bigfree/message-system/tree/main/backend/src/enums/publish-state.enum.ts | https://raw.githubusercontent.com/bigfree/message-system/18d729d/backend/src/enums/publish-state.enum.ts | bigfree/message-system 18d729d backend/src/enums/publish-state.enum.ts | true | 200 | 404 | /**
* PublishStateEnum
*/
export enum PublishStateEnum {
USER_CREATED = 'userCreated',
USER_UPDATED = 'userUpdated',
USER_GROUP_CREATED = 'userGroupCreated',
USER_GROUP_UPDATED = 'userGroupUpdated',
MESSAGE_CREATED = 'messageCreated',
MESSAGE_TYPE_CREATED = 'messageTypeCreated',
MESSAGE_TY... | 5 |
LeonKohli/gh-release-feed | 8f36972 | nuxt.config.ts | TypeScript | www.github.com/LeonKohli/gh-release-feed/tree/main/nuxt.config.ts | https://raw.githubusercontent.com/LeonKohli/gh-release-feed/8f36972/nuxt.config.ts | LeonKohli/gh-release-feed 8f36972 nuxt.config.ts | true | 200 | 964 | // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: {
compatibilityVersion: 4
},
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@pinia/nuxt',
'@nuxtjs/tailwindcss',
'shadcn-nuxt',
'@nuxt/icon',
'nuxt-auth-utils',
... | 2 |
fzrlzzt/angular-dropdown-form | 505dc37 | src/app/components/source-detail/source-detail.component.ts | TypeScript | www.github.com/fzrlzzt/angular-dropdown-form/tree/main/src/app/components/source-detail/source-detail.component.ts | https://raw.githubusercontent.com/fzrlzzt/angular-dropdown-form/505dc37/src/app/components/source-detail/source-detail.component.ts | fzrlzzt/angular-dropdown-form 505dc37 src/app/components/source-detail/source-detail.component.ts | true | 200 | 6,130 | import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';
import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { map, Observable, startWith } from 'rxjs';
import { Complex... | 3 |
cityssm/parking-ticket-system | e98cdaa | handlers/admin-post/doDeleteBylaw.ts | TypeScript | www.github.com/cityssm/parking-ticket-system/tree/main/handlers/admin-post/doDeleteBylaw.ts | https://raw.githubusercontent.com/cityssm/parking-ticket-system/e98cdaa/handlers/admin-post/doDeleteBylaw.ts | cityssm/parking-ticket-system e98cdaa handlers/admin-post/doDeleteBylaw.ts | true | 200 | 492 | import type { Request, Response } from 'express'
import deleteParkingBylaw from '../../database/parkingDB/deleteParkingBylaw.js'
import { getParkingBylawsWithOffenceStats } from '../../database/parkingDB/getParkingBylaws.js'
export default function handler(request: Request, response: Response): void {
const results... | 7 |
mendesvalentim/gcm | 86192a8 | ocorrencias-app/src/app/Ligacao.service.ts | TypeScript | www.github.com/mendesvalentim/gcm/tree/main/ocorrencias-app/src/app/Ligacao.service.ts | https://raw.githubusercontent.com/mendesvalentim/gcm/86192a8/ocorrencias-app/src/app/Ligacao.service.ts | mendesvalentim/gcm 86192a8 ocorrencias-app/src/app/Ligacao.service.ts | true | 200 | 1,017 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { environment } from '../environments/environment';
import { Ligacao } from './ligacao/ligacao';
@Injectable({
providedIn: 'root'
})
export class LigacaoService {
apiURL: stri... | 0 |
ANIRBARASKAR/redux_with_typescript | b48acda | src/constants/routes.ts | TypeScript | www.github.com/ANIRBARASKAR/redux_with_typescript/tree/main/src/constants/routes.ts | https://raw.githubusercontent.com/ANIRBARASKAR/redux_with_typescript/b48acda/src/constants/routes.ts | ANIRBARASKAR/redux_with_typescript b48acda src/constants/routes.ts | true | 200 | 865 |
type Routes = {
Login: string;
SignUp: string;
Enable2FA: string;
Configure2FA: string;
Settings: string;
Billing: string;
Documents: string;
Workspace: string;
Profile: string;
Home: string;
Workflow: string;
Participates: string;
Qa: string;
Log: string;
Forget_Pass:string;
Reset_Pas... | 4 |
saniksin/ERC20 | 6b404b1 | test/TokenExchange.test.ts | TypeScript | www.github.com/saniksin/ERC20/tree/main/test/TokenExchange.test.ts | https://raw.githubusercontent.com/saniksin/ERC20/6b404b1/test/TokenExchange.test.ts | saniksin/ERC20 6b404b1 test/TokenExchange.test.ts | true | 200 | 2,835 | import { MyERC20Token } from "../typechain-types";
import { loadFixture, ethers, expect } from "./setup";
describe("TokenExchange", function() {
async function deploy() {
const [owner, buyer] = await ethers.getSigners();
const GuideDAOToken = await ethers.getContractFactory("MyERC20Token");
const gtk = ... | 5 |
ebburke-borderless/eli-monorep | cfba965 | apps/sponsorship/src/application/dtos/GetAllSponsorshipsReqDTO.ts | TypeScript | www.github.com/ebburke-borderless/eli-monorep/tree/main/apps/sponsorship/src/application/dtos/GetAllSponsorshipsReqDTO.ts | https://raw.githubusercontent.com/ebburke-borderless/eli-monorep/cfba965/apps/sponsorship/src/application/dtos/GetAllSponsorshipsReqDTO.ts | ebburke-borderless/eli-monorep cfba965 apps/sponsorship/src/application/dtos/GetAllSponsorshipsReqDTO.ts | true | 200 | 970 | import { IGetAllSponsorshipsReqDTO } from "@getborderless/types";
import { ValidationError } from "@getborderless/utils/errors";
import Joi from "joi";
class GetAllSponsorshipsReqDTO implements IGetAllSponsorshipsReqDTO {
userId?: IGetAllSponsorshipsReqDTO["userId"];
businessId?: IGetAllSponsorshipsReqDTO["busines... | 3 |
rebooted943/ProjectCinema | 0f55df6 | src/app/app-routing.module.ts | TypeScript | www.github.com/rebooted943/ProjectCinema/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/rebooted943/ProjectCinema/0f55df6/src/app/app-routing.module.ts | rebooted943/ProjectCinema 0f55df6 src/app/app-routing.module.ts | true | 200 | 869 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { CercaFilmComponent } from './home/cerca-film/cerca-film.component';
import { SingoloFilmComponent } from './home/cerca-film/singolo-film/singolo-film.componen... | 7 |
MelancholyZhong/Simple-Storage-Hardhat | a18dde8 | scripts/deploy.ts | TypeScript | www.github.com/MelancholyZhong/Simple-Storage-Hardhat/tree/main/scripts/deploy.ts | https://raw.githubusercontent.com/MelancholyZhong/Simple-Storage-Hardhat/a18dde8/scripts/deploy.ts | MelancholyZhong/Simple-Storage-Hardhat a18dde8 scripts/deploy.ts | true | 200 | 1,811 | import { ethers, run, network } from "hardhat"
async function main() {
const SimpleStorageFactory = await ethers.getContractFactory(
"SimpleStorage"
)
// use the ethers from the hardhat package, the hardhat will know that the hardhat has been compiled and will use that file, vanilla ethers dont kno... | 0 |
Ricardo759486/Proyecto_SistemaDeControl | c4b72a3 | src/main/resources/static/src/app/shared/services/admin/tabla_proveedor/tabla-admin-proveedor.service.ts | TypeScript | www.github.com/Ricardo759486/Proyecto_SistemaDeControl/tree/main/src/main/resources/static/src/app/shared/services/admin/tabla_proveedor/tabla-admin-proveedor.service.ts | https://raw.githubusercontent.com/Ricardo759486/Proyecto_SistemaDeControl/c4b72a3/src/main/resources/static/src/app/shared/services/admin/tabla_proveedor/tabla-admin-proveedor.service.ts | Ricardo759486/Proyecto_SistemaDeControl c4b72a3 src/main/resources/static/src/app/shared/services/admin/tabla_proveedor/tabla-admin-proveedor.service.ts | true | 200 | 1,239 | import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Proveedor} from "../../../models/Proveedor";
@Injectable({
providedIn: 'root'
})
export class TablaAdminProveedorService {
user : any;
id : number;
constructor(private http:HttpClient) { }
url = 'http://loca... | 3 |
RBosio/task-micro | 16a159f | apps/auth/src/main.ts | TypeScript | www.github.com/RBosio/task-micro/tree/main/apps/auth/src/main.ts | https://raw.githubusercontent.com/RBosio/task-micro/16a159f/apps/auth/src/main.ts | RBosio/task-micro 16a159f apps/auth/src/main.ts | true | 200 | 284 | import { NestFactory } from '@nestjs/core';
import { AuthModule } from './auth.module';
import { Logger } from 'nestjs-pino';
async function bootstrap() {
const app = await NestFactory.create(AuthModule);
app.useLogger(app.get(Logger));
await app.listen(null);
}
bootstrap();
| 4 |
anfegomezver/mentorium-v2 | 848ca29 | src/app/components/auth/features/register/register.component.ts | TypeScript | www.github.com/anfegomezver/mentorium-v2/tree/main/src/app/components/auth/features/register/register.component.ts | https://raw.githubusercontent.com/anfegomezver/mentorium-v2/848ca29/src/app/components/auth/features/register/register.component.ts | anfegomezver/mentorium-v2 848ca29 src/app/components/auth/features/register/register.component.ts | true | 200 | 5,085 | import { Component, inject, signal } from '@angular/core';
import {
FormBuilder,
type FormControl,
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import { hasEmailError, isRequired } from '../../utils/validators';
import { AuthService } from '../../data-access/auth.service';
import { toast } from 'ng... | 5 |
ekingin/cms-vue3-ts | 490c8dc | src/views/main/system/user/config/modal-config.ts | TypeScript | www.github.com/ekingin/cms-vue3-ts/tree/main/src/views/main/system/user/config/modal-config.ts | https://raw.githubusercontent.com/ekingin/cms-vue3-ts/490c8dc/src/views/main/system/user/config/modal-config.ts | ekingin/cms-vue3-ts 490c8dc src/views/main/system/user/config/modal-config.ts | true | 200 | 2,009 | import { API_DICT_DEPARTMENT, API_DICT_ROLE } from '@/global/constants'
import type { IModalConfig } from '@/types'
const modalConfig: IModalConfig = {
pageName: 'users',
title: { add: '新建用户', edit: '编辑用户' },
formLabelWidth: 100,
formItems: [
{
label: '用户名:',
prop: 'name',
type: 'input',
... | 0 |
jadon-binda/TypeScript | 2710706 | api-users/delete-user/index.ts | TypeScript | www.github.com/jadon-binda/TypeScript/tree/main/api-users/delete-user/index.ts | https://raw.githubusercontent.com/jadon-binda/TypeScript/2710706/api-users/delete-user/index.ts | jadon-binda/TypeScript 2710706 api-users/delete-user/index.ts | true | 200 | 529 | import { User } from "../type-user";
import { readFile, writeFile } from "../read-and-write-in-files";
const deleteUser = (cpf: string): User => {
const users = readFile() as User[];
const deletedUser = users.find(user => {
return user.cpf === cpf;
});
if (!deletedUser) {
throw new Er... | 7 |
abrahamherrera01/PRUEBATECNICA | d6b105a | src/app/directory/add-contact/add-contact.component.ts | TypeScript | www.github.com/abrahamherrera01/PRUEBATECNICA/tree/main/src/app/directory/add-contact/add-contact.component.ts | https://raw.githubusercontent.com/abrahamherrera01/PRUEBATECNICA/d6b105a/src/app/directory/add-contact/add-contact.component.ts | abrahamherrera01/PRUEBATECNICA d6b105a src/app/directory/add-contact/add-contact.component.ts | true | 200 | 1,650 | import { Component } from '@angular/core';
import { NgForm } from '@angular/forms';
import Swal from 'sweetalert2';
import { ContactsService } from '../services/contacts.service';
@Component({
selector: 'app-add-contact',
templateUrl: './add-contact.component.html',
styleUrls: ['./add-contact.component.css']
})
... | 4 |
viniciusdiniz21/node-typescript-typeorm-rest-api | 159947f | src/controllers/RoomController.ts | TypeScript | www.github.com/viniciusdiniz21/node-typescript-typeorm-rest-api/tree/main/src/controllers/RoomController.ts | https://raw.githubusercontent.com/viniciusdiniz21/node-typescript-typeorm-rest-api/159947f/src/controllers/RoomController.ts | viniciusdiniz21/node-typescript-typeorm-rest-api 159947f src/controllers/RoomController.ts | true | 200 | 2,607 | import { Request, Response } from "express";
import { roomRepository } from "../repositories/roomRepository";
import { subjectRepository } from "../repositories/subjectRepository";
import { videoRepository } from "../repositories/videoRepository";
export class RoomController {
async create(req: Request, res: Respo... | 0 |
faridshojaemehr/weather_app_ngrx | e0e7976 | src/app/components/main/pages/search/search-routing.module.ts | TypeScript | www.github.com/faridshojaemehr/weather_app_ngrx/tree/main/src/app/components/main/pages/search/search-routing.module.ts | https://raw.githubusercontent.com/faridshojaemehr/weather_app_ngrx/e0e7976/src/app/components/main/pages/search/search-routing.module.ts | faridshojaemehr/weather_app_ngrx e0e7976 src/app/components/main/pages/search/search-routing.module.ts | true | 200 | 364 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SearchBarComponent } from './search-bar/search-bar.component';
const routes: Routes = [{ path: '', component: SearchBarComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModu... | 5 |
martrapp/astro-vtbot | 068b9b6 | devToolbar/app.ts | TypeScript | www.github.com/martrapp/astro-vtbot/tree/main/devToolbar/app.ts | https://raw.githubusercontent.com/martrapp/astro-vtbot/068b9b6/devToolbar/app.ts | martrapp/astro-vtbot 068b9b6 devToolbar/app.ts | true | 200 | 4,513 | import { defineToolbarApp } from 'astro/toolbar';
import { icon } from "../assets/bag-of-tricks";
import imgSrc from '../assets/chamber.png';
const DTB_TOKEN = 'vtbot-inspection-chamber';
const VTBAG_REOPEN = '#vtbag-ui-reopen';
export default defineToolbarApp({
init(canvas, app) {
createVtbotWindow();
documen... | 4 |
davi-lessa/alikit-api | 24abc09 | src/services/alikit/core/request.ts | TypeScript | www.github.com/davi-lessa/alikit-api/tree/main/src/services/alikit/core/request.ts | https://raw.githubusercontent.com/davi-lessa/alikit-api/24abc09/src/services/alikit/core/request.ts | davi-lessa/alikit-api 24abc09 src/services/alikit/core/request.ts | true | 200 | 1,253 | import axios, { AxiosRequestConfig, AxiosResponse, RawAxiosRequestHeaders } from "axios";
import { JSDOM, BaseOptions, DOMWindow } from "jsdom";
import { AliKit } from "./alikit";
export class AliRequest {
userAgent: string;
constructor(private main: AliKit) {
this.main = main;
this.userAgent = "Mozilla/5... | 7 |
Estrella-ticona/VetCare-frontend | ec487d8 | src/iam/hooks/useSignUp.ts | TypeScript | www.github.com/Estrella-ticona/VetCare-frontend/tree/main/src/iam/hooks/useSignUp.ts | https://raw.githubusercontent.com/Estrella-ticona/VetCare-frontend/ec487d8/src/iam/hooks/useSignUp.ts | Estrella-ticona/VetCare-frontend ec487d8 src/iam/hooks/useSignUp.ts | true | 200 | 969 | import { useState } from "react";
import { AuthApi } from "../services/auth-api";
import { User } from "../model/user";
import { useNavigate } from "react-router";
const api = new AuthApi();
export function useSignUp() {
const [user, setUser] = useState<User>(new User());
const [loading, setLoading] = useStat... | 3 |
m4urog4uto/ListaGauto | 4dca9dd | src/app/app.module.ts | TypeScript | www.github.com/m4urog4uto/ListaGauto/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/m4urog4uto/ListaGauto/4dca9dd/src/app/app.module.ts | m4urog4uto/ListaGauto 4dca9dd src/app/app.module.ts | true | 200 | 700 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { ToolbarComponent } from './components/toolbar/toolbar.component';
import { LayoutComponent } from './components/layout/layout.component';
import { LeftMenuCompon... | 0 |
SVWEFSBRWHWBCOTSEID/game-website | b64e33f | util/user.ts | TypeScript | www.github.com/SVWEFSBRWHWBCOTSEID/game-website/tree/main/util/user.ts | https://raw.githubusercontent.com/SVWEFSBRWHWBCOTSEID/game-website/b64e33f/util/user.ts | SVWEFSBRWHWBCOTSEID/game-website b64e33f util/user.ts | true | 200 | 305 | 'use server'
import type { User } from '@/contexts/ProfileContext';
export async function getUser(username: string): Promise<User | null> {
const res = await fetch(
`${process.env.API_BASE}/user/${username}`,
{ next: { tags: [`user-${username}`] } }
);
return res.json();
}
| 5 |
Elymne/findy-back | 7a68cf4 | src/domain/usecases/textFilters/addManyTextFilters.usecase.ts | TypeScript | www.github.com/Elymne/findy-back/tree/main/src/domain/usecases/textFilters/addManyTextFilters.usecase.ts | https://raw.githubusercontent.com/Elymne/findy-back/7a68cf4/src/domain/usecases/textFilters/addManyTextFilters.usecase.ts | Elymne/findy-back 7a68cf4 src/domain/usecases/textFilters/addManyTextFilters.usecase.ts | true | 200 | 1,597 | import { Failure, Result, Success, Usecase } from "@App/core/interfaces/abstract.usecase"
import logger from "@App/core/tools/logger"
import TextFilter from "@App/domain/entities/textFilter.entity"
import TextFilterModel from "@App/infrastructure/local/mongoDb/models/textFilter.model"
import TextFilterDatasource, { Tex... | 4 |
xavica/bms-pro-ops | c9e2a44 | src/entities/index.ts | TypeScript | www.github.com/xavica/bms-pro-ops/tree/main/src/entities/index.ts | https://raw.githubusercontent.com/xavica/bms-pro-ops/c9e2a44/src/entities/index.ts | xavica/bms-pro-ops c9e2a44 src/entities/index.ts | true | 200 | 363 | export { Crm } from './crm';
export { Customer } from './customer';
export * from './merchant';
export { Address } from './address';
export { QueryFilter } from './query-filters';
export { NotificationRequest } from './notification-request';
export { Filter } from './paged-params';
export {VrsMerchantAPIKeys as Distrib... | 7 |
VISHALGUPTA100803/TweetVibe_Backend_TS | ef8b2ba | .history/src/services/models/auth-service_20240227193137.ts | TypeScript | www.github.com/VISHALGUPTA100803/TweetVibe_Backend_TS/tree/main/.history/src/services/models/auth-service_20240227193137.ts | https://raw.githubusercontent.com/VISHALGUPTA100803/TweetVibe_Backend_TS/ef8b2ba/.history/src/services/models/auth-service_20240227193137.ts | VISHALGUPTA100803/TweetVibe_Backend_TS ef8b2ba .history/src/services/models/auth-service_20240227193137.ts | true | 200 | 630 | import { v4 as uuidv4 } from "uuid";
import User from "../db/models/user";
import { UserAndCredentials, UserCreationParams } from "./services/models/auth-models";
export default class AuthService {
public async register(
params: UserCreationParams
): Promise<UserAndCredentials> {
const user = await User.c... | 0 |
SipT1k/wutheringwaves-app | 8f9ad54 | composables/importConvene.ts | TypeScript | www.github.com/SipT1k/wutheringwaves-app/tree/main/composables/importConvene.ts | https://raw.githubusercontent.com/SipT1k/wutheringwaves-app/8f9ad54/composables/importConvene.ts | SipT1k/wutheringwaves-app 8f9ad54 composables/importConvene.ts | true | 200 | 4,199 | import dayjs from 'dayjs';
export const useImportConvene = defineStore('useImportConvene', () => {
// uses
const api = useApi();
const account = useAccount();
const database = useDatabase();
const resources = useResources();
// functions
const start = async (url: string) => {
// get records
cons... | 3 |
JalalMitali/NestShop | 946db46 | src/auth/auth.module.ts | TypeScript | www.github.com/JalalMitali/NestShop/tree/main/src/auth/auth.module.ts | https://raw.githubusercontent.com/JalalMitali/NestShop/946db46/src/auth/auth.module.ts | JalalMitali/NestShop 946db46 src/auth/auth.module.ts | true | 200 | 791 | import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { LocalStrategy } from './local.strategy';
import { JwtStrategy } from './jwt.strategy';
import { UsersModule } from '../users/users.module';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@nestj... | 5 |
Abexxxx1952/Tanada-FrontEnd | 88526ea | srcApp/entities/photo/api/createSignedUrl.ts | TypeScript | www.github.com/Abexxxx1952/Tanada-FrontEnd/tree/main/srcApp/entities/photo/api/createSignedUrl.ts | https://raw.githubusercontent.com/Abexxxx1952/Tanada-FrontEnd/88526ea/srcApp/entities/photo/api/createSignedUrl.ts | Abexxxx1952/Tanada-FrontEnd 88526ea srcApp/entities/photo/api/createSignedUrl.ts | true | 200 | 1,393 | "use server";
import { ErrorData } from "@/srcApp/shared/model/types";
import { isErrorData } from "@/srcApp/shared/model/isErrorData";
import { CreateSignedUrlResponse } from "@/srcApp/entities/photo/model/types";
import { getCookies } from "@/srcApp/features/auth/cookies/model/getCookies";
import { refreshTokens } fr... | 4 |
LeungYu/suiyangdi-scum-game-log-platform | e5e1c5b | main/dist/modules/user-dollar-change/user-dollar-change.service.d.ts | TypeScript | www.github.com/LeungYu/suiyangdi-scum-game-log-platform/tree/main/main/dist/modules/user-dollar-change/user-dollar-change.service.d.ts | https://raw.githubusercontent.com/LeungYu/suiyangdi-scum-game-log-platform/e5e1c5b/main/dist/modules/user-dollar-change/user-dollar-change.service.d.ts | LeungYu/suiyangdi-scum-game-log-platform e5e1c5b main/dist/modules/user-dollar-change/user-dollar-change.service.d.ts | true | 200 | 1,022 | import { User } from "../../entity/user.entity";
import { UserDollarChange } from "../../entity/user-dollar-change.entity";
import { DeleteResult, Repository, UpdateResult } from "typeorm";
import { Page } from "../../dto/page";
export declare class UserDollarChangeService {
private readonly userRepository;
pri... | 0 |
aws/graph-explorer | 37400a0 | packages/graph-explorer/src/connector/sparql/parseEdgeId.ts | TypeScript | www.github.com/aws/graph-explorer/tree/main/packages/graph-explorer/src/connector/sparql/parseEdgeId.ts | https://raw.githubusercontent.com/aws/graph-explorer/37400a0/packages/graph-explorer/src/connector/sparql/parseEdgeId.ts | aws/graph-explorer 37400a0 packages/graph-explorer/src/connector/sparql/parseEdgeId.ts | true | 200 | 1,249 | import { EdgeId, VertexId, getRawId, createVertexId } from "@/core";
import { logger } from "@/utils";
/**
* Parses out the source, target, and predicate from the edge ID.
*
* @param edgeId a synthetic id created using <source URI>-[predicate]-><target URI>
*/
export function parseEdgeId(edgeId: EdgeId): {
sourc... | 3 |
HanMyatThu/design-system-mini | d0499d3 | .storybook/theme.ts | TypeScript | www.github.com/HanMyatThu/design-system-mini/tree/main/.storybook/theme.ts | https://raw.githubusercontent.com/HanMyatThu/design-system-mini/d0499d3/.storybook/theme.ts | HanMyatThu/design-system-mini d0499d3 .storybook/theme.ts | true | 200 | 393 | // .storybook/YourTheme.js
import { create } from '@storybook/theming/create';
export default create({
base: 'light',
// Typography
fontBase: '"Open Sans", sans-serif',
fontCode: 'monospace',
brandTitle: 'IPTS Design System',
brandUrl: 'http://localhost:6006/',
brandImage: '/logo.png',
brandTarget: '... | 7 |
rrodriguezl1806/sales-process-be | a6bee18 | src/user_product/user_product.dto.ts | TypeScript | www.github.com/rrodriguezl1806/sales-process-be/tree/main/src/user_product/user_product.dto.ts | https://raw.githubusercontent.com/rrodriguezl1806/sales-process-be/a6bee18/src/user_product/user_product.dto.ts | rrodriguezl1806/sales-process-be a6bee18 src/user_product/user_product.dto.ts | true | 200 | 425 | import { ObjectType, Field, ID } from '@nestjs/graphql';
import { ProductType } from '../product/product.dto';
import { UserType } from '../user/user.dto';
@ObjectType()
export class UserProductType {
@Field()
id: number;
@Field()
create_date: Date;
@Field()
like: number;
@Field()
bought: string;
... | 5 |
wenderpmachado/bling-pipe | fabded8 | src/main.ts | TypeScript | www.github.com/wenderpmachado/bling-pipe/tree/main/src/main.ts | https://raw.githubusercontent.com/wenderpmachado/bling-pipe/fabded8/src/main.ts | wenderpmachado/bling-pipe fabded8 src/main.ts | true | 200 | 2,094 | import * as compression from 'compression';
import * as rateLimit from 'express-rate-limit';
import * as helmet from 'helmet';
import { INestApplication } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { HttpAdapterHost, NestFactory } from '@nestjs/core';
import { DocumentBuilder, Swagger... | 4 |
meetGramDev/meetgram | ec43f80 | src/features/posts/addPost/model/slice/addPostSlice.ts | TypeScript | www.github.com/meetGramDev/meetgram/tree/main/src/features/posts/addPost/model/slice/addPostSlice.ts | https://raw.githubusercontent.com/meetGramDev/meetgram/ec43f80/src/features/posts/addPost/model/slice/addPostSlice.ts | meetGramDev/meetgram ec43f80 src/features/posts/addPost/model/slice/addPostSlice.ts | true | 200 | 1,702 | import { Nullable } from '@/shared/types'
import { PayloadAction, createSlice } from '@reduxjs/toolkit'
import { AddingPostStage } from '../types/addPostTypes'
import { ImageType, UpdateImagePayload } from '../types/slice'
export const addPostSlice = createSlice({
initialState: {
addingPostStage: AddingPostStag... | 3 |
etn-ccis/blui-react-themes | 1278ca5 | src/componentStylesOverrides/MuiLinearProgress.ts | TypeScript | www.github.com/etn-ccis/blui-react-themes/tree/main/src/componentStylesOverrides/MuiLinearProgress.ts | https://raw.githubusercontent.com/etn-ccis/blui-react-themes/1278ca5/src/componentStylesOverrides/MuiLinearProgress.ts | etn-ccis/blui-react-themes 1278ca5 src/componentStylesOverrides/MuiLinearProgress.ts | true | 200 | 1,731 | import { BLUIColors } from '@brightlayer-ui/colors';
import { Components, Theme, CssVarsTheme } from '@mui/material/styles';
export default {
styleOverrides: {
colorPrimary: ({ theme }) => ({
backgroundColor: BLUIColors.blue[100],
...theme.applyStyles('dark', {
backg... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.