refactor: standardize quote styles to single quotes across all files
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, watch } from "vue";
|
||||
import { useUser } from "@/composables/useUser";
|
||||
import { useGraphQL } from "@/composables/useGraphQL";
|
||||
import FormCard from "@/components/ui/FormCard.vue";
|
||||
import LoadingComponent from "@/components/ui/LoadingComponent.vue";
|
||||
import AnalyticsCard from "@/components/Explorer/AnalyticsCard.vue";
|
||||
import TransactionTable from "@/components/Explorer/TransactionTable.vue";
|
||||
import { onMounted, watch } from 'vue';
|
||||
import { useUser } from '@/composables/useUser';
|
||||
import { useGraphQL } from '@/composables/useGraphQL';
|
||||
import FormCard from '@/components/ui/FormCard.vue';
|
||||
import LoadingComponent from '@/components/ui/LoadingComponent.vue';
|
||||
import AnalyticsCard from '@/components/Explorer/AnalyticsCard.vue';
|
||||
import TransactionTable from '@/components/Explorer/TransactionTable.vue';
|
||||
|
||||
const user = useUser();
|
||||
const { network } = user;
|
||||
@@ -25,11 +25,11 @@ const {
|
||||
} = useGraphQL(network);
|
||||
|
||||
const transactionTypes = [
|
||||
{ key: "all", label: "Todas" },
|
||||
{ key: "deposit", label: "Depósitos" },
|
||||
{ key: "lock", label: "Bloqueios" },
|
||||
{ key: "release", label: "Liberações" },
|
||||
{ key: "return", label: "Retornos" },
|
||||
{ key: 'all', label: 'Todas' },
|
||||
{ key: 'deposit', label: 'Depósitos' },
|
||||
{ key: 'lock', label: 'Bloqueios' },
|
||||
{ key: 'release', label: 'Liberações' },
|
||||
{ key: 'return', label: 'Retornos' },
|
||||
];
|
||||
|
||||
const handleTypeFilter = (type: string) => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { Faq } from "@/model/Faq";
|
||||
import { ref } from "vue";
|
||||
import { marked } from "marked";
|
||||
import faqContent from "@/utils/files/faqContent.json";
|
||||
import type { Faq } from '@/model/Faq';
|
||||
import { ref } from 'vue';
|
||||
import { marked } from 'marked';
|
||||
import faqContent from '@/utils/files/faqContent.json';
|
||||
|
||||
const faq = ref<Faq>(faqContent);
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import SearchComponent from "@/components/BuyerSteps/BuyerSearchComponent.vue";
|
||||
import LoadingComponent from "@/components/ui/LoadingComponent.vue";
|
||||
import BuyConfirmedComponent from "@/components/BuyerSteps/BuyConfirmedComponent.vue";
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useUser } from "@/composables/useUser";
|
||||
import QrCodeComponent from "@/components/BuyerSteps/QrCodeComponent.vue";
|
||||
import { addLock, releaseLock } from "@/blockchain/buyerMethods";
|
||||
import { updateWalletStatus, checkUnreleasedLock } from "@/blockchain/wallet";
|
||||
import { getNetworksLiquidity } from "@/blockchain/events";
|
||||
import type { ValidDeposit } from "@/model/ValidDeposit";
|
||||
import { getUnreleasedLockById } from "@/blockchain/events";
|
||||
import CustomAlert from "@/components/ui/CustomAlert.vue";
|
||||
import { getSolicitation } from "@/utils/bbPay";
|
||||
import type { Address } from "viem";
|
||||
import SearchComponent from '@/components/BuyerSteps/BuyerSearchComponent.vue';
|
||||
import LoadingComponent from '@/components/ui/LoadingComponent.vue';
|
||||
import BuyConfirmedComponent from '@/components/BuyerSteps/BuyConfirmedComponent.vue';
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import { useUser } from '@/composables/useUser';
|
||||
import QrCodeComponent from '@/components/BuyerSteps/QrCodeComponent.vue';
|
||||
import { addLock, releaseLock } from '@/blockchain/buyerMethods';
|
||||
import { updateWalletStatus, checkUnreleasedLock } from '@/blockchain/wallet';
|
||||
import { getNetworksLiquidity } from '@/blockchain/events';
|
||||
import type { ValidDeposit } from '@/model/ValidDeposit';
|
||||
import { getUnreleasedLockById } from '@/blockchain/events';
|
||||
import CustomAlert from '@/components/ui/CustomAlert.vue';
|
||||
import { getSolicitation } from '@/utils/bbPay';
|
||||
import type { Address } from 'viem';
|
||||
|
||||
enum Step {
|
||||
Search,
|
||||
@@ -29,7 +29,7 @@ const flowStep = ref<Step>(Step.Search);
|
||||
const participantID = ref<string>();
|
||||
const sellerAddress = ref<Address>();
|
||||
const tokenAmount = ref<number>();
|
||||
const lockID = ref<string>("");
|
||||
const lockID = ref<string>('');
|
||||
const loadingRelease = ref<boolean>(false);
|
||||
const showModal = ref<boolean>(false);
|
||||
const showBuyAlert = ref<boolean>(false);
|
||||
@@ -78,7 +78,7 @@ const releaseTransaction = async (params: {
|
||||
};
|
||||
|
||||
const checkForUnreleasedLocks = async (): Promise<void> => {
|
||||
if (!walletAddress.value) throw new Error("Wallet not connected");
|
||||
if (!walletAddress.value) throw new Error('Wallet not connected');
|
||||
const lock = await checkUnreleasedLock(walletAddress.value);
|
||||
if (lock) {
|
||||
lockID.value = String(lock.lockID);
|
||||
@@ -114,7 +114,7 @@ if (paramLockID) {
|
||||
onMounted(async () => {
|
||||
await getNetworksLiquidity();
|
||||
if (walletAddress.value && !paramLockID) await checkForUnreleasedLocks();
|
||||
window.history.state.lockID = "";
|
||||
window.history.state.lockID = '';
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useUser } from "@/composables/useUser";
|
||||
import ListingComponent from "@/components/ListingComponent/ListingComponent.vue";
|
||||
import LoadingComponent from "@/components/ui/LoadingComponent.vue";
|
||||
import CustomAlert from "@/components/ui/CustomAlert.vue";
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import { useUser } from '@/composables/useUser';
|
||||
import ListingComponent from '@/components/ListingComponent/ListingComponent.vue';
|
||||
import LoadingComponent from '@/components/ui/LoadingComponent.vue';
|
||||
import CustomAlert from '@/components/ui/CustomAlert.vue';
|
||||
import {
|
||||
listValidDepositTransactionsByWalletAddress,
|
||||
listAllTransactionByWalletAddress,
|
||||
getActiveLockAmount,
|
||||
} from "@/blockchain/wallet";
|
||||
import { withdrawDeposit } from "@/blockchain/buyerMethods";
|
||||
import type { ValidDeposit } from "@/model/ValidDeposit";
|
||||
import type { WalletTransaction } from "@/model/WalletTransaction";
|
||||
} from '@/blockchain/wallet';
|
||||
import { withdrawDeposit } from '@/blockchain/buyerMethods';
|
||||
import type { ValidDeposit } from '@/model/ValidDeposit';
|
||||
import type { WalletTransaction } from '@/model/WalletTransaction';
|
||||
|
||||
import router from "@/router/index";
|
||||
import router from '@/router/index';
|
||||
|
||||
const user = useUser();
|
||||
const { walletAddress, network, selectedToken } = user;
|
||||
@@ -38,11 +38,11 @@ const callWithdraw = async (amount: string) => {
|
||||
}
|
||||
|
||||
if (withdraw) {
|
||||
console.log("Saque realizado!");
|
||||
console.log('Saque realizado!');
|
||||
await getWalletTransactions();
|
||||
showAlert.value = true;
|
||||
} else {
|
||||
console.log("Não foi possível realizar o saque!");
|
||||
console.log('Não foi possível realizar o saque!');
|
||||
}
|
||||
loadingWithdraw.value = false;
|
||||
}
|
||||
@@ -73,7 +73,7 @@ const getWalletTransactions = async () => {
|
||||
|
||||
onMounted(async () => {
|
||||
if (!walletAddress.value) {
|
||||
router.push({ name: "home" });
|
||||
router.push({ name: 'home' });
|
||||
}
|
||||
await getWalletTransactions();
|
||||
});
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { ref } from 'vue';
|
||||
|
||||
import SellerComponent from "@/components/SellerSteps/SellerComponent.vue";
|
||||
import SendNetwork from "@/components/SellerSteps/SendNetwork.vue";
|
||||
import LoadingComponent from "@/components/ui/LoadingComponent.vue";
|
||||
import { useUser } from "@/composables/useUser";
|
||||
import { approveTokens, addDeposit } from "@/blockchain/sellerMethods";
|
||||
import CustomAlert from "@/components/ui/CustomAlert.vue";
|
||||
import type { Participant } from "@/utils/bbPay";
|
||||
import SellerComponent from '@/components/SellerSteps/SellerComponent.vue';
|
||||
import SendNetwork from '@/components/SellerSteps/SendNetwork.vue';
|
||||
import LoadingComponent from '@/components/ui/LoadingComponent.vue';
|
||||
import { useUser } from '@/composables/useUser';
|
||||
import { approveTokens, addDeposit } from '@/blockchain/sellerMethods';
|
||||
import CustomAlert from '@/components/ui/CustomAlert.vue';
|
||||
import type { Participant } from '@/utils/bbPay';
|
||||
|
||||
enum Step {
|
||||
Search,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue";
|
||||
import { appVersions, getIpfsUrl, getLatestVersion } from "@/utils/versions";
|
||||
import type { AppVersion } from "@/model/AppVersion";
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { appVersions, getIpfsUrl, getLatestVersion } from '@/utils/versions';
|
||||
import type { AppVersion } from '@/model/AppVersion';
|
||||
|
||||
const versions = ref<AppVersion[]>([]);
|
||||
const latestVersion = ref<AppVersion | null>(null);
|
||||
@@ -17,15 +17,15 @@ onMounted(() => {
|
||||
|
||||
const openIpfsVersion = (ipfsHash: string) => {
|
||||
const url = getIpfsUrl(ipfsHash);
|
||||
window.open(url, "_blank", "noopener,noreferrer");
|
||||
window.open(url, '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
const formatDate = (dateString: string): string => {
|
||||
const date = new Date(dateString);
|
||||
return date.toLocaleDateString("pt-BR", {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
return date.toLocaleDateString('pt-BR', {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user