mirror of
https://github.com/go-gitea/gitea
synced 2024-09-26 14:24:06 +00:00
fa100618c4
Tested all functionality. There is a [pre-existing bug](https://github.com/go-gitea/gitea/issues/29853) when moving a project panels which is not caused by this refactoring. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 lines
341 B
JavaScript
13 lines
341 B
JavaScript
import $ from 'jquery';
|
|
|
|
export async function createColorPicker(els) {
|
|
if (!els.length) return;
|
|
|
|
await Promise.all([
|
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors'),
|
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors/jquery.minicolors.css'),
|
|
]);
|
|
|
|
return $(els).minicolors();
|
|
}
|