瀏覽代碼

launched to heroku

Chad 6 年之前
父節點
當前提交
66d105bd90

+ 1
- 1
ZipTeamOrange-ionic-UI/.sourcemaps/main.js.map
文件差異過大導致無法顯示
查看文件


+ 2
- 2
ZipTeamOrange-ionic-UI/src/providers/api-service/api-service.ts 查看文件

@@ -16,12 +16,12 @@ export class ApiServiceProvider {
16 16
   }
17 17
 
18 18
   getUsers(){
19
-    return this.http.get('http:localhost:8080/users')
19
+    return this.http.get('https://arcane-ridge.herokuapp.com/users')
20 20
   }
21 21
 
22 22
   save(createAccountInfo: any) : Observable<Object> {
23 23
     //return this.http.post(`http://localhost:8080/ZipTeamOrange/add?username=${createAccountInfo.name}&email=${createAccountInfo.email}&password=${createAccountInfo.password}`, {})
24
-    return this.http.post(`http://localhost:8080/user/add`, createAccountInfo);
24
+    return this.http.post(`https://arcane-ridge.herokuapp.com/user/add`, createAccountInfo);
25 25
   }
26 26
 
27 27
 }

+ 1
- 1
ZipTeamOrange-ionic-UI/src/providers/auth-service/auth-service.ts 查看文件

@@ -19,7 +19,7 @@ export class AuthServiceProvider {
19 19
   postData(createAccountInfo: any){
20 20
     return new Promise((resolve, reject) => {
21 21
 
22
-      this.http.post(`http://localhost:8080/user/add`, createAccountInfo, {responseType: 'text'}).subscribe((res: any) => {
22
+      this.http.post(`https://arcane-ridge.herokuapp.com/user/add`, createAccountInfo, {responseType: 'text'}).subscribe((res: any) => {
23 23
       console.log(JSON.parse(res))
24 24
       resolve(JSON.parse(res));
25 25
       }, (err) => {

+ 2
- 2
ZipTeamOrange-ionic-UI/src/providers/message-service/message-service.ts 查看文件

@@ -18,7 +18,7 @@ export class MessageServiceProvider {
18 18
   }
19 19
 
20 20
   getMessages(){
21
-    return this.http.get('http://localhost:8080/message/all');
21
+    return this.http.get('https://arcane-ridge.herokuapp.com//message/all');
22 22
   }
23 23
 
24 24
   getCurrentMessage(){
@@ -26,7 +26,7 @@ export class MessageServiceProvider {
26 26
   }
27 27
 
28 28
   saveMessage(createAccountInfo: any) : Observable<Object> {
29
-    return this.http.post(`http://localhost:8080/message/add`, createAccountInfo);
29
+    return this.http.post('https://arcane-ridge.herokuapp.com//message/add', createAccountInfo);
30 30
   }
31 31
 
32 32
 }

+ 15
- 17
ZipTeamOrange-ionic-UI/www/build/main.js 查看文件

@@ -52,12 +52,11 @@ var ChatPage = /** @class */ (function () {
52 52
     };
53 53
     ChatPage = __decorate([
54 54
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
55
-            selector: 'page-chat',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/chat/chat.html"*/'<!--\n  Generated template for the ChatPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>chatPage</ion-title>\n  </ion-navbar>\n\n</ion-header>\n<!-- *ngFor="let m of msg">{{ m }} -->\n\n<ion-content padding >\n  <div *ngFor="let m of msg">\n    {{ m.message }}\n  </div>\n\n  <form  #test1="ngForm" ng-submit="send(test1.value)">\n    <ion-textarea  type="text" name="message" [(ngModel)]="test" ></ion-textarea>\n    <button ion-button (click)="send(test1.value)"(click)="getMessages()">send</button>\n  </form>\n</ion-content>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/chat/chat.html"*/,
55
+            selector: 'page-chat',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/chat/chat.html"*/'<!--\n  Generated template for the ChatPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>chatPage</ion-title>\n  </ion-navbar>\n\n</ion-header>\n<!-- *ngFor="let m of msg">{{ m }} -->\n\n<ion-content padding >\n  <div *ngFor="let m of msg">\n    {{ m.message }}\n  </div>\n\n  <form  #test1="ngForm" ng-submit="send(test1.value)">\n    <ion-textarea  type="text" name="message" [(ngModel)]="test" ></ion-textarea>\n    <button ion-button (click)="send(test1.value)"(click)="getMessages()">send</button>\n  </form>\n</ion-content>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/chat/chat.html"*/,
56 56
         }),
57
-        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__providers_message_service_message_service__["a" /* MessageServiceProvider */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__providers_message_service_message_service__["a" /* MessageServiceProvider */]) === "function" && _c || Object])
57
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_message_service_message_service__["a" /* MessageServiceProvider */]])
58 58
     ], ChatPage);
59 59
     return ChatPage;
60
-    var _a, _b, _c;
61 60
 }());
62 61
 
63 62
 //# sourceMappingURL=chat.js.map
@@ -122,7 +121,7 @@ var FirstPage = /** @class */ (function () {
122 121
     };
123 122
     FirstPage = __decorate([
124 123
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
125
-            selector: 'page-first',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/firstPage/first.html"*/'<!--\n  Generated template for the FirstPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n  <ion-navbar color="primary">\n    <button menuToggle ion- button icon-only>\n      <ion-icon name ="menu"></ion-icon>\n    </button>\n    <ion-title text-center>ZipTeamOrange</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <h4>Welcome to this page</h4>\n  <div class="login-box">\n    <form #registerForm="ngForm" ng-submit="loginButton(registerForm.value)" >\n      <ion-row>\n        <ion-col>\n          <ion-list inset>\n            <ion-item>\n              <ion-input type="text" placeholder="Username" name="userName" required [(ngModel)]="Username" ></ion-input>\n            </ion-item>\n            <ion-item>\n              <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n            </ion-item>\n          </ion-list>\n        </ion-col>\n      </ion-row>\n      <ion-row>\n        <ion-col class="signup-col">\n          <button ion-button class="submit-btn" full type="submit" [disabled]="!registerForm.form.valid" (click)="loginButton(registerForm.value)">Login</button>\n        </ion-col>\n      </ion-row>\n    </form>\n    <ion-row>\n      <ion-col color="secondary">\n        <button ion-button class="register-btn" block clear (click)="createAccount()">Create Account</button>\n      </ion-col>\n    </ion-row>\n  </div>\n  \n</ion-content>'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/firstPage/first.html"*/,
124
+            selector: 'page-first',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/firstPage/first.html"*/'<!--\n  Generated template for the FirstPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n  <ion-navbar color="primary">\n    <button menuToggle ion- button icon-only>\n      <ion-icon name ="menu"></ion-icon>\n    </button>\n    <ion-title text-center>ZipTeamOrange</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n  <h4>Welcome to this page</h4>\n  <div class="login-box">\n    <form #registerForm="ngForm" ng-submit="loginButton(registerForm.value)" >\n      <ion-row>\n        <ion-col>\n          <ion-list inset>\n            <ion-item>\n              <ion-input type="text" placeholder="Username" name="userName" required [(ngModel)]="Username" ></ion-input>\n            </ion-item>\n            <ion-item>\n              <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n            </ion-item>\n          </ion-list>\n        </ion-col>\n      </ion-row>\n      <ion-row>\n        <ion-col class="signup-col">\n          <button ion-button class="submit-btn" full type="submit" [disabled]="!registerForm.form.valid" (click)="loginButton(registerForm.value)">Login</button>\n        </ion-col>\n      </ion-row>\n    </form>\n    <ion-row>\n      <ion-col color="secondary">\n        <button ion-button class="register-btn" block clear (click)="createAccount()">Create Account</button>\n      </ion-col>\n    </ion-row>\n  </div>\n  \n</ion-content>'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/firstPage/first.html"*/,
126 125
         }),
127 126
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_3__providers_auth_service_auth_service__["a" /* AuthServiceProvider */]])
128 127
     ], FirstPage);
