mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
chore (frontend): move url in frontend
This commit is contained in:
6
public/assets/lib/random.js
Normal file
6
public/assets/lib/random.js
Normal file
@ -0,0 +1,6 @@
|
||||
export function gid(prefix = "") {
|
||||
let id = prefix;
|
||||
id += new Date().getTime().toString(32);
|
||||
id += Math.random().toString(32).replace(/^0\./, "");
|
||||
return id;
|
||||
}
|
||||
Reference in New Issue
Block a user