mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-26 06:07:28 +02:00
11 lines
326 B
JavaScript
11 lines
326 B
JavaScript
|
export default async function createColorPicker($els) {
|
||
|
if (!$els || !$els.length) return;
|
||
|
|
||
|
await Promise.all([
|
||
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors'),
|
||
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors/jquery.minicolors.css'),
|
||
|
]);
|
||
|
|
||
|
$els.minicolors();
|
||
|
}
|