Skip to content

Commit aac2d98

Browse files
Ivan KiralIvan Kiral
authored andcommitted
Remove Kentico mentions
1 parent a4ce0dc commit aac2d98

File tree

5 files changed

+6
-28
lines changed

5 files changed

+6
-28
lines changed

DancingGoat/Areas/Admin/Views/SelfConfig/Index.cshtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
@{ await Html.RenderPartialAsync("~/Areas/Admin/Views/Shared/_MessagesPartial.cshtml"); }
1616

1717
<script type="text/javascript">
18-
function openKenticoKontent() {
18+
function openKontent() {
1919
var w = 800;
2020
var h = 800;
2121
var left = (window.screen.width / 2) - ((w / 2) + 10);
2222
var top = (window.screen.height / 2) - ((h / 2) + 50);
2323
24-
window.open("@(Config.Value.KenticoKontentUrl.TrimEnd('/'))/sample-site-configuration", "Kontent",
24+
window.open("@(Config.Value.KontentUrl.TrimEnd('/'))/sample-site-configuration", "Kontent",
2525
"status=no,height=" + w + ",width=" + h + ",resizable=yes,left="
2626
+ left + ",top=" + top + ",screenX=" + left + ",screenY="
2727
+ top + ",toolbar=no,menubar=no,location=no,directories=no");
@@ -30,7 +30,7 @@
3030
window.addEventListener("message", receiveMessage, false);
3131
3232
function receiveMessage(event) {
33-
if (event.origin.toLowerCase() !== "@(Config.Value.KenticoKontentUrl.TrimEnd('/').ToLower())")
33+
if (event.origin.toLowerCase() !== "@(Config.Value.KontentUrl.TrimEnd('/').ToLower())")
3434
return;
3535
3636
if (!event.data.projectGuid)
@@ -47,7 +47,7 @@
4747
<section class="paper margin-top-xl">
4848
<h2 class="headline-medium">Get a Project ID</h2>
4949
<p class="margin-top-l">You may wish to either select from existing projects or create a new sample project. The app will be configured with its project ID.</p>
50-
<button class="button button-primary margin-top-xl" onclick="openKenticoKontent()">Get Project ID from Kontent</button>
50+
<button class="button button-primary margin-top-xl" onclick="openKontent()">Get Project ID from Kontent</button>
5151
@using (Html.BeginForm("UseSelected", "SelfConfig", FormMethod.Post, new { id = "set-configuration-from-kc" }))
5252
{
5353
@Html.HiddenFor(m => m.ProjectGuid, new { id = "project-guid-from-kc" })

DancingGoat/Configuration/AppConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class AppConfiguration
1111
/// <summary>
1212
/// URL of the Kontent app
1313
/// </summary>
14-
public string KenticoKontentUrl { get; set; }
14+
public string KontentUrl { get; set; }
1515

1616
/// <summary>
1717
/// Delivery options referencing the default Kontent sample project.

DancingGoat/DancingGoat.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.1.0" />
17-
<PackageReference Include="Kentico.AspNetCore.LocalizedRouting" Version="1.0.0-beta2" />
1817
<PackageReference Include="Kontent.Ai.AspNetCore" Version="0.13.1" />
1918
<PackageReference Include="Kontent.Ai.Delivery.Extensions.DependencyInjection" Version="17.0.0" />
2019
<PackageReference Include="Kontent.Ai.Management.Helpers" Version="4.2.0" />

DancingGoat/Infrastructure/CustomLocalizedRoutingTranslationTransformer.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

DancingGoat/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"AppConfiguration": {
3-
"KenticoKontentUrl": "https://app.kontent.ai/",
3+
"KontentUrl": "https://app.kontent.ai/",
44
"DefaultDeliveryOptions": {
55
"ProjectId": "975bf280-fd91-488c-994c-2f04416e5ee3"
66
}

0 commit comments

Comments
 (0)