diff --git a/app.py b/app.py index 03c9c3d..e15fadd 100644 --- a/app.py +++ b/app.py @@ -575,10 +575,23 @@ def uploadEmojiPack(): def getEmojis(): return func.listEmojis() -@api_bp.route('/get_emoji_packs/', methods=['GET']) +@api_bp.route('/hyper/get_emoji_packs/', methods=['GET']) @loginRequired def getEmojiPacks(): - return func.listEmojiPacks() + index = int(request.args.get('index', '')) + packs = func.listEmojiPacks() + pack = packs[index] + rel_path = pack['relative_path'] + emojis = pack['emojis'] + html = '' + for emoji in emojis: + html += f""" +
+ + { emoji['name'] } +
+ """ + return html # -- delete routes -- diff --git a/templates/snippets/admin/packRow.html b/templates/snippets/admin/packRow.html index ed52dba..cdfcc7f 100644 --- a/templates/snippets/admin/packRow.html +++ b/templates/snippets/admin/packRow.html @@ -1,6 +1,6 @@ - {{ pack.name }} + {{ pack.name }} {% if json_pack %} {{ pack.website }} {{ formatRelativeTime(pack.exportedAt) }} @@ -8,7 +8,12 @@ {{ pack.relative_path }}
- +
- \ No newline at end of file + + + + + +