@@ -186,7 +185,7 @@ var SignUpPage = /** @class */ (function () {
186 185
     };
187 186
     SignUpPage = __decorate([
188 187
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
189
-            selector: 'page-sign-up',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/sign-up/sign-up.html"*/'<!--\n  Generated template for the SignUpPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n    <ion-navbar color="primary">\n      <ion-title>sign-up</ion-title>\n    </ion-navbar>\n  \n  </ion-header>\n  \n  \n  <ion-content padding>\n      <div class="signUp-box">\n      <form #registerForm="ngForm" ng-submit="save(registerForm.value)">\n        <ion-row>\n          <ion-col>\n            <ion-list inset>\n              <ion-item>\n                <ion-input type="text" placeholder="Username" name="userName" required [(ngModel)]="Username" ></ion-input>\n              </ion-item>\n              <ion-item>\n                  <ion-input type="text" placeholder="Email" name="email" required [(ngModel)]="Email" ></ion-input>\n                </ion-item>\n              <ion-item>\n                <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n              </ion-item>\n            </ion-list>\n          </ion-col>\n        </ion-row>\n        <ion-row>\n          <ion-col class="signup-col">\n            <button ion-button class="submit-btn" full type="submit" (click)="save(registerForm.value)" [disabled]="!registerForm.form.valid">Create Account</button>\n          </ion-col>\n        </ion-row>\n      </form>\n    \n    </div>\n  \n  </ion-content>\n  \n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/sign-up/sign-up.html"*/,
188
+            selector: 'page-sign-up',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/sign-up/sign-up.html"*/'<!--\n  Generated template for the SignUpPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n    <ion-navbar color="primary">\n      <ion-title>sign-up</ion-title>\n    </ion-navbar>\n  \n  </ion-header>\n  \n  \n  <ion-content padding>\n      <div class="signUp-box">\n      <form #registerForm="ngForm" ng-submit="save(registerForm.value)">\n        <ion-row>\n          <ion-col>\n            <ion-list inset>\n              <ion-item>\n                <ion-input type="text" placeholder="Username" name="userName" required [(ngModel)]="Username" ></ion-input>\n              </ion-item>\n              <ion-item>\n                  <ion-input type="text" placeholder="Email" name="email" required [(ngModel)]="Email" ></ion-input>\n                </ion-item>\n              <ion-item>\n                <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n              </ion-item>\n            </ion-list>\n          </ion-col>\n        </ion-row>\n        <ion-row>\n          <ion-col class="signup-col">\n            <button ion-button class="submit-btn" full type="submit" (click)="save(registerForm.value)" [disabled]="!registerForm.form.valid">Create Account</button>\n          </ion-col>\n        </ion-row>\n      </form>\n    \n    </div>\n  \n  </ion-content>\n  \n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/sign-up/sign-up.html"*/,
190 189
         }),
191 190
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_api_service_api_service__["a" /* ApiServiceProvider */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* ToastController */]])
192 191
     ], SignUpPage);
@@ -278,20 +277,19 @@ var MessageServiceProvider = /** @class */ (function () {
278 277
         console.log('Hello MessageServiceProvider Provider');
279 278
     }
280 279
     MessageServiceProvider.prototype.getMessages = function () {
281
-        return this.http.get('http://localhost:8080/message/all');
280
+        return this.http.get('https://arcane-ridge.herokuapp.com//message/all');
282 281
     };
283 282
     MessageServiceProvider.prototype.getCurrentMessage = function () {
284 283
         return this.messages;
285 284
     };
286 285
     MessageServiceProvider.prototype.saveMessage = function (createAccountInfo) {
287
-        return this.http.post("http://localhost:8080/message/add", createAccountInfo);
286
+        return this.http.post('https://arcane-ridge.herokuapp.com//message/add', createAccountInfo);
288 287
     };
289 288
     MessageServiceProvider = __decorate([
290 289
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
291
-        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]) === "function" && _a || Object])
290
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
292 291
     ], MessageServiceProvider);
293 292
     return MessageServiceProvider;
294
-    var _a;
295 293
 }());
296 294
 
297 295
 //# sourceMappingURL=message-service.js.map
