add simple admin service
Build and deploy / deploy (push) Successful in 16s

This commit is contained in:
huncode committed 2026-05-18 02:48:47 +03:00
1 parent 10a83d39a2
commit 3a3b2bcfc0
84 files changed
+2134 -5

No files matched your search

@@ -0,0 +1,5 @@
export function mergeAssetPaths(currentAssets, uploadedAssets) {
return [...new Set([...uploadedAssets.map((asset) => asset.path), ...currentAssets])].sort((left, right) =>
left.localeCompare(right, 'ru'),
);
}
@@ -0,0 +1,9 @@
export function renderAssetOptions(assetOptions, assets) {
assetOptions.replaceChildren(
...assets.map((asset) => {
const option = document.createElement('option');
option.value = asset;
return option;
}),
);
}