Skip to content

Commit

Permalink
Migration to Bootstrap 5 for HumHub 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Jan 3, 2025
1 parent 26da12a commit a2c8fa8
Show file tree
Hide file tree
Showing 48 changed files with 1,130 additions and 1,057 deletions.
13 changes: 8 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ module.exports = function (grunt) {
}
}
},
less: {
sass: {
options: {
implementation: require('sass')
},
dev: {
files: {
'resources/css/humhub.mail.css': 'resources/css/humhub.mail.less'
'resources/css/humhub.mail.css': 'resources/css/humhub.mail.scss'
}
}
},
Expand All @@ -37,7 +40,7 @@ module.exports = function (grunt) {
},
watch: {
scripts: {
files: ['resources/js/*.js', 'resources/css/*.less'],
files: ['resources/js/*.js', 'resources/css/*.scss'],
tasks: ['build'],
options: {
spawn: false,
Expand All @@ -48,9 +51,9 @@ module.exports = function (grunt) {

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('build', ['concat', 'uglify', 'less', 'cssmin']);
grunt.registerTask('build', ['concat', 'uglify', 'sass', 'cssmin']);
};
6 changes: 3 additions & 3 deletions controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
namespace humhub\modules\mail\controllers;

use humhub\components\access\ControllerAccess;
use humhub\components\Controller;
use humhub\modules\mail\helpers\Url;
use humhub\modules\mail\models\forms\AddTag;
use humhub\modules\mail\models\forms\ConversationTagsForm;
use humhub\modules\mail\models\Message;
use humhub\modules\mail\models\MessageTag;
use humhub\modules\mail\widgets\ConversationTagPicker;
use humhub\modules\mail\widgets\ConversationTags;
use humhub\widgets\ModalClose;
use humhub\widgets\modal\ModalClose;
use Yii;
use yii\web\ForbiddenHttpException;
use humhub\components\Controller;
use humhub\modules\mail\models\Message;
use yii\web\NotFoundHttpException;

/**
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

3.3.0-beta.1 (unreleased)
-------------------------
- Enh: Migration to Bootstrap 5 for HumHub 1.18

3.2.3 (Unreleased)
--------------------
- Enh #411: Standardization of Modal Button Positions
Expand Down
2 changes: 1 addition & 1 deletion models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function getPinIcon($userId = null): ?Icon
if ($this->isPinned($userId)) {
return Icon::get('map-pin')
->tooltip(Yii::t('MailModule.base', 'Pinned'))
->color('var(--danger)');
->color('var(--bs-danger)');
}

return null;
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"messenger",
"communication"
],
"version": "3.2.3",
"version": "3.3.0-beta.1",
"humhub": {
"minVersion": "1.16"
},
Expand Down
Loading

0 comments on commit a2c8fa8

Please sign in to comment.