feat: svg icons

This commit is contained in:
liyasthomas
2021-08-28 05:47:33 +05:30
parent e397e3fb6f
commit 476bfbaef0
149 changed files with 476 additions and 392 deletions

View File

@@ -37,8 +37,8 @@
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"
title="JSON"
icon="folder"
class="rounded-none"
svg="folder"
class="!rounded-none"
:label="$t('import.collections')"
@click.native="$refs.collectionUpload.click()"
/>
@@ -53,7 +53,7 @@
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"
:title="$t('action.clear')"
icon="clear_all"
svg="trash-2"
@click.native="collectionJSON = '[]'"
/>
</div>

View File

@@ -30,7 +30,7 @@
:src="currentUser.photoURL"
class="rounded-full h-5 w-5"
/>
<i v-else class="material-icons">account_circle</i>
<SmartIcon v-else name="user" class="svg-icons" />
</div>
<div class="ml-4">
<label>
@@ -43,7 +43,7 @@
</div>
<div class="flex items-start">
<div class="flex items-center">
<i class="material-icons">email</i>
<SmartIcon name="at-sign" class="svg-icons" />
</div>
<div class="ml-4">
<label>
@@ -314,7 +314,7 @@
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"
:title="$t('settings.reset_default')"
:icon="clearIcon"
:svg="clearIcon"
outline
class="rounded"
@click.native="resetProxy"
@@ -390,7 +390,7 @@ export default defineComponent({
hasChromeExtInstalled: hasChromeExtensionInstalled(),
hasFirefoxExtInstalled: hasFirefoxExtensionInstalled(),
clearIcon: "clear_all",
clearIcon: "rotate-ccw",
showLogin: false,
@@ -449,11 +449,11 @@ export default defineComponent({
},
resetProxy() {
applySetting("PROXY_URL", `https://proxy.hoppscotch.io/`)
this.clearIcon = "done"
this.clearIcon = "check"
this.$toast.success(this.$t("state.cleared").toString(), {
icon: "clear_all",
})
setTimeout(() => (this.clearIcon = "clear_all"), 1000)
setTimeout(() => (this.clearIcon = "rotate-ccw"), 1000)
},
getColorModeName(colorMode: string) {
switch (colorMode) {