mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-22 04:28:06 +02:00
- Replace all default exports with named exports, except for Vue SFCs - Remove names from Vue SFCs, they are automatically inferred from the filename - Misc whitespace-related tweaks
10 lines
318 B
JavaScript
10 lines
318 B
JavaScript
export 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();
|
|
}
|