Skip to content

Commit f6962fb

Browse files
committed
Introduce OnTopic Editor for Web Forms 4.0.0
2 parents 3556444 + 30e3000 commit f6962fb

File tree

135 files changed

+39516
-0
lines changed

Some content is hidden

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

135 files changed

+39516
-0
lines changed

.gitignore

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Visual Studo 2015 cache/options directory
26+
.vs/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
# NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
41+
*_i.c
42+
*_p.c
43+
*_i.h
44+
*.ilk
45+
*.meta
46+
*.obj
47+
*.pch
48+
*.pdb
49+
*.pgc
50+
*.pgd
51+
*.rsp
52+
*.sbr
53+
*.tlb
54+
*.tli
55+
*.tlh
56+
*.tmp
57+
*.tmp_proj
58+
*.log
59+
*.vspscc
60+
*.vssscc
61+
.builds
62+
*.pidb
63+
*.svclog
64+
*.scc
65+
66+
# Chutzpah Test files
67+
_Chutzpah*
68+
69+
# Visual C++ cache files
70+
ipch/
71+
*.aps
72+
*.ncb
73+
*.opensdf
74+
*.sdf
75+
*.cachefile
76+
77+
# Visual Studio profiler
78+
*.psess
79+
*.vsp
80+
*.vspx
81+
82+
# TFS 2012 Local Workspace
83+
$tf/
84+
85+
# Guidance Automation Toolkit
86+
*.gpState
87+
88+
# ReSharper is a .NET coding add-in
89+
_ReSharper*/
90+
*.[Rr]e[Ss]harper
91+
*.DotSettings.user
92+
93+
# JustCode is a .NET coding addin-in
94+
.JustCode
95+
96+
# TeamCity is a build add-in
97+
_TeamCity*
98+
99+
# DotCover is a Code Coverage Tool
100+
*.dotCover
101+
102+
# NCrunch
103+
_NCrunch_*
104+
.*crunch*.local.xml
105+
106+
# MightyMoose
107+
*.mm.*
108+
AutoTest.Net/
109+
110+
# Web workbench (sass)
111+
.sass-cache/
112+
113+
# Installshield output folder
114+
[Ee]xpress/
115+
116+
# DocProject is a documentation generator add-in
117+
DocProject/buildhelp/
118+
DocProject/Help/*.HxT
119+
DocProject/Help/*.HxC
120+
DocProject/Help/*.hhc
121+
DocProject/Help/*.hhk
122+
DocProject/Help/*.hhp
123+
DocProject/Help/Html2
124+
DocProject/Help/html
125+
126+
# Click-Once directory
127+
publish/
128+
129+
# Publish Web Output
130+
*.[Pp]ublish.xml
131+
*.azurePubxml
132+
# TODO: Comment the next line if you want to checkin your web deploy settings
133+
# but database connection strings (with potential passwords) will be unencrypted
134+
*.pubxml
135+
*.publishproj
136+
137+
# NuGet Packages
138+
*.nupkg
139+
# The packages folder can be ignored because of Package Restore
140+
**/packages/*
141+
# except build/, which is used as an MSBuild target.
142+
!**/packages/build/
143+
# Uncomment if necessary however generally it will be regenerated when needed
144+
#!**/packages/repositories.config
145+
146+
# Windows Azure Build Output
147+
csx/
148+
*.build.csdef
149+
150+
# Windows Store app package directory
151+
AppPackages/
152+
153+
# Others
154+
*.[Cc]ache
155+
ClientBin/
156+
[Ss]tyle[Cc]op.*
157+
~$*
158+
*~
159+
*.dbmdl
160+
*.dbproj.schemaview
161+
*.pfx
162+
*.publishsettings
163+
node_modules/
164+
bower_components/
165+
[Ss]cripts/[Vvendor]/*
166+
167+
# RIA/Silverlight projects
168+
Generated_Code/
169+
170+
# Backup & report files from converting an old project file
171+
# to a newer Visual Studio version. Backup files are not needed,
172+
# because we have git ;-)
173+
_UpgradeReport_Files/
174+
Backup*/
175+
UpgradeLog*.XML
176+
UpgradeLog*.htm
177+
178+
# SQL Server files
179+
*.mdf
180+
*.ldf
181+
182+
# Business Intelligence projects
183+
*.rdl.data
184+
*.bim.layout
185+
*.bim_*.settings
186+
187+
# Microsoft Fakes
188+
FakesAssemblies/
189+
190+
# Node.js Tools for Visual Studio
191+
.ntvs_analysis.dat
192+
193+
# Visual Studio 6 build log
194+
*.plg
195+
196+
# Visual Studio 6 workspace options file
197+
*.opt
198+
199+
# Excluded dependencies, which need to be manually maintained
200+
**/Common/Fonts
201+
**/Common/Scripts/ckeditor
202+
**/Common/Scripts/Vendor
203+
**/Images/Vendor/jQueryUI
204+
**/Common/Global/
205+
206+
# Excluded secret files
207+
**/Configuration/connectionStrings.config
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="OnTopic.Editor.Web.Host.Global" Language="C#" %>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*==============================================================================================================================
2+
| Author Ignia, LLC
3+
| Client Ignia, LLC
4+
| Project OnTopicSample OnTopic Site
5+
\=============================================================================================================================*/
6+
using System;
7+
using System.Configuration;
8+
using System.Web.Routing;
9+
using OnTopic.Data.Caching;
10+
using OnTopic.Data.Sql;
11+
using OnTopic.Web;
12+
13+
namespace OnTopic.Editor.Web.Host {
14+
15+
/*============================================================================================================================
16+
| CLASS: GLOBAL
17+
\---------------------------------------------------------------------------------------------------------------------------*/
18+
/// <summary>
19+
/// Provides default configuration for the application, including any special processing that needs to happen relative to
20+
/// application events (such as <see cref="Application_Start"/> or <see cref="System.Web.HttpApplication.Error"/>.
21+
/// </summary>
22+
public class Global : System.Web.HttpApplication {
23+
24+
/*==========================================================================================================================
25+
| EVENT: APPLICATION START
26+
>===========================================================================================================================
27+
| Runs once when the first page of your application is run for the first time by any user
28+
\-------------------------------------------------------------------------------------------------------------------------*/
29+
[Obsolete]
30+
protected void Application_Start(object sender, EventArgs e) {
31+
32+
/*------------------------------------------------------------------------------------------------------------------------
33+
| ESTABLISH TOPIC LOOKUP SERVICE
34+
>-------------------------------------------------------------------------------------------------------------------------
35+
| This ensures that the TopicFactory is able to correctly create `ConfigurableAttributeDescriptor` topics as their
36+
| strongly typed class, which is necessary to provide access to members which parse and query the DefaultConfiguration
37+
| property.
38+
\-----------------------------------------------------------------------------------------------------------------------*/
39+
TopicFactory.TypeLookupService = new WebFormsTopicLookupService();
40+
41+
/*------------------------------------------------------------------------------------------------------------------------
42+
| CONFIGURE REPOSITORY
43+
\-----------------------------------------------------------------------------------------------------------------------*/
44+
var connectionString = ConfigurationManager.ConnectionStrings["OnTopic"].ConnectionString;
45+
var sqlTopicRepository = new SqlTopicRepository(connectionString);
46+
var topicRepository = new CachedTopicRepository(sqlTopicRepository);
47+
48+
TopicRepository.DataProvider = topicRepository;
49+
50+
/*------------------------------------------------------------------------------------------------------------------------
51+
| REGISTER ROUTES
52+
\-----------------------------------------------------------------------------------------------------------------------*/
53+
RouteTable.Routes.Ignore("{resource}.axd/{*pathInfo}");
54+
55+
}
56+
57+
} //Class
58+
} //Namespace

0 commit comments

Comments
 (0)