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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
frameless/strapi | d06d7cb | apps/strapi-admin-extensions/src/strapi-product-types.ts | TypeScript | www.github.com/frameless/strapi/tree/main/apps/strapi-admin-extensions/src/strapi-product-types.ts | https://raw.githubusercontent.com/frameless/strapi/d06d7cb/apps/strapi-admin-extensions/src/strapi-product-types.ts | frameless/strapi d06d7cb apps/strapi-admin-extensions/src/strapi-product-types.ts | true | 200 | 590 | export interface Antwoord {
content: string;
kennisartikelCategorie?: string;
}
export interface VacItem {
uuid: string;
vraag: string | null;
antwoord: Antwoord[];
status: string | null;
doelgroep: string | null;
afdelingen: string[];
toelichting: string | null;
trefwoorden: string[];
}
export int... | 5 |
MHMighani/algorithms-exc | 329fe07 | Dijkstra.ts | TypeScript | www.github.com/MHMighani/algorithms-exc/tree/main/Dijkstra.ts | https://raw.githubusercontent.com/MHMighani/algorithms-exc/329fe07/Dijkstra.ts | MHMighani/algorithms-exc 329fe07 Dijkstra.ts | true | 200 | 1,279 | type Costs = {
[key: string]: number;
};
type Graph = {
[key: string]: {
[key: string]: number;
};
};
type Parents = {
[key: string]: string | null;
};
const graph1: Graph = {
start: {
a: 6,
b: 2,
},
a: {
fin: 1,
},
b: {
a: 3,
fin: 5,
},
fin: {},
};
const costs: Costs =... | 4 |
jaussems/magic-the-gathering | eb01294 | src/app/app.component.ts | TypeScript | www.github.com/jaussems/magic-the-gathering/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/jaussems/magic-the-gathering/eb01294/src/app/app.component.ts | jaussems/magic-the-gathering eb01294 src/app/app.component.ts | true | 200 | 582 | import { Component, OnDestroy } from '@angular/core';
import { LoaderService } from './modules/shared/services/loader.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent implements OnDestroy {
title = 'magic-the-gat... | 1 |
AkonaSilwana/my_portfolio | 0cb5241 | src/styles/GlobalComponents/index.ts | TypeScript | www.github.com/AkonaSilwana/my_portfolio/tree/main/src/styles/GlobalComponents/index.ts | https://raw.githubusercontent.com/AkonaSilwana/my_portfolio/0cb5241/src/styles/GlobalComponents/index.ts | AkonaSilwana/my_portfolio 0cb5241 src/styles/GlobalComponents/index.ts | true | 200 | 8,004 | import styled from "styled-components";
export const Section = styled.section`
display: ${(props:any) => (props.grid ? "grid" : "flex")};
flex-direction: ${(props:any) => (props.row ? "row" : "column")};
padding: ${(props:any) => (props.nopadding ? "0" : "32px 48px 0")};
margin: 0 auto;
/* max-width: 1040px;... | 2 |
bwhaley7/portfolio-page | 5f871aa | src/app/app.component.ts | TypeScript | www.github.com/bwhaley7/portfolio-page/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/bwhaley7/portfolio-page/5f871aa/src/app/app.component.ts | bwhaley7/portfolio-page 5f871aa src/app/app.component.ts | true | 200 | 1,344 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule, RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export... | 6 |
fogasjanos/resume | c0c0166 | src/app/interfaces/resume.interface.ts | TypeScript | www.github.com/fogasjanos/resume/tree/main/src/app/interfaces/resume.interface.ts | https://raw.githubusercontent.com/fogasjanos/resume/c0c0166/src/app/interfaces/resume.interface.ts | fogasjanos/resume c0c0166 src/app/interfaces/resume.interface.ts | true | 200 | 775 | import { Education } from './education.interface';
import { Experience } from './experience.interface';
import { General } from './general.interface';
import { LabelValues } from './label-values.interface';
import { Language } from './language.interface';
import { Project } from './project.interface';
import { Training... | 3 |
Grimowsky/react-node-ts-monorepo | 32e1d66 | server/src/api/rest/v1/Controllers/Admin.controller.ts | TypeScript | www.github.com/Grimowsky/react-node-ts-monorepo/tree/main/server/src/api/rest/v1/Controllers/Admin.controller.ts | https://raw.githubusercontent.com/Grimowsky/react-node-ts-monorepo/32e1d66/server/src/api/rest/v1/Controllers/Admin.controller.ts | Grimowsky/react-node-ts-monorepo 32e1d66 server/src/api/rest/v1/Controllers/Admin.controller.ts | true | 200 | 431 | import type { AppReq, AppRes } from '../../../../common/types/Request.type';
import AdminService from '@services/Admin/Admin.service';
import logger from '../../../../config/logger';
const usersList = async (_req: AppReq, res: AppRes): Promise<void> => {
logger.info('Admin.controller: usersList called');
const ... | 5 |
marechal-dev/forum-nest-api | 1e01c10 | src/infra/database/prisma/repositories/prisma-question-attachments-repository.ts | TypeScript | www.github.com/marechal-dev/forum-nest-api/tree/main/src/infra/database/prisma/repositories/prisma-question-attachments-repository.ts | https://raw.githubusercontent.com/marechal-dev/forum-nest-api/1e01c10/src/infra/database/prisma/repositories/prisma-question-attachments-repository.ts | marechal-dev/forum-nest-api 1e01c10 src/infra/database/prisma/repositories/prisma-question-attachments-repository.ts | true | 200 | 1,720 | import { Injectable } from '@nestjs/common';
import { QuestionAttachmentsRepository } from '@/domain/forum/application/repositories/question-attachments-repository';
import { QuestionAttachment } from '@/domain/forum/enterprise/entities/question-attachment';
import { PrismaQuestionAttachmentMapper } from '../mappers/p... | 1 |
danielsear/StoreContinue | 9de598c | FrontendVite/src/services/User.ts | TypeScript | www.github.com/danielsear/StoreContinue/tree/main/FrontendVite/src/services/User.ts | https://raw.githubusercontent.com/danielsear/StoreContinue/9de598c/FrontendVite/src/services/User.ts | danielsear/StoreContinue 9de598c FrontendVite/src/services/User.ts | true | 200 | 1,432 | export type User = {
userId: string
id?: string
name: string
email: string
password: string
admin?: boolean
file?: string,
likeProducts?: Array<string>
}
async function CreateUser(user: User) {
const { userId, name, email, password, admin, file, likeProducts} = user
return await f... | 4 |
LucasFDias/dtmoney-chapterII | d70bb28 | src/styles/global.ts | TypeScript | www.github.com/LucasFDias/dtmoney-chapterII/tree/main/src/styles/global.ts | https://raw.githubusercontent.com/LucasFDias/dtmoney-chapterII/d70bb28/src/styles/global.ts | LucasFDias/dtmoney-chapterII d70bb28 src/styles/global.ts | true | 200 | 1,730 | import { createGlobalStyle } from "styled-components";
export const GlobalStyle = createGlobalStyle`
:root{
--background: #f0f2f5;
--shape: #FFFFFF;
--red: #e52e4d;
--green: #33cc95;
--blue: #5429cc;
--blue-light: #6933ff;
--text-title: #363f5f;
--text-body: #969cb3;
... | 6 |
jadams95/CalendarFrontEnd | 5feff0b | src/app/app.module.ts | TypeScript | www.github.com/jadams95/CalendarFrontEnd/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/jadams95/CalendarFrontEnd/5feff0b/src/app/app.module.ts | jadams95/CalendarFrontEnd 5feff0b src/app/app.module.ts | true | 200 | 1,422 | import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import {HttpClientModule, HttpClientXsrfModule} from '@angular/common/h... | 2 |
aegomez/chat-app-client | a635c96 | src/store/chat/selectors.ts | TypeScript | www.github.com/aegomez/chat-app-client/tree/main/src/store/chat/selectors.ts | https://raw.githubusercontent.com/aegomez/chat-app-client/a635c96/src/store/chat/selectors.ts | aegomez/chat-app-client a635c96 src/store/chat/selectors.ts | true | 200 | 973 | import { createSelector } from 'reselect';
import { RootState } from '@store/types';
const getActiveChat = (state: RootState): string => state.chat.activeChat;
/**
* Get current active chat contact props.
*/
export const getSingleChatProps = createSelector(
getActiveChat,
state => state.profile.contacts,
(ac... | 5 |
CodeGenio1/interview | 900bd1e | api/helpers/errorHandler.ts | TypeScript | www.github.com/CodeGenio1/interview/tree/main/api/helpers/errorHandler.ts | https://raw.githubusercontent.com/CodeGenio1/interview/900bd1e/api/helpers/errorHandler.ts | CodeGenio1/interview 900bd1e api/helpers/errorHandler.ts | true | 200 | 339 | import { Request, ErrorRequestHandler } from 'express';
import { errorResponse } from './responses';
export const errorHandler: ErrorRequestHandler = (err, req, res, next) => {
console.error(err);
res.status(err.status || 500).json({
message: err.message,
stack: process.env.NODE_ENV === 'development' ? err... | 3 |
pwrdpwnz/swap-team | 2ba6d33 | apps/web/src/constants/chains.ts | TypeScript | www.github.com/pwrdpwnz/swap-team/tree/main/apps/web/src/constants/chains.ts | https://raw.githubusercontent.com/pwrdpwnz/swap-team/2ba6d33/apps/web/src/constants/chains.ts | pwrdpwnz/swap-team 2ba6d33 apps/web/src/constants/chains.ts | true | 200 | 33,446 | import { ChainId, Currency, CurrencyAmount, Token, V2_ROUTER_ADDRESSES } from '@uniswap/sdk-core'
import {
CUSD_CELO,
CUSD_CELO_ALFAJORES,
DAI,
DAI_ARBITRUM_ONE,
DAI_OPTIMISM,
DAI_POLYGON,
MATIC_POLYGON,
USDB_BLAST,
USDC_ARBITRUM,
USDC_ARBITRUM_GOERLI,
USDC_AVALANCHE,
USDC_BASE,
USDC_BSC,
US... | 4 |
PGrad/Country_Quiz_DC | 6f8d091 | src/api.ts | TypeScript | www.github.com/PGrad/Country_Quiz_DC/tree/main/src/api.ts | https://raw.githubusercontent.com/PGrad/Country_Quiz_DC/6f8d091/src/api.ts | PGrad/Country_Quiz_DC 6f8d091 src/api.ts | true | 200 | 806 | namespace Api {
const questions = [
{
question: "Kuala Lumpur is the capital of",
answers: [
{ id: 0, "text": "Vietnam" },
{ id: 1, "text": "Malaysia" },
{ id: 2, "text": "Sweden" },
{ id: 3, "text": "Austria" }
... | 1 |
KisvnDev/tradex-mts | 8366ca5 | src/redux-sagas/sagas/PositionStatement/QueryPositionStatement.ts | TypeScript | www.github.com/KisvnDev/tradex-mts/tree/main/src/redux-sagas/sagas/PositionStatement/QueryPositionStatement.ts | https://raw.githubusercontent.com/KisvnDev/tradex-mts/8366ca5/src/redux-sagas/sagas/PositionStatement/QueryPositionStatement.ts | KisvnDev/tradex-mts 8366ca5 src/redux-sagas/sagas/PositionStatement/QueryPositionStatement.ts | true | 200 | 984 | import { call, put, takeLatest } from '@redux-saga/core/effects';
import { IObject, IRequest } from 'interfaces/common';
import { QUERY_POSITION_STATEMENT } from 'redux-sagas/actions';
import store from 'redux-sagas/store';
import { METHOD, query } from 'utils/socketApi';
const queryClientCashBalance = (data: IObject)... | 7 |
SujanButang/TaleTrail | efe50bd | Client/src/script.ts | TypeScript | www.github.com/SujanButang/TaleTrail/tree/main/Client/src/script.ts | https://raw.githubusercontent.com/SujanButang/TaleTrail/efe50bd/Client/src/script.ts | SujanButang/TaleTrail efe50bd Client/src/script.ts | true | 200 | 5,133 | import { makeRequest } from "./axios/axios";
import { IHTTPError } from "./interface/httpError";
import { IFollowings, IUsers } from "./interface/user";
import { populateBlogs } from "./utils/PopulateBlogs";
import { showToast, toggleFollowingStatus } from "./utils/utils";
const topicContainer = document.querySelector... | 6 |
Group-6-June-EncodeSolidityBootcamp/Cosplay_Club | de0e9d8 | packages/world-id-hardhat/scripts/deploy.ts | TypeScript | www.github.com/Group-6-June-EncodeSolidityBootcamp/Cosplay_Club/tree/main/packages/world-id-hardhat/scripts/deploy.ts | https://raw.githubusercontent.com/Group-6-June-EncodeSolidityBootcamp/Cosplay_Club/de0e9d8/packages/world-id-hardhat/scripts/deploy.ts | Group-6-June-EncodeSolidityBootcamp/Cosplay_Club de0e9d8 packages/world-id-hardhat/scripts/deploy.ts | true | 200 | 880 | import { ethers } from 'hardhat';
import fetch from "node-fetch";
// Our main contest contract whose vote function we call
const CONTEST_CONTRACT = "0x77BEcbBbd929c10de37573b109048a3Eb2154c50";
async function main() {
const worldIDAddress = await fetch('https://developer.worldcoin.org/api/v1/contracts')
... | 2 |
Vivekd09/article-hub-frontend | 609a626 | src/app/admin/dialog/view-article/view-article.component.ts | TypeScript | www.github.com/Vivekd09/article-hub-frontend/tree/main/src/app/admin/dialog/view-article/view-article.component.ts | https://raw.githubusercontent.com/Vivekd09/article-hub-frontend/609a626/src/app/admin/dialog/view-article/view-article.component.ts | Vivekd09/article-hub-frontend 609a626 src/app/admin/dialog/view-article/view-article.component.ts | true | 200 | 570 | import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ThemeService } from 'src/app/services/theme.service';
@Component({
selector: 'app-view-article',
templateUrl: './view-article.component.html',
styleUrls: ['./view-article.component.scss... | 5 |
Egue/proyectoAngular | ecddcf9 | src/app/pages/sistemagestion/permiso-reportes/permiso-reportes.module.ts | TypeScript | www.github.com/Egue/proyectoAngular/tree/main/src/app/pages/sistemagestion/permiso-reportes/permiso-reportes.module.ts | https://raw.githubusercontent.com/Egue/proyectoAngular/ecddcf9/src/app/pages/sistemagestion/permiso-reportes/permiso-reportes.module.ts | Egue/proyectoAngular ecddcf9 src/app/pages/sistemagestion/permiso-reportes/permiso-reportes.module.ts | true | 200 | 664 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PermisoGraficosComponent } from './permiso-graficos/permiso-graficos.component';
import { PermisoReportesRoutingModule } from './permiro-reporte-routing.module';
import {OrganizationChartModule} from 'primeng/organization... | 3 |
MrNaif2018/augmenta-frontend | 3676762 | src/services/axios/AxiosBase.ts | TypeScript | www.github.com/MrNaif2018/augmenta-frontend/tree/main/src/services/axios/AxiosBase.ts | https://raw.githubusercontent.com/MrNaif2018/augmenta-frontend/3676762/src/services/axios/AxiosBase.ts | MrNaif2018/augmenta-frontend 3676762 src/services/axios/AxiosBase.ts | true | 200 | 455 | import axios from 'axios'
import appConfig from '@/config'
import AxiosRequestInterceptorConfigCallback from './AxiosRequestInterceptorConfigCallback'
const AxiosBase = axios.create({
timeout: 300000,
baseURL: appConfig.apiPrefix,
})
AxiosBase.interceptors.request.use(
(config) => {
return AxiosRe... | 1 |
sandikbarr/day-at-the-museum | 16a5a88 | libs/next/apollo-client/src/lib/met-object-query.ts | TypeScript | www.github.com/sandikbarr/day-at-the-museum/tree/main/libs/next/apollo-client/src/lib/met-object-query.ts | https://raw.githubusercontent.com/sandikbarr/day-at-the-museum/16a5a88/libs/next/apollo-client/src/lib/met-object-query.ts | sandikbarr/day-at-the-museum 16a5a88 libs/next/apollo-client/src/lib/met-object-query.ts | true | 200 | 438 | import { gql } from '@apollo/client';
export const metObjectQuery = gql`
query Query($objectID: Int) {
metMuseumObject(objectID: $objectID) {
objectID
object {
primaryImage
department
objectName
title
culture
period
dynasty
reign
... | 7 |
Phenomer/Sincromisor | a9d7ba4 | sincromisor-client/src/ts/UI/DialogManager.ts | TypeScript | www.github.com/Phenomer/Sincromisor/tree/main/sincromisor-client/src/ts/UI/DialogManager.ts | https://raw.githubusercontent.com/Phenomer/Sincromisor/a9d7ba4/sincromisor-client/src/ts/UI/DialogManager.ts | Phenomer/Sincromisor a9d7ba4 sincromisor-client/src/ts/UI/DialogManager.ts | true | 200 | 9,607 | import { PopManager } from "./PopManager";
export class DialogManager {
private static instance: DialogManager
static vrmUrl: string = '/characters/default.vrm';
static getManager(): DialogManager {
if (!DialogManager.instance) {
DialogManager.instance = new DialogManager();
}
... | 4 |
Gabriel-Aranda1406/loja_de_games_nest | bf06f58 | src/produto/entities/produto.entity.ts | TypeScript | www.github.com/Gabriel-Aranda1406/loja_de_games_nest/tree/main/src/produto/entities/produto.entity.ts | https://raw.githubusercontent.com/Gabriel-Aranda1406/loja_de_games_nest/bf06f58/src/produto/entities/produto.entity.ts | Gabriel-Aranda1406/loja_de_games_nest bf06f58 src/produto/entities/produto.entity.ts | true | 200 | 740 | import { Transform, TransformFnParams } from "class-transformer";
import { IsNotEmpty } from "class-validator";
import { Categoria } from "src/categoria/entities/categoria.entity";
import {Column, Entity, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn} from "typeorm";
@Entity({name:"tb_produto"})
export class Pro... | 6 |
MichDreby/fc-web-creator | 015691a | src/api/players.ts | TypeScript | www.github.com/MichDreby/fc-web-creator/tree/main/src/api/players.ts | https://raw.githubusercontent.com/MichDreby/fc-web-creator/015691a/src/api/players.ts | MichDreby/fc-web-creator 015691a src/api/players.ts | true | 200 | 646 | import { Player } from '@interfaces'
import { Network } from '@services'
const { REACT_APP_API_URL } = process.env
const playersUrl = `${REACT_APP_API_URL}/players`
export const createPlayer = (data: Player) =>
Network.post<Player>(`${playersUrl}`, data)
export const listAllPlayers = () => Network.get<Player[]>(`$... | 2 |
mohsen77sk/msk | 14d357d | libs/docs/shell/ui/layout/src/lib/layout.component.spec.ts | TypeScript | www.github.com/mohsen77sk/msk/tree/main/libs/docs/shell/ui/layout/src/lib/layout.component.spec.ts | https://raw.githubusercontent.com/mohsen77sk/msk/14d357d/libs/docs/shell/ui/layout/src/lib/layout.component.spec.ts | mohsen77sk/msk 14d357d libs/docs/shell/ui/layout/src/lib/layout.component.spec.ts | true | 200 | 809 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { MSK_LAYOUT_CONFIG } from '@msk/shared/services/config';
import { DocsLayoutComponent } from './layout.component';
describe('DocsLayoutComponent', () => {
let component: DocsLayoutComponent;
... | 5 |
MIchelJoaquim/apiSchoolite | 1a5560d | src/application/usecase/room/create.useCase.ts | TypeScript | www.github.com/MIchelJoaquim/apiSchoolite/tree/main/src/application/usecase/room/create.useCase.ts | https://raw.githubusercontent.com/MIchelJoaquim/apiSchoolite/1a5560d/src/application/usecase/room/create.useCase.ts | MIchelJoaquim/apiSchoolite 1a5560d src/application/usecase/room/create.useCase.ts | true | 200 | 718 | import { Acronym } from '../../../core/entity/value-object/acronym.value-object';
import { Description } from '../../../core/entity/value-object/description.value-object';
import { ICreateRoom } from '../../../core/usecase/room/create.usecase.protocol';
import { ICreateRoomGateway } from '../../getway/room/create.gatew... | 3 |
dqbd/ts-math-evaluate | 11c2b68 | src/math/divide.ts | TypeScript | www.github.com/dqbd/ts-math-evaluate/tree/main/src/math/divide.ts | https://raw.githubusercontent.com/dqbd/ts-math-evaluate/11c2b68/src/math/divide.ts | dqbd/ts-math-evaluate 11c2b68 src/math/divide.ts | true | 200 | 3,738 | import { AddInt } from "./add"
import { CompareDigits, CompareSignNumbers, IsNotZero } from "./comparison"
import { MultiplySign } from "./multiply"
import { SubDigit } from "./subtract"
import { PadEndEqually, TrimStart } from "../utils/array"
import {
Digit,
FloatNumber,
NumberLike,
ParseSignFloatNumber,
Si... | 0 |
podow/pizza-app | 4dd3349 | store/history/reducer.ts | TypeScript | www.github.com/podow/pizza-app/tree/main/store/history/reducer.ts | https://raw.githubusercontent.com/podow/pizza-app/4dd3349/store/history/reducer.ts | podow/pizza-app 4dd3349 store/history/reducer.ts | true | 200 | 620 | import { handleActions } from 'redux-actions';
import status from '../status';
import { HISTORY, FETCH, DONE, FAIL } from '../constants';
const initialState = {
...status,
data: []
};
export default handleActions(
{
[HISTORY + FETCH]: state => ({
...state,
...status,
loading: true,
... | 1 |
table-thread/table-thread-api | 3560dee | src/dtos/users.dto.ts | TypeScript | www.github.com/table-thread/table-thread-api/tree/main/src/dtos/users.dto.ts | https://raw.githubusercontent.com/table-thread/table-thread-api/3560dee/src/dtos/users.dto.ts | table-thread/table-thread-api 3560dee src/dtos/users.dto.ts | true | 200 | 1,688 | import config from "config";
import {
IsEmail,
IsString,
IsNotEmpty,
IsObject,
IsOptional,
Contains,
IsNumber,
IsArray,
IsMongoId,
} from "class-validator";
export class CreateUserDto {
@IsNotEmpty()
public name: string;
@IsNotEmpty()
@IsString()
public role: string;
@IsEmail()
public email: string;
... | 7 |
pacobarrionuevo/ProyectoJuegoOca_2Trim | 2adbdab | JuegoOcaFront/src/app/services/user.service.ts | TypeScript | www.github.com/pacobarrionuevo/ProyectoJuegoOca_2Trim/tree/main/JuegoOcaFront/src/app/services/user.service.ts | https://raw.githubusercontent.com/pacobarrionuevo/ProyectoJuegoOca_2Trim/2adbdab/JuegoOcaFront/src/app/services/user.service.ts | pacobarrionuevo/ProyectoJuegoOca_2Trim 2adbdab JuegoOcaFront/src/app/services/user.service.ts | true | 200 | 518 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { User } from '../models/User';
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class UsuarioService {
private baseURL =... | 4 |
SrTrolly/mapAppAngular | 131c58a | src/app/app-routing.module.ts | TypeScript | www.github.com/SrTrolly/mapAppAngular/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/SrTrolly/mapAppAngular/131c58a/src/app/app-routing.module.ts | SrTrolly/mapAppAngular 131c58a src/app/app-routing.module.ts | true | 200 | 539 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: "maps",
loadChildren: () => import("./maps/maps.module").then(m => m.MapsModule),
},
{
path: "alone",
loadComponent: () => import("./alone/pages/alone-page/alone-page... | 6 |
ian-aguilar/Fizno-whizzlet | 55ef0a4 | packages/ui-web/public/images/index.ts | TypeScript | www.github.com/ian-aguilar/Fizno-whizzlet/tree/main/packages/ui-web/public/images/index.ts | https://raw.githubusercontent.com/ian-aguilar/Fizno-whizzlet/55ef0a4/packages/ui-web/public/images/index.ts | ian-aguilar/Fizno-whizzlet 55ef0a4 packages/ui-web/public/images/index.ts | true | 200 | 1,255 | import dummy from "./announcement-icon.svg";
import roundedLoader from "./loaderFizno.gif";
import SellImage from "./mainpages/sell.png";
import ShipIt from "./mainpages/shipit.png";
import GetPaid from "./mainpages/getPaid.png";
import DefualtProduct from "./mainpages/productPic.png";
import dummyProduct from "./mainp... | 5 |
metapages/compute-queues | 3edf5e0 | app/worker/src/processes.ts | TypeScript | www.github.com/metapages/compute-queues/tree/main/app/worker/src/processes.ts | https://raw.githubusercontent.com/metapages/compute-queues/3edf5e0/app/worker/src/processes.ts | metapages/compute-queues 3edf5e0 app/worker/src/processes.ts | true | 200 | 1,054 | // Store process references for cleanup
export const processes: {
dockerd?: Deno.ChildProcess;
} = {};
// Wait for Docker daemon to be ready
export async function waitForDocker() {
Deno.stdout.writeSync(
new TextEncoder().encode("Waiting for docker daemon.."),
);
let attempts = 0;
while (attempts < 10)... | 2 |
StafflinePeoplePlus/peopleplus-components | 27a2479 | src/lib/tooltip/Tooltip.test.ts | TypeScript | www.github.com/StafflinePeoplePlus/peopleplus-components/tree/main/src/lib/tooltip/Tooltip.test.ts | https://raw.githubusercontent.com/StafflinePeoplePlus/peopleplus-components/27a2479/src/lib/tooltip/Tooltip.test.ts | StafflinePeoplePlus/peopleplus-components 27a2479 src/lib/tooltip/Tooltip.test.ts | true | 200 | 525 | import TestTooltip from './TestTooltip.svelte';
import { test, expect, afterEach } from 'vitest';
import { cleanup, render, fireEvent } from '@testing-library/svelte';
afterEach(cleanup);
test('should render tooltip content when hovered', async () => {
const { getByText } = render(TestTooltip);
const tooltipTrigge... | 3 |
aliafsahnoudeh/my-native-buddy-web | 8ba7f8f | src/types/IUserDbModel.ts | TypeScript | www.github.com/aliafsahnoudeh/my-native-buddy-web/tree/main/src/types/IUserDbModel.ts | https://raw.githubusercontent.com/aliafsahnoudeh/my-native-buddy-web/8ba7f8f/src/types/IUserDbModel.ts | aliafsahnoudeh/my-native-buddy-web 8ba7f8f src/types/IUserDbModel.ts | true | 200 | 320 | import type IBaseModel from "./IBaseModel";
interface IUserDbModel extends IBaseModel {
email: string;
password: string;
role: string;
active: boolean;
firstName: string;
lastName: string;
phone_number: string;
location: string;
birth_date: number;
deleted: boolean;
}
export default IUserDbModel;
| 0 |
jsemalvarez/cf-blog | 8fe2d4f | src/users/users.controller.ts | TypeScript | www.github.com/jsemalvarez/cf-blog/tree/main/src/users/users.controller.ts | https://raw.githubusercontent.com/jsemalvarez/cf-blog/8fe2d4f/src/users/users.controller.ts | jsemalvarez/cf-blog 8fe2d4f src/users/users.controller.ts | true | 200 | 1,135 | import { Controller, Get, Post, Body, Param, Delete, Put } from '@nestjs/common';
import { UsersService } from './users.service';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { ParseMongoIdPipe } from 'src/common/pipes/parse-mongo-id.pipe';
@Contr... | 1 |
fareasternvikings/fevg-client | e879a1c | src/app/product/components/photo-viewer/photo-viewer.component.ts | TypeScript | www.github.com/fareasternvikings/fevg-client/tree/main/src/app/product/components/photo-viewer/photo-viewer.component.ts | https://raw.githubusercontent.com/fareasternvikings/fevg-client/e879a1c/src/app/product/components/photo-viewer/photo-viewer.component.ts | fareasternvikings/fevg-client e879a1c src/app/product/components/photo-viewer/photo-viewer.component.ts | true | 200 | 798 | import {ChangeDetectionStrategy, Component, Input, OnInit} from '@angular/core'
import {ImageInterface} from '../../../shared/types/image.interface'
import {environment} from '../../../../environments/environment'
import {BehaviorSubject} from 'rxjs'
@Component({
selector: 'app-photo-viewer',
templateUrl: './photo... | 7 |
shawn-witemyre/components | 4985109 | src/app/collections/collections-routing.module.ts | TypeScript | www.github.com/shawn-witemyre/components/tree/main/src/app/collections/collections-routing.module.ts | https://raw.githubusercontent.com/shawn-witemyre/components/4985109/src/app/collections/collections-routing.module.ts | shawn-witemyre/components 4985109 src/app/collections/collections-routing.module.ts | true | 200 | 845 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CollectionsHomeComponent } from './collections-home/collections-home.component';
import { BiographyComponent } from './collections/biography/biography.component';
import { CompaniesComponent } from './collections... | 4 |
azad-xyz/first-project | fb9f45f | src/app/modules/Course/course.service.ts | TypeScript | www.github.com/azad-xyz/first-project/tree/main/src/app/modules/Course/course.service.ts | https://raw.githubusercontent.com/azad-xyz/first-project/fb9f45f/src/app/modules/Course/course.service.ts | azad-xyz/first-project fb9f45f src/app/modules/Course/course.service.ts | true | 200 | 4,175 | /* eslint-disable @typescript-eslint/no-explicit-any */
import mongoose from 'mongoose';
import QueryBuilder from '../../builder/QueryBuilder';
import { CourseSearchableFields } from './course.contant';
import { TCourse, TCourseFaculty } from './course.interface';
import { Course, CourseFaculty } from './course.model';... | 6 |
galvaodev/medical-examination | 879fab0 | front/src/components/header/styles.ts | TypeScript | www.github.com/galvaodev/medical-examination/tree/main/front/src/components/header/styles.ts | https://raw.githubusercontent.com/galvaodev/medical-examination/879fab0/front/src/components/header/styles.ts | galvaodev/medical-examination 879fab0 front/src/components/header/styles.ts | true | 200 | 411 | import styled from 'styled-components';
export const Container = styled.div`
width: 100%;
display: flex;
justify-content: center;
svg {
animation: rotateAnimation 5s linear infinite;
color: ${({ theme }) => theme.colors.primary};
font-size: 13rem;
}
@keyframes rotateAnimation {
from {
... | 2 |
japuentem/beaver-clock-calendar | dcc08d2 | src/app/clock-calendar/clock-calendar.page.ts | TypeScript | www.github.com/japuentem/beaver-clock-calendar/tree/main/src/app/clock-calendar/clock-calendar.page.ts | https://raw.githubusercontent.com/japuentem/beaver-clock-calendar/dcc08d2/src/app/clock-calendar/clock-calendar.page.ts | japuentem/beaver-clock-calendar dcc08d2 src/app/clock-calendar/clock-calendar.page.ts | true | 200 | 852 | import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
@Component({
selector: 'app-clock-calendar',
templateUrl: './clock-calendar.page.html',
styleUrls: ['./clock-calendar.page... | 5 |
Leogrindx/ShopmastaerFrontend | 83ffc6f | src/components/header/search/useSearch.ts | TypeScript | www.github.com/Leogrindx/ShopmastaerFrontend/tree/main/src/components/header/search/useSearch.ts | https://raw.githubusercontent.com/Leogrindx/ShopmastaerFrontend/83ffc6f/src/components/header/search/useSearch.ts | Leogrindx/ShopmastaerFrontend 83ffc6f src/components/header/search/useSearch.ts | true | 200 | 2,149 | import { useEffect, useState } from "react";
import axios from "axios";
import { ItemResponse } from "../../../models/ItemResponse";
import { API_URL } from "../../../http/Htttp";
export const useLogicSearch = () => {
const [items, setItems] = useState<ItemResponse[]>([]);
const [value, setValue] = useState<string... | 0 |
eirikhanasand/dcsg | 437dbd2 | src/commands.ts | TypeScript | www.github.com/eirikhanasand/dcsg/tree/main/src/commands.ts | https://raw.githubusercontent.com/eirikhanasand/dcsg/437dbd2/src/commands.ts | eirikhanasand/dcsg 437dbd2 src/commands.ts | true | 200 | 1,201 | import { dirname, join } from "path"
import { Collection } from "discord.js"
import { readdirSync } from "fs"
import { fileURLToPath } from "url"
import { Client } from "../interfaces.js"
import client from "./app.js"
export default async function getCommands(client: Client) {
client.commands = new Collection()
... | 3 |
SchoolRepos/5B_HUE20-Lernsieg_F | 8744de8 | lernsieg-frontend/src/app/notifier-service.service.ts | TypeScript | www.github.com/SchoolRepos/5B_HUE20-Lernsieg_F/tree/main/lernsieg-frontend/src/app/notifier-service.service.ts | https://raw.githubusercontent.com/SchoolRepos/5B_HUE20-Lernsieg_F/8744de8/lernsieg-frontend/src/app/notifier-service.service.ts | SchoolRepos/5B_HUE20-Lernsieg_F 8744de8 lernsieg-frontend/src/app/notifier-service.service.ts | true | 200 | 376 | import { Injectable } from '@angular/core';
import {Observable, Subject} from "rxjs";
@Injectable({
providedIn: 'root'
})
export class NotifierServiceService {
private subject = new Subject<string>()
constructor() { }
publish(message: string) {
this.subject.next(message)
}
listen(): Observable... | 1 |
jnovais1/RPA-robot-framework | d6f2be9 | backend/src/Modules/Users/read_user/ByID/ReadUsersByID.ts | TypeScript | www.github.com/jnovais1/RPA-robot-framework/tree/main/backend/src/Modules/Users/read_user/ByID/ReadUsersByID.ts | https://raw.githubusercontent.com/jnovais1/RPA-robot-framework/d6f2be9/backend/src/Modules/Users/read_user/ByID/ReadUsersByID.ts | jnovais1/RPA-robot-framework d6f2be9 backend/src/Modules/Users/read_user/ByID/ReadUsersByID.ts | true | 200 | 339 | import { prisma } from "../../../../database/PrismaClient";
interface IReadUsers {
user_id: number;
}
export class ReadUsersById {
async execute({user_id}: IReadUsers) {
const result = await prisma.user.findUnique({
where: {
id: user_id
},
});
ret... | 7 |
Usairam-s/56 | cc90804 | src/hooks/useToast.ts | TypeScript | www.github.com/Usairam-s/56/tree/main/src/hooks/useToast.ts | https://raw.githubusercontent.com/Usairam-s/56/cc90804/src/hooks/useToast.ts | Usairam-s/56 cc90804 src/hooks/useToast.ts | true | 200 | 691 | import { useState, useCallback } from 'react';
import { ToastType } from '../components/Toast';
interface Toast {
id: string;
message: string;
type: ToastType;
}
export function useToast() {
const [toasts, setToasts] = useState<Toast[]>([]);
const showToast = useCallback((message: string, type: ToastType) ... | 4 |
Shakil-Ahmmed8882/RestOS | a1c6e1d | src/redux/features/search/search.api.ts | TypeScript | www.github.com/Shakil-Ahmmed8882/RestOS/tree/main/src/redux/features/search/search.api.ts | https://raw.githubusercontent.com/Shakil-Ahmmed8882/RestOS/a1c6e1d/src/redux/features/search/search.api.ts | Shakil-Ahmmed8882/RestOS a1c6e1d src/redux/features/search/search.api.ts | true | 200 | 658 | import { baseApi } from "../../api/baseApi";
const searchApi = baseApi.injectEndpoints({
endpoints: (builder) => ({
getAllSearchResults: builder.query({
// send all of the args here
query: (args) => {
const params = new URLSearchParams();
if (args) {
args.forEach((item: { n... | 6 |
mwohlf/charon | f9bd635 | frontend/src/app/modules/fitness/fitness.module.ts | TypeScript | www.github.com/mwohlf/charon/tree/main/frontend/src/app/modules/fitness/fitness.module.ts | https://raw.githubusercontent.com/mwohlf/charon/f9bd635/frontend/src/app/modules/fitness/fitness.module.ts | mwohlf/charon f9bd635 frontend/src/app/modules/fitness/fitness.module.ts | true | 200 | 408 | import {CommonModule} from '@angular/common';
import {reducer} from './reducer';
import {NgModule} from '@angular/core';
import {StoreModule} from '@ngrx/store';
import {fitFeature} from '../../shared/const';
@NgModule({
// Effects imported in main
imports: [
CommonModule,
StoreModule.forFeature(fitFeatur... | 1 |
phamtuankietuit/frontend-redesign-admin | dcc8540 | src/_mock/_tour.js | TypeScript | www.github.com/phamtuankietuit/frontend-redesign-admin/tree/main/src/_mock/_tour.js | https://raw.githubusercontent.com/phamtuankietuit/frontend-redesign-admin/dcc8540/src/_mock/_tour.js | phamtuankietuit/frontend-redesign-admin dcc8540 src/_mock/_tour.js | true | 200 | 4,198 | import { _mock } from './_mock';
import { _tags } from './assets';
// ----------------------------------------------------------------------
export const TOUR_DETAILS_TABS = [
{ label: 'Tour content', value: 'content' },
{ label: 'Booker', value: 'bookers' },
];
export const TOUR_SORT_OPTIONS = [
{ label: 'Lat... | 7 |
joshuahawksworth/my-weather-app | c70b2bd | services/Weather/getWeather.ts | TypeScript | www.github.com/joshuahawksworth/my-weather-app/tree/main/services/Weather/getWeather.ts | https://raw.githubusercontent.com/joshuahawksworth/my-weather-app/c70b2bd/services/Weather/getWeather.ts | joshuahawksworth/my-weather-app c70b2bd services/Weather/getWeather.ts | true | 200 | 694 | import { Weather } from "@/types/weather";
const BASE_URL = 'https://api.weatherapi.com/v1/current.json';
export const getWeather = async (city: string): Promise<Weather> => {
const response = await fetch(`${BASE_URL}?key=${process.env.NEXT_PUBLIC_WEATHER_API_KEY}&q=${city}`);
if (!response.ok) {
throw ne... | 4 |
Altaflux/agent-mimir | f3cde1c | tools/desktop-control/src/molmo.ts | TypeScript | www.github.com/Altaflux/agent-mimir/tree/main/tools/desktop-control/src/molmo.ts | https://raw.githubusercontent.com/Altaflux/agent-mimir/f3cde1c/tools/desktop-control/src/molmo.ts | Altaflux/agent-mimir f3cde1c tools/desktop-control/src/molmo.ts | true | 200 | 4,756 |
import sharp from 'sharp';
import envPaths from 'env-paths';
import { ChildProcess, spawn } from 'child_process';
import exitHook from 'async-exit-hook';
import net, { AddressInfo } from "net";
export class MolmoServerControl {
private process: ChildProcess | null = null;
private port: number = 8000;
... | 6 |
faisalinfinity/Csk-assignment | 257af05 | app/api/csk-article/route.ts | TypeScript | www.github.com/faisalinfinity/Csk-assignment/tree/main/app/api/csk-article/route.ts | https://raw.githubusercontent.com/faisalinfinity/Csk-assignment/257af05/app/api/csk-article/route.ts | faisalinfinity/Csk-assignment 257af05 app/api/csk-article/route.ts | true | 200 | 860 | // app/api/csk-article/route.ts
import { NextResponse } from "next/server";
import { MongoClient } from "mongodb";
export async function GET(request: Request) {
const mongoUri = process.env.MONGODB_URI;
const dbName = process.env.MONGODB_DB || "csk";
if (!mongoUri) {
return NextResponse.json(
{ error:... | 1 |
jayceedillan/site-repo | 9eb1fb1 | functions/src/shared/services/twilio.service.ts | TypeScript | www.github.com/jayceedillan/site-repo/tree/main/functions/src/shared/services/twilio.service.ts | https://raw.githubusercontent.com/jayceedillan/site-repo/9eb1fb1/functions/src/shared/services/twilio.service.ts | jayceedillan/site-repo 9eb1fb1 functions/src/shared/services/twilio.service.ts | true | 200 | 2,123 | /**
* Service for sending SMS
*/
import { config, logger } from 'firebase-functions';
import { appConstants } from '../app.constants';
import { FirebaseConfig, SmsTemplates } from '../interfaces';
import { Twilio } from 'twilio';
import { readFile } from 'fs/promises';
import { join } from 'path';
import { isArray } ... | 7 |
yuslove1/alx-graphql-0x01 | 8f63721 | alx-rick-and-morty-app/graphql/queries.ts | TypeScript | www.github.com/yuslove1/alx-graphql-0x01/tree/main/alx-rick-and-morty-app/graphql/queries.ts | https://raw.githubusercontent.com/yuslove1/alx-graphql-0x01/8f63721/alx-rick-and-morty-app/graphql/queries.ts | yuslove1/alx-graphql-0x01 8f63721 alx-rick-and-morty-app/graphql/queries.ts | true | 200 | 673 | import { gql } from "@apollo/client";
//`gql` is a template literal tag that parses the query string into a query document.
//filter: FilterEpisode is a custom input type that we will define later
//The query will return the count, pages, next, and prev fields from the info object, and the id, name, air_date, and epis... | 4 |
arncard/site-subscription-client | 5bc61a2 | src/app/client/client.component.ts | TypeScript | www.github.com/arncard/site-subscription-client/tree/main/src/app/client/client.component.ts | https://raw.githubusercontent.com/arncard/site-subscription-client/5bc61a2/src/app/client/client.component.ts | arncard/site-subscription-client 5bc61a2 src/app/client/client.component.ts | true | 200 | 1,886 | import { Component, OnInit } from '@angular/core';
import { SiteModel } from '../_interfaces/sitemodel.model';
import { SignalRService } from '../services/signal-r.service';
import { HttpClient } from '@angular/common/http';
@Component({
selector: 'app-client',
templateUrl: './client.component.html',
styleUrls: ... | 6 |
gngnk123/ToDo_Angular | 745160d | src/main.ts | TypeScript | www.github.com/gngnk123/ToDo_Angular/tree/main/src/main.ts | https://raw.githubusercontent.com/gngnk123/ToDo_Angular/745160d/src/main.ts | gngnk123/ToDo_Angular 745160d src/main.ts | true | 200 | 524 | import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';
import { provideHttpClient, withFetch } from '@angular/common/http';
import { provideRouter } from '@angular/router';
import { provideAnimationsAsync } from... | 1 |
akhilajohnsonc/NetworkNinja-Server-Manager-App | 1efc325 | serverapp/src/app/app.component.ts | TypeScript | www.github.com/akhilajohnsonc/NetworkNinja-Server-Manager-App/tree/main/serverapp/src/app/app.component.ts | https://raw.githubusercontent.com/akhilajohnsonc/NetworkNinja-Server-Manager-App/1efc325/serverapp/src/app/app.component.ts | akhilajohnsonc/NetworkNinja-Server-Manager-App 1efc325 serverapp/src/app/app.component.ts | true | 200 | 2,368 | import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { BehaviorSubject, Observable, of } from 'rxjs';
import { catchError, map, startWith } from 'rxjs/operators';
import { DataState } from './enum/data-state.enum';
import { Status } from './enum/sta... | 7 |
Rudolf166666/tags | b5439d1 | src/migrations/1662804128287-CreateUserTagsTable.ts | TypeScript | www.github.com/Rudolf166666/tags/tree/main/src/migrations/1662804128287-CreateUserTagsTable.ts | https://raw.githubusercontent.com/Rudolf166666/tags/b5439d1/src/migrations/1662804128287-CreateUserTagsTable.ts | Rudolf166666/tags b5439d1 src/migrations/1662804128287-CreateUserTagsTable.ts | true | 200 | 1,248 | import {
MigrationInterface,
QueryRunner,
Table,
TableForeignKey,
} from 'typeorm';
export class CreateUserTagsTable1662804128287 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: 'user_tags',
... | 4 |
daniilskr/laratoon | c792644 | resources/js/vue/app/composable/demo/useDemoLogin.ts | TypeScript | www.github.com/daniilskr/laratoon/tree/main/resources/js/vue/app/composable/demo/useDemoLogin.ts | https://raw.githubusercontent.com/daniilskr/laratoon/c792644/resources/js/vue/app/composable/demo/useDemoLogin.ts | daniilskr/laratoon c792644 resources/js/vue/app/composable/demo/useDemoLogin.ts | true | 200 | 474 | import { useAuth } from "@/composable/useAuth";
import { BACKEND_URL } from "@/config";
import axios from "axios";
const { fetchCurrentUser } = useAuth();
export const useDemoLogin = function () {
const performDemoAuth = async function () {
await axios.post(`${BACKEND_URL}/api/demo-login`);
};
const loginWi... | 6 |
cassiorodp/react_native_spotify | 676fbcf | utils/index.ts | TypeScript | www.github.com/cassiorodp/react_native_spotify/tree/main/utils/index.ts | https://raw.githubusercontent.com/cassiorodp/react_native_spotify/676fbcf/utils/index.ts | cassiorodp/react_native_spotify 676fbcf utils/index.ts | true | 200 | 1,104 | import { config } from '@/constants/config';
import { add, fromUnixTime } from 'date-fns';
import { TokenResponse } from 'expo-auth-session';
import * as SecureStore from 'expo-secure-store';
const secureStore = async (key: string, value: string) => {
await SecureStore.setItemAsync(key, value);
};
const getSecureSt... | 1 |
franzsamilo/senthrap | eeacebc | __tests__/api/uploadSummary.test.ts | TypeScript | www.github.com/franzsamilo/senthrap/tree/main/__tests__/api/uploadSummary.test.ts | https://raw.githubusercontent.com/franzsamilo/senthrap/eeacebc/__tests__/api/uploadSummary.test.ts | franzsamilo/senthrap eeacebc __tests__/api/uploadSummary.test.ts | true | 200 | 1,171 | import { createMocks } from "node-mocks-http";
import handler from "../../pages/api/uploadSummary";
import * as uploadDocumentModule from "../../pages/api/src/utils/uploadDocument";
jest.mock("../../pages/api/src/utils/uploadDocument");
const uploadDocument = uploadDocumentModule.default as jest.Mock;
describe("/api/... | 7 |
NoahWhite1/dog-site | 7663666 | src/src/main/resources/frontend/dog-site/src/app/components/breeder-card/breeder-card.component.ts | TypeScript | www.github.com/NoahWhite1/dog-site/tree/main/src/src/main/resources/frontend/dog-site/src/app/components/breeder-card/breeder-card.component.ts | https://raw.githubusercontent.com/NoahWhite1/dog-site/7663666/src/src/main/resources/frontend/dog-site/src/app/components/breeder-card/breeder-card.component.ts | NoahWhite1/dog-site 7663666 src/src/main/resources/frontend/dog-site/src/app/components/breeder-card/breeder-card.component.ts | true | 200 | 714 | import { Component, OnInit } from '@angular/core';
import { from } from 'rxjs';
import { Breeder } from 'src/app/Modules/breeder/breeder.module';
import { Input } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-breeder-card',
templateUrl: './breeder-card.component.html',... | 4 |
ad0bre/eztravel | a21e417 | eztravel-frontend/src/app/components/modal-accomodation/modal-accomodation.component.ts | TypeScript | www.github.com/ad0bre/eztravel/tree/main/eztravel-frontend/src/app/components/modal-accomodation/modal-accomodation.component.ts | https://raw.githubusercontent.com/ad0bre/eztravel/a21e417/eztravel-frontend/src/app/components/modal-accomodation/modal-accomodation.component.ts | ad0bre/eztravel a21e417 eztravel-frontend/src/app/components/modal-accomodation/modal-accomodation.component.ts | true | 200 | 3,454 | import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MdbModalRef} from 'mdb-angular-ui-kit/modal';
import { lastValueFrom } from 'rxjs';
import { MdbValidationModule } from 'mdb-angular-ui-kit/validation';
import { ReactiveFormsModule } from '@angular/forms';
import { MdbFor... | 6 |
fresh2you/fresh2you-frontend | b840aee | src/pages/product/listing/hooks/useProductPageLogic.ts | TypeScript | www.github.com/fresh2you/fresh2you-frontend/tree/main/src/pages/product/listing/hooks/useProductPageLogic.ts | https://raw.githubusercontent.com/fresh2you/fresh2you-frontend/b840aee/src/pages/product/listing/hooks/useProductPageLogic.ts | fresh2you/fresh2you-frontend b840aee src/pages/product/listing/hooks/useProductPageLogic.ts | true | 200 | 1,225 | import { useEffect, useCallback } from "react";
import { useAtom, useSetAtom } from "jotai";
import useInfiniteScroll from "./useInfiniteScroll";
import useMyPageLogics from "@/pages/mypage/mypage/hooks/useMyPageLogics";
import { loadProducts as fetchProducts } from "../utils/loadProducts";
import { productsAtom, pageN... | 1 |
Gbolade-True/y_sure | a68194b | src/styles/index.ts | TypeScript | www.github.com/Gbolade-True/y_sure/tree/main/src/styles/index.ts | https://raw.githubusercontent.com/Gbolade-True/y_sure/a68194b/src/styles/index.ts | Gbolade-True/y_sure a68194b src/styles/index.ts | true | 200 | 4,001 | import classNames from 'classnames';
import { Size, Variant } from './types';
export enum ScreenSizes {
xsm = 375,
sm = 640,
md = 744,
lg = 1024,
xl = 1280,
xxl = 1440,
xxxl = 1728,
xxxxl = 1920,
}
export enum ElementEffect {
HOVER = 'hover:',
FOCUS = 'focus:',
}
export const getColor = (name: st... | 7 |
apify/apify-cli | c164097 | src/lib/local_state.ts | TypeScript | www.github.com/apify/apify-cli/tree/main/src/lib/local_state.ts | https://raw.githubusercontent.com/apify/apify-cli/c164097/src/lib/local_state.ts | apify/apify-cli c164097 src/lib/local_state.ts | true | 200 | 743 | import { loadJsonFileSync } from 'load-json-file';
import { writeJsonFileSync } from 'write-json-file';
import { STATE_FILE_PATH } from './consts.js';
/**
* Returns state object from auth file or empty object.
* This method is synchronous/blocking to avoid different race conditions.
*/
export const getLocalState =... | 4 |
SrcRunny/Frontend_SpinNSend | 9a36e5c | src/type.ts | TypeScript | www.github.com/SrcRunny/Frontend_SpinNSend/tree/main/src/type.ts | https://raw.githubusercontent.com/SrcRunny/Frontend_SpinNSend/9a36e5c/src/type.ts | SrcRunny/Frontend_SpinNSend 9a36e5c src/type.ts | true | 200 | 307 | export interface StationItem {
id: number
title: string
description: string
location: string
small_washing: Price
medium_washing: Price
large_washing:Price
dry_machine: number
}
export interface Price{
cold_water: number
warm_water: number
hot_water: number
} | 1 |
GFialho/nestjs-http-service | 779d62f | src/modules/matches/matches.controller.ts | TypeScript | www.github.com/GFialho/nestjs-http-service/tree/main/src/modules/matches/matches.controller.ts | https://raw.githubusercontent.com/GFialho/nestjs-http-service/779d62f/src/modules/matches/matches.controller.ts | GFialho/nestjs-http-service 779d62f src/modules/matches/matches.controller.ts | true | 200 | 1,494 | import {
Controller,
Get,
HttpCode,
Param,
UseInterceptors,
} from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { MatchesService } from './matches.service';
import { CacheInterceptor } from '@nestjs/cache-manager';
import { GetTopLeaderboardResponse } from './... | 7 |
Crakkcoder/odin-project | 5577dd5 | messaging-app-backend-main/src/tests/userRouter.test.ts | TypeScript | www.github.com/Crakkcoder/odin-project/tree/main/messaging-app-backend-main/src/tests/userRouter.test.ts | https://raw.githubusercontent.com/Crakkcoder/odin-project/5577dd5/messaging-app-backend-main/src/tests/userRouter.test.ts | Crakkcoder/odin-project 5577dd5 messaging-app-backend-main/src/tests/userRouter.test.ts | true | 200 | 5,329 | import request from "supertest";
import express from "express";
import userRouter from "../routes/userRouter";
import { describe, it, expect, beforeEach, afterAll } from "vitest";
import { cleanupDatabase } from "../utils/cleanupDatabase";
import passport from "passport";
import { initializePassport } from "../utils/pa... | 6 |
schoolerpdeveloper/fe | 81f59d9 | src/app/shared/services/api/utilApi/utilApi.service.ts | TypeScript | www.github.com/schoolerpdeveloper/fe/tree/main/src/app/shared/services/api/utilApi/utilApi.service.ts | https://raw.githubusercontent.com/schoolerpdeveloper/fe/81f59d9/src/app/shared/services/api/utilApi/utilApi.service.ts | schoolerpdeveloper/fe 81f59d9 src/app/shared/services/api/utilApi/utilApi.service.ts | true | 200 | 396 | import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { environment } from "src/environments/environment";
@Injectable({
providedIn:'root'
})
export class UtilApiService{
constructor(public http:HttpClient){}
private url = environment.apiEndPoint;
getCla... | 4 |
soopyc/shortify | cece6f2 | vite.config.ts | TypeScript | www.github.com/soopyc/shortify/tree/main/vite.config.ts | https://raw.githubusercontent.com/soopyc/shortify/cece6f2/vite.config.ts | soopyc/shortify cece6f2 vite.config.ts | true | 200 | 693 | /// <reference types="vitest" />
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import UnoCSS from "unocss/vite";
import extractorSvelte from "@unocss/extractor-svelte";
import Icons from "unplugin-icons/vite";
import _package from "./package.json";
export default defineConfig({
... | 1 |
Trekn-Lab/public-depass | 035e7f2 | interface/rule.interface.ts | TypeScript | www.github.com/Trekn-Lab/public-depass/tree/main/interface/rule.interface.ts | https://raw.githubusercontent.com/Trekn-Lab/public-depass/035e7f2/interface/rule.interface.ts | Trekn-Lab/public-depass 035e7f2 interface/rule.interface.ts | true | 200 | 687 | import { IInstruction } from "./rule_instruction.interface";
export enum RuleCondition {
ONLY = "ONLY",
AND = "AND",
OR = "OR",
}
export interface IRule {
id: string;
project_id: string;
condition: RuleCondition;
assignee_role_id: string;
guild_role_name?: string;
guild_role_color?: string;
guild_... | 7 |
cuhacking/2025 | 23450f2 | libs/external/shadcn/tailwind.config.ts | TypeScript | www.github.com/cuhacking/2025/tree/main/libs/external/shadcn/tailwind.config.ts | https://raw.githubusercontent.com/cuhacking/2025/23450f2/libs/external/shadcn/tailwind.config.ts | cuhacking/2025 23450f2 libs/external/shadcn/tailwind.config.ts | true | 200 | 3,723 | import type { Config } from 'tailwindcss'
import { join } from 'node:path'
import { createGlobPatternsForDependencies } from '@nx/react/tailwind'
import TailwindAnimate from 'tailwindcss-animate'
export function buildConfig(
appDir: string,
): Config {
return {
content: [
join(
appDir,
'... | 4 |
emeibech/express-server | a551aed | src/routes/weather/weather.ts | TypeScript | www.github.com/emeibech/express-server/tree/main/src/routes/weather/weather.ts | https://raw.githubusercontent.com/emeibech/express-server/a551aed/src/routes/weather/weather.ts | emeibech/express-server a551aed src/routes/weather/weather.ts | true | 200 | 534 | import { Router } from 'express';
import apicache from 'apicache';
import currentWeather from './currentWeather.js';
import ipgeo from './ipgeo.js';
import onecall from './onecall.js';
import { handleRateLimit } from '@/common/middleWares.js';
const weather = Router();
const cache = apicache.middleware;
weather.use(ha... | 1 |
ssarick/space-admin | 9591221 | src/projects/b2b/features/user-personal-data-form/user-personal-data-form.types.ts | TypeScript | www.github.com/ssarick/space-admin/tree/main/src/projects/b2b/features/user-personal-data-form/user-personal-data-form.types.ts | https://raw.githubusercontent.com/ssarick/space-admin/9591221/src/projects/b2b/features/user-personal-data-form/user-personal-data-form.types.ts | ssarick/space-admin 9591221 src/projects/b2b/features/user-personal-data-form/user-personal-data-form.types.ts | true | 200 | 311 | import { IResponseData } from '@/shared/types/api.types';
import { IUser } from '@/projects/b2b/shared/types/user.types';
export interface IUserPersonalDataFormProps {
userData: IUser | null
businessCode?: string
isEdit?: boolean
loadUserData: () => Promise<
IResponseData<IUser> | undefined
>
}
| 7 |
Raykertf/PrograWeb | ef73bf7 | src/auth/auth.controller.ts | TypeScript | www.github.com/Raykertf/PrograWeb/tree/main/src/auth/auth.controller.ts | https://raw.githubusercontent.com/Raykertf/PrograWeb/ef73bf7/src/auth/auth.controller.ts | Raykertf/PrograWeb ef73bf7 src/auth/auth.controller.ts | true | 200 | 1,759 | import { Controller, Post, Body } from '@nestjs/common';
import { AuthService } from './auth.service';
import { VendedorService } from '../vendedor/vendedor.service';
import { CompradorService } from 'src/comprador/comprador.service';
@Controller('auth')
export class AuthController {
constructor(private readonly aut... | 4 |
PaulNafureanu/BrowserAutomationProject | fe30fa8 | main/managers/general/GeneralManager.ts | TypeScript | www.github.com/PaulNafureanu/BrowserAutomationProject/tree/main/main/managers/general/GeneralManager.ts | https://raw.githubusercontent.com/PaulNafureanu/BrowserAutomationProject/fe30fa8/main/managers/general/GeneralManager.ts | PaulNafureanu/BrowserAutomationProject fe30fa8 main/managers/general/GeneralManager.ts | true | 200 | 5,186 | import { WinServer } from "../../processes/WinServer";
import { UserCommandInput } from "../user/UserManager";
import { CommandType } from "../user/commands/CommandDefiner";
import { Process } from "./Process";
/**
* App Session = Input + Process + Ouput + Logger.
* One session -> process1 + process2 + ... -> stage1... | 6 |
gkfat/logicard-duel | 94e51f2 | client/src/factory/index.ts | TypeScript | www.github.com/gkfat/logicard-duel/tree/main/client/src/factory/index.ts | https://raw.githubusercontent.com/gkfat/logicard-duel/94e51f2/client/src/factory/index.ts | gkfat/logicard-duel 94e51f2 client/src/factory/index.ts | true | 200 | 5,672 | import { CardTemplateList } from '@/data/card-templates';
import { CharacterTemplateList } from '@/data/character-templates';
import { EquipTemplateList } from '@/data/equip-templates';
import { enumCard } from '@/enums/card';
import { enumCharacter } from '@/enums/character';
import {
type enumEquip,
enumEquip... | 5 |
yunsii/vscode-links | 0346ec7 | src/commands/open/coding/helpers.test.ts | TypeScript | www.github.com/yunsii/vscode-links/tree/main/src/commands/open/coding/helpers.test.ts | https://raw.githubusercontent.com/yunsii/vscode-links/0346ec7/src/commands/open/coding/helpers.test.ts | yunsii/vscode-links 0346ec7 src/commands/open/coding/helpers.test.ts | true | 200 | 661 | import { describe, expect, it } from 'vitest'
import { parseCodingRepoUrl } from './helpers'
describe('parseCodingRepoUrl', () => {
[
{
name: 'SSH repo url',
input: 'git@e.coding.net:team/project/repo.git',
output: {
repo: 'repo',
project: 'project',
team: 'team',
... | 2 |
Industrial/c9-fbp | 3884f4b | src/json.ts | TypeScript | www.github.com/Industrial/c9-fbp/tree/main/src/json.ts | https://raw.githubusercontent.com/Industrial/c9-fbp/3884f4b/src/json.ts | Industrial/c9-fbp 3884f4b src/json.ts | true | 200 | 377 | import * as E from 'fp-ts/Either.ts'
import * as RA from 'fp-ts/ReadonlyArray.ts'
import * as fpjson from 'fp-ts/Json.ts'
import { pipe } from 'fp-ts/function.ts'
export const stringify = fpjson.stringify as <A>(a: A) => E.Either<Error, string>
export const stringifyReadonlyArrayE = <A>(a: ReadonlyArray<A>) =>
pipe... | 7 |
JoaoG250/saapie | 0985d77 | api/src/useCases/process/createProcessCategory/create-process-category.usecase.ts | TypeScript | www.github.com/JoaoG250/saapie/tree/main/api/src/useCases/process/createProcessCategory/create-process-category.usecase.ts | https://raw.githubusercontent.com/JoaoG250/saapie/0985d77/api/src/useCases/process/createProcessCategory/create-process-category.usecase.ts | JoaoG250/saapie 0985d77 api/src/useCases/process/createProcessCategory/create-process-category.usecase.ts | true | 200 | 2,019 | import * as yup from "yup";
import { ProcessCategory } from "@prisma/client";
import slugify from "slugify";
import { IntegrityError } from "../../../errors";
import { IProcessCategoryRepository, IUseCase } from "../../../interfaces";
import { CreateProcessCategoryDto } from "./create-process-category.dto";
export cla... | 0 |
SilverMarcs/KanbanCrew | be5350b | src/hooks/useTasks.ts | TypeScript | www.github.com/SilverMarcs/KanbanCrew/tree/main/src/hooks/useTasks.ts | https://raw.githubusercontent.com/SilverMarcs/KanbanCrew/be5350b/src/hooks/useTasks.ts | SilverMarcs/KanbanCrew be5350b src/hooks/useTasks.ts | true | 200 | 1,898 | import { useEffect, useState } from "react";
import {
collection,
onSnapshot,
getDoc,
DocumentReference,
} from "firebase/firestore";
import { db } from "@/lib/firebaseConfig";
import { Task } from "@/models/Task";
import { Member } from "@/models/Member";
export const useTasks = () => {
const [tasks, setTas... | 4 |
zo1lu/adventure-map | 2cc5046 | src/app/api/user/route.ts | TypeScript | www.github.com/zo1lu/adventure-map/tree/main/src/app/api/user/route.ts | https://raw.githubusercontent.com/zo1lu/adventure-map/2cc5046/src/app/api/user/route.ts | zo1lu/adventure-map 2cc5046 src/app/api/user/route.ts | true | 200 | 1,437 | import { getLikedMaps, getUserMaps, likedAMap, unLikeAMap } from "@/utils/models/userMapsModel"
import { NextRequest } from "next/server"
import { NextResponse as res } from 'next/server'
export async function GET(req:NextRequest){
try{
const user = req.nextUrl.searchParams.get('user')
const type =... | 3 |
anujparikh/leetcode-typescript-algo-practice | 3870b20 | src/randoms/employee-free-hours.ts | TypeScript | www.github.com/anujparikh/leetcode-typescript-algo-practice/tree/main/src/randoms/employee-free-hours.ts | https://raw.githubusercontent.com/anujparikh/leetcode-typescript-algo-practice/3870b20/src/randoms/employee-free-hours.ts | anujparikh/leetcode-typescript-algo-practice 3870b20 src/randoms/employee-free-hours.ts | true | 200 | 1,712 | // @ts-nocheck
/**
* https://leetcode.com/problems/employee-free-time/
*/
class Interval {
constructor(start, end) {
this.start = start;
this.end = end;
}
get_interval() {
return "[" + this.start + ", " + this.end + "]";
}
}
const find_employee_free_time = function (schedule) {
let result = []... | 1 |
Idea-Pool/id-application | b73a88e | application/src/schedule.ts | TypeScript | www.github.com/Idea-Pool/id-application/tree/main/application/src/schedule.ts | https://raw.githubusercontent.com/Idea-Pool/id-application/b73a88e/application/src/schedule.ts | Idea-Pool/id-application b73a88e application/src/schedule.ts | true | 200 | 1,729 | import { CHECK_INTERVAL, MAX_RETRY } from "./config";
export type ScheduledFunction = () => Promise<boolean> | boolean;
let id = 1;
export class Schedule {
private readonly maxRetry: number;
private readonly interval: number;
private fn: ScheduledFunction;
private timeout: NodeJS.Timeout;
private retries =... | 6 |
Natanael-bety/perry-planner | 180060a | src/modules/clienteEmpresa/cliente-empresa.controller.ts | TypeScript | www.github.com/Natanael-bety/perry-planner/tree/main/src/modules/clienteEmpresa/cliente-empresa.controller.ts | https://raw.githubusercontent.com/Natanael-bety/perry-planner/180060a/src/modules/clienteEmpresa/cliente-empresa.controller.ts | Natanael-bety/perry-planner 180060a src/modules/clienteEmpresa/cliente-empresa.controller.ts | true | 200 | 1,418 | import { Response, Request } from "express";
import { IParamsCreateClientCompany } from "./cliente-empresa.interfaces";
import { ClienteEmpresaService } from "./cliente-empresa.service";
import { handleError } from "../../helpers/utils";
export class ClienteEmpresaController {
private readonly clienteEmpresaService:... | 7 |
Melzr/CryptoMonitor | 8323dc8 | api/src/service/value.ts | TypeScript | www.github.com/Melzr/CryptoMonitor/tree/main/api/src/service/value.ts | https://raw.githubusercontent.com/Melzr/CryptoMonitor/8323dc8/api/src/service/value.ts | Melzr/CryptoMonitor 8323dc8 api/src/service/value.ts | true | 200 | 6,611 | import { DataManager } from "./dataManager";
import { VariableManager } from "./variableManager";
import { getBalance } from "./wallet";
export const ValidCallNames =
['==', 'DISTINCT', ">", "<", ">=", "<=", "NEGATE", "-", "/", "+", "*",
"MIN", "MAX", "AVERAGE", "STDDEV", "FIRST", "LAST", "NOT", "AND", "OR"]
... | 5 |
Daniel24BL/autoscloud | 65d0350 | Backend/Server/src/routes/fotoVehiculo.ts | TypeScript | www.github.com/Daniel24BL/autoscloud/tree/main/Backend/Server/src/routes/fotoVehiculo.ts | https://raw.githubusercontent.com/Daniel24BL/autoscloud/65d0350/Backend/Server/src/routes/fotoVehiculo.ts | Daniel24BL/autoscloud 65d0350 Backend/Server/src/routes/fotoVehiculo.ts | true | 200 | 1,145 | import { Router } from 'express'
import { check } from 'express-validator'
import upload from '../libs/multers'
import { FotoVehiculo } from '../controllers'
import funciones from '../middlewares'
import { obtenerfotoVehiculosPorIDVehiculo } from '../controllers/fotoVehiculo'
const {
obtenerfotoVehiculos,
ob... | 2 |
opendatalab/labelU-Kit | 4ba7c1c | packages/image/src/annotations/Point.annotation.ts | TypeScript | www.github.com/opendatalab/labelU-Kit/tree/main/packages/image/src/annotations/Point.annotation.ts | https://raw.githubusercontent.com/opendatalab/labelU-Kit/4ba7c1c/packages/image/src/annotations/Point.annotation.ts | opendatalab/labelU-Kit 4ba7c1c packages/image/src/annotations/Point.annotation.ts | true | 200 | 3,372 | import type { ILabel } from '@labelu/interface';
import Color from 'color';
import uid from '@/utils/uid';
import type { BasicImageAnnotation } from '../interface';
import type { AnnotationParams } from './Annotation';
import { Annotation } from './Annotation';
import { Point } from '../shapes/Point.shape';
import ty... | 0 |
japdev235/Time_Management | 2cc5aa0 | client/src/components/textfield/textfield.stories.ts | TypeScript | www.github.com/japdev235/Time_Management/tree/main/client/src/components/textfield/textfield.stories.ts | https://raw.githubusercontent.com/japdev235/Time_Management/2cc5aa0/client/src/components/textfield/textfield.stories.ts | japdev235/Time_Management 2cc5aa0 client/src/components/textfield/textfield.stories.ts | true | 200 | 368 | import { Meta, StoryObj } from "@storybook/react";
import { NormalTextField } from "./textfield";
type Story = StoryObj<typeof meta>;
const meta = { component: NormalTextField } satisfies Meta<
typeof NormalTextField
>;
export default meta;
export const Outlined: Story = {
args: {
label: "Outlined",
var... | 4 |
custom-app/minter-guru | 1018a23 | contracts/test/limit.ts | TypeScript | www.github.com/custom-app/minter-guru/tree/main/contracts/test/limit.ts | https://raw.githubusercontent.com/custom-app/minter-guru/1018a23/contracts/test/limit.ts | custom-app/minter-guru 1018a23 contracts/test/limit.ts | true | 200 | 3,699 | import { expect } from "chai";
import { ethers } from "hardhat";
import { BigNumber as BN, Signer } from "ethers";
// eslint-disable-next-line camelcase,node/no-missing-import
import {
MinterGuruCollectionsAccessToken,
// eslint-disable-next-line camelcase
MinterGuruCollectionsAccessToken__factory,
MinterGuruTo... | 1 |
N-DK/map_server_typescript | bf3f8ad | src/routes/api.ts | TypeScript | www.github.com/N-DK/map_server_typescript/tree/main/src/routes/api.ts | https://raw.githubusercontent.com/N-DK/map_server_typescript/bf3f8ad/src/routes/api.ts | N-DK/map_server_typescript bf3f8ad src/routes/api.ts | true | 200 | 381 | import { Router } from 'express';
import api from '../app/controllers/APIController';
import { cache } from '../middleware/cache';
const router = Router();
router.get('/interpreter', cache, api.getInterpreter);
router.post('/interpreter/create', api.createInterpreter);
router.put('/interpreter/update', api.updateInter... | 6 |
FMIjs/javascript-frameworks-2023 | 621bc9d | week12/fmi-exercise/src/app/add-todo/add-todo.component.ts | TypeScript | www.github.com/FMIjs/javascript-frameworks-2023/tree/main/week12/fmi-exercise/src/app/add-todo/add-todo.component.ts | https://raw.githubusercontent.com/FMIjs/javascript-frameworks-2023/621bc9d/week12/fmi-exercise/src/app/add-todo/add-todo.component.ts | FMIjs/javascript-frameworks-2023 621bc9d week12/fmi-exercise/src/app/add-todo/add-todo.component.ts | true | 200 | 479 | import { Component, EventEmitter, Output } from '@angular/core';
import { ITodo } from '../interfaces';
@Component({
selector: 'app-add-todo',
templateUrl: './add-todo.component.html',
styleUrls: ['./add-todo.component.scss']
})
export class AddTodoComponent {
@Output() addTodo = new EventEmitter<string>();
... | 3 |
gabrielpaval/full-stack-app | bd01eb0 | client/src/app/components/cars/car-modal/car-modal.component.ts | TypeScript | www.github.com/gabrielpaval/full-stack-app/tree/main/client/src/app/components/cars/car-modal/car-modal.component.ts | https://raw.githubusercontent.com/gabrielpaval/full-stack-app/bd01eb0/client/src/app/components/cars/car-modal/car-modal.component.ts | gabrielpaval/full-stack-app bd01eb0 client/src/app/components/cars/car-modal/car-modal.component.ts | true | 200 | 3,075 | import { Component, Input, OnInit } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import axios from 'axios';
import { NgxSpinnerService } from 'ngx-spinner';
import { ToastrService } from 'ngx-toastr';
import { Car } from 'src/app/interface/car';
@Component({
selector: 'app-car-m... | 7 |
nareshbhatia/next13-rendering-concepts | 5579e64 | apps/movie-magic/src/app/client-component-1/useMovies.ts | TypeScript | www.github.com/nareshbhatia/next13-rendering-concepts/tree/main/apps/movie-magic/src/app/client-component-1/useMovies.ts | https://raw.githubusercontent.com/nareshbhatia/next13-rendering-concepts/5579e64/apps/movie-magic/src/app/client-component-1/useMovies.ts | nareshbhatia/next13-rendering-concepts 5579e64 apps/movie-magic/src/app/client-component-1/useMovies.ts | true | 200 | 1,465 | import type { Movie } from '@/models';
import * as React from 'react';
/**
* Hook to fetch movies
*/
export function useMovies() {
// eslint-disable-next-line prefer-destructuring
const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL;
const url = `${NEXT_PUBLIC_API_URL}/top-10-movies`;
const failMessag... | 5 |
MrInanimated/pseudo-bp | 22f3ee5 | src/gameTypes/potables.ts | TypeScript | www.github.com/MrInanimated/pseudo-bp/tree/main/src/gameTypes/potables.ts | https://raw.githubusercontent.com/MrInanimated/pseudo-bp/22f3ee5/src/gameTypes/potables.ts | MrInanimated/pseudo-bp 22f3ee5 src/gameTypes/potables.ts | true | 200 | 27,225 | import { User, Actor, GenericRoom } from "./generic";
import { extend, wrapper } from "../utils";
import * as sqlite3 from "sqlite3";
sqlite3.verbose();
const db = new sqlite3.Database(__dirname + "/../misc/jeopardy.db");
const MAX_PLAYERS = 10;
const SECOND = 1000;
const RELEASE_TIMEOUT = 6 * SECOND;
const ANSWER_TIM... | 4 |
sr-2020/maps-n-magic | 57330b2 | packages/sr2020-mm-event-engine/src/domain/mm-spirit-interaction/playerMessage.ts | TypeScript | www.github.com/sr-2020/maps-n-magic/tree/main/packages/sr2020-mm-event-engine/src/domain/mm-spirit-interaction/playerMessage.ts | https://raw.githubusercontent.com/sr-2020/maps-n-magic/57330b2/packages/sr2020-mm-event-engine/src/domain/mm-spirit-interaction/playerMessage.ts | sr-2020/maps-n-magic 57330b2 packages/sr2020-mm-event-engine/src/domain/mm-spirit-interaction/playerMessage.ts | true | 200 | 749 | import Ajv, { JSONSchemaType } from "ajv";
export interface PlayerMessage {
id: string; // time
characterId: number;
messageBody: string;
spiritId: number;
spiritFractionId: number;
}
const ajv = new Ajv({
allErrors: true,
removeAdditional: true,
// useDefaults: true
});
const playerMessageSchema: JS... | 0 |
conneto/admin_web_v2 | 1deaeec | src/app/services/user-service/user.service.ts | TypeScript | www.github.com/conneto/admin_web_v2/tree/main/src/app/services/user-service/user.service.ts | https://raw.githubusercontent.com/conneto/admin_web_v2/1deaeec/src/app/services/user-service/user.service.ts | conneto/admin_web_v2 1deaeec src/app/services/user-service/user.service.ts | true | 200 | 1,855 | import { Injectable } from '@angular/core';
import { Constant } from 'src/app/constant/constant';
import { BaseResponse } from 'src/app/models/base-response/base-response';
import { DashboardApdater } from 'src/app/models/dashboard/dashboard.model';
import { UserAdapter } from 'src/app/models/user/user.model';
import {... | 6 |
yogeshrathi/demo | 3d161b5 | src/app/shared/shared.module.ts | TypeScript | www.github.com/yogeshrathi/demo/tree/main/src/app/shared/shared.module.ts | https://raw.githubusercontent.com/yogeshrathi/demo/3d161b5/src/app/shared/shared.module.ts | yogeshrathi/demo 3d161b5 src/app/shared/shared.module.ts | true | 200 | 358 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HeaderComponent } from './components/header/header.component';
const components = [HeaderComponent]
@NgModule({
declarations: [
...components
],
imports: [
CommonModule
],
exports: [
...components... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.