From 90e2de1c4499405d96726a1b8b353d87073c7b56 Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Tue, 22 Aug 2023 07:49:27 +0200 Subject: [PATCH] Added bootstrapvue lib include instructions --- amd/src/bootstrap-vue/readme-moodle.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 amd/src/bootstrap-vue/readme-moodle.txt diff --git a/amd/src/bootstrap-vue/readme-moodle.txt b/amd/src/bootstrap-vue/readme-moodle.txt new file mode 100644 index 0000000..56ec0a0 --- /dev/null +++ b/amd/src/bootstrap-vue/readme-moodle.txt @@ -0,0 +1,23 @@ +Instructions for recreation: + +1. download bootstrap-vue distribusion throuhg npm + npm install bootstrap-vue@2.23.1 + +2. Copy node_modules/bootstrap-vue/dist/bootstrap-vue.esm.js to amd/src/bootstrap-vue + Copy node_modules/bootstrap-vue/dist/bootstrap-vue.min.css to css/bootstrap-vue + +3. Change import statements on top of bootstrap-vue.esm to: + + /* Path modifications to handle relative loading of vue in moodle context */ + // Import Vue from dev or prod depending on the developerdebug setting. + // (Importing both dev and prod seems easier than using dynamic imports, but I could be mistaken) + import Config from "core/config"; + import VueDev from '../vue/dev/vue'; + import VueProd from '../vue/prod/vue'; + const Vue = Config.developerdebug?VueDev:VueProd; + + import { mergeData } from './vue-functional-data-merge'; + import Popper from 'core/popper'; // Popper is included in core + import { Wormhole, PortalTarget, Portal } from '../portal-vue/portal-vue.esm'; + /* End modifications */ +