This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
| angular.module('ngCordova.plugins.sqlite', []) | |
| .factory('$cordovaSQLite', ['$q', function ($q) { | |
| return { | |
| openDB: function(dbName) { | |
| return window.sqlitePlugin.openDatabase({name: dbName}); | |
| }, | |
| { | |
| "directory": "vendor" | |
| } |
| - Ejemplo de Gulp con Ionic => https://gist.github.com/jdnichollsc/e3a323223fcb7822dbba | |
| - SQLite con ngCordova usando patrón de servicio y promesas => https://gist.github.com/jdnichollsc/9ac79aaa3407e92677ba | |
| - Permitir dinamicamente arrastrar elementos de una Lista => https://gist.github.com/mhartington/c5107ccd9204b755442b | |
| - Obtener datos consumiendo un servicio REST o desde el LocalStorage => https://gist.github.com/jdnichollsc/7367fe5b17369e856157 | |
| - Cambiar el tamaño de un Modal => https://gist.github.com/jdnichollsc/1b0112dfdca4b7f06fbe | |
| - OAuth Authentication, Firebase 3 and ngCordovaOauth => https://gist.github.com/jdnichollsc/17bae6581d405321937fe433410172c9 | |
| - Firebase Upload Files => https://gist.github.com/jdnichollsc/5ddc40c1c482e6209a8f4d634fd11d1e | |
| - Download and Open Files => https://gist.github.com/jdnichollsc/1e |
| angular.module('Demo', ['ionic', 'Demo.controllers', 'Demo.services', 'ngCordova']) | |
| .run(function ($ionicPlatform, sqliteService) { | |
| $ionicPlatform.ready(function () { | |
| // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | |
| // for form inputs) | |
| if (window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| cordova.plugins.Keyboard.disableScroll(true); |
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: elporfirio | |
| * Date: 08/08/15 | |
| * Time: 10:56 | |
| */ | |
| require "twitteroauth-master/autoload.php"; |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
| flex-flow:column-reverse wrap-reverse; | |
| justify-content:center; | |
| align-content:space-between; |
This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
| Para exportar componentes, se deben seguir los siguientes pasos: | |
| • En un archivo js indicar los import correspondientes a las librerias react y react-dom, como otras(con rutas relativas). | |
| Ejemplo: statistics-toolbar.js | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import token from '../services/token-service'; | |
| import layers from '../services/layers-service'; | |
| import mymap from '../services/map-service'; | |
| • Construir el componente. |