feat: svg icons
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user