Skip to content

Commit 0a91d07

Browse files
committed
Bulk commit of pre-existing demo.
This needs refinement but proves data from GraphQL for Umbraco can be read using Apollo & VueJS.
1 parent 0745760 commit 0a91d07

File tree

169 files changed

+32631
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+32631
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Umbraco.Core;
2+
using Umbraco.Web;
3+
4+
using Our.Umbraco.GraphQL.Web;
5+
6+
namespace GraphQLForUmbracoDemo.Core
7+
{
8+
public class GraphQLConfig : ApplicationEventHandler
9+
{
10+
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
11+
{
12+
UmbracoDefaultOwinStartup.MiddlewareConfigured += (sender, e) =>
13+
e.AppBuilder.UseUmbracoGraphQL(applicationContext, new GraphQLServerOptions());
14+
}
15+
}
16+
}

GraphQLForUmbracoDemo.Core/GraphQLForUmbracoDemo.Core.csproj

+246
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("GraphQLForUmbracoDemo.Core")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("GraphQLForUmbracoDemo.Core")]
13+
[assembly: AssemblyCopyright("Copyright © 2019")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("85571c0e-f789-4b7b-9079-8ee559cc6245")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

GraphQLForUmbracoDemo.Core/app.config

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.data>
4+
<DbProviderFactories>
5+
<remove invariant="MySql.Data.MySqlClient" />
6+
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
7+
</DbProviderFactories>
8+
</system.data>
9+
<runtime>
10+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
11+
<dependentAssembly>
12+
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
13+
<bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
14+
</dependentAssembly>
15+
<dependentAssembly>
16+
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
17+
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
18+
</dependentAssembly>
19+
<dependentAssembly>
20+
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
21+
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
22+
</dependentAssembly>
23+
<dependentAssembly>
24+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
25+
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
26+
</dependentAssembly>
27+
<dependentAssembly>
28+
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
29+
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
30+
</dependentAssembly>
31+
<dependentAssembly>
32+
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
33+
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
34+
</dependentAssembly>
35+
<dependentAssembly>
36+
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
37+
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
38+
</dependentAssembly>
39+
<dependentAssembly>
40+
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
41+
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
42+
</dependentAssembly>
43+
<dependentAssembly>
44+
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
45+
<bindingRedirect oldVersion="0.0.0.0-6.9.12.0" newVersion="6.9.12.0" />
46+
</dependentAssembly>
47+
<dependentAssembly>
48+
<assemblyIdentity name="System.Reactive.Linq" publicKeyToken="94bc3704cddfc263" culture="neutral" />
49+
<bindingRedirect oldVersion="0.0.0.0-3.0.3000.0" newVersion="3.0.3000.0" />
50+
</dependentAssembly>
51+
</assemblyBinding>
52+
</runtime>
53+
</configuration>
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="AutoMapper" version="3.3.1" targetFramework="net471" />
4+
<package id="ClientDependency" version="1.9.7" targetFramework="net471" />
5+
<package id="ClientDependency-Mvc5" version="1.8.0.0" targetFramework="net471" />
6+
<package id="Examine" version="0.1.89" targetFramework="net471" />
7+
<package id="GraphQL" version="2.1.0" targetFramework="net471" />
8+
<package id="GraphQL-Parser" version="3.0.0" targetFramework="net471" />
9+
<package id="HtmlAgilityPack" version="1.4.9.5" targetFramework="net471" />
10+
<package id="ImageProcessor" version="2.5.6" targetFramework="net471" />
11+
<package id="ImageProcessor.Web" version="4.8.7" targetFramework="net471" />
12+
<package id="log4net" version="2.0.8" targetFramework="net471" />
13+
<package id="Log4Net.Async" version="2.0.4" targetFramework="net471" />
14+
<package id="Lucene.Net" version="2.9.4.1" targetFramework="net471" />
15+
<package id="Markdown" version="1.14.7" targetFramework="net471" />
16+
<package id="Microsoft.AspNet.Cors" version="5.0.0" targetFramework="net471" />
17+
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net471" />
18+
<package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net471" />
19+
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net471" />
20+
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net471" />
21+
<package id="Microsoft.AspNet.SignalR.Core" version="2.2.1" targetFramework="net471" />
22+
<package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net471" />
23+
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net471" />
24+
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net471" />
25+
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net471" />
26+
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net471" />
27+
<package id="Microsoft.IO.RecyclableMemoryStream" version="1.2.2" targetFramework="net471" />
28+
<package id="Microsoft.Owin" version="3.1.0" targetFramework="net471" />
29+
<package id="Microsoft.Owin.Cors" version="3.1.0" targetFramework="net471" />
30+
<package id="Microsoft.Owin.Host.SystemWeb" version="3.1.0" targetFramework="net471" />
31+
<package id="Microsoft.Owin.Security" version="3.1.0" targetFramework="net471" />
32+
<package id="Microsoft.Owin.Security.Cookies" version="3.1.0" targetFramework="net471" />
33+
<package id="Microsoft.Owin.Security.OAuth" version="3.1.0" targetFramework="net471" />
34+
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net471" />
35+
<package id="MiniProfiler" version="2.1.0" targetFramework="net471" />
36+
<package id="MySql.Data" version="6.9.12" targetFramework="net471" />
37+
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net471" />
38+
<package id="Our.Umbraco.GraphQL" version="0.1.0" targetFramework="net471" />
39+
<package id="Owin" version="1.0" targetFramework="net471" />
40+
<package id="semver" version="1.1.2" targetFramework="net471" />
41+
<package id="SharpZipLib" version="0.86.0" targetFramework="net471" />
42+
<package id="System.Reactive.Core" version="3.1.1" targetFramework="net471" />
43+
<package id="System.Reactive.Interfaces" version="3.1.1" targetFramework="net471" />
44+
<package id="System.Reactive.Linq" version="3.1.1" targetFramework="net471" />
45+
<package id="System.Threading.Tasks.Dataflow" version="4.7.0" targetFramework="net471" />
46+
<package id="System.ValueTuple" version="4.4.0" targetFramework="net471" />
47+
<package id="UmbracoCms.Core" version="7.13.1" targetFramework="net471" />
48+
</packages>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<browsers>
2+
3+
<browser refID="Default">
4+
<controlAdapters>
5+
<adapter controlType="System.Web.UI.HtmlControls.HtmlForm"
6+
adapterType="umbraco.presentation.urlRewriter.FormRewriterControlAdapter" />
7+
</controlAdapters>
8+
</browser>
9+
10+
</browsers>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<browsers>
2+
<!--
3+
Browser capability file for the w3c validator
4+
5+
sample UA: "W3C_Validator/1.305.2.148 libwww-perl/5.803"
6+
-->
7+
<browser id="w3cValidator" parentID="default">
8+
<identification>
9+
<userAgent match="^W3C_Validator" />
10+
</identification>
11+
12+
<capture>
13+
<userAgent match="^W3C_Validator/(?'version'(?'major'\d+)(?'minor'\.\d+)\w*).*" />
14+
</capture>
15+
16+
<capabilities>
17+
<capability name="browser" value="w3cValidator" />
18+
<capability name="majorversion" value="${major}" />
19+
<capability name="minorversion" value="${minor}" />
20+
<capability name="version" value="${version}" />
21+
<capability name="w3cdomversion" value="1.0" />
22+
<capability name="xml" value="true" />
23+
<capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" />
24+
</capabilities>
25+
</browser>
26+
</browsers>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\cf3edf02\392cc6b0\App_Web_all.generated.cs.8f9494c4.zwps0b1y.dll

0 commit comments

Comments
 (0)