This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, OnInit } from '@angular/core'; | |
| import {BaseComponent} from '../core/baseComponent'; | |
| import {_Private} from '../core/_private'; | |
| let _private; | |
| @Component({ | |
| selector: 'app-header', | |
| templateUrl: './header.component.html', | |
| styleUrls: ['./header.component.css'] | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class BaseComponent { | |
| private _private : Object; | |
| constructor(){ | |
| this._private = {}; | |
| } | |
| public createPrivate(key,value){ | |
| this._private[key] = value; | |
| Object.defineProperty(this,key,{ | |
| set(value){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const EventBus = { | |
| listenerCollection:{}, | |
| init() { | |
| ComponentManager.plugins.push(EventBus.inject); | |
| }, | |
| inject(instance) { | |
| instance.getEventBus = function() { | |
| return EventBus; | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const StateManager = { | |
| _state:{}, | |
| set(dotNotationKey,value){ | |
| this.dotNotation(dotNotationKey,value); | |
| this.dispatchToAll(); | |
| }, | |
| get(dotNotationKey){ | |
| return dotNotationKey.split('.').reduce((o,i)=>o[i], this._state); | |
| }, | |
| init() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```cmd | |
| npm install | |
| npm run dist | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "boilerplates":{ | |
| "componentjs":{ | |
| "name": "componentjs boilerplate", | |
| "repoLink":"https://github.com/fahimc/component-boilerplate.git", | |
| "install": "npm install" | |
| }, | |
| "babel":{ | |
| "name": "babel boilerplate", | |
| "repoLink":"https://github.com/fahimc/babel-seed.git", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name 198.58.105.111; | |
| listen 443 ssl http2 default_server; | |
| listen [::]:443 ssl http2 default_server; | |
| include snippets/self-signed.conf; | |
| include snippets/ssl-params.conf; | |
| #ssl_certificate /etc/letsencrypt/live/service.epiphanycoins.com/fullchain.$ | |
| #ssl_certificate_key /etc/letsencrypt/live/service.epiphanycoins.com/privke$ | |
| #ssl_trusted_certificate /etc/letsencrypt/live/service.epiphanycoins.com/fu$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name [IP/Domain]; | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| add_header 'Access-Control-Allow-Credentials' 'true'; | |
| add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
| add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.16; | |
| contract owned { | |
| address public owner; | |
| function owned() public { | |
| owner = msg.sender; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.16; | |
| contract owned { | |
| address public owner; | |
| function owned() public { | |
| owner = msg.sender; | |
| } | |
| modifier onlyOwner { |
NewerOlder