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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dmorfav/shopping | 5e2e9ac | src/app/HomeModule/components/toolbar/toolbar.component.spec.ts | TypeScript | www.github.com/dmorfav/shopping/tree/main/src/app/HomeModule/components/toolbar/toolbar.component.spec.ts | https://raw.githubusercontent.com/dmorfav/shopping/5e2e9ac/src/app/HomeModule/components/toolbar/toolbar.component.spec.ts | dmorfav/shopping 5e2e9ac src/app/HomeModule/components/toolbar/toolbar.component.spec.ts | true | 200 | 568 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ToolbarComponent } from './toolbar.component';
import {HttpClientModule} from "@angular/common/http";
describe('ToolbarComponent', () => {
let component: ComponentFixture<ToolbarComponent>;
beforeEach(() => {
TestBed.configureTesting... | 3 |
moonseer/church-planner-v2 | d83e0e5 | services/church-service/src/utils/apiResponse.ts | TypeScript | www.github.com/moonseer/church-planner-v2/tree/main/services/church-service/src/utils/apiResponse.ts | https://raw.githubusercontent.com/moonseer/church-planner-v2/d83e0e5/services/church-service/src/utils/apiResponse.ts | moonseer/church-planner-v2 d83e0e5 services/church-service/src/utils/apiResponse.ts | true | 200 | 2,438 | import { Response } from 'express';
/**
* ApiResponse - Utility class for standardized API responses
*
* This class provides static methods to format consistent API responses
* across the application with standard status codes and response formats.
*/
export class ApiResponse {
/**
* Success response - 200 ... | 2 |
Projeto-Full-Stack-Grupo-05/Projeto-Full-Stack-Grupo-05 | 2005088 | front/src/pages/RegisterPage/style.ts | TypeScript | www.github.com/Projeto-Full-Stack-Grupo-05/Projeto-Full-Stack-Grupo-05/tree/main/front/src/pages/RegisterPage/style.ts | https://raw.githubusercontent.com/Projeto-Full-Stack-Grupo-05/Projeto-Full-Stack-Grupo-05/2005088/front/src/pages/RegisterPage/style.ts | Projeto-Full-Stack-Grupo-05/Projeto-Full-Stack-Grupo-05 2005088 front/src/pages/RegisterPage/style.ts | true | 200 | 1,791 | import styled from "styled-components";
export const StyledLRegisterPage = styled.main`
display: flex;
flex-direction: column;
gap: 30px;
justify-content: center;
align-items: center;
background-color: #f1f3f5;
padding: 10px;
`;
export const StyledRegisterForm = styled.form`
display: flex;
flex-dir... | 1 |
TMaltseva/decision-making-tool | b9c2b21 | src/core/router.ts | TypeScript | www.github.com/TMaltseva/decision-making-tool/tree/main/src/core/router.ts | https://raw.githubusercontent.com/TMaltseva/decision-making-tool/b9c2b21/src/core/router.ts | TMaltseva/decision-making-tool b9c2b21 src/core/router.ts | true | 200 | 2,901 | import type { RouteDefinition } from '../types';
import type { BaseComponent } from './base-component';
import { clearElement } from '../utils/dom-utils';
export class Router {
private static instance: Router | null = null;
private routes: RouteDefinition[] = [];
private currentComponent: BaseComponent | null = ... | 4 |
RYOTA-F/tmp-nest-next-graphql | 31b569e | packages/backend/src/app.module.ts | TypeScript | www.github.com/RYOTA-F/tmp-nest-next-graphql/tree/main/packages/backend/src/app.module.ts | https://raw.githubusercontent.com/RYOTA-F/tmp-nest-next-graphql/31b569e/packages/backend/src/app.module.ts | RYOTA-F/tmp-nest-next-graphql 31b569e packages/backend/src/app.module.ts | true | 200 | 685 | import { Module } from '@nestjs/common'
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'
import { GraphQLModule } from '@nestjs/graphql'
import { join } from 'path'
import { ConnpassModule } from './modules/connpass/connpass.module'
import { TaskModule } from './modules/task/task.module'
import { Prism... | 3 |
cviccaro/jp6a2-shared | b9bfc95 | project/project.component.ts | TypeScript | www.github.com/cviccaro/jp6a2-shared/tree/main/project/project.component.ts | https://raw.githubusercontent.com/cviccaro/jp6a2-shared/b9bfc95/project/project.component.ts | cviccaro/jp6a2-shared b9bfc95 project/project.component.ts | true | 200 | 1,521 | import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { Subscription } from 'rxjs/Subscription';
import { Project } from './project';
import { ProjectService } from './project.service';
... | 0 |
rfcosta85/lista-de-exercicios | 3bf0484 | src/app/lista-de-exercicios/lista-de-exercicios-routing.module.ts | TypeScript | www.github.com/rfcosta85/lista-de-exercicios/tree/main/src/app/lista-de-exercicios/lista-de-exercicios-routing.module.ts | https://raw.githubusercontent.com/rfcosta85/lista-de-exercicios/3bf0484/src/app/lista-de-exercicios/lista-de-exercicios-routing.module.ts | rfcosta85/lista-de-exercicios 3bf0484 src/app/lista-de-exercicios/lista-de-exercicios-routing.module.ts | true | 200 | 405 | import { ListaDeExerciciosComponent } from './lista-de-exercicios.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
component: ListaDeExerciciosComponent,
},
];
@NgModule({
imports: [RouterModule.forChild(ro... | 6 |
VelislavP/peakmotion-front-end | 8537c6f | capacitor.config.ts | TypeScript | www.github.com/VelislavP/peakmotion-front-end/tree/main/capacitor.config.ts | https://raw.githubusercontent.com/VelislavP/peakmotion-front-end/8537c6f/capacitor.config.ts | VelislavP/peakmotion-front-end 8537c6f capacitor.config.ts | true | 200 | 538 | import type { CapacitorConfig } from '@capacitor/cli';
import { interval, repeat } from 'rxjs';
const config: CapacitorConfig = {
appId: 'com.peakmotion.runner',
appName: 'Peak Motion',
webDir: 'www',
server: {
androidScheme: "https",
allowNavigation: ["*"]
},
plugins: {
BackgroundRunner: {
... | 2 |
julian-vidal/coderhouse-entregable-clase46 | a56faa8 | src/product/product.dto.ts | TypeScript | www.github.com/julian-vidal/coderhouse-entregable-clase46/tree/main/src/product/product.dto.ts | https://raw.githubusercontent.com/julian-vidal/coderhouse-entregable-clase46/a56faa8/src/product/product.dto.ts | julian-vidal/coderhouse-entregable-clase46 a56faa8 src/product/product.dto.ts | true | 200 | 1,023 | import { ApiProperty } from '@nestjs/swagger';
import { buildSchema } from 'graphql';
export class ProductDTO {
@ApiProperty()
id: number;
@ApiProperty()
name: string;
@ApiProperty()
price: number;
@ApiProperty()
stock: number;
@ApiProperty()
picture?: string;
_id?: string;
}
export type CreateP... | 1 |
Tiran98/Surge_Dev_Task | 1d93f61 | backend/src/modules/user.module.ts | TypeScript | www.github.com/Tiran98/Surge_Dev_Task/tree/main/backend/src/modules/user.module.ts | https://raw.githubusercontent.com/Tiran98/Surge_Dev_Task/1d93f61/backend/src/modules/user.module.ts | Tiran98/Surge_Dev_Task 1d93f61 backend/src/modules/user.module.ts | true | 200 | 921 | import { Module } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { MongooseModule } from '@nestjs/mongoose';
import { UserController } from 'src/controllers/user.controller';
import { UserSchema } from 'src/models/user.schema';
import { UserService } from 'src/services/user.service';
import { S... | 4 |
JarneDel/Doran-Jarne-Tibo | b9ebae3 | packages/api/src/staff/staff.resolver.spec.ts | TypeScript | www.github.com/JarneDel/Doran-Jarne-Tibo/tree/main/packages/api/src/staff/staff.resolver.spec.ts | https://raw.githubusercontent.com/JarneDel/Doran-Jarne-Tibo/b9ebae3/packages/api/src/staff/staff.resolver.spec.ts | JarneDel/Doran-Jarne-Tibo b9ebae3 packages/api/src/staff/staff.resolver.spec.ts | true | 200 | 4,818 | import { Test, TestingModule } from '@nestjs/testing'
import { StaffResolver } from './staff.resolver'
import { StaffService } from './staff.service'
import { GroupsService } from 'src/groups/groups.service'
import { UsersService } from 'src/users/users.service'
import { UpdateStaffInputStub, createStaffInputStub, staf... | 2 |
Pipigai/ty_CV | 9270302 | src/router/index.ts | TypeScript | www.github.com/Pipigai/ty_CV/tree/main/src/router/index.ts | https://raw.githubusercontent.com/Pipigai/ty_CV/9270302/src/router/index.ts | Pipigai/ty_CV 9270302 src/router/index.ts | true | 200 | 787 | import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from '../components/HelloWorld.vue';
import Self from '../components/self.vue';
import Project from '../components/project.vue';
import Hobbies from '../components/hobbies.vue'
const routes: Array<RouteRecordRaw> = [
{
path:... | 6 |
ro18767/poject-angular | 4201fe3 | src/app/routes/cart/cart.component.ts | TypeScript | www.github.com/ro18767/poject-angular/tree/main/src/app/routes/cart/cart.component.ts | https://raw.githubusercontent.com/ro18767/poject-angular/4201fe3/src/app/routes/cart/cart.component.ts | ro18767/poject-angular 4201fe3 src/app/routes/cart/cart.component.ts | true | 200 | 1,895 | import { Component } from '@angular/core';
import { ProdctsService, Product } from 'src/app/sevice/prodcts.service';
import { CartService } from 'src/app/sevice/cart.service';
import { map, max } from 'rxjs';
@Component({
templateUrl: './cart.component.html',
styleUrls: ['./cart.component.scss']
})
export class Ca... | 3 |
tuvalframework/framework | 903a605 | graphics/src/drawing/drawing2D/HatchBrush.ts | TypeScript | www.github.com/tuvalframework/framework/tree/main/graphics/src/drawing/drawing2D/HatchBrush.ts | https://raw.githubusercontent.com/tuvalframework/framework/903a605/graphics/src/drawing/drawing2D/HatchBrush.ts | tuvalframework/framework 903a605 graphics/src/drawing/drawing2D/HatchBrush.ts | true | 200 | 45,965 | import { CGContext2D } from '@tuval/cg';
import { CGColor } from '@tuval/cg';
import { CGAffineTransform, CGPatternTiling } from '@tuval/cg';
import { CGRectangle, CGPattern, CGLineCap } from '@tuval/cg';
import { Brush } from "../Brush";
import { HatchStyle } from "./HatchStyle";
import { Graphics } from "../Graphics"... | 0 |
azgalordkg/terminal-app | 861bbb0 | src/hooks/useDirectories/useDirectories.ts | TypeScript | www.github.com/azgalordkg/terminal-app/tree/main/src/hooks/useDirectories/useDirectories.ts | https://raw.githubusercontent.com/azgalordkg/terminal-app/861bbb0/src/hooks/useDirectories/useDirectories.ts | azgalordkg/terminal-app 861bbb0 src/hooks/useDirectories/useDirectories.ts | true | 200 | 5,985 | import { useEffect, useMemo, useState } from 'react'
import { CommandLineHistoryObject } from 'types/command-line.ts'
import { useFileSystemContext, useInputValueContext } from 'context/hooks'
import { Directory } from 'types/file-system.ts'
import { generateId } from '@/utils'
import { INITIAL_DIRECTORY_HISTORY } from... | 1 |
thiagoigpereira/angular-test | be411ce | src/app/components/user-list.component.ts | TypeScript | www.github.com/thiagoigpereira/angular-test/tree/main/src/app/components/user-list.component.ts | https://raw.githubusercontent.com/thiagoigpereira/angular-test/be411ce/src/app/components/user-list.component.ts | thiagoigpereira/angular-test be411ce src/app/components/user-list.component.ts | true | 200 | 920 | import { Component, OnInit } from '@angular/core';
import { UserService } from '../services/user.service';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
@Component({
selector: 'app-user-list',
standalone: true,
imports: [CommonModule, FormsModule],
templateUrl:... | 4 |
3pleFly/coronadashboard-replicate | a2dc8f0 | src/app/shared/components/charts/test-results-chart/test-results-chart.component.ts | TypeScript | www.github.com/3pleFly/coronadashboard-replicate/tree/main/src/app/shared/components/charts/test-results-chart/test-results-chart.component.ts | https://raw.githubusercontent.com/3pleFly/coronadashboard-replicate/a2dc8f0/src/app/shared/components/charts/test-results-chart/test-results-chart.component.ts | 3pleFly/coronadashboard-replicate a2dc8f0 src/app/shared/components/charts/test-results-chart/test-results-chart.component.ts | true | 200 | 2,688 | import { AfterViewInit, Component, Input, OnInit } from '@angular/core';
import { Chart } from 'highcharts';
import * as Highcharts from 'highcharts';
import { DataApiService } from 'src/app/shared/services/data-api.service';
@Component({
selector: 'app-test-results-chart',
templateUrl: './test-results-chart.compo... | 3 |
suhasjavir/Angularapp | 3cb6080 | src/app/customer/customerlist/customerlist.component.ts | TypeScript | www.github.com/suhasjavir/Angularapp/tree/main/src/app/customer/customerlist/customerlist.component.ts | https://raw.githubusercontent.com/suhasjavir/Angularapp/3cb6080/src/app/customer/customerlist/customerlist.component.ts | suhasjavir/Angularapp 3cb6080 src/app/customer/customerlist/customerlist.component.ts | true | 200 | 513 | import { Component, OnInit } from '@angular/core';
import { RapidapiService } from 'src/app/services/rapidapi.service';
@Component({
selector: 'app-customerlist',
templateUrl: './customerlist.component.html',
styleUrls: ['./customerlist.component.css']
})
export class CustomerlistComponent implements OnInit {
... | 6 |
yanis900/web-scraper | dc6c07d | src/index.ts | TypeScript | www.github.com/yanis900/web-scraper/tree/main/src/index.ts | https://raw.githubusercontent.com/yanis900/web-scraper/dc6c07d/src/index.ts | yanis900/web-scraper dc6c07d src/index.ts | true | 200 | 1,213 | import puppeteer from "puppeteer";
const getCarData = async (url: string) => {
const browser = await puppeteer.launch({
// start Puppeteer session.
headless: true, // use visible browser
defaultViewport: null, // max out height and width
});
const page = await browser.newPage(); // new page in brows... | 0 |
WilliamBruce00/BookStore | dc07f0d | client/src/app/pipes/number-format.pipe.ts | TypeScript | www.github.com/WilliamBruce00/BookStore/tree/main/client/src/app/pipes/number-format.pipe.ts | https://raw.githubusercontent.com/WilliamBruce00/BookStore/dc07f0d/client/src/app/pipes/number-format.pipe.ts | WilliamBruce00/BookStore dc07f0d client/src/app/pipes/number-format.pipe.ts | true | 200 | 321 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'numberFormat',
standalone: true,
})
export class NumberFormatPipe implements PipeTransform {
transform(value: number): string {
let result: string = '';
if (value) {
result = value.toLocaleString();
}
return result;
}
}... | 2 |
beforedisappear/t1_homework | 4e030ee | src/types/cart.types.ts | TypeScript | www.github.com/beforedisappear/t1_homework/tree/main/src/types/cart.types.ts | https://raw.githubusercontent.com/beforedisappear/t1_homework/4e030ee/src/types/cart.types.ts | beforedisappear/t1_homework 4e030ee src/types/cart.types.ts | true | 200 | 371 | import { IShortProduct } from ".";
export interface ICart {
id: number;
products: IShortProduct[];
total: number;
discountedTotal: number;
userId: number;
totalProducts: number;
totalQuantity: number;
}
export interface ICartResponse {
carts: ICart[];
total: number;
skip: number;
limit: number;
... | 1 |
akul2203/ExamPortal | ac14bae | front/src/app/pages/admin/add-quizes/add-quizes.component.spec.ts | TypeScript | www.github.com/akul2203/ExamPortal/tree/main/front/src/app/pages/admin/add-quizes/add-quizes.component.spec.ts | https://raw.githubusercontent.com/akul2203/ExamPortal/ac14bae/front/src/app/pages/admin/add-quizes/add-quizes.component.spec.ts | akul2203/ExamPortal ac14bae front/src/app/pages/admin/add-quizes/add-quizes.component.spec.ts | true | 200 | 581 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AddQuizesComponent } from './add-quizes.component';
describe('AddQuizesComponent', () => {
let component: AddQuizesComponent;
let fixture: ComponentFixture<AddQuizesComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
... | 0 |
EdsonVladimir/brakind-bad | 18a81a5 | frontend/src/app/modules/home/home.module.ts | TypeScript | www.github.com/EdsonVladimir/brakind-bad/tree/main/frontend/src/app/modules/home/home.module.ts | https://raw.githubusercontent.com/EdsonVladimir/brakind-bad/18a81a5/frontend/src/app/modules/home/home.module.ts | EdsonVladimir/brakind-bad 18a81a5 frontend/src/app/modules/home/home.module.ts | true | 200 | 443 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InicioComponent } from './pages/inicio/inicio.component';
import {HomeRoutingModule} from "@modules/home/home-routing.module";
import { SharedModule } from '@shared/shared.module';
@NgModule({
declarations: [
Inic... | 6 |
bytedance/mona | 4dbd710 | packages/mona-manager-plugins/mona-cli-commands/src/__tests__/utils/package.test.ts | TypeScript | www.github.com/bytedance/mona/tree/main/packages/mona-manager-plugins/mona-cli-commands/src/__tests__/utils/package.test.ts | https://raw.githubusercontent.com/bytedance/mona/4dbd710/packages/mona-manager-plugins/mona-cli-commands/src/__tests__/utils/package.test.ts | bytedance/mona 4dbd710 packages/mona-manager-plugins/mona-cli-commands/src/__tests__/utils/package.test.ts | true | 200 | 618 | import { getPkgPublicName, getPkgName, getPkgVersion } from '../../update/utils/package';
import { join } from 'path';
import semver from 'semver';
import fse from 'fs-extra';
const pkgDirname = join(__dirname, '../../../package.json');
test('pkgName', () => {
const pkgJson = fse.readFileSync(pkgDirname, 'utf8');
... | 3 |
SergeyMyronenko/goit-typescript-hw-02 | d820b4f | src/baseTypes/7.ts | TypeScript | www.github.com/SergeyMyronenko/goit-typescript-hw-02/tree/main/src/baseTypes/7.ts | https://raw.githubusercontent.com/SergeyMyronenko/goit-typescript-hw-02/d820b4f/src/baseTypes/7.ts | SergeyMyronenko/goit-typescript-hw-02 d820b4f src/baseTypes/7.ts | true | 200 | 493 | /*
Створіть функцію (isWeekend), яка приймає день тижня (з вашого enum)
і повертає boolean значення, що вказує, чи це день робочий чи вихідний.
*/
enum WeekDay {
Mon = "Monday",
Tue = "Tuesday",
Wed = "Wednesday",
Thu = "Thursday",
Fri = "Friday",
Sat = "Saturday",
Sun = "Sunday",
}
function isWeeken... | 2 |
renanfranca/mamazinha-gateway | 951b868 | src/main/webapp/app/entities/baby/nap/route/nap-routing-resolve.service.ts | TypeScript | www.github.com/renanfranca/mamazinha-gateway/tree/main/src/main/webapp/app/entities/baby/nap/route/nap-routing-resolve.service.ts | https://raw.githubusercontent.com/renanfranca/mamazinha-gateway/951b868/src/main/webapp/app/entities/baby/nap/route/nap-routing-resolve.service.ts | renanfranca/mamazinha-gateway 951b868 src/main/webapp/app/entities/baby/nap/route/nap-routing-resolve.service.ts | true | 200 | 969 | import { Injectable } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { Resolve, ActivatedRouteSnapshot, Router } from '@angular/router';
import { Observable, of, EMPTY } from 'rxjs';
import { mergeMap } from 'rxjs/operators';
import { INap, Nap } from '../nap.model';
import { NapServ... | 4 |
shosatojp/gakumu2ical | 51b6204 | src/app/app.module.ts | TypeScript | www.github.com/shosatojp/gakumu2ical/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/shosatojp/gakumu2ical/51b6204/src/app/app.module.ts | shosatojp/gakumu2ical 51b6204 src/app/app.module.ts | true | 200 | 1,025 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatInputModule } from '@angular/mat... | 1 |
MarcosMeloTI/ToDoList | e5411ab | src/pages/Home/style.ts | TypeScript | www.github.com/MarcosMeloTI/ToDoList/tree/main/src/pages/Home/style.ts | https://raw.githubusercontent.com/MarcosMeloTI/ToDoList/e5411ab/src/pages/Home/style.ts | MarcosMeloTI/ToDoList e5411ab src/pages/Home/style.ts | true | 200 | 279 | import styled from 'styled-components'
export const HomeContainer = styled.div`
min-height: 100vh;
min-width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
overflow-x: hidden;
background-color: ${({ theme }) => theme.colors['gray-600']};
`
| 0 |
adhamito/SMARTER | c824067 | smarter-serve/src/game/games.service.ts | TypeScript | www.github.com/adhamito/SMARTER/tree/main/smarter-serve/src/game/games.service.ts | https://raw.githubusercontent.com/adhamito/SMARTER/c824067/smarter-serve/src/game/games.service.ts | adhamito/SMARTER c824067 smarter-serve/src/game/games.service.ts | true | 200 | 570 | import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Game } from './game.entity';
@Injectable()
export class GamesService {
constructor(
@InjectRepository(Game)
private readonly gameRepository: Repository<Game>,
) {}... | 6 |
AlexandreSalim/Tela-Inicial-do-youtube | d193d18 | src/app/app.module.ts | TypeScript | www.github.com/AlexandreSalim/Tela-Inicial-do-youtube/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/AlexandreSalim/Tela-Inicial-do-youtube/d193d18/src/app/app.module.ts | AlexandreSalim/Tela-Inicial-do-youtube d193d18 src/app/app.module.ts | true | 200 | 673 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import {MatIconModule} from ... | 3 |
unmeshkadam/foods-website | 9560309 | src/config/themeConfig/index.ts | TypeScript | www.github.com/unmeshkadam/foods-website/tree/main/src/config/themeConfig/index.ts | https://raw.githubusercontent.com/unmeshkadam/foods-website/9560309/src/config/themeConfig/index.ts | unmeshkadam/foods-website 9560309 src/config/themeConfig/index.ts | true | 200 | 480 | import { Theme } from "@mui/material";
import { createTheme } from "@mui/material/styles";
// A custom theme for this app
const theme: Theme = createTheme({
palette: {
primary: {
main: "#db2a2a",
},
secondary: {
main: "#ff6d00",
},
},
typography: {
fontFamily: "'Nunito', sans-seri... | 2 |
Mulder8vidas/ExpoEmprende | 358a4fd | src/app/pages/home/home.component.ts | TypeScript | www.github.com/Mulder8vidas/ExpoEmprende/tree/main/src/app/pages/home/home.component.ts | https://raw.githubusercontent.com/Mulder8vidas/ExpoEmprende/358a4fd/src/app/pages/home/home.component.ts | Mulder8vidas/ExpoEmprende 358a4fd src/app/pages/home/home.component.ts | true | 200 | 1,585 | import {Component, OnInit} from '@angular/core';
import {Router, RouterLink} from '@angular/router';
import {Button, ButtonModule} from 'primeng/button';
import {CarouselModule} from 'primeng/carousel';
import {TagModule} from 'primeng/tag';
@Component({
selector: 'app-home',
standalone: true,
imports: [Carousel... | 7 |
seojisoosoo/ts-study-inflearn | 2f3b637 | fifth.ts | TypeScript | www.github.com/seojisoosoo/ts-study-inflearn/tree/main/fifth.ts | https://raw.githubusercontent.com/seojisoosoo/ts-study-inflearn/2f3b637/fifth.ts | seojisoosoo/ts-study-inflearn 2f3b637 fifth.ts | true | 200 | 1,204 | //Partial 타입 분석
//utility types
//객체 조작시에 유용하다
interface Profile {
name:string,
age:number,
married:boolean,
}
const jisoo:Profile={
name:'jisoo',
age:24,
married:false,
}
//Partial 기능은 뒤의 Profile을 다 optional로 만들어주는 기능
const newJisoo:Partial<Profile>={
name:'jisoosoo',
age:24,
}
//Pic... | 4 |
kokoro-hart/expo-starter | c18359e | src/features/example/api/index.ts | TypeScript | www.github.com/kokoro-hart/expo-starter/tree/main/src/features/example/api/index.ts | https://raw.githubusercontent.com/kokoro-hart/expo-starter/c18359e/src/features/example/api/index.ts | kokoro-hart/expo-starter c18359e src/features/example/api/index.ts | true | 200 | 499 | import { useSuspenseQuery } from "@tanstack/react-query";
import { QueryConfig, axios } from "@/libs";
import { GetExamplesResponse } from "../types";
function getExamples(): Promise<GetExamplesResponse> {
return axios.get(`/posts`);
}
type UseGetExamplesOptions = {
config?: QueryConfig<typeof getExamples>;
};
... | 1 |
cristiana214/nestjs-drizzle-posgresql-api | a36de36 | src/subjects/subject.entity.ts | TypeScript | www.github.com/cristiana214/nestjs-drizzle-posgresql-api/tree/main/src/subjects/subject.entity.ts | https://raw.githubusercontent.com/cristiana214/nestjs-drizzle-posgresql-api/a36de36/src/subjects/subject.entity.ts | cristiana214/nestjs-drizzle-posgresql-api a36de36 src/subjects/subject.entity.ts | true | 200 | 315 | export class Subject {
id: number;
title: string;
url: string;
image: string | null;
content: string | null;
description: string;
seoActive: boolean | null;
seoTitle: string | null;
seoDesc: string | null;
active: boolean | null;
createdAt: Date | null;
updatedAt: Date | null;
}
| 0 |
dallinja/aoc-ts-2023 | 6cd5089 | src/day07/part1.ts | TypeScript | www.github.com/dallinja/aoc-ts-2023/tree/main/src/day07/part1.ts | https://raw.githubusercontent.com/dallinja/aoc-ts-2023/6cd5089/src/day07/part1.ts | dallinja/aoc-ts-2023 6cd5089 src/day07/part1.ts | true | 200 | 1,966 | import { parseInput } from "../util";
const rawInput = parseInput({ split: { mapper: false } });
type Type =
| "fiveOfAKind"
| "fourOfAKind"
| "fullHouse"
| "threeOfAKind"
| "twoPair"
| "onePair"
| "highCard";
const rank = {
fiveOfAKind: 1,
fourOfAKind: 2,
fullHouse: 3,
threeOfAKind: 4,
twoPa... | 6 |
DGU-SKLog/SKLog-Frontend | 84eee56 | src/pages/CommonSections/HeaderSection/styled.ts | TypeScript | www.github.com/DGU-SKLog/SKLog-Frontend/tree/main/src/pages/CommonSections/HeaderSection/styled.ts | https://raw.githubusercontent.com/DGU-SKLog/SKLog-Frontend/84eee56/src/pages/CommonSections/HeaderSection/styled.ts | DGU-SKLog/SKLog-Frontend 84eee56 src/pages/CommonSections/HeaderSection/styled.ts | true | 200 | 1,947 | import { HEADER_HEIGHT, HEADER_MAX_WIDTH, HEADER_MIN_WIDTH } from 'constants/layout'
import styled from 'styled-components'
import yellowCircle from 'assets/images/yellow_circle.png'
import { COLOR_ORANGE } from 'constants/color'
export const Root = styled.div`
position: fixed;
left: 50%;
top: 0;
transform: tra... | 3 |
eythaann/flag-shaper | 298a2b8 | src/modules/objects/infrastructure.d.ts | TypeScript | www.github.com/eythaann/flag-shaper/tree/main/src/modules/objects/infrastructure.d.ts | https://raw.githubusercontent.com/eythaann/flag-shaper/298a2b8/src/modules/objects/infrastructure.d.ts | eythaann/flag-shaper 298a2b8 src/modules/objects/infrastructure.d.ts | true | 200 | 606 | import { ObjectBuilder } from './builder/infrastructure';
import { BaseFlagger } from '../shared/BaseFlagger/app';
import { customExtract } from './app';
import { DUnionKey } from '../shared/domain/constants';
import { AllowedFlags } from '../shared/domain/interfaces';
export declare class FlagShaperForObjects<Flag ... | 7 |
Edqe14/sevima-cardify | a5d0a12 | src/pages/api/collection/[id]/item/reorder.ts | TypeScript | www.github.com/Edqe14/sevima-cardify/tree/main/src/pages/api/collection/[id]/item/reorder.ts | https://raw.githubusercontent.com/Edqe14/sevima-cardify/a5d0a12/src/pages/api/collection/%5Bid%5D/item/reorder.ts | Edqe14/sevima-cardify a5d0a12 src/pages/api/collection/[id]/item/reorder.ts | true | 200 | 1,546 | import { type DefaultResponse, createApiRouter } from '@/lib/api';
import { authenticated } from '@/lib/middlewares/authenticated';
import { prisma } from '@/lib/prisma';
import type { Item } from '@prisma/client';
import { z } from 'zod';
const { router, handle } = createApiRouter<DefaultResponse<Item>>();
export co... | 2 |
fboes/formwerk | 7d9492e | types/components/FormwerkCheckboxes.d.ts | TypeScript | www.github.com/fboes/formwerk/tree/main/types/components/FormwerkCheckboxes.d.ts | https://raw.githubusercontent.com/fboes/formwerk/7d9492e/types/components/FormwerkCheckboxes.d.ts | fboes/formwerk 7d9492e types/components/FormwerkCheckboxes.d.ts | true | 200 | 453 | import { FormwerkElement } from "./FormwerkElement.js";
/**
* Creates an enhanced `<input type="checkbox">` or `<input type="radio">`
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
*/
export declare class FormwerkCheckboxes extends FormwerkElement {
formGroup: HTMLDivElement | null;
c... | 4 |
caffeinated-pixels/retrofix-nextjs | f9ff1f5 | src/components/shared/navbar/styled.ts | TypeScript | www.github.com/caffeinated-pixels/retrofix-nextjs/tree/main/src/components/shared/navbar/styled.ts | https://raw.githubusercontent.com/caffeinated-pixels/retrofix-nextjs/f9ff1f5/src/components/shared/navbar/styled.ts | caffeinated-pixels/retrofix-nextjs f9ff1f5 src/components/shared/navbar/styled.ts | true | 200 | 347 | import styled from 'styled-components'
export const NavContainer = styled.nav`
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
padding: 1.75em 5% 0;
max-width: 1920px;
@media (min-width: 550px) {
padding: 1.75em 45px 0;
}
@media (min-width: 950px) {
paddi... | 1 |
minhthanh120/DemoTK2 | 6921efe | src/main.ts | TypeScript | www.github.com/minhthanh120/DemoTK2/tree/main/src/main.ts | https://raw.githubusercontent.com/minhthanh120/DemoTK2/6921efe/src/main.ts | minhthanh120/DemoTK2 6921efe src/main.ts | true | 200 | 999 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { mapper } from './mappings/mapper';
import { Product } from './entity/product.entity';
import { ProductDTO } from './dto/product.dto';
import { createMap } from '@automapper/core';
import { DocumentBuilder, SwaggerModule } fro... | 0 |
TrevorClute/OneHundredNotes | 484bb41 | server/src/note/note.gateway.ts | TypeScript | www.github.com/TrevorClute/OneHundredNotes/tree/main/server/src/note/note.gateway.ts | https://raw.githubusercontent.com/TrevorClute/OneHundredNotes/484bb41/server/src/note/note.gateway.ts | TrevorClute/OneHundredNotes 484bb41 server/src/note/note.gateway.ts | true | 200 | 1,266 | import {
BadRequestException,
UseFilters,
UseGuards,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import {
BaseWsExceptionFilter,
MessageBody,
SubscribeMessage,
WebSocketGateway,
WebSocketServer,
WsException,
} from '@nestjs/websockets';
import { Server } from 'socket.io';
import { Note } fr... | 6 |
note-pad-app/note-pad-api | 10c8b2e | tests/functional/profile/update.spec.ts | TypeScript | www.github.com/note-pad-app/note-pad-api/tree/main/tests/functional/profile/update.spec.ts | https://raw.githubusercontent.com/note-pad-app/note-pad-api/10c8b2e/tests/functional/profile/update.spec.ts | note-pad-app/note-pad-api 10c8b2e tests/functional/profile/update.spec.ts | true | 200 | 1,583 | import { test } from "@japa/runner";
import { UserFactory } from "#database/factories/user_factory";
import testUtils from "@adonisjs/core/services/test_utils";
test.group("user update", (group) => {
group.each.setup(() => testUtils.db().withGlobalTransaction());
test("user updating without any error", async ({ c... | 7 |
GregorLauritz/magic-mirror | 6091782 | backend/src/services/validators/parameter_validator.ts | TypeScript | www.github.com/GregorLauritz/magic-mirror/tree/main/backend/src/services/validators/parameter_validator.ts | https://raw.githubusercontent.com/GregorLauritz/magic-mirror/6091782/backend/src/services/validators/parameter_validator.ts | GregorLauritz/magic-mirror 6091782 backend/src/services/validators/parameter_validator.ts | true | 200 | 2,225 | import { NextFunction, Request, Response } from 'express';
import { ApiError } from 'models/api/api_error';
import { LOGGER } from 'services/loggers';
import { requestContainsParam, requestQueryContainsParam } from 'services/misc';
export enum EParamType {
query = 'query',
request = 'request',
}
export abstract c... | 3 |
p7-projekt/frontend | bfb573c | __tests__/integration/routes/api/delete-classroom/+server.test.ts | TypeScript | www.github.com/p7-projekt/frontend/tree/main/__tests__/integration/routes/api/delete-classroom/+server.test.ts | https://raw.githubusercontent.com/p7-projekt/frontend/bfb573c/__tests__/integration/routes/api/delete-classroom/%2Bserver.test.ts | p7-projekt/frontend bfb573c __tests__/integration/routes/api/delete-classroom/+server.test.ts | true | 200 | 4,948 | import { describe, it, expect, vi } from 'vitest';
import { POST } from '$src/routes/api/delete-classroom/+server';
import { fetchDeleteClassroom } from '$lib/fetchRequests';
const backendUrl = 'http://localhost:5015';
// Mock `fetchDeleteClassroom`
vi.mock('$lib/fetchRequests', () => ({
fetchDeleteClassroom: vi.fn(... | 2 |
gabyolivas/AngularCountryApp | e886a32 | src/app/countries/components/country-table/country-table.component.ts | TypeScript | www.github.com/gabyolivas/AngularCountryApp/tree/main/src/app/countries/components/country-table/country-table.component.ts | https://raw.githubusercontent.com/gabyolivas/AngularCountryApp/e886a32/src/app/countries/components/country-table/country-table.component.ts | gabyolivas/AngularCountryApp e886a32 src/app/countries/components/country-table/country-table.component.ts | true | 200 | 490 | import { Component, Input } from '@angular/core';
import { Country } from '../../interfaces/countries';
import { CountriesService } from '../../services/countries.service';
@Component({
selector: 'countries-table',
templateUrl: './country-table.component.html',
styleUrls: ['./country-table.component.css']
})
ex... | 4 |
newphoenix/dynamic-form | de69caa | src/app/components/dynamic/dynamic-file-input/dynamic-file-input.component.ts | TypeScript | www.github.com/newphoenix/dynamic-form/tree/main/src/app/components/dynamic/dynamic-file-input/dynamic-file-input.component.ts | https://raw.githubusercontent.com/newphoenix/dynamic-form/de69caa/src/app/components/dynamic/dynamic-file-input/dynamic-file-input.component.ts | newphoenix/dynamic-form de69caa src/app/components/dynamic/dynamic-file-input/dynamic-file-input.component.ts | true | 200 | 1,791 | import { Component, ElementRef, input, OnInit, output } from '@angular/core';
import { BaseComponent } from '../base/base.component';
import { FormControl, ValidationErrors } from '@angular/forms';
import { SpecialRuleError } from '../../../interfaces/special-rule-error';
import { FileOutput } from '../../../interfaces... | 1 |
recillagimson/SPV3PLUSFE | 5efbd39 | src/app/components/Dialog/Wrapper.ts | TypeScript | www.github.com/recillagimson/SPV3PLUSFE/tree/main/src/app/components/Dialog/Wrapper.ts | https://raw.githubusercontent.com/recillagimson/SPV3PLUSFE/5efbd39/src/app/components/Dialog/Wrapper.ts | recillagimson/SPV3PLUSFE 5efbd39 src/app/components/Dialog/Wrapper.ts | true | 200 | 1,796 | /**
* Wrapper for the dialog component
* this will have a fixed position on the page
*/
import styled from 'styled-components/macro';
import { StyleConstants } from 'styles/StyleConstants';
const sizes = {
xsmall: '320px',
small: '400px',
medium: '640px',
large: '960px',
xlarge: '80%',
};
type DialogWrap... | 0 |
gplassard/aws-tagging-metrics | 4972107 | src/stacks/TaggingMetricsStack.ts | TypeScript | www.github.com/gplassard/aws-tagging-metrics/tree/main/src/stacks/TaggingMetricsStack.ts | https://raw.githubusercontent.com/gplassard/aws-tagging-metrics/4972107/src/stacks/TaggingMetricsStack.ts | gplassard/aws-tagging-metrics 4972107 src/stacks/TaggingMetricsStack.ts | true | 200 | 1,565 | import path from 'path';
import { Duration, RemovalPolicy, Stack, StackProps } from 'aws-cdk-lib';
import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
import { Architecture } from 'aws-cdk-lib/aws-lambda';
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
import { LogGroup, RetentionDays } from... | 6 |
FUA26/naiera-nest | 0569724 | src/modules/user/dto/create-user-input.dto.ts | TypeScript | www.github.com/FUA26/naiera-nest/tree/main/src/modules/user/dto/create-user-input.dto.ts | https://raw.githubusercontent.com/FUA26/naiera-nest/0569724/src/modules/user/dto/create-user-input.dto.ts | FUA26/naiera-nest 0569724 src/modules/user/dto/create-user-input.dto.ts | true | 200 | 1,269 | import {
IsEmail,
IsNotEmpty,
IsOptional,
IsString,
IsNumber,
} from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateUserInputDto {
@IsNotEmpty()
@ApiProperty({ example: 'John', description: 'Nama depan pengguna' })
firstName: string;
@IsNotEmpty()
@ApiProperty... | 7 |
mdraley/dls-storybook | c0885dd | dist-stencil/types/components/arvest-nav-mainlink/arvest-nav-mainlink.d.ts | TypeScript | www.github.com/mdraley/dls-storybook/tree/main/dist-stencil/types/components/arvest-nav-mainlink/arvest-nav-mainlink.d.ts | https://raw.githubusercontent.com/mdraley/dls-storybook/c0885dd/dist-stencil/types/components/arvest-nav-mainlink/arvest-nav-mainlink.d.ts | mdraley/dls-storybook c0885dd dist-stencil/types/components/arvest-nav-mainlink/arvest-nav-mainlink.d.ts | true | 200 | 482 | import { FunctionalComponent } from '../../stencil-public-runtime';
import { Color } from '../../global/ts/enums';
export declare class ArvestNavMainlink {
/** If true, change to active styles */
isactive: boolean;
/** If true, change font colors for light mode */
islightmode: boolean;
mobile: boolean;
isun... | 5 |
jeslava10/equipmentControlSystemFront | 69f14f3 | src/app/pages/orders/orders.component.ts | TypeScript | www.github.com/jeslava10/equipmentControlSystemFront/tree/main/src/app/pages/orders/orders.component.ts | https://raw.githubusercontent.com/jeslava10/equipmentControlSystemFront/69f14f3/src/app/pages/orders/orders.component.ts | jeslava10/equipmentControlSystemFront 69f14f3 src/app/pages/orders/orders.component.ts | true | 200 | 3,894 | import { Component, OnInit } from '@angular/core';
import { ConfirmationService } from 'primeng/api';
import { MessageService } from 'primeng/api';
import { SchoolService } from 'src/app/services/school.service';
import { HttpHeaders, HttpClient } from '@angular/common/http';
import { environment } from 'src/environmen... | 3 |
joluj/medinfwiss2 | b160657 | apps/app/src/app/state/data.service.ts | TypeScript | www.github.com/joluj/medinfwiss2/tree/main/apps/app/src/app/state/data.service.ts | https://raw.githubusercontent.com/joluj/medinfwiss2/b160657/apps/app/src/app/state/data.service.ts | joluj/medinfwiss2 b160657 apps/app/src/app/state/data.service.ts | true | 200 | 614 | import { Injectable } from '@angular/core';
import { map, Observable, of, shareReplay } from 'rxjs';
import { Substrate, SubstratList, toSubstratList } from '../Substrate';
import {
createInteraktionsList,
Interaktionen,
InteraktionsList,
} from '../Interaktionen';
@Injectable({
providedIn: 'root',
})
export c... | 4 |
cardosobueno/angular-Interest | 4cdfc60 | src/main.ts | TypeScript | www.github.com/cardosobueno/angular-Interest/tree/main/src/main.ts | https://raw.githubusercontent.com/cardosobueno/angular-Interest/4cdfc60/src/main.ts | cardosobueno/angular-Interest 4cdfc60 src/main.ts | true | 200 | 594 | import 'zone.js/dist/zone';
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
bootstrapApplication,
platformBrowser,
} from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.... | 0 |
Sido7/Siddharth_Backend | 8795d01 | src/middleware/globalErrorHandler.middleware.ts | TypeScript | www.github.com/Sido7/Siddharth_Backend/tree/main/src/middleware/globalErrorHandler.middleware.ts | https://raw.githubusercontent.com/Sido7/Siddharth_Backend/8795d01/src/middleware/globalErrorHandler.middleware.ts | Sido7/Siddharth_Backend 8795d01 src/middleware/globalErrorHandler.middleware.ts | true | 200 | 1,377 | import { Request, Response, NextFunction } from "express";
import { BadRequestError } from "../exceptions/badRequest.error";
import { UnprocessableEntityError } from "../exceptions/validation.error";
import { PasswordValidationError } from "../exceptions/password.validation.error";
import { BaseException } from "../exc... | 6 |
AbrahamAN/simpli-muv | 1f7c32e | src/app/services/postCreateLead.ts | TypeScript | www.github.com/AbrahamAN/simpli-muv/tree/main/src/app/services/postCreateLead.ts | https://raw.githubusercontent.com/AbrahamAN/simpli-muv/1f7c32e/src/app/services/postCreateLead.ts | AbrahamAN/simpli-muv 1f7c32e src/app/services/postCreateLead.ts | true | 200 | 461 | import axios from "axios";
interface Contact {
firstname: string;
lastname: string;
email: string;
phone: string;
finace: boolean;
trade: boolean;
}
interface LeadData {
uuid: string;
accesories?: string[];
contact?: Contact;
}
export const createLead = async (data: LeadData) => {
try {
const... | 7 |
Modoufinance/healthyimc | da3bc3c | src/services/aiService.ts | TypeScript | www.github.com/Modoufinance/healthyimc/tree/main/src/services/aiService.ts | https://raw.githubusercontent.com/Modoufinance/healthyimc/da3bc3c/src/services/aiService.ts | Modoufinance/healthyimc da3bc3c src/services/aiService.ts | true | 200 | 2,147 | interface UserHealthData {
age: number;
gender?: string;
weight: number;
height: number;
activityLevel?: string;
medicalHistory?: string[];
targetBMI?: number;
}
export const getPersonalizedAdvice = (bmiData: { bmi: number; category: string }, userData: UserHealthData): string => {
let advice = "";
... | 2 |
Nismit/three-sketch | 177d1c1 | vite.config.ts | TypeScript | www.github.com/Nismit/three-sketch/tree/main/vite.config.ts | https://raw.githubusercontent.com/Nismit/three-sketch/177d1c1/vite.config.ts | Nismit/three-sketch 177d1c1 vite.config.ts | true | 200 | 477 | import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import glsl from "vite-plugin-glsl";
// https://vitejs.dev/config/
// ffmpeg.wasm needs to enable Corss-Origin
export default defineConfig({
server: {
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origi... | 5 |
trihannah/next.js-ecommerce-store | 769f8a8 | migrations/00001-insertProducts.ts | TypeScript | www.github.com/trihannah/next.js-ecommerce-store/tree/main/migrations/00001-insertProducts.ts | https://raw.githubusercontent.com/trihannah/next.js-ecommerce-store/769f8a8/migrations/00001-insertProducts.ts | trihannah/next.js-ecommerce-store 769f8a8 migrations/00001-insertProducts.ts | true | 200 | 1,052 | import { Sql } from 'postgres';
const products = [
{
id: 1,
name: 'Viennese teaset',
description: '',
price: 250.0,
image_url: '/images/Augarten_Teeservice.jpg',
},
{
id: 2,
name: 'Product2',
description: '',
price: 100.0,
image_url: '/images/Bluemchenservic... | 3 |
mekomsolutions/ozone-e2e-kh | a0a8a80 | e2e/tests/NCDConsultationForm.spec.ts | TypeScript | www.github.com/mekomsolutions/ozone-e2e-kh/tree/main/e2e/tests/NCDConsultationForm.spec.ts | https://raw.githubusercontent.com/mekomsolutions/ozone-e2e-kh/a0a8a80/e2e/tests/NCDConsultationForm.spec.ts | mekomsolutions/ozone-e2e-kh a0a8a80 e2e/tests/NCDConsultationForm.spec.ts | true | 200 | 15,666 | import { test, expect } from '@playwright/test';
import { OpenMRS } from '../utils/functions/openmrs';
import { delay } from '../utils/functions/openmrs';
let openmrs: OpenMRS;
test.beforeEach(async ({ page }) => {
const openmrs = new OpenMRS(page);
await openmrs.login();
await expect(page).toHaveURL(/.*home/)... | 4 |
Marvin-Silva/Your-Car-Your-Way | 77baf70 | chat-api-frontend/chat-web-application/src/app/service/auth/Connection.ts | TypeScript | www.github.com/Marvin-Silva/Your-Car-Your-Way/tree/main/chat-api-frontend/chat-web-application/src/app/service/auth/Connection.ts | https://raw.githubusercontent.com/Marvin-Silva/Your-Car-Your-Way/77baf70/chat-api-frontend/chat-web-application/src/app/service/auth/Connection.ts | Marvin-Silva/Your-Car-Your-Way 77baf70 chat-api-frontend/chat-web-application/src/app/service/auth/Connection.ts | true | 200 | 1,077 | import { HttpClient } from "@angular/common/http"
import { Injectable } from "@angular/core";
import { Observable } from "rxjs";
import { LoginRequest } from "../../interface/LoginRequest";
import { User } from "../../interface/User";
import { UserServiceInjection } from "../injection/UserService.injection";
@Injectab... | 0 |
Hemanthb/Bookstore-Frontend | 2bfbd2a | Bookstore/src/app/components/quick-view-book/quick-view-book.component.ts | TypeScript | www.github.com/Hemanthb/Bookstore-Frontend/tree/main/Bookstore/src/app/components/quick-view-book/quick-view-book.component.ts | https://raw.githubusercontent.com/Hemanthb/Bookstore-Frontend/2bfbd2a/Bookstore/src/app/components/quick-view-book/quick-view-book.component.ts | Hemanthb/Bookstore-Frontend 2bfbd2a Bookstore/src/app/components/quick-view-book/quick-view-book.component.ts | true | 200 | 841 | import { Component, OnInit, Input } from '@angular/core';
import { BookServiceService } from 'src/app/services/BookService/book-service.service';
@Component({
selector: 'app-quick-view-book',
templateUrl: './quick-view-book.component.html',
styleUrls: ['./quick-view-book.component.scss']
})
export class QuickView... | 6 |
yesyoo/catch-it | f5df5c1 | src/app/modules/public/board/board/board-user-panel/board-userpanel-any/board-userpanel-any.component.ts | TypeScript | www.github.com/yesyoo/catch-it/tree/main/src/app/modules/public/board/board/board-user-panel/board-userpanel-any/board-userpanel-any.component.ts | https://raw.githubusercontent.com/yesyoo/catch-it/f5df5c1/src/app/modules/public/board/board/board-user-panel/board-userpanel-any/board-userpanel-any.component.ts | yesyoo/catch-it f5df5c1 src/app/modules/public/board/board/board-user-panel/board-userpanel-any/board-userpanel-any.component.ts | true | 200 | 739 | import { Component, OnInit, Input } from '@angular/core';
import { BoardService } from 'src/app/services/board/board.service';
import { NavigationService } from 'src/app/services/navigation/navigation.service';
@Component({
selector: 'app-board-userpanel-any',
templateUrl: './board-userpanel-any.component.html',
... | 2 |
Ashok7887301699/tmsui | d7f2e3c | src/app/citymaster/services/citymaster-state.service.ts | TypeScript | www.github.com/Ashok7887301699/tmsui/tree/main/src/app/citymaster/services/citymaster-state.service.ts | https://raw.githubusercontent.com/Ashok7887301699/tmsui/d7f2e3c/src/app/citymaster/services/citymaster-state.service.ts | Ashok7887301699/tmsui d7f2e3c src/app/citymaster/services/citymaster-state.service.ts | true | 200 | 916 | import { Injectable } from "@angular/core";
import { BehaviorSubject } from "rxjs";
// Define a TypeScript interface for the state
interface CityMasterListState {
filters: any;
currentPage: number;
perPage: number;
selectedCityMasterId: number | null;
navigatedFromListView: boolean | null;
}
@Injectable({
... | 5 |
MuhmdAjeer/micro-e-t | 92cfd58 | products/src/services/publisher.service.ts | TypeScript | www.github.com/MuhmdAjeer/micro-e-t/tree/main/products/src/services/publisher.service.ts | https://raw.githubusercontent.com/MuhmdAjeer/micro-e-t/92cfd58/products/src/services/publisher.service.ts | MuhmdAjeer/micro-e-t 92cfd58 products/src/services/publisher.service.ts | true | 200 | 923 | import { Injectable } from '@nestjs/common';
import { Stan, connect } from 'node-nats-streaming';
@Injectable()
export class PublisherService {
private stan: Stan;
constructor() {
this.stan = this.initStan();
}
private initStan(): Stan {
const stan = connect('ticketing', 'products', {
url: 'nat... | 3 |
yranandika05/MyStudyAssist | 41530d6 | public/src/app/login/login.component.ts | TypeScript | www.github.com/yranandika05/MyStudyAssist/tree/main/public/src/app/login/login.component.ts | https://raw.githubusercontent.com/yranandika05/MyStudyAssist/41530d6/public/src/app/login/login.component.ts | yranandika05/MyStudyAssist 41530d6 public/src/app/login/login.component.ts | true | 200 | 3,006 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import {ApiService} from "../services/api.service";
import {SessionService} from "../services/session.service";
import {ModulesService} from "../services/modules.service";
import {ScoresService} from "../services/scores.service... | 4 |
jonasclaes/notmyproblem | 55cdb43 | src/routes/api/v1/notmyproblem/+server.ts | TypeScript | www.github.com/jonasclaes/notmyproblem/tree/main/src/routes/api/v1/notmyproblem/+server.ts | https://raw.githubusercontent.com/jonasclaes/notmyproblem/55cdb43/src/routes/api/v1/notmyproblem/%2Bserver.ts | jonasclaes/notmyproblem 55cdb43 src/routes/api/v1/notmyproblem/+server.ts | true | 200 | 1,752 | import { type AiTextGenerationOutput, type RoleScopedChatInput } from '@cloudflare/workers-types';
import type { RequestHandler } from './$types';
import { notMyProblemsTable } from '$lib/server/db/schema';
type AiTextGenerationOutputObject = {
response?: string;
tool_calls?: {
name: string;
arguments: unknown;
... | 0 |
AlinaKononova/Playwright_TS | 1cc1bb7 | pages/elementsPageTable.ts | TypeScript | www.github.com/AlinaKononova/Playwright_TS/tree/main/pages/elementsPageTable.ts | https://raw.githubusercontent.com/AlinaKononova/Playwright_TS/1cc1bb7/pages/elementsPageTable.ts | AlinaKononova/Playwright_TS 1cc1bb7 pages/elementsPageTable.ts | true | 200 | 1,915 | import { expect, type Locator, type Page } from '@playwright/test';
export class ElementsPageTable {
readonly page: Page;
readonly webTables: Locator;
readonly addButton: Locator;
readonly firstNameInput: Locator;
readonly lastNameInput: Locator;
readonly emailInput: Locator;
readonly ageI... | 7 |
sydevs/AtlasReact | 4a57c0a | src/types/registration.ts | TypeScript | www.github.com/sydevs/AtlasReact/tree/main/src/types/registration.ts | https://raw.githubusercontent.com/sydevs/AtlasReact/4a57c0a/src/types/registration.ts | sydevs/AtlasReact 4a57c0a src/types/registration.ts | true | 200 | 301 | import z from "zod"
export const RegistrationSchema = z.object({
startingAt: z.coerce.date(),
name: z.string().regex(/^[a-zA-ZÀ-ÖØ-öø-ÿ\-\s]{3,}$/),
email: z.string().email(),
questions: z.record(z.string()).optional(),
})
export type Registration = z.infer<typeof RegistrationSchema>
| 4 |
dopa322/proyectoLaravel | a35f6fa | ecommerce/src/app/app-routing.module.ts | TypeScript | www.github.com/dopa322/proyectoLaravel/tree/main/ecommerce/src/app/app-routing.module.ts | https://raw.githubusercontent.com/dopa322/proyectoLaravel/a35f6fa/ecommerce/src/app/app-routing.module.ts | dopa322/proyectoLaravel a35f6fa ecommerce/src/app/app-routing.module.ts | true | 200 | 719 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Route, RouterModule, Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
loadChildren: ()=> import("./modules/home/home.module").then(m => m.HomeModule),
},
{
path: 'auth',
... | 7 |
joseiltonjunior/portfolio | 5461a2b | src/components/Videos/Card/style.ts | TypeScript | www.github.com/joseiltonjunior/portfolio/tree/main/src/components/Videos/Card/style.ts | https://raw.githubusercontent.com/joseiltonjunior/portfolio/5461a2b/src/components/Videos/Card/style.ts | joseiltonjunior/portfolio 5461a2b src/components/Videos/Card/style.ts | true | 200 | 1,124 | import styled from 'styled-components'
export const Play = styled.div`
border: none;
height: 28.125rem;
iframe {
border: none;
}
@media (max-width: 900px) {
height: 15.625rem;
}
`
export const Container = styled.div`
border: 1px solid ${(props) => props.theme.colors.Dark_600};
overflow: hidd... | 0 |
kmakai/ContactsManager.API.ReactClient | 3c89392 | ContactsManager.API.ReactClient/Client/src/features/contactsSlice.ts | TypeScript | www.github.com/kmakai/ContactsManager.API.ReactClient/tree/main/ContactsManager.API.ReactClient/Client/src/features/contactsSlice.ts | https://raw.githubusercontent.com/kmakai/ContactsManager.API.ReactClient/3c89392/ContactsManager.API.ReactClient/Client/src/features/contactsSlice.ts | kmakai/ContactsManager.API.ReactClient 3c89392 ContactsManager.API.ReactClient/Client/src/features/contactsSlice.ts | true | 200 | 2,567 | import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import { RootState } from "./store";
import { ContactType } from "../types";
interface ContactsState {
contacts: ContactType[];
contact: ContactType | null;
}
const initialState: ContactsState = {
contacts: [],
contact: null,
};
export const g... | 0 |
PuenaruIonutMarian/HRNet | a175d6a | src/store/employeeSlice.ts | TypeScript | www.github.com/PuenaruIonutMarian/HRNet/tree/main/src/store/employeeSlice.ts | https://raw.githubusercontent.com/PuenaruIonutMarian/HRNet/a175d6a/src/store/employeeSlice.ts | PuenaruIonutMarian/HRNet a175d6a src/store/employeeSlice.ts | true | 200 | 2,352 | import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { Employee } from '../types/Employee';
/**
* Interface representing the state structure for the employees.
* @typedef {Object} EmployeeState
* @property {Employee[]} employees - Array of employees.
*/
export interface EmployeeState {
employee... | 7 |
khaledomari87/leetcode.com | 4e36838 | easy/543.diameter-of-binary-tree.ts | TypeScript | www.github.com/khaledomari87/leetcode.com/tree/main/easy/543.diameter-of-binary-tree.ts | https://raw.githubusercontent.com/khaledomari87/leetcode.com/4e36838/easy/543.diameter-of-binary-tree.ts | khaledomari87/leetcode.com 4e36838 easy/543.diameter-of-binary-tree.ts | true | 200 | 525 | // https://leetcode.com/problems/diameter-of-binary-tree/
import type TreeNode from '../assets/TreeNode.ts';
function diameterOfBinaryTree(root: TreeNode | null): number {
let output = 0;
const height = (node: TreeNode | null): number => {
if (!node) return 0;
const left = height(node.left);
... | 4 |
williansmprimo/projetos-estudo-fullstack | 380bbf3 | my_trello/front/src/app/app.routes.ts | TypeScript | www.github.com/williansmprimo/projetos-estudo-fullstack/tree/main/my_trello/front/src/app/app.routes.ts | https://raw.githubusercontent.com/williansmprimo/projetos-estudo-fullstack/380bbf3/my_trello/front/src/app/app.routes.ts | williansmprimo/projetos-estudo-fullstack 380bbf3 my_trello/front/src/app/app.routes.ts | true | 200 | 1,136 | import { Routes } from '@angular/router';
import { LoginCompoent } from './auth/components/login/login.component';
import { RegisterCompoent } from './auth/components/register/register.component';
import { HomeComponent } from './home/home.componet';
import { BoardsComponent } from './boards/boards.componet';
import { ... | 0 |
DanielMateosLab/fisio-hub | b493f91 | pages/api/users.ts | TypeScript | www.github.com/DanielMateosLab/fisio-hub/tree/main/pages/api/users.ts | https://raw.githubusercontent.com/DanielMateosLab/fisio-hub/b493f91/pages/api/users.ts | DanielMateosLab/fisio-hub b493f91 pages/api/users.ts | true | 200 | 2,309 | import nextConnect from 'next-connect'
import middleware from '../../server/middlewares/middleware'
import onError from '../../server/middlewares/onError'
import UsersDAO from '../../server/storage/usersDAO'
import { userServerValidationSchema } from '../../common/validation'
import { RequestHandler, ResponseBody } fro... | 7 |
TheBenjiNecessity/DotOhTwo_next_frontend | acb2464 | src/stories/components/Divider/Divider.stories.ts | TypeScript | www.github.com/TheBenjiNecessity/DotOhTwo_next_frontend/tree/main/src/stories/components/Divider/Divider.stories.ts | https://raw.githubusercontent.com/TheBenjiNecessity/DotOhTwo_next_frontend/acb2464/src/stories/components/Divider/Divider.stories.ts | TheBenjiNecessity/DotOhTwo_next_frontend acb2464 src/stories/components/Divider/Divider.stories.ts | true | 200 | 397 | import type { Meta, StoryObj } from "@storybook/react";
import Divider from "./Divider";
const meta = {
title: "Example/Divider",
component: Divider,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
argTypes: {},
} satisfies Meta<typeof Divider>;
export default meta;
type Stor... | 4 |
MarwenTh/My-First-Angular-Project | 1562364 | src/app/header/header.component.ts | TypeScript | www.github.com/MarwenTh/My-First-Angular-Project/tree/main/src/app/header/header.component.ts | https://raw.githubusercontent.com/MarwenTh/My-First-Angular-Project/1562364/src/app/header/header.component.ts | MarwenTh/My-First-Angular-Project 1562364 src/app/header/header.component.ts | true | 200 | 1,010 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css']
})
export class HeaderComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
a = "Why Mixpanel"
b = "Solutions"
c = "Re... | 0 |
OlympusDAO/cooler-loans-api | 097cca0 | apps/get/src/index.ts | TypeScript | www.github.com/OlympusDAO/cooler-loans-api/tree/main/apps/get/src/index.ts | https://raw.githubusercontent.com/OlympusDAO/cooler-loans-api/097cca0/apps/get/src/index.ts | OlympusDAO/cooler-loans-api 097cca0 apps/get/src/index.ts | true | 200 | 777 | import cors from "cors";
import express from "express";
import { handleGetCurrentSnapshot, handleGetEarliestSnapshot, handleGetSnapshots } from "./snapshots";
import { handleGetSnapshotsFirestore } from "./snapshotsV1";
const app = express();
// Allow cross-origin requests
app.use(cors({ origin: true }));
// Routes... | 4 |
RYOTA-F/reskilling-career | 27d3694 | src/clients/microCms/tags.client.ts | TypeScript | www.github.com/RYOTA-F/reskilling-career/tree/main/src/clients/microCms/tags.client.ts | https://raw.githubusercontent.com/RYOTA-F/reskilling-career/27d3694/src/clients/microCms/tags.client.ts | RYOTA-F/reskilling-career 27d3694 src/clients/microCms/tags.client.ts | true | 200 | 608 | import { ITag, ITagApiResponse } from '@/types/microCMS/microCmsTag.types'
import { API_HEADER } from './settings/clientMicroCms.const'
import { apiEndpoint } from './settings/clientMictoCms.endpoint'
export class MicroCmsClientTag {
/**
* タグ一覧取得
*/
getTags = async (): Promise<ITagApiResponse> => {
const... | 7 |
ccbyland/jhooks | 51f494b | packages/useThrottle/index.ts | TypeScript | www.github.com/ccbyland/jhooks/tree/main/packages/useThrottle/index.ts | https://raw.githubusercontent.com/ccbyland/jhooks/51f494b/packages/useThrottle/index.ts | ccbyland/jhooks 51f494b packages/useThrottle/index.ts | true | 200 | 1,116 | import { useCallback, useRef } from 'react';
import useLatest from '@jhooks/useLatest';
type noop = (...args: any[]) => any;
/**
*
* @manager 梅亚敏(meiyamin)
*
* 用来处理节流函数的Hook
*
* @example 基础用法
* ```typescript
* import useThrottle from "@jhooks/useThrottle";
*
* const handle = useThrottle(() => {
* console.... | 0 |
algavania/padi-seller-fe | f461eb0 | src/api/authApi.ts | TypeScript | www.github.com/algavania/padi-seller-fe/tree/main/src/api/authApi.ts | https://raw.githubusercontent.com/algavania/padi-seller-fe/f461eb0/src/api/authApi.ts | algavania/padi-seller-fe f461eb0 src/api/authApi.ts | true | 200 | 649 | import apiClient from "./apiClient";
const authEndpoint = "/auth";
export const register = async (email: string, password: string): Promise<{ token: string }> => {
const response = await apiClient.post<any>(`${authEndpoint}/register`, {
email: email,
password: password,
});
return response.data;
};
exp... | 7 |
ArielDRighi/Eventop-Backend | 7d0f599 | back/eventop/src/events/events.controller.ts | TypeScript | www.github.com/ArielDRighi/Eventop-Backend/tree/main/back/eventop/src/events/events.controller.ts | https://raw.githubusercontent.com/ArielDRighi/Eventop-Backend/7d0f599/back/eventop/src/events/events.controller.ts | ArielDRighi/Eventop-Backend 7d0f599 back/eventop/src/events/events.controller.ts | true | 200 | 5,302 | import {
Body,
Controller,
Get,
Param,
Post,
Delete,
Put,
HttpCode,
HttpStatus,
HttpException,
UseGuards,
UseInterceptors,
UploadedFile,
Query,
} from '@nestjs/common';
import { EventService } from './events.service';
import { CreateEventDto } from './dto/CreateEvent.dto';
import { UpdateEve... | 1 |
aimanMsys/Datapel-Mobile | 36e9f7b | src/app/pages/secure/complete-collect/complete-collect.page.ts | TypeScript | www.github.com/aimanMsys/Datapel-Mobile/tree/main/src/app/pages/secure/complete-collect/complete-collect.page.ts | https://raw.githubusercontent.com/aimanMsys/Datapel-Mobile/36e9f7b/src/app/pages/secure/complete-collect/complete-collect.page.ts | aimanMsys/Datapel-Mobile 36e9f7b src/app/pages/secure/complete-collect/complete-collect.page.ts | true | 200 | 647 | import { Component, OnInit } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-complete-collect',
templateUrl: './complete-collect.page.html',
styleUrls: ['./complete-collect.page.scss'],
})
export class CompleteCollectPage implements OnInit {
nextBox:b... | 0 |
DameGun/Excies | 693888c | src/components/Button/styles.ts | TypeScript | www.github.com/DameGun/Excies/tree/main/src/components/Button/styles.ts | https://raw.githubusercontent.com/DameGun/Excies/693888c/src/components/Button/styles.ts | DameGun/Excies 693888c src/components/Button/styles.ts | true | 200 | 1,000 | import type { PressableStateCallbackType } from 'react-native';
import { createStylesheet } from '@/helpers/createStylesheet';
import type { StylesObjectTypes } from '@/types/styles';
export const getStyles = createStylesheet(({ colors, constants }) => ({
buttonContainer: (isHaveIcon: boolean) => ({
gap: consta... | 7 |
jefferson-calmon/next-starter | 15e88c4 | src/middlewares/error.ts | TypeScript | www.github.com/jefferson-calmon/next-starter/tree/main/src/middlewares/error.ts | https://raw.githubusercontent.com/jefferson-calmon/next-starter/15e88c4/src/middlewares/error.ts | jefferson-calmon/next-starter 15e88c4 src/middlewares/error.ts | true | 200 | 852 | /* eslint-disable @typescript-eslint/no-explicit-any */
import { NextRequest } from 'next/server';
import { config } from 'codekit';
import { ZodError } from 'zod';
config();
export const withError = (
handler: (request: NextRequest, ...rest: any) => Promise<any>,
) => {
return async (request: NextRequest, ...rest... | 4 |
niktverd/kenguru-smart-pure | 05c5722 | pages/api/graphql.ts | TypeScript | www.github.com/niktverd/kenguru-smart-pure/tree/main/pages/api/graphql.ts | https://raw.githubusercontent.com/niktverd/kenguru-smart-pure/05c5722/pages/api/graphql.ts | niktverd/kenguru-smart-pure 05c5722 pages/api/graphql.ts | true | 200 | 304 | import { ApolloServer } from "apollo-server-micro";
import { schema } from "src/graphql/schema";
const server = new ApolloServer({ schema });
const handler = server.createHandler({ path: "/api/graphql" });
export const config = {
api: {
bodyParser: false,
},
};
export default handler; | 1 |
MayOwall/sticki | 62ab763 | types/molecule.d.ts | TypeScript | www.github.com/MayOwall/sticki/tree/main/types/molecule.d.ts | https://raw.githubusercontent.com/MayOwall/sticki/62ab763/types/molecule.d.ts | MayOwall/sticki 62ab763 types/molecule.d.ts | true | 200 | 373 | export interface ISignInputProps {
labelContent: string
alertContent: string
isAlertVisible: boolean
}
export interface IBoardStatusProps {
wholeBoardCount: number
onGoingBoardCount: number
completedBoardCount: number
}
export interface IBoardPreviewCardProps {
imageLink: string
title: string
date: ... | 0 |
escapingnetwork/pages | 6319484 | custom-backend-task.ts | TypeScript | www.github.com/escapingnetwork/pages/tree/main/custom-backend-task.ts | https://raw.githubusercontent.com/escapingnetwork/pages/6319484/custom-backend-task.ts | escapingnetwork/pages 6319484 custom-backend-task.ts | true | 200 | 816 | import kleur from 'kleur';
import svgCaptcha from 'svg-captcha';
import Path from 'path'
export async function environmentVariable(name) {
const result = process.env[name];
if (result) {
return result;
} else {
throw `No environment variable called ${kleur
.yellow()
.underline(name)}\n\nAvail... | 4 |
MateuszPilch/praca-inzynierska | 0a4ee0a | frontend/src/app/services/person/person-credits.service.ts | TypeScript | www.github.com/MateuszPilch/praca-inzynierska/tree/main/frontend/src/app/services/person/person-credits.service.ts | https://raw.githubusercontent.com/MateuszPilch/praca-inzynierska/0a4ee0a/frontend/src/app/services/person/person-credits.service.ts | MateuszPilch/praca-inzynierska 0a4ee0a frontend/src/app/services/person/person-credits.service.ts | true | 200 | 832 | import { HttpClient } from '@angular/common/http';
import { Injectable, inject } from '@angular/core';
import { ResolveFn, ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { PersonCredits } from '../../../../../shared/models/person/person-credits';
import { environment } from '... | 7 |
LirazGanon/bezefe-backend-react | 2cc6abf | src/classroom/classes.module.ts | TypeScript | www.github.com/LirazGanon/bezefe-backend-react/tree/main/src/classroom/classes.module.ts | https://raw.githubusercontent.com/LirazGanon/bezefe-backend-react/2cc6abf/src/classroom/classes.module.ts | LirazGanon/bezefe-backend-react 2cc6abf src/classroom/classes.module.ts | true | 200 | 482 | import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose/dist';
import { ClassroomScheme } from './classroom.model';
import { ClassroomService } from './classroom.service';
import { ClassroomsController } from './classes.controller';
@Module({
imports: [
MongooseModule.forFeature... | 1 |
AntonioGally/impacta-work | 5c30dc5 | test/Stack.ts | TypeScript | www.github.com/AntonioGally/impacta-work/tree/main/test/Stack.ts | https://raw.githubusercontent.com/AntonioGally/impacta-work/5c30dc5/test/Stack.ts | AntonioGally/impacta-work 5c30dc5 test/Stack.ts | true | 200 | 1,193 | export module Environment {
export class Member {
private __name__ = "Member";
id: number | undefined;
print() {
console.log("Id", this.id)
}
}
export class ExampleClass {
private __name__ = "ExampleClass";
mainId: number | undefined;
fi... | 0 |
rmaiersilldorff/standalone-components-example | d531bc3 | src/app/suche/suche-page/suche-page.component.ts | TypeScript | www.github.com/rmaiersilldorff/standalone-components-example/tree/main/src/app/suche/suche-page/suche-page.component.ts | https://raw.githubusercontent.com/rmaiersilldorff/standalone-components-example/d531bc3/src/app/suche/suche-page/suche-page.component.ts | rmaiersilldorff/standalone-components-example d531bc3 src/app/suche/suche-page/suche-page.component.ts | true | 200 | 1,595 | import {Component, OnInit} from '@angular/core';
import {ReiseService} from '../../reise/reise.service';
import {Reise} from '../../reise/models/common';
import {Observable} from 'rxjs';
import {first, startWith, switchMap} from 'rxjs/operators';
import {FormsModule, ReactiveFormsModule, FormControl} from '@angular/for... | 2 |
juanhiguita230960/angular-basicos | 9bb1124 | src/app/dbz/services/dbz.service.ts | TypeScript | www.github.com/juanhiguita230960/angular-basicos/tree/main/src/app/dbz/services/dbz.service.ts | https://raw.githubusercontent.com/juanhiguita230960/angular-basicos/9bb1124/src/app/dbz/services/dbz.service.ts | juanhiguita230960/angular-basicos 9bb1124 src/app/dbz/services/dbz.service.ts | true | 200 | 519 | import { Injectable } from '@angular/core'
import { Personaje } from '../interfaces/dbz.interfaces';
@Injectable()
export class DbzService {
private _personajes: Personaje[] = [
{
nombre: 'Goku',
poder: 500
},
{
nombre: 'Vegueta',
poder: 800
},
{
nombre: 'Gohan',
... | 6 |
saiteja-s5/stock-project-frontend | abe3ebe | src/app/components/fund-ag-grid/fund-ag-grid.component.spec.ts | TypeScript | www.github.com/saiteja-s5/stock-project-frontend/tree/main/src/app/components/fund-ag-grid/fund-ag-grid.component.spec.ts | https://raw.githubusercontent.com/saiteja-s5/stock-project-frontend/abe3ebe/src/app/components/fund-ag-grid/fund-ag-grid.component.spec.ts | saiteja-s5/stock-project-frontend abe3ebe src/app/components/fund-ag-grid/fund-ag-grid.component.spec.ts | true | 200 | 589 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FundAgGridComponent } from './fund-ag-grid.component';
describe('FundAgGridComponent', () => {
let component: FundAgGridComponent;
let fixture: ComponentFixture<FundAgGridComponent>;
beforeEach(() => {
TestBed.configureTestingModul... | 5 |
shshafin/CineScope-Server | 1f8f499 | src/app/modules/auth/auth.service.ts | TypeScript | www.github.com/shshafin/CineScope-Server/tree/main/src/app/modules/auth/auth.service.ts | https://raw.githubusercontent.com/shshafin/CineScope-Server/1f8f499/src/app/modules/auth/auth.service.ts | shshafin/CineScope-Server 1f8f499 src/app/modules/auth/auth.service.ts | true | 200 | 1,699 | import config from "../../config";
import { USER_Role } from "../user/user.const";
import { TUser } from "../user/user.interface";
import { User } from "../user/user.model";
import { TLoginUser } from "./auth.interface";
import { isPasswordMatched } from "./auth.utils";
import jwt from "jsonwebtoken";
//! register
con... | 3 |
rushadaev/Beauty | 9a6092e | nodejs-server/src/services/wildberriesService.ts | TypeScript | www.github.com/rushadaev/Beauty/tree/main/nodejs-server/src/services/wildberriesService.ts | https://raw.githubusercontent.com/rushadaev/Beauty/9a6092e/nodejs-server/src/services/wildberriesService.ts | rushadaev/Beauty 9a6092e nodejs-server/src/services/wildberriesService.ts | true | 200 | 7,080 | import path from 'path';
import fs from 'fs';
import axios, { AxiosResponse } from 'axios';
// Define the interfaces (if you need type safety)
interface StorageState {
cookies: { name: string; value: string }[];
origins: {
origin: string;
localStorage: { name: string; value: string }[];
}[]... | 4 |
doottoy/crypto_payment | 191af5e | src/__tests__/interfaces/modules.interface.ts | TypeScript | www.github.com/doottoy/crypto_payment/tree/main/src/__tests__/interfaces/modules.interface.ts | https://raw.githubusercontent.com/doottoy/crypto_payment/191af5e/src/__tests__/interfaces/modules.interface.ts | doottoy/crypto_payment 191af5e src/__tests__/interfaces/modules.interface.ts | true | 200 | 2,112 | /**
* Method to get the provider object.
*
* @returns An object with an optional `engine` property.
*/
export interface ClosableProvider {
provider?: {
engine?: {
stop(): void;
};
};
}
/**
* Parameters for monitoring and validating transaction confirmations.
*
* @property pro... | 7 |
RiskyRomero/valo-api | c392576 | tests/api.test.ts | TypeScript | www.github.com/RiskyRomero/valo-api/tree/main/tests/api.test.ts | https://raw.githubusercontent.com/RiskyRomero/valo-api/c392576/tests/api.test.ts | RiskyRomero/valo-api c392576 tests/api.test.ts | true | 200 | 1,118 | import VALOAPI, { IAccountDetails } from "../src/index";
import { assert } from "chai";
require('dotenv').config()
runTests();
function runTests() {
if (!process.env.TOKEN) {
return console.error("Token either not provided, is undefined, or null");
}
const valApi = new VALOAPI(process.env.TOKEN);
descr... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.