forked from trent_larson/crowd-funder-for-time-pwa
disable checkboxes for nostr partner messages; adjust linting warnings
This commit is contained in:
@@ -17,15 +17,18 @@ module.exports = {
|
|||||||
"max-len": [
|
"max-len": [
|
||||||
"warn",
|
"warn",
|
||||||
{
|
{
|
||||||
code: 100,
|
code: 120,
|
||||||
ignoreComments: true,
|
ignoreComments: true, // why does this not make it allow comment of any length?
|
||||||
|
ignorePattern: '^\\s*class="[^"]*"$',
|
||||||
|
ignoreStrings: true,
|
||||||
ignoreTemplateLiterals: true,
|
ignoreTemplateLiterals: true,
|
||||||
|
ignoreTrailingComments: true,
|
||||||
ignoreUrls: true,
|
ignoreUrls: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"prettier/prettier": ["warn", { printWidth: 100 }],
|
// "prettier/prettier": ["warn", { printWidth: 120 }], // removes errors but adds thousands of warnings
|
||||||
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -76,7 +76,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else ref="cameraContainer">
|
<div v-else ref="cameraContainer">
|
||||||
<!--
|
<!--
|
||||||
Camera "resolution" doesn't change how it shows on screen but rather stretches the result, eg the following which just stretches it vertically:
|
Camera "resolution" doesn't change how it shows on screen but rather stretches the result,
|
||||||
|
eg. the following which just stretches it vertically:
|
||||||
:resolution="{ width: 375, height: 812 }"
|
:resolution="{ width: 375, height: 812 }"
|
||||||
-->
|
-->
|
||||||
<camera
|
<camera
|
||||||
|
|||||||
@@ -151,7 +151,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Registration notice -->
|
<!-- Registration notice -->
|
||||||
<!-- We won't show any loading indicator because it usually doesn't change anything. We'll just pop the message in only if we discover that they need it. -->
|
<!--
|
||||||
|
We won't show any loading indicator because it usually doesn't change anything.
|
||||||
|
We'll just pop the message in only if we discover that they need it.
|
||||||
|
-->
|
||||||
<div
|
<div
|
||||||
v-if="!loadingLimits && !endorserLimits?.nextWeekBeginDateTime"
|
v-if="!loadingLimits && !endorserLimits?.nextWeekBeginDateTime"
|
||||||
id="noticeBeforeAnnounce"
|
id="noticeBeforeAnnounce"
|
||||||
@@ -588,12 +591,13 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div id="sectionImageServerURL" class="mt-2">
|
<div id="sectionImageServerURL" class="mt-2">
|
||||||
<span class="text-slate-500 text-sm font-bold">Image Server URL</span>
|
<span class="text-slate-500 text-sm font-bold">Image Server URL</span>
|
||||||
|
|
||||||
<span class="text-sm">{{ DEFAULT_IMAGE_API_SERVER }}</span>
|
<span class="text-sm">{{ DEFAULT_IMAGE_API_SERVER }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="sectionPartnerServerURL" class="mt-2">
|
<div id="sectionPartnerServerURL" class="mt-2">
|
||||||
<span class="text-slate-500 text-sm font-bold">Partner Server URL</span>
|
<span class="text-slate-500 text-sm font-bold">Partner Server URL</span>
|
||||||
<span class="text-sm">{{ DEFAULT_PARTNER_API_SERVER }}</span>
|
<span class="text-sm">{{ DEFAULT_PARTNER_API_SERVER }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
<h1 class="font-bold text-xl">Discuss Backups</h1>
|
<h1 class="font-bold text-xl">Discuss Backups</h1>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
8) Exporting backups <fa icon="circle-user" /> are important if they lose their phone --- especially for the Identifier Seed!
|
8) Exporting backups <fa icon="circle-user" /> are important if they lose their phone
|
||||||
|
--- especially for the Identifier Seed!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- eslint-disable prettier/prettier -->
|
<!-- eslint-disable prettier/prettier max-len -->
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
This app focuses on gifts & gratitude, using them to build cool things together with your network.
|
This app focuses on gifts & gratitude, using them to build cool things together with your network.
|
||||||
|
|||||||
@@ -145,7 +145,10 @@
|
|||||||
</l-map>
|
</l-map>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="showGeneralAdvanced && includeLocation" class="items-center mb-4">
|
<div
|
||||||
|
v-if="showGeneralAdvanced && includeLocation && false"
|
||||||
|
class="items-center mb-4"
|
||||||
|
>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -206,7 +209,11 @@ import { Router } from "vue-router";
|
|||||||
|
|
||||||
import ImageMethodDialog from "@/components/ImageMethodDialog.vue";
|
import ImageMethodDialog from "@/components/ImageMethodDialog.vue";
|
||||||
import QuickNav from "@/components/QuickNav.vue";
|
import QuickNav from "@/components/QuickNav.vue";
|
||||||
import { DEFAULT_IMAGE_API_SERVER, DEFAULT_PARTNER_API_SERVER, NotificationIface } from "@/constants/app";
|
import {
|
||||||
|
DEFAULT_IMAGE_API_SERVER,
|
||||||
|
DEFAULT_PARTNER_API_SERVER,
|
||||||
|
NotificationIface,
|
||||||
|
} from "@/constants/app";
|
||||||
import { accountsDB, retrieveSettingsForActiveAccount } from "@/db/index";
|
import { accountsDB, retrieveSettingsForActiveAccount } from "@/db/index";
|
||||||
import {
|
import {
|
||||||
createEndorserJwtVcFromClaim,
|
createEndorserJwtVcFromClaim,
|
||||||
@@ -451,12 +458,16 @@ export default class NewEditProjectView extends Vue {
|
|||||||
|
|
||||||
if (this.sendToTrustroots) {
|
if (this.sendToTrustroots) {
|
||||||
this.sendToNostrPartner(
|
this.sendToNostrPartner(
|
||||||
"NOSTR-EVENT-TRUSTROOTS", "Trustroots", resp.data.success.claimId
|
"NOSTR-EVENT-TRUSTROOTS",
|
||||||
|
"Trustroots",
|
||||||
|
resp.data.success.claimId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this.sendToTripHopping) {
|
if (this.sendToTripHopping) {
|
||||||
this.sendToNostrPartner(
|
this.sendToNostrPartner(
|
||||||
"NOSTR-EVENT-TRIPHOPPING", "TripHopping", resp.data.success.claimId
|
"NOSTR-EVENT-TRIPHOPPING",
|
||||||
|
"TripHopping",
|
||||||
|
resp.data.success.claimId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -524,7 +535,11 @@ export default class NewEditProjectView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async sendToNostrPartner(linkCode: string, serviceName: string, jwtId: string) {
|
private async sendToNostrPartner(
|
||||||
|
linkCode: string,
|
||||||
|
serviceName: string,
|
||||||
|
jwtId: string,
|
||||||
|
) {
|
||||||
// first, get the public key for nostr
|
// first, get the public key for nostr
|
||||||
const account = await getAccount(this.activeDid);
|
const account = await getAccount(this.activeDid);
|
||||||
// get the last number of the derivationPath
|
// get the last number of the derivationPath
|
||||||
@@ -532,7 +547,11 @@ export default class NewEditProjectView extends Vue {
|
|||||||
// remove any trailing '
|
// remove any trailing '
|
||||||
const finalDerNumNoApostrophe = finalDerNum?.replace(/'/g, "");
|
const finalDerNumNoApostrophe = finalDerNum?.replace(/'/g, "");
|
||||||
const accountNum = Number(finalDerNumNoApostrophe || 0);
|
const accountNum = Number(finalDerNumNoApostrophe || 0);
|
||||||
const pubPri = accountFromSeedWords(account?.mnemonic as string, "", accountNum);
|
const pubPri = accountFromSeedWords(
|
||||||
|
account?.mnemonic as string,
|
||||||
|
"",
|
||||||
|
accountNum,
|
||||||
|
);
|
||||||
const nostrPubKey = pubPri?.publicKey;
|
const nostrPubKey = pubPri?.publicKey;
|
||||||
|
|
||||||
const trustrootsUrl = DEFAULT_PARTNER_API_SERVER + "/api/partner/link";
|
const trustrootsUrl = DEFAULT_PARTNER_API_SERVER + "/api/partner/link";
|
||||||
@@ -547,7 +566,11 @@ export default class NewEditProjectView extends Vue {
|
|||||||
const fullTrustrootsUrl = trustrootsUrl;
|
const fullTrustrootsUrl = trustrootsUrl;
|
||||||
const headers = await getHeaders(this.activeDid);
|
const headers = await getHeaders(this.activeDid);
|
||||||
try {
|
try {
|
||||||
const linkResp = await this.axios.post(fullTrustrootsUrl, trustrootsParams, { headers });
|
const linkResp = await this.axios.post(
|
||||||
|
fullTrustrootsUrl,
|
||||||
|
trustrootsParams,
|
||||||
|
{ headers },
|
||||||
|
);
|
||||||
if (linkResp.status === 201) {
|
if (linkResp.status === 201) {
|
||||||
this.$notify(
|
this.$notify(
|
||||||
{
|
{
|
||||||
@@ -586,7 +609,6 @@ export default class NewEditProjectView extends Vue {
|
|||||||
5000,
|
5000,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async onSaveProjectClick() {
|
public async onSaveProjectClick() {
|
||||||
|
|||||||
@@ -220,7 +220,10 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Ideally, this button should only be visible when the active account has more than 7 or 11 contacts in their list (we want to limit the grid count above to 8 or 12 accounts to keep it compact) -->
|
<!--
|
||||||
|
Ideally, this button should only be visible when the active account has more than 7 or 11 contacts in their list
|
||||||
|
(we want to limit the grid count above to 8 or 12 accounts to keep it compact)
|
||||||
|
-->
|
||||||
<a
|
<a
|
||||||
v-if="allContacts.length >= 7"
|
v-if="allContacts.length >= 7"
|
||||||
@click="onClickAllContactsGifting()"
|
@click="onClickAllContactsGifting()"
|
||||||
|
|||||||
@@ -150,7 +150,10 @@
|
|||||||
<span
|
<span
|
||||||
v-if="offer.amountGivenConfirmed >= offer.amountGiven"
|
v-if="offer.amountGivenConfirmed >= offer.amountGiven"
|
||||||
>
|
>
|
||||||
<!-- no need for green icon; unnecessary if there's already a green, confusing if there's a yellow -->
|
<!--
|
||||||
|
There's no need for a green icon:
|
||||||
|
it's unnecessary if there's already a green, and confusing if there's a yellow.
|
||||||
|
-->
|
||||||
all
|
all
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
|
|||||||
@@ -25,12 +25,13 @@
|
|||||||
Here is a view of the activity you can see.
|
Here is a view of the activity you can see.
|
||||||
<ul class="list-disc outside ml-4">
|
<ul class="list-disc outside ml-4">
|
||||||
<li>Each identity and claim has a unique position.</li>
|
<li>Each identity and claim has a unique position.</li>
|
||||||
<!-- eslint-disable prettier/prettier --><!-- If we format prettier then there is extra space at the start of the line. -->
|
<li>
|
||||||
<li>Each will show at their time of appearance relative to all others.</li>
|
Each will show at their time of appearance relative to all others.
|
||||||
<li>Note that the ones on the left and right edges are randomized
|
</li>
|
||||||
because their data isn't all visible to you.
|
<li>
|
||||||
|
Note that the ones on the left and right edges are randomized because
|
||||||
|
their data isn't all visible to you.
|
||||||
</li>
|
</li>
|
||||||
<!-- eslint-enable -->
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -46,7 +47,9 @@
|
|||||||
{{ worldProperties.animationDurationSeconds }} seconds
|
{{ worldProperties.animationDurationSeconds }} seconds
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="float-right text-blue-600" @click="captureGraphics()">Screenshot</button>
|
<button class="float-right text-blue-600" @click="captureGraphics()">
|
||||||
|
Screenshot
|
||||||
|
</button>
|
||||||
<div id="scene-container" class="h-screen"></div>
|
<div id="scene-container" class="h-screen"></div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user