chore: remove unused code
This commit is contained in:
@@ -457,14 +457,6 @@
|
||||
<SmartTab :id="'collections'" :label="$t('collections')">
|
||||
<CollectionsGraphql />
|
||||
</SmartTab>
|
||||
|
||||
<!-- <SmartTab :id="'env'" :label="$t('environments')">
|
||||
<Environments @use-environment="useSelectedEnvironment($event)" />
|
||||
</SmartTab>
|
||||
|
||||
<SmartTab :id="'notes'" :label="$t('notes')">
|
||||
<HttpNotes />
|
||||
</SmartTab> -->
|
||||
</SmartTabs>
|
||||
</aside>
|
||||
</TranslateSlideLeft>
|
||||
|
||||
@@ -637,10 +637,6 @@
|
||||
<SmartTab :id="'env'" :label="$t('environments')">
|
||||
<Environments />
|
||||
</SmartTab>
|
||||
|
||||
<SmartTab :id="'notes'" :label="$t('notes')">
|
||||
<HttpNotes />
|
||||
</SmartTab>
|
||||
</SmartTabs>
|
||||
</section>
|
||||
</aside>
|
||||
@@ -775,7 +771,11 @@ import runTestScriptWithVariables from "~/helpers/postwomanTesting"
|
||||
import parseTemplateString from "~/helpers/templating"
|
||||
import { tokenRequest, oauthRedirect } from "~/helpers/oauth"
|
||||
import { cancelRunningRequest, sendNetworkRequest } from "~/helpers/network"
|
||||
import { hasPathParams, addPathParamsToVariables, getQueryParams } from "~/helpers/requestParams"
|
||||
import {
|
||||
hasPathParams,
|
||||
addPathParamsToVariables,
|
||||
getQueryParams,
|
||||
} from "~/helpers/requestParams"
|
||||
import { parseUrlAndPath } from "~/helpers/utils/uri"
|
||||
import { httpValid } from "~/helpers/utils/valid"
|
||||
import {
|
||||
|
||||
@@ -57,13 +57,6 @@
|
||||
{{ SYNC_HISTORY ? $t("enabled") : $t("disabled") }}
|
||||
</SmartToggle>
|
||||
</p>
|
||||
|
||||
<p v-if="isSyncDisabled">
|
||||
<button @click="initSettings">
|
||||
<i class="material-icons">sync</i>
|
||||
<span>{{ $t("turn_on") + " " + $t("sync") }}</span>
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
<div v-else>
|
||||
<label>{{ $t("login_with") }}</label>
|
||||
@@ -286,9 +279,6 @@ export default Vue.extend({
|
||||
key: this.PROXY_KEY,
|
||||
}
|
||||
},
|
||||
isSyncDisabled(): boolean {
|
||||
return this.SYNC_COLLECTIONS && this.SYNC_ENVIRONMENTS && this.SYNC_HISTORY
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
proxySettings: {
|
||||
@@ -318,11 +308,6 @@ export default Vue.extend({
|
||||
) {
|
||||
this.applySetting(name, value)
|
||||
},
|
||||
initSettings() {
|
||||
applySetting("syncHistory", true)
|
||||
applySetting("syncCollections", true)
|
||||
applySetting("syncEnvironments", true)
|
||||
},
|
||||
resetProxy({ target }: { target: HTMLElement }) {
|
||||
applySetting("PROXY_URL", `https://proxy.hoppscotch.io/`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user