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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Mdabdullah3/Babur-Hut-Backend | b709a62 | models/orderModel.ts | TypeScript | www.github.com/Mdabdullah3/Babur-Hut-Backend/tree/main/models/orderModel.ts | https://raw.githubusercontent.com/Mdabdullah3/Babur-Hut-Backend/b709a62/models/orderModel.ts | Mdabdullah3/Babur-Hut-Backend b709a62 models/orderModel.ts | true | 200 | 5,408 | import type { OrderDocument } from '../types/order'
import type { Model } from 'mongoose'
import { model, models, Schema } from 'mongoose'
import isEmail from 'validator/lib/isEmail'
/*
{
"user": "user.id",
"product": "product.id",
// "transactionId": "transactionId",
"price": "my-product-name",
"currency": "BD... | 2 |
COS301-SE-2022/PaWdopt | e5164a0 | apps/pawdopt/capacitor.config.ts | TypeScript | www.github.com/COS301-SE-2022/PaWdopt/tree/main/apps/pawdopt/capacitor.config.ts | https://raw.githubusercontent.com/COS301-SE-2022/PaWdopt/e5164a0/apps/pawdopt/capacitor.config.ts | COS301-SE-2022/PaWdopt e5164a0 apps/pawdopt/capacitor.config.ts | true | 200 | 327 | import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.cloud5.pawdopt',
appName: 'pawdopt',
webDir: '../../dist/apps/pawdopt',
bundledWebRuntime: false,
server: {
cleartext: true,
}
};
//! REMEMBER TO REMOVE CLEARTEXT WHEN READY FOR PRODUCTION
export default c... | 3 |
navidasj96/modema-graphql-refactor | 9ee3c71 | src/modules/product-product-category/product-product-category.service.ts | TypeScript | www.github.com/navidasj96/modema-graphql-refactor/tree/main/src/modules/product-product-category/product-product-category.service.ts | https://raw.githubusercontent.com/navidasj96/modema-graphql-refactor/9ee3c71/src/modules/product-product-category/product-product-category.service.ts | navidasj96/modema-graphql-refactor 9ee3c71 src/modules/product-product-category/product-product-category.service.ts | true | 200 | 879 | import { Injectable } from '@nestjs/common';
import { CreateProductProductCategoryInput } from './dto/create-product-product-category.input';
import { UpdateProductProductCategoryInput } from './dto/update-product-product-category.input';
@Injectable()
export class ProductProductCategoryService {
create(createProduc... | 7 |
EstebanFernandes/front-ocean-echo | 8dea202 | src/app/game-page/game-page.component.ts | TypeScript | www.github.com/EstebanFernandes/front-ocean-echo/tree/main/src/app/game-page/game-page.component.ts | https://raw.githubusercontent.com/EstebanFernandes/front-ocean-echo/8dea202/src/app/game-page/game-page.component.ts | EstebanFernandes/front-ocean-echo 8dea202 src/app/game-page/game-page.component.ts | true | 200 | 5,390 | import { Component } from '@angular/core';
import { Player } from '../models/player.model'
import { WaitingRoomPageComponent } from '../waiting-room-page/waiting-room-page.component';
import { StatDisplayComponent } from '../stat-display/stat-display.component';
import { UpgradeComponent } from '../upgrade/upgrade.comp... | 6 |
emmyzee45/soundctrl-frontend | f436c80 | src/redux/redux-slices/UsersSlice.ts | TypeScript | www.github.com/emmyzee45/soundctrl-frontend/tree/main/src/redux/redux-slices/UsersSlice.ts | https://raw.githubusercontent.com/emmyzee45/soundctrl-frontend/f436c80/src/redux/redux-slices/UsersSlice.ts | emmyzee45/soundctrl-frontend f436c80 src/redux/redux-slices/UsersSlice.ts | true | 200 | 2,362 | import { createSlice } from "@reduxjs/toolkit";
import type { PayloadAction } from '@reduxjs/toolkit'
import type { RootState } from '../store'
interface User {
username: string,
email: string,
password: string,
createdAt: string,
_id: string,
isArtist: boolean,
subscribedUsers: string[],
... | 5 |
EdsonRodrigoBA/WEBAPI-NETCORE5-DDD-ANGULAR | e910498 | Angular_WebApp/Angular-WebApp/src/app/Interceptor/interceptor.ts | TypeScript | www.github.com/EdsonRodrigoBA/WEBAPI-NETCORE5-DDD-ANGULAR/tree/main/Angular_WebApp/Angular-WebApp/src/app/Interceptor/interceptor.ts | https://raw.githubusercontent.com/EdsonRodrigoBA/WEBAPI-NETCORE5-DDD-ANGULAR/e910498/Angular_WebApp/Angular-WebApp/src/app/Interceptor/interceptor.ts | EdsonRodrigoBA/WEBAPI-NETCORE5-DDD-ANGULAR e910498 Angular_WebApp/Angular-WebApp/src/app/Interceptor/interceptor.ts | true | 200 | 1,553 | import { HttpEvent, HttpHandler, HttpHeaders, HttpInterceptor, HttpRequest } from "@angular/common/http";
import { Observable, finalize, map } from "rxjs";
import { AutenticSaervice } from "../Services/Autentica.service";
import { Injectable } from "@angular/core";
import { NgxSpinnerService } from "ngx-spinner";
@Inj... | 0 |
zhenteman/test_node | 368f317 | src/database/mongodb/classify/sub/index.schema.ts | TypeScript | www.github.com/zhenteman/test_node/tree/main/src/database/mongodb/classify/sub/index.schema.ts | https://raw.githubusercontent.com/zhenteman/test_node/368f317/src/database/mongodb/classify/sub/index.schema.ts | zhenteman/test_node 368f317 src/database/mongodb/classify/sub/index.schema.ts | true | 200 | 746 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import OptionsSchema from '../../schemas/options.schema';
@Schema(OptionsSchema)
export class ClassifySub extends Document {
@Prop({
required: true,
unique: true,
})
id: string;
@Prop({... | 1 |
voiceflow/test-history-rebase | 12fbc65 | apps/creator-app/src/pages/Conversations/components/TranscriptDialog/util.ts | TypeScript | www.github.com/voiceflow/test-history-rebase/tree/main/apps/creator-app/src/pages/Conversations/components/TranscriptDialog/util.ts | https://raw.githubusercontent.com/voiceflow/test-history-rebase/12fbc65/apps/creator-app/src/pages/Conversations/components/TranscriptDialog/util.ts | voiceflow/test-history-rebase 12fbc65 apps/creator-app/src/pages/Conversations/components/TranscriptDialog/util.ts | true | 200 | 829 | import dayjs from 'dayjs';
import advancedFormat from 'dayjs/plugin/advancedFormat';
import timezone from 'dayjs/plugin/timezone';
import type { Message } from '@/pages/Prototype/types';
dayjs.extend(timezone);
dayjs.extend(advancedFormat);
export const transformDialogTimestamp = (dialogs: Message[]): Message[] =>
... | 2 |
cybersmily/cybersmily_datafort | 07ea6d8 | src/app/shared/cp2020/cp2020-acpa/services/cp2020-acpa-data-attrbutes/cp2020-acpa-data-attributes.service.spec.ts | TypeScript | www.github.com/cybersmily/cybersmily_datafort/tree/main/src/app/shared/cp2020/cp2020-acpa/services/cp2020-acpa-data-attrbutes/cp2020-acpa-data-attributes.service.spec.ts | https://raw.githubusercontent.com/cybersmily/cybersmily_datafort/07ea6d8/src/app/shared/cp2020/cp2020-acpa/services/cp2020-acpa-data-attrbutes/cp2020-acpa-data-attributes.service.spec.ts | cybersmily/cybersmily_datafort 07ea6d8 src/app/shared/cp2020/cp2020-acpa/services/cp2020-acpa-data-attrbutes/cp2020-acpa-data-attributes.service.spec.ts | true | 200 | 725 | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { DataService } from './../../../../services/file-services/dataservice/data.service';
import { TestBed } from '@angular/core/testing';
import { Cp2020ACPADataAttributesService } from './cp2020-acpa-data-attributes.service';
describe('Cp202... | 4 |
pauloendoh/playground-graphql | 44fc86a | src/domains/category/CategoryResolver.ts | TypeScript | www.github.com/pauloendoh/playground-graphql/tree/main/src/domains/category/CategoryResolver.ts | https://raw.githubusercontent.com/pauloendoh/playground-graphql/44fc86a/src/domains/category/CategoryResolver.ts | pauloendoh/playground-graphql 44fc86a src/domains/category/CategoryResolver.ts | true | 200 | 1,088 | import { Arg, Ctx, Mutation, Query, UseMiddleware } from 'type-graphql'
import { Category } from '../../../prisma-typegraphql'
import { isAuth } from '../../utils/auth/isAuth'
import { MyContext } from '../../utils/auth/MyContext'
import { CategoryService } from './CategoryService'
import { CategoryInput } from './type... | 3 |
NovaStream2030/coinvault-miniapp | ad0d72a | src/app/providers/query.ts | TypeScript | www.github.com/NovaStream2030/coinvault-miniapp/tree/main/src/app/providers/query.ts | https://raw.githubusercontent.com/NovaStream2030/coinvault-miniapp/ad0d72a/src/app/providers/query.ts | NovaStream2030/coinvault-miniapp ad0d72a src/app/providers/query.ts | true | 200 | 616 | import { MutationCache, QueryCache, QueryClient } from '@tanstack/react-query'
import { router } from './router'
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
networkMode: 'offlineFirst',
refetchOnWindowFocus: true,
},
},
queryCache: new QueryCache({
onError: ... | 7 |
AlineEspindola/nearby | 05e7a23 | api/nlw-pocket-mobile-api-main/src/server.ts | TypeScript | www.github.com/AlineEspindola/nearby/tree/main/api/nlw-pocket-mobile-api-main/src/server.ts | https://raw.githubusercontent.com/AlineEspindola/nearby/05e7a23/api/nlw-pocket-mobile-api-main/src/server.ts | AlineEspindola/nearby 05e7a23 api/nlw-pocket-mobile-api-main/src/server.ts | true | 200 | 393 | import express from "express"
import { routes } from "./routes"
import { errorHandling } from "./middlewares/error-handling"
const PORT = 3333
const app = express()
app.use(express.json())
app.use(routes)
app.use(errorHandling)
// app.listen(PORT, () => console.log(`Server is running on port ${PORT}`))
app.listen(... | 6 |
marygrishchuk/nestjs-server-book-stall | 94a6c21 | src/modules/books/books.repository.ts | TypeScript | www.github.com/marygrishchuk/nestjs-server-book-stall/tree/main/src/modules/books/books.repository.ts | https://raw.githubusercontent.com/marygrishchuk/nestjs-server-book-stall/94a6c21/src/modules/books/books.repository.ts | marygrishchuk/nestjs-server-book-stall 94a6c21 src/modules/books/books.repository.ts | true | 200 | 934 | import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Book } from './book.entity';
@Injectable()
export class BooksRepository {
constructor(
@InjectRepository(Book)
private readonly booksORM... | 0 |
astrioh/codepencil-server | 37564d2 | src/plugins/jwt.plugin.ts | TypeScript | www.github.com/astrioh/codepencil-server/tree/main/src/plugins/jwt.plugin.ts | https://raw.githubusercontent.com/astrioh/codepencil-server/37564d2/src/plugins/jwt.plugin.ts | astrioh/codepencil-server 37564d2 src/plugins/jwt.plugin.ts | true | 200 | 597 | import { FastifyRequest, FastifyReply } from 'fastify';
import fjwt from '@fastify/jwt';
import { CONFIG } from '../config/config';
import fp from 'fastify-plugin';
export default fp(async (server) => {
server.register(fjwt, {
secret: CONFIG.JWT_SECRET,
});
server.decorate(
'authenticate',
async (re... | 5 |
dobogdas-bu/Angular_AddressBook | 0c8ac84 | src/app/components/address-book-add-edit/address-book-add-edit.component.ts | TypeScript | www.github.com/dobogdas-bu/Angular_AddressBook/tree/main/src/app/components/address-book-add-edit/address-book-add-edit.component.ts | https://raw.githubusercontent.com/dobogdas-bu/Angular_AddressBook/0c8ac84/src/app/components/address-book-add-edit/address-book-add-edit.component.ts | dobogdas-bu/Angular_AddressBook 0c8ac84 src/app/components/address-book-add-edit/address-book-add-edit.component.ts | true | 200 | 2,052 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CONTACTS } from 'src/app/model/mock-data';
import { Contact } from '../../model/contact';
import { AddressProviderService } from
'../../model/address-provider.service';
import { Router } from '@angular/route... | 1 |
uys2000-funo/funo-web | 0df41d0 | src/server/types/messages.ts | TypeScript | www.github.com/uys2000-funo/funo-web/tree/main/src/server/types/messages.ts | https://raw.githubusercontent.com/uys2000-funo/funo-web/0df41d0/src/server/types/messages.ts | uys2000-funo/funo-web 0df41d0 src/server/types/messages.ts | true | 200 | 3,701 | import { FirebaseDocument, FirebasePagination } from "./firebase";
import { names, userPhotoUrls, messages } from "./examples";
export class MessageData {
uID!: string;
photoUrl!: string;
message!: string;
hasAccess!: string[];
/**
* MessageData Object
* @param {boolean} isExample - Creates a example M... | 4 |
vmartinez1984/Peliculas.Angular | d255523 | src/app/peliculas/filtro-de-peliculas/filtro-de-peliculas.component.ts | TypeScript | www.github.com/vmartinez1984/Peliculas.Angular/tree/main/src/app/peliculas/filtro-de-peliculas/filtro-de-peliculas.component.ts | https://raw.githubusercontent.com/vmartinez1984/Peliculas.Angular/d255523/src/app/peliculas/filtro-de-peliculas/filtro-de-peliculas.component.ts | vmartinez1984/Peliculas.Angular d255523 src/app/peliculas/filtro-de-peliculas/filtro-de-peliculas.component.ts | true | 200 | 2,094 | import { Component } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { GeneroDto } from 'src/app/interfaces/genero-dto-in';
import { PeliculaDto } from 'src/app/interfaces/pelicula-dto';
import { ServicioService } from 'src/app/servicios/servicio.service';
@Component({
selector:... | 6 |
sammachin/node-red-matter-controller | beb1d6a | node_modules/@matter/general/dist/cjs/storage/StorageBackendMemory.d.ts | TypeScript | www.github.com/sammachin/node-red-matter-controller/tree/main/node_modules/@matter/general/dist/cjs/storage/StorageBackendMemory.d.ts | https://raw.githubusercontent.com/sammachin/node-red-matter-controller/beb1d6a/node_modules/%40matter/general/dist/cjs/storage/StorageBackendMemory.d.ts | sammachin/node-red-matter-controller beb1d6a node_modules/@matter/general/dist/cjs/storage/StorageBackendMemory.d.ts | true | 200 | 1,100 | /**
* @license
* Copyright 2022-2024 Matter.js Authors
* SPDX-License-Identifier: Apache-2.0
*/
import { SyncStorage } from "./Storage.js";
import { SupportedStorageTypes } from "./StringifyTools.js";
export declare class StorageBackendMemory extends SyncStorage {
#private;
protected store: any;
protect... | 5 |
AceBlazer/react-native-ultimate-starter | 4636439 | app/store/slices/actions/global.actions.ts | TypeScript | www.github.com/AceBlazer/react-native-ultimate-starter/tree/main/app/store/slices/actions/global.actions.ts | https://raw.githubusercontent.com/AceBlazer/react-native-ultimate-starter/4636439/app/store/slices/actions/global.actions.ts | AceBlazer/react-native-ultimate-starter 4636439 app/store/slices/actions/global.actions.ts | true | 200 | 576 | import {defaultStore} from '../..';
import {GlobalError} from '../reducers/global.reducer';
const {globalLoaderUpdated, globalErrorUpdated, reset} =
defaultStore.slices.global.actions;
const updateGlobalLoader = (enabled: boolean) => {
return {
type: globalLoaderUpdated.type,
payload: enabled,
};
};
co... | 0 |
okeleyekabiru/wonderserviceUi | 7bf5564 | src/app/layout/public/public.component.ts | TypeScript | www.github.com/okeleyekabiru/wonderserviceUi/tree/main/src/app/layout/public/public.component.ts | https://raw.githubusercontent.com/okeleyekabiru/wonderserviceUi/7bf5564/src/app/layout/public/public.component.ts | okeleyekabiru/wonderserviceUi 7bf5564 src/app/layout/public/public.component.ts | true | 200 | 1,096 | import { Component, OnInit, ElementRef } from '@angular/core';
import { BasePageComponent } from '../../../app/pages/base-page';
import { Store } from '@ngrx/store';
import { IAppState } from '../../../app/interfaces/app-state';
import { FormBuilder } from '@angular/forms';
import { HttpService } from '../../../app/ser... | 2 |
projeto-final-grupo07/backend-project-ff-m6 | e287d26 | src/services/User/create.user.service.ts | TypeScript | www.github.com/projeto-final-grupo07/backend-project-ff-m6/tree/main/src/services/User/create.user.service.ts | https://raw.githubusercontent.com/projeto-final-grupo07/backend-project-ff-m6/e287d26/src/services/User/create.user.service.ts | projeto-final-grupo07/backend-project-ff-m6 e287d26 src/services/User/create.user.service.ts | true | 200 | 997 | import { hash } from 'bcryptjs';
import prismaCliente from '../../database/prismaCliente';
import { IUserCreate } from '../../interfaces/User';
const CreateUserService = async (data: IUserCreate) => {
const {
Address,
birthDate,
cpf,
describe,
email,
is_active,
name,
password,
pho... | 1 |
dutchhackers/gamify | 44334c1 | libs/gamify/badges/src/lib/badges.module.ts | TypeScript | www.github.com/dutchhackers/gamify/tree/main/libs/gamify/badges/src/lib/badges.module.ts | https://raw.githubusercontent.com/dutchhackers/gamify/44334c1/libs/gamify/badges/src/lib/badges.module.ts | dutchhackers/gamify 44334c1 libs/gamify/badges/src/lib/badges.module.ts | true | 200 | 373 | import { DataModule, ApplicationsService, BadgesService, UsersService } from '@gamify/data';
import { Module } from '@nestjs/common';
import { BadgesController } from './badges.controller';
@Module({
imports: [DataModule],
controllers: [BadgesController],
providers: [BadgesService, ApplicationsService, UsersServ... | 7 |
bryanhad/e-commerce-Mockup-HTML-Tailwind-TS | c9c61d8 | src/components/products.ts | TypeScript | www.github.com/bryanhad/e-commerce-Mockup-HTML-Tailwind-TS/tree/main/src/components/products.ts | https://raw.githubusercontent.com/bryanhad/e-commerce-Mockup-HTML-Tailwind-TS/c9c61d8/src/components/products.ts | bryanhad/e-commerce-Mockup-HTML-Tailwind-TS c9c61d8 src/components/products.ts | true | 200 | 2,630 | import {priceFormatter} from '../lib/priceFormatter.js';
let products = [
{
id: 0,
image: 'https://media.cnn.com/api/v1/images/stellar/prod/120604032828-fresh-ripe-bananas.jpg?q=w_3590,h_2774,x_0,y_0,c_fill',
title: 'Pisang Cavendish',
desc: 'Pisang yang sangat enak dan berserat tin... | 4 |
RahkarSanat/kiz-sdk-js | 2035372 | src/common/types/filter.type.ts | TypeScript | www.github.com/RahkarSanat/kiz-sdk-js/tree/main/src/common/types/filter.type.ts | https://raw.githubusercontent.com/RahkarSanat/kiz-sdk-js/2035372/src/common/types/filter.type.ts | RahkarSanat/kiz-sdk-js 2035372 src/common/types/filter.type.ts | true | 200 | 368 | /* eslint-disable @typescript-eslint/no-explicit-any */
import { FilterQuery, ProjectionFields, SortOrder } from 'mongoose';
export type Query<T = any> = FilterQuery<T>;
export type Projection<T = any> = ProjectionFields<T>;
export type Pagination<K = any> = {
limit?: number;
skip?: number;
sort?: { [key in key... | 3 |
ku-connect/backend | 492145a | src/modules/notification/repository.ts | TypeScript | www.github.com/ku-connect/backend/tree/main/src/modules/notification/repository.ts | https://raw.githubusercontent.com/ku-connect/backend/492145a/src/modules/notification/repository.ts | ku-connect/backend 492145a src/modules/notification/repository.ts | true | 200 | 1,517 | import { notificationInPrivate, notiSubscriptionInPrivate } from "../../../drizzle/schema";
import { takeUniqueOrThrow, type DB } from "../../db";
import { eq, desc, inArray } from "drizzle-orm";
async function findMyNotificationPaginated(db: DB, userId: string, page: number, size: number) {
const offset = (page - 1)... | 6 |
PabliyoCR/AlcaBox | b19895b | frontend/src/app/pages/packages/packages.component.ts | TypeScript | www.github.com/PabliyoCR/AlcaBox/tree/main/frontend/src/app/pages/packages/packages.component.ts | https://raw.githubusercontent.com/PabliyoCR/AlcaBox/b19895b/frontend/src/app/pages/packages/packages.component.ts | PabliyoCR/AlcaBox b19895b frontend/src/app/pages/packages/packages.component.ts | true | 200 | 3,960 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { BsMo... | 0 |
suntku/nextjs-kkureg-nextui | d2fdb98 | lib/store.ts | TypeScript | www.github.com/suntku/nextjs-kkureg-nextui/tree/main/lib/store.ts | https://raw.githubusercontent.com/suntku/nextjs-kkureg-nextui/d2fdb98/lib/store.ts | suntku/nextjs-kkureg-nextui d2fdb98 lib/store.ts | true | 200 | 541 | import { configureStore } from '@reduxjs/toolkit'
import userSlice from '@/lib/features/userSlice'
import authSlice from '@/lib/features/authSlice'
export const makeStore = () => {
return configureStore({
reducer: {
auth: authSlice,
user: userSlice,
},
})
}
// Infer the type of makeStore
expor... | 1 |
joaowillamy/realiza | 8e44ebb | modules/api/user/src/user/dto/create-user.dto.ts | TypeScript | www.github.com/joaowillamy/realiza/tree/main/modules/api/user/src/user/dto/create-user.dto.ts | https://raw.githubusercontent.com/joaowillamy/realiza/8e44ebb/modules/api/user/src/user/dto/create-user.dto.ts | joaowillamy/realiza 8e44ebb modules/api/user/src/user/dto/create-user.dto.ts | true | 200 | 1,651 | import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty, Matches, MaxLength, MinLength } from 'class-validator';
export class CreateUserDto {
@IsNotEmpty({
message: 'Informe um endereço de email',
})
@IsEmail(
{},
{
message: 'Informe um endereço de email válido',
}
)
... | 2 |
hoyun293/what2eat-front | 9b8749b | src/api/vote-api.ts | TypeScript | www.github.com/hoyun293/what2eat-front/tree/main/src/api/vote-api.ts | https://raw.githubusercontent.com/hoyun293/what2eat-front/9b8749b/src/api/vote-api.ts | hoyun293/what2eat-front 9b8749b src/api/vote-api.ts | true | 200 | 419 | import { IGetVotePlaces, IPostVote } from './../redux/vote-insert/vote-insert-payloads'
import axios from '../utils/http-with-credential-util'
export const getVotePlaces = (p: IGetVotePlaces) => {
return axios.get('/restaurants', { params: p })
}
export const postVote = (p: IPostVote) => {
return axios.post('/vot... | 5 |
trungnguyen592/Recruitment_Web_BE | b61cf62 | src/auth/jwt-auth.guard.ts | TypeScript | www.github.com/trungnguyen592/Recruitment_Web_BE/tree/main/src/auth/jwt-auth.guard.ts | https://raw.githubusercontent.com/trungnguyen592/Recruitment_Web_BE/b61cf62/src/auth/jwt-auth.guard.ts | trungnguyen592/Recruitment_Web_BE b61cf62 src/auth/jwt-auth.guard.ts | true | 200 | 1,878 | import {
ExecutionContext,
ForbiddenException,
Injectable,
UnauthorizedException,
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { AuthGuard } from '@nestjs/passport';
import { Request } from 'express';
import { IS_PUBLIC_KEY, IS_PUBLIC_PERMISSION } from 'src/decorator/custom... | 3 |
aeroxmotion/nequi-frontend-test | a11ff0b | src/app/features/tasks/services/task-actions.service.spec.ts | TypeScript | www.github.com/aeroxmotion/nequi-frontend-test/tree/main/src/app/features/tasks/services/task-actions.service.spec.ts | https://raw.githubusercontent.com/aeroxmotion/nequi-frontend-test/a11ff0b/src/app/features/tasks/services/task-actions.service.spec.ts | aeroxmotion/nequi-frontend-test a11ff0b src/app/features/tasks/services/task-actions.service.spec.ts | true | 200 | 383 | import { TestBed } from '@angular/core/testing';
import { TaskActionsService } from './task-actions.service';
describe('TaskActionsService', () => {
let service: TaskActionsService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(TaskActionsService);
});
it('should be... | 7 |
Lyfebloc-Network/sdk | a85526f | src/sdk/base/ERC4337EthersSigner.ts | TypeScript | www.github.com/Lyfebloc-Network/sdk/tree/main/src/sdk/base/ERC4337EthersSigner.ts | https://raw.githubusercontent.com/Lyfebloc-Network/sdk/a85526f/src/sdk/base/ERC4337EthersSigner.ts | Lyfebloc-Network/sdk a85526f src/sdk/base/ERC4337EthersSigner.ts | true | 200 | 4,158 | import { Deferrable, defineReadOnly } from '@ethersproject/properties';
import { Provider, TransactionRequest, TransactionResponse } from '@ethersproject/providers';
import { Signer } from '@ethersproject/abstract-signer';
import { Bytes } from 'ethers';
import { ERC4337EthersProvider } from './ERC4337EthersProvider';... | 6 |
Arifzyn19/AR-CDN | cdd3f8c | src/utils/logger.ts | TypeScript | www.github.com/Arifzyn19/AR-CDN/tree/main/src/utils/logger.ts | https://raw.githubusercontent.com/Arifzyn19/AR-CDN/cdd3f8c/src/utils/logger.ts | Arifzyn19/AR-CDN cdd3f8c src/utils/logger.ts | true | 200 | 1,675 | import winston from "winston";
import path from "path";
// Define log levels
const levels = {
error: 0,
warn: 1,
info: 2,
http: 3,
debug: 4,
};
// Define log colors
const colors = {
error: "red",
warn: "yellow",
info: "green",
http: "magenta",
debug: "white",
};
// Tell winston to use these color... | 0 |
danilo-silv/meresgate | 0c2316d | src/integration/resources/auth/types.ts | TypeScript | www.github.com/danilo-silv/meresgate/tree/main/src/integration/resources/auth/types.ts | https://raw.githubusercontent.com/danilo-silv/meresgate/0c2316d/src/integration/resources/auth/types.ts | danilo-silv/meresgate 0c2316d src/integration/resources/auth/types.ts | true | 200 | 1,446 | export enum USER_STATUS {
AWAITING_CONFIRM_MOBILE = 1, // O cadastro do usuário realizado via aplicativo esta pendente de confirmação do numero do celular informado
AWAITING_CONFIRM_EMAIL = 2, // O cadastro do usuário realizado via aplicativo esta pendente de confirmação de e-mail
AWAITING_APPROVAL = 3, // Os dad... | 1 |
BorisIurciuc/fepro | 7379145 | src/lessons/lesson04/data.js | TypeScript | www.github.com/BorisIurciuc/fepro/tree/main/src/lessons/lesson04/data.js | https://raw.githubusercontent.com/BorisIurciuc/fepro/7379145/src/lessons/lesson04/data.js | BorisIurciuc/fepro 7379145 src/lessons/lesson04/data.js | true | 200 | 273 | export const lionData = {
name: 'Alex',
species: 'Lion',
img: 'https://i.ebayimg.com/images/g/jJoAAMXQUShQ815G/s-l1200.jpg'
}
export const zebraData = {
name: 'Martin',
species: 'zebra',
img: 'https://i.ytimg.com/vi/XfFdj0rdcws/maxresdefault.jpg'
} | 2 |
PSW-LEVI-FIVE/Intranet-App | 727b896 | src/app/manager/manager.component.ts | TypeScript | www.github.com/PSW-LEVI-FIVE/Intranet-App/tree/main/src/app/manager/manager.component.ts | https://raw.githubusercontent.com/PSW-LEVI-FIVE/Intranet-App/727b896/src/app/manager/manager.component.ts | PSW-LEVI-FIVE/Intranet-App 727b896 src/app/manager/manager.component.ts | true | 200 | 474 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-manager',
templateUrl: './manager.component.html',
styleUrls: ['./manager.component.css']
})
export class ManagerComponent implements OnInit {
constructor(private router : Router) { }
ng... | 5 |
ViniciusTheCoder/RentX | c29c3b3 | src/screens/MyCars/styles.ts | TypeScript | www.github.com/ViniciusTheCoder/RentX/tree/main/src/screens/MyCars/styles.ts | https://raw.githubusercontent.com/ViniciusTheCoder/RentX/c29c3b3/src/screens/MyCars/styles.ts | ViniciusTheCoder/RentX c29c3b3 src/screens/MyCars/styles.ts | true | 200 | 2,232 | import { getStatusBarHeight } from 'react-native-iphone-x-helper';
import { RFValue } from 'react-native-responsive-fontsize';
import styled from 'styled-components/native';
export const Container = styled.View`
flex: 1;
align-items: center;
background-color: ${({ theme }) => theme.colors.background_primary};
`;
... | 7 |
ecorbisierSimplon/quizz-app | ca3ace3 | backend/src/questions/question.service.ts | TypeScript | www.github.com/ecorbisierSimplon/quizz-app/tree/main/backend/src/questions/question.service.ts | https://raw.githubusercontent.com/ecorbisierSimplon/quizz-app/ca3ace3/backend/src/questions/question.service.ts | ecorbisierSimplon/quizz-app ca3ace3 backend/src/questions/question.service.ts | true | 200 | 897 | import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Question } from './question.entity';
import { CreateQuestionDto } from './dto/createQuestion.dto';
@Injectable()
export class QuestionService {
constructor(
@InjectRepos... | 6 |
beyealioune/planner | ae7f9d5 | planner/src/app/navbar/navbar.component.ts | TypeScript | www.github.com/beyealioune/planner/tree/main/planner/src/app/navbar/navbar.component.ts | https://raw.githubusercontent.com/beyealioune/planner/ae7f9d5/planner/src/app/navbar/navbar.component.ts | beyealioune/planner ae7f9d5 planner/src/app/navbar/navbar.component.ts | true | 200 | 3,883 | import { Component, OnInit } from "@angular/core";
import { AuthService } from "../service/auth.service";
import { AvailabilityServiceService } from "../service/availability-service.service";
import { UserService } from "../service/user.service";
import { CommonModule } from "@angular/common";
import { HttpClientModule... | 1 |
victorlun/TidsbankenFE | c946d90 | tidsbanken-front-end/src/app/app-routing.module.ts | TypeScript | www.github.com/victorlun/TidsbankenFE/tree/main/tidsbanken-front-end/src/app/app-routing.module.ts | https://raw.githubusercontent.com/victorlun/TidsbankenFE/c946d90/tidsbanken-front-end/src/app/app-routing.module.ts | victorlun/TidsbankenFE c946d90 tidsbanken-front-end/src/app/app-routing.module.ts | true | 200 | 1,588 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from './guards/auth.guard';
import { LoginPage } from './pages/login/login.page';
import { DashboardPage } from './pages/dashboard/dashboard.page';
import { ManageVacationRequestsPage } from './pages/m... | 0 |
Kasunjith-Bimal/Angular-Tutorial-Event-App | 6e77717 | src/app/events/create-event.component.ts | TypeScript | www.github.com/Kasunjith-Bimal/Angular-Tutorial-Event-App/tree/main/src/app/events/create-event.component.ts | https://raw.githubusercontent.com/Kasunjith-Bimal/Angular-Tutorial-Event-App/6e77717/src/app/events/create-event.component.ts | Kasunjith-Bimal/Angular-Tutorial-Event-App 6e77717 src/app/events/create-event.component.ts | true | 200 | 1,264 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { EventService, IEvent } from './shared';
@Component({
selector: 'event-create',
templateUrl: './create-event.component.html',
styles: [` em {float:right;color : #E05C65;padding-left:10px;}
.error input... | 4 |
hosyaeuw/artsofte-test | 19a32b5 | src/app/app-routing.module.ts | TypeScript | www.github.com/hosyaeuw/artsofte-test/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/hosyaeuw/artsofte-test/19a32b5/src/app/app-routing.module.ts | hosyaeuw/artsofte-test 19a32b5 src/app/app-routing.module.ts | true | 200 | 748 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CompanyListComponent } from './pages/company-list/company-list.component';
import { CompanyDetailComponent } from './pages/company-detail/company-detail.component';
import { CompanyYandexMapComponent } from './pag... | 3 |
juanmarsan/mercadona | 498abc6 | src/app/app-routing.module.ts | TypeScript | www.github.com/juanmarsan/mercadona/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/juanmarsan/mercadona/498abc6/src/app/app-routing.module.ts | juanmarsan/mercadona 498abc6 src/app/app-routing.module.ts | true | 200 | 732 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ReviewProductsComponent } from './features/review-products/review-products.component';
import { AuthGuard } from './Core/Services/auth/auth.guard';
import { ShowProductsComponent } from './features/show-products/s... | 5 |
es0811/recipe-book | 1140116 | src/app/auth/auth.module.ts | TypeScript | www.github.com/es0811/recipe-book/tree/main/src/app/auth/auth.module.ts | https://raw.githubusercontent.com/es0811/recipe-book/1140116/src/app/auth/auth.module.ts | es0811/recipe-book 1140116 src/app/auth/auth.module.ts | true | 200 | 505 | import { NgModule } from "@angular/core";
import { AuthComponent } from "./auth.component";
import { AuthRoutingModule } from "./auth-routing.module";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { SharedModule } from "../shared/shared.module";
@NgModule({
de... | 2 |
VivekDounde09/itacoin-server-main | dc0ff02 | src/ledger/contracts/base.contract.ts | TypeScript | www.github.com/VivekDounde09/itacoin-server-main/tree/main/src/ledger/contracts/base.contract.ts | https://raw.githubusercontent.com/VivekDounde09/itacoin-server-main/dc0ff02/src/ledger/contracts/base.contract.ts | VivekDounde09/itacoin-server-main dc0ff02 src/ledger/contracts/base.contract.ts | true | 200 | 2,982 | import { OnModuleInit } from '@nestjs/common';
import { Chain, Network, ProviderKind } from '@Common';
import { BaseContract as Contract, ContractRunner, ethers } from 'ethers';
import {
AddressDictionary,
ContractFactory,
NetworkAddressDictionary,
} from '../ledger.types';
import { LedgerService } from '../ledge... | 1 |
jpus/s00 | 38ba379 | PondWader/node-socks5-server/src/connectionHandler.ts | TypeScript | www.github.com/jpus/s00/tree/main/PondWader/node-socks5-server/src/connectionHandler.ts | https://raw.githubusercontent.com/jpus/s00/38ba379/PondWader/node-socks5-server/src/connectionHandler.ts | jpus/s00 38ba379 PondWader/node-socks5-server/src/connectionHandler.ts | true | 200 | 1,601 | import { InitialisedSocks5Connection, Socks5ConnectionStatus } from "./types";
import net from "net";
// The default connection handler
export default function (connection: InitialisedSocks5Connection, sendStatus: (status: keyof typeof Socks5ConnectionStatus) => void) {
if (connection.command !== 'connect') retur... | 0 |
Alex-RV/NextStep | 6cc3dac | src/pages/api/write_sheets.ts | TypeScript | www.github.com/Alex-RV/NextStep/tree/main/src/pages/api/write_sheets.ts | https://raw.githubusercontent.com/Alex-RV/NextStep/6cc3dac/src/pages/api/write_sheets.ts | Alex-RV/NextStep 6cc3dac src/pages/api/write_sheets.ts | true | 200 | 2,188 | import { google } from "googleapis";
import { NextApiRequest, NextApiResponse } from "next";
type SheetForm={
first: string
last: string
pronouns: string
email: string
phone: string
birth: string
residence: string
education: string
experience: string
goals: string
interests:... | 6 |
SGO-ERP/erp-web-personal-file | 9bcd7a9 | src/API/Generated/models/PersonnalReserveRead.ts | TypeScript | www.github.com/SGO-ERP/erp-web-personal-file/tree/main/src/API/Generated/models/PersonnalReserveRead.ts | https://raw.githubusercontent.com/SGO-ERP/erp-web-personal-file/9bcd7a9/src/API/Generated/models/PersonnalReserveRead.ts | SGO-ERP/erp-web-personal-file 9bcd7a9 src/API/Generated/models/PersonnalReserveRead.ts | true | 200 | 360 | /* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Enum } from './Enum';
export type PersonnalReserveRead = {
id?: string;
created_at?: string;
updated_at?: string;
reserve?: Enum;
date_from?: string;
date_to?: string;
user_id?: string;
document_link?: s... | 3 |
Syldel/nuxt-alcohol | 7177bac | composables/useGraphQL.ts | TypeScript | www.github.com/Syldel/nuxt-alcohol/tree/main/composables/useGraphQL.ts | https://raw.githubusercontent.com/Syldel/nuxt-alcohol/7177bac/composables/useGraphQL.ts | Syldel/nuxt-alcohol 7177bac composables/useGraphQL.ts | true | 200 | 4,152 | import type { Alcohol, CountryInfo } from '~/types/graphql/types'
const GET_COUNTRIES = gql`
query GetCountries($type: String, $langCode: String) {
getUniqueCountries(filter: { type: $type, langCode: $langCode }) {
names {
fr
}
iso
iso3
regions {
names {
fr... | 4 |
Amit006/Angular-material-custom-color-buttons | 764dc62 | src/example/button-overview-example.ts | TypeScript | www.github.com/Amit006/Angular-material-custom-color-buttons/tree/main/src/example/button-overview-example.ts | https://raw.githubusercontent.com/Amit006/Angular-material-custom-color-buttons/764dc62/src/example/button-overview-example.ts | Amit006/Angular-material-custom-color-buttons 764dc62 src/example/button-overview-example.ts | true | 200 | 728 | import {Component} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatDividerModule} from '@angular/material/divider';
import {MatButtonModule} from '@angular/material/button';
/**
* @title Basic buttons
*/
@Component({
selector: 'button-overview-example',
templateUr... | 5 |
waynehongzane/simple-design | 41b50aa | .storybook/preview.ts | TypeScript | www.github.com/waynehongzane/simple-design/tree/main/.storybook/preview.ts | https://raw.githubusercontent.com/waynehongzane/simple-design/41b50aa/.storybook/preview.ts | waynehongzane/simple-design 41b50aa .storybook/preview.ts | true | 200 | 336 | import type { Preview } from "@storybook/react";
import "../src/styles/index.scss"
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
decorators: []
};
export d... | 7 |
js-tasks-ru/nodejs-20241202_dinmukhamed-amirov | a98b04e | 05-db/01-crud-tasks/tasks/tasks.controller.ts | TypeScript | www.github.com/js-tasks-ru/nodejs-20241202_dinmukhamed-amirov/tree/main/05-db/01-crud-tasks/tasks/tasks.controller.ts | https://raw.githubusercontent.com/js-tasks-ru/nodejs-20241202_dinmukhamed-amirov/a98b04e/05-db/01-crud-tasks/tasks/tasks.controller.ts | js-tasks-ru/nodejs-20241202_dinmukhamed-amirov a98b04e 05-db/01-crud-tasks/tasks/tasks.controller.ts | true | 200 | 1,015 | import {
Controller,
Get,
Post,
Patch,
Delete,
Param,
Body,
NotFoundException,
} from "@nestjs/common";
import { TasksService } from "./tasks.service";
import { Task } from "./entities/task.entity";
import { CreateTaskDto } from "./dto/create-task.dto";
import { UpdateTaskDto } from "./dto/update-task.d... | 1 |
FT51Grupo02/ribuzz-general | a2e8129 | Backend/ribuzz-project/src/file-upload/file-upload.controller.ts | TypeScript | www.github.com/FT51Grupo02/ribuzz-general/tree/main/Backend/ribuzz-project/src/file-upload/file-upload.controller.ts | https://raw.githubusercontent.com/FT51Grupo02/ribuzz-general/a2e8129/Backend/ribuzz-project/src/file-upload/file-upload.controller.ts | FT51Grupo02/ribuzz-general a2e8129 Backend/ribuzz-project/src/file-upload/file-upload.controller.ts | true | 200 | 2,828 | /* eslint-disable prettier/prettier */
import { FileTypeValidator,MaxFileSizeValidator,Controller,Put, Param,UseInterceptors ,UploadedFile,ParseFilePipe, UseGuards} from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { FileUploudService } from './file-upload.service';
import { ApiT... | 0 |
Njuki-create/SavingsApp | d252a57 | src/app/services/sendmoney.service.ts | TypeScript | www.github.com/Njuki-create/SavingsApp/tree/main/src/app/services/sendmoney.service.ts | https://raw.githubusercontent.com/Njuki-create/SavingsApp/d252a57/src/app/services/sendmoney.service.ts | Njuki-create/SavingsApp d252a57 src/app/services/sendmoney.service.ts | true | 200 | 471 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Sendmoney } from '../interfaces/sendmoney';
@Injectable({
providedIn: 'root'
})
export class SendmoneyService {
constructor(private http: HttpClient) { }
postData(data: any... | 6 |
Etourne-Organization/etourne | 629eabf | src/modalSubmitHandler/index.ts | TypeScript | www.github.com/Etourne-Organization/etourne/tree/main/src/modalSubmitHandler/index.ts | https://raw.githubusercontent.com/Etourne-Organization/etourne/629eabf/src/modalSubmitHandler/index.ts | Etourne-Organization/etourne 629eabf src/modalSubmitHandler/index.ts | true | 200 | 843 | import { ModalSubmitInteraction, Client } from 'discord.js';
import modalSubmitFunctionList from './modalSubmitList';
import logFile from '../globalUtils/logFile';
export default async (
client: Client,
interaction: ModalSubmitInteraction,
): Promise<void> => {
try {
const { customId } = interaction;
const mo... | 2 |
lassecapel/wordzy-ai | 8bd6ea0 | src/types.ts | TypeScript | www.github.com/lassecapel/wordzy-ai/tree/main/src/types.ts | https://raw.githubusercontent.com/lassecapel/wordzy-ai/8bd6ea0/src/types.ts | lassecapel/wordzy-ai 8bd6ea0 src/types.ts | true | 200 | 834 | export interface Language {
code: string;
name: string;
}
export interface Translation {
id: string;
value: string;
}
export interface Word {
id: string;
value: string;
translations: Translation[];
category: string;
complexity: number;
}
export interface WordList {
id: string;
title: string;
... | 4 |
xilujain/zu7al-store-backend | dc831c0 | src/controllers/AuthController.ts | TypeScript | www.github.com/xilujain/zu7al-store-backend/tree/main/src/controllers/AuthController.ts | https://raw.githubusercontent.com/xilujain/zu7al-store-backend/dc831c0/src/controllers/AuthController.ts | xilujain/zu7al-store-backend dc831c0 src/controllers/AuthController.ts | true | 200 | 862 | import { type NextFunction, type Request, type Response } from 'express'
import * as authService from '../services/authService'
export const login = async (req: Request, res: Response, next: NextFunction) => {
try {
const { email, password } = req.body
const loginUser = await authService.loginUser({ email, ... | 3 |
gorillalogic/componentize | 1ccd652 | .templates/mantine/Button/Button.stories.ts | TypeScript | www.github.com/gorillalogic/componentize/tree/main/.templates/mantine/Button/Button.stories.ts | https://raw.githubusercontent.com/gorillalogic/componentize/1ccd652/.templates/mantine/Button/Button.stories.ts | gorillalogic/componentize 1ccd652 .templates/mantine/Button/Button.stories.ts | true | 200 | 1,246 | import { CustomButton } from './Button';
const meta = {
title: 'Mantine/CustomButton',
component: CustomButton,
tags: ['autodocs'],
argTypes: {
color: { control: 'color' },
variant: { control: 'select', options: ['default', 'filled', 'light', 'subtle', 'outline'] },
disabled: { control: 'boolean' }... | 5 |
Roma-Kotie/Blog-MEAN | 7e847b3 | Frontend/src/app/auth/auth.component.ts | TypeScript | www.github.com/Roma-Kotie/Blog-MEAN/tree/main/Frontend/src/app/auth/auth.component.ts | https://raw.githubusercontent.com/Roma-Kotie/Blog-MEAN/7e847b3/Frontend/src/app/auth/auth.component.ts | Roma-Kotie/Blog-MEAN 7e847b3 Frontend/src/app/auth/auth.component.ts | true | 200 | 772 | import { Component } from '@angular/core';
import { AuthService } from '../auth.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-auth',
templateUrl: './auth.component.html',
styleUrls: ['./auth.component.scss']
})
export class AuthComponent {
constructor(
private authService... | 6 |
benevolent-games/humanoid | 2da7432 | s/ecs/components/hybrids/gimbal_rig.ts | TypeScript | www.github.com/benevolent-games/humanoid/tree/main/s/ecs/components/hybrids/gimbal_rig.ts | https://raw.githubusercontent.com/benevolent-games/humanoid/2da7432/s/ecs/components/hybrids/gimbal_rig.ts | benevolent-games/humanoid 2da7432 s/ecs/components/hybrids/gimbal_rig.ts | true | 200 | 822 |
import {Vec2, label} from "@benev/toolbox"
import {TransformNode} from "@babylonjs/core/Meshes/transformNode.js"
import {HybridComponent} from "../../hub.js"
import {gimbaltool} from "../../../tools/gimbaltool.js"
export class GimbalRig extends HybridComponent<{}> {
transformA = new TransformNode(
label("transfor... | 4 |
maicol1912/api-ngrx | 9d2dc1e | src/app/state/selectors/product.selector.ts | TypeScript | www.github.com/maicol1912/api-ngrx/tree/main/src/app/state/selectors/product.selector.ts | https://raw.githubusercontent.com/maicol1912/api-ngrx/9d2dc1e/src/app/state/selectors/product.selector.ts | maicol1912/api-ngrx 9d2dc1e src/app/state/selectors/product.selector.ts | true | 200 | 697 | import { createSelector } from "@ngrx/store"
import { ProductState } from "src/app/interfaces/products.state"
import { Appstate } from "../app.state"
export const selectProductsFeature = (state:Appstate) => state.products //accedemos a la propiedad padre del estado en este caso el users
export const selectListProduct... | 1 |
jacintic/ClaseII | 43a6941 | angular_1/src/app/app.component.ts | TypeScript | www.github.com/jacintic/ClaseII/tree/main/angular_1/src/app/app.component.ts | https://raw.githubusercontent.com/jacintic/ClaseII/43a6941/angular_1/src/app/app.component.ts | jacintic/ClaseII 43a6941 angular_1/src/app/app.component.ts | true | 200 | 330 | import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
// attr
title: string = 'angular_1';
// constructor
// methods
hello()
{
this.title = "Titulo cambiado desde un bot... | 5 |
Mohammad-Hazim-Q/supermarket | 0f5eb23 | src/app/@base/@main/layout/layout.component.ts | TypeScript | www.github.com/Mohammad-Hazim-Q/supermarket/tree/main/src/app/@base/@main/layout/layout.component.ts | https://raw.githubusercontent.com/Mohammad-Hazim-Q/supermarket/0f5eb23/src/app/%40base/%40main/layout/layout.component.ts | Mohammad-Hazim-Q/supermarket 0f5eb23 src/app/@base/@main/layout/layout.component.ts | true | 200 | 3,207 | import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { AfterContentChecked, ChangeDetectorRef, Component, OnInit, ViewChild, inject } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatDrawer } from '@angular/material/sidenav';
import { LoginComponent } from... | 6 |
Freedteck/angular-template | 3aecccf | src/app/app.component.ts | TypeScript | www.github.com/Freedteck/angular-template/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/Freedteck/angular-template/3aecccf/src/app/app.component.ts | Freedteck/angular-template 3aecccf src/app/app.component.ts | true | 200 | 386 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NgxSemanticModule } from 'ngx-semantic';
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, NgxSemanticModule],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
}... | 2 |
incognitochain/incognito-extension-2.0 | 89217ff | app/popup/module/Send/Send.constant.ts | TypeScript | www.github.com/incognitochain/incognito-extension-2.0/tree/main/app/popup/module/Send/Send.constant.ts | https://raw.githubusercontent.com/incognitochain/incognito-extension-2.0/89217ff/app/popup/module/Send/Send.constant.ts | incognitochain/incognito-extension-2.0 89217ff app/popup/module/Send/Send.constant.ts | true | 200 | 454 | export enum SendActionTypes {
FETCHING = "[send] Fetching data",
FETCHED = "[send] Fetched data",
FREE_DATA = "[send] Free data",
UNSHIELD = "[send] Unshield",
SET_NETWORK_FEE = "[send] Set network fee",
SET_BURN_FEE = "[send] Set burn fee",
SET_INIT_FORM = "[send] Set int form",
}
export const FORM_CONF... | 0 |
JSeniorSan/fullstack-test-blog-app | 03847f5 | frontend/src/entities/store/posts/posts-slice.ts | TypeScript | www.github.com/JSeniorSan/fullstack-test-blog-app/tree/main/frontend/src/entities/store/posts/posts-slice.ts | https://raw.githubusercontent.com/JSeniorSan/fullstack-test-blog-app/03847f5/frontend/src/entities/store/posts/posts-slice.ts | JSeniorSan/fullstack-test-blog-app 03847f5 frontend/src/entities/store/posts/posts-slice.ts | true | 200 | 1,855 | import { PayloadAction, createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { PostActionData, PostState } from "./types";
import { Posts } from "../../services/posts";
export const getPosts = createAsyncThunk("posts/fetchPosts", async () => {
try {
const response = await Posts.getPosts();
return ... | 1 |
walkerblobato/daily-diet | 91a4f78 | src/schemas/registerMeal.ts | TypeScript | www.github.com/walkerblobato/daily-diet/tree/main/src/schemas/registerMeal.ts | https://raw.githubusercontent.com/walkerblobato/daily-diet/91a4f78/src/schemas/registerMeal.ts | walkerblobato/daily-diet 91a4f78 src/schemas/registerMeal.ts | true | 200 | 618 | import * as yup from 'yup';
export const registerMeal = () => {
return yup.object({
name: yup.string().trim().matches(/^[^\d]*$/, 'O nome não deve conter números.').required('Informe o nome da refeição.'),
description: yup.string().min(5, 'Uma descrição de refeição deve ter pelo o menos 5 caracters.').requir... | 3 |
gradii/mp4-parser | 467243b | src/stream/CAVLCWriter.ts | TypeScript | www.github.com/gradii/mp4-parser/tree/main/src/stream/CAVLCWriter.ts | https://raw.githubusercontent.com/gradii/mp4-parser/467243b/src/stream/CAVLCWriter.ts | gradii/mp4-parser 467243b src/stream/CAVLCWriter.ts | true | 200 | 1,030 | /**
* A class responsible for outputting exp-Golumb values into binary stream
*
*/
import { BitStreamOutputBuffer, StreamOutputBuffer } from '@gradii/stream-buffer';
export class CAVLCWriter extends BitStreamOutputBuffer {
public constructor(out: StreamOutputBuffer) {
super(out);
}
public writeU(value?: ... | 5 |
Wadhah998/VirtiverseFrontEnd | 19c86b3 | src/app/Services/participation.service.ts | TypeScript | www.github.com/Wadhah998/VirtiverseFrontEnd/tree/main/src/app/Services/participation.service.ts | https://raw.githubusercontent.com/Wadhah998/VirtiverseFrontEnd/19c86b3/src/app/Services/participation.service.ts | Wadhah998/VirtiverseFrontEnd 19c86b3 src/app/Services/participation.service.ts | true | 200 | 1,764 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Participation } from '../Models/participation/participation.model';
import { map } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class ParticipationService {
... | 6 |
heshanm27/nest_host | 2846aee | src/article/article.module.ts | TypeScript | www.github.com/heshanm27/nest_host/tree/main/src/article/article.module.ts | https://raw.githubusercontent.com/heshanm27/nest_host/2846aee/src/article/article.module.ts | heshanm27/nest_host 2846aee src/article/article.module.ts | true | 200 | 564 | import { Module } from '@nestjs/common';
import { ArticleService } from './article.service';
import { ArticleController } from './article.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UploadFile } from './entities/upload.entity';
import { ArticleContent } from './entities/articleContent.entity'... | 4 |
Alfa10Andre/app | 3125b39 | src/totara/locale/index.ts | TypeScript | www.github.com/Alfa10Andre/app/tree/main/src/totara/locale/index.ts | https://raw.githubusercontent.com/Alfa10Andre/app/3125b39/src/totara/locale/index.ts | Alfa10Andre/app 3125b39 src/totara/locale/index.ts | true | 200 | 1,067 | /**
* This file is part of Totara Enterprise.
*
* Copyright (C) 2019 onwards Totara Learning Solutions LTD
*
* Totara Enterprise is provided only to Totara Learning Solutions
* LTD’s customers and partners, pursuant to the terms and
* conditions of a separate agreement with Totara Learning
* Solutions LTD or it... | 0 |
NomadNiko/stripe-marketserver | cf28dc9 | .install-scripts/scripts/property-generation-scripts/remove-document.ts | TypeScript | www.github.com/NomadNiko/stripe-marketserver/tree/main/.install-scripts/scripts/property-generation-scripts/remove-document.ts | https://raw.githubusercontent.com/NomadNiko/stripe-marketserver/cf28dc9/.install-scripts/scripts/property-generation-scripts/remove-document.ts | NomadNiko/stripe-marketserver cf28dc9 .install-scripts/scripts/property-generation-scripts/remove-document.ts | true | 200 | 692 | import replace from '../../helpers/replace';
import path from 'path';
import fs from 'fs';
const removeDocumentPropertyGeneration = async () => {
const filesToRemove = [
path.join(process.cwd(), '.hygen', 'property', 'add-to-document'),
];
replace({
path: path.join(process.cwd(), 'package.json'),
ac... | 1 |
StiliyanDyankov/powernote-backend | 25ae39c | src/db/portalDB.ts | TypeScript | www.github.com/StiliyanDyankov/powernote-backend/tree/main/src/db/portalDB.ts | https://raw.githubusercontent.com/StiliyanDyankov/powernote-backend/25ae39c/src/db/portalDB.ts | StiliyanDyankov/powernote-backend 25ae39c src/db/portalDB.ts | true | 200 | 1,966 | import mongoose from "mongoose";
// import config from "config";
mongoose.set("strictQuery", false);
// const db: string = config.get("db");
// const connectDb = async () => {
// try {
// console.log(db);
// await mongoose.connect(db);
// } catch (e: unknown) {
// console.log(e);
// ... | 3 |
forum-gamers/Blue-Axolotl | ba4a3cb | src/mutations/post/comment.ts | TypeScript | www.github.com/forum-gamers/Blue-Axolotl/tree/main/src/mutations/post/comment.ts | https://raw.githubusercontent.com/forum-gamers/Blue-Axolotl/ba4a3cb/src/mutations/post/comment.ts | forum-gamers/Blue-Axolotl ba4a3cb src/mutations/post/comment.ts | true | 200 | 450 | import { gql } from "@apollo/client";
export const CREATECOMMENT = gql`
mutation Mutation($args: CommentForm!) {
createComment(args: $args) {
_id
createdAt
postId
reply {
_id
createdAt
text
updatedAt
userId
}
text
updatedAt
u... | 2 |
meerkats-dev-team/meerkats-land | 33dc1b7 | server/src/config/config.ts | TypeScript | www.github.com/meerkats-dev-team/meerkats-land/tree/main/server/src/config/config.ts | https://raw.githubusercontent.com/meerkats-dev-team/meerkats-land/33dc1b7/server/src/config/config.ts | meerkats-dev-team/meerkats-land 33dc1b7 server/src/config/config.ts | true | 200 | 289 | import dotenv from 'dotenv'
dotenv.config()
const config = {
port: Number(process.env.PORT) || 5000,
databaseUri: process.env.MONGODB_URI as string,
saltRounds: Number(process.env.SALT_ROUNDS),
secretPassword: process.env.SECRET_PASSWORD as string
}
export default config | 5 |
hemanruru0715/jimin.cho | 3a60839 | app/utils/supabase.ts | TypeScript | www.github.com/hemanruru0715/jimin.cho/tree/main/app/utils/supabase.ts | https://raw.githubusercontent.com/hemanruru0715/jimin.cho/3a60839/app/utils/supabase.ts | hemanruru0715/jimin.cho 3a60839 app/utils/supabase.ts | true | 200 | 2,277 | import { createClient } from '@supabase/supabase-js';
// Supabase 클라이언트 초기화
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL ?? "";
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? "";
//개발db, 운영db 분리하기
const supabaseDb = process.env.NODE_ENV == 'development' ? 'user_stats_dev' : 'user_stats';... | 6 |
thecodacus/create-bolt-plugin | 8ea24ae | src/index.ts | TypeScript | www.github.com/thecodacus/create-bolt-plugin/tree/main/src/index.ts | https://raw.githubusercontent.com/thecodacus/create-bolt-plugin/8ea24ae/src/index.ts | thecodacus/create-bolt-plugin 8ea24ae src/index.ts | true | 200 | 9,542 | import { Command } from 'commander';
import inquirer from 'inquirer';
import fs from 'fs-extra';
import path from 'path';
import chalk from 'chalk';
import { pluginTypeDefs } from './plugin-lib-types';
const program = new Command();
interface PluginAnswers {
name: string;
type: 'ui' | 'middleware' | 'hybrid';... | 0 |
edogonb/effects-app | 118e379 | src/app/store/reducers/usuarios.reducer.ts | TypeScript | www.github.com/edogonb/effects-app/tree/main/src/app/store/reducers/usuarios.reducer.ts | https://raw.githubusercontent.com/edogonb/effects-app/118e379/src/app/store/reducers/usuarios.reducer.ts | edogonb/effects-app 118e379 src/app/store/reducers/usuarios.reducer.ts | true | 200 | 1,122 | import { Action, createReducer, on } from '@ngrx/store';
import { Usuario } from 'src/app/models/usuario.model';
import { cargarUsuarios, cargarUsuariosError, cargarUsuariosSuccess } from '../actions';
export interface UsuariosState {
users:Usuario[];
loaded: boolean,
loading: boolean,
error: any
}
e... | 5 |
MathCunhaDev/pokedex-test | 8a4ea3e | src/theme/global.ts | TypeScript | www.github.com/MathCunhaDev/pokedex-test/tree/main/src/theme/global.ts | https://raw.githubusercontent.com/MathCunhaDev/pokedex-test/8a4ea3e/src/theme/global.ts | MathCunhaDev/pokedex-test 8a4ea3e src/theme/global.ts | true | 200 | 641 | import { createGlobalStyle } from "styled-components";
export const GlobalStyle = createGlobalStyle`
* {
margin: 0;
padding: 0;
outline: 0;
box-sizing: border-box;
}
*:focus {
outline: 0;
}
html, body, #root {
height: 100%;
}
body {
-webkit-font-smoothing: antialiased;
position: relative;
min-hei... | 2 |
tmtmtoo/try-react-frameworks | 1561486 | packages/backend/src/commands/infrastructures/pg.test.ts | TypeScript | www.github.com/tmtmtoo/try-react-frameworks/tree/main/packages/backend/src/commands/infrastructures/pg.test.ts | https://raw.githubusercontent.com/tmtmtoo/try-react-frameworks/1561486/packages/backend/src/commands/infrastructures/pg.test.ts | tmtmtoo/try-react-frameworks 1561486 packages/backend/src/commands/infrastructures/pg.test.ts | true | 200 | 6,812 | import { readFile } from "node:fs/promises";
import { Pool } from "pg";
import { GenericContainer, StartedTestContainer, Wait } from "testcontainers";
import { afterAll, beforeAll, describe, expect, it } from "vitest";
import { IoError } from "../../commands/repositories";
import { selectBelongingOrganizationByUserId }... | 1 |
mcarolmartins/gobarber-backend | ad66ab7 | src/modules/users/infra/http/controllers/ProfileController.ts | TypeScript | www.github.com/mcarolmartins/gobarber-backend/tree/main/src/modules/users/infra/http/controllers/ProfileController.ts | https://raw.githubusercontent.com/mcarolmartins/gobarber-backend/ad66ab7/src/modules/users/infra/http/controllers/ProfileController.ts | mcarolmartins/gobarber-backend ad66ab7 src/modules/users/infra/http/controllers/ProfileController.ts | true | 200 | 1,058 | import { Request, Response } from "express";
import { container } from 'tsyringe';
import UpdateProfileService from '@modules/users/services/UpdateProfileService';
import ShowProfileService from '@modules/users/services/ShowProfileService';
export default class ProfileController {
public async show(request: Request... | 6 |
liapanou/kouponapp | d598174 | pages/api/products.ts | TypeScript | www.github.com/liapanou/kouponapp/tree/main/pages/api/products.ts | https://raw.githubusercontent.com/liapanou/kouponapp/d598174/pages/api/products.ts | liapanou/kouponapp d598174 pages/api/products.ts | true | 200 | 574 | import { NextApiRequest, NextApiResponse } from "next";
import { createProduct, getProducts } from "../../lib/products/api";
import { createUser, getUsers, login, logout } from "../../lib/users/api";
import { withSessionRoute } from "../../lib/withSession";
export default withSessionRoute(loginRoute);
async function ... | 0 |
leandromartin114/birthdayreminder-back-v2 | f9549eb | pages/api/user/birthdays.ts | TypeScript | www.github.com/leandromartin114/birthdayreminder-back-v2/tree/main/pages/api/user/birthdays.ts | https://raw.githubusercontent.com/leandromartin114/birthdayreminder-back-v2/f9549eb/pages/api/user/birthdays.ts | leandromartin114/birthdayreminder-back-v2 f9549eb pages/api/user/birthdays.ts | true | 200 | 909 | import method from 'micro-method-router'
import type { NextApiRequest, NextApiResponse } from 'next'
import { getUsersBirthdays } from '@/controllers/user-controller'
import { authMiddleware, CORSMiddleware } from '@/middlewares'
import connectToMongo from '@/database/mongo'
//Get user's appointment
async function get... | 2 |
corbet91/Home-Test- | 9788a26 | lib/utils.ts | TypeScript | www.github.com/corbet91/Home-Test-/tree/main/lib/utils.ts | https://raw.githubusercontent.com/corbet91/Home-Test-/9788a26/lib/utils.ts | corbet91/Home-Test- 9788a26 lib/utils.ts | true | 200 | 479 | import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function removeEmptyAndUndefined<T extends Record<string, any>>(
obj: T
): T {
for (const key in obj) {
if (Object.prototype.hasOwnProp... | 1 |
happy-coders/fun-cli | 14c0ad3 | src/lib/core/project/tasks/task.factory.ts | TypeScript | www.github.com/happy-coders/fun-cli/tree/main/src/lib/core/project/tasks/task.factory.ts | https://raw.githubusercontent.com/happy-coders/fun-cli/14c0ad3/src/lib/core/project/tasks/task.factory.ts | happy-coders/fun-cli 14c0ad3 src/lib/core/project/tasks/task.factory.ts | true | 200 | 294 | import { TaskName } from './abstract.task';
import { OpenVSCode } from './open-editor/vscode.task';
export function createTask(name: TaskName) {
if (name === 'open-vscode') {
return new OpenVSCode();
}
throw new Error(`Cannot create action "${name}". Action factory not found.`);
}
| 3 |
RenanFachin/PUCRS_subscription-control-system | 0e89bf9 | src/infra/database/prisma/mappers/prisma-assinatura-mapper.ts | TypeScript | www.github.com/RenanFachin/PUCRS_subscription-control-system/tree/main/src/infra/database/prisma/mappers/prisma-assinatura-mapper.ts | https://raw.githubusercontent.com/RenanFachin/PUCRS_subscription-control-system/0e89bf9/src/infra/database/prisma/mappers/prisma-assinatura-mapper.ts | RenanFachin/PUCRS_subscription-control-system 0e89bf9 src/infra/database/prisma/mappers/prisma-assinatura-mapper.ts | true | 200 | 1,837 | import { UniqueEntityCodigo } from '@/core/entities/unique-entity-codigo'
import { AssinaturaDetails } from '@/domain/application/use-cases/get-client-subscription'
import { Assinatura } from '@/domain/enterprise/entities/assinaturas'
import { Prisma, Assinatura as PrismaAssinatura } from '@prisma/client'
export class... | 5 |
Deco-Team/art-kids-api | fdd2e03 | src/common/common.module.ts | TypeScript | www.github.com/Deco-Team/art-kids-api/tree/main/src/common/common.module.ts | https://raw.githubusercontent.com/Deco-Team/art-kids-api/fdd2e03/src/common/common.module.ts | Deco-Team/art-kids-api fdd2e03 src/common/common.module.ts | true | 200 | 318 | import { Global, Module } from '@nestjs/common'
import { AppLogger } from '@common/services/app-logger.service'
import { HelperService } from '@common/services/helper.service'
@Global()
@Module({
providers: [AppLogger, HelperService],
exports: [AppLogger, HelperService]
})
export class CommonModule {}
| 2 |
yabash247/frontend | ae30ab7 | src/ReduxToolkit/Reducers/authSlice.ts | TypeScript | www.github.com/yabash247/frontend/tree/main/src/ReduxToolkit/Reducers/authSlice.ts | https://raw.githubusercontent.com/yabash247/frontend/ae30ab7/src/ReduxToolkit/Reducers/authSlice.ts | yabash247/frontend ae30ab7 src/ReduxToolkit/Reducers/authSlice.ts | true | 200 | 4,839 | import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import axios from "axios";
import {jwtDecode, JwtPayload } from "jwt-decode";
import Swal from "sweetalert2";
import { NavigateFunction } from "react-router-dom";
import { backendURL } from "../../Utils/Constants";
// Define the structure of the decoded... | 1 |
LuisGustavoCZP/AlphaBank | ca81153 | server/src/controller/user/login-user.ts | TypeScript | www.github.com/LuisGustavoCZP/AlphaBank/tree/main/server/src/controller/user/login-user.ts | https://raw.githubusercontent.com/LuisGustavoCZP/AlphaBank/ca81153/server/src/controller/user/login-user.ts | LuisGustavoCZP/AlphaBank ca81153 server/src/controller/user/login-user.ts | true | 200 | 912 | import { CookieOptions, Request, Response } from "express";
import { LoginUserService } from "../../services";
import { ResponseWriter } from "../../utils";
const cookieOptions : CookieOptions =
{
sameSite:'none',
secure:true,
httpOnly:true
}
class LoginUser
{
public async handle(req: Request, res: R... | 0 |
mohammadtaha02/angular-project-sof | 523fcb6 | project/src/app/home/home.component.ts | TypeScript | www.github.com/mohammadtaha02/angular-project-sof/tree/main/project/src/app/home/home.component.ts | https://raw.githubusercontent.com/mohammadtaha02/angular-project-sof/523fcb6/project/src/app/home/home.component.ts | mohammadtaha02/angular-project-sof 523fcb6 project/src/app/home/home.component.ts | true | 200 | 565 | import { Component, OnInit , Injector} from '@angular/core';
import { Supplement } from '../model/supplements';
import { SupplementsService } from '../services/supplements.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeC... | 5 |
beshkin/beshkin.github.io | 55eba0a | server/src/app.module.ts | TypeScript | www.github.com/beshkin/beshkin.github.io/tree/main/server/src/app.module.ts | https://raw.githubusercontent.com/beshkin/beshkin.github.io/55eba0a/server/src/app.module.ts | beshkin/beshkin.github.io 55eba0a server/src/app.module.ts | true | 200 | 873 | import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Movie } from '@modules/movies/entities/movie.entity';
import { MoviesModule } fr... | 3 |
pater97/CinemaOk | 8cad5ff | app/repositories/SerieRepository.ts | TypeScript | www.github.com/pater97/CinemaOk/tree/main/app/repositories/SerieRepository.ts | https://raw.githubusercontent.com/pater97/CinemaOk/8cad5ff/app/repositories/SerieRepository.ts | pater97/CinemaOk 8cad5ff app/repositories/SerieRepository.ts | true | 200 | 4,738 | //importo il modello movie fatto in precedenza
import { Serie } from 'App/Models/Serie'
//importo il modello video
import { Video } from 'App/Models/Video'
//importo modello recensioni
import { Reviews } from 'App/Models/Reviews'
//importo api helper ovvero uno schema per le richieste api
import ApiHelper from 'App/Hel... | 1 |
VladaBessikalo/Recipe-Book | ffa6026 | src/app/auth/auth.service.ts | TypeScript | www.github.com/VladaBessikalo/Recipe-Book/tree/main/src/app/auth/auth.service.ts | https://raw.githubusercontent.com/VladaBessikalo/Recipe-Book/ffa6026/src/app/auth/auth.service.ts | VladaBessikalo/Recipe-Book ffa6026 src/app/auth/auth.service.ts | true | 200 | 4,280 | import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable, catchError, tap, throwError } from 'rxjs';
import { User } from './user.model';
import { Router } from '@angular/router';
import { environment } from 'src/environments/... | 2 |
blitzsprinter/UMFA-Dunamis-Web-ManagementPortal | dc0a9d2 | src/app/branch/buildings/manage-building/building-equipment/view-equipment/node-details/cost-tariff/cost-tariff.component.spec.ts | TypeScript | www.github.com/blitzsprinter/UMFA-Dunamis-Web-ManagementPortal/tree/main/src/app/branch/buildings/manage-building/building-equipment/view-equipment/node-details/cost-tariff/cost-tariff.component.spec.ts | https://raw.githubusercontent.com/blitzsprinter/UMFA-Dunamis-Web-ManagementPortal/dc0a9d2/src/app/branch/buildings/manage-building/building-equipment/view-equipment/node-details/cost-tariff/cost-tariff.component.spec.ts | blitzsprinter/UMFA-Dunamis-Web-ManagementPortal dc0a9d2 src/app/branch/buildings/manage-building/building-equipment/view-equipment/node-details/cost-tariff/cost-tariff.component.spec.ts | true | 200 | 1,572 | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {CostTariffComponent} from './cost-tariff.component';
import {DunamisInputsModule} from 'app/widgets/inputs/shared/dunamis-inputs.module';
import {NgrxFormsModule} from 'ngrx-forms';
import {NgSelectModule} from '@ng-select/ng-select';
impo... | 5 |
kevinc16/mywebsite | ce08932 | src/stars.ts | TypeScript | www.github.com/kevinc16/mywebsite/tree/main/src/stars.ts | https://raw.githubusercontent.com/kevinc16/mywebsite/ce08932/src/stars.ts | kevinc16/mywebsite ce08932 src/stars.ts | true | 200 | 957 | import * as THREE from "three";
import { CSS3DObject } from "three/examples/jsm/renderers/CSS3DRenderer";
export function addStars(scene: THREE.Scene) {
const stars = document.getElementById("stars");
const starsCSS = new CSS3DObject( stars! );
starsCSS.scale.multiplyScalar(2);
const upStars = starsCSS.clon... | 1 |
felipefm12/lab12webav | 3735471 | src/app/users/user-list/user-list.component.ts | TypeScript | www.github.com/felipefm12/lab12webav/tree/main/src/app/users/user-list/user-list.component.ts | https://raw.githubusercontent.com/felipefm12/lab12webav/3735471/src/app/users/user-list/user-list.component.ts | felipefm12/lab12webav 3735471 src/app/users/user-list/user-list.component.ts | true | 200 | 505 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-user-list',
templateUrl: './user-list.component.html',
styleUrls: ['./user-list.component.css']
})
export class UserListComponent implements OnInit {
selectedUserId: number | null = null;
users = [
{ id: 1, name: 'John' },
... | 0 |
jonathanKingston/deli-direct | 2659a60 | src/main.ts | TypeScript | www.github.com/jonathanKingston/deli-direct/tree/main/src/main.ts | https://raw.githubusercontent.com/jonathanKingston/deli-direct/2659a60/src/main.ts | jonathanKingston/deli-direct 2659a60 src/main.ts | true | 200 | 1,012 | import { routes } from "../tmp/routes";
if (!("fetch" in window)) {
document.getElementById("unsupported").removeAttribute("hidden");
}
export {}
declare global {
interface Window {
dataLayer: Array<object>;
}
}
async function init() {
let currentPath: string = document.location.pathname;
if (current... | 7 |
traderjoe-xyz/joe-sdks | 858d94a | packages/v1/src/entities/pair.ts | TypeScript | www.github.com/traderjoe-xyz/joe-sdks/tree/main/packages/v1/src/entities/pair.ts | https://raw.githubusercontent.com/traderjoe-xyz/joe-sdks/858d94a/packages/v1/src/entities/pair.ts | traderjoe-xyz/joe-sdks 858d94a packages/v1/src/entities/pair.ts | true | 200 | 9,377 | import { Price } from './price'
import {
TokenAmount,
BigintIsh,
MINIMUM_LIQUIDITY,
ZERO,
ONE,
FIVE,
_997,
_1000,
ChainId,
sqrt,
parseBigintIsh,
Token
} from '@traderjoe-xyz/sdk-core'
import invariant from 'tiny-invariant'
import JSBI from 'jsbi'
import {
getAddress,
keccak256,
encodePacke... | 3 |
dks-codes/InventoryPro | 100badb | v1.0/frontend/src/app/components/delete-item-modal/delete-item-modal.component.ts | TypeScript | www.github.com/dks-codes/InventoryPro/tree/main/v1.0/frontend/src/app/components/delete-item-modal/delete-item-modal.component.ts | https://raw.githubusercontent.com/dks-codes/InventoryPro/100badb/v1.0/frontend/src/app/components/delete-item-modal/delete-item-modal.component.ts | dks-codes/InventoryPro 100badb v1.0/frontend/src/app/components/delete-item-modal/delete-item-modal.component.ts | true | 200 | 626 | import { Component } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
@Component({
selector: 'app-delete-item-modal',
imports: [MatDialogModule, MatButtonModule],
templateUrl: './delete-item-modal.component... | 2 |
Helioty/Sales | cbdf8d8 | src/app/services/TMS/tms.service.ts | TypeScript | www.github.com/Helioty/Sales/tree/main/src/app/services/TMS/tms.service.ts | https://raw.githubusercontent.com/Helioty/Sales/cbdf8d8/src/app/services/TMS/tms.service.ts | Helioty/Sales cbdf8d8 src/app/services/TMS/tms.service.ts | true | 200 | 1,773 | import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { take } from 'rxjs/operators';
import { API_URL, ENV } from 'src/app/config/app.config.service';
import { Endereco } from 'src/app/services/cliente/cliente.interface';
import { BaseService } from 'src/app/services/http/base.service';... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.