mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 13:19:58 -05:00
Adding tags filter input on tags selector, adding frequently used tags to suggest tags that are used together.
This commit is contained in:
parent
d2d09da296
commit
1913755db5
5 changed files with 236 additions and 3 deletions
|
|
@ -1498,6 +1498,26 @@ export async function getTags() {
|
|||
return response
|
||||
}
|
||||
|
||||
export async function getRecentTags() {
|
||||
const uri = `${API_URI}/tag/recent`;
|
||||
const response = await apiGet(uri);
|
||||
if (response.ok) {
|
||||
const body = await response.json();
|
||||
return body['tag_names'] || [];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
export async function getCooccurringTags(tagName) {
|
||||
const uri = `${API_URI}/tag/cooccurring/${encodeURIComponent(tagName)}`;
|
||||
const response = await apiGet(uri);
|
||||
if (response.ok) {
|
||||
const body = await response.json();
|
||||
return body['tag_names'] || [];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
export async function tagFileGroup(fileGroup, name) {
|
||||
const body = {tag_name: name};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue