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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Catchy-do/catchy-do-front-end | 0ceecca | src/app/mentor/add-blog/add-blog.component.ts | TypeScript | www.github.com/Catchy-do/catchy-do-front-end/tree/main/src/app/mentor/add-blog/add-blog.component.ts | https://raw.githubusercontent.com/Catchy-do/catchy-do-front-end/0ceecca/src/app/mentor/add-blog/add-blog.component.ts | Catchy-do/catchy-do-front-end 0ceecca src/app/mentor/add-blog/add-blog.component.ts | true | 200 | 496 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-add-blog',
templateUrl: './add-blog.component.html',
styleUrls: ['./add-blog.component.css'],
})
export class AddBlogComponent implements OnInit {
constructor() {}
ngOnInit(): void {}
files: File[] = [];
onSelect(event:any)... | 7 |
16-work/web3-react-ts-vite | 2ce7c96 | src/hooks/init/useGlobalHooks.ts | TypeScript | www.github.com/16-work/web3-react-ts-vite/tree/main/src/hooks/init/useGlobalHooks.ts | https://raw.githubusercontent.com/16-work/web3-react-ts-vite/2ce7c96/src/hooks/init/useGlobalHooks.ts | 16-work/web3-react-ts-vite 2ce7c96 src/hooks/init/useGlobalHooks.ts | true | 200 | 340 | import wallet from '../useWallet';
import contract from '../contract';
// 类型声明
export const hooks = {} as {
wallet: ReturnType<typeof wallet>;
contract: ReturnType<typeof contract>;
};
/** Hook
* 初始化
*/
export const useGlobalHooks = () => {
hooks.wallet = wallet();
hooks.contract = contract();... | 1 |
anaritadauane/my-portfolio | ae64302 | portfolio/tailwind.config.ts | TypeScript | www.github.com/anaritadauane/my-portfolio/tree/main/portfolio/tailwind.config.ts | https://raw.githubusercontent.com/anaritadauane/my-portfolio/ae64302/portfolio/tailwind.config.ts | anaritadauane/my-portfolio ae64302 portfolio/tailwind.config.ts | true | 200 | 814 | import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradien... | 0 |
tuhinsaud4614/result-system-monorepo | faffd85 | libs/backend/utility/src/lib/redis-client.ts | TypeScript | www.github.com/tuhinsaud4614/result-system-monorepo/tree/main/libs/backend/utility/src/lib/redis-client.ts | https://raw.githubusercontent.com/tuhinsaud4614/result-system-monorepo/faffd85/libs/backend/utility/src/lib/redis-client.ts | tuhinsaud4614/result-system-monorepo faffd85 libs/backend/utility/src/lib/redis-client.ts | true | 200 | 855 | import { Redis } from "ioredis";
import environment from "./environment";
import logger from "./logger";
class RedisClient {
static #instance: Redis;
private constructor() {}
public static get instance() {
if (this.#instance) {
return this.#instance;
}
this.#instance = new Redis(
`redi... | 2 |
GianPinedo/straconclient | 633f76c | src/app/core/login.guard.ts | TypeScript | www.github.com/GianPinedo/straconclient/tree/main/src/app/core/login.guard.ts | https://raw.githubusercontent.com/GianPinedo/straconclient/633f76c/src/app/core/login.guard.ts | GianPinedo/straconclient 633f76c src/app/core/login.guard.ts | true | 200 | 573 | import { Injectable } from '@angular/core';
import { CanActivate, Router } from '@angular/router';
import { AuthService } from './auth.service';
@Injectable({
providedIn: 'root',
})
export class LoginGuard implements CanActivate {
constructor(private authService: AuthService, private router: Router) {}
canActiv... | 3 |
Esencial360/esencial | 29f9046 | src/app/pages/user-dashboard/user-dashboard.component.ts | TypeScript | www.github.com/Esencial360/esencial/tree/main/src/app/pages/user-dashboard/user-dashboard.component.ts | https://raw.githubusercontent.com/Esencial360/esencial/29f9046/src/app/pages/user-dashboard/user-dashboard.component.ts | Esencial360/esencial 29f9046 src/app/pages/user-dashboard/user-dashboard.component.ts | true | 200 | 4,950 | import { Component, OnInit, Input, Inject, PLATFORM_ID } from '@angular/core';
import { AuthService } from '@auth0/auth0-angular';
// import { AuthService } from '../../shared/services/auth.service';
import { takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
import { BunnystreamService } from '../../sh... | 5 |
shakhawat1355/abpTest | 01cc911 | angular/src/app/proxy/customer-comments/customer-comment.service.ts | TypeScript | www.github.com/shakhawat1355/abpTest/tree/main/angular/src/app/proxy/customer-comments/customer-comment.service.ts | https://raw.githubusercontent.com/shakhawat1355/abpTest/01cc911/angular/src/app/proxy/customer-comments/customer-comment.service.ts | shakhawat1355/abpTest 01cc911 angular/src/app/proxy/customer-comments/customer-comment.service.ts | true | 200 | 1,818 | import type { CreateUpdateCustomerCommentDto, CustomerCommentDto } from './models';
import { RestService, Rest } from '@abp/ng.core';
import type { PagedAndSortedResultRequestDto, PagedResultDto } from '@abp/ng.core';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class Custo... | 6 |
CyberSecurityLabPL/Calendar-front | a49d809 | src/hooks/useMe/meQueryOptions.ts | TypeScript | www.github.com/CyberSecurityLabPL/Calendar-front/tree/main/src/hooks/useMe/meQueryOptions.ts | https://raw.githubusercontent.com/CyberSecurityLabPL/Calendar-front/a49d809/src/hooks/useMe/meQueryOptions.ts | CyberSecurityLabPL/Calendar-front a49d809 src/hooks/useMe/meQueryOptions.ts | true | 200 | 380 | import { URLS } from '@/config/urls';
import { User } from '@/types/User';
import { Axios } from '@/utils/Axios';
import { queryOptions } from '@tanstack/react-query';
export const meQueryOptions = queryOptions({
queryKey: ['me'],
queryFn: async () =>
Axios.get<User>(URLS.ME())
.then(res => res.data)
... | 4 |
tristan-kenneth-tarpley/intelfox | 340afc2 | src/jobs/reporting/runWebpageMessagingReport.ts | TypeScript | www.github.com/tristan-kenneth-tarpley/intelfox/tree/main/src/jobs/reporting/runWebpageMessagingReport.ts | https://raw.githubusercontent.com/tristan-kenneth-tarpley/intelfox/340afc2/src/jobs/reporting/runWebpageMessagingReport.ts | tristan-kenneth-tarpley/intelfox 340afc2 src/jobs/reporting/runWebpageMessagingReport.ts | true | 200 | 607 | import summarizeWebsiteMessaging from "@/lib/logic/aiCapabilities/summarizeWebsiteMessaging";
import db from "@/lib/services/db/db";
const runWebpageMessagingReport = async ({
url,
teamId,
competitorId,
}: {
url: string;
teamId?: string;
competitorId?: string;
}) => {
const pageSummary = await summarizeW... | 7 |
atnightfa11/fresh-start | 56aa49f | lib/sonar.ts | TypeScript | www.github.com/atnightfa11/fresh-start/tree/main/lib/sonar.ts | https://raw.githubusercontent.com/atnightfa11/fresh-start/56aa49f/lib/sonar.ts | atnightfa11/fresh-start 56aa49f lib/sonar.ts | true | 200 | 3,348 | import { MarketIntelligenceData } from "@/types/api";
import { useState, useEffect } from "react";
const MARKET_INTEL_ENDPOINT = `${process.env.NEXT_PUBLIC_API_URL}/api/market-intelligence`;
const sampleMarketData: MarketIntelligenceData = {
trends: [
{
title: "AI-Powered Personalization",
descripti... | 1 |
mujtaba540/angular-firebase-arthur | 58d4f47 | src/app/app.config.ts | TypeScript | www.github.com/mujtaba540/angular-firebase-arthur/tree/main/src/app/app.config.ts | https://raw.githubusercontent.com/mujtaba540/angular-firebase-arthur/58d4f47/src/app/app.config.ts | mujtaba540/angular-firebase-arthur 58d4f47 src/app/app.config.ts | true | 200 | 1,033 | import {
ApplicationConfig,
importProvidersFrom,
provideZoneChangeDetection,
} from '@angular/core';
import { provideRouter } from '@angular/router';
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
import { routes } ... | 0 |
mbayesokhnathiam/phonebook | 7ab5cd5 | PhoneBookClient/src/app/layouts/horizontal-topbar/menu.ts | TypeScript | www.github.com/mbayesokhnathiam/phonebook/tree/main/PhoneBookClient/src/app/layouts/horizontal-topbar/menu.ts | https://raw.githubusercontent.com/mbayesokhnathiam/phonebook/7ab5cd5/PhoneBookClient/src/app/layouts/horizontal-topbar/menu.ts | mbayesokhnathiam/phonebook 7ab5cd5 PhoneBookClient/src/app/layouts/horizontal-topbar/menu.ts | true | 200 | 1,182 | import { MenuItem } from './menu.model';
export const MENU: MenuItem[] = [
{
id: 1,
label: 'MENUITEMS.MENU.TEXT',
isTitle: true
},
{
id: 4,
label: 'Paramètrage',
icon: 'mdi mdi-cog-outline',
subItems: [
{
id: 5,
label: 'Pays',
link... | 2 |
ByronKweh/docker-nestjs-aws | 987cd82 | src/shared/shared.dto.ts | TypeScript | www.github.com/ByronKweh/docker-nestjs-aws/tree/main/src/shared/shared.dto.ts | https://raw.githubusercontent.com/ByronKweh/docker-nestjs-aws/987cd82/src/shared/shared.dto.ts | ByronKweh/docker-nestjs-aws 987cd82 src/shared/shared.dto.ts | true | 200 | 676 | import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsInt, IsOptional, Min } from 'class-validator';
export class SearchParamsDto {
@IsOptional()
@IsInt()
@Min(1)
@ApiPropertyOptional({
description: 'Page number for pagination',
example: 1,
})
page?: number;
@IsOptional(... | 4 |
AlexZakablukov/three-js | 969a910 | floorPlanV2/models/FloorPlanItem.ts | TypeScript | www.github.com/AlexZakablukov/three-js/tree/main/floorPlanV2/models/FloorPlanItem.ts | https://raw.githubusercontent.com/AlexZakablukov/three-js/969a910/floorPlanV2/models/FloorPlanItem.ts | AlexZakablukov/three-js 969a910 floorPlanV2/models/FloorPlanItem.ts | true | 200 | 2,325 | import * as THREE from "three";
import { TCoords, IParams } from "../types/helpers";
import { IFloorPlanItem, IFloorPlanItemData } from "../types/floorPlanItem";
import { getColorAndOpacityFromRgba } from "../helpers";
/**
* Represents a floor plan item as a mesh in the scene.
*/
export class FloorPlanItem extends ... | 3 |
vikejs/vike-node | 91e3724 | packages/vike-server/src/config.ts | TypeScript | www.github.com/vikejs/vike-node/tree/main/packages/vike-server/src/config.ts | https://raw.githubusercontent.com/vikejs/vike-node/91e3724/packages/vike-server/src/config.ts | vikejs/vike-node 91e3724 packages/vike-server/src/config.ts | true | 200 | 709 | import { vikeServer } from './plugin/index.js'
import type { ConfigVikeServer } from './types.js'
import type { Config } from 'vike/types'
export { config as default }
const config = {
name: 'vike-server',
require: {
vike: '>=0.4.228'
},
vite: {
plugins: [vikeServer()]
},
vite6BuilderApp: true,
... | 5 |
Ruchita1010/novas-strike | 7cb5f63 | src/shared/types.ts | TypeScript | www.github.com/Ruchita1010/novas-strike/tree/main/src/shared/types.ts | https://raw.githubusercontent.com/Ruchita1010/novas-strike/7cb5f63/src/shared/types.ts | Ruchita1010/novas-strike 7cb5f63 src/shared/types.ts | true | 200 | 1,584 | export type Player = {
id: string;
name: string;
x: number;
y: number;
spriteKey: string;
slot: number;
colorIdx: number;
seqNumber: number;
kills: number;
health: number;
};
export type PlayerProfile = Pick<Player, 'name' | 'spriteKey'>;
export type Direction = 'left' | 'right' | 'up' | 'down';
... | 6 |
Skema1114/ecommerce-angular-pro | 6673bb5 | libs/modules/feature/auth/form/src/lib/auth-form/auth-form-password/auth-form-password.component.spec.ts | TypeScript | www.github.com/Skema1114/ecommerce-angular-pro/tree/main/libs/modules/feature/auth/form/src/lib/auth-form/auth-form-password/auth-form-password.component.spec.ts | https://raw.githubusercontent.com/Skema1114/ecommerce-angular-pro/6673bb5/libs/modules/feature/auth/form/src/lib/auth-form/auth-form-password/auth-form-password.component.spec.ts | Skema1114/ecommerce-angular-pro 6673bb5 libs/modules/feature/auth/form/src/lib/auth-form/auth-form-password/auth-form-password.component.spec.ts | true | 200 | 1,538 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { provideRouter } from '@angular/router';
import { AuthFormComponent } from '../auth-form.component';
import { AuthFormPasswordComponent } from './auth-form-password.com... | 7 |
grraghav120/AngularLearning | 7d4dfa5 | src/app/assignment03/assignment03.component.ts | TypeScript | www.github.com/grraghav120/AngularLearning/tree/main/src/app/assignment03/assignment03.component.ts | https://raw.githubusercontent.com/grraghav120/AngularLearning/7d4dfa5/src/app/assignment03/assignment03.component.ts | grraghav120/AngularLearning 7d4dfa5 src/app/assignment03/assignment03.component.ts | true | 200 | 519 | import { Component } from '@angular/core';
@Component({
selector: 'app-assignment03',
templateUrl: './assignment03.component.html',
styleUrls: ['./assignment03.component.css'],
})
export class Assignment03Component {
countLog = [];
element = 0;
constructor() {}
onClick() {
this.element += 1;
this... | 1 |
DDog-org/daengle-client | 9a9aaa4 | apps/daengle/src/models/search/index.ts | TypeScript | www.github.com/DDog-org/daengle-client/tree/main/apps/daengle/src/models/search/index.ts | https://raw.githubusercontent.com/DDog-org/daengle-client/9a9aaa4/apps/daengle/src/models/search/index.ts | DDog-org/daengle-client 9a9aaa4 apps/daengle/src/models/search/index.ts | true | 200 | 723 | import { GROOMER_SEARCH_TAG, VET_SEARCH_TAG } from '~/constants/search';
export interface GetUserSearchRequestParams {
page?: number;
size?: number;
address: string | undefined;
keyword: string;
tag: string;
}
export interface GetUserGroomerSearchResponse {
page: number;
size: number;
totalElements: nu... | 0 |
jesusgg-21/pruebaTecnica | edcde0b | front/src/app/services/movimientos.service.ts | TypeScript | www.github.com/jesusgg-21/pruebaTecnica/tree/main/front/src/app/services/movimientos.service.ts | https://raw.githubusercontent.com/jesusgg-21/pruebaTecnica/edcde0b/front/src/app/services/movimientos.service.ts | jesusgg-21/pruebaTecnica edcde0b front/src/app/services/movimientos.service.ts | true | 200 | 1,045 | import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MovimientosService{
private baseURL = 'http://localhost:8013'
headers= new HttpHeaders().set('content-type', 'ap... | 3 |
AlexSerbin24/chat-test-task | 75d75c0 | client/src/hooks/useChats.ts | TypeScript | www.github.com/AlexSerbin24/chat-test-task/tree/main/client/src/hooks/useChats.ts | https://raw.githubusercontent.com/AlexSerbin24/chat-test-task/75d75c0/client/src/hooks/useChats.ts | AlexSerbin24/chat-test-task 75d75c0 client/src/hooks/useChats.ts | true | 200 | 296 | import { useContext } from 'react';
import { ChatsContext } from '../components/contexts/chatsContext';
const useChats = () => {
const context = useContext(ChatsContext);
if (!context) {
throw new Error('Must be used in ChatProvider');
}
return context;
};
export default useChats; | 2 |
tenpaMk2/sd-random-prompt-generator | c52907a | src/tag-defines/emotion.mts | TypeScript | www.github.com/tenpaMk2/sd-random-prompt-generator/tree/main/src/tag-defines/emotion.mts | https://raw.githubusercontent.com/tenpaMk2/sd-random-prompt-generator/c52907a/src/tag-defines/emotion.mts | tenpaMk2/sd-random-prompt-generator c52907a src/tag-defines/emotion.mts | true | 200 | 599 | const allEmotionTags = [
`blush`,
`nose blush`,
`smile`,
`light smile`,
`parted lips`,
`:d`,
`;d`,
`:\\)`,
`;\\)`,
`:o`,
`;o`,
`open mouth`,
`closed mouth`,
`half-closed eyes`,
`expressionless`,
`surprised`,
`embarrassed`,
`nervous`,
`flustered`,
`naughty face`,
`scowl`,
`one... | 4 |
korsar312/Gamepack | f956161 | src/Logic/Core/Modules/Language/UseCase/Methods/SetCurrentLanguage/SetCurrentLanguage.ts | TypeScript | www.github.com/korsar312/Gamepack/tree/main/src/Logic/Core/Modules/Language/UseCase/Methods/SetCurrentLanguage/SetCurrentLanguage.ts | https://raw.githubusercontent.com/korsar312/Gamepack/f956161/src/Logic/Core/Modules/Language/UseCase/Methods/SetCurrentLanguage/SetCurrentLanguage.ts | korsar312/Gamepack f956161 src/Logic/Core/Modules/Language/UseCase/Methods/SetCurrentLanguage/SetCurrentLanguage.ts | true | 200 | 418 | import { LanguageInterface } from "../../../Language.interface";
export class SetCurrentLanguage {
static execute(module: LanguageInterface.IModules) {
return function (languageType: LanguageInterface.ELanguageType) {
const storeLanguage = module.service.store.getStore();
const newStore = module.domain.setCur... | 5 |
newneymar92/MyFirstMockPrjAngular | 3c1f8b8 | src/app/components/editstudents/editstudents.component.ts | TypeScript | www.github.com/newneymar92/MyFirstMockPrjAngular/tree/main/src/app/components/editstudents/editstudents.component.ts | https://raw.githubusercontent.com/newneymar92/MyFirstMockPrjAngular/3c1f8b8/src/app/components/editstudents/editstudents.component.ts | newneymar92/MyFirstMockPrjAngular 3c1f8b8 src/app/components/editstudents/editstudents.component.ts | true | 200 | 1,972 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { StudentsService } from '../../services/students.service';
import { Student } from '../../Student';
import { NzNotificationService } from 'ng-zorro-antd/notificati... | 6 |
nimit9/aircall-assignment | c17c50b | src/__tests__/helpers/call-list-helper.test.ts | TypeScript | www.github.com/nimit9/aircall-assignment/tree/main/src/__tests__/helpers/call-list-helper.test.ts | https://raw.githubusercontent.com/nimit9/aircall-assignment/c17c50b/src/__tests__/helpers/call-list-helper.test.ts | nimit9/aircall-assignment c17c50b src/__tests__/helpers/call-list-helper.test.ts | true | 200 | 9,133 | import {
getActivityFeed,
getArchiveData,
getCallsListByType,
getCallsListSortedByDate,
groupCallsByDate,
} from '../../lib/helpers/call-list.helpers';
import { describe, it, expect } from 'vitest';
import {
ICallDetail,
ICallDetailWithMissingKeys,
} from '@/interfaces/call.interface';
cons... | 7 |
efficks/arenasqc | b3d6b39 | arenaqc/src/stores/region.ts | TypeScript | www.github.com/efficks/arenasqc/tree/main/arenaqc/src/stores/region.ts | https://raw.githubusercontent.com/efficks/arenasqc/b3d6b39/arenaqc/src/stores/region.ts | efficks/arenasqc b3d6b39 arenaqc/src/stores/region.ts | true | 200 | 1,517 | // Utilities
import { defineStore } from 'pinia'
import axios from "axios"
import { ref, computed } from 'vue'
import type { Ref } from 'vue'
export type Region = {
name: string,
code: number,
population: number
}
export const useRegionStore = defineStore('region', () => {
const regions: Ref<Region[]... | 0 |
schedule-x/schedule-x | bdf911a | packages/event-recurrence/src/__test__/on-range-update.spec.ts | TypeScript | www.github.com/schedule-x/schedule-x/tree/main/packages/event-recurrence/src/__test__/on-range-update.spec.ts | https://raw.githubusercontent.com/schedule-x/schedule-x/bdf911a/packages/event-recurrence/src/__test__/on-range-update.spec.ts | schedule-x/schedule-x bdf911a packages/event-recurrence/src/__test__/on-range-update.spec.ts | true | 200 | 5,669 | import {
describe,
it,
expect,
} from '@schedule-x/shared/src/utils/stateless/testing/unit/unit-testing-library.impl'
import CalendarEventExternal from '@schedule-x/shared/src/interfaces/calendar/calendar-event.interface'
import { __createAppWithViews__ } from '@schedule-x/calendar/src/utils/stateless/testing/__c... | 1 |
piyusheklavya777/flowerbouquet | 2243a89 | back-end/authentication/test/unit/communication/in/http/index.test.ts | TypeScript | www.github.com/piyusheklavya777/flowerbouquet/tree/main/back-end/authentication/test/unit/communication/in/http/index.test.ts | https://raw.githubusercontent.com/piyusheklavya777/flowerbouquet/2243a89/back-end/authentication/test/unit/communication/in/http/index.test.ts | piyusheklavya777/flowerbouquet 2243a89 back-end/authentication/test/unit/communication/in/http/index.test.ts | true | 200 | 3,549 | // import '@types/jest'
import logger from '../../../../../common/logger';
import { httpHandler } from '../../../../../communication/in/http/http-handler';
import { httpPathEnums } from '../../../../../infrastructure/express/app';
import { signupHandler } from '../../../../../packages/sign-up';
jest.mock('../../../../... | 2 |
mukmin85/idm-web | 9bb5709 | src/components/Modal/styled.ts | TypeScript | www.github.com/mukmin85/idm-web/tree/main/src/components/Modal/styled.ts | https://raw.githubusercontent.com/mukmin85/idm-web/9bb5709/src/components/Modal/styled.ts | mukmin85/idm-web 9bb5709 src/components/Modal/styled.ts | true | 200 | 1,340 | import styled from 'styled-components'
import { Button, Modal } from 'antd'
import { CheckCircleOutlined, CloseCircleOutlined } from '@ant-design/icons'
const Content = styled.div`
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: ${({ theme }) => (theme.darkmode ? ... | 3 |
TomasGauna/app_chat_android | 1a431b6 | src/app/chats/cuarto-b/cuarto-b.page.spec.ts | TypeScript | www.github.com/TomasGauna/app_chat_android/tree/main/src/app/chats/cuarto-b/cuarto-b.page.spec.ts | https://raw.githubusercontent.com/TomasGauna/app_chat_android/1a431b6/src/app/chats/cuarto-b/cuarto-b.page.spec.ts | TomasGauna/app_chat_android 1a431b6 src/app/chats/cuarto-b/cuarto-b.page.spec.ts | true | 200 | 459 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CuartoBPage } from './cuarto-b.page';
describe('CuartoBPage', () => {
let component: CuartoBPage;
let fixture: ComponentFixture<CuartoBPage>;
beforeEach(async(() => {
fixture = TestBed.createComponent(CuartoBPage);
component = f... | 4 |
leandrofiadone/CSV-Chat-AI | d96de12 | src/app.ts | TypeScript | www.github.com/leandrofiadone/CSV-Chat-AI/tree/main/src/app.ts | https://raw.githubusercontent.com/leandrofiadone/CSV-Chat-AI/d96de12/src/app.ts | leandrofiadone/CSV-Chat-AI d96de12 src/app.ts | true | 200 | 638 | // app.ts
import {setupCSVLangChain, askQuestion} from "./csv-ai.js"
import { setupPDFLangChain } from './pdf-ai.js'
// Función principal para configurar LangChain y hacer la pregunta
async function csvChat() {
const {chain, vectorStore} = await setupCSVLangChain()
const question = "Cual es el nombre de los pr... | 5 |
duy6861/webfontend | 5eaccd5 | src/app/service/user.service.ts | TypeScript | www.github.com/duy6861/webfontend/tree/main/src/app/service/user.service.ts | https://raw.githubusercontent.com/duy6861/webfontend/5eaccd5/src/app/service/user.service.ts | duy6861/webfontend 5eaccd5 src/app/service/user.service.ts | true | 200 | 1,063 | import { Injectable } from '@angular/core';
import { NhanVien } from '../models/nhanvien';
import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument } from '@angular/fire/firestore';
import { Observable, from } from 'rxjs';
import { map } from "rxjs/operators";
@Injectable({
providedIn: 'root'
... | 7 |
GuilhermeOlavoLaux/guilherme-laux | 2d64545 | src/hooks/useSkillCards.ts | TypeScript | www.github.com/GuilhermeOlavoLaux/guilherme-laux/tree/main/src/hooks/useSkillCards.ts | https://raw.githubusercontent.com/GuilhermeOlavoLaux/guilherme-laux/2d64545/src/hooks/useSkillCards.ts | GuilhermeOlavoLaux/guilherme-laux 2d64545 src/hooks/useSkillCards.ts | true | 200 | 1,632 | import ResponsiveDesignImage from "@assets/responsive-design.png";
import ResponsiveDesignImage2 from "@assets/teste.png";
import Lighthouse from "@assets/lighthouse.png";
export interface SkillCardPropsTypes {
id: number;
title: string;
image: string;
imageAlt: string;
description: string;
}
export default... | 6 |
5731020721-JT/ui-test | 3ad3840 | src/app/medical-fee/medical-fee.component.spec.ts | TypeScript | www.github.com/5731020721-JT/ui-test/tree/main/src/app/medical-fee/medical-fee.component.spec.ts | https://raw.githubusercontent.com/5731020721-JT/ui-test/3ad3840/src/app/medical-fee/medical-fee.component.spec.ts | 5731020721-JT/ui-test 3ad3840 src/app/medical-fee/medical-fee.component.spec.ts | true | 200 | 657 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MedicalFeeComponent } from './medical-fee.component';
describe('MedicalFeeComponent', () => {
let component: MedicalFeeComponent;
let fixture: ComponentFixture<MedicalFeeComponent>;
beforeEach(async(() => {
TestBed.configure... | 0 |
planjs/stan | 2153a9e | packages/oss-upload-tool/src/types.ts | TypeScript | www.github.com/planjs/stan/tree/main/packages/oss-upload-tool/src/types.ts | https://raw.githubusercontent.com/planjs/stan/2153a9e/packages/oss-upload-tool/src/types.ts | planjs/stan 2153a9e packages/oss-upload-tool/src/types.ts | true | 200 | 2,360 | import type COS from 'cos-nodejs-sdk-v5';
import type AOSS from 'ali-oss';
import type { S3ClientConfig, PutObjectCommandInput } from '@aws-sdk/client-s3';
/**
* 上传参数
*/
type UploadParams =
| Partial<COS.UploadFileParams>
| Partial<AOSS.PutObjectOptions>
| Partial<PutObjectCommandInput>;
/**
* 对象存储类型
*/
exp... | 2 |
apogiatzis/encode-ai-artgpt | a21c39d | app/api/gen/image/route.ts | TypeScript | www.github.com/apogiatzis/encode-ai-artgpt/tree/main/app/api/gen/image/route.ts | https://raw.githubusercontent.com/apogiatzis/encode-ai-artgpt/a21c39d/app/api/gen/image/route.ts | apogiatzis/encode-ai-artgpt a21c39d app/api/gen/image/route.ts | true | 200 | 613 | import { AssistantResponse } from 'ai';
import { NextResponse } from 'next/server';
import OpenAI from 'openai';
const openai = new OpenAI({
...(process.env.OPENAI_KEY && { apiKey: process.env.OPENAI_KEY }),
});
export const runtime = 'edge';
export async function POST(req: Request) {
const { prompt } = awai... | 1 |
katherinevilla/angular-master-detail-crud | c432a77 | src/app/app-routing.module.ts | TypeScript | www.github.com/katherinevilla/angular-master-detail-crud/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/katherinevilla/angular-master-detail-crud/c432a77/src/app/app-routing.module.ts | katherinevilla/angular-master-detail-crud c432a77 src/app/app-routing.module.ts | true | 200 | 370 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{path: 'categories', loadChildren: () => import('./pages/categories/categories.module').then(h => h.CategoriesModule)
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [Ro... | 3 |
confluentinc/vscode | e27716e | src/docker/constants.ts | TypeScript | www.github.com/confluentinc/vscode/tree/main/src/docker/constants.ts | https://raw.githubusercontent.com/confluentinc/vscode/e27716e/src/docker/constants.ts | confluentinc/vscode e27716e src/docker/constants.ts | true | 200 | 1,528 | /**
* Default image to use for local Kafka (broker) container(s).
*
* Must match the default value in the "confluent.docker.localKafkaImage" configuration in package.json.
*/
export const DEFAULT_KAFKA_IMAGE_REPO = "confluentinc/confluent-local";
/**
* Default image to use for the local Schema Registry container.... | 4 |
Preetb71/SENG8070_FinalProject | f544842 | persistence-service/backend/src/strategy/postgresql/shipment/shipmentApi.ts | TypeScript | www.github.com/Preetb71/SENG8070_FinalProject/tree/main/persistence-service/backend/src/strategy/postgresql/shipment/shipmentApi.ts | https://raw.githubusercontent.com/Preetb71/SENG8070_FinalProject/f544842/persistence-service/backend/src/strategy/postgresql/shipment/shipmentApi.ts | Preetb71/SENG8070_FinalProject f544842 persistence-service/backend/src/strategy/postgresql/shipment/shipmentApi.ts | true | 200 | 6,403 | import { Express } from "express";
import { DataSource } from "typeorm";
import { Shipment } from "./shipment";
import { TruckTrip } from "../truckTrip";
import { Customer } from "../customer";
export default class ShipmentApi {
#dataSource: DataSource;
#express: Express;
constructor(dataSource: DataSou... | 5 |
akhiln2003/Microservice_Ticketing | 235c48b | tickets/src/events/listener/order-cancelled-listener.ts | TypeScript | www.github.com/akhiln2003/Microservice_Ticketing/tree/main/tickets/src/events/listener/order-cancelled-listener.ts | https://raw.githubusercontent.com/akhiln2003/Microservice_Ticketing/235c48b/tickets/src/events/listener/order-cancelled-listener.ts | akhiln2003/Microservice_Ticketing 235c48b tickets/src/events/listener/order-cancelled-listener.ts | true | 200 | 1,024 | import { Listener, OrderCancelledEvent, Subjects } from "@4ktickets/common";
import { queuegroupName } from "./queue-group-name";
import { Message } from "node-nats-streaming";
import { Ticket } from "../../models/ticket";
import { TicketUpdatedPublisher } from "../publishers/ticket-updated-publisher";
export class O... | 7 |
AlexanderYovzhenko/Inside_Task | ffb613a | src/endpoints/messages/message.controller.ts | TypeScript | www.github.com/AlexanderYovzhenko/Inside_Task/tree/main/src/endpoints/messages/message.controller.ts | https://raw.githubusercontent.com/AlexanderYovzhenko/Inside_Task/ffb613a/src/endpoints/messages/message.controller.ts | AlexanderYovzhenko/Inside_Task ffb613a src/endpoints/messages/message.controller.ts | true | 200 | 1,143 | import { FastifyRequest, FastifyReply } from 'fastify';
import messageService from './message.service';
import statusCode from '../../common/status.code';
import Message from './message.model';
import { IMessage } from '../../common/types';
type FastifyRequestMessage = FastifyRequest<{
Body: IMessage;
Params: {
... | 0 |
LucasCosta24/Rise-Up---Porto-Digital-2024.1 | 1a4365f | src/app/components/select/select.component.ts | TypeScript | www.github.com/LucasCosta24/Rise-Up---Porto-Digital-2024.1/tree/main/src/app/components/select/select.component.ts | https://raw.githubusercontent.com/LucasCosta24/Rise-Up---Porto-Digital-2024.1/1a4365f/src/app/components/select/select.component.ts | LucasCosta24/Rise-Up---Porto-Digital-2024.1 1a4365f src/app/components/select/select.component.ts | true | 200 | 687 | import {Component, Input, input} from '@angular/core';
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatSelectModule} from '@angular/material/select';
import {MatFormFieldModule} from '@angular/material/form-field';
import { CommonModule } from '@angular/common';
/** @title Sele... | 1 |
r0dr1g0/sistemaAngular | b8b95c2 | src/app/website/pages/modulos/modulos.module.ts | TypeScript | www.github.com/r0dr1g0/sistemaAngular/tree/main/src/app/website/pages/modulos/modulos.module.ts | https://raw.githubusercontent.com/r0dr1g0/sistemaAngular/b8b95c2/src/app/website/pages/modulos/modulos.module.ts | r0dr1g0/sistemaAngular b8b95c2 src/app/website/pages/modulos/modulos.module.ts | true | 200 | 689 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ModulosRoutingModule } from './modulos-routing.module';
// SERVICIOS
import { Service } from 'src/app/services/service.service';
// COMPONENTES
import { ExamplesComponent } from './examples/examples.component';
import {... | 2 |
zarunraj/CarCo | da1f14b | CarCo.UI/src/app/pages/vehicle/vehicle-details/vehicle-details.component.ts | TypeScript | www.github.com/zarunraj/CarCo/tree/main/CarCo.UI/src/app/pages/vehicle/vehicle-details/vehicle-details.component.ts | https://raw.githubusercontent.com/zarunraj/CarCo/da1f14b/CarCo.UI/src/app/pages/vehicle/vehicle-details/vehicle-details.component.ts | zarunraj/CarCo da1f14b CarCo.UI/src/app/pages/vehicle/vehicle-details/vehicle-details.component.ts | true | 200 | 6,223 | import { HttpEventType } from '@angular/common/http'
import { AfterContentInit, Component, OnInit } from '@angular/core'
import { ActivatedRoute, ParamMap } from '@angular/router'
import flatpickr from 'flatpickr'
import { MessageService } from 'primeng/api'
import { switchMap, of } from 'rxjs'
import { Driver } from '... | 3 |
TDT4290-Gruppe-10/kegeland-app | 915b8cc | app/src/state/ducks/bluetooth/__tests__/bluetooth.saga.test.ts | TypeScript | www.github.com/TDT4290-Gruppe-10/kegeland-app/tree/main/app/src/state/ducks/bluetooth/__tests__/bluetooth.saga.test.ts | https://raw.githubusercontent.com/TDT4290-Gruppe-10/kegeland-app/915b8cc/app/src/state/ducks/bluetooth/__tests__/bluetooth.saga.test.ts | TDT4290-Gruppe-10/kegeland-app 915b8cc app/src/state/ducks/bluetooth/__tests__/bluetooth.saga.test.ts | true | 200 | 2,256 | import {expectSaga} from 'redux-saga-test-plan';
import {deviceMock} from '~state/ducks/__mocks__/bluetooth.mocks';
import {store} from '~state/store';
import * as utils from '~utils/bluetooth';
import {BluetoothState} from '../bluetooth.interface';
import bluetoothReducer, {initialState} from '../bluetooth.reducer';... | 7 |
jakehamilton/senchou | 9a39a94 | packages/cli/src/commands/k8s/index.ts | TypeScript | www.github.com/jakehamilton/senchou/tree/main/packages/cli/src/commands/k8s/index.ts | https://raw.githubusercontent.com/jakehamilton/senchou/9a39a94/packages/cli/src/commands/k8s/index.ts | jakehamilton/senchou 9a39a94 packages/cli/src/commands/k8s/index.ts | true | 200 | 1,275 | import fs from "fs";
import path from "path";
import mkdirp from "mkdirp";
import core from "@senchou/core";
import help from "./help";
import getArgs from "./args";
import { resolveRelativePath } from "../../util/path";
import log from "../../util/log";
const command = async () => {
const args = getArgs();
if (ar... | 5 |
Eyobedk/GraphQL-with-TypeScript--Apollo-Server | 11cbf3b | src/loaders/database.ts | TypeScript | www.github.com/Eyobedk/GraphQL-with-TypeScript--Apollo-Server/tree/main/src/loaders/database.ts | https://raw.githubusercontent.com/Eyobedk/GraphQL-with-TypeScript--Apollo-Server/11cbf3b/src/loaders/database.ts | Eyobedk/GraphQL-with-TypeScript--Apollo-Server 11cbf3b src/loaders/database.ts | true | 200 | 287 | import { db } from "../database/db";
export async function connect(){
await db.authenticate().then(() => {
console.log('✌️ DB loaded and connected!');
}).catch((error) => {
console.error('⚠Unable to connect to the database:', error);
db.close()
});
} | 0 |
SantisanR2/Parcial2Web | 9ab88df | src/foto/foto.entity.ts | TypeScript | www.github.com/SantisanR2/Parcial2Web/tree/main/src/foto/foto.entity.ts | https://raw.githubusercontent.com/SantisanR2/Parcial2Web/9ab88df/src/foto/foto.entity.ts | SantisanR2/Parcial2Web 9ab88df src/foto/foto.entity.ts | true | 200 | 639 | /* eslint-disable prettier/prettier */
import { AlbumEntity } from "src/album/album.entity";
import { UsuarioEntity } from "src/usuario/usuario.entity";
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class FotoEntity {
@PrimaryGeneratedColumn('uuid')
id: string;
... | 2 |
klaus-0-0/prisma | 61918b1 | src/get-users.ts | TypeScript | www.github.com/klaus-0-0/prisma/tree/main/src/get-users.ts | https://raw.githubusercontent.com/klaus-0-0/prisma/61918b1/src/get-users.ts | klaus-0-0/prisma 61918b1 src/get-users.ts | true | 200 | 644 | // const { PrismaClient } = require('@prisma/client');
// const prisma = new PrismaClient();
async function main2() {
// const user = await prisma.user.findMany({}); // for all exesting user
const user = await prisma.user.findMany({
where: { // where for specifi... | 1 |
cmeunier-ub/maquette-domotique-api | 9c61ca5 | app/controllers/devices_controller.ts | TypeScript | www.github.com/cmeunier-ub/maquette-domotique-api/tree/main/app/controllers/devices_controller.ts | https://raw.githubusercontent.com/cmeunier-ub/maquette-domotique-api/9c61ca5/app/controllers/devices_controller.ts | cmeunier-ub/maquette-domotique-api 9c61ca5 app/controllers/devices_controller.ts | true | 200 | 1,116 | import { devicesService } from '#services/devices.service';
import { DeviceValidators } from '#validators/device';
import type { HttpContext } from '@adonisjs/core/http'
export default class DevicesController
{
async updateList({ request }: HttpContext)
{
const payload = await request.validateUsing(Dev... | 3 |
EFZR/Bebidas-React-TS | 1a7f0ac | src/stores/recipeSlice.ts | TypeScript | www.github.com/EFZR/Bebidas-React-TS/tree/main/src/stores/recipeSlice.ts | https://raw.githubusercontent.com/EFZR/Bebidas-React-TS/1a7f0ac/src/stores/recipeSlice.ts | EFZR/Bebidas-React-TS 1a7f0ac src/stores/recipeSlice.ts | true | 200 | 1,449 | import { StateCreator } from "zustand";
import { getCategories, getRecipes, selectRecipe } from "../services/RecipeServices";
import type { Categories, Drink, Drinks, Recipe, SearchFilter } from "../types";
import { FavoriteSliceType } from "./favoritesSlice";
export type RecipesSliceType = {
categories: Categories,... | 7 |
satryawiguna/movie-gallery-api | 6bdb4f4 | src/controllers/UserController.ts | TypeScript | www.github.com/satryawiguna/movie-gallery-api/tree/main/src/controllers/UserController.ts | https://raw.githubusercontent.com/satryawiguna/movie-gallery-api/6bdb4f4/src/controllers/UserController.ts | satryawiguna/movie-gallery-api 6bdb4f4 src/controllers/UserController.ts | true | 200 | 1,327 | import { Request, Response } from 'express';
import httpStatus from 'http-status';
import UserService from '../services/UserService';
import { ApiServiceResponse } from '../@types/apiServiceResponse';
import { logger } from '../config/logger';
export default class UserController {
private userService: UserService... | 0 |
mohamed-mostafa-ragab/project | 4aa213c | src/app/app.module.ts | TypeScript | www.github.com/mohamed-mostafa-ragab/project/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/mohamed-mostafa-ragab/project/4aa213c/src/app/app.module.ts | mohamed-mostafa-ragab/project 4aa213c src/app/app.module.ts | true | 200 | 1,666 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NavbarComponent } from './navbar/navbar.component';
import { HomeComponent } from './home/home.component'... | 4 |
DmitrySinyapkin/going-to | 1a5741f | @types/game.d.ts | TypeScript | www.github.com/DmitrySinyapkin/going-to/tree/main/@types/game.d.ts | https://raw.githubusercontent.com/DmitrySinyapkin/going-to/1a5741f/%40types/game.d.ts | DmitrySinyapkin/going-to 1a5741f @types/game.d.ts | true | 200 | 2,988 | interface GamesResponse {
count: number
next: string
previous: string
results: Game[]
}
interface Game {
id: number
slug: string
name: string
released: string
tba: boolean
background_image: string
genres: Genre[]
rating: number
rating_top: number
ratings: Ratin... | 2 |
Akshay-Verma-CS/peers | cc5e6dc | src/routes/stampDutyRoutes.ts | TypeScript | www.github.com/Akshay-Verma-CS/peers/tree/main/src/routes/stampDutyRoutes.ts | https://raw.githubusercontent.com/Akshay-Verma-CS/peers/cc5e6dc/src/routes/stampDutyRoutes.ts | Akshay-Verma-CS/peers cc5e6dc src/routes/stampDutyRoutes.ts | true | 200 | 368 | import express from 'express';
import { getStampDutyDetails, addStampDutyDetail } from '../controllers/stampDutyController';
const router = express.Router();
// GET request for stamp duty by state and type
router.get('/:state/:dutyType', getStampDutyDetails);
// POST request to add stamp duty details
router.post('/'... | 1 |
tihunn/timus_nest | 13b399d | src/album/album.module.ts | TypeScript | www.github.com/tihunn/timus_nest/tree/main/src/album/album.module.ts | https://raw.githubusercontent.com/tihunn/timus_nest/13b399d/src/album/album.module.ts | tihunn/timus_nest 13b399d src/album/album.module.ts | true | 200 | 320 | import {Module} from "@nestjs/common";
import {DatabaseModule} from "../database/database.module";
import {AlbumService} from "./album.service";
import {albumProviders} from "./album.providers";
@Module({
imports: [ DatabaseModule ],
providers: [AlbumService, ...albumProviders],
})
export class AlbumModule {} | 5 |
LikeLionRunnersApp/client | 258364f | src/apis/wheather.ts | TypeScript | www.github.com/LikeLionRunnersApp/client/tree/main/src/apis/wheather.ts | https://raw.githubusercontent.com/LikeLionRunnersApp/client/258364f/src/apis/wheather.ts | LikeLionRunnersApp/client 258364f src/apis/wheather.ts | true | 200 | 866 | import axios from 'axios'
import { Params } from '@/types'
export const fetchGetWheather = async ({
formattedDate,
currentTime,
}: {
formattedDate: string
currentTime: string
}): Promise<{ PTY: number; SKY: number }> => {
const url = `${import.meta.env.REACT_APP_WHEATHER_URI}`
const params: Params = {
... | 3 |
mrft/itr8 | 4b9212a | src/operators/general/groupPer.ts | TypeScript | www.github.com/mrft/itr8/tree/main/src/operators/general/groupPer.ts | https://raw.githubusercontent.com/mrft/itr8/4b9212a/src/operators/general/groupPer.ts | mrft/itr8 4b9212a src/operators/general/groupPer.ts | true | 200 | 1,141 | import { powerMap } from "./powerMap.js";
/**
* Group the incoming elements so the output iterator will return arrays/tuples of a certain size.
* @example
* ```typescript
* pipe(
* itr8FromArray([ 1, 2, 3, 4, 5, 6 ]),
* groupPer(2), // => [ [1, 2], [3, 4], [5, 6] ]
* );
* ```
*
* @category op... | 4 |
JoileJr/SIAC_FRONT | d44d6c4 | src/app/modules/laboratory/laboratory-routing.module.ts | TypeScript | www.github.com/JoileJr/SIAC_FRONT/tree/main/src/app/modules/laboratory/laboratory-routing.module.ts | https://raw.githubusercontent.com/JoileJr/SIAC_FRONT/d44d6c4/src/app/modules/laboratory/laboratory-routing.module.ts | JoileJr/SIAC_FRONT d44d6c4 src/app/modules/laboratory/laboratory-routing.module.ts | true | 200 | 416 | import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { LaboratoryComponent } from "./laboratory.component";
const routes: Routes = [
{
path: "",
component: LaboratoryComponent,
canActivate: [],
},
];
@NgModule({
imports: [RouterMo... | 7 |
ChaseFranz/discord-bot | 8a57a07 | src/commands/leaveVoiceChannel.ts | TypeScript | www.github.com/ChaseFranz/discord-bot/tree/main/src/commands/leaveVoiceChannel.ts | https://raw.githubusercontent.com/ChaseFranz/discord-bot/8a57a07/src/commands/leaveVoiceChannel.ts | ChaseFranz/discord-bot 8a57a07 src/commands/leaveVoiceChannel.ts | true | 200 | 1,358 | import { SlashCommandBuilder, CommandInteraction, GuildMember } from 'discord.js';
import { getVoiceConnection } from '@discordjs/voice';
import { IBotCommand } from './types/DiscordModels';
interface ILeaveVoiceChannelCommand extends IBotCommand {
data: SlashCommandBuilder;
usage: string;
execute(interaction: C... | 0 |
INSIinc/nice-stack | 56c5a35 | packages/common/src/enum.ts | TypeScript | www.github.com/INSIinc/nice-stack/tree/main/packages/common/src/enum.ts | https://raw.githubusercontent.com/INSIinc/nice-stack/56c5a35/packages/common/src/enum.ts | INSIinc/nice-stack 56c5a35 packages/common/src/enum.ts | true | 200 | 6,189 | export enum SocketMsgType {
NOTIFY,
}
export enum PostType {
TROUBLE_PROGRESS = "trouble_progress",
TROUBLE_INSTRUCTION = "trouble_instrcution",
POST = "post",
POST_COMMENT = "post_comment",
}
export enum TaxonomySlug {
CATEGORY = "category",
UNIT = "unit",
TAG = "tag",
}
export enum VisitType {
STAR = "star",... | 2 |
CalSQ/koala-bot-project | a9c56c2 | bot/src/events/guild/guildAuditLogEntryCreate.ts | TypeScript | www.github.com/CalSQ/koala-bot-project/tree/main/bot/src/events/guild/guildAuditLogEntryCreate.ts | https://raw.githubusercontent.com/CalSQ/koala-bot-project/a9c56c2/bot/src/events/guild/guildAuditLogEntryCreate.ts | CalSQ/koala-bot-project a9c56c2 bot/src/events/guild/guildAuditLogEntryCreate.ts | true | 200 | 7,493 | import { AuditLogEvent, EmbedBuilder, Events, time, Snowflake, TextBasedChannel, User, ButtonBuilder, ButtonStyle, ActionRowBuilder, MessageActionRowComponentBuilder } from "discord.js"
import { Guild, Infraction, IInfraction, LogAction, LogChannelType } from "../../models"
import { event } from "../../interfaces"
impo... | 1 |
lcz1234/sfu-demo | e120679 | src/utils/myJson.ts | TypeScript | www.github.com/lcz1234/sfu-demo/tree/main/src/utils/myJson.ts | https://raw.githubusercontent.com/lcz1234/sfu-demo/e120679/src/utils/myJson.ts | lcz1234/sfu-demo e120679 src/utils/myJson.ts | true | 200 | 769 | /**
* 处理map类型序列化后为 {} 的情况
*/
export function stringify(obj: any): string {
return JSON.stringify(cloneToObject(obj))
}
// 将字段包含map的对象转为json对象的格式
export function cloneToObject(obj: any): any {
let newObj: any = obj
if (obj instanceof Map) {
return Object.fromEntries(obj)
}
if (obj instanceof Object) {
... | 5 |
Airbornharsh/Shore-web-server | b59d521 | Server/config/Db_Config.ts | TypeScript | www.github.com/Airbornharsh/Shore-web-server/tree/main/Server/config/Db_Config.ts | https://raw.githubusercontent.com/Airbornharsh/Shore-web-server/b59d521/Server/config/Db_Config.ts | Airbornharsh/Shore-web-server b59d521 Server/config/Db_Config.ts | true | 200 | 1,400 | import mongoose, { mongo } from "mongoose";
import user from "../models/user";
import comment from "../models/comment";
import post from "../models/post";
import message from "../models/message";
const Db_Uri = process.env.DB_URI1;
const Db_Post_Uri1 = process.env.DB_POST_URI1;
// let gfs: any;
// let bucke... | 3 |
KirillDolzhenkov/snapmoment-forked | 831fcfb | src/features/createPost/lib/createPostModalConstants.ts | TypeScript | www.github.com/KirillDolzhenkov/snapmoment-forked/tree/main/src/features/createPost/lib/createPostModalConstants.ts | https://raw.githubusercontent.com/KirillDolzhenkov/snapmoment-forked/831fcfb/src/features/createPost/lib/createPostModalConstants.ts | KirillDolzhenkov/snapmoment-forked 831fcfb src/features/createPost/lib/createPostModalConstants.ts | true | 200 | 523 | export const createPostModalDirections = {
back: 'Back',
next: 'Next'
} as const;
export const createPostModalSections = {
addPost: 'Add Post',
cropping: 'Cropping',
filters: 'Filters',
publication: 'Publication'
} as const;
// export type Sections = 'Cropping' | 'Filters' | 'Publication';
export type Cre... | 4 |
SE-Capstone/FE | 10c6967 | src/modules/issues/list-issue/types/issues.types.ts | TypeScript | www.github.com/SE-Capstone/FE/tree/main/src/modules/issues/list-issue/types/issues.types.ts | https://raw.githubusercontent.com/SE-Capstone/FE/10c6967/src/modules/issues/list-issue/types/issues.types.ts | SE-Capstone/FE 10c6967 src/modules/issues/list-issue/types/issues.types.ts | true | 200 | 1,577 | import type { ILabel } from '@/modules/labels/types';
import type { IPhase } from '@/modules/phases/types';
import type { IStatus } from '@/modules/statuses/types';
import type { IUser } from '@/modules/users/list-user/types';
import type { IBaseEntity } from '@/types';
export enum IssueStatusEnum {
Pending = 1,
A... | 0 |
IbraheemQadi/Bookify | 046091f | src/hooks/useDebounce.ts | TypeScript | www.github.com/IbraheemQadi/Bookify/tree/main/src/hooks/useDebounce.ts | https://raw.githubusercontent.com/IbraheemQadi/Bookify/046091f/src/hooks/useDebounce.ts | IbraheemQadi/Bookify 046091f src/hooks/useDebounce.ts | true | 200 | 389 | import { useEffect, useState } from "react";
function useDebounce<T>(value: T, delay = 500) {
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
const id = setTimeout(() => {
setDebouncedValue(value);
}, delay);
return () => {
clearTimeout(id);
};
}, [val... | 7 |
MAS40se7en/taskManagementSystem | 0575095 | src/routes/api/addEventsToGoogleCalendar/+server.ts | TypeScript | www.github.com/MAS40se7en/taskManagementSystem/tree/main/src/routes/api/addEventsToGoogleCalendar/+server.ts | https://raw.githubusercontent.com/MAS40se7en/taskManagementSystem/0575095/src/routes/api/addEventsToGoogleCalendar/%2Bserver.ts | MAS40se7en/taskManagementSystem 0575095 src/routes/api/addEventsToGoogleCalendar/+server.ts | true | 200 | 3,824 | import { json } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import { google } from 'googleapis';
import { prisma } from '$lib/prisma';
export const POST: RequestHandler = async ({ request }) => {
const data = await request.json();
const { tasks, user } = data;
if (!user.accessTok... | 1 |
CCDirectLink/crosscode-ru | 0a4bc6e | enhanced-ui/src/equipment-menu.ts | TypeScript | www.github.com/CCDirectLink/crosscode-ru/tree/main/enhanced-ui/src/equipment-menu.ts | https://raw.githubusercontent.com/CCDirectLink/crosscode-ru/0a4bc6e/enhanced-ui/src/equipment-menu.ts | CCDirectLink/crosscode-ru 0a4bc6e enhanced-ui/src/equipment-menu.ts | true | 200 | 458 | ig.module('ultimate-localized-ui.fixes.equipment-menu')
.requires('game.feature.menu.gui.equip.equip-misc')
.defines(() => {
sc.EquipLevelOverview.inject({
init(...args) {
this.parent(...args);
for (let { gui } of this.hook.children) {
if (gui instanceof sc.TextGui && gui.text ==... | 2 |
thiagohsp/gobarber-backend | 9a8f02c | src/shared/infra/typeorm/migrations/1592928597977-CreateAppointment.ts | TypeScript | www.github.com/thiagohsp/gobarber-backend/tree/main/src/shared/infra/typeorm/migrations/1592928597977-CreateAppointment.ts | https://raw.githubusercontent.com/thiagohsp/gobarber-backend/9a8f02c/src/shared/infra/typeorm/migrations/1592928597977-CreateAppointment.ts | thiagohsp/gobarber-backend 9a8f02c src/shared/infra/typeorm/migrations/1592928597977-CreateAppointment.ts | true | 200 | 934 | import { MigrationInterface, QueryRunner, Table } from 'typeorm';
export default class CreateAppointment1592928597977
implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: 'appointments',
columns: [
... | 5 |
JBH105/React-Typescript-Structure | f742320 | src/core/helpers/notification/notificationTemplates/notification-templates.ts | TypeScript | www.github.com/JBH105/React-Typescript-Structure/tree/main/src/core/helpers/notification/notificationTemplates/notification-templates.ts | https://raw.githubusercontent.com/JBH105/React-Typescript-Structure/f742320/src/core/helpers/notification/notificationTemplates/notification-templates.ts | JBH105/React-Typescript-Structure f742320 src/core/helpers/notification/notificationTemplates/notification-templates.ts | true | 200 | 5,975 | import { ILogin } from '@shared/components/auth/login/interfaces/IAuth';
import { formatTimestamp } from '@shared/utils/util';
import { INotificationBody, NotificationType } from '../interface/INotification';
import { APP_CONSTANTS } from '@shared/constant/app.constant';
import { NotificationEnum } from '@shared/consta... | 3 |
the-design-release/leibal-components | 563a66a | stencil.config.ts | TypeScript | www.github.com/the-design-release/leibal-components/tree/main/stencil.config.ts | https://raw.githubusercontent.com/the-design-release/leibal-components/563a66a/stencil.config.ts | the-design-release/leibal-components 563a66a stencil.config.ts | true | 200 | 1,207 | import { Config } from '@stencil/core';
import { postcss } from '@stencil/postcss';
import replace from 'postcss-replace';
import purgecss from '@fullhuman/postcss-purgecss';
import cssnano from 'cssnano';
const purge = purgecss({
content: ['./src/**/*.tsx', './src/index.html'],
safelist: [':host'],
defaultExtra... | 4 |
Abdulsalamdev/xpert-data-portal | 8bc556d | api/axios-config.ts | TypeScript | www.github.com/Abdulsalamdev/xpert-data-portal/tree/main/api/axios-config.ts | https://raw.githubusercontent.com/Abdulsalamdev/xpert-data-portal/8bc556d/api/axios-config.ts | Abdulsalamdev/xpert-data-portal 8bc556d api/axios-config.ts | true | 200 | 785 | import axios from "axios";
import { cookieStorage } from "@ibnlanre/portal";
// creating an instance
export const AUTHAPI = axios.create({
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
});
export const token = JSON.parse(
cookieStorage.getItem("my-user") as string
)?.tokens.access;
export const USETOKEN = axios.cr... | 1 |
ChiragGupta001/ShoppingCartCrudInAngularwithAspnetwebapi | 2b994a4 | src/app/edit-item/edit-item.component.ts | TypeScript | www.github.com/ChiragGupta001/ShoppingCartCrudInAngularwithAspnetwebapi/tree/main/src/app/edit-item/edit-item.component.ts | https://raw.githubusercontent.com/ChiragGupta001/ShoppingCartCrudInAngularwithAspnetwebapi/2b994a4/src/app/edit-item/edit-item.component.ts | ChiragGupta001/ShoppingCartCrudInAngularwithAspnetwebapi 2b994a4 src/app/edit-item/edit-item.component.ts | true | 200 | 2,268 | import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { UserServiceService } from '../services/user-service.service';
import { FormBuilder , Validators} from '@angular/forms';
import { error } from 'jquery';
import { MessageService } from 'primeng/api';
@Component(... | 3 |
Ljcs1999/Proyecto_Asistencia | 1a4d381 | src/controllers/matricula-detalle-matricula.controller.ts | TypeScript | www.github.com/Ljcs1999/Proyecto_Asistencia/tree/main/src/controllers/matricula-detalle-matricula.controller.ts | https://raw.githubusercontent.com/Ljcs1999/Proyecto_Asistencia/1a4d381/src/controllers/matricula-detalle-matricula.controller.ts | Ljcs1999/Proyecto_Asistencia 1a4d381 src/controllers/matricula-detalle-matricula.controller.ts | true | 200 | 3,063 | import {
Count,
CountSchema,
Filter,
repository,
Where,
} from '@loopback/repository';
import {
del,
get,
getModelSchemaRef,
getWhereSchemaFor,
param,
patch,
post,
requestBody,
} from '@loopback/rest';
import {
Matricula,
DetalleMatricula,
} from '../models';
import {MatriculaRepository} f... | 0 |
bioneoficial/crispy-octo-tribble | e51ce0e | src/controllers/configHome.ts | TypeScript | www.github.com/bioneoficial/crispy-octo-tribble/tree/main/src/controllers/configHome.ts | https://raw.githubusercontent.com/bioneoficial/crispy-octo-tribble/e51ce0e/src/controllers/configHome.ts | bioneoficial/crispy-octo-tribble e51ce0e src/controllers/configHome.ts | true | 200 | 1,638 | import { NextFunction, Request, Response } from 'express';
import { ConfiguracaoService } from '../services/configHome';
import { ConfiguracaoSchemaPost, ConfiguracaoSchemaUpdate } from '../validators/schemas/configHome';
const configuracaoService = new ConfiguracaoService();
export const createConfiguracao = async (... | 4 |
IamVovaMoroz/smartartedit | d4161a6 | lib/actions/image.actions.ts | TypeScript | www.github.com/IamVovaMoroz/smartartedit/tree/main/lib/actions/image.actions.ts | https://raw.githubusercontent.com/IamVovaMoroz/smartartedit/d4161a6/lib/actions/image.actions.ts | IamVovaMoroz/smartartedit d4161a6 lib/actions/image.actions.ts | true | 200 | 5,359 | "use server";
import { revalidatePath } from "next/cache";
import { connectToDatabase } from "../database/mongoose";
import { handleError } from "../utils";
import User from "../database/models/user.model";
import Image from "../database/models/image.model";
import { redirect } from "next/navigation";
import { v2 as ... | 1 |
eightalex/pulsopus-api | df06407 | libs/entities/src/user-activity/user-activity.repository.ts | TypeScript | www.github.com/eightalex/pulsopus-api/tree/main/libs/entities/src/user-activity/user-activity.repository.ts | https://raw.githubusercontent.com/eightalex/pulsopus-api/df06407/libs/entities/src/user-activity/user-activity.repository.ts | eightalex/pulsopus-api df06407 libs/entities/src/user-activity/user-activity.repository.ts | true | 200 | 507 | import { DataSource, Repository } from 'typeorm';
import { UserActivity } from '@app/entities';
import { Injectable } from '@nestjs/common';
@Injectable()
export class UserActivityRepository extends Repository<UserActivity> {
constructor(private dataSource: DataSource) {
super(UserActivity, dataSource.createEnti... | 5 |
KronsyC/minty | 63bb372 | dist/packages/web/src/core/types.d.ts | TypeScript | www.github.com/KronsyC/minty/tree/main/dist/packages/web/src/core/types.d.ts | https://raw.githubusercontent.com/KronsyC/minty/63bb372/dist/packages/web/src/core/types.d.ts | KronsyC/minty 63bb372 dist/packages/web/src/core/types.d.ts | true | 200 | 1,616 | import Context from "./Context";
import Request from "./io/Request";
import Response from "./io/Response";
import { Method as HTTPMethod } from "@mintyjs/http";
/**
* A Query is defined as an object which can contain other Querystrings, i.e user[id]=123 etc.
*/
export interface Querystring {
[x: string]: any | Qu... | 3 |
Rithikeshh/blog | 3a9b836 | FE/blog-s-frontend/src/app/app-routing.module.ts | TypeScript | www.github.com/Rithikeshh/blog/tree/main/FE/blog-s-frontend/src/app/app-routing.module.ts | https://raw.githubusercontent.com/Rithikeshh/blog/3a9b836/FE/blog-s-frontend/src/app/app-routing.module.ts | Rithikeshh/blog 3a9b836 FE/blog-s-frontend/src/app/app-routing.module.ts | true | 200 | 660 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login.component';
import { ProfileComponent } from './profile/profile.component';
import { SignupComponent } from './signup/signup.com... | 0 |
Ridha-Fathima/taskManagerApp | a123498 | src/index.ts | TypeScript | www.github.com/Ridha-Fathima/taskManagerApp/tree/main/src/index.ts | https://raw.githubusercontent.com/Ridha-Fathima/taskManagerApp/a123498/src/index.ts | Ridha-Fathima/taskManagerApp a123498 src/index.ts | true | 200 | 1,786 | import express from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
import { Task } from './task.js';
const app = express();
app.use(bodyParser.json());
app.use(express.static('dist'));
app.use(cors({
origin: 'http://127.0.0.1:5500'
}));
let tasks: Task[] = [];
app.get('/tasks', (req, re... | 4 |
genuinestalwart/doctors-portal-frontend | f78798b | tailwind.config.ts | TypeScript | www.github.com/genuinestalwart/doctors-portal-frontend/tree/main/tailwind.config.ts | https://raw.githubusercontent.com/genuinestalwart/doctors-portal-frontend/f78798b/tailwind.config.ts | genuinestalwart/doctors-portal-frontend f78798b tailwind.config.ts | true | 200 | 2,150 | import { fontFamily } from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
theme: {
container: {
center: true,
screens: {... | 1 |
SparkNJU/RiskHunter | ea8c1db | frontend/src/api/news.ts | TypeScript | www.github.com/SparkNJU/RiskHunter/tree/main/frontend/src/api/news.ts | https://raw.githubusercontent.com/SparkNJU/RiskHunter/ea8c1db/frontend/src/api/news.ts | SparkNJU/RiskHunter ea8c1db frontend/src/api/news.ts | true | 200 | 984 | export const newsImages = [
new URL('../assets/images/news/1.png', import.meta.url).href,
new URL('../assets/images/news/2.png', import.meta.url).href,
new URL('../assets/images/news/3.png', import.meta.url).href,
new URL('../assets/images/news/4.png', import.meta.url).href,
]
// type: government, market
expor... | 3 |
miicolas/speetly | 92280ad | db/client-schema.ts | TypeScript | www.github.com/miicolas/speetly/tree/main/db/client-schema.ts | https://raw.githubusercontent.com/miicolas/speetly/92280ad/db/client-schema.ts | miicolas/speetly 92280ad db/client-schema.ts | true | 200 | 1,277 | import { pgTable, varchar, timestamp, text } from "drizzle-orm/pg-core";
import { user } from "./auth-schema";
export const client = pgTable("client", {
id: varchar("id", { length: 36 }).primaryKey(),
userId: varchar("user_id", { length: 36 }).references(() => user.id),
name: varchar("name", { length: 255 ... | 5 |
kzagul/sportuslugi-frontend | b0c4703 | composables/useFetchApi.ts | TypeScript | www.github.com/kzagul/sportuslugi-frontend/tree/main/composables/useFetchApi.ts | https://raw.githubusercontent.com/kzagul/sportuslugi-frontend/b0c4703/composables/useFetchApi.ts | kzagul/sportuslugi-frontend b0c4703 composables/useFetchApi.ts | true | 200 | 974 | export const fetchApi = (request: any, options: any) => {
const config = useRuntimeConfig();
const xsrfToken = useCookie("XSRF-TOKEN");
let headers = {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-Requested-With": "XMLHttpRequest",
...options?.headers,
};
... | 4 |
sameen-abrar-sazim/onboarding-project-super-teachers | a4eac7d | src/common/aws/s3-service/s3-service.ts | TypeScript | www.github.com/sameen-abrar-sazim/onboarding-project-super-teachers/tree/main/src/common/aws/s3-service/s3-service.ts | https://raw.githubusercontent.com/sameen-abrar-sazim/onboarding-project-super-teachers/a4eac7d/src/common/aws/s3-service/s3-service.ts | sameen-abrar-sazim/onboarding-project-super-teachers a4eac7d src/common/aws/s3-service/s3-service.ts | true | 200 | 2,119 | import { Injectable, Logger } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { ListObjectsCommandOutput, PutObjectCommand, S3, S3Client } from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { isLocal } from "@/utils/env";
@Injectable()
export... | 0 |
lucasmargui/react-structure-next | 9bcef36 | src/app/lib/actions.ts | TypeScript | www.github.com/lucasmargui/react-structure-next/tree/main/src/app/lib/actions.ts | https://raw.githubusercontent.com/lucasmargui/react-structure-next/9bcef36/src/app/lib/actions.ts | lucasmargui/react-structure-next 9bcef36 src/app/lib/actions.ts | true | 200 | 3,943 | 'use server';
import { z } from 'zod';
import { revalidatePath } from 'next/cache';
import { redirect } from 'next/navigation';
const FormSchema = z.object({
id: z.string(),
customerId: z.string({
invalid_type_error: 'Please select a customer.',// adicionar uma mensagem amigável ao lançar um erro
}),
amo... | 6 |
nitheesh0412/artgallerychicago | d69f237 | src/app/components/artworks/artworks.component.ts | TypeScript | www.github.com/nitheesh0412/artgallerychicago/tree/main/src/app/components/artworks/artworks.component.ts | https://raw.githubusercontent.com/nitheesh0412/artgallerychicago/d69f237/src/app/components/artworks/artworks.component.ts | nitheesh0412/artgallerychicago d69f237 src/app/components/artworks/artworks.component.ts | true | 200 | 1,754 | import { Component, OnInit } from '@angular/core';
import { IartDetails, Iartworks } from 'src/app/models/art';
import { ArtworkService } from 'src/app/services/artwork.service';
@Component({
selector: 'app-artworks',
templateUrl: './artworks.component.html',
styleUrls: ['./artworks.component.css']
})
export cla... | 3 |
michaelsoliveira/i-florestas | 7054d13 | backend/src/track.ts | TypeScript | www.github.com/michaelsoliveira/i-florestas/tree/main/backend/src/track.ts | https://raw.githubusercontent.com/michaelsoliveira/i-florestas/7054d13/backend/src/track.ts | michaelsoliveira/i-florestas 7054d13 backend/src/track.ts | true | 200 | 860 | import { NextFunction, Request, Response } from "express"
const MatomoTracker = require('matomo-tracker')
function getRemoteAddr (req: any) {
if (req.ip) return req.ip
if (req._remoteAddress) return req._remoteAddress
var sock = req.socket
if (sock.socket) return sock.socket.remoteAddress
return sock.re... | 5 |
latifasaee/toy-robot-simulator | 11f70e2 | src/commands/move-command.ts | TypeScript | www.github.com/latifasaee/toy-robot-simulator/tree/main/src/commands/move-command.ts | https://raw.githubusercontent.com/latifasaee/toy-robot-simulator/11f70e2/src/commands/move-command.ts | latifasaee/toy-robot-simulator 11f70e2 src/commands/move-command.ts | true | 200 | 507 | import { BaseCommand } from './base-command';
export class MoveCommand extends BaseCommand {
execute(): void {
if (this.robot.isPlaced()) {
const newPosition = this.robot.move();
if (
newPosition &&
this.table.isValidPosition(newPosition.x, newPosition.y) &&
!this.table.isObs... | 4 |
chonglye87/dhflour-2024-study | 36f4cc0 | front-end/mui-example/src/components/hyperx/table/types.ts | TypeScript | www.github.com/chonglye87/dhflour-2024-study/tree/main/front-end/mui-example/src/components/hyperx/table/types.ts | https://raw.githubusercontent.com/chonglye87/dhflour-2024-study/36f4cc0/front-end/mui-example/src/components/hyperx/table/types.ts | chonglye87/dhflour-2024-study 36f4cc0 front-end/mui-example/src/components/hyperx/table/types.ts | true | 200 | 3,106 | // ----------------------------------------------------------------------
// 테이블 유형정리
export interface PaginationMetadata {
/**
* 현 페이지 데이터 조회 수
* @example "10"
*/
itemCount: number;
/**
* 데이터 총 수
* @example "0"
*/
total: number;
/**
* 페이지 사이즈
* @example "10"
*/
size: number;
/... | 0 |
Viviorigi/ExAtwom | 0a0af67 | ex-react/src/app/Services/ProductService.ts | TypeScript | www.github.com/Viviorigi/ExAtwom/tree/main/ex-react/src/app/Services/ProductService.ts | https://raw.githubusercontent.com/Viviorigi/ExAtwom/0a0af67/ex-react/src/app/Services/ProductService.ts | Viviorigi/ExAtwom 0a0af67 ex-react/src/app/Services/ProductService.ts | true | 200 | 1,544 | import axios from "axios";
import { ApiUrlUtil } from "../utils/ApiUrlUtil";
import { ParamUtil, RequestParam } from "../utils/ParamUtil";
import { HeadersUtil } from "../utils/HeaderUtil";
export class ProductService {
private static _productService: ProductService;
public static getInstance(): ProductServic... | 1 |
masouddaloji/digiland | 924a60c | backend/middlewares/errorHandler.ts | TypeScript | www.github.com/masouddaloji/digiland/tree/main/backend/middlewares/errorHandler.ts | https://raw.githubusercontent.com/masouddaloji/digiland/924a60c/backend/middlewares/errorHandler.ts | masouddaloji/digiland 924a60c backend/middlewares/errorHandler.ts | true | 200 | 483 | import { Request, Response, NextFunction } from "express";
const errorHandler = (
err: any,
req: Request,
res: Response,
next: NextFunction
) => {
const status = err.statusCode || 500; // server error
const message = err.message || "Something went wrong.Try again...";
const data = err.data;
if (data) {... | 6 |
rianlukacs/thyroidcloud | d40db2f | app/lib/symptoms-hyper.ts | TypeScript | www.github.com/rianlukacs/thyroidcloud/tree/main/app/lib/symptoms-hyper.ts | https://raw.githubusercontent.com/rianlukacs/thyroidcloud/d40db2f/app/lib/symptoms-hyper.ts | rianlukacs/thyroidcloud d40db2f app/lib/symptoms-hyper.ts | true | 200 | 1,211 | export interface Symptom {
id: string;
name: string;
description: string;
details: {
overview: string;
managementTips: string[];
whenToSeekHelp: string[];
relatedSymptoms: string[];
};
}
export const hyperthyroidismSymptoms: Symptom[] = [
{
id: "weight-loss",
name: "Weight Loss",
... | 3 |
seokkamoni-study-and-playground/to-do-list-with-zustand | 78db23c | src/hooks/useCompleteTodo.ts | TypeScript | www.github.com/seokkamoni-study-and-playground/to-do-list-with-zustand/tree/main/src/hooks/useCompleteTodo.ts | https://raw.githubusercontent.com/seokkamoni-study-and-playground/to-do-list-with-zustand/78db23c/src/hooks/useCompleteTodo.ts | seokkamoni-study-and-playground/to-do-list-with-zustand 78db23c src/hooks/useCompleteTodo.ts | true | 200 | 389 | import { useTodoListStore } from '@/stores/useTodoListStore';
export const useCompleteTodo = () => {
const { todoList, updateTodo } = useTodoListStore();
const completeTodoMutate = (id: number) => {
const newTodoList = todoList.map(todo =>
todo.id === id ? { ...todo, isCompleted: true } : todo
);
... | 4 |
nawad0/Carsties | 86f92bc | frontend/web-app/app/actions/authActions.ts | TypeScript | www.github.com/nawad0/Carsties/tree/main/frontend/web-app/app/actions/authActions.ts | https://raw.githubusercontent.com/nawad0/Carsties/86f92bc/frontend/web-app/app/actions/authActions.ts | nawad0/Carsties 86f92bc frontend/web-app/app/actions/authActions.ts | true | 200 | 864 | import {getServerSession} from "next-auth";
import {authOptions} from "@/app/api/auth/[...nextauth]/route";
import {cookies, headers} from "next/headers";
import {NextApiRequest} from "next";
import {getToken} from "next-auth/jwt";
export async function getSession()
{
return await getServerSession(authOptions)
}
e... | 5 |
hamzakhanbeetech/jogoto_front | eaf3e96 | src/app/com/wedoapps/views/main/not-found/not-found.view.ts | TypeScript | www.github.com/hamzakhanbeetech/jogoto_front/tree/main/src/app/com/wedoapps/views/main/not-found/not-found.view.ts | https://raw.githubusercontent.com/hamzakhanbeetech/jogoto_front/eaf3e96/src/app/com/wedoapps/views/main/not-found/not-found.view.ts | hamzakhanbeetech/jogoto_front eaf3e96 src/app/com/wedoapps/views/main/not-found/not-found.view.ts | true | 200 | 703 | import {Component, OnDestroy, OnInit} from '@angular/core';
import {UtilitesService} from "../../../services";
import {Router} from "@angular/router";
@Component({
selector: 'not-found-view',
templateUrl: './not-found.view.html',
styleUrls: ['./not-found.view.scss']
})
export class NotFoundView implements OnInit... | 0 |
khaquy1611/r_m_mor-system | 7dbec8e | src/modules/finance/reducer/thunk.ts | TypeScript | www.github.com/khaquy1611/r_m_mor-system/tree/main/src/modules/finance/reducer/thunk.ts | https://raw.githubusercontent.com/khaquy1611/r_m_mor-system/7dbec8e/src/modules/finance/reducer/thunk.ts | khaquy1611/r_m_mor-system 7dbec8e src/modules/finance/reducer/thunk.ts | true | 200 | 2,816 | import { alertError, alertSuccess, updateLoading } from '@/reducer/screen'
import { createAsyncThunk } from '@reduxjs/toolkit'
import i18next from 'i18next'
import { FinanceService } from '../services'
import { IConfigBranchExpected, IConfigKpi, IDataFilter } from '../types'
import { HttpStatusCode } from '@/api/types'... | 1 |
chaomingd/user-visit-chrome-extension | e6f6ad5 | src/utils/startMessageApiServer.ts | TypeScript | www.github.com/chaomingd/user-visit-chrome-extension/tree/main/src/utils/startMessageApiServer.ts | https://raw.githubusercontent.com/chaomingd/user-visit-chrome-extension/e6f6ad5/src/utils/startMessageApiServer.ts | chaomingd/user-visit-chrome-extension e6f6ad5 src/utils/startMessageApiServer.ts | true | 200 | 1,063 | import { Message } from '../types/message';
export interface BaseAPIFunctions {
[key: string]: APIFunction;
}
export type APIFunction<Data extends any = any> = (
message: Message,
sender: chrome.runtime.MessageSender,
sendResponse: (response?: any) => void
) => Data | Promise<Data>;
function log(type: strin... | 6 |
s-sandra/bs-bookshelf-angular | dd78b33 | src/app/login/login.component.ts | TypeScript | www.github.com/s-sandra/bs-bookshelf-angular/tree/main/src/app/login/login.component.ts | https://raw.githubusercontent.com/s-sandra/bs-bookshelf-angular/dd78b33/src/app/login/login.component.ts | s-sandra/bs-bookshelf-angular dd78b33 src/app/login/login.component.ts | true | 200 | 492 | import { Component } from '@angular/core';
import { FirebaseService } from '../firebase.service';
import { faGoogle } from '@fortawesome/free-brands-svg-icons';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
})
export class LoginComponent {
logo... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.