docs: updated wiki links

This commit is contained in:
liyasthomas
2021-08-19 22:38:50 +05:30
parent fc4e945a7e
commit 95547108bf
10 changed files with 32 additions and 28 deletions

View File

@@ -266,7 +266,7 @@ _Collections are synced with cloud / local session storage_
</details> </details>
_Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://github.com/hoppscotch/proxyscotch/wiki/Privacy-policy)**_ _Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://docs.hoppscotch.io/privacy)**_
📜 **Pre-Request Scripts β:** Snippets of code associated with a request that are executed before the request is sent. 📜 **Pre-Request Scripts β:** Snippets of code associated with a request that are executed before the request is sent.
@@ -300,7 +300,7 @@ _Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/h
⌨️ **Keyboard Shortcuts:** Optimized for efficiency. ⌨️ **Keyboard Shortcuts:** Optimized for efficiency.
> **[Shortcuts WIki](https://github.com/hoppscotch/hoppscotch/wiki/Shortcuts)** > **[Shortcuts](https://docs.hoppscotch.io/features/shortcuts)**
🌎 **i18n:** Experience the app in your own language. 🌎 **i18n:** Experience the app in your own language.
@@ -408,7 +408,7 @@ _Add-ons are developed and maintained under **[Official Hoppscotch Organization]
</details> </details>
**To find out more, please check out [Hoppscotch Wiki](https://github.com/hoppscotch/hoppscotch/wiki).** **To find out more, please check out our [Documentation](https://docs.hoppscotch.io).**
## **Demo** ## **Demo**

View File

@@ -32,16 +32,12 @@
arrow arrow
> >
<template #trigger> <template #trigger>
<ButtonSecondary <ButtonSecondary icon="help_center" :label="$t('app.help')" />
v-tippy="{ theme: 'tooltip' }"
icon="help_center"
:title="$t('app.help')"
/>
</template> </template>
<div class="flex flex-col"> <div class="flex flex-col">
<SmartItem <SmartItem
:label="$t('app.documentation')" :label="$t('app.documentation')"
to="https://github.com/hoppscotch/hoppscotch/wiki" to="https://docs.hoppscotch.io"
blank blank
@click.native="$refs.options.tippy().hide()" @click.native="$refs.options.tippy().hide()"
/> />
@@ -74,7 +70,7 @@
/> />
<SmartItem <SmartItem
:label="$t('app.terms_and_privacy')" :label="$t('app.terms_and_privacy')"
to="https://github.com/hoppscotch/hoppscotch/wiki/Privacy-Policy" to="https://docs.hoppscotch.io/privacy"
blank blank
@click.native="$refs.options.tippy().hide()" @click.native="$refs.options.tippy().hide()"
/> />

View File

@@ -121,10 +121,7 @@ export default defineComponent({
setLocalConfig("cookiesAllowed", "yes") setLocalConfig("cookiesAllowed", "yes")
toastObject.goAway(0) toastObject.goAway(0)
window window
.open( .open("https://docs.hoppscotch.io/privacy", "_blank")
"https://github.com/hoppscotch/hoppscotch/wiki/Privacy-Policy",
"_blank"
)
.focus() .focus()
}, },
}, },

View File

@@ -9,7 +9,7 @@
<SmartItem <SmartItem
icon="menu_book" icon="menu_book"
:label="$t('app.documentation')" :label="$t('app.documentation')"
to="https://github.com/hoppscotch/hoppscotch/wiki" to="https://docs.hoppscotch.io"
:description="$t('support.documentation')" :description="$t('support.documentation')"
info-icon="chevron_right" info-icon="chevron_right"
active active

View File

@@ -80,14 +80,14 @@
By signing in, you are agreeing to our By signing in, you are agreeing to our
<SmartAnchor <SmartAnchor
class="link" class="link"
to="https://github.com/hoppscotch/hoppscotch/wiki/Terms-&-Conditions" to="https://docs.hoppscotch.io/terms"
blank blank
label="Terms of Service" label="Terms of Service"
/> />
and and
<SmartAnchor <SmartAnchor
class="link" class="link"
to="https://github.com/hoppscotch/hoppscotch/wiki/Privacy-Policy" to="https://docs.hoppscotch.io/privacy"
blank blank
label="Privacy Policy" label="Privacy Policy"
/>. />.

