Skip to content

Commit

Permalink
Merge pull request #23 from ozkeisar/add-ui-to-docker-image
Browse files Browse the repository at this point in the history
fix links
  • Loading branch information
ozkeisar authored Aug 27, 2024
2 parents 3ee3c9e + a997ffc commit c2fc558
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function GraphqlRouteDetails() {
variant="caption"
onClick={() => {
reportButtonClick(BUTTONS.ROUTE_DETAILS_ROUTE_LINK);
openInNewTab(linkUrl);
openInNewTab(`http://${linkUrl}`);
}}
>
{linkUrl}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function RouteDetails() {
variant="caption"
onClick={() => {
reportButtonClick(BUTTONS.ROUTE_DETAILS_ROUTE_LINK);
openInNewTab(linkUrl);
openInNewTab(`http://${linkUrl}`);
}}
>
{linkUrl}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/devTools/terminal/terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function CommandsTerminal() {
swagger: () => {
reportCommandExecuted(COMMANDS.SWAGGER);
if(isElectronEnabled){
openInNewTab('localhost:1511/api-docs');
openInNewTab('http://localhost:1511/api-docs');
}else{
const baseURl = window.location.href
openInNewTab(baseURl+'api-docs');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function SettingsDialog({ open, onClose }: props) {
endIcon={<OpenInNewIcon />}
onClick={() => {
if(isElectronEnabled){
openInNewTab('localhost:1511/api-docs');
openInNewTab('http://localhost:1511/api-docs');
}else{
const baseURl = window.location.href
openInNewTab(baseURl+'api-docs');
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/globalEvents/globalEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export function GlobalEvents() {

if (success) {
setIsServerUp(true);
setServerHost(host);
setServerHost(isElectronEnabled ? host : window.location.hostname);
}

if (!success && serverDisabledUntil) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { reportEventReceived } from './analytics';
export const handleReceiveEvent = (event: EVENT_KEYS, arg: any) => {
try {
// eslint-disable-next-line no-console
console.log('eventReceived - ', event, arg);
console.log('eventReceived: ', event, arg);
const { success, error } = arg;

reportEventReceived(event, success, {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const JSONStringifyExtra = (obj: any) =>

export const openInNewTab = (url: string) => {
const newWindow = window.open(
`http://${url}`,
url,
'_blank',
'noopener,noreferrer',
);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const emitSocketEvent = (
) => {
// eslint-disable-next-line no-console
console.log(
'emitSocketEvent',
'emitSocketEvent: ',
event,
args,
flattenObject(args?.withAnalyticsParams ? args : {}),
Expand Down

0 comments on commit c2fc558

Please sign in to comment.