Commit Graph

2618 Commits

Author SHA1 Message Date
57d0454051 Refactor logging and resource server initialization
Introduces ICompatibleLogger for improved logging, replaces Trace.TraceError and Trace.TraceInformation calls with logger methods, and standardizes ResourceServer instance naming to _resourceServer. Passes logger instances to MainForm and ResourceServer for consistent logging. Also refactors mutex handling and initialization logic for clarity.
2025-08-26 12:49:37 +09:00
3865f3216f
Merge pull request #322 from gnh1201/dev
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
Add abnormal case check to clusteredCellsDensity
2025-08-26 10:07:51 +09:00
78ab8d839f Add abnormal case check to clusteredCellsDensity
Returns false if more than one third of the grid is selected, treating it as an abnormal case. Also updates VERSIONINFO to 1.0.4.
2025-08-25 01:39:42 +09:00
cc08f7b362
Merge pull request #321 from gnh1201/dev
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
TOTP (Time-based OTP) with 32 characters key
2025-08-22 23:28:01 +09:00
d443f6270c Update OTP endpoint and version info in totp.js
Changed the OTP API endpoint from '/tfa/otp' to '/otp' and updated VERSIONINFO to 1.0.1. Improved example comments to clarify key formats and OTP code usage.
2025-08-22 17:59:32 +09:00
dfc18cfd7d Refactor TFA tool to TwoFactorAuth and update TOTP client
Renamed ResourceTools/Tfa.cs to ResourceTools/TwoFactorAuth.cs and updated all references accordingly. Enhanced TwoFactorAuth with improved key handling, error responses, and form parsing. Updated totp.js to use the new local HTTP API endpoints for key generation and OTP calculation, removing legacy JSON-RPC code.
2025-08-22 17:21:31 +09:00
d3a122029d
Merge pull request #320 from gnh1201/dev
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
Some bug fixes, and enhance ExtraMath module
2025-08-20 17:33:53 +09:00
8ff12c9883
Update lib/extramath.js
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-08-20 17:29:44 +09:00
1dd02f7a75
Update lib/extramath.js
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-08-20 17:25:51 +09:00
83b022bf6f Refactor grid functions and update exports in extramath.js
Improved clusteredCellsDensity to validate cell indices and refactored coordinate calculation to be 1-based. Replaced tileStartPos with estimateTileStartPosition for more flexible tile positioning, updated exports accordingly, and bumped VERSIONINFO to 1.0.3.
2025-08-20 17:10:58 +09:00
ab869556c4 Add tileStartPos function and update version
Introduced tileStartPos to calculate tile coordinates based on index, size, and columns. Updated VERSIONINFO to 1.0.1 and exported the new function.
2025-08-18 07:20:01 +09:00
717b141cb7 Add clusteredCellsDensity function to extramath.js
Introduces clusteredCellsDensity to evaluate density of selected cells within a grid. Updates module version to 1.0.0 and exports the new function for external use.
2025-08-18 04:16:52 +09:00
83fb136957 Remove redundant error handling in ChromeObject
Eliminated duplicate error response handling logic in ChromeObject and updated the version info to 0.5.3. Error messages are now handled solely by the catch block for cleaner code.
2025-08-18 03:26:27 +09:00
8da63c08ca Add setup file download to AppVeyor build
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
A PowerShell command was added to download the unsigned setup executable from Azure Blob Storage during the after_build step, saving it to the artifacts directory.
2025-08-18 01:47:36 +09:00
df393ed251
Merge pull request #318 from gnh1201/dev
Improve logging and async handling in ResourceServer
2025-08-17 23:33:35 +09:00
a022383d63 Improve error handling for FetchBlobConfig
Replaces fire-and-forget async call to FetchBlobConfig with a safe pattern that logs errors if the task fails. This ensures exceptions are not silently ignored and improves reliability.
2025-08-17 22:34:31 +09:00
d0c031fe32 Fix async context handling in blob config loading
Added ConfigureAwait(false) to async HTTP call and moved Compile() invocation to immediately after deserialization. This improves async context handling and ensures blob config is compiled before assignment.
2025-08-17 21:22:17 +09:00
6896c272ef
Update WelsonJS.Toolkit/WelsonJS.Launcher/TraceLogger.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-17 20:58:08 +09:00
f44f56ea2c Refactor HTTP client usage in ResourceServer
Replaced local HttpClient instantiation with the class-level _httpClient for sending requests. This improves resource management and consistency in HTTP operations.
2025-08-17 20:43:33 +09:00
cc08c46886 Improve logging and async handling in ResourceServer
ResourceServer now defaults to using TraceLogger if no logger is provided and properly awaits FetchBlobConfig. FetchBlobConfig is refactored to return a Task and handle missing configuration more gracefully. TraceLogger now writes logs to a file named after its namespace and sets up a TextWriterTraceListener for persistent logging.
2025-08-17 20:12:38 +09:00
f413a5c4fa
Merge pull request #317 from gnh1201/dev
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
Add ICompatibleLogger interface and integrate logging
2025-08-17 11:24:05 +09:00
8ecdf99d78 Add ICompatibleLogger interface and integrate logging
Introduced ICompatibleLogger interface and TraceLogger implementation to enable flexible logging. ResourceServer now uses ICompatibleLogger for error reporting instead of Trace, improving testability and future extensibility. Updated project file to include new logger classes.
2025-08-16 21:23:16 +09:00
43ff486049
Merge pull request #316 from gnh1201/dev
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
Refactor WebSocket communication logic
2025-08-14 04:44:48 +09:00
2068cdfeb3 Refactor WebSocket communication logic
Replaces manual WebSocket send/receive code with a single call to _wsManager.SendAndReceiveAsync for improved clarity and maintainability. Updates comments for better readability and removes redundant exception handling for OperationCanceledException.
2025-08-14 04:43:13 +09:00
0aa3b06e42
Merge pull request #315 from gnh1201/dev
Improve WebSocket receive buffer handling
2025-08-14 04:22:26 +09:00
6893eadd04 Improve WebSocket receive buffer handling
Refactored TrySendAndReceiveAsync to use a fixed-size buffer for I/O and dynamically accumulate received data chunks until EndOfMessage. This prevents truncation of large messages and ensures the entire payload is received before decoding.
2025-08-14 04:21:02 +09:00
d2069962bb
Merge pull request #314 from gnh1201/dev
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
Improve WebSocket receive to handle multi-frame messages
2025-08-14 04:02:23 +09:00
e1d90cde18 Improve WebSocket receive to handle multi-frame messages
The receive logic now accumulates all frames until EndOfMessage, ensuring complete messages are read even if fragmented. This change improves reliability when handling large or fragmented WebSocket messages.
2025-08-14 04:01:02 +09:00
6bf280d38f
Merge pull request #313 from gnh1201/revert-310-dev
Revert "Update WebSocketManager.cs"
2025-08-14 03:35:50 +09:00
Namhyeon, Go
c4582b651c
Revert "Update WebSocketManager.cs" 2025-08-14 03:35:41 +09:00
309217994e
Merge pull request #312 from gnh1201/revert-311-dev
Revert "Update WebSocketManager.cs (Urgent)"
2025-08-14 03:35:26 +09:00
Namhyeon, Go
3962e7a04b
Revert "Update WebSocketManager.cs (Urgent)" 2025-08-14 03:35:12 +09:00
b0cd9598eb
Merge pull request #311 from gnh1201/dev
Update WebSocketManager.cs (Urgent)
2025-08-14 03:19:52 +09:00
8bca089976
Update WebSocketManager.cs 2025-08-14 03:18:14 +09:00
e1a9c79a75
Merge pull request #310 from gnh1201/dev
Update WebSocketManager.cs
2025-08-14 03:13:53 +09:00
f1af7029fa
Update WebSocketManager.cs 2025-08-14 03:11:44 +09:00
bb1078dca8
Merge pull request #309 from gnh1201/dev
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
Improve error handling in sendPageRPC and getEvaluatedValue
2025-08-11 04:58:36 +09:00
7a05916319 Improve error handling in ChromeObject
Enhanced error handling by returning a structured error object when exceptions occur in ChromeObject. Also updated the version info to 0.5.2.
2025-08-11 04:52:38 +09:00
1533059e44 Improve error handling in sendPageRPC and getEvaluatedValue
Refactored sendPageRPC to better handle error responses and log error descriptions from the response object. Updated getEvaluatedValue to safely access the evaluated value, returning an empty string if not present. Bumped VERSIONINFO to 0.5.1.
2025-08-11 02:58:33 +09:00
1b0f529f74
Update SECURITY.MD
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
2025-08-08 08:38:53 +09:00
c58fe7e35c
Update README.md
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
2025-08-05 18:14:02 +09:00
9e3b4f1c3c
Merge pull request #307 from gnh1201/dev
Introduce `UseObject(progId, callback)` and more fixes
2025-08-05 17:51:47 +09:00
665642586b
Fix indentation on lib/pipe-ipc.js
Fix indentation on lib/pipe-ipc.js
2025-08-05 17:48:13 +09:00
444b80e3b5
Update file.js 2025-08-05 17:45:46 +09:00
68a57f15fb
Update app.js 2025-08-05 17:44:34 +09:00
0ab35aab7c
Enable the worksheet activation on the screen
Enable the worksheet activation on the screen
2025-08-05 17:33:43 +09:00
6e89bda453
Remove makeInterface(<number>) and replace to UseObject(<string>)
Remove makeInterface(<number>) and replace to UseObject(<string>)
2025-08-05 17:31:48 +09:00
3de5b618db
Introduce getFilesFromFolder() and clean the code
Introduce getFilesFromFolder() and clean the code
2025-08-05 17:30:20 +09:00
1398c1b359
Intoduce UseObject(<string>, <function>) in app.js
Intoduce UseObject(<string>, <function>) in app.js
2025-08-05 17:28:38 +09:00
fe74f360d9
Introduce Array.form(<Enumerator>) polyfills
Introduce Array.form(<Enumerator>) polyfills
2025-08-05 16:39:44 +09:00