This repository has been archived on 2025-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
moodle-local_treestudyplan/amd/src/bootstrap-vue/readme-moodle.txt

34 lines
1.2 KiB
Text
Raw Normal View History

2023-08-31 07:40:55 +02:00
Instructions for downloading and integrating bootstrap-vue and associated files
Note: Using bootstrap-vue.esm.js gives unexpected problems with Form components with multi-select not showing proper values
in the list, but the text fields instead.
That's why the plain bootstrap.js file is used
1. download bootstrap-vue distribusion through npm
npm install bootstrap-vue@2.23.1
2023-08-31 07:40:55 +02:00
2. Copy node_modules/bootstrap-vue/dist/bootstrap-vue.js to amd/src/bootstrap-vue
Copy node_modules/bootstrap-vue/dist/bootstrap-vue.min.css to css/bootstrap-vue
2023-08-31 07:40:55 +02:00
3. Change require("vue"...) and define("vue"...) in the lines 10 - 16 to
require("../vue/vue"...) and define("../vue/vue"...)
4. add /* eslint-disable */ to top of bootstrap-vue.esm.js
--------- vue-functional-data-merge.js ----------
6. install node typescript compiler
sudo npm install -g typescript
5. clone https://github.com/alexsasharegan/vue-functional-data-merge into a folder
in the cloned folder call
tsc -t es6 src/index.ts
6. Copy the newley generated src/index.js to amd/src/bootstrap-vue/vue-functional-data-merge.js
7. add the following to top of vue-functional-data-merge.js
/* eslint-disable */
/*
<content of LICENSE.md from the vue-functional-data-merge git repository>
2023-08-24 23:02:41 +02:00
*/