Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates and improvements to the
kener
project, including a version bump, the addition of a new status type, and various code refactorings to improve readability and error handling. The most important changes are summarized below:Version Update:
package.json
: Updated the project version from3.1.4
to3.1.5
.New Status Type:
src/lib/server/constants.js
: Added a new status typeNO_DATA
and included it in the export list. [1] [2]src/lib/server/controllers/controller.js
: Incorporated theNO_DATA
status type in various functions, includingGetLastStatusBefore
,GetDataGroupByDayAlternative
, andInterpolateData
. [1] [2] [3] [4]Code Refactoring:
src/lib/server/controllers/controller.js
: Refactored theGetMonitorsParsed
function to include error handling for JSON parsing and improved readability by renaming variables and adding comments.src/lib/server/page.js
: Refactored theFetchData
function to improve readability by renaming variables, adding comments, and ensuring consistent formatting. [1] [2] [3] [4] [5]Documentation Updates:
src/routes/(docs)/+layout.svelte
: Updated the displayed version number to3.1.5
.src/routes/(docs)/docs/[doc]/+page.svelte
: Removed an unused variablesubPath
and refactored code to usedata.docFilePath.split(".md")[0]
directly. (src/routes/(docs)/docs/[doc]/+page.svelteL9-R9, src/routes/(docs)/docs/[doc]/+page.svelteL51-R51, src/routes/(docs)/docs/[doc]/+page.svelteL124-R124)Bug Fix:
src/routes/(kener)/+page.svelte
: Fixed a bug where the wrong variable was used to access the hero image.