Rename some old things

This commit is contained in:
Gregory Schier 2020-04-26 14:08:50 -07:00
parent a3253a1149
commit 4cb8e34aef
7 changed files with 15 additions and 17 deletions

View File

@ -1,6 +1,10 @@
name: Test
on: [push]
on:
push:
tags-ignore:
- core@*
- designer@*
jobs:
Test:

View File

@ -2,7 +2,7 @@
"name": "insomnia",
"private": true,
"version": "1.0.0",
"repository": "https://github.com/kong/studio",
"repository": "https://github.com/kong/insomnia",
"bugs": {
"url": "https://github.com/kong/insomnia"
},

View File

@ -5,8 +5,8 @@ import * as electron from 'electron';
import path from 'path';
import mkdirp from 'mkdirp';
import { getDataDirectory } from './misc';
import { ACTIVITY_INSOMNIA } from '../ui/components/activity-bar/activity-bar';
import type { GlobalActivity } from '../ui/components/activity-bar/activity-bar';
import { ACTIVITY_INSOMNIA } from '../ui/components/activity-bar/activity-bar';
// App Stuff
@ -95,17 +95,11 @@ export function getClientString() {
return `${getAppEnvironment()}::${getAppPlatform()}::${getAppVersion()}`;
}
export function getDocumentationUrl(slug) {
// Replace minor version with "x"
// 1.2.3 -> 1.2.x
// 1.2.3-beta.1 -> 1.2.x
const genericVersion = getAppVersion().replace(/(\d+\.\d+.)(\d+)(-.+)?/, '$1x');
// Return URL
return `https://docs.konghq.com/studio/${genericVersion}/${slug}`;
export function getDocumentationUrl(slug: string): string {
return `https://support.insomnia.rest/${slug}`;
}
export function changelogUrl() {
export function changelogUrl(): string {
const { changelogBaseUrl, version } = appConfig();
return `${changelogBaseUrl}/${version}`;
}

View File

@ -7,7 +7,7 @@ import {
changelogUrl,
getAppLongName,
getAppName,
getAppVersion,
getAppVersion, getDocumentationUrl,
isDevelopment,
isMac,
MNEMONIC_SYM,
@ -241,7 +241,7 @@ export function createWindow() {
label: `${MNEMONIC_SYM}Help and Support`,
accelerator: !isMac() ? 'F1' : null,
click: () => {
shell.openExternal('https://docs.konghq.com/studio/1.0.x/');
shell.openExternal(getDocumentationUrl(''));
},
},
{

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src * kongstudio://*; img-src blob: data: * kongstudio://*; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src blob: data: mediastream: * insomnia://*;"
content="default-src * insomnia://*; img-src blob: data: * insomnia://*; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src blob: data: mediastream: * insomnia://*;"
/>
</head>
<body>

View File

@ -12,7 +12,7 @@
"theme": "default",
"main": "main.min.js",
"githubOrg": "Kong",
"githubRepo": "studio",
"githubRepo": "insomnia",
"gaId": "<TODO>",
"gaLocation": "<TODO>",
"plugins": [

View File

@ -12,7 +12,7 @@
"theme": "studio-light",
"main": "main.min.js",
"githubOrg": "Kong",
"githubRepo": "studio",
"githubRepo": "insomnia",
"gaId": "G-N5Q23R42TP",
"gaLocation": "https://desktop.designer.konghq.com",
"plugins": [