mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
change index page
This commit is contained in:
@@ -49,7 +49,7 @@ class App extends Component {
|
|||||||
draftCounts: 0,
|
draftCounts: 0,
|
||||||
draftList:[],
|
draftList:[],
|
||||||
isLoadingDraft: true,
|
isLoadingDraft: true,
|
||||||
currentTab: 'dashboard',
|
currentTab: '/',
|
||||||
};
|
};
|
||||||
this.currentTab = ''; //just for refresh brower
|
this.currentTab = ''; //just for refresh brower
|
||||||
}
|
}
|
||||||
@@ -112,9 +112,9 @@ class App extends Component {
|
|||||||
return (
|
return (
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} draftCounts={this.state.draftCounts} />
|
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} draftCounts={this.state.draftCounts} />
|
||||||
|
|
||||||
<MainPanel>
|
<MainPanel>
|
||||||
<Router>
|
<Router>
|
||||||
|
<MyLibraries path={ siteRoot } onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
|
||||||
<FilesActivitiesWrapper path={siteRoot + 'dashboard'} onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
|
<FilesActivitiesWrapper path={siteRoot + 'dashboard'} onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
|
||||||
<DraftsViewWrapper path={siteRoot + 'drafts'}
|
<DraftsViewWrapper path={siteRoot + 'drafts'}
|
||||||
currentTab={currentTab}
|
currentTab={currentTab}
|
||||||
|
@@ -135,7 +135,8 @@ urlpatterns = [
|
|||||||
url(r'^shib-login/', shib_login, name="shib_login"),
|
url(r'^shib-login/', shib_login, name="shib_login"),
|
||||||
url(r'^oauth/', include('seahub.oauth.urls')),
|
url(r'^oauth/', include('seahub.oauth.urls')),
|
||||||
|
|
||||||
url(r'^$', libraries, name='libraries'),
|
url(r'^home/$', libraries, name='libraries'),
|
||||||
|
url(r'^$', react_fake_view, name='react_fake_view'),
|
||||||
#url(r'^home/$', direct_to_template, { 'template': 'home.html' } ),
|
#url(r'^home/$', direct_to_template, { 'template': 'home.html' } ),
|
||||||
url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
|
url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
|
||||||
url(r'^home/wiki/$', personal_wiki, name='personal_wiki'),
|
url(r'^home/wiki/$', personal_wiki, name='personal_wiki'),
|
||||||
|
Reference in New Issue
Block a user