repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/wallet-status-cards/business-report-dashboard-wallet-status-cards.component.ts
////////// ANGULAR & Fuse UI ////////// import { Component, OnDestroy, OnInit, ViewChild, HostListener, EventEmitter, Input, Output } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { MatSnackBar } from '@angular/material'; import { fuseAnimations } from '../../../../../core/animat...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/wallet-status-cards/i18n/es.ts
export const locale = { lang: 'es', data: { DATE: 'fecha', WALLET_STATUS: { MAIN: { TITLE: 'Bolsa de saldo' }, BONUS: { TITLE: 'Comisión' }, CREDIT: { TITLE: 'Crédito' }, SPENDING_ALLOWED: { TITLE: 'Ventas permitidas', DESC: '...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-bonus-distribution/i18n/es.ts
export const locale = { lang: 'es', data: { BONUS_DISTRIBUTION: { TITLE: 'Distribución de comisiones', FOOTER_LEFT: 'Comisiones netas', FOOTER_RIGHT: 'Cantidad de comisiones', } } };
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-sales-distribution/business-report-dashboard-net-sales-distribution.component.ts
<filename>frontend/emi/business-report-dashboard/widgets/net-sales-distribution/business-report-dashboard-net-sales-distribution.component.ts<gh_stars>0 ////////// ANGULAR & Fuse UI ////////// import { Component, OnDestroy, OnInit, ViewChild, HostListener, EventEmitter, Input, Output } from '@angular/core'; import { Fo...
nebulae-pyxis/ms-reports
frontend/emi/pos-coverage-report/pos-coverage-report.component.ts
<reponame>nebulae-pyxis/ms-reports<gh_stars>0 import { TranslateService } from '@ngx-translate/core'; import { KeycloakService } from 'keycloak-angular'; import { FuseTranslationLoaderService } from '../../../core/services/translation-loader.service'; import { ReportsService } from './pos-coverage-report.service'; impo...
nebulae-pyxis/ms-reports
frontend/emi/pos-coverage-report/pos-coverage-report.service.ts
<gh_stars>0 import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayService } from '../../../api/gateway.service'; import { getBusinesses, getPosItems } from './gql/pos-coverage-report.js'; @Injectable() export class ReportsService { ...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/wallet-status-cards/business-report-dashboard-wallet-status-cards.service.ts
import gql from "graphql-tag"; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayService } from '../../../../../api/gateway.service'; import { businessReportDashboardWalletStatusCards } from './gql/business-report-dashboard-wallet-sta...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/bonus-line-chart/i18n/en.ts
<filename>frontend/emi/business-report-dashboard/widgets/bonus-line-chart/i18n/en.ts export const locale = { lang: 'en', data: { TITLE: 'Bonus', DESCRIPTION : 'Sales Revenue', TIMESPANS: { YEAR: 'Annually', MONTH: 'Monthly', WEEK: 'Weekly', }, SUBTIMESPANS: { MON: 'Mon', ...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/bonus-line-chart/business-report-dashboard-bonus-line-chart.component.ts
////////// ANGULAR & Fuse UI ////////// import { Component, OnDestroy, OnInit, ViewChild, HostListener, EventEmitter, Input, Output } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { MatSnackBar } from '@angular/material'; import { fuseAnimations } from '../../../../../core/animat...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/wallet-status-cards/i18n/en.ts
export const locale = { lang: 'en', data: { DATE: 'Date', WALLET_STATUS: { MAIN: { TITLE: 'Main Pocket' }, BONUS: { TITLE: 'Bonus' }, CREDIT: { TITLE: 'Credit' }, SPENDING_ALLOWED: { TITLE: 'Spending Allowed', DESC: '', ...
nebulae-pyxis/ms-reports
frontend/emi/pos-coverage-report/i18n/en.ts
<reponame>nebulae-pyxis/ms-reports export const locale = { lang: 'en', data: { MAP: { COVERAGE_TITLE: 'Coverage map|' }, FILTERS: { TITLE: 'Filters', PLACEHOLDERS: { BUSINESSUNIT: 'Business unit', PRODUCT: 'Product', POS_ID: 'Pos ID' } }, PRODUCTS:...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-sales-distribution/i18n/es.ts
export const locale = { lang: 'es', data: { SALES_DISTRIBUTION: { TITLE: 'Distribución de ventas', FOOTER_LEFT: 'Ventas netas', FOOTER_RIGHT: 'Cantidad de ventas', } } };
nebulae-pyxis/ms-reports
frontend/emi/pos-coverage-report/entities/markerCluster.ts
<gh_stars>0 // tslint:disable-next-line:import-blacklist import * as Rx from 'rxjs/Rx'; export class MarkerCluster extends MarkerClusterer { constructor(map: google.maps.Map, markers?: google.maps.Marker[], options?: MarkerClustererOptions) { super(map, markers, options); } }
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/business-report-dashboard.service.ts
<reponame>nebulae-pyxis/ms-reports<filename>frontend/emi/business-report-dashboard/business-report-dashboard.service.ts import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayService } from '../../../api/gateway.service'; import { } from ...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-bonus-distribution/i18n/en.ts
export const locale = { lang: 'en', data: { BONUS_DISTRIBUTION: { TITLE: 'Bonus distribution', FOOTER_LEFT: 'Net bonus', FOOTER_RIGHT: 'Bonus quantity', } } };
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-sales-distribution/i18n/en.ts
<gh_stars>0 export const locale = { lang: 'en', data: { SALES_DISTRIBUTION: { TITLE: 'Sales distribution', FOOTER_LEFT: 'Net sales', FOOTER_RIGHT: 'Sales quantity', } } };
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-bonus-distribution/business-report-dashboard-net-bonus-distribution.service.ts
import gql from "graphql-tag"; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayService } from '../../../../../api/gateway.service'; import { businessReportDashboardNetBonusDistribution } from './gql/business-report-dashboard-net-bon...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/sales-overview/business-report-dashboard-sales-overview.service.ts
import gql from "graphql-tag"; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayService } from '../../../../../api/gateway.service'; import { businessReportDashboardSalesOverview } from './gql/business-report-dashboard-sales-overview...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/sales-overview/business-report-dashboard-sales-overview.component.ts
////////// ANGULAR & Fuse UI ////////// import { Component, OnDestroy, OnInit, ViewChild, HostListener, EventEmitter, Input, Output } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { MatSnackBar } from '@angular/material'; import { fuseAnimations } from '../../../../../core/animat...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/business-report-dashboard.component.ts
<filename>frontend/emi/business-report-dashboard/business-report-dashboard.component.ts import { KeycloakService } from 'keycloak-angular'; import { FuseTranslationLoaderService } from './../../../core/services/translation-loader.service'; import { Component, OnDestroy, OnInit, ViewChild, EventEmitter} from '@angular/c...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/business-report-dashboard.module.ts
<reponame>nebulae-pyxis/ms-reports<filename>frontend/emi/business-report-dashboard/business-report-dashboard.module.ts import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { SharedModule } from '../../../core/modules/shared.module'; import { DatePipe } from '@angular/...
nebulae-pyxis/ms-reports
frontend/emi/pos-coverage-report/i18n/es.ts
export const locale = { lang: 'es', data: { MAP: { COVERAGE_TITLE: 'Mapa de cobertura' }, FILTERS: { TITLE: 'Filtros', PLACEHOLDERS: { BUSINESSUNIT: 'Unidad de negocio', PRODUCT: 'Producto', POS_ID: 'Id del pos' } }, PRODUCTS: { CIVICA_CARD_R...
nebulae-pyxis/ms-reports
frontend/emi/business-report-dashboard/widgets/net-sales-distribution/business-report-dashboard-net-sales-distribution.service.ts
<filename>frontend/emi/business-report-dashboard/widgets/net-sales-distribution/business-report-dashboard-net-sales-distribution.service.ts<gh_stars>0 import gql from "graphql-tag"; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import * as Rx from 'rxjs'; import { GatewayServ...
biotope/website
src/components/BioGoogleTrackingStatus/BioGoogleTrackingStatus.ts
import Component from "@biotope/element"; import template from "./template"; import { BioGoogleTrackingStatusProps, BioGoogleTrackingStatusState, BioGoogleTrackingStatusMethods } from "./defines"; class BioGoogleTrackingStatus extends Component<BioGoogleTrackingStatusProps, BioGoogleTrackingStatusState> { static ...
biotope/website
src/components/BioCookieBanner/index.ts
<gh_stars>1-10 import BioCookieBanner from './BioCookieBanner'; BioCookieBanner.register();
biotope/website
src/components/BioScrollAnimation/index.ts
import BioScrollAnimation from './BioScrollAnimation'; BioScrollAnimation.register();
biotope/website
src/components/BioCookieBanner/template.ts
<filename>src/components/BioCookieBanner/template.ts import * as styles from './styles.scss'; import classNames from 'classnames'; import { BioCookieBannerProps, BioCookieBannerState, BioCookieBannerMethods } from './defines'; export default (render: Function, data: BioCookieBannerProps & BioCookieBannerState & BioC...
biotope/website
src/components/BioCollaboratorTile/BioCollaboratorTile.ts
<reponame>biotope/website import Component from '@biotope/element'; import template from './template'; import { BioCollaboratorTileProps, BioCollaboratorTileState, BioCollaboratorTileMethods } from './defines'; interface BioCollaboratorTile { wrapper: HTMLElement } class BioCollaboratorTile extends Component< Bi...
biotope/website
src/components/BioScrollAnimation/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioScrollAnimation **/ /** * Props */ interface BioScrollAnimationProps { animationDataPath: string scrollLength: number } interface BioScrollAnimationSlide { title: string offset: number } /** * State */ interface BioScrollAnimationState { } /** * Methods */ i...
biotope/website
src/components/BioButton/index.ts
import BioButton from './BioButton'; BioButton.register();
biotope/website
src/components/BioResource/index.ts
<reponame>biotope/website<filename>src/components/BioResource/index.ts import BioResource from './BioResource'; BioResource.register();
biotope/website
src/resources/ts/tracking.ts
declare var dataLayer: any[]; const initGoogleTagManager = (w, d, s, l, i) => { w[l] = w[l] || []; w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != "dataLayer" ? "&l=" + l : ""; j.async = "true"; j.onload = function() { ...
biotope/website
src/components/BioGoogleTrackingStatus/index.ts
import BioGoogleTrackingStatus from './BioGoogleTrackingStatus'; BioGoogleTrackingStatus.register();
biotope/website
src/components/BioButton/template.ts
import * as styles from './styles.scss'; import { BioButtonProps, BioButtonState, BioButtonMethods } from './defines'; export default (render: Function, data: BioButtonProps & BioButtonState & BioButtonMethods , createStyle: Function) => { return render` ${createStyle(styles)} <button class="${d...
biotope/website
src/components/BioCollaboratorTile/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioCollaboratorTile **/ /** * Props */ interface BioCollaboratorTileProps { imgsrc: string; type: string; github: string; } /** * State */ interface BioCollaboratorTileState { } /** * Methods */ interface BioCollaboratorTileMethods { } export { BioCollabo...
biotope/website
src/components/BioSwoosh/defines.ts
<filename>src/components/BioSwoosh/defines.ts /** * ## DEFINE ALL INTERFACES FOR BioSwoosh **/ /** * Props */ interface BioSwooshProps { direction?: string height: number marginBottom?: number marginTop?: number color?: string offsetX?: number } export { BioSwooshProps }
biotope/website
src/components/BioBenefit/defines.ts
<filename>src/components/BioBenefit/defines.ts /** * ## DEFINE ALL INTERFACES FOR BioBenefit **/ /** * Props */ interface BioBenefitProps { imgsrc: string; title: string; color: string; } /** * State */ interface BioBenefitState { } /** * Methods */ interface BioBenefitMethods { } export { ...
biotope/website
src/components/BioCookieBanner/BioCookieBanner.ts
import Component from '@biotope/element'; import template from './template'; import { BioCookieBannerProps, BioCookieBannerState, BioCookieBannerMethods } from './defines'; import BioButton from '../BioButton/BioButton'; class BioCookieBanner extends Component< BioCookieBannerProps, BioCookieBannerState > { sta...
biotope/website
src/components/BioEasySetUp/defines.ts
<gh_stars>1-10 /** * ## DEFINE ALL INTERFACES FOR BioEasySetUp **/ /** * Props */ interface BioEasySetUpProps { imgsrc: string; position?: string; headline: string; text: string; code: string; } /** * State */ interface BioEasySetUpState { copyText: string; } /** * Methods */ interface BioEasySet...
biotope/website
src/components/BioGoogleTrackingStatus/template.ts
<filename>src/components/BioGoogleTrackingStatus/template.ts import * as styles from './styles.scss'; import { BioGoogleTrackingStatusProps, BioGoogleTrackingStatusState, BioGoogleTrackingStatusMethods } from './defines'; export default (render: Function, data: BioGoogleTrackingStatusProps & BioGoogleTrackingStatusS...
biotope/website
src/components/BioBenefit/template.ts
<filename>src/components/BioBenefit/template.ts import * as styles from './styles.scss'; import classNames from 'classnames'; import { BioBenefitProps, BioBenefitState, BioBenefitMethods } from './defines'; export default (render: Function, data: BioBenefitProps & BioBenefitState & BioBenefitMethods , createStyle: F...
biotope/website
src/components/BioButton/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioButton **/ /** * Props */ interface BioButtonProps { title: string, modifier?: string } /** * State */ interface BioButtonState { } /** * Methods */ interface BioButtonMethods { } export { BioButtonProps, BioButtonState, BioButtonMethods }
biotope/website
src/components/BioGithubCorner/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioGithubCorner **/ /** * Props */ interface BioGithubCornerProps { href: string } /** * State */ interface BioGithubCornerState { } /** * Methods */ interface BioGithubCornerMethods { } export { BioGithubCornerProps, BioGithubCornerState, BioGithubCornerM...
biotope/website
src/components/BioScrollAnimation/template.ts
import * as styles from './styles.scss'; import {BioScrollAnimationMethods, BioScrollAnimationProps, BioScrollAnimationState} from "./defines"; interface BioScrollAnimationTemplateData { } export default (render: Function, data: BioScrollAnimationProps & BioScrollAnimationState & BioScrollAnimationMethods , createSty...
biotope/website
src/components/BioButton/BioButton.ts
import Component from '@biotope/element'; import template from './template'; import {BioButtonProps, BioButtonState, BioButtonMethods} from './defines'; class BioButton extends Component<BioButtonProps, BioButtonState> { static componentName = 'bio-button'; static attributes = ['title', 'modifier']; public metho...
biotope/website
src/components/BioBenefit/index.ts
import BioBenefit from './BioBenefit'; BioBenefit.register();
biotope/website
src/components/BioLinkButton/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioLinkButton **/ /** * Props */ interface BioLinkButtonProps { title: string, modifier?: string, href?: string } /** * State */ interface BioLinkButtonState { } /** * Methods */ interface BioLinkButtonMethods { } export { BioLinkButtonProps, BioLinkButto...
biotope/website
src/components/BioGithubCorner/index.ts
import BioGithubCorner from './BioGithubCorner'; BioGithubCorner.register();
biotope/website
src/components/BioSwoosh/BioSwoosh.ts
import Component from '@biotope/element'; import template from './template'; import { BioSwooshProps } from './defines'; class BioSwoosh extends Component< BioSwooshProps, null > { static componentName = 'bio-swoosh'; static attributes = [ 'color', 'direction', {name: 'height', converter: (value) => ...
biotope/website
src/components/BioGithubCorner/BioGithubCorner.ts
<gh_stars>1-10 import Component from '@biotope/element'; import template from './template'; import { BioGithubCornerProps, BioGithubCornerState, BioGithubCornerMethods } from './defines'; class BioGithubCorner extends Component< BioGithubCornerProps, BioGithubCornerState > { static componentName = 'bio-github-c...
biotope/website
src/components/BioEasySetUp/index.ts
import BioEasySetUp from './BioEasySetUp'; BioEasySetUp.register();
biotope/website
src/components/BioModal/defines.ts
<reponame>biotope/website /** * ## DEFINE ALL INTERFACES FOR BioModal **/ /** * Props */ interface BioModalProps { openonpageload: Boolean; } /** * State */ interface BioModalState { open: Boolean; } /** * Methods */ interface BioModalMethods { } export { BioModalProps, BioModalState, BioMod...
biotope/website
src/components/BioCookieBanner/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioCookieBanner **/ /** * Props */ interface BioCookieBannerProps { } /** * State */ interface BioCookieBannerState { hidden: Boolean; } /** * Methods */ interface BioCookieBannerMethods { handleAccept: Function; hideBanner: Function; handleDecline: Function; } ...
biotope/website
src/components/BioEasySetUp/BioEasySetUp.ts
<filename>src/components/BioEasySetUp/BioEasySetUp.ts import Component from '@biotope/element'; import template from './template'; import { BioEasySetUpProps, BioEasySetUpState, BioEasySetUpMethods } from './defines'; class BioEasySetUp extends Component< BioEasySetUpProps, BioEasySetUpState > { static componentN...
biotope/website
src/components/BioGithubCorner/template.ts
import * as styles from './styles.scss'; import { BioGithubCornerProps, BioGithubCornerState, BioGithubCornerMethods } from './defines'; export default (render: Function, data: BioGithubCornerProps & BioGithubCornerState & BioGithubCornerMethods , createStyle: Function) => { return render` ${createStyle(s...
biotope/website
src/components/BioEasySetUp/template.ts
import * as styles from './styles.scss'; import classNames from 'classnames'; import { BioEasySetUpProps, BioEasySetUpState, BioEasySetUpMethods } from './defines'; export default (render: Function, data: BioEasySetUpProps & BioEasySetUpState & BioEasySetUpMethods , createStyle: Function) => { const classes = cl...
biotope/website
src/components/BioModal/BioModal.ts
<gh_stars>1-10 import Component from '@biotope/element'; import template from './template'; import { BioModalProps, BioModalState, BioModalMethods } from './defines'; import BioCollaboratorTile from '../BioCollaboratorTile/BioCollaboratorTile'; class BioModal extends Component<BioModalProps, BioModalState> { static...
biotope/website
src/components/BioLinkButton/BioLinkButton.ts
import Component from '@biotope/element'; import template from './template'; import { BioLinkButtonProps, BioLinkButtonState, BioLinkButtonMethods } from './defines'; class BioLinkButton extends Component< BioLinkButtonProps, BioLinkButtonState > { static componentName = 'bio-link-button'; static attributes =...
biotope/website
src/components/BioResource/defines.ts
/** * ## DEFINE ALL INTERFACES FOR BioResource **/ /** * Props */ interface BioResourceProps { imgsrc: string; imageBorderColor: string; border: string; } /** * State */ interface BioResourceState { } /** * Methods */ interface BioResourceMethods { } export { BioResourceProps, BioResourceS...
biotope/website
src/components/BioSwoosh/index.ts
import BioSwoosh from './BioSwoosh'; BioSwoosh.register();
biotope/website
src/components/BioLinkButton/index.ts
import BioLinkButton from './BioLinkButton'; BioLinkButton.register();
biotope/website
src/components/BioModal/index.ts
<filename>src/components/BioModal/index.ts import BioModal from './BioModal'; BioModal.register();
biotope/website
src/components/BioResource/BioResource.ts
import Component from '@biotope/element'; import template from './template'; import BioLinkButton from '../BioLinkButton/BioLinkButton'; import { BioResourceProps, BioResourceState, BioResourceMethods } from './defines'; class BioResource extends Component< BioResourceProps, BioResourceState > { static componentN...
biotope/website
src/components/BioLinkButton/template.ts
import * as styles from './styles.scss'; import { BioLinkButtonProps, BioLinkButtonState, BioLinkButtonMethods } from './defines'; export default (render: Function, data: BioLinkButtonProps & BioLinkButtonState & BioLinkButtonMethods , createStyle: Function) => { return render` ${createStyle(styles)} ...
biotope/website
src/components/BioScrollAnimation/BioScrollAnimation.ts
import Component from '@biotope/element'; import template from './template'; import * as Lottie from 'lottie-web/build/player/lottie.min.js'; import { TweenLite, TimelineLite, Linear } from "gsap"; import * as ScrollMagic from "scrollmagic"; import { ScrollMagicPluginGsap } from "scrollmagic-plugin-gsap"; ScrollMagic...
biotope/website
src/components/BioCollaboratorTile/index.ts
<reponame>biotope/website<filename>src/components/BioCollaboratorTile/index.ts import BioCollaboratorTile from './BioCollaboratorTile'; BioCollaboratorTile.register();
biotope/website
src/components/BioSwoosh/template.ts
<reponame>biotope/website<gh_stars>1-10 import * as styles from './styles.scss'; import { BioSwooshProps } from './defines'; export default (render: Function, data: BioSwooshProps , createStyle: Function) => { const createDynamicStyles = (data: BioSwooshProps) => { return `<style> :host { height: ${data.he...
biotope/website
src/components/BioCollaboratorTile/template.ts
<filename>src/components/BioCollaboratorTile/template.ts import * as styles from "./styles.scss"; import Component from "@biotope/element"; import { BioCollaboratorTileProps, BioCollaboratorTileState, BioCollaboratorTileMethods } from "./defines"; export default ( render: Function, data: BioCollaboratorTileProps & ...
biotope/website
src/components/BioGoogleTrackingStatus/defines.ts
<reponame>biotope/website /** * ## DEFINE ALL INTERFACES FOR BioGoogleTrackingStatus **/ /** * Props */ interface BioGoogleTrackingStatusProps {} /** * State */ interface BioGoogleTrackingStatusState { status: string; } /** * Methods */ interface BioGoogleTrackingStatusMethods {} export { BioGoogleTrackin...
biotope/website
src/resources/ts/main.ts
import ResourceLoader from "@biotope/resource-loader/lib/index.esm"; { const init = () => { const elementsWithDataInit: HTMLElement[] = [].slice.call(document.querySelectorAll("[data-init]")); elementsWithDataInit.forEach((element: HTMLElement) => { const initFunction = eval(element.dataset.init); initFunct...
biotope/website
src/components/BioModal/template.ts
import * as styles from './styles.scss'; import classNames from 'classnames'; import { BioModalProps, BioModalState, BioModalMethods } from './defines'; export default (render: Function, data: BioModalProps & BioModalState & BioModalMethods , createStyle: Function) => { const classes = classNames('modal', {'ope...
biotope/website
src/components/BioBenefit/BioBenefit.ts
<reponame>biotope/website import Component from '@biotope/element'; import template from './template'; import { BioBenefitProps, BioBenefitState, BioBenefitMethods } from './defines'; class BioBenefit extends Component< BioBenefitProps, BioBenefitState > { static componentName = 'bio-benefit'; static attri...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/my-skins/my-skins.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { MySkinsPageRoutingModule } from './my-skins-routing.module'; import { MySkinsPage } from './my-skins.page'; import { SmallSkin...
Connect-HTL-Leonding/Connect
application/application/src/app/api/auth/keycloak.service.ts
<reponame>Connect-HTL-Leonding/Connect<filename>application/application/src/app/api/auth/keycloak.service.ts import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { KeycloakProfile, KeycloakRoles } from 'keycloak-js'; import { api } from 'src/app/app.componen...
Connect-HTL-Leonding/Connect
application/application/src/dead/old_auth/auth-guard-with-forced-login.service.ts
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { filter, switchMap, tap } from 'rxjs/operators'; import { AuthService } from './auth.service'; //thx to https://github.com...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/skinselection/skinselection.page.ts
import { Component, OnInit, Output, EventEmitter, ViewChild, ElementRef } from '@angular/core'; import { ModalController, PopoverController } from '@ionic/angular'; import Showcaser from 'showcaser'; import { ProfileService } from 'src/app/api/profile.service'; import { CategoryService } from '../../api/category.servic...
Connect-HTL-Leonding/Connect
application/application/src/app/app.module.ts
import { APP_INITIALIZER, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouteReuseStrategy, RouterModule } from '@angular/router'; import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; import { SplashScreen } from '@ionic-native/splash-screen/ngx'; imp...
Connect-HTL-Leonding/Connect
application/application/src/app/app-routing.module.ts
<gh_stars>1-10 import { HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; import { OAuthModule } from 'angular-oauth2-oidc' import { AppAut...
Connect-HTL-Leonding/Connect
application/application/src/app/api/auth/auth.guard.ts
import { Injectable } from '@angular/core'; import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { KeycloakService } from './keycloak.service'; import jwt_decode from 'jwt-decode'; @Injectable() export class AppAuthGuard implements CanActivate { constructor(prot...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/home/selected-skins/selected-skins.page.ts
import { Component, Input, OnInit } from '@angular/core'; import { ModalController, PopoverController } from '@ionic/angular'; import { MyskinsService } from 'src/app/api/myskins.service'; @Component({ selector: 'app-selected-skins', templateUrl: './selected-skins.page.html', styleUrls: ['./selected-skins.page.s...
Connect-HTL-Leonding/Connect
application/application/src/app/model/message.ts
<gh_stars>1-10 import { Room } from "./room"; import { CustomUser, User } from "./user"; export class Message { constructor( public id = "", public message: string = "", public created = new Date(), public image = "", public updated: Date = new Date(), public room: R...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/friend/friend.page.ts
import { Component, ElementRef, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { ProfileService } from "../../api/profile.service"; import { User } from "../../model/user"; import { AlertController, MenuController, ModalController } from '@ionic/angular'; import { PhotoService } from "../../api/photo.s...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup/meetup.page.ts
<reponame>Connect-HTL-Leonding/Connect<gh_stars>1-10 import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core'; import { ModalController, PopoverController } from '@ionic/angular'; import { ProfileService } from 'src/app/api/profile.service'; import { Room } from 'src/app/model/room'; import { Use...
Connect-HTL-Leonding/Connect
application/application/src/app/model/image.ts
import { Room } from "./room"; import { User } from "./user"; export class Image { constructor( public userId: string = "", public base64url: string = "" ) { } }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/profile/edit-profile/edit-profile-details/edit-profile-details.page.ts
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { KeycloakService } from 'src/app/api/auth/keycloak.service'; import { ProfileService } from '../../../../api/profile.service'; import { U...
Connect-HTL-Leonding/Connect
application/application/src/app/api/auth/httpErrorFilter.ts
<reponame>Connect-HTL-Leonding/Connect import { BehaviorSubject, Observable, of, throwError } from 'rxjs'; import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { catchError, filter, finalize, switchMap, take } from 'rxjs/operators'; import { Injectable } from '@angular/c...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/profile/edit-profile/edit-profile-details/blocked-list/blocked-list.page.ts
<reponame>Connect-HTL-Leonding/Connect import { Component, OnInit } from '@angular/core'; import { ContactlistService } from 'src/app/api/contactlist.service'; import { FriendshipService } from 'src/app/api/friendship.service'; import { ProfileService } from 'src/app/api/profile.service'; import { User } from 'src/app/...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/home/home-routing.module.ts
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomePage } from './home.page'; const routes: Routes = [ { path: '', component: HomePage, }, { path: 'selected-skins', loadChildren: () => import('./selected-skins/selected-skins...
Connect-HTL-Leonding/Connect
application/application/src/app/api/friendship.service.ts
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Skin } from '../model/skin'; import { Category } from '../model/category'; import { CategoryService } from './category.service'; import { Observable, Subject } from 'rxjs'; import { MySkin } from '../mod...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/skin-creator/skin-creator.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { SkinCreatorPageRoutingModule } from './skin-creator-routing.module'; import { SkinCreatorPage } from './skin-creator.page'; @...
Connect-HTL-Leonding/Connect
application/application/src/app/model/room.ts
import { Meeting } from "./meetup"; export class Room { unread: boolean; constructor( public id = 0, public type: string = "", public created: Date = new Date(), public updated: Date = new Date(), public meeting: Meeting = new Meeting(), //public time: IonDatet...
Connect-HTL-Leonding/Connect
application/application/src/app/api/category.service.ts
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Category } from '../model/category'; import { Observable } from 'rxjs'; import { OAuthService } from 'angular-oauth2-oidc'; import { api } from '../app.component'; @Injectable({ providedIn: 'root' }) e...
Connect-HTL-Leonding/Connect
application/application/src/app/api/chat.service.ts
<gh_stars>1-10 import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Message } from '../model/message'; import { Room } from '../model/room'; import { User } from '../model/user'; import { api } from '../app.component'; import {ContactlistService} from './c...
Connect-HTL-Leonding/Connect
application/application/src/app/model/myskin.ts
import { Skin } from "./skin"; export class MySkin { constructor( public id = 0, public skin = new Skin(), public radius = 1, public age = 20, public niveau = 1, public selected = false, public showInMap = false ) { } }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/profile/profile.page.ts
import { Component, ElementRef, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { ProfileService } from "../../api/profile.service"; import { User } from "../../model/user"; import { MenuController, ModalController } from '@ionic/angular'; import { PhotogalleryPage } from './photogallery/photogallery.pa...
Connect-HTL-Leonding/Connect
application/application/src/app/api/contactlist.service.ts
<gh_stars>1-10 import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Room } from '../model/room'; import { OAuthService } from 'angular-oauth2-oidc'; import { CustomUser, User } from '../model/user'; import { api } from '../app.component'; import { Message ...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/contactlist/contactlist.module.ts
<reponame>Connect-HTL-Leonding/Connect import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { ContactlistPageRoutingModule } from './contactlist-routing.module'; import { Contactlis...
Connect-HTL-Leonding/Connect
application/application/src/app/app.component.ts
<filename>application/application/src/app/app.component.ts import { Component, OnInit } from '@angular/core'; import { Platform, ToastController } from '@ionic/angular'; import { SplashScreen } from '@ionic-native/splash-screen/ngx'; import { StatusBar } from '@ionic-native/status-bar/ngx'; import { AuthConfig, OAuthS...
Connect-HTL-Leonding/Connect
application/application/src/app/api/profile.service.ts
<reponame>Connect-HTL-Leonding/Connect import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { OAuthService } from 'angular-oauth2-oidc'; import { EMPTY } from 'rxjs'; import { api } from '../app.component'; import { CustomUser, User } from "../model/user"; i...
Connect-HTL-Leonding/Connect
application/application/src/app/api/photo.service.ts
import { Injectable } from '@angular/core'; import { ProfileService } from './profile.service' import { Plugins, CameraResultType, Capacitor, FilesystemDirectory, CameraPhoto, CameraSource } from '@capacitor/core'; import { MySkin } from '../model/myskin'; import { OAuthService } from 'angular-oauth2-oidc'; import ...