mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 14:19:58 +00:00
Rename some old things
This commit is contained in:
parent
a3253a1149
commit
4cb8e34aef
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -1,6 +1,10 @@
|
||||
name: Test
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
tags-ignore:
|
||||
- core@*
|
||||
- designer@*
|
||||
|
||||
jobs:
|
||||
Test:
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -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}`;
|
||||
}
|
||||
|
@ -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(''));
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -12,7 +12,7 @@
|
||||
"theme": "default",
|
||||
"main": "main.min.js",
|
||||
"githubOrg": "Kong",
|
||||
"githubRepo": "studio",
|
||||
"githubRepo": "insomnia",
|
||||
"gaId": "<TODO>",
|
||||
"gaLocation": "<TODO>",
|
||||
"plugins": [
|
||||
|
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user