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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cryptofreedom/my-carmine | 2fad5f2 | src/redux/reducers/settings.ts | TypeScript | www.github.com/cryptofreedom/my-carmine/tree/main/src/redux/reducers/settings.ts | https://raw.githubusercontent.com/cryptofreedom/my-carmine/2fad5f2/src/redux/reducers/settings.ts | cryptofreedom/my-carmine 2fad5f2 src/redux/reducers/settings.ts | true | 200 | 695 | import {createSlice} from "@reduxjs/toolkit";
import {retriveSettings, storeSettings} from "../../utils/settings";
import {Settings} from "../../types/settings";
export const settings = createSlice({
name:"settings",
initialState:retriveSettings(),
reducers:{
updateSettingState:(state,action:{paylo... | 6 |
aacebo/agents-sdk-js | 69d1a6d | packages/web/src/app/pages/home/home.component.ts | TypeScript | www.github.com/aacebo/agents-sdk-js/tree/main/packages/web/src/app/pages/home/home.component.ts | https://raw.githubusercontent.com/aacebo/agents-sdk-js/69d1a6d/packages/web/src/app/pages/home/home.component.ts | aacebo/agents-sdk-js 69d1a6d packages/web/src/app/pages/home/home.component.ts | true | 200 | 2,495 | import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { BehaviorSubject } from 'rxjs';
import { AppSocket, MessageEvent } from '../../app.socket';
import { AppState } from '../../app.st... | 4 |
danluc/board-azure-sincronizar | e515ce0 | Back/APP/ClientApp/src/app/core/pipe/status-sincronizar.pipe.ts | TypeScript | www.github.com/danluc/board-azure-sincronizar/tree/main/Back/APP/ClientApp/src/app/core/pipe/status-sincronizar.pipe.ts | https://raw.githubusercontent.com/danluc/board-azure-sincronizar/e515ce0/Back/APP/ClientApp/src/app/core/pipe/status-sincronizar.pipe.ts | danluc/board-azure-sincronizar e515ce0 Back/APP/ClientApp/src/app/core/pipe/status-sincronizar.pipe.ts | true | 200 | 321 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: "SincStatus",
})
export class SincStatusPipe implements PipeTransform {
transform(valor: number): string {
if (valor == 1) {
return "PROCESSANDO";
}
if (valor == 2) {
return "CONCLUÍDO";
}
return "ERRO";
}
}
| 0 |
shubhamchopade/food-mood-nestjs | a5ed29e | src/feed/feed.module.ts | TypeScript | www.github.com/shubhamchopade/food-mood-nestjs/tree/main/src/feed/feed.module.ts | https://raw.githubusercontent.com/shubhamchopade/food-mood-nestjs/a5ed29e/src/feed/feed.module.ts | shubhamchopade/food-mood-nestjs a5ed29e src/feed/feed.module.ts | true | 200 | 432 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { FeedController } from './controllers/feed.controller';
import { FeedService } from './controllers/feed.service';
import { RecipeInfoEntity } from './models/recipe.entity';
@Module({
imports: [TypeOrmModule.forFeature([... | 7 |
minoong/market-web | 248c230 | src/features/counter/counterSlice.ts | TypeScript | www.github.com/minoong/market-web/tree/main/src/features/counter/counterSlice.ts | https://raw.githubusercontent.com/minoong/market-web/248c230/src/features/counter/counterSlice.ts | minoong/market-web 248c230 src/features/counter/counterSlice.ts | true | 200 | 613 | import { createSlice } from '@reduxjs/toolkit'
import type { PayloadAction } from '@reduxjs/toolkit'
export interface CounterState {
value: number
}
const initialState: CounterState = {
value: 0,
}
export const counterSlice = createSlice({
name: 'counter',
initialState,
reducers: {
increment: (state) => {
... | 1 |
nabatti99/dn-xanh-be | 2555d74 | src/modules/user/user.module.ts | TypeScript | www.github.com/nabatti99/dn-xanh-be/tree/main/src/modules/user/user.module.ts | https://raw.githubusercontent.com/nabatti99/dn-xanh-be/2555d74/src/modules/user/user.module.ts | nabatti99/dn-xanh-be 2555d74 src/modules/user/user.module.ts | true | 200 | 352 | import { Module } from "@nestjs/common";
import { UserController } from "./user.controller";
import { UserService } from "./user.service";
import { userRepository } from "./entities/user.entity";
@Module({
imports: [],
providers: [userRepository, UserService],
controllers: [UserController],
exports: []... | 2 |
Nito-90z/Nito-Frontend | cd9ca81 | src/app/api/product/[id]/route.ts | TypeScript | www.github.com/Nito-90z/Nito-Frontend/tree/main/src/app/api/product/[id]/route.ts | https://raw.githubusercontent.com/Nito-90z/Nito-Frontend/cd9ca81/src/app/api/product/%5Bid%5D/route.ts | Nito-90z/Nito-Frontend cd9ca81 src/app/api/product/[id]/route.ts | true | 200 | 748 | import { DEFAULT_ERROR_MESSAGE } from '@/constants';
import { getProduct } from '@/services/product';
import axios from 'axios';
import { NextRequest, NextResponse } from 'next/server';
type Context = {
params: {
id: string;
};
};
export async function GET(_: NextRequest, { params: { id } }: Context) {
try ... | 3 |
MatiasParentti/portfolio-ar-prog | 5b3ee92 | src/app/navbar/navbar.component.ts | TypeScript | www.github.com/MatiasParentti/portfolio-ar-prog/tree/main/src/app/navbar/navbar.component.ts | https://raw.githubusercontent.com/MatiasParentti/portfolio-ar-prog/5b3ee92/src/app/navbar/navbar.component.ts | MatiasParentti/portfolio-ar-prog 5b3ee92 src/app/navbar/navbar.component.ts | true | 200 | 1,117 | import { Component, OnInit, Input } from '@angular/core';
import { TokenService } from '../service/token.service';
import { ServDeleteService } from '../serv-delete.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navba... | 5 |
umi-labs/headless | 008a464 | packages/cli/src/commands/help.ts | TypeScript | www.github.com/umi-labs/headless/tree/main/packages/cli/src/commands/help.ts | https://raw.githubusercontent.com/umi-labs/headless/008a464/packages/cli/src/commands/help.ts | umi-labs/headless 008a464 packages/cli/src/commands/help.ts | true | 200 | 617 | export function help() {
console.log(`
Welcome to UMI CLI!
Available Commands:
1. init
Usage: umi init
Description: Initialises a new project with a configuration file.
2. add
Usage: umi add
Description: Adds components or other features to your... | 4 |
AkshatGKMit/templateRN | 6bb0522 | template/src/components/loadingView/styles.ts | TypeScript | www.github.com/AkshatGKMit/templateRN/tree/main/template/src/components/loadingView/styles.ts | https://raw.githubusercontent.com/AkshatGKMit/templateRN/6bb0522/template/src/components/loadingView/styles.ts | AkshatGKMit/templateRN 6bb0522 template/src/components/loadingView/styles.ts | true | 200 | 779 | import { createStyles, createThemedStyles } from '@config/useStyles';
import { FontSize } from '@themes';
import { colorWithOpacity } from '@utility/helpers';
const ThemedStyles = createThemedStyles((theme) => {
const { colors } = theme;
return createStyles({
loaderView: {
position: 'absolute',
to... | 6 |
jaypatel4k/skinet7 | c5838d3 | client/src/app/core/services/shop.service.ts | TypeScript | www.github.com/jaypatel4k/skinet7/tree/main/client/src/app/core/services/shop.service.ts | https://raw.githubusercontent.com/jaypatel4k/skinet7/c5838d3/client/src/app/core/services/shop.service.ts | jaypatel4k/skinet7 c5838d3 client/src/app/core/services/shop.service.ts | true | 200 | 1,649 | import { HttpClient, HttpParams } from '@angular/common/http';
import { inject, Injectable } from '@angular/core';
import { Pagination } from '../../models/pagination';
import { Product } from '../../models/product';
import { ShopParams } from '../../models/shopParams';
@Injectable({
providedIn: 'root'
})
export cla... | 7 |
Petersonwei/airbnb-clone-firebase-nextjs | a165a34 | app/admin-dashboard/new/actions.ts | TypeScript | www.github.com/Petersonwei/airbnb-clone-firebase-nextjs/tree/main/app/admin-dashboard/new/actions.ts | https://raw.githubusercontent.com/Petersonwei/airbnb-clone-firebase-nextjs/a165a34/app/admin-dashboard/new/actions.ts | Petersonwei/airbnb-clone-firebase-nextjs a165a34 app/admin-dashboard/new/actions.ts | true | 200 | 1,027 | "use server";
import { auth, firestore } from "@/firebase/server";
import { propertyDataSchema } from "@/validation/propertySchema";
import { z } from "zod";
export const createProperty = async (
data: {
address1: string;
address2?: string;
city: string;
postcode: string;
description: string;
... | 0 |
SofiyaKalynovska/BN | d276419 | frontend/tailwind.config.ts | TypeScript | www.github.com/SofiyaKalynovska/BN/tree/main/frontend/tailwind.config.ts | https://raw.githubusercontent.com/SofiyaKalynovska/BN/d276419/frontend/tailwind.config.ts | SofiyaKalynovska/BN d276419 frontend/tailwind.config.ts | true | 200 | 829 | import type { Config } from 'tailwindcss';
const config: Config = {
content: ['./src/**/*.{js,jsx,ts,tsx}', '../../shared/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
display: ['group-hover'],
visibility: ['group-hover'],
colors... | 1 |
vorakornvt/GardenofEden-Website | f23d007 | client/src/pages/auth/Dashboard.css.ts | TypeScript | www.github.com/vorakornvt/GardenofEden-Website/tree/main/client/src/pages/auth/Dashboard.css.ts | https://raw.githubusercontent.com/vorakornvt/GardenofEden-Website/f23d007/client/src/pages/auth/Dashboard.css.ts | vorakornvt/GardenofEden-Website f23d007 client/src/pages/auth/Dashboard.css.ts | true | 200 | 2,124 | import { style } from '@vanilla-extract/css';
import { vars } from '../../styles/themes.css';
export const cardContainer = style({
width: '35%',
textAlign: 'center',
margin: 'auto',
marginTop: '100px',
backgroundColor: vars.colors.primary,
padding: vars.space['3x'],
});
export const Avatar = style({
... | 2 |
Kate2111/React_searchGitHub | 804c26b | src/router/routes.ts | TypeScript | www.github.com/Kate2111/React_searchGitHub/tree/main/src/router/routes.ts | https://raw.githubusercontent.com/Kate2111/React_searchGitHub/804c26b/src/router/routes.ts | Kate2111/React_searchGitHub 804c26b src/router/routes.ts | true | 200 | 425 | import DetailPage from "@pages/DetailPage";
import MainPage from "@pages/MainPage";
export const AppRoutes = {
root: "/React_searchGitHub",
details: "/React_searchGitHub/detail",
};
interface RouteObject {
path: string;
element: React.ComponentType;
}
export const routes: RouteObject[] = [
{
path: AppRo... | 3 |
javhierralejandro/clara-challenge-ts | 1649225 | tests/steps/add_products_to_cart.steps.ts | TypeScript | www.github.com/javhierralejandro/clara-challenge-ts/tree/main/tests/steps/add_products_to_cart.steps.ts | https://raw.githubusercontent.com/javhierralejandro/clara-challenge-ts/1649225/tests/steps/add_products_to_cart.steps.ts | javhierralejandro/clara-challenge-ts 1649225 tests/steps/add_products_to_cart.steps.ts | true | 200 | 1,645 | import { expect } from '@wdio/globals';
import { Given, When, Then } from '@cucumber/cucumber';
import { CatalogPage } from '../pages/catalog.page';
import { ProductPage } from '../pages/product.page';
import Page from '../pages/page';
import { MenuPage } from '../pages/menu.page';
import { browser } from '@wdio/global... | 4 |
shm19/gist | 7ea92bb | src/users/user.controller.ts | TypeScript | www.github.com/shm19/gist/tree/main/src/users/user.controller.ts | https://raw.githubusercontent.com/shm19/gist/7ea92bb/src/users/user.controller.ts | shm19/gist 7ea92bb src/users/user.controller.ts | true | 200 | 2,223 | import {
Body,
Controller,
Delete,
Get,
HttpCode,
Param,
Patch,
Post,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { serialize } from '../interceptors/serialze.interceptor';
import { CreateUserDto } from './dtos/create-user.dto';
import { ... | 6 |
cathychoysm/google-calendar-clone | a64f481 | src/lib/auth.ts | TypeScript | www.github.com/cathychoysm/google-calendar-clone/tree/main/src/lib/auth.ts | https://raw.githubusercontent.com/cathychoysm/google-calendar-clone/a64f481/src/lib/auth.ts | cathychoysm/google-calendar-clone a64f481 src/lib/auth.ts | true | 200 | 3,362 | import { redirect } from "next/navigation";
import CredentialsProvider from "next-auth/providers/credentials";
import GoogleProvider from "next-auth/providers/google";
import { NextAuthOptions, getServerSession } from "next-auth";
import { User } from "next-auth";
import { compareHash } from "./bcrypt";
import { pris... | 0 |
kinderhead/botinator | 0075083 | src/command.ts | TypeScript | www.github.com/kinderhead/botinator/tree/main/src/command.ts | https://raw.githubusercontent.com/kinderhead/botinator/0075083/src/command.ts | kinderhead/botinator 0075083 src/command.ts | true | 200 | 1,625 | import { AutocompleteInteraction, CacheType, ChatInputCommandInteraction, SlashCommandBuilder, SlashCommandOptionsOnlyBuilder, SlashCommandSubcommandsOnlyBuilder } from "discord.js";
import { Bot } from "./bot.js";
import { Loggable } from "./logutils.js";
export type CommandBuilderTypes = SlashCommandBuilder | SlashC... | 1 |
matimartin/Cypress-Framework-TypeScript | e550409 | Cypress-Framework-TypeScript/cypress/helpers/sortingHelpers.ts | TypeScript | www.github.com/matimartin/Cypress-Framework-TypeScript/tree/main/Cypress-Framework-TypeScript/cypress/helpers/sortingHelpers.ts | https://raw.githubusercontent.com/matimartin/Cypress-Framework-TypeScript/e550409/Cypress-Framework-TypeScript/cypress/helpers/sortingHelpers.ts | matimartin/Cypress-Framework-TypeScript e550409 Cypress-Framework-TypeScript/cypress/helpers/sortingHelpers.ts | true | 200 | 4,195 | import { elementActions } from '@core/elementActions';
import { CovidUIEntity } from '@dto/CovidUIEntity';
import * as sortingData from '@fixtures/data/sortingData.json';
import { covidPage } from '@pageobjects/covidPage';
import { paginationComp } from 'cypress/component/paginationComp';
import { sortingComp } from 'c... | 2 |
johndevnoza/Ioane-Personal-Webiste | 0b59e0c | src/lib/filteredData.ts | TypeScript | www.github.com/johndevnoza/Ioane-Personal-Webiste/tree/main/src/lib/filteredData.ts | https://raw.githubusercontent.com/johndevnoza/Ioane-Personal-Webiste/0b59e0c/src/lib/filteredData.ts | johndevnoza/Ioane-Personal-Webiste 0b59e0c src/lib/filteredData.ts | true | 200 | 846 | import navLinks from "./constants";
import { scrollManagement } from "scrollManagement";
const filteredData = () => {
const scrollInside = scrollManagement((state) => state.scrollInside);
const navId = scrollManagement((state) => state.navId);
const elementId = scrollManagement((state) => state.elementId);
co... | 3 |
nicholan/vittles-app | 109ea1f | packages/app/src/hooks/useResponsiveLayout.ts | TypeScript | www.github.com/nicholan/vittles-app/tree/main/packages/app/src/hooks/useResponsiveLayout.ts | https://raw.githubusercontent.com/nicholan/vittles-app/109ea1f/packages/app/src/hooks/useResponsiveLayout.ts | nicholan/vittles-app 109ea1f packages/app/src/hooks/useResponsiveLayout.ts | true | 200 | 1,345 | import { BREAKPOINTS, CARDS, DRAWER, SIDEBAR } from "@vittles/ui";
import { Platform, useWindowDimensions } from "react-native";
export function useResponsiveLayout() {
const { width, height } = useWindowDimensions();
const isWeb = Platform.OS === "web";
// Large screen is defined by a width that can accommodate b... | 4 |
balaji4500/hr-management | 09c792b | src/app/login/login.component.ts | TypeScript | www.github.com/balaji4500/hr-management/tree/main/src/app/login/login.component.ts | https://raw.githubusercontent.com/balaji4500/hr-management/09c792b/src/app/login/login.component.ts | balaji4500/hr-management 09c792b src/app/login/login.component.ts | true | 200 | 1,260 | import { Component } from '@angular/core';
import { FormBuilder,Validators } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
import { MyserviceService } from '../myservice.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html... | 7 |
simonline/di-companion | 374a7e1 | strapi/src/api/startup-pattern/controllers/custom.ts | TypeScript | www.github.com/simonline/di-companion/tree/main/strapi/src/api/startup-pattern/controllers/custom.ts | https://raw.githubusercontent.com/simonline/di-companion/374a7e1/strapi/src/api/startup-pattern/controllers/custom.ts | simonline/di-companion 374a7e1 strapi/src/api/startup-pattern/controllers/custom.ts | true | 200 | 1,238 | import { factories } from '@strapi/strapi';
export default factories.createCoreController('api::startup-pattern.startup-pattern', ({ strapi }) => ({
async findLatest(ctx) {
try {
const { data, meta } = await super.find(ctx);
const patterns = data.map(item => item.attributes);
// Group the patt... | 6 |
haydenJogs92/personal-site | d101895 | src/+routes/home/home.component.ts | TypeScript | www.github.com/haydenJogs92/personal-site/tree/main/src/+routes/home/home.component.ts | https://raw.githubusercontent.com/haydenJogs92/personal-site/d101895/src/%2Broutes/home/home.component.ts | haydenJogs92/personal-site d101895 src/+routes/home/home.component.ts | true | 200 | 402 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
gitHubUrl: String = 'https://github.com/haydenJogs92';
linkedInUrl: String = 'https://www.linke... | 4 |
craigjames16/personal-web-nextjs | 17eebc3 | src/app/api/chat/assistant.ts | TypeScript | www.github.com/craigjames16/personal-web-nextjs/tree/main/src/app/api/chat/assistant.ts | https://raw.githubusercontent.com/craigjames16/personal-web-nextjs/17eebc3/src/app/api/chat/assistant.ts | craigjames16/personal-web-nextjs 17eebc3 src/app/api/chat/assistant.ts | true | 200 | 5,893 | import OpenAI from 'openai';
import { leaveMessage } from './emailTools';
import { scheduleMeeting, getFreeBusy } from './googleTools';
import { getWorkExperience } from './infoTools';
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
class PersonalWebsiteAssistant {
private static instance: Per... | 7 |
haythamIdrees9/ConvertCase | 064e58f | src/app/components/unit-converters/types/measurement/pressure-converter/units.service.ts | TypeScript | www.github.com/haythamIdrees9/ConvertCase/tree/main/src/app/components/unit-converters/types/measurement/pressure-converter/units.service.ts | https://raw.githubusercontent.com/haythamIdrees9/ConvertCase/064e58f/src/app/components/unit-converters/types/measurement/pressure-converter/units.service.ts | haythamIdrees9/ConvertCase 064e58f src/app/components/unit-converters/types/measurement/pressure-converter/units.service.ts | true | 200 | 7,954 | import { Injectable } from '@angular/core';
import Decimal from 'decimal.js';
@Injectable()
export class UnitsService {
units: readonly { key: string; label: string; conversionRate: number,abbreviation?:string}[] = Object.freeze([
{key: "pascal",label: "Pascal",conversionRate: 1,abbreviation: "Pa"},
{key:... | 6 |
murolem/ss14-wiki-automations | 6a05c88 | src/01-import-source-data/index.ts | TypeScript | www.github.com/murolem/ss14-wiki-automations/tree/main/src/01-import-source-data/index.ts | https://raw.githubusercontent.com/murolem/ss14-wiki-automations/6a05c88/src/01-import-source-data/index.ts | murolem/ss14-wiki-automations 6a05c88 src/01-import-source-data/index.ts | true | 200 | 6,475 | import fs from 'fs-extra';
import path from 'path';
import { assertPathExists, copyListOfFilesRecursively, getFilesInDirectoryRecursively } from '../utils';
import Logger from '@aliser/logger';
import chalk from 'chalk';
import { DataPath, dataPaths, projectRelPaths } from '$src/preset';
import { globSync } from 'glob'... | 2 |
iabhii22/Employee-Management | a94a61e | src/app/employee.service.ts | TypeScript | www.github.com/iabhii22/Employee-Management/tree/main/src/app/employee.service.ts | https://raw.githubusercontent.com/iabhii22/Employee-Management/a94a61e/src/app/employee.service.ts | iabhii22/Employee-Management a94a61e src/app/employee.service.ts | true | 200 | 1,228 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class EmployeeService {
private baseUrl = 'http://localhost:3001/employees';
// HttpClient can be used to send different type of http requ... | 4 |
carvalho28/SHARESAFE | fcca137 | backend/src/modules/group/group.schema.ts | TypeScript | www.github.com/carvalho28/SHARESAFE/tree/main/backend/src/modules/group/group.schema.ts | https://raw.githubusercontent.com/carvalho28/SHARESAFE/fcca137/backend/src/modules/group/group.schema.ts | carvalho28/SHARESAFE fcca137 backend/src/modules/group/group.schema.ts | true | 200 | 1,562 | import { buildJsonSchemas } from "fastify-zod";
import { z } from "zod";
const groupCore = z.object({
name: z.string(),
members: z.array(z.any()),
});
// only add files to group
const groupAddFiles = z.object({
id: z.number(),
files: z.array(z.any()),
});
// only add members to group
const groupAddMembers = ... | 7 |
vleypi/nestjs-study | e3467bd | src/roles/roles.service.ts | TypeScript | www.github.com/vleypi/nestjs-study/tree/main/src/roles/roles.service.ts | https://raw.githubusercontent.com/vleypi/nestjs-study/e3467bd/src/roles/roles.service.ts | vleypi/nestjs-study e3467bd src/roles/roles.service.ts | true | 200 | 584 | import { Injectable } from '@nestjs/common';
import {InjectModel} from '@nestjs/sequelize'
import { CreateRoleDto } from './dto/create-role.dto';
import { Role } from './roles.model';
@Injectable()
export class RolesService {
constructor(@InjectModel(Role) private roleRepository: typeof Role){
}
asy... | 6 |
AndreaBellone123/FirstIonicApp | a56404e | src/app/app-routing.module.ts | TypeScript | www.github.com/AndreaBellone123/FirstIonicApp/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/AndreaBellone123/FirstIonicApp/a56404e/src/app/app-routing.module.ts | AndreaBellone123/FirstIonicApp a56404e src/app/app-routing.module.ts | true | 200 | 1,730 | import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes} from '@angular/router';
export const routes: Routes = [
{
path: 'signedin',
loadChildren: () => import('./signedin/signedin.module').then( m => m.SignedinPageModule),
},
{
path: 'reservations',
load... | 2 |
campeloneto1/infojuris | a694b35 | src/app/sistema/pages/paises/paises.component.ts | TypeScript | www.github.com/campeloneto1/infojuris/tree/main/src/app/sistema/pages/paises/paises.component.ts | https://raw.githubusercontent.com/campeloneto1/infojuris/a694b35/src/app/sistema/pages/paises/paises.component.ts | campeloneto1/infojuris a694b35 src/app/sistema/pages/paises/paises.component.ts | true | 200 | 2,833 | import { CommonModule } from "@angular/common";
import { Component, ViewChild } from "@angular/core";
import { DataTableDirective } from "angular-datatables";
import { Observable, Subject, tap } from "rxjs";
import { SharedModule } from "src/app/shared/shared.module";
import { SharedService } from "src/app/shared/share... | 4 |
txzira/Angular-Ecommerce-Frontend | 4c1aef1 | src/app/core/services/admin/shipping-methods/shipping-methods.service.ts | TypeScript | www.github.com/txzira/Angular-Ecommerce-Frontend/tree/main/src/app/core/services/admin/shipping-methods/shipping-methods.service.ts | https://raw.githubusercontent.com/txzira/Angular-Ecommerce-Frontend/4c1aef1/src/app/core/services/admin/shipping-methods/shipping-methods.service.ts | txzira/Angular-Ecommerce-Frontend 4c1aef1 src/app/core/services/admin/shipping-methods/shipping-methods.service.ts | true | 200 | 1,692 | import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ShippingMethod } from 'src/app/core/models/shippingMethod.model';
import env from 'src/environments/environment';
@Injectable({
providedIn: 'root',
})
export class A... | 7 |
olehboichuk/CourseWork | 2297b3f | frontend/src/app/articles/articles.component.ts | TypeScript | www.github.com/olehboichuk/CourseWork/tree/main/frontend/src/app/articles/articles.component.ts | https://raw.githubusercontent.com/olehboichuk/CourseWork/2297b3f/frontend/src/app/articles/articles.component.ts | olehboichuk/CourseWork 2297b3f frontend/src/app/articles/articles.component.ts | true | 200 | 1,511 | import {Component, OnInit} from '@angular/core';
import {ArticleService} from "../services/article.service";
import {UserService} from "../services/user.service";
import {ArticlesModel} from "../models/articles.model";
import * as jwt_decode from 'jwt-decode';
import {delay} from "rxjs/operators";
import {MatSnackBar} ... | 6 |
LuwinWickramasinghe/RentAPlace | 810f6c7 | src/app/places/discover/place-detail/place-detail.page.ts | TypeScript | www.github.com/LuwinWickramasinghe/RentAPlace/tree/main/src/app/places/discover/place-detail/place-detail.page.ts | https://raw.githubusercontent.com/LuwinWickramasinghe/RentAPlace/810f6c7/src/app/places/discover/place-detail/place-detail.page.ts | LuwinWickramasinghe/RentAPlace 810f6c7 src/app/places/discover/place-detail/place-detail.page.ts | true | 200 | 1,132 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { NavController } from '@ionic/angular';
import { PlacesService } from '../../places.service';
import { Place } from '../../place.model';
@Component({
selector: 'app-place-detail',
standalone: false,
templ... | 2 |
OmarAbdElsalam1998/E-Commerce-website-using-angular | fe78993 | src/app/services/categoreis.service.spec.ts | TypeScript | www.github.com/OmarAbdElsalam1998/E-Commerce-website-using-angular/tree/main/src/app/services/categoreis.service.spec.ts | https://raw.githubusercontent.com/OmarAbdElsalam1998/E-Commerce-website-using-angular/fe78993/src/app/services/categoreis.service.spec.ts | OmarAbdElsalam1998/E-Commerce-website-using-angular fe78993 src/app/services/categoreis.service.spec.ts | true | 200 | 377 | import { TestBed } from '@angular/core/testing';
import { CategoreisService } from './categoreis.service';
describe('CategoreisService', () => {
let service: CategoreisService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(CategoreisService);
});
it('should be creat... | 4 |
sadcomm/food-service-ui | 408e570 | src/app/app.module.ts | TypeScript | www.github.com/sadcomm/food-service-ui/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/sadcomm/food-service-ui/408e570/src/app/app.module.ts | sadcomm/food-service-ui 408e570 src/app/app.module.ts | true | 200 | 1,242 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app.routing';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatToolbarModule } from '@angul... | 6 |
shane-lamb/shane-lamb.github.io | 28b2507 | _src/ts-dependency-injection/src/inversifyjs/inversifyjs-example.ts | TypeScript | www.github.com/shane-lamb/shane-lamb.github.io/tree/main/_src/ts-dependency-injection/src/inversifyjs/inversifyjs-example.ts | https://raw.githubusercontent.com/shane-lamb/shane-lamb.github.io/28b2507/_src/ts-dependency-injection/src/inversifyjs/inversifyjs-example.ts | shane-lamb/shane-lamb.github.io 28b2507 _src/ts-dependency-injection/src/inversifyjs/inversifyjs-example.ts | true | 200 | 1,090 | import { Database, getPlaceholderForRealDB } from '../common'
import { injectable, inject, Container } from 'inversify'
@injectable()
export class Repository {
// a bit of unsafe typing when using injection by token
// - no guarantee that the dependency registered under the 'Database' token is actually of type... | 7 |
RafaelRonchi/Angular-Axios-FireBase | 8ae82e6 | Aula3-Angular-Db/AngularFireBAse/src/app/component/agregacao/agregacao.component.spec.ts | TypeScript | www.github.com/RafaelRonchi/Angular-Axios-FireBase/tree/main/Aula3-Angular-Db/AngularFireBAse/src/app/component/agregacao/agregacao.component.spec.ts | https://raw.githubusercontent.com/RafaelRonchi/Angular-Axios-FireBase/8ae82e6/Aula3-Angular-Db/AngularFireBAse/src/app/component/agregacao/agregacao.component.spec.ts | RafaelRonchi/Angular-Axios-FireBase 8ae82e6 Aula3-Angular-Db/AngularFireBAse/src/app/component/agregacao/agregacao.component.spec.ts | true | 200 | 580 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AgregacaoComponent } from './agregacao.component';
describe('AgregacaoComponent', () => {
let component: AgregacaoComponent;
let fixture: ComponentFixture<AgregacaoComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
... | 2 |
anmedina-arg/restaurancy_next_14 | 3dd9507 | src/api.ts | TypeScript | www.github.com/anmedina-arg/restaurancy_next_14/tree/main/src/api.ts | https://raw.githubusercontent.com/anmedina-arg/restaurancy_next_14/3dd9507/src/api.ts | anmedina-arg/restaurancy_next_14 3dd9507 src/api.ts | true | 200 | 5,541 | export interface Restaurant {
id: string;
name: string;
image: string;
description: string;
address: string;
score: number;
ratings: number;
}
// const restaurants: Restaurant[] = [
// {
// id: "1",
// name: "The Golden Spoon",
// description:
// "A fine dining experience with a menu ... | 4 |
hamzapro305/OAuth-node-starter | 93ab017 | src/configs/firebaseConfig.ts | TypeScript | www.github.com/hamzapro305/OAuth-node-starter/tree/main/src/configs/firebaseConfig.ts | https://raw.githubusercontent.com/hamzapro305/OAuth-node-starter/93ab017/src/configs/firebaseConfig.ts | hamzapro305/OAuth-node-starter 93ab017 src/configs/firebaseConfig.ts | true | 200 | 457 | import admin from "firebase-admin"
import * as serviceAccount from '../utils/FirebaseServiceAccountInfo.json';
admin.initializeApp({
credential: admin.credential.cert(serviceAccount as admin.ServiceAccount),
storageBucket: "gs://soundcloud-clone-3cbce.appspot.com" // Replace with your Firebase Storage bucket... | 2 |
FinalPatel1678/ZeroTime-solution | 53f4104 | services/searchService.ts | TypeScript | www.github.com/FinalPatel1678/ZeroTime-solution/tree/main/services/searchService.ts | https://raw.githubusercontent.com/FinalPatel1678/ZeroTime-solution/53f4104/services/searchService.ts | FinalPatel1678/ZeroTime-solution 53f4104 services/searchService.ts | true | 200 | 2,235 | import { Request, Response } from "express";
import { currDir, filterFiles, readdir, setResult } from "../helper";
import AdmZip from "adm-zip";
import { RootObject } from "../modal";
export const search = async (
req: Request<
undefined,
undefined,
{
data: string[];
}
>,
res: Response
) =... | 7 |
ecoacoustics/web-components | 164d354 | src/helpers/debug/profiler.ts | TypeScript | www.github.com/ecoacoustics/web-components/tree/main/src/helpers/debug/profiler.ts | https://raw.githubusercontent.com/ecoacoustics/web-components/164d354/src/helpers/debug/profiler.ts | ecoacoustics/web-components 164d354 src/helpers/debug/profiler.ts | true | 200 | 1,170 | export class Profiler {
private firstSample = 0;
private lastSample = 0;
private samples: number[] = [];
constructor(private name: string) {}
public addSample(value: number): void {
if (this.samples.length === 0) {
this.firstSample = performance.now();
}
this.samples.push(value);
this.... | 6 |
connieya/connieya.io | 7d7f223 | src/utils/constant/colors.ts | TypeScript | www.github.com/connieya/connieya.io/tree/main/src/utils/constant/colors.ts | https://raw.githubusercontent.com/connieya/connieya.io/7d7f223/src/utils/constant/colors.ts | connieya/connieya.io 7d7f223 src/utils/constant/colors.ts | true | 200 | 248 | const COLORS = {
MAIN: '#f5f5f8',
SUB: '#e4f1ff',
SUB_MIDDLE_BOLD: '#badcff',
SUB_BOLD: '#0E68C8',
WHITE: '#ffffff',
BLACK: '#000000',
GRAY: '#e2e5e6',
GRAY_BOLD: '#757575',
SHADOW: 'rgba(82,82,82,0.75)',
}
export default COLORS
| 4 |
fabianosantos79/ListaDeTarefas | 52fe48d | src/app/app.component.ts | TypeScript | www.github.com/fabianosantos79/ListaDeTarefas/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/fabianosantos79/ListaDeTarefas/52fe48d/src/app/app.component.ts | fabianosantos79/ListaDeTarefas 52fe48d src/app/app.component.ts | true | 200 | 484 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HeaderComponent } from "./components/header/header.component";
import { TasksComponent } from "./components/tasks/tasks.component";
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule, Head... | 2 |
toblrne/pomo | 3a7ec9a | backend/src/index.ts | TypeScript | www.github.com/toblrne/pomo/tree/main/backend/src/index.ts | https://raw.githubusercontent.com/toblrne/pomo/3a7ec9a/backend/src/index.ts | toblrne/pomo 3a7ec9a backend/src/index.ts | true | 200 | 6,310 | import express, { Application, Request, Response } from 'express'
const app: Application = express()
const port = 4000
const mongoose = require("mongoose")
app.use(express.json())
const cors = require('cors');
app.use(cors());
const dotenv = require("dotenv").config()
const mongoURL = process.env.MONGO_URI
mongoos... | 7 |
hangvtt183524/rgi-dex | f08f63f | src/components/Modal/types.ts | TypeScript | www.github.com/hangvtt183524/rgi-dex/tree/main/src/components/Modal/types.ts | https://raw.githubusercontent.com/hangvtt183524/rgi-dex/f08f63f/src/components/Modal/types.ts | hangvtt183524/rgi-dex f08f63f src/components/Modal/types.ts | true | 200 | 455 | import { BoxProps } from '../Box/types';
export interface ModalTheme {
background: string;
}
export interface InjectedModalProps {
onDismiss?: () => void;
data?: any;
}
export interface ModalProps extends InjectedModalProps, BoxProps {
title: string;
closeButton?: boolean;
onBack?: () => void;
minWidth... | 5 |
huimiu/dev-dashboard | f7d8042 | bot/commands/translateEn.ts | TypeScript | www.github.com/huimiu/dev-dashboard/tree/main/bot/commands/translateEn.ts | https://raw.githubusercontent.com/huimiu/dev-dashboard/f7d8042/bot/commands/translateEn.ts | huimiu/dev-dashboard f7d8042 bot/commands/translateEn.ts | true | 200 | 1,416 | import { ApiKeyProvider, ApiKeyLocation, AxiosInstance, createApiClient } from "@microsoft/teamsfx";
import { BotCommand } from "./botCommand";
export class TranslateEn extends BotCommand {
constructor() {
super();
}
isMatched(text: string): boolean {
return text.startsWith("en-ch ");
}
async run(u... | 4 |
aqilfiqran/contact-app | ce3dfe1 | app/services/api/api.ts | TypeScript | www.github.com/aqilfiqran/contact-app/tree/main/app/services/api/api.ts | https://raw.githubusercontent.com/aqilfiqran/contact-app/ce3dfe1/app/services/api/api.ts | aqilfiqran/contact-app ce3dfe1 app/services/api/api.ts | true | 200 | 590 | import Axios, { AxiosError, AxiosInstance } from "axios"
import Config from "../../config"
import { ApiResponse } from "./api.types"
export const apiInstance: AxiosInstance = Axios.create({
baseURL: Config.API_URL,
timeout: 1e5,
headers: {
"Content-Type": "application/json",
},
})
apiInstance.interceptors... | 2 |
MTalha250/motorcycleFanatics | b3d145b | Client/src/i18n.ts | TypeScript | www.github.com/MTalha250/motorcycleFanatics/tree/main/Client/src/i18n.ts | https://raw.githubusercontent.com/MTalha250/motorcycleFanatics/b3d145b/Client/src/i18n.ts | MTalha250/motorcycleFanatics b3d145b Client/src/i18n.ts | true | 200 | 11,430 | import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
i18n.use(initReactI18next).init({
debug: true,
lng: 'de',
fallbackLng: 'en',
resources: {
en: {
translation: {
heroH1: "Secure Your Exclusive License in Germany, Austria, or Switzerland!",
... | 6 |
sh-veum/kafka-ksqldb-react-test | 3a28a1d | frontend-react/src/utils/web-socket/useOverviewWebSocket.ts | TypeScript | www.github.com/sh-veum/kafka-ksqldb-react-test/tree/main/frontend-react/src/utils/web-socket/useOverviewWebSocket.ts | https://raw.githubusercontent.com/sh-veum/kafka-ksqldb-react-test/3a28a1d/frontend-react/src/utils/web-socket/useOverviewWebSocket.ts | sh-veum/kafka-ksqldb-react-test 3a28a1d frontend-react/src/utils/web-socket/useOverviewWebSocket.ts | true | 200 | 2,154 | import { useQueryClient } from "@tanstack/react-query";
import { WebSocketSubscription } from "@/Enums/webSocketSubscription";
import { useEffect, useRef } from "react";
import { baseWebsocketUrl } from "@/lib/baseUrls";
import { convertUTCToLocalTime } from "../timeUtils";
import { AuctionWithBid } from "@/models/Auct... | 7 |
MuhammedMustafa42/idea | 409eafd | src/common/helpers/mongoose-schema-validation.helper.ts | TypeScript | www.github.com/MuhammedMustafa42/idea/tree/main/src/common/helpers/mongoose-schema-validation.helper.ts | https://raw.githubusercontent.com/MuhammedMustafa42/idea/409eafd/src/common/helpers/mongoose-schema-validation.helper.ts | MuhammedMustafa42/idea 409eafd src/common/helpers/mongoose-schema-validation.helper.ts | true | 200 | 1,173 | import { InternalServerErrorException } from '@nestjs/common';
import { plainToInstance } from 'class-transformer';
import { Validator } from 'class-validator';
import { Document } from 'mongoose';
import { parseValidationErrors } from './validation-error-parser.helper';
import { ErrorType } from '../enums';
import { C... | 5 |
Capstone-Alumni/demo_platform | b68247e | src/modules/tenants/services/transaction.service.ts | TypeScript | www.github.com/Capstone-Alumni/demo_platform/tree/main/src/modules/tenants/services/transaction.service.ts | https://raw.githubusercontent.com/Capstone-Alumni/demo_platform/b68247e/src/modules/tenants/services/transaction.service.ts | Capstone-Alumni/demo_platform b68247e src/modules/tenants/services/transaction.service.ts | true | 200 | 1,111 | import { prisma } from '@lib/prisma/prisma';
import { GetTransactionListServiceProps } from '../types';
export default class TransactionService {
static getList = async ({ params }: GetTransactionListServiceProps) => {
const { tenantName, page, limit } = params;
const whereFilter = {
tenant: {
... | 4 |
TinPY/LibreriaAngular2 | bb05754 | projects/undec-login-sso/src/interceptor/http-interceptor.interceptor.ts | TypeScript | www.github.com/TinPY/LibreriaAngular2/tree/main/projects/undec-login-sso/src/interceptor/http-interceptor.interceptor.ts | https://raw.githubusercontent.com/TinPY/LibreriaAngular2/bb05754/projects/undec-login-sso/src/interceptor/http-interceptor.interceptor.ts | TinPY/LibreriaAngular2 bb05754 projects/undec-login-sso/src/interceptor/http-interceptor.interceptor.ts | true | 200 | 1,268 | import { HttpInterceptorFn } from '@angular/common/http';
import {catchError} from 'rxjs';
export const authInterceptorFunctional: HttpInterceptorFn = (req, next) => {
const authToken = localStorage.getItem('undec-token');
if (!authToken) {
const locationBase64 = window.btoa(unescape(encodeURIComponent(window... | 2 |
Zzhgitup/vite-bill | ab65841 | src/server/index.ts | TypeScript | www.github.com/Zzhgitup/vite-bill/tree/main/src/server/index.ts | https://raw.githubusercontent.com/Zzhgitup/vite-bill/ab65841/src/server/index.ts | Zzhgitup/vite-bill ab65841 src/server/index.ts | true | 200 | 945 | import { BASE_URL, TIMEOUT } from "./config";
import { useNavigate } from "react-router-dom";
import HYrequest from "./request";
const Hyrequire = new HYrequest({
baseURL: BASE_URL,
timeout: TIMEOUT,
interceptor: {
requestSuccessFn(config) {
config.headers!.Authorization = localStorage.getItem("billtoke... | 6 |
white-0/SSE | 0056cc1 | HTTP/node_modules/@ctrip/node-vampire-standard-soa-client/types/soaClientBaseApi.d.ts | TypeScript | www.github.com/white-0/SSE/tree/main/HTTP/node_modules/@ctrip/node-vampire-standard-soa-client/types/soaClientBaseApi.d.ts | https://raw.githubusercontent.com/white-0/SSE/0056cc1/HTTP/node_modules/%40ctrip/node-vampire-standard-soa-client/types/soaClientBaseApi.d.ts | white-0/SSE 0056cc1 HTTP/node_modules/@ctrip/node-vampire-standard-soa-client/types/soaClientBaseApi.d.ts | true | 200 | 1,986 | /// <reference types="node" />
import { AgentOptions, OutgoingHttpHeaders, ServerResponse } from 'http';
import { SoaClientInitOptions, InvokeOptions } from './utils/soaMonitor';
export declare abstract class SoaClientBaseApi {
protected serviceId: string;
protected serviceCode: string;
protected serviceTim... | 0 |
lflahive/rsvp-client | a8f10c3 | src/app/event/event-routing.module.ts | TypeScript | www.github.com/lflahive/rsvp-client/tree/main/src/app/event/event-routing.module.ts | https://raw.githubusercontent.com/lflahive/rsvp-client/a8f10c3/src/app/event/event-routing.module.ts | lflahive/rsvp-client a8f10c3 src/app/event/event-routing.module.ts | true | 200 | 492 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CreateEventComponent } from './create-event/create-event.component';
import { EventComponent } from './event.component';
const routes: Routes = [
{
path: "create", component: CreateEventComponent
},
{
... | 3 |
ManuelMadeira98/dc-checkout-page | 02e6bff | dc-checkout-page/src/app/input/input.component.ts | TypeScript | www.github.com/ManuelMadeira98/dc-checkout-page/tree/main/dc-checkout-page/src/app/input/input.component.ts | https://raw.githubusercontent.com/ManuelMadeira98/dc-checkout-page/02e6bff/dc-checkout-page/src/app/input/input.component.ts | ManuelMadeira98/dc-checkout-page 02e6bff dc-checkout-page/src/app/input/input.component.ts | true | 200 | 364 | import { Component, Input } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { InputType } from '../models';
@Component({
selector: 'app-input',
templateUrl: './input.component.html',
styleUrls: ['./input.component.scss'],
})
export class InputComponent {
inputTypes = InputType;
@Inp... | 5 |
lst97/simple-cms-backend | 7836a6e | src/schemas/AuthSchema.ts | TypeScript | www.github.com/lst97/simple-cms-backend/tree/main/src/schemas/AuthSchema.ts | https://raw.githubusercontent.com/lst97/simple-cms-backend/7836a6e/src/schemas/AuthSchema.ts | lst97/simple-cms-backend 7836a6e src/schemas/AuthSchema.ts | true | 200 | 692 | import Joi from 'joi';
import { IBaseSchema } from './IBaseSchema';
export class AuthSchema implements IBaseSchema {
static loginFormSchema = Joi.object({
email: Joi.string().email().required(),
password: Joi.string().min(8).required().messages({
'string.min': 'Invalid password'
})
});
static registration... | 7 |
Alik1994/songbird | c18a0cf | config/build/buildPlugins.ts | TypeScript | www.github.com/Alik1994/songbird/tree/main/config/build/buildPlugins.ts | https://raw.githubusercontent.com/Alik1994/songbird/c18a0cf/config/build/buildPlugins.ts | Alik1994/songbird c18a0cf config/build/buildPlugins.ts | true | 200 | 1,078 | import { Configuration } from "webpack";
import { BuildOptions } from "./types/types";
import webpack from "webpack";
import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin";
import CopyPlugi... | 4 |
JawadBish/eas | 72dcef9 | EAS/eas/app/src/admin/useRedirectHomeUnlessUserIsAdmin.ts | TypeScript | www.github.com/JawadBish/eas/tree/main/EAS/eas/app/src/admin/useRedirectHomeUnlessUserIsAdmin.ts | https://raw.githubusercontent.com/JawadBish/eas/72dcef9/EAS/eas/app/src/admin/useRedirectHomeUnlessUserIsAdmin.ts | JawadBish/eas 72dcef9 EAS/eas/app/src/admin/useRedirectHomeUnlessUserIsAdmin.ts | true | 200 | 353 | import { type AuthUser } from 'wasp/auth';
import { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
export function useRedirectHomeUnlessUserIsAdmin({ user }: { user: AuthUser }) {
const navigate = useNavigate();
useEffect(() => {
if (!user.isAdmin) {
navigate('/');
... | 2 |
danielmota83/games-front-react | 9127006 | src/assets/styles/mixins.ts | TypeScript | www.github.com/danielmota83/games-front-react/tree/main/src/assets/styles/mixins.ts | https://raw.githubusercontent.com/danielmota83/games-front-react/9127006/src/assets/styles/mixins.ts | danielmota83/games-front-react 9127006 src/assets/styles/mixins.ts | true | 200 | 2,384 | import { css } from "styled-components";
import { colors } from "./colors";
import { constants } from "./constants";
const logoStyle = () => css`
font-family: ${constants.logoFontFamily};
font-size: ${constants.logoFontSize};
line-height: ${constants.logoLineHeight};
`;
const subTitleStyle = () => css`
font-f... | 1 |
alexisescala/simSkillsTask5 | 549c757 | src/environments/environment.ts | TypeScript | www.github.com/alexisescala/simSkillsTask5/tree/main/src/environments/environment.ts | https://raw.githubusercontent.com/alexisescala/simSkillsTask5/549c757/src/environments/environment.ts | alexisescala/simSkillsTask5 549c757 src/environments/environment.ts | true | 200 | 1,061 | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
firebase: {
projectId: 'fir-simskills',
appId: '1:381446883448:web... | 6 |
gemit-project/client | bc72f37 | src/Types/Vendor.ts | TypeScript | www.github.com/gemit-project/client/tree/main/src/Types/Vendor.ts | https://raw.githubusercontent.com/gemit-project/client/bc72f37/src/Types/Vendor.ts | gemit-project/client bc72f37 src/Types/Vendor.ts | true | 200 | 396 | const { UUID } = require("sharetribe-flex-sdk").types;
export type Vendor = {
attributes: {
banned: boolean;
createdAt: Date;
deleted: boolean;
profile: {
abbreviatedName: string;
bio: string;
displayName: string;
metadata: {};
publicData: {
age: number;
... | 0 |
nnourr/music-circle-react | 515e8b0 | src/config/globals.ts | TypeScript | www.github.com/nnourr/music-circle-react/tree/main/src/config/globals.ts | https://raw.githubusercontent.com/nnourr/music-circle-react/515e8b0/src/config/globals.ts | nnourr/music-circle-react 515e8b0 src/config/globals.ts | true | 200 | 1,660 | // env
export const SPOTIFY_CLIENT_ID = import.meta.env.VITE_SPOTIFY_CLIENT_ID;
export const SPOTIFY_REDIRECT_URI = import.meta.env.VITE_SPOTIFY_REDIRECT_URI;
export const SERVER_ENDPOINT = import.meta.env.VITE_SERVER_ENDPOINT;
// colour
export const GRADIENT_START = (opacity = 1) => `rgb(41, 235, 38, ${opacity})`;
ex... | 3 |
mediplex/singularity-core | e867c4c | components/read-more-form/read-more-form-schema.ts | TypeScript | www.github.com/mediplex/singularity-core/tree/main/components/read-more-form/read-more-form-schema.ts | https://raw.githubusercontent.com/mediplex/singularity-core/e867c4c/components/read-more-form/read-more-form-schema.ts | mediplex/singularity-core e867c4c components/read-more-form/read-more-form-schema.ts | true | 200 | 366 | import { z } from "zod";
const readMoreFormSchema = z.object({
qualification: z.array(z.string()).optional(),
name: z.string().trim().min(1, "Name is required"),
email: z.string().trim().email("Invalid email").min(1, "Email is required"),
});
type ReadMoreFormType = z.infer<typeof readMoreFormSchema>;
export {... | 5 |
Vicentetw/PortfolioAngularJwt | b2857e3 | src/app/botones/edit-button/edit-button.component.ts | TypeScript | www.github.com/Vicentetw/PortfolioAngularJwt/tree/main/src/app/botones/edit-button/edit-button.component.ts | https://raw.githubusercontent.com/Vicentetw/PortfolioAngularJwt/b2857e3/src/app/botones/edit-button/edit-button.component.ts | Vicentetw/PortfolioAngularJwt b2857e3 src/app/botones/edit-button/edit-button.component.ts | true | 200 | 1,676 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from 'src/app/services/auth.service';
import { GuardService } from 'src/app/services/guard.service';
import { TokenService } from 'src/app/services/token.service';
@Component({
selector: 'app-edit-but... | 7 |
Whisil/calendar | e918a8b | src/util.ts | TypeScript | www.github.com/Whisil/calendar/tree/main/src/util.ts | https://raw.githubusercontent.com/Whisil/calendar/e918a8b/src/util.ts | Whisil/calendar e918a8b src/util.ts | true | 200 | 446 | import dayjs from 'dayjs';
export function getMonth(month = dayjs().month(), year = dayjs().year()) {
const firstDayOfMonth = dayjs(new Date(year, month, 1)).day();
let currentMonthCount = 0 - firstDayOfMonth;
const daysMatrix = new Array(5).fill([]).map(() => {
return new Array(7).fill(null).map(() => {
... | 4 |
rohitgarg20/prodem | 2f3ec55 | src/redux/CheckUserExistance/UserExistanceSlice.ts | TypeScript | www.github.com/rohitgarg20/prodem/tree/main/src/redux/CheckUserExistance/UserExistanceSlice.ts | https://raw.githubusercontent.com/rohitgarg20/prodem/2f3ec55/src/redux/CheckUserExistance/UserExistanceSlice.ts | rohitgarg20/prodem 2f3ec55 src/redux/CheckUserExistance/UserExistanceSlice.ts | true | 200 | 2,070 | import { createSlice } from '@reduxjs/toolkit'
import { isEmpty } from 'lodash'
import { ICheckUserExistance } from './UserExistanceInterface'
import { API_STATUS_CODE } from '../../common/ApiConstant'
import { dimissKeyboard } from '../../common/App-Utils'
import { log } from '../../common/config/log'
import { Reduce... | 2 |
Su-Yong/use-request | a6fe3df | src/options.ts | TypeScript | www.github.com/Su-Yong/use-request/tree/main/src/options.ts | https://raw.githubusercontent.com/Su-Yong/use-request/a6fe3df/src/options.ts | Su-Yong/use-request a6fe3df src/options.ts | true | 200 | 3,162 | import type { Cache, CacheData } from './request-config';
import type { DefaultData, DefaultError, DefaultFetchData } from './types';
export interface RequestOptions<Data = DefaultData, Err = DefaultError, FetchData extends unknown[] = DefaultFetchData> {
initWith: FetchData | boolean;
cache: Cache<CacheData<Data,... | 6 |
mahldev/pta-companies | 477daa7 | src/main/frontend/src/app/components/map/map-component.ts | TypeScript | www.github.com/mahldev/pta-companies/tree/main/src/main/frontend/src/app/components/map/map-component.ts | https://raw.githubusercontent.com/mahldev/pta-companies/477daa7/src/main/frontend/src/app/components/map/map-component.ts | mahldev/pta-companies 477daa7 src/main/frontend/src/app/components/map/map-component.ts | true | 200 | 861 | import { AfterViewInit, Component, Input } from '@angular/core';
import * as L from 'leaflet';
@Component({
selector: 'app-map-component',
standalone: true,
imports: [],
template: `<div id="map" class="w-full h-full"></div>`,
})
export class MapComponent implements AfterViewInit {
private MALAGA_COORDINATES ... | 1 |
danilofiume/post-favorites-filter-angular | 087ab19 | src/app/app.module.ts | TypeScript | www.github.com/danilofiume/post-favorites-filter-angular/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/danilofiume/post-favorites-filter-angular/087ab19/src/app/app.module.ts | danilofiume/post-favorites-filter-angular 087ab19 src/app/app.module.ts | true | 200 | 962 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FavoritePostsComponent } from './components/favorite-posts/favorite-posts.component';
import { Fav... | 0 |
Tomy97/sistema-gestor-tareas-proyectos | a2ccfef | src/features/projects/slices/store.ts | TypeScript | www.github.com/Tomy97/sistema-gestor-tareas-proyectos/tree/main/src/features/projects/slices/store.ts | https://raw.githubusercontent.com/Tomy97/sistema-gestor-tareas-proyectos/a2ccfef/src/features/projects/slices/store.ts | Tomy97/sistema-gestor-tareas-proyectos a2ccfef src/features/projects/slices/store.ts | true | 200 | 978 | import { createSlice } from '@reduxjs/toolkit'
import { Project } from '../../../types/Project'
const initialState: Project[] = []
export const useProjectSlice = createSlice({
name: 'project',
initialState,
reducers: {
setProject: (state, action) => {
action.payload.date = new Date().toISOString()
... | 3 |
bstoyanov-bg/task-goal-tracker | 7b27640 | frontend/src/app/auth/login/login.component.ts | TypeScript | www.github.com/bstoyanov-bg/task-goal-tracker/tree/main/frontend/src/app/auth/login/login.component.ts | https://raw.githubusercontent.com/bstoyanov-bg/task-goal-tracker/7b27640/frontend/src/app/auth/login/login.component.ts | bstoyanov-bg/task-goal-tracker 7b27640 frontend/src/app/auth/login/login.component.ts | true | 200 | 1,653 | import { Component } from '@angular/core';
import { AuthService } from '../auth.service';
import { Router, RouterLink } from '@angular/router';
import { MatCardModule } from '@angular/material/card';
import { MatButtonModule } from '@angular/material/button';
import { MatFormFieldModule } from '@angular/material/form-f... | 5 |
Mihir2423/next-js-auth-starter | 39a1fc6 | src/app/(auth)/sign-in/email/actions.ts | TypeScript | www.github.com/Mihir2423/next-js-auth-starter/tree/main/src/app/(auth)/sign-in/email/actions.ts | https://raw.githubusercontent.com/Mihir2423/next-js-auth-starter/39a1fc6/src/app/%28auth%29/sign-in/email/actions.ts | Mihir2423/next-js-auth-starter 39a1fc6 src/app/(auth)/sign-in/email/actions.ts | true | 200 | 573 | "use server";
import { unauthenticatedAction } from "@/lib/safe-action";
import { createSessionUseCase, signInUseCase } from "@/use-cases/users";
import { redirect } from "next/navigation";
import { z } from "zod";
export const signInAction = unauthenticatedAction
.createServerAction()
.input(
z.object({
... | 7 |
ashutosh-stha/Hydrate | 64249f1 | src/model/user/authentication.ts | TypeScript | www.github.com/ashutosh-stha/Hydrate/tree/main/src/model/user/authentication.ts | https://raw.githubusercontent.com/ashutosh-stha/Hydrate/64249f1/src/model/user/authentication.ts | ashutosh-stha/Hydrate 64249f1 src/model/user/authentication.ts | true | 200 | 2,500 | import { createModel } from '@rematch/core';
import { RootModel } from '../models';
import firebase from '@react-native-firebase/app';
import '@react-native-firebase/auth';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { IntervalNotifcation } from '../../utils/Notification';
interface Us... | 4 |
manahilrasheed687/45-Assignment- | cbdf311 | Q33/main.ts | TypeScript | www.github.com/manahilrasheed687/45-Assignment-/tree/main/Q33/main.ts | https://raw.githubusercontent.com/manahilrasheed687/45-Assignment-/cbdf311/Q33/main.ts | manahilrasheed687/45-Assignment- cbdf311 Q33/main.ts | true | 200 | 402 | // Creating a array
let number = [1, 2, 3, 4, 5, 6, 7, 8]
// using for-loop
for( let oneNumber of number ){
let ordinalEnding: string
if(oneNumber === 1){
ordinalEnding = "st"
}
else if(oneNumber === 2){
ordinalEnding = "nd"
}
else if(oneNumber === 3){
ordinalEnding = "rd"
}
else{
... | 6 |
ivanosky144/inkubiweb | deb82e6 | src/pages/api/user/index.ts | TypeScript | www.github.com/ivanosky144/inkubiweb/tree/main/src/pages/api/user/index.ts | https://raw.githubusercontent.com/ivanosky144/inkubiweb/deb82e6/src/pages/api/user/index.ts | ivanosky144/inkubiweb deb82e6 src/pages/api/user/index.ts | true | 200 | 691 | import { connectToDatabase } from "@/utils/db_connection";
import user from "@/models/user";
import type { NextApiRequest, NextApiResponse } from "next";
import authMiddleware from "@/middleware/auth_middleware";
import User from "@/models/user";
async function handleUserRequests(req: NextApiRequest, res: NextAp... | 2 |
Hleb4ikk/nextjs-landlord | 924383e | drizzle/migrate.ts | TypeScript | www.github.com/Hleb4ikk/nextjs-landlord/tree/main/drizzle/migrate.ts | https://raw.githubusercontent.com/Hleb4ikk/nextjs-landlord/924383e/drizzle/migrate.ts | Hleb4ikk/nextjs-landlord 924383e drizzle/migrate.ts | true | 200 | 428 | import 'dotenv/config';
import { drizzle } from 'drizzle-orm/postgres-js';
import { migrate } from 'drizzle-orm/postgres-js/migrator';
import postgres from 'postgres';
const migrationClient = postgres(process.env.DATABASE_URL!, { max: 1 });
async function main() {
await migrate(drizzle(migrationClient), { migration... | 0 |
jdbbdj/eevee | 0fc9593 | src/resources/pointers/index.ts | TypeScript | www.github.com/jdbbdj/eevee/tree/main/src/resources/pointers/index.ts | https://raw.githubusercontent.com/jdbbdj/eevee/0fc9593/src/resources/pointers/index.ts | jdbbdj/eevee 0fc9593 src/resources/pointers/index.ts | true | 200 | 1,184 | export default class Pointers {
num1: Number;
num2: Number;
obj1: { value: number };
obj2: { value: number };
obj3: { value: number };
constructor() {
this.num1 = 5;
this.num2 = this.num1;
//obj1 points to this object
this.obj1 = {
value: 11,
};
//obj2 points to obj1
thi... | 3 |
podlaskialgorytm3/stewardship-backend | f91466f | src/models/sub-task.ts | TypeScript | www.github.com/podlaskialgorytm3/stewardship-backend/tree/main/src/models/sub-task.ts | https://raw.githubusercontent.com/podlaskialgorytm3/stewardship-backend/f91466f/src/models/sub-task.ts | podlaskialgorytm3/stewardship-backend f91466f src/models/sub-task.ts | true | 200 | 1,048 | import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../configs/connect';
class SubTask extends Model {
public id!: string;
public taskInfoId!: string;
public title!: string;
public description!: string;
public status!: string;
public assignedBy!: string;
}
SubTask.init(
... | 5 |
thuongho/ticket-hub | 6586f95 | auth/src/models/user.ts | TypeScript | www.github.com/thuongho/ticket-hub/tree/main/auth/src/models/user.ts | https://raw.githubusercontent.com/thuongho/ticket-hub/6586f95/auth/src/models/user.ts | thuongho/ticket-hub 6586f95 auth/src/models/user.ts | true | 200 | 1,598 | import mongoose from 'mongoose';
import { PasswordManager } from '../services/password-manager';
// An interface that describes the properties that are required to create a new User
interface UserAttrs {
email: string;
password: string;
}
// An interface that describes the properties that a User Model has
interfa... | 4 |
Bobur98/brickOven | 6d53add | src/router-admin.ts | TypeScript | www.github.com/Bobur98/brickOven/tree/main/src/router-admin.ts | https://raw.githubusercontent.com/Bobur98/brickOven/6d53add/src/router-admin.ts | Bobur98/brickOven 6d53add src/router-admin.ts | true | 200 | 1,558 | import express from "express";
import restaurantController from "./controllers/restaurant.controller";
import productController from "./controllers/product.controller";
import makeUploader from "./libs/utils/uploader";
const routerAdmin = express.Router();
routerAdmin.get("/", restaurantController.goHome);
routerAdmi... | 7 |
MollyTiet/lynxProject | 884618b | node_modules/@lynx-js/types/types/background-thread/lynx.d.ts | TypeScript | www.github.com/MollyTiet/lynxProject/tree/main/node_modules/@lynx-js/types/types/background-thread/lynx.d.ts | https://raw.githubusercontent.com/MollyTiet/lynxProject/884618b/node_modules/%40lynx-js/types/types/background-thread/lynx.d.ts | MollyTiet/lynxProject 884618b node_modules/@lynx-js/types/types/background-thread/lynx.d.ts | true | 200 | 4,326 | // Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { CommonLynx, GlobalProps } from '../common';
import { AnimationElement } from './animation';
import { BeforePublishEvent,... | 1 |
Navjot-Singh2608/shopSail | a3e754f | src/app/modules/product/product.module.ts | TypeScript | www.github.com/Navjot-Singh2608/shopSail/tree/main/src/app/modules/product/product.module.ts | https://raw.githubusercontent.com/Navjot-Singh2608/shopSail/a3e754f/src/app/modules/product/product.module.ts | Navjot-Singh2608/shopSail a3e754f src/app/modules/product/product.module.ts | true | 200 | 1,144 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../shared/shared.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
RouterModule,
provideRouter,
withComponentInputBinding,
} from '@angular/router';
import { M... | 6 |
RicoLibesch/Proto-Gen | 46dd3cb | backend/__test__/sessionService.test.ts | TypeScript | www.github.com/RicoLibesch/Proto-Gen/tree/main/backend/__test__/sessionService.test.ts | https://raw.githubusercontent.com/RicoLibesch/Proto-Gen/46dd3cb/backend/__test__/sessionService.test.ts | RicoLibesch/Proto-Gen 46dd3cb backend/__test__/sessionService.test.ts | true | 200 | 3,411 | //Importing the Controller
import { pool } from '../src/config/postgresConfig';
import {isSessionActive, startSession, stopSession} from "../src/services/sessionService";
//mocking the Service
jest.mock('pg', () => {
const mPool = {
query: jest.fn(),
on: jest.fn(),
connect: jest.fn(),
... | 2 |
apollo-tanzania/citizen-api | 0b54c40 | common/helpers/constants.ts | TypeScript | www.github.com/apollo-tanzania/citizen-api/tree/main/common/helpers/constants.ts | https://raw.githubusercontent.com/apollo-tanzania/citizen-api/0b54c40/common/helpers/constants.ts | apollo-tanzania/citizen-api 0b54c40 common/helpers/constants.ts | true | 200 | 1,365 | export const strings = Object.freeze({
REPORT_REMARK_PHRASE: {
// if the phone has never been reported stolen before
PHRASE1: 'This phone never been reported stolen before',
// if the phone has been reported stolen once
PHRASE2: 'This phone has been reported stolen once before',
... | 0 |
TheMadProphet/screeps-ts | efd0434 | src/creep/roles/defenderBehavior.ts | TypeScript | www.github.com/TheMadProphet/screeps-ts/tree/main/src/creep/roles/defenderBehavior.ts | https://raw.githubusercontent.com/TheMadProphet/screeps-ts/efd0434/src/creep/roles/defenderBehavior.ts | TheMadProphet/screeps-ts efd0434 src/creep/roles/defenderBehavior.ts | true | 200 | 1,517 | import roomDefense from "../roomDefense";
class DefenderBehavior implements RoleBehavior {
public run(creep: Creep) {
if (!creep.memory.assignedRoom) {
const roomToDefend = roomDefense.getRoomToDefend(creep);
if (!roomToDefend) {
return creep.idle();
} el... | 3 |
AnhVo-01/EcoIT-REP | 3a828bc | front-end/src/app/app.module.ts | TypeScript | www.github.com/AnhVo-01/EcoIT-REP/tree/main/front-end/src/app/app.module.ts | https://raw.githubusercontent.com/AnhVo-01/EcoIT-REP/3a828bc/front-end/src/app/app.module.ts | AnhVo-01/EcoIT-REP 3a828bc front-end/src/app/app.module.ts | true | 200 | 8,333 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { CustomerAddComponent } from './modules/customer/customer-add/customer-add.component';
import { CustomerListComponent } from './modules/customer/customer-list/cus... | 5 |
TomazJaksa/AngularDoctors | 9e7031a | src/app/components/doctor-list/doctor-list.component.spec.ts | TypeScript | www.github.com/TomazJaksa/AngularDoctors/tree/main/src/app/components/doctor-list/doctor-list.component.spec.ts | https://raw.githubusercontent.com/TomazJaksa/AngularDoctors/9e7031a/src/app/components/doctor-list/doctor-list.component.spec.ts | TomazJaksa/AngularDoctors 9e7031a src/app/components/doctor-list/doctor-list.component.spec.ts | true | 200 | 2,617 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { of } from 'rxjs';
import { DoctorListComponent } from './doctor-list.component';
import { DoctorService } from '../../services/doctor.service';
import { Doctor } from '../... | 4 |
bazighaliminhas/recipe-book | b42669d | src/app/shopping-list/shopping-list.component.ts | TypeScript | www.github.com/bazighaliminhas/recipe-book/tree/main/src/app/shopping-list/shopping-list.component.ts | https://raw.githubusercontent.com/bazighaliminhas/recipe-book/b42669d/src/app/shopping-list/shopping-list.component.ts | bazighaliminhas/recipe-book b42669d src/app/shopping-list/shopping-list.component.ts | true | 200 | 597 | import { Component, OnInit } from '@angular/core';
import { Ingredient } from '../shared/ingredient.model';
import { ShoppingListService } from './shopping.service';
@Component({
selector: 'app-shopping-list',
templateUrl: './shopping-list.component.html',
styleUrls: ['./shopping-list.component.css']
})
export c... | 7 |
darius1751/apiEcommerce | 43a4a1b | src/controllers/ServerController.ts | TypeScript | www.github.com/darius1751/apiEcommerce/tree/main/src/controllers/ServerController.ts | https://raw.githubusercontent.com/darius1751/apiEcommerce/43a4a1b/src/controllers/ServerController.ts | darius1751/apiEcommerce 43a4a1b src/controllers/ServerController.ts | true | 200 | 963 | import Express , { Application } from "express";
import cors from 'cors';
import morgan from "morgan";
import dotenv from 'dotenv';
import { ProductController } from "./ProductController";
export class ServerController{
private app:Application;
private productController:ProductController;
constructor(){
... | 2 |
dankerow/adriansalvador-api | 2f5be7b | src/structures/Route.ts | TypeScript | www.github.com/dankerow/adriansalvador-api/tree/main/src/structures/Route.ts | https://raw.githubusercontent.com/dankerow/adriansalvador-api/2f5be7b/src/structures/Route.ts | dankerow/adriansalvador-api 2f5be7b src/structures/Route.ts | true | 200 | 510 | import type { FastifyInstance, RegisterOptions, DoneFuncWithErrOrRes } from 'fastify'
export interface RouteOptions {
position: number
path: string
middlewares?: any[]
}
export class Route {
position: number
path: string
middlewares: any[]
constructor(options: RouteOptions) {
this.position = option... | 6 |
JuanVicenteVazquezG/gifs-app | c5922bd | src/app/gifs/services/gifs.service.ts | TypeScript | www.github.com/JuanVicenteVazquezG/gifs-app/tree/main/src/app/gifs/services/gifs.service.ts | https://raw.githubusercontent.com/JuanVicenteVazquezG/gifs-app/c5922bd/src/app/gifs/services/gifs.service.ts | JuanVicenteVazquezG/gifs-app c5922bd src/app/gifs/services/gifs.service.ts | true | 200 | 1,780 | import { Injectable } from '@angular/core';
import { environment } from '../../../environments/environment'
import { HttpClient, HttpParams } from '@angular/common/http';
import { Gif, SearchResponse } from '../interfaces/gifs.interfaces';
@Injectable({ providedIn: 'root' })
export class GifsService{
public gifList... | 0 |
luccaraucci1/fast-feet-api | b136e26 | src/infra/database/prisma/repositories/prisma-delivery-mans-repository.ts | TypeScript | www.github.com/luccaraucci1/fast-feet-api/tree/main/src/infra/database/prisma/repositories/prisma-delivery-mans-repository.ts | https://raw.githubusercontent.com/luccaraucci1/fast-feet-api/b136e26/src/infra/database/prisma/repositories/prisma-delivery-mans-repository.ts | luccaraucci1/fast-feet-api b136e26 src/infra/database/prisma/repositories/prisma-delivery-mans-repository.ts | true | 200 | 1,777 | import { DeliveryMansRepository } from '@/domain/delivery/repositories/delivery-mans-repository'
import { DeliveryManMapper } from '../mappers/delivery-man-mapper'
import { PrismaService } from '../prisma.service'
import { Injectable } from '@nestjs/common'
import { DeliveryMan } from '@/domain/delivery/entities/delive... | 3 |
ITFactoria/imagesBackend | b421f8e | routes/post.route.ts | TypeScript | www.github.com/ITFactoria/imagesBackend/tree/main/routes/post.route.ts | https://raw.githubusercontent.com/ITFactoria/imagesBackend/b421f8e/routes/post.route.ts | ITFactoria/imagesBackend b421f8e routes/post.route.ts | true | 200 | 2,418 | import { Request, Response, Router } from "express";
import { Post } from "../models/post.model";
import { verificarToken } from "../middlewares/autenticacion";
import { json } from "body-parser";
import { FileUpload } from "../interfaces/file-upload";
import FileSystem from "../classes/file-system";
const postRoutes... | 1 |
Stas-Z/music-platform | 43cffa1 | client/src/pages/TrackDeatailsPage/model/slice/trackDetailsPageSlice.ts | TypeScript | www.github.com/Stas-Z/music-platform/tree/main/client/src/pages/TrackDeatailsPage/model/slice/trackDetailsPageSlice.ts | https://raw.githubusercontent.com/Stas-Z/music-platform/43cffa1/client/src/pages/TrackDeatailsPage/model/slice/trackDetailsPageSlice.ts | Stas-Z/music-platform 43cffa1 client/src/pages/TrackDeatailsPage/model/slice/trackDetailsPageSlice.ts | true | 200 | 1,528 | import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { ITrack } from '@/src/entities/Track'
import { TrackDetailsPageSchema } from '../types/trackDetailsPageSchema'
import { fetchTrackById } from '../services/fetchTrackById/fetchTrackById'
import { HYDRATE } from 'next-redux-wrapper'
import { HydrateAct... | 5 |
alafrance/matcha | fcb1147 | backend/routes/browsingRouter.ts | TypeScript | www.github.com/alafrance/matcha/tree/main/backend/routes/browsingRouter.ts | https://raw.githubusercontent.com/alafrance/matcha/fcb1147/backend/routes/browsingRouter.ts | alafrance/matcha fcb1147 backend/routes/browsingRouter.ts | true | 200 | 378 | import express from "express";
import BrowsingController from "../controllers/browsingController.ts";
import {verifyAuth} from "../middlewares/authMiddleware.ts";
const browsingRouter = express.Router();
browsingRouter.get('/', verifyAuth, BrowsingController.browse);
browsingRouter.get('/create-fake-users', BrowsingC... | 4 |
SazukinPavel/blog-app | 1a6d851 | server/src/routers/authRouter.ts | TypeScript | www.github.com/SazukinPavel/blog-app/tree/main/server/src/routers/authRouter.ts | https://raw.githubusercontent.com/SazukinPavel/blog-app/1a6d851/server/src/routers/authRouter.ts | SazukinPavel/blog-app 1a6d851 server/src/routers/authRouter.ts | true | 200 | 3,148 | import {Request, Response, Router} from "express";
import {validate} from "class-validator";
import {LoginDto} from "../dto/auth/LoginDto";
import User, {IUser} from "../models/User";
import CryptoService from "../services/CryptoService";
import {AuthResponseDto} from "../dto/auth/AuthResponseDto";
import JwtService fr... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.