This commit is contained in:
wanchun 2021-03-07 21:44:45 +08:00
commit 007647044c
15 changed files with 21 additions and 21 deletions

View File

@ -7,7 +7,7 @@
- 主题,提供 `light`、`dark` 两种主题。
- 默认实现对路由的 404、403 处理。
- 搭配 [@fesjs/plugin-access](./access.html) 插件使用,可以完成对路由的权限控制。
- 搭配 [@fesjs/plugin-loacle](./locale.html) 插件使用,提供切换语言的能力。
- 搭配 [@fesjs/plugin-locale](./locale.html) 插件使用,提供切换语言的能力。
- 支持自定义头部区域。
- 可配置页面是否需要 layout。

View File

@ -7,7 +7,7 @@
- 主题,提供 `light`、`dark` 两种主题。
- 默认实现对路由的 404、403 处理。
- 搭配 [@fesjs/plugin-access](./access.html) 插件使用,可以完成对路由的权限控制。
- 搭配 [@fesjs/plugin-loacle](./locale.html) 插件使用,提供切换语言的能力。
- 搭配 [@fesjs/plugin-locale](./locale.html) 插件使用,提供切换语言的能力。
- 支持自定义头部区域。
- 可配置页面是否需要 layout。

View File

@ -1,5 +1,5 @@
{
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"changelog": {
"repo": "WeBankFinTech/fes.js",
"cacheDir": ".changelog",

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/create-fes-app",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "create a app base on fes.js",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/compiler",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/compiler",
"main": "lib/index.js",
"files": [

View File

@ -12,8 +12,8 @@ import {
import { PluginType } from '../enums';
const RE = {
[PluginType.plugin]: /^(@fesjs\/)?plugin-/,
[PluginType.preset]: /^(@fesjs\/)?preset-/
[PluginType.plugin]: /^(@fesjs\/|@webank\/fes-|fes-)?plugin-/,
[PluginType.preset]: /^(@fesjs\/|@webank\/fes-|fes-)?preset-/
};
export function isPluginOrPreset(type, name) {

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-jest",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/plugin-jest",
"main": "lib/index.js",
"files": [
@ -31,7 +31,7 @@
},
"dependencies": {
"@babel/core": "7.11.6",
"@fesjs/compiler": "^2.0.0-rc.1",
"@fesjs/compiler": "^2.0.0-rc.2",
"@umijs/babel-preset-umi": "3.2.24",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.6.3",

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-layout",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/plugin-layout",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-locale",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/plugin-locale",
"main": "lib/index.js",
"files": [

View File

@ -48,9 +48,9 @@ export default (api) => {
...api.config.locale
};
const loacleConfigFileBasePath = getLocaleFileBasePath();
const localeConfigFileBasePath = getLocaleFileBasePath();
const locales = getLocalesJSON(loacleConfigFileBasePath);
const locales = getLocalesJSON(localeConfigFileBasePath);
api.writeTmpFile({
path: absoluteFilePath,

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-request",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/plugin-request",
"main": "lib/index.js",
"files": [

View File

@ -5,7 +5,7 @@ export default async ({
errorHandler = {},
response
}, next) => {
if (response && isObject(response.data) && response.data.code !== '0') {
if (response && isObject(response.data) && response.data.code && response.data.code !== '0') {
errorHandler[response.data.code] && errorHandler[response.data.code](response);
} else if (error) {
if (error.type) {

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-vuex",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/plugin-vuex",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "@fesjs/preset-built-in",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@ -32,7 +32,7 @@
"@babel/plugin-proposal-pipeline-operator": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@fesjs/compiler": "^2.0.0-rc.1",
"@fesjs/compiler": "^2.0.0-rc.2",
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@umijs/utils": "3.3.3",
"@vue/babel-plugin-jsx": "^1.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/fes",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true,
"scripts": {
@ -39,8 +39,8 @@
"strong"
],
"dependencies": {
"@fesjs/compiler": "^2.0.0-rc.1",
"@fesjs/preset-built-in": "^2.0.0-rc.1",
"@fesjs/compiler": "^2.0.0-rc.2",
"@fesjs/preset-built-in": "^2.0.0-rc.2",
"@fesjs/runtime": "^2.0.0-rc.1",
"@umijs/utils": "3.3.3",
"resolve-cwd": "^3.0.0"