-
Notifications
You must be signed in to change notification settings - Fork 5
Fix doc wording/clarity and stabilize Playground date/link identifiers #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,8 +39,9 @@ import { useI18nLib } from '@/locales' | |
|
|
||
| const { t } = useI18nLib() | ||
|
|
||
| const startDate = new Date(2026, 0, 1) | ||
| const endDate = new Date(2026, 1, 28) | ||
| const currentYear = new Date().getFullYear() | ||
| const startDate = new Date(currentYear, 0, 1) | ||
| const endDate = new Date(currentYear, 1, 28) | ||
|
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When this demo is opened in any year other than 2026, these bounds use Useful? React with 👍 / 👎. |
||
| const okLinkClass = '[stroke-dasharray:2,5]' | ||
| const linkCases = [ | ||
| { type: 'start-start', fromIndex: 2, toIndex: 0, color: 'green', class: okLinkClass }, | ||
|
|
@@ -188,7 +189,7 @@ const links = computed<GanttChartLinkData[]>(() => { | |
| ) | ||
| if (from?.id && to?.id) { | ||
| linkPairs.push({ | ||
| id: linkCase.type, | ||
| id: `${linkCase.fromIndex}-${linkCase.toIndex}-${linkCase.type}`, | ||
| fromId: from.id, | ||
| toId: to.id, | ||
| type: linkCase.type, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added explanation says
depthis the container's nesting level, but the container code passes it tomenuItemsFromRoute(..., depth), where it controls how many descendant route levels to include from the current container (1is immediate children). A top-levelSideMenuContainerthat should include grandchildren therefore needsdepth: 2—as the example below does—so following this text would hide nested entries rather than configure nested containers correctly.Useful? React with 👍 / 👎.