Browse Source

add more visibility for invite JWT plus a check for JWT, bump version to 0.3.42

split_build_process
Trent Larson 3 weeks ago
parent
commit
67b4d0e953
  1. 10
      CHANGELOG.md
  2. 4
      package-lock.json
  3. 2
      package.json
  4. 10
      src/views/ContactImportView.vue
  5. 28
      src/views/InviteOneAcceptView.vue

10
CHANGELOG.md

@ -6,7 +6,15 @@ 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.3.41] - 2024.12.21 ## [0.3.42] - 2024.12.27
### Added
- Link from certificate page to the claim
### Changed
- Contact data sharing is now a verified JWT.
- Feed pictures are larger.
## [0.3.41] - 2024.12.21 - ff6d14138f26daea6216b051562f0a04681f69fc
### Added ### Added
- Link from certificate page to the claim - Link from certificate page to the claim

4
package-lock.json

@ -1,12 +1,12 @@
{ {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.41", "version": "0.3.42",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.41", "version": "0.3.42",
"dependencies": { "dependencies": {
"@capacitor/android": "^6.1.2", "@capacitor/android": "^6.1.2",
"@capacitor/cli": "^6.1.2", "@capacitor/cli": "^6.1.2",

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.41", "version": "0.3.42",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"serve": "vite preview", "serve": "vite preview",

10
src/views/ContactImportView.vue

@ -16,7 +16,10 @@
Contact Import Contact Import
</h1> </h1>
<span v-if="contactsImporting.length > sameCount" class="flex justify-center"> <span
v-if="contactsImporting.length > sameCount"
class="flex justify-center"
>
<input type="checkbox" v-model="makeVisible" class="mr-2" /> <input type="checkbox" v-model="makeVisible" class="mr-2" />
Make my activity visible to these contacts. Make my activity visible to these contacts.
</span> </span>
@ -31,7 +34,10 @@
</div> </div>
<!-- Results List --> <!-- Results List -->
<ul v-if="contactsImporting.length > sameCount" class="border-t border-slate-300"> <ul
v-if="contactsImporting.length > sameCount"
class="border-t border-slate-300"
>
<li v-for="(contact, index) in contactsImporting" :key="contact.did"> <li v-for="(contact, index) in contactsImporting" :key="contact.did">
<div <div
v-if=" v-if="

28
src/views/InviteOneAcceptView.vue

@ -7,12 +7,18 @@
Go back to your invite message and copy the entire text, then paste it Go back to your invite message and copy the entire text, then paste it
here. here.
</p> </p>
<input <p class="mt-2">
If the link looks correct, try Chrome. (For example, iOS Safari does not
work well with the invite link.)
</p>
<textarea
v-model="inputJwt" v-model="inputJwt"
type="text"
placeholder="Paste invitation..." placeholder="Paste invitation..."
class="mt-4 border-2 border-gray-300 p-2 rounded" class="mt-4 border-2 border-gray-300 p-2 rounded"
cols="40"
@input="() => checkInvite(inputJwt)"
/> />
<br />
<button <button
@click="() => processInvite(inputJwt, true)" @click="() => processInvite(inputJwt, true)"
class="ml-2 p-2 bg-blue-500 text-white rounded" class="ml-2 p-2 bg-blue-500 text-white rounded"
@ -134,5 +140,23 @@ export default class InviteOneAcceptView extends Vue {
} }
this.checkingInvite = false; this.checkingInvite = false;
} }
// check the invite JWT
async checkInvite(jwtInput: string) {
if (
jwtInput.endsWith("invite-one-accept") ||
jwtInput.endsWith("invite-one-accept/")
) {
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "That is only part of the invite link; it's missing data at the end. Try another way to get the full link.",
},
5000,
);
}
}
} }
</script> </script>

Loading…
Cancel
Save