From 7842cb9e82e236a2ae38aba49192b24f536ab846 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Mon, 31 Oct 2016 19:01:34 -0500 Subject: [PATCH 01/20] Remove ui-router for ng1 --- generators/client-2/files.js | 4 +- generators/client-2/templates/_package.json | 2 - .../templates/src/main/webapp/_index.html | 7 +- .../src/main/webapp/app/_app.module.ts | 6 +- .../src/main/webapp/app/_app.ng2module.ts | 12 +-- .../src/main/webapp/app/_router.config.ts | 26 ++++++ .../src/main/webapp/app/_upgrade_adapter.ts | 2 - .../webapp/app/account/_account.module.ts | 3 +- .../main/webapp/app/admin/_admin.module.ts | 3 +- .../webapp/app/blocks/config/_http.config.ts | 15 +--- .../_ui-router-defer-intercept.config.ts | 6 -- .../app/blocks/handlers/_state.handler.ts | 88 ++++++++----------- .../webapp/app/entities/_entity.module.ts | 1 - .../src/main/webapp/app/layouts/_index.ts | 1 + .../layouts/main/_jhipster-main.component.ts | 7 ++ .../app/layouts/main/_jhipster-main.html | 5 ++ 16 files changed, 95 insertions(+), 93 deletions(-) create mode 100644 generators/client-2/templates/src/main/webapp/app/_router.config.ts delete mode 100644 generators/client-2/templates/src/main/webapp/app/blocks/config/_ui-router-defer-intercept.config.ts create mode 100644 generators/client-2/templates/src/main/webapp/app/layouts/main/_jhipster-main.component.ts create mode 100644 generators/client-2/templates/src/main/webapp/app/layouts/main/_jhipster-main.html diff --git a/generators/client-2/files.js b/generators/client-2/files.js index 16fc4c0b412f..ecc41683e7c0 100644 --- a/generators/client-2/files.js +++ b/generators/client-2/files.js @@ -94,13 +94,13 @@ const files = { '_app.ng2module.ts', '_app.state.ts', '_app.constants.ts', + '_router.config.ts', 'blocks/handlers/_state.handler.ts', 'blocks/config/_http.config.ts', 'blocks/config/_localstorage.config.ts', 'blocks/config/_compile.config.ts', 'blocks/config/_uib-pager.config.ts', 'blocks/config/_uib-pagination.config.ts', - 'blocks/config/_ui-router-defer-intercept.config.ts', //interceptors 'blocks/interceptor/_auth-expired.interceptor.ts', 'blocks/interceptor/_errorhandler.interceptor.ts', @@ -140,6 +140,8 @@ const files = { 'layouts/profiles/_profile.service.ts', 'layouts/profiles/_profile-info.model.ts', 'layouts/profiles/_page-ribbon.component.ts', + 'layouts/main/_jhipster-main.component.ts', + { file: 'layouts/main/_jhipster-main.html', method: 'copyHtml' }, 'layouts/navbar/_navbar.component.ts', { file: 'layouts/navbar/_navbar.html', method: 'copyHtml' }, 'layouts/footer/_footer.component.ts', diff --git a/generators/client-2/templates/_package.json b/generators/client-2/templates/_package.json index a79e4ad5d979..d5c24c77522b 100644 --- a/generators/client-2/templates/_package.json +++ b/generators/client-2/templates/_package.json @@ -17,7 +17,6 @@ "@angular/platform-browser-dynamic": "2.0.1", "@angular/upgrade": "2.0.1", "@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.10", - "angular-ui-router": "1.0.0-beta.3", "core-js": "2.4.1", "jquery": "3.1.0", <%_ if (enableTranslation){ _%> @@ -27,7 +26,6 @@ "reflect-metadata": "0.1.3", "rxjs": "5.0.0-beta.12", "systemjs": "0.19.27", - "ui-router-ng1-to-ng2": "1.0.15", "ui-router-ng2": "1.0.0-beta.3", "ui-router-visualizer": "2.0.11", "zone.js": "0.6.23" diff --git a/generators/client-2/templates/src/main/webapp/_index.html b/generators/client-2/templates/src/main/webapp/_index.html index 13c5e5697362..82949e1252f1 100644 --- a/generators/client-2/templates/src/main/webapp/_index.html +++ b/generators/client-2/templates/src/main/webapp/_index.html @@ -9,6 +9,7 @@ <%_ } _%> + @@ -26,9 +27,9 @@

You are using an outdated browser. Please upgrade your browser to improve your experience.

-
+
-
+

An error has occured :-(

@@ -74,8 +75,6 @@

If you want to chat with contributors and other users

- -
- - + <<%=jhiPrefix%>-main>-main> + +
- -

An error has occured :-(

There was an error when generating this application with JHipster

If you are seeing this, it means something went wrong during the initial setup of the application.

@@ -73,10 +72,9 @@

If you want to chat with contributors and other users

Join our chat room on Gitter.im. Please note that this is a public chat room, and that we expect you to respect other people and write in a correct English language!

-
- +