Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
162 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Olive.Mvc; | ||
using vm = ViewModel; | ||
|
||
namespace ViewComponents | ||
{ | ||
|
||
|
||
public partial class ProjectFrameModule : ViewComponent | ||
{ | ||
public async Task<IViewComponentResult> InvokeAsync(vm.ProjectFrameModule info) | ||
{ | ||
return View(await Bind<vm.ProjectFrameModule>(info)); | ||
} | ||
} | ||
} | ||
|
||
namespace Controllers | ||
{ | ||
|
||
|
||
public partial class ProjectFrameModuleController : BaseController | ||
{ | ||
} | ||
} | ||
|
||
namespace ViewModel | ||
{ | ||
|
||
|
||
[BindingController(typeof(Controllers.ProjectFrameModuleController))] | ||
public partial class ProjectFrameModule : IViewModel | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Olive.Mvc; | ||
using vm = ViewModel; | ||
|
||
namespace ViewComponents | ||
{ | ||
|
||
#pragma warning disable | ||
public partial class SideBarRightModule : ViewComponent | ||
{ | ||
public async Task<IViewComponentResult> InvokeAsync(vm.SideBarRightModule info) | ||
{ | ||
return View(await Bind<vm.SideBarRightModule>(info)); | ||
} | ||
} | ||
} | ||
|
||
namespace Controllers | ||
{ | ||
|
||
#pragma warning disable | ||
public partial class SideBarRightModuleController : BaseController | ||
{ | ||
} | ||
} | ||
|
||
namespace ViewModel | ||
{ | ||
|
||
#pragma warning disable | ||
[BindingController(typeof(Controllers.SideBarRightModuleController))] | ||
public partial class SideBarRightModule : IViewModel | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Olive.Mvc; | ||
using vm = ViewModel; | ||
|
||
namespace ViewComponents | ||
{ | ||
|
||
|
||
public partial class TaskFrameModule : ViewComponent | ||
{ | ||
public async Task<IViewComponentResult> InvokeAsync(vm.TaskFrameModule info) | ||
{ | ||
return View(await Bind<vm.TaskFrameModule>(info)); | ||
} | ||
} | ||
} | ||
|
||
namespace Controllers | ||
{ | ||
|
||
|
||
public partial class TaskFrameModuleController : BaseController | ||
{ | ||
} | ||
} | ||
|
||
namespace ViewModel | ||
{ | ||
|
||
|
||
[BindingController(typeof(Controllers.TaskFrameModuleController))] | ||
public partial class TaskFrameModule : IViewModel | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Views/Modules/Components/ProjectFrameModule/Default.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@model ViewModel.ProjectFrameModule | ||
@(Layout = null) | ||
<!-- «Start| TaskFrameModule» --> | ||
<div data-module="ProjectFrameModule" class="w-100"> | ||
@Html.StartupActionsJson() | ||
<div id='projectiFram-container' | ||
data-src='@(Service.FindByName("Projects").BaseUrl)/recent-projects' > | ||
@*<button type='button' id='taskBarCollapse' class='navbar-btn d-none d-lg-block @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "collapse" : string.Empty ) '> | ||
<i class='fa @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "fa-chevron-left" : "fa-chevron-right")' aria-hidden='true'></i> | ||
</button>*@ | ||
<div class='module-content'> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- «End| TaskFrameModule» --> |
15 changes: 15 additions & 0 deletions
15
Views/Modules/Components/SideBarRightModule/Default.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@model ViewModel.SideBarRightModule | ||
@(Layout = null) | ||
|
||
<!-- «Start| SideBarRightModule» --> | ||
<div data-module="SideBarRightModule" class="task-bar d-none d-lg-flex p-0 @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "collapsed" : string.Empty )"> | ||
@Html.StartupActionsJson() | ||
<button type='button' id='taskBarCollapse' class='navbar-btn d-none d-lg-block @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "collapse" : string.Empty ) '> | ||
<i class='fa @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "fa-chevron-left" : "fa-chevron-right")' aria-hidden='true'></i> | ||
</button> | ||
@(await Component.InvokeAsync<ProjectFrameModule>()) | ||
@(await Component.InvokeAsync<TaskFrameModule>()) | ||
|
||
</div> | ||
<!-- «End| SideBarRightModule» --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@model ViewModel.TaskFrameModule | ||
@(Layout = null) | ||
<!-- «Start| TaskFrameModule» --> | ||
<div data-module="TaskFrameModule" > | ||
@Html.StartupActionsJson() | ||
<div id='taskiFram-container' | ||
data-src='@(Service.FindByName("Tasks").BaseUrl)/widget-my-priority/@User.GetId()' > | ||
@*<button type='button' id='taskBarCollapse' class='navbar-btn d-none d-lg-block @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "collapse" : string.Empty ) '> | ||
<i class='fa @(Request.Cookies[".task-bar"].OrEmpty() == "collapsed" ? "fa-chevron-left" : "fa-chevron-right")' aria-hidden='true'></i> | ||
</button>*@ | ||
<div class='module-content'> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- «End| TaskFrameModule» --> |