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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Esposter/Esposter | 08b38f6 | packages/vue-phaserjs/src/util/setterMap/components/FlipSetterMap.ts | TypeScript | www.github.com/Esposter/Esposter/tree/main/packages/vue-phaserjs/src/util/setterMap/components/FlipSetterMap.ts | https://raw.githubusercontent.com/Esposter/Esposter/08b38f6/packages/vue-phaserjs/src/util/setterMap/components/FlipSetterMap.ts | Esposter/Esposter 08b38f6 packages/vue-phaserjs/src/util/setterMap/components/FlipSetterMap.ts | true | 200 | 652 | import type { FlipConfiguration } from "@/models/configuration/components/FlipConfiguration";
import type { FlipEventEmitsOptions } from "@/models/emit/components/FlipEventEmitsOptions";
import type { SetterMap } from "@/models/setterMap/SetterMap";
import type { GameObjects } from "phaser";
export const FlipSetterMap... | 1 |
DefinitelyNotMai/Welby | 01aaa85 | frontend/src/styles/component/form/textareaStyle.ts | TypeScript | www.github.com/DefinitelyNotMai/Welby/tree/main/frontend/src/styles/component/form/textareaStyle.ts | https://raw.githubusercontent.com/DefinitelyNotMai/Welby/01aaa85/frontend/src/styles/component/form/textareaStyle.ts | DefinitelyNotMai/Welby 01aaa85 frontend/src/styles/component/form/textareaStyle.ts | true | 200 | 485 | // lib
import { defineStyleConfig } from "@chakra-ui/react";
export const textareaStyle = defineStyleConfig({
baseStyle: {},
variants: {
form: {
_placeholder: { textColor: "#bcbcbc" },
backgroundColor: "#ffffff",
borderColor: "#f6f6f6",
borderStyle: "solid",
borderWidth: "2px",
... | 4 |
oturkeybeoo/Sensor-Crypto-Project | e0af1cf | src/app.module.ts | TypeScript | www.github.com/oturkeybeoo/Sensor-Crypto-Project/tree/main/src/app.module.ts | https://raw.githubusercontent.com/oturkeybeoo/Sensor-Crypto-Project/e0af1cf/src/app.module.ts | oturkeybeoo/Sensor-Crypto-Project e0af1cf src/app.module.ts | true | 200 | 394 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { LoginModule } from './login/login.module';
import { SensorModule } from './sensor/sensor.module';
@Module({
imports: [
LoginModule,
SensorModule,
],
controllers:... | 5 |
future4code/lamarr-Rafael-Castro | db691d4 | modulo5/aprofundamento-typescript/src/exercicio3.ts | TypeScript | www.github.com/future4code/lamarr-Rafael-Castro/tree/main/modulo5/aprofundamento-typescript/src/exercicio3.ts | https://raw.githubusercontent.com/future4code/lamarr-Rafael-Castro/db691d4/modulo5/aprofundamento-typescript/src/exercicio3.ts | future4code/lamarr-Rafael-Castro db691d4 modulo5/aprofundamento-typescript/src/exercicio3.ts | true | 200 | 959 | // A)
type Post = {
autor: string,
texto: string
}
const posts: Post[] = [
{
autor: "Alvo Dumbledore",
texto: "Não vale a pena viver sonhando e se esquecer de viver"
},
{
autor: "Severo Snape",
texto: "Menos 10 pontos para Grifinória!"
},
{
autor: "He... | 0 |
javedusmani2/task-management-app | 736abb4 | frontend/src/app/components/tasks/tasks.component.ts | TypeScript | www.github.com/javedusmani2/task-management-app/tree/main/frontend/src/app/components/tasks/tasks.component.ts | https://raw.githubusercontent.com/javedusmani2/task-management-app/736abb4/frontend/src/app/components/tasks/tasks.component.ts | javedusmani2/task-management-app 736abb4 frontend/src/app/components/tasks/tasks.component.ts | true | 200 | 1,176 | import { Component, OnInit } from '@angular/core';
import { TaskService } from '../../services/task.service';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
@Component({
selector: 'app-tasks',
standalone: true,
imports: [FormsModule, CommonModule],
templateUrl: '.... | 6 |
Ashik763/assignment-2 | 90933f4 | src/app/modules/user/user.route.ts | TypeScript | www.github.com/Ashik763/assignment-2/tree/main/src/app/modules/user/user.route.ts | https://raw.githubusercontent.com/Ashik763/assignment-2/90933f4/src/app/modules/user/user.route.ts | Ashik763/assignment-2 90933f4 src/app/modules/user/user.route.ts | true | 200 | 854 | import express from 'express';
import { UserControllers } from './user.controller';
const router = express.Router();
// create a new user route
router.post('/', UserControllers.createUser);
// get all the users info
router.get('/', UserControllers.getAllUsers);
// specific user info
router.get('/:userId', UserCont... | 2 |
RollingArray/knowledgen | a0d8dac | app/src/app/pages/revision/revision.module.ts | TypeScript | www.github.com/RollingArray/knowledgen/tree/main/app/src/app/pages/revision/revision.module.ts | https://raw.githubusercontent.com/RollingArray/knowledgen/a0d8dac/app/src/app/pages/revision/revision.module.ts | RollingArray/knowledgen a0d8dac app/src/app/pages/revision/revision.module.ts | true | 200 | 2,264 | /**
* © Rolling Array https://rollingarray.co.in/
*
*
* @summary Course material page module
* @author code@rollingarray.co.in
*
* Created at : 2022-01-16 08:19:11
* Last modified : 2022-01-24 07:33:36
*/
import { CommonModule, DatePipe } from "@angular/common";
import { NgModule } from "@angular/core";... | 3 |
SampadaVyas1/shoppingWebsite | 49ee4d2 | redux/sagas/techStack.saga.ts | TypeScript | www.github.com/SampadaVyas1/shoppingWebsite/tree/main/redux/sagas/techStack.saga.ts | https://raw.githubusercontent.com/SampadaVyas1/shoppingWebsite/49ee4d2/redux/sagas/techStack.saga.ts | SampadaVyas1/shoppingWebsite 49ee4d2 redux/sagas/techStack.saga.ts | true | 200 | 1,175 | import { AnyAction } from "@reduxjs/toolkit";
import { delay, put, takeEvery, takeLatest } from "redux-saga/effects";
import { sagaActions } from "../actions";
import {
getAllTechStacks,
handleTechStackSearch,
toggleError,
toggleLoading,
} from "../slices/techStackSlice";
import { getAllTechStackService } from ... | 4 |
Pushh02/ai-interviewer | cab054f | apps/http/src/states/InterviewSession.ts | TypeScript | www.github.com/Pushh02/ai-interviewer/tree/main/apps/http/src/states/InterviewSession.ts | https://raw.githubusercontent.com/Pushh02/ai-interviewer/cab054f/apps/http/src/states/InterviewSession.ts | Pushh02/ai-interviewer cab054f apps/http/src/states/InterviewSession.ts | true | 200 | 2,587 | interface ResponseSchema {
questionNumber: number;
question: string;
answer: string;
}
interface SessionMetadata {
createdAt: Date;
topic: string;
expertise: string;
name: string;
systemPrompt: string;
responses: ResponseSchema[];
}
export class InterviewSession {
private stati... | 1 |
samsuladry/vehicle-maintenance-system-backend | 2616a2c | src/Routes/maintenance.ts | TypeScript | www.github.com/samsuladry/vehicle-maintenance-system-backend/tree/main/src/Routes/maintenance.ts | https://raw.githubusercontent.com/samsuladry/vehicle-maintenance-system-backend/2616a2c/src/Routes/maintenance.ts | samsuladry/vehicle-maintenance-system-backend 2616a2c src/Routes/maintenance.ts | true | 200 | 517 | import express from "express"
import { addMaintenance, deleteMaintenance, index, listOfMaintenance, singleMaintenance, updateMaintenance } from "../Controller/maintenance"
const router = express.Router()
router.get('/', index)
router.get('/getMaintenance', listOfMaintenance)
router.get('/getMaintenance/:id', singleMa... | 0 |
datalens-tech/datalens-us | 9493fb5 | src/controllers/collections/response-models/root-permissions.ts | TypeScript | www.github.com/datalens-tech/datalens-us/tree/main/src/controllers/collections/response-models/root-permissions.ts | https://raw.githubusercontent.com/datalens-tech/datalens-us/9493fb5/src/controllers/collections/response-models/root-permissions.ts | datalens-tech/datalens-us 9493fb5 src/controllers/collections/response-models/root-permissions.ts | true | 200 | 415 | import {z} from '../../../components/zod';
const schema = z
.object({
createCollectionInRoot: z.boolean(),
createWorkbookInRoot: z.boolean(),
})
.describe('Root permissions');
const format = (data: {
createCollectionInRoot: boolean;
createWorkbookInRoot: boolean;
}): z.infer<typeof... | 6 |
YuetTusi/gen-casedoc | 91422a5 | src/type/exp-choice.ts | TypeScript | www.github.com/YuetTusi/gen-casedoc/tree/main/src/type/exp-choice.ts | https://raw.githubusercontent.com/YuetTusi/gen-casedoc/91422a5/src/type/exp-choice.ts | YuetTusi/gen-casedoc 91422a5 src/type/exp-choice.ts | true | 200 | 1,324 | export const expChioce = [{
title: '全部文档',
key: 'ALL',
children: [
{
title: '受理审查表',
key: 'ShowLiShenCha'
},
{
title: '受理通知书',
key: 'ShowLiTongZhiShu'
},
{
title: '初步检查情况确认表',
key: 'ChuBuJianChaQ... | 5 |
saurabhipro/landsys_ui | f85e53d | src/main/webapp/app/entities/public-notification/service/public-notification.service.ts | TypeScript | www.github.com/saurabhipro/landsys_ui/tree/main/src/main/webapp/app/entities/public-notification/service/public-notification.service.ts | https://raw.githubusercontent.com/saurabhipro/landsys_ui/f85e53d/src/main/webapp/app/entities/public-notification/service/public-notification.service.ts | saurabhipro/landsys_ui f85e53d src/main/webapp/app/entities/public-notification/service/public-notification.service.ts | true | 200 | 4,846 | import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import dayjs from 'dayjs/esm';
import { isPresent } from 'app/core/util/operators';
import { DATE_FORMAT } from 'app/config/input.constan... | 7 |
EshelEyni/Snapshot | bbdf57d | frontend/src/app/pages/login-signup/login-signup.component.ts | TypeScript | www.github.com/EshelEyni/Snapshot/tree/main/frontend/src/app/pages/login-signup/login-signup.component.ts | https://raw.githubusercontent.com/EshelEyni/Snapshot/bbdf57d/frontend/src/app/pages/login-signup/login-signup.component.ts | EshelEyni/Snapshot bbdf57d frontend/src/app/pages/login-signup/login-signup.component.ts | true | 200 | 2,171 | import { AuthService } from './../../services/auth.service';
import { User } from './../../models/user.model';
import { LoadedLoggedInUser } from './../../store/actions/user.actions';
import { Store } from '@ngrx/store';
import { State } from './../../store/store';
import { Router } from '@angular/router';
import { Com... | 2 |
ottogi99/slider-api | 8c76b40 | src/orm.config.ts | TypeScript | www.github.com/ottogi99/slider-api/tree/main/src/orm.config.ts | https://raw.githubusercontent.com/ottogi99/slider-api/8c76b40/src/orm.config.ts | ottogi99/slider-api 8c76b40 src/orm.config.ts | true | 200 | 728 | import { TypeOrmModuleOptions } from '@nestjs/typeorm'
function ormConfig(): TypeOrmModuleOptions {
const commonConf = {
SYNCRONIZE: true,
ENTITIES: [__dirname + '/domain/*.entity{.ts,.js}'],
MIGRATIONS: [__dirname + '/migrations/**/*{.ts,.js}'],
MIGRATIONS_RUN: false,
};
return {
name: 'def... | 4 |
porat6766/Intern | 00459d1 | NextJS/you-tube-app/app/api/posts/[id]/route.ts | TypeScript | www.github.com/porat6766/Intern/tree/main/NextJS/you-tube-app/app/api/posts/[id]/route.ts | https://raw.githubusercontent.com/porat6766/Intern/00459d1/NextJS/you-tube-app/app/api/posts/%5Bid%5D/route.ts | porat6766/Intern 00459d1 NextJS/you-tube-app/app/api/posts/[id]/route.ts | true | 200 | 798 | import { type NextRequest, NextResponse } from "next/server";
export async function GET(_req: NextRequest, context: { params: Promise<{ id: string }> }) {
try {
const { id } = await context.params;
const response = await fetch(`https://dummyjson.com/posts/${id}`);
if (!response.ok) throw n... | 3 |
joypto/nestjs-api-sample | 4911ba5 | src/api/admin/admin.service.ts | TypeScript | www.github.com/joypto/nestjs-api-sample/tree/main/src/api/admin/admin.service.ts | https://raw.githubusercontent.com/joypto/nestjs-api-sample/4911ba5/src/api/admin/admin.service.ts | joypto/nestjs-api-sample 4911ba5 src/api/admin/admin.service.ts | true | 200 | 2,798 | import {
BadRequestException,
ForbiddenException,
Injectable,
NotFoundException
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { ONE_DAY } from 'src/constants/consts';
import { ADMIN_CODE, ADMIN_USERNAMES } from 'src/redis/redis.key';
import { RedisService } from 'src/re... | 1 |
realbig4199/typeormprac | 4afdf7b | src/data-source.ts | TypeScript | www.github.com/realbig4199/typeormprac/tree/main/src/data-source.ts | https://raw.githubusercontent.com/realbig4199/typeormprac/4afdf7b/src/data-source.ts | realbig4199/typeormprac 4afdf7b src/data-source.ts | true | 200 | 1,000 | // DB와 연결하는 DataSource 객체를 생성하는 파일
// DataSource 객체를 생성하고, TypeORM을 사용하여 DB와 연결 (index.ts에서 사용)
import "reflect-metadata";
import { DataSource } from "typeorm";
import { User } from "./entity/User";
export const AppDataSource = new DataSource({
type: "postgres",
host: "localhost",
port: 5432,
username: "postgr... | 0 |
shivanijpatil/Vehical-Tracking-System | 135ba99 | src/types.ts | TypeScript | www.github.com/shivanijpatil/Vehical-Tracking-System/tree/main/src/types.ts | https://raw.githubusercontent.com/shivanijpatil/Vehical-Tracking-System/135ba99/src/types.ts | shivanijpatil/Vehical-Tracking-System 135ba99 src/types.ts | true | 200 | 440 | export interface VehicleLocation {
latitude: number;
longitude: number;
timestamp: string;
speed: number;
distance: number;
battery: number;
status: 'moving' | 'idle' | 'stopped';
}
export interface Vehicle {
id: string;
name: string;
currentLocation: VehicleLocation;
route: VehicleLocation[];
}
... | 6 |
eduardoJunior09/ToDoList_Angular | 5ed91dd | src/app/app.config.ts | TypeScript | www.github.com/eduardoJunior09/ToDoList_Angular/tree/main/src/app/app.config.ts | https://raw.githubusercontent.com/eduardoJunior09/ToDoList_Angular/5ed91dd/src/app/app.config.ts | eduardoJunior09/ToDoList_Angular 5ed91dd src/app/app.config.ts | true | 200 | 982 | import { ApplicationConfig, provideZoneChangeDetection } from "@angular/core";
import { provideRouter } from "@angular/router";
import { routes } from "./app.routes";
import { provideAnimationsAsync } from "@angular/platform-browser/animations/async";
import { provideAuth0 } from "@auth0/auth0-angular";
import { provi... | 5 |
mwikstrom/scribing | 0bd1810 | src/operations/FormatTable.ts | TypeScript | www.github.com/mwikstrom/scribing/tree/main/src/operations/FormatTable.ts | https://raw.githubusercontent.com/mwikstrom/scribing/0bd1810/src/operations/FormatTable.ts | mwikstrom/scribing 0bd1810 src/operations/FormatTable.ts | true | 200 | 3,975 | import {
constType,
nonNegativeIntegerType,
RecordClass,
recordClassType,
recordType,
RecordType,
} from "paratype";
import { FlowOperation } from "./FlowOperation";
import { FlowOperationRegistry } from "../internal/class-registry";
import { TableStyle } from "../styles/TableStyle";
impor... | 2 |
autumns-heartless/blog | 234e299 | docs/.vitepress/theme/utils/index.ts | TypeScript | www.github.com/autumns-heartless/blog/tree/main/docs/.vitepress/theme/utils/index.ts | https://raw.githubusercontent.com/autumns-heartless/blog/234e299/docs/.vitepress/theme/utils/index.ts | autumns-heartless/blog 234e299 docs/.vitepress/theme/utils/index.ts | true | 200 | 22,643 | /**
* 格式化日期时间字符串
*
* @param value 待格式化的日期时间值,支持数字、字符串和 Date 类型,默认为当前时间戳
* @param format 格式化字符串,默认为'YYYY-MM-DD HH:mm:ss',支持格式化参数:YY:年,M:月,D:日,H:时,m:分钟,s:秒,SSS:毫秒
* @returns 返回格式化后的日期时间字符串
*/
export function dateFormat(
value: number | string | Date = Date.now(),
format: string = 'YYYY-MM-DD HH:mm:ss',
): strin... | 7 |
tbrixey/the-temporary-plane | f0654f8 | src/util/items.ts | TypeScript | www.github.com/tbrixey/the-temporary-plane/tree/main/src/util/items.ts | https://raw.githubusercontent.com/tbrixey/the-temporary-plane/f0654f8/src/util/items.ts | tbrixey/the-temporary-plane f0654f8 src/util/items.ts | true | 200 | 725 | import { find } from 'lodash';
import apiKeys from '../mongo/schemas/apiKeys';
import { Item, User } from '../types';
export const itemsToAdd = (
user: User,
givenItems: { item: Item; count: number }[]
) => {
givenItems.forEach((item) => {
const found = find(user.bag, { item: item.item._id });
if (found)... | 4 |
theritiktiwari/invoice-generator | f9b06fc | src/models/index.ts | TypeScript | www.github.com/theritiktiwari/invoice-generator/tree/main/src/models/index.ts | https://raw.githubusercontent.com/theritiktiwari/invoice-generator/f9b06fc/src/models/index.ts | theritiktiwari/invoice-generator f9b06fc src/models/index.ts | true | 200 | 2,003 | import { Schema, Document } from "mongoose";
// Common Interfaces
export interface FullNameInterface extends Document {
firstName: string;
lastName?: string;
}
export interface AddressInterface extends Document {
address1: string;
address2?: string;
city: string;
state: string;
pincode: st... | 3 |
Mohzaki20/Master_E-commerce | fc6bd42 | src/hooks/useProducts.ts | TypeScript | www.github.com/Mohzaki20/Master_E-commerce/tree/main/src/hooks/useProducts.ts | https://raw.githubusercontent.com/Mohzaki20/Master_E-commerce/fc6bd42/src/hooks/useProducts.ts | Mohzaki20/Master_E-commerce fc6bd42 src/hooks/useProducts.ts | true | 200 | 1,185 | import { useAppDispatch, useAppSelector } from "@store/hooks";
import actGetProductsCatPrefix from "@store/products/act/actGetProductsCatPrefix";
import { useEffect } from "react";
import { useParams } from "react-router-dom";
import { productsCleanUp } from "@store/products/productsSlice";
function useProducts() {
c... | 1 |
GaloyMoney/blink | 4b85537 | core/api/src/graphql/public/types/payload/on-chain-address.ts | TypeScript | www.github.com/GaloyMoney/blink/tree/main/core/api/src/graphql/public/types/payload/on-chain-address.ts | https://raw.githubusercontent.com/GaloyMoney/blink/4b85537/core/api/src/graphql/public/types/payload/on-chain-address.ts | GaloyMoney/blink 4b85537 core/api/src/graphql/public/types/payload/on-chain-address.ts | true | 200 | 421 | import OnChainAddress from "../../../shared/types/scalar/on-chain-address"
import IError from "@/graphql/shared/types/abstract/error"
import { GT } from "@/graphql/index"
const OnChainAddressPayload = GT.Object({
name: "OnChainAddressPayload",
fields: () => ({
errors: {
type: GT.NonNullList(IError),
... | 5 |
bellella/juntech | e917101 | jun-server/src/sql/models/inquiry.model.ts | TypeScript | www.github.com/bellella/juntech/tree/main/jun-server/src/sql/models/inquiry.model.ts | https://raw.githubusercontent.com/bellella/juntech/e917101/jun-server/src/sql/models/inquiry.model.ts | bellella/juntech e917101 jun-server/src/sql/models/inquiry.model.ts | true | 200 | 1,452 | import * as sequelize from 'sequelize'
import { Sequelize } from 'sequelize'
import { SqlModel, SqlModelCreator } from '../../types/types'
class InquiryModel implements SqlModelCreator{
private model: SqlModel;
public getModel(){
return this.model;
}
associate() {
}
public initModel(sql... | 6 |
maxgaurav/nestjs-framework-template | 836d658 | src/node.d.ts | TypeScript | www.github.com/maxgaurav/nestjs-framework-template/tree/main/src/node.d.ts | https://raw.githubusercontent.com/maxgaurav/nestjs-framework-template/836d658/src/node.d.ts | maxgaurav/nestjs-framework-template 836d658 src/node.d.ts | true | 200 | 1,122 | declare global {
namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'production' | 'local';
APP_PORT: `${number}`;
OVERRIDE_ENV: string | undefined;
APP_URL: string;
APP_DEBUG?: 'true' | 'false';
APP_SECRET: string;
DB_HOST: string;
DB_NAME: string;
DB_USERNA... | 0 |
Fras28/BlockbusterBack | b6323b0 | src/nodemailer.ts | TypeScript | www.github.com/Fras28/BlockbusterBack/tree/main/src/nodemailer.ts | https://raw.githubusercontent.com/Fras28/BlockbusterBack/b6323b0/src/nodemailer.ts | Fras28/BlockbusterBack b6323b0 src/nodemailer.ts | true | 200 | 392 | import nodemailer from "nodemailer"
export let transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 465,
secure: true,
auth: {
user: "blockbusterpf@gmail.com", // generated ethereal user
pass: "lsaomypmspnamwje", // generated ethereal password
},
});
transporte... | 7 |
Vlad-Dima21/data_warehouse | e95eff1 | migrate/locatie.ts | TypeScript | www.github.com/Vlad-Dima21/data_warehouse/tree/main/migrate/locatie.ts | https://raw.githubusercontent.com/Vlad-Dima21/data_warehouse/e95eff1/migrate/locatie.ts | Vlad-Dima21/data_warehouse e95eff1 migrate/locatie.ts | true | 200 | 3,249 | // @ts-types="@types/oracledb"
import oracledb, { autoCommit, connectionClass } from 'oracledb';
import { initOltp, initWh } from './oracle.ts';
import CliProgress from './progress.ts';
import { LOCATIE } from './wh-types.ts';
export default async function migrateLocatie(lastMigrationTimestamp: Date) {
const oltpConn... | 4 |
HalexV/fast-feet-api-challenge-04 | 5ffc2c3 | src/infra/http/presenters/package-with-recipient-presenter.ts | TypeScript | www.github.com/HalexV/fast-feet-api-challenge-04/tree/main/src/infra/http/presenters/package-with-recipient-presenter.ts | https://raw.githubusercontent.com/HalexV/fast-feet-api-challenge-04/5ffc2c3/src/infra/http/presenters/package-with-recipient-presenter.ts | HalexV/fast-feet-api-challenge-04 5ffc2c3 src/infra/http/presenters/package-with-recipient-presenter.ts | true | 200 | 944 | import { PackageWithRecipientResponseModel } from '../controllers/models/responses/package-with-recipient-response-model'
import { PackageWithRecipient } from '@/domain/fast-feet/enterprise/entities/value-objects/package-with-recipient'
export class PackageWithRecipientPresenter {
static toHTTP(pkg: PackageWithRecip... | 3 |
unsteelix/seamlessRouter | e6875a3 | src/index.ts | TypeScript | www.github.com/unsteelix/seamlessRouter/tree/main/src/index.ts | https://raw.githubusercontent.com/unsteelix/seamlessRouter/e6875a3/src/index.ts | unsteelix/seamlessRouter e6875a3 src/index.ts | true | 200 | 423 | import Router from "./router";
import { SeamlessRouterOptions, SeamlessWindow } from "./interfaces";
const seamlessRouter = (opts?: SeamlessRouterOptions): Router => {
const router = new Router(opts);
console.log("🔥 seamlessRouter engaged");
if (window) {
const seamlessWindows = window as SeamlessWindow;
... | 2 |
marcojr73/projeto19-drivenpass | 6ea9d8a | prisma/seed.ts | TypeScript | www.github.com/marcojr73/projeto19-drivenpass/tree/main/prisma/seed.ts | https://raw.githubusercontent.com/marcojr73/projeto19-drivenpass/6ea9d8a/prisma/seed.ts | marcojr73/projeto19-drivenpass 6ea9d8a prisma/seed.ts | true | 200 | 451 | import client from "../src/config/dataBase.js";
import bcrypt from "bcrypt"
async function main () {
await client.users.upsert({
where: {email:"admin@driven.com"},
update: {},
create:{
email: "admin@driven.com",
password: bcrypt.hashSync("4815162342", 10)
... | 1 |
mizuki1412/web-toolkit | 69f21cc | src/service/use-autoresize.ts | TypeScript | www.github.com/mizuki1412/web-toolkit/tree/main/src/service/use-autoresize.ts | https://raw.githubusercontent.com/mizuki1412/web-toolkit/69f21cc/src/service/use-autoresize.ts | mizuki1412/web-toolkit 69f21cc src/service/use-autoresize.ts | true | 200 | 1,004 | import { onUnmounted, onMounted, ref } from '@vue/composition-api';
import { SetupContext } from '@vue/composition-api';
interface IAutoResizeOptions {
context: SetupContext;
ref: string;
pivot?: number;
}
/**
* 使列表项自适应宽度
* @param opts
*/
export function useAutoresize(opts: IAutoResizeOptions) {
const pivot ... | 5 |
Baraa-Nayyal/Angular-User-Api | 27940e0 | src/main.ts | TypeScript | www.github.com/Baraa-Nayyal/Angular-User-Api/tree/main/src/main.ts | https://raw.githubusercontent.com/Baraa-Nayyal/Angular-User-Api/27940e0/src/main.ts | Baraa-Nayyal/Angular-User-Api 27940e0 src/main.ts | true | 200 | 949 | import { provideHttpClient } from '@angular/common/http';
import { bootstrapApplication } from '@angular/platform-browser';
import { provideRouter } from '@angular/router';
import { AppComponent } from './app/app.component';
import { routes } from './app/app.routes';
import { provideStore, StoreModule } from '@ngrx/sto... | 6 |
danudenny/tms_api | 550f9d4 | src/servers/smd/controllers/integration/scanin-smd-list.controller.ts | TypeScript | www.github.com/danudenny/tms_api/tree/main/src/servers/smd/controllers/integration/scanin-smd-list.controller.ts | https://raw.githubusercontent.com/danudenny/tms_api/550f9d4/src/servers/smd/controllers/integration/scanin-smd-list.controller.ts | danudenny/tms_api 550f9d4 src/servers/smd/controllers/integration/scanin-smd-list.controller.ts | true | 200 | 2,829 | import { Body, Controller, Post, Req, UseGuards, Delete, Param, Query, Get, Response } from '@nestjs/common';
import express = require('express');
import { Transactional } from '../../../../shared/external/typeorm-transactional-cls-hooked/Transactional';
import { ApiUseTags, ApiBearerAuth } from '../../../../share... | 7 |
Lizon57/careolodoApplication | dc998e3 | src/store/store.ts | TypeScript | www.github.com/Lizon57/careolodoApplication/tree/main/src/store/store.ts | https://raw.githubusercontent.com/Lizon57/careolodoApplication/dc998e3/src/store/store.ts | Lizon57/careolodoApplication dc998e3 src/store/store.ts | true | 200 | 516 | import { legacy_createStore as createStore, compose, combineReducers } from 'redux'
import { userReducer } from './reducers/user-reducer'
const rootReducer = combineReducers({
userModule: userReducer
})
export type RootState = ReturnType<typeof store.getState>
const middleware = window.__REDUX_DEVTOOLS_EXTEN... | 4 |
triparna01/Snapgram | 548efe3 | src/lib/appwrite/api.ts | TypeScript | www.github.com/triparna01/Snapgram/tree/main/src/lib/appwrite/api.ts | https://raw.githubusercontent.com/triparna01/Snapgram/548efe3/src/lib/appwrite/api.ts | triparna01/Snapgram 548efe3 src/lib/appwrite/api.ts | true | 200 | 2,212 | import { account, appwriteConfig, avatars, databases } from "./config";
import { ID, Query } from 'appwrite';
import { INewUser } from "@/types";
export async function createUserAccount(user: INewUser){
try {
const newAccount = await account.create(
ID.unique(),
user.email,
... | 3 |
fliegwerk/trc | 7fecc29 | typings.d.ts | TypeScript | www.github.com/fliegwerk/trc/tree/main/typings.d.ts | https://raw.githubusercontent.com/fliegwerk/trc/7fecc29/typings.d.ts | fliegwerk/trc 7fecc29 typings.d.ts | true | 200 | 592 | declare module 'pnp-webpack-plugin' {
/**
* An applier
*/
interface Applier {
apply: (resolver: any) => void;
}
export function apply(resolver: any): void;
export function makePlugin(locator: any, filter: any): Applier;
export function moduleLoader(module: any): Applier;
export const topLevelLoader: Ap... | 2 |
cbcristhian/reqres-with-ngrx | a11ef71 | src/app/app.module.ts | TypeScript | www.github.com/cbcristhian/reqres-with-ngrx/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/cbcristhian/reqres-with-ngrx/a11ef71/src/app/app.module.ts | cbcristhian/reqres-with-ngrx a11ef71 src/app/app.module.ts | true | 200 | 1,219 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './components/home/home.component';
import { UsersCreateComponent } from './compone... | 1 |
Jotiram49/Leanrmgt | d5eb420 | src/app/app.module.ts | TypeScript | www.github.com/Jotiram49/Leanrmgt/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Jotiram49/Leanrmgt/d5eb420/src/app/app.module.ts | Jotiram49/Leanrmgt d5eb420 src/app/app.module.ts | true | 200 | 2,207 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { MatIconModule } from '@angular/material/icon';
import { AppRoutingModule, routingComponents } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderComponent } from './head... | 5 |
FBarrca/Obsidian-Nerdamer-CAS | 6abd144 | src/units.ts | TypeScript | www.github.com/FBarrca/Obsidian-Nerdamer-CAS/tree/main/src/units.ts | https://raw.githubusercontent.com/FBarrca/Obsidian-Nerdamer-CAS/6abd144/src/units.ts | FBarrca/Obsidian-Nerdamer-CAS 6abd144 src/units.ts | true | 200 | 1,887 | const SI_PREFIXES: { [key: string]: number } = {
Q: 1e30,
R: 1e27,
Y: 1e24,
Z: 1e21,
E: 1e18,
P: 1e15,
T: 1e12,
G: 1e9,
M: 1e6,
k: 1e3,
"": 1,
m: 1e-3,
μ: 1e-6,
u: 1e-6,
n: 1e-9,
p: 1e-12,
f: 1e-15,
a: 1e-18,
z: 1e-21,
y: 1e-24,
r: 1e-27,
q: 1e-30,
};
const PREFIX_REGEX = /(... | 6 |
matheustrres/ignite-rentx | 80671a1 | src/modules/rentals/infra/typeorm/repositories/RentalsRepository.ts | TypeScript | www.github.com/matheustrres/ignite-rentx/tree/main/src/modules/rentals/infra/typeorm/repositories/RentalsRepository.ts | https://raw.githubusercontent.com/matheustrres/ignite-rentx/80671a1/src/modules/rentals/infra/typeorm/repositories/RentalsRepository.ts | matheustrres/ignite-rentx 80671a1 src/modules/rentals/infra/typeorm/repositories/RentalsRepository.ts | true | 200 | 1,778 | import { getRepository, Repository } from 'typeorm';
import { RentalEntity } from '../entities/RentalEntity';
import { IRentalsRepository } from '@modules/rentals/domain/repositories/RentalsInterface';
import { ICreateRentalDto } from '@modules/rentals/domain/dtos/CreateRentalDto';
class RentalsRepository implements ... | 7 |
sergii21/users-angular-app | b11b6dd | src/app/features/users/services/users.service.ts | TypeScript | www.github.com/sergii21/users-angular-app/tree/main/src/app/features/users/services/users.service.ts | https://raw.githubusercontent.com/sergii21/users-angular-app/b11b6dd/src/app/features/users/services/users.service.ts | sergii21/users-angular-app b11b6dd src/app/features/users/services/users.service.ts | true | 200 | 595 | import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { User } from '../models/user';
const USER_NAMES = ['Serhii', 'Vadym'];
@Injectable({ providedIn: 'root' })
export class UsersService {
create(user: User): Observable<User> {
return of({ ...user, id: Math.random() });
}
... | 3 |
yangdan001/ola-canvas | ca21127 | packages/ola/src/editor/tools/tool_select/tool_select_move.ts | TypeScript | www.github.com/yangdan001/ola-canvas/tree/main/packages/ola/src/editor/tools/tool_select/tool_select_move.ts | https://raw.githubusercontent.com/yangdan001/ola-canvas/ca21127/packages/ola/src/editor/tools/tool_select/tool_select_move.ts | yangdan001/ola-canvas ca21127 packages/ola/src/editor/tools/tool_select/tool_select_move.ts | true | 200 | 3,873 | import { IPoint } from '../../../type';
import { noop } from '../../../utils/common';
import { MoveElementsCommand } from '../../commands/move_elements';
import { Editor } from '../../editor';
import { IBaseTool } from '../type';
/**
* select tool
*
* move selected elements
*/
export class SelectMoveTool implement... | 2 |
CPSC319-2022/AmazonianPrime | 5c68d78 | frontend/src/types/listing.ts | TypeScript | www.github.com/CPSC319-2022/AmazonianPrime/tree/main/frontend/src/types/listing.ts | https://raw.githubusercontent.com/CPSC319-2022/AmazonianPrime/5c68d78/frontend/src/types/listing.ts | CPSC319-2022/AmazonianPrime 5c68d78 frontend/src/types/listing.ts | true | 200 | 370 | import { User } from './user';
export interface Listing {
ListingID: number;
UserID: number;
User: User;
ListingName: string;
Description: string;
Cost: number;
Quantity: number;
Category: string;
ItemCondition: string;
PostedTimestamp: string;
IsActiveListing: boolean;
Brand?: string;
Colour... | 1 |
erelsop/randPass | 1a3d9db | src/types/index.types.ts | TypeScript | www.github.com/erelsop/randPass/tree/main/src/types/index.types.ts | https://raw.githubusercontent.com/erelsop/randPass/1a3d9db/src/types/index.types.ts | erelsop/randPass 1a3d9db src/types/index.types.ts | true | 200 | 1,118 | /**
* Represents encrypted data.
*
* The `iv` property is the initialization vector used for encryption.
* The `encrypted` property is the encrypted data.
* The `authTag` property is the authentication tag.
*/
export type EncryptedData = {
iv: string;
encrypted: string;
authTag: string;
};
/**
* Represent... | 5 |
ddomingo-nikita/nestjs-ss24-web-service | 2ae4ed4 | src/schemas/avatar.schema.ts | TypeScript | www.github.com/ddomingo-nikita/nestjs-ss24-web-service/tree/main/src/schemas/avatar.schema.ts | https://raw.githubusercontent.com/ddomingo-nikita/nestjs-ss24-web-service/2ae4ed4/src/schemas/avatar.schema.ts | ddomingo-nikita/nestjs-ss24-web-service 2ae4ed4 src/schemas/avatar.schema.ts | true | 200 | 1,433 | import * as Joi from 'joi'
export const avatarSchema = Joi.object({
id: Joi.any(),
createdAt: Joi.any(),
avatarName: Joi
.string()
.max(20)
.required(),
childAge: Joi.number().integer().min(0).max(100),
skinColor: Joi.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/).r... | 6 |
vasiliev-alexey/otus_node_course | a25beb2 | packages/courses-backend/src/models/UserModel.ts | TypeScript | www.github.com/vasiliev-alexey/otus_node_course/tree/main/packages/courses-backend/src/models/UserModel.ts | https://raw.githubusercontent.com/vasiliev-alexey/otus_node_course/a25beb2/packages/courses-backend/src/models/UserModel.ts | vasiliev-alexey/otus_node_course a25beb2 packages/courses-backend/src/models/UserModel.ts | true | 200 | 484 | import { DatabaseUserInterface } from "@interfaces/UserInterface";
import { SchemaFactory } from "@models/SchemaFactory";
import mongoose from "mongoose";
const userModel = SchemaFactory<DatabaseUserInterface>({
username: {
type: String,
unique: true,
required: true,
minlength: 3,
},
password: {
... | 7 |
NAPkinI4BB/skufder_bot | eefb259 | src/commands/command.start.ts | TypeScript | www.github.com/NAPkinI4BB/skufder_bot/tree/main/src/commands/command.start.ts | https://raw.githubusercontent.com/NAPkinI4BB/skufder_bot/eefb259/src/commands/command.start.ts | NAPkinI4BB/skufder_bot eefb259 src/commands/command.start.ts | true | 200 | 1,730 | import { Command } from "./command.class";
import { Context, Markup, Telegraf } from "telegraf";
import { IBotContext } from "../context/context.interface";
import { dbSession } from "../app";
import { error } from "console";
export class CommandStart extends Command {
constructor(bot: Telegraf<IBotContext>){
... | 3 |
Vladeezyy/Appium-WDIO-HealthCare-Boilerplate | 4993ca4 | test/steps/checkIn.steps.ts | TypeScript | www.github.com/Vladeezyy/Appium-WDIO-HealthCare-Boilerplate/tree/main/test/steps/checkIn.steps.ts | https://raw.githubusercontent.com/Vladeezyy/Appium-WDIO-HealthCare-Boilerplate/4993ca4/test/steps/checkIn.steps.ts | Vladeezyy/Appium-WDIO-HealthCare-Boilerplate 4993ca4 test/steps/checkIn.steps.ts | true | 200 | 5,309 | import navigationBar from '@pages/components/navigation.bar';
import myShiftsPage from '@pages/checkIn/myShifts.page';
import shiftDetailsPage from '@pages/checkIn/shiftDetails.page';
import adbCommandsUtil from '@utils/adbCommands.util';
import dateTimeSettingsScreen from '../../systemScreens/android/dateTimeSettings.... | 2 |
dogukhanb/FullStack-TicketApp | f1d921e | src/app/api/tickets/[id]/route.ts | TypeScript | www.github.com/dogukhanb/FullStack-TicketApp/tree/main/src/app/api/tickets/[id]/route.ts | https://raw.githubusercontent.com/dogukhanb/FullStack-TicketApp/f1d921e/src/app/api/tickets/%5Bid%5D/route.ts | dogukhanb/FullStack-TicketApp f1d921e src/app/api/tickets/[id]/route.ts | true | 200 | 1,351 | import { NextResponse } from "next/server";
import Ticket from "../../(models)/Ticket";
type Params = {
params: {
id: string;
};
};
export async function DELETE(req: Request, { params }: Params) {
try {
await Ticket.findByIdAndDelete(params.id);
return NextResponse.json(
{
message: "B... | 1 |
krisuv/SpotUS | e25d38d | frontend/src/mocks/Annoucement.mocks.ts | TypeScript | www.github.com/krisuv/SpotUS/tree/main/frontend/src/mocks/Annoucement.mocks.ts | https://raw.githubusercontent.com/krisuv/SpotUS/e25d38d/frontend/src/mocks/Annoucement.mocks.ts | krisuv/SpotUS e25d38d frontend/src/mocks/Annoucement.mocks.ts | true | 200 | 1,015 | import { IAnnouncement } from '../components/Announcement/Announcement.types';
export const registerAd = `Nie przegap okazji do spędzenia ciekawego i zabawnego czasu oraz nawiązania nowych znajomości.
Nasza aplikacja Ci w tym pomoże. Tutaj znajdziesz ludzi, którzy Ci odpowiadają, możesz spędzić razem czas, spacerowa... | 5 |
OlyaBukina/phonebook-ts | 75b777c | src/redux/contacts/contacts-operations.ts | TypeScript | www.github.com/OlyaBukina/phonebook-ts/tree/main/src/redux/contacts/contacts-operations.ts | https://raw.githubusercontent.com/OlyaBukina/phonebook-ts/75b777c/src/redux/contacts/contacts-operations.ts | OlyaBukina/phonebook-ts 75b777c src/redux/contacts/contacts-operations.ts | true | 200 | 1,370 | import { createAsyncThunk } from "@reduxjs/toolkit";
import axios from "axios";
import { ContactType } from "../../types";
export const fetchAllContacts = createAsyncThunk(
"contacts/fetchAll",
async (_, thunkAPI) => {
try {
const contacts = await axios.get("/contacts");
return contacts.data;
}... | 6 |
hurley87/facebook-ads | ee8050c | app/api/test/route.ts | TypeScript | www.github.com/hurley87/facebook-ads/tree/main/app/api/test/route.ts | https://raw.githubusercontent.com/hurley87/facebook-ads/ee8050c/app/api/test/route.ts | hurley87/facebook-ads ee8050c app/api/test/route.ts | true | 200 | 1,163 | import { NextRequest, NextResponse } from 'next/server';
const adsSdk = require('facebook-nodejs-business-sdk');
const accessToken = 'EAALZB13QDQxIBO3GQeQEYupnIZAz9q5uqOa0Tuk2CNtnX7B0yh8JJJAzjjBZCWFtYoyMrL309Nli4ncZAEcZBReQDiQKRNbwTgHRyrnOV6bZCZCmoLhiMG82KJ5rdKjq9WejZCZChZAVehoMxfKybJCKWQNwBwQBL1gbkdjSNTP8KmDFJi7XG2ZB... | 3 |
liuxiaoxue22/swap_batch | 3bbea78 | src/common/interface.ts | TypeScript | www.github.com/liuxiaoxue22/swap_batch/tree/main/src/common/interface.ts | https://raw.githubusercontent.com/liuxiaoxue22/swap_batch/3bbea78/src/common/interface.ts | liuxiaoxue22/swap_batch 3bbea78 src/common/interface.ts | true | 200 | 754 | export interface env_type {
USER_ADDRESS: string,
PRIVATE_KEY: string,
HTTP_PROVIDER: string,
ROUTER_CONTRACT_ADDRESS: string,
TRANSFER_ETH_HELPER_ADDRESS: string,
TRANSFER_HELPER_ADDRESS: string,
DB: {
HOST: string,
USERNAME: string,
PASSWORD: string,
... | 1 |
olvvikitor/api_vendas | c4de45d | src/shared/cache/RedisCache.ts | TypeScript | www.github.com/olvvikitor/api_vendas/tree/main/src/shared/cache/RedisCache.ts | https://raw.githubusercontent.com/olvvikitor/api_vendas/c4de45d/src/shared/cache/RedisCache.ts | olvvikitor/api_vendas c4de45d src/shared/cache/RedisCache.ts | true | 200 | 681 | import Redis, {Redis as RedisClient} from 'ioredis';
import cacheConfig from '@config/cash'
class RedisCache{
private client: RedisClient;
constructor() {
this.client = new Redis(cacheConfig.config.redis);
}
public async save(key: string, value: any): Promise<void>{
await this.client.set(key, JSON.st... | 5 |
waynechoidev/video-player-with-ffmpeg | b95d538 | src/canvas-engine.ts | TypeScript | www.github.com/waynechoidev/video-player-with-ffmpeg/tree/main/src/canvas-engine.ts | https://raw.githubusercontent.com/waynechoidev/video-player-with-ffmpeg/b95d538/src/canvas-engine.ts | waynechoidev/video-player-with-ffmpeg b95d538 src/canvas-engine.ts | true | 200 | 5,963 | import { fragmentShader } from "./shader/fragment-shader";
import { vertexShader } from "./shader/vertex-shader";
export class CanvasEngine {
private _vertices: number[];
private _textureCoordinates: number[];
private _canvas: HTMLCanvasElement;
private _gl: WebGL2RenderingContext | null;
private _program?:... | 7 |
nguyenduyanh001/learnGit | 7dfc821 | script.ts | TypeScript | www.github.com/nguyenduyanh001/learnGit/tree/main/script.ts | https://raw.githubusercontent.com/nguyenduyanh001/learnGit/7dfc821/script.ts | nguyenduyanh001/learnGit 7dfc821 script.ts | true | 200 | 3,157 | import * as promptSync from 'prompt-sync';
const prompt = promptSync({sigint:true});
export class Data {
name: string
birthdate: string
adress : string
phone_number :string
id: string
constructor(name?: string, birthdate?: string, adress?: string, phone_number?:string, id?: string) {
if... | 2 |
devphaseX/micro_libraries | c303823 | src/core/sequence/errorMessage.ts | TypeScript | www.github.com/devphaseX/micro_libraries/tree/main/src/core/sequence/errorMessage.ts | https://raw.githubusercontent.com/devphaseX/micro_libraries/c303823/src/core/sequence/errorMessage.ts | devphaseX/micro_libraries c303823 src/core/sequence/errorMessage.ts | true | 200 | 515 | import { ControlTaskContext } from './types';
export const DELEGATE_CONTROL_ERROR =
'You can only delegate control within a function scope once';
export const MORE_FUNCTION_ERROR =
'Expected One or more sequencial fn, but got none';
export const TASK_IN_PENDING_DURING_RELEASE_ERROR =
'current Task cannot be in... | 6 |
ubeydullah55/knzGrupFront | 23f23aa | src/app/pages/admin/panel/panel.component.ts | TypeScript | www.github.com/ubeydullah55/knzGrupFront/tree/main/src/app/pages/admin/panel/panel.component.ts | https://raw.githubusercontent.com/ubeydullah55/knzGrupFront/23f23aa/src/app/pages/admin/panel/panel.component.ts | ubeydullah55/knzGrupFront 23f23aa src/app/pages/admin/panel/panel.component.ts | true | 200 | 2,652 | import { Component } from '@angular/core';
import { teklifModel } from '../../../models/teklifModel';
import { HttpClient } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { OnInit } from '@angular/core';
import { DataTable } from 'simple-datatables';
import { RouterModule } from '@a... | 1 |
bitauth/libauth | 60aec23 | src/lib/language/reduce.ts | TypeScript | www.github.com/bitauth/libauth/tree/main/src/lib/language/reduce.ts | https://raw.githubusercontent.com/bitauth/libauth/60aec23/src/lib/language/reduce.ts | bitauth/libauth 60aec23 src/lib/language/reduce.ts | true | 200 | 6,871 | import { flattenBinArray } from '../format/format.js';
import type {
AuthenticationProgramStateControlStack,
AuthenticationProgramStateError,
AuthenticationProgramStateStack,
AuthenticationVirtualMachine,
CompilationError,
Range,
ResolvedScript,
ScriptReductionTraceChildNode,
ScriptReductionTraceScrip... | 7 |
Fhareed/MERN-AI_ChatBot | 04b644a | backend/src/controllers/user-controllers.ts | TypeScript | www.github.com/Fhareed/MERN-AI_ChatBot/tree/main/backend/src/controllers/user-controllers.ts | https://raw.githubusercontent.com/Fhareed/MERN-AI_ChatBot/04b644a/backend/src/controllers/user-controllers.ts | Fhareed/MERN-AI_ChatBot 04b644a backend/src/controllers/user-controllers.ts | true | 200 | 3,901 | import { NextFunction, Request, Response } from "express";
import User from "../models/User.js";
import { hash, compare } from 'bcrypt';
import { createToken } from "../utils/token-manager.js";
import { COOKIE_NAME } from "../utils/constants.js";
export const getAllUsers = async (req:Request, res:Response, next:Next... | 6 |
vzane0904/v-naive-admin | eaf8d17 | src/layouts/default/tabs/src/utils/index.ts | TypeScript | www.github.com/vzane0904/v-naive-admin/tree/main/src/layouts/default/tabs/src/utils/index.ts | https://raw.githubusercontent.com/vzane0904/v-naive-admin/eaf8d17/src/layouts/default/tabs/src/utils/index.ts | vzane0904/v-naive-admin eaf8d17 src/layouts/default/tabs/src/utils/index.ts | true | 200 | 3,755 | import { routeStore } from '@/pinia/modules/routeStore'
import { TabsType } from '@/pinia/type/user'
import { router } from '@/router'
import { DropdownOption } from 'naive-ui'
import { computed, reactive } from 'vue'
import { renderIcon } from '../config'
import { TabsEmnu } from '@/config'
export default function use... | 2 |
ministryofjustice/hmpps-temporary-accommodation-ui | 4c2d0bf | server/form-pages/utils/templates/taskIndex.ts | TypeScript | www.github.com/ministryofjustice/hmpps-temporary-accommodation-ui/tree/main/server/form-pages/utils/templates/taskIndex.ts | https://raw.githubusercontent.com/ministryofjustice/hmpps-temporary-accommodation-ui/4c2d0bf/server/form-pages/utils/templates/taskIndex.ts | ministryofjustice/hmpps-temporary-accommodation-ui 4c2d0bf server/form-pages/utils/templates/taskIndex.ts | true | 200 | 375 | /* istanbul ignore file */
const taskIndexTemplate = (taskClassName: string, taskSlug: string, taskTitle: string) => `/* istanbul ignore file */
import { Task } from '../../../utils/decorators'
@Task({
name: '${taskTitle}',
actionText: '${taskTitle}',
slug: '${taskSlug}',
pages: [],
})
export default class $... | 3 |
KenwiKJ/Admin-Treasure-Hackathon | e9fd3c6 | src/app/app-routing.module.ts | TypeScript | www.github.com/KenwiKJ/Admin-Treasure-Hackathon/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/KenwiKJ/Admin-Treasure-Hackathon/e9fd3c6/src/app/app-routing.module.ts | KenwiKJ/Admin-Treasure-Hackathon e9fd3c6 src/app/app-routing.module.ts | true | 200 | 821 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HistoryComponent } from './history/history.component';
import { HomeComponent } from './home/home.component';
import { LeftoversComponent } from './leftovers/leftovers.component';
import { ProductComponent } from ... | 5 |
SamVanTassel/nature-of-code | e2da6ca | src/types.ts | TypeScript | www.github.com/SamVanTassel/nature-of-code/tree/main/src/types.ts | https://raw.githubusercontent.com/SamVanTassel/nature-of-code/e2da6ca/src/types.ts | SamVanTassel/nature-of-code e2da6ca src/types.ts | true | 200 | 1,255 | import type P5 from 'p5';
export interface State {
p5: P5
currentSketch: CurrentSketch
currentCollection: {
title?: CollectionTitle
sketches?: SketchHolder[]
}
about: boolean
infoModalOpen: boolean
}
export type SketchInfo = {
controls?: string
about?: string
title?: string
}
export interfa... | 6 |
bsn-eng/fren-delegation | e7cebb3 | src/hooks/useFlaggedWallet.ts | TypeScript | www.github.com/bsn-eng/fren-delegation/tree/main/src/hooks/useFlaggedWallet.ts | https://raw.githubusercontent.com/bsn-eng/fren-delegation/e7cebb3/src/hooks/useFlaggedWallet.ts | bsn-eng/fren-delegation e7cebb3 src/hooks/useFlaggedWallet.ts | true | 200 | 854 | import { useCallback, useEffect, useState } from 'react'
import { useAccount } from 'wagmi'
export function useFlaggedWallet() {
const [isFlagged, setIsFlagged] = useState(false)
const { data: account } = useAccount()
const fetchData = useCallback(async () => {
if (account?.address !== undefined) {
tr... | 2 |
Demiez/iot-configurator | e003539 | apps/transaction-service/src/modules/module.integration/grpc-options/orchestration.grpc-options.ts | TypeScript | www.github.com/Demiez/iot-configurator/tree/main/apps/transaction-service/src/modules/module.integration/grpc-options/orchestration.grpc-options.ts | https://raw.githubusercontent.com/Demiez/iot-configurator/e003539/apps/transaction-service/src/modules/module.integration/grpc-options/orchestration.grpc-options.ts | Demiez/iot-configurator e003539 apps/transaction-service/src/modules/module.integration/grpc-options/orchestration.grpc-options.ts | true | 200 | 962 | import { ClientOptions, Transport } from '@nestjs/microservices';
import { join } from 'path';
import process from 'process';
const protoPath = join(
__dirname,
'../../../../../../proto/orchestration.proto',
);
const { NODE_ENV, GRPC_PORT_IOT_ORCHESTRATOR, URL } = process.env;
export const orchestrationGrpcOption... | 7 |
GabrielMaschio/FRONTEND_RENTAL_APP | 9aa1869 | src/app/components/cars-components/car-list/car-list.component.ts | TypeScript | www.github.com/GabrielMaschio/FRONTEND_RENTAL_APP/tree/main/src/app/components/cars-components/car-list/car-list.component.ts | https://raw.githubusercontent.com/GabrielMaschio/FRONTEND_RENTAL_APP/9aa1869/src/app/components/cars-components/car-list/car-list.component.ts | GabrielMaschio/FRONTEND_RENTAL_APP 9aa1869 src/app/components/cars-components/car-list/car-list.component.ts | true | 200 | 1,218 | import { Component, inject, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, ActivatedRoute } from '@angular/router';
import { CarService } from '../service/car.service';
import { CarListResponse } from '../types/cars-response.type';
@Component({
selector: 'app-ca... | 3 |
boriayz77/frontend-springboot_2 | 813fe24 | src/app/dialog/edit-task-dialog/edit-task-dialog.component.ts | TypeScript | www.github.com/boriayz77/frontend-springboot_2/tree/main/src/app/dialog/edit-task-dialog/edit-task-dialog.component.ts | https://raw.githubusercontent.com/boriayz77/frontend-springboot_2/813fe24/src/app/dialog/edit-task-dialog/edit-task-dialog.component.ts | boriayz77/frontend-springboot_2 813fe24 src/app/dialog/edit-task-dialog/edit-task-dialog.component.ts | true | 200 | 5,576 | import {Component, Inject, OnInit} from '@angular/core';
import {Task} from '../../model/Task';
import {Priority} from '../../model/Priority';
import {Category} from '../../model/Category';
import {ConfirmDialogComponent} from '../confirm-dialog/confirm-dialog.component';
import {DeviceDetectorService} from 'ngx-device... | 1 |
sollandre/gym-now-solid | d612157 | src/http/controllers/users/profile.ts | TypeScript | www.github.com/sollandre/gym-now-solid/tree/main/src/http/controllers/users/profile.ts | https://raw.githubusercontent.com/sollandre/gym-now-solid/d612157/src/http/controllers/users/profile.ts | sollandre/gym-now-solid d612157 src/http/controllers/users/profile.ts | true | 200 | 524 | import { makeGetUserProfileUseCase } from "@/use-cases/factories/make-get-user-profile-use-case";
import type { FastifyReply, FastifyRequest } from "fastify";
import { verifyJwt } from "../middlewares/verify-jwt";
export async function profile(req: FastifyRequest, res: FastifyReply) {
const getUserProfile = makeGetU... | 2 |
0xkar4n/spotify-clone | fd9d68e | hooks/useLoadImage.ts | TypeScript | www.github.com/0xkar4n/spotify-clone/tree/main/hooks/useLoadImage.ts | https://raw.githubusercontent.com/0xkar4n/spotify-clone/fd9d68e/hooks/useLoadImage.ts | 0xkar4n/spotify-clone fd9d68e hooks/useLoadImage.ts | true | 200 | 368 | import { Song } from "@/types";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
const useLoadImage = (song: Song)=>{
const supabaseClient = useSupabaseClient();
if(!song){
return null;
}
const {data:imageData} = supabaseClient
.storage.from('images')
.getPublicUrl(song.image_path)
return image... | 7 |
charonzero/CrossChatBot | ff1ff19 | src/routes/messagingRoutes.ts | TypeScript | www.github.com/charonzero/CrossChatBot/tree/main/src/routes/messagingRoutes.ts | https://raw.githubusercontent.com/charonzero/CrossChatBot/ff1ff19/src/routes/messagingRoutes.ts | charonzero/CrossChatBot ff1ff19 src/routes/messagingRoutes.ts | true | 200 | 4,048 | // messagingRoutes.ts
import express from 'express';
import * as telegramService from '../services/telegramService';
import * as messengerService from '../services/messengerService';
import * as viberService from '../services/viberService';
import getActionFromBody from '../utils/getActionFromBody';
import { getSocket... | 6 |
bkper/bkper-inventory-bot | b34c564 | events/src/EventHandlerTransactionPosted.ts | TypeScript | www.github.com/bkper/bkper-inventory-bot/tree/main/events/src/EventHandlerTransactionPosted.ts | https://raw.githubusercontent.com/bkper/bkper-inventory-bot/b34c564/events/src/EventHandlerTransactionPosted.ts | bkper/bkper-inventory-bot b34c564 events/src/EventHandlerTransactionPosted.ts | true | 200 | 1,006 | import { Bkper } from "bkper-js";
import { Result } from "./index.js";
import { isInventoryBook, uncheckAndTrash } from "./BotService.js";
export class EventHandlerTransactionPosted {
async handleEvent(event: bkper.Event): Promise<Result> {
const eventBook = await Bkper.getBook(event.bookId!);
// prevent respon... | 5 |
marcipanis/middle.messenger.praktikum.yandex | 1441974 | src/components/modal/index.ts | TypeScript | www.github.com/marcipanis/middle.messenger.praktikum.yandex/tree/main/src/components/modal/index.ts | https://raw.githubusercontent.com/marcipanis/middle.messenger.praktikum.yandex/1441974/src/components/modal/index.ts | marcipanis/middle.messenger.praktikum.yandex 1441974 src/components/modal/index.ts | true | 200 | 632 | import Block from '../../utils/block';
import './modal.css';
type ModalProps = {
id: string;
}
export class Modal extends Block<ModalProps> {
static componentName = 'Modal';
constructor({ ...props }: ModalProps) {
super({ ...props });
}
render() {
// language=hbs
return `
<div>
... | 3 |
kami-tsuki/db-nav-clone-angular | a4d07f5 | src/app/main/timetable/stop-info/stop-info.component.spec.ts | TypeScript | www.github.com/kami-tsuki/db-nav-clone-angular/tree/main/src/app/main/timetable/stop-info/stop-info.component.spec.ts | https://raw.githubusercontent.com/kami-tsuki/db-nav-clone-angular/a4d07f5/src/app/main/timetable/stop-info/stop-info.component.spec.ts | kami-tsuki/db-nav-clone-angular a4d07f5 src/app/main/timetable/stop-info/stop-info.component.spec.ts | true | 200 | 611 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { StopInfoComponent } from './stop-info.component';
describe('StopInfoComponent', () => {
let component: StopInfoComponent;
let fixture: ComponentFixture<StopInfoComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... | 1 |
ndwzy/eagle-flow-flow-designer | 62b86c0 | src/types/prop-types.ts | TypeScript | www.github.com/ndwzy/eagle-flow-flow-designer/tree/main/src/types/prop-types.ts | https://raw.githubusercontent.com/ndwzy/eagle-flow-flow-designer/62b86c0/src/types/prop-types.ts | ndwzy/eagle-flow-flow-designer 62b86c0 src/types/prop-types.ts | true | 200 | 624 | /**
* @desc 组件Props参数类型定义
* @author MiyueFE <https://github.com/miyuesc>
* @since 2024/7/12 上午10:06
*/
import type { CSSProperties, Component } from 'vue'
import type { BaseNode, BaseNodeBO, BaseNodeType } from '@/types/node-models'
// 排版方向
export type FlowDirection = 'horizontal' | 'vertical'
// append 弹出菜单
exp... | 2 |
AndreTeixeirax8/crudbasico | 65415f0 | src/usuario/usuario.module.ts | TypeScript | www.github.com/AndreTeixeirax8/crudbasico/tree/main/src/usuario/usuario.module.ts | https://raw.githubusercontent.com/AndreTeixeirax8/crudbasico/65415f0/src/usuario/usuario.module.ts | AndreTeixeirax8/crudbasico 65415f0 src/usuario/usuario.module.ts | true | 200 | 494 | import { Module } from '@nestjs/common';
import { UsuarioService } from './usuario.service';
import { UsuarioController } from './controllers/usuario.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsuarioEntity } from './entities/usuario.entity';
import { RolEntity } from 'src/rol/rol.entity';
... | 7 |
codemon-dev/kimpbot | a4193b9 | interface/ITradeInfo.ts | TypeScript | www.github.com/codemon-dev/kimpbot/tree/main/interface/ITradeInfo.ts | https://raw.githubusercontent.com/codemon-dev/kimpbot/a4193b9/interface/ITradeInfo.ts | codemon-dev/kimpbot a4193b9 interface/ITradeInfo.ts | true | 200 | 4,089 | import { COIN_PAIR, COIN_SYMBOL, EXCHANGE } from "../constants/enum";
import { ExchangeAccountInfo } from "../db/schemas/ExchangeAccountInfo";
import { IAssetInfo } from "./IMarketInfo";
export enum ORDER_TYPE {
BUY,
SELL,
}
export enum JOB_TYPE {
KIMP_TRADE
}
export enum ENTER_PRIORITY {
QTY,
P... | 6 |
Kokapuk/lifedays-be | c76443b | src/birthdays/birthdays.service.ts | TypeScript | www.github.com/Kokapuk/lifedays-be/tree/main/src/birthdays/birthdays.service.ts | https://raw.githubusercontent.com/Kokapuk/lifedays-be/c76443b/src/birthdays/birthdays.service.ts | Kokapuk/lifedays-be c76443b src/birthdays/birthdays.service.ts | true | 200 | 1,455 | import { Inject, Injectable, NotFoundException, Scope } from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { CreateBirthdayDto } from './dto/create-birthday.dto';
import { UpdateBirthdayDto } from './dto/update-birthday... | 5 |
Ryuider-JS/sesac-server | d8c04a1 | client/src/utils/wrapPromise.ts | TypeScript | www.github.com/Ryuider-JS/sesac-server/tree/main/client/src/utils/wrapPromise.ts | https://raw.githubusercontent.com/Ryuider-JS/sesac-server/d8c04a1/client/src/utils/wrapPromise.ts | Ryuider-JS/sesac-server d8c04a1 client/src/utils/wrapPromise.ts | true | 200 | 464 | /** @format */
export function wrapPromise<T>(promise: Promise<T>) {
let status = 'pending';
let result: T;
const suspender = promise.then(
(res) => {
status = 'success';
result = res;
},
(err) => {
status = 'error';
result = err;
},
);
return {
read() {
if (status === 'pending') {
... | 3 |
Blade-Labs/blade-sdk.js | a5acff6 | src/models/CryptoFlow.ts | TypeScript | www.github.com/Blade-Labs/blade-sdk.js/tree/main/src/models/CryptoFlow.ts | https://raw.githubusercontent.com/Blade-Labs/blade-sdk.js/a5acff6/src/models/CryptoFlow.ts | Blade-Labs/blade-sdk.js a5acff6 src/models/CryptoFlow.ts | true | 200 | 3,968 | import BigNumber from "bignumber.js";
export enum ICryptoFlowNetworkType {
ETHEREUM = "Ethereum",
HEDERA = "Hedera",
}
export interface ICryptoFlowTransaction {
network: ICryptoFlowNetworkType; // string
calldata: string; // base64 - actual transaction
signature: string; // base64 - signature of t... | 1 |
HadalyVillasclaras/samsung-desarrolladoras-program | 3f58b9b | b3-01-typescript/main.ts | TypeScript | www.github.com/HadalyVillasclaras/samsung-desarrolladoras-program/tree/main/b3-01-typescript/main.ts | https://raw.githubusercontent.com/HadalyVillasclaras/samsung-desarrolladoras-program/3f58b9b/b3-01-typescript/main.ts | HadalyVillasclaras/samsung-desarrolladoras-program 3f58b9b b3-01-typescript/main.ts | true | 200 | 3,481 | import { Direccion } from "./Direccion";
import { Mail } from "./Mail";
import { Persona } from "./Persona";
import { Telefono } from "./Telefono";
// Direcciones
const direccion1 = new Direccion(
'Calle Sol',
1,
1,
'A',
20123,
'Torrox',
'Malaga'
);
const direccion2 = new Direccion(
'Calle Luna',
... | 2 |
vyshak-sukumaran/bashboard | c6619a8 | server/src/server.ts | TypeScript | www.github.com/vyshak-sukumaran/bashboard/tree/main/server/src/server.ts | https://raw.githubusercontent.com/vyshak-sukumaran/bashboard/c6619a8/server/src/server.ts | vyshak-sukumaran/bashboard c6619a8 server/src/server.ts | true | 200 | 666 | import "dotenv/config";
import http from "http";
import express from "express";
import cors from "cors";
import { Server } from "socket.io";
import { getCorsOptions } from "./configuration/cors-config";
import { initializeSocket } from "./socket";
const port = process.env.PORT || 8000;
const corsOptions = getCorsOptio... | 0 |
harshbisht007/Multi-Order-Project | 0f710d6 | src/app/core/services/graphql.service.ts | TypeScript | www.github.com/harshbisht007/Multi-Order-Project/tree/main/src/app/core/services/graphql.service.ts | https://raw.githubusercontent.com/harshbisht007/Multi-Order-Project/0f710d6/src/app/core/services/graphql.service.ts | harshbisht007/Multi-Order-Project 0f710d6 src/app/core/services/graphql.service.ts | true | 200 | 2,527 | import { Injectable } from '@angular/core';
import { GraphQLError } from 'graphql/index';
import { Apollo } from 'apollo-angular';
import { catchError, firstValueFrom, map } from 'rxjs';
import { ToastService } from './toast.service';
import { Router } from '@angular/router';
@Injectable({
providedIn: 'root',
})
exp... | 7 |
HIAGILE/server | cb59d67 | .history/src/data-source/DataSource_20221028192421.ts | TypeScript | www.github.com/HIAGILE/server/tree/main/.history/src/data-source/DataSource_20221028192421.ts | https://raw.githubusercontent.com/HIAGILE/server/cb59d67/.history/src/data-source/DataSource_20221028192421.ts | HIAGILE/server cb59d67 .history/src/data-source/DataSource_20221028192421.ts | true | 200 | 463 | import { DataSource } from 'typeorm';
import { User } from '../user/entities/user.entity';
import { Verification } from '../user/entities/verification.entity';
export const UberEatsTest = new DataSource({
type: 'postgres',
host: process.env.DB_HOST,
port: +process.env.DB_PORT,
username: process.env.DB_USERNAME... | 6 |
YourX3/isi-edition | 693d6ae | isi-edition-front/src/app/app.component.ts | TypeScript | www.github.com/YourX3/isi-edition/tree/main/isi-edition-front/src/app/app.component.ts | https://raw.githubusercontent.com/YourX3/isi-edition/693d6ae/isi-edition-front/src/app/app.component.ts | YourX3/isi-edition 693d6ae isi-edition-front/src/app/app.component.ts | true | 200 | 575 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NavComponent } from './components/nav/nav.component';
import { HttpClientModule } from '@angular/common/http';
import { ToasterComponent } from './components/toaster/toaster.component';
@Component({
selector: '... | 5 |
JoshJarabek7/anchoring | 5860ff9 | src/stores/ui-store.ts | TypeScript | www.github.com/JoshJarabek7/anchoring/tree/main/src/stores/ui-store.ts | https://raw.githubusercontent.com/JoshJarabek7/anchoring/5860ff9/src/stores/ui-store.ts | JoshJarabek7/anchoring 5860ff9 src/stores/ui-store.ts | true | 200 | 2,598 | import { create } from 'zustand';
type ViewType = 'deepDive' | 'knowledgeReef';
interface UIState {
sidebarOpen: boolean;
sidebarCollapsed: boolean;
taskQueueOpen: boolean;
settingsOpen: boolean;
taskDetailsOpen: boolean;
technologySelectorOpen: boolean;
activeSettingsTab: string;
activeTaskId: string... | 3 |
GenerationMilton/store-angular | c58e23c | src/app/domains/info/pages/about/about.component.ts | TypeScript | www.github.com/GenerationMilton/store-angular/tree/main/src/app/domains/info/pages/about/about.component.ts | https://raw.githubusercontent.com/GenerationMilton/store-angular/c58e23c/src/app/domains/info/pages/about/about.component.ts | GenerationMilton/store-angular c58e23c src/app/domains/info/pages/about/about.component.ts | true | 200 | 1,010 | import { CommonModule } from '@angular/common';
import { Component, signal } from '@angular/core';
import { HeaderComponent } from '@shared/components/header/header.component';
import { HighlightDirective } from '@shared/directives/highlight.directive';
import { CounterComponent } from '../../../shared/components/count... | 1 |
kiIIer/schedule-eu | a25467b | schedule/apps/main-spa/src/app/state/schedules/schedules.selectors.spec.ts | TypeScript | www.github.com/kiIIer/schedule-eu/tree/main/schedule/apps/main-spa/src/app/state/schedules/schedules.selectors.spec.ts | https://raw.githubusercontent.com/kiIIer/schedule-eu/a25467b/schedule/apps/main-spa/src/app/state/schedules/schedules.selectors.spec.ts | kiIIer/schedule-eu a25467b schedule/apps/main-spa/src/app/state/schedules/schedules.selectors.spec.ts | true | 200 | 1,897 | import { SchedulesEntity } from './schedules.models';
import {
schedulesAdapter,
SchedulesPartialState,
initialSchedulesState,
} from './schedules.reducer';
import * as SchedulesSelectors from './schedules.selectors';
describe('Schedules Selectors', () => {
const ERROR_MSG = 'No Error Available';
const getSc... | 2 |
rafaelmesneves/api-rest-water-gas | ff2a787 | src/services/ConfirmMeasurementService.ts | TypeScript | www.github.com/rafaelmesneves/api-rest-water-gas/tree/main/src/services/ConfirmMeasurementService.ts | https://raw.githubusercontent.com/rafaelmesneves/api-rest-water-gas/ff2a787/src/services/ConfirmMeasurementService.ts | rafaelmesneves/api-rest-water-gas ff2a787 src/services/ConfirmMeasurementService.ts | true | 200 | 1,174 | import { PrismaClient } from "@prisma/client"
const prisma = new PrismaClient()
interface ConfirmMeasurementProps {
measure_uuid: string
confirmed_value: number
}
class ConfirmMeasurementService {
async execute({ measure_uuid, confirmed_value }: ConfirmMeasurementProps) {
if (!measure_uuid || ... | 0 |
RicardoGomes80/teste-frontend-propz | 117cb2f | landing-page/Desenvolvimento/frontend/src/app/app.module.ts | TypeScript | www.github.com/RicardoGomes80/teste-frontend-propz/tree/main/landing-page/Desenvolvimento/frontend/src/app/app.module.ts | https://raw.githubusercontent.com/RicardoGomes80/teste-frontend-propz/117cb2f/landing-page/Desenvolvimento/frontend/src/app/app.module.ts | RicardoGomes80/teste-frontend-propz 117cb2f landing-page/Desenvolvimento/frontend/src/app/app.module.ts | true | 200 | 1,275 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CarouselModule } from 'ngx-owl-carousel-o';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } fro... | 7 |
debtil/POO-III | 060ce5b | Musicafy-master/src/app/app-routing.module.ts | TypeScript | www.github.com/debtil/POO-III/tree/main/Musicafy-master/src/app/app-routing.module.ts | https://raw.githubusercontent.com/debtil/POO-III/060ce5b/Musicafy-master/src/app/app-routing.module.ts | debtil/POO-III 060ce5b Musicafy-master/src/app/app-routing.module.ts | true | 200 | 1,026 | import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
redirectTo: '/inicio',
pathMatch: 'full'
},
{
path: 'home',
loadChildren: () => import('./pages/home/folder.module').then( m => m.FolderPag... | 4 |
boly1028/andr_indexer | 77cf872 | src/services/ADO.ts | TypeScript | www.github.com/boly1028/andr_indexer/tree/main/src/services/ADO.ts | https://raw.githubusercontent.com/boly1028/andr_indexer/77cf872/src/services/ADO.ts | boly1028/andr_indexer 77cf872 src/services/ADO.ts | true | 200 | 4,078 | import { adoModel, UpdateOwnershipModel } from "../db";
import { gql } from 'graphql-request';
import { graphQLClient } from "../client";
export const createADOBulkOperation = () =>
adoModel.collection.initializeOrderedBulkOp();
export const getADOByAddress = (address: string) => {
return adoModel.findOne({ addre... | 5 |
ngarnier1a/kanbas-react-web-app | 49c101d | src/Kanbas/Courses/Modules/client.ts | TypeScript | www.github.com/ngarnier1a/kanbas-react-web-app/tree/main/src/Kanbas/Courses/Modules/client.ts | https://raw.githubusercontent.com/ngarnier1a/kanbas-react-web-app/49c101d/src/Kanbas/Courses/Modules/client.ts | ngarnier1a/kanbas-react-web-app 49c101d src/Kanbas/Courses/Modules/client.ts | true | 200 | 850 | import axios from "axios";
const API_BASE = process.env.REACT_APP_API_BASE;
const COURSES_API = `${API_BASE}/api/courses`;
const MODULES_API = `${API_BASE}/api/modules`;
export const updateModule = async (module: any) => {
const response = await axios
.put(`${MODULES_API}/${module._id}`, module);
return r... | 6 |
mat-master/mat-master | 541ce0d | products/school-web/src/data/invites.ts | TypeScript | www.github.com/mat-master/mat-master/tree/main/products/school-web/src/data/invites.ts | https://raw.githubusercontent.com/mat-master/mat-master/541ce0d/products/school-web/src/data/invites.ts | mat-master/mat-master 541ce0d products/school-web/src/data/invites.ts | true | 200 | 445 | import type { SchoolInvitesPostBody } from '@common/types'
import axios from 'axios'
import getSchoolId from '../utils/get-school-id'
export const createInvite = async (data: SchoolInvitesPostBody) => {
const res = await axios.post(`/schools/${getSchoolId()}/invites`, data)
}
export const getInvite = async (id: stri... | 3 |
amalashraf04/exittest-frontend | 4d93f08 | src/app/app.module.ts | TypeScript | www.github.com/amalashraf04/exittest-frontend/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/amalashraf04/exittest-frontend/4d93f08/src/app/app.module.ts | amalashraf04/exittest-frontend 4d93f08 src/app/app.module.ts | true | 200 | 1,007 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
impor... | 0 |
Farahtharwat35/Nextflix | 86232f3 | ui/src/app/store.ts | TypeScript | www.github.com/Farahtharwat35/Nextflix/tree/main/ui/src/app/store.ts | https://raw.githubusercontent.com/Farahtharwat35/Nextflix/86232f3/ui/src/app/store.ts | Farahtharwat35/Nextflix 86232f3 ui/src/app/store.ts | true | 200 | 286 | import { configureStore } from '@reduxjs/toolkit'
import authSlice from './authSlice'
const store = configureStore({
reducer: {
auth: authSlice
},
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
export default store;
| 2 |
yamilzavala/design-patterns | 2f3e8c1 | structural/decorator/discounts-use-case/vip-customer.decorator.ts | TypeScript | www.github.com/yamilzavala/design-patterns/tree/main/structural/decorator/discounts-use-case/vip-customer.decorator.ts | https://raw.githubusercontent.com/yamilzavala/design-patterns/2f3e8c1/structural/decorator/discounts-use-case/vip-customer.decorator.ts | yamilzavala/design-patterns 2f3e8c1 structural/decorator/discounts-use-case/vip-customer.decorator.ts | true | 200 | 356 | import { IDiscount } from './discount.interface'
export class VipCustomerDecorator implements IDiscount {
constructor(private readonly decorator: IDiscount) {}
private readonly discountAmount = 0.02;
calculate(input: number): number {
input = (input * (1 - this.discountAmount))
return thi... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.