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
hiagoLF/gofinances
c5f0f32
src/components/SignInSocialButton/styles.ts
TypeScript
www.github.com/hiagoLF/gofinances/tree/main/src/components/SignInSocialButton/styles.ts
https://raw.githubusercontent.com/hiagoLF/gofinances/c5f0f32/src/components/SignInSocialButton/styles.ts
hiagoLF/gofinances c5f0f32 src/components/SignInSocialButton/styles.ts
true
200
780
import { RFValue } from "react-native-responsive-fontsize"; import { RectButton } from "react-native-gesture-handler"; import styled from "styled-components/native"; export const Button = styled(RectButton)` height: ${RFValue(56)}px; background-color: ${({ theme }) => theme.colors.shape}; border-radius: 5px; ...
0
arunjithsurendran22/F4WEB
a45c588
src/store/cartSlice.ts
TypeScript
www.github.com/arunjithsurendran22/F4WEB/tree/main/src/store/cartSlice.ts
https://raw.githubusercontent.com/arunjithsurendran22/F4WEB/a45c588/src/store/cartSlice.ts
arunjithsurendran22/F4WEB a45c588 src/store/cartSlice.ts
true
200
7,975
import { cartApi } from "@/services/cartService"; import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import toast from "react-hot-toast"; interface CartItem { productId: string | null; storeId?: string | undefined; isSubProduct: boolean; subProductId?: string | null; cartQuantity: number; su...
1
kortkamp/school-management-api
41f15d5
src/modules/exams/infra/typeorm/repositories/ExamResultsRepository.ts
TypeScript
www.github.com/kortkamp/school-management-api/tree/main/src/modules/exams/infra/typeorm/repositories/ExamResultsRepository.ts
https://raw.githubusercontent.com/kortkamp/school-management-api/41f15d5/src/modules/exams/infra/typeorm/repositories/ExamResultsRepository.ts
kortkamp/school-management-api 41f15d5 src/modules/exams/infra/typeorm/repositories/ExamResultsRepository.ts
true
200
2,007
import { ICreateExamResultDTO } from '@modules/exams/dtos/ICreateExamResultDTO'; import { IExamResultsRepository } from '@modules/exams/repositories/IExamResultsRepository'; import { Repository } from 'typeorm'; import { FilterBuilder, IFilterQuery } from 'typeorm-dynamic-filters'; import { AppDataSource } from '@shar...
2
SujalGeek/typescript-practice
8ad05a6
arrays/enums.ts
TypeScript
www.github.com/SujalGeek/typescript-practice/tree/main/arrays/enums.ts
https://raw.githubusercontent.com/SujalGeek/typescript-practice/8ad05a6/arrays/enums.ts
SujalGeek/typescript-practice 8ad05a6 arrays/enums.ts
true
200
278
// enum const enum SeatChoice { AISLE =10 , MIDDLE = 22, WINDOW } const hcSeat = SeatChoice.AISLE; const enum SeatChoice2 { AISLE ="aisle" , MIDDLE = 22, WINDOW } enum SeatChoice3 { AISLE ="aisle" , MIDDLE = "middle", WINDOW = "window", CUSTOM = "custom" }
6
nip10/github-explorer
2fc158c
lib/supabase/useDeleteBookmark.ts
TypeScript
www.github.com/nip10/github-explorer/tree/main/lib/supabase/useDeleteBookmark.ts
https://raw.githubusercontent.com/nip10/github-explorer/2fc158c/lib/supabase/useDeleteBookmark.ts
nip10/github-explorer 2fc158c lib/supabase/useDeleteBookmark.ts
true
200
604
import { useCallback } from "react"; import { useSupabaseClient, useUser } from "@supabase/auth-helpers-react"; import type { Database } from "@/db/types"; const useDeleteBookmark = () => { const supabaseClient = useSupabaseClient<Database>(); const user = useUser(); const createBookmark = useCallback( async...
3
Ismailharik/-Multi-Universe-eCommerce-Platform
2c4e261
noble-sense-client/src/app/shop/pages/shop-category/shop-category.component.ts
TypeScript
www.github.com/Ismailharik/-Multi-Universe-eCommerce-Platform/tree/main/noble-sense-client/src/app/shop/pages/shop-category/shop-category.component.ts
https://raw.githubusercontent.com/Ismailharik/-Multi-Universe-eCommerce-Platform/2c4e261/noble-sense-client/src/app/shop/pages/shop-category/shop-category.component.ts
Ismailharik/-Multi-Universe-eCommerce-Platform 2c4e261 noble-sense-client/src/app/shop/pages/shop-category/shop-category.component.ts
true
200
659
import { Router } from '@angular/router'; import { ICategory } from '@/types/category-type'; import { Component } from '@angular/core'; import category_data from '@/data/category-data'; @Component({ selector: 'app-shop-category', templateUrl: './shop-category.component.html', styleUrls: ['./shop-category.compone...
7
esrasrtkara/RentACar-Frontend
1b45e52
rent-a-car/src/services/authCorporate.ts
TypeScript
www.github.com/esrasrtkara/RentACar-Frontend/tree/main/rent-a-car/src/services/authCorporate.ts
https://raw.githubusercontent.com/esrasrtkara/RentACar-Frontend/1b45e52/rent-a-car/src/services/authCorporate.ts
esrasrtkara/RentACar-Frontend 1b45e52 rent-a-car/src/services/authCorporate.ts
true
200
530
import { AxiosResponse } from 'axios'; import { CorporateRequest } from "../models/requests/Corporate/CorporateRequest"; import axiosInstance from '../core/utils/interceptors/axiosInterceptors'; class AuthCorporate{ public apiUrl: string; constructor() { this.apiUrl = "auth/corporate-register"; } corpo...
4
rahulAgrBej/artis_api_test
8ef940d
__tests__/supplemental.test.ts
TypeScript
www.github.com/rahulAgrBej/artis_api_test/tree/main/__tests__/supplemental.test.ts
https://raw.githubusercontent.com/rahulAgrBej/artis_api_test/8ef940d/__tests__/supplemental.test.ts
rahulAgrBej/artis_api_test 8ef940d __tests__/supplemental.test.ts
true
200
3,037
// Modules import request from "supertest"; import app from "../app"; // tests for endpoint /sciname describe("supplemental tables", () => { // GET requests tests describe('GET /', () => { /* needs to: - return a 200 status code - be a non-empty array - all elements a...
5
dybs02/SSSF-24-Project
4e7aede
web/src/stores/authStore.ts
TypeScript
www.github.com/dybs02/SSSF-24-Project/tree/main/web/src/stores/authStore.ts
https://raw.githubusercontent.com/dybs02/SSSF-24-Project/4e7aede/web/src/stores/authStore.ts
dybs02/SSSF-24-Project 4e7aede web/src/stores/authStore.ts
true
200
1,682
import { computed, ref } from 'vue' import { defineStore } from 'pinia' type User = { _id: string; display_name: string; avatar_url: string; spotify_id: string; email: string; country: string; }; const LOCAL_STORAGE_KEY_USER = 'user' const LOCAL_STORAGE_KEY_TOKEN = 'token' export const useAuthStore = def...
1
SATSAT-Ai/SATSAT-Ai
3f823a6
utils/metadata.ts
TypeScript
www.github.com/SATSAT-Ai/SATSAT-Ai/tree/main/utils/metadata.ts
https://raw.githubusercontent.com/SATSAT-Ai/SATSAT-Ai/3f823a6/utils/metadata.ts
SATSAT-Ai/SATSAT-Ai 3f823a6 utils/metadata.ts
true
200
1,498
import icon from "@/public/satsat-logo.svg"; import openGraphImage from "@/public/prompt-page-large.jpg"; import { Metadata } from "next"; export const SatSatAiMetadata: Metadata = { title: "SatSat-Ai", description: "SatSat AI is an all-in-one artificial intelligence platform that combines cutting-edge AI technolo...
0
purwadhikafullstack/JCWD0308-02
ba07441
apps/api/src/api/store/store.validation.ts
TypeScript
www.github.com/purwadhikafullstack/JCWD0308-02/tree/main/apps/api/src/api/store/store.validation.ts
https://raw.githubusercontent.com/purwadhikafullstack/JCWD0308-02/ba07441/apps/api/src/api/store/store.validation.ts
purwadhikafullstack/JCWD0308-02 ba07441 apps/api/src/api/store/store.validation.ts
true
200
971
import { ZodType, z } from 'zod'; export class StoreValidation { static readonly CREATE = z.object({ name: z.string().min(1), slug: z.string().min(8).max(512), imageUrl: z.string(), address: z.string(), coordinate: z.string(), latitude: z.string(), longitude: z.string(), cityId: z.str...
2
HeyKev-Cmd/Knowledge-Grab
56ef0f3
knowledgeGrab/src/app/student-page/student-page.component.ts
TypeScript
www.github.com/HeyKev-Cmd/Knowledge-Grab/tree/main/knowledgeGrab/src/app/student-page/student-page.component.ts
https://raw.githubusercontent.com/HeyKev-Cmd/Knowledge-Grab/56ef0f3/knowledgeGrab/src/app/student-page/student-page.component.ts
HeyKev-Cmd/Knowledge-Grab 56ef0f3 knowledgeGrab/src/app/student-page/student-page.component.ts
true
200
4,410
import { Component, OnInit,ElementRef } from '@angular/core'; import { NgForm } from '@angular/forms'; import { Router } from '@angular/router'; import { WebRequestService } from 'services/web-request.service'; import {DiscussionService} from '../services/discussion.service' import {Discussion} from '../Discussion'; im...
6
herick-develop/catalog_movie
9cbab1e
src/cache/cache.module.ts
TypeScript
www.github.com/herick-develop/catalog_movie/tree/main/src/cache/cache.module.ts
https://raw.githubusercontent.com/herick-develop/catalog_movie/9cbab1e/src/cache/cache.module.ts
herick-develop/catalog_movie 9cbab1e src/cache/cache.module.ts
true
200
456
import { Module } from "@nestjs/common"; import { RedisService } from "./redis/redis-service"; import { CacheRepository } from "./cache-repository"; import { RedisCacheRepository } from "./redis/redis-cache-repository"; @Module({ providers: [ RedisService, { provide: CacheRepos...
7
aaronmyatt/pipedown
72029c3
pdCli/mod.ts
TypeScript
www.github.com/aaronmyatt/pipedown/tree/main/pdCli/mod.ts
https://raw.githubusercontent.com/aaronmyatt/pipedown/72029c3/pdCli/mod.ts
aaronmyatt/pipedown 72029c3 pdCli/mod.ts
true
200
5,111
import type { CliInput, Input, PipeConfig} from "../pipedown.d.ts"; import projectMetadata from "./../deno.json" with { type: "json" }; import { PD_DIR } from "./helpers.ts"; import { pd, std } from "../deps.ts"; const { process } = pd; const version = projectMetadata.version; import { helpCommand } from "./helpCo...
3
Bill-Morgan/bustrip
e9da463
src/app/app.module.ts
TypeScript
www.github.com/Bill-Morgan/bustrip/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Bill-Morgan/bustrip/e9da463/src/app/app.module.ts
Bill-Morgan/bustrip e9da463 src/app/app.module.ts
true
200
535
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { CommonModule } from '@angular/common'; import { AppComponent } from './app.component'; import { FormsModule } from '@angular/forms' import { TripFormComponent } from './trip-form/trip-form.component'; @NgMod...
4
ZufarovAbdulla99/Player
923bbad
src/modules/auth/auth.controller.ts
TypeScript
www.github.com/ZufarovAbdulla99/Player/tree/main/src/modules/auth/auth.controller.ts
https://raw.githubusercontent.com/ZufarovAbdulla99/Player/923bbad/src/modules/auth/auth.controller.ts
ZufarovAbdulla99/Player 923bbad src/modules/auth/auth.controller.ts
true
200
1,007
import { Body, Controller, Post } from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { AuthService } from './auth.service'; import { SignInDto, SignUpDto } from './dtos'; @ApiTags('Auth') @Controller('auth') export class AuthController { constructor(private readonly authService: A...
5
LOKI-EMPIRE/JAVA-Assignments
e2f4b1a
3 - Day 29/Session 2/Q1_JobForm/jobform.component.ts
TypeScript
www.github.com/LOKI-EMPIRE/JAVA-Assignments/tree/main/3 - Day 29/Session 2/Q1_JobForm/jobform.component.ts
https://raw.githubusercontent.com/LOKI-EMPIRE/JAVA-Assignments/e2f4b1a/3%20-%20Day%2029/Session%202/Q1_JobForm/jobform.component.ts
LOKI-EMPIRE/JAVA-Assignments e2f4b1a 3 - Day 29/Session 2/Q1_JobForm/jobform.component.ts
true
200
733
import { Component, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; @Component({ selector: 'app-jobform', templateUrl: './jobform.component.html', styleUrls: ['./jobform.component.css'] }) export class JobformComponent implements OnInit { submitted: boolean = false; formData: NgForm;...
1
weicongzhan/zhihuishu_bolt
be956e5
src/localization/translations.ts
TypeScript
www.github.com/weicongzhan/zhihuishu_bolt/tree/main/src/localization/translations.ts
https://raw.githubusercontent.com/weicongzhan/zhihuishu_bolt/be956e5/src/localization/translations.ts
weicongzhan/zhihuishu_bolt be956e5 src/localization/translations.ts
true
200
7,792
import { AppLanguage } from '../types'; type TranslationKey = // Navigation | 'appName' | 'learningMaterials' | 'interactiveReading' | 'flashcards' | 'phrases' | 'stories' | 'vocabularyBank' | 'profile' | 'logout' // Auth | 'signIn' | 'signUp' | 'email' | 'password' | 'fullName' |...
6
opral/monorepo
af06770
inlang/packages/website/vite.config.ts
TypeScript
www.github.com/opral/monorepo/tree/main/inlang/packages/website/vite.config.ts
https://raw.githubusercontent.com/opral/monorepo/af06770/inlang/packages/website/vite.config.ts
opral/monorepo af06770 inlang/packages/website/vite.config.ts
true
200
1,215
import { defineConfig } from "vite" import solid from "vite-plugin-solid" import vikeSolid from "vike-solid/vite" import vike from "vike/plugin" import { fileURLToPath, URL } from "node:url" import Icons from "unplugin-icons/vite" import { paraglide } from "@inlang/paraglide-vite" const isProduction = process.env.NODE...
7
tinnd04080/BE-FEMobi22_11
77a5ab6
fontendDucTinDev/CarBooking-FE/src/screens/app/Tickets/TicketDetail/style.ts
TypeScript
www.github.com/tinnd04080/BE-FEMobi22_11/tree/main/fontendDucTinDev/CarBooking-FE/src/screens/app/Tickets/TicketDetail/style.ts
https://raw.githubusercontent.com/tinnd04080/BE-FEMobi22_11/77a5ab6/fontendDucTinDev/CarBooking-FE/src/screens/app/Tickets/TicketDetail/style.ts
tinnd04080/BE-FEMobi22_11 77a5ab6 fontendDucTinDev/CarBooking-FE/src/screens/app/Tickets/TicketDetail/style.ts
true
200
939
import { StyleSheet } from "react-native"; export const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", padding: 16, }, header: { fontSize: 22, fontWeight: "bold", marginBottom: 16, }, ticketContainer: { borderWidth: 1, borderColor: "#ddd", bord...
2
benhollar/Pantree.Web
f91821d
src/app/_services/recipe/recipe.service.ts
TypeScript
www.github.com/benhollar/Pantree.Web/tree/main/src/app/_services/recipe/recipe.service.ts
https://raw.githubusercontent.com/benhollar/Pantree.Web/f91821d/src/app/_services/recipe/recipe.service.ts
benhollar/Pantree.Web f91821d src/app/_services/recipe/recipe.service.ts
true
200
1,285
import { Injectable } from '@angular/core'; import { Recipe } from 'src/app/_models/cooking/recipe'; import { BaseCollectionService } from '../index'; import { Assignable } from 'src/app/_models/interfaces'; import { environment } from 'src/environments/environment'; import { Observable, catchError, map, retry } from '...
3
ValentinaCham/app-frontend-free
c6d4f61
src/app/utils/token.interceptor.ts
TypeScript
www.github.com/ValentinaCham/app-frontend-free/tree/main/src/app/utils/token.interceptor.ts
https://raw.githubusercontent.com/ValentinaCham/app-frontend-free/c6d4f61/src/app/utils/token.interceptor.ts
ValentinaCham/app-frontend-free c6d4f61 src/app/utils/token.interceptor.ts
true
200
929
import { HttpErrorResponse, HttpInterceptorFn } from '@angular/common/http'; import { inject } from '@angular/core'; import { catchError, throwError } from 'rxjs'; import { ErrorsService } from '../services/errors.service'; import { Router } from '@angular/router'; export const tokenInterceptor: HttpInterceptorFn = (r...
4
AndOs-03/formation-angular-front-1
4eb18aa
src/app/add-produit/add-produit.component.ts
TypeScript
www.github.com/AndOs-03/formation-angular-front-1/tree/main/src/app/add-produit/add-produit.component.ts
https://raw.githubusercontent.com/AndOs-03/formation-angular-front-1/4eb18aa/src/app/add-produit/add-produit.component.ts
AndOs-03/formation-angular-front-1 4eb18aa src/app/add-produit/add-produit.component.ts
true
200
1,508
import {Component, OnInit} from '@angular/core'; import {Produit} from '../model/produit.model'; import {ProduitService} from "../services/produit.service"; import {Router} from "@angular/router"; import {Categorie} from "../model/categorie.model"; import {Image} from "../model/image.model"; @Component({ selector: '...
5
jupabro/17-interceptor
8cf38a4
src/app/app.module.ts
TypeScript
www.github.com/jupabro/17-interceptor/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/jupabro/17-interceptor/8cf38a4/src/app/app.module.ts
jupabro/17-interceptor 8cf38a4 src/app/app.module.ts
true
200
656
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HTTP_INTERCEPTORS } from '@angular/common/http'...
1
RafaelCava/nest-clean-arch
b1314d5
src/presentation/controllers/create-user.controller.ts
TypeScript
www.github.com/RafaelCava/nest-clean-arch/tree/main/src/presentation/controllers/create-user.controller.ts
https://raw.githubusercontent.com/RafaelCava/nest-clean-arch/b1314d5/src/presentation/controllers/create-user.controller.ts
RafaelCava/nest-clean-arch b1314d5 src/presentation/controllers/create-user.controller.ts
true
200
548
import { Body, Controller, Inject, Post, Response } from '@nestjs/common'; import { CreateUser } from '../../domain/usecases'; @Controller('users') export class CreateUserController { constructor( @Inject('CreateUser') private readonly createUser: CreateUser, ) {} @Post() async create(@Body() body: an...
6
JorgeUrquiza/node-ts-user-store
6b0a0d9
src/presentation/routes.ts
TypeScript
www.github.com/JorgeUrquiza/node-ts-user-store/tree/main/src/presentation/routes.ts
https://raw.githubusercontent.com/JorgeUrquiza/node-ts-user-store/6b0a0d9/src/presentation/routes.ts
JorgeUrquiza/node-ts-user-store 6b0a0d9 src/presentation/routes.ts
true
200
785
import { Router } from 'express'; import { AuthRoutes } from './auth/routes'; import { CategoryRoutes } from './category/routes'; import { ProductRoutes } from './products/routes'; import { FileUploadRoutes } from './file-upload/routes'; import { ImageRoutes } from './images/routes'; export class AppRoutes { st...
7
shellingfordly/algorithms
9f9bb21
SlidingWindow/2831_longestEqualSubarray/longestEqualSubarray.ts
TypeScript
www.github.com/shellingfordly/algorithms/tree/main/SlidingWindow/2831_longestEqualSubarray/longestEqualSubarray.ts
https://raw.githubusercontent.com/shellingfordly/algorithms/9f9bb21/SlidingWindow/2831_longestEqualSubarray/longestEqualSubarray.ts
shellingfordly/algorithms 9f9bb21 SlidingWindow/2831_longestEqualSubarray/longestEqualSubarray.ts
true
200
823
export function longestEqualSubarray(nums: number[], k: number): number { let res = 0 for (let i = 0; i < nums.length; i++) { let j = i + 1 let count = 0 while (j < nums.length) { if (count > k) break; if (nums[j] !== nums[i]) count++ j++ } ...
2
matextrem/streamdeck-tickertap
69221e9
src/inspector.ts
TypeScript
www.github.com/matextrem/streamdeck-tickertap/tree/main/src/inspector.ts
https://raw.githubusercontent.com/matextrem/streamdeck-tickertap/69221e9/src/inspector.ts
matextrem/streamdeck-tickertap 69221e9 src/inspector.ts
true
200
6,727
import { DidReceiveSettingsEvent, Inspector } from '@fnando/streamdeck'; import plugin from './plugin'; import { ON_PUSH, QuoteTypes, Regions, Settings } from './helpers/settings'; import { ImgState } from './images/actions/images'; class DefaultPropertyInspector extends Inspector { public settings: Settings = { ...
3
haoweichuang/css-interior-design
e8c310a
lib/utils.ts
TypeScript
www.github.com/haoweichuang/css-interior-design/tree/main/lib/utils.ts
https://raw.githubusercontent.com/haoweichuang/css-interior-design/e8c310a/lib/utils.ts
haoweichuang/css-interior-design e8c310a lib/utils.ts
true
200
347
import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; import { z } from "zod"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } export function FormSchema() { return z.object({ name: z.string().min(3), email: z.string().email(), message: ...
0
dai1975/SecretNetwork-upgradable-contract
ff4abda
devops/test.ts
TypeScript
www.github.com/dai1975/SecretNetwork-upgradable-contract/tree/main/devops/test.ts
https://raw.githubusercontent.com/dai1975/SecretNetwork-upgradable-contract/ff4abda/devops/test.ts
dai1975/SecretNetwork-upgradable-contract ff4abda devops/test.ts
true
200
2,076
import fs from "fs"; import * as lib from './lib.js'; import * as App from '../contract/application/schema'; import * as assert from "assert"; const setData = async (wc: lib.WalletClient, info: lib.ContractInfo, key: string, value: number, authz: App.Authz) => { const gas = 240000; //220803 const permit = await li...
5
reivosar/admin-dashboard
f99b564
src/pages/api/login/login-handler.ts
TypeScript
www.github.com/reivosar/admin-dashboard/tree/main/src/pages/api/login/login-handler.ts
https://raw.githubusercontent.com/reivosar/admin-dashboard/f99b564/src/pages/api/login/login-handler.ts
reivosar/admin-dashboard f99b564 src/pages/api/login/login-handler.ts
true
200
1,034
import type { NextApiRequest, NextApiResponse } from "next"; import { AnonymousApiHandler } from "../api-handler"; import { LoginUseCase } from "@/app/usecases/user/loginUseCase"; import { container } from "@/container"; import { ServiceContext } from "@/types/shared/serviceContext"; import { createSerializeAuthToken }...
1
harvmaster/www.tartarus
c771a6d
src/boot/app.ts
TypeScript
www.github.com/harvmaster/www.tartarus/tree/main/src/boot/app.ts
https://raw.githubusercontent.com/harvmaster/www.tartarus/c771a6d/src/boot/app.ts
harvmaster/www.tartarus c771a6d src/boot/app.ts
true
200
1,191
import { boot } from 'quasar/wrappers' export default boot(function ({ app, store }) { if (['spa', 'pwa', 'ssr', 'bex'].includes(process.env.MODE)) { if (!process.env.SERVER) { // mode: spa, pwa, bex, ssr (client-side only) const appWorker = new SharedWorker('app-worker.js'); let resolve: type...
6
anminam/minimoongo
03eda34
src/Core/Store.ts
TypeScript
www.github.com/anminam/minimoongo/tree/main/src/Core/Store.ts
https://raw.githubusercontent.com/anminam/minimoongo/03eda34/src/Core/Store.ts
anminam/minimoongo 03eda34 src/Core/Store.ts
true
200
800
import { applyMiddleware, createStore, compose } from "redux"; import createSagaMiddleware from "redux-saga"; import sagas from "./sagas"; import reducers from "./reducers"; declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION_COMPOSE__?: typeof compose; } } export const configureStore = () => { ...
7
SaeedAhmad5/D-Visuals
5b84180
src/components/Sidebar/style.ts
TypeScript
www.github.com/SaeedAhmad5/D-Visuals/tree/main/src/components/Sidebar/style.ts
https://raw.githubusercontent.com/SaeedAhmad5/D-Visuals/5b84180/src/components/Sidebar/style.ts
SaeedAhmad5/D-Visuals 5b84180 src/components/Sidebar/style.ts
true
200
2,185
import styled from 'styled-components'; import { ListItemIcon, Drawer, SvgIconProps, ListItemText } from '@mui/material'; import Link from 'next/link'; export const drawerWidth = 325; export const LogoContainer = styled.div` display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; `...
3
celestory/joy
5c21cfd
src/core/hooks/useIntersectionObserver.ts
TypeScript
www.github.com/celestory/joy/tree/main/src/core/hooks/useIntersectionObserver.ts
https://raw.githubusercontent.com/celestory/joy/5c21cfd/src/core/hooks/useIntersectionObserver.ts
celestory/joy 5c21cfd src/core/hooks/useIntersectionObserver.ts
true
200
736
import {useEffect, useRef, useState} from 'react'; type Props = {rootMargin: `${number}%` | '0'}; export const useIntersectionObserver = ({rootMargin}: Props) => { const scrollRef = useRef<HTMLElement>(null); const [isIntersecting, setIsIntersecting] = useState(false); useEffect(() => { const obse...
0
ByteCrak07/portfolio
602eea2
app/api/email/route.ts
TypeScript
www.github.com/ByteCrak07/portfolio/tree/main/app/api/email/route.ts
https://raw.githubusercontent.com/ByteCrak07/portfolio/602eea2/app/api/email/route.ts
ByteCrak07/portfolio 602eea2 app/api/email/route.ts
true
200
1,325
import { type NextRequest, NextResponse } from 'next/server'; import { type ReactElement } from 'react'; import nodemailer from 'nodemailer'; import Mail from 'nodemailer/lib/mailer'; import { render } from '@react-email/render'; import ContactEmail from '@/emails'; export async function POST(request: NextRequest) { ...
5
justeattakeaway/pie
57b5aea
packages/components/pie-webc-core/playwright-lit.config.ts
TypeScript
www.github.com/justeattakeaway/pie/tree/main/packages/components/pie-webc-core/playwright-lit.config.ts
https://raw.githubusercontent.com/justeattakeaway/pie/57b5aea/packages/components/pie-webc-core/playwright-lit.config.ts
justeattakeaway/pie 57b5aea packages/components/pie-webc-core/playwright-lit.config.ts
true
200
610
import { defineConfig, devices } from '@playwright/test'; import { getPlaywrightNativeConfig as getPlaywrightConfigOG } from '@justeattakeaway/pie-components-config'; import type { PlaywrightTestConfig } from '@playwright/test'; const getPlaywrightNativeConfig = () : PlaywrightTestConfig => ({ ...getPlaywrightConf...
1
alexiuscrow/spotify-subscription-assistant
26a17a0
src/manager/SubscriberManager.ts
TypeScript
www.github.com/alexiuscrow/spotify-subscription-assistant/tree/main/src/manager/SubscriberManager.ts
https://raw.githubusercontent.com/alexiuscrow/spotify-subscription-assistant/26a17a0/src/manager/SubscriberManager.ts
alexiuscrow/spotify-subscription-assistant 26a17a0 src/manager/SubscriberManager.ts
true
200
1,353
import SubscriberRepo, { GetSubscriberOptions } from '@/store/repository/SubscriberRepo'; import SpreadsheetManager from '@/manager/SpreadsheetManager'; import DebtManager from '@/manager/DebtManager'; import { SearchCriteria } from '@/store/interfaces'; class SubscriberManager { static async getSubscriberById(id: nu...
6
nicholas-newman1/cals-per-dollar
b3beecc
backend/src/controllers/menuItemsController.ts
TypeScript
www.github.com/nicholas-newman1/cals-per-dollar/tree/main/backend/src/controllers/menuItemsController.ts
https://raw.githubusercontent.com/nicholas-newman1/cals-per-dollar/b3beecc/backend/src/controllers/menuItemsController.ts
nicholas-newman1/cals-per-dollar b3beecc backend/src/controllers/menuItemsController.ts
true
200
6,614
import express, { Request, Response } from "express"; import { Category, MenuItem, Restaurant, Tag } from "../models"; import { Sequelize } from "sequelize"; import { z } from "zod"; import { asyncHandler, validateRequest } from "../middlewares"; import baseSearchSchema from "../schemas/common/baseSearchSchema"; import...
7
AnorZaken/SteamFriendPlayAurelia
62ac665
src/avatar.ts
TypeScript
www.github.com/AnorZaken/SteamFriendPlayAurelia/tree/main/src/avatar.ts
https://raw.githubusercontent.com/AnorZaken/SteamFriendPlayAurelia/62ac665/src/avatar.ts
AnorZaken/SteamFriendPlayAurelia 62ac665 src/avatar.ts
true
200
496
import { bindable } from 'aurelia-framework'; import { IAvatar as IAvatar1 } from 'app-user-row/IAvatar'; import { IAvatar as IAvatar2 } from 'user-toggle/IAvatar'; export class Avatar implements IAvatar1, IAvatar2 { @bindable readonly full: string; @bindable readonly small: string; @bindable readonly tiny: stri...
0
alucard93/Projeto-Ignite-Timer
5d44180
02-ignite-timer/src/styles/global.ts
TypeScript
www.github.com/alucard93/Projeto-Ignite-Timer/tree/main/02-ignite-timer/src/styles/global.ts
https://raw.githubusercontent.com/alucard93/Projeto-Ignite-Timer/5d44180/02-ignite-timer/src/styles/global.ts
alucard93/Projeto-Ignite-Timer 5d44180 02-ignite-timer/src/styles/global.ts
true
200
780
import { createGlobalStyle } from 'styled-components' export const GlobalStyle = createGlobalStyle` *{ margin: 0; padding: 0; box-sizing: border-box; } :focus { outline: 0; box-shadow: 0 0 0 2px ${(prop...
5
devluanchristian/FindAFriend
5d4103b
src/use-cases/create-pet.spec.ts
TypeScript
www.github.com/devluanchristian/FindAFriend/tree/main/src/use-cases/create-pet.spec.ts
https://raw.githubusercontent.com/devluanchristian/FindAFriend/5d4103b/src/use-cases/create-pet.spec.ts
devluanchristian/FindAFriend 5d4103b src/use-cases/create-pet.spec.ts
true
200
1,221
import { InMemoryOngsRepository } from '@/repositories/in-memory/in-memory-ongs-repository' import { beforeEach, describe, expect, it } from 'vitest' import { InMemoryPetsRepository } from '@/repositories/in-memory/in-memory-pets-repository' import { PetUseCase } from './create-pet' let ongRepository: InMemoryOngsRepo...
1
jlgranda/appsventas-movil
3c3915b
src/app/http-error-handler.service.ts
TypeScript
www.github.com/jlgranda/appsventas-movil/tree/main/src/app/http-error-handler.service.ts
https://raw.githubusercontent.com/jlgranda/appsventas-movil/3c3915b/src/app/http-error-handler.service.ts
jlgranda/appsventas-movil 3c3915b src/app/http-error-handler.service.ts
true
200
2,218
import { Injectable } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable, of } from 'rxjs'; //import { MessageService } from './message.service'; import { MessageService } from 'primeng/api'; import { NavCont...
3
AbhishekD879/IVY-OZONE
8ed8ea8
bma/src/platforms/ladbrokesMobile/shared/components/oddsCardHeader/odds-card-header.component.ts
TypeScript
www.github.com/AbhishekD879/IVY-OZONE/tree/main/bma/src/platforms/ladbrokesMobile/shared/components/oddsCardHeader/odds-card-header.component.ts
https://raw.githubusercontent.com/AbhishekD879/IVY-OZONE/8ed8ea8/bma/src/platforms/ladbrokesMobile/shared/components/oddsCardHeader/odds-card-header.component.ts
AbhishekD879/IVY-OZONE 8ed8ea8 bma/src/platforms/ladbrokesMobile/shared/components/oddsCardHeader/odds-card-header.component.ts
true
200
652
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { OddsCardHeaderComponent as AppOddsCardHeaderComponent } from '@shared/components/oddsCardHeader/odds-card-header.component'; @Component({ selector: 'odds-card-header', templateUrl: 'odds-card-header.component.html', // eslint-disable-...
7
emmavasylyk/lingo
07f79b5
app/api/challenges/route.ts
TypeScript
www.github.com/emmavasylyk/lingo/tree/main/app/api/challenges/route.ts
https://raw.githubusercontent.com/emmavasylyk/lingo/07f79b5/app/api/challenges/route.ts
emmavasylyk/lingo 07f79b5 app/api/challenges/route.ts
true
200
1,429
import { NextResponse } from "next/server"; import db from "@/db/drizzle"; import { isAdmin } from "@/lib/admin"; import { challenges } from "@/db/schema"; export const GET = async (request: Request) => { if (!isAdmin()) { return new NextResponse("Unauthorized", { status: 401 }); } const url = new URL(requ...
6
konradRduch/przetrwaj-pl
064d916
src/app/incident-add-form/incident-add-form.component.ts
TypeScript
www.github.com/konradRduch/przetrwaj-pl/tree/main/src/app/incident-add-form/incident-add-form.component.ts
https://raw.githubusercontent.com/konradRduch/przetrwaj-pl/064d916/src/app/incident-add-form/incident-add-form.component.ts
konradRduch/przetrwaj-pl 064d916 src/app/incident-add-form/incident-add-form.component.ts
true
200
1,696
import { Component } from '@angular/core'; import { LocationService } from '../services/location.service'; import { IncidentsService } from '../services/incidents.service'; import { FormsModule } from '@angular/forms'; import { MapMarkersService } from '../services/map-markers.service'; import { CommonModule } from '@a...
0
romentoss/NestPostgresAPI
fbeec0a
src/files/files.controller.ts
TypeScript
www.github.com/romentoss/NestPostgresAPI/tree/main/src/files/files.controller.ts
https://raw.githubusercontent.com/romentoss/NestPostgresAPI/fbeec0a/src/files/files.controller.ts
romentoss/NestPostgresAPI fbeec0a src/files/files.controller.ts
true
200
1,445
import { Controller, Get, Post, Body, Patch, Param, Delete, UploadedFile, UseInterceptors, BadRequestException, Res } from '@nestjs/common'; import { FilesService } from './files.service'; import { FileInterceptor } from '@nestjs/platform-express'; import { fileFilter,fileNamer } from './helpers'; import { diskStorage ...
5
lybrus/amocrm-connector
d8acc17
src/chat/message/add-message-payload.ts
TypeScript
www.github.com/lybrus/amocrm-connector/tree/main/src/chat/message/add-message-payload.ts
https://raw.githubusercontent.com/lybrus/amocrm-connector/d8acc17/src/chat/message/add-message-payload.ts
lybrus/amocrm-connector d8acc17 src/chat/message/add-message-payload.ts
true
200
887
import { Prop, DateSerializerTimestamp, DateSerializerUnixTime, DTO } from '~/dto' import { AddMessageSource } from './add-message-source' import { MessageParticipant } from './message-participant' import { AddMessageContent } from './add-message-content' export class AddMessagePayload extends DTO { @Prop('msgid')...
1
Punit9464/EcoGadget-CGC
24c0e57
frontend/lib/type.ts
TypeScript
www.github.com/Punit9464/EcoGadget-CGC/tree/main/frontend/lib/type.ts
https://raw.githubusercontent.com/Punit9464/EcoGadget-CGC/24c0e57/frontend/lib/type.ts
Punit9464/EcoGadget-CGC 24c0e57 frontend/lib/type.ts
true
200
862
export type Product = { id: number name: string productName: string productType: string category: string price: number stock: number status: string description?: string condition?: string images?: string[] featured?: boolean date?: string } export type SellingR...
7
denzubechi/dreamline_edit
e80d82a
redux/features/user-slice.ts
TypeScript
www.github.com/denzubechi/dreamline_edit/tree/main/redux/features/user-slice.ts
https://raw.githubusercontent.com/denzubechi/dreamline_edit/e80d82a/redux/features/user-slice.ts
denzubechi/dreamline_edit e80d82a redux/features/user-slice.ts
true
200
401
import { createSlice } from '@reduxjs/toolkit'; const initialState = { username: '', email: '', postalCode: '', userType: 'user', }; const userSlice = createSlice({ name: 'user', initialState, reducers: { setUser: (state, action) => { state = { ...state, ...action.payload }; }, }, }); ...
3
dev-hans-programmer/b2b-project-management-api
409ead3
src/middlewares/auth.middleware.ts
TypeScript
www.github.com/dev-hans-programmer/b2b-project-management-api/tree/main/src/middlewares/auth.middleware.ts
https://raw.githubusercontent.com/dev-hans-programmer/b2b-project-management-api/409ead3/src/middlewares/auth.middleware.ts
dev-hans-programmer/b2b-project-management-api 409ead3 src/middlewares/auth.middleware.ts
true
200
302
import { NextFunction, Request, Response } from 'express'; import { UnauthorizedException } from '../utils/app-error'; export const isAuthenticated = ( req: Request, _res: Response, next: NextFunction ) => { if (!req.user || !req.user._id) throw new UnauthorizedException(); next(); };
6
NazarOstapyuk/nestjs-starter
53177a9
src/user/dtos/user-update-input.dto.ts
TypeScript
www.github.com/NazarOstapyuk/nestjs-starter/tree/main/src/user/dtos/user-update-input.dto.ts
https://raw.githubusercontent.com/NazarOstapyuk/nestjs-starter/53177a9/src/user/dtos/user-update-input.dto.ts
NazarOstapyuk/nestjs-starter 53177a9 src/user/dtos/user-update-input.dto.ts
true
200
1,033
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsEmail, IsNotEmpty, IsOptional, IsString, MaxLength, MinLength, } from 'class-validator'; import { MAX_FULL_NAME_LENGTH, MAX_PASS_LENGTH, MIN_FULL_NAME_LENGTH, MIN_PASS_LENGTH, } from '../../shared/constants/validation'; ...
0
AbhishekD879/IVY-OZONE
8ed8ea8
bma/src/app/lazy-modules/runnerSpotlight/runner-spotlight.component.ts
TypeScript
www.github.com/AbhishekD879/IVY-OZONE/tree/main/bma/src/app/lazy-modules/runnerSpotlight/runner-spotlight.component.ts
https://raw.githubusercontent.com/AbhishekD879/IVY-OZONE/8ed8ea8/bma/src/app/lazy-modules/runnerSpotlight/runner-spotlight.component.ts
AbhishekD879/IVY-OZONE 8ed8ea8 bma/src/app/lazy-modules/runnerSpotlight/runner-spotlight.component.ts
true
200
2,035
import * as _ from 'underscore'; import { Component, Input, OnInit } from '@angular/core'; import { IOutcome } from '@core/models/outcome.model'; import { LocaleService } from '@core/services/locale/locale.service'; import { RacingPostService } from '@core/services/racing/racingPost/racing-post.service'; @Component({ ...
1
lvce-editor/csv-viewer
77f5bb8
packages/csv-worker/src/parts/WrapCommand/WrapCommand.ts
TypeScript
www.github.com/lvce-editor/csv-viewer/tree/main/packages/csv-worker/src/parts/WrapCommand/WrapCommand.ts
https://raw.githubusercontent.com/lvce-editor/csv-viewer/77f5bb8/packages/csv-worker/src/parts/WrapCommand/WrapCommand.ts
lvce-editor/csv-viewer 77f5bb8 packages/csv-worker/src/parts/WrapCommand/WrapCommand.ts
true
200
425
import * as GetVirtualDom from '../GetVirtualDom/GetVirtualDom.ts' import { id } from '../Id/Id.ts' import * as WebViewStates from '../WebViewStates/WebViewStates.ts' export const wrapCommand = (fn) => { return async (...args) => { await fn(id, ...args) const newState = WebViewStates.get(id) const { port...
5
zhangxilong-43/meeting_room_booking_system_backend
0bc2521
src/booking/entities/booking.entity.ts
TypeScript
www.github.com/zhangxilong-43/meeting_room_booking_system_backend/tree/main/src/booking/entities/booking.entity.ts
https://raw.githubusercontent.com/zhangxilong-43/meeting_room_booking_system_backend/0bc2521/src/booking/entities/booking.entity.ts
zhangxilong-43/meeting_room_booking_system_backend 0bc2521 src/booking/entities/booking.entity.ts
true
200
1,069
import { MeetingRoom } from 'src/meeting-room/entities/meeting-room.entity'; import { User } from 'src/user/entities/user.entity'; import { Column, CreateDateColumn, Entity, ManyToOne, ManyToMany, PrimaryGeneratedColumn, UpdateDateColumn, JoinTable } from 'typeorm'; @Entity({ name: 'booking' }) expor...
7
jessy-damasceno/portfolio-web
2e69e0f
backend/src/app.ts
TypeScript
www.github.com/jessy-damasceno/portfolio-web/tree/main/backend/src/app.ts
https://raw.githubusercontent.com/jessy-damasceno/portfolio-web/2e69e0f/backend/src/app.ts
jessy-damasceno/portfolio-web 2e69e0f backend/src/app.ts
true
200
553
import express from 'express'; import cors from 'cors'; import ErrorHandler from './middlewares/ErrorHandler'; import userRouter from './Routes/user.route'; import projectRouter from './Routes/project.route'; import swaggerRouter from './Routes/swagger.route'; const app = express(); app.use(express.json()); app.use(co...
0
aaronm99/editusAI
2a61fe8
config/subscriptions.ts
TypeScript
www.github.com/aaronm99/editusAI/tree/main/config/subscriptions.ts
https://raw.githubusercontent.com/aaronm99/editusAI/2a61fe8/config/subscriptions.ts
aaronm99/editusAI 2a61fe8 config/subscriptions.ts
true
200
432
import { SubscriptionPlan } from "types" import { env } from "@/env.mjs" export const freePlan: SubscriptionPlan = { name: "Free", description: "The free plan is limited to 3 videos. Upgrade to the PRO plan for unlimited videos.", stripePriceId: "", } export const proPlan: SubscriptionPlan = { name: "PRO"...
6
Eulab-EugenioRenna/pdg-form
f63b917
src/app/mail.service.ts
TypeScript
www.github.com/Eulab-EugenioRenna/pdg-form/tree/main/src/app/mail.service.ts
https://raw.githubusercontent.com/Eulab-EugenioRenna/pdg-form/f63b917/src/app/mail.service.ts
Eulab-EugenioRenna/pdg-form f63b917 src/app/mail.service.ts
true
200
462
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { User } from './model/user'; @Injectable({ providedIn: 'root', }) export class MailService { private emailUrl = 'https://mail.eulab-dash.it/send-email'; constructor(private http: HttpClient) {} sendEmail(us...
3
quangtv12/DATN-Fpoly
bc91ce9
front-end/src/interfaces/Products.ts
TypeScript
www.github.com/quangtv12/DATN-Fpoly/tree/main/front-end/src/interfaces/Products.ts
https://raw.githubusercontent.com/quangtv12/DATN-Fpoly/bc91ce9/front-end/src/interfaces/Products.ts
quangtv12/DATN-Fpoly bc91ce9 front-end/src/interfaces/Products.ts
true
200
324
export interface Products { // name: ReactNode; // id: Key | null | undefined; _id?: any; title: string; price: number; image: string; categories: any | string; quantity: number; description: string; storage: string; color: string; } export interface CartItem extends Products { quantity: number...
5
AndrewM01/UI-Project
e1ef1c7
src/app/navbar/navbar.component.ts
TypeScript
www.github.com/AndrewM01/UI-Project/tree/main/src/app/navbar/navbar.component.ts
https://raw.githubusercontent.com/AndrewM01/UI-Project/e1ef1c7/src/app/navbar/navbar.component.ts
AndrewM01/UI-Project e1ef1c7 src/app/navbar/navbar.component.ts
true
200
728
import { Component, OnInit, OnChanges } from '@angular/core'; import { CommunicatonService } from '../communicaton.service'; import { faFileInvoice } from '@fortawesome/free-solid-svg-icons'; import { faUser } from '@fortawesome/free-solid-svg-icons'; import { AuthService } from '../shared/auth.service'; @Component({ ...
7
RobinBlomberg/esp-language
78fd920
src/esp/parser/productions/identifier-name.test.ts
TypeScript
www.github.com/RobinBlomberg/esp-language/tree/main/src/esp/parser/productions/identifier-name.test.ts
https://raw.githubusercontent.com/RobinBlomberg/esp-language/78fd920/src/esp/parser/productions/identifier-name.test.ts
RobinBlomberg/esp-language 78fd920 src/esp/parser/productions/identifier-name.test.ts
true
200
401
import { suite, test } from 'vitest'; import { createParseAssert } from '../test-utils'; import { parseIdentifierName } from './identifier-name'; const { ok, unused } = createParseAssert(parseIdentifierName); suite('IdentifierName', () => { test(/* s */ `IdentifierStart`, () => { unused(); ok('a'); }); ...
6
ShaBirgen/BrainExchange
3ed3758
BrainExchange/src/app/Components/user-profile/user-profile.component.ts
TypeScript
www.github.com/ShaBirgen/BrainExchange/tree/main/BrainExchange/src/app/Components/user-profile/user-profile.component.ts
https://raw.githubusercontent.com/ShaBirgen/BrainExchange/3ed3758/BrainExchange/src/app/Components/user-profile/user-profile.component.ts
ShaBirgen/BrainExchange 3ed3758 BrainExchange/src/app/Components/user-profile/user-profile.component.ts
true
200
3,389
import { Component } from '@angular/core'; import { FooterComponent } from '../footer/footer.component'; import { ActivatedRoute, Router, RouterLink } from '@angular/router'; import { userResponse } from '../../Interfaces/Userinterface'; import { UserService } from '../../Services/user.service'; import { AuthService } ...
3
Krustycoin0/excg
443ea01
src/components/WelcomeScreen/ToolCard/ToolCards.style.ts
TypeScript
www.github.com/Krustycoin0/excg/tree/main/src/components/WelcomeScreen/ToolCard/ToolCards.style.ts
https://raw.githubusercontent.com/Krustycoin0/excg/443ea01/src/components/WelcomeScreen/ToolCard/ToolCards.style.ts
Krustycoin0/excg 443ea01 src/components/WelcomeScreen/ToolCard/ToolCards.style.ts
true
200
334
import type { Breakpoint } from '@mui/material'; import { styled } from '@mui/material'; export const ToolCardsContainer = styled('div')(({ theme }) => ({ marginTop: theme.spacing(4), flexWrap: 'wrap', display: 'flex', justifyContent: 'center', gap: theme.spacing(2), [theme.breakpoints.up('sm' as Breakpoin...
1
techloset/Ali-Raza-Calendly-App
234bf71
app/api/availibility/route.ts
TypeScript
www.github.com/techloset/Ali-Raza-Calendly-App/tree/main/app/api/availibility/route.ts
https://raw.githubusercontent.com/techloset/Ali-Raza-Calendly-App/234bf71/app/api/availibility/route.ts
techloset/Ali-Raza-Calendly-App 234bf71 app/api/availibility/route.ts
true
200
2,458
import { prisma } from "@/app/libs/prismadb"; import { NextRequest, NextResponse, userAgent } from "next/server"; export const GET = async (req: NextRequest) => { try { const availability = await prisma.availability.findMany(); return NextResponse.json({ message: "Posts fetched successfully", ava...
5
ThiagoTatico/Desafio-Testes-Unitarios
dab0a5c
src/modules/users/useCases/showUserProfile/ShowUserProfileUseCase.spec.ts
TypeScript
www.github.com/ThiagoTatico/Desafio-Testes-Unitarios/tree/main/src/modules/users/useCases/showUserProfile/ShowUserProfileUseCase.spec.ts
https://raw.githubusercontent.com/ThiagoTatico/Desafio-Testes-Unitarios/dab0a5c/src/modules/users/useCases/showUserProfile/ShowUserProfileUseCase.spec.ts
ThiagoTatico/Desafio-Testes-Unitarios dab0a5c src/modules/users/useCases/showUserProfile/ShowUserProfileUseCase.spec.ts
true
200
1,183
import { TestUtils } from "../../../../shared/tests/TestUtils"; import { User } from "../../entities/User"; import { InMemoryUsersRepository } from "../../repositories/in-memory/InMemoryUsersRepository"; import { ShowUserProfileError } from "./ShowUserProfileError"; import { ShowUserProfileUseCase } from "./ShowUserPro...
0
recon-bi/coding-challenge
9a806b7
client/src/models/users.model.ts
TypeScript
www.github.com/recon-bi/coding-challenge/tree/main/client/src/models/users.model.ts
https://raw.githubusercontent.com/recon-bi/coding-challenge/9a806b7/client/src/models/users.model.ts
recon-bi/coding-challenge 9a806b7 client/src/models/users.model.ts
true
200
1,239
import { userActions } from 'redux/users.redux'; import AbstractModel from './abstractModel'; import handleError from '../errors'; import { useFetch } from 'lib/secureFetch'; const modelName = 'users'; // Give the model a name. You could make it easy on yourself and call it the same name as the endpoint name ;) class...
6
beamtech/labeler
133fc18
src/main.ts
TypeScript
www.github.com/beamtech/labeler/tree/main/src/main.ts
https://raw.githubusercontent.com/beamtech/labeler/133fc18/src/main.ts
beamtech/labeler 133fc18 src/main.ts
true
200
8,567
import * as core from "@actions/core"; import * as github from "@actions/github"; import * as yaml from "js-yaml"; import { Minimatch, IMinimatch } from "minimatch"; interface MatchConfig { all?: string[]; any?: string[]; } type RemoteRepoDetails = { repoName?: string; repoOwner?: string; repoRef?: string; ...
1
JasonXu314/smol-tanks
3645b16
packages/engine/utils/SelectBox.ts
TypeScript
www.github.com/JasonXu314/smol-tanks/tree/main/packages/engine/utils/SelectBox.ts
https://raw.githubusercontent.com/JasonXu314/smol-tanks/3645b16/packages/engine/utils/SelectBox.ts
JasonXu314/smol-tanks 3645b16 packages/engine/utils/SelectBox.ts
true
200
836
import { Engine } from '../engine'; import { Rectangle } from '../math'; import { DynamicGameObject, RenderEngine } from '../types'; export class SelectBox implements DynamicGameObject { public readonly type = 'GAME_OBJECT'; public readonly dynamic = true; public readonly id = 'select-box'; constructor(private en...
5
brooklyn-rgb/deep
139fe50
src/redux/services/productApi.ts
TypeScript
www.github.com/brooklyn-rgb/deep/tree/main/src/redux/services/productApi.ts
https://raw.githubusercontent.com/brooklyn-rgb/deep/139fe50/src/redux/services/productApi.ts
brooklyn-rgb/deep 139fe50 src/redux/services/productApi.ts
true
200
2,694
import { ProductListApiQuery, ProductListType, ProductTypes, SellerProductList, } from '@/types/product.types'; import { apiSlice } from '.'; export const productApi = apiSlice.injectEndpoints({ endpoints: builder => ({ getProducts: builder.mutation< { data: { products: ProductLis...
0
cruvinel-fyve/treinamento
03b65f0
aws/stacks/LambdaModule/index.ts
TypeScript
www.github.com/cruvinel-fyve/treinamento/tree/main/aws/stacks/LambdaModule/index.ts
https://raw.githubusercontent.com/cruvinel-fyve/treinamento/03b65f0/aws/stacks/LambdaModule/index.ts
cruvinel-fyve/treinamento 03b65f0 aws/stacks/LambdaModule/index.ts
true
200
514
import { Stack, StackProps } from "aws-cdk-lib"; import { Construct } from "constructs"; import { GetInfoModuleLambdas, PostInfoModuleLambdas, SqsModuleLambda } from "./infra"; export class LambdaModule extends Stack { constructor(app: Construct, name: string, props?: StackProps) { super(app, name, props) ...
6
dahlia/markdown-it-jsr-ref
13ea348
src/jsr.test.ts
TypeScript
www.github.com/dahlia/markdown-it-jsr-ref/tree/main/src/jsr.test.ts
https://raw.githubusercontent.com/dahlia/markdown-it-jsr-ref/13ea348/src/jsr.test.ts
dahlia/markdown-it-jsr-ref 13ea348 src/jsr.test.ts
true
200
829
import { assertEquals } from "@std/assert/assert-equals"; import { assertSnapshot } from "@std/testing/snapshot"; import { fetchIndex, fetchLatestVersion, fetchSymbols, splitPackageName, } from "./jsr.ts"; Deno.test("splitPackageName()", () => { assertEquals(splitPackageName("@foo/bar"), ["foo", "bar"]); });...
3
tiki-deprecated/apps-rewards-capacitor
0c690ab
vue2/main.ts
TypeScript
www.github.com/tiki-deprecated/apps-rewards-capacitor/tree/main/vue2/main.ts
https://raw.githubusercontent.com/tiki-deprecated/apps-rewards-capacitor/0c690ab/vue2/main.ts
tiki-deprecated/apps-rewards-capacitor 0c690ab vue2/main.ts
true
200
584
/* * Copyright (c) TIKI Inc. * MIT license. See LICENSE file in root directory. */ import type Vue from "vue"; import "@/assets/styles/main.css"; import TikiReceipt from "@/tiki-receipt.vue"; import { TikiService } from "@/service"; import type * as TikiOptions from "@/options"; export default { install: (app: t...
5
Madusha2357/burn
1f96c3c
apps/quize/src/app/site/_component/check-winner/check-winner.component.spec.ts
TypeScript
www.github.com/Madusha2357/burn/tree/main/apps/quize/src/app/site/_component/check-winner/check-winner.component.spec.ts
https://raw.githubusercontent.com/Madusha2357/burn/1f96c3c/apps/quize/src/app/site/_component/check-winner/check-winner.component.spec.ts
Madusha2357/burn 1f96c3c apps/quize/src/app/site/_component/check-winner/check-winner.component.spec.ts
true
200
629
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CheckWinnerComponent } from './check-winner.component'; describe('CheckWinnerComponent', () => { let component: CheckWinnerComponent; let fixture: ComponentFixture<CheckWinnerComponent>; beforeEach(async () => { await TestBed.confi...
1
satuuntuksemuaaja/mlc-portal-frontend
0a9ec60
src/app/modules/auth/login/login.page.ts
TypeScript
www.github.com/satuuntuksemuaaja/mlc-portal-frontend/tree/main/src/app/modules/auth/login/login.page.ts
https://raw.githubusercontent.com/satuuntuksemuaaja/mlc-portal-frontend/0a9ec60/src/app/modules/auth/login/login.page.ts
satuuntuksemuaaja/mlc-portal-frontend 0a9ec60 src/app/modules/auth/login/login.page.ts
true
200
5,165
import { Component, Inject, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { MSAL_GUARD_CONFIG, MsalGuardConfiguration, MsalService, MsalBroadcastService } from '@azure/msal-angular'; import { RedirectRequest, PopupRequest, InteractionType, Authenticat...
4
Mighty683/svelte-todo
aacda98
src/modules/kanban/service.ts
TypeScript
www.github.com/Mighty683/svelte-todo/tree/main/src/modules/kanban/service.ts
https://raw.githubusercontent.com/Mighty683/svelte-todo/aacda98/src/modules/kanban/service.ts
Mighty683/svelte-todo aacda98 src/modules/kanban/service.ts
true
200
3,904
import type { CumulativeProbabilityArray, GroupedResultsArray, SimulationResult, TeamIterationResult } from './types'; export function monteCarloTaskPrediction( previousIterations: TeamIterationResult[], remainingTasksCount: number, numSimulations = 1_000_000, weighted = false, focusFactor = 1 ): CumulativePr...
7
quocthinhluu97/restful-booking-api-test
203faf4
api/auth.api.ts
TypeScript
www.github.com/quocthinhluu97/restful-booking-api-test/tree/main/api/auth.api.ts
https://raw.githubusercontent.com/quocthinhluu97/restful-booking-api-test/203faf4/api/auth.api.ts
quocthinhluu97/restful-booking-api-test 203faf4 api/auth.api.ts
true
200
596
import { AuthInfo, AuthToken, RequiredHeaders } from "@models/auth.model"; import { BaseApi } from "./base.api" import Urls from "constants/urls.const"; import { _Promise } from "@models/result.model"; export default class AuthApi extends BaseApi { constructor() { super({} as RequiredHeaders); } a...
6
maip202/E-commerce-Frontend
0e97089
src/app/componentes/formulario/formulario.component.ts
TypeScript
www.github.com/maip202/E-commerce-Frontend/tree/main/src/app/componentes/formulario/formulario.component.ts
https://raw.githubusercontent.com/maip202/E-commerce-Frontend/0e97089/src/app/componentes/formulario/formulario.component.ts
maip202/E-commerce-Frontend 0e97089 src/app/componentes/formulario/formulario.component.ts
true
200
3,363
import { Component } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { FormularioServiceService } from '../../services/formulario-service.service'; import { RevisarService } from '../../services/revisar.service'; import { Router } from '@angular/router'; import { Pedido } from '../...
3
Traigel/ToDoList-Redux
5545bc1
src/features/TodolistsList/TodoList/Tasks/tasks-reducer.test.ts
TypeScript
www.github.com/Traigel/ToDoList-Redux/tree/main/src/features/TodolistsList/TodoList/Tasks/tasks-reducer.test.ts
https://raw.githubusercontent.com/Traigel/ToDoList-Redux/5545bc1/src/features/TodolistsList/TodoList/Tasks/tasks-reducer.test.ts
Traigel/ToDoList-Redux 5545bc1 src/features/TodolistsList/TodoList/Tasks/tasks-reducer.test.ts
true
200
3,011
import {v1} from "uuid"; import { addTitleTaskAC, deleteTitleTaskAC, tasksReducer, TasksTodoListType, updateTaskAC } from "./tasks-reducer"; import {deleteTodoListAC} from "../../todoList-reducer"; import {TASK_PRIORITIES, TASK_STATUS, TasksType} from "../../../../api/api"; const toDoListID_1 = v1(); const...
2
clumsyChef/typescript-mern
2b7c7c5
server/src/middlewares/auth/verifyUser.ts
TypeScript
www.github.com/clumsyChef/typescript-mern/tree/main/server/src/middlewares/auth/verifyUser.ts
https://raw.githubusercontent.com/clumsyChef/typescript-mern/2b7c7c5/server/src/middlewares/auth/verifyUser.ts
clumsyChef/typescript-mern 2b7c7c5 server/src/middlewares/auth/verifyUser.ts
true
200
1,836
import jwt from "jsonwebtoken"; import type { Response, Request, NextFunction } from "express"; import { UserModels } from "../../models"; const verifyToken = (token: string, secret: string) => { let decoded; try { decoded = jwt.verify(token, secret); } catch (error: any) { decoded = error.message; } const m...
5
tobenot/Astral-Memory-Sequence
cad2c31
src/types/turn.ts
TypeScript
www.github.com/tobenot/Astral-Memory-Sequence/tree/main/src/types/turn.ts
https://raw.githubusercontent.com/tobenot/Astral-Memory-Sequence/cad2c31/src/types/turn.ts
tobenot/Astral-Memory-Sequence cad2c31 src/types/turn.ts
true
200
797
import type { Hero } from './character' export enum TurnPhase { PREPARE = 'prepare', // 回合准备阶段 ACTION = 'action', // 行动阶段 END = 'end' // 结束阶段 } export interface TurnOrder { heroId: string initiative: number // 基于速度计算的行动顺序值 } export interface TurnState { currentHeroId: string | null remain...
1
ShamilSaifotdinov/middle.messenger.praktikum.yandex
b224358
src/utils/set.ts
TypeScript
www.github.com/ShamilSaifotdinov/middle.messenger.praktikum.yandex/tree/main/src/utils/set.ts
https://raw.githubusercontent.com/ShamilSaifotdinov/middle.messenger.praktikum.yandex/b224358/src/utils/set.ts
ShamilSaifotdinov/middle.messenger.praktikum.yandex b224358 src/utils/set.ts
true
200
500
import merge from "./merge" import { Indexed } from "../interfaces" function set(object: Indexed | unknown, path: string, value: unknown): Indexed | unknown { if (typeof object !== "object") { return object } if (typeof path !== "string") { throw new Error("path must be string") } ...
0
JacobShi777/nuxt3-elementplus
bfb8ef4
utils/service.ts
TypeScript
www.github.com/JacobShi777/nuxt3-elementplus/tree/main/utils/service.ts
https://raw.githubusercontent.com/JacobShi777/nuxt3-elementplus/bfb8ef4/utils/service.ts
JacobShi777/nuxt3-elementplus bfb8ef4 utils/service.ts
true
200
2,453
/** 创建请求方法 */ function createRequestFunction() { // 这里使用了any return async function<T>(config: any) { const url = config.url delete config.url const configDefault = { baseURL: import.meta.env.VITE_BASE_API, } const _config = Object.assign(configDefault, config) const response = await us...
4
JAcujar/act1-petApp
a805b10
src/presentation/users/routes.ts
TypeScript
www.github.com/JAcujar/act1-petApp/tree/main/src/presentation/users/routes.ts
https://raw.githubusercontent.com/JAcujar/act1-petApp/a805b10/src/presentation/users/routes.ts
JAcujar/act1-petApp a805b10 src/presentation/users/routes.ts
true
200
1,332
import { Router } from "express"; import { UserController } from "./controller"; import { FinderUsersService } from "./services/finder-users.service"; import { RegisterUserService } from "./services/register-user.service"; import { LoginUserService } from "./services/login-user.service"; import { FinderOneUserService }...
7
MohamedAmineRhindi/LabMed
9d5386f
src/app/app-routing.module.ts
TypeScript
www.github.com/MohamedAmineRhindi/LabMed/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/MohamedAmineRhindi/LabMed/9d5386f/src/app/app-routing.module.ts
MohamedAmineRhindi/LabMed 9d5386f src/app/app-routing.module.ts
true
200
872
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AjoutComponent } from './pages/ajout/ajout.component'; import { DeplacementsComponent } from './pages/deplacements/deplacements.component'; import { HomeComponent } from './pages/home/home.component'; import { Inf...
2
kinfuy/hooks-to-ajax
1bec90f
build/copyfile.ts
TypeScript
www.github.com/kinfuy/hooks-to-ajax/tree/main/build/copyfile.ts
https://raw.githubusercontent.com/kinfuy/hooks-to-ajax/1bec90f/build/copyfile.ts
kinfuy/hooks-to-ajax 1bec90f build/copyfile.ts
true
200
386
import { resolve } from 'path'; import { copyFile } from '@alqmc/build-utils'; import { enterPath, outputPath, rootPath } from './path'; export const copyFiles = async () => { Promise.all([ copyFile( resolve(enterPath, 'package.json'), resolve(outputPath, 'package.json') ), copyFile(resolve(ro...
1
7binary/micro-fastify
9f5d51f
apps/tickets/src/services/kafka.service.ts
TypeScript
www.github.com/7binary/micro-fastify/tree/main/apps/tickets/src/services/kafka.service.ts
https://raw.githubusercontent.com/7binary/micro-fastify/9f5d51f/apps/tickets/src/services/kafka.service.ts
7binary/micro-fastify 9f5d51f apps/tickets/src/services/kafka.service.ts
true
200
1,050
import { FastifyInstance } from 'fastify'; import { Ticket } from '@prisma/client'; export enum KafkaTopics { NEW_TICKET = 'new-ticket', } export class KafkaService { readonly groupId = 'tickets'; constructor(protected readonly fastify: FastifyInstance) { this.newTicketConsume(); } async newTicketCons...
5
GidoKristoffel/GARC-admin
527d398
src/app/shared/components/divider/horizontal-divider/horizontal-divider.component.ts
TypeScript
www.github.com/GidoKristoffel/GARC-admin/tree/main/src/app/shared/components/divider/horizontal-divider/horizontal-divider.component.ts
https://raw.githubusercontent.com/GidoKristoffel/GARC-admin/527d398/src/app/shared/components/divider/horizontal-divider/horizontal-divider.component.ts
GidoKristoffel/GARC-admin 527d398 src/app/shared/components/divider/horizontal-divider/horizontal-divider.component.ts
true
200
488
import { Component, Input } from '@angular/core'; import { CommonModule, NgOptimizedImage } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; @Component({ selector: 'clt-horizontal-divider', standalone: true, imports: [CommonModule, TranslateModule, NgOptimizedImage], templateUrl: ...
4
HippoCal/Hippocal.App
49f6dd4
src/app/pages/privacy/privacy.page.ts
TypeScript
www.github.com/HippoCal/Hippocal.App/tree/main/src/app/pages/privacy/privacy.page.ts
https://raw.githubusercontent.com/HippoCal/Hippocal.App/49f6dd4/src/app/pages/privacy/privacy.page.ts
HippoCal/Hippocal.App 49f6dd4 src/app/pages/privacy/privacy.page.ts
true
200
530
import { Component } from '@angular/core'; import { Router, NavigationExtras } from '@angular/router'; import { DataService } from 'src/app/services/services'; @Component({ selector: 'page-privacy', templateUrl: './privacy.page.html', styleUrls: ['./privacy.page.scss'] }) export class PrivacyPage { constructo...
0
achmadk/easier-qurban-experience
f79c8a8
src/controllers/mosque/admin/find/check-valid-condition/is-empty.client.hooks.ts
TypeScript
www.github.com/achmadk/easier-qurban-experience/tree/main/src/controllers/mosque/admin/find/check-valid-condition/is-empty.client.hooks.ts
https://raw.githubusercontent.com/achmadk/easier-qurban-experience/f79c8a8/src/controllers/mosque/admin/find/check-valid-condition/is-empty.client.hooks.ts
achmadk/easier-qurban-experience f79c8a8 src/controllers/mosque/admin/find/check-valid-condition/is-empty.client.hooks.ts
true
200
482
import { IControllerCoreCheckValidCondition } from "controllers/core"; import { IMosqueBase } from "models"; export function useControllerMosqueAdminFindCheckValidConditionIsEmpty< InputType extends IMosqueBase = IMosqueBase >(): IControllerCoreCheckValidCondition<InputType[]> { const checkValidCondition = (input?...
6
ttp-capstone/angular-fe
7881e59
src/app/admin/dashboard/dashboard/views/applications/applications.service.ts
TypeScript
www.github.com/ttp-capstone/angular-fe/tree/main/src/app/admin/dashboard/dashboard/views/applications/applications.service.ts
https://raw.githubusercontent.com/ttp-capstone/angular-fe/7881e59/src/app/admin/dashboard/dashboard/views/applications/applications.service.ts
ttp-capstone/angular-fe 7881e59 src/app/admin/dashboard/dashboard/views/applications/applications.service.ts
true
200
443
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ApplicationService { private apiUrl = 'https://your-backend-api-url/applications'; // Replace with your actual backend URL construct...
3
dineshlamdade/UAT
5609b28
src/app/modules/companysetting/business-cycle/supplementary/supplementary.component.ts
TypeScript
www.github.com/dineshlamdade/UAT/tree/main/src/app/modules/companysetting/business-cycle/supplementary/supplementary.component.ts
https://raw.githubusercontent.com/dineshlamdade/UAT/5609b28/src/app/modules/companysetting/business-cycle/supplementary/supplementary.component.ts
dineshlamdade/UAT 5609b28 src/app/modules/companysetting/business-cycle/supplementary/supplementary.component.ts
true
200
12,916
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { ToastrService } from 'ngx-toastr'; import { SupplementaryService } from './supplementary.service'; import { AlertServiceService } from 'src/app/core/services/alert-service.servic...
2
Saudigitus/dhis2-semis-customfunc
8613e62
src/utils/common/validateRequiredParams.ts
TypeScript
www.github.com/Saudigitus/dhis2-semis-customfunc/tree/main/src/utils/common/validateRequiredParams.ts
https://raw.githubusercontent.com/Saudigitus/dhis2-semis-customfunc/8613e62/src/utils/common/validateRequiredParams.ts
Saudigitus/dhis2-semis-customfunc 8613e62 src/utils/common/validateRequiredParams.ts
true
200
1,335
import { ExportData } from "../../types/bulk/bulkOperations"; import { modules } from "../../types/common/moduleTypes"; import { isDateFormatValid } from "../format/checkDateFormat"; export function areParamsValid(props: ExportData) { let valid = true, msg = "" const { programConfig, fileName,...
1
wasimemumba/se-mern-emumba
8700476
Backend/src/services/budgetServices.ts
TypeScript
www.github.com/wasimemumba/se-mern-emumba/tree/main/Backend/src/services/budgetServices.ts
https://raw.githubusercontent.com/wasimemumba/se-mern-emumba/8700476/Backend/src/services/budgetServices.ts
wasimemumba/se-mern-emumba 8700476 Backend/src/services/budgetServices.ts
true
200
2,924
import { Types } from "mongoose"; import { BudgetEntry } from "../model/BudgetEntry"; import ApiError from "../utils/ApiError"; //Function to get all budgets by user id const getBudgetsByUserId = async (id:Types.ObjectId) => { //Return all budgets by user id return await BudgetEntry.find({user:id}).sort({date...
0
XovoTech/Sandcastle-component
872d537
lib/ui/index.d.ts
TypeScript
www.github.com/XovoTech/Sandcastle-component/tree/main/lib/ui/index.d.ts
https://raw.githubusercontent.com/XovoTech/Sandcastle-component/872d537/lib/ui/index.d.ts
XovoTech/Sandcastle-component 872d537 lib/ui/index.d.ts
true
200
1,088
import Button from "./Button"; import Card, { CardCaption } from "./Card"; import FontIcon from "./FontIcon"; import Grid, { Cell } from "./Grid"; import ListItem, { MenuItemLabel } from "./ListItem"; import Menu, { MenuButton } from "./Menu"; import Avatar from "./Avatar"; import Dialog, { DialogTitle, DialogBody, Dia...
2
hillj52/draft-app-24-server
ea6e9b8
src/projection/projected-points.service.ts
TypeScript
www.github.com/hillj52/draft-app-24-server/tree/main/src/projection/projected-points.service.ts
https://raw.githubusercontent.com/hillj52/draft-app-24-server/ea6e9b8/src/projection/projected-points.service.ts
hillj52/draft-app-24-server ea6e9b8 src/projection/projected-points.service.ts
true
200
2,040
import { Injectable, Logger } from "@nestjs/common"; import { EventEmitter2, OnEvent } from "@nestjs/event-emitter"; import { PlayerProjectionService } from "src/player-projection/player-projection.service"; import { PrismaService } from "src/prisma/prisma.service"; @Injectable() export class ProjectedPointsService { ...
1
RicardoBrito1938/nest-ddd
ee2fd01
src/infra/http/controllers/delete-question.controller.ts
TypeScript
www.github.com/RicardoBrito1938/nest-ddd/tree/main/src/infra/http/controllers/delete-question.controller.ts
https://raw.githubusercontent.com/RicardoBrito1938/nest-ddd/ee2fd01/src/infra/http/controllers/delete-question.controller.ts
RicardoBrito1938/nest-ddd ee2fd01 src/infra/http/controllers/delete-question.controller.ts
true
200
794
import { DeleteQuestionUseCase } from "@/domain/forum/application/use-cases/delete-question"; import { CurrentUser } from "@/infra/auth/current-user-decorator"; import { TokenPayload } from "@/infra/auth/jwt.strategy"; import { BadRequestException, Body, Controller, Delete, HttpCode, Param, } from "@nestjs/common...
0
ffff231231/vue3-ts-cms
53a6cc5
src/service/index.ts
TypeScript
www.github.com/ffff231231/vue3-ts-cms/tree/main/src/service/index.ts
https://raw.githubusercontent.com/ffff231231/vue3-ts-cms/53a6cc5/src/service/index.ts
ffff231231/vue3-ts-cms 53a6cc5 src/service/index.ts
true
200
791
import { localCache } from '@/utils/cache' import { BASE_URL, TIME_OUT } from './config' import HYRequest from './request' import { LOGIN_TOKEN } from '@/global/constants' const hyRequest = new HYRequest({ baseURL: BASE_URL, timeout: TIME_OUT, interceptors: { requestSuccessFn: (config) => { // 用户第一次登录的...
2
mackxu/nest-redis-article-view
0e680a0
src/redis/redis.module.ts
TypeScript
www.github.com/mackxu/nest-redis-article-view/tree/main/src/redis/redis.module.ts
https://raw.githubusercontent.com/mackxu/nest-redis-article-view/0e680a0/src/redis/redis.module.ts
mackxu/nest-redis-article-view 0e680a0 src/redis/redis.module.ts
true
200
324
import { Global, Module } from '@nestjs/common'; import { RedisService } from './redis.service'; import Redis from 'ioredis'; @Global() @Module({ providers: [ RedisService, { provide: 'REDIS_CLIENT', useFactory: () => new Redis(), }, ], exports: [RedisService], }) export class RedisModule...
1
el7or/Compounds
e31d7ee
Compound-Frontend/src/app/pages/units/compound-tree/dynamic-tree-data-source.class.ts
TypeScript
www.github.com/el7or/Compounds/tree/main/Compound-Frontend/src/app/pages/units/compound-tree/dynamic-tree-data-source.class.ts
https://raw.githubusercontent.com/el7or/Compounds/e31d7ee/Compound-Frontend/src/app/pages/units/compound-tree/dynamic-tree-data-source.class.ts
el7or/Compounds e31d7ee Compound-Frontend/src/app/pages/units/compound-tree/dynamic-tree-data-source.class.ts
true
200
3,734
import { CollectionViewer, SelectionChange } from "@angular/cdk/collections"; import { DataSource } from "@angular/cdk/table"; import { FlatTreeControl } from "@angular/cdk/tree"; import { BehaviorSubject, Observable, merge } from "rxjs"; import { map } from "rxjs/operators"; import { IGroup } from "src/app/services/ap...
0
Bea-ro/avantgarde-brm
c5e8917
src/styles/globals.ts
TypeScript
www.github.com/Bea-ro/avantgarde-brm/tree/main/src/styles/globals.ts
https://raw.githubusercontent.com/Bea-ro/avantgarde-brm/c5e8917/src/styles/globals.ts
Bea-ro/avantgarde-brm c5e8917 src/styles/globals.ts
true
200
1,598
import { createGlobalStyle } from "styled-components"; export const Global = createGlobalStyle<{path: string}>` @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;900&display=swap'); @keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1); } } :root ...
2