mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-27 06:36:08 +00:00
Merge pull request #3 from seigler/topnav
Bounty: Enable fixed ordering of top nav items
This commit is contained in:
commit
214b17da26
4 changed files with 11 additions and 7 deletions
|
@ -2,6 +2,7 @@ title: Docs
|
||||||
color: green
|
color: green
|
||||||
icon: stroke_decentralization
|
icon: stroke_decentralization
|
||||||
description: Dash Platorm Documentation resources.
|
description: Dash Platorm Documentation resources.
|
||||||
|
weight: 10
|
||||||
content:
|
content:
|
||||||
- title: DashJS
|
- title: DashJS
|
||||||
website: https://dashevo.github.io/DashJS
|
website: https://dashevo.github.io/DashJS
|
||||||
|
|
|
@ -2,6 +2,7 @@ title: Tools
|
||||||
color: yellow
|
color: yellow
|
||||||
icon: stroke_code
|
icon: stroke_code
|
||||||
description: Tools for developing with Dash Platform.
|
description: Tools for developing with Dash Platform.
|
||||||
|
weight: 6
|
||||||
content:
|
content:
|
||||||
- title: EvoNet Faucet
|
- title: EvoNet Faucet
|
||||||
website: http://devnet-evonet-1117662964.us-west-2.elb.amazonaws.com/
|
website: http://devnet-evonet-1117662964.us-west-2.elb.amazonaws.com/
|
||||||
|
|
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -184,9 +184,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acorn": {
|
"acorn": {
|
||||||
"version": "7.1.0",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz",
|
||||||
"integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==",
|
"integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"acorn-jsx": {
|
"acorn-jsx": {
|
||||||
|
@ -3750,9 +3750,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"kind-of": {
|
"kind-of": {
|
||||||
"version": "6.0.2",
|
"version": "6.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
|
||||||
"integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
|
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"labeled-stream-splicer": {
|
"labeled-stream-splicer": {
|
||||||
|
|
|
@ -13,10 +13,11 @@ module.exports = fs.readdirSync(dir)
|
||||||
file.slug = slugify(file.title)
|
file.slug = slugify(file.title)
|
||||||
file.type = 'category'
|
file.type = 'category'
|
||||||
|
|
||||||
file.content = file.content.map(({ title, description, ...meta }, i) => ({
|
file.content = file.content.map(({ title, description, weight, ...meta }, i) => ({
|
||||||
...meta,
|
...meta,
|
||||||
title: trimIfExists(title),
|
title: trimIfExists(title),
|
||||||
description: trimIfExists(description),
|
description: trimIfExists(description),
|
||||||
|
weight: weight,
|
||||||
category: file.slug,
|
category: file.slug,
|
||||||
color: file.color,
|
color: file.color,
|
||||||
index: i
|
index: i
|
||||||
|
@ -32,3 +33,4 @@ module.exports = fs.readdirSync(dir)
|
||||||
return file
|
return file
|
||||||
})
|
})
|
||||||
.sort((a, b) => sortAbc(a.title, b.title))
|
.sort((a, b) => sortAbc(a.title, b.title))
|
||||||
|
.sort((a, b) => sortInv(a.weight, b.weight))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue