You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-27 23:28:38 +02:00
All: Add support for application plugins (#3257)
This commit is contained in:
13
ReactNativeClient/lib/uuid.ts
Normal file
13
ReactNativeClient/lib/uuid.ts
Normal file
@ -0,0 +1,13 @@
|
||||
const createUuidV4 = require('uuid/v4');
|
||||
const { customAlphabet } = require('nanoid/non-secure');
|
||||
|
||||
const nanoid = customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 22);
|
||||
|
||||
export default {
|
||||
create: function() {
|
||||
return createUuidV4().replace(/-/g, '');
|
||||
},
|
||||
createNano: function() {
|
||||
return nanoid();
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user