From 029168bcdec4a62f7dfec795c6ed2071dfa10d4e Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Fri, 12 Apr 2024 14:47:35 +0300 Subject: [PATCH] Add file base64 encode/decode tool --- src/assets/app.scss | 7 ++ src/components/MonacoEditor.vue | 1 - src/components/Sidebar.vue | 1 + src/router/index.js | 5 ++ src/views/FileBase64EncodeDecode.vue | 101 +++++++++++++++++++++++++++ src/views/HumansTxt.vue | 7 -- 6 files changed, 114 insertions(+), 8 deletions(-) create mode 100644 src/views/FileBase64EncodeDecode.vue diff --git a/src/assets/app.scss b/src/assets/app.scss index 9a59d33..fa157b5 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -18,6 +18,13 @@ input:disabled, textarea:disabled { opacity: 1; } +button { + display: inline-block; + padding: 0 5px; + margin: 0 2px; + @apply text-gray-900 bg-white border border-gray-300 focus:outline-none hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 text-sm dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700; +} + /** * Tools */ diff --git a/src/components/MonacoEditor.vue b/src/components/MonacoEditor.vue index 022826f..e878829 100644 --- a/src/components/MonacoEditor.vue +++ b/src/components/MonacoEditor.vue @@ -28,7 +28,6 @@ export default { }, }, mounted() { - console.log(monacoResultInst); loader.init().then((monaco) => { monacoResultInst = monaco; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 05ed10c..4f75812 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -31,6 +31,7 @@ export default { 'table_to_mediawiki_table': 'Table to Mediawiki table', 'dummy_image': 'Dummy image', 'humans_txt': 'humans.txt generator', + 'file_base64_encode_decode': 'File base64 encode/decode', }, 'Strings': { 'fix_ru_en_keyboard': 'Fix ru-en keyboard', diff --git a/src/router/index.js b/src/router/index.js index cca9157..adcf065 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -80,6 +80,11 @@ const router = createRouter({ name: 'url_query_viewer', component: () => import('../views/UrlQueryViewer.vue'), }, + { + path: '/file_base64_encode_decode', + name: 'file_base64_encode_decode', + component: () => import('../views/FileBase64EncodeDecode.vue'), + }, /** * JSON manipulation diff --git a/src/views/FileBase64EncodeDecode.vue b/src/views/FileBase64EncodeDecode.vue new file mode 100644 index 0000000..f30f676 --- /dev/null +++ b/src/views/FileBase64EncodeDecode.vue @@ -0,0 +1,101 @@ + + + + + \ No newline at end of file diff --git a/src/views/HumansTxt.vue b/src/views/HumansTxt.vue index e66881a..ff7e0a2 100644 --- a/src/views/HumansTxt.vue +++ b/src/views/HumansTxt.vue @@ -351,13 +351,6 @@ export default {