Skip to content

Commit

Permalink
Add WebForm app
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 5, 2023
1 parent 3f5f59a commit 45edeb4
Show file tree
Hide file tree
Showing 112 changed files with 89,048 additions and 0 deletions.
7 changes: 7 additions & 0 deletions YouTubeSummariserWin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "YouTubeSummariser.Component
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YouTubeSummariser.WebApp", "src\YouTubeSummariser.WebApp\YouTubeSummariser.WebApp.csproj", "{F061D611-EE85-4D31-9289-EF5850FF5F14}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YouTubeSummariser.WebForm", "src\YouTubeSummariser.WebForm\YouTubeSummariser.WebForm.csproj", "{A8EADA01-C09A-45E4-993E-B33A3339786D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -35,6 +37,10 @@ Global
{F061D611-EE85-4D31-9289-EF5850FF5F14}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F061D611-EE85-4D31-9289-EF5850FF5F14}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F061D611-EE85-4D31-9289-EF5850FF5F14}.Release|Any CPU.Build.0 = Release|Any CPU
{A8EADA01-C09A-45E4-993E-B33A3339786D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A8EADA01-C09A-45E4-993E-B33A3339786D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A8EADA01-C09A-45E4-993E-B33A3339786D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A8EADA01-C09A-45E4-993E-B33A3339786D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -44,6 +50,7 @@ Global
{47F2E24C-23E7-4E07-B52A-7A33C5165645} = {F0754B28-F0B2-414C-83DB-06854DBF508E}
{8F0B64D6-E1A2-487F-8978-AA91A2732AF3} = {F0754B28-F0B2-414C-83DB-06854DBF508E}
{F061D611-EE85-4D31-9289-EF5850FF5F14} = {F0754B28-F0B2-414C-83DB-06854DBF508E}
{A8EADA01-C09A-45E4-993E-B33A3339786D} = {F0754B28-F0B2-414C-83DB-06854DBF508E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3E8AEBE9-75D2-45E8-8795-38BB5E81FEFD}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<div class="container">

<div class="row">
<h2>YouTube Summariser</h2>
</div>

<div class="row">
<div class="col">
<div class="mb-3">
Expand Down
2 changes: 2 additions & 0 deletions src/YouTubeSummariser.WebApp/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

Welcome to your new app.

<hr />

<YouTubeSummariserComponent />
9 changes: 9 additions & 0 deletions src/YouTubeSummariser.WebForm/About.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="YouTubeSummariser.WebForm.About" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<main aria-labelledby="title">
<h2 id="title"><%: Title %>.</h2>
<h3>Your application description page.</h3>
<p>Use this area to provide additional information.</p>
</main>
</asp:Content>
17 changes: 17 additions & 0 deletions src/YouTubeSummariser.WebForm/About.aspx.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace YouTubeSummariser.WebForm
{
public partial class About : Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
17 changes: 17 additions & 0 deletions src/YouTubeSummariser.WebForm/About.aspx.designer.cs

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

38 changes: 38 additions & 0 deletions src/YouTubeSummariser.WebForm/App_Start/BundleConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.UI;

namespace YouTubeSummariser.WebForm
{
public class BundleConfig
{
// For more information on Bundling, visit https://go.microsoft.com/fwlink/?LinkID=303951
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
"~/Scripts/WebForms/WebForms.js",
"~/Scripts/WebForms/WebUIValidation.js",
"~/Scripts/WebForms/MenuStandards.js",
"~/Scripts/WebForms/Focus.js",
"~/Scripts/WebForms/GridView.js",
"~/Scripts/WebForms/DetailsView.js",
"~/Scripts/WebForms/TreeView.js",
"~/Scripts/WebForms/WebParts.js"));

// Order is very important for these files to work, they have explicit dependencies
bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
"~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));

// Use the Development version of Modernizr to develop with and learn from. Then, when you’re
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
}
}
}
18 changes: 18 additions & 0 deletions src/YouTubeSummariser.WebForm/App_Start/RouteConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;

namespace YouTubeSummariser.WebForm
{
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Permanent;
routes.EnableFriendlyUrls(settings);
}
}
}
7 changes: 7 additions & 0 deletions src/YouTubeSummariser.WebForm/Bundle.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<bundles version="1.0">
<styleBundle path="~/Content/css">
<include path="~/Content/bootstrap.css" />
<include path="~/Content/Site.css" />
</styleBundle>
</bundles>
19 changes: 19 additions & 0 deletions src/YouTubeSummariser.WebForm/Contact.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="YouTubeSummariser.WebForm.Contact" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<main aria-labelledby="title">
<h2 id="title"><%: Title %>.</h2>
<h3>Your contact page.</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>

<address>
<strong>Support:</strong> <a href="mailto:[email protected]">[email protected]</a><br />
<strong>Marketing:</strong> <a href="mailto:[email protected]">[email protected]</a>
</address>
</main>
</asp:Content>
17 changes: 17 additions & 0 deletions src/YouTubeSummariser.WebForm/Contact.aspx.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace YouTubeSummariser.WebForm
{
public partial class Contact : Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
17 changes: 17 additions & 0 deletions src/YouTubeSummariser.WebForm/Contact.aspx.designer.cs

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

37 changes: 37 additions & 0 deletions src/YouTubeSummariser.WebForm/Content/Site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
margin-top: 15px;
padding-left: 15px;
padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select {
max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
.body-content {
padding: 0;
}
}

.progress-bar.indeterminate {
position: relative;
animation: progress-indeterminate 3s linear infinite;
}

@keyframes progress-indeterminate {
from {
left: -25%;
width: 25%;
}

to {
left: 100%;
width: 25%;
}
}
Loading

0 comments on commit 45edeb4

Please sign in to comment.