[1.1.2] #2 Show versions number in Site

This commit is contained in:
BlubbFish 2019-03-08 08:50:05 +01:00
parent 7afb64ef52
commit f4bb38dd07
9 changed files with 40 additions and 20 deletions

View File

@ -6,10 +6,10 @@ using BlubbFish.Utils;
using BlubbFish.Utils.IoT.Bots; using BlubbFish.Utils.IoT.Bots;
using BlubbFish.Utils.IoT.Connector; using BlubbFish.Utils.IoT.Connector;
using BlubbFish.Utils.IoT.Events; using BlubbFish.Utils.IoT.Events;
using Fraunhofer.Fit.IoT.MqttMap.Model; using Fraunhofer.Fit.IoT.LoraMap.Model;
using LitJson; using LitJson;
namespace Fraunhofer.Fit.IoT.MqttMap { namespace Fraunhofer.Fit.IoT.LoraMap {
class Googlelocation : Webserver class Googlelocation : Webserver

View File

@ -6,7 +6,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{95D6F48A-9488-42A6-A973-941B45B26DB8}</ProjectGuid> <ProjectGuid>{95D6F48A-9488-42A6-A973-941B45B26DB8}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<RootNamespace>Fraunhofer.Fit.IoT.MqttMap</RootNamespace> <RootNamespace>Fraunhofer.Fit.IoT.LoraMap</RootNamespace>
<AssemblyName>Lora-Map</AssemblyName> <AssemblyName>Lora-Map</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
@ -32,7 +32,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>Adminrights.manifest</ApplicationManifest>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
@ -51,7 +51,7 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.manifest" /> <None Include="Adminrights.manifest" />
<None Include="config-example\settings.conf.example"> <None Include="config-example\settings.conf.example">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>

View File

@ -6,7 +6,7 @@ using System.Reflection;
using BlubbFish.Utils; using BlubbFish.Utils;
using LitJson; using LitJson;
namespace Fraunhofer.Fit.IoT.MqttMap.Model { namespace Fraunhofer.Fit.IoT.LoraMap.Model {
class Botclient { class Botclient {
public Botclient(JsonData json) { public Botclient(JsonData json) {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using BlubbFish.Utils; using BlubbFish.Utils;
using BlubbFish.Utils.IoT.Connector; using BlubbFish.Utils.IoT.Connector;
namespace Fraunhofer.Fit.IoT.MqttMap { namespace Fraunhofer.Fit.IoT.LoraMap {
class Program { class Program {
static void Main(String[] args) { static void Main(String[] args) {
InIReader.SetSearchPath(new List<String>() { "/etc/loramap", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\loramap" }); InIReader.SetSearchPath(new List<String>() { "/etc/loramap", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\loramap" });

View File

@ -1,18 +1,20 @@
using System.Reflection; using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden // Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind. // die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("mqtt-map")] [assembly: AssemblyTitle("Lora-Map")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("Displays Items with Coordinates from Mqtt on a Map")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("Fraunhofer FIT")]
[assembly: AssemblyProduct("mqtt-map")] [assembly: AssemblyProduct("Lora-Map")]
[assembly: AssemblyCopyright("Copyright © 2018 - 06.03.2019")] [assembly: AssemblyCopyright("Copyright © 2018 - 08.03.2019")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("Fraunhofer FIT, BlubbFish")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("de-DE")]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly // Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von // für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
@ -32,8 +34,10 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.1")] [assembly: AssemblyVersion("1.1.2")]
[assembly: AssemblyFileVersion("1.1.1")] [assembly: AssemblyFileVersion("1.1.2")]
/* /*
* 1.1.1 Add Debian package config * 1.1.1 Add Debian package config
*/ * 1.1.2 #2 Show versions number in Site
*/

View File

@ -40,6 +40,7 @@ chmod 644 $EXEC/*
chmod 755 $EXEC chmod 755 $EXEC
cp $OUTPUT/resources $EXEC -r cp $OUTPUT/resources $EXEC -r
sed -i s/"<div id=\"version\">vx.x.x"/"<div id=\"version\">$VMAJOR.$VMINOR.$VBUILD"/ $EXEC/resources/index.html
cp $OUTPUT/config-example/* $CONFIG cp $OUTPUT/config-example/* $CONFIG
chmod 644 $CONFIG/* chmod 644 $CONFIG/*

View File

@ -16,10 +16,11 @@ html, body {
background-color: white; background-color: white;
position: absolute; position: absolute;
top: 85px; top: 85px;
bottom: 10px; bottom: 35px;
left: 10px; left: 10px;
z-index: 5000; z-index: 5000;
border: rgba(0,0,0,0.5) 2px solid; border: #707070 2px solid;
border: rgba(0,0,0,0.4) 2px solid;
border-radius: 4px border-radius: 4px
} }
@ -27,4 +28,17 @@ html, body {
display: block; display: block;
height: 32px; height: 32px;
width: 32px; width: 32px;
}
#version {
position: absolute;
bottom: 0;
left: 0;
z-index: 50000;
background-color: white;
border-radius: 5px;
height: 20px;
width: 40px;
border: #707070 2px solid;
border: rgba(0,0,0,0.4) 2px solid;
} }

View File

@ -12,6 +12,7 @@
<div id="menucollumn"> <div id="menucollumn">
<span class="pos"></span> <span class="pos"></span>
</div> </div>
<div id="version">vx.x.x</div>
<script type="text/javascript" src="js/leaflet/leaflet.js"></script> <script type="text/javascript" src="js/leaflet/leaflet.js"></script>
<script type="text/javascript" src="js/nav.js"></script> <script type="text/javascript" src="js/nav.js"></script>
</body> </body>