View File

@@ -64,7 +64,7 @@
<SmartAnchor <SmartAnchor
class="link" class="link"
:label="$t('action.learn_more')" :label="$t('action.learn_more')"
to="https://github.com/hoppscotch/hoppscotch/wiki/Pre-Request-Scripts" to="https://docs.hoppscotch.io/features/pre-request-script"
blank blank
/> />
<h4 class="font-bold text-secondaryLight pt-6"> <h4 class="font-bold text-secondaryLight pt-6">

View File

@@ -140,7 +140,7 @@
:label="$t('request.save')" :label="$t('request.save')"
:shortcut="[getSpecialKey(), 'S']" :shortcut="[getSpecialKey(), 'S']"
outline outline
@click.native="showSaveRequestModal = true" @click.native="saveRequest()"
/> />
<span class="flex"> <span class="flex">
<tippy <tippy
@@ -388,13 +388,21 @@ export default defineComponent({
const req = getRESTRequest() const req = getRESTRequest()
// TODO: handle error case (NOTE: saveRequestAsTeams is async) // TODO: handle error case (NOTE: saveRequestAsTeams is async)
saveRequestAsTeams( try {
apolloClient, saveRequestAsTeams(
JSON.stringify(req), apolloClient,
req.name, JSON.stringify(req),
saveCtx.requestID req.name,
) saveCtx.requestID
)
} catch (error) {
showSaveRequestModal.value = true
return
}
} }
$toast.success(t("request.saved").toString(), {
icon: "done",
})
} }
defineActionHandler("request.send-cancel", () => { defineActionHandler("request.send-cancel", () => {
@@ -433,6 +441,7 @@ export default defineComponent({
clearContent, clearContent,
copyRequest, copyRequest,
onSelectMethod, onSelectMethod,
saveRequest,
EXPERIMENTAL_URL_BAR_ENABLED: useSetting("EXPERIMENTAL_URL_BAR_ENABLED"), EXPERIMENTAL_URL_BAR_ENABLED: useSetting("EXPERIMENTAL_URL_BAR_ENABLED"),

View File

@@ -64,7 +64,7 @@
<SmartAnchor <SmartAnchor
class="link" class="link"
:label="$t('action.learn_more')" :label="$t('action.learn_more')"
to="https://github.com/hoppscotch/hoppscotch/wiki/Post-Request-Tests" to="https://docs.hoppscotch.io/features/tests"
blank blank
/> />
<h4 class="font-bold text-secondaryLight pt-6"> <h4 class="font-bold text-secondaryLight pt-6">

View File

@@ -42,7 +42,8 @@
"contact_us": "Contact us", "contact_us": "Contact us",
"copy": "Copy", "copy": "Copy",
"documentation": "Documentation", "documentation": "Documentation",
"help": "Help, feedback and</br>documentation", "help": "Help & feedback",
"reload": "Reload",
"home": "Home", "home": "Home",
"invite": "Invite", "invite": "Invite",
"invite_description": "In Hoppscotch, we designed a simple and intuitive interface for creating and managing your APIs. Hoppscotch is a tool that helps you build, test, document and share your APIs.", "invite_description": "In Hoppscotch, we designed a simple and intuitive interface for creating and managing your APIs. Hoppscotch is a tool that helps you build, test, document and share your APIs.",
@@ -264,6 +265,7 @@
"name": "Request name", "name": "Request name",
"parameter_list": "Query Parameters", "parameter_list": "Query Parameters",
"parameters": "Parameters", "parameters": "Parameters",
"saved": "Request saved",
"payload": "Payload", "payload": "Payload",
"query": "Query", "query": "Query",
"raw_body": "Raw Request Body", "raw_body": "Raw Request Body",

View File

@@ -294,7 +294,7 @@
}} }}
<SmartLink <SmartLink
class="link" class="link"
to="https://github.com/hoppscotch/proxyscotch/wiki/Privacy-policy" to="https://docs.hoppscotch.io/privacy"
blank blank
> >
{{ $t("app.proxy_privacy_policy") }} </SmartLink {{ $t("app.proxy_privacy_policy") }} </SmartLink