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
abcdefghijklmn2/pokitoki
c0085ab
packages/modules/src/modules/core/useService/useService.ts
TypeScript
www.github.com/abcdefghijklmn2/pokitoki/tree/main/packages/modules/src/modules/core/useService/useService.ts
https://raw.githubusercontent.com/abcdefghijklmn2/pokitoki/c0085ab/packages/modules/src/modules/core/useService/useService.ts
abcdefghijklmn2/pokitoki c0085ab packages/modules/src/modules/core/useService/useService.ts
true
200
919
'use client' import { useStore } from 'jotai' import React from 'react' import { RepositoriesAggregate, ServiceInterface } from '../domain/adapter' const useService = <REPOS extends RepositoriesAggregate, SERVICE extends ServiceInterface>(Service: SERVICE) => { const service = React.useRef(Service).current cons...
5
nazmulhossain17/medicine-e-commerce
fd72fd3
app/GlobalRedux/features/cart/cartSlice.ts
TypeScript
www.github.com/nazmulhossain17/medicine-e-commerce/tree/main/app/GlobalRedux/features/cart/cartSlice.ts
https://raw.githubusercontent.com/nazmulhossain17/medicine-e-commerce/fd72fd3/app/GlobalRedux/features/cart/cartSlice.ts
nazmulhossain17/medicine-e-commerce fd72fd3 app/GlobalRedux/features/cart/cartSlice.ts
true
200
2,877
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; // Define the Product type interface Product { _id: string; name: string; price: number; quantity: number; } // Define the CartState type interface CartState { products: Product[]; total: number; } // Define the initial state const initialSta...
6
GetPushTecnologia/getpush-crm-web
f1958f4
src/app/pages/components/estoque/servico/servico.component.ts
TypeScript
www.github.com/GetPushTecnologia/getpush-crm-web/tree/main/src/app/pages/components/estoque/servico/servico.component.ts
https://raw.githubusercontent.com/GetPushTecnologia/getpush-crm-web/f1958f4/src/app/pages/components/estoque/servico/servico.component.ts
GetPushTecnologia/getpush-crm-web f1958f4 src/app/pages/components/estoque/servico/servico.component.ts
true
200
1,417
import { Component, OnInit } from '@angular/core'; import { LocalDataSource } from 'ng2-smart-table'; @Component({ selector: 'ngx-servico', templateUrl: './servico.component.html', styleUrls: ['./servico.component.scss'] }) export class ServicoComponent implements OnInit { source: LocalDataSource = new LocalD...
7
chaimaraachh/TP1-Angular
c242dd5
src/app/ex4/item/item.component.ts
TypeScript
www.github.com/chaimaraachh/TP1-Angular/tree/main/src/app/ex4/item/item.component.ts
https://raw.githubusercontent.com/chaimaraachh/TP1-Angular/c242dd5/src/app/ex4/item/item.component.ts
chaimaraachh/TP1-Angular c242dd5 src/app/ex4/item/item.component.ts
true
200
566
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import {Cv} from "../cv"; import {ToastrService} from "ngx-toastr"; import { CvService } from 'src/app/services/cv-service'; @Component({ selector: 'app-item', templateUrl: './item.component.html', styleUrls: ['./item.component.css']...
1
RaiVandeberg/ApiCashLoop
8b7427c
src/middlewares/ensure-authenticated.ts
TypeScript
www.github.com/RaiVandeberg/ApiCashLoop/tree/main/src/middlewares/ensure-authenticated.ts
https://raw.githubusercontent.com/RaiVandeberg/ApiCashLoop/8b7427c/src/middlewares/ensure-authenticated.ts
RaiVandeberg/ApiCashLoop 8b7427c src/middlewares/ensure-authenticated.ts
true
200
877
import { Request, Response, NextFunction } from "express"; import { verify } from "jsonwebtoken"; import { authConfig } from "@/configs/auth"; import { AppError } from "@/utils/AppError"; interface TokenPayload { role: string sub: string } function ensureAuthenticated(request: Request, response: Response, next:...
5
muhammedgaygisiz/travellers-apps
490d045
libs/prices/home/feature/src/lib/__specs__/home.component.stories.ts
TypeScript
www.github.com/muhammedgaygisiz/travellers-apps/tree/main/libs/prices/home/feature/src/lib/__specs__/home.component.stories.ts
https://raw.githubusercontent.com/muhammedgaygisiz/travellers-apps/490d045/libs/prices/home/feature/src/lib/__specs__/home.component.stories.ts
muhammedgaygisiz/travellers-apps 490d045 libs/prices/home/feature/src/lib/__specs__/home.component.stories.ts
true
200
1,176
import { applicationConfig, Meta, StoryObj } from '@storybook/angular'; import { HomeComponent } from '../components'; import { addNecessaryIcons, getIonicConfig, } from '@travellers-apps/utils-common'; import { provideIonicAngular } from '@ionic/angular/standalone'; import { FILTERS, PRICES } from './data'; import...
0
victorm99/emag-client
c069c2b
src/app/user-profile/user-profile.module.ts
TypeScript
www.github.com/victorm99/emag-client/tree/main/src/app/user-profile/user-profile.module.ts
https://raw.githubusercontent.com/victorm99/emag-client/c069c2b/src/app/user-profile/user-profile.module.ts
victorm99/emag-client c069c2b src/app/user-profile/user-profile.module.ts
true
200
1,452
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {RegisterPageComponent} from './register-page/register-page.component'; import {LoginPageComponent} from './login-page/login-page.component'; import {MatCardModule} from "@angular/material/card"; import {MatFormFieldModule} fro...
6
Walttinho/lms
43c9a56
src/courses/controller/delete.controller.ts
TypeScript
www.github.com/Walttinho/lms/tree/main/src/courses/controller/delete.controller.ts
https://raw.githubusercontent.com/Walttinho/lms/43c9a56/src/courses/controller/delete.controller.ts
Walttinho/lms 43c9a56 src/courses/controller/delete.controller.ts
true
200
905
import { Controller, Delete, Param, Req } from '@nestjs/common'; import { ApiOperation, ApiBearerAuth, ApiResponse, ApiTags, } from '@nestjs/swagger'; import { DeleteCourseByIdUseCase } from '../useCase/delete.useCase'; @ApiTags('courses') @ApiBearerAuth() @Controller('courses') export class DeleteCourseByIdCo...
7
Surajit0002/BattleSphere
6765807
shared/schema.ts
TypeScript
www.github.com/Surajit0002/BattleSphere/tree/main/shared/schema.ts
https://raw.githubusercontent.com/Surajit0002/BattleSphere/6765807/shared/schema.ts
Surajit0002/BattleSphere 6765807 shared/schema.ts
true
200
8,767
import { pgTable, text, serial, integer, boolean, timestamp, pgEnum } from "drizzle-orm/pg-core"; import { createInsertSchema } from "drizzle-zod"; import { z } from "zod"; // Enums export const gameModeEnum = pgEnum('game_mode', ['solo', 'duo', 'squad', 'custom']); export const tournamentTypeEnum = pgEnum('tournament...
1
KhalidMujahid/nestjs-blog-rest-api
17bfa62
src/posts/post.controller.ts
TypeScript
www.github.com/KhalidMujahid/nestjs-blog-rest-api/tree/main/src/posts/post.controller.ts
https://raw.githubusercontent.com/KhalidMujahid/nestjs-blog-rest-api/17bfa62/src/posts/post.controller.ts
KhalidMujahid/nestjs-blog-rest-api 17bfa62 src/posts/post.controller.ts
true
200
2,295
import { Body, Controller, Delete, Get, HttpException, HttpStatus, Param, Post, Put, } from "@nestjs/common"; import { IPost } from "../interfaces/post.interface"; import { PostService } from "./post.service"; @Controller("posts") export class PostController { constructor(private readonly postServi...
5
TheMagin/api-pickpaw
0d8da51
database/seeders/TypeSocial.ts
TypeScript
www.github.com/TheMagin/api-pickpaw/tree/main/database/seeders/TypeSocial.ts
https://raw.githubusercontent.com/TheMagin/api-pickpaw/0d8da51/database/seeders/TypeSocial.ts
TheMagin/api-pickpaw 0d8da51 database/seeders/TypeSocial.ts
true
200
470
import BaseSeeder from '@ioc:Adonis/Lucid/Seeder' import TypeSocialMedia from 'App/Models/TypeSocialMedia' export default class extends BaseSeeder { public async run() { // Write your database queries inside the run method await TypeSocialMedia.updateOrCreateMany('id', [ { id: 1, name: ...
0
ajrfyd/klog-nest-server
d6bd057
src/chat/chat.gateway.ts
TypeScript
www.github.com/ajrfyd/klog-nest-server/tree/main/src/chat/chat.gateway.ts
https://raw.githubusercontent.com/ajrfyd/klog-nest-server/d6bd057/src/chat/chat.gateway.ts
ajrfyd/klog-nest-server d6bd057 src/chat/chat.gateway.ts
true
200
3,430
import { ConnectedSocket, MessageBody, OnGatewayConnection, SubscribeMessage, WebSocketGateway, WebSocketServer, WsException, } from '@nestjs/websockets'; import { ChatService } from './chat.service'; import { Server, Socket } from 'socket.io'; import { WebSocketAuthMiddleware } from './middleware/ws-auth...
6
workflows-sh/aws-eks-ec2-asg-cdk
eba7d22
src/stack/service.ts
TypeScript
www.github.com/workflows-sh/aws-eks-ec2-asg-cdk/tree/main/src/stack/service.ts
https://raw.githubusercontent.com/workflows-sh/aws-eks-ec2-asg-cdk/eba7d22/src/stack/service.ts
workflows-sh/aws-eks-ec2-asg-cdk eba7d22 src/stack/service.ts
true
200
6,024
import * as cdk from 'aws-cdk-lib' import * as ec2 from 'aws-cdk-lib/aws-ec2' import * as ecr from 'aws-cdk-lib/aws-ecr' import * as eks from 'aws-cdk-lib/aws-eks' import * as rds from 'aws-cdk-lib/aws-rds'; import * as sm from "aws-cdk-lib/aws-secretsmanager"; import * as sqs from 'aws-cdk-lib/aws-sqs'; import { Const...
7
dPiascik/Aplikacja-ol
7fc52e5
OL-app/client/src/style/MapStyle.ts
TypeScript
www.github.com/dPiascik/Aplikacja-ol/tree/main/OL-app/client/src/style/MapStyle.ts
https://raw.githubusercontent.com/dPiascik/Aplikacja-ol/7fc52e5/OL-app/client/src/style/MapStyle.ts
dPiascik/Aplikacja-ol 7fc52e5 OL-app/client/src/style/MapStyle.ts
true
200
685
import { Fill, Icon, Stroke, Style } from "ol/style"; export const polygonStyle = new Style({ fill: new Fill({ color: 'rgba(255, 0, 0, 0.2)', }), stroke: new Stroke({ color: 'red', width: 2, }), }) export const iconStyle = (azimuth: number) => new Style({ image: new Icon({...
0
Soranja/learn-armenian
4ab146a
src/store/store.ts
TypeScript
www.github.com/Soranja/learn-armenian/tree/main/src/store/store.ts
https://raw.githubusercontent.com/Soranja/learn-armenian/4ab146a/src/store/store.ts
Soranja/learn-armenian 4ab146a src/store/store.ts
true
200
283
import { configureStore } from "@reduxjs/toolkit"; import { selectReducer } from "./slices/select"; export const store = configureStore({ reducer: { selector: selectReducer, }, }); // gives type to the whole store export type RootState = ReturnType<typeof store.getState>;
1
tkosminov/rails-vue-ssr-example
925c6e2
app/javascript/frontend/articles/index.ts
TypeScript
www.github.com/tkosminov/rails-vue-ssr-example/tree/main/app/javascript/frontend/articles/index.ts
https://raw.githubusercontent.com/tkosminov/rails-vue-ssr-example/925c6e2/app/javascript/frontend/articles/index.ts
tkosminov/rails-vue-ssr-example 925c6e2 app/javascript/frontend/articles/index.ts
true
200
242
import Vue from 'vue'; import VArticles from './Articles.vue'; Vue.config.productionTip = false; let el = document.getElementById('articles_index') if (el) { new Vue({ render: (h) => h(VArticles), }).$mount('#articles_index'); }
7
nguyendinhqui1029/portfolio-angular
d06c746
angular-portfolio-client/src/app/components/dialogs/about-me-skill-detail-dialog/about-me-skill-detail-dialog.component.ts
TypeScript
www.github.com/nguyendinhqui1029/portfolio-angular/tree/main/angular-portfolio-client/src/app/components/dialogs/about-me-skill-detail-dialog/about-me-skill-detail-dialog.component.ts
https://raw.githubusercontent.com/nguyendinhqui1029/portfolio-angular/d06c746/angular-portfolio-client/src/app/components/dialogs/about-me-skill-detail-dialog/about-me-skill-detail-dialog.component.ts
nguyendinhqui1029/portfolio-angular d06c746 angular-portfolio-client/src/app/components/dialogs/about-me-skill-detail-dialog/about-me-skill-detail-dialog.component.ts
true
200
552
import { Component, OnInit, inject } from '@angular/core'; import { DynamicDialogConfig } from 'primeng/dynamicdialog'; @Component({ selector: 'q-about-me-skill-detail-dialog', standalone: true, imports: [], templateUrl: './about-me-skill-detail-dialog.component.html', styleUrl: './about-me-skill-detail-dial...
6
honoremwise/TypescriptChallenges
ae4afbd
sixChallenge.ts
TypeScript
www.github.com/honoremwise/TypescriptChallenges/tree/main/sixChallenge.ts
https://raw.githubusercontent.com/honoremwise/TypescriptChallenges/ae4afbd/sixChallenge.ts
honoremwise/TypescriptChallenges ae4afbd sixChallenge.ts
true
200
2,167
interface User { type: 'user'; name: string; age: number; occupation: string; } interface Admin { type: 'admin'; name: string; age: number; role: string; } export type Person = User | Admin; export const persons: Person[] = [ { type: 'user', name: 'Max Mustermann', age: 25, occupa...
5
lenn-mark/sb1-1cnev8
b81daa9
src/types/shipment.ts
TypeScript
www.github.com/lenn-mark/sb1-1cnev8/tree/main/src/types/shipment.ts
https://raw.githubusercontent.com/lenn-mark/sb1-1cnev8/b81daa9/src/types/shipment.ts
lenn-mark/sb1-1cnev8 b81daa9 src/types/shipment.ts
true
200
829
import { OrderDetails } from './order'; export interface BuyerAddress { line1: string; line2?: string; line3?: string; city: string; state: string; postalCode: string; country: string; latitude?: number; longitude?: number; } export interface BuyerInfo { name: string; phoneNumber: string; addr...
0
Irakoze-Hortance/diid-fe
df7736f
lib/api.ts
TypeScript
www.github.com/Irakoze-Hortance/diid-fe/tree/main/lib/api.ts
https://raw.githubusercontent.com/Irakoze-Hortance/diid-fe/df7736f/lib/api.ts
Irakoze-Hortance/diid-fe df7736f lib/api.ts
true
200
3,289
'use client' import axios from 'axios'; import { LoginResponse, User, RegistrationData, CourseType } from '../types'; import { useQuery } from '@tanstack/react-query'; import { useState, useEffect } from 'react'; const API_URL = process.env.NEXT_PUBLIC_API_URL; export const registerUser = async (userData: Omit<Registr...
6
duonghau2706/fe_film
bc62006
src/adapter/transactionHistories.ts
TypeScript
www.github.com/duonghau2706/fe_film/tree/main/src/adapter/transactionHistories.ts
https://raw.githubusercontent.com/duonghau2706/fe_film/bc62006/src/adapter/transactionHistories.ts
duonghau2706/fe_film bc62006 src/adapter/transactionHistories.ts
true
200
328
import { sendPost } from '@/hook/axios' import { endpoint } from '@/utils/constants' const create = async (params?: any) => { return await sendPost( `${endpoint.create_transaction_histories}`, params ).then((res) => res.data) } const transactionHistoriesApi = { create, } export default transactionHisto...
7
Keerthika-1004/TeamA--Propay
3af233b
src/app/services/broadband.service.spec.ts
TypeScript
www.github.com/Keerthika-1004/TeamA--Propay/tree/main/src/app/services/broadband.service.spec.ts
https://raw.githubusercontent.com/Keerthika-1004/TeamA--Propay/3af233b/src/app/services/broadband.service.spec.ts
Keerthika-1004/TeamA--Propay 3af233b src/app/services/broadband.service.spec.ts
true
200
372
import { TestBed } from '@angular/core/testing'; import { BroadbandService } from './broadband.service'; describe('BroadbandService', () => { let service: BroadbandService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(BroadbandService); }); it('should be created', ...
5
Nico4899/smart-campus-client
12bce7c
src/app/layouts/default/default.module.ts
TypeScript
www.github.com/Nico4899/smart-campus-client/tree/main/src/app/layouts/default/default.module.ts
https://raw.githubusercontent.com/Nico4899/smart-campus-client/12bce7c/src/app/layouts/default/default.module.ts
Nico4899/smart-campus-client 12bce7c src/app/layouts/default/default.module.ts
true
200
2,879
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {DefaultComponent} from "./default.component"; import {DashboardComponent} from "../../modules/dashboard/dashboard.component"; import {RouterModule} from "@angular/router"; import {BuildingsComponent} from "../../modules/buildi...
1
BSniatkowski/slasher-web-game
485e8cf
src/components/molecules/Snackbar/Snackbar.style.ts
TypeScript
www.github.com/BSniatkowski/slasher-web-game/tree/main/src/components/molecules/Snackbar/Snackbar.style.ts
https://raw.githubusercontent.com/BSniatkowski/slasher-web-game/485e8cf/src/components/molecules/Snackbar/Snackbar.style.ts
BSniatkowski/slasher-web-game 485e8cf src/components/molecules/Snackbar/Snackbar.style.ts
true
200
1,438
import styled, { css } from 'styled-components' import { IconWrapper } from '../../atoms/Icon/Icon.style' export const SSnackbar = styled.div<{ $isMobile: boolean $variant?: 'info' | 'warning' | 'error' $isActive: boolean }>` position: fixed; bottom: ${({ $isActive }) => ($isActive ? '1rem' : '-10...
6
shadowrunners/Evelyn
c42a700
src/Events/djxManaged/Logging/emojiCreate.ts
TypeScript
www.github.com/shadowrunners/Evelyn/tree/main/src/Events/djxManaged/Logging/emojiCreate.ts
https://raw.githubusercontent.com/shadowrunners/Evelyn/c42a700/src/Events/djxManaged/Logging/emojiCreate.ts
shadowrunners/Evelyn c42a700 src/Events/djxManaged/Logging/emojiCreate.ts
true
200
1,025
import { getAuditLog, send, validate } from '../../../Utils/Helpers/loggerUtils.js'; import { AuditLogEvent, EmbedBuilder, GuildEmoji } from 'discord.js'; import { Evelyn } from '../../../Evelyn.js'; import { Discord, On } from 'discordx'; @Discord() export class EmojiCreate { @On({ event: 'emojiCreate' }) async emo...
7
HindAljabri0/rejection_reports
e8a975c
src/app/components/search-bar/search-bar.component.ts
TypeScript
www.github.com/HindAljabri0/rejection_reports/tree/main/src/app/components/search-bar/search-bar.component.ts
https://raw.githubusercontent.com/HindAljabri0/rejection_reports/e8a975c/src/app/components/search-bar/search-bar.component.ts
HindAljabri0/rejection_reports e8a975c src/app/components/search-bar/search-bar.component.ts
true
200
2,962
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { FormControl, NgModel } from '@angular/forms'; import { Router, ActivatedRoute, ParamMap, RouterEvent, NavigationEnd } from '@angular/router'; import { SharedServices } from '../../services/shared.services'; import { filter } from 'rxjs/o...
5
gopal61288/testing_heroku
9cc2dda
src/app/router15/components/home/home.component.ts
TypeScript
www.github.com/gopal61288/testing_heroku/tree/main/src/app/router15/components/home/home.component.ts
https://raw.githubusercontent.com/gopal61288/testing_heroku/9cc2dda/src/app/router15/components/home/home.component.ts
gopal61288/testing_heroku 9cc2dda src/app/router15/components/home/home.component.ts
true
200
329
import { Component, OnInit } from '@angular/core'; import { BookService } from '../../services/book.service'; @Component({ selector: 'app69-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) export class HomeComponent implements OnInit { constructor() { } ngOnInit(): vo...
1
Ismail-el-mousaid/Referentiel_Code-source---local--
ec67743
ms-FrontEnd/src/app/components/branches/graphes/graphes.component.ts
TypeScript
www.github.com/Ismail-el-mousaid/Referentiel_Code-source---local--/tree/main/ms-FrontEnd/src/app/components/branches/graphes/graphes.component.ts
https://raw.githubusercontent.com/Ismail-el-mousaid/Referentiel_Code-source---local--/ec67743/ms-FrontEnd/src/app/components/branches/graphes/graphes.component.ts
Ismail-el-mousaid/Referentiel_Code-source---local-- ec67743 ms-FrontEnd/src/app/components/branches/graphes/graphes.component.ts
true
200
5,118
import { Component, OnInit } from '@angular/core'; import {DatePipe} from "@angular/common"; import {IHush} from "../branches.component"; import {ModuleService} from "../../../services/module.service"; @Component({ selector: 'app-graphes', templateUrl: './graphes.component.html', styleUrls: ['./graphes.component...
6
thedeveloperjn/test1
3ed835c
app/hooks/useGlobalHook.ts
TypeScript
www.github.com/thedeveloperjn/test1/tree/main/app/hooks/useGlobalHook.ts
https://raw.githubusercontent.com/thedeveloperjn/test1/3ed835c/app/hooks/useGlobalHook.ts
thedeveloperjn/test1 3ed835c app/hooks/useGlobalHook.ts
true
200
776
import { changeHomeLoadingState } from '../store/action/loading' import { useQuery, UseQueryOptions, UseQueryResult } from '@tanstack/react-query' import { useEffect } from 'react' export function useQueryWithLoading<TData, TError>( key: string[], queryFn: () => Promise<TData>, options?: Omit<UseQueryOpti...
7
Aya-Amer/ecommerce-asgatech-project
770482b
src/app/auth/auth.component.ts
TypeScript
www.github.com/Aya-Amer/ecommerce-asgatech-project/tree/main/src/app/auth/auth.component.ts
https://raw.githubusercontent.com/Aya-Amer/ecommerce-asgatech-project/770482b/src/app/auth/auth.component.ts
Aya-Amer/ecommerce-asgatech-project 770482b src/app/auth/auth.component.ts
true
200
949
import { Component } from '@angular/core'; import { NgForm } from '@angular/forms'; import { AuthService } from './auth.service'; @Component({ selector: 'app-auth', templateUrl: './auth.component.html', styleUrls: ['./auth.component.scss'], }) export class AuthComponent { isLoginMode = true; isLoading = fals...
0
SashaBoyer/PortfolioFrontend
f32b88f
PortfolioFrontend/src/app/app.module.ts
TypeScript
www.github.com/SashaBoyer/PortfolioFrontend/tree/main/PortfolioFrontend/src/app/app.module.ts
https://raw.githubusercontent.com/SashaBoyer/PortfolioFrontend/f32b88f/PortfolioFrontend/src/app/app.module.ts
SashaBoyer/PortfolioFrontend f32b88f PortfolioFrontend/src/app/app.module.ts
true
200
3,087
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HeaderComponent } from './componentes/header/header.component'; import { NavComponent } from './componen...
5
vexip-ui/vexip-ui
ced8467
components/ellipsis/props.ts
TypeScript
www.github.com/vexip-ui/vexip-ui/tree/main/components/ellipsis/props.ts
https://raw.githubusercontent.com/vexip-ui/vexip-ui/ced8467/components/ellipsis/props.ts
vexip-ui/vexip-ui ced8467 components/ellipsis/props.ts
true
200
878
import { booleanProp, booleanStringProp, buildProps, classProp } from '@vexip-ui/config' import type { ExtractPropTypes, PropType } from 'vue' import type { ConfigurableProps } from '@vexip-ui/config' import type { Placement } from '@vexip-ui/hooks' import type { TooltipShift, TooltipTheme } from '@/components/tooltip...
1
aashis-kishore/sg-demo
8457fab
apps/core/src/app/common/scalars/date.scalar.ts
TypeScript
www.github.com/aashis-kishore/sg-demo/tree/main/apps/core/src/app/common/scalars/date.scalar.ts
https://raw.githubusercontent.com/aashis-kishore/sg-demo/8457fab/apps/core/src/app/common/scalars/date.scalar.ts
aashis-kishore/sg-demo 8457fab apps/core/src/app/common/scalars/date.scalar.ts
true
200
508
import {CustomScalar, Scalar} from '@nestjs/graphql'; import {Kind, ValueNode} from 'graphql'; @Scalar('Date', (type) => Date) export class DateScalar implements CustomScalar<number, Date> { description = 'Date custom scalar type'; parseValue(value: number): Date { return new Date(value); } serialize(val...
7
mentor-us/mobile
84fff59
src/src/screens/Notifications/queries.ts
TypeScript
www.github.com/mentor-us/mobile/tree/main/src/src/screens/Notifications/queries.ts
https://raw.githubusercontent.com/mentor-us/mobile/84fff59/src/src/screens/Notifications/queries.ts
mentor-us/mobile 84fff59 src/src/screens/Notifications/queries.ts
true
200
793
import { useInfiniteQuery } from "@tanstack/react-query"; import NotificationApi from "~/api/remote/NotificationApi"; import { Notification } from "~/models/notification"; const PAGE_SIZE = 25; export function useNotificationsQuery() { const data = useInfiniteQuery({ queryKey: ["notifications"], queryFn: as...
6
kojikawazu/nextjs-nestjs-graphql-sample
01b0146
frontend/src/app/api/query/user/route.ts
TypeScript
www.github.com/kojikawazu/nextjs-nestjs-graphql-sample/tree/main/frontend/src/app/api/query/user/route.ts
https://raw.githubusercontent.com/kojikawazu/nextjs-nestjs-graphql-sample/01b0146/frontend/src/app/api/query/user/route.ts
kojikawazu/nextjs-nestjs-graphql-sample 01b0146 frontend/src/app/api/query/user/route.ts
true
200
935
import axios from "axios"; import { NextResponse } from "next/server"; /** * Query取得 * @returns ユーザーデータ */ export async function GET() { const url = process.env.GRAPHQL_NESTJS_URL!; const config = { headers: { 'Content-Type': 'application/json', }, }; const data = { ...
0
Envy41111/gambling
58d0b97
src/types/game.ts
TypeScript
www.github.com/Envy41111/gambling/tree/main/src/types/game.ts
https://raw.githubusercontent.com/Envy41111/gambling/58d0b97/src/types/game.ts
Envy41111/gambling 58d0b97 src/types/game.ts
true
200
453
export interface GameState { coins: number; isPlaying: boolean; currentBet: number; multiplier: number; crashed: boolean; gameHistory: GameRound[]; } export interface GameRound { crashPoint: number; timestamp: number; } export interface Prize { id: string; name: string; description: string; co...
5
renangom/app-testavel-node
f062cd0
src/use-cases/create-appointment.ts
TypeScript
www.github.com/renangom/app-testavel-node/tree/main/src/use-cases/create-appointment.ts
https://raw.githubusercontent.com/renangom/app-testavel-node/f062cd0/src/use-cases/create-appointment.ts
renangom/app-testavel-node f062cd0 src/use-cases/create-appointment.ts
true
200
1,062
import Appointment from "../entities/appointment"; import { AppointmentsRepository } from "../repositories/appointment-repository"; interface CreateAppointmentRequest{ customer: string; startsAt: Date; endsAt: Date; } //Como a response é um único objeto, uso type type CreateAppointmentResponse = Appointm...
1
S-9527/mini-vue
1376246
packages/compiler-core/src/parse.ts
TypeScript
www.github.com/S-9527/mini-vue/tree/main/packages/compiler-core/src/parse.ts
https://raw.githubusercontent.com/S-9527/mini-vue/1376246/packages/compiler-core/src/parse.ts
S-9527/mini-vue 1376246 packages/compiler-core/src/parse.ts
true
200
3,622
import { NodeTypes } from "./ast"; enum TagType { Start, End } export function baseParse(content: string) { const context = createParseContext(content) return createRoot(parseChildren(context, [])) } function parseChildren(context: { source: string }, ancestors: string[]) { const nodes: any = [] ...
7
nyarko-dennis/dashboard-tests
096315c
src/app/features/dashboard/order-placement/order-placement.component.ts
TypeScript
www.github.com/nyarko-dennis/dashboard-tests/tree/main/src/app/features/dashboard/order-placement/order-placement.component.ts
https://raw.githubusercontent.com/nyarko-dennis/dashboard-tests/096315c/src/app/features/dashboard/order-placement/order-placement.component.ts
nyarko-dennis/dashboard-tests 096315c src/app/features/dashboard/order-placement/order-placement.component.ts
true
200
1,871
import { Component } from '@angular/core'; import {DesktopSidebarComponentComponent} from "../desktop-sidebar-component/desktop-sidebar-component.component"; import {ProfileDropdownComponent} from "../profile-dropdown/profile-dropdown.component"; import {SidebarComponentComponent} from "../sidebar-component/sidebar-com...
6
said-elhafyani/e-banking-frontend
28a6674
src/app/admin-template/admin-template.component.ts
TypeScript
www.github.com/said-elhafyani/e-banking-frontend/tree/main/src/app/admin-template/admin-template.component.ts
https://raw.githubusercontent.com/said-elhafyani/e-banking-frontend/28a6674/src/app/admin-template/admin-template.component.ts
said-elhafyani/e-banking-frontend 28a6674 src/app/admin-template/admin-template.component.ts
true
200
462
import {Component, OnInit} from '@angular/core'; import {AuthService} from "../services/auth.service"; @Component({ selector: 'app-admin-template', templateUrl: './admin-template.component.html', styleUrls: ['./admin-template.component.css'] }) export class AdminTemplateComponent implements OnInit { construct...
5
mehdimoosavi7/iranjack
8b29bab
vite.config.ts
TypeScript
www.github.com/mehdimoosavi7/iranjack/tree/main/vite.config.ts
https://raw.githubusercontent.com/mehdimoosavi7/iranjack/8b29bab/vite.config.ts
mehdimoosavi7/iranjack 8b29bab vite.config.ts
true
200
319
import { resolve } from "path"; import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' const root = resolve(__dirname, "src"); export default defineConfig({ plugins: [react()], resolve: { alias: { "@": resolve(root), }, }, build: { chunkSizeWarningLimit: 5000, }, })
3
Usshel/Authorization-Basic
edcff06
src/app/components/authorization-basic/authorization-basic.component.ts
TypeScript
www.github.com/Usshel/Authorization-Basic/tree/main/src/app/components/authorization-basic/authorization-basic.component.ts
https://raw.githubusercontent.com/Usshel/Authorization-Basic/edcff06/src/app/components/authorization-basic/authorization-basic.component.ts
Usshel/Authorization-Basic edcff06 src/app/components/authorization-basic/authorization-basic.component.ts
true
200
1,244
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Router } from '@angular/router'; import { AuthenticationService } from 'src/app/services/authentication.service'; @Component({ selector: 'app-auth...
1
Tianxidev/RisenIOT
37a28b7
frontend/src/utils/url.ts
TypeScript
www.github.com/Tianxidev/RisenIOT/tree/main/frontend/src/utils/url.ts
https://raw.githubusercontent.com/Tianxidev/RisenIOT/37a28b7/frontend/src/utils/url.ts
Tianxidev/RisenIOT 37a28b7 frontend/src/utils/url.ts
true
200
2,132
/** * 参数字符串转换成对象形式,如:a=1&b=2 转换成 {a:1, b:2} * @param {String} str 需要转换的字符串 * @param {String} [sep=&] 连接符,可选,默认 & * @param {String} [eq==] 键值间隔符,可选,默认 = * @returns {Object} */ export function parse(str: string, sep?: string, eq?: string): any { // eslint-disable-next-line let obj: any = {}; str = (str ...
4
leegould/lc
c277dac
src/canMakeArithmeticProgression/canMakeArithmeticProgression.ts
TypeScript
www.github.com/leegould/lc/tree/main/src/canMakeArithmeticProgression/canMakeArithmeticProgression.ts
https://raw.githubusercontent.com/leegould/lc/c277dac/src/canMakeArithmeticProgression/canMakeArithmeticProgression.ts
leegould/lc c277dac src/canMakeArithmeticProgression/canMakeArithmeticProgression.ts
true
200
487
/** * Can Make Arithmetic Progression From Sequence * @param arr the array of numbers * @returns true if can be a progression, false otherwise * @description runtime O(n lg n) space O(1) */ export function canMakeArithmeticProgression(arr: number[]): boolean { arr.sort((a,b) => a - b); let step = arr[1] -...
2
kamlapure-santosh/e-commerce-app-angular
743eac6
src/app/product/product.module.ts
TypeScript
www.github.com/kamlapure-santosh/e-commerce-app-angular/tree/main/src/app/product/product.module.ts
https://raw.githubusercontent.com/kamlapure-santosh/e-commerce-app-angular/743eac6/src/app/product/product.module.ts
kamlapure-santosh/e-commerce-app-angular 743eac6 src/app/product/product.module.ts
true
200
601
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ProductRoutingModule } from './product-routing.module'; import { routedComponents } from '../product/product-routing.module'; import { ProductListComponent } from './product-list/product-list.component'; import { Category...
6
yukydesu/web2
ff1890b
exercices/1.9/types.ts
TypeScript
www.github.com/yukydesu/web2/tree/main/exercices/1.9/types.ts
https://raw.githubusercontent.com/yukydesu/web2/ff1890b/exercices/1.9/types.ts
yukydesu/web2 ff1890b exercices/1.9/types.ts
true
200
432
interface Films { id: number; title: string; director: string; duration: number; budget: number | undefined; description: string | undefined; imageUrl: string | undefined; getDescription: () => string; } type NewFilm = Omit<Films, 'id'>; interface Texts { id : string; content: string; level: ...
7
dragancristian2005/lumeo
ff6a1f0
src/app/app-layout/navigation/navigation.component.ts
TypeScript
www.github.com/dragancristian2005/lumeo/tree/main/src/app/app-layout/navigation/navigation.component.ts
https://raw.githubusercontent.com/dragancristian2005/lumeo/ff6a1f0/src/app/app-layout/navigation/navigation.component.ts
dragancristian2005/lumeo ff6a1f0 src/app/app-layout/navigation/navigation.component.ts
true
200
5,869
import { Component } from '@angular/core'; import { Router, RouterLink, RouterLinkActive } from '@angular/router'; import { MatIconModule } from '@angular/material/icon'; import { NgClass, NgForOf, NgIf } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { getDatabase, ref, push, set, get } f...
5
SantiagoFK/PokemonDexLite
40fc40f
src/app/shared/components/navbar/navbar.component.ts
TypeScript
www.github.com/SantiagoFK/PokemonDexLite/tree/main/src/app/shared/components/navbar/navbar.component.ts
https://raw.githubusercontent.com/SantiagoFK/PokemonDexLite/40fc40f/src/app/shared/components/navbar/navbar.component.ts
SantiagoFK/PokemonDexLite 40fc40f src/app/shared/components/navbar/navbar.component.ts
true
200
891
import { Component, OnInit } from '@angular/core'; import { UserService } from '../../../user/services/user.service'; @Component({ selector: 'app-navbar', templateUrl: './navbar.component.html', styleUrl: './navbar.component.css' }) export class NavbarComponent implements OnInit{ mobileMode: boolean = false ...
1
theAshura/All-project
f4f2ecb
logistic123/src/store/watch-list/watch-list.reducer.ts
TypeScript
www.github.com/theAshura/All-project/tree/main/logistic123/src/store/watch-list/watch-list.reducer.ts
https://raw.githubusercontent.com/theAshura/All-project/f4f2ecb/logistic123/src/store/watch-list/watch-list.reducer.ts
theAshura/All-project f4f2ecb logistic123/src/store/watch-list/watch-list.reducer.ts
true
200
2,423
import { WatchListStoreModel } from 'models/store/watch-list/watch-list.model'; import { createReducer } from 'typesafe-actions'; import { checkWatchListActions, createWatchListActions, getWatchListActions, unWatchListActions, unWatchListMultiActions, } from './watch-list.actions'; const INITIAL_STATE: Watch...
3
feelapi/TypeStation
17c7653
src/frontend/RealityModelDisplaySettingsWidget.ts
TypeScript
www.github.com/feelapi/TypeStation/tree/main/src/frontend/RealityModelDisplaySettingsWidget.ts
https://raw.githubusercontent.com/feelapi/TypeStation/17c7653/src/frontend/RealityModelDisplaySettingsWidget.ts
feelapi/TypeStation 17c7653 src/frontend/RealityModelDisplaySettingsWidget.ts
true
200
17,495
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
0
bslindoso/alura
ebb7f01
formacao_nestjs/01_typescript_contrucao_de_uma_api_com_tipagem_segura/src/routes/petRouter.ts
TypeScript
www.github.com/bslindoso/alura/tree/main/formacao_nestjs/01_typescript_contrucao_de_uma_api_com_tipagem_segura/src/routes/petRouter.ts
https://raw.githubusercontent.com/bslindoso/alura/ebb7f01/formacao_nestjs/01_typescript_contrucao_de_uma_api_com_tipagem_segura/src/routes/petRouter.ts
bslindoso/alura ebb7f01 formacao_nestjs/01_typescript_contrucao_de_uma_api_com_tipagem_segura/src/routes/petRouter.ts
true
200
719
import express from "express"; import PetController from "../controller/PetController"; import PetRepository from "../repositories/PetRepository"; import { AppDataSource } from "../config/dataSource"; import PetEntity from "../entities/PetEntity"; const router = express.Router(); const petRepository = new PetRepositor...
4
gillo17/VinylVaultApi
62a3fb6
src/utils/saltAndHash.ts
TypeScript
www.github.com/gillo17/VinylVaultApi/tree/main/src/utils/saltAndHash.ts
https://raw.githubusercontent.com/gillo17/VinylVaultApi/62a3fb6/src/utils/saltAndHash.ts
gillo17/VinylVaultApi 62a3fb6 src/utils/saltAndHash.ts
true
200
850
import crypto, { pbkdf2Sync } from 'crypto'; import { injectable } from 'inversify'; @injectable() export class SaltAndHash { public hashPassword(password: string) { var salt = crypto.randomBytes(128).toString('base64'); var iterations = 10000; var hash = pbkdf2Sync( password, ...
2
OlegGorod/shopShoes
0fb95b3
src/styles/theme.ts
TypeScript
www.github.com/OlegGorod/shopShoes/tree/main/src/styles/theme.ts
https://raw.githubusercontent.com/OlegGorod/shopShoes/0fb95b3/src/styles/theme.ts
OlegGorod/shopShoes 0fb95b3 src/styles/theme.ts
true
200
1,401
export const theme = { palette: { error: { main: '#FE645E', dark: '#FE645E', light: '#FE645E', contrastText: '#FE645E', }, text: { primary: '#000000', disabled: '#5C5C5C', secondary: '#5C5C5C', }, primary: { main: '#fe645e', dark: '#fe645e', ...
6
AvitalPT/apartments
2ac2ff4
src/services/apartment.ts
TypeScript
www.github.com/AvitalPT/apartments/tree/main/src/services/apartment.ts
https://raw.githubusercontent.com/AvitalPT/apartments/2ac2ff4/src/services/apartment.ts
AvitalPT/apartments 2ac2ff4 src/services/apartment.ts
true
200
546
import axios from 'axios' import { Apartment } from "../models/Apartment" export const API = axios.create({ baseURL: "http://localhost:8585/api/apartment" }); export const addApartment = (newApartment: Apartment) =>API.post("/", newApartment); export const getAllApartments = () => API.get("/apartments"); export ...
7
phananh3012/library-management-system
d911a5b
src/main/webapp/app/entities/hold/hold.test-samples.ts
TypeScript
www.github.com/phananh3012/library-management-system/tree/main/src/main/webapp/app/entities/hold/hold.test-samples.ts
https://raw.githubusercontent.com/phananh3012/library-management-system/d911a5b/src/main/webapp/app/entities/hold/hold.test-samples.ts
phananh3012/library-management-system d911a5b src/main/webapp/app/entities/hold/hold.test-samples.ts
true
200
550
import dayjs from 'dayjs/esm'; import { IHold, NewHold } from './hold.model'; export const sampleWithRequiredData: IHold = { id: 6416, }; export const sampleWithPartialData: IHold = { id: 12790, }; export const sampleWithFullData: IHold = { id: 31474, startTime: dayjs('2024-05-21T06:33'), endTime: dayjs('...
5
israaBR/eatery
1a63be6
src/app/components/login-form/login-form.component.ts
TypeScript
www.github.com/israaBR/eatery/tree/main/src/app/components/login-form/login-form.component.ts
https://raw.githubusercontent.com/israaBR/eatery/1a63be6/src/app/components/login-form/login-form.component.ts
israaBR/eatery 1a63be6 src/app/components/login-form/login-form.component.ts
true
200
1,787
import { Component } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { Customer } from 'src/app/models/user'; import { AdminService } from 'src/app/services/admin.service'; import { CustomerService } from 'src/app/services/custo...
1
JoaoNaif/aimdo-backend
3368376
src/infra/http/controller/fetch-notification.controller.e2e-spec.ts
TypeScript
www.github.com/JoaoNaif/aimdo-backend/tree/main/src/infra/http/controller/fetch-notification.controller.e2e-spec.ts
https://raw.githubusercontent.com/JoaoNaif/aimdo-backend/3368376/src/infra/http/controller/fetch-notification.controller.e2e-spec.ts
JoaoNaif/aimdo-backend 3368376 src/infra/http/controller/fetch-notification.controller.e2e-spec.ts
true
200
1,841
import { AppModule } from '@/infra/app.module' import { DatabaseModule } from '@/infra/database/database.module' import { INestApplication } from '@nestjs/common' import { JwtService } from '@nestjs/jwt' import { Test } from '@nestjs/testing' import { NotificationFactory } from 'test/factories/make-notification' ...
3
turbodt/threejs-book-dist
340d19d
camera.d.ts
TypeScript
www.github.com/turbodt/threejs-book-dist/tree/main/camera.d.ts
https://raw.githubusercontent.com/turbodt/threejs-book-dist/340d19d/camera.d.ts
turbodt/threejs-book-dist 340d19d camera.d.ts
true
200
749
import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; import { Object3DComponent } from './object3d-component'; export interface ICameraProps { renderer: THREE.Renderer; } export interface ICameraState { controls: OrbitControls; } export declare class Camera ...
0
libft/types
a9a263c
meta/util/includes.ts
TypeScript
www.github.com/libft/types/tree/main/meta/util/includes.ts
https://raw.githubusercontent.com/libft/types/a9a263c/meta/util/includes.ts
libft/types a9a263c meta/util/includes.ts
true
200
611
function headerComparator(a: string, b: string) { if ( (a.startsWith("<") && b.startsWith("<")) || (a.startsWith('"') && b.startsWith('"')) ) { return a.localeCompare(b); } return a.startsWith("<") ? -1 : 1; } export function includes(...headers: string[]): string { return Array.from(new Set(head...
4
221219-dotnet-fs-chennai/TP-frontend
d37ed12
complete-ui/src/app/components/nurse/nurse-nav/pick-appointments/pick-appointments.component.ts
TypeScript
www.github.com/221219-dotnet-fs-chennai/TP-frontend/tree/main/complete-ui/src/app/components/nurse/nurse-nav/pick-appointments/pick-appointments.component.ts
https://raw.githubusercontent.com/221219-dotnet-fs-chennai/TP-frontend/d37ed12/complete-ui/src/app/components/nurse/nurse-nav/pick-appointments/pick-appointments.component.ts
221219-dotnet-fs-chennai/TP-frontend d37ed12 complete-ui/src/app/components/nurse/nurse-nav/pick-appointments/pick-appointments.component.ts
true
200
3,593
import { Component } from '@angular/core'; import { Doctor } from 'src/app/components/admin/add-doctor/doctor'; import { Appointment } from 'src/app/components/doctor/notification/notification.component'; import { patientinfo } from 'src/app/models/patientinfomodel'; import { AppointmentServiceService } from 'src/app/s...
2
DevArt-Govind/TechTrivia
fd5389d
TechTrivia/src/app/app.component.ts
TypeScript
www.github.com/DevArt-Govind/TechTrivia/tree/main/TechTrivia/src/app/app.component.ts
https://raw.githubusercontent.com/DevArt-Govind/TechTrivia/fd5389d/TechTrivia/src/app/app.component.ts
DevArt-Govind/TechTrivia fd5389d TechTrivia/src/app/app.component.ts
true
200
424
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router'; import { LoaderService } from './sub_pages/loader.service'; @Component({ selector: 'app-root', templateUrl: './app.compon...
6
aquasu0/cal
600ed96
src/hooks/useCalculator.ts
TypeScript
www.github.com/aquasu0/cal/tree/main/src/hooks/useCalculator.ts
https://raw.githubusercontent.com/aquasu0/cal/600ed96/src/hooks/useCalculator.ts
aquasu0/cal 600ed96 src/hooks/useCalculator.ts
true
200
6,575
import { useEffect } from 'react'; import { useCalculatorContext, EmotionType } from '../context/CalculatorContext'; import { EmotionEngine } from '../utils/emotionEngine'; export function useCalculator() { const { state, dispatch } = useCalculatorContext(); // 숫자 입력 처리 const appendDigit = (digit: string) => ...
7
RafaelDamasco/Etho-bootcamp-backend
0b077b7
src/services/MovieService.ts
TypeScript
www.github.com/RafaelDamasco/Etho-bootcamp-backend/tree/main/src/services/MovieService.ts
https://raw.githubusercontent.com/RafaelDamasco/Etho-bootcamp-backend/0b077b7/src/services/MovieService.ts
RafaelDamasco/Etho-bootcamp-backend 0b077b7 src/services/MovieService.ts
true
200
347
import loadMovies from '../utils/loadMovies'; import BaseService from './BaseService'; class MovieService extends BaseService { constructor() { super(); } async listAll() { const result = await this.getInstance().get('/movies'); const movies = result.data.data return loadMovies(movies) } } ex...
5
chetansharma428/Admin-Pannel
5b2bdee
src/app/components/corporate/corporate-section/corporate-section.component.ts
TypeScript
www.github.com/chetansharma428/Admin-Pannel/tree/main/src/app/components/corporate/corporate-section/corporate-section.component.ts
https://raw.githubusercontent.com/chetansharma428/Admin-Pannel/5b2bdee/src/app/components/corporate/corporate-section/corporate-section.component.ts
chetansharma428/Admin-Pannel 5b2bdee src/app/components/corporate/corporate-section/corporate-section.component.ts
true
200
910
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { StorageService } from '../../../lib/services/storage-service/storage.service'; @Component({ selector: 'ngx-corporate-section', templateUrl: './corporate-section.component.html', styleUrls: ['./co...
1
accelon/ptk
17dbd89
zip/remote.ts
TypeScript
www.github.com/accelon/ptk/tree/main/zip/remote.ts
https://raw.githubusercontent.com/accelon/ptk/17dbd89/zip/remote.ts
accelon/ptk 17dbd89 zip/remote.ts
true
200
3,670
import {ZipStore} from './zipstore.ts'; const readBlob = async (file, zipbuf, fileoffset, end, bufferoffset)=>{ const blob=file.slice(fileoffset,end); const buf=await blob.arrayBuffer(); const arr=new Uint8Array(buf); if (typeof bufferoffset=='undefined') bufferoffset=fileoffset; zipbuf.set(arr,buff...
0
biruk-ay/ticketBackend
f2aa674
src/apps/auth/middleware/auth.middleware.ts
TypeScript
www.github.com/biruk-ay/ticketBackend/tree/main/src/apps/auth/middleware/auth.middleware.ts
https://raw.githubusercontent.com/biruk-ay/ticketBackend/f2aa674/src/apps/auth/middleware/auth.middleware.ts
biruk-ay/ticketBackend f2aa674 src/apps/auth/middleware/auth.middleware.ts
true
200
1,761
import { Request, Response, NextFunction } from "express"; import jwt, { JwtPayload, Secret } from "jsonwebtoken"; import { IUser, UserModel } from "../model/user.model.js"; interface AuthRequest extends Request { user?: { id: string; name: string; email: string; role: string; }...
3
tech-andgar/solid-example
76890cb
05_dependency_inversion/typescript/index-bad.ts
TypeScript
www.github.com/tech-andgar/solid-example/tree/main/05_dependency_inversion/typescript/index-bad.ts
https://raw.githubusercontent.com/tech-andgar/solid-example/76890cb/05_dependency_inversion/typescript/index-bad.ts
tech-andgar/solid-example 76890cb 05_dependency_inversion/typescript/index-bad.ts
true
200
959
class Store { constructor(user: any) { // this.stripe = new Stripe(user) this.user = user; this.paypal = new Paypal(); } // stripe: Stripe paypal: Paypal; user: any; purchaseBike(quantity: number) { // this.stripe.makePayment(200 * quantity * 100) this.paypal.makePayment(this.user, 200...
4
alaanescobedo/nest-jwt-cookies-github-auth
bc112db
src/auth/controllers/auth.github.controller.ts
TypeScript
www.github.com/alaanescobedo/nest-jwt-cookies-github-auth/tree/main/src/auth/controllers/auth.github.controller.ts
https://raw.githubusercontent.com/alaanescobedo/nest-jwt-cookies-github-auth/bc112db/src/auth/controllers/auth.github.controller.ts
alaanescobedo/nest-jwt-cookies-github-auth bc112db src/auth/controllers/auth.github.controller.ts
true
200
1,299
import { Controller, Get, HttpCode, HttpStatus, Res, UseGuards } from '@nestjs/common'; import { Response } from 'express'; import AUTH_CONFIG from '../config' import { Public } from '../decorators/public.decorator'; import { CurrentUser } from '../decorators'; import { GithubGuard } from '../guards/github.guard'; impo...
6
Zulu55/skills-ranking-and-monitoring-system-SRMS
6e6469a
src/Frontend/src/app/modules/profiles/provinces/province-dialog/province-dialog.component.ts
TypeScript
www.github.com/Zulu55/skills-ranking-and-monitoring-system-SRMS/tree/main/src/Frontend/src/app/modules/profiles/provinces/province-dialog/province-dialog.component.ts
https://raw.githubusercontent.com/Zulu55/skills-ranking-and-monitoring-system-SRMS/6e6469a/src/Frontend/src/app/modules/profiles/provinces/province-dialog/province-dialog.component.ts
Zulu55/skills-ranking-and-monitoring-system-SRMS 6e6469a src/Frontend/src/app/modules/profiles/provinces/province-dialog/province-dialog.component.ts
true
200
1,602
import { CommonModule } from '@angular/common'; import { Component, Inject, OnInit, Signal, signal } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef, } from '@angular/material/dial...
2
JolyMolyf/ricg_strapi
e143869
types/generated/components.d.ts
TypeScript
www.github.com/JolyMolyf/ricg_strapi/tree/main/types/generated/components.d.ts
https://raw.githubusercontent.com/JolyMolyf/ricg_strapi/e143869/types/generated/components.d.ts
JolyMolyf/ricg_strapi e143869 types/generated/components.d.ts
true
200
375
import type { Schema, Attribute } from '@strapi/strapi'; export interface ProductProduct extends Schema.Component { collectionName: 'components_product_products'; info: { displayName: 'product'; }; attributes: {}; } declare module '@strapi/types' { export module Shared { export interface Components ...
7
dusunax/nest-js-101
76baea7
src/interceptors/serialize.interceptor.ts
TypeScript
www.github.com/dusunax/nest-js-101/tree/main/src/interceptors/serialize.interceptor.ts
https://raw.githubusercontent.com/dusunax/nest-js-101/76baea7/src/interceptors/serialize.interceptor.ts
dusunax/nest-js-101 76baea7 src/interceptors/serialize.interceptor.ts
true
200
697
import { UseInterceptors, CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common"; import { plainToInstance } from "class-transformer"; import { Observable, map } from "rxjs"; export function serialize<T>(dto: new (...args: any[]) => T) { return UseInterceptors(new SerializeInterceptor(dto)); } expor...
1
TriggerMeNot/backend
435b17b
app/controllers/auth.test.ts
TypeScript
www.github.com/TriggerMeNot/backend/tree/main/app/controllers/auth.test.ts
https://raw.githubusercontent.com/TriggerMeNot/backend/435b17b/app/controllers/auth.test.ts
TriggerMeNot/backend 435b17b app/controllers/auth.test.ts
true
200
362
import { assertEquals } from "@std/assert"; import authController from "./auth.ts"; Deno.test({ name: "Auth controller has login function", fn() { assertEquals(typeof authController.login, "function"); }, }); Deno.test({ name: "Auth controller has register function", fn() { assertEquals(typeof authC...
3
nandalalainfotech/quality-matrix-frontend
12d19a8
src/app/dash-board/setting/app-language-setting/app-language-setting.component.ts
TypeScript
www.github.com/nandalalainfotech/quality-matrix-frontend/tree/main/src/app/dash-board/setting/app-language-setting/app-language-setting.component.ts
https://raw.githubusercontent.com/nandalalainfotech/quality-matrix-frontend/12d19a8/src/app/dash-board/setting/app-language-setting/app-language-setting.component.ts
nandalalainfotech/quality-matrix-frontend 12d19a8 src/app/dash-board/setting/app-language-setting/app-language-setting.component.ts
true
200
10,255
import { Component, Input, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, NgForm, Validators } from '@angular/forms'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { TranslateService } from '@ngx-translate/core'; import { GridOptions } from 'ag-grid-community'; import { deserialize } fr...
4
dayvidwhy/quarters
71c693a
services/inventory/index.ts
TypeScript
www.github.com/dayvidwhy/quarters/tree/main/services/inventory/index.ts
https://raw.githubusercontent.com/dayvidwhy/quarters/71c693a/services/inventory/index.ts
dayvidwhy/quarters 71c693a services/inventory/index.ts
true
200
1,105
import { createItem, openDb } from "@quarters/store"; import { registerDeviceMessageSchema, type RegisterDeviceMessageSchema } from "@quarters/validators"; import { inventoryTopic } from "@quarters/streams"; let inventoryStream; try { inventoryStream = inventoryTopic("quarters/inventory-service"); } catch (error) ...
2
JUtupe/cartogo-mobile
7546717
src/navigation/screens.ts
TypeScript
www.github.com/JUtupe/cartogo-mobile/tree/main/src/navigation/screens.ts
https://raw.githubusercontent.com/JUtupe/cartogo-mobile/7546717/src/navigation/screens.ts
JUtupe/cartogo-mobile 7546717 src/navigation/screens.ts
true
200
889
import {NavigationProp} from '@react-navigation/native'; export type RootStackParamList = { Privacy: undefined; Login: undefined; Home: undefined; NotMember: undefined; CreateRental: undefined; EditRental: undefined; CreateOrder: undefined; EditOrder: {orderId: string}; Delivery: {orderId: string}; ...
0
ankush109/Pratilipi
a6dac0f
API-Gateway/middlewares/index.ts
TypeScript
www.github.com/ankush109/Pratilipi/tree/main/API-Gateway/middlewares/index.ts
https://raw.githubusercontent.com/ankush109/Pratilipi/a6dac0f/API-Gateway/middlewares/index.ts
ankush109/Pratilipi a6dac0f API-Gateway/middlewares/index.ts
true
200
642
import axios from "axios"; export const validateToken = async (req:any) => { console.log("Validating token"); const authHeader = req.headers.authorization; if (!authHeader) { throw new Error('Authorization token required'); } const token = authHeader.split(" ")[1]; console.log(token, "GraphQL token");...
1
MazenBoulares/Mission-Entrepise-Front
7d74cb0
src/app/components/property/property-image-box/property-image-box-home-section/property-image-box-home-section.component.ts
TypeScript
www.github.com/MazenBoulares/Mission-Entrepise-Front/tree/main/src/app/components/property/property-image-box/property-image-box-home-section/property-image-box-home-section.component.ts
https://raw.githubusercontent.com/MazenBoulares/Mission-Entrepise-Front/7d74cb0/src/app/components/property/property-image-box/property-image-box-home-section/property-image-box-home-section.component.ts
MazenBoulares/Mission-Entrepise-Front 7d74cb0 src/app/components/property/property-image-box/property-image-box-home-section/property-image-box-home-section.component.ts
true
200
1,149
import { Component, Input } from '@angular/core'; import { Gallery, ImageItem, ImageSize, ThumbnailsPosition } from 'ng-gallery'; import { Lightbox } from 'ng-gallery/lightbox'; @Component({ selector: 'app-property-image-box-home-section', templateUrl: './property-image-box-home-section.component.html', styleUrl...
4
lukadev-0/dotfiles
fd7da0b
ags/src/widgets/bar/workspaces.ts
TypeScript
www.github.com/lukadev-0/dotfiles/tree/main/ags/src/widgets/bar/workspaces.ts
https://raw.githubusercontent.com/lukadev-0/dotfiles/fd7da0b/ags/src/widgets/bar/workspaces.ts
lukadev-0/dotfiles fd7da0b ags/src/widgets/bar/workspaces.ts
true
200
958
import { hyprland } from "resource:///com/github/Aylur/ags/service/hyprland.js"; import styles from "./workspaces.module.scss"; export function Workspaces() { return Widget.Box({ children: Array.from({ length: 10 }, (_, i) => { const workspaceIdx = i + 1; return Widget.Button({ className: s...
3
priyanshu-bharti/pastebin-clone-backend
ed0cae2
src/Controllers/PasteController.ts
TypeScript
www.github.com/priyanshu-bharti/pastebin-clone-backend/tree/main/src/Controllers/PasteController.ts
https://raw.githubusercontent.com/priyanshu-bharti/pastebin-clone-backend/ed0cae2/src/Controllers/PasteController.ts
priyanshu-bharti/pastebin-clone-backend ed0cae2 src/Controllers/PasteController.ts
true
200
2,488
import { Response, Request } from "express"; import PasteModel from "../Model/types/PasteModel.js"; import { createPasteInDb, getAllPasteFromDb, getPasteByIdFromDb, deletePasteByIdFromDb, updatePasteToDb, getPasteByPasteIdFromDb, getAllUserPasteFromDb, } from "../Services/PasteService.js"; ...
2
AndreaBonalumi/BookingSpringAngular
102887b
src/app/interfaces/user.ts
TypeScript
www.github.com/AndreaBonalumi/BookingSpringAngular/tree/main/src/app/interfaces/user.ts
https://raw.githubusercontent.com/AndreaBonalumi/BookingSpringAngular/102887b/src/app/interfaces/user.ts
AndreaBonalumi/BookingSpringAngular 102887b src/app/interfaces/user.ts
true
200
340
import {Moment} from "moment"; export interface User { [key: string]: any idUser ?: number; firstName: string; lastName: string; username: string; password: string; email: string; birthday ?: Moment; admin: boolean; profilePhoto: string | null; photo: File | null; drivingLicense ?: string; cre...
0
TheMorningCoder/ProductutilityWebsite
52505a1
WebsiteFrontend/saumya_angular_exit/src/app/Pipes/filters.pipe.ts
TypeScript
www.github.com/TheMorningCoder/ProductutilityWebsite/tree/main/WebsiteFrontend/saumya_angular_exit/src/app/Pipes/filters.pipe.ts
https://raw.githubusercontent.com/TheMorningCoder/ProductutilityWebsite/52505a1/WebsiteFrontend/saumya_angular_exit/src/app/Pipes/filters.pipe.ts
TheMorningCoder/ProductutilityWebsite 52505a1 WebsiteFrontend/saumya_angular_exit/src/app/Pipes/filters.pipe.ts
true
200
385
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'filters' }) export class FiltersPipe implements PipeTransform { transform(value: any, args?: any): any { if(!value)return null; if(!args)return value; args = args.toLowerCase(); return value.filter(function(data){ return...
1
alexandre-em/clean-arch-auth
58ec981
src/infrastructure/services/bcrypt/bcrypt.service.ts
TypeScript
www.github.com/alexandre-em/clean-arch-auth/tree/main/src/infrastructure/services/bcrypt/bcrypt.service.ts
https://raw.githubusercontent.com/alexandre-em/clean-arch-auth/58ec981/src/infrastructure/services/bcrypt/bcrypt.service.ts
alexandre-em/clean-arch-auth 58ec981 src/infrastructure/services/bcrypt/bcrypt.service.ts
true
200
399
import { Injectable } from '@nestjs/common'; import * as bcrypt from 'bcrypt'; @Injectable() export class BcryptService { rounds: number = 10; async hash(hashString: string): Promise<string> { return await bcrypt.hash(hashString, this.rounds); } async compare(password: string, hashPassword: string): Pro...
4
Nguyenhongphuc98/StockDispatch
562d26a
src/utils/safe.ts
TypeScript
www.github.com/Nguyenhongphuc98/StockDispatch/tree/main/src/utils/safe.ts
https://raw.githubusercontent.com/Nguyenhongphuc98/StockDispatch/562d26a/src/utils/safe.ts
Nguyenhongphuc98/StockDispatch 562d26a src/utils/safe.ts
true
200
719
import Logger from "../loger"; export function CatchErrors( target: any, propertyKey: string, descriptor: PropertyDescriptor ) { const originalMethod = descriptor.value; descriptor.value = async function (...args: any[]) { try { return await originalMethod.apply(this, args); } catch (error) { ...
2
t4katona/todo-js
eb23e43
modules/listeners/tasks/open-close/close-more-task-actions.listeners.ts
TypeScript
www.github.com/t4katona/todo-js/tree/main/modules/listeners/tasks/open-close/close-more-task-actions.listeners.ts
https://raw.githubusercontent.com/t4katona/todo-js/eb23e43/modules/listeners/tasks/open-close/close-more-task-actions.listeners.ts
t4katona/todo-js eb23e43 modules/listeners/tasks/open-close/close-more-task-actions.listeners.ts
true
200
415
// Closes the dropdown whenever user clicks outside of it (() => { document.addEventListener("click", (e) => { const target = e.target as Element; if (!target.closest(".task-more-actions-container")) { document .querySelectorAll(".task-more-action-items-container") .forEach((container) =...
3
DavidCodina/react-2025-template
40128e0
tw-plugins/tabsPlugin.ts
TypeScript
www.github.com/DavidCodina/react-2025-template/tree/main/tw-plugins/tabsPlugin.ts
https://raw.githubusercontent.com/DavidCodina/react-2025-template/40128e0/tw-plugins/tabsPlugin.ts
DavidCodina/react-2025-template 40128e0 tw-plugins/tabsPlugin.ts
true
200
6,684
import plugin from 'tailwindcss/plugin' /* ======================================================================== tabsPlugin ======================================================================== */ export const tabsPlugin = plugin(function (pluginApi) { const { addComponents } = p...
0
nikolov9996/all-natural-service
35c69d0
src/comments/comments.model.ts
TypeScript
www.github.com/nikolov9996/all-natural-service/tree/main/src/comments/comments.model.ts
https://raw.githubusercontent.com/nikolov9996/all-natural-service/35c69d0/src/comments/comments.model.ts
nikolov9996/all-natural-service 35c69d0 src/comments/comments.model.ts
true
200
630
// comment.model.ts import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document, Types } from 'mongoose'; import { Product } from 'src/products/product.model'; import { User } from 'src/user/user.model'; @Schema({ timestamps: true }) export class Comment extends Document { @Prop({ type: Types.O...
1
IBM/vscode-ibmi-projectexplorer-types
9b5e53c
views/jobLog/command.d.ts
TypeScript
www.github.com/IBM/vscode-ibmi-projectexplorer-types/tree/main/views/jobLog/command.d.ts
https://raw.githubusercontent.com/IBM/vscode-ibmi-projectexplorer-types/9b5e53c/views/jobLog/command.d.ts
IBM/vscode-ibmi-projectexplorer-types 9b5e53c views/jobLog/command.d.ts
true
200
590
import { TreeItem, WorkspaceFolder } from "vscode"; import { CommandInfo } from "../../jobLog"; import { ProjectExplorerTreeItem } from "../projectExplorer/projectExplorerTreeItem"; import { ContextValue } from "../../projectExplorerApi"; /** * Tree item for a command. */ export default class Command extends TreeItem...
4
56kcloud/56kcloud-website
6b5f8bc
apps/cms/src/api/team-member/controllers/team-member.ts
TypeScript
www.github.com/56kcloud/56kcloud-website/tree/main/apps/cms/src/api/team-member/controllers/team-member.ts
https://raw.githubusercontent.com/56kcloud/56kcloud-website/6b5f8bc/apps/cms/src/api/team-member/controllers/team-member.ts
56kcloud/56kcloud-website 6b5f8bc apps/cms/src/api/team-member/controllers/team-member.ts
true
200
1,095
import {factories} from '@strapi/strapi' import {getAllPublishedSlugs} from '../../../utils/toolbox' /** * team-member controller */ const uid = 'api::team-member.team-member' async function getBySlug(ctx) { const teamMember = await strapi.db.query(uid).findOne({ where: {slug: ctx.params.id}, populate: ['...
3
romuloxaguiar/portal-de-prompt-bin0h4
22f5ccd
src/backend/src/prompt-service/services/version.service.ts
TypeScript
www.github.com/romuloxaguiar/portal-de-prompt-bin0h4/tree/main/src/backend/src/prompt-service/services/version.service.ts
https://raw.githubusercontent.com/romuloxaguiar/portal-de-prompt-bin0h4/22f5ccd/src/backend/src/prompt-service/services/version.service.ts
romuloxaguiar/portal-de-prompt-bin0h4 22f5ccd src/backend/src/prompt-service/services/version.service.ts
true
200
10,468
/** * @fileoverview Service implementation for version control functionality in the Prompts Portal. * Handles version creation, comparison, history tracking, and version management with * enhanced change tracking capabilities. * * @version 1.0.0 */ import { diffChars } from 'diff'; // v5.1.0 import { v4 as uuid...
0
tumon-art/speeda
14d47a6
drizzle.config.ts
TypeScript
www.github.com/tumon-art/speeda/tree/main/drizzle.config.ts
https://raw.githubusercontent.com/tumon-art/speeda/14d47a6/drizzle.config.ts
tumon-art/speeda 14d47a6 drizzle.config.ts
true
200
414
import type { Config } from "drizzle-kit"; import dotenv from "dotenv"; dotenv.config({ path: ".env.development.local", }); if (!process.env.POSTGRES_URL) { throw new Error("POSTGRES_URL is missing"); } export default { schema: "./drizzle/schema.ts", out: "./drizzle/migrations", driver: "pg", dbCredentia...
1
rafailg/life_boxes
5ec8d23
src/dateHelpers.ts
TypeScript
www.github.com/rafailg/life_boxes/tree/main/src/dateHelpers.ts
https://raw.githubusercontent.com/rafailg/life_boxes/5ec8d23/src/dateHelpers.ts
rafailg/life_boxes 5ec8d23 src/dateHelpers.ts
true
200
942
export function addWeeks(startDate: Date, weeks: number): Date { const daysToAdd = weeks * 7; const resultDate = new Date(startDate); resultDate.setDate(resultDate.getDate() + daysToAdd); return resultDate; } export function formatDateToInput(date: Date): string { console.log(date) console.log...
4
Fellipe-M-Silva/piw2023.1
91adb2a
projeto final/backend/src/routes/annotation.route.ts
TypeScript
www.github.com/Fellipe-M-Silva/piw2023.1/tree/main/projeto final/backend/src/routes/annotation.route.ts
https://raw.githubusercontent.com/Fellipe-M-Silva/piw2023.1/91adb2a/projeto%20final/backend/src/routes/annotation.route.ts
Fellipe-M-Silva/piw2023.1 91adb2a projeto final/backend/src/routes/annotation.route.ts
true
200
891
import { Router } from "express"; import { create, list, find, update, remove } from "../controllers/annotation.controller"; import bodyParser from "body-parser"; import { postAnnotationSchema, putAnnotationSchema } from "../validators/annotation.validator"; import { authenticateJWT } from "../middleware/authMiddleware...
2
CodeVibranium/Notes
7301047
Typescript/2.Maps/src/GoogleMap.ts
TypeScript
www.github.com/CodeVibranium/Notes/tree/main/Typescript/2.Maps/src/GoogleMap.ts
https://raw.githubusercontent.com/CodeVibranium/Notes/7301047/Typescript/2.Maps/src/GoogleMap.ts
CodeVibranium/Notes 7301047 Typescript/2.Maps/src/GoogleMap.ts
true
200
1,013
// import User from "./User"; // import Company from "./Company"; ` 1. contentString which is HTML `; interface Mapablle { location: { lat: string; lng: string; }; title?: string; } export default class GoogleMap { private map = google.maps.Map; private infoWindow; private marker; constructor(div...
3
arekdurlik/dbwa-api
6767a94
middlewares/verify-token.ts
TypeScript
www.github.com/arekdurlik/dbwa-api/tree/main/middlewares/verify-token.ts
https://raw.githubusercontent.com/arekdurlik/dbwa-api/6767a94/middlewares/verify-token.ts
arekdurlik/dbwa-api 6767a94 middlewares/verify-token.ts
true
200
1,497
import { NextFunction, Request, Response } from 'express' import jwt from 'jsonwebtoken' import { TokenPayload, getTokenPair } from '../controllers/auth.controller' export const verifyToken = (req: Request, res: Response, next: NextFunction) => { const token = req.cookies['token'] const refreshToken = req.cookies...
0
huangxin290/algorithm
cd69f46
leetcode/322.ts
TypeScript
www.github.com/huangxin290/algorithm/tree/main/leetcode/322.ts
https://raw.githubusercontent.com/huangxin290/algorithm/cd69f46/leetcode/322.ts
huangxin290/algorithm cd69f46 leetcode/322.ts
true
200
826
/** * 给你一个整数数组 coins ,表示不同面额的硬币;以及一个整数 amount ,表示总金额。 计算并返回可以凑成总金额所需的 最少的硬币个数 。如果没有任何一种硬币组合能组成总金额,返回 -1 。 你可以认为每种硬币的数量是无限的。 * @param coins * @param amount */ function coinChange(coins: number[], amount: number): number { const length = coins.length const f = new Array(amount + 1).fill(Number.MAX_VALUE) f...
1
IvanovMike2023/gallows
ebd0c47
src/reducerToCount.ts
TypeScript
www.github.com/IvanovMike2023/gallows/tree/main/src/reducerToCount.ts
https://raw.githubusercontent.com/IvanovMike2023/gallows/ebd0c47/src/reducerToCount.ts
IvanovMike2023/gallows ebd0c47 src/reducerToCount.ts
true
200
598
type incrementACType={ type: 'INCREMENT' } type resetCountertACType={ type: 'RESET' } type RootTypeAC = incrementACType | resetCountertACType export const reducerToCount=(state:any,action:RootTypeAC)=>{ switch (action.type){ case 'INCREMENT': { return state+1 } case 'RE...
4
Bahy21/cartisan-me
acbca9d
functions/src/index.ts
TypeScript
www.github.com/Bahy21/cartisan-me/tree/main/functions/src/index.ts
https://raw.githubusercontent.com/Bahy21/cartisan-me/acbca9d/functions/src/index.ts
Bahy21/cartisan-me acbca9d functions/src/index.ts
true
200
3,382
import * as functions from 'firebase-functions'; import * as admin from 'firebase-admin'; admin.initializeApp(functions.config().firebase); import * as cors from 'cors'; const posts = require('./modules/routes/v1/posts/posts'); const userProfile = require('./modules/routes/v1/user/user_profile'); const blockFunctions ...
2
apnllp-a/Schedule-Angular
76f6f8b
src/app/views/work-shift-page/work-shift-page-routing.module.ts
TypeScript
www.github.com/apnllp-a/Schedule-Angular/tree/main/src/app/views/work-shift-page/work-shift-page-routing.module.ts
https://raw.githubusercontent.com/apnllp-a/Schedule-Angular/76f6f8b/src/app/views/work-shift-page/work-shift-page-routing.module.ts
apnllp-a/Schedule-Angular 76f6f8b src/app/views/work-shift-page/work-shift-page-routing.module.ts
true
200
373
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { WorkShiftPageComponent } from './work-shift-page.component'; const routes: Routes = [{ path: '', component: WorkShiftPageComponent }]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterMo...
3
owlzou/rect-ui
bbb4bc6
lib/packages/components/switch/tests/switch.test.ts
TypeScript
www.github.com/owlzou/rect-ui/tree/main/lib/packages/components/switch/tests/switch.test.ts
https://raw.githubusercontent.com/owlzou/rect-ui/bbb4bc6/lib/packages/components/switch/tests/switch.test.ts
owlzou/rect-ui bbb4bc6 lib/packages/components/switch/tests/switch.test.ts
true
200
811
import { test, expect } from 'vitest' import { mount } from '@vue/test-utils' import { RSwitch } from "../.." const Component = { template: `<r-switch :v-model="checked">选择框</r-switch>`, components: { RSwitch }, data() { return { checked: false } } } test('displays label', () => { const wr...
1
bebbi/dcm-organize
4717a89
src/collectMappings.ts
TypeScript
www.github.com/bebbi/dcm-organize/tree/main/src/collectMappings.ts
https://raw.githubusercontent.com/bebbi/dcm-organize/4717a89/src/collectMappings.ts
bebbi/dcm-organize 4717a89 src/collectMappings.ts
true
200
3,333
import * as dcmjs from 'dcmjs' import deidentifyPS315E, { defaultPs315Options } from './deidentifyPS315E' import getParser from './getParser' import { specVersion } from './config/specVersion' import { get as _get } from 'lodash' import type { TMappingOptions, TMapResults, TMappingSpecification, } from './types'...
4