forked from Teknikode/Teknik
24 changed files with 9561 additions and 2136 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
pre { |
||||
background-color: #ffffff; |
||||
} |
||||
|
||||
pre code, |
||||
pre .line-number { |
||||
/* Ukuran line-height antara teks di dalam tag <code> dan <span class="line-number"> harus sama! */ |
||||
font:normal normal 12px/14px "Courier New",Courier,Monospace; |
||||
color:black; |
||||
display:block; |
||||
} |
||||
|
||||
pre .line-number { |
||||
float:left; |
||||
margin:0 1em 0 -1em; |
||||
padding-top: 5px; |
||||
border-right:1px solid; |
||||
text-align:right; |
||||
} |
||||
|
||||
pre .line-number span { |
||||
display:block; |
||||
padding:0 .5em 0 1em; |
||||
} |
||||
|
||||
pre .cl { |
||||
display:block; |
||||
clear:both; |
||||
} |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Linq; |
||||
using System.Web; |
||||
using System.Web.Mvc; |
||||
using Teknik.ViewModels; |
||||
|
||||
namespace Teknik.Areas.Paste.ViewModels |
||||
{ |
||||
public class PasteCreateViewModel : ViewModelBase |
||||
{ |
||||
[Required] |
||||
[AllowHtml] |
||||
public string Content { get; set; } |
||||
|
||||
public string Title { get; set; } |
||||
|
||||
public string Syntax { get; set; } |
||||
|
||||
public string Password { get; set; } |
||||
|
||||
public bool Hide { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,41 @@
@@ -0,0 +1,41 @@
|
||||
@model Teknik.Areas.Paste.ViewModels.PasteViewModel |
||||
|
||||
@Styles.Render("~/Content/paste") |
||||
@Scripts.Render("~/bundles/paste") |
||||
|
||||
@{ |
||||
string syntax = string.Empty; |
||||
if (Model.Syntax != "auto-select") |
||||
{ |
||||
syntax = Model.Syntax; |
||||
} |
||||
} |
||||
<div class="container"> |
||||
<div class="row text-center"> |
||||
<div class="col-sm-12 text-center"> |
||||
<h2><b>@((string.IsNullOrEmpty(Model.Title)) ? "Untitled" : Model.Title)</b> <small>- Posted on @Model.DatePosted.ToString("dddd, MMMM d, yyyy") at @Model.DatePosted.ToString("h:mm:ss tt") - Format: @Model.Syntax</small></h2> |
||||
</div> |
||||
</div> |
||||
<hr /> |
||||
<div class="row"> |
||||
<div class="col-sm-1 col-sm-offset-1 text-center"> |
||||
<a class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Simple", new { url = Model.Url })">Simple</a> |
||||
</div> |
||||
<div class="col-sm-1 text-center"> |
||||
<a class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Raw", new { url = Model.Url })">Raw</a> |
||||
</div> |
||||
<div class="col-sm-1 text-center"> |
||||
<a class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Download", new { url = Model.Url })">Download</a> |
||||
</div> |
||||
</div> |
||||
<br /> |
||||
<div class="row"> |
||||
<div class="col-sm-10 col-sm-offset-1"> |
||||
<pre><code class="@syntax">@Model.Content</code></pre> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<script> |
||||
hljs.initHighlighting(); |
||||
</script> |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
@model Teknik.Areas.Paste.ViewModels.PasteViewModel |
||||
@{ |
||||
Layout = ""; |
||||
string syntax = string.Empty; |
||||
if (Model.Syntax != "auto-select") |
||||
{ |
||||
syntax = Model.Syntax; |
||||
} |
||||
} |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8" /> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
||||
<meta name="description" content="@Model.Config.Description" /> |
||||
<meta name="author" content="@Model.Config.Author" /> |
||||
<title>@ViewBag.Title</title> |
||||
<link rel="shortcut icon" href="/Images/favicon.ico" type="image/x-icon" /> |
||||
|
||||
@Styles.Render("~/Content/paste") |
||||
@Scripts.Render("~/bundles/highlight") |
||||
|
||||
</head> |
||||
<body data-twttr-rendered="true"> |
||||
<pre><code class="@syntax">@Model.Content</code></pre> |
||||
<script> |
||||
hljs.initHighlightingOnLoad(); |
||||
|
||||
function pageloadStopTimer() { } |
||||
</script> |
||||
</body> |
||||
</html> |
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,88 +1,88 @@
@@ -1,88 +1,88 @@
|
||||
<?xml version="1.0"?> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!-- |
||||
For more information on how to configure your ASP.NET application, please visit |
||||
http://go.microsoft.com/fwlink/?LinkId=301880 |
||||
--> |
||||
<configuration> |
||||
<configSections> |
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> |
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
||||
</configSections> |
||||
<connectionStrings configSource="ConnectionStrings.config"/> |
||||
<connectionStrings configSource="ConnectionStrings.config" /> |
||||
<!-- Create ConnectionStrings.config and add your connection string--> |
||||
<appSettings> |
||||
<add key="webpages:Version" value="3.0.0.0"/> |
||||
<add key="webpages:Enabled" value="false"/> |
||||
<add key="ClientValidationEnabled" value="true"/> |
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true"/> |
||||
<add key="RouteDebugger:Enabled" value="false"/> |
||||
<add key="webpages:Version" value="3.0.0.0" /> |
||||
<add key="webpages:Enabled" value="false" /> |
||||
<add key="ClientValidationEnabled" value="true" /> |
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" /> |
||||
<add key="RouteDebugger:Enabled" value="false" /> |
||||
</appSettings> |
||||
<system.web> |
||||
<customErrors mode="Off"/> |
||||
<authentication mode="Forms"/> |
||||
<compilation debug="true" targetFramework="4.5.2"/> |
||||
<httpRuntime targetFramework="4.5.2" maxRequestLength="1048576"/> |
||||
<pages buffer="true" enableViewState="false"/> |
||||
<customErrors mode="Off" /> |
||||
<authentication mode="Forms" /> |
||||
<compilation debug="true" targetFramework="4.5.2" /> |
||||
<httpRuntime targetFramework="4.5.2" maxRequestLength="1048576" /> |
||||
<pages buffer="true" enableViewState="false" /> |
||||
</system.web> |
||||
<system.webServer> |
||||
<modules> |
||||
<remove name="FormsAuthentication"/> |
||||
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"/> |
||||
<add name="PerfModule" type="Teknik.Modules.PerformanceMonitorModule, Teknik"/> |
||||
<remove name="UrlRoutingModule-4.0"/> |
||||
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition=""/> |
||||
<remove name="FormsAuthentication" /> |
||||
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" /> |
||||
<add name="PerfModule" type="Teknik.Modules.PerformanceMonitorModule, Teknik" /> |
||||
<remove name="UrlRoutingModule-4.0" /> |
||||
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" /> |
||||
</modules> |
||||
<staticContent> |
||||
<mimeMap fileExtension="woff" mimeType="application/font-woff"/> |
||||
<mimeMap fileExtension="woff2" mimeType="application/font-woff"/> |
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public"/> |
||||
<mimeMap fileExtension="woff" mimeType="application/font-woff" /> |
||||
<mimeMap fileExtension="woff2" mimeType="application/font-woff" /> |
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" /> |
||||
</staticContent> |
||||
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/> |
||||
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" /> |
||||
<security> |
||||
<requestFiltering> |
||||
<requestLimits maxAllowedContentLength="1073741824"/> |
||||
<requestLimits maxAllowedContentLength="1073741824" /> |
||||
</requestFiltering> |
||||
</security> |
||||
</system.webServer> |
||||
<runtime> |
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/> |
||||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0"/> |
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> |
||||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/> |
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/> |
||||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /> |
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/> |
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/> |
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /> |
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/> |
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/> |
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> |
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/> |
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/> |
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> |
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/> |
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0"/> |
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> |
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> |
||||
</dependentAssembly> |
||||
<dependentAssembly> |
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/> |
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/> |
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /> |
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> |
||||
</dependentAssembly> |
||||
</assemblyBinding> |
||||
</runtime> |
||||
<entityFramework> |
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> |
||||
<parameters> |
||||
<parameter value="mssqllocaldb"/> |
||||
<parameter value="mssqllocaldb" /> |
||||
</parameters> |
||||
</defaultConnectionFactory> |
||||
<providers> |
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> |
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
||||
</providers> |
||||
</entityFramework> |
||||
</configuration> |
Loading…
Reference in new issue