Skip to content

Commit ade07d3

Browse files
committed
Angular with Spring fix urls
1 parent ca7bb1e commit ade07d3

File tree

13 files changed

+18
-19
lines changed

13 files changed

+18
-19
lines changed
-35.3 MB
Binary file not shown.
38.5 MB
Binary file not shown.
427 KB
Binary file not shown.
59 Bytes
Binary file not shown.
866 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"./services/login.service\";\nimport * as i2 from \"@angular/common\";\nimport * as i3 from \"@angular/router\";\n\nfunction AppComponent_span_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"a\", 9);\n i0.ɵɵtext(3, \" PON TU ANUNCIO \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"li\")(5, \"a\", 10);\n i0.ɵɵtext(6, \" FAVORITOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(7, \"li\")(8, \"a\", 11);\n i0.ɵɵtext(9);\n i0.ɵɵelement(10, \"i\", 12);\n i0.ɵɵelementEnd()()();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(9);\n i0.ɵɵtextInterpolate1(\" \", ctx_r0.loginService.currentUser().full_NAME, \" \");\n }\n}\n\nfunction AppComponent_span_16_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"a\", 13);\n i0.ɵɵtext(3, \" CREAR CUENTA \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"li\")(5, \"a\", 14);\n i0.ɵɵtext(6, \" INICIAR SESI\\u00D3N \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(7, \"li\")(8, \"a\", 14);\n i0.ɵɵelement(9, \"i\", 12);\n i0.ɵɵelementEnd()()();\n }\n}\n\nfunction AppComponent_span_17_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"button\", 15);\n i0.ɵɵlistener(\"click\", function AppComponent_span_17_Template_button_click_2_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r3 = i0.ɵɵnextContext();\n return ctx_r3.logOut();\n });\n i0.ɵɵtext(3, \"Log Out\");\n i0.ɵɵelementEnd()()();\n }\n}\n\nexport let AppComponent = /*#__PURE__*/(() => {\n class AppComponent {\n constructor(loginService) {\n this.loginService = loginService;\n }\n\n logOut() {\n this.loginService.logOut();\n }\n\n }\n\n AppComponent.ɵfac = function AppComponent_Factory(t) {\n return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.LoginService));\n };\n\n AppComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: AppComponent,\n selectors: [[\"app-root\"]],\n decls: 20,\n vars: 3,\n consts: [[1, \"full-width\", \"NavBar\"], [1, \"full-width\", \"text-semi-bold\", \"NavBar-logo\"], [\"href\", \"/new/\"], [\"src\", \"assets/img/LogoAPP.png\", \"alt\", \"Wallypop Corporation\"], [1, \"full-width\", \"NavBar-Nav\"], [1, \"list-unstyled\", \"full-width\"], [\"href\", \"/new/commercial\"], [\"href\", \"/new/sold\"], [4, \"ngIf\"], [\"href\", \"/new/adcommercial\"], [\"href\", \"/new/favorites\"], [\"href\", \"/new/profile\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-user\", \"NavBar-Nav-icon\"], [\"href\", \"/new/newaccount\"], [\"href\", \"/new/login\"], [\"type\", \"submit\", 1, \"btn\", \"btn-default\", \"navbar-btn\", 3, \"click\"]],\n template: function AppComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"a\", 2);\n i0.ɵɵelement(3, \"img\", 3);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"nav\", 4)(5, \"ul\", 5)(6, \"li\")(7, \"a\", 2);\n i0.ɵɵtext(8, \" INICIO \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(9, \"li\")(10, \"a\", 6);\n i0.ɵɵtext(11, \" ANUNCIOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(12, \"li\")(13, \"a\", 7);\n i0.ɵɵtext(14, \" ANUNCIOS VENDIDOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(15, AppComponent_span_15_Template, 11, 1, \"span\", 8);\n i0.ɵɵtemplate(16, AppComponent_span_16_Template, 10, 0, \"span\", 8);\n i0.ɵɵtemplate(17, AppComponent_span_17_Template, 4, 0, \"span\", 8);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(18, \"section\");\n i0.ɵɵelement(19, \"router-outlet\");\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(15);\n i0.ɵɵproperty(\"ngIf\", ctx.loginService.isLogged());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !ctx.loginService.isLogged());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.loginService.isLogged());\n }\n },\n directives: [i2.NgIf, i3.RouterOutlet],\n encapsulation: 2\n });\n return AppComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}

angular/wallypop/.idea/workspace.xml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular/wallypop/dist/ejem0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html><html lang="es"><head><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
22
<meta charset="utf-8">
3-
<title>Wallypop - Angular</title>
3+
<title>Wallypop</title>
44
<base href="/new/">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<link rel="icon" type="image/x-icon" href="favicon.ico">

angular/wallypop/dist/ejem0/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular/wallypop/src/app/app.component.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
<!-- ====== Nav Bar ======-->
22
<div class="full-width NavBar">
33
<div class="full-width text-semi-bold NavBar-logo">
4-
<a href="/">
4+
<a href="/new/">
55
<img src="assets/img/LogoAPP.png" alt="Wallypop Corporation"/>
66
</a>
77
<!-- Company -->
88
</div>
99
<nav class=" full-width NavBar-Nav">
1010
<ul class="list-unstyled full-width">
1111
<li>
12-
<a href="/">
12+
<a href="/new/">
1313
INICIO
1414
</a>
1515
</li>
1616
<li>
17-
<a href="/commercial">
17+
<a href="/new/commercial">
1818
ANUNCIOS
1919
</a>
2020
</li>
2121
<li>
22-
<a href="/sold">
22+
<a href="/new/sold">
2323
ANUNCIOS VENDIDOS
2424
</a>
2525
</li>
2626
<span *ngIf="loginService.isLogged()">
2727
<li>
28-
<a href="/adcommercial">
28+
<a href="/new/adcommercial">
2929
PON TU ANUNCIO
3030
</a>
3131
</li>
3232
<li>
33-
<a href="/favorites">
33+
<a href="/new/favorites">
3434
FAVORITOS
3535
</a>
3636
</li>
3737
<li>
38-
<a href="/profile">
38+
<a href="/new/profile">
3939
{{loginService.currentUser().full_NAME}} <i aria-hidden="true" class="fa fa-user NavBar-Nav-icon"></i>
4040
</a>
4141
</li>
4242
</span>
4343
<span *ngIf="!loginService.isLogged()">
4444
<li>
45-
<a href="/newaccount">
45+
<a href="/new/newaccount">
4646
CREAR CUENTA
4747
</a>
4848
</li>
4949
<li>
50-
<a href="/login">
50+
<a href="/new/login">
5151
INICIAR SESIÓN
5252
</a>
5353
</li>
5454
<li>
55-
<a href="/login">
55+
<a href="/new/login">
5656
<i aria-hidden="true" class="fa fa-user NavBar-Nav-icon"></i>
5757
</a>
5858
</li>

0 commit comments

Comments
 (0)