Released windows auth, connect to ES.Services.
This commit is contained in:
parent
2569e55609
commit
d29c347ff4
294 changed files with 329583 additions and 2315 deletions
|
@ -0,0 +1,45 @@
|
|||
@using WebsitePanel.WebDav.Core.Client
|
||||
@model WebsitePanel.WebDavPortal.Models.ModelForWebDav
|
||||
@{
|
||||
ViewBag.Title = (string.IsNullOrEmpty(Model.UrlSuffix) ? "root" : Model.UrlSuffix);
|
||||
}
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
@Scripts.Render("~/bundles/appScripts")
|
||||
|
||||
<script>
|
||||
recalculateResourseHeight();
|
||||
</script>
|
||||
|
||||
<br />
|
||||
@if (Model != null && !string.IsNullOrEmpty(Model.Error))
|
||||
{
|
||||
<span class="col-sm-offset-1" style="color: #A94442; font-weight: bold;">@Model.Error</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="container">
|
||||
@if (Model != null)
|
||||
{
|
||||
const string header = "root";
|
||||
<a href="/root/" class="btn btn-primary btn-sm active" role="button">@header</a>
|
||||
string[] elements = Model.UrlSuffix.Split(new[] {"/"}, StringSplitOptions.RemoveEmptyEntries);
|
||||
for (int i = 0; i < elements.Length; i++)
|
||||
{
|
||||
<span class="glyphicon glyphicon-chevron-right" style="top: 2px;"></span>
|
||||
<a href="@string.Concat("/root/", string.Join("/", elements.Take(i + 1)))" class="btn btn-primary btn-sm active" role="button">@elements[i]</a>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<br />
|
||||
<div class="container">
|
||||
<div class="row" id="resourcesDiv">
|
||||
@if (Model != null)
|
||||
{
|
||||
foreach (IHierarchyItem element in Model.Items)
|
||||
{
|
||||
@Html.Partial("_ResoursePartial", element)
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
@model WebsitePanel.WebDavPortal.Models.OfficeOnlineModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>@Model.FileName</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src='@Model.Url' width="100%" height="100%" frameborder='0' style="bottom: 0px; left: 0px; position: fixed; right: 0px; top: 0px;">
|
||||
This is an embedded
|
||||
<a target='_blank' href='http://office.com'>Microsoft Office</a> document, powered by
|
||||
<a target='_blank' href='http://office.com/webapps'>Office Web Apps</a>.
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,6 @@
|
|||
@model IEnumerable<WebsitePanel.WebDav.Core.Client.IHierarchyItem>
|
||||
|
||||
@foreach (var element in Model)
|
||||
{
|
||||
@Html.Partial("_ResoursePartial", element)
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
@using WebsitePanel.WebDav.Core.Client
|
||||
@using WebsitePanel.WebDavPortal.Config
|
||||
@using WebsitePanel.WebDavPortal.FileOperations
|
||||
@model IHierarchyItem
|
||||
|
||||
@{
|
||||
string actualPath = Model.ItemType == ItemType.Folder ? "~/Content/Images/folder_100x100.png" : WebDavAppConfigManager.Instance.FileIcons[Path.GetExtension(Model.DisplayName.Trim('/'))];
|
||||
string name = Model.ItemType == ItemType.Folder ? Model.DisplayName.Trim('/') : Path.GetFileNameWithoutExtension(Model.DisplayName);
|
||||
var opener = new FileOpenerManager()[Path.GetExtension(Model.DisplayName)];
|
||||
bool isTargetBlank;
|
||||
string href = "/";
|
||||
switch (opener)
|
||||
{
|
||||
case FileOpenerType.OfficeOnline:
|
||||
isTargetBlank = true;
|
||||
href = string.Concat(Url.Action("ShowOfficeDocument", "FileSystem"), Model.DisplayName);
|
||||
break;
|
||||
default:
|
||||
isTargetBlank = false;
|
||||
href = string.Concat(Url.Action("ShowContent", "FileSystem"), Model.DisplayName);
|
||||
break;
|
||||
}
|
||||
}
|
||||
<div class="col-sm-2 element-container">
|
||||
<a href="@href" @Html.Raw(isTargetBlank ? "target=\"_blank\"" : string.Empty) title="@Model.DisplayName.Trim('/')">
|
||||
<img class="icon-size" src="@Url.Content(actualPath)" />
|
||||
<p style="word-wrap: break-word;">@name</p>
|
||||
</a>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue