1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Added some theme files.

This commit is contained in:
Uncled1023 2016-02-25 00:28:41 -08:00
parent 0ac5c08485
commit 4cd88265b7
12 changed files with 10145 additions and 6 deletions

View File

@ -162,7 +162,7 @@ namespace Teknik.Areas.API.Controllers
db.ShortenedUrls.Add(newUrl);
db.SaveChanges();
string shortUrl = string.Format("http://{0}/{1}", Config.ShortenerConfig.ShortenerHost, newUrl.ShortUrl);
string shortUrl = string.Format("{0}://{1}/{2}", HttpContext.Request.Url.Scheme, Config.ShortenerConfig.ShortenerHost, newUrl.ShortUrl);
if (Config.DevEnvironment)
{
shortUrl = Url.SubRouteUrl("shortened", "Shortener.View", new { url = newUrl.ShortUrl });

View File

@ -56,7 +56,7 @@ namespace Teknik.Areas.Shortener.Controllers
db.ShortenedUrls.Add(newUrl);
db.SaveChanges();
string shortUrl = string.Format("http://{0}/{1}", Config.ShortenerConfig.ShortenerHost, newUrl.ShortUrl);
string shortUrl = string.Format("{0}://{1}/{2}", HttpContext.Request.Url.Scheme, Config.ShortenerConfig.ShortenerHost, newUrl.ShortUrl);
if (Config.DevEnvironment)
{
shortUrl = Url.SubRouteUrl("shortened", "Shortener.View", new { url = newUrl.ShortUrl });

View File

@ -0,0 +1,187 @@
.btn-default .badge,
.btn-primary .badge,
.btn-success .badge,
.btn-info .badge,
.btn-warning .badge,
.btn-danger .badge {
text-shadow: none;
}
.btn:active,
.btn.active {
background-image: none;
}
.btn-default {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #bbbbbb;
border-color: #ccc;
}
.btn-default:hover,
.btn-default:focus {
background-color: #bbbbbb;
background-position: 0 -15px;
}
.btn-default:active,
.btn-default.active {
background-color: #bbbbbb;
border-color: #bbbbbb;
}
.btn-default.disabled,
.btn-default:disabled,
.btn-default[disabled] {
background-color: #bbbbbb;
background-image: none;
}
.btn-primary {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #00aaaa;
}
.btn-primary:hover,
.btn-primary:focus {
background-color: #00aaaa;
background-position: 0 -15px;
}
.btn-primary:active,
.btn-primary.active {
background-color: #00aaaa;
border-color: #00aaaa;
}
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary[disabled] {
background-color: #00aaaa;
background-image: none;
}
.btn-success {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #00aa00;
}
.btn-success:hover,
.btn-success:focus {
background-color: #00aa00;
background-position: 0 -15px;
}
.btn-success:active,
.btn-success.active {
background-color: #00aa00;
border-color: #00aa00;
}
.btn-success.disabled,
.btn-success:disabled,
.btn-success[disabled] {
background-color: #00aa00;
background-image: none;
}
.btn-info {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #000000;
}
.btn-info:hover,
.btn-info:focus {
background-color: #000000;
background-position: 0 -15px;
}
.btn-info:active,
.btn-info.active {
background-color: #000000;
border-color: #000000;
}
.btn-info.disabled,
.btn-info:disabled,
.btn-info[disabled] {
background-color: #000000;
background-image: none;
}
.btn-warning {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #aa00aa;
}
.btn-warning:hover,
.btn-warning:focus {
background-color: #aa00aa;
background-position: 0 -15px;
}
.btn-warning:active,
.btn-warning.active {
background-color: #aa00aa;
border-color: #aa00aa;
}
.btn-warning.disabled,
.btn-warning:disabled,
.btn-warning[disabled] {
background-color: #aa00aa;
background-image: none;
}
.btn-danger {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
background-repeat: repeat-x;
border-color: #aa0000;
}
.btn-danger:hover,
.btn-danger:focus {
background-color: #aa0000;
background-position: 0 -15px;
}
.btn-danger:active,
.btn-danger.active {
background-color: #aa0000;
border-color: #aa0000;
}
.btn-danger.disabled,
.btn-danger:disabled,
.btn-danger[disabled] {
background-color: #aa0000;
background-image: none;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
background-color: #aa5500;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
background-color: #aa5500;
}
.navbar-default {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
.navbar-inverse {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
@media (max-width: 768px) {
.navbar .navbar-nav .open .dropdown-menu > .active > a,
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #fff;
}
}
.alert-success {
border-color: #00aa00;
}
.alert-info {
border-color: #000000;
}
.alert-warning {
border-color: #aa00aa;
}
.alert-danger {
border-color: #000000;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
border-color: #aa5500;
}
.list-group-item.active .badge,
.list-group-item.active:hover .badge,
.list-group-item.active:focus .badge {
text-shadow: none;
}
.well {
border-color: #00aa00;
}
/*# sourceMappingURL=bootstrap-theme.css.map */

5956
Teknik/Content/Bootstra.386/bootstrap.css vendored Normal file

File diff suppressed because it is too large Load Diff

1209
Teknik/Content/bootstrap-flat-extras.css vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

338
Teknik/Content/bootstrap-flat.css vendored Normal file
View File

@ -0,0 +1,338 @@
/*!
* Flat styles for Bootstrap v3.0.0
*
* Copyright 2013 Scott Dorman
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @sdorman.
*/
.img-thumbnail {
border-radius: 0;
}
code,
pre {
border-radius: 0;
}
kbd {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.form-control {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.form-control:focus {
border-color: #66afe9;
outline: thin dotted #777777;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
-webkit-box-shadow: none;
box-shadow: none;
}
.form-group-sm .form-control,
.form-group-lg .form-control {
border-radius: 0;
}
.has-success .form-control,
.has-warning .form-control,
.has-error .form-control {
-webkit-box-shadow: none;
box-shadow: none;
}
.has-success .form-control:focus,
.has-warning .form-control:focus,
.has-error .form-control:focus {
outline: thin dotted #777777;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
-webkit-box-shadow: none;
box-shadow: none;
}
.input-sm,
.input-lg {
border-radius: 0;
}
.btn {
border-radius: 0;
}
.btn:active,
.btn.active {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-lg,
.btn-sm,
.btn-xs {
border-radius: 0;
}
.btn-group-lg > .btn,
.btn-group-sm > .btn,
.btn-group-xs > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
border-top-right-radius: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
border-bottom-left-radius: 0;
}
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: none;
box-shadow: none;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn,
.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
border-radius: 0;
}
.input-group-addon {
border-radius: 0;
}
.input-group-addon.input-sm,
.input-group-addon.input-lg {
border-radius: 0;
}
.dropdown-menu {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.nav-tabs > li > a {
border-radius: 0;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-radius: 0;
}
.nav-tabs-justified > li > a {
border-radius: 0;
}
.navbar {
border-radius: 0;
}
.modal-content {
-webkit-box-shadow: none;
box-shadow: none;
}
}
.nav-pills > li > a {
border-radius: 0;
}
.navbar-collapse {
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-toggle {
border-radius: 0;
}
.navbar-toggle .icon-bar {
border-radius: 0;
}
.navbar-form {
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.breadcrumb {
border-radius: 0;
}
.pagination {
border-radius: 0;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span,
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span,
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pager li > a,
.pager li > span {
border-radius: 0;
}
.label {
border-radius: 0;
}
.badge {
border-radius: 0;
}
.container .jumbotron {
border-radius: 0;
}
.thumbnail {
border-radius: 0;
}
.alert {
border-radius: 0;
}
.progress {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.list-group-item:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.panel {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
border-top-left-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
border-top-right-radius: 3px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
border-bottom-right-radius: 3px;
}
.panel-heading {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.panel-footer {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.panel-group .panel {
border-radius: 0;
}
.well {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.well-lg,
.well-sm {
border-radius: 0;
}
.close {
text-shadow: none;
}
.modal-content {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.tooltip-inner {
border-radius: 0;
}
.popover {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.popover-title {
border-radius: 0;
}
.carousel-control {
text-shadow: none;
}
.carousel-indicators li {
border-radius: 0;
}
.carousel-caption {
text-shadow: none;
}

10
Teknik/Content/bootstrap-flat.min.css vendored Normal file

File diff suppressed because one or more lines are too long

2419
Teknik/Scripts/Bootstra.386/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -293,6 +293,12 @@
<Content Include="Areas\Shortener\Scripts\Shortener.js" />
<Content Include="Areas\Upload\Scripts\Download.js" />
<Content Include="Content\audioplayer.css" />
<Content Include="Content\Bootstra.386\bootstrap-theme.css" />
<Content Include="Content\Bootstra.386\bootstrap.css" />
<Content Include="Content\bootstrap-flat-extras.css" />
<Content Include="Content\bootstrap-flat-extras.min.css" />
<Content Include="Content\bootstrap-flat.css" />
<Content Include="Content\bootstrap-flat.min.css" />
<Content Include="Content\bootstrap-switch\bootstrap2\bootstrap-switch.css" />
<Content Include="Content\bootstrap-switch\bootstrap2\bootstrap-switch.min.css" />
<Content Include="Content\bootstrap-switch\bootstrap3\bootstrap-switch.css" />
@ -369,6 +375,7 @@
<Content Include="Content\jquery.tocify.css" />
<Content Include="Scripts\audioplayer.min.js" />
<Content Include="Scripts\Blob.js" />
<Content Include="Scripts\Bootstra.386\bootstrap.js" />
<Content Include="Scripts\bootstrap-markdown.js" />
<Content Include="Scripts\bootstrap-switch.js" />
<Content Include="Scripts\bootstrap-switch.min.js" />
@ -582,7 +589,9 @@
<Folder Include="Areas\Upload\Views\Shared\" />
</ItemGroup>
<ItemGroup>
<Content Include="packages.config" />
<Content Include="packages.config">
<SubType>Designer</SubType>
</Content>
</ItemGroup>
<ItemGroup>
<COMReference Include="hMailServer">
@ -626,12 +635,12 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Import Project="..\packages\GitVersionTask.3.3.0\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.3.0\build\dotnet\GitVersionTask.targets')" />
<Import Project="..\packages\GitVersionTask.3.4.1\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.4.1\build\dotnet\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.3.3.0\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.3.0\build\dotnet\GitVersionTask.targets'))" />
<Error Condition="!Exists('..\packages\GitVersionTask.3.4.1\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.4.1\build\dotnet\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -2,11 +2,12 @@
<packages>
<package id="Antlr" version="3.5.0.2" targetFramework="net452" userInstalled="true" />
<package id="bootstrap" version="3.3.6" targetFramework="net452" userInstalled="true" />
<package id="Bootstrap.Flat" version="3.3.4" targetFramework="net452" />
<package id="Bootstrap.Switch" version="3.3.2.1" targetFramework="net452" />
<package id="BouncyCastle" version="1.7.0" targetFramework="net452" />
<package id="EntityFramework" version="6.1.3" targetFramework="net452" userInstalled="true" />
<package id="FontAwesome" version="4.4.0" targetFramework="net452" userInstalled="true" />
<package id="GitVersionTask" version="3.3.0" targetFramework="net452" developmentDependency="true" />
<package id="GitVersionTask" version="3.4.1" targetFramework="net452" developmentDependency="true" />
<package id="Inferno" version="1.1.0" targetFramework="net452" userInstalled="true" />
<package id="jQuery" version="2.2.0" targetFramework="net452" userInstalled="true" />
<package id="jQuery.Validation" version="1.14.0" targetFramework="net452" userInstalled="true" />