Browse Source

fix the photo share_target, and tweak other verbiage

pull/117/head
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"> <td class="p-1">
<span v-if="record.agentDid == contact.did"> <span v-if="record.agentDid == contact.did">
<div class="font-bold"> <div class="font-bold">
{{ record.amount }} {{ record.unit }} {{ displayAmount(record.unit, record.amount) }}
<span v-if="record.amountConfirmed" title="Confirmed"> <span v-if="record.amountConfirmed" title="Confirmed">
<fa icon="circle-check" class="text-green-600 fa-fw" /> <fa icon="circle-check" class="text-green-600 fa-fw" />
</span> </span>
@ -81,7 +81,7 @@
<td class="p-1"> <td class="p-1">
<span v-if="record.agentDid != contact.did"> <span v-if="record.agentDid != contact.did">
<div class="font-bold"> <div class="font-bold">
{{ record.amount }} {{ record.unit }} {{ displayAmount(record.unit, record.amount) }}
<span v-if="record.amountConfirmed" title="Confirmed"> <span v-if="record.amountConfirmed" title="Confirmed">
<fa icon="circle-check" class="text-green-600 fa-fw" /> <fa icon="circle-check" class="text-green-600 fa-fw" />
</span> </span>
@ -119,6 +119,7 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { accessToken, SimpleSigner } from "@/libs/crypto"; import { accessToken, SimpleSigner } from "@/libs/crypto";
import { import {
AgreeVerifiableCredential, AgreeVerifiableCredential,
displayAmount,
GiveSummaryRecord, GiveSummaryRecord,
GiveVerifiableCredential, GiveVerifiableCredential,
SCHEMA_ORG_CONTEXT, SCHEMA_ORG_CONTEXT,
@ -134,6 +135,8 @@ export default class ContactAmountssView extends Vue {
giveRecords: Array<GiveSummaryRecord> = []; giveRecords: Array<GiveSummaryRecord> = [];
numAccounts = 0; numAccounts = 0;
displayAmount = displayAmount;
async beforeCreate() { async beforeCreate() {
await accountsDB.open(); await accountsDB.open();
this.numAccounts = await accountsDB.accounts.count(); 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"> <section id="Content" class="p-6 pb-24 max-w-3xl mx-auto">
<!-- Heading --> <!-- Heading -->
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8"> <h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">
Discover Discover Projects
</h1> </h1>
<!-- Quick Search --> <!-- 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 // Bypass any regular requests not related to Web Share Target
// and also requests that are not exactly to the timesafari.app // 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 ( if (
event.request.method !== "POST" || event.request.method !== "POST" ||
(event.request.url.hostname !== "timesafari.app" && !event.request.url.endsWith("/share-target")
event.request.url.hostname !== "test.timesafari.app" &&
event.request.url.hostname !== "localhost")
) { ) {
event.respondWith(fetch(event.request)); event.respondWith(fetch(event.request));
return; return;

2
vite.config.mjs

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

Loading…
Cancel
Save