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
window.MyLoginZoidComponent = zoid.create({ | |
dimensions: { | |
width: '300px', | |
height: '200px', | |
}, | |
// The html tag used to render my component | |
tag: 'my-login-component', |
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 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); |
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} 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 { |
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 {Injectable} from '@angular/core'; | |
@Injectable() | |
export class StoryService { | |
feeds; | |
constructor() { | |
this.feeds = |
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
// 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'], |
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
{ | |
"produtos": [ | |
{ | |
"id": "1", | |
"nome": "Banana", | |
"tipo": "Fruta" | |
} | |
] | |
} |
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, 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; |
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, 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', | |
}) |
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
<!-- 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> |
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
<canvas #myCanvas (touchstart)="handleStart($event)" (touchmove)="handleMove($event)" class="canvas-draw"></canvas> |
NewerOlder