1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

12.0 feature edit wiki page (#6033)

* 01 add static media files

* 02 edit wiki page

* 03 remove useless icons and support edit name and icon

* 04 support wiki nav

* delete useless codes

* optimize feature edit wiki

* 05 add wiki-api and save config

* 06 change some UI

* delete useless codes

* delete useless codes

* fix edit wiki url

* change js path

* change icon size

* fix

* fix fn name and do not show tree view

* fix edit url

* save config to index.json

* fix new file name check

* hide icon and library name

* remove useless svgs

* remove useless svgs

---------

Co-authored-by: ‘JoinTyang’ <yangtong1009@163.com>
Co-authored-by: JoinTyang <41655440+JoinTyang@users.noreply.github.com>
This commit is contained in:
Michael An
2024-05-06 14:24:39 +08:00
committed by GitHub
parent 1580206f7e
commit fa1157ce8a
73 changed files with 5143 additions and 62 deletions

View File

@@ -15,6 +15,7 @@ const propTypes = {
fileSuffixes: PropTypes.array,
selectedItemInfo: PropTypes.object,
currentPath: PropTypes.string,
hideLibraryName: PropTypes.bool,
};
class RepoListView extends React.Component {
@@ -25,8 +26,12 @@ class RepoListView extends React.Component {
repoList = [];
repoList.push(currentRepoInfo);
}
let style = {};
if (this.props.hideLibraryName) {
style = { marginLeft: '-44px' };
}
return (
<ul className="list-view-content file-chooser-item">
<ul className="list-view-content file-chooser-item" style={style}>
{repoList.length > 0 && repoList.map((repoItem, index) => {
return (
<RepoListItem
@@ -42,6 +47,7 @@ class RepoListView extends React.Component {
isShowFile={this.props.isShowFile}
fileSuffixes={this.props.fileSuffixes}
selectedItemInfo={this.props.selectedItemInfo}
hideLibraryName={this.props.hideLibraryName}
/>
);
})}