Parcourir la source

removing all files in gitignore

alizalang il y a 6 ans
Parent
révision
92bf1c5616

+ 53
- 0
ZipTeamOrange-ionic-UI/.sourcemaps/.gitignore Voir le fichier

@@ -0,0 +1,53 @@
1
+*~
2
+*.sw[mnpcod]
3
+*.log
4
+*.lock
5
+*.tmp
6
+*.tmp.*
7
+log.txt
8
+*.sublime-project
9
+*.sublime-workspace
10
+
11
+.idea/
12
+.vscode/
13
+.sass-cache/
14
+.versions/
15
+coverage/
16
+collection/
17
+dist/
18
+node_modules/
19
+tmp/
20
+temp/
21
+core/theme-builder/
22
+core/test-components/
23
+core/css/
24
+angular/css/
25
+$RECYCLE.BIN/
26
+
27
+.DS_Store
28
+Thumbs.db
29
+UserInterfaceState.xcuserstate
30
+.env
31
+
32
+.package.tmp.json
33
+
34
+src/themes/version.scss
35
+scripts/e2e/webpackEntryPoints.json
36
+scripts/build/e2e-generated-tsconfig.json
37
+*.css.ts
38
+
39
+stats.json
40
+
41
+# demo stuff
42
+demos/node_modules
43
+demos/polyfills
44
+demos/css
45
+demos/fonts
46
+demos/src/**/*.js
47
+demos/src/**/*.map
48
+demos/src/**/*.ngfactory.ts
49
+demos/src/**/*.d.ts
50
+demos/src/**/*.metadata.json
51
+demos/src/**/*.css.shim.ts
52
+core/css/
53
+angular/css/

+ 5
- 1
ZipTeamOrange-ionic-UI/.sourcemaps/main.js.map
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 2
- 2
ZipTeamOrange-ionic-UI/src/providers/api-service/api-service.ts Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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
 }

+ 16
- 12
ZipTeamOrange-ionic-UI/www/build/main.js Voir le fichier

@@ -59,7 +59,11 @@ var ChatPage = /** @class */ (function () {
59 59
     ], ChatPage.prototype, "messages", void 0);
60 60
     ChatPage = __decorate([
61 61
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
62
+<<<<<<< HEAD
62 63
             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" class="message-wrapper">\n    <div class="name">Nhu <span class="timestamp">4/10</span></div>\n    <div class="message">{{m.message}}</div>\n  </div>\n\n  <form  #test1="ngForm" ng-submit="send(test1.value)">\n    <ion-textarea  type="text" name="message" [(ngModel)]="test" class="user-message"></ion-textarea>\n    <button ion-button (click)="send(test1.value)" >send</button>\n  </form>\n</ion-content>\n'/*ion-inline-end:"/Users/alizalang/Desktop/ZipTeam/ZipTeamOrange-ionic-UI/src/pages/chat/chat.html"*/,
64
+=======
65
+            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"*/,
66
+>>>>>>> master
63 67
         }),
64 68
         __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 */]])
65 69
     ], ChatPage);
@@ -128,7 +132,7 @@ var FirstPage = /** @class */ (function () {
128 132
     };
129 133
     FirstPage = __decorate([
130 134
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
131
-            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"*/,
135
+            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"*/,
132 136
         }),
133 137
         __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 */]])
134 138
     ], FirstPage);
@@ -192,7 +196,7 @@ var SignUpPage = /** @class */ (function () {
192 196
     };
193 197
     SignUpPage = __decorate([
194 198
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
195
-            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"*/,
199
+            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"*/,
196 200
         }),
197 201
         __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 */]])
198 202
     ], SignUpPage);
