This commit is contained in:
PMKuipers 2023-08-25 22:59:49 +02:00
parent 8ec9cdaba2
commit 047e8a5d8f
4 changed files with 1050 additions and 1125 deletions

File diff suppressed because it is too large Load Diff

1
css/devstyles.css.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/studyplan.scss"],"names":[],"mappings":"AAAA;AAEA;AAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAiDA;AAMA;AAgiBA;;AArlBA;EACI;;AAGJ;EACI;EACA;;AAIJ;AAAA;AAAA;EAEI;;AAGJ;AAAA;AAAA;EAEI;;AAGJ;AAAA;AAAA;EAEI;;AAGJ;AAAA;AAAA;EAEI;EACA;AACA;AACA;EACA;EACA;;AAGJ;AAAA;AAAA;EAEI;EACA;EACA;EACA;;AAEJ;AAAA;AAAA;EAEA;;AAIA;AAAA;AAAA;EAEA;;AAIA;AAAA;AAAA;EAEA;;AAGA;AAAA;AAAA;EAEI;;AAGJ;EACI;;AAGJ;AAAA;AAAA;EAEI;EACA;AACA;EACA;EACA;;AAGJ;EACI;;AAGJ;AAAA;AAAA;EAEI;;AAGJ;AAAA;AAAA;EAEI;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;;AAIJ;EACI;EACA;;AAGJ;AAAA;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EAEI;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAGJ;AAAA;AAAA;AAAA;AAAA;EAGI;EACA;;AAGJ;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAIJ;AAAA;AAAA;EAEI;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AAAA;EAGI;;AAEJ;AAAA;AAAA;AAAA;AAAA;EAGI;;AAGJ;AAAA;AAAA;EAEI;;AAEJ;AAAA;AAAA;EAEI;;AAGJ;AAAA;AAAA;EAEI;;AAEJ;AAAA;AAAA;EAEI;;AAGJ;EACI;;AAEJ;EACI;;AAGJ;EACI;EACA;EACA;;AAGJ;AAAA;AAAA;AAAA;AAAA;EAGI;EACA;;AAGJ;EACI;;AAGJ;EAA2C;;AAC3C;EAAgE;;AAEhE;EACI","file":"devstyles.css"}

View File

@ -618,8 +618,6 @@
width: inherit; width: inherit;
} }
.r-studyplan-tab, .r-studyplan-tab,
.t-studyplan-tab { .t-studyplan-tab {
width: auto; width: auto;

View File

@ -17,17 +17,48 @@
/** /**
* This file compiles the scss files in the scss/ folder into either the main * This file compiles the scss files in the scss/ folder into either the main
* styles.css for production upon build or css/devstyles.css for development * styles.css for production upon build or css/devstyles.css for development
*
* Most nice would be to integrate this action with grunt watch, but I am
* not familiar enough with grunt to know if I can extend moodle's grunt actions
* from a Gruntfile.js in this directory without modifying Moodle's Gruntfile.js
* *
* @package local_treestudyplan * @package local_treestudyplan
* @copyright 2023 P.M. Kuipers * @copyright 2023 P.M. Kuipers
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
const sass = require('sass');
const path = require('path');
const fs = require('fs');
var library = require('sass'); const output = 'css/devstyles.css';
library.load({
readline: require("readline"), let css = "";
chokidar: require("chokidar"), let map = "";
//joining path of directory
const directoryPath = path.join(__dirname, 'scss');
//passsing directoryPath and callback function
fs.readdir(directoryPath, function (err, files) {
//handling error
if (err) {
return console.log('Unable to scan directory: ' + err);
}
//listing all files using forEach
files.forEach(function (file) {
const result = sass.compile();
console.info(`Processing ${file}...`)
if ( result ) {
css = css + result.css;
map = map + result.sourceMap;
}
});
}); });
library.cli_pkg_main_0_(process.argv.slice(2)); console.info(`Storing ${output} and ${output}.map`);
fs.writeFile(path.join(__dirname, output),css,(err) => {
if (err) throw err;
});
fs.writeFile(path.join(__dirname,output+".map"),css,(err) => {
if (err) throw err;
});