repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
kctang/ng-quick-form | projects/ng-quick-form/src/lib/setDefaultValues.ts | /**
* Pre-process dialog form fields to set default values.
*
* @param fields
*/
import { QuickFormField } from './QuickFormField'
import { resolvedOptions } from './util/resolveOptions'
/**
* https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case
*
* @param str
*/
const camelize = (... |
kctang/ng-quick-form | projects/ng-quick-form/src/lib/validators/CheckboxValidators.ts | import { AbstractControl, FormArray, ValidatorFn } from '@angular/forms'
import { assert } from '../util/assert'
/**
* This is only applicable to quick form checkbox field types.
*/
// @dynamic
export class CheckboxValidators {
/**
* Validates that 'checkbox' quick form field has the specified minimum number of... |
kctang/ng-quick-form | projects/ng-quick-form/src/lib/QuickFormField.ts | import { AsyncValidatorFn, FormGroup, ValidatorFn } from '@angular/forms'
import { QuickFormFieldType } from './QuickFormFieldType'
import { QuickFormFieldOptionDefinition } from './QuickFormFieldOptionDefinition'
/**
* QuickFormField represents definition for a field.
*/
export type QuickFormField = {
/**
* La... |
kctang/ng-quick-form | projects/ng-quick-form/src/lib/QuickForm.ts | import { makeForm } from './makeForm'
import { preProcessFormValues } from './preProcessFormValues'
// @dynamic
export const QuickForm = {
makeForm,
preProcessFormValues
}
|
kctang/ng-quick-form | projects/ng-quick-form/src/lib/QuickFormFieldOptionDefinition.ts | /**
* Supported form field option definition styles.
*/
export type QuickFormFieldOptionDefinition = (
// shorthand - string value will be used for both "value" and "label"
string |
// specify values for "value" and "label"
{ value: any, label: string } |
// shorthand style within an option group
{ grou... |
kctang/ng-quick-form | projects/demo/src/global.d.ts | declare module 'highlight.js/lib/languages/scss'
declare module 'highlight.js/lib/languages/typescript'
declare module 'highlight.js/lib/languages/xml'
|
bid-ops-development/bebop | example/src/App.tsx | <gh_stars>0
import React from 'react'
import {
BrowserRouter as Router,
Switch,
Route,
// Link
} from "react-router-dom";
import { UserGuide, Welcome } from './components/pages';
// import 'bebop/dist/index.css'
// import './theme.less'
// import 'antd/dist/antd.less'
const App = () => {
return <Router>
... |
bid-ops-development/bebop | src/types.ts | <gh_stars>0
export interface CommonProps extends React.HTMLAttributes<HTMLDivElement> {}
|
bid-ops-development/bebop | example/src/components/templates/PlainLayout.tsx | <filename>example/src/components/templates/PlainLayout.tsx<gh_stars>0
import React from 'react';
import bebop from 'bebop';
import { BasicProps } from 'antd/lib/layout/layout';
import { Affix } from 'antd';
const { Layout, Content } = bebop;
type PageTemplateProps = {
sider?: React.ReactNode,
header?: React.ReactN... |
bid-ops-development/bebop | example/src/components/templates/MainFrame.tsx | import React, { useState } from 'react'
import bebop from 'bebop';
import { Affix } from 'antd';
import { PlainLayout } from './PlainLayout'
import Logo from '../atoms/Logo';
import { BasicProps } from 'antd/lib/layout/layout';
const { Sider, Header, Icons } = bebop;
type MenuBuilder = ({ wideMenu }: { wideMenu: boole... |
bid-ops-development/bebop | example/src/components/pages/UserGuide.tsx | <gh_stars>0
/* eslint-disable jsx-a11y/accessible-emoji */
import React from 'react';
import bebop from 'bebop'
import { Link, Switch, Route, useRouteMatch } from 'react-router-dom';
import pkg from '../../../package.json'
import MainFrame from '../templates/MainFrame';
import { userGuideContent } from './userGuideCont... |
bid-ops-development/bebop | example/src/components/atoms/Logo.tsx | /* eslint-disable jsx-a11y/alt-text */
import React from 'react';
const Logo = {
Wide: (props: React.HTMLAttributes<HTMLImageElement>) =>
<div style={{ maxWidth: '148px', overflow: 'hidden', margin: '2rem 0' }}>
<img
src="https://bidops-public.s3.amazonaws.com/assets/logos/bidops_logo_white@2x.png"
{.... |
bid-ops-development/bebop | example/src/components/pages/userGuideContent.tsx | /* eslint-disable jsx-a11y/accessible-emoji */
import React from 'react';
import { Code } from "../atoms/Code";
const codeString = `<Layout style={{ height: '100vh'}}>
<Content style={{ flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}>
<Hero>
Bebop is a design system for Bid... |
bid-ops-development/bebop | example/src/components/templates/Jumbotron.tsx | <gh_stars>0
import React from 'react';
import bebop from 'bebop';
const { Content, Hero } = bebop;
interface JumbotronProps extends React.HTMLAttributes<HTMLDivElement> {
// message?: string
// callToAction?: React.ReactNode
children?: React.ReactNode
}
export function Jumbotron(props: JumbotronProps) {
retu... |
bid-ops-development/bebop | src/components/atoms/icons/index.tsx | <reponame>bid-ops-development/bebop<filename>src/components/atoms/icons/index.tsx<gh_stars>0
import React from 'react'
import {
UserOutlined,
MenuOutlined,
DashboardOutlined,
CoffeeOutlined,
InboxOutlined,
MessageOutlined,
BookOutlined,
BellOutlined,
RocketOutlined,
TrophyOutlined,
ToolOutlined,
... |
bid-ops-development/bebop | example/src/components/pages/Welcome.tsx | <filename>example/src/components/pages/Welcome.tsx<gh_stars>0
/* eslint-disable jsx-a11y/accessible-emoji */
import React from 'react';
import Bebop from 'bebop';
import { Divider, Row, Col } from 'antd';
import { Link } from 'react-router-dom';
import { Jumbotron } from '../templates/Jumbotron';
import MainFrame from ... |
bid-ops-development/bebop | example/src/components/atoms/Code.tsx | <filename>example/src/components/atoms/Code.tsx
import React from 'react';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { dark } from 'react-syntax-highlighter/dist/esm/styles/prism';
export function Code({ snippet }: { snippet: string; }) {
return (
<SyntaxHighlighter language=... |
bid-ops-development/bebop | src/index.test.tsx | import Bebop from '.'
describe('Hero', () => {
it('is truthy', () => {
expect(Bebop.Hero).toBeTruthy()
})
})
|
bid-ops-development/bebop | src/index.tsx | /* eslint-disable no-unused-vars */
import React from 'react'
import { Menu as AntMenu, Table as AntTable, Layout, Card } from 'antd'
import styles from './styles.module.css'
import layout from './layout.module.css'
import './typography.css' // load fonts
import { BasicProps } from 'antd/lib/layout/layout'
import { T... |
bid-ops-development/bebop | example/src/components/pages/Catalog.tsx | <reponame>bid-ops-development/bebop<filename>example/src/components/pages/Catalog.tsx
import React from 'react'
import bebop from 'bebop'
const { Card, Table } = bebop;
export function Catalog() { return <>
<Card>
<h1>Table</h1>
Arrange data in rows and columns.
<b>Key use case:</b> present a list ... |
bid-ops-development/bebop | src/components/atoms/buttons/index.tsx | <reponame>bid-ops-development/bebop
/* eslint-disable no-unused-vars */
import React from 'react'
import { Button } from 'antd'
import { ButtonProps } from 'antd/lib/button'
import { CommonProps } from '../../../types'
import button from './button.module.css'
const Buttons = {
Primary: (props: CommonProps & ButtonP... |
bid-ops-development/bebop | example/src/components/pages/index.ts | <gh_stars>0
import { UserGuide } from './UserGuide'
import { Welcome } from './Welcome'
export { UserGuide, Welcome } |
szukalski/aws-cdk-ez | test/ez-s3/ez-s3.test.ts | <reponame>szukalski/aws-cdk-ez<filename>test/ez-s3/ez-s3.test.ts
import { App, assertions, Stack } from 'aws-cdk-lib';
import { EzS3Bucket } from '../../src/ez-s3/ez-s3';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
test('Test EZ S3 with Defaults', () => {
const ... |
szukalski/aws-cdk-ez | src/ez-s3/integ.ez-s3.ts | import { App, Stack } from 'aws-cdk-lib';
import { EzS3Bucket } from './ez-s3';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
const app = new App();
const stack = new Stack(app, 'test', { env: env });
new EzS3Bucket(stack, 'Bucket', {
enableWebDistribution: true,
... |
szukalski/aws-cdk-ez | src/ez-ec2-key-pair/ez-ec2-key-pair.ts | <gh_stars>0
import { KeyPair } from 'cdk-ec2-key-pair';
import { Construct } from 'constructs';
/**
* Definition of EZ EC2 Key Pair
*/
export interface IEzEc2KeyPairProps {
/**
* Name of RSA key to deploy instance with.
*
* @default - undefined
*/
keyName: string;
/**
* Public key to use
*
... |
szukalski/aws-cdk-ez | test/ez-ec2/ez-ec2.test.ts | import { App, assertions, Stack } from 'aws-cdk-lib';
import { EzEc2Instance } from '../../src/ez-ec2/ez-ec2';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
test('Test EZ EC2', () => {
const app = new App();
const stack = new Stack(app, 'testing-primary', { env:... |
szukalski/aws-cdk-ez | src/ez-vpc/ez-vpc.ts | import { CfnOutput } from 'aws-cdk-lib';
import { GatewayVpcEndpointAwsService, InterfaceVpcEndpointAwsService, SubnetType, Vpc, VpcProps } from 'aws-cdk-lib/aws-ec2';
import { Construct } from 'constructs';
/**
* Definition of EZ VPC
*/
export interface IEzVpcProps {
/**
* Whether to enable VPC Flow Logs
*... |
szukalski/aws-cdk-ez | test/ez-aurora/ez-aurora.test.ts | import { App, assertions, Stack } from 'aws-cdk-lib';
import { AuroraPostgresEngineVersion, DatabaseClusterEngine } from 'aws-cdk-lib/aws-rds';
import { EzAuroraCluster, EzAuroraGlobalCluster } from '../../src/ez-aurora/ez-aurora';
const envPrimary = { account: process.env.CDK_DEFAULT_ACCOUNT, region: 'eu-west-1' };
c... |
szukalski/aws-cdk-ez | src/ez-s3/ez-s3.ts | <filename>src/ez-s3/ez-s3.ts
import { CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
import { CloudFrontAllowedMethods, CloudFrontWebDistribution, OriginAccessIdentity } from 'aws-cdk-lib/aws-cloudfront';
import { BlockPublicAccess, Bucket, BucketEncryption, BucketProps } from 'aws-cdk-lib/aws-s3';
import { BucketDeplo... |
szukalski/aws-cdk-ez | src/index.ts | <reponame>szukalski/aws-cdk-ez
export * from './ez-vpc/ez-vpc';
export * from './ez-ec2/ez-ec2';
export * from './ez-ec2-key-pair/ez-ec2-key-pair';
export * from './ez-s3/ez-s3';
export * from './ez-aurora/ez-aurora'; |
szukalski/aws-cdk-ez | src/ez-aurora/ez-aurora.ts | import { CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
import { InstanceClass, InstanceSize, InstanceType, IVpc, SubnetType } from 'aws-cdk-lib/aws-ec2';
import { AuroraPostgresEngineVersion, DatabaseClusterEngine, CfnDBCluster, CfnGlobalCluster, DatabaseCluster, DatabaseClusterProps, IClusterEngine } from 'aws-cdk-li... |
szukalski/aws-cdk-ez | src/ez-vpc/integ.ez-vpc.ts | import { App, Stack } from 'aws-cdk-lib';
import { EzVpc } from '..';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
const app = new App();
const stack = new Stack(app, 'test', { env: env });
new EzVpc(stack, 'Vpc', {
enableSubnetPrivateIsolated: true,
}); |
szukalski/aws-cdk-ez | src/ez-ec2-key-pair/integ.ez-ec2-key-pair.ts | import { App, Stack } from 'aws-cdk-lib';
import { EzEc2KeyPair } from '..';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
const keyName = 'test';
const publicKey = 'ssh-rsa <KEY>';
const app = new App();
const stack = new Stack(app, 'test', { env: env });
new EzEc2... |
szukalski/aws-cdk-ez | test/ez-vpc/ez-vpc.test.ts | import { App, assertions, Stack } from 'aws-cdk-lib';
import { EzVpc } from '../../src/ez-vpc/ez-vpc';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
test('Test EZ VPC with Defaults', () => {
const app = new App();
const stack = new Stack(app, 'testing-primary', ... |
szukalski/aws-cdk-ez | src/ez-ec2/ez-ec2.ts | <filename>src/ez-ec2/ez-ec2.ts
import { CfnOutput } from 'aws-cdk-lib';
import { AmazonLinuxGeneration, IMachineImage, Instance, InstanceClass, InstanceProps, InstanceSize, InstanceType, IVpc, MachineImage, SecurityGroup, Vpc } from 'aws-cdk-lib/aws-ec2';
import { IRole, ManagedPolicy, Role, ServicePrincipal } from 'aw... |
szukalski/aws-cdk-ez | src/ez-aurora/integ.ez-aurora.ts | import { App, Stack } from 'aws-cdk-lib';
import { AuroraPostgresEngineVersion, DatabaseClusterEngine } from 'aws-cdk-lib/aws-rds';
import { EzAuroraCluster, EzAuroraGlobalCluster, EzVpc } from '..';
const envPrimary = { account: process.env.CDK_DEFAULT_ACCOUNT, region: 'eu-west-1' };
const envSecondary = { account: p... |
szukalski/aws-cdk-ez | src/ez-ec2/integ.ez-ec2.ts | import { App, Stack } from 'aws-cdk-lib';
import { EzEc2Instance } from '..';
const env = { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION };
const keyName = process.env.CDK_RSA_KEY;
const app = new App();
const stack = new Stack(app, 'test', { env: env });
new EzEc2Instance(stack, '... |
PhilStollery/fast-dna | sites/fast-website/src/app/components/fast-frame/fast-frame.template.ts | import { StandardLuminance } from "@microsoft/fast-components-styles-msft";
import { html, repeat } from "@microsoft/fast-element";
import ContextIcon from "svg/icon-context.svg";
import ContrastIcon from "svg/icon-contrast.svg";
import DownloadIcon from "svg/icon-download.svg";
import PaletteIcon from "svg/icon-palett... |
PhilStollery/fast-dna | packages/web-components/fast-foundation/src/tabs/tabs.ts | <reponame>PhilStollery/fast-dna<gh_stars>0
import { attr, FASTElement, observable } from "@microsoft/fast-element";
import {
keyCodeArrowDown,
keyCodeArrowLeft,
keyCodeArrowRight,
keyCodeArrowUp,
keyCodeEnd,
keyCodeHome,
wrapInBounds,
} from "@microsoft/fast-web-utilities";
import { StartEnd... |
PhilStollery/fast-dna | sites/fast-website/src/app/components/side-navigation/side-navigation.ts | import { attr, observable, FASTElement } from "@microsoft/fast-element";
import {
CommunityContentPlacementData,
communityContentPlacementData,
} from "../../data/community.data";
export interface sectionData {
section: string;
intersectionRatio: number;
}
export class SideNavigation extends FASTEleme... |
PhilStollery/fast-dna | packages/react/fast-components-react-base/src/horizontal-overflow/horizontal-overflow.tsx | import { HorizontalOverflowClassNameContract } from "@microsoft/fast-components-class-name-contracts-base";
import Foundation, { HandledProps } from "@microsoft/fast-components-foundation-react";
import {
classNames,
Direction,
getClientRectWithMargin,
RtlScrollConverter,
} from "@microsoft/fast-web-uti... |
misterngng/react-google-recaptcha-v3 | dist/types/google-recaptcha-provider.d.ts | <gh_stars>0
import * as React from 'react';
interface IGoogleReCaptchaProviderProps {
reCaptchaKey?: string;
language?: string;
}
export interface IGoogleReCaptchaConsumerProps {
executeRecaptcha?: (action?: string) => Promise<string>;
}
declare const GoogleReCaptchaContext: React.Context<IGoogleReCaptchaCo... |
undef-thesis/BT.Web | src/app/modules/meetings/meetings.component.ts | <gh_stars>0
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import Meeting from 'src/app/core/models/Meeting';
import { MeetingsService } from 'src/app/core/services/meetings.service';
@Component({
selector: 'app-meetings',
templateUrl: './meetings.component.htm... |
undef-thesis/BT.Web | src/environments/environment.prod.ts | <reponame>undef-thesis/BT.Web<filename>src/environments/environment.prod.ts
export const environment = {
production: true,
API_URL: 'https://bt-server-l4g8l.ondigitalocean.app/api/v1',
};
|
undef-thesis/BT.Web | src/app/layout/navbar/navbar.component.ts | import { ModalService } from './../../core/services/modal.service';
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { AuthService } from 'src/app/core/services/auth.service';
import { NavigationEnd, Router } from '@angular/router';
import { UserProfileService } from 'src/app/core/servic... |
undef-thesis/BT.Web | src/app/shared/map/GoogleAddressParser.ts | <reponame>undef-thesis/BT.Web<filename>src/app/shared/map/GoogleAddressParser.ts
interface AddressComponent {
long_name: string;
short_name: string;
types: Array<string>;
}
interface Address {
latitude?: number;
longitude?: number;
country?: string;
countryCode?: string;
province?: string;
city?: str... |
undef-thesis/BT.Web | src/app/modules/auth/login/login.component.ts | <filename>src/app/modules/auth/login/login.component.ts
import { ToastrService } from 'ngx-toastr';
import { ModalService } from './../../../core/services/modal.service';
import { Router } from '@angular/router';
import { AuthService } from './../../../core/services/auth.service';
import { Component, OnInit } from '@an... |
undef-thesis/BT.Web | src/app/shared/meeting-card-list/meeting-card-list.component.ts | import { Component, Input, OnInit } from '@angular/core';
import Meeting from 'src/app/core/models/Meeting';
@Component({
selector: 'app-meeting-card-list',
templateUrl: './meeting-card-list.component.html',
styleUrls: ['./meeting-card-list.component.scss'],
})
export class MeetingCardListComponent implements On... |
undef-thesis/BT.Web | src/app/shared/carousel/carousel.component.ts | import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-carousel',
templateUrl: './carousel.component.html',
styleUrls: ['./carousel.component.scss'],
})
export class CarouselComponent implements OnInit {
@Input() images: Array<String>;
@Input() minHeight: String;
@Input() aut... |
undef-thesis/BT.Web | src/app/modules/userpanel/userpanel.component.ts | import { AuthService } from 'src/app/core/services/auth.service';
import { Component, OnInit } from '@angular/core';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { MeetingsService } from 'src/app/core/services/meetings.service';
import { UserProfileService } from 'src/app/core/serv... |
undef-thesis/BT.Web | src/app/core/models/Image.ts | export default class Image {
public picture: string;
constructor(picture: string) {
this.picture = picture;
}
}
|
undef-thesis/BT.Web | src/app/core/models/Profile.ts | export class Profile {
public id: string;
public firstname: string;
public lastname: string;
public avatar?: any;
constructor(firstname: string, lastname: string, avatar?: any) {
this.firstname = firstname;
this.lastname = lastname;
this.avatar = avatar;
}
}
|
undef-thesis/BT.Web | src/app/core/models/Category.ts | export default class Category {
public id?: number;
public name?: string;
constructor(id: number, name?: string) {
this.id = id;
this.name = name;
}
}
|
undef-thesis/BT.Web | src/app/modules/userpanel/components/avatar/avatar.component.ts | import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { ToastrService } from 'ngx-toastr';
import { UserProfileService } from 'src/app/core/services/user-profile.service';
@Component({
selector: 'app-avatar',
templateUrl: './... |
undef-thesis/BT.Web | src/app/app.module.ts | <reponame>undef-thesis/BT.Web
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { CoreModule } from './core/core.module';
import { LayoutModule } from './layout/layout.module';
import { SharedModule } from './shared/shared.module';
impor... |
undef-thesis/BT.Web | src/app/modules/userpanel/components/change-password/change-password.component.ts | <filename>src/app/modules/userpanel/components/change-password/change-password.component.ts
import { Component, OnInit } from '@angular/core';
import {
FormGroup,
FormBuilder,
Validators,
AbstractControl,
} from '@angular/forms';
import { TranslateService } from '@ngx-translate/core';
import { ToastrService } f... |
undef-thesis/BT.Web | src/app/core/services/user-profile.service.ts | <filename>src/app/core/services/user-profile.service.ts
import { Profile } from './../models/Profile';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { map } from 'rxjs/operators';
import { environment } from 'src/environments/environment';
import { Observable } fr... |
undef-thesis/BT.Web | src/app/modules/add-meeting/address-card/address-card.component.ts | import { Component, Input } from '@angular/core';
import Address from 'src/app/core/models/Address';
@Component({
selector: 'app-address-card',
templateUrl: './address-card.component.html',
styleUrls: ['./address-card.component.scss'],
})
export class AddressCardComponent {
@Input() address: Address;
constr... |
undef-thesis/BT.Web | src/app/core/models/Marker.ts | interface LatLng {
lat: number;
lng: number;
}
export default class Marker {
public id?: string;
public position: LatLng;
public title?: string;
public info?: any;
public range?: number;
constructor(
id: string,
position: LatLng,
title: string = '',
info: any = '',
range: number = ... |
undef-thesis/BT.Web | src/app/core/services/meeting.service.spec.ts | <reponame>undef-thesis/BT.Web<filename>src/app/core/services/meeting.service.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { fakeAsync, TestBed } from '@angular/core/testing';
import { MeetingsService } from './meetings.service';
describe('MeetingsService', () => {
let servi... |
undef-thesis/BT.Web | src/app/shared/search-box/search-box.component.ts | <reponame>undef-thesis/BT.Web<filename>src/app/shared/search-box/search-box.component.ts<gh_stars>0
import { Component, Input, OnInit, SimpleChanges } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import Meeting from 'src/app/core/models/Meeting';
import { MeetingsService } from 'src/a... |
undef-thesis/BT.Web | src/app/modules/meeting-details/meeting-details.component.ts | import { AuthService } from 'src/app/core/services/auth.service';
import { MeetingsService } from 'src/app/core/services/meetings.service';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { NgxSpinnerService } from 'ngx-spinner';
import { Location } from '@ang... |
undef-thesis/BT.Web | src/app/shared/shared.module.ts | import { ModalComponent } from './modal/modal.component';
import { SlideshowModule } from 'ng-simple-slideshow';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MeetingCardComponent } from './meeting-ca... |
undef-thesis/BT.Web | src/app/core/services/meetings.service.ts | <gh_stars>0
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import Meeting from '../models/Meeting';
import { map } from 'rxjs/operators';
import { environment } from 'src/environments/environment';
import Address from '../models/Address';
@Injectable({
providedIn: 'roo... |
undef-thesis/BT.Web | src/app/modules/auth/register/register.component.ts | import { ToastrService } from 'ngx-toastr';
import { AuthService } from './../../../core/services/auth.service';
import { Component, OnInit, ViewChild } from '@angular/core';
import { Subscription } from 'rxjs';
import { ModalService } from 'src/app/core/services/modal.service';
import UserRegister from 'src/app/core/... |
undef-thesis/BT.Web | src/app/core/services/auth.service.ts | import { Router } from '@angular/router';
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environment';
import { map } from 'rxjs/operators';
import UserRegister from '../models/UserRegister';
import User from '../models/User';... |
undef-thesis/BT.Web | src/app/modules/home/home.component.ts | <gh_stars>0
import { GoogleAddressParser } from './../../shared/map/GoogleAddressParser';
import { CategoriesService } from './../../core/services/categories.service';
import Localization from 'src/app/core/models/Localization';
import { Component, OnInit } from '@angular/core';
import { MeetingsService } from 'src/app... |
undef-thesis/BT.Web | src/app/core/services/categories.service.spec.ts | <gh_stars>0
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { fakeAsync, TestBed } from '@angular/core/testing';
import { CategoriesService } from './categories.service';
describe('MeetingsService', () => {
let service: CategoriesService;
beforeEach(() => {
TestBed.configureTes... |
undef-thesis/BT.Web | src/app/modules/add-meeting/add-meeting.component.ts | import { MapService } from './../../core/services/map.service';
import { Router, ActivatedRoute } from '@angular/router';
import { MeetingsService } from './../../core/services/meetings.service';
import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';
import { FormGroup, FormBuilder, Validators... |
undef-thesis/BT.Web | src/app/modules/userpanel/components/personal/personal.component.ts | <reponame>undef-thesis/BT.Web<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Profile } from 'src/app/core/models/Profile';
import { UserProfileService } from 'src/app/core/services/user-profile.service';
@Component({
selector: 'app-pers... |
undef-thesis/BT.Web | src/app/shared/modal/modal.component.ts | import { ModalService } from './../../core/services/modal.service';
import {
Component,
OnInit,
ViewChild,
ContentChild,
TemplateRef,
HostListener,
Input,
} from '@angular/core';
@Component({
selector: 'app-modal',
templateUrl: './modal.component.html',
styleUrls: ['./modal.component.scss'],
})
exp... |
undef-thesis/BT.Web | src/app/modules/auth/register/register.component.spec.ts | import { ModalComponent } from './../../../shared/modal/modal.component';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ComponentFixture, Test... |
undef-thesis/BT.Web | src/app/shared/map/map.component.ts | <gh_stars>0
import {
Component,
OnInit,
Input,
EventEmitter,
Output,
ViewChild,
SimpleChanges,
} from '@angular/core';
import { MapInfoWindow, MapMarker } from '@angular/google-maps';
import { Router } from '@angular/router';
import Address from 'src/app/core/models/Address';
import Marker from 'src/app/c... |
undef-thesis/BT.Web | src/app/core/services/map.service.ts | import { Injectable } from '@angular/core';
import { GoogleAddressParser } from 'src/app/shared/map/GoogleAddressParser';
import Address from '../models/Address';
import { BehaviorSubject, Observable } from 'rxjs';
// TODO: REMOVE THIS COMPONENT???
@Injectable({
providedIn: 'root',
})
export class MapService {
co... |
undef-thesis/BT.Web | src/app/core/interceptors/error.interceptor.ts | import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpEvent,
HttpInterceptor,
HttpClient,
} from '@angular/common/http';
import { Observable, throwError, BehaviorSubject } from 'rxjs';
import { catchError, switchMap } from 'rxjs/operators';
import { AuthService } from '../services... |
undef-thesis/BT.Web | src/app/modules/userpanel/helpers/MenuOptions.ts | <reponame>undef-thesis/BT.Web
export enum MenuOptions {
Personal,
Organized,
Enrolled,
}
|
undef-thesis/BT.Web | src/app/core/models/Localization.ts | export default class Localization {
public latitude: number;
public longitude: number;
constructor(latitude: number, longitude: number) {
this.latitude = latitude;
this.longitude = longitude;
}
}
|
undef-thesis/BT.Web | src/app/shared/meeting-card/meeting-card.component.ts | import { Component, OnInit, Input } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import moment from 'moment';
import Category from 'src/app/core/models/Category';
import Image from 'src/app/core/models/Image';
@Component({
selector: 'app-meeting-card',
templateUrl: './meeting-car... |
undef-thesis/BT.Web | src/app/core/models/UserRegister.ts | import User from './User';
export default class UserRegister extends User {
public confirmPassword: string;
public firstName: string;
public lastName: string;
constructor(
email: string,
password: string,
confirmPassword: string,
firstName: string,
lastName: string
) {
super(email, p... |
undef-thesis/BT.Web | src/app/core/services/categories.service.ts | <filename>src/app/core/services/categories.service.ts
import { environment } from './../../../environments/environment';
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { map } from 'rxjs/operators';
@Injectable({
providedIn: 'root',
})
export class CategoriesSer... |
undef-thesis/BT.Web | src/app/app.component.ts | <gh_stars>0
import { Component } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'BT.Web';
constructor(private translate: Translat... |
undef-thesis/BT.Web | src/app/core/models/Address.ts | <filename>src/app/core/models/Address.ts
export default class Address {
public latitude?: number;
public longitude?: number;
public range?: number;
public country?: string;
public countryCode?: string;
public province?: string;
public city?: string;
public street?: string;
public postalCode?: string;
... |
undef-thesis/BT.Web | src/app/core/services/modal.service.ts | import { Injectable } from '@angular/core';
import { Subject, Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class ModalService {
private modalState = new Subject<any>();
private modals: any[] = [];
public setModalState(isOpen: boolean) {
this.modalState.next({ isOpen });
}
pub... |
undef-thesis/BT.Web | src/app/app-routing.module.ts | <gh_stars>0
import { MeetingsComponent } from './modules/meetings/meetings.component';
import { UserProfileComponent } from './modules/user-profile/user-profile.component';
import { MeetingDetailsComponent } from './modules/meeting-details/meeting-details.component';
import { UserpanelComponent } from './modules/userpa... |
undef-thesis/BT.Web | src/app/core/models/Meeting.ts | <gh_stars>0
import Address from './Address';
import Category from './Category';
import Image from './Image';
export default class Meeting {
public id: string;
public name: string;
public description: string;
public maxParticipants: number;
public date: Date;
public address?: Address;
public category?: Ca... |
undef-thesis/BT.Web | src/app/modules/modules.module.ts | <reponame>undef-thesis/BT.Web
import { NgxSpinnerModule } from 'ngx-spinner';
import { HomeComponent } from './home/home.component';
import { SharedModule } from './../shared/shared.module';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Slides... |
jerzakm/LudumDare-45-entry | src/game/player/Player.ts | <gh_stars>0
import { Card } from "../cards/cards"
export class Player {
name: string
skills: PlayerSkills
status: PlayerStatus
constructor(name: string, skills = defaultPlayerSkills()) {
this.name = name
this.skills = skills
this.status = {
health: 10,
energy: 10,
mind: 10
}... |
jerzakm/LudumDare-45-entry | src/game/cards/cardList.ts | <gh_stars>0
import { Card } from "./cards"
import { player } from "../game"
export const sleepCard = () => {
const card = new Card('card_sleep')
card.playerStatus.health = 5
card.playerStatus.energy = 10
card.playerStatus.mind = 5
card.time = 360
return card
}
export const pixelPractice = () => {
const ... |
jerzakm/LudumDare-45-entry | src/core/renderer.ts | <filename>src/core/renderer.ts
import * as PIXI from 'pixi.js'
export let renderer: PIXI.Renderer
export let ticker = PIXI.Ticker.shared
export let stage: PIXI.Container
export function initRenderer() {
renderer = new PIXI.Renderer(
{
width: window.innerWidth,
height: window.innerHeight,
bac... |
jerzakm/LudumDare-45-entry | src/game/style.ts | export const menuColors = {
text: 0xFFFFFF,
primary: 0x300030,
primaryLight: 0x602878,
secondary: 0xF89020,
secondaryLight: 0xF8F088
}
export const colorScheme = {
background: 0x574477
}
export const style = {
fontFamily: 'Lucida Console'
} |
jerzakm/LudumDare-45-entry | src/game/cards/cardDraw.ts | <gh_stars>0
import { sleepCard, pixelPractice, soundPractice, levelProcGen, simplePhysics, mechanicsBalancing, krazyIdea, joinCommunity, meaningOfLife, characterArt, happyTrees, marieCondo, makeNoise, walkInAPark, askAFriend, takeANap, kevinDialogue, quillCard, sheSaid, cardTiled, cardRelease, cardBroccoli, cardJoe, ca... |
jerzakm/LudumDare-45-entry | src/game/game.ts | import { initMenu } from "./menu"
import { Container, Sprite } from "pixi.js"
import { GameJam } from "./jam/GameJam"
import { makeGameUi, updateTimeLeftCounter } from "./ui/uiController"
import { Player } from "./player/Player"
import { statUpdater } from "./ui/statBars"
import { loader } from "../core/loader"
import ... |
jerzakm/LudumDare-45-entry | src/game/jam/jamEnd.ts | <reponame>jerzakm/LudumDare-45-entry
import { GameJam, PlayerGameStats } from "./GameJam";
import { Player } from "../player/Player";
import { cardContainer } from "../ui/uiController";
import { Container, Graphics, Text, Sprite } from "pixi.js";
import { style } from "../style";
import { loader } from "../../core/load... |
jerzakm/LudumDare-45-entry | src/game/menu.ts | <reponame>jerzakm/LudumDare-45-entry<gh_stars>0
import { Container, Sprite, Graphics, Text } from "pixi.js"
import { loader } from "../core/loader"
import { stage } from "../core/renderer"
import { menuColors, style } from "./style"
import { newGame } from "./game"
import { newJamHover, newGameSound } from "./sounds/ca... |
jerzakm/LudumDare-45-entry | src/game/cards/cards.ts | import { PlayerStatus, PlayerSkills, Player } from "../player/Player";
import { PlayerGameStats, GameJam } from "../jam/GameJam";
import { updateTimeLeftCounter, cardContainer } from "../ui/uiController";
import { cardMovementQueue } from "./playerHand";
import { Sprite } from "pixi.js";
import { loader } from "../../c... |
jerzakm/LudumDare-45-entry | src/game/sounds/cardSounds.ts | <gh_stars>0
import { Howl } from 'howler'
export const cardHover = new Howl({
src: ['assets/card_hover.wav'],
volume: 0.3
})
export const statTickSound = new Howl({
src: ['assets/statTick.wav'],
volume: 0.1
})
export const cardPlayed = new Howl({
src: ['assets/card_played.wav'],
volume: 0.45
})
export c... |
jerzakm/LudumDare-45-entry | src/game/ui/uiController.ts | <reponame>jerzakm/LudumDare-45-entry
import { GameJam } from "../jam/GameJam";
import { Container, Graphics, Sprite, Text } from "pixi.js";
import { colorScheme, style } from "../style";
import { stage, renderer } from "../../core/renderer";
import { loader } from "../../core/loader";
import { player } from "../game";
... |
jerzakm/LudumDare-45-entry | src/game/ui/statBars.ts | <filename>src/game/ui/statBars.ts
import { PlayerSkills, PlayerStatus } from "../player/Player";
import { PlayerGameStats } from "../jam/GameJam";
import { Container, Graphics } from "pixi.js";
import { cardHover, statTickSound } from "../sounds/cardSounds";
const playerStatBarWidth = 200
const skillBarWidth = 330
ex... |
jerzakm/LudumDare-45-entry | src/game/jam/GameJam.ts | <reponame>jerzakm/LudumDare-45-entry<filename>src/game/jam/GameJam.ts
import { Card } from "../cards/cards"
import { jamNameList } from "./jamNameList"
export class GameJam {
theme: string
number = 45
timer: number
playerGame: PlayerGameStats
playerHand: Card[]
playedCards: Card[]
practiceRound = 5
rel... |
jerzakm/LudumDare-45-entry | src/core/loader.ts | <gh_stars>0
import { Loader } from "pixi.js";
export const loader = Loader.shared;
export const loadAssets = () => {
return new Promise((resolve, reject) => {
try {
loader
.add('desk_night', 'assets/desk_night.png')
.add('ld_pixel_logo', 'assets/ld_pixel_logo.png')
.add('titleTime... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.