@@ -284,13 +288,13 @@ var MessageServiceProvider = /** @class */ (function () {
284 288
         console.log('Hello MessageServiceProvider Provider');
285 289
     }
286 290
     MessageServiceProvider.prototype.getMessages = function () {
287
-        return this.http.get('http://localhost:8080/message/all');
291
+        return this.http.get('https://arcane-ridge.herokuapp.com//message/all');
288 292
     };
289 293
     MessageServiceProvider.prototype.getCurrentMessage = function () {
290 294
         return this.messages;
291 295
     };
292 296
     MessageServiceProvider.prototype.saveMessage = function (createAccountInfo) {
293
-        return this.http.post("http://localhost:8080/message/add", createAccountInfo);
297
+        return this.http.post('https://arcane-ridge.herokuapp.com//message/add', createAccountInfo);
294 298
     };
295 299
     MessageServiceProvider = __decorate([
296 300
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
@@ -333,11 +337,11 @@ var ApiServiceProvider = /** @class */ (function () {
333 337
         console.log('Hello ApiServiceProvider Provider');
334 338
     }
335 339
     ApiServiceProvider.prototype.getUsers = function () {
336
-        return this.http.get('http:localhost:8080/users');
340
+        return this.http.get('https://arcane-ridge.herokuapp.com/users');
337 341
     };
338 342
     ApiServiceProvider.prototype.save = function (createAccountInfo) {
339 343
         //return this.http.post(`http://localhost:8080/ZipTeamOrange/add?username=${createAccountInfo.name}&email=${createAccountInfo.email}&password=${createAccountInfo.password}`, {})
340
-        return this.http.post("http://localhost:8080/user/add", createAccountInfo);
344
+        return this.http.post("https://arcane-ridge.herokuapp.com/user/add", createAccountInfo);
341 345
     };
342 346
     ApiServiceProvider = __decorate([
343 347
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
@@ -385,7 +389,7 @@ var AuthServiceProvider = /** @class */ (function () {
385 389
     AuthServiceProvider.prototype.postData = function (createAccountInfo) {
386 390
         var _this = this;
387 391
         return new Promise(function (resolve, reject) {
388
-            _this.http.post("http://localhost:8080/user/add", createAccountInfo, { responseType: 'text' }).subscribe(function (res) {
392
+            _this.http.post("https://arcane-ridge.herokuapp.com/user/add", createAccountInfo, { responseType: 'text' }).subscribe(function (res) {
389 393
                 console.log(JSON.parse(res));
390 394
                 resolve(JSON.parse(res));
391 395
             }, function (err) {
@@ -436,7 +440,7 @@ var TabsPage = /** @class */ (function () {
436 440
         this.tab4Root = __WEBPACK_IMPORTED_MODULE_2__contact_contact__["a" /* ContactPage */];
437 441
     }
438 442
     TabsPage = __decorate([
439
-        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"*/
443
+        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"*/
440 444
         }),
441 445
         __metadata("design:paramtypes", [])
442 446
     ], TabsPage);
@@ -471,7 +475,7 @@ var AboutPage = /** @class */ (function () {
471 475
     }
472 476
     AboutPage = __decorate([
473 477
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
474
-            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"*/
478
+            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"*/
475 479
         }),
476 480
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
477 481
     ], AboutPage);
@@ -506,7 +510,7 @@ var ContactPage = /** @class */ (function () {
506 510
     }
507 511
     ContactPage = __decorate([
508 512
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
509
-            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"*/
513
+            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"*/
510 514
         }),
511 515
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
512 516
     ], ContactPage);
@@ -541,7 +545,7 @@ var HomePage = /** @class */ (function () {
541 545
     }
542 546
     HomePage = __decorate([
543 547
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
544
-            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"*/
548
+            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"*/
545 549
         }),
546 550
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
547 551
     ], HomePage);
@@ -700,7 +704,7 @@ var MyApp = /** @class */ (function () {
700 704
         });
701 705
     }
702 706
     MyApp = __decorate([
703
-        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"*/
707
+        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"*/
704 708
         }),
705 709
         __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 */]])
706 710
     ], MyApp);

+ 5
- 1
ZipTeamOrange-ionic-UI/www/build/main.js.map
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 5
- 1
ZipTeamOrange-ionic-UI/www/build/vendor.js.map
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


BIN
ZipTeamOrange-server/Favicon.ico Voir le fichier


+ 13
- 3
ZipTeamOrange-server/pom.xml Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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);

+ 18
- 6
ZipTeamOrange-server/src/main/resources/application.properties Voir le fichier

@@ -1,7 +1,19 @@
1
-#spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
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=
2 13
 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
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 Voir le fichier

@@ -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