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
/** | |
* Countries Enumerables based on [ISO 3166-1 Alpha2 | |
* Code](https://www.iso.org/iso-3166-country-codes.html). These enumerables | |
* were converted into alpha3 codes based on https://www.iban.com/country-codes. | |
*/ | |
export enum CountriesEnum { | |
AFG = 'Afghanistan', | |
ALA = 'Aland Islands', | |
ALB = 'Albania', | |
DZA = 'Algeria', |
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 webpack from 'webpack'; | |
import { CleanWebpackPlugin } from 'clean-webpack-plugin'; | |
import CopyWebpackPlugin from 'copy-webpack-plugin'; | |
import { root } from './helpers'; | |
const WebpackCommonConfig: webpack.Configuration = { | |
entry: { | |
polyfills: './app/polyfills.ts', | |
// vendor: './app/vendor.ts', |
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
// Work around for https://github.com/angular/angular-cli/issues/7200 | |
import path from 'path'; | |
import webpack from 'webpack'; | |
const config: webpack.Configuration = { | |
mode: 'none', | |
entry: { | |
// This is our Express server for Dynamic universal | |
server: './server.ts', |
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
{ | |
"name": "sample-app", | |
"version": "0.0.0", | |
"description": "", | |
"scripts": { | |
"start": "webpack-dev-server --config config/webpack.dev.ts", | |
"build:dev": "webpack --config config/webpack.dev.ts --display-error-details", | |
"build:prod": "rimraf prod && webpack --config config/webpack.prod.ts" | |
}, | |
"dependencies": { |
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 'package:angular/angular.dart'; | |
import 'package:web/app.component.template.dart' as ng; | |
import 'package:angular_router/angular_router.dart'; | |
import 'package:web/guards/auth.guard.dart'; | |
// Import the main.dart file to reference it within the program as “self” | |
import 'main.template.dart' as self; | |
const bool useHashLS = false; | |
// This section provides the Dependency Injector "routerProviders" |
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 'package:angular_router/angular_router.dart'; | |
import 'package:core/core.dart'; | |
import 'package:web/src/routes.dart'; | |
import 'package:web/src/route_paths.dart'; | |
class AuthGuard implements RouterHook { | |
Router _router; | |
AuthenticationState _authBlocState; | |
set router(Router value) => _router = 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
# -*- coding: utf-8 -*- | |
"""Custom hello world by KingDarBoja. | |
Python script to output the classic 'hello world' message using colorama. | |
To install it, use 'pip install colorama' on the command line. | |
""" | |
# Import the colorama module | |
from random import randint |