remove settings.ts file
This commit is contained in:
parent
1569172d9e
commit
c424ad6758
|
|
@ -1,18 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) Microsoft Corporation.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const testServerBaseURL = new URL(window.location.href);
|
|
||||||
testServerBaseURL.port = testServerBaseURL.searchParams.get('testServerPort') ?? testServerBaseURL.port;
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
@trace/**
|
@trace/**
|
||||||
@web/**
|
@web/**
|
||||||
../entries.ts
|
../entries.ts
|
||||||
../settings.ts
|
|
||||||
../geometry.ts
|
../geometry.ts
|
||||||
../../../playwright/src/isomorphic/**
|
../../../playwright/src/isomorphic/**
|
||||||
../third_party/devtools.ts
|
../third_party/devtools.ts
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import type { ContextEntry } from '../types/entries';
|
||||||
import type { SourceLocation } from './modelUtil';
|
import type { SourceLocation } from './modelUtil';
|
||||||
import { MultiTraceModel } from './modelUtil';
|
import { MultiTraceModel } from './modelUtil';
|
||||||
import { Workbench } from './workbench';
|
import { Workbench } from './workbench';
|
||||||
import { testServerBaseURL } from '../settings';
|
import { testServerBaseURL } from './uiModeView';
|
||||||
|
|
||||||
export const TraceView: React.FC<{
|
export const TraceView: React.FC<{
|
||||||
item: { treeItem?: TreeItem, testFile?: SourceLocation, testCase?: reporterTypes.TestCase },
|
item: { treeItem?: TreeItem, testFile?: SourceLocation, testCase?: reporterTypes.TestCase },
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ import { FiltersView } from './uiModeFiltersView';
|
||||||
import { TestListView } from './uiModeTestListView';
|
import { TestListView } from './uiModeTestListView';
|
||||||
import { TraceView } from './uiModeTraceView';
|
import { TraceView } from './uiModeTraceView';
|
||||||
import { SettingsView } from './settingsView';
|
import { SettingsView } from './settingsView';
|
||||||
import { testServerBaseURL } from '../settings';
|
|
||||||
|
|
||||||
let xtermSize = { cols: 80, rows: 24 };
|
let xtermSize = { cols: 80, rows: 24 };
|
||||||
const xtermDataSource: XtermDataSource = {
|
const xtermDataSource: XtermDataSource = {
|
||||||
|
|
@ -47,7 +46,9 @@ const xtermDataSource: XtermDataSource = {
|
||||||
resize: () => {},
|
resize: () => {},
|
||||||
};
|
};
|
||||||
|
|
||||||
const searchParams = new URLSearchParams(window.location.search);
|
export const testServerBaseURL = new URL(window.location.href);
|
||||||
|
const searchParams = testServerBaseURL.searchParams;
|
||||||
|
testServerBaseURL.port = searchParams.get('testServerPort') ?? testServerBaseURL.port;
|
||||||
const wsURL = new URL(`/${searchParams.get('ws')}`, testServerBaseURL);
|
const wsURL = new URL(`/${searchParams.get('ws')}`, testServerBaseURL);
|
||||||
wsURL.protocol = (window.location.protocol === 'https:' ? 'wss:' : 'ws:');
|
wsURL.protocol = (window.location.protocol === 'https:' ? 'wss:' : 'ws:');
|
||||||
const queryParams = {
|
const queryParams = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue