Skip to content

Commit

Permalink
Merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDalek committed Feb 14, 2025
2 parents 308406d + 9f5fe7f commit b8deec1
Show file tree
Hide file tree
Showing 15 changed files with 643 additions and 281 deletions.
183 changes: 174 additions & 9 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ There are two main ways to debug code:

- By adding a `debugger` statement within any client-side code (e.g., inside a `page.evaluate` callback). With the `--devtools` option set to **true**, the code execution will stop automatically.

- By running the export server with the `--inspect-brk=<PORT>` flag, and adding a `debugger` statement within any server-side code. Subsequently, navigate to `chrome://inspect/`, input the server's IP address and port (e.g., `localhost:9229`) in the Configure section. Clicking 'inspect' initiates debugging of the server-side code.
- By running the Export Server with the `--inspect-brk=<PORT>` flag, and adding a `debugger` statement within any server-side code. Subsequently, navigate to `chrome://inspect/`, input the server's IP address and port (e.g., `localhost:9229`) in the Configure section. Clicking 'inspect' initiates debugging of the server-side code.

The `npm run start:debug` script from the `package.json` allows debugging code using both methods simultaneously. In this setup, client-side code is accessible from the devTools of a specific Puppeteer browser's page, while server-side code can be debugged from the devTools of `chrome://inspect/`.

Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,5 @@ async function start() {
}
}

// Start the export server process
// Start the Export Server process
start();
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function setCliOptions(cliArgs) {
// Update global options with validated values from the `configOptions`
updateOptions(configOptions);
} catch (error) {
log(2, '[validation] No options added from the `--loadConfig` option.');
log(2, '[config] No options added from the `--loadConfig` option.');
}

try {
Expand All @@ -129,7 +129,7 @@ export function setCliOptions(cliArgs) {
// Update global options with validated values from the `cliOptions`
updateOptions(cliOptions, false, false);
} catch (error) {
log(2, '[validation] No options added from the CLI arguments.');
log(2, '[config] No options added from the CLI arguments.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/schemas/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ const defaultConfig = {
types: ['boolean'],
envLink: 'UI_ENABLE',
cliName: 'enableUi',
description: 'Enables or disables the UI for the export server',
description: 'Enables or disables the UI for the Export Server',
promptOptions: {
type: 'toggle'
}
Expand Down
4 changes: 2 additions & 2 deletions lib/server/routes/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See LICENSE file in root for details.
*******************************************************************************/

/**
* @overview Defines an Express route for serving the UI for the export server
* @overview Defines an Express route for serving the UI for the Export Server
* when enabled.
*/

Expand All @@ -34,7 +34,7 @@ export default function uiRoutes(app) {
// Add the UI endpoint only if required
if (getOptions().ui.enable) {
/**
* Adds the GET '/' - A route for a UI when enabled on the export server.
* Adds the GET '/' - A route for a UI when enabled on the Export Server.
*/
app.get(getOptions().ui.route || '/', (request, response, next) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/server/webSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Highcharts Export Server
Copyright (c) 2016-2024, Highsoft
Copyright (c) 2016-2025, Highsoft
Licenced under the MIT licence.
Expand Down
2 changes: 1 addition & 1 deletion lib/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Highcharts Export Server
Copyright (c) 2016-2024, Highsoft
Copyright (c) 2016-2025, Highsoft
Licenced under the MIT licence.
Expand Down
Loading

0 comments on commit b8deec1

Please sign in to comment.