-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(demo): lists page state management
Closes #109 Refactor the state management of the lists page to introduce the `ListsPageStateManager` class. This class facilitates navigation and retrieval of section data. Query parameters have been added to the URL whenever a section is opened on the lists page, making it navigable through the browser history stack. Examples of decoded urls : ```text /lists?section=tv-topics&bu=rts&nodes=urn:rts:topic:tv:665 /lists?section=radio-shows&bu=rts&nodes=a9e7621504c6959e35c3ecbe7f6bed0446cdf8da,urn:rts:show:radio:9801398 ```
- Loading branch information
Showing
6 changed files
with
363 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,8 @@ | |
color: inherit; | ||
} | ||
} | ||
|
||
i { | ||
font-size: var(--size-3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Converts a given string to kebab case, spaces are replaced with hyphens | ||
* and all letters are converted to lowercase. | ||
* | ||
* @param {string} str - The input string to be converted to kebab case. | ||
* @returns {string} - The input string converted to kebab case. | ||
* | ||
* @example | ||
* const result = toKebabCase("Hello World"); | ||
* console.log(result); // Output: "hello-world" | ||
* | ||
* @example | ||
* const result = toKebabCase("CamelCase Example"); | ||
* console.log(result); // Output: "camelcase-example" | ||
*/ | ||
export const toKebabCase = (str) => str.replace(/\s+/g, '-').toLowerCase(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.