mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
refactor: improvements v2
This commit is contained in:
parent
0bafae3aee
commit
274f59ca47
8 changed files with 23 additions and 29 deletions
|
@ -1,7 +0,0 @@
|
||||||
export default defineAppConfig({
|
|
||||||
github: {
|
|
||||||
appId: 0,
|
|
||||||
privateKey: '',
|
|
||||||
installationId: 0,
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -106,7 +106,7 @@ defineExpose({
|
||||||
hover:text-app-black
|
hover:text-app-black
|
||||||
class="text-app-black/50 text-16px hidden"
|
class="text-app-black/50 text-16px hidden"
|
||||||
lg="block"
|
lg="block"
|
||||||
>Etherscan
|
>Link
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
</ProjectCreateComponentsItem>
|
</ProjectCreateComponentsItem>
|
||||||
|
|
|
@ -42,7 +42,7 @@ const model = defineModel<string>()
|
||||||
flex
|
flex
|
||||||
flex-col
|
flex-col
|
||||||
gap-8px
|
gap-8px
|
||||||
lg="flex flex-row gap-24px"
|
lg="flex flex-row gap-24px items-center"
|
||||||
relative
|
relative
|
||||||
>
|
>
|
||||||
<div v-bind="$attrs">
|
<div v-bind="$attrs">
|
||||||
|
|
|
@ -58,7 +58,7 @@ const selectedValue = useVModel(props, 'modelValue', emits)
|
||||||
</span>
|
</span>
|
||||||
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
||||||
<UnoIcon
|
<UnoIcon
|
||||||
i-heroicons-solid-chevron-down
|
i-ic-baseline-arrow-drop-down
|
||||||
class="text-app-white"
|
class="text-app-white"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -131,7 +131,7 @@ function addOption() {
|
||||||
</div>
|
</div>
|
||||||
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
||||||
<UnoIcon
|
<UnoIcon
|
||||||
i-heroicons-solid-chevron-down
|
i-ic-baseline-arrow-drop-down
|
||||||
class="text-app-white"
|
class="text-app-white"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -53,4 +53,13 @@ export default defineNuxtConfig({
|
||||||
lodash: {
|
lodash: {
|
||||||
prefix: '_',
|
prefix: '_',
|
||||||
},
|
},
|
||||||
|
runtimeConfig: {
|
||||||
|
app: {
|
||||||
|
github: {
|
||||||
|
appId: 0,
|
||||||
|
privateKey: '',
|
||||||
|
installationId: 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -226,6 +226,7 @@ const transitionDone = ref(false)
|
||||||
leading-28px
|
leading-28px
|
||||||
bg-app-bg-dark_grey
|
bg-app-bg-dark_grey
|
||||||
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
||||||
|
@blur="toggleEdit()"
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
v-else
|
v-else
|
||||||
|
@ -235,16 +236,11 @@ const transitionDone = ref(false)
|
||||||
>
|
>
|
||||||
{{ name }}
|
{{ name }}
|
||||||
</h2>
|
</h2>
|
||||||
<button @click="toggleEdit()">
|
<button
|
||||||
|
v-if="!isEditing"
|
||||||
|
@click="toggleEdit()"
|
||||||
|
>
|
||||||
<UnoIcon
|
<UnoIcon
|
||||||
v-if="isEditing"
|
|
||||||
text-24px
|
|
||||||
class="text-app-white/30"
|
|
||||||
hover:text-app-white
|
|
||||||
i-heroicons-solid-check
|
|
||||||
/>
|
|
||||||
<UnoIcon
|
|
||||||
v-else
|
|
||||||
text-20px
|
text-20px
|
||||||
class="text-app-white/30"
|
class="text-app-white/30"
|
||||||
hover:text-app-white
|
hover:text-app-white
|
||||||
|
|
|
@ -211,6 +211,7 @@ const transitionDone = ref(false)
|
||||||
leading-28px
|
leading-28px
|
||||||
bg-app-bg-dark_grey
|
bg-app-bg-dark_grey
|
||||||
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
||||||
|
@blur="toggleEdit()"
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
v-else
|
v-else
|
||||||
|
@ -220,16 +221,11 @@ const transitionDone = ref(false)
|
||||||
>
|
>
|
||||||
{{ name }}
|
{{ name }}
|
||||||
</h2>
|
</h2>
|
||||||
<button @click="toggleEdit()">
|
<button
|
||||||
|
v-if="!isEditing"
|
||||||
|
@click="toggleEdit()"
|
||||||
|
>
|
||||||
<UnoIcon
|
<UnoIcon
|
||||||
v-if="isEditing"
|
|
||||||
text-24px
|
|
||||||
class="text-app-white/30"
|
|
||||||
hover:text-app-white
|
|
||||||
i-heroicons-solid-check
|
|
||||||
/>
|
|
||||||
<UnoIcon
|
|
||||||
v-else
|
|
||||||
text-20px
|
text-20px
|
||||||
class="text-app-white/30"
|
class="text-app-white/30"
|
||||||
hover:text-app-white
|
hover:text-app-white
|
||||||
|
|
Loading…
Reference in a new issue