From ec79b7be1f52c15d8ca2b9d1735de56c0b202a27 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Tue, 20 Apr 2021 12:47:24 -0300 Subject: [PATCH] chore: Moves the staticPages folder to the assets folder (#14167) --- .../src/assets/staticPages/404.html | 109 ++++++++++++++++++ .../src/assets/staticPages/500.html | 108 +++++++++++++++++ superset-frontend/src/staticPages/404.html | 93 --------------- superset-frontend/src/staticPages/500.html | 92 --------------- superset-frontend/webpack.config.js | 8 +- 5 files changed, 221 insertions(+), 189 deletions(-) create mode 100644 superset-frontend/src/assets/staticPages/404.html create mode 100644 superset-frontend/src/assets/staticPages/500.html delete mode 100644 superset-frontend/src/staticPages/404.html delete mode 100644 superset-frontend/src/staticPages/500.html diff --git a/superset-frontend/src/assets/staticPages/404.html b/superset-frontend/src/assets/staticPages/404.html new file mode 100644 index 000000000..2b20e3d71 --- /dev/null +++ b/superset-frontend/src/assets/staticPages/404.html @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + 404: Not found | Superset + + + +
+
+

Page not found

+

+ Sorry, we cannot find t he page you are looking for. You may have + mistyped the address or the page may have moved. +

+ Back to home +
+ 404 +
+ + diff --git a/superset-frontend/src/assets/staticPages/500.html b/superset-frontend/src/assets/staticPages/500.html new file mode 100644 index 000000000..3808df3d5 --- /dev/null +++ b/superset-frontend/src/assets/staticPages/500.html @@ -0,0 +1,108 @@ + + + + + + + + + + + + + 500: Internal server error | S uperset + + + +
+
+

Internal server error

+

+ Sorry, something went wrong. We are fixing the mistake now. Try again + later or go back to home. +

+ Back to home +
+ 500 +
+ + diff --git a/superset-frontend/src/staticPages/404.html b/superset-frontend/src/staticPages/404.html deleted file mode 100644 index 67055efdb..000000000 --- a/superset-frontend/src/staticPages/404.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - 404: Not found | Superset - - - -
-
-

Page not found

-

Sorry, we cannot find t he page you are looking for. You may have mistyped the address or the page may have moved.

- Back to home -
- 404 -
- - diff --git a/superset-frontend/src/staticPages/500.html b/superset-frontend/src/staticPages/500.html deleted file mode 100644 index af764334f..000000000 --- a/superset-frontend/src/staticPages/500.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - 500: Internal server error | S uperset - - - -
-
-

Internal server error

-

Sorry, something went wrong. We are fixing the mistake now. Try again later or go back to home.

- Back to home -
- 500 -
- - diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index b43b5dd74..a43d90a7e 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -123,13 +123,13 @@ const plugins = [ // static pages new HtmlWebpackPlugin({ - template: './src/staticPages/404.html', + template: './src/assets/staticPages/404.html', inject: true, chunks: [], filename: '404.html', }), new HtmlWebpackPlugin({ - template: './src/staticPages/500.html', + template: './src/assets/staticPages/500.html', inject: true, chunks: [], filename: '500.html', @@ -391,7 +391,7 @@ const config = { { test: /\.png$/, issuer: { - exclude: /\/src\/staticPages\//, + exclude: /\/src\/assets\/staticPages\//, }, loader: 'url-loader', options: { @@ -402,7 +402,7 @@ const config = { { test: /\.png$/, issuer: { - test: /\/src\/staticPages\//, + test: /\/src\/assets\/staticPages\//, }, loader: 'url-loader', options: {