forked from trent_larson/crowd-funder-for-time-pwa
chore: clean up console logs
This commit is contained in:
@@ -693,7 +693,11 @@ export class WebPlatformService implements PlatformService {
|
||||
const setClause = keys.map((key) => `${key} = ?`).join(", ");
|
||||
const sql = `UPDATE settings SET ${setClause} WHERE accountDid = ?`;
|
||||
const params = [...keys.map((key) => settings[key]), did];
|
||||
console.log("[WebPlatformService] updateDidSpecificSettings", sql, JSON.stringify(params, null, 2));
|
||||
console.log(
|
||||
"[WebPlatformService] updateDidSpecificSettings",
|
||||
sql,
|
||||
JSON.stringify(params, null, 2),
|
||||
);
|
||||
await this.dbExec(sql, params);
|
||||
}
|
||||
|
||||
|
||||
@@ -707,7 +707,10 @@ export const PlatformServiceMixin = {
|
||||
// Merge with any provided defaults (these take highest precedence)
|
||||
const finalSettings = { ...mergedSettings, ...defaults };
|
||||
|
||||
console.log("[PlatformServiceMixin] $accountSettings", JSON.stringify(finalSettings, null, 2));
|
||||
console.log(
|
||||
"[PlatformServiceMixin] $accountSettings",
|
||||
JSON.stringify(finalSettings, null, 2),
|
||||
);
|
||||
return finalSettings;
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
|
||||
@@ -143,9 +143,7 @@
|
||||
</section>
|
||||
<PushNotificationPermission ref="pushNotificationPermission" />
|
||||
|
||||
<LocationSearchSection
|
||||
:search-box="searchBox"
|
||||
/>
|
||||
<LocationSearchSection :search-box="searchBox" />
|
||||
|
||||
<!-- User Profile -->
|
||||
<section
|
||||
@@ -1369,7 +1367,6 @@ export default class AccountViewView extends Vue {
|
||||
`Import progress: ${progress.completedRows} of ${progress.totalRows} rows completed.`,
|
||||
);
|
||||
if (progress.done) {
|
||||
// console.log(`Imported ${progress.completedTables} tables.`);
|
||||
this.notify.success(
|
||||
ACCOUNT_VIEW_CONSTANTS.SUCCESS.IMPORT_COMPLETE,
|
||||
TIMEOUTS.LONG,
|
||||
@@ -1466,7 +1463,6 @@ export default class AccountViewView extends Vue {
|
||||
profileImageUrl: imgUrl,
|
||||
});
|
||||
this.profileImageUrl = imgUrl;
|
||||
//console.log("Got image URL:", imgUrl);
|
||||
},
|
||||
IMAGE_TYPE_PROFILE,
|
||||
true,
|
||||
|
||||
@@ -828,19 +828,16 @@ export default class ContactsView extends Vue {
|
||||
* Handle registration prompt for new contacts
|
||||
*/
|
||||
private async handleRegistrationPrompt(newContact: Contact): Promise<void> {
|
||||
console.log("[ContactsView] handleRegistrationPrompt", this.isRegistered, this.hideRegisterPromptOnNewContact, newContact.registered);
|
||||
if (
|
||||
this.isRegistered === false || // the current Identity is not registered OR
|
||||
this.hideRegisterPromptOnNewContact === true || // the user has hidden the registrationprompt OR
|
||||
newContact.registered === true // the new contact is already registered
|
||||
) {
|
||||
// if any of the above are true, we do not want to show the registration prompt
|
||||
console.log("[ContactsView] handleRegistrationPrompt we do not want to show the registration prompt");
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
console.log("[ContactsView] handleRegistrationPrompt setTimeout");
|
||||
this.$notify(
|
||||
{
|
||||
group: "modal",
|
||||
@@ -848,22 +845,18 @@ export default class ContactsView extends Vue {
|
||||
title: "Register",
|
||||
text: "Do you want to register them?",
|
||||
onCancel: async (stopAsking?: boolean) => {
|
||||
console.log("[ContactsView] handleRegistrationPrompt onCancel", stopAsking);
|
||||
await this.handleRegistrationPromptResponse(stopAsking);
|
||||
},
|
||||
onNo: async (stopAsking?: boolean) => {
|
||||
console.log("[ContactsView] handleRegistrationPrompt onNo", stopAsking);
|
||||
await this.handleRegistrationPromptResponse(stopAsking);
|
||||
},
|
||||
onYes: async () => {
|
||||
console.log("[ContactsView] handleRegistrationPrompt onYes");
|
||||
await this.register(newContact);
|
||||
},
|
||||
promptToStopAsking: true,
|
||||
},
|
||||
-1,
|
||||
);
|
||||
console.log("[ContactsView] handleRegistrationPrompt setTimeout done");
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
@@ -1254,17 +1247,14 @@ export default class ContactsView extends Vue {
|
||||
*/
|
||||
|
||||
public handleQRCodeClick() {
|
||||
console.log("[ContactsView] handleQRCodeClick method called");
|
||||
this.$logAndConsole(
|
||||
"[ContactsView] handleQRCodeClick method called",
|
||||
false,
|
||||
);
|
||||
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
console.log("[ContactsView] Navigating to contact-qr-scan-full");
|
||||
this.$router.push({ name: "contact-qr-scan-full" });
|
||||
} else {
|
||||
console.log("[ContactsView] Navigating to contact-qr");
|
||||
this.$router.push({ name: "contact-qr" });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -758,7 +758,6 @@ export default class DIDView extends Vue {
|
||||
if (resp.status === 200) {
|
||||
const visibility = resp.data;
|
||||
contact.seesMe = visibility;
|
||||
//console.log("Visi check:", visibility, contact.seesMe, contact.did);
|
||||
await this.$updateContact(contact.did, { seesMe: visibility });
|
||||
|
||||
const message =
|
||||
|
||||
@@ -490,7 +490,6 @@ export default class GiftedDetails extends Vue {
|
||||
this.showGeneralAdvanced = !!settings.showGeneralAdvanced;
|
||||
|
||||
if (this.fulfillsProjectId) {
|
||||
// console.log("Getting project name from cache", this.fulfillsProjectId);
|
||||
const fulfillsProject = await getPlanFromCache(
|
||||
this.fulfillsProjectId,
|
||||
this.axios,
|
||||
@@ -502,7 +501,6 @@ export default class GiftedDetails extends Vue {
|
||||
: "a project";
|
||||
}
|
||||
if (this.providerProjectId) {
|
||||
// console.log("Getting project name from cache", this.providerProjectId);
|
||||
const providerProject = await getPlanFromCache(
|
||||
this.providerProjectId,
|
||||
this.axios,
|
||||
|
||||
@@ -454,10 +454,6 @@ export default class HelpNotificationsView extends Vue {
|
||||
* Useful for troubleshooting push notification issues and verifying subscription status.
|
||||
*/
|
||||
alertWebPushSubscription() {
|
||||
// console.log(
|
||||
// "Web push subscription:",
|
||||
// JSON.parse(JSON.stringify(this.subscriptionJSON)), // gives more info than plain console logging
|
||||
// );
|
||||
alert(JSON.stringify(this.subscriptionJSON));
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,11 @@ Raymer * @version 1.0.0 */
|
||||
<TopMessage />
|
||||
|
||||
<!-- CONTENT -->
|
||||
<section id="Content" class="p-6 pb-24 max-w-3xl mx-auto" :data-active-did="activeDid">
|
||||
<section
|
||||
id="Content"
|
||||
class="p-6 pb-24 max-w-3xl mx-auto"
|
||||
:data-active-did="activeDid"
|
||||
>
|
||||
<h1 id="ViewHeading" class="text-4xl text-center font-light mb-8">
|
||||
{{ AppString.APP_NAME }}
|
||||
<span class="text-xs text-gray-500">{{ package.version }}</span>
|
||||
|
||||
@@ -189,7 +189,6 @@ export default class ImportAccountView extends Vue {
|
||||
* Uses importFromMnemonic utility for secure import
|
||||
*/
|
||||
public async onImportClick() {
|
||||
console.log("[ImportAccountView] onImportClick", this.mnemonic);
|
||||
if (!this.mnemonic?.trim()) {
|
||||
this.notify.warning(
|
||||
"Seed phrase is required to import an account.",
|
||||
@@ -207,7 +206,6 @@ export default class ImportAccountView extends Vue {
|
||||
|
||||
// Check what was actually imported
|
||||
const settings = await this.$accountSettings();
|
||||
console.log("[ImportAccountView] settings", JSON.stringify(settings, null, 2));
|
||||
|
||||
// Check account-specific settings
|
||||
if (settings?.activeDid) {
|
||||
|
||||
@@ -82,10 +82,8 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
// @ts-expect-error - Debug property for testing contact sharing functionality
|
||||
window.__SHARE_CONTACT_DEBUG__ = { settings, activeDid };
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("[ShareMyContactInfoView] mounted", { settings, activeDid });
|
||||
if (!activeDid) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("[ShareMyContactInfoView] No activeDid, redirecting to root");
|
||||
this.$router.push({ name: "home" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user