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
| { | |
| "dashboard": { | |
| "navi": "Navigation", | |
| "message": "Please select" | |
| }, | |
| "grid1": { | |
| "navi": "Navigation", | |
| "message1": "Message" | |
| } | |
| } |
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
| <ons-navigator id="myNavigator" var="myNavigator"> | |
| <ons-page id="dashboard" ng-controller="PageController"> | |
| <ons-toolbar> | |
| <div class="center">Navi</div> | |
| </ons-toolbar> | |
| <div style="text-align: center"> | |
| <p translate="dashboard.message"></p> | |
| <p>aa {{ "dashboard.message" | translate }}</p> | |
| <br> |
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
| var myApp = angular.module('myApp', ['onsen', 'pascalprecht.translate']); | |
| myApp.controller('AppController', function ($scope) { }); | |
| myApp.controller('PageController', function ($scope) { | |
| ons.ready(function () { | |
| }); | |
| }); | |
| myApp.config(['$translateProvider', function ($translateProvider) { |
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
| <html ng-app="myApp"> | |
| ... | |
| <body ng-controller="AppController"> | |
| ... | |
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
| <link rel="stylesheet" type="text/css" href="lib/css/onsenui.css"> | |
| <link rel="stylesheet" type="text/css" href="lib/css/onsen-css-components-blue-basic-theme.css"> | |
| <script type="text/javascript" src="lib/js/angular.js"></script> | |
| <script type="text/javascript" src="lib/js/angular-translate.js"></script> | |
| <script type="text/javascript" src="lib/js/angular-translate-loader-static-files.js"></script> | |
| <script type="text/javascript" src="lib/js/onsenui.js"></script> | |
| <script type="text/javascript" src="lib/js/angular-onsenui.js"></script> | |
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
| mkdir www/lib | |
| cp -r ./bower_components/onsenui/css ./www/lib/css | |
| cp -r ./bower_components/onsenui/js ./www/lib/js | |
| cp ./bower_components/angular/angular.js ./www/lib/js/angular.js | |
| cp ./bower_components/angular/angular.min.js ./www/lib/js/angular.min.js | |
| cp ./bower_components/angular-translate/angular-translate.js ./www/lib/js/angular-translate.js | |
| cp ./bower_components/angular-translate/angular-translate.min.js ./www/lib/js/angular-translate.min.js | |
| cp ./bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js ./www/lib/js/angular-translate-loader-static-files.js | |
| cp ./bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js ./www/lib/js/angular-translate-loader-static-files.min.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
| bower install angular --save | |
| bower install angular-translate --save | |
| bower install angular-translate-loader-static-files --save | |
| bower install onsenui --save |
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
| { | |
| "_links": { | |
| "self": { | |
| "href": "/1/databases/" | |
| } | |
| }, | |
| "_embedded": { | |
| "databases": [{ | |
| "_links": { | |
| "self": { |
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
| docker exec -it postgres /bin/bash | |
| /usr/local/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-push /var/lib/postgresql/data/ | |
| /usr/local/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-list |
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
| wal_level = archive # hot_standby in 9.0 is also acceptable | |
| archive_mode = on | |
| archive_command = 'envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push %p' | |
| archive_timeout = 300 |