Skip to content

Commit

Permalink
feat(release): dashboard update
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha committed May 4, 2022
1 parent 50a30f3 commit 00d9929
Show file tree
Hide file tree
Showing 13 changed files with 108 additions and 100 deletions.
6 changes: 3 additions & 3 deletions packages/dashboard-message-bus/lib/utils.ts
Expand Up @@ -105,7 +105,7 @@ export const sendAndAwait = (socket: WebSocket, message: Message) => {
};

export const connectToMessageBusWithRetries = async (
port: number,
port: number = 8564,
host: string = 'localhost',
retries: number = 50,
): Promise<WebSocket> => {
Expand All @@ -123,7 +123,7 @@ export const connectToMessageBusWithRetries = async (
};

export const connectToMessageBus = (
port: number,
port: number = 8564,
host: string = 'localhost',
) => {
const socket = new WebSocket(`ws://${host}:${port}`);
Expand All @@ -137,7 +137,7 @@ export const connectToMessageBus = (
};

export const getMessageBusPorts = async (
dashboardPort: number,
dashboardPort: number = 8564,
dashboardHost: string = 'localhost',
retries: number = 5,
): Promise<PortsConfig> => {
Expand Down
14 changes: 7 additions & 7 deletions packages/dashboard/build/asset-manifest.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/dashboard/build/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions packages/dashboard/output/lib/interfaceServer.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/dashboard/output/lib/utils.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -36,7 +36,7 @@ function IncomingRequest({ provider, socket, request, setRequests }: Props) {
id: request.payload.id,
error: {
code: 4001,
message: 'User rejected @truffle/dashboard-provider request',
message: 'User rejected @securerpcwalletbus-provider request',
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/dashboard/src/utils/utils.ts
Expand Up @@ -64,10 +64,10 @@ export const respondToUnsupportedRequest = (
request: DashboardProviderMessage,
responseSocket: WebSocket,
) => {
const defaultMessage = `Method "${request.payload.method}" is unsupported by @truffle/dashboard-provider`;
const defaultMessage = `Method "${request.payload.method}" is unsupported by @securerpcwalletbus-provider`;
const customMessages: { [index: string]: string } = {
eth_sign:
'Method "eth_sign" is unsupported by @truffle/dashboard-provider, please use "personal_sign" instead',
'Method "eth_sign" is unsupported by @securerpcwalletbus-provider, please use "personal_sign" instead',
};

const message = customMessages[request.payload.method] ?? defaultMessage;
Expand Down
16 changes: 13 additions & 3 deletions packages/dashboard/tsconfig.json
Expand Up @@ -5,7 +5,10 @@
"sourceMap": true,
"declaration": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"lib": [
"esnext",
"dom"
],
"skipLibCheck": true,
"target": "es6",
"moduleResolution": "node",
Expand All @@ -17,7 +20,10 @@
"strictNullChecks": true,
"rootDir": ".",
"baseUrl": ".",
"types": ["react", "node"],
"types": [
"react",
"node"
],
"allowJs": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
Expand All @@ -26,5 +32,9 @@
"isolatedModules": true,
"noEmit": true
},
"include": ["src", "bin", "lib"]
"include": [
"src",
"bin",
"lib"
]
}
92 changes: 46 additions & 46 deletions test_harness/dist/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion turbo.json
Expand Up @@ -16,7 +16,7 @@
],
"dependsOn": []
},
"lint": {
"start": {
"dependsOn": [
"^build"
],
Expand Down

0 comments on commit 00d9929

Please sign in to comment.