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 { p } from "@web-companions/gfc"; | |
import { counterNode } from "./counter.node"; | |
import { litView } from "@web-companions/lit"; | |
import { is } from "@web-companions/h/template"; | |
const CounterNode = counterNode(); | |
const CounterNode1 = counterNode(); | |
export const counterElement = litView.element({ | |
props: { |
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 http from 'http'; | |
import { newEnforcer, newModel, StringAdapter, Util } from 'casbin'; | |
//#region SERVER | |
const hostname = '127.0.0.1'; | |
const port = 3005; | |
const server = http.createServer(async (request, response) => { | |
const isNext = await authMiddleware(request, response); |
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 { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { AppModule } from './app/app.module'; | |
import { environment } from 'environments/environment'; | |
/** | |
* Bootstrap our Angular app with a top level NgModule | |
*/ | |
export function main(): Promise<any> { | |
return platformBrowserDynamic() |
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
new AngularCompilerPlugin({ | |
platform: 0, | |
entryModule: path.join(PATHS.src, 'apps/client/app/app.module#AppModule'), | |
sourceMap: true, | |
tsConfigPath: path.join(PATHS.root, 'tsconfig.json'), | |
skipCodeGeneration: true, | |
}) |
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 path = require('path'); | |
const merge = require('webpack-merge'); | |
const webpack = require('webpack'); | |
const ProgressPlugin = require('webpack/lib/ProgressPlugin'); | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const {AngularCompilerPlugin} = require('@ngtools/webpack'); | |
const { | |
PATHS, | |
PARAMS |
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
new AngularCompilerPlugin({ | |
platform: 0, | |
sourceMap: true, | |
tsConfigPath: path.join(PATHS.root, 'tsconfig.json'), | |
skipCodeGeneration: true, | |
}) |
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
@Component({ | |
selector: '[form-component]', | |
template: '' | |
}) | |
export class FormComponent extends BaseComponent implements OnInit { | |
constructor( | |
public formService: FormService, | |
@Inject('') public formFunc: string, | |
@Inject('') public formParams: Array<any> = [] | |
) { |
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
@Component({ | |
selector: '[form-component]', | |
template: '' | |
}) | |
export class FormComponent extends BaseComponent implements OnInit { | |
constructor( | |
public formService: FormService, | |
public formFunc: string, | |
public formParams: Array<any> = [] | |
) { |
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
{ | |
test: /\.ts$/, | |
loaders: [{ | |
loader: 'awesome-typescript-loader', | |
options: { | |
transpileOnly: process.env.NODE_ENV !== 'production' | |
} | |
}, | |
'angular2-template-loader', | |
'angular2-router-loader' |
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
module.exports = { | |
context: PATHS.root, | |
target: 'web', | |
entry, | |
resolve: { | |
extensions: ['.ts', '.js', '.json'], | |
modules: [PATHS.src, PATHS.node_modules], | |
}, | |
module: { | |
rules: [{ |
NewerOlder