Skip to content

Commit

Permalink
Code formatting cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Didosa committed Apr 1, 2023
1 parent 65b0f65 commit 9c4b4ff
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 23 deletions.
1 change: 0 additions & 1 deletion PiLotAPICore/Controllers/DataController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,5 @@ private AggregatedSensorData GetHistoricData(String dataSource, Int32 startTimeU
Logger.Log("Request for Data: {0} took {1}ms", dataSource, (DateTime.UtcNow - requestStart).TotalMilliseconds, LogLevels.DEBUG);
return result;
}

}
}
1 change: 0 additions & 1 deletion PiLotAPICore/Controllers/LogbookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,5 @@ public ActionResult Delete(Int32 id) {
return this.NotFound();
}
}

}
}
3 changes: 1 addition & 2 deletions PiLotAPICore/Controllers/PhotosController.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

using PiLot.Data.Files;
using PiLot.Model.Photos;
using PiLot.Utils.Logger;

using PiLot.API.ActionFilters;
using PiLot.API.Workers;
using System.Threading.Tasks;

namespace PiLot.API.Controllers {

Expand Down
1 change: 0 additions & 1 deletion PiLotAPICore/Controllers/SystemController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ public String Shutdown() {
public String PutDate(Int64 millisUtc) {
return new SystemHelper().SetDate(millisUtc);
}

}
}
9 changes: 0 additions & 9 deletions PiLotAPICore/Controllers/WiFiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ public String GetStatus(String iface) {
return new WiFiHelper().GetStatus(iface);
}

/// <summary>
/// Selects an interface to use
/// </summary>
/*[Route(Program.APIROOT + "[controller]/interfaces/{iface}/select")]
[HttpPut]
public String SelectInterface(String iface) {
return new WiFiHelper().SelectInterface(iface);
}*/

/// <summary>
/// Connects to the network with number. The number is taken
/// from the result of GetNetworks().
Expand Down
3 changes: 0 additions & 3 deletions PiLotAPICore/Helpers/GpsTimeSync.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;

using PiLot.Model.Nav;
using PiLot.Utils.DateAndTime;
Expand Down
4 changes: 2 additions & 2 deletions PiLotAPICore/Helpers/PublishHelper.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;

using PiLot.Model.Publishing;
using System.Threading;
using System.Threading.Tasks;

using PiLot.Model.Publishing;
using PiLot.API.Workers;
using PiLot.Utils;

Expand Down
6 changes: 3 additions & 3 deletions PiLotAPICore/Workers/PublishWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
using PiLot.Model.Photos;
using PiLot.Model.Logbook;
using PiLot.Utils;
using PiLot.Utils.Logger;
using PiLot.Utils.DateAndTime;
using PiLot.Utils.Logger;

namespace PiLot.API.Workers {

/// <summary>
/// This is the guy who does the actual job of publishing data from the local
/// PiLot to a remote target. It takes a publishJob, which contains information
/// about the target and the requested data, and will always be update with the
/// about the target and the requested data, and will always be updated with the
/// current status and messages.
/// </summary>
public class PublishWorker {

/// <summary>
/// Default constructor
/// </summary>
/// <param name="pJob">The actual publis job</param>
/// <param name="pJob">The actual publishing job</param>
public PublishWorker(PublishJob pJob) {
Assert.IsNotNull(pJob, "pJob must not be null");
this.Job = pJob;
Expand Down
6 changes: 6 additions & 0 deletions PiLotAuth/AuthenticationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

namespace PiLot.Auth{

/// <summary>
/// This implements some super simple authentication. Usernames and passwords are stored
/// clear text in a json file, and are transferred clear text across the wird. So don't
/// use this for your credit card data. For the PiLot, this seems good enough (offering
/// the opportunity for hacking contests on long nights at the marina).
/// </summary>
public abstract class AuthenticationHelper {

private const String USERSFILE = "users.json";
Expand Down
2 changes: 1 addition & 1 deletion PiLotWeb/js/View/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ PiLot.View.Admin = (function () {

selectInterfaceAsync: async function (pInterface) {
this.ddlInterface.disabled = true;
await this.wifiHelper.setInterface(pInterface);
this.wifiHelper.setInterface(pInterface);
await this.loadNetworksAsync();
this.ddlInterface.disabled = false;
},
Expand Down

0 comments on commit 9c4b4ff

Please sign in to comment.