Skip to content

Commit a734f35

Browse files
author
Martin Makarský
authored
Merge pull request #102 from Kentico/kontent-renaming
Rename cloud to Kontent.
2 parents bf55cbc + 8e8c782 commit a734f35

Some content is hidden

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

48 files changed

+353
-280
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Sorry to hear that. Just log a new [GitHub issue](../../issues) and someone will
1515
<img align="right" width="100" height="100" src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.svg">
1616

1717
To get help with coding and structuring your projects, use [StackOverflow](https://stackoverflow.com/) to ask questions with one of the following tags:
18-
- [`kentico-cloud`](https://stackoverflow.com/questions/tagged/kentico-cloud)
18+
- [`kentico-kontent`](https://stackoverflow.com/questions/tagged/kentico-kontent)
1919
- [`kentico`](https://stackoverflow.com/questions/tagged/kentico)
2020

2121
Our team members and the community monitor these channels on a regular basis.

DancingGoat/Areas/Admin/AppSettingProvider.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class AppSettingProvider
1717
private static Guid? _projectId;
1818
private static Guid? _defaultProjectId;
1919
private static string _previewApiKey;
20-
private static string _kenticoCloudUrl;
20+
private static string _kenticoKontentUrl;
2121

2222
public static DateTime? SubscriptionExpiresAt
2323
{
@@ -145,21 +145,21 @@ public static string PreviewApiKey
145145
}
146146
}
147147

148-
public static string KenticoCloudUrl
148+
public static string KenticoKontentUrl
149149
{
150150
get
151151
{
152-
if (!string.IsNullOrEmpty(_kenticoCloudUrl))
152+
if (!string.IsNullOrEmpty(_kenticoKontentUrl))
153153
{
154-
return _kenticoCloudUrl;
154+
return _kenticoKontentUrl;
155155
}
156156
else
157157
{
158158
string url = null;
159159

160160
try
161161
{
162-
url = ConfigurationManager.AppSettings["KenticoCloudUrl"];
162+
url = ConfigurationManager.AppSettings["KenticoKontentUrl"];
163163
}
164164
catch
165165
{
@@ -168,13 +168,13 @@ public static string KenticoCloudUrl
168168

169169
if (!string.IsNullOrEmpty(url))
170170
{
171-
_kenticoCloudUrl = url;
171+
_kenticoKontentUrl = url;
172172

173-
return _kenticoCloudUrl;
173+
return _kenticoKontentUrl;
174174
}
175175
else
176176
{
177-
return @"https://app.kenticocloud.com/";
177+
return @"https://app.kontent.ai";
178178
}
179179
}
180180
}

DancingGoat/Areas/Admin/Controllers/SelfConfigController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using DancingGoat.Helpers;
77
using DancingGoat.Areas.Admin.Helpers;
88
using DancingGoat.Areas.Admin.Models;
9-
using KenticoCloud.Delivery;
9+
using Kentico.Kontent.Delivery;
1010

1111
namespace DancingGoat.Areas.Admin.Controllers
1212
{
@@ -16,11 +16,11 @@ public class SelfConfigController : Controller
1616
protected const string CAPTION_DESERIALIZATION_ERROR = "API Response Deserialization Error";
1717

1818
protected const string MESSAGE_SELECTED_PROJECT =
19-
"You've configured your app with a project ID \"{0}\". You can edit its contents at https://app.kenticocloud.com/."
19+
"You've configured your app with a project ID \"{0}\". You can edit its contents at https://app.kontent.ai/."
2020
;
2121

2222
protected const string MESSAGE_SHARED_PROJECT =
23-
"You've configured your app to with a project ID of a shared Kentico Cloud project.";
23+
"You've configured your app to with a project ID of a shared Kentico Kontent project.";
2424

2525
protected const string MESSAGE_INVALID_PROJECT_GUID = "ProjectId is not valid GUID.";
2626

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
<header>
1010
<div class="content">
1111
<h1>@ViewBag.Title</h1>
12-
<p>For your sample app to work, you should have a Kentico Cloud project containing content. Your app should be then configured with its project ID. You can either get it by signing in using your Kentico Cloud credentials or by signing up for a trial. Later, it will be converted to a free plan.</p>
12+
<p>For your sample app to work, you should have a Kentico Kontent project containing content. Your app should be then configured with its project ID. You can either get it by signing in using your Kentico Kontent credentials or by signing up for a trial. Later, it will be converted to a free plan.</p>
1313
</div>
1414
</header>
1515
@Html.Partial("_MessagesPartial")
1616

1717
<script type="text/javascript">
18-
function openKenticoCloud() {
18+
function openKenticoKontent() {
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("@(AppSettingProvider.KenticoCloudUrl.TrimEnd('/'))/sample-site-configuration", "Kentico Cloud",
24+
window.open("@(AppSettingProvider.KenticoKontentUrl.TrimEnd('/'))/sample-site-configuration", "Kentico 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() !== "@(AppSettingProvider.KenticoCloudUrl.TrimEnd('/').ToLower())")
33+
if (event.origin.toLowerCase() !== "@(AppSettingProvider.KenticoKontentUrl.TrimEnd('/').ToLower())")
3434
return;
3535
3636
if (!event.data.projectGuid)
@@ -46,7 +46,7 @@
4646
<section>
4747
<h2>Get a Project ID</h2>
4848
<p>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>
49-
<input type="submit" class="button-secondary" onclick="openKenticoCloud()" value="Get Project ID from Kentico Cloud" />
49+
<input type="submit" class="button-secondary" onclick="openKenticoKontent()" value="Get Project ID from Kentico Kontent" />
5050
@using (Html.BeginForm("UseSelected", "SelfConfig", FormMethod.Post, new { id = "set-configuration-from-kc" }))
5151
{
5252
@Html.HiddenFor(m => m.ProjectGuid, new { id = "project-guid-from-kc" })

DancingGoat/Areas/Admin/Views/Shared/_Layout.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<div class="content">
1313
<div class="logotype">
1414
<a href="/" class="logotype-link">
15-
<svg viewBox="0 0 152 54" id="kenticoCloud" width="100%" height="100%">
16-
<title>Kentico Cloud—the cloud-first CMS for digital agencies and their clients</title>
15+
<svg viewBox="0 0 152 54" id="kenticoKontent" width="100%" height="100%">
16+
<title>Kentico Kontent—the cloud-first CMS for digital agencies and their clients</title>
1717
<g fill="#fff" fill-rule="evenodd">
1818
<circle cx="27.1" cy="27" r="5.8"></circle>
1919
<path d="M15.1 33.4l-6.9 6.9c-4.1 4.1 2.9 8.3 2.9 8.3l9.7-9.7c3.5-3.4-2.2-8.9-5.7-5.5zM39.1 20.6l6.9-6.9c4.1-4.1-2.9-8.3-2.9-8.3l-9.7 9.7c-3.4 3.4 2.3 8.9 5.7 5.5zM15.1 20.6c3.5 3.5 9-2.2 5.6-5.6l-6.9-6.9C9.7 4 5.4 11 5.4 11s5.8 5.7 9.7 9.6zM39.1 33.4c-3.5-3.5-9 2.2-5.6 5.7l6.9 6.9c4.1 4.1 8.3-2.9 8.3-2.9s-5.7-5.8-9.6-9.7zM40.1 23c-4.9 0-4.8 7.9.1 7.9H50c5.8 0 3.9-7.9 3.9-7.9H40.1zM14.1 23H4.3c-5.8 0-3.8 8-3.8 8h13.7c4.9 0 4.8-8-.1-8zM23.2 40v9.8c0 5.8 7.9 3.9 7.9 3.9V40c0-5-7.9-4.9-7.9 0zM31.1 14V4.2c0-5.8-7.9-3.9-7.9-3.9V14c0 5 7.9 4.9 7.9 0zM71.4 17.1c1.7-2.4 5-6.4 6.3-7.7v-.1h-2.3c-1.3 0-1.7.1-2.5 1-1.8 2-3.3 4.3-4.8 6.5v-5.2c0-1.2-.6-2.3-2.2-2.3h-1.1v14.5c0 1.2.6 2.3 2.2 2.3h1.1v-8.5c1.7 2.7 3.3 5.1 5.4 7.5.6.7 1.5 1.1 2.3 1.1 1.3 0 1.9-.5 2.2-1.7-.5-.1-.8-.3-1.3-.7-2.2-1.9-3.7-4.4-5.3-6.7zM85.3 26.3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Resolver/CustomContentLinkUrlResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using KenticoCloud.Delivery;
1+
using Kentico.Kontent.Delivery;
22
using System.Globalization;
33

44
namespace DancingGoat

DancingGoat/Controllers/AboutController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
using System.Web.Mvc;
44

55
using DancingGoat.Models;
6-
6+
using Kentico.Kontent.Delivery;
77
using KenticoCloud.ContentManagement.Helpers.Models;
8-
using KenticoCloud.Delivery;
98

109
namespace DancingGoat.Controllers
1110
{

DancingGoat/Controllers/ArticlesController.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using DancingGoat.Models;
2-
using KenticoCloud.Delivery;
3-
using KenticoCloud.Recommender;
4-
using KenticoCloud.Recommender.MVC;
2+
using Kentico.Kontent.Delivery;
3+
using Kentico.Kontent.Recommender;
54
using System;
65
using System.Configuration;
76
using System.Linq;
@@ -47,7 +46,7 @@ public async Task<ActionResult> Show(string urlSlug)
4746
if (!string.IsNullOrWhiteSpace(recommendationApiKey))
4847
{
4948
/* Get recommendations from the Recommendation engine */
50-
var recommendationClient = new RecommendationClient(recommendationApiKey, 5);
49+
var recommendationClient = new Kentico.Kontent.Recommender.MVC.RecommendationClient(recommendationApiKey, 5);
5150
var lastMonth = TimeSpan.FromDays(30).Milliseconds;
5251

5352
var recommendedArticles = await recommendationClient

DancingGoat/Controllers/BrewersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using DancingGoat.Models;
2-
using KenticoCloud.Delivery;
2+
using Kentico.Kontent.Delivery;
33
using System.Collections.Generic;
44
using System.Linq;
55
using System.Threading.Tasks;

DancingGoat/Controllers/CafesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using DancingGoat.Models;
2-
using KenticoCloud.Delivery;
2+
using Kentico.Kontent.Delivery;
33
using System.Linq;
44
using System.Threading.Tasks;
55
using System.Web.Mvc;

0 commit comments

Comments
 (0)