This file contains 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 { Model } from '@mean-expert/model/index'; | |
/** | |
* @module Todo | |
* @description | |
* Write a useful Todo Model description | |
**/ | |
export class ModelRegister { | |
constructor(Model: any, reference: any) { | |
// Register reference |
This file contains 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 orgCopyConfig = require('@ionic/app-scripts/config/copy.config'); | |
orgCopyConfig.include.push({ | |
src: 'node_modules/angularfire2/node_modules/firebase/firebase.js', | |
dest: 'www/assets/firebase.js' | |
}); | |
module.exports = orgCopyConfig; |
This file contains 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
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
"project": { | |
"name": "app-web" | |
}, | |
"apps": [ | |
{ | |
"root": "src", | |
"outDir": "dist", | |
"assets": [ |
This file contains 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 { NgModule, ErrorHandler } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; | |
import { MyApp } from './app.component'; | |
import { MomentModule } from 'angular2-moment'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { LazyLoadImageModule } from 'ng-lazyload-image'; | |
This file contains 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
exports.list = function(req, res){ | |
req.getConnection(async (err,connection) => { | |
var dropdownFisikJln = await connection.query ('SELECT * FROM dropdownlist'); | |
var query = await connection.query ('SELECT * FROM kebinamargaan'); | |
res.redirect('kebinamargaan',{ | |
page_title:"Customers - Node.js", | |
data: { | |
dataDropDown: dropdownFisikJln, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains 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
Member.beforeRemote( | |
"prototype.__get__tickets", | |
async (ctx, instance, next) => { | |
if (!ctx.args.filter || !ctx.args.filter.limit) { | |
if (!ctx.args.filter) ctx.args.filter = {}; | |
ctx.args.filter.limit = 10; | |
} else { | |
ctx.args.filter.limit = Math.min(ctx.args.filter.limit, 10); | |
} | |
} |
This file contains 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
/// Untuk model1 | |
{ | |
"name": "model2", | |
"base": "PersistedModel", | |
"mssql": { | |
"schema": "dbo", | |
"table": "model1" | |
} | |
} |
This file contains 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
FROM zenika/alpine-chrome:with-node | |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD 1 | |
COPY --chown=chrome package.json package-lock.json /usr/src/app/ | |
RUN npm install --production | |
COPY --chown=chrome . /usr/src/app | |
WORKDIR /usr/src/app | |
ENTRYPOINT [] | |
# run command |
This file contains 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, ViewChild} from "@angular/core"; | |
import {NavController, PopoverController} from "ionic-angular"; | |
import { HttpClient } from "@angular/common/http"; | |
import { HelperProvider } from '../../providers/helper/helper'; | |
import { Storage } from "@ionic/storage"; | |
@Component({ |