Update the website links (#3120)

This commit is contained in:
David Marby 2021-02-25 22:33:38 +01:00 committed by GitHub
parent b8f76deff9
commit 1b718165d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 11 deletions

View File

@ -89,8 +89,7 @@ export function getClientString() {
}
export function changelogUrl(): string {
const { changelogBaseUrl, version } = appConfig();
return `${changelogBaseUrl}/${version}`;
return appConfig().changelogUrl;
}
// Global Stuff

View File

@ -54,7 +54,7 @@ const AccountDropdown = ({ className }: Props) => (
</DropdownItem>
)}
{!session.isLoggedIn() && (
<DropdownItem key="invite" buttonClass={Link} href="https://insomnia.rest/pricing/" button>
<DropdownItem key="invite" buttonClass={Link} href="https://insomnia.rest/pricing" button>
<StyledIconContainer>
<i className="fa fa-users" />
</StyledIconContainer>{' '}

View File

@ -122,13 +122,13 @@ class Account extends React.PureComponent<Props, State> {
</p>
<br />
<div className="pad">
<Link button className="btn btn--clicky" href="https://insomnia.rest/plus/">
<Link button className="btn btn--clicky" href="https://insomnia.rest/pricing">
Plus for Individuals <i className="fa fa-external-link" />
</Link>
<Link
button
className="margin-left-sm btn btn--clicky"
href="https://insomnia.rest/teams/">
href="https://insomnia.rest/pricing">
Plus for Teams <i className="fa fa-external-link" />
</Link>
</div>

View File

@ -86,7 +86,7 @@ class ImportExport extends PureComponent {
</DropdownItem>
</Dropdown>
&nbsp;&nbsp;
<Link href="https://insomnia.rest/create-run-button/" className="btn btn--compact" button>
<Link href="https://insomnia.rest/create-run-button" className="btn btn--compact" button>
Create Run Button
</Link>
</div>

View File

@ -287,7 +287,7 @@ class Plugins extends React.PureComponent<Props, State> {
<div className="selectable force-pre-wrap">
<b>{installPluginErrMsg}</b>
{`\n\nThere may be an issue with the plugin itself, as a note you can discover and install plugins from the `}
<a href="https://insomnia.rest/plugins/">Plugin Hub.</a>
<a href="https://insomnia.rest/plugins">Plugin Hub.</a>
<details>
<summary>Additionl Information</summary>
<pre className="pad-top-sm force-wrap selectable">

View File

@ -42,7 +42,7 @@ class ResponseError extends PureComponent {
<Link
button
className="btn btn--clicky margin-top-sm"
href="https://insomnia.rest/support/">
href="https://insomnia.rest/support">
Contact Support
</Link>
</div>

View File

@ -9,7 +9,7 @@
"longName": "Insomnia",
"synopsis": "The Collaborative API Client and Design Tool",
"icon": "https://github.com/kong/insomnia/blob/develop/packages/insomnia-app/app/icons/icon.ico?raw=true",
"changelogBaseUrl": "https://insomnia.rest/changelog/core",
"changelogUrl": "https://insomnia.rest/changelog",
"theme": "default",
"main": "main.min.js",
"githubOrg": "Kong",

View File

@ -70,7 +70,6 @@ async function start(app, version) {
async function getOrCreateRelease(app, version) {
const tag = `${app}@${version}`;
const releaseName = `${appConfig().productName} ${version} 📦`;
const changelogUrl = `https://insomnia.rest/changelog/${app}/${version}`;
try {
return await octokit.repos.getReleaseByTag({
@ -87,7 +86,7 @@ async function getOrCreateRelease(app, version) {
repo: appConfig().githubRepo,
tag_name: tag,
name: releaseName,
body: `Full changelog ⇒ ${changelogUrl}`,
body: `Full changelog ⇒ ${appConfig().changelogUrl}`,
draft: false,
prerelease: true,
});