repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
addyvm22/vantageProject1 | test/test1.ts | <reponame>addyvm22/vantageProject1
let config = require('/home/ubuntu/Documents/Adwait/project/mean2-seed/config/config.js');//WE IMPORTED OBJECT FROM CONFIG AS CONFIG...
// import * as config from '/home/ubuntu/Documents/Adwait/project/mean2-seed/config/config.js';
console.log(config.MONGO_URI.DEVELOPMENT);
cons... |
addyvm22/vantageProject1 | src/client/app/app.component.ts | /*
* Angular 2 decorators and services
*/
import { Component, ViewEncapsulation } from '@angular/core';
let template = require('./app.html');
/*
* App Component
* Top Level Component
*/
@Component({
selector: 'app',
encapsulation: ViewEncapsulation.None,
styleUrls: [
'../sass/main.scss'
],
template
... |
addyvm22/vantageProject1 | src/client/app/add_event/addEvent.modules.ts | import { NgModule } from '@angular/core';
import { AddEventService} from './addEvent.services'
import { AddEventComponent} from './addEvent.component';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModu... |
addyvm22/vantageProject1 | src/client/app/shared/services/localStorage.service.ts | import { Injectable } from "@angular/core";
@Injectable()
export class LocalStorageService{
saveHall(data)
{
console.log("Event Details:", data);
//var eventDetail = [];
let halls = localStorage.getItem('halls')? JSON.parse(localStorage.getItem('halls')): [];
halls.push... |
addyvm22/vantageProject1 | src/client/app/add_event/add_event_model.ts | <reponame>addyvm22/vantageProject1
export class Event{
constructor(
public name : string,
public location : string,
public city: string,
public country :string,
public number_of_seats: string,
public start_date: string,
public end_date: string){
}
} |
addyvm22/vantageProject1 | src/client/app/searchEvent/searchEvent.service.ts | import { Injectable } from "@angular/core";
import { Http, Headers } from '@angular/http';
import 'rxjs/add/operator/toPromise';
@Injectable()
export class SearchEventService{
private booking = 'app/booking'
constructor(private http: Http){
}
getData()
{
this.http.get(this... |
addyvm22/vantageProject1 | src/client/app/add_event/addEvent.component.ts | import { Component} from '@angular/core';
import { AddEventService } from './addEvent.services';
import { FormGroup, FormControl, FormBuilder, Form, Validators} from '@angular/forms';
import { Event} from './add_event_model';
import { FormModel} from './form_model';
import { LocalStorageService } from '../shared/servic... |
addyvm22/vantageProject1 | src/client/app/login/login.component.ts | import { Component } from '@angular/core';
import { NgIf } from '@angular/common';
import { Observable } from 'rxjs/Observable';
import { Router } from '@angular/router';
import { FormBuilder,
FormControl,
FormGroup,
Validators } from '@angular/forms';
import { AppState } from '../app.service';
import { A... |
addyvm22/vantageProject1 | src/client/app/booking/booking.components.ts | <filename>src/client/app/booking/booking.components.ts<gh_stars>0
import { Component } from '@angular/core';
import { BookingService } from './booking.services';
//import { AppState } from '../../../app.service';
import { BookingModel} from './booking.model';
import { getDefaultService } from 'selenium-webdriver/chrome... |
addyvm22/vantageProject1 | src/client/app/add_event/addEvent.services.ts | import { Injectable } from '@angular/core';
import { CookieService } from '../shared/services/cookie.service';
import { HttpService } from '../shared/services/http.service';
@Injectable()
export class AddEventService{
constructor(private httpService: HttpService, private cookieService: CookieService) {
}
... |
addyvm22/vantageProject1 | src/client/app/searchEvent/searchEvent.module.ts | <reponame>addyvm22/vantageProject1
import { NgModule } from "@angular/core";
import { CommonModule} from '@angular/common';
import { SearchEventService } from "./searchEvent.service";
import { SearchEventComponent } from "./searchEvent.component";
import { Routes, RouterModule} from '@angular/router';
import { AuthGua... |
addyvm22/vantageProject1 | src/server/db/config/mongoose.conf.ts | // ```
// mongoose.conf.js
// (c) 2016 <NAME>
// <EMAIL>
// mongoose.conf.js may be freely distributed under the MIT license
// ```
// *mongoose.conf.js*
// Load Mongoose for MongoDB interactions
import * as mongoose from 'mongoose';
import { IServerEvent, ServerEvent } from '../../app/handlers/event.handler';
impor... |
addyvm22/vantageProject1 | src/client/app/add_event/form_model.ts | <gh_stars>0
export class FormModel
{
constructor (
public name: string,
public location: string,
public city: string,
public country: string,
public number_of_seats: string,
public start_date: string,
public end_date: string,
) ... |
addyvm22/vantageProject1 | src/client/app/user/user.component.ts | <gh_stars>0
import {Component} from '@angular/core';
@Component({
selector: 'user_page',
templateUrl:'./user.component.html'
})
export class UserComponent
{
viewDetails()
{
console.log("User Page");
}
} |
addyvm22/vantageProject1 | src/client/app/event/event.component.ts |
import { Component } from '@angular/core';
import {EventService } from './event.service';
class Event {
name: String;
description: String;
}
@Component({
selector: "event_page",
templateUrl: './event.component.html',
providers: [EventService]
})
export class EventComponent {
event: Event;
... |
addyvm22/vantageProject1 | src/client/app/booking/select.pipe.ts | import { PipeTransform, Pipe } from "@angular/core";
@Pipe({
name: 'selectName'
//,
//pure: false
})
export class SelectName implements PipeTransform {
transform(value: any, limit: number )
{
return value.substr(0, limit);
}
/* transform(value: any, ...args: any[]) {
thr... |
addyvm22/vantageProject1 | src/client/app/event/event.module.ts | import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { EventComponent} from './event.component';
import {EventService } from './event.service';
import ... |
addyvm22/vantageProject1 | src/client/app/shared/services/http.service.ts | <gh_stars>0
import {Http, Headers, RequestMethod, RequestOptions, Response} from '@angular/http';
import {Injectable} from '@angular/core';
import { CookieService } from './cookie.service';
import { Router } from '@angular/router';
import { Observable } from 'rxjs/Rx';
@Injectable()
export class HttpService {
const... |
addyvm22/vantageProject1 | src/server/app/controllers/booking.controller.ts | /****
*
* @author: Adwait
*
* */
import * as express from 'express';
import { IBooking, Booking, BookingDocument, Bookings } from '../../db/models/booking.model';
import Controller from '../config/controller.config';
import { BookingService } from '../services/booking.service';
import { ErrorDTO } from '../DTO/... |
addyvm22/vantageProject1 | src/client/app/register/register.component.ts | import { Component } from '@angular/core';
import { NgIf } from '@angular/common';
import { Observable } from 'rxjs/Observable';
import { Router } from '@angular/router';
import { FormBuilder,
FormControl,
FormGroup,
Validators } from '@angular/forms';
import { AppState } from '../app.service';
import { A... |
jhecking/emittery | index.test-d.ts | /* eslint-disable @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars, @typescript-eslint/no-floating-promises */
import {expectType, expectError, expectNotAssignable, expectAssignable} from 'tsd';
import pEvent = require('p-event');
import Emittery = require('./index.js');
type AnyListener = (even... |
moonwake769/ethers.js | packages/ethers/src.ts/_version.ts | export const version = "ethers/5.6.4";
|
moonwake769/ethers.js | packages/ethers/lib/_version.d.ts | <filename>packages/ethers/lib/_version.d.ts
export declare const version = "ethers/5.6.4";
//# sourceMappingURL=_version.d.ts.map |
moonwake769/ethers.js | packages/providers/lib/_version.d.ts | export declare const version = "providers/5.6.4";
//# sourceMappingURL=_version.d.ts.map |
moonwake769/ethers.js | packages/providers/src.ts/_version.ts | <gh_stars>0
export const version = "providers/5.6.4";
|
touchlab-lab/kmp-proteam | src/registerbuild.ts | <reponame>touchlab-lab/kmp-proteam<filename>src/registerbuild.ts
import * as core from '@actions/core'
import { promises as fs } from 'fs'
export async function registerbuild(milliseconds: number): Promise<string> {
return new Promise(resolve => {
if (isNaN(milliseconds)) {
throw new Error('milliseconds no... |
touchlab-lab/kmp-proteam | src/main.ts | import * as core from '@actions/core'
import * as github from '@actions/github'
import {wait} from './wait'
import {registerbuild} from './registerbuild'
async function run(): Promise<void> {
try {
const operation: string = core.getInput("operation")
switch (operation) {
case "registerb... |
lukedsmalley/conf | src/file-map.ts | <filename>src/file-map.ts
import {File} from './file'
import {Map} from './map'
export {FileMap}
abstract class FileMap extends Map {
private file: File
protected constructor(file: File, parent: Map | null, properties?: any) {
super(parent, properties)
this.file = file
}
getSerializab... |
lukedsmalley/conf | src/map.ts | <filename>src/map.ts
import {join} from 'path'
import {Path} from './path'
import {File} from './file'
import {isObject} from './utilities'
export {Map}
class Map {
private readonly properties: any = {}
private parent: Map | null
protected constructor(parent: Map | null, properties?: any) {
t... |
lukedsmalley/conf | src/utilities.ts |
import * as fs from 'fs-extra'
import {Map} from './map'
export {deeplyAssign, isObject, isAccessible, isAccessibleSync, isDirectory, isDirectorySync}
function deeplyAssign(target: any, ...sources: any[]): any {
function assign(target: any, source: any) {
for (let key in source) {
if (!target.ha... |
lukedsmalley/conf | src/path.ts | <gh_stars>1-10
import {Map} from './map'
import {PathComponent} from './path-component'
import {Step} from './step'
import {Switch} from './switch'
export {Path}
class Path {
private components: PathComponent[] = []
length(): number {
return this.components.length
}
push(component: PathC... |
lukedsmalley/conf | src/switch.ts |
import {Map} from './map'
import {Path} from './path'
import {PathComponent} from './path-component'
export {Switch}
class Switch implements PathComponent {
private paths: Path[] = []
length(): number {
return this.paths.length
}
push(path: Path) {
this.paths.push(path)
}
tra... |
lukedsmalley/conf | src/step.ts |
import {Map} from './map'
import {PathComponent} from './path-component'
export {Step}
class Step implements PathComponent {
private id: string = ''
length(): number {
return this.id.length
}
push(c: string) {
this.id += c
}
travel(map: Map, force: boolean): any {
//The p... |
lukedsmalley/conf | src/path-component.ts | <reponame>lukedsmalley/conf<gh_stars>1-10
import {Map} from './map'
export {PathComponent}
interface PathComponent {
travel(map: Map, force?: boolean): any
assign(map: Map, value: any): void
} |
lukedsmalley/conf | src/file.ts |
import * as fs from 'fs-extra'
import {join, parse} from 'path'
import {FileMap} from './file-map';
import {Map} from './map'
import * as utilities from './utilities'
import {isObject, isAccessible, isAccessibleSync} from './utilities'
export {File, fileFrom, fileFromSync}
class File {
readonly path: st... |
lukedsmalley/conf | src/json5-file-map.ts | <filename>src/json5-file-map.ts
import {parse, stringify} from 'json5'
import {File} from './file'
import {FileMap} from './file-map'
import {Map} from './map'
export {JSON5FileMap}
class JSON5FileMap extends FileMap {
protected constructor(file: File, parent: Map | null, properties?: any) {
super(fi... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/user/user-query.ts | export class UserQuery {
id:string;
idIn:Array<string>;
firstName:string;
firstNameLike:string;
lastName:string;
lastNameLike:string;
userId:string;
userIdIn:Array<string>;
userIdLike:string;
sortBy:string;
sortData:string;
getIdIn():Array<string> {
if(!this.idIn... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/service/task.service.ts | <reponame>aditya542ar/kanban-board<filename>kanban-board-ui/src/app/board/service/task.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ConfigService } from 'src/app/config/config.service';
import { Observable } from 'rxjs';
import { TaskQuery } from '..... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/project/edit-project.spec.ts | import { EditProject } from './edit-project';
describe('EditProject', () => {
it('should create an instance', () => {
expect(new EditProject()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/task/task-dashboard.component.ts | import { Component, OnInit, EventEmitter, Injectable, Pipe, PipeTransform } from '@angular/core';
import { UtilService } from 'src/app/util/util.service';
import { faSortAmountDown, faSortAmountDownAlt, faPlus,
faEdit, faEye, faExchangeAlt, faTrashAlt, faAngleUp } from '@fortawesome/free-solid-svg-icons';
import { S... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/constant.ts | export class Constant {
USER_SORT_BY_LIST:Array<string> = ["id", "firstName", "lastName", "userId"];
TEAM_SORT_BY_LIST:Array<string> = ["id", "name"];
TASK_SORT_BY_LIST:Array<string> = ["id", "name", "priority", "category", "team", "user"];
STAGE_SORT_BY_LIST:Array<string> = ["id", "name"];
PROJECT_... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/emit-action.ts | export class EmitAction {
action:string;
isSuccess:boolean;
constructor(action:string, isSuccess:boolean) {
this.action = action;
this.isSuccess = isSuccess;
}
} |
aditya542ar/kanban-board | kanban-board-ui/src/app/auth/auth.service.ts | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { User } from '../board/user/user';
import { ConfigService } from '../config/config.service';
import { UserQuery } from '../board/user/user-query';
@Injectable({
providedIn: 'root'
})
export class AuthService {
pr... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/stage/stage-query.spec.ts | import { StageQuery } from './stage-query';
describe('StageQuery', () => {
it('should create an instance', () => {
expect(new StageQuery()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/project/edit-project.ts | <reponame>aditya542ar/kanban-board<gh_stars>0
export class EditProject {
currProp:string = undefined;
isDescription:boolean = false;
isName:boolean = false;
isStartDate:boolean = false;
isEndDate:boolean = false;
isOwnerId:boolean = false;
isStage:boolean = false;
isTeam:boolean = false;... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/emit-action.spec.ts | import { EmitAction } from './emit-action';
describe('EmitAction', () => {
it('should create an instance', () => {
expect(new EmitAction()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/app-routing.module.ts | <reponame>aditya542ar/kanban-board<gh_stars>0
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProjectListComponent } from './board/project/project-list.component';
import { ProjectComponent } from './board/project/project.component';
import { TaskDashboardCompo... |
aditya542ar/kanban-board | kanban-board-ui/src/app/util/util.service.ts | import { Injectable, EventEmitter } from '@angular/core';
import { Project } from '../board/project/project';
import { User } from '../board/user/user';
import { Observable, Observer } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class UtilService {
private isShowProjectDropDownFlag:boolean = false;
... |
aditya542ar/kanban-board | kanban-board-ui/src/app/header/header.component.ts | <filename>kanban-board-ui/src/app/header/header.component.ts
import { Component, OnInit } from '@angular/core';
import { UtilService } from '../util/util.service';
import { Router } from '@angular/router';
import { Project } from '../board/project/project';
import { ProjectService } from '../board/service/project.servi... |
aditya542ar/kanban-board | kanban-board-ui/src/app/app.module.ts | <reponame>aditya542ar/kanban-board
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { APP_INITIALIZER } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP... |
aditya542ar/kanban-board | kanban-board-ui/src/app/config/config.service.ts | <reponame>aditya542ar/kanban-board
import { Injectable } from '@angular/core';
import { Configuration } from './configuration';
import { HttpClient, HttpBackend } from '@angular/common/http';
import * as jsonConfig from "../../assets/config/config.json";
@Injectable({
providedIn: 'root'
})
export class ConfigServic... |
aditya542ar/kanban-board | kanban-board-ui/src/app/config.loader.ts | <filename>kanban-board-ui/src/app/config.loader.ts
import { environment } from '../environments/environment';
import { ConfigService } from './config/config.service';
export function ConfigLoader(configService: ConfigService) {
//Note: this factory need to return a function (that return a promise)
return () => conf... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/task/task-query.spec.ts | <gh_stars>0
import { TaskQuery } from './task-query';
describe('TaskQuery', () => {
it('should create an instance', () => {
expect(new TaskQuery()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/project/project.ts |
export class Project {
public id:string;
public name:string;
public description:string;
public ownerId:string;
public startDate:string;
public endDate:string;
constructor(obj?:any) {
if(obj) {
this.id = obj.id;
this.name = obj.name;
this.description = obj.description;
this.ow... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/task/task-query.ts | <reponame>aditya542ar/kanban-board<gh_stars>0
export class TaskQuery {
id:string;
idIn:Array<string>;
name:string;
nameIn:Array<string>;
nameLike:string;
categoryId:string;
categoryIdIn:Array<string>;
teamId:string;
teamIdIn:Array<string>;
ownerId:string;
projectId:string;
... |
aditya542ar/kanban-board | kanban-board-ui/src/app/config/configuration.ts | <gh_stars>0
export class Configuration {
public webApiBaseUrl:string;
public authBaseUrl:string;
public projectBaseUrl:string;
public userBaseUrl:string;
public teamBaseUrl:string;
public stageBaseUrl:string;
public taskBaseUrl:string;
constructor() {}
}
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/user/user.ts | export class User {
public id:string;
public firstName:string;
public lastName:string;
public userId:string;
public password:string;
public profilePic:string;
constructor(obj?:any) {
if(obj) {
this.id = obj.id;
this.firstName = obj.firstName;
this... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/team/team.component.ts | import { Component, OnInit } from '@angular/core';
import { UtilService } from 'src/app/util/util.service';
import { Router, ActivatedRoute } from '@angular/router';
import { ProjectService } from '../service/project.service';
import { Team } from './team';
import { User } from '../user/user';
import { Modal } from '..... |
aditya542ar/kanban-board | kanban-board-ui/src/app/config/configuration.spec.ts | import { Configuration } from './configuration';
describe('Configuration', () => {
it('should create an instance', () => {
expect(new Configuration()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/service/project.service.ts | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ConfigService } from 'src/app/config/config.service';
import { Project } from '../project/project';
import { Observable } from 'rxjs';
import { User } from '../user/user';
import { UserQuery } from '../user/user-quer... |
aditya542ar/kanban-board | kanban-board-ui/src/app/auth/register/register.component.ts | <filename>kanban-board-ui/src/app/auth/register/register.component.ts
import { Component, OnInit } from '@angular/core';
import { User } from 'src/app/board/user/user';
import { AuthService } from '../auth.service';
import { Router } from '@angular/router';
import { UtilService } from 'src/app/util/util.service';
@Com... |
aditya542ar/kanban-board | kanban-board-ui/src/app/auth/profile/profile.component.ts | import { Component, OnInit, ElementRef } from '@angular/core';
import { UtilService } from 'src/app/util/util.service';
import { User } from 'src/app/board/user/user';
import { AuthService } from '../auth.service';
@Component({
selector: 'app-profile',
templateUrl: './profile.component.html',
styleUrls: ['./prof... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/task/task.ts | import { Stage } from '../stage/stage';
import { Team } from '../team/team';
import { User } from '../user/user';
class TaskStageChange {
public id:string;
public stage:Stage;
public startTime:string;
public endTime:string;
public version:number;
}
export class Task {
public id:string;
pub... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/stage/stage-query.ts | <reponame>aditya542ar/kanban-board
export class StageQuery {
id:string;
idIn:Array<string>;
name:string;
nameIn:Array<string>;
nameLike:string;
projectId:string;
projectIdIn:Array<string>;
sortBy:string;
sortOrder:string;
getIdIn():Array<string> {
if(!this.idIn) {
... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/modal.spec.ts | import { Modal } from './modal';
describe('Modal', () => {
it('should create an instance', () => {
expect(new Modal()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/user/user-query.spec.ts | import { UserQuery } from './user-query';
describe('UserQuery', () => {
it('should create an instance', () => {
expect(new UserQuery()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/modal.ts | <gh_stars>0
export class Modal {
isShow:boolean;
name:string;
header:string = "Oopsss...";
body:any;
}
|
aditya542ar/kanban-board | kanban-board-ui/src/app/app.component.ts | <filename>kanban-board-ui/src/app/app.component.ts
import { Component } from '@angular/core';
import { UtilService } from './util/util.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'kanban-board-ui';
... |
aditya542ar/kanban-board | kanban-board-ui/src/app/auth/login/login.component.ts | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';
import { Router } from '@angular/router';
import { UtilService } from 'src/app/util/util.service';
import { User } from 'src/app/board/user/user';
@Component({
selector: 'app-login',
templateUrl: './login.component.ht... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/util/constant.spec.ts | import { Constant } from './constant';
describe('Constant', () => {
it('should create an instance', () => {
expect(new Constant()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/team/team-query.spec.ts | import { TeamQuery } from './team-query';
describe('TeamQuery', () => {
it('should create an instance', () => {
expect(new TeamQuery()).toBeTruthy();
});
});
|
aditya542ar/kanban-board | kanban-board-ui/src/app/board/project/project-list.component.ts | <reponame>aditya542ar/kanban-board
import { Component, OnInit, EventEmitter, Pipe, Injectable, PipeTransform, ViewChild, ElementRef } from '@angular/core';
import { ProjectService } from '../service/project.service';
import { Project } from './project';
import { User } from '../user/user';
import { Team } from '../team... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/project/project.component.ts | <reponame>aditya542ar/kanban-board<gh_stars>0
import { Component, OnInit, EventEmitter } from '@angular/core';
import { ProjectService } from '../service/project.service';
import { ActivatedRoute, Router } from '@angular/router';
import { Project } from './project';
import { User } from '../user/user';
import { Team } ... |
aditya542ar/kanban-board | kanban-board-ui/src/app/board/stage/stage.ts | <gh_stars>0
export class Stage {
public id:string;
public name:string;
public projectId:string;
constructor(obj?:any) {
if(obj) {
this.id = obj.id;
this.name = obj.name;
this.projectId = obj.projectId;
}
}
}
|
gsiteiovn/components | src/cdk-experimental/clipboard/clipboard.ts | <gh_stars>0
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {DOCUMENT} from '@angular/common';
import {Inject, Injectable} from '@angular/core';
/**
* A ser... |
HPG-AI/tng-script-generator | packages/frontend/src/app/script-generator.service.ts | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '../environments/environment';
/**
* REST client for Script Generator Services.
*/
@Injectable({
providedIn: 'root'
})
export class ScriptGeneratorService {
constructor(private http: HttpCli... |
HPG-AI/tng-script-generator | packages/backend/src/auth/auth/google.strategy.ts | <reponame>HPG-AI/tng-script-generator
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy } from 'passport-google-oauth20';
import { AuthService, Provider } from './auth.service';
import { ConfigService } from '../../config/config.service';
/**
* ... |
HPG-AI/tng-script-generator | packages/frontend/src/app/header/header.component.ts | import { Component } from '@angular/core';
import { environment } from '../../environments/environment';
/**
* Page header.
*/
@Component({
selector: 'app-header',
templateUrl: './header.component.html'
})
export class HeaderComponent {
constructor() {}
/**
* Url used for authentication using Google OAut... |
HPG-AI/tng-script-generator | packages/backend/src/auth/user.repository.ts | <filename>packages/backend/src/auth/user.repository.ts<gh_stars>1-10
import { Injectable } from '@nestjs/common';
import { BaseMongoRepository } from '../shared/base-mongo.repository';
/**
* Repository for Users.
*/
@Injectable()
export class UserRepository extends BaseMongoRepository {
public get collection(): an... |
HPG-AI/tng-script-generator | packages/backend/src/auth/auth.module.ts | <gh_stars>1-10
import { Module, OnModuleInit } from '@nestjs/common';
import { AuthController } from './auth.controller';
import { AuthService } from './auth/auth.service';
import { GoogleStrategy } from './auth/google.strategy';
import { JwtStrategy } from './auth/jwt.strategy';
import { ConfigModule } from '../config... |
HPG-AI/tng-script-generator | packages/backend/src/auth/auth.controller.ts | import {
Controller,
Get,
UseGuards,
Res,
Req,
Post,
Body,
} from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { ConfigService } from '../config/config.service';
import { AuthService, Provider } from './auth/auth.service';
import * as bcrypt from 'bcrypt';
import { promisify } fr... |
HPG-AI/tng-script-generator | packages/backend/src/script-generator/script-generator.module.ts | import { Module } from '@nestjs/common';
import { ConfigModule } from '../config/config.module';
import { ScriptGeneratorController } from './script-generator.controller';
import { ScriptGeneratorService } from './script-generator.service';
import { ScriptRepository } from './script.repository';
import { AuthModule } f... |
HPG-AI/tng-script-generator | packages/backend/src/script-generator/disclaimer.const.ts | /**
* Disclaimer text for generated scripts.
*/
export const DISCLAIMER = `DISCLAIMER
"Star Trek", "Star Trek: The Next Generation" and all related Star Trek related material may be or are registered trademarks of Paramount Studios and CBS.
----`;
|
HPG-AI/tng-script-generator | packages/backend/src/shared/base-mongo.repository.ts | import { MongoConnectionService } from './mongo-connection.service';
import { Injectable } from '@nestjs/common';
/**
* Base class for MongoDB persistence.
*/
@Injectable()
export abstract class BaseMongoRepository {
constructor(protected _mongoConnectionService: MongoConnectionService) {}
/**
* Get collecti... |
HPG-AI/tng-script-generator | packages/frontend/src/app/auth-with-jwt-page/auth-with-jwt-page.component.ts | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { delay } from '../delay.util';
/**
* Page showing authentication message after redirect
* containing JWT from server.
*/
@Component({
selector: 'app-auth-with-jwt-page',
templateUrl: './auth-with... |
HPG-AI/tng-script-generator | packages/backend/src/app.module.ts | <gh_stars>1-10
import { Module, OnModuleInit } from '@nestjs/common';
import { AuthModule } from './auth/auth.module';
import { ConfigModule } from './config/config.module';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { MongoConnectionService } from './shared/mongo-conn... |
HPG-AI/tng-script-generator | packages/backend/src/script-generator/script.repository.ts | <filename>packages/backend/src/script-generator/script.repository.ts
import { Injectable } from '@nestjs/common';
import { BaseMongoRepository } from '../shared/base-mongo.repository';
/**
* Repository for Scripts.
*/
@Injectable()
export class ScriptRepository extends BaseMongoRepository {
public get collection()... |
HPG-AI/tng-script-generator | packages/frontend/src/app/delay.util.ts | <filename>packages/frontend/src/app/delay.util.ts
/**
* Return a promise which delays execution by milliseconds.
* @param ms Delay time.
* @param value Resolved value.
*/
export const delay = (ms: number, value?: any) =>
new Promise((resolve) => setTimeout(() => resolve(value), ms));
|
HPG-AI/tng-script-generator | packages/frontend/src/environments/environment.prod.ts | <reponame>HPG-AI/tng-script-generator<gh_stars>1-10
export const environment = {
production: true,
apiBaseUrl: 'http://localhost:3000',
/**
* This is a purely random wait time!
* PROD: Replace/remove!
*/
scriptGeneratorWaitTime: 120000,
stripeKey: ''
};
|
HPG-AI/tng-script-generator | packages/frontend/src/app/auth-interceptor.service.ts | <gh_stars>1-10
import { Injectable } from '@angular/core';
import {
HttpInterceptor,
HttpRequest,
HttpHandler,
HttpEvent
} from '@angular/common/http';
import { Observable } from 'rxjs';
/**
* Interceptor providing JWT
* for authentication in any HTTP request.
*/
@Injectable({
providedIn: 'root'
})
expor... |
HPG-AI/tng-script-generator | packages/frontend/src/app/checkout-with-stripe/checkout-with-stripe.component.ts | import { Component, ViewChild } from '@angular/core';
import {
StripeService,
StripeCardComponent,
ElementOptions,
ElementsOptions
} from 'ngx-stripe';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { take } from 'rxjs/operators';
/**
* Checkout form for Script Generator using
* Stripe.
... |
HPG-AI/tng-script-generator | packages/frontend/src/app/not-authenticated-alert/not-authenticated-alert.component.ts | import { Component } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
/**
* Modal dialog showing not authenticated
* message.
*/
@Component({
selector: 'app-not-authenticated-alert',
templateUrl: './not-authenticated-alert.component.html'
})
export class NotAuthenticatedAlertCo... |
HPG-AI/tng-script-generator | packages/backend/src/script-generator/script-generator.controller.ts | import { Controller, UseGuards, Get, Post, Body, Param, Req } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { ScriptGeneratorService } from './script-generator.service';
import { ScriptRepository } from './script.repository';
/**
* Controller for script generation.
*/
@Controller('scrip... |
HPG-AI/tng-script-generator | packages/frontend/src/app/app.module.ts | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import ... |
HPG-AI/tng-script-generator | packages/backend/src/auth/mock.strategy.ts | <reponame>HPG-AI/tng-script-generator
export class MockStrategy {
public authenticate(...args) {
const self = (this as any);
self.success({}, {});
}
}
|
emmycook/emmycook.dev | src/contents/intro.tsx | <gh_stars>0
import { h } from '../h';
import { createFragment } from '@virtualstate/x';
import { Goals } from './goals';
import { Template } from '../template';
export const Intro = (
<>
<Template id="intro-template">
<h1>Virtual State X</h1>
<div class="quote">
Psst... see the <a href="https... |
emmycook/emmycook.dev | src/unbound.tsx | import { SourceReference, VNode } from '@virtualstate/x';
import { assertElement, NativeOptionsVNode, render } from '@virtualstate/dom';
import { h } from '@virtualstate/x';
export interface UnboundOptions {
reference?: SourceReference;
source?: string;
onComplete?(): void;
onError?(error: unknown): void;
}
e... |
emmycook/emmycook.dev | src/contents/index.tsx | import { h } from "../h";
import { Intro } from "./intro";
import { Example } from "./example";
import { Tokens } from './tokens';
import { Template } from '../template';
// TODO test
export const SiteContents = (
<main>
<h1>hi</h1>
</main>
);
|
emmycook/emmycook.dev | src/types/global.ts | declare global {
interface Window {
proposalSiteRender?: Promise<void>;
}
}
export {};
|
emmycook/emmycook.dev | src/contents/current-state.tsx | import { h } from "../h";
export const CurrentState = (
<section id="current-state">
<h4>Current project state</h4>
<p>
</p>
</section>
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.