mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 03:41:12 +00:00
feat: wiki-side-panel-menu
This commit is contained in:
@@ -43,8 +43,21 @@ const getIconURL = (repoId, fileName) => {
|
||||
return serviceURL + '/lib/' + repoId + '/file/_Internal/Wiki/Icon/' + fileName + '?raw=1';
|
||||
};
|
||||
|
||||
const getCurrentPageConfig = (pages,pageId) => {
|
||||
const getCurrentPageConfig = (pages, pageId) => {
|
||||
return pages.filter(page => page.id === pageId)[0];
|
||||
};
|
||||
|
||||
export { generatorBase64Code, generateUniqueId, isObjectNotEmpty, getIconURL, getCurrentPageConfig };
|
||||
const getWikPageLink = (pageId) => {
|
||||
const { origin, pathname } = window.location;
|
||||
|
||||
return `${origin}${pathname}?page_id=${pageId}`;
|
||||
};
|
||||
|
||||
export {
|
||||
generatorBase64Code,
|
||||
generateUniqueId,
|
||||
isObjectNotEmpty,
|
||||
getIconURL,
|
||||
getCurrentPageConfig,
|
||||
getWikPageLink,
|
||||
};
|
||||
|
Reference in New Issue
Block a user