@@ -328,11 +326,11 @@ var ApiServiceProvider = /** @class */ (function () {
328 326
         console.log('Hello ApiServiceProvider Provider');
329 327
     }
330 328
     ApiServiceProvider.prototype.getUsers = function () {
331
-        return this.http.get('http:localhost:8080/users');
329
+        return this.http.get('https://arcane-ridge.herokuapp.com/users');
332 330
     };
333 331
     ApiServiceProvider.prototype.save = function (createAccountInfo) {
334 332
         //return this.http.post(`http://localhost:8080/ZipTeamOrange/add?username=${createAccountInfo.name}&email=${createAccountInfo.email}&password=${createAccountInfo.password}`, {})
335
-        return this.http.post("http://localhost:8080/user/add", createAccountInfo);
333
+        return this.http.post("https://arcane-ridge.herokuapp.com/user/add", createAccountInfo);
336 334
     };
337 335
     ApiServiceProvider = __decorate([
338 336
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
@@ -380,7 +378,7 @@ var AuthServiceProvider = /** @class */ (function () {
380 378
     AuthServiceProvider.prototype.postData = function (createAccountInfo) {
381 379
         var _this = this;
382 380
         return new Promise(function (resolve, reject) {
383
-            _this.http.post("http://localhost:8080/user/add", createAccountInfo, { responseType: 'text' }).subscribe(function (res) {
381
+            _this.http.post("https://arcane-ridge.herokuapp.com/user/add", createAccountInfo, { responseType: 'text' }).subscribe(function (res) {
384 382
                 console.log(JSON.parse(res));
385 383
                 resolve(JSON.parse(res));
386 384
             }, function (err) {
@@ -431,7 +429,7 @@ var TabsPage = /** @class */ (function () {
431 429
         this.tab4Root = __WEBPACK_IMPORTED_MODULE_2__contact_contact__["a" /* ContactPage */];
432 430
     }
433 431
     TabsPage = __decorate([
434
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/tabs/tabs.html"*/'<ion-tabs>\n  <ion-tab [root]="tab1Root" tabTitle="Log"  tabIcon="sign-in"></ion-tab>\n  <ion-tab [root]="tab2Root" tabTitle="Home" tabIcon="home"></ion-tab>\n  <ion-tab [root]="tab3Root" tabTitle="About" tabIcon="information-circle"></ion-tab>\n  <ion-tab [root]="tab4Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/tabs/tabs.html"*/
432
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/tabs/tabs.html"*/'<ion-tabs>\n  <ion-tab [root]="tab1Root" tabTitle="Log"  tabIcon="sign-in"></ion-tab>\n  <ion-tab [root]="tab2Root" tabTitle="Home" tabIcon="home"></ion-tab>\n  <ion-tab [root]="tab3Root" tabTitle="About" tabIcon="information-circle"></ion-tab>\n  <ion-tab [root]="tab4Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/tabs/tabs.html"*/
435 433
         }),
436 434
         __metadata("design:paramtypes", [])
437 435
     ], TabsPage);
@@ -466,7 +464,7 @@ var AboutPage = /** @class */ (function () {
466 464
     }
467 465
     AboutPage = __decorate([
468 466
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
469
-            selector: 'page-about',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/about/about.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      About\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/about/about.html"*/
467
+            selector: 'page-about',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/about/about.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      About\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/about/about.html"*/
470 468
         }),
471 469
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
472 470
     ], AboutPage);
@@ -501,7 +499,7 @@ var ContactPage = /** @class */ (function () {
501 499
     }
502 500
     ContactPage = __decorate([
503 501
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
504
-            selector: 'page-contact',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/contact/contact.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      Contact\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content>\n  <ion-list>\n    <ion-list-header>Follow us on Twitter</ion-list-header>\n    <ion-item>\n      <ion-icon name="ionic" item-start></ion-icon>\n      @ionicframework\n    </ion-item>\n  </ion-list>\n</ion-content>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/contact/contact.html"*/
502
+            selector: 'page-contact',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/contact/contact.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      Contact\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content>\n  <ion-list>\n    <ion-list-header>Follow us on Twitter</ion-list-header>\n    <ion-item>\n      <ion-icon name="ionic" item-start></ion-icon>\n      @ionicframework\n    </ion-item>\n  </ion-list>\n</ion-content>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/contact/contact.html"*/
505 503
         }),
506 504
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
507 505
     ], ContactPage);
@@ -536,7 +534,7 @@ var HomePage = /** @class */ (function () {
536 534
     }
537 535
     HomePage = __decorate([
538 536
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
539
-            selector: 'page-home',template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>Home</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n  <h2>Welcome to Ionic!</h2>\n  <p>\n    This starter project comes with simple tabs-based layout for apps\n    that are going to primarily use a Tabbed UI.\n  </p>\n  <p>\n    Take a look at the <code>src/pages/</code> directory to add or change tabs,\n    update any existing page or create new pages.\n  </p>\n</ion-content>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/home/home.html"*/
537
+            selector: 'page-home',template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>Home</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n  <h2>Welcome to Ionic!</h2>\n  <p>\n    This starter project comes with simple tabs-based layout for apps\n    that are going to primarily use a Tabbed UI.\n  </p>\n  <p>\n    Take a look at the <code>src/pages/</code> directory to add or change tabs,\n    update any existing page or create new pages.\n  </p>\n</ion-content>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/home/home.html"*/
540 538
         }),
541 539
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
542 540
     ], HomePage);
@@ -695,7 +693,7 @@ var MyApp = /** @class */ (function () {
695 693
         });
696 694
     }
697 695
     MyApp = __decorate([
698
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/app/app.html"*/
696
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ChadH/Labs/ZipTeam/ZipTeamOrange-ionic-UI/src/app/app.html"*/
699 697
         }),
700 698
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
701 699
     ], MyApp);

+ 1
- 1
ZipTeamOrange-ionic-UI/www/build/main.js.map
文件差異過大導致無法顯示
查看文件


+ 1
- 1
ZipTeamOrange-ionic-UI/www/build/vendor.js.map
文件差異過大導致無法顯示
查看文件


二進制
ZipTeamOrange-server/Favicon.ico 查看文件


+ 13
- 3
ZipTeamOrange-server/pom.xml 查看文件

@@ -44,16 +44,26 @@
44 44
 			<artifactId>spring-boot-devtools</artifactId>
45 45
 			<scope>runtime</scope>
46 46
 		</dependency>
47
+		<!--<dependency>-->
48
+			<!--<groupId>mysql</groupId>-->
49
+			<!--<artifactId>mysql-connector-java</artifactId>-->
50
+			<!--&lt;!&ndash;<scope>runtime</scope>&ndash;&gt;-->
51
+		<!--</dependency>-->
47 52
 		<dependency>
48
-			<groupId>mysql</groupId>
49
-			<artifactId>mysql-connector-java</artifactId>
50
-			<!--<scope>runtime</scope>-->
53
+			<groupId>org.postgresql</groupId>
54
+			<artifactId>postgresql</artifactId>
55
+            <version>42.2.1</version>
51 56
 		</dependency>
52 57
 		<dependency>
53 58
 			<groupId>org.springframework.boot</groupId>
54 59
 			<artifactId>spring-boot-starter-test</artifactId>
55 60
 			<scope>test</scope>
56 61
 		</dependency>
62
+        <dependency>
63
+            <groupId>org.apache.tomcat</groupId>
64
+            <artifactId>tomcat-jdbc</artifactId>
65
+            <version>8.5.31</version>
66
+        </dependency>
57 67
 	</dependencies>
58 68
 
59 69
 	<build>

+ 19
- 0
ZipTeamOrange-server/src/main/java/ZipTeamOrange/DatabaseConfig.java 查看文件

@@ -0,0 +1,19 @@
1
+//package ZipTeamOrange;
2
+//
3
+//import org.springframework.boot.context.properties.ConfigurationProperties;
4
+//import org.springframework.boot.jdbc.DataSourceBuilder;
5
+//import org.springframework.context.annotation.Bean;
6
+//import org.springframework.context.annotation.Configuration;
7
+//import org.springframework.context.annotation.Primary;
8
+//
9
+//import javax.sql.DataSource;
10
+//
11
+//@Configuration
12
+//public class DatabaseConfig {
13
+//    @Bean
14
+//    @Primary
15
+//    @ConfigurationProperties(prefix = "spring.datasource")
16
+//    public DataSource dataSource() {
17
+//        return DataSourceBuilder.create().build();
18
+//    }
19
+//}

+ 21
- 0
ZipTeamOrange-server/src/main/java/ZipTeamOrange/Root.java 查看文件

@@ -0,0 +1,21 @@
1
+package ZipTeamOrange;
2
+
3
+
4
+import ZipTeamOrange.user.User;
5
+import org.springframework.stereotype.Controller;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.RequestMapping;
8
+import org.springframework.web.bind.annotation.ResponseBody;
9
+
10
+@Controller
11
+//@RequestMapping(path = "/user")
12
+public class Root {
13
+
14
+    @GetMapping(path="/")
15
+    public @ResponseBody
16
+    String sayHello(){
17
+        //this returns a JSON or XML with users
18
+        return "Hello";
19
+    }
20
+
21
+}

+ 1
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/message/MessageController.java 查看文件

@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.*;
7 7
 
8 8
 @RestController
9 9
 @RequestMapping(path = "/message")
10
-@CrossOrigin("http://localhost:8100")
10
+@CrossOrigin
11 11
 public class MessageController {
12 12
     ObjectMapper ob = new ObjectMapper();
13 13
 

+ 1
- 0
ZipTeamOrange-server/src/main/java/ZipTeamOrange/user/User.java 查看文件

@@ -7,6 +7,7 @@ import java.util.Set;
7 7
 
8 8
 
9 9
 @Entity
10
+@Table(name="ChatUser")
10 11
 public class User {
11 12
 
12 13
     @Id

+ 1
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/user/UserController.java 查看文件

@@ -16,7 +16,7 @@ public class UserController {
16 16
     private UserRepository userRepository;
17 17
 
18 18
     @PostMapping(path="/add")
19
-    @CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8101", "http://localhost:8102"})
19
+    @CrossOrigin(origins = {"https://arcane-ridge.herokuapp.com/", "http://localhost:8100", "http://localhost:8101", "http://localhost:8102"})
20 20
     public @ResponseBody String addNewUser(@RequestBody User user) throws JsonProcessingException {
21 21
         userRepository.save(user);
22 22
         return ob.writeValueAsString(user);

+ 19
- 7
ZipTeamOrange-server/src/main/resources/application.properties 查看文件

@@ -1,7 +1,19 @@
1
-#spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
2
-spring.jpa.hibernate.ddl-auto=create-drop
3
-spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
4
-spring.datasource.username=root
5
-#spring.datasource.password=password
6
-logging.level.org.hibernate.SQL=DEBUG
7
-logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
1
+#spring.datasource.url= postgres://vanvxvunakzykh:7f9d6108e7c2676b57af5eb672250e42c960147e28ba8786bb45ffa0efb5b866@ec2-75-101-142-91.compute-1.amazonaws.com:5432/d4i371u3ci642k
2
+#spring.datasource.driverClassName=org.postgresql.Driver
3
+#spring.datasource.maxActive=10
4
+#spring.datasource.maxIdle=5
5
+#spring.datasource.minIdle=2
6
+#spring.datasource.initialSize=5
7
+#spring.datasource.removeAbandoned=true
8
+
9
+#spring.datasource.url= ${JDBC_DATABASE_URL}
10
+spring.datasource.url=jdbc:postgresql://localhost:5432/ChadH
11
+spring.datasource.username=
12
+spring.datasource.password=
13
+spring.jpa.hibernate.ddl-auto=update
14
+
15
+# Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
16
+spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
17
+
18
+# Because detection is disabled you have to set correct dialect by hand.
19
+spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect

+ 7
- 0
ZipTeamOrange-server/src/main/resources/applicationOne.properties 查看文件

@@ -0,0 +1,7 @@
1
+#spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
2
+spring.jpa.hibernate.ddl-auto=create-drop
3
+spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
4
+spring.datasource.username=root
5
+spring.datasource.password=
6
+logging.level.org.hibernate.SQL=DEBUG
7
+logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE