Skip to content

Commit

Permalink
* Added a new section on page under the dashboard with 'Actions and p…
Browse files Browse the repository at this point in the history
…age options'

* Updated autorunsc.exe from v13.2 to v13.3
* Changed tables will not make use of extra features from datatables by default because huge tables can freeze the page from loading if not loaded locally. Still local html report file will init tables with datatables plugin if there are less than 4000 rows on page or 1000 if online.
* Changed the networks default sort. They are now sorted by status
* Changed the processes default sort. They are now sorted by memory DESC
* Changed the services default sort. They are now sorted by status and name ASC
* Changed the autoruns default sort. They are now sorted by enabled and name ASC
* Moved some code classes into Core
  • Loading branch information
sn4k3 committed Apr 27, 2015
1 parent cb4b755 commit 34a31e5
Show file tree
Hide file tree
Showing 31 changed files with 1,276 additions and 674 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

# 1.6.2.0
## 27/04/2015

* Added a new section on page under the dashboard with 'Actions and page options'
* Updated autorunsc.exe from v13.2 to v13.3
* Changed tables will not make use of extra features from datatables by default because huge tables can freeze the page from loading if not loaded locally. Still local html report file will init tables with datatables plugin if there are less than 4000 rows on page or 1000 if online.
* Changed the networks default sort. They are now sorted by status
* Changed the processes default sort. They are now sorted by memory DESC
* Changed the services default sort. They are now sorted by status and name ASC
* Changed the autoruns default sort. They are now sorted by enabled and name ASC
* Moved some code classes into Core


# v1.6.1.0
## 22/04/2015

Expand Down
142 changes: 0 additions & 142 deletions SystemInfoSnapshot/Autorun.cs

This file was deleted.

10 changes: 10 additions & 0 deletions SystemInfoSnapshot/Components/HtmlTextWritterEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,15 @@ private void AddMultiValuesAttrs()

_attrValues = new Dictionary<HtmlTextWriterAttribute, List<string>>();
}

public void BeginJavascript()
{
Write("<script type=\"text/javascript\">");
}

public void EndJavascript()
{
Write("</script>");
}
}
}
29 changes: 29 additions & 0 deletions SystemInfoSnapshot/Components/JavaScript.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.Web.Script.Serialization;

namespace SystemInfoSnapshot.Components
{
/// <summary>
/// Javascript utility class
/// </summary>
public static class JavaScript
{
/*public static string Encode(string value, bool addDoubleQuotes)
{
return System.Web.JavaScriptStringEncode
}*/
/// <summary>
/// Encode a object into javascript code.
/// </summary>
/// <param name="obj">Object to encode.</param>
/// <param name="assingVar">Assign the serialized object to an variable. Null for no variable</param>
/// <returns>A valid javascript string.</returns>
public static string Encode(object obj, string assingVar = null)
{
var js = new JavaScriptSerializer();
return !string.IsNullOrEmpty(assingVar) ?
string.Format("var {0} = {1};", assingVar, js.Serialize(obj))
:
js.Serialize(obj);
}
}
}
68 changes: 68 additions & 0 deletions SystemInfoSnapshot/Core/Autorun/AutorunItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* SystemInfoSnapshot
* Author: Tiago Conceição
*
* http://systeminfosnapshot.com/
* https://github.com/sn4k3/SystemInfoSnapshot
*/

using System;

namespace SystemInfoSnapshot.Core.Autorun
{
/// <summary>
/// Represents a install program in the system.
/// </summary>
public sealed class AutorunItem
{
#region Properties
//Time,Entry Location,Entry,Enabled,Category,Profile,Description,Publisher,Image Path,Version,Launch String

public DateTime Time { get; set; }
public string EntryLocation { get; set; }
public string Entry { get; set; }
public bool Enabled { get; set; }
public string Category { get; set; }
public string Profile { get; set; }
public string Description { get; set; }
public string Publisher { get; set; }
public string ImagePath { get; set; }
public string Version { get; set; }
public string LunchString { get; set; }

public bool IsValidFile { get; set; }
#endregion

#region Construtor
/// <summary>
/// Constructor
/// </summary>
public AutorunItem()
{
IsValidFile = true;
}

#endregion

#region Overrides
private bool Equals(AutorunItem other)
{
return string.Equals(Entry, other.Entry);
}

public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj is string)
return Entry.Equals(obj.ToString());
return obj is AutorunItem && Equals((AutorunItem)obj);
}

public override int GetHashCode()
{
return (Entry != null ? Entry.GetHashCode() : 0);
}
#endregion
}
}
Loading

0 comments on commit 34a31e5

Please sign in to comment.