-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from stc-community/feat-connect
Auto switch network
- Loading branch information
Showing
15 changed files
with
481 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup lang="ts"> | ||
import { useLang } from "@/hooks/useLang"; | ||
const { t } = useLang(); | ||
</script> | ||
|
||
<template> | ||
<dialog id="metamask_required" class="modal"> | ||
<form method="dialog" class="modal-box"> | ||
<h3 class="font-bold text-lg">{{ t("tips.title") }},</h3> | ||
<p class="py-4">{{ t("tips.description") }}</p> | ||
<div class="modal-action"> | ||
<!-- if there is a button in form, it will close the modal --> | ||
<a | ||
class="btn btn-outline btn-primary" | ||
href="https://metamask.io/" | ||
target="__blank" | ||
>{{ t("tips.btn1") }}</a | ||
> | ||
<button class="btn">{{ t("tips.btn2") }}</button> | ||
</div> | ||
</form> | ||
</dialog> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.