mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 15:35:25 +02:00
change commentaries
This commit is contained in:
parent
bff4dde56a
commit
a2796f55f5
1 changed files with 7 additions and 2 deletions
|
@ -42,8 +42,10 @@ class Pages {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @static
|
||||||
* Return all pages without children pages
|
* Return all pages without children pages
|
||||||
*
|
*
|
||||||
|
* @param {string} parent - id of current page
|
||||||
* @returns {Promise<Page[]>}
|
* @returns {Promise<Page[]>}
|
||||||
*/
|
*/
|
||||||
static async getWithoutChildren(parent) {
|
static async getWithoutChildren(parent) {
|
||||||
|
@ -53,9 +55,12 @@ class Pages {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change wrong pages to null
|
* @static
|
||||||
|
* Set all children elements to null
|
||||||
*
|
*
|
||||||
* @returns page[]
|
* @param {Array<?Page>} pagesAvailable - Array of all pages
|
||||||
|
* @param {string} parent - id of parent page
|
||||||
|
* @returns {Array<?Page>}
|
||||||
*/
|
*/
|
||||||
static removeChildren(pagesAvailable, parent) {
|
static removeChildren(pagesAvailable, parent) {
|
||||||
pagesAvailable.forEach(async (item, index) => {
|
pagesAvailable.forEach(async (item, index) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue