解决前端目录调整后前端访问不了问题 (#4206)

This commit is contained in:
邪影oO 2020-11-12 09:18:45 +08:00 committed by GitHub
parent 7baa696983
commit 027538ce2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
134 changed files with 149 additions and 135 deletions

View File

@ -93,7 +93,7 @@ module.exports = {
}),
new CopyWebpackPlugin([
{
from: resolve('public'),
from: resolve('../console/src/main/resources/static/console-ui/public'),
to: './',
ignore: ['index.html'],
},

View File

@ -18,6 +18,16 @@ const path = require('path');
const webpack = require('webpack');
const base = require('./webpack.base.conf');
const [cssLoader] = base.module.rules;
cssLoader.use.push({
loader: '@alifd/next-theme-loader',
options: {
modifyVars: {
'$icon-font-path': '"/icons/icon-font"',
'$font-custom-path': '"/fonts/"'
}
}
})
module.exports = Object.assign({}, base, {
output: {
filename: './js/[name].js',

View File

@ -26,8 +26,8 @@ cssLoader.use.push({
loader: '@alifd/next-theme-loader',
options: {
modifyVars: {
'$icon-font-path': '"/nacos/icons/icon-font"',
'$font-custom-path': '"/nacos/fonts/"'
'$icon-font-path': '"/nacos/console-ui/public/icons/icon-font"',
'$font-custom-path': '"/nacos/console-ui/public/fonts/"'
}
}
})

View File

@ -104,7 +104,7 @@ request.middleWare((_config = {}) => {
* 配置 monaco
*/
window.require.config({
paths: { vs: process.env.NODE_ENV === 'production' ? 'console-fe/public/js/vs' : 'js/vs' },
paths: { vs: process.env.NODE_ENV === 'production' ? 'console-ui/public/js/vs' : 'js/vs' },
});
window.require.config({
'vs/nls': {

View File

@ -1,5 +1,5 @@
{
"name": "Nacos-console-fe-test",
"name": "Nacos-console-ui-test",
"version": "1.0.0",
"description": "",
"main": "",

View File

@ -83,7 +83,7 @@
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>static/console-fe/.vscode/**</exclude>
<exclude>static/console-ui/.vscode/**</exclude>
</excludes>
</resource>
</resources>

View File

@ -57,7 +57,7 @@ nacos.cmdb.loadDataAtStart=false
#management.security=false
#security.basic.enabled=false
#nacos.security.ignore.urls=/**
nacos.security.ignore.urls=/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/login,/v1/console/health,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**
nacos.security.ignore.urls=/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/login,/v1/console/health,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**
management.metrics.export.elastic.enabled=false
#management.metrics.export.elastic.host=http://localhost:9200

View File

@ -109,7 +109,7 @@ server.tomcat.basedir=
#spring.security.enabled=false
### The ignore urls of auth, is deprecated in 1.2.0:
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
### The auth system to use, currently only 'nacos' is supported:
nacos.core.auth.system.type=nacos

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 114 B

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Some files were not shown because too many files have changed in this diff Show More