Parcourir la source

Added tool list help page and referenced it on Upload and Paste pages.

tags/2.0.3
Teknikode il y a 4 ans
Parent
révision
3215fdc230

+ 15
- 6
Teknik/Areas/Help/Controllers/HelpController.cs Voir le fichier

@@ -75,6 +75,15 @@ namespace Teknik.Areas.Help.Controllers
return View("~/Areas/Help/Views/Help/Mail.cshtml", model);
}

[TrackPageView]
[AllowAnonymous]
public ActionResult Markdown()
{
ViewBag.Title = "Markdown Help - " + Config.Title;
HelpViewModel model = new HelpViewModel();
return View("~/Areas/Help/Views/Help/Markdown.cshtml", model);
}

[TrackPageView]
[AllowAnonymous]
public ActionResult Mumble()
@@ -95,20 +104,20 @@ namespace Teknik.Areas.Help.Controllers

[TrackPageView]
[AllowAnonymous]
public ActionResult Upload()
public ActionResult Tools()
{
ViewBag.Title = "Upload Service Help - " + Config.Title;
ViewBag.Title = "Tool Help - " + Config.Title;
HelpViewModel model = new HelpViewModel();
return View("~/Areas/Help/Views/Help/Upload.cshtml", model);
return View("~/Areas/Help/Views/Help/Tools.cshtml", model);
}

[TrackPageView]
[AllowAnonymous]
public ActionResult Markdown()
public ActionResult Upload()
{
ViewBag.Title = "Markdown Help - " + Config.Title;
ViewBag.Title = "Upload Service Help - " + Config.Title;
HelpViewModel model = new HelpViewModel();
return View("~/Areas/Help/Views/Help/Markdown.cshtml", model);
return View("~/Areas/Help/Views/Help/Upload.cshtml", model);
}
}
}

+ 14
- 6
Teknik/Areas/Help/HelpAreaRegistration.cs Voir le fichier

@@ -66,6 +66,14 @@ namespace Teknik.Areas.Help
new { controller = "Help", action = "Mail" }, // Parameter defaults
new[] { typeof(Controllers.HelpController).Namespace }
);
context.MapSubdomainRoute(
"Help.Markdown", // Route name
new List<string>() { "help" }, // Subdomains
new List<string>() { config.Host }, // domains
"Markdown", // URL with parameters
new { controller = "Help", action = "Markdown" }, // Parameter defaults
new[] { typeof(Controllers.HelpController).Namespace }
);
context.MapSubdomainRoute(
"Help.Mumble", // Route name
new List<string>() { "help" }, // Subdomains
@@ -83,19 +91,19 @@ namespace Teknik.Areas.Help
new[] { typeof(Controllers.HelpController).Namespace }
);
context.MapSubdomainRoute(
"Help.Upload", // Route name
"Help.Tools", // Route name
new List<string>() { "help" }, // Subdomains
new List<string>() { config.Host }, // domains
"Upload", // URL with parameters
new { controller = "Help", action = "Upload" }, // Parameter defaults
"Tools", // URL with parameters
new { controller = "Help", action = "Tools" }, // Parameter defaults
new[] { typeof(Controllers.HelpController).Namespace }
);
context.MapSubdomainRoute(
"Help.Markdown", // Route name
"Help.Upload", // Route name
new List<string>() { "help" }, // Subdomains
new List<string>() { config.Host }, // domains
"Markdown", // URL with parameters
new { controller = "Help", action = "Markdown" }, // Parameter defaults
"Upload", // URL with parameters
new { controller = "Help", action = "Upload" }, // Parameter defaults
new[] { typeof(Controllers.HelpController).Namespace }
);


+ 4
- 2
Teknik/Areas/Help/Views/Help/Index.cshtml Voir le fichier

@@ -27,12 +27,14 @@
<dd>IRC network that uses the Teknik userbase for nickname authentication.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Mail")">Mail Server</a></dt>
<dd>Mail service with IMAP and POP3 support with <b>1 GB</b> storage.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Markdown")">Markdown</a></dt>
<dd>Markdown syntax used throughout the site.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Mumble")">Mumble Chat Server</a></dt>
<dd>The public Mumble server and configuration settings needed.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Tools")">Tools</a></dt>
<dd>Internal and 3rd Party Tools for interfacing with our services.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Upload")">Uploads</a></dt>
<dd>How the Upload service works and special considerations.</dd>
<dt><a href="@Url.SubRouteUrl("help", "Help.Markdown")">Markdown</a></dt>
<dd>Markdown syntax used throughout the site.</dd>
</dl>
</div>
</div>

+ 62
- 0
Teknik/Areas/Help/Views/Help/Tools.cshtml Voir le fichier

@@ -0,0 +1,62 @@
@model Teknik.Areas.Help.ViewModels.HelpViewModel

<div class="container">
<div class="row">
<h2 class="text-center"><b>Tools Utilizing Teknik Services</b></h2>
<hr>
<p class="text-center">
There are a multitude of internally developed tools and 3rd party tools that utilize the Teknik services.
</p>

<h3 class="text-center">Internal Tools</h3>

<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<h4 class="text-center">Uploads</h4>
<div class="list-group">
<a class="list-group-item" href="https://git.teknik.io/Teknikode/Tools/src/master/Upload/teknik.sh">
<h4 class="list-group-item-heading">Upload Script</h4>
<p class="list-group-item-text">Upload files/scrots/urls to teknik using Bash</p>
</a>
<a class="list-group-item" href="https://git.teknik.io/Teknikode/Tools/src/master/Upload/upload.sh">
<h4 class="list-group-item-heading">File Upload</h4>
<p class="list-group-item-text">Bash script for uploading multiple files</p>
</a>
</div>

<h4 class="text-center">Pastes</h4>
<div class="list-group">
<a class="list-group-item" href="https://git.teknik.io/Teknikode/Tools/src/master/Paste/paste.sh">
<h4 class="list-group-item-heading">Paste Script</h4>
<p class="list-group-item-text">Bash script for creating a paste from text</p>
</a>
</div>
</div>
</div>

<h3 class="text-center">3rd Party Tools</h3>

<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<div class="list-group">
<a class="list-group-item" href="https://gitlab.com/DanielFGray/dotfiles/raw/master/local/bin/tekup">
<h4 class="list-group-item-heading">Tekup</h4>
<p class="list-group-item-text">Bash script that uploads both text files to Paste and other files to Upload. Supports parallel uploading via xargs</p>
</a>
<a class="list-group-item" href="https://github.com/jschx/uguush">
<h4 class="list-group-item-heading">Uguush</h4>
<p class="list-group-item-text">Command-line uploader for teknik uploads</p>
</a>
<a class="list-group-item" href="https://github.com/dylanaraps/neofetch">
<h4 class="list-group-item-heading">Neofetch</h4>
<p class="list-group-item-text">A fast, highly customizable system info script with support to upload screenshots</p>
</a>
<a class="list-group-item" href="https://github.com/ShareX/CustomUploaders">
<h4 class="list-group-item-heading">Sharex</h4>
<p class="list-group-item-text">Screen capture, file sharing and productivity tool</p>
</a>
</div>
</div>
</div>
</div>
</div>

+ 3
- 0
Teknik/Areas/Paste/Views/Paste/Index.cshtml Voir le fichier

@@ -75,6 +75,9 @@
</form>
</div>
</div>
<div class="text-center">
Useful Tools: <a href="@Url.SubRouteUrl("help", "Help.Tools")">Paste Scripts and Utilities</a>
</div>
</div>

<script>

+ 1
- 4
Teknik/Areas/Upload/Views/Upload/Index.cshtml Voir le fichier

@@ -72,10 +72,7 @@
</p>
</div>
<div class="text-center">
Useful Tools: <a href="http://git.teknik.io/Teknikode/Tools/src/master/Upload">Upload Scripts and Utilities</a> | <a href="https://github.com/jschx/poomf">Poomf Uploader</a>
<br />
<br />
You can now upload your screenshots automatically using <a href="https://github.com/KittyKatt/screenFetch">Screenfetch</a>!
Useful Tools: <a href="@Url.SubRouteUrl("help", "Help.Tools")">Upload Scripts and Utilities</a>
</div>
</div>


+ 1
- 0
Teknik/Teknik.csproj Voir le fichier

@@ -562,6 +562,7 @@
<Content Include="Areas\Blog\Views\Blog\NewPost.cshtml" />
<Content Include="Areas\Blog\Views\Blog\EditPost.cshtml" />
<Content Include="Areas\Help\Views\Help\Markdown.cshtml" />
<Content Include="Areas\Help\Views\Help\Tools.cshtml" />
<None Include="Properties\PublishProfiles\Teknik Dev.pubxml" />
<None Include="Properties\PublishProfiles\Teknik Production.pubxml" />
<None Include="Scripts\jquery-2.1.4.intellisense.js" />

Chargement…
Annuler
Enregistrer