GeezerVison is showing github.com — fix(seed): rename index.html to app.html to fix CRSF and token issues · angular-fullstack/generator-angular-fullstack@2e784bf
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: docs/content/developing/index.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -75,10 +75,10 @@ Time: 16538ms | 75 | 75 | app.bundle.js.map 3.34 MB 0 [emitted] app | 76 | 76 | polyfills.bundle.js.map 271 kB 1 [emitted] polyfills | 77 | 77 | vendor.bundle.js.map 3.06 MB 2 [emitted] vendor | 78 | | - ../client/index.html 1.39 kB [emitted] | 79 | | -Child html-webpack-plugin for "..\client\index.html": | | 78 | + ../client/app.html 1.39 kB [emitted] | | 79 | +Child html-webpack-plugin for "..\client\app.html": | 80 | 80 | Asset Size Chunks Chunk Names | 81 | | - ../client/index.html 2.69 kB 0 | | 81 | + ../client/app.html 2.69 kB 0 | 82 | 82 | webpack: bundle is now VALID. | 83 | 83 | ``` | 84 | 84 |
| |
Collapse file Copy file name to clipboardExpand all lines: docs/content/get-started/overview.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ webpack.make.js // main file for Webpack configuration | 35 | 35 | ``` | 36 | 36 | │ .eslintrc // eslint config for client files | 37 | 37 | │ polyfills.js // imports of polyfills | 38 | | -│ _index.html // template for the root HTML file of your app | | 38 | +│ app.template.html // template for the root HTML file of your app | 39 | 39 | │ | 40 | 40 | ├───app | 41 | 41 | │ │ app.config.js // contains app-wide configuration code | |
Collapse file Copy file name to clipboardExpand all lines: src/test/get-expected-files.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,7 @@ export function app(options) { | 49 | 49 | 'client/.htaccess', | 50 | 50 | 'client/favicon.ico', | 51 | 51 | 'client/robots.txt', | 52 | | - 'client/_index.html', | | 52 | + 'client/app.template.html', | 53 | 53 | `client/polyfills.${script}`, | 54 | 54 | 'client/app/app.' + script, | 55 | 55 | 'client/app/app.config.' + script, | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/_.gitignore +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | .sass-cache<% } %> | 5 | 5 | .idea | 6 | 6 | client/bower_components | 7 | | -client/index.html | | 7 | +client/app.html | 8 | 8 | dist | 9 | 9 | /server/config/local.env.js | 10 | 10 | npm-debug.log | |
Collapse file Copy file name to clipboard File renamed without changes. Collapse file Copy file name to clipboardExpand all lines: templates/app/gulpfile.babel.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,7 +36,7 @@ const paths = { | 36 | 36 | styles: [`${clientPath}/{app,components}/**/*.<%= styleExt %>`], | 37 | 37 | mainStyle: `${clientPath}/app/app.<%= styleExt %>`, | 38 | 38 | views: `${clientPath}/{app,components}/**/*.<%= templateExt %>`, | 39 | | - mainView: `${clientPath}/index.html`, | | 39 | + mainView: `${clientPath}/app.html`, | 40 | 40 | test: [`${clientPath}/{app,components}/**/*.{spec,mock}.<%= scriptExt %>`], | 41 | 41 | e2e: ['e2e/**/*.spec.js'] | 42 | 42 | }, | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/server/config/seed(models).js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ export default function seedDatabaseIfNeeded() { | 31 | 31 | name: 'Smart Build System', | 32 | 32 | info: 'Build system ignores `spec` files, allowing you to keep ' | 33 | 33 | + 'tests alongside code. Automatic injection of scripts and ' | 34 | | - + 'styles into your index.html' | | 34 | + + 'styles into your app.html' | 35 | 35 | }, { | 36 | 36 | name: 'Modular Structure', | 37 | 37 | info: 'Best practice client and server structures allow for more ' | |
Collapse file Copy file name to clipboardExpand all lines: templates/app/server/routes.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,9 +17,9 @@ export default function(app) { | 17 | 17 | app.route('/:url(api|auth|components|app|bower_components|assets)/*') | 18 | 18 | .get(errors[404]); | 19 | 19 |
| 20 | | - // All other routes should redirect to the index.html | | 20 | + // All other routes should redirect to the app.html | 21 | 21 | app.route('/*') | 22 | 22 | .get((req, res) => { | 23 | | - res.sendFile(path.resolve(app.get('appPath') + '/index.html')); | | 23 | + res.sendFile(path.resolve(app.get('appPath') + '/app.html')); | 24 | 24 | }); | 25 | 25 | } |
Collapse file Copy file name to clipboardExpand all lines: templates/app/webpack.make.js +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -318,13 +318,13 @@ module.exports = function makeWebpackConfig(options) { | 318 | 318 | })); | 319 | 319 | } | 320 | 320 |
| 321 | | - // Skip rendering index.html in test mode | | 321 | + // Skip rendering app.html in test mode | 322 | 322 | // Reference: https://github.com/ampedandwired/html-webpack-plugin | 323 | | - // Render index.html | | 323 | + // Render app.html | 324 | 324 | if(!TEST) { | 325 | 325 | let htmlConfig = { | 326 | | - template: 'client/_index.html', | 327 | | - filename: '../client/index.html', | | 326 | + template: 'client/app.template.html', | | 327 | + filename: '../client/app.html', | 328 | 328 | alwaysWriteToDisk: true | 329 | 329 | } | 330 | 330 | config.plugins.push( | |
|