rm menu from game

This commit is contained in:
2026-09-13 13:19:48 +07:00
parent 71ee31f7b4
commit d37ca05ad8
56 changed files with 59 additions and 65 deletions
+1
View File
@@ -0,0 +1 @@
import{a as e}from"./_plugin-vue_export-helper-DY1-9eha.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};