From 4b0fc1dbb3f60a485d3ba7ec27d7654a8ea0d382 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Mon, 6 Jan 2020 07:36:16 -0800 Subject: Update local user layout and styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resubmitting after reverted–original commit here https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/28790 - Add BVConfig plugin to modify boostrap component defaults - Add vuelidate - Add package and basic validations to user form - Add all user form validations - Add checks for edit user - Create VuelidateMixin for shared methods - Update Login to use Vuelidate Signed-off-by: Yoshie Muranaka Signed-off-by: Derick Montague Change-Id: Ib50ee4d1fb5f14637c9460e77f0682869a86ac8a --- src/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index b69c6591..e32a56be 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,7 @@ import { AlertPlugin, BadgePlugin, ButtonPlugin, + BVConfigPlugin, CollapsePlugin, FormPlugin, FormCheckboxPlugin, @@ -22,12 +23,20 @@ import { NavPlugin, TablePlugin } from 'bootstrap-vue'; +import Vuelidate from 'vuelidate'; Vue.filter('date', dateFilter); Vue.use(AlertPlugin); Vue.use(BadgePlugin); Vue.use(ButtonPlugin); +Vue.use(BVConfigPlugin, { + BFormText: { textVariant: 'black' }, + BTable: { + headVariant: 'light', + footVariant: 'light' + } +}); Vue.use(CollapsePlugin); Vue.use(FormPlugin); Vue.use(FormCheckboxPlugin); @@ -43,6 +52,7 @@ Vue.use(ModalPlugin); Vue.use(NavbarPlugin); Vue.use(NavPlugin); Vue.use(TablePlugin); +Vue.use(Vuelidate); new Vue({ router, -- cgit v1.2.3