This commit is contained in:
Rick
2017-03-20 16:38:54 +01:00
28 changed files with 944 additions and 83 deletions
+1
View File
@@ -60,6 +60,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="FrontendMalfunctions.cs" />
<Compile Include="FrontendServices.cs" />
<Compile Include="FrontendLoop.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+43 -5
View File
@@ -203,6 +203,10 @@ namespace Swarmops.Frontend.Socket
private static int _sandboxDummy1 = 500;
private static int _sandboxDummy2 = 50000;
/*
private static int _malfunctionTestCounter = 0;
private static string[] malfunctionStrings = {"One", "Two", "Three", "Four"};*/
private static void OnEveryTenSeconds()
{
SystemSettings.HeartbeatFrontend = DateTime.UtcNow.ToUnix();
@@ -212,12 +216,37 @@ namespace Swarmops.Frontend.Socket
_sandboxDummy1 += new Random().Next(10) - 3;
_sandboxDummy2 += new Random().Next(1000) - 200;
JObject data = new JObject();
data["MessageType"] = "SandboxUpdate";
data["Local"] = _sandboxDummy1.ToString(CultureInfo.InvariantCulture);
data["Profit"] = _sandboxDummy2.ToString(CultureInfo.InvariantCulture);
JObject data1 = new JObject();
data1["MessageType"] = "SandboxUpdate";
data1["Local"] = _sandboxDummy1.ToString(CultureInfo.InvariantCulture);
data1["Profit"] = _sandboxDummy2.ToString(CultureInfo.InvariantCulture);
_socketServer.WebSocketServices.Broadcast(data.ToString());
_socketServer.WebSocketServices.Broadcast(data1.ToString());
/*
JArray malfunctionsArray = new JArray();
for (int loop = 0; loop < _malfunctionTestCounter; loop++)
{
if (loop < _malfunctionTestCounter - 2)
{
continue;
}
JObject malfunctionObject = new JObject();
malfunctionObject["Id"] = "Mal" + loop.ToString();
malfunctionObject["Text"] = malfunctionStrings[loop] + " (Test code, ignore - and let's make this a multiline point to test flow)";
malfunctionsArray.Add(malfunctionObject);
}
if (++_malfunctionTestCounter > 4)
{
_malfunctionTestCounter = 0;
}
JObject data2 = new JObject();
data2["MessageType"] = "Malfunctions";
data2["MalfunctionsList"] = malfunctionsArray;
_socketServer.WebSocketServices.Broadcast(data2.ToString());*/
}
}
@@ -271,11 +300,15 @@ namespace Swarmops.Frontend.Socket
public static void OnBackendClose(object sender, CloseEventArgs args)
{
Console.WriteLine(" - Backend socket closed: " + args.Code + " " + args.Reason);
// TODO: Try reconnecting
}
public static void OnBackendError(object sender, ErrorEventArgs args)
{
Console.WriteLine(" - Backend socket error: " + args.Message);
// TODO: Try reconnecting
}
@@ -292,6 +325,11 @@ namespace Swarmops.Frontend.Socket
}
public static void BroadcastMalfunctions()
{
}
// --------------------------------- LEGACY CODE BELOW THIS MARK -------------------------------
+15
View File
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Swarmops.Frontend.Socket
{
public enum FrontendMalfunctions
{
Unknown = 0,
BackendConnectionFault,
BackendHeartbeatLost
}
}
+10
View File
@@ -156,6 +156,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Structure.Geography.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Logic.Support.ErrorMessages.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Support.ErrorMessages.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Logic.Swarm.DashboardTodos.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -191,6 +196,7 @@
<Compile Include="Communications\Payload\NotificationPayload.cs" />
<Compile Include="Security\Impersonation.cs" />
<Compile Include="Support\BlockchainTransaction.cs" />
<Compile Include="Support\ErrorMessages.cs" />
<Compile Include="Support\LogEntries\ImpersonationLogEntry.cs" />
<Compile Include="Support\LogEntries\PersonalDataChangedLogEntry.cs" />
<Compile Include="Support\PayloadBase.cs" />
@@ -629,6 +635,10 @@
<EmbeddedResource Include="Resources\Logic.Structure.Geography.ru-RU.resx" />
<EmbeddedResource Include="Resources\Logic.Structure.Geography.sv-SE.resx" />
<EmbeddedResource Include="Resources\Logic.Structure.Geography.zh-CN.resx" />
<EmbeddedResource Include="Resources\Logic.Support.ErrorMessages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Support.ErrorMessages.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.af-ZA.resx" />
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.ar-SA.resx" />
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.da-DK.resx" />
+171
View File
@@ -0,0 +1,171 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Logic_Support_ErrorMessages {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Logic_Support_ErrorMessages() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Resources.Logic.Support.ErrorMessages", typeof(Logic_Support_ErrorMessages).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Operations have returned to nominal..
/// </summary>
internal static string AllClear_Text {
get {
return ResourceManager.GetString("AllClear_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to All Clear.
/// </summary>
internal static string AllClear_Title {
get {
return ResourceManager.GetString("AllClear_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The server has lost the connection to the bitcoin blockchain. Bitcoin transactions won&apos;t be detected in real time..
/// </summary>
internal static string Backend_BlockchainSocketLost_Text {
get {
return ResourceManager.GetString("Backend_BlockchainSocketLost_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Blockchain Connection Lost.
/// </summary>
internal static string Backend_BlockchainSocketLost_Title {
get {
return ResourceManager.GetString("Backend_BlockchainSocketLost_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The web browser is unable to hear the server&apos;s heartbeat. Real-time updates may not be available..
/// </summary>
internal static string Client_ServerHeartbeatLost_Text {
get {
return ResourceManager.GetString("Client_ServerHeartbeatLost_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Heartbeat Failure Level 1.
/// </summary>
internal static string Client_ServerHeartbeatLost_Title {
get {
return ResourceManager.GetString("Client_ServerHeartbeatLost_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unable to connect to the server for real-time updates..
/// </summary>
internal static string Client_SocketConnectionFault_Text {
get {
return ResourceManager.GetString("Client_SocketConnectionFault_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to WebSocket Failure.
/// </summary>
internal static string Client_SocketConnectionFault_Title {
get {
return ResourceManager.GetString("Client_SocketConnectionFault_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The server is unable to connect to the backend process. Real-time updates will be largely unavailable..
/// </summary>
internal static string Frontend_BackendConnectionFault_Text {
get {
return ResourceManager.GetString("Frontend_BackendConnectionFault_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Backend Connection Failure.
/// </summary>
internal static string Frontend_BackendConnectionFault_Title {
get {
return ResourceManager.GetString("Frontend_BackendConnectionFault_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The server cannot hear the heartbeat from the backend process..
/// </summary>
internal static string Frontend_BackendHeartbeatLost_Text {
get {
return ResourceManager.GetString("Frontend_BackendHeartbeatLost_Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Heartbeat Failure Level 2.
/// </summary>
internal static string Frontend_BackendHeartbeatLost_Title {
get {
return ResourceManager.GetString("Frontend_BackendHeartbeatLost_Title", resourceCulture);
}
}
}
}
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AllClear_Text" xml:space="preserve">
<value>Operations have returned to nominal.</value>
</data>
<data name="AllClear_Title" xml:space="preserve">
<value>All Clear</value>
</data>
<data name="Backend_BlockchainSocketLost_Text" xml:space="preserve">
<value>The server has lost the connection to the bitcoin blockchain. Bitcoin transactions won't be detected in real time.</value>
</data>
<data name="Backend_BlockchainSocketLost_Title" xml:space="preserve">
<value>Blockchain Connection Lost</value>
</data>
<data name="Client_ServerHeartbeatLost_Text" xml:space="preserve">
<value>The web browser is unable to hear the server's heartbeat. Real-time updates may not be available.</value>
</data>
<data name="Client_ServerHeartbeatLost_Title" xml:space="preserve">
<value>Heartbeat Failure Level 1</value>
</data>
<data name="Client_SocketConnectionFault_Text" xml:space="preserve">
<value>Unable to connect to the server for real-time updates.</value>
</data>
<data name="Client_SocketConnectionFault_Title" xml:space="preserve">
<value>WebSocket Failure</value>
</data>
<data name="Frontend_BackendConnectionFault_Text" xml:space="preserve">
<value>The server is unable to connect to the backend process. Real-time updates will be largely unavailable.</value>
</data>
<data name="Frontend_BackendConnectionFault_Title" xml:space="preserve">
<value>Backend Connection Failure</value>
</data>
<data name="Frontend_BackendHeartbeatLost_Text" xml:space="preserve">
<value>The server cannot hear the heartbeat from the backend process.</value>
</data>
<data name="Frontend_BackendHeartbeatLost_Title" xml:space="preserve">
<value>Heartbeat Failure Level 2</value>
</data>
</root>
+1
View File
@@ -9,3 +9,4 @@ Logic.Structure.Geography.resx
Logic.Swarm.DashboardTodos.resx
Logic.Swarm.ParticipantTitle.resx
Logic.Swarm.Position.resx
Logic.Support.ErrorMessages.resx
+33
View File
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using Swarmops.Logic.Resources;
namespace Swarmops.Logic.Support
{
public class ErrorMessages
{
public static string Localized(string errorMessage, string culture = null)
{
if (String.IsNullOrEmpty(culture))
{
return @"<strong>" + Logic_Support_ErrorMessages.ResourceManager.GetString(errorMessage + "_Title") +
@":</strong> " +
Logic_Support_ErrorMessages.ResourceManager.GetString(errorMessage + "_Text");
}
else
{
return @"<strong>" +
Logic_Support_ErrorMessages.ResourceManager.GetString(errorMessage + "_Title",
CultureInfo.CreateSpecificCulture(culture)) +
@":</strong> " +
Logic_Support_ErrorMessages.ResourceManager.GetString(errorMessage + "_Text",
CultureInfo.CreateSpecificCulture(culture));
}
}
}
}
+2 -2
View File
@@ -29,8 +29,8 @@ If you're daring enough to install a pilot of Swarmops, you're most welcome to d
> `wget -qO- http://packages.swarmops.com/swarmops-packages.gpg.key | apt-key add -`
Then, add the Swarmops repository to your list of software sources:
> `echo deb http://packages.swarmops.com/ squeeze contrib > /etc/apt/sources.list.d/swarmops.list`
Then, add the Swarmops repository to your list of software sources, where [your_distribution] below is xenial (Ubuntu) or stretch (Debian):
> `echo deb http://packages.swarmops.com/ [your_distribution] contrib > /etc/apt/sources.list.d/swarmops.list`
Then, run this to install the Swarmops frontend:
> `apt-get update; apt-get install swarmops-frontend`
+22 -4
View File
@@ -314,11 +314,11 @@ namespace Resources.Pages {
}
/// <summary>
/// Looks up a localized string similar to Manual Login.
/// Looks up a localized string similar to Manual Password Login.
/// </summary>
internal static string Login_ManualLogin {
internal static string Login_ManualLoginHeader {
get {
return ResourceManager.GetString("Login_ManualLogin", resourceCulture);
return ResourceManager.GetString("Login_ManualLoginHeader", resourceCulture);
}
}
@@ -341,7 +341,7 @@ namespace Resources.Pages {
}
/// <summary>
/// Looks up a localized string similar to Reset Password.
/// Looks up a localized string similar to Help, I forgot my password!.
/// </summary>
internal static string Login_ResetPassword {
get {
@@ -376,6 +376,24 @@ namespace Resources.Pages {
}
}
/// <summary>
/// Looks up a localized string similar to Use BitID two-factor authentication?.
/// </summary>
internal static string Login_UseBitIdLogin {
get {
return ResourceManager.GetString("Login_UseBitIdLogin", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use manual password login?.
/// </summary>
internal static string Login_UseManualLogin {
get {
return ResourceManager.GetString("Login_UseManualLogin", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to User.
/// </summary>
+12 -3
View File
@@ -203,8 +203,9 @@
<data name="Login_LoggingIn" xml:space="preserve">
<value>Logging in, please wait...</value>
</data>
<data name="Login_ManualLogin" xml:space="preserve">
<value>Manual Login</value>
<data name="Login_ManualLoginHeader" xml:space="preserve">
<value>Manual Password Login</value>
<comment>Header to manual username/password form</comment>
</data>
<data name="Login_PageTitle" xml:space="preserve">
<value>Login</value>
@@ -213,7 +214,7 @@
<value>Pass</value>
</data>
<data name="Login_ResetPassword" xml:space="preserve">
<value>Reset Password</value>
<value>Help, I forgot my password!</value>
</data>
<data name="Login_SelfSignup" xml:space="preserve">
<value>Sign me up for {0}!</value>
@@ -225,6 +226,14 @@
<data name="Login_UnknownBitIdAddress" xml:space="preserve">
<value>Swarmops doesn't recognize this address. Please log in manually and activate your address before using it to login.</value>
</data>
<data name="Login_UseBitIdLogin" xml:space="preserve">
<value>Use BitID two-factor authentication?</value>
<comment>Switches from manual to BitID</comment>
</data>
<data name="Login_UseManualLogin" xml:space="preserve">
<value>Use manual password login?</value>
<comment>Switches from BitId to Username/Password form</comment>
</data>
<data name="Login_Username" xml:space="preserve">
<value>User</value>
</data>
@@ -1,5 +1,8 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Financial.CurrencyTextBox" Codebehind="CurrencyTextBox.ascx.cs" %>
<%@ Import Namespace="Swarmops.Common.Enums" %>
<!-- TODO: Add nice autocomplete stuff -->
<div class="stacked-input-control"><asp:TextBox ID="Input" runat="server" CssClass="alignRight" /><asp:HiddenField ID="NativeCurrency" runat="server"/><asp:HiddenField ID="NativeAmount" runat="server"/></div>
<% if (this.Layout == LayoutDirection.Vertical) { %><div class="stacked-input-control"><% } %>
<asp:TextBox ID="Input" runat="server" CssClass="alignRight" /><asp:HiddenField ID="NativeCurrency" runat="server"/><asp:HiddenField ID="NativeAmount" runat="server" />
<% if (this.Layout == LayoutDirection.Vertical) { %></div><% } %>
@@ -1,5 +1,6 @@
using System;
using System.Globalization;
using Swarmops.Common.Enums;
using System.Web.UI;
namespace Swarmops.Frontend.Controls.Financial
@@ -13,6 +14,11 @@ namespace Swarmops.Frontend.Controls.Financial
protected void Page_Load (object sender, EventArgs e)
{
this.Input.Attributes["role"] = "note"; // disable Lastpass trying to autofill
if (this.Layout == LayoutDirection.Unknown)
{
this.Layout = LayoutDirection.Vertical;
}
}
public Int64 Cents
@@ -66,6 +72,8 @@ namespace Swarmops.Frontend.Controls.Financial
// TODO: Add other-currency parsing
public LayoutDirection Layout { get; set; }
public new void Focus()
{
this.Input.Focus();
@@ -13,26 +13,7 @@
}
});
}
function flashOrangeHeader() {
if (!_orangeFlashState) {
$('h2.flashheader').addClass("orangeDark").removeClass("orange");
_orangeFlashState = true;
setTimeout("flashOrangeHeader();", 250);
} else {
$('h2.flashheader').removeClass("orangeDark").addClass("orange");
_orangeFlashState = false;
setTimeout("flashOrangeHeader();", 1750);
}
}
$(document).ready(function() {
flashOrangeHeader();
});
var _orangeFlashState = false;
</script>
<!-- this box is only visible on the Master when impersonation is active -->
+41 -3
View File
@@ -12,8 +12,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- jQuery and plugins -->
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" ></script>
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js" ></script>
<script language="javascript" type="text/javascript" src="/Scripts/jquery.2.0.3.min.js" ></script>
<script language="javascript" type="text/javascript" src="/Scripts/jquery-ui.1.11.1.min.js" ></script>
<script language="javascript" type="text/javascript" src="/Scripts/jquery.tmpl.js" ></script>
<script language="javascript" type="text/javascript" src="/Scripts/jquery.toggles.js" ></script>
<script language="javascript" type="text/javascript" src="/Scripts/jquery.leanModal.min.js" ></script>
@@ -145,6 +147,26 @@
});
// flashing boxes
function flashOrangeHeader() {
if (!_orangeFlashState) {
$('h2.flashheader').addClass("orangeDark").removeClass("orange");
_orangeFlashState = true;
setTimeout("flashOrangeHeader();", 250);
} else {
$('h2.flashheader').removeClass("orangeDark").addClass("orange");
_orangeFlashState = false;
setTimeout("flashOrangeHeader();", 1750);
}
}
$(document).ready(function() {
flashOrangeHeader();
});
var _orangeFlashState = false;
</script>
<!-- initialize socket, tabs, and search -->
@@ -230,6 +252,14 @@
</div>
</div>
<div id="divDashboardMalfunctions" style="display:none">
<h2 class="flashheader orange">Tech Malfunctions<span class="arrow"></span></h2>
<div class="box">
<div id="divMalfunctionsList" class="content">
</div>
</div>
</div>
<!--
<h2 class="blue"><asp:Label ID="LabelSidebarActions" runat="server" /><span class="arrow"></span></h2>
@@ -745,8 +775,16 @@
var _master_bitIdRegisterSuccess = false;
// some localized error messages, used in Swarmops-v5.js (yes, I know it's ugly to split like that, but
// Swarmops-v5.js isn't run through the ASPX filter and therefore not localized)
var _errorDisplay_clientSocketLost = SwarmopsJS.unescape('<%=this.Localized_ClientError_SocketFail%>');
var _errorDisplay_clientHeartbeatLost = SwarmopsJS.unescape('<%=this.Localized_ClientError_HeartbeatFail%>');
var _errorDisplay_allClear = SwarmopsJS.unescape('<%=this.Localized_AllErrorsClear%>');
</script>
</form>
<!-- some javascript in footer -->
+19
View File
@@ -520,6 +520,25 @@ namespace Swarmops.Frontend
}
public string Localized_ClientError_SocketFail
{
get
{
return
CommonV5.JavascriptEscape(
ErrorMessages.Localized("Client_SocketConnectionFault"));
}
}
public string Localized_ClientError_HeartbeatFail
{
get { return CommonV5.JavascriptEscape(ErrorMessages.Localized("Client_ServerHeartbeatLost")); }
}
public string Localized_AllErrorsClear
{
get { return CommonV5.JavascriptEscape(ErrorMessages.Localized("AllClear")); }
}
public string GenerateBitIdToken
{
+1 -1
View File
@@ -344,7 +344,7 @@
<div id="divEditTransaction">
<h2><asp:Label ID="LabelAddTransactionRowsHeader" runat="server" /></h2>
<span class="content"><h2 style="border-bottom: none"><asp:Label ID="LabelAddRowAccount" runat="server" /><Swarmops5:ComboBudgets ID="BudgetAddRow" ListType="All" runat="server" Layout="Horizontal" />, <asp:Label ID="LabelAddRowAmount" runat="server" /> <Swarmops5:CurrencyTextBox ID="TextInsertAmount" runat="server" /> <span class="elementFloatFar"><input id="ButtonAddTransactionRow" type="button" value='#AddRow#'/></span></h2></span>
<span class="content"><h2 style="border-bottom: none"><asp:Label ID="LabelAddRowAccount" runat="server" /><Swarmops5:ComboBudgets ID="BudgetAddRow" ListType="All" runat="server" Layout="Horizontal" />, <asp:Label ID="LabelAddRowAmount" runat="server" /> <Swarmops5:CurrencyTextBox ID="TextInsertAmount" Layout="Horizontal" runat="server" /> <span class="elementFloatFar"><input id="ButtonAddTransactionRow" type="button" value='#AddRow#'/></span></h2></span>
</div>
<div id="divTransactionTracking">
+1 -1
View File
@@ -176,7 +176,7 @@
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<div class="entryFields" style="padding-top:4px">
<Swarmops5:ComboGeographies ID="ComboGeographies" runat="server" OnClientSelect="onGeographyChange" />&thinsp;<br/>
<Swarmops5:ComboGeographies ID="ComboGeographies" runat="server" OnClientSelect="onGeographyChange" />
<asp:TextBox runat="server" ID="TextNamePattern" />
</div>
<div class="entryLabels" style="padding-top:10px">
+266 -12
View File
@@ -2,9 +2,23 @@
var _masterSocket;
var _masterSocketHeartbeatsLost;
var _masterWatchingHeartbeat = false;
var _masterSocketLastHeartbeat = -1;
var _masterAuthenticationTicket = "";
function _masterInitializeSocket(authenticationTicket) {
// Our first call should always be with an auth ticket; save this for later use
if (authenticationTicket === undefined) {
authenticationTicket = _masterAuthenticationTicket;
} else {
_masterAuthenticationTicket = authenticationTicket;
}
// If we're being called to restore communications in case of a heartbeat failure,
// close the channel first or the server will think we're still here
if (_masterSocket != null) {
_masterSocket.close();
_masterSocket = null;
@@ -12,27 +26,63 @@ function _masterInitializeSocket(authenticationTicket) {
var socketUrl = getMasterSocketAddress() + "?Auth=" + authenticationTicket;
_masterSocket = new WebSocket(socketUrl);
_masterSocket.onopen = function(data) {
if (_masterSocketHeartbeatsLost) {
// Reload all edits and the edit pool. If there are discrepancies, we can probably live with them. (Detect editing?)
//alertify.log("Backend connection restored without interruption.");
// Create instance and open socket
_masterSocketHeartbeatsLost = false;
_masterSocket = new WebSocket(socketUrl);
// Set events
_masterSocket.onopen = function(data) {
console.log("MasterSocket.OnOpen();");
if (_error_ClientSocketLost) {
_error_ClientSocketLost = false;
_master_updateMalfunctions();
}
//watchHeartbeat();
// If this is the first .open, start the heartbeat watcher
if (!_masterWatchingHeartbeat) {
_master_watchHeartbeat();
}
};
_masterSocket.onclose = function(data) { /* TODO: try reconnecting */ };
_masterSocket.onerror = function(data) { alertify.error("WARNING: Socket connection error - realtime updates will not be available"); };
_masterSocket.onmessage = function(data) {
_masterSocket.onclose = function (data) {
console.log("MasterSocket.OnClose();");
_error_ClientSocketLost = true;
_master_updateMalfunctions();
if (!_masterWatchingHeartbeat) {
_master_watchHeartbeat(); // begin watch heartbeat if open never happened
}
};
_masterSocket.onerror = function (data) {
console.log("MasterSocket.OnError();");
if (!_error_ClientSocketLost) {
alertify.error("WARNING: Socket connection error - realtime updates will not be available");
_error_ClientSocketLost = true;
_master_updateMalfunctions();
}
};
_masterSocket.onmessage = function (data) {
console.log(data.data);
var message = $.parseJSON(data.data);
if (message.MessageType == "Heartbeat") {
//alertify.log("Master socket heartbeat: " + message.Timestamp);
_masterSocketLastHeartbeat = new Date().getTime();
console.log("Heartbeat");
if (_masterSocketHeartbeatsLost) {
console.log(" - receiving heartbeats again");
_masterSocketHeartbeatsLost = false;
_master_updateMalfunctions();
}
}
else if (message.MessageType == "BitcoinReceived") {
// console.log("Currency is " + message.Currency);
@@ -44,9 +94,13 @@ function _masterInitializeSocket(authenticationTicket) {
}
if (!handled) {
// Otherwise make a log note at the bottom right of the screen
alertify.log("Bitcoin received: " + message.Currency + " " + message.CentsFormatted);
}
}
else if (message.MessageType == "Malfunctions") {
_master_updateMalfunctions (message.MalfunctionsList);
}
else if (message.MessageType == "SandboxUpdate") {
if (odoLocalParticipation != undefined) { // Real ugly accessing specific page elements here, but it's temporary
odoLocalParticipation.innerHTML = message.Local;
@@ -58,6 +112,43 @@ function _masterInitializeSocket(authenticationTicket) {
};
}
function _master_watchHeartbeat() {
console.log("WatchHeartbeat()");
_masterWatchingHeartbeat = true;
// Check again for a new heartbeat in ten seconds
setTimeout(function () {
_master_watchHeartbeat();
}, 10000);
// Have we lost the socket connection? If so, take this cadence opportunity to try reconnecting
if (_error_ClientSocketLost || _masterSocketHeartbeatsLost) {
console.log(" - trying to reinit socket");
_masterInitializeSocket();
}
// If we got a heartbeat more than fifteen seconds ago, we've lost the heartbeat
console.log(" - checking timestamps");
if (_masterSocketLastHeartbeat != -1 && !_masterSocketHeartbeatsLost) { // if we've received any at all
var curTime = new Date().getTime();
var diff = (curTime - _masterSocketLastHeartbeat) / 1000;
console.log(" - last heartbeat was " + diff + " seconds ago");
if (diff > 15) {
console.log(" - Heartbeats LOST");
_masterSocketHeartbeatsLost = true;
_master_updateMalfunctions();
}
} else {
console.log(" - no previous heartbeat received");
}
}
function getMasterSocketAddress() {
if (location.host.indexOf ("localhost") >= 0) { // Assume dev environment, go for sandbox socket
return 'ws://sandbox.swarmops.com/ws/Front';
@@ -67,6 +158,169 @@ function getMasterSocketAddress() {
}
}
function _master_updateMalfunctions(issueList) {
console.log("UpdateMalfunctions();");
if (issueList === undefined) {
issueList = JSON.parse(JSON.stringify(_master_LastServerMalfunctionsList)); // deep copy
} else {
_master_LastServerMalfunctionsList = JSON.parse(JSON.stringify(issueList)); // deep copy
}
if (issueList === undefined) { // edge case present on early init
issueList = [];
_master_LastServerMalfunctionsList = [];
}
if (_error_ClientSocketLost) {
issueList.push(_master_constructMalfunctionData("ClientSocket", _errorDisplay_clientSocketLost));
}
else if (_masterSocketHeartbeatsLost) {
issueList.push(_master_constructMalfunctionData("ClientHeartbeat", _errorDisplay_clientHeartbeatLost));
}
_master_updateListBox($('#divMalfunctionsList'), issueList);
}
function _master_constructMalfunctionData(id, text, icon, link) {
var newItem = {};
newItem.Id = id;
newItem.Text = text;
newItem.Icon = icon;
newItem.Link = link;
return newItem;
}
var _master_LastServerMalfunctionsList = [];
var _error_ClientSocketLost = false;
// ------------------- List updating --------------------------
function _master_updateListBox(box, listArray) {
// list is an array of object { id, text }
// box is a div-div-ul-li nest containing the li:s with the id
// the function syncs the box to the list with some nice fades
console.log("UpdateListBox();");
var listContainer = $(box).parent().parent();
var listElements = $(box).children();
// If the list is empty but the box wasn't, add an "all clear" message
// to the list of items and set timer to remove it
// TODO: Make the "all clear" message dependent on which box we're dealing with
if (listElements.length > 0 && listArray.length == 0) {
listContainer.attr("allClear", "true");
listArray.push(_master_constructMalfunctionData("AllClear", _errorDisplay_allClear, "/Images/Icons/iconshock-greentick-16px.png"));
setTimeout(function() { _master_removeAllClearMessage(listContainer, listElements); }, 10000);
} else {
listContainer.attr("allClear", "false");
}
// Is the box visible right now?
var boxVisible = $(box).is(":visible");
// Step 1: Iterate through list, build id array
console.log(" - step 1");
console.log(listArray);
var idListLookup = {};
if (listArray.length > 0) {
listArray.forEach(function(item, index) {
idListLookup[item.Id] = item;
});
}
// Step 2: Iterate through box, change texts of matching ids,
// remove items that aren't in list, build id array
console.log(" - step 2");
var idBoxLookup = {};
if (listElements.length > 0) {
listElements.children().each(function (index) {
console.log($(this));
var elementId = $(this).attr("rel");
console.log(elementId);
idBoxLookup[elementId] = true;
var testLookup = idListLookup[elementId];
console.log(testLookup);
if (testLookup === undefined) {
// displayed item is NOT present in supplied list, and should be removed
$(this).slideUp(400, function () { $(this).remove(); });
} else {
// displayed item is present in supplied list
// TODO: update text
}
});
}
// Step 3: Iterate through list, add missing items
console.log(" - step 3");
if (listElements.length == 0)
{
// If there's not even an UL element (yet), add one and move the pointer to it,
// so we can add any missing items
$(box).append ($("<ul></ul>"));
listElements = $(box).children();
}
listArray.forEach(function(item, index) {
if (idBoxLookup[item.Id] != true) {
var html = "<li rel='" + item.Id + "'";
if (item.Icon !== undefined) {
html += " style='background-image:url(" + item.Icon + ")'";
}
html += "> " + item.Text + "</li>";
var newItem = $(html).hide();
$(listElements).append(newItem);
newItem.slideDown();
}
});
// Step 4: Adjust visibility as required
console.log(" - fixing visibility");
var listEmpty = (!$.isArray(listArray) || !listArray.length);
if (!boxVisible && !listEmpty) {
listContainer.fadeIn(500).slideDown(300);
}
else if (boxVisible && listEmpty) {
listContainer.fadeOut(500).slideUp(300);
}
}
function _master_removeAllClearMessage(domIssueContainer, domIssuesList) {
if ($(domIssueContainer).attr("allClear") == "true") {
$(domIssueContainer).fadeOut(500).slideUp(300);
$(domIssuesList).children().each(function() {
$(this).slideUp(400, function() { $(this).remove(); });
});
}
}
// ------------------- SwarmopsJS object ----------------------
var SwarmopsJS = (function () {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+45 -27
View File
@@ -48,7 +48,7 @@
<!-- page title -->
<title>Swarmops Beta- Login</title>
<title>Swarmops Beta - Login</title>
<!-- custom styles -->
@@ -167,6 +167,23 @@
});
}
function toManualLogin() {
$('#divLoginQr').slideUp();
$('#divLoginManual').slideDown();
$('#TextLogin').focus();
$('#paraSwitchManualLogin').hide();
$('#paraSwitchBitIdLogin').show();
// return false; // says we handled the click, don't process further
}
function toBitIdLogin() {
$('#divLoginQr').slideDown();
$('#divLoginManual').slideUp();
$('#paraSwitchManualLogin').show();
$('#paraSwitchBitIdLogin').hide();
}
var bitIdUri = '<asp:Literal ID="LiteralUri" runat="server" />';
var bitIdNonce = '<asp:Literal ID="LiteralNonce" runat="server" />';
@@ -175,42 +192,43 @@
</script>
<!-- Main menu, emptied out here -->
<div class="center980px">
<div class="login-page-logo"><asp:Image ID="ImageLogo" runat="server" ImageUrl="/Images/Swarmops-logo-256px.png" Width="128"/></div>
<div class="box qrlogin">
<div class="content">
<div align="center"><asp:Image ID="ImageBitIdQr" runat="server"/></div>
<div align="center" id="divLoginQr"><asp:Image ID="ImageBitIdQr" runat="server"/></div>
<div id="divLoginManual" style="display:none">
<h2><asp:Label runat="server" ID="LabelManualLoginHeader">Manual Login Header XYZ</asp:Label></h2>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-bottom:5px">
<tr><td><asp:Literal ID="LiteralCredentialsUser" runat="server" />&nbsp;&nbsp;</td><td align="right"><input id="TextLogin" class="InputManualCredentials" type="text" /></td></tr>
<tr><td><asp:Literal ID="LiteralCredentialsPass" runat="server" />&nbsp;&nbsp;</td><td align="right"><input id="TextPass" class="InputManualCredentials" type="password" /></td></tr>
<tr style="display: none"><td><asp:Literal id="LiteralCredentials2FA" runat="server" />&nbsp;&nbsp;</td><td><input id="Text2FA" class="InputManualCredentials" type="password" /></td></tr>
</table>
<p align="right"><a href="/Security/RequestPasswordReset"><asp:Label ID="LabelForgotPassword" runat="server">Help, I forgot my password!</asp:Label></a></p>
</div>
</div>
</div>
</div>
<p align="center" id="paraSwitchManualLogin"><br/><a href="javascript:toManualLogin();"><asp:Label runat="server" ID="LabelUseManualLogin">Using Manual Password Login?</asp:Label></a></p>
<p align="center" id="paraSwitchBitIdLogin" style="display:none"><br/><a href="javascript:toBitIdLogin();"><asp:Label runat="server" ID="LabelUseBitIdLogin">Using BitID Authentication?</asp:Label></a></p>
<asp:Panel ID="PanelCheat" runat="server" Visible="false">
<div class="box">
<div class="content" style="line-height: 24px">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><asp:Literal ID="LiteralCredentialsUser" runat="server" />&nbsp;&nbsp;</td><td align="right"><input id="TextLogin" class="InputManualCredentials" type="text" /></td></tr>
<tr><td><asp:Literal ID="LiteralCredentialsPass" runat="server" />&nbsp;&nbsp;</td><td align="right"><input id="TextPass" class="InputManualCredentials" type="password" /></td></tr>
<tr style="display: none"><td><asp:Literal id="LiteralCredentials2FA" runat="server" />&nbsp;&nbsp;</td><td><input id="Text2FA" class="InputManualCredentials" type="password" /></td></tr>
</table>
</div>
</div>
<asp:Panel ID="PanelCheat" runat="server" Visible="false">
<div class="box">
<div class="content" style="line-height: 14px">
<h2>Dev's Cheat Button</h2>
<p>Since we're running on localhost, on a nonstandard port, with a debugger attached, and under Windows, this is clearly not a production environment. Since it's unlikely that the outside Internet has access to this machine, which means you can't login with BitID, a cheat button has been provided for you.</p><p>Press the button below to log on as Sandbox Administrator.</p>
<div align="right"><asp:Button ID="ButtonCheat" runat="server" OnClick="ButtonCheat_Click" Text="Cheat Button" /></div>
</div>
</div>
</asp:Panel>
<div class="box">
<div class="content" style="line-height: 14px">
<h2>Dev's Cheat Button</h2>
<p>Since we're running on localhost, on a nonstandard port, with a debugger attached, and under Windows, this is clearly not a production environment. Since it's unlikely that the outside Internet has access to this machine, which means you can't login with BitID, a cheat button has been provided for you.</p><p>Press the button below to log on as Sandbox Administrator.</p>
<div align="right"><asp:Button ID="ButtonCheat" runat="server" OnClick="ButtonCheat_Click" Text="Cheat Button" /></div>
</div>
</div>
</asp:Panel>
</div>
</form>
<!-- some javascript in footer -->
+4
View File
@@ -397,6 +397,10 @@ namespace Swarmops.Pages.Security
this.LabelSidebarManualLoginHeader.Text = Resources.Pages.Security.Login_ManualLogin;
this.LabelHeader.Text = Resources.Pages.Security.Login_Header;
this.LabelSidebarResetPassword.Text = Resources.Pages.Security.Login_ResetPassword; */
this.LabelManualLoginHeader.Text = Resources.Pages.Security.Login_ManualLoginHeader;
this.LabelUseManualLogin.Text = Resources.Pages.Security.Login_UseManualLogin;
this.LabelUseBitIdLogin.Text = Resources.Pages.Security.Login_UseBitIdLogin;
this.LabelForgotPassword.Text = Resources.Pages.Security.Login_ResetPassword;
this.LiteralCredentialsUser.Text = Resources.Pages.Security.Login_Username;
this.LiteralCredentialsPass.Text = Resources.Pages.Security.Login_Password;
this.LiteralCredentials2FA.Text = Resources.Pages.Security.Login_GoogleAuthenticatorCode;
+36
View File
@@ -111,6 +111,15 @@ namespace Swarmops.Pages.Security {
/// </remarks>
protected global::System.Web.UI.WebControls.Image ImageBitIdQr;
/// <summary>
/// LabelManualLoginHeader control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelManualLoginHeader;
/// <summary>
/// LiteralCredentialsUser control.
/// </summary>
@@ -138,6 +147,33 @@ namespace Swarmops.Pages.Security {
/// </remarks>
protected global::System.Web.UI.WebControls.Literal LiteralCredentials2FA;
/// <summary>
/// LabelForgotPassword control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelForgotPassword;
/// <summary>
/// LabelUseManualLogin control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelUseManualLogin;
/// <summary>
/// LabelUseBitIdLogin control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelUseBitIdLogin;
/// <summary>
/// PanelCheat control.
/// </summary>
+2
View File
@@ -1744,6 +1744,8 @@
<Content Include="Scripts\fancybox\jquery.fancybox-1.3.4.pack.js" />
<Content Include="Scripts\fancybox\jquery.mousewheel-3.0.4.pack.js" />
<Content Include="Scripts\hoverIntent.min.js" />
<Content Include="Scripts\jquery-ui.1.11.1.min.js" />
<Content Include="Scripts\jquery.2.0.3.min.js" />
<Content Include="Scripts\jquery.animate-shadow.js" />
<Content Include="Scripts\jquery.animate-shadow.min.js" />
<Content Include="Scripts\jquery.color.js" />
+23 -1
View File
@@ -35,7 +35,7 @@ html, body, input, select
/* BASE */
html, body
body
{
background-color: #E4ECFF;
background-image: url('/Style/Images/background-shader.png');
@@ -1146,6 +1146,28 @@ body.rtl .sidebar h2 span.arrow {
/* TODO, MALFUNCTIONS LIST IN SIDEBAR */
div#divMalfunctionsList > ul {
list-style: none;
}
div#divMalfunctionsList > ul > li {
padding-top: 8px;
background: url('/Images/Icons/iconshock-warning-24px.png') no-repeat 0px 3px;
padding-left: 30px;
padding-bottom: 5px;
line-height: 140%;
background-size: 24px 24px;
}
div#divMalfunctionsList > ul > li+li {
border-top: 1px #476EC7 solid;
margin-top: 5px;
}
/* TODO: RTL VERSION AND TODO VERSION */
/* OTHER ELEMENTS */
+4
View File
@@ -19,6 +19,10 @@ select:not(.comboperson)+span.textbox.combo > .textbox-text {
width: 278px !important;
}
span.combo > input.textbox-text, span.combo > input.textbox-prompt {
padding-top: 0 !important; /* otherwise the default combo value is half-sunken out of the box */
}
.combo-arrow {
position: relative;
top: 7px;
+4 -3
View File
@@ -45,7 +45,7 @@ SWARMOPS IV
[ ] Icons for Validation
[X] Favicon New
[X] Inspect Ledger header bad
[ ] Clean Login
[X] Clean Login
@@ -53,7 +53,7 @@ SWARMOPS V
----------
[X] OOBE! Wait for services
[ ] Basic security
[X] Basic security
[X] Impersonation for testing
[X] Expense access
[ ] Assign role geolock
@@ -70,4 +70,5 @@ SWARMOPS VI
[ ] Controlify financialtransaction
to show on balancetx page
[ ] Close ledger year
[ ] Internal TX account type
[X] Internal TX account type
[ ] Create TX