repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
nitesh55/assignment-wednesday
node_modules/@formatjs/intl-numberformat/lib/intl-numberformat.d.ts
<filename>node_modules/@formatjs/intl-numberformat/lib/intl-numberformat.d.ts import { NumberFormatDigitInternalSlots } from '@formatjs/intl-utils'; import { NumberFormatDigitOptions } from '@formatjs/intl-utils'; import { NumberFormatLocaleInternalData } from '@formatjs/intl-utils'; import { NumberFormatNotation } ...
nitesh55/assignment-wednesday
node_modules/@formatjs/intl-utils/dist/index.d.ts
export { selectUnit } from './diff'; export { defaultNumberOption, getInternalSlot, getMultiInternalSlots, getNumberOption, getOption, isLiteralPart, LiteralPart, partitionPattern, setInternalSlot, setMultiInternalSlots, setNumberFormatDigitOptions, toObject, objectIs, isWellFormedCurrencyCode, toString, formatNumericT...
nitesh55/assignment-wednesday
node_modules/react-intl/src/formatters/message.ts
<reponame>nitesh55/assignment-wednesday<filename>node_modules/react-intl/src/formatters/message.ts /* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ import * as React from 'react'; import {invariant} from '@formatjs/intl-utils'; impo...
CharlesGuillot/angular-instantsearch
src/search-box/__tests__/search-box.spec.ts
<reponame>CharlesGuillot/angular-instantsearch import { createRenderer } from "../../../helpers/test-renderer"; import { NgAisSearchBox } from "../search-box"; const defaultState = { query: "foo", refine: jest.fn() }; const render = createRenderer({ defaultState, template: "<ais-search-box></ais-search-box>",...
CharlesGuillot/angular-instantsearch
examples/angular-router/src/app/components/menu-select/menu-select.component.ts
<reponame>CharlesGuillot/angular-instantsearch import { Component, Inject, forwardRef } from "@angular/core"; import { BaseWidget, NgAisInstantSearch } from "angular-instantsearch"; import { connectMenu } from "instantsearch.js/es/connectors"; @Component({ selector: "ais-menu-select", template: ` <select ...
IIPEKOLICT/express-lambda
src/controllers/file.controller.ts
<gh_stars>0 import { NextFunction, Request, Response } from 'express'; import { safeCall } from '../shared/decorators'; import ApiError from '../errors/api.error'; import { ErrorMessage } from '../shared/enums'; import S3Service from '../services/s3.service'; import { UploadedFile } from 'express-fileupload'; import { ...
IIPEKOLICT/express-lambda
src/routes/attendee.ts
import { Router} from 'express'; import AttendeeController from '../controllers/attendee.controller'; const attendeeRouter = Router(); attendeeRouter.post('/', AttendeeController.addAttendee); attendeeRouter.patch('/', AttendeeController.attendeePhraseAssignment); attendeeRouter.put('/', AttendeeController.mergeAtten...
IIPEKOLICT/express-lambda
src/middlewares/error.middleware.ts
<reponame>IIPEKOLICT/express-lambda import { NextFunction, Request, Response } from 'express'; import { ErrorCode, ErrorMessage } from '../shared/enums'; import ApiError from '../errors/api.error'; export default function errorMiddleware(err: Error, req: Request, res: Response, next: NextFunction) { const { message,...
IIPEKOLICT/express-lambda
src/routes/index.ts
<reponame>IIPEKOLICT/express-lambda import { Router } from 'express'; import testRouter from './test'; import attendeeRouter from './attendee'; import fileRouter from './file'; const apiRouter = Router(); apiRouter.use('/', testRouter); apiRouter.use('/attendee', attendeeRouter); apiRouter.use('/file', fileRouter); ...
IIPEKOLICT/express-lambda
src/shared/models.ts
export type Replica = { Index: number, Text: string, Speaker: string, Type: string, [property: string]: any, } export type Attendee = { attendee: string, Name: string, email: string, is_host: boolean, [property: string]: any, } export type Data = { transcript: Replica[]; attendees: Attendee[];...
IIPEKOLICT/express-lambda
src/app.ts
import express from 'express'; import cors from 'cors'; import { config } from 'dotenv'; import apiRouter from './routes'; import errorMiddleware from './middlewares/error.middleware'; import { resolve } from 'path'; import fileUpload from 'express-fileupload'; config(); export const createApp = () => { const app =...
IIPEKOLICT/express-lambda
src/routes/file.ts
import { Router } from 'express'; import FileController from '../controllers/file.controller'; const fileRouter = Router(); fileRouter.get('/:name', FileController.getFile); fileRouter.post('/', FileController.uploadFile); export default fileRouter;
IIPEKOLICT/express-lambda
src/local.ts
import { createApp } from './app'; import { LOCAL_PORT } from './shared/constants'; createApp().listen(LOCAL_PORT, () => console.log(`Server started on port ${LOCAL_PORT}`));
IIPEKOLICT/express-lambda
src/controllers/attendee.controller.ts
import { NextFunction, Request, Response } from 'express'; import { Data, Replica } from '../shared/models'; import { safeCall } from '../shared/decorators'; import ApiError from '../errors/api.error'; import { ErrorMessage } from '../shared/enums'; import S3Service from '../services/s3.service'; import { DATA_FILE } f...
IIPEKOLICT/express-lambda
src/aws.ts
import aws, { S3 } from 'aws-sdk'; import { config } from 'dotenv'; config(); aws.config.update({ accessKeyId: process.env.ID, secretAccessKey: process.env.SECRET, }); export const s3 = new S3(); export const bucketName: string = process.env.BUCKET_NAME;
IIPEKOLICT/express-lambda
src/lambda.ts
<gh_stars>0 import { createServer, proxy } from 'aws-serverless-express'; import { APIGatewayProxyEvent, Context } from 'aws-lambda'; import { createApp } from './app'; const server = createServer(createApp(), undefined); export default function(event: APIGatewayProxyEvent, context: Context) { console.log(`Event: $...
IIPEKOLICT/express-lambda
src/shared/enums.ts
export enum ErrorCode { Unauthorized = 401, Forbidden = 403, NotFound = 404, InternalServerError = 500, } export enum ErrorMessage { Unknown = 'Unknown error', File = 'File error', NoAttendee = 'Attendee with this id don`t exists', InvalidData = 'Invalid request data' }
IIPEKOLICT/express-lambda
src/shared/decorators.ts
import ApiError from '../errors/api.error'; import { NextFunction, Request, Response } from 'express'; export function safeCall(error?: ApiError): MethodDecorator { return function ( target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor ): void { const original = descriptor.v...
IIPEKOLICT/express-lambda
src/services/s3.service.ts
<gh_stars>0 import { s3, bucketName } from '../aws'; export default class S3Service { static async loadFile(fileName: string): Promise<any> { try { const data = await s3.getObject({ Bucket: bucketName, Key: fileName }); return (await data.promise()).Body.toString('utf8'); } catch (e) { thro...
IIPEKOLICT/express-lambda
src/services/file.service.ts
// import { Data } from '../shared/models'; // import { writeFile, readFile } from 'fs/promises'; // import { FILE_PATH } from '../shared/constants'; // // export default class FileService { // static async readFile(): Promise<Data> { // try { // return JSON.parse((await readFile(FILE_PATH)).toString()); //...
IIPEKOLICT/express-lambda
src/shared/constants.ts
export const LOCAL_PORT = 5000; export const DATA_FILE = 'data.json'; export const JSON_EXT = '.json';
IIPEKOLICT/express-lambda
src/routes/test.ts
<filename>src/routes/test.ts import { NextFunction, Request, Response, Router } from 'express'; const testRouter = Router(); testRouter.get('/', async (req: Request, res: Response, next: NextFunction) => { return res.json({ message: 'api worked' }); }); export default testRouter;
hanming2033/typescript-graphql-server
src/types/schema.d.ts
<filename>src/types/schema.d.ts // tslint:disable // graphql typescript definitions declare namespace GQL { interface IGraphQLResponseRoot { data?: IQuery | IMutation; errors?: Array<IGraphQLResponseError>; } interface IGraphQLResponseError { /** Required for all errors */ message: string; l...
hanming2033/typescript-graphql-server
src/data/resolvers.ts
// https://github.com/kelektiv/node.bcrypt.js/ // import * as bcrypt from 'bcryptjs' export interface IResolverMap { readonly [key: string]: { readonly [key: string]: (parent: any, args: any, context: {}, info: any) => any } } // tslint:disable-next-line:no-let readonly-array prefer-const readonly-keyword let...
hanming2033/typescript-graphql-server
src/index.ts
<reponame>hanming2033/typescript-graphql-server<filename>src/index.ts import { GraphQLServer } from 'graphql-yoga' import { resolvers } from './data/resolvers' const server = new GraphQLServer({ typeDefs: './src/data/schema.graphql', resolvers }) // tslint:disable-next-line:no-expression-statement server.start(() => c...
bpauley14/word-guessing-game
src/App.tsx
<reponame>bpauley14/word-guessing-game import { InformationCircleIcon, ChartBarIcon, SunIcon, } from '@heroicons/react/outline' import { useState, useEffect } from 'react' import { Alert } from './components/alerts/Alert' import { Grid } from './components/grid/Grid' import { Keyboard } from './components/keyboar...
KarinaFernandez/GastosAngular
Gastos/src/app/register/register.component.ts
import { Component, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { Router } from '@angular/router'; import { UserService } from '../services/user.service'; @Component({ selector: 'app-register', templateUrl: './register.component.html', styleUrls: ['./register.component.css...
KarinaFernandez/GastosAngular
Gastos/src/app/expense-list/expense-list.component.ts
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { ExpenseServiceService } from '../services/expense.service'; @Component({ selector: 'app-expense-list', templateUrl: './expense-list.component.html', styleUrls: ['./expense-list.component.css'] }) exp...
KarinaFernandez/GastosAngular
Gastos/src/app/services/user.service.ts
<reponame>KarinaFernandez/GastosAngular<gh_stars>0 import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class UserService { user; constructor( private http: HttpClient ) {} isLoggedIn(){ return !!this.user; } ...
KarinaFernandez/GastosAngular
Gastos/src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { TopBarComponent } from './top-bar/top-bar.component'; import { HttpClientModule } from '@angular/common/htt...
KarinaFernandez/GastosAngular
Gastos/src/app/add-expense/add-expense.component.ts
import { Component, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { Router } from '@angular/router'; import { ExpenseServiceService } from '../services/expense.service'; import { UserService } from '../services/user.service'; @Component({ selector: 'app-add-expense', templateU...
KarinaFernandez/GastosAngular
Gastos/src/app/total-amount-wasted/total-amount-wasted.component.ts
<reponame>KarinaFernandez/GastosAngular<filename>Gastos/src/app/total-amount-wasted/total-amount-wasted.component.ts import { Component, OnInit } from '@angular/core'; import { ExpenseServiceService } from '../services/expense.service'; @Component({ selector: 'app-total-amount-wasted', templateUrl: './total-amount...
KarinaFernandez/GastosAngular
Gastos/src/app/expenses-per-type/expenses-per-type.component.ts
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { ExpenseServiceService } from '../services/expense.service'; @Component({ selector: 'app-expenses-per-type', templateUrl: './expenses-per-type.component.html', styleUrls: ['./expenses-per-type.component.css'] }) export class ExpensesPerTypeCo...
KarinaFernandez/GastosAngular
Gastos/src/app/purchase-by-type/purchase-by-type.component.ts
import { Component, OnInit } from '@angular/core'; import { ExpenseServiceService } from '../services/expense.service'; @Component({ selector: 'app-purchase-by-type', templateUrl: './purchase-by-type.component.html', styleUrls: ['./purchase-by-type.component.css'] }) export class PurchaseByTypeComponent implemen...
KarinaFernandez/GastosAngular
Gastos/src/app/services/expense.service.ts
import { Injectable } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; import { UserService } from './user.service'; @Injectable({ providedIn: 'root' }) export class ExpenseServiceService { expenses = []; types = []; constructor( private http: HttpClient, private us...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/structures/OperationType.ts
<filename>Node.js/ignite-desafio-tests-challenge/src/modules/statements/structures/OperationType.ts export enum OperationType { DEPOSIT = 'deposit', WITHDRAW = 'withdraw', TRANSFER = 'transfer' }
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createTransfer/ICreateTransferDTO.ts
import { Statement } from "../../entities/Statement"; export type ICreateTransferDTO = { sender_id: string; recipient_id: string; } & Pick< Statement, 'amount' >
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createTransfer/CreateTransferError.ts
import { AppError } from "../../../../shared/errors/AppError"; export namespace CreateTransferError { export class SenderNotFound extends AppError { constructor() { super('Sender not found', 404); } } export class RecipientNotFound extends AppError { constructor() { super('Recipient not...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/users/useCases/showUserProfile/ShowUserProfileUseCase.spec.ts
process.env = { JWT_SECRET: 'b69f8a78-d26b-47b1-a9d0-6999f73d06eb' }; import { hash } from "bcryptjs"; import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { ShowUserProfileError } from "./ShowUserProfileError"; import { ShowUserProfileUseCase } from "./ShowUs...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-introducao-ao-solid/src/modules/users/useCases/listAllUsers/ListAllUsersUseCase.ts
import { User } from "../../model/User"; import { IUsersRepository } from "../../repositories/IUsersRepository"; interface IRequest { user_id: string; } class ListAllUsersUseCase { constructor(private usersRepository: IUsersRepository) {} execute({ user_id }: IRequest): User[] { const currentUser = this.us...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createTransfer/CreateTransferUseCase.spec.ts
import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { InMemoryStatementsRepository } from "../../repositories/in-memory/InMemoryStatementsRepository"; import { CreateTransferUseCase } from "./CreateTransferUseCase" import { CreateTransferError } from "./Create...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/users/useCases/authenticateUser/AuthenticateUserUseCase.spec.ts
<gh_stars>0 process.env = { JWT_SECRET: 'b69f8a78-d26b-47b1-a9d0-6999f73d06eb' }; import { hash } from "bcryptjs"; import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { AuthenticateUserUseCase } from "./AuthenticateUserUseCase"; import { IncorrectEmailOrPassw...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createTransfer/CreateTransferUseCase.ts
import { inject, injectable } from "tsyringe"; import { IUsersRepository } from "../../../users/repositories/IUsersRepository"; import { IStatementsRepository } from "../../repositories/IStatementsRepository"; import { OperationType } from "../../structures/OperationType"; import { CreateTransferError } from "./Create...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createTransfer/CreateTransferController.ts
<reponame>arfurlaneto/rocketseat-ignite-challenges<gh_stars>0 import { Request, Response } from 'express'; import { container } from 'tsyringe'; import { CreateTransferUseCase } from './CreateTransferUseCase'; export class CreateTransferController { async execute(request: Request, response: Response) { const { ...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/users/useCases/createUser/CreateUserUseCase.spec.ts
process.env = { JWT_SECRET: 'b69f8a78-d26b-47b1-a9d0-6999f73d06eb' }; import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { CreateUserError } from "./CreateUserError"; import { CreateUserUseCase } from "./CreateUserUseCase"; describe("Create User", () => { ...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-introducao-ao-solid/src/index.ts
<filename>Node.js/ignite-desafio-introducao-ao-solid/src/index.ts<gh_stars>0 import express, { Request, Response, NextFunction } from "express"; import { usersRoutes } from "./routes/users.routes"; const app = express(); app.use(express.json()); app.use("/users", usersRoutes); app.use( (error: Error, request: Re...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/getBalance/GetBalanceUseCase.spec.ts
<gh_stars>0 import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { InMemoryStatementsRepository } from "../../repositories/in-memory/InMemoryStatementsRepository"; import { GetBalanceError } from "./GetBalanceError"; import { GetBalanceUseCase } from "./GetBala...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-serverless/src/functions/listUserTodos.ts
import { APIGatewayProxyHandler } from 'aws-lambda/trigger/api-gateway-proxy'; import { document } from '../utils/dynamodbClient' export const handle : APIGatewayProxyHandler = async (event) => { const user_id = event.pathParameters.user_id; const data = await document.scan({ TableName: "todos", F...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-serverless/src/functions/createTodo.ts
import { APIGatewayProxyHandler } from 'aws-lambda/trigger/api-gateway-proxy'; import { v4 as uuidv4 } from 'uuid'; import { document } from '../utils/dynamodbClient' export const handle : APIGatewayProxyHandler = async (event) => { const user_id = event.pathParameters.user_id; if (!event.body) { retu...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/database/migrations/1621479084804-update-statements-table.ts
<reponame>arfurlaneto/rocketseat-ignite-challenges import { query } from "express"; import {MigrationInterface, QueryRunner} from "typeorm"; export class updateStatementsTable1621479084804 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query("ALT...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/database/migrations/1621473563329-add-sender-recipient-statements-table.ts
<reponame>arfurlaneto/rocketseat-ignite-challenges import { MigrationInterface, QueryRunner, TableColumn, TableForeignKey } from "typeorm"; export class addSenderRecipientStatementsTable1621473563329 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner....
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/createStatement/CreateStatementUseCase.spec.ts
<gh_stars>0 import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { InMemoryStatementsRepository } from "../../repositories/in-memory/InMemoryStatementsRepository"; import { CreateStatementUseCase } from "./CreateStatementUseCase" import { CreateStatementError }...
arfurlaneto/rocketseat-ignite-challenges
Node.js/ignite-desafio-tests-challenge/src/modules/statements/useCases/getStatementOperation/GetStatementOperationUseCase.spec.ts
import { InMemoryUsersRepository } from "../../../users/repositories/in-memory/InMemoryUsersRepository"; import { InMemoryStatementsRepository } from "../../repositories/in-memory/InMemoryStatementsRepository"; import { GetStatementOperationUseCase } from "./GetStatementOperationUseCase"; import { GetStatementOperation...
lterfloth/BotBuilder-Samples
samples/typescript_nodejs/05.multi-turn-prompt/src/index.ts
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { config } from "dotenv"; import * as path from "path"; import * as restify from "restify"; // Import required bot services. // See https://aka.ms/bot-services to learn more about the different parts of a bot. impor...
lterfloth/BotBuilder-Samples
samples/typescript_nodejs/05.multi-turn-prompt/src/dialogs/fyiPostDialog.ts
<reponame>lterfloth/BotBuilder-Samples // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { StatePropertyAccessor, TurnContext, UserState } from "botbuilder"; import { ChoiceFactory, ChoicePrompt, ComponentDialog, ConfirmPrompt, DialogSet, DialogTurnStatus...
lterfloth/BotBuilder-Samples
samples/typescript_nodejs/05.multi-turn-prompt/src/fyiPost.ts
<gh_stars>0 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. export class FyiPost { public sourceType: string; public url: string; public description: string; public priority: number; }
brainup-readby/readby-admin-portal
src/app/routes/chapters/add-topic/model/topic.model.ts
<reponame>brainup-readby/readby-admin-portal export class AddTopicModel { TOPIC_NAME?: string; TOPIC_CODE?: string; IS_ACTIVE?: string; VIDEO_URL?: string; BOOK_URL?: string; CHAPTER_ID?: number; TOPIC_SUBSCRIPTION?: string; }
brainup-readby/readby-admin-portal
src/app/routes/topics/topics.component.ts
<reponame>brainup-readby/readby-admin-portal import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MtxGridColumn } from '@ng-matero/extensions'; import { TopicModel } from './model/topic-interface'; import { EditTopicComponent } from '....
brainup-readby/readby-admin-portal
src/app/routes/subjects/edit-subject/edit-subject.component.ts
<gh_stars>0 import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService...
brainup-readby/readby-admin-portal
src/app/routes/courses/add-stream/add-stream.component.ts
<reponame>brainup-readby/readby-admin-portal import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService } from '...
brainup-readby/readby-admin-portal
src/app/routes/courses/edit-course/edit-course.component.ts
import { Component, Inject, OnInit, ViewChild } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { CourseModel } from '../model/course-interface'; import { LocalStorageService } from '../../../shared/services/storage.service'; import { NgxSpinnerService } from 'ngx-...
brainup-readby/readby-admin-portal
src/app/routes/topics/model/topic-interface.ts
<gh_stars>0 export interface TopicModel { TOPIC_ID?: number; TOPIC_NAME?: string; TOPIC_CODE?: string; IS_ACTIVE?: string; icon_path?: string; VIDEO_URL?: string; BOOK_URL?: string; CHAPTER_ID?: number; CourseYear?: string; TOPIC_SUBSCRIPTION?: string; }
brainup-readby/readby-admin-portal
src/app/routes/subjects/add-chapter/add-chapter.component.ts
import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService } from 'ngx-spinner'; import Swal from 'sweetalert2';...
brainup-readby/readby-admin-portal
src/app/routes/board/edit-board/edit-board.component.ts
import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService } from 'ngx-spinner'; import { BoardModel } from '../model/board-interface'; import Swal from 'sweet...
brainup-readby/readby-admin-portal
src/app/routes/subjects/add-chapter/model/chapter-model.ts
export class AddChapterModel { CHAPTER_NAME?: string; CHAPTER_CODE?: string; IS_ACTIVE?: string; // tslint:disable-next-line:variable-name icon_path?: string; SUBJECT_ID?: number; }
brainup-readby/readby-admin-portal
src/app/routes/users/users.component.ts
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MtxGridColumn } from '@ng-matero/extensions'; import { UserModel } from './model/user-interface'; import { ApiService } from '../../shared/services/api.services'; import { LocalStorageService } from '../../...
brainup-readby/readby-admin-portal
src/app/routes/chapters/add-topic/add-topic.component.ts
import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService } from 'ngx-spinner'; import Swal from 'sweetalert2/d...
brainup-readby/readby-admin-portal
src/app/routes/board/board.component.ts
<filename>src/app/routes/board/board.component.ts<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MtxGridColumn } from '@ng-matero/extensions'; import { BoardModel } from './model/board-interface'; import { AddBoardComponent } from './add-boar...
brainup-readby/readby-admin-portal
src/app/routes/board/model/board-interface.ts
<reponame>brainup-readby/readby-admin-portal<gh_stars>0 export class BoardModel { BOARD_ID: number; BOARD_CODE: string; BOARD_NAME: string; IS_ACTIVE: string; MAS_COURSE: null; }
brainup-readby/readby-admin-portal
src/app/routes/chapters/model/chapter-interface.ts
export interface ChapterModel { CHAPTER_ID?: number; CHAPTER_NAME?: string; CHAPTER_CODE?: string; IS_ACTIVE?: string; icon_path?: File | null; SUBJECT_ID?: number; }
brainup-readby/readby-admin-portal
src/app/routes/users/model/user-interface.ts
<gh_stars>0 export interface UserModel { USER_ID?: number; USERNAME?: string; ROLE_ID?: number; FIRST_NAME?: string; MIDDLE_NAME?: string; LAST_NAME?: string; MOBILE_NO?: number; EMAIL_ID?: string; CITY?: string; STATE?: string; PINCODE?: string; IS_ACTIVE?: string; D...
brainup-readby/readby-admin-portal
src/app/routes/topics/model/topic-filter.model.ts
export class FilterModel { boardId: number; courseId: number; streamId: number; subjectId: number; chapterId: number; yearId: number; }
brainup-readby/readby-admin-portal
src/app/routes/board/add-board/add-board.component.ts
import { Component, OnInit, ViewChild } from '@angular/core'; import { NgForm } from '@angular/forms'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService } from 'ngx-spinner'; import { BoardModel } from '../model/boa...
brainup-readby/readby-admin-portal
src/app/routes/courses/edit-course/model/course-model.ts
<reponame>brainup-readby/readby-admin-portal export class AddCourseModel { COURSE_CODE: string; COURSE_NAME: string; IS_ACTIVE: string; // tslint:disable-next-line:variable-name icon_path: string; COURSE_TYPE_ID: number; BOARD_ID: number; MAS_STREAM: MasStream[]; MAS_COURSE_YEAR: Mas...
brainup-readby/readby-admin-portal
src/app/routes/courses/courses.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { MtxDialog } from '@ng-matero/extensions/dialog'; import { MtxGridColumn } from '@ng-matero/extensions'; import { MatDialog } from '@angular/material/dialog'; import { AddSubjectComponent } from './add-subject/add-subject.component'; imp...
brainup-readby/readby-admin-portal
src/app/routes/subjects/model/subject-interface.ts
export interface SubjectModel { SUBJECT_ID?: number; SUBJECT_NAME?: string; SUBJECT_CODE?: string; SUBJECT_PRICE?: number; // tslint:disable-next-line:variable-name icon_path?: string; }
brainup-readby/readby-admin-portal
src/app/shared/services/api.services.ts
import { Injectable, OnInit } from '@angular/core'; import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest } from '@angular/common/http'; import { Observable, throwError, of, Subject } from 'rxjs'; import { retry, catchError, map, shareReplay, timeoutWith, share, tap } from 'rxjs/operators'; import { environm...
brainup-readby/readby-admin-portal
src/app/shared/directives/numbers-only.directive.ts
import { Directive, ElementRef, HostListener, Input } from '@angular/core'; import { NgControl } from '@angular/forms'; @Directive({ // tslint:disable-next-line:directive-selector selector: 'input[numbersOnly]' }) export class NumberDirective { constructor(private _el: ElementRef) { } @HostListener('input', ...
brainup-readby/readby-admin-portal
src/app/routes/courses/model/course-interface.ts
<filename>src/app/routes/courses/model/course-interface.ts import { StringLiteral } from 'typescript'; export interface CourseModel { courseCode: string; courseId: number; courseName: string; courseStream: string; courseType: string; courseYear: number; status: boolean; iconPath: string...
brainup-readby/readby-admin-portal
src/app/routes/chapters/edit-chapters/edit-chapters.component.ts
<filename>src/app/routes/chapters/edit-chapters/edit-chapters.component.ts import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { LocalStorageService } from '@shared'; import { ApiService } f...
brainup-readby/readby-admin-portal
src/app/routes/topics/edit-topic/edit-topic.component.ts
<gh_stars>0 import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSpinnerService...
brainup-readby/readby-admin-portal
src/app/routes/board/add-course/add-course.component.ts
<filename>src/app/routes/board/add-course/add-course.component.ts import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { LocalStorageService } from '@shared'; import { ApiService } from '@shared/services/api.services'; import { NgxSp...
brainup-readby/readby-admin-portal
src/app/routes/chapters/chapters.component.ts
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MtxGridColumn } from '@ng-matero/extensions'; import { ChapterModel } from './model/chapter-interface'; import { EditChaptersComponent } from './edit-chapters/edit-chapters.component'; import { ...
predominant/builder
components/builder-web/app/side-nav/side-nav.component.ts
<reponame>predominant/builder // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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/...
predominant/builder
components/builder-web/app/actions/oauth.ts
<filename>components/builder-web/app/actions/oauth.ts // Copyright (c) 2018 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/origin/origin-page/origin-page.module.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/shared/guards/signed-in.guard.ts
<reponame>predominant/builder<filename>components/builder-web/app/shared/guards/signed-in.guard.ts // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You...
predominant/builder
components/builder-web/app/profile/profile/profile.component.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/shared/platform-icon/platform-icon.component.ts
<gh_stars>1-10 import { Component, Input } from '@angular/core'; import { targetToPlatform } from '../../util'; @Component({ selector: 'hab-platform-icon', template: `<hab-icon [symbol]="os" class="icon-os" [title]="title"></hab-icon>` }) export class PlatformIconComponent { @Input() platform; get os() { ...
predominant/builder
components/builder-web/app/shared/job-status-icon/job-status-icon.component.ts
import { Component, Input } from '@angular/core'; import { iconForJobState, labelForJobState } from '../../util'; @Component({ selector: 'hab-job-status-icon', template: `<hab-icon [ngClass]="classes" [symbol]="symbol" [title]="label" [attr.title]="label"></hab-icon>` }) export class JobStatusIconComponent { @I...
predominant/builder
components/builder-web/app/client/depot-api.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/origin/origin.module.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/banner/banner.component.ts
<filename>components/builder-web/app/banner/banner.component.ts import { Component } from '@angular/core'; import { AppStore } from '../app.store'; @Component({ selector: 'hab-banner', template: require('./banner.component.html') }) export class BannerComponent { dismissed: boolean = false; constructor(privat...
predominant/builder
components/builder-web/app/origin/origin-routing.spec.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/origin/origin-page/origin-job-detail/origin-job-detail.component.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/reducers/index.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/app.store.ts
<reponame>predominant/builder<filename>components/builder-web/app/app.store.ts // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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 o...
predominant/builder
components/builder-web/app/search/search/search.component.spec.ts
<gh_stars>0 // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/package/package-sidebar/package-sidebar.component.spec.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...
predominant/builder
components/builder-web/app/app.module.ts
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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...