Skip to content

Instantly share code, notes, and snippets.

View pavei's full-sized avatar

Vinicius Pavei pavei

  • Asksuite
  • Brazil
View GitHub Profile
window.MyLoginZoidComponent = zoid.create({
dimensions: {
width: '300px',
height: '200px',
},
// The html tag used to render my component
tag: 'my-login-component',
const dbTiscoski = require('../config/database_tiscoski');
exports.listVerbasEDatas = async (req, res) => {
try {
var result = await this.listVerbasSemData();
res.status(200).send({ result });
}
catch (error) {
console.error(error);
import {Component} from '@angular/core';
import { NavController } from 'ionic-angular';
import {StoryPhotoPage} from "../story-photo/story-photo";
import {StoryService} from "./story.service";
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
import {Injectable} from '@angular/core';
@Injectable()
export class StoryService {
feeds;
constructor() {
this.feeds =
// this is a custom dictionary to make it easy to extend/override
// provide a name for an entry, it can be anything such as 'copyAssets' or 'copyFonts'
// then provide an object with a `src` array of globs and a `dest` string
module.exports = {
copyAssets: {
src: ['{{SRC}}/assets/**/*'],
dest: '{{WWW}}/assets'
},
copyIndexContent: {
src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'],
{
"produtos": [
{
"id": "1",
"nome": "Banana",
"tipo": "Fruta"
}
]
}
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'my-first-component',
styleUrl: 'my-first-component.scss'
})
export class MyComponent {
// Indicate that name should be a public property on the component
@Prop() name: string;
import {Component, ViewChild} from '@angular/core';
import {NavController, NavParams, Platform} from 'ionic-angular';
import {CameraPreview} from "@ionic-native/camera-preview";
import {CanvasDraw} from "../../components/canvasdraw";
@Component({
selector: 'page-story-photo',
templateUrl: 'story-photo.html',
})
<!-- NO BOUNCE PARA QUE A IMAGEM NÃO FIQUE FLUTUANDO -->
<ion-content no-bounce>
<!-- MODO CAMERA -->
<div *ngIf="mode == 'camera'">
<ion-fab right top small >
<button ion-fab color="danger" (click)="back()">
<ion-icon name="md-arrow-forward"></ion-icon>
<canvas #myCanvas (touchstart)="handleStart($event)" (touchmove)="handleMove($event)" class="canvas-draw"></canvas>