-
-
+
+
-
-
+
+
-
+
-
+
@@ -30,12 +30,12 @@
title: 'Token generator'
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus distinctio dolor dolorum eaque eligendi, facilis impedit laboriosam odit placeat.'
icon: 'mdi-key-chain-variant'
-keywords: ['token', 'random', 'string', 'alphanumeric', 'symbols']
+keywords: [ 'token', 'random', 'string', 'alphanumeric', 'symbols' ]
path: '/token-generator'
-
-
diff --git a/tools/web/file-to-base64.vue b/tools/web/file-to-base64.vue
index b8fcb03a..fc40951e 100644
--- a/tools/web/file-to-base64.vue
+++ b/tools/web/file-to-base64.vue
@@ -65,39 +65,4 @@ export default class FileToBase64 extends Tool {
}
}
}
-
-// export default {
-// name: 'FileToBase64',
-// components: {FileUploader},
-// data() {
-// return {
-// file: undefined,
-// loading: false,
-// base64: '',
-// copyBase64() {
-// copyToClipboard(this.base64)
-// this.$toast.success('Copied to clipboard.')
-// }
-// }
-// },
-// watch: {
-// file() {
-// this.loading = true
-// this.base64 = ''
-// const reader = new FileReader()
-// reader.onload = () => this.handleBase64(reader.result)
-// reader.onerror = () => this.handleBase64('[An error as occurred]')
-// reader.readAsDataURL(this.file)
-// }
-// },
-// methods: {
-// handleBase64(base64) {
-// this.base64 = base64
-// this.loading = false
-// }
-// }
-// }
-
-
diff --git a/utils/string.ts b/utils/string.ts
index 03197f01..ae315aa0 100644
--- a/utils/string.ts
+++ b/utils/string.ts
@@ -1,7 +1,5 @@
-import {random} from './random'
-
const capitalise = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)
-const shuffle = (s: string) => s.split('').sort(() => 0.5 - random()).join('')
+const shuffle = (s: string) => s.split('').sort(() => 0.5 - Math.random()).join('')
export {capitalise, shuffle}