From d1ce8e07397478741b38b99f09b5cdb92eb22315 Mon Sep 17 00:00:00 2001 From: Franco Laiuppa Date: Wed, 28 Nov 2018 16:53:25 +0100 Subject: [PATCH] Mini typo fixes Hi! Great project! I was reading the docs and noticed some typos regarding the layout names and the `exclude` parameter, so I've decided to fix it. I'm new to this repo so I hope this is a valid edit if not please let me know and I'll change it. Thanks! --- docs/configuration.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index c95e231..54acff7 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -12,7 +12,7 @@ You can do some custom configuration in `/src/utils/config.js`: - Type: `String` - Configure the copyright notice to apply to the login page, at the bottom of the `Primay` layout. + Configure the copyright notice to apply to the login page, at the bottom of the `Primary` layout. ## logoPath @@ -44,20 +44,20 @@ You can do some custom configuration in `/src/utils/config.js`: { name: 'primary', include: [/.*/], - exlude: [/(\/(en|zh))*\/login/], + exclude: [/(\/(en|zh))*\/login/], }, ], ``` The object properties for each layout are as follows: - - `name` - The name of the layout; + - `name` - The name of the layout; - `include` - Specifies a list of routing rules that use this layout, which can be a regular expression or a string; - - `exlude` - Specifies a list of routing rules that do not use this layout, which can be a regular expression or a string. + - `exclude` - Specifies a list of routing rules that do not use this layout, which can be a regular expression or a string. - > Note: `exlude` takes precedence over `include`, and the layout previous it has a higher priority than the behind layout. The development process may need to be combined with the layout in the `src/layouts` directory. For details, see [Using Layout](./layout.md). + > Note: `exclude` takes precedence over `include`, and the layout previous it has a higher priority than the behind layout. The development process may need to be combined with the layout in the `src/layouts` directory. For details, see [Using Layout](./layout.md). ## i18n @@ -91,9 +91,9 @@ You can do some custom configuration in `/src/utils/config.js`: - `key` - The `key` of the language is applied to the page url to distinguish the language, and also corresponds to the language package folder name in the `src/locales` directory; - - `title` - The name of the language, at the bottom of the login page, at the top of the `Primay` layout, the language switch is displayed; + - `title` - The name of the language, at the bottom of the login page, at the top of the `Primary` layout, the language switch is displayed; - - `flag` - The path of the flag icon of the language, the language switching display at the top of the `Primay` layout. + - `flag` - The path of the flag icon of the language, the language switching display at the top of the `Primary` layout. ### i18n.defaultLanguage