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 { export function changelogUrl(): string {
const { changelogBaseUrl, version } = appConfig(); return appConfig().changelogUrl;
return `${changelogBaseUrl}/${version}`;
} }
// Global Stuff // Global Stuff

View File

@ -54,7 +54,7 @@ const AccountDropdown = ({ className }: Props) => (
</DropdownItem> </DropdownItem>
)} )}
{!session.isLoggedIn() && ( {!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> <StyledIconContainer>
<i className="fa fa-users" /> <i className="fa fa-users" />
</StyledIconContainer>{' '} </StyledIconContainer>{' '}

View File

@ -122,13 +122,13 @@ class Account extends React.PureComponent<Props, State> {
</p> </p>
<br /> <br />
<div className="pad"> <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" /> Plus for Individuals <i className="fa fa-external-link" />
</Link> </Link>
<Link <Link
button button
className="margin-left-sm btn btn--clicky" 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" /> Plus for Teams <i className="fa fa-external-link" />
</Link> </Link>
</div> </div>

View File

@ -86,7 +86,7 @@ class ImportExport extends PureComponent {
</DropdownItem> </DropdownItem>
</Dropdown> </Dropdown>
&nbsp;&nbsp; &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 Create Run Button
</Link> </Link>
</div> </div>

View File

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

View File

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

View File

@ -9,7 +9,7 @@
"longName": "Insomnia", "longName": "Insomnia",
"synopsis": "The Collaborative API Client and Design Tool", "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", "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", "theme": "default",
"main": "main.min.js", "main": "main.min.js",
"githubOrg": "Kong", "githubOrg": "Kong",

View File

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