additional pwa testing bits
This commit is contained in:
parent
abd237fc64
commit
198b804f2e
3 changed files with 7 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -35,11 +35,14 @@ $(APK): $(ALIGNED)
|
||||||
|
|
||||||
release: $(APK)
|
release: $(APK)
|
||||||
|
|
||||||
clean: androidclean
|
clean: androidclean wwwclean
|
||||||
|
|
||||||
androidclean:
|
androidclean:
|
||||||
cd platforms/android && ./gradlew clean
|
cd platforms/android && ./gradlew clean
|
||||||
|
|
||||||
|
wwwclean:
|
||||||
|
rm -r www
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
rm -r node_modules platforms plugins www
|
rm -r node_modules platforms plugins www
|
||||||
|
|
||||||
|
@ -53,6 +56,5 @@ ut:
|
||||||
cd ubuntutouch && clickable
|
cd ubuntutouch && clickable
|
||||||
|
|
||||||
pwa:
|
pwa:
|
||||||
npm run ionic:build
|
ionic build --prod
|
||||||
cp resources/icon-512.png www/assets/icon.png
|
|
||||||
cp -r www ~/opt/Goober
|
cp -r www ~/opt/Goober
|
||||||
|
|
BIN
src/assets/icon/icon.png
Normal file
BIN
src/assets/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -58,13 +58,13 @@ export class LoginPage {
|
||||||
|
|
||||||
login() {
|
login() {
|
||||||
this.oauth.logInVia(this.pnutProvider).then(success => {
|
this.oauth.logInVia(this.pnutProvider).then(success => {
|
||||||
console.log('RESULT: ' + JSON.stringify(success));
|
// console.log('OAUTH SUCCESS: ' + JSON.stringify(success));
|
||||||
this.storage.set('token', success['access_token']);
|
this.storage.set('token', success['access_token']);
|
||||||
this.storage.set('scope', this.scope);
|
this.storage.set('scope', this.scope);
|
||||||
pnut.token = success['access_token'];
|
pnut.token = success['access_token'];
|
||||||
this.navCtrl.setRoot(StreamPage, {stream: 'personal'});
|
this.navCtrl.setRoot(StreamPage, {stream: 'personal'});
|
||||||
}, error => {
|
}, error => {
|
||||||
console.log(error);
|
// console.log('OAUTH ERROR: ' + JSON.stringify(error));
|
||||||
if (this.oob) {
|
if (this.oob) {
|
||||||
this.showToken = true;
|
this.showToken = true;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue