From f28a3aa3e6109cf98b1a69cbec03425ebffa6454 Mon Sep 17 00:00:00 2001 From: John Bintz <27256+johnbintz@users.noreply.github.com> Date: Mon, 21 Feb 2022 19:05:28 -0500 Subject: [PATCH] Shorten urls using base64 encoding --- CHANGELOG | 6 ++++++ client/package-lock.json | 15 +++++++++++++-- client/package.json | 1 + client/src/App.vue | 24 ++++++++++++++++++++++-- 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 25e7e44..58efe47 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Upcoming + +### Added + +- UUIDs in URL are now Base64 encoded to shorten URLs. + ## 0.1.0 - 2022-02-21 ### Added diff --git a/client/package-lock.json b/client/package-lock.json index 9692ba5..6f50af1 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,14 +1,15 @@ { - "name": "client", + "name": "joplin-multi-note-viewer", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "client", + "name": "joplin-multi-note-viewer", "version": "0.0.0", "dependencies": { "@oruga-ui/oruga-next": "^0.5.3", + "js-base64": "^3.7.2", "marked": "^4.0.12", "sass": "^1.49.8", "vue": "^3.2.25", @@ -672,6 +673,11 @@ "node": ">=0.12.0" } }, + "node_modules/js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, "node_modules/magic-string": { "version": "0.25.7", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", @@ -1336,6 +1342,11 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" }, + "js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, "magic-string": { "version": "0.25.7", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", diff --git a/client/package.json b/client/package.json index 3845ae5..cfdff45 100644 --- a/client/package.json +++ b/client/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "@oruga-ui/oruga-next": "^0.5.3", + "js-base64": "^3.7.2", "marked": "^4.0.12", "sass": "^1.49.8", "vue": "^3.2.25", diff --git a/client/src/App.vue b/client/src/App.vue index b844b20..76045bd 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,6 +1,7 @@