Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Destiner committed Sep 23, 2024
1 parent f1d8714 commit dd0ed36
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
3 changes: 3 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
<a
href="https://github.com/scope-sh/contract-scan"
target="_blank"
rel="noopener noreferrer"
>
<IconGitHub class="icon" />
</a>
</header>
<!-- eslint-disable-next-line vue/no-undef-components -->
<NuxtPage />
<footer />
</div>
Expand All @@ -20,6 +22,7 @@ import '@fontsource-variable/inconsolata';
import IconGitHub from '@/components/__common/icon/GitHub.vue';
</script>

<!-- eslint-disable-next-line vue/enforce-style-attribute -->
<style>
:root {
--color-text-primary: #ededed;
Expand Down
3 changes: 2 additions & 1 deletion app/components/bundle/AddressItem.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<template>
<div class="item-details">
<router-link :to> {{ label }} </router-link>
<RouterLink :to> {{ label }} </RouterLink>
</div>
</template>

<script setup lang="ts">
import type { Address } from 'viem';
import { computed } from 'vue';
import { RouterLink } from 'vue-router';
import labels from '@/data/labels.json';
Expand Down
10 changes: 5 additions & 5 deletions app/components/contract/BlockInfo.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="block">
<BlockStatus :status="'success'">exact bytecode match</BlockStatus>
<BlockStatus :status="'warning'">different bytecode</BlockStatus>
<BlockStatus :status="'error'">failed to get code</BlockStatus>
<BlockStatus :status="'empty'">not deployed (no code)</BlockStatus>
<BlockStatus :status="'progress'">querying</BlockStatus>
<BlockStatus status="success">exact bytecode match</BlockStatus>
<BlockStatus status="warning">different bytecode</BlockStatus>
<BlockStatus status="error">failed to get code</BlockStatus>
<BlockStatus status="empty">not deployed (no code)</BlockStatus>
<BlockStatus status="progress">querying</BlockStatus>
</div>
</template>

Expand Down
5 changes: 3 additions & 2 deletions app/components/home/CardContract.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<router-link :to>
<RouterLink :to>
<div class="card">
<div class="title">{{ title }}</div>
<div class="details">
Expand All @@ -11,11 +11,12 @@
</div>
</div>
</div>
</router-link>
</RouterLink>
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { RouterLink } from 'vue-router';
const { address } = defineProps<Contract>();
Expand Down
6 changes: 3 additions & 3 deletions app/pages/bundle/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="page">
<div class="content">
<div class="header">
<router-link to="/">
<RouterLink to="/">
<div class="link">← Go Back</div>
</router-link>
</RouterLink>
<div class="header-details">
<div class="subtitle">Bundle</div>
<div class="title">
Expand All @@ -22,7 +22,7 @@
<script setup lang="ts">
import type { Address } from 'viem';
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import { RouterLink, useRoute } from 'vue-router';
import AddressList from '@/components/bundle/AddressList.vue';
Expand Down
6 changes: 3 additions & 3 deletions app/pages/contract/[address].vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="page">
<div class="content">
<div class="header">
<router-link to="/">
<RouterLink to="/">
<div class="link">← Go Back</div>
</router-link>
</RouterLink>
<div class="header-details">
<div class="subtitle">{{ label }}</div>
<div class="title">
Expand All @@ -28,7 +28,7 @@
import { useHead } from '@unhead/vue';
import { keccak256, type Address, type Hex } from 'viem';
import { computed, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import { RouterLink, useRoute } from 'vue-router';
import BlockInfo from '@/components/contract/BlockInfo.vue';
import type { Status } from '@/components/contract/BlockStatus.vue';
Expand Down

0 comments on commit dd0ed36

Please sign in to comment.