feat(server) Tagging system (#1046)

This commit is contained in:
Alex 2022-12-05 11:56:44 -06:00 committed by GitHub
parent 6e2763b72c
commit 5de8ea162d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 8768 additions and 167 deletions

View file

@ -183,7 +183,7 @@
};
const toggleFavorite = async () => {
const { data } = await api.assetApi.updateAssetById(asset.id, {
const { data } = await api.assetApi.updateAsset(asset.id, {
isFavorite: !asset.isFavorite
});

View file

@ -62,7 +62,9 @@
style={`width: ${getStorageUsagePercentage()}%`}
/>
</div>
<p class="text-xs">{asByteUnitString(serverInfo?.diskUseRaw)} of {asByteUnitString(serverInfo?.diskSizeRaw)} used</p>
<p class="text-xs">
{asByteUnitString(serverInfo?.diskUseRaw)} of {asByteUnitString(serverInfo?.diskSizeRaw)} used
</p>
{:else}
<div class="mt-2">
<LoadingSpinner />

View file

@ -115,9 +115,7 @@
<input
disabled
class="bg-gray-100 border w-full p-1 rounded-md text-[10px] px-2"
value={`[${getBytesWithUnit(uploadAsset.file.size)}] ${
uploadAsset.file.name
}`}
value={`[${getBytesWithUnit(uploadAsset.file.size)}] ${uploadAsset.file.name}`}
/>
<div class="w-full bg-gray-300 h-[15px] rounded-md mt-[5px] text-white relative">