Commit 1483afd
[DO-525] Implement breadcrumbs (#38)
* define breadcrumbs and call in slug
* create an array of parents paths for current pg
* create promises array with path and titles
* add v-for to slug , and use Nuxtlink
* replace div with span
* adjust spacing and add a /
* added if statement for when in home page
* remove button
* remove slash
* improve formatting
* remove variable route
* update names
* update loop for creating directory
* return breadcrumbs instead of promises
* change name to pathDirectory and update comments
* fix error , unable to access docs in local
* underline and text color for breadcrumbs
* change from getBreadCrumbs to useBreadCrumbs
* remove last crumb to show only previous paths
* removed utils file, created composables file
* display current page, separator and lintfix
* adjust spacing
* add the home icon to slug
* use icon separator, default size for home
* Update composables/useBreadcrumbs.ts
Co-authored-by: Nikolai Dorofeev <[email protected]>
* assign variable to useAsyncData
* add template tag to separate v-for and v-if
* convert breadcrumbs into synchronous function
* remove first element of path array
* display crumbs
* add icon border , adjust spacing
* fix type check error
* add border with hover in color accent
* border color black
* border to nuxt link instead add bottom spacing
* border color gray 600
* Apply suggestions from code review
improve home icon's border , transform data into new variables
Co-authored-by: Nikolai Dorofeev <[email protected]>
* fix error _path doesnot exist
* create breadcrumbs component
* Add breadcrumbs component to slug
* pass a prop to the component
* add a required=true
* remove unnecessary variables
* lint fix, remove comments
* remove unnecessary div
* Apply suggestions from code review
remove comments , add v-if statement to the Breadcrumbs component when assigning prop
Co-authored-by: Nikolai Dorofeev <[email protected]>
* update to w to new variable name
* remove v-if from vue comp, as v-if is in props
* fix bug by removing all empty strings
* Update composables/breadcrumbs.ts
Co-authored-by: Nikolai Dorofeev <[email protected]>
---------
Co-authored-by: Nikolai Dorofeev <[email protected]>1 parent c8223fe commit 1483afd
File tree
3 files changed
+114
-1
lines changed- components/ep/layout
- composables
- pages
3 files changed
+114
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | | - | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments