Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Template/Website/Controllers/Api/ApiController.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
using Domain;
using Microsoft.AspNetCore.Mvc;
using Olive.GlobalSearch;
using Olive.Mvc;
using Olive.Security;
using Olive.Web;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq;

namespace Controllers
{
[JwtAuthenticate]
public class ApiController : BaseController
{
}

}
}
2 changes: 1 addition & 1 deletion Template/Website/Website.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netcoreapp2.1</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<TypeScriptToolsVersion>2.8</TypeScriptToolsVersion>
<TypeScriptToolsVersion>3.1</TypeScriptToolsVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<TieredCompilation>true</TieredCompilation>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions Template/Website/wwwroot/scripts/appPage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Template/Website/wwwroot/styles/FrontEnd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import "imports/bootstrap-social";
@import "imports/print";
@import "controls/controls";
@import "controls/globalsearch.scss";

$footer-height: 90px;
$footer-top-margin: 30px;
Expand Down
92 changes: 92 additions & 0 deletions Template/Website/wwwroot/styles/controls/globalsearch.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/* Global Search Styles */
.global-search-panel {
padding: 0.5rem 1rem;
}

.global-search-result-panel {
position: absolute;
z-index: 99;
background-color: white;
width: 600px;
border-radius: 0 0 5px 5px;
border: solid thin #ddd;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.global-search-result-panel ul {
list-style-type: none;
margin: 0;
padding: 10px;
overflow-y: scroll;
}

.global-search-result-panel li {
margin-top: 10px;
}

.global-search-result-panel li:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
background-color: #f7f7f7;
}

.global-search-result-panel a {
color: black;
text-decoration: none;
}

.global-search-result-panel a:hover {
text-decoration: none;
}

.global-search-result-panel .item-div {
display: flex;
}

.global-search-result-panel .item-icon {
float: left;
}

.global-search-result-panel img {
width: 64px;
}

.global-search-result-panel .item-title-wrapper {
float: left;
margin: 0 0 0 10px;
}

.global-search-result-panel .item-title {
color: #333;
}

.global-search-result-panel .item-description {
color: #777;
}

.global-search-result-panel p {
text-wrap: normal;
}

.global-search-result-panel .summary {
color: #6b6b6b;
margin: auto;
background-color: #f5f5f5;
padding-left: 10px;
}

.global-search-result-panel .summary-element.success {
font-weight: lighter;
font-size: x-small;
}

.global-search-result-panel .summary-element.warning {
font-weight: lighter;
font-size: x-small;
color: #e38001;
}

.global-search-result-panel .summary-element.failed {
font-weight: lighter;
font-size: x-small;
color: #ad3535;
}