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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
voroshilathome/pizza_web | ca589a4 | shared/lib/get-pizza-details.ts | TypeScript | www.github.com/voroshilathome/pizza_web/tree/main/shared/lib/get-pizza-details.ts | https://raw.githubusercontent.com/voroshilathome/pizza_web/ca589a4/shared/lib/get-pizza-details.ts | voroshilathome/pizza_web ca589a4 shared/lib/get-pizza-details.ts | true | 200 | 581 | import { calcTotalPizzaPrice } from "./calc-total-pizza-price";
import { Ingredient, ProductItem } from "@prisma/client";
import { mapPizzaType, PizzaSize, PizzaType } from "../constants/pizza";
export const getPizzaDetails = (
type: PizzaType,
size: PizzaSize,
items: ProductItem[],
ingredients: Ingred... | 5 |
leMarsuy/showtec-webapp | a42ab92 | src/app/modules/portal/reports/reports-routing.module.ts | TypeScript | www.github.com/leMarsuy/showtec-webapp/tree/main/src/app/modules/portal/reports/reports-routing.module.ts | https://raw.githubusercontent.com/leMarsuy/showtec-webapp/a42ab92/src/app/modules/portal/reports/reports-routing.module.ts | leMarsuy/showtec-webapp a42ab92 src/app/modules/portal/reports/reports-routing.module.ts | true | 200 | 719 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ReportsComponent } from './reports.component';
const routes: Routes = [
{
path: '',
component: ReportsComponent,
children: [
{
path: '',
redirectTo: 'sales',
pathMatch:... | 7 |
piotkow/HR_ManagerUI | 758d010 | src/app/components/settings/settings.component.ts | TypeScript | www.github.com/piotkow/HR_ManagerUI/tree/main/src/app/components/settings/settings.component.ts | https://raw.githubusercontent.com/piotkow/HR_ManagerUI/758d010/src/app/components/settings/settings.component.ts | piotkow/HR_ManagerUI 758d010 src/app/components/settings/settings.component.ts | true | 200 | 540 | import { Component } from '@angular/core';
import { PositionListComponent } from "../position-list/position-list.component";
import { DepartmentListComponent } from "../department-list/department-list.component";
import { ConfirmDialogModule } from 'primeng/confirmdialog';
@Component({
selector: 'app-settings',
st... | 2 |
Tlacuano/PARCI | c6937f5 | servicios/src/modules/opiniones/use-cases/modificar-voto-opinion.interactor.ts | TypeScript | www.github.com/Tlacuano/PARCI/tree/main/servicios/src/modules/opiniones/use-cases/modificar-voto-opinion.interactor.ts | https://raw.githubusercontent.com/Tlacuano/PARCI/c6937f5/servicios/src/modules/opiniones/use-cases/modificar-voto-opinion.interactor.ts | Tlacuano/PARCI c6937f5 servicios/src/modules/opiniones/use-cases/modificar-voto-opinion.interactor.ts | true | 200 | 502 | import { UseCase } from "../../../kernel/contracts";
import { VotarOpinionDto } from "../adapters/dto/request-votar-opinion.dto";
import { OpinionesRepository } from "./ports/opiniones.Repository";
export class ModificarVotoOpinionInteractor implements UseCase<VotarOpinionDto,boolean>{
constructor (private opin... | 3 |
vietanh3010/smart-khay | 678bd3d | src/service-hook/useOcr.service.ts | TypeScript | www.github.com/vietanh3010/smart-khay/tree/main/src/service-hook/useOcr.service.ts | https://raw.githubusercontent.com/vietanh3010/smart-khay/678bd3d/src/service-hook/useOcr.service.ts | vietanh3010/smart-khay 678bd3d src/service-hook/useOcr.service.ts | true | 200 | 1,512 | import { OcrPayload } from "@/types/payload.type";
import useHttpClientService from "./useHttpClient.service";
import { OcrResponse } from "@/types/response.type";
import AppConfig from "@/configs/AppConfig";
import { useEffect } from "react";
type ResultOcrService = {
ocr: (payload: OcrPayload) => Promise<OcrResp... | 0 |
MohamedHamdy94/Angular-E-Commerce-Project | ebb9681 | src/app/Product/product-details/product-details.component.ts | TypeScript | www.github.com/MohamedHamdy94/Angular-E-Commerce-Project/tree/main/src/app/Product/product-details/product-details.component.ts | https://raw.githubusercontent.com/MohamedHamdy94/Angular-E-Commerce-Project/ebb9681/src/app/Product/product-details/product-details.component.ts | MohamedHamdy94/Angular-E-Commerce-Project ebb9681 src/app/Product/product-details/product-details.component.ts | true | 200 | 1,623 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { IProduct } from 'src/app/interfaces/iproduct';
import { ProductService } from 'src/app/services/product.service';
import { faStar } from '@fortawesome/free-solid-svg-icons';
import { faStarHalfStroke } from '@f... | 6 |
ilievn1/FSOproject | 47c5672 | server/utils/redis.ts | TypeScript | www.github.com/ilievn1/FSOproject/tree/main/server/utils/redis.ts | https://raw.githubusercontent.com/ilievn1/FSOproject/47c5672/server/utils/redis.ts | ilievn1/FSOproject 47c5672 server/utils/redis.ts | true | 200 | 459 | import { createClient } from 'redis';
const { REDIS_URL } = require('./config');
// redis[s]://[[username][:password]@][host][:port][/db-number]
const redisClient = createClient({
url: REDIS_URL
});
redisClient.on('error', function (err) {
console.error('Could not establish a connection with redis. ', err);
});
r... | 4 |
Khomariah/Pemrograman-Mobile | 0e526e1 | src/app/tab2/tab2.page.ts | TypeScript | www.github.com/Khomariah/Pemrograman-Mobile/tree/main/src/app/tab2/tab2.page.ts | https://raw.githubusercontent.com/Khomariah/Pemrograman-Mobile/0e526e1/src/app/tab2/tab2.page.ts | Khomariah/Pemrograman-Mobile 0e526e1 src/app/tab2/tab2.page.ts | true | 200 | 2,720 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ToastController } from '@ionic/angular';
import { PostProvider } from '../../providers/post-provider';
@Component({
selector: 'app-tab2',
templateUrl: 'tab2.page.html',
styleUrls: ['tab2.page.scss']
})
export class ... | 5 |
Swinkkel/CT30A3204_Week4 | 40dbd5b | server.ts | TypeScript | www.github.com/Swinkkel/CT30A3204_Week4/tree/main/server.ts | https://raw.githubusercontent.com/Swinkkel/CT30A3204_Week4/40dbd5b/server.ts | Swinkkel/CT30A3204_Week4 40dbd5b server.ts | true | 200 | 447 | import express, {Express} from "express"
import path from "path"
import router from "./src/index"
import morgan from "morgan"
const app: Express = express()
const port = 3000
app.use(express.json())
app.use(express.urlencoded({extended: false}))
app.use(morgan("dev"))
app.use(express.static(path.join(__d... | 1 |
Joao-Godoi/eventos-app | 1ff20ab | packages/core/src/event/utils/event/validateEvent.ts | TypeScript | www.github.com/Joao-Godoi/eventos-app/tree/main/packages/core/src/event/utils/event/validateEvent.ts | https://raw.githubusercontent.com/Joao-Godoi/eventos-app/1ff20ab/packages/core/src/event/utils/event/validateEvent.ts | Joao-Godoi/eventos-app 1ff20ab packages/core/src/event/utils/event/validateEvent.ts | true | 200 | 1,076 | import IEvent from "../../models/IEvent";
export default function validateEvent(event: Partial<IEvent>): string[] {
const errors: string[] = [];
const requiredFields: [keyof IEvent, string][] = [
["alias", "Alias is required"],
["name", "Name is required"],
["location", "Location is required"],
["... | 7 |
muratfirtina/ErpaKabloClient | 4b3627e | src/app/services/common/models/search.service.ts | TypeScript | www.github.com/muratfirtina/ErpaKabloClient/tree/main/src/app/services/common/models/search.service.ts | https://raw.githubusercontent.com/muratfirtina/ErpaKabloClient/4b3627e/src/app/services/common/models/search.service.ts | muratfirtina/ErpaKabloClient 4b3627e src/app/services/common/models/search.service.ts | true | 200 | 988 | import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { GetListResponse } from 'src/app/contracts/getListResponse';
import { HttpClientService } from '../http-client.service';
import { SearchRequest, SearchResult } from 'src/app/contracts/search/searchModel';
import { FilterOption } from... | 3 |
ijbs-dev/coworking_softex | d01796f | src/app/routes/encomenda.routes.ts | TypeScript | www.github.com/ijbs-dev/coworking_softex/tree/main/src/app/routes/encomenda.routes.ts | https://raw.githubusercontent.com/ijbs-dev/coworking_softex/d01796f/src/app/routes/encomenda.routes.ts | ijbs-dev/coworking_softex d01796f src/app/routes/encomenda.routes.ts | true | 200 | 2,093 | import { Router } from "express";
import { EncomendaRepository } from "../repositories/EncomendaRepository";
import { EncomendaController } from "../controllers/EncomendaController";
const encomendaRoutes = Router();
const encomendaRepository = new EncomendaRepository();
const encomendaController = new EncomendaContro... | 2 |
Anikroy7/rwr | e473d10 | src/app/modules/product/product.route.ts | TypeScript | www.github.com/Anikroy7/rwr/tree/main/src/app/modules/product/product.route.ts | https://raw.githubusercontent.com/Anikroy7/rwr/e473d10/src/app/modules/product/product.route.ts | Anikroy7/rwr e473d10 src/app/modules/product/product.route.ts | true | 200 | 1,509 | import express, { NextFunction, Request, Response } from "express";
import { ProductControllers } from "./product.controller";
import validateRequest from "../../middlewares/validateRequest";
import {
createProductValidationSchema,
updateProductValidationSchema,
} from "./product.validation";
import { uploader } f... | 0 |
joseederangojr/refactoring-guru | 9f94760 | src/factory-method.spec.ts | TypeScript | www.github.com/joseederangojr/refactoring-guru/tree/main/src/factory-method.spec.ts | https://raw.githubusercontent.com/joseederangojr/refactoring-guru/9f94760/src/factory-method.spec.ts | joseederangojr/refactoring-guru 9f94760 src/factory-method.spec.ts | true | 200 | 1,456 | import { describe, beforeEach, it, expect } from "bun:test";
import {
AWSVirtualMachine,
AzureVirtualMachine,
GoogleVirtualMachine,
VirtualMachineNotSupportedException,
} from "~/main";
import { VirtualMachineManager } from "~/factory-method";
describe("VirtualMachineManager", () => {
let manager: VirtualMac... | 6 |
bespalovdmitry/homeworkignat | bd2a4e9 | src/p2-homeworks/h10/bll/store.ts | TypeScript | www.github.com/bespalovdmitry/homeworkignat/tree/main/src/p2-homeworks/h10/bll/store.ts | https://raw.githubusercontent.com/bespalovdmitry/homeworkignat/bd2a4e9/src/p2-homeworks/h10/bll/store.ts | bespalovdmitry/homeworkignat bd2a4e9 src/p2-homeworks/h10/bll/store.ts | true | 200 | 432 | import {loadingReducer} from './loadingReducer'
import {combineReducers, legacy_createStore as createStore} from 'redux'
import {themeReducer} from '../../h12/bll/themeReducer';
const reducers = combineReducers({
loading: loadingReducer,
theme: themeReducer
})
const store = createStore(reducers)
export defau... | 4 |
dungphamrk/Nextjs-Project | d48a231 | client/src/app/store/store.ts | TypeScript | www.github.com/dungphamrk/Nextjs-Project/tree/main/client/src/app/store/store.ts | https://raw.githubusercontent.com/dungphamrk/Nextjs-Project/d48a231/client/src/app/store/store.ts | dungphamrk/Nextjs-Project d48a231 client/src/app/store/store.ts | true | 200 | 607 | import { configureStore } from "@reduxjs/toolkit";
import postsReducer from "./reducers/postsSlice";
import userReducer from "./reducers/userSlice";
import CommentsParentReducer from "./reducers/CommentsParentReducer";
import CommentsChildReducer from "./reducers/CommentsChildReducer";
const store: any = configureStor... | 5 |
JulienGonzalez72/doctolib-notifier | bd98907 | src/notifier.ts | TypeScript | www.github.com/JulienGonzalez72/doctolib-notifier/tree/main/src/notifier.ts | https://raw.githubusercontent.com/JulienGonzalez72/doctolib-notifier/bd98907/src/notifier.ts | JulienGonzalez72/doctolib-notifier bd98907 src/notifier.ts | true | 200 | 334 | import twilio from 'twilio'
const accountSid = process.env.TWILIO_USER
const authToken = process.env.TWILIO_PASSWORD
const client = twilio(accountSid, authToken)
export function notify(content: string) {
return client.messages.create({
body: content,
from: 'whatsapp:+14155238886',
to: 'whatsapp:+3366233... | 1 |
kirklimbu/dentalAngularClient | 09f3d1b | src/app/core/guards/auth/authentication.service.ts | TypeScript | www.github.com/kirklimbu/dentalAngularClient/tree/main/src/app/core/guards/auth/authentication.service.ts | https://raw.githubusercontent.com/kirklimbu/dentalAngularClient/09f3d1b/src/app/core/guards/auth/authentication.service.ts | kirklimbu/dentalAngularClient 09f3d1b src/app/core/guards/auth/authentication.service.ts | true | 200 | 700 | import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { Router } from "@angular/router";
import { JwtHelperService } from "@auth0/angular-jwt";
import { BehaviorSubject } from "rxjs";
@Injectable({
providedIn: "root",
})
export class AuthenticationService {
private l... | 7 |
mrwd2009/mono-server | b921336 | packages/simple-service/src/config/dispatch.ts | TypeScript | www.github.com/mrwd2009/mono-server/tree/main/packages/simple-service/src/config/dispatch.ts | https://raw.githubusercontent.com/mrwd2009/mono-server/b921336/packages/simple-service/src/config/dispatch.ts | mrwd2009/mono-server b921336 packages/simple-service/src/config/dispatch.ts | true | 200 | 1,449 | import Koa from 'koa';
import Router from '@koa/router';
import fs from 'fs';
import _ from 'lodash';
import path from 'path';
import { passport } from './middleware';
import { getPublicRouters, getRouters } from './router';
// load each module router automatically.
// because we don't want to change this file during ... | 0 |
wpbest/Angular-SEO-MDBootstrap-Reference | 5bb1153 | src/app/app.module.ts | TypeScript | www.github.com/wpbest/Angular-SEO-MDBootstrap-Reference/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/wpbest/Angular-SEO-MDBootstrap-Reference/5bb1153/src/app/app.module.ts | wpbest/Angular-SEO-MDBootstrap-Reference 5bb1153 src/app/app.module.ts | true | 200 | 1,032 | import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { AgmCoreMo... | 4 |
javiermartins/ordo | b3874a5 | src/environments/environment.development.ts | TypeScript | www.github.com/javiermartins/ordo/tree/main/src/environments/environment.development.ts | https://raw.githubusercontent.com/javiermartins/ordo/b3874a5/src/environments/environment.development.ts | javiermartins/ordo b3874a5 src/environments/environment.development.ts | true | 200 | 534 | export const environment = {
firebaseConfig: {
apiKey: "AIzaSyByFPLxQnVmoBiBaXVe6SOQQV8tvQaYkrE",
authDomain: "ordo-81b0a.firebaseapp.com",
projectId: "ordo-81b0a",
storageBucket: "ordo-81b0a.firebasestorage.app",
messagingSenderId: "37109983559",
appId: "1:3710998355... | 5 |
Shimaa-Mahmoud-Abdelazeem/AdvancedR1-UserForm-Task16 | 398b3b3 | src/app/userservice.service.ts | TypeScript | www.github.com/Shimaa-Mahmoud-Abdelazeem/AdvancedR1-UserForm-Task16/tree/main/src/app/userservice.service.ts | https://raw.githubusercontent.com/Shimaa-Mahmoud-Abdelazeem/AdvancedR1-UserForm-Task16/398b3b3/src/app/userservice.service.ts | Shimaa-Mahmoud-Abdelazeem/AdvancedR1-UserForm-Task16 398b3b3 src/app/userservice.service.ts | true | 200 | 1,397 | import { Injectable } from '@angular/core';
import { User } from './user';
@Injectable({
providedIn: 'root'
})
export class UserserviceService {
constructor() { }
// get all users
getallusers():User[]{
return this.users;
}
// get specific by id users
getuserbyid(id:number):User |undefined{
retur... | 7 |
quangND1998/event-log | d39e04b | src/helpers/helpers.module.ts | TypeScript | www.github.com/quangND1998/event-log/tree/main/src/helpers/helpers.module.ts | https://raw.githubusercontent.com/quangND1998/event-log/d39e04b/src/helpers/helpers.module.ts | quangND1998/event-log d39e04b src/helpers/helpers.module.ts | true | 200 | 609 | import { Module } from '@nestjs/common';
import { HelpersService } from './helpers.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CacheModule } from '@nestjs/cache-manager';
import { PixelSettingEntity } from '../pixels/pixel-setting.entity';
@Module({
imports: [
TypeOrmModule.forFeat... | 7 |
kadirbal/homm-q-backend | 1f458b8 | src/controllers/auth/register.ts | TypeScript | www.github.com/kadirbal/homm-q-backend/tree/main/src/controllers/auth/register.ts | https://raw.githubusercontent.com/kadirbal/homm-q-backend/1f458b8/src/controllers/auth/register.ts | kadirbal/homm-q-backend 1f458b8 src/controllers/auth/register.ts | true | 200 | 678 | import { prisma } from "@/utils/prisma";
import { Response, Request } from "express";
import jwt from "jsonwebtoken";
async function register(
req: Request<
{},
{},
{ name: string; surname: string; email: string; password: string }
>,
res: Response
) {
const JWT_SECRET_KEY = process.env.JWT_SECRET_... | 4 |
Flavio-Leliz/nest-clean | ddf110d | src/domain/forum/application/use-cases/fetch-recent-questions.u.spec.ts | TypeScript | www.github.com/Flavio-Leliz/nest-clean/tree/main/src/domain/forum/application/use-cases/fetch-recent-questions.u.spec.ts | https://raw.githubusercontent.com/Flavio-Leliz/nest-clean/ddf110d/src/domain/forum/application/use-cases/fetch-recent-questions.u.spec.ts | Flavio-Leliz/nest-clean ddf110d src/domain/forum/application/use-cases/fetch-recent-questions.u.spec.ts | true | 200 | 2,443 | import { InMemoryQuestionsRepository } from 'tests/repositories/in-memory-questions-repository'
import { makeQuestion } from 'tests/factories/make-question'
import { FetchRecentQuestionsUseCase } from './fetch-recent-questions'
import { InMemoryQuestionAttachmentsRepository } from 'tests/repositories/in-memory-question... | 5 |
jm88ci/frontendAppHelpingHand | b4c7559 | src/app/mensajes/components/mensaje/mensaje.component.ts | TypeScript | www.github.com/jm88ci/frontendAppHelpingHand/tree/main/src/app/mensajes/components/mensaje/mensaje.component.ts | https://raw.githubusercontent.com/jm88ci/frontendAppHelpingHand/b4c7559/src/app/mensajes/components/mensaje/mensaje.component.ts | jm88ci/frontendAppHelpingHand b4c7559 src/app/mensajes/components/mensaje/mensaje.component.ts | true | 200 | 3,029 | import {Component, OnInit} from '@angular/core';
import {MensajeService} from "../../services/mensaje.service";
import {HttpErrorResponse} from "@angular/common/http";
import {Usuario} from "../../../auth/models/usuario.model";
import {Mensaje} from "../../models/mensaje.model";
import {AuthService} from "../../../auth... | 0 |
YaichMelek/Angular-Materials-Starter-Template | 88db234 | src/app/pages/dashboard/dashboard.component.ts | TypeScript | www.github.com/YaichMelek/Angular-Materials-Starter-Template/tree/main/src/app/pages/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/YaichMelek/Angular-Materials-Starter-Template/88db234/src/app/pages/dashboard/dashboard.component.ts | YaichMelek/Angular-Materials-Starter-Template 88db234 src/app/pages/dashboard/dashboard.component.ts | true | 200 | 678 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit {
public barChartOptions = {
scaleShowVerticalLines: false,
responsive: t... | 0 |
filefoxper/airma | cd88b6b | packages/@airma/react-effect/src/index.ts | TypeScript | www.github.com/filefoxper/airma/tree/main/packages/@airma/react-effect/src/index.ts | https://raw.githubusercontent.com/filefoxper/airma/cd88b6b/packages/%40airma/react-effect/src/index.ts | filefoxper/airma cd88b6b packages/@airma/react-effect/src/index.ts | true | 200 | 32,233 | import {
createElement,
FunctionComponent,
lazy,
ReactNode,
useEffect,
useLayoutEffect,
useMemo,
useRef
} from 'react';
import {
Provider as ModelProvider,
provide as provideKeys,
ModelLike,
Signal,
useSignal
} from '@airma/react-state';
import {
useMount,
usePersistFn,
useUnmount,
use... | 7 |
Vodafone/aim-mocking | f36c610 | packages/logger/src/interfaces/output/writefile/baseHtmlBody.ts | TypeScript | www.github.com/Vodafone/aim-mocking/tree/main/packages/logger/src/interfaces/output/writefile/baseHtmlBody.ts | https://raw.githubusercontent.com/Vodafone/aim-mocking/f36c610/packages/logger/src/interfaces/output/writefile/baseHtmlBody.ts | Vodafone/aim-mocking f36c610 packages/logger/src/interfaces/output/writefile/baseHtmlBody.ts | true | 200 | 514 | export default `
<html>
<head>
<style>
* {
font-family: 'Inconsolata', monospace;
}
body {
background: #1d1d1d;
}
.row {
color: #4a4a4a;
margin: 0px 10px;
display: flex;
align-items: center;
}
.icons-container {
}
.material-icons {
font-size: 14px !important;
}
</style>
<link href="https://fon... | 4 |
idir3-0/payment-backend | 083b2a9 | src/middleware/isAccountSetup.ts | TypeScript | www.github.com/idir3-0/payment-backend/tree/main/src/middleware/isAccountSetup.ts | https://raw.githubusercontent.com/idir3-0/payment-backend/083b2a9/src/middleware/isAccountSetup.ts | idir3-0/payment-backend 083b2a9 src/middleware/isAccountSetup.ts | true | 200 | 347 | import { Request, Response } from 'express';
export const isAccountSetupMiddelware = async (
req: Request,
res: Response,
next,
) => {
try {
if (req.user.role && req.user.acv) {
throw 'The account was already setup';
}
return next();
} catch (error) {
return res.status(401).json({ statu... | 5 |
DanteManriqueOrellano/corporacionaquaperu | 68c79fe | src/app/app-routing.module.ts | TypeScript | www.github.com/DanteManriqueOrellano/corporacionaquaperu/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/DanteManriqueOrellano/corporacionaquaperu/68c79fe/src/app/app-routing.module.ts | DanteManriqueOrellano/corporacionaquaperu 68c79fe src/app/app-routing.module.ts | true | 200 | 375 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FileUploadComponent } from './upload/file-upload/file-upload.component';
const routes: Routes = [
//{path:'',component:FileUploadComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
export... | 0 |
rstudio/shinyuieditor | 9832f41 | inst/editor/src/state/middleware/listenForDeleteMiddleware.ts | TypeScript | www.github.com/rstudio/shinyuieditor/tree/main/inst/editor/src/state/middleware/listenForDeleteMiddleware.ts | https://raw.githubusercontent.com/rstudio/shinyuieditor/9832f41/inst/editor/src/state/middleware/listenForDeleteMiddleware.ts | rstudio/shinyuieditor 9832f41 inst/editor/src/state/middleware/listenForDeleteMiddleware.ts | true | 200 | 1,614 | import { createListenerMiddleware } from "@reduxjs/toolkit";
import { getNewSelectionPathAfterDeletion } from "../../ui-node-definitions/TreeManipulation/getNewSelectionPathAfterDeletion";
import { DELETE_NODE } from "../app_info";
import { SET_SELECTION } from "../selectedPath";
import type { RootState } from "../sto... | 0 |
marianoforge/astro-blogV2 | 94e0304 | src/utils.ts | TypeScript | www.github.com/marianoforge/astro-blogV2/tree/main/src/utils.ts | https://raw.githubusercontent.com/marianoforge/astro-blogV2/94e0304/src/utils.ts | marianoforge/astro-blogV2 94e0304 src/utils.ts | true | 200 | 779 | import { getCollection, type CollectionEntry } from "astro:content";
//Format Date To String
export function formatDate(date: Date): string {
const options: Intl.DateTimeFormatOptions = {
year: "numeric",
month: "long",
day: "numeric",
};
return new Date(date).toLocaleDateString(undefined, options);
... | 5 |
JacobNewton007/rise-assessment | b2891fc | src/posts/services/post.service.ts | TypeScript | www.github.com/JacobNewton007/rise-assessment/tree/main/src/posts/services/post.service.ts | https://raw.githubusercontent.com/JacobNewton007/rise-assessment/b2891fc/src/posts/services/post.service.ts | JacobNewton007/rise-assessment b2891fc src/posts/services/post.service.ts | true | 200 | 1,297 | import { CommentEntity, PostEntity } from '../entities/post.entity';
import {
CreateCommentArgs,
CreatePostArgs,
PostRepository,
PostResultResponse,
} from '../repositories/post.interface';
import postRepository from '../repositories/post.repositories';
export interface PostService {
createPost(post: CreateP... | 7 |
ronaudo9/vue-Composition | 3f7ac7f | src/router/index.ts | TypeScript | www.github.com/ronaudo9/vue-Composition/tree/main/src/router/index.ts | https://raw.githubusercontent.com/ronaudo9/vue-Composition/3f7ac7f/src/router/index.ts | ronaudo9/vue-Composition 3f7ac7f src/router/index.ts | true | 200 | 2,106 | import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import IndexView from "../views/IndexView.vue";
import GlobalHeader from "../components/GlobalHeader.vue";
import ItemDetail from "../views/ItemDetail.vue";
import signView from "../views/SignView.vue";
import sho... | 4 |
Dev-Jhoncel/project-supervision | 2829ecd | frontend/src/utils/TaskFunc/EditTask.ts | TypeScript | www.github.com/Dev-Jhoncel/project-supervision/tree/main/frontend/src/utils/TaskFunc/EditTask.ts | https://raw.githubusercontent.com/Dev-Jhoncel/project-supervision/2829ecd/frontend/src/utils/TaskFunc/EditTask.ts | Dev-Jhoncel/project-supervision 2829ecd frontend/src/utils/TaskFunc/EditTask.ts | true | 200 | 690 | import { TaskDetails } from "@/interfaces/ITaskDetails";
import { TASK_URL } from "@/constants/config";
import axios from "axios";
export const editProject = (params: TaskDetails) => {
const instance = axios.create({
baseURL: TASK_URL,
headers: {
"Content-Type": "application/json",
},
});
cons... | 0 |
madmaw/plainGL | a0d5de1 | src/base/descriptor/types.ts | TypeScript | www.github.com/madmaw/plainGL/tree/main/src/base/descriptor/types.ts | https://raw.githubusercontent.com/madmaw/plainGL/a0d5de1/src/base/descriptor/types.ts | madmaw/plainGL a0d5de1 src/base/descriptor/types.ts | true | 200 | 388 | // eslint-disable-next-line @typescript-eslint/no-explicit-any
export type TypeDescriptor<StateType = any, MutableType = any> = {
aState: StateType,
aMutable: MutableType,
// aDelta: DeltaType, ?
create(s: StateType): MutableType,
snapshot(m: MutableType): StateType,
freeze(s: StateType): StateType,
};... | 5 |
abbasmaster/threatmind | c2c2bb3 | opencti-platform/opencti-graphql/src/modules/playbook/playbook-domain.ts | TypeScript | www.github.com/abbasmaster/threatmind/tree/main/opencti-platform/opencti-graphql/src/modules/playbook/playbook-domain.ts | https://raw.githubusercontent.com/abbasmaster/threatmind/c2c2bb3/opencti-platform/opencti-graphql/src/modules/playbook/playbook-domain.ts | abbasmaster/threatmind c2c2bb3 opencti-platform/opencti-graphql/src/modules/playbook/playbook-domain.ts | true | 200 | 20,034 | /*
Copyright (c) 2021-2024 Filigran SAS
This file is part of the OpenCTI Enterprise Edition ("EE") and is
licensed under the OpenCTI Enterprise Edition License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://github.com/OpenCTI-Platform/... | 7 |
anilhyd/https-github.com-reddogts-MEDRION | f60867d | MEDRION/ClientApp/src-working/app/ist/ist-application-ext/ist-request-product/ist-request-product-return-or-retrieve-modal/ist-request-product-return-or-retrieve-modal.component.ts | TypeScript | www.github.com/anilhyd/https-github.com-reddogts-MEDRION/tree/main/MEDRION/ClientApp/src-working/app/ist/ist-application-ext/ist-request-product/ist-request-product-return-or-retrieve-modal/ist-request-product-return-or-retrieve-modal.component.ts | https://raw.githubusercontent.com/anilhyd/https-github.com-reddogts-MEDRION/f60867d/MEDRION/ClientApp/src-working/app/ist/ist-application-ext/ist-request-product/ist-request-product-return-or-retrieve-modal/ist-request-product-return-or-retrieve-modal.component.ts | anilhyd/https-github.com-reddogts-MEDRION f60867d MEDRION/ClientApp/src-working/app/ist/ist-application-ext/ist-request-product/ist-request-product-return-or-retrieve-modal/ist-request-product-return-or-retrieve-modal.component.ts | true | 200 | 2,149 | import { Component, OnInit } from '@angular/core';
import { IstCriteriaService } from 'src/app/services/ist/ist-criteria.service';
import { FormGroup, FormControl } from '@angular/forms';
import { IstSummaryService } from 'src/app/services/ist/ist-summary.service';
import { MDBModalRef, IMyOptions } from 'ng-uikit-pro-... | 0 |
abiriadev/namuwiki-related-articles | aa5ea2e | utils/plugins/copy-content-style.ts | TypeScript | www.github.com/abiriadev/namuwiki-related-articles/tree/main/utils/plugins/copy-content-style.ts | https://raw.githubusercontent.com/abiriadev/namuwiki-related-articles/aa5ea2e/utils/plugins/copy-content-style.ts | abiriadev/namuwiki-related-articles aa5ea2e utils/plugins/copy-content-style.ts | true | 200 | 581 | import * as fs from 'fs'
import * as path from 'path'
import colorLog from '../log'
import { PluginOption } from 'vite'
const { resolve } = path
const root = resolve(__dirname, '..', '..')
const contentStyle = resolve(
root,
'src',
'pages',
'content',
'style.css',
)
const outDir = resolve(__dirname, '..', '..', ... | 5 |
romanslonov/wishub.app | 14595a3 | app/routes/sitemap[.]xml.ts | TypeScript | www.github.com/romanslonov/wishub.app/tree/main/app/routes/sitemap[.]xml.ts | https://raw.githubusercontent.com/romanslonov/wishub.app/14595a3/app/routes/sitemap%5B.%5Dxml.ts | romanslonov/wishub.app 14595a3 app/routes/sitemap[.]xml.ts | true | 200 | 661 | import { type LoaderFunctionArgs } from "@remix-run/node";
import { xml } from "remix-utils/responses";
export function loader({ request }: LoaderFunctionArgs) {
const origin = new URL(request.url).origin;
const urls = [
{ loc: `${origin}/` },
{ loc: `${origin}/privacy-policy` },
{ loc: `${origin}/ter... | 7 |
jaredvu/dydxjs | 329b942 | packages/dydxjs/src/slinky/alerts/v1/tx.rpc.msg.ts | TypeScript | www.github.com/jaredvu/dydxjs/tree/main/packages/dydxjs/src/slinky/alerts/v1/tx.rpc.msg.ts | https://raw.githubusercontent.com/jaredvu/dydxjs/329b942/packages/dydxjs/src/slinky/alerts/v1/tx.rpc.msg.ts | jaredvu/dydxjs 329b942 packages/dydxjs/src/slinky/alerts/v1/tx.rpc.msg.ts | true | 200 | 2,457 | //@ts-nocheck
import { Rpc } from "../../../helpers";
import { BinaryReader } from "../../../binary";
import { MsgAlert, MsgAlertResponse, MsgConclusion, MsgConclusionResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
/** Msg is the message service for the x/alerts module. */
export interface Msg {
/**... | 4 |
Karma1905/Health_application | 94bf0a8 | lib/actions/patient.actions.ts | TypeScript | www.github.com/Karma1905/Health_application/tree/main/lib/actions/patient.actions.ts | https://raw.githubusercontent.com/Karma1905/Health_application/94bf0a8/lib/actions/patient.actions.ts | Karma1905/Health_application 94bf0a8 lib/actions/patient.actions.ts | true | 200 | 513 | import { ID, Query } from "node-appwrite"
import { users } from "../appwrite.config"
export const createUser = async (user: CreateUserParams) => {
try {
const newUser = await users.create(
ID.unique(),
user.email,
user.phone,
undefined,
user.name
)
} catch (error: any) {... | 0 |
Anindya0509/AppPrac | 2fb52de | src/app/Service/badge-count.service.ts | TypeScript | www.github.com/Anindya0509/AppPrac/tree/main/src/app/Service/badge-count.service.ts | https://raw.githubusercontent.com/Anindya0509/AppPrac/2fb52de/src/app/Service/badge-count.service.ts | Anindya0509/AppPrac 2fb52de src/app/Service/badge-count.service.ts | true | 200 | 602 | import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class BadgeCountService {
wishlistBadgeCount= new BehaviorSubject<number>(0);
cartBadgeCount= new BehaviorSubject<number>(0);
setWishlistBadgeCount(value:number){
this.wishlistBa... | 5 |
confiape/loan-ui-pwa | 3d1cef2 | src/app/components/loan/create-loan/create-loan.component.ts | TypeScript | www.github.com/confiape/loan-ui-pwa/tree/main/src/app/components/loan/create-loan/create-loan.component.ts | https://raw.githubusercontent.com/confiape/loan-ui-pwa/3d1cef2/src/app/components/loan/create-loan/create-loan.component.ts | confiape/loan-ui-pwa 3d1cef2 src/app/components/loan/create-loan/create-loan.component.ts | true | 200 | 1,649 | import {Component, input, OnInit} from '@angular/core';
import {ReactiveFormsModule, Validators} from '@angular/forms';
import {Field} from '../../../core/lib/dinamic-form/dynamic-form-body/field.model';
import {DynamicFormComponent} from '../../../core/lib/dinamic-form/dynamic-form/dynamic-form.component';
@Component... | 7 |
tuanha203/viettradeCV | 2595afd | viettrade-homepage-api-main/src/app/mapper/user.ts | TypeScript | www.github.com/tuanha203/viettradeCV/tree/main/viettrade-homepage-api-main/src/app/mapper/user.ts | https://raw.githubusercontent.com/tuanha203/viettradeCV/2595afd/viettrade-homepage-api-main/src/app/mapper/user.ts | tuanha203/viettradeCV 2595afd viettrade-homepage-api-main/src/app/mapper/user.ts | true | 200 | 906 | import { Request } from 'express';
import { types } from '../../common';
import { pick, pickForSearch } from '../utils';
export const createFormData = (req: Request) => {
return pick(<types.user.CreateParams>req.body, [
'role',
'email',
'name',
'password',
'status',
'phone'
]);
};
export ... | 4 |
Fatma-Muhammed/Ecommerce | 0fcd53e | src/app/buy.pipe.ts | TypeScript | www.github.com/Fatma-Muhammed/Ecommerce/tree/main/src/app/buy.pipe.ts | https://raw.githubusercontent.com/Fatma-Muhammed/Ecommerce/0fcd53e/src/app/buy.pipe.ts | Fatma-Muhammed/Ecommerce 0fcd53e src/app/buy.pipe.ts | true | 200 | 336 | import { Pipe, PipeTransform } from '@angular/core';
import { product } from './shared/interfaces/product';
@Pipe({
name: 'search'
})
export class BuyPipe implements PipeTransform {
transform(products: product[], term: string): product[] {
return products.filter((product)=>product.title.toLowerCase().includes... | 3 |
bashirchou/ProjectSoftw | 4ec3a6a | Collaborative Paint Application/client/src/app/components/attributs/attributs.component.ts | TypeScript | www.github.com/bashirchou/ProjectSoftw/tree/main/Collaborative Paint Application/client/src/app/components/attributs/attributs.component.ts | https://raw.githubusercontent.com/bashirchou/ProjectSoftw/4ec3a6a/Collaborative%20Paint%20Application/client/src/app/components/attributs/attributs.component.ts | bashirchou/ProjectSoftw 4ec3a6a Collaborative Paint Application/client/src/app/components/attributs/attributs.component.ts | true | 200 | 404 | import { Component, Input } from '@angular/core';
import { ToolType } from 'src/app/Classes/enums/tool-type';
@Component({
selector: 'app-attributs',
templateUrl: './attributs.component.html',
styleUrls: ['./attributs.component.scss']
})
export class AttributsComponent {
@Input() selectedToolType: ToolType;
... | 2 |
Andrewsy1004/MoviesMovil | c1c1d17 | src/infrastructure/interfaces/movie-db.responses.ts | TypeScript | www.github.com/Andrewsy1004/MoviesMovil/tree/main/src/infrastructure/interfaces/movie-db.responses.ts | https://raw.githubusercontent.com/Andrewsy1004/MoviesMovil/c1c1d17/src/infrastructure/interfaces/movie-db.responses.ts | Andrewsy1004/MoviesMovil c1c1d17 src/infrastructure/interfaces/movie-db.responses.ts | true | 200 | 3,064 | export interface NowPlayingResponse {
dates: Dates;
page: number;
results: Result[];
total_pages: number;
total_results: number;
}
export interface MovieDBMoviesResponse {
page: number;
results: Result[];
total_pages: number;
... | 5 |
Bonboncy99/C0422G1_NguyenTranThaoNhien_Module5 | 82acde7 | ss7_service_router/exercise/src/app/product/product-routing.module.ts | TypeScript | www.github.com/Bonboncy99/C0422G1_NguyenTranThaoNhien_Module5/tree/main/ss7_service_router/exercise/src/app/product/product-routing.module.ts | https://raw.githubusercontent.com/Bonboncy99/C0422G1_NguyenTranThaoNhien_Module5/82acde7/ss7_service_router/exercise/src/app/product/product-routing.module.ts | Bonboncy99/C0422G1_NguyenTranThaoNhien_Module5 82acde7 ss7_service_router/exercise/src/app/product/product-routing.module.ts | true | 200 | 837 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {ProductListComponent} from "./product-list/product-list.component";
import {ProductCreateComponent} from "./product-create/product-create.component";
import {UpdateProductComponent} from "./update-product/update-pr... | 7 |
ethandaya/supergraph | 5bf0297 | packages/heaps-generators/tests/model.test.ts | TypeScript | www.github.com/ethandaya/supergraph/tree/main/packages/heaps-generators/tests/model.test.ts | https://raw.githubusercontent.com/ethandaya/supergraph/5bf0297/packages/heaps-generators/tests/model.test.ts | ethandaya/supergraph 5bf0297 packages/heaps-generators/tests/model.test.ts | true | 200 | 1,276 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { ModelGenerator } from "../src";
vi.mock("fs", () => ({
writeFileSync: vi.fn(),
readFileSync: vi.fn(
() => `
enum MyEnum {
A
B
}
type DelegationEvent @entity {
id: ID!
name: String!
myEnum... | 0 |
PhgX/CaseStudy-MD2-C0422I1 | 78934ae | dist/login/login/login.d.ts | TypeScript | www.github.com/PhgX/CaseStudy-MD2-C0422I1/tree/main/dist/login/login/login.d.ts | https://raw.githubusercontent.com/PhgX/CaseStudy-MD2-C0422I1/78934ae/dist/login/login/login.d.ts | PhgX/CaseStudy-MD2-C0422I1 78934ae dist/login/login/login.d.ts | true | 200 | 426 | import { User } from '../model/user';
export declare class LoginMenu {
private userManagement;
private static currentLoginAccount;
inputUser(): User;
inputEmail(): string;
inputConfirmPassword(password: string): void;
inputUsername(): string;
inputPassword(regexForPassword: RegExp): string;
... | 6 |
Marmyte/cactbot | 6d9e95a | ui/raidboss/data/03-hw/dungeon/sohm_al_hard.ts | TypeScript | www.github.com/Marmyte/cactbot/tree/main/ui/raidboss/data/03-hw/dungeon/sohm_al_hard.ts | https://raw.githubusercontent.com/Marmyte/cactbot/6d9e95a/ui/raidboss/data/03-hw/dungeon/sohm_al_hard.ts | Marmyte/cactbot 6d9e95a ui/raidboss/data/03-hw/dungeon/sohm_al_hard.ts | true | 200 | 10,599 | import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet... | 4 |
talwinderchawla/mortgagecalculator | 1fd8cb3 | gcmortgagecalculator/src/app/app-routing.module.ts | TypeScript | www.github.com/talwinderchawla/mortgagecalculator/tree/main/gcmortgagecalculator/src/app/app-routing.module.ts | https://raw.githubusercontent.com/talwinderchawla/mortgagecalculator/1fd8cb3/gcmortgagecalculator/src/app/app-routing.module.ts | talwinderchawla/mortgagecalculator 1fd8cb3 gcmortgagecalculator/src/app/app-routing.module.ts | true | 200 | 510 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MortgageCalculatorComponent } from './components/mortgage-calculator/mortgage-calculator.component';
const routes: Routes = [
{
path: "",
pathMatch: "full",
redirectTo: "mortgagecalc"
},
{
p... | 3 |
jothika245f5f/School-Web-Application | 0eed579 | src/app/regiter/regiter.module.ts | TypeScript | www.github.com/jothika245f5f/School-Web-Application/tree/main/src/app/regiter/regiter.module.ts | https://raw.githubusercontent.com/jothika245f5f/School-Web-Application/0eed579/src/app/regiter/regiter.module.ts | jothika245f5f/School-Web-Application 0eed579 src/app/regiter/regiter.module.ts | true | 200 | 470 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RegiterRoutingModule } from './regiter-routing.module';
import { SigninComponent } from './signin/signin.component';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';
@NgModule({
declarations: [
Si... | 1 |
khaled-al-hamwie/school-managment-system | 7586be8 | src/modules/attendances/dto/create-attendance.dto.ts | TypeScript | www.github.com/khaled-al-hamwie/school-managment-system/tree/main/src/modules/attendances/dto/create-attendance.dto.ts | https://raw.githubusercontent.com/khaled-al-hamwie/school-managment-system/7586be8/src/modules/attendances/dto/create-attendance.dto.ts | khaled-al-hamwie/school-managment-system 7586be8 src/modules/attendances/dto/create-attendance.dto.ts | true | 200 | 350 | import { IsOptional } from "class-validator";
import NameValidator from "src/core/common/validators/name.validator";
import NumberValidator from "src/core/common/validators/number.validator";
export class CreateAttendanceDto {
@NumberValidator(1, 2343)
student_id: number;
@IsOptional()
@NameValidator(... | 0 |
mahmoodabdulmoniem/Workly-Server | 74b10d1 | Workly backend/src/server.ts | TypeScript | www.github.com/mahmoodabdulmoniem/Workly-Server/tree/main/Workly backend/src/server.ts | https://raw.githubusercontent.com/mahmoodabdulmoniem/Workly-Server/74b10d1/Workly%20backend/src/server.ts | mahmoodabdulmoniem/Workly-Server 74b10d1 Workly backend/src/server.ts | true | 200 | 438 | import express from 'express';
import cors from 'cors';
import { config } from 'dotenv';
import authRoutes from './routes/auth';
import taskRoutes from './routes/tasks';
config();
const app = express();
app.use(cors());
app.use(express.json());
app.use('/api/auth', authRoutes);
app.use('/api/tasks', taskRoutes);
c... | 6 |
SergeyGetman/listers | d5bc7f2 | src/shared/functions/removeItemFromKanbanColumn.ts | TypeScript | www.github.com/SergeyGetman/listers/tree/main/src/shared/functions/removeItemFromKanbanColumn.ts | https://raw.githubusercontent.com/SergeyGetman/listers/d5bc7f2/src/shared/functions/removeItemFromKanbanColumn.ts | SergeyGetman/listers d5bc7f2 src/shared/functions/removeItemFromKanbanColumn.ts | true | 200 | 628 | import { TaskItemModel } from '../models/tasks/taskItem.model';
import { GetRoadmapKanbanDataResponseModel } from '../models/roadmap/getRoadmapKanbanDataResponse.model';
export const removeItemFromKanbanColumn = (kanbanData: GetRoadmapKanbanDataResponseModel, id: number) => {
let newKanbanData = kanbanData;
const ... | 2 |
Alvaroleal17/Project-Angular | 674f5fa | frontend/src/app/components/admin/admin.component.ts | TypeScript | www.github.com/Alvaroleal17/Project-Angular/tree/main/frontend/src/app/components/admin/admin.component.ts | https://raw.githubusercontent.com/Alvaroleal17/Project-Angular/674f5fa/frontend/src/app/components/admin/admin.component.ts | Alvaroleal17/Project-Angular 674f5fa frontend/src/app/components/admin/admin.component.ts | true | 200 | 1,766 | import { Component, OnInit } from '@angular/core';
import { GestionService } from 'src/app/services/gestion.service';
import { Validators } from '@angular/forms';
import { Router } from '@angular/router'
import { FormBuilder } from '@angular/forms';
@Component({
selector: 'app-admin',
templateUrl: './admin.compon... | 7 |
ARCADEGC/UnitechPWA | 32ad106 | db/migrationScript.ts | TypeScript | www.github.com/ARCADEGC/UnitechPWA/tree/main/db/migrationScript.ts | https://raw.githubusercontent.com/ARCADEGC/UnitechPWA/32ad106/db/migrationScript.ts | ARCADEGC/UnitechPWA 32ad106 db/migrationScript.ts | true | 200 | 255 | import config from "@/drizzle.config";
import { migrate } from "drizzle-orm/vercel-postgres/migrator";
import { db } from "./migrate";
async function main() {
await migrate(db, { migrationsFolder: config.out! });
// await sql.end();
}
main();
| 4 |
design-sparx/scribble-vault | f7369a2 | src/hooks/usePaginatePages.ts | TypeScript | www.github.com/design-sparx/scribble-vault/tree/main/src/hooks/usePaginatePages.ts | https://raw.githubusercontent.com/design-sparx/scribble-vault/f7369a2/src/hooks/usePaginatePages.ts | design-sparx/scribble-vault f7369a2 src/hooks/usePaginatePages.ts | true | 200 | 1,051 | import useSWRInfinite from 'swr/infinite';
import { BASEURL } from '@/constants';
import { fetcher } from '@/utils';
import { IPage } from '@/types';
export const usePaginatePages = (
limit?: number,
filters?: { workspace_id: string }
) => {
const url = BASEURL + '/pages';
const PAGE_LIMIT = limit || 5;
if ... | 3 |
Hugo-Pratas/uptube | 3183a61 | src/app/pages/favourites/favourites.component.ts | TypeScript | www.github.com/Hugo-Pratas/uptube/tree/main/src/app/pages/favourites/favourites.component.ts | https://raw.githubusercontent.com/Hugo-Pratas/uptube/3183a61/src/app/pages/favourites/favourites.component.ts | Hugo-Pratas/uptube 3183a61 src/app/pages/favourites/favourites.component.ts | true | 200 | 701 | import {Component, OnInit} from '@angular/core';
import {UpTubeServiceService} from "../../services/up-tube-service.service";
import {Video} from "../../model/video";
@Component({
selector: 'app-favourites',
templateUrl: './favourites.component.html',
styleUrls: ['./favourites.component.scss']
})
export class Fa... | 5 |
emiliano-cocom/MyFirstApp | 1086350 | src/app/services/posts.service.ts | TypeScript | www.github.com/emiliano-cocom/MyFirstApp/tree/main/src/app/services/posts.service.ts | https://raw.githubusercontent.com/emiliano-cocom/MyFirstApp/1086350/src/app/services/posts.service.ts | emiliano-cocom/MyFirstApp 1086350 src/app/services/posts.service.ts | true | 200 | 1,117 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class PostsService {
baseUrl: string;
constructor(private httpClient: HttpClient) {
this.baseUrl = 'https://jsonplaceholder.typicode.com/posts';
}
getA... | 1 |
mangrovedao/mangrove-webapp-v2 | 5083529 | app/earn/(shared)/_service/vault-apr.ts | TypeScript | www.github.com/mangrovedao/mangrove-webapp-v2/tree/main/app/earn/(shared)/_service/vault-apr.ts | https://raw.githubusercontent.com/mangrovedao/mangrove-webapp-v2/5083529/app/earn/%28shared%29/_service/vault-apr.ts | mangrovedao/mangrove-webapp-v2 5083529 app/earn/(shared)/_service/vault-apr.ts | true | 200 | 6,394 | import {
formatUnits,
isAddressEqual,
parseAbi,
type Address,
type PublicClient,
} from "viem"
import { arbitrum, baseSepolia } from "viem/chains"
import { getTokenByAddress } from "@/utils/tokens"
import { arbitrumMarkets, baseSepoliaMarkets } from "@mangrovedao/mgv/addresses"
import { VaultLPProgram } from... | 0 |
caiquebslima/ontop-dashboard | f225c47 | src/app/components/table/table.component.ts | TypeScript | www.github.com/caiquebslima/ontop-dashboard/tree/main/src/app/components/table/table.component.ts | https://raw.githubusercontent.com/caiquebslima/ontop-dashboard/f225c47/src/app/components/table/table.component.ts | caiquebslima/ontop-dashboard f225c47 src/app/components/table/table.component.ts | true | 200 | 783 | import { MatTableDataSource } from '@angular/material/table'
import { OnInit, Component, Input } from '@angular/core'
import { MatDialog } from '@angular/material/dialog'
import { DialogClientOptionsComponent } from '../dialog-client-options/dialog-client-options.component'
@Component({
selector: 'app-table',
... | 6 |
mannyAddisu/gotGames | 09185c7 | src/hooks/useGenres.ts | TypeScript | www.github.com/mannyAddisu/gotGames/tree/main/src/hooks/useGenres.ts | https://raw.githubusercontent.com/mannyAddisu/gotGames/09185c7/src/hooks/useGenres.ts | mannyAddisu/gotGames 09185c7 src/hooks/useGenres.ts | true | 200 | 345 | import { useQuery } from "@tanstack/react-query";
import genres from "../data/genres";
import genreService from "../services/genreService";
import ms from "ms";
const useGenres = () =>
useQuery({
queryKey: ["genres"],
queryFn: genreService.get,
staleTime: ms("24h"), //24h
initialData: genres,
});
e... | 2 |
TriLuong/reactjs-template | 7edb687 | src/utils/auth.ts | TypeScript | www.github.com/TriLuong/reactjs-template/tree/main/src/utils/auth.ts | https://raw.githubusercontent.com/TriLuong/reactjs-template/7edb687/src/utils/auth.ts | TriLuong/reactjs-template 7edb687 src/utils/auth.ts | true | 200 | 765 | import { REFRESH_TOKEN_KEY, TOKEN_KEY } from "@/common/constants/auth";
export const getToken = () => {
return typeof window !== "undefined"
? localStorage.getItem(TOKEN_KEY) ?? undefined
: undefined;
};
export const setToken = (token?: string) => {
return localStorage.setItem(TOKEN_KEY, token ?? "");
};
... | 4 |
dev-amirmufid/nestjs-rabbitmq-mongodb | b822f57 | apps/auth/src/services/auth.service.ts | TypeScript | www.github.com/dev-amirmufid/nestjs-rabbitmq-mongodb/tree/main/apps/auth/src/services/auth.service.ts | https://raw.githubusercontent.com/dev-amirmufid/nestjs-rabbitmq-mongodb/b822f57/apps/auth/src/services/auth.service.ts | dev-amirmufid/nestjs-rabbitmq-mongodb b822f57 apps/auth/src/services/auth.service.ts | true | 200 | 1,558 | import { Injectable, UnauthorizedException } from '@nestjs/common';
import { AuthEntity } from '@auth/entities';
import { InjectRepository } from '@nestjs/typeorm';
import { MongoRepository } from 'typeorm';
import { LoginDto, RegisterDto } from '@auth/dtos';
import { JwtService } from '@nestjs/jwt';
import * as bcrypt... | 3 |
GraniusZ/NovaBlessing | 353b012 | src/queries/createPost.ts | TypeScript | www.github.com/GraniusZ/NovaBlessing/tree/main/src/queries/createPost.ts | https://raw.githubusercontent.com/GraniusZ/NovaBlessing/353b012/src/queries/createPost.ts | GraniusZ/NovaBlessing 353b012 src/queries/createPost.ts | true | 200 | 625 | import { createClientComponentClient } from "@supabase/auth-helpers-nextjs";
import { User } from "@/app/types/User";
import { AddPostForm } from "@/app/types/AddPostForm";
import { Post } from "@/app/types/Post";
export const createPost = async (user:User | null, formData:AddPostForm) => {
const supabase = createCli... | 7 |
vaibhavsinghal87/ng-module-federation | 494b01c | projects/ng-remote2/src/app/child-1/child-1-routing.module.ts | TypeScript | www.github.com/vaibhavsinghal87/ng-module-federation/tree/main/projects/ng-remote2/src/app/child-1/child-1-routing.module.ts | https://raw.githubusercontent.com/vaibhavsinghal87/ng-module-federation/494b01c/projects/ng-remote2/src/app/child-1/child-1-routing.module.ts | vaibhavsinghal87/ng-module-federation 494b01c projects/ng-remote2/src/app/child-1/child-1-routing.module.ts | true | 200 | 361 | import { RouterModule, Routes } from '@angular/router';
import { Child1Component } from './child-1.component';
import { NgModule } from '@angular/core';
const routes: Routes = [
{
path: '',
component: Child1Component,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]... | 5 |
trulio2/todo-list | a78383e | todo-back/src/main.ts | TypeScript | www.github.com/trulio2/todo-list/tree/main/todo-back/src/main.ts | https://raw.githubusercontent.com/trulio2/todo-list/a78383e/todo-back/src/main.ts | trulio2/todo-list a78383e todo-back/src/main.ts | true | 200 | 608 | import { Logger, ValidationPipe } from '@nestjs/common'
import { ConfigService } from '@nestjs/config'
import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
async function bootstrap() {
const logger = new Logger()
const app = await NestFactory.create(AppModule)
const configService ... | 1 |
gurushida/80x25 | 4f3687c | src/triggers.ts | TypeScript | www.github.com/gurushida/80x25/tree/main/src/triggers.ts | https://raw.githubusercontent.com/gurushida/80x25/4f3687c/src/triggers.ts | gurushida/80x25 4f3687c src/triggers.ts | true | 200 | 1,564 | /**
* This enum identifies milestones that can be reached during the game,
* like for instance learning about a new location that will
* appear on the map or obtaining an object that unlocks new possibilities.
*/
const triggers = [
'DOG_0',
'DOG_1',
'HAS_TEQUILA',
'KNOW_ABOUT_TEQUILA',
'BANK_VIS... | 6 |
neqsy/flashcards-angular | b030a40 | src/app/flashcard-search/flashcard-search.component.ts | TypeScript | www.github.com/neqsy/flashcards-angular/tree/main/src/app/flashcard-search/flashcard-search.component.ts | https://raw.githubusercontent.com/neqsy/flashcards-angular/b030a40/src/app/flashcard-search/flashcard-search.component.ts | neqsy/flashcards-angular b030a40 src/app/flashcard-search/flashcard-search.component.ts | true | 200 | 1,172 | import { Component, OnInit } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import {
debounceTime, distinctUntilChanged, switchMap
} from 'rxjs/operators';
import { Flashcard } from '../flashcard';
import { FlashcardService } from '../flashcard.service';
@Component({
selector: 'app-flashcard-se... | 3 |
senderman72/webshop | 862bfae | client/src/services/orderItemsService/deleteOrderItem.ts | TypeScript | www.github.com/senderman72/webshop/tree/main/client/src/services/orderItemsService/deleteOrderItem.ts | https://raw.githubusercontent.com/senderman72/webshop/862bfae/client/src/services/orderItemsService/deleteOrderItem.ts | senderman72/webshop 862bfae client/src/services/orderItemsService/deleteOrderItem.ts | true | 200 | 315 | import { remove } from "../serviceBase";
export const deleteOrderItems = async (id: number) => {
const success = await remove(`http://localhost:3000/order-items/${id}`);
if (success) {
console.log("produkten har tagits bort!");
} else {
console.log("Misslyckades med att ta bort produkten");
}
};
| 2 |
luismda/integracao_api_mercado_pago | db8638b | server/src/routes/payment.ts | TypeScript | www.github.com/luismda/integracao_api_mercado_pago/tree/main/server/src/routes/payment.ts | https://raw.githubusercontent.com/luismda/integracao_api_mercado_pago/db8638b/server/src/routes/payment.ts | luismda/integracao_api_mercado_pago db8638b server/src/routes/payment.ts | true | 200 | 1,646 | import { FastifyInstance } from 'fastify'
import { z } from 'zod'
import { mercadoPago } from '../lib/mercadopago'
import { CreatePaymentPayload } from 'mercadopago/models/payment/create-payload.model'
export async function paymentRoutes(fastify: FastifyInstance) {
fastify.post('/payments', async (request, reply) ... | 7 |
ksgolu/notion-backend-assignment | 9c4e950 | src/routes/taksRoute.ts | TypeScript | www.github.com/ksgolu/notion-backend-assignment/tree/main/src/routes/taksRoute.ts | https://raw.githubusercontent.com/ksgolu/notion-backend-assignment/9c4e950/src/routes/taksRoute.ts | ksgolu/notion-backend-assignment 9c4e950 src/routes/taksRoute.ts | true | 200 | 382 | import express, { Router } from "express";
import controller from "../controller";
const router: Router = express.Router();
router.post("/", controller.createTask);
router.get("/", controller.listTask);
router.get("/:taskId", controller.getTaskById);
router.put("/:taskId", controller.updateTaskById);
router.delete("/... | 5 |
pushpa-raj-dangi/ng_dotnet_user | 72af16a | client/src/app/app.routes.ts | TypeScript | www.github.com/pushpa-raj-dangi/ng_dotnet_user/tree/main/client/src/app/app.routes.ts | https://raw.githubusercontent.com/pushpa-raj-dangi/ng_dotnet_user/72af16a/client/src/app/app.routes.ts | pushpa-raj-dangi/ng_dotnet_user 72af16a client/src/app/app.routes.ts | true | 200 | 536 | import { Routes } from '@angular/router';
import { loginGuard } from './guards/login.guard';
import { authGuard } from './guards/auth.guard';
export const routes: Routes = [
{
path: 'auth',
loadChildren: () => import('./auth/auth.module').then((m) => m.AuthModule),
canActivate: [loginGuard],
},
{
... | 0 |
cykret99/GanttChart | f6fae33 | vite/src/js/util/DateUtils.ts | TypeScript | www.github.com/cykret99/GanttChart/tree/main/vite/src/js/util/DateUtils.ts | https://raw.githubusercontent.com/cykret99/GanttChart/f6fae33/vite/src/js/util/DateUtils.ts | cykret99/GanttChart f6fae33 vite/src/js/util/DateUtils.ts | true | 200 | 4,086 | // @ts-check
import dayjs, { Dayjs } from "dayjs";
import StringUtils from "./StringUtils";
import DrowTaskBar from "../canvas/drowObject/DrowTaskBar";
import Utils from "./Utils";
export namespace DateUtils {
/**
* 日付同士の差を日付で返却する。
* 時間は考慮しないものとする。
*
* @param fromDate 計算日付FROM
... | 4 |
learnrxjs/rxjsconf | 3395edf | src/lib/model.directive.ts | TypeScript | www.github.com/learnrxjs/rxjsconf/tree/main/src/lib/model.directive.ts | https://raw.githubusercontent.com/learnrxjs/rxjsconf/3395edf/src/lib/model.directive.ts | learnrxjs/rxjsconf 3395edf src/lib/model.directive.ts | true | 200 | 934 | import { createRenderEffect, Signal } from "solid-js"
declare module "solid-js" {
namespace JSX {
interface Directives {
model: any
}
}
}
function isInput(target: HTMLElement): target is HTMLInputElement {
return target.tagName === "INPUT"
}
function isSelect(target: HTMLElement): target is HTMLS... | 1 |
kooked-ch/portal | 922298c | src/app/api/auth/factor/skip/route.ts | TypeScript | www.github.com/kooked-ch/portal/tree/main/src/app/api/auth/factor/skip/route.ts | https://raw.githubusercontent.com/kooked-ch/portal/922298c/src/app/api/auth/factor/skip/route.ts | kooked-ch/portal 922298c src/app/api/auth/factor/skip/route.ts | true | 200 | 983 | import { skipTwoFactor } from '@/lib/factor';
import { encode, getToken } from 'next-auth/jwt';
import { NextRequest, NextResponse } from 'next/server';
export async function POST(req: NextRequest) {
const skip = await skipTwoFactor();
if (!skip) {
return NextResponse.json({ message: 'Failed to skip two factor.' ... | 6 |
HardenSG/Win11InVueRefactor | 2650085 | packages/core/src/views/Home/renderQueue.ts | TypeScript | www.github.com/HardenSG/Win11InVueRefactor/tree/main/packages/core/src/views/Home/renderQueue.ts | https://raw.githubusercontent.com/HardenSG/Win11InVueRefactor/2650085/packages/core/src/views/Home/renderQueue.ts | HardenSG/Win11InVueRefactor 2650085 packages/core/src/views/Home/renderQueue.ts | true | 200 | 444 | import { h, toRaw } from 'vue'
import { HOCPluginComponent } from '@utils/index'
import styles from './index.module.scss'
import type { CustomComponentInter } from 'utils'
export default (props: CustomComponentInter[]) => {
props = toRaw(props)
const renderQueue = (): any[] => {
return props.map((c) => {
... | 3 |
jstnklnr/sfvim-vscode | f4e3f6b | src/commands/paste/pasteBehind.command.ts | TypeScript | www.github.com/jstnklnr/sfvim-vscode/tree/main/src/commands/paste/pasteBehind.command.ts | https://raw.githubusercontent.com/jstnklnr/sfvim-vscode/f4e3f6b/src/commands/paste/pasteBehind.command.ts | jstnklnr/sfvim-vscode f4e3f6b src/commands/paste/pasteBehind.command.ts | true | 200 | 640 | import { SFVimCommand } from "../../types/SFVimCommand";
import { SFVimMode, SFVimEditor } from "../../types/SFVimEditor";
import { getRightPosition, paste } from "../../utilities/selection.util";
export class CommandPasteBehind extends SFVimCommand {
constructor() {
super("paste.behind", "Paste the conten... | 2 |
CynthiaGichuki/AngularForms | 789b1c2 | src/app/template_driven/template_driven.component.ts | TypeScript | www.github.com/CynthiaGichuki/AngularForms/tree/main/src/app/template_driven/template_driven.component.ts | https://raw.githubusercontent.com/CynthiaGichuki/AngularForms/789b1c2/src/app/template_driven/template_driven.component.ts | CynthiaGichuki/AngularForms 789b1c2 src/app/template_driven/template_driven.component.ts | true | 200 | 789 | import { Component, ViewChild } from "@angular/core";
import { NgForm } from "@angular/forms"
@Component({
selector: 'app-template_driven',
templateUrl: 'template_driven.component.html',
styleUrls: ['template_driven.component.css']
})
export class template_driven {
default = 'default'
genders = ['M... | 7 |
ali-ehmed/JavaScript-TypeScript-Prismic | 13ccdc3 | src/lib/validateAssetMetadata.ts | TypeScript | www.github.com/ali-ehmed/JavaScript-TypeScript-Prismic/tree/main/src/lib/validateAssetMetadata.ts | https://raw.githubusercontent.com/ali-ehmed/JavaScript-TypeScript-Prismic/13ccdc3/src/lib/validateAssetMetadata.ts | ali-ehmed/JavaScript-TypeScript-Prismic 13ccdc3 src/lib/validateAssetMetadata.ts | true | 200 | 1,730 | import { PrismicError } from "../errors/PrismicError"
import type { CreateAssetParams } from "../WriteClient"
/**
* Max length for asset notes accepted by the API.
*/
const ASSET_NOTES_MAX_LENGTH = 500
/**
* Max length for asset credits accepted by the API.
*/
const ASSET_CREDITS_MAX_LENGTH = 500
/**
* Max len... | 5 |
afieldi/RisenStats | 72e4e54 | BackEnd/scripts/reassignTesting.ts | TypeScript | www.github.com/afieldi/RisenStats/tree/main/BackEnd/scripts/reassignTesting.ts | https://raw.githubusercontent.com/afieldi/RisenStats/72e4e54/BackEnd/scripts/reassignTesting.ts | afieldi/RisenStats 72e4e54 BackEnd/scripts/reassignTesting.ts | true | 200 | 1,201 | import dotenv from "dotenv";
dotenv.config({ path: "../.env.development" });
import { ensureConnection, SaveObjects } from '../src/db/dbConnect';
import PlayerGameModel from '../../Common/models/playergame.model';
import { GetRiotGameByMatchId, GetRiotTimelineByMatchId } from "../src/external-api/game";
import { ToMatc... | 0 |
TheDestroyer19/genesys-character | 69937c6 | src/main.ts | TypeScript | www.github.com/TheDestroyer19/genesys-character/tree/main/src/main.ts | https://raw.githubusercontent.com/TheDestroyer19/genesys-character/69937c6/src/main.ts | TheDestroyer19/genesys-character 69937c6 src/main.ts | true | 200 | 4,425 | import { CreateEntity, EditCharacter, EditEntity, Entity, GetEntities, ListenForEntityCreated, ListenForEntityDeleted, ListenForEntityUpdated } from "./rs-api";
const list = document.getElementById("list") as HTMLElement;//Assume that element exists
const add_item = document.getElementById("new-entity") as HTMLElement... | 4 |
qutbiddinmaxmudov/bms-frontend | 8979332 | src/modules/Authorization/store/api/fetchAuthorization/fetchAuthorization.ts | TypeScript | www.github.com/qutbiddinmaxmudov/bms-frontend/tree/main/src/modules/Authorization/store/api/fetchAuthorization/fetchAuthorization.ts | https://raw.githubusercontent.com/qutbiddinmaxmudov/bms-frontend/8979332/src/modules/Authorization/store/api/fetchAuthorization/fetchAuthorization.ts | qutbiddinmaxmudov/bms-frontend 8979332 src/modules/Authorization/store/api/fetchAuthorization/fetchAuthorization.ts | true | 200 | 1,140 | import { createAsyncThunk } from '@reduxjs/toolkit';
import axios, { HeadersDefaults } from 'axios';
import { UserSchema } from '../../types/userShema';
const api = axios.create({
baseURL: import.meta.env.VITE_BACKEND_URL,
timeout: +import.meta.env.VITE_REQUEST_TIMEOUT,
});
interface CommonHeaderProperti... | 1 |
MaximeMenotti/complex-state-manager | 764eac5 | src/core/alert/alertSlice.ts | TypeScript | www.github.com/MaximeMenotti/complex-state-manager/tree/main/src/core/alert/alertSlice.ts | https://raw.githubusercontent.com/MaximeMenotti/complex-state-manager/764eac5/src/core/alert/alertSlice.ts | MaximeMenotti/complex-state-manager 764eac5 src/core/alert/alertSlice.ts | true | 200 | 937 | import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import type { PayloadAction } from "@reduxjs/toolkit";
export interface AlertState {
alerts: Alert[];
}
const initialState: AlertState = {
alerts: [],
};
export const createTimeoutAlert = createAsyncThunk(
"alert/createTimeoutAlert",
async (al... | 6 |
hoangtien1005/ZA_Miniapp_Hackathon_2023 | af579dd | src/application/bank/useGetBankQuery.usecase.ts | TypeScript | www.github.com/hoangtien1005/ZA_Miniapp_Hackathon_2023/tree/main/src/application/bank/useGetBankQuery.usecase.ts | https://raw.githubusercontent.com/hoangtien1005/ZA_Miniapp_Hackathon_2023/af579dd/src/application/bank/useGetBankQuery.usecase.ts | hoangtien1005/ZA_Miniapp_Hackathon_2023 af579dd src/application/bank/useGetBankQuery.usecase.ts | true | 200 | 515 | import { useQuery } from '@tanstack/react-query';
import { BankServiceApp } from './ports';
import { useBankService } from '~/adapters/app-service/bank.service';
import { fetchWithGlobalLoading } from '~/ui/hofs/fetch-with-global-loading';
export function useGetBanksByTypeQuery() {
const bankService: BankServiceAp... | 2 |
drsanti/inc343-2024 | e1af516 | examples/iiot/src/lib/machine.simulator.ts | TypeScript | www.github.com/drsanti/inc343-2024/tree/main/examples/iiot/src/lib/machine.simulator.ts | https://raw.githubusercontent.com/drsanti/inc343-2024/e1af516/examples/iiot/src/lib/machine.simulator.ts | drsanti/inc343-2024 e1af516 examples/iiot/src/lib/machine.simulator.ts | true | 200 | 3,670 | "use client";
import { QNetWebSocketBrowser } from "qnet-websocket-browser";
import { AnalogData, DigitalData } from "./types";
export class MachineSimulator {
private static instance?: MachineSimulator;
private qnet?: QNetWebSocketBrowser;
private interval?: NodeJS.Timeout;
private id: string = "";
/** Act... | 3 |
Hallcoder/qt_backend_service | 78c3c78 | src/user/user.controller.ts | TypeScript | www.github.com/Hallcoder/qt_backend_service/tree/main/src/user/user.controller.ts | https://raw.githubusercontent.com/Hallcoder/qt_backend_service/78c3c78/src/user/user.controller.ts | Hallcoder/qt_backend_service 78c3c78 src/user/user.controller.ts | true | 200 | 1,369 | import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
Query,
UseGuards,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthGuard } from 'src/auth/auth.guard';
import ApiResponse from 'src/utils/ApiResponse';
import { RegisterDTO } from '.... | 7 |
MAbhishekkSah/phase_5_NMSCinema | 8d06d26 | src/app/movies-list/movies-list.component.ts | TypeScript | www.github.com/MAbhishekkSah/phase_5_NMSCinema/tree/main/src/app/movies-list/movies-list.component.ts | https://raw.githubusercontent.com/MAbhishekkSah/phase_5_NMSCinema/8d06d26/src/app/movies-list/movies-list.component.ts | MAbhishekkSah/phase_5_NMSCinema 8d06d26 src/app/movies-list/movies-list.component.ts | true | 200 | 1,671 | import { Component,OnInit } from '@angular/core';
import { Movie } from '../movie';
import { ImportDataService } from '../import-data.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-movies-list',
templateUrl: './movies-list.component.html',
styleUrls: ['./movies-list.component.css... | 5 |
gepinfo/testdefaultservices12_4710 | e763a2b | application/services/default_services/authproxy/src/services/proxy-service.ts | TypeScript | www.github.com/gepinfo/testdefaultservices12_4710/tree/main/application/services/default_services/authproxy/src/services/proxy-service.ts | https://raw.githubusercontent.com/gepinfo/testdefaultservices12_4710/e763a2b/application/services/default_services/authproxy/src/services/proxy-service.ts | gepinfo/testdefaultservices12_4710 e763a2b application/services/default_services/authproxy/src/services/proxy-service.ts | true | 200 | 904 | import { ProxyDao } from '../dao/proxy-dao';
import { CustomLogger } from '../config/logger';
import { IAuthProxy } from '../interface/i-auth-proxy';
export class ProxyService {
private proxyDao : ProxyDao = new ProxyDao();
private logger: CustomLogger;
constructor() {
this.logger = new CustomLog... | 4 |
footzi/our-budget_frontend | f7bb84c | src/utils/calculateSumSavings/index.ts | TypeScript | www.github.com/footzi/our-budget_frontend/tree/main/src/utils/calculateSumSavings/index.ts | https://raw.githubusercontent.com/footzi/our-budget_frontend/f7bb84c/src/utils/calculateSumSavings/index.ts | footzi/our-budget_frontend f7bb84c src/utils/calculateSumSavings/index.ts | true | 200 | 416 | import { CurrenciesValues, Saving } from '@/interfaces';
/**
* Возвращает сумму по копилках
*/
export const calculateSumSavings = (savings: Saving[]): CurrenciesValues => {
return savings.reduce((acc: CurrenciesValues, item: Saving) => {
const { currency, value } = item;
const cur = acc[currency];
ac... | 0 |
aka47-24/wahab | 0d1b705 | packages/rjsf/src/form/samples/propertyDependencies.ts | TypeScript | www.github.com/aka47-24/wahab/tree/main/packages/rjsf/src/form/samples/propertyDependencies.ts | https://raw.githubusercontent.com/aka47-24/wahab/0d1b705/packages/rjsf/src/form/samples/propertyDependencies.ts | aka47-24/wahab 0d1b705 packages/rjsf/src/form/samples/propertyDependencies.ts | true | 200 | 2,125 | export default {
schema: {
title: "Property dependencies",
description: "These samples are best viewed without live validation.",
type: "object",
properties: {
unidirectional: {
title: "Unidirectional",
src: "https://spacetelescope.github.io/understanding-json-schema/reference/ob... | 1 |
Faizou-Aremou/myorg | 21f8df6 | libs/shared/http-services/src/lib/interceptors/xsrf.interceptor.spec.ts | TypeScript | www.github.com/Faizou-Aremou/myorg/tree/main/libs/shared/http-services/src/lib/interceptors/xsrf.interceptor.spec.ts | https://raw.githubusercontent.com/Faizou-Aremou/myorg/21f8df6/libs/shared/http-services/src/lib/interceptors/xsrf.interceptor.spec.ts | Faizou-Aremou/myorg 21f8df6 libs/shared/http-services/src/lib/interceptors/xsrf.interceptor.spec.ts | true | 200 | 1,200 | import {
HttpEvent,
HttpHandler,
HttpRequest,
HttpResponse,
HttpXsrfTokenExtractor,
} from '@angular/common/http';
import { TestBed } from '@angular/core/testing';
import { Observable, of } from 'rxjs';
import { XsrfInterceptor } from './xsrf.interceptor';
class SimpleHttpXsrfTokenExtractor extends HttpXsrfT... | 2 |
fifyrio/chatapi | 46c1330 | src/modules/auth.ts | TypeScript | www.github.com/fifyrio/chatapi/tree/main/src/modules/auth.ts | https://raw.githubusercontent.com/fifyrio/chatapi/46c1330/src/modules/auth.ts | fifyrio/chatapi 46c1330 src/modules/auth.ts | true | 200 | 1,382 | import jwt from 'jsonwebtoken';
import { JwtPayload } from 'jsonwebtoken';
import { Request } from 'express';
import * as dotenv from 'dotenv';
dotenv.config();
interface AuthResponse {
message: string;
code: number;
data: CustomJwtPayload | string
}
interface CustomJwtPayload extends JwtPayload {
// 添加你的自定义属性
... | 3 |
KoraReinolds/memo-widget | 60882f9 | vite.config.ts | TypeScript | www.github.com/KoraReinolds/memo-widget/tree/main/vite.config.ts | https://raw.githubusercontent.com/KoraReinolds/memo-widget/60882f9/vite.config.ts | KoraReinolds/memo-widget 60882f9 vite.config.ts | true | 200 | 910 | import { fileURLToPath, URL } from 'node:url'
import VueDevTools from 'vite-plugin-vue-devtools'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
export default defineConfig({
plugins: [vue(), dts(), VueDevTools()],
resolve: {
alias: {
'@': fileUR... | 7 |
New-reZn/ted2 | 55d7b80 | ws.config.ts | TypeScript | www.github.com/New-reZn/ted2/tree/main/ws.config.ts | https://raw.githubusercontent.com/New-reZn/ted2/55d7b80/ws.config.ts | New-reZn/ted2 55d7b80 ws.config.ts | true | 200 | 422 | import { Server } from 'socket.io';
import {data} from './src/routes/ws.store';
function webSocketServer(server:unknown) {
if(!server){return};
const io = new Server(server);
console.log("here on",new Date().toLocaleTimeString());
io.on('connection',(socket)=>{
data.subscribe((data)=>{
console.log(data);
... | 5 |
theycantrevealus/horas | 1711549 | server/apps/utility/dto/file.ts | TypeScript | www.github.com/theycantrevealus/horas/tree/main/server/apps/utility/dto/file.ts | https://raw.githubusercontent.com/theycantrevealus/horas/1711549/server/apps/utility/dto/file.ts | theycantrevealus/horas 1711549 server/apps/utility/dto/file.ts | true | 200 | 394 | export interface FastifyRequest {
storedFiles: Record<string, StorageMultipartFile[]>
body: unknown
}
export interface StorageMultipartFile {
buffer: Buffer
filename: string
size: number
mimetype: string
fieldname: string
}
export class MultipartOptions {
constructor(
public maxFileSize?: number,
... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.