continuo modifiche app SMART
NON ANCORA gestita da jenkins però...
This commit is contained in:
@@ -34,6 +34,26 @@ namespace GPW_Smart
|
||||
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
|
||||
"~/Scripts/modernizr-*"));
|
||||
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
|
||||
"~/Scripts/jquery-{version}.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquerymobile").Include(
|
||||
"~/Scripts/jquery.mobile-{version}.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
|
||||
"~/Scripts/jquery-ui-{version}.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jSteamware").Include(
|
||||
"~/Scripts/jSteamware*"));
|
||||
|
||||
|
||||
//// aggiungo bundle dinamico x less --> css
|
||||
//bundles.Add(new DynamicFolderBundle("less", "*.less"));
|
||||
|
||||
// abilito boundle "forzato"!
|
||||
BundleTable.EnableOptimizations = true;
|
||||
|
||||
ScriptManager.ScriptResourceMapping.AddDefinition(
|
||||
"respond",
|
||||
new ScriptResourceDefinition
|
||||
|
||||
+29
-10
@@ -447,7 +447,18 @@
|
||||
<Content Include="fonts\glyphicons-halflings-regular.woff" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.eot" />
|
||||
<None Include="Properties\PublishProfiles\ETS.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\IIS01.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\IIS02-ETS.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\SPS.pubxml" />
|
||||
<None Include="Scripts\jquery-3.1.1.intellisense.js" />
|
||||
<Content Include="images\logo_sw.png" />
|
||||
<Content Include="Properties\PublishProfiles\ETS.pubxml.user" />
|
||||
<Content Include="Properties\PublishProfiles\IIS01.pubxml.user" />
|
||||
<Content Include="Properties\PublishProfiles\IIS02-ETS.pubxml.user" />
|
||||
<Content Include="Properties\PublishProfiles\IIS02.pubxml.user" />
|
||||
<Content Include="Properties\PublishProfiles\SPS.pubxml.user" />
|
||||
<Content Include="Scripts\bootstrap.js" />
|
||||
<Content Include="Scripts\bootstrap.min.js" />
|
||||
<Content Include="Scripts\jquery-3.1.1.js" />
|
||||
@@ -455,6 +466,8 @@
|
||||
<Content Include="Scripts\jquery-3.1.1.slim.js" />
|
||||
<Content Include="Scripts\jquery-3.1.1.slim.min.js" />
|
||||
<Content Include="Scripts\modernizr-2.8.3.js" />
|
||||
<Content Include="Scripts\nativedroid2.js" />
|
||||
<Content Include="Scripts\nd2settings.js" />
|
||||
<Content Include="Scripts\respond.js" />
|
||||
<Content Include="Scripts\respond.matchmedia.addListener.js" />
|
||||
<Content Include="Scripts\respond.matchmedia.addListener.min.js" />
|
||||
@@ -462,11 +475,12 @@
|
||||
<Content Include="WebUserControls\mod_attivitaIns.ascx" />
|
||||
<Content Include="WebUserControls\mod_commAttivita.ascx" />
|
||||
<Content Include="WebUserControls\mod_dateTimeJQM.ascx" />
|
||||
<Content Include="WebUserControls\mod_enrollByAuthKey.ascx" />
|
||||
<Content Include="WebUserControls\mod_enrollByEmail.ascx" />
|
||||
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
|
||||
<Content Include="WebUserControls\mod_footer.ascx" />
|
||||
<Content Include="WebUserControls\mod_mancTimb.ascx" />
|
||||
<Content Include="WebUserControls\mod_regNewDevice.ascx" />
|
||||
<Content Include="WebUserControls\mod_reportUtenteAD.ascx" />
|
||||
<Content Include="Content\Site.less" />
|
||||
<Content Include="Content\Style.less" />
|
||||
<Content Include="Content\StyleCustom.less" />
|
||||
@@ -525,7 +539,6 @@
|
||||
</None>
|
||||
<Content Include="WebMasterPages\JQMob.Master" />
|
||||
<Content Include="WebMasterPages\jQueryMobile.Master" />
|
||||
<Content Include="WebMasterPages\jQueryMobileAjaxBodyOnly.Master" />
|
||||
<Content Include="WebMasterPages\jQueryMobileBodyOnly.Master" />
|
||||
<Content Include="WebMasterPages\jQueryMobileNoCookie.Master" />
|
||||
</ItemGroup>
|
||||
@@ -645,10 +658,6 @@
|
||||
<DependentUpon>jQueryMobile.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\jQueryMobileAjaxBodyOnly.Master.cs">
|
||||
<DependentUpon>jQueryMobileAjaxBodyOnly.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\jQueryMobileBodyOnly.Master.cs">
|
||||
<DependentUpon>jQueryMobileBodyOnly.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -678,6 +687,20 @@
|
||||
<Compile Include="WebUserControls\mod_dateTimeJQM.ascx.designer.cs">
|
||||
<DependentUpon>mod_dateTimeJQM.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_enrollByAuthKey.ascx.cs">
|
||||
<DependentUpon>mod_enrollByAuthKey.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_enrollByAuthKey.ascx.designer.cs">
|
||||
<DependentUpon>mod_enrollByAuthKey.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_enrollByEmail.ascx.cs">
|
||||
<DependentUpon>mod_enrollByEmail.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_enrollByEmail.ascx.designer.cs">
|
||||
<DependentUpon>mod_enrollByEmail.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_enrollByJumperAuthKey.ascx.cs">
|
||||
<DependentUpon>mod_enrollByJumperAuthKey.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -697,10 +720,6 @@
|
||||
<DependentUpon>mod_regNewDevice.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_reportUtenteAD.ascx.cs">
|
||||
<DependentUpon>mod_reportUtenteAD.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_resetUserAuthKey.ascx.cs">
|
||||
<DependentUpon>mod_resetUserAuthKey.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<NameOfLastUsedPublishProfile>IIS02</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>Package</WebPublishMethod>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<DesktopBuildPackageLocation>C:\Users\samuele\Documents\Visual Studio 2012\Projects\GestionePresenze\GPW\ReleasesClienti\ETS\GPW.zip</DesktopBuildPackageLocation>
|
||||
<PackageAsSingleFile>true</PackageAsSingleFile>
|
||||
<DeployIisAppPath>Default Web Site/GPW/Smart</DeployIisAppPath>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<LastUsedBuildConfiguration>ETS</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GPW_data.Properties.Settings.GPWConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastUsedBuildConfiguration>ETS</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
|
||||
<LastUsedBuildConfiguration>IIS01</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://IIS01:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GPW/Smart</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>jenkins</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GPW_data.Properties.Settings.GPWConnectionString-Web.config Connection String">
|
||||
<UpdateDestWebConfig>False</UpdateDestWebConfig>
|
||||
</MSDeployParameterValue>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAH0adXzrANk+QkSQiwkrZoAAAAAACAAAAAAADZgAAwAAAABAAAABb6ElOBZBmVABKAa+64QWdAAAAAASAAACgAAAAEAAAAKZikr2c60gIfjtO43fxbZgYAAAAjKLcXmFApdJ2m2qD8ZN2+TTwRGDknnL4FAAAAMTrb97lcPYF0s+lNLqCN5gzfLpj</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<MSDeployServiceURL>https://IIS02:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GPW_ETS/Smart</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<UserName>steamwarewin\administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<LastUsedBuildConfiguration>ETS-218</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<EnableMSDeployBackup>False</EnableMSDeployBackup>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GPW_data.Properties.Settings.GPWConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastUsedBuildConfiguration>ETS</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAbVjPk8XiaE6hVPnucZB+eAAAAAACAAAAAAADZgAAwAAAABAAAACooCX+vfD4IuoeAH/XlG+nAAAAAASAAACgAAAAEAAAAP2mHjtMIj1sR1C9evA+xuYYAAAAEIZGJK4kNgtHWUSK25rLHbLyjItcEy1mFAAAAIAPNWvWBsjF/uQmws++cOhclNwp</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<MSDeployServiceURL>https://IIS02:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GPW/Smart</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<UserName>jenkins</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects>
|
||||
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<LastUsedBuildConfiguration>IIS02</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<EnableMSDeployBackup>False</EnableMSDeployBackup>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GPW_data.Properties.Settings.GPWConnectionString-Web.config Connection String">
|
||||
<UpdateDestWebConfig>False</UpdateDestWebConfig>
|
||||
</MSDeployParameterValue>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAH0adXzrANk+QkSQiwkrZoAAAAAACAAAAAAADZgAAwAAAABAAAAAfzRDxm3RWtMnQW8dF8T+eAAAAAASAAACgAAAAEAAAAILouDWF/BRhWGHI/pZRVI0YAAAAKmH9LnVNFsewQIo0Hkk8L/OzH3jFB7WwFAAAALKoQaTWums2r8sZR6QsPyfIPWBh</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>Package</WebPublishMethod>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<DesktopBuildPackageLocation>C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GestionePresenze\GPW\ReleasesClienti\SPS\GPW.zip</DesktopBuildPackageLocation>
|
||||
<PackageAsSingleFile>true</PackageAsSingleFile>
|
||||
<DeployIisAppPath>Default Web Site/GPW2/Smart</DeployIisAppPath>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<LastUsedBuildConfiguration>SPS</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GPW_data.Properties.Settings.GPWConnectionString-Web.config Connection String">
|
||||
<UpdateDestWebConfig>False</UpdateDestWebConfig>
|
||||
</MSDeployParameterValue>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastUsedBuildConfiguration>SPS</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Binary file not shown.
@@ -0,0 +1,840 @@
|
||||
//
|
||||
// ...the magic starts here...
|
||||
//
|
||||
/////////////////////////////////
|
||||
|
||||
|
||||
// ND2 Widgets
|
||||
|
||||
;(function(factory) {
|
||||
|
||||
// Establish the root object, `window` (`self`) in the browser, or `global` on the server.
|
||||
// We use `self` instead of `window` for `WebWorker` support.
|
||||
var root = (typeof self === 'object' && self.self === self && self) ||
|
||||
(typeof global === 'object' && global.global === global && global);
|
||||
|
||||
// Set up Backbone appropriately for the environment. Start with AMD.
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery', 'Waves', 'exports' ], function($, Waves, exports) {
|
||||
// Export global even in AMD case in case this script is loaded with
|
||||
// others that may still expect a global Backbone.
|
||||
factory($, Waves, exports);
|
||||
return $;
|
||||
});
|
||||
|
||||
// Next for Node.js or CommonJS. jQuery may not be needed as a module.
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
var $ = require('jquery');
|
||||
var Waves = require('Waves');
|
||||
factory(root, Waves, root);
|
||||
// Finally, as a browser global.
|
||||
} else {
|
||||
factory(root.jQuery || root.$, root.Waves || undefined, root);
|
||||
}
|
||||
|
||||
}(function($, Waves, exports) {
|
||||
"use strict";
|
||||
|
||||
$.widget("nd2.gallery", {
|
||||
options: {
|
||||
count: 15,
|
||||
delay: 100,
|
||||
duration: 400,
|
||||
cols: 5
|
||||
},
|
||||
_create: function() {
|
||||
var el = this.element;
|
||||
var opts = $.extend(this.options, el.data("options"));
|
||||
$(document).trigger("creategallery");
|
||||
var _html = "";
|
||||
var _delay;
|
||||
for (var i = 1; i <= opts.count; i++) {
|
||||
var calcDelay = (Math.round(i * (opts.delay / 1000) * 10) / 10);
|
||||
_delay = (calcDelay > 2) ? (i % 5 / 10) : calcDelay;
|
||||
_html += "<div class='dummybox wow zoomIn' data-wow-duration='" + opts.duration + "' data-wow-delay='" + _delay + "s'>" + i + "</div>";
|
||||
}
|
||||
el.html(_html);
|
||||
},
|
||||
_update: function() {
|
||||
|
||||
},
|
||||
refresh: function() {
|
||||
return this._update();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).bind("pagecreate", function(e) {
|
||||
$(document).trigger("gallerybeforecreate");
|
||||
return $("nd2-gallery", e.target).gallery();
|
||||
});
|
||||
|
||||
// nd2-include
|
||||
$.widget("nd2.include", {
|
||||
options: {
|
||||
src: null,
|
||||
post: {}
|
||||
},
|
||||
_create: function() {
|
||||
var el = this.element;
|
||||
var opts = $.extend(this.options, el.data("options"));
|
||||
$(document).trigger("createinclude");
|
||||
|
||||
if (opts.src !== null) {
|
||||
el.load(opts.src, function() {
|
||||
el.enhanceWithin();
|
||||
|
||||
// Apply waves.js
|
||||
if (typeof Waves !== "undefined") {
|
||||
Waves.attach('a', ['waves-button']);
|
||||
Waves.attach('button', ['waves-button']);
|
||||
Waves.init();
|
||||
|
||||
$("body").find(".ui-flipswitch-on").removeClass("waves-effect");
|
||||
Waves.attach('.ui-flipswitch', ['waves-button', 'waves-light']);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
_update: function() {
|
||||
console.log("update?");
|
||||
},
|
||||
refresh: function() {
|
||||
return this._update();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).bind("pagecreate", function(e) {
|
||||
$(document).trigger("includebeforecreate");
|
||||
return $("nd2-include", e.target).include();
|
||||
});
|
||||
|
||||
|
||||
// nd2-ad
|
||||
$.widget("nd2.ad", {
|
||||
options: {
|
||||
banner: null,
|
||||
path: null,
|
||||
active: null,
|
||||
extension: null,
|
||||
post: {}
|
||||
},
|
||||
_create: function() {
|
||||
|
||||
var _self = this;
|
||||
|
||||
window.setTimeout(function() {
|
||||
|
||||
if (typeof window.nd2 !== 'undefined' && typeof window.nd2.settings !== 'undefined' && typeof window.nd2.settings.advertising !== 'undefined') {
|
||||
if (typeof window.nd2.settings.advertising.path !== 'undefined') {
|
||||
_self.options.path = window.nd2.settings.advertising.path;
|
||||
}
|
||||
if (typeof window.nd2.settings.advertising.active !== 'undefined') {
|
||||
_self.options.active = window.nd2.settings.advertising.active;
|
||||
}
|
||||
if (typeof window.nd2.settings.advertising.extension !== 'undefined') {
|
||||
_self.options.extension = window.nd2.settings.advertising.extension;
|
||||
}
|
||||
}
|
||||
|
||||
var el = _self.element;
|
||||
var opts = $.extend(_self.options, el.data("options"));
|
||||
$(document).trigger("createinclude");
|
||||
|
||||
if (opts.active && opts.banner !== null) {
|
||||
var src = (opts.path || "") + opts.banner + (opts.extension || "");
|
||||
el.addClass("nd2-banner");
|
||||
el.load(src, function() {
|
||||
el.enhanceWithin();
|
||||
});
|
||||
}
|
||||
|
||||
}, 600);
|
||||
|
||||
},
|
||||
_update: function() {
|
||||
// console.log("update?");
|
||||
},
|
||||
refresh: function() {
|
||||
return this._update();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).bind("pagecreate", function(e) {
|
||||
$(document).trigger("includebeforecreate");
|
||||
return $("nd2-ad", e.target).ad();
|
||||
});
|
||||
|
||||
|
||||
// nd2-tabs
|
||||
$.widget("nd2.tabs", {
|
||||
options: {},
|
||||
settings: {
|
||||
activeTab: false,
|
||||
activeIdx: 0,
|
||||
swipe: true
|
||||
},
|
||||
_create: function() {
|
||||
var _self = this;
|
||||
var el = this.element;
|
||||
_self.settings = $.extend(_self.settings, {
|
||||
swipe: el.data('swipe')
|
||||
});
|
||||
el.addClass("nd2Tabs");
|
||||
|
||||
el.find("li[data-tab]").each(function(idx) {
|
||||
$(this).addClass("nd2Tabs-nav-item");
|
||||
if ($(this).data("tab-active") && !_self.settings.activeTab) {
|
||||
$(this).addClass("nd2Tabs-active");
|
||||
_self.settings.activeTab = $(this).data("tab");
|
||||
_self.settings.activeIdx = idx;
|
||||
}
|
||||
});
|
||||
|
||||
// Select First if activeTab is not set
|
||||
if (!_self.settings.activeTab) {
|
||||
var firstEl = el.find("li[data-tab]").first();
|
||||
if (firstEl.length > 0) {
|
||||
firstEl.addClass("nd2Tabs-active");
|
||||
_self.settings.activeTab = firstEl.data("tab");
|
||||
} else {
|
||||
_self.destroyTabs();
|
||||
}
|
||||
}
|
||||
|
||||
// Bind Swipe Event
|
||||
if (_self.settings.swipe) {
|
||||
$("div[role=main]").on("swipeleft", function(event) {
|
||||
_self.changeNavTab(true);
|
||||
}).on("swiperight", function(event) {
|
||||
_self.changeNavTab(false);
|
||||
});
|
||||
}
|
||||
|
||||
// Waves.js
|
||||
if (typeof Waves !== "undefined") {
|
||||
Waves.attach('.nd2Tabs-nav-item', ['waves-button', 'waves-light']);
|
||||
Waves.init();
|
||||
}
|
||||
|
||||
// Bind Events
|
||||
el.on("click", ".nd2Tabs-nav-item:not('.nd2Tabs-active')", function(e) {
|
||||
e.preventDefault();
|
||||
_self.switchTab($(this), $(this).data('tab'), $(this).closest('.nd2Tabs').find(".nd2Tabs-nav-item").index($(this)[0]));
|
||||
});
|
||||
|
||||
if (_self.settings.activeTab) {
|
||||
_self.prepareTabs();
|
||||
}
|
||||
|
||||
},
|
||||
_update: function() {},
|
||||
refresh: function() {
|
||||
return this._update();
|
||||
},
|
||||
destroyTabs: function() {
|
||||
this.element.remove();
|
||||
},
|
||||
changeNavTab: function(left) {
|
||||
var $tabs = $('ul[data-role="nd2tabs"] li');
|
||||
|
||||
var len = $tabs.length;
|
||||
var curidx = 0;
|
||||
|
||||
$tabs.each(function(idx) {
|
||||
if ($(this).hasClass("nd2Tabs-active")) {
|
||||
curidx = idx;
|
||||
}
|
||||
});
|
||||
|
||||
var nextidx = 0;
|
||||
if (left) {
|
||||
nextidx = (curidx >= len - 1) ? 0 : curidx + 1;
|
||||
} else {
|
||||
nextidx = (curidx <= 0) ? len - 1 : curidx - 1;
|
||||
}
|
||||
$tabs.eq(nextidx).click();
|
||||
|
||||
},
|
||||
switchTab: function(obj, tabKey, toIdx) {
|
||||
var _self = this;
|
||||
|
||||
var direction = (parseInt(toIdx, 10) > _self.settings.activeIdx) ? "right" : "left";
|
||||
var directionTo = (parseInt(toIdx, 10) < _self.settings.activeIdx) ? "right" : "left";
|
||||
|
||||
obj.parent().find(".nd2Tabs-active").removeClass("nd2Tabs-active");
|
||||
|
||||
obj.addClass('nd2Tabs-active');
|
||||
|
||||
_self.settings.activeIdx = parseInt(toIdx, 10);
|
||||
_self.settings.activeTab = tabKey;
|
||||
|
||||
// Activate Content Tab
|
||||
var oldContent = obj.closest('.ui-page').find(".nd2Tabs-content-tab.nd2Tab-active");
|
||||
|
||||
oldContent.addClass("to-" + directionTo);
|
||||
window.setTimeout(function() {
|
||||
oldContent.removeClass("nd2Tab-active to-" + directionTo);
|
||||
}, 400);
|
||||
|
||||
var newContent = obj.closest('.ui-page').find(".nd2Tabs-content-tab[data-tab='" + _self.settings.activeTab + "']");
|
||||
|
||||
newContent.addClass("nd2Tab-active from-" + direction);
|
||||
|
||||
window.setTimeout(function() {
|
||||
newContent.removeClass("from-" + direction);
|
||||
}, 150);
|
||||
|
||||
},
|
||||
prepareTabs: function() {
|
||||
var _self = this;
|
||||
var tabs = $("body").find("[data-role='nd2tab']");
|
||||
if (tabs.length > 0) {
|
||||
tabs.addClass("nd2Tabs-content-tab");
|
||||
tabs.each(function(idx) {
|
||||
if ($(this).data('tab') == _self.settings.activeTab) {
|
||||
$(this).addClass('nd2Tab-active');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
_self.destroyTabs();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).bind("pagebeforeshow", function(e) {
|
||||
$(document).trigger("includebeforecreate");
|
||||
return $("[data-role='nd2tabs']", e.target).tabs();
|
||||
});
|
||||
|
||||
|
||||
// nd2Toast
|
||||
(function($) {
|
||||
$.nd2Toast = function(options) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
_self.defaults = {
|
||||
message: "",
|
||||
action: {
|
||||
link: null,
|
||||
title: null,
|
||||
fn: null,
|
||||
color: "lime"
|
||||
},
|
||||
ttl: 3000
|
||||
};
|
||||
|
||||
_self.isClosed = false;
|
||||
|
||||
_self.toastId = null;
|
||||
|
||||
_self.options = $.extend(_self.defaults, options);
|
||||
|
||||
_self.getToast = function() {
|
||||
return $("body").find("#" + _self.toastId);
|
||||
};
|
||||
|
||||
_self.hasPendingToasts = function() {
|
||||
return ($("body").find(".nd2-toast").length > 0);
|
||||
};
|
||||
|
||||
_self.getOtherToast = function() {
|
||||
return $("body").find(".nd2-toast");
|
||||
};
|
||||
|
||||
_self.hasAction = function() {
|
||||
return (_self.options.action.title &&
|
||||
(_self.options.action.link || _self.options.action.fn));
|
||||
};
|
||||
|
||||
_self.getAction = function() {
|
||||
return (_self.hasAction()) ? "<span class='nd2-toast-action'><a href='#toastAction' class='ui-btn ui-btn-inline clr-btn-accent-" + _self.options.action.color + "'>" + _self.options.action.title + "</a></span>" : "";
|
||||
};
|
||||
|
||||
_self.getMessage = function() {
|
||||
return "<span class='nd2-toast-message'>" + _self.options.message + "</span>";
|
||||
};
|
||||
|
||||
_self.generateId = function() {
|
||||
_self.toastId = "toast" + Math.random().toString(16).slice(2);
|
||||
};
|
||||
|
||||
_self.create = function() {
|
||||
|
||||
if (!_self.hasPendingToasts()) {
|
||||
|
||||
_self.generateId();
|
||||
|
||||
var hasActionClass = (!_self.hasAction()) ? "no-action" : "";
|
||||
var toast = "<div id='" + _self.toastId + "' class='nd2-toast nd2-toast-off " + hasActionClass + "'><div class='nd2-toast-wrapper'>" + _self.getMessage() + _self.getAction() + "</div></div>";
|
||||
|
||||
$("body").append(toast);
|
||||
|
||||
window.setTimeout(function() {
|
||||
_self.bindAction();
|
||||
_self.show();
|
||||
}, 50);
|
||||
|
||||
} else {
|
||||
window.setTimeout(function() {
|
||||
_self.abortOtherToasts();
|
||||
}, 100);
|
||||
}
|
||||
};
|
||||
|
||||
_self.bindAction = function() {
|
||||
if (_self.hasAction()) {
|
||||
|
||||
var toast = _self.getToast();
|
||||
var hasLink = (_self.options.action.link);
|
||||
var hasEvent = (_self.options.action.fn && typeof _self.options.action.fn === "function");
|
||||
|
||||
toast.find(".nd2-toast-action a").on("click", function(e) {
|
||||
if (hasEvent) {
|
||||
_self.options.action.fn(e);
|
||||
}
|
||||
if (hasLink) {
|
||||
$("body").pagecontainer("change", _self.options.action.link);
|
||||
}
|
||||
_self.hide();
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
_self.show = function() {
|
||||
var toast = _self.getToast();
|
||||
toast.removeClass("nd2-toast-off");
|
||||
|
||||
$("body").addClass("nd2-toast-open");
|
||||
|
||||
window.setTimeout(function() {
|
||||
_self.hide();
|
||||
}, _self.options.ttl);
|
||||
|
||||
};
|
||||
|
||||
_self.hide = function() {
|
||||
if (_self.isClosed) return;
|
||||
|
||||
_self.isClosed = true;
|
||||
|
||||
var toast = _self.getToast();
|
||||
if (toast.length > 0) {
|
||||
|
||||
toast.addClass("nd2-toast-off");
|
||||
|
||||
if (_self.hasPendingToasts()) {
|
||||
$("body").removeClass("nd2-toast-open");
|
||||
}
|
||||
|
||||
window.setTimeout(function() {
|
||||
_self.destroyToast();
|
||||
}, 400);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
_self.destroyToast = function() {
|
||||
var toast = _self.getToast();
|
||||
toast.remove();
|
||||
};
|
||||
|
||||
_self.abortOtherToasts = function() {
|
||||
|
||||
if (_self.hasPendingToasts()) {
|
||||
|
||||
var toast = _self.getOtherToast();
|
||||
if (toast) {
|
||||
|
||||
toast.addClass("nd2-toast-off");
|
||||
|
||||
$("body").removeClass("nd2-toast-open");
|
||||
|
||||
window.setTimeout(function() {
|
||||
|
||||
toast.remove();
|
||||
_self.create();
|
||||
|
||||
}, 400);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
_self.create();
|
||||
|
||||
};
|
||||
|
||||
$("body").on("click", "[data-role='toast']", function(e) {
|
||||
e.preventDefault();
|
||||
var options = {
|
||||
action: {}
|
||||
};
|
||||
|
||||
if ($(this).data('toast-message')) {
|
||||
options.message = $(this).data('toast-message');
|
||||
}
|
||||
if ($(this).data('toast-ttl')) {
|
||||
options.ttl = $(this).data('toast-ttl');
|
||||
}
|
||||
if ($(this).data('toast-action-title')) {
|
||||
options.action.title = $(this).data('toast-action-title');
|
||||
}
|
||||
if ($(this).data('toast-action-link')) {
|
||||
options.action.link = $(this).data('toast-action-link');
|
||||
}
|
||||
if ($(this).data('toast-action-color')) {
|
||||
options.action.color = $(this).data('toast-action-color');
|
||||
}
|
||||
|
||||
new $.nd2Toast(options);
|
||||
|
||||
});
|
||||
|
||||
}($));
|
||||
|
||||
|
||||
// nd2Search
|
||||
(function($) {
|
||||
$.nd2Search = function(options) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
_self.defaults = {
|
||||
placeholder: "Search",
|
||||
source: [],
|
||||
defaultIcon: 'star',
|
||||
fn: function(r) {
|
||||
console.log("No Callback function defined.");
|
||||
}
|
||||
};
|
||||
|
||||
_self.options = $.extend(_self.defaults, options);
|
||||
|
||||
_self.applyWaves = function() {
|
||||
if (typeof Waves !== "undefined") {
|
||||
Waves.attach('.nd2-search-button, .nd2-search-back-button', ['waves-button']);
|
||||
Waves.init();
|
||||
}
|
||||
};
|
||||
|
||||
_self.getSearchButton = function(offset) {
|
||||
return "<a href='#' class='ui-btn ui-btn-right wow fadeIn nd2-search-button' style='margin-right: " + offset + "px;' data-wow-delay='1s'><i class='zmdi zmdi-search'></i></a>";
|
||||
};
|
||||
|
||||
_self.getBackButton = function() {
|
||||
return "<a href='#' class='ui-btn ui-btn-left wow fadeIn nd2-search-back-button' data-wow-delay='0.2s'><i class='zmdi zmdi-arrow-back'></i></a>";
|
||||
};
|
||||
|
||||
_self.getSearchInput = function() {
|
||||
return "<input type='text' class='nd2-search-input' value='' placeholder='" + _self.options.placeholder + "' />";
|
||||
};
|
||||
|
||||
_self.activateSearch = function() {
|
||||
_self.getHeader().addClass("nd2-search-active");
|
||||
_self.getSearchInputObj().val('').focus();
|
||||
};
|
||||
|
||||
_self.hideSearch = function() {
|
||||
_self.getHeader().removeClass("nd2-search-active");
|
||||
};
|
||||
|
||||
_self.getHeader = function() {
|
||||
return $("body").find(".ui-page-active div[data-role='header']").first();
|
||||
};
|
||||
|
||||
_self.getSearchInputObj = function() {
|
||||
return _self.getHeader().find('.nd2-search-input');
|
||||
};
|
||||
|
||||
_self.bindEvents = function() {
|
||||
_self.getHeader()
|
||||
.on('click', '.nd2-search-button', function(e) {
|
||||
e.preventDefault();
|
||||
_self.activateSearch();
|
||||
})
|
||||
.on('click', '.nd2-search-back-button', function(e) {
|
||||
e.preventDefault();
|
||||
_self.hideSearch();
|
||||
});
|
||||
|
||||
_self.bindAutocomplete();
|
||||
|
||||
};
|
||||
|
||||
_self.bindAutocomplete = function() {
|
||||
|
||||
_self.getSearchInputObj().autocomplete({
|
||||
delay: 500,
|
||||
minLength: 1,
|
||||
source: _self.options.source,
|
||||
select: function(e, ui) {
|
||||
if (typeof ui.item !== 'undefined' && typeof ui.item.value !== 'undefined') {
|
||||
if (typeof _self.options.fn === 'function') {
|
||||
_self.options.fn(ui.item.value);
|
||||
_self.hideSearch();
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.autocomplete('instance')._renderItem = function(ul, item) {
|
||||
if (typeof item === 'string') {
|
||||
item = {
|
||||
icon: _self.options.defaultIcon,
|
||||
value: item,
|
||||
label: item
|
||||
};
|
||||
}
|
||||
|
||||
var icon = (typeof item.icon !== 'undefined') ? "<i class='zmdi zmdi-" + item.icon + "'></i>" : "<i class='zmdi zmdi-" + _self.options.defaultIcon + "'></i>";
|
||||
return $("<li class='nd2-search-result-item'>")
|
||||
.attr("data-value", item.value)
|
||||
.append("<span class='icon'>" + icon + "</span><span class='term'>" + item.label + "</span>")
|
||||
.appendTo(ul);
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
_self.create = function() {
|
||||
var header = _self.getHeader();
|
||||
var content = null;
|
||||
if (header.length > 0) {
|
||||
|
||||
var firstBtnRight = header.find(".ui-btn-right");
|
||||
|
||||
if (firstBtnRight.length > 0) {
|
||||
firstBtnRight.first().before(_self.getSearchButton(firstBtnRight.length * (firstBtnRight.outerWidth())));
|
||||
} else {
|
||||
header.append(_self.getSearchButton(0));
|
||||
}
|
||||
|
||||
header.css({
|
||||
'minHeight': header.height() + 'px'
|
||||
});
|
||||
|
||||
header.prepend(_self.getBackButton());
|
||||
header.prepend(_self.getSearchInput());
|
||||
|
||||
_self.applyWaves();
|
||||
_self.bindEvents();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
window.setTimeout(function() {
|
||||
_self.create();
|
||||
}, 500);
|
||||
};
|
||||
|
||||
}($));
|
||||
|
||||
// nd2 Project Settings
|
||||
(function($) {
|
||||
$.nd2 = function(options) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
_self.defaults = {
|
||||
stats: {
|
||||
analyticsUA: null // Your UA-Code for Example: 'UA-123456-78'
|
||||
},
|
||||
advertising: {
|
||||
active: false, // true | false
|
||||
path: null, // "/examples/fragments/adsense/",
|
||||
extension: null // ".html"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
_self.options = $.extend(_self.defaults, options);
|
||||
|
||||
_self.build = function() {
|
||||
|
||||
_self.globalSettings();
|
||||
_self.bindNavigationSwipe();
|
||||
_self.iniWow();
|
||||
_self.iniWaves();
|
||||
_self.iniSmoothTransition();
|
||||
_self.iniGoogleAnalytics();
|
||||
|
||||
};
|
||||
|
||||
_self.globalSettings = function() {
|
||||
window.nd2 = {
|
||||
settings: _self.options
|
||||
};
|
||||
};
|
||||
|
||||
_self.bindNavigationSwipe = function() {
|
||||
$(".ui-page:not('.nd2-no-menu-swipe')").on("swiperight swipeleft", function(e) {
|
||||
if ($(".ui-page-active").jqmData("panel") !== "open") {
|
||||
if (e.type === "swiperight") {
|
||||
$(".ui-panel.ui-panel-position-left:first").panel("open");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
_self.iniWow = function() {
|
||||
if (typeof WOW !== "undefined") {
|
||||
new WOW().init();
|
||||
}
|
||||
};
|
||||
|
||||
_self.iniWaves = function() {
|
||||
if (typeof Waves !== "undefined") {
|
||||
Waves.attach('a', ['waves-button']);
|
||||
Waves.attach('button', ['waves-button']);
|
||||
Waves.init();
|
||||
$("body").find(".ui-flipswitch-on").removeClass("waves-effect");
|
||||
Waves.attach('.ui-flipswitch', ['waves-button', 'waves-light']);
|
||||
}
|
||||
};
|
||||
|
||||
_self.iniSmoothTransition = function() {
|
||||
$("body").addClass("nd2-ready");
|
||||
$(document).on("pagechange",function(){
|
||||
$("body").removeClass("nd2-ready");
|
||||
})
|
||||
.bind("pagecontainershow ", function(e) {
|
||||
$('body').css('opacity','1');
|
||||
});
|
||||
$(window).on('navigate',function(event,state) {
|
||||
$('body').css('opacity','1');
|
||||
});
|
||||
};
|
||||
|
||||
_self.getUrlParts = function(url) {
|
||||
var a = document.createElement('a');
|
||||
a.href = url;
|
||||
|
||||
return {
|
||||
href: a.href,
|
||||
host: a.host,
|
||||
hostname: a.hostname,
|
||||
port: a.port,
|
||||
pathname: a.pathname,
|
||||
protocol: a.protocol,
|
||||
hash: a.hash,
|
||||
search: a.search
|
||||
};
|
||||
};
|
||||
|
||||
_self.iniGoogleAnalytics = function() {
|
||||
|
||||
var _ga = {
|
||||
send: function(url) {
|
||||
if (url) {
|
||||
ga('send', 'pageview', url);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (_self.options.stats.analyticsUA) {
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function() {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
|
||||
ga('create', _self.options.stats.analyticsUA, 'auto');
|
||||
_ga.send(null);
|
||||
|
||||
// Trigger Page Change
|
||||
|
||||
$("body").on("pagechange", function(evt, data) {
|
||||
_ga.send(_self.getUrlParts(data.options.absUrl).pathname);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
_self.build();
|
||||
|
||||
};
|
||||
|
||||
})($);
|
||||
|
||||
exports.chartThemeGenerator = function(color) {
|
||||
|
||||
var _self = this;
|
||||
|
||||
_self.colorIndex = ['red', 'pink', 'purple', 'deep-purple', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'deep-orange', 'brown', 'grey', 'blue-grey'];
|
||||
_self.colorHex = {
|
||||
red: '#F44336',
|
||||
pink: '#E91E63',
|
||||
purple: '#9C27B0',
|
||||
deep_purple: '#673AB7',
|
||||
indigo: '#3F51B5',
|
||||
blue: '#2196F3',
|
||||
light_blue: '#03A9F4',
|
||||
cyan: '#00BCD4',
|
||||
teal: '#009688',
|
||||
green: '#4CAF50',
|
||||
light_green: '#8BC34A',
|
||||
lime: '#CDDC39',
|
||||
yellow: '#FFEB3B',
|
||||
amber: '#FFC107',
|
||||
orange: '#FF9800',
|
||||
deep_orange: '#FF5722',
|
||||
brown: '#795548',
|
||||
grey: '#9E9E9E',
|
||||
blue_grey: '#607D8B'
|
||||
},
|
||||
|
||||
_self.indexByColor = _self.colorIndex.indexOf(color);
|
||||
|
||||
_self.alpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r'];
|
||||
|
||||
if (_self.indexByColor > -1) {
|
||||
var colorArray = [];
|
||||
var colorArrayAfter = [];
|
||||
var cLoop = 0;
|
||||
_self.colorIndex.forEach(function(ci) {
|
||||
if (cLoop < _self.indexByColor) {
|
||||
colorArrayAfter.push(ci);
|
||||
} else {
|
||||
colorArray.push(ci);
|
||||
}
|
||||
cLoop++;
|
||||
});
|
||||
|
||||
colorArray = colorArray.concat(colorArrayAfter);
|
||||
|
||||
var css = [];
|
||||
|
||||
for (var i = 0; i < _self.alpha.length; i++) {
|
||||
var alpha = _self.alpha[i];
|
||||
var colorName = colorArray[i];
|
||||
var colorNice = colorName.replace('-', '_');
|
||||
var hex = _self.colorHex[colorNice];
|
||||
// General
|
||||
// css.push(".nd2-chart .ct-series-"+alpha+" .ct-bar, .nd2-chart .ct-series-"+alpha+" .ct-line, .nd2-chart .ct-series-"+alpha+" .ct-point, .nd2-chart .ct-series-"+alpha+" .ct-slice-donut { stroke: "+hex+"; } .nd2-chart .ct-series-"+alpha+" .ct-area, .nd2-chart .ct-series-"+alpha+" .ct-slice-pie { fill: "+hex+"; } ");
|
||||
|
||||
// Color Themes
|
||||
css.push(".nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-bar, .nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-line, .nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-point, .nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-slice-donut { stroke: " + hex + "; } .nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-area, .nd2-chart.clr-theme-" + color + " .ct-series-" + alpha + " .ct-slice-pie { fill: " + hex + "; } ");
|
||||
}
|
||||
|
||||
console.log("/* Chart-Color-Theme: " + color + " */\n" + css.join(" ") + "\n\n");
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}));
|
||||
@@ -0,0 +1,17 @@
|
||||
$(function() {
|
||||
|
||||
// Initialize nativeDroid2
|
||||
|
||||
$.nd2({
|
||||
stats : {
|
||||
analyticsUA: null // Your UA-Code for Example: 'UA-123456-78'
|
||||
},
|
||||
advertising : {
|
||||
active : false, // true | false
|
||||
path : null, // Define where the Ad-Templates are: For example: "/examples/fragments/adsense/"
|
||||
extension : null // Define the Ad-Template content Extension (Most case: ".html" or ".php")
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
@@ -1,12 +1,12 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_title.ascx.cs" Inherits="GPW.WebUserControls.mod_title" %>
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<div style="text-align: left; margin-left: auto; margin-right: auto; margin-top: 4px; margin-bottom: 4px;">
|
||||
<div class="ui-block-a text-left">
|
||||
<div style="margin-left: auto; margin-right: auto; margin-top: 4px; margin-bottom: 4px;">
|
||||
<asp:Label runat="server" ID="lblSwData" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div style="text-align: right; margin-left: auto; margin-right: auto; margin-top: 4px; margin-bottom: 4px;">
|
||||
<div class="ui-block-b text-right">
|
||||
<div style="margin-left: auto; margin-right: auto; margin-top: 4px; margin-bottom: 4px;">
|
||||
<asp:Label runat="server" ID="lblIpData" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 273 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user