Browse Source

fix the photo share_target, and tweak other verbiage

kb/add-usage-guide
Trent Larson 4 months ago
parent
commit
11b662e326
  1. 7
      src/views/ContactAmountsView.vue
  2. 2
      src/views/DiscoverView.vue
  3. 6
      sw_scripts/additional-scripts.js
  4. 2
      vite.config.mjs

7
src/views/ContactAmountsView.vue

@ -57,7 +57,7 @@
<td class="p-1">
<span v-if="record.agentDid == contact.did">
<div class="font-bold">
{{ record.amount }} {{ record.unit }}
{{ displayAmount(record.unit, record.amount) }}
<span v-if="record.amountConfirmed" title="Confirmed">
<fa icon="circle-check" class="text-green-600 fa-fw" />
</span>
@ -81,7 +81,7 @@
<td class="p-1">
<span v-if="record.agentDid != contact.did">
<div class="font-bold">
{{ record.amount }} {{ record.unit }}
{{ displayAmount(record.unit, record.amount) }}
<span v-if="record.amountConfirmed" title="Confirmed">
<fa icon="circle-check" class="text-green-600 fa-fw" />
</span>
@ -119,6 +119,7 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { accessToken, SimpleSigner } from "@/libs/crypto";
import {
AgreeVerifiableCredential,
displayAmount,
GiveSummaryRecord,
GiveVerifiableCredential,
SCHEMA_ORG_CONTEXT,
@ -134,6 +135,8 @@ export default class ContactAmountssView extends Vue {
giveRecords: Array<GiveSummaryRecord> = [];
numAccounts = 0;
displayAmount = displayAmount;
async beforeCreate() {
await accountsDB.open();
this.numAccounts = await accountsDB.accounts.count();

2
src/views/DiscoverView.vue

@ -6,7 +6,7 @@
<section id="Content" class="p-6 pb-24 max-w-3xl mx-auto">
<!-- Heading -->
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">
Discover
Discover Projects
</h1>
<!-- Quick Search -->

6
sw_scripts/additional-scripts.js

@ -137,12 +137,10 @@ self.addEventListener("fetch", (event) => {
// Bypass any regular requests not related to Web Share Target
// and also requests that are not exactly to the timesafari.app
// (because Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
// (note that Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
if (
event.request.method !== "POST" ||
(event.request.url.hostname !== "timesafari.app" &&
event.request.url.hostname !== "test.timesafari.app" &&
event.request.url.hostname !== "localhost")
!event.request.url.endsWith("/share-target")
) {
event.respondWith(fetch(event.request));
return;

2
vite.config.mjs

@ -33,7 +33,7 @@ export default defineConfig({
files: [
{
name: 'photo',
accept: ['image/jpg', 'image/jpeg', 'image/png'],
accept: ['image/*'],
},
],
},

Loading…
Cancel
Save