Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
56 febeメタマスク連携 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sey323 authored Oct 29, 2023
1 parent c16f8b8 commit 69b2846
Show file tree
Hide file tree
Showing 12 changed files with 5,627 additions and 118 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ FIREBASE_AUTH_DOMAIN=${firebaseの認証ドメイン}
FIREBASE_PROJECT_ID=${firebaseのプロジェクトID}
FIREBASE_MESSAGING_SENDER_ID=${firebaseのメッセージング送信者ID}
FIREBASE_APP_ID=${firebaseのアプリID}
FIREBASE_MEASUREMENT_ID=${firebaseの測定ID}
FIREBASE_MEASUREMENT_ID=${firebaseの測定ID}

// Wallet Connect
WALLET_CONNECT_PROJECT_ID=${wallet connectのプロジェクトID}
13 changes: 11 additions & 2 deletions components/MyProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const props = defineProps({
type: String as PropType<string | null>,
required: true,
},
walletAccount: {
type: Object,
required: true,
},
});
// プロフィール画像が設定されていない場合のデフォルト画像
Expand All @@ -62,7 +66,13 @@ const exchangeableToken = 100;
const missionClearCount = 25;
const missionCreateCount = 10;
const missionClearedByOtherCount = 120;
const walletAddress = "testtesttest";
const walletAddress = computed(() => {
console.log(props.walletAccount);
return (
props.walletAccount?.address ??
"接続されていません。ウォレットと接続してください"
);
});
</script>

<style lang="scss" scoped>
Expand Down Expand Up @@ -255,7 +265,6 @@ body {
float: none;
margin-left: auto;
margin-right: auto;
z-index: 100;
}
}
Expand Down
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default defineNuxtConfig({
gen: 2,
},
},
runtimeConfig: {
public: {
walletConnectProjectId: process.env.WALLET_CONNECT_PROJECT_ID || "",
},
},
vuefire: {
auth: true, // enable Firebase Authentication
config: {
Expand Down
Loading

0 comments on commit 69b2846

Please sign in to comment.