repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Simon-Bin/nestjs_template
src/common/common.module.ts
import { Module } from '@nestjs/common'; import { GlobalPipes } from './pipes'; import { GlobalInterceptors } from './interceptors'; import { GlobalProvider } from './providers'; @Module({ imports: [], providers: [...GlobalPipes, ...GlobalInterceptors, ...GlobalProvider], exports: [...GlobalProvider], }) export ...
Simon-Bin/nestjs_template
src/modules/auth/auth.service.ts
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { UserService } from '../user/user.service'; import { JwtService } from '@nestjs/jwt'; import { UserEntity } from '../user/user.entity'; import { UserFormDto } from './dtos/user-form.dto'; import { classToPlain } from 'class-transformer'; import...
Simon-Bin/nestjs_template
src/common/transformers/datetime.transformer.ts
<gh_stars>1-10 import { ValueTransformer } from 'typeorm'; import * as moment from 'moment'; export class DateTimeTransformer implements ValueTransformer { constructor(private readonly dateTimeReg: string = 'YYYY-MM-DD HH:mm:ss') {} to(value: string) { return value; } from(value: string) { return mome...
Simon-Bin/nestjs_template
src/modules/user/user.service.ts
import { Injectable, NotAcceptableException } from '@nestjs/common'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { TypeOrmCrudService } from '@nestjsx/crud-typeorm'; import * as crypto from 'crypto'; import { UserEntity } from './user.entity'; import { UserFormDto }...
Simon-Bin/nestjs_template
src/modules/cat/cat.service.ts
import { Injectable, HttpException, HttpStatus } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { CatEntity } from './cat.entity'; import { Repository } from 'typeorm'; @Injectable() export class CatService { constructor( @InjectRepository(CatEntity) private readonly catRep...
Simon-Bin/nestjs_template
src/common/providers/pub-sub.provider.ts
import { Provider } from '@nestjs/common'; import { PUB_SUB } from './contants'; import { PubSub } from 'graphql-subscriptions'; export const PubSubProvider: Provider = { provide: PUB_SUB, useValue: new PubSub(), };
Simon-Bin/nestjs_template
src/common/pipes/index.ts
<filename>src/common/pipes/index.ts import { Provider, ValidationPipe } from '@nestjs/common'; import { GlobalPipeAdapter } from '../utils/provider.adapter'; const pipes = [new ValidationPipe()]; export const GlobalPipes: Provider[] = pipes.map(GlobalPipeAdapter);
Simon-Bin/nestjs_template
src/common/providers/contants.ts
<filename>src/common/providers/contants.ts export const PUB_SUB = Symbol('pub_sub');
Simon-Bin/nestjs_template
src/app.module.ts
<filename>src/app.module.ts import { Module, CacheModule, CacheInterceptor, Global } from '@nestjs/common'; import { ServeStaticModule } from '@nestjs/serve-static'; import { GraphQLModule } from '@nestjs/graphql'; import { join } from 'path'; import { ConfigModule } from './config/config.module'; import { TypeOrmModul...
Simon-Bin/nestjs_template
src/common/filters/http-exception-filter.filter.ts
import { ArgumentsHost, Catch, ExceptionFilter, HttpException, } from '@nestjs/common'; import { Request, Response } from 'express'; import moment = require('moment'); @Catch(HttpException) export class HttpExceptionFilterFilter<T> implements ExceptionFilter { catch(exception: HttpException, host: ArgumentsH...
Simon-Bin/nestjs_template
src/modules/auth/dtos/user-form.dto.ts
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, MaxLength, MinLength } from 'class-validator'; export class UserFormDto { @ApiProperty({ required: true, example: 'Simon-Bin' }) @IsNotEmpty() @MaxLength(15, { message: '用户名太长了' }) @MinLength(3, { message: '用户名太短了' }) username: string; @A...
Simon-Bin/nestjs_template
src/modules/cat/cat.resolver.ts
import { Resolver, Mutation, Args, Query, Subscription } from '@nestjs/graphql'; import { Inject } from '@nestjs/common'; import { CatService } from './cat.service'; import { CatEntity } from './cat.entity'; import { PUB_SUB } from 'src/common/providers/contants'; import { PubSub } from 'graphql-subscriptions'; @Resol...
Simon-Bin/nestjs_template
src/common/utils/provider.adapter.ts
import { APP_PIPE, APP_INTERCEPTOR, APP_FILTER, APP_GUARD } from '@nestjs/core'; /** * 适配全局的通道 * @param pipe */ export const GlobalPipeAdapter = (pipe: any) => { return { provide: APP_PIPE, useValue: pipe, }; }; /** * 适配 全局的拦截器 * @param interceptor */ export const GlobalInterceptorAdapter = (interce...
Simon-Bin/nestjs_template
src/common/providers/index.ts
import { Provider } from '@nestjs/common'; import { PubSubProvider } from './pub-sub.provider'; export const GlobalProvider: Provider[] = [PubSubProvider];
Simon-Bin/nestjs_template
src/modules/api/controllers/map.controller.ts
import { Controller, Get } from '@nestjs/common'; import { MapService } from '../services/map.service'; import { map } from 'rxjs/operators'; @Controller() export class MapController { constructor(private readonly mapService: MapService) {} @Get('findAllApi') findAll() { return this.mapService.findAll().pip...
Simon-Bin/nestjs_template
src/modules/index.ts
<filename>src/modules/index.ts<gh_stars>1-10 import { ApiModule } from './api/api.module'; import { UploadModule } from './upload/upload.module'; import { WebsocketModule } from './websocket/websocket.module'; import { AuthModule } from './auth/auth.module'; import { CatModule } from './cat/cat.module'; import { UserM...
Simon-Bin/nestjs_template
src/common/interceptors/index.ts
import { Provider } from '@nestjs/common'; import { ReturnBodyInterceptor } from './return-body.interceptor'; import { GlobalInterceptorAdapter } from '../utils/provider.adapter'; const interceptors = [new ReturnBodyInterceptor()]; export const GlobalInterceptors: Provider[] = interceptors.map( GlobalInterceptorAda...
Simon-Bin/nestjs_template
src/modules/cat/cat.module.ts
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { CatEntity } from './cat.entity'; import { CatService } from './cat.service'; import { CatResolver } from './cat.resolver'; import { CommonModule } from 'src/common/common.module'; @Module({ imports: [TypeOrmModule.forF...
Simon-Bin/nestjs_template
src/common/entities/base.entity.ts
import { PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm'; import { Exclude } from 'class-transformer'; import { DateTimeTransformer } from '../transformers/datetime.transformer'; export class BaseEntity { @PrimaryGeneratedColumn() id: number; @CreateDateColumn({ name: 'cre...
Simon-Bin/nestjs_template
src/main.ts
import { SocketIoAdapter } from './modules/websocket/socketio.adapter'; import 'module-alias/register'; import { NestFactory } from '@nestjs/core'; import { Logger } from '@nestjs/common'; import { NestExpressApplication } from '@nestjs/platform-express'; import * as helmet from 'helmet'; import * as rateLimit from 'ex...
Simon-Bin/nestjs_template
src/modules/auth/auth.controller.ts
<reponame>Simon-Bin/nestjs_template<filename>src/modules/auth/auth.controller.ts import { Controller, Post, Body, UseGuards, Get, Request, UseInterceptors, ClassSerializerInterceptor, } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { ApiResponse, ApiTags, ApiBearerAut...
pietervdvn/ledstrip_sandbox
editor/Utils.ts
<reponame>pietervdvn/ledstrip_sandbox export default class Utils{ public static offerContentsAsDownloadableFile(contents: string | Blob, fileName: string = "download.txt", options?: { mimetype: string }) { const element = document.createElement("a"); ...
pietervdvn/ledstrip_sandbox
editor/index.ts
<filename>editor/index.ts import Blockly from 'blockly'; import lua from 'blockly/lua'; import Utils from "./Utils"; import LedBlocks from "./LedBlocks"; const toolbox = document.getElementById('toolbox') console.log(toolbox) const workspace = Blockly.inject('blockly', {toolbox: toolbox}); LedBlocks.AddBlocks()...
pietervdvn/ledstrip_sandbox
editor/LedBlocks.ts
import Blockly from "blockly"; import lua from "blockly/lua" export default class LedBlocks { static AddBlocks() { this.add_delay_block() this.add_waitframes_block() this.add_wled_block() this.add_led_amount(); } private static add_wled_block() { const delay_json =...
Iphytech/spotlist
src/validators/auth/index.ts
<gh_stars>1-10 export * from './signin-validator'; export * from './signup-validator';
Iphytech/spotlist
src/errors/page-not-found-error.ts
import {CustomError} from './custom-error' export class PageNotFoundError extends CustomError{ reason = "This route does not exist" statusCode = 404; constructor(){ super('This route does not exist'); Object.setPrototypeOf(this, PageNotFoundError.prototype) } serializeErrors(){ ...
Iphytech/spotlist
src/models/song.ts
<filename>src/models/song.ts import mongoose, { Date } from "mongoose"; import { UserDoc } from './index'; const Schema = mongoose.Schema; // An interface that describes the properties that is required to create a list interface SongAttrs { user: UserDoc["_id"]; listId: string; songs: Array<songsDetails>...
Iphytech/spotlist
src/routes/__test__/user.test.ts
<gh_stars>1-10 import request from 'supertest'; import { app } from '../../app'; it('returns 401 if user is not found with the given id (or user is not the one authenticated)', async () => { const userid = '<KEY>'; const listid = 'dd920e'; await request(app) .post(`/api/users/${userid}/lists`) ...
Iphytech/spotlist
src/controllers/auth/signin.controller.ts
import { Request, Response } from 'express'; import { User } from '../../models/index'; import { BadRequestError } from '../../errors/index' import { Password, createResponse } from '../../utils/index' import Jwt from 'jsonwebtoken' const signin = async (req: Request, res: Response) => { const { name, password }...
Iphytech/spotlist
src/validators/auth/signup-validator.ts
import { body } from 'express-validator'; export const signupValidator = [ body('name').isString().withMessage('Name is required'), body('password').trim().isLength({ min: 4, max: 20 }).matches(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9]).{8,}$/, "i").withMessage('password is required and must be atleast...
Iphytech/spotlist
src/errors/database-connection-error.ts
<reponame>Iphytech/spotlist<filename>src/errors/database-connection-error.ts<gh_stars>1-10 import {CustomError} from './custom-error' export class DatabaseConnectionError extends CustomError{ reason = "Error connecting to database" statusCode = 400; constructor(){ super('Error connecting to DB');...
Iphytech/spotlist
src/controllers/auth/current-user.controller.ts
<reponame>Iphytech/spotlist import { Request, Response } from 'express'; import { createResponse } from '../../utils/index'; const currentUser = async (req: Request, res: Response) => { return createResponse(res, 200,"",req.currentUser || null) }; export { currentUser as currentUserRouter }
Iphytech/spotlist
src/controllers/auth/signout.controller.ts
import { Request, Response } from 'express'; const signout = async (req: Request, res: Response) => { req.session = null res.send({}) }; export { signout as signoutRouter }
Iphytech/spotlist
src/index.ts
import {app} from './app' import {DBConnection} from './utils/database' const PORT = process.env.PORT || 5000; //connect to database DBConnection() //Now listen to this port if (app.listen(PORT)) { console.log("Node is listening to Port " + process.env.PORT); } else { console.log("An error occured"); }
Iphytech/spotlist
src/utils/database.ts
<gh_stars>1-10 // import mongoose from 'mongoose' const mongoose = require('mongoose'); const DBConnection = async () => { try { mongoose.connect(`${process.env.DBSERVER}`, { useNewUrlParser: true, useUnifiedTopology: true, // useCreateIndex: true }); mon...
Iphytech/spotlist
src/errors/bad-request-error.ts
import {CustomError} from './custom-error' export class BadRequestError extends CustomError{ statusCode = 400; constructor(public message:string){ super(message); Object.setPrototypeOf(this, BadRequestError.prototype) } serializeErrors(){ return [ {message : this....
Iphytech/spotlist
src/routes/auth.ts
import express from 'express' const router = express.Router(); import { validateRequest,currentUser } from '../middlewares/index'; import * as v from '../validators/auth/index' /* |------------------------------------------------------------------------------- | Controller Import |-------------------------------------...
Iphytech/spotlist
src/controllers/user/song.contoller.ts
import { Request, Response } from 'express'; import crypto from 'crypto'; import { NotFoundError } from '../../errors/not-found-error' import { createResponse, configurePaginationParams } from '../../utils/index'; import { Song, User } from '../../models/index'; const getSingleUserList = async (req: Request, res: Res...
Iphytech/spotlist
src/validators/auth/signin-validator.ts
<gh_stars>1-10 import { body } from 'express-validator'; export const signinValidator = [ body('name').isString().withMessage('Name is required'), body('password').isString().withMessage('Password is required'), ]
Iphytech/spotlist
src/utils/index.ts
export * from './database'; export * from './password'; export * from './create-response'; export * from './pagination-params-config';
Iphytech/spotlist
src/errors/request-validation-error.ts
import {ValidationError} from 'express-validator'; import {CustomError} from './custom-error' export class RequestValidationError extends CustomError{ statusCode = 400; constructor(public errors: ValidationError[]){ super('Request validation Error'); Object.setPrototypeOf(this, RequestValida...
Iphytech/spotlist
src/middlewares/paginate.ts
import { Request, Response, NextFunction } from 'express'; interface Pagination { perPage: number, currentPage: number, totalPages: number, totalDocumentCount: number, } declare global { namespace Express { interface Request { pagination: Pagination; } } } export c...
Iphytech/spotlist
src/routes/__test__/auth.test.ts
<reponame>Iphytech/spotlist import request from 'supertest'; import { app } from '../../app'; // ===================Signup====================================== describe('signup', () => { it('returns a 201 on successful signup', async () => { return request(app) .post('/api/auth/signup') ...
Iphytech/spotlist
src/validators/user/song-validator.ts
import { body, check } from 'express-validator'; export const getSpecificListOfSingleUserValidator = [ check('listid').isString().isLength({ min: 6, max: 6 }).withMessage('List Id is required and must be valid') ] export const addListToUserRecordValidator = [ body('songs').isArray().withMessage('Song is requ...
Iphytech/spotlist
src/controllers/auth/index.ts
<reponame>Iphytech/spotlist export * from './signout.controller'; export * from './signup.controller'; export * from './signin.controller'; export * from './current-user.controller';
Iphytech/spotlist
src/errors/not-found-error.ts
import {CustomError} from './custom-error' export class NotFoundError extends CustomError{ statusCode = 404; constructor(public message:string){ super(message); Object.setPrototypeOf(this, NotFoundError.prototype) } serializeErrors(){ return [ {message : this.mess...
Iphytech/spotlist
src/utils/pagination-params-config.ts
import { Request, Response } from 'express'; const configurePaginationParams = async (req: Request, totalDocumentCount = 1) => { req.pagination.totalDocumentCount = totalDocumentCount; req.pagination.totalPages = Math.ceil(totalDocumentCount / req.pagination.perPage); }; export { configurePaginationParams };
Iphytech/spotlist
src/app.ts
<reponame>Iphytech/spotlist<filename>src/app.ts import express, { Express } from 'express'; import 'express-async-errors' //for catching async errrors in express import bodyParser from 'body-parser'; import dotenv from 'dotenv'; import helmet from 'helmet'; import cors from 'cors'; import cookieSession from 'cookie-ses...
Iphytech/spotlist
src/routes/user.ts
<reponame>Iphytech/spotlist import express from 'express' const router = express.Router(); import { validateRequest, currentUser, requireAuth, paginateResponse } from '../middlewares/index'; import * as v from '../validators/user/song-validator'; /* |--------------------------------------------------------------------...
Iphytech/spotlist
src/errors/not-authorized-error.ts
<gh_stars>1-10 import {CustomError} from './custom-error' export class NotAuthorizedError extends CustomError{ reason = "You are not Authorized" statusCode = 401; constructor(){ super('Not Authorized'); Object.setPrototypeOf(this, NotAuthorizedError.prototype) } serializeErrors()...
Iphytech/spotlist
src/utils/create-response.ts
import { Request, Response } from 'express'; /** * Send a JSON express response. * * @param res the ExpressResponse object. * @param statusCode the status code (success if in the 200s, failure otherwise). * @param message the message. * @param data the data contents. * @returns {res} the response object, for cha...
asalkeld/node-sdk
src/resources/common.test.ts
<reponame>asalkeld/node-sdk<filename>src/resources/common.test.ts<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // htt...
asalkeld/node-sdk
examples/storage/read.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
examples/faas/faas-examples.test.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
src/api/documents/v0/collection-group-ref.test.ts
<filename>src/api/documents/v0/collection-group-ref.test.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.or...
asalkeld/node-sdk
examples/queues/failed.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/resources/topic.test.ts
<filename>src/resources/topic.test.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0...
asalkeld/node-sdk
src/api/documents/v0/document-ref.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/api/secrets/v0/secret.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/queues/send_id.ts
<gh_stars>1-10 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
asalkeld/node-sdk
src/resources/api.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/documents/document-examples.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/resources/queue.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/api/events/v0/events.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/resources/secret.ts
<filename>src/resources/secret.ts<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICE...
asalkeld/node-sdk
src/api/documents/v0/documents.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/resources/common.ts
<filename>src/resources/common.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // ...
asalkeld/node-sdk
src/resources/queue.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/faas/v0/context.ts
<reponame>asalkeld/node-sdk<filename>src/faas/v0/context.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.or...
asalkeld/node-sdk
src/api/secrets/v0/secrets.ts
<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
asalkeld/node-sdk
src/resources/schedule.test.ts
<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
asalkeld/node-sdk
examples/documents/query-paginated.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/queues/receive.ts
<gh_stars>1-10 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
asalkeld/node-sdk
src/faas/v0/context.test.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
src/resources/bucket.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/storage/signed-url-write.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/faas/v0/json.ts
<gh_stars>1-10 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
asalkeld/node-sdk
src/faas/v0/handler.test.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
src/api/errors/index.ts
<filename>src/api/errors/index.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // ...
asalkeld/node-sdk
src/resources/schedule.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/api/storage/v0/storage.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/resources/topic.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/api/queues/v0/queues.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/events/events-examples.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/types.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/faas/v0/start.test.ts
<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
asalkeld/node-sdk
examples/secrets/secrets-examples.test.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
src/resources/bucket.test.ts
<filename>src/resources/bucket.test.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2....
asalkeld/node-sdk
src/resources/collection.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
examples/events/publish-ids.ts
<reponame>asalkeld/node-sdk // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
asalkeld/node-sdk
examples/queues/queues-examples.test.ts
// Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
asalkeld/node-sdk
src/api/documents/v0/document-ref.ts
<reponame>asalkeld/node-sdk<gh_stars>0 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2....
asalkeld/node-sdk
src/resources/api.ts
<filename>src/resources/api.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // ...
asalkeld/node-sdk
examples/storage/storage-examples.test.ts
<filename>examples/storage/storage-examples.test.ts // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licens...
asalkeld/node-sdk
src/api/errors/index.test.ts
<gh_stars>1-10 // Copyright 2021, Nitric Technologies Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
charolynmendoza/personal-website
src/images/Linkedin.tsx
import React from "react"; interface Props { style?: any; } export const Linkedin = (props: Props) => { return ( <svg style={props.style} width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" ...
charolynmendoza/personal-website
src/components/Header.tsx
import React from "react"; import { Link } from "gatsby"; import styled from "styled-components"; import { fonts, colors, screens } from "../utils/theme"; import { Github } from "../images/Github"; import { Dribbble } from "../images/Dribbble"; import { Linkedin } from "../images/Linkedin"; const Header = () => ( <C...
charolynmendoza/personal-website
src/images/SmallPottedPlant.tsx
<reponame>charolynmendoza/personal-website import React from "react"; interface Props { style?: any; } export const SmallPottedPlant = (props: Props) => { return ( <svg style={props.style} width="13.88vw" height="15.34vw" viewBox="0 0 200 221" fill="none" xmlns="http://www....
charolynmendoza/personal-website
src/components/Layout.tsx
<reponame>charolynmendoza/personal-website /** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react"; import styled from "styled-components"; import PropTypes from "prop-types"; import { useStaticQuer...
charolynmendoza/personal-website
src/components/Jumbotron.tsx
import React from "react"; import styled from "styled-components"; import Button from "./Button"; import { fonts, colors, screens } from "../utils/theme"; export default function Jumbotron() { return ( <Container> <Title>Hi! I'm Charolyn.</Title> <Subtitle> Lorem ipsum dolor sit amet, consec...