mirror of
https://github.com/go-gitea/gitea
synced 2024-08-27 09:42:40 +02:00
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();
|
|
}
|