Skip to content

Commit b825f55

Browse files
Style 👮 plus sanitation.
1 parent db4b093 commit b825f55

17 files changed

+340
-215
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var configApp = angular.module('UFSPLoader', []);
1+
var configApp = angular.module("UFSPLoader", []);
22

33
configApp.controller("Loader", function ($scope, $http, $log) {
44
var getDataUrl = "/Umbraco/backoffice/FileSystemProviders/Installer/GetParameters";
@@ -14,30 +14,30 @@ configApp.controller("Loader", function ($scope, $http, $log) {
1414
$scope.submitForm = function (e) {
1515
e.preventDefault();
1616

17-
$http.post(postDataUrl, $scope.parameters).success(function (data) {
17+
$http.post(postDataUrl, $scope.parameters)
18+
.success(function (data) {
1819

19-
var status;
20-
if (typeof data === "string") {
21-
status = JSON.parse(data);
22-
} else {
23-
status = data;
24-
}
20+
var status;
21+
if (typeof data === "string") {
22+
status = JSON.parse(data);
23+
} else {
24+
status = data;
25+
}
2526

26-
$scope.status = status;
27+
$scope.status = status;
2728

28-
if (status !== "ConnectionError") {
29-
$scope.saved = true;
30-
}
29+
if (status !== "ConnectionError") {
30+
$scope.saved = true;
31+
}
3132

32-
});
33-
34-
}
33+
});
34+
};
3535

3636
$scope.capitalizeFirstLetter = function (string) {
3737
return string.charAt(0).toUpperCase() + string.slice(1);
38-
}
38+
};
3939

4040
$scope.getInputType = function (param) {
4141
return param.toUpperCase() === "USEDEFAULTROUTE" ? "checkbox" : "text";
42-
}
42+
};
4343
});
Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,74 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="Constants.cs" company="James Jackson-South">
3-
// Copyright (c) James Jackson-South. All rights reserved.
1+
// <copyright file="Constants.cs" company="James Jackson-South, Jeavon Leopold, and contributors">
2+
// Copyright (c) James Jackson-South, Jeavon Leopold, and contributors. All rights reserved.
43
// Licensed under the Apache License, Version 2.0.
54
// </copyright>
6-
// <summary>
7-
// Constant strings for use within the application.
8-
// </summary>
9-
// --------------------------------------------------------------------------------------------------------------------
5+
106
namespace Our.Umbraco.FileSystemProviders.Azure.Installer
117
{
8+
/// <summary>
9+
/// Contains constants related to the installer.
10+
/// </summary>
1211
public static class Constants
1312
{
13+
/// <summary>
14+
/// The installer path for the plugin.
15+
/// </summary>
1416
public const string InstallerPath = "~/App_Plugins/UmbracoFileSystemProviders/Azure/Install/";
17+
18+
/// <summary>
19+
/// The filesystem provider configuration file name.
20+
/// </summary>
1521
public const string FileSystemProvidersConfigFile = "FileSystemProviders.config";
22+
23+
/// <summary>
24+
/// The Umbraco configuration path.
25+
/// </summary>
1626
public const string UmbracoConfigPath = "~/Config/";
27+
28+
/// <summary>
29+
/// The web configuration file name.
30+
/// </summary>
1731
public const string WebConfigFile = "web.config";
32+
33+
/// <summary>
34+
/// The full qualified type name for the provider.
35+
/// </summary>
1836
public const string ProviderType = "Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure";
1937

38+
/// <summary>
39+
/// Contains constant values related to the ImageProcessor library.
40+
/// </summary>
2041
public class ImageProcessor
2142
{
43+
/// <summary>
44+
/// The assembly path to the ImageProcessor.Web binary.
45+
/// </summary>
2246
public const string WebAssemblyPath = "~/bin/ImageProcessor.Web.dll";
47+
48+
/// <summary>
49+
/// The minimum ImageProcessor.Web version.
50+
/// </summary>
2351
public const string WebMinRequiredVersion = "4.3.2.0";
52+
53+
/// <summary>
54+
/// The ImageProcessor.Web configuration path.
55+
/// </summary>
2456
public const string ConfigPath = "~/Config/imageprocessor/";
57+
58+
/// <summary>
59+
/// The ImageProcessor.Web security configuration file.
60+
/// </summary>
2561
public const string SecurityConfigFile = "security.config";
62+
63+
/// <summary>
64+
/// The full qualified type for the ImageProcessor.Web CloudImageService.
65+
/// </summary>
2666
public const string SecurityServiceType = "ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web";
27-
public const string SecurityServiceName = "CloudImageService";
2867

68+
/// <summary>
69+
/// The CloudImageService name.
70+
/// </summary>
71+
public const string SecurityServiceName = "CloudImageService";
2972
}
3073
}
3174
}
Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,47 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="InstallerStatus.cs" company="James Jackson-South">
3-
// Copyright (c) James Jackson-South. All rights reserved. Licensed under the Apache License, Version 2.0.
1+
// <copyright file="InstallerStatus.cs" company="James Jackson-South, Jeavon Leopold, and contributors">
2+
// Copyright (c) James Jackson-South, Jeavon Leopold, and contributors. All rights reserved.
3+
// Licensed under the Apache License, Version 2.0.
44
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
65

76
namespace Our.Umbraco.FileSystemProviders.Azure.Installer.Enums
87
{
98
using Newtonsoft.Json;
109
using Newtonsoft.Json.Converters;
1110

11+
/// <summary>
12+
/// Provides enumeration of the installer status codes.
13+
/// </summary>
1214
[JsonConverter(typeof(StringEnumConverter))]
1315
public enum InstallerStatus
1416
{
17+
/// <summary>
18+
/// The install has completed sucessfully.
19+
/// </summary>
1520
Ok,
21+
22+
/// <summary>
23+
/// Unable to save to the XDT file.
24+
/// </summary>
1625
SaveXdtError,
26+
27+
/// <summary>
28+
/// Unable to save the configuration value.
29+
/// </summary>
1730
SaveConfigError,
31+
32+
/// <summary>
33+
/// Unable to connect to the blob storage account.
34+
/// </summary>
1835
ConnectionError,
36+
37+
/// <summary>
38+
/// Incompatible ImageProcessor.Web version.
39+
/// </summary>
1940
ImageProcessorWebCompatibility,
41+
42+
/// <summary>
43+
/// Unable to save the ImageProcessor.Web configuration value.
44+
/// </summary>
2045
ImageProcessorWebConfigError
2146
}
2247
}

0 commit comments

Comments
